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)

query II rowsort
SELECT ALL 39, 77 + - + 68 AS col0
----
39
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT 41 * + - COUNT( * ) * 33 AS col1
----
-1353

skipif mysql # not compatible
query I rowsort label-1
SELECT 41 * + - COUNT ( * ) * 33 AS col1
----
-1353

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

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

query I rowsort
SELECT ALL + 17 + 96
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT COALESCE ( - 92, - COUNT( * ) * COUNT( * ) * + 9 ) DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-4
SELECT COALESCE ( - 92, - COUNT ( * ) * COUNT ( * ) * + 9 ) / - 68
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT 67 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 53, + 51 AS col1
----
-53
51

query II rowsort
SELECT 35 col0, - 36 col2
----
35
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8
SELECT DISTINCT + 72 + 60 DIV + - 67 * + + 42 + 22 DIV - 26 + + 45 + + 16 * + - COUNT( * ) * + 66 + + COUNT( * ), + 99 * + NULLIF ( MIN( - + 55 ), 38 ) AS col2
----
-938
-5445

skipif mysql # not compatible
query II rowsort label-8
SELECT DISTINCT + 72 + 60 / + - 67 * + + 42 + 22 / - 26 + + 45 + + 16 * + - COUNT ( * ) * + 66 + + COUNT ( * ), + 99 * + NULLIF ( MIN ( - + 55 ), 38 ) AS col2
----
-938
-5445

query I rowsort
SELECT 47 - - NULLIF ( + 42, - 87 ) + - 27 * + 85 AS col0
----
-2206

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL + 54 + + - COALESCE ( 58, - - CASE - 79 WHEN + 13 THEN NULL WHEN - COUNT( * ) * - 25 * + - 40 THEN + ( - MAX( DISTINCT + 14 ) ) END )
----
-4

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + 54 + + - COALESCE ( 58, - - CASE - 79 WHEN + 13 THEN NULL WHEN - COUNT ( * ) * - 25 * + - 40 THEN + ( - MAX ( DISTINCT + 14 ) ) END )
----
-4

query I rowsort
SELECT 57 - + 41 + + + 49 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT MAX( DISTINCT + - 9 ) * + 75 * - COUNT( * )
----
675

skipif mysql # not compatible
query I rowsort label-12
SELECT MAX ( DISTINCT + - 9 ) * + 75 * - COUNT ( * )
----
675

query I rowsort
SELECT ALL - 77 + + 72
----
-5

query II rowsort
SELECT - 49 col2, - 6
----
-49
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-15
SELECT ALL - 19, - 94 * - - 64 + + 97 * + 56 * + 4 + + 31 + CASE NULLIF ( MAX( + 90 ), 94 - ( + COUNT( * ) ) ) WHEN + 30 DIV + + 44 * - + COALESCE ( - 33, - 18, - SUM( DISTINCT + 85 ) ) * 56 + + COUNT( * ) * - ( - 43 ) + + COUNT( ALL - 79 ) + 94 THEN + MAX( ALL + 78 ) + 56 DIV 27 ELSE + 64 END + COUNT( * ) AS col2
----
-19
15808

skipif mysql # not compatible
query II rowsort label-15
SELECT ALL - 19, - 94 * - - 64 + + 97 * + 56 * + 4 + + 31 + CASE NULLIF ( MAX ( + 90 ), 94 - ( + COUNT ( * ) ) ) WHEN + 30 / + + 44 * - + COALESCE ( - 33, - 18, - SUM ( DISTINCT + 85 ) ) * 56 + + COUNT ( * ) * - ( - 43 ) + + COUNT ( ALL - 79 ) + 94 THEN + MAX ( ALL + 78 ) + 56 / 27 ELSE + 64 END + COUNT ( * ) AS col2
----
-19
15808

query I rowsort
SELECT ALL + - 20 + + - 23 - + ( + + 40 ) * - 39 * - 18
----
-28123

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT DISTINCT - - 58 + - + SUM( 68 ) AS col2, + 65
----
-10
65

skipif mysql # not compatible
query II rowsort label-17
SELECT DISTINCT - - 58 + - + SUM ( 68 ) AS col2, + 65
----
-10
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-18
SELECT ALL 31 + + CAST( NULL AS SIGNED ) + - 55 / COUNT( * ) * + - 80 / 72 + + 6 / - ( 62 ) + + CASE - - ( - COUNT( * ) ) WHEN + 35 THEN + 11 WHEN + + 91 THEN - 0 ELSE NULL END AS col0, - 44 col1
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-18
SELECT ALL 31 + + CAST ( NULL AS INTEGER ) + - 55 / COUNT ( * ) * + - 80 / 72 + + 6 / - ( 62 ) + + CASE - - ( - COUNT ( * ) ) WHEN + 35 THEN + 11 WHEN + + 91 THEN - 0 ELSE NULL END AS col0, - 44 col1
----
NULL
-44

query I rowsort
SELECT ALL - - 8 * - 68 AS col1
----
-544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-20
SELECT DISTINCT - CAST( NULL AS SIGNED ), 60 * + + 14 AS col2
----
NULL
840

skipif mysql # not compatible
query II rowsort label-20
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 60 * + + 14 AS col2
----
NULL
840

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

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

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

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

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

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

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

query I rowsort
SELECT + 81 + - 1 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT - CASE + - 61 WHEN + - COALESCE ( 31, + 54 ) THEN 36 / - COUNT( * ) * 83 WHEN ( 92 ) * - CASE 12 WHEN - 24 THEN - 2 * 8 - + - 73 WHEN CAST( + ( + 49 ) AS SIGNED ) THEN + 27 * 79 + + 52 / + 33 END / 73 + + 92 + - - 81 - NULLIF ( - NULLIF ( + NULLIF ( + - 66, + ( 36 ) * + 23 + - 30 ), - 12 * + + 66 ), - + 97 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT - CASE + - 61 WHEN + - COALESCE ( 31, + 54 ) THEN 36 / - COUNT ( * ) * 83 WHEN ( 92 ) * - CASE 12 WHEN - 24 THEN - 2 * 8 - + - 73 WHEN CAST ( + ( + 49 ) AS INTEGER ) THEN + 27 * 79 + + 52 / + 33 END / 73 + + 92 + - - 81 - NULLIF ( - NULLIF ( + NULLIF ( + - 66, + ( 36 ) * + 23 + - 30 ), - 12 * + + 66 ), - + 97 ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 67 AS col2, 75 col1
----
-67
75

query I rowsort
SELECT ALL + 0 * 17 col2
----
0

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

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

query II rowsort
SELECT ALL - 13 AS col2, 39
----
-13
39

query I rowsort
SELECT DISTINCT + - ( + 68 ) - - 81 AS col1
----
13

query I rowsort
SELECT DISTINCT 61 * + 82
----
5002

query I rowsort
SELECT - 30 + + 4 col0
----
-26

query I rowsort
SELECT ALL 0 * + 89 * 64 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-35
SELECT DISTINCT - + 4 AS col0, + SUM( - 10 ) + 75 AS col0
----
-4
65

skipif mysql # not compatible
query II rowsort label-35
SELECT DISTINCT - + 4 AS col0, + SUM ( - 10 ) + 75 AS col0
----
-4
65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-37
SELECT CASE 43 WHEN 94 THEN - CAST( COALESCE ( + AVG ( DISTINCT - 1 ), ( - 64 ), + 69 * + + 55 ) AS SIGNED ) WHEN + 99 + 7 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT CASE 43 WHEN 94 THEN - CAST ( COALESCE ( + AVG ( DISTINCT - 1 ), ( - 64 ), + 69 * + + 55 ) AS INTEGER ) WHEN + 99 + 7 THEN NULL ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 62 * 66 AS col0
----
4092

query I rowsort
SELECT 13 + - 86 AS col2
----
-73

query I rowsort
SELECT 32 + - 56 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT ( - 2 ) DIV COUNT( * ) * - 29 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-41
SELECT ( - 2 ) / COUNT ( * ) * - 29 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL ( MIN( 11 ) ) + - 65 + - + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL ( MIN ( 11 ) ) + - 65 + - + COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT 76 * + 29 AS col0
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL 48 + + - COUNT( * ) + - COUNT( * ) * - 15 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL 48 + + - COUNT ( * ) + - COUNT ( * ) * - 15 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT COUNT( * ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-45
SELECT COUNT ( * ) + + 48
----
49

query I rowsort
SELECT 92 - - ( 34 )
----
126

query I rowsort
SELECT ALL + 58 * + 88
----
5104

query I rowsort
SELECT ALL 12 + + + 40 AS col2
----
52

query II rowsort
SELECT ( - 62 ) * 92 + + - 14, + CASE + 77 WHEN - + 73 + + 57 THEN + + 38 ELSE + 22 END AS col0
----
-5718
22

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT DISTINCT MIN( - ( + 34 ) ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT MIN ( - ( + 34 ) ) col0
----
-34

query I rowsort
SELECT - 85 + 76 * + 61
----
4551

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

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

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( - - 65, 31 )
----
65

query I rowsort
SELECT - - 1 + - ( 68 ) AS col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL + ( - - 40 ) DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + ( - - 40 ) / - 86
----
0

query I rowsort
SELECT - - 85 * - 63
----
-5355

query I rowsort
SELECT DISTINCT + - 43 * - + ( + + 49 ) + - - NULLIF ( 42, 20 )
----
2149

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT - 52 DIV + 2 + 29 + + 54
----
57

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - 52 / + 2 + 29 + + 54
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT CASE + - 8 WHEN + 0 + + 51 THEN NULL WHEN - COALESCE ( 49, 76, - 15 / - CASE + + 71 WHEN + + 57 THEN + ( + 57 ) WHEN - COALESCE ( + - MAX( DISTINCT 40 ), + + 39 ) + - 84 / + 53 + - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + - 49 ) - - COUNT( * ) + + COUNT( * ) / 42 THEN NULL ELSE - COALESCE ( + - 13, - 67 + + COUNT( * ) ) END AS col1
----
13

skipif mysql # not compatible
query I rowsort label-60
SELECT CASE + - 8 WHEN + 0 + + 51 THEN NULL WHEN - COALESCE ( 49, 76, - 15 / - CASE + + 71 WHEN + + 57 THEN + ( + 57 ) WHEN - COALESCE ( + - MAX ( DISTINCT 40 ), + + 39 ) + - 84 / + 53 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + - 49 ) - - COUNT ( * ) + + COUNT ( * ) / 42 THEN NULL ELSE - COALESCE ( + - 13, - 67 + + COUNT ( * ) ) END AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-61
SELECT ALL + 35 DIV - 73 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + 35 / - 73 + - COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT - 87 DIV 82 - + 52 * + 83 AS col2
----
-4317

skipif mysql # not compatible
query I rowsort label-62
SELECT - 87 / 82 - + 52 * + 83 AS col2
----
-4317

query I rowsort
SELECT ALL - 55 * - 33 AS col1
----
1815

query I rowsort
SELECT - - 33 + + 23 + - 18
----
38

query II rowsort
SELECT + + ( + 14 ), - 54 + + 57 col1
----
14
3

query I rowsort
SELECT + 84 * + + 71 + + 86
----
6050

onlyif mysql # aggregate syntax: 
query II rowsort label-67
SELECT + - 83 * + - ( + 83 ) - - + 84 AS col2, COUNT( * ) AS col2
----
6973
1

skipif mysql # not compatible
query II rowsort label-67
SELECT + - 83 * + - ( + 83 ) - - + 84 AS col2, COUNT ( * ) AS col2
----
6973
1

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - ( MAX( 87 ) ) + + + 33
----
-54

skipif mysql # not compatible
query I rowsort label-68
SELECT - ( MAX ( 87 ) ) + + + 33
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - 17 * SUM( - 24 ) - - 89 + ( + 55 )
----
552

skipif mysql # not compatible
query I rowsort label-69
SELECT - 17 * SUM ( - 24 ) - - 89 + ( + 55 )
----
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT ALL - 81 * + CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) + - NULLIF ( + - 37, 43 / - + ( 78 ) * + + 90 * + 33 - COUNT( * ) / - 21 )
----
-43

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - 81 * + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) + - NULLIF ( + - 37, 43 / - + ( 78 ) * + + 90 * + 33 - COUNT ( * ) / - 21 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL 56 * MIN( ALL - 95 ) + 34
----
-5286

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL 56 * MIN ( ALL - 95 ) + 34
----
-5286

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT + CASE - ( - 24 ) WHEN + - 67 THEN NULL WHEN - + 28 THEN + NULLIF ( - 27, + 29 ) - + + 44 WHEN - 49 + CAST( NULL AS SIGNED ) THEN NULL END + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT + CASE - ( - 24 ) WHEN + - 67 THEN NULL WHEN - + 28 THEN + NULLIF ( - 27, + 29 ) - + + 44 WHEN - 49 + CAST ( NULL AS INTEGER ) THEN NULL END + 88 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-75
SELECT - 38, CASE - MAX( DISTINCT - 89 ) WHEN - NULLIF ( NULLIF ( - 31, - 92 ), + 33 ) + 35 THEN - + COUNT( * ) / + 92 WHEN 77 + - + 97 THEN NULL WHEN - COUNT( * ) + 84 * - 98 THEN NULL END AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-75
SELECT - 38, CASE - MAX ( DISTINCT - 89 ) WHEN - NULLIF ( NULLIF ( - 31, - 92 ), + 33 ) + 35 THEN - + COUNT ( * ) / + 92 WHEN 77 + - + 97 THEN NULL WHEN - COUNT ( * ) + 84 * - 98 THEN NULL END AS col2
----
-38
NULL

query I rowsort
SELECT ALL 72 + - 56 AS col2
----
16

query II rowsort
SELECT 41 AS col0, - 13
----
41
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-78
SELECT + CAST( - 10 AS SIGNED ) + - 99 - - COUNT( * ) DIV + 27 + + 40 * 35 DIV 53, COUNT( * ) + 78 * + 36 AS col0
----
-83
2809

skipif mysql # not compatible
query II rowsort label-78
SELECT + CAST ( - 10 AS INTEGER ) + - 99 - - COUNT ( * ) / + 27 + + 40 * 35 / 53, COUNT ( * ) + 78 * + 36 AS col0
----
-83
2809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT DISTINCT + COALESCE ( 93, - COALESCE ( - 24, - 55 ), + 59, + CAST( NULL AS SIGNED ) ) * 67 AS col2
----
6231

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + COALESCE ( 93, - COALESCE ( - 24, - 55 ), + 59, + CAST ( NULL AS INTEGER ) ) * 67 AS col2
----
6231

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

query I rowsort
SELECT DISTINCT 71 - - + 95
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT + NULLIF ( - COUNT( * ), + + 20 ) * + 57
----
-57

skipif mysql # not compatible
query I rowsort label-82
SELECT + NULLIF ( - COUNT ( * ), + + 20 ) * + 57
----
-57

query I rowsort
SELECT - CASE NULLIF ( + 77, 59 + 28 * 58 ) WHEN 37 - - 1 THEN 66 * - 27 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-85
SELECT + CASE 15 WHEN + 61 * COUNT( * ) + - 66 THEN NULL WHEN COALESCE ( COUNT( * ), + 11 + - 56 ) THEN 75 * + ( COUNT( * ) / NULLIF ( + COALESCE ( + 58, 53, CASE COUNT( * ) WHEN 2 / 37 THEN 7 + + ( + COUNT( * ) + - 82 ) WHEN - ( CAST( NULL AS SIGNED ) ) * CASE - 99 WHEN 12 - - NULLIF ( 98 + - AVG ( DISTINCT + 85 ), - 53 ) THEN NULL WHEN - 91 THEN - 82 ELSE - 42 END THEN + COUNT( * ) ELSE - 90 * + 65 END * - 58 + + 33 * 35 ) * 50, - COUNT( DISTINCT 32 ) ) ) + 83 ELSE NULL END * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT + CASE 15 WHEN + 61 * COUNT ( * ) + - 66 THEN NULL WHEN COALESCE ( COUNT ( * ), + 11 + - 56 ) THEN 75 * + ( COUNT ( * ) / NULLIF ( + COALESCE ( + 58, 53, CASE COUNT ( * ) WHEN 2 / 37 THEN 7 + + ( + COUNT ( * ) + - 82 ) WHEN - ( CAST ( NULL AS INTEGER ) ) * CASE - 99 WHEN 12 - - NULLIF ( 98 + - AVG ( DISTINCT + 85 ), - 53 ) THEN NULL WHEN - 91 THEN - 82 ELSE - 42 END THEN + COUNT ( * ) ELSE - 90 * + 65 END * - 58 + + 33 * 35 ) * 50, - COUNT ( DISTINCT 32 ) ) ) + 83 ELSE NULL END * 18 AS col0
----
NULL

query I rowsort
SELECT + 40 - + 45
----
-5

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

skipif mysql # not compatible
query I rowsort label-87
SELECT + CAST ( NULL AS INTEGER ) + 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL NULLIF ( ( + 57 ), + 9 * - CASE ( 56 ) WHEN + SUM( + 96 ) + + 10 * 97 THEN NULL ELSE ( 27 ) * - 34 END ) * CASE 61 + + 27 WHEN + 87 * 58 THEN - ( 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL NULLIF ( ( + 57 ), + 9 * - CASE ( 56 ) WHEN + SUM ( + 96 ) + + 10 * 97 THEN NULL ELSE ( 27 ) * - 34 END ) * CASE 61 + + 27 WHEN + 87 * 58 THEN - ( 86 ) END
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + ( 65 ) col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL CASE - 87 WHEN - 5 * - 19 + - COUNT( * ) THEN + 35 ELSE COUNT( * ) * - 80 END * 18 AS col1
----
-1440

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL CASE - 87 WHEN - 5 * - 19 + - COUNT ( * ) THEN + 35 ELSE COUNT ( * ) * - 80 END * 18 AS col1
----
-1440

query I rowsort
SELECT - 4 * 84 AS col1
----
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT - 63 - - 53 DIV - 81 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-94
SELECT - 63 - - 53 / - 81 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-95
SELECT - 56 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-95
SELECT - 56 / 76
----
0

query I rowsort
SELECT + 68 * 63 AS col0
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT + 27 + COALESCE ( + COUNT( * ), - 54 )
----
28

skipif mysql # not compatible
query I rowsort label-97
SELECT + 27 + COALESCE ( + COUNT ( * ), - 54 )
----
28

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

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

query I rowsort
SELECT ALL - 57 * 18 AS col0
----
-1026

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT - 20 DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-100
SELECT - 20 / 56 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-101
SELECT ALL - COALESCE ( + 7, 13 + 22, 68 + + CAST( NULL AS SIGNED ) ) * MAX( ALL + 98 ) + NULLIF ( 7 + ( CASE + 35 WHEN - ( - 33 ) THEN 11 / - 43 + + 9 * - 62 END ), + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - COALESCE ( + 7, 13 + 22, 68 + + CAST ( NULL AS INTEGER ) ) * MAX ( ALL + 98 ) + NULLIF ( 7 + ( CASE + 35 WHEN - ( - 33 ) THEN 11 / - 43 + + 9 * - 62 END ), + 96 )
----
NULL

query I rowsort
SELECT ALL 77 * 40 + - 38 * - 81 AS col2
----
6158

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT DISTINCT 44 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT 44 / - 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT ALL 83 * + 60 + + 59 DIV 45
----
4981

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL 83 * + 60 + + 59 / 45
----
4981

query I rowsort
SELECT ( - 60 ) AS col0
----
-60

query I rowsort
SELECT DISTINCT - 21 * + 71 + - 70 * - 71 AS col2
----
3479

query I rowsort
SELECT DISTINCT + 75 * 50
----
3750

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT - NULLIF ( 13, - CAST( NULL AS SIGNED ) * 86 + - MAX( 55 ) ) + CASE 15 WHEN - 5 THEN NULL ELSE 7 END
----
-6

skipif mysql # not compatible
query I rowsort label-109
SELECT - NULLIF ( 13, - CAST ( NULL AS INTEGER ) * 86 + - MAX ( 55 ) ) + CASE 15 WHEN - 5 THEN NULL ELSE 7 END
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT COALESCE ( + 70, COALESCE ( COALESCE ( - MIN( DISTINCT - 52 ), ( 93 ) ), 95 ) )
----
70

skipif mysql # not compatible
query I rowsort label-110
SELECT COALESCE ( + 70, COALESCE ( COALESCE ( - MIN ( DISTINCT - 52 ), ( 93 ) ), 95 ) )
----
70

query I rowsort
SELECT COALESCE ( 77, - 41 + - 30 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-112
SELECT ALL ( + COALESCE ( - COUNT( * ), - 56, + MAX( ALL - 85 ), NULLIF ( 10, + 41 ) ) ) * + COUNT( * ) + + 42 * ( COUNT( * ) - NULLIF ( - MAX( ALL 58 ), NULLIF ( COUNT( * ), + 47 + + 16 ) * - COALESCE ( COALESCE ( + CAST( - 9 AS DECIMAL ), + COUNT( * ) / ( + 18 / 68 ), + 67 ) * + 51 - + 62, 98 * + 81 + - COUNT( * ) ) ) ) AS col1
----
2477

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL ( + COALESCE ( - COUNT ( * ), - 56, + MAX ( ALL - 85 ), NULLIF ( 10, + 41 ) ) ) * + COUNT ( * ) + + 42 * ( COUNT ( * ) - NULLIF ( - MAX ( ALL 58 ), NULLIF ( COUNT ( * ), + 47 + + 16 ) * - COALESCE ( COALESCE ( + CAST ( - 9 AS REAL ), + COUNT ( * ) / ( + 18 / 68 ), + 67 ) * + 51 - + 62, 98 * + 81 + - COUNT ( * ) ) ) ) AS col1
----
2477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT - MIN( + 59 ) + 48 DIV - COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-113
SELECT - MIN ( + 59 ) + 48 / - COUNT ( * )
----
-107

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

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

query I rowsort
SELECT - 54 + - ( 3 ) * 23 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT CASE - 41 WHEN - 35 THEN - 51 * + COUNT( * ) WHEN 26 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT CASE - 41 WHEN - 35 THEN - 51 * + COUNT ( * ) WHEN 26 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) * - 13 THEN - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) * - 13 THEN - 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT - COUNT( * ) + + 97 AS col2
----
96

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

query I rowsort
SELECT ALL ( + ( ( 35 ) ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL 76 * 64 - - 24 * COUNT( * )
----
4888

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL 76 * 64 - - 24 * COUNT ( * )
----
4888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-121
SELECT DISTINCT CAST( CASE + 24 WHEN - ( + 50 ) THEN NULL ELSE + 12 + 32 END AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT CAST ( CASE + 24 WHEN - ( + 50 ) THEN NULL ELSE + 12 + 32 END AS INTEGER ) AS col1
----
44

query I rowsort
SELECT 82 + + 84 AS col2
----
166

query I rowsort
SELECT DISTINCT 12 * 14 col2
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT DISTINCT - 41 DIV 19 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT - 41 / 19 AS col2
----
-2

query I rowsort
SELECT 1 + 67
----
68

query I rowsort
SELECT ALL - 23 * NULLIF ( + 7, 30 * 85 ) AS col2
----
-161

query I rowsort
SELECT 72 + 93 * - 77
----
-7089

query I rowsort
SELECT - 76 * 93 AS col2
----
-7068

query I rowsort
SELECT - 80 + - 29 col1
----
-109

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

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT + 42 DIV + ( + 59 * 76 + 82 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT + 42 / + ( + 59 * 76 + 82 ) col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL CASE - 47 WHEN - COUNT( * ) + + 11 THEN NULL WHEN - 42 THEN 63 / + 28 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL CASE - 47 WHEN - COUNT ( * ) + + 11 THEN NULL WHEN - 42 THEN 63 / + 28 ELSE COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT ALL - 13 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - 13 / 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT 22 + NULLIF ( COUNT( * ), - 50 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-135
SELECT 22 + NULLIF ( COUNT ( * ), - 50 ) AS col2
----
23

query I rowsort
SELECT - 92 * 44
----
-4048

query I rowsort
SELECT DISTINCT 62 + 42
----
104

query I rowsort
SELECT ALL 66 + + 94
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT DISTINCT - CASE WHEN NOT + COALESCE ( + CAST( ( 16 ) AS SIGNED ), + 92 + - 66, CAST( NULL AS SIGNED ) * - 47 ) NOT BETWEEN NULLIF ( 98, 67 ) * + 63 AND COUNT( * ) + 21 THEN CASE 84 WHEN + 36 THEN NULLIF ( 2, - ( 57 ) ) + 72 * 16 WHEN - CAST( NULL AS SIGNED ) THEN NULL END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - CASE WHEN NOT + COALESCE ( + CAST ( ( 16 ) AS INTEGER ), + 92 + - 66, CAST ( NULL AS INTEGER ) * - 47 ) NOT BETWEEN NULLIF ( 98, 67 ) * + 63 AND COUNT ( * ) + 21 THEN CASE 84 WHEN + 36 THEN NULLIF ( 2, - ( 57 ) ) + 72 * 16 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-140
SELECT ALL - MAX( - 9 ) * + COALESCE ( NULLIF ( 74, - 96 * 61 ), + 21 + 34 DIV + 8 )
----
666

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL - MAX ( - 9 ) * + COALESCE ( NULLIF ( 74, - 96 * 61 ), + 21 + 34 / + 8 )
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL + 92 + COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + 92 + COUNT ( * ) col1
----
93

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

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 52
----
NULL

query I rowsort
SELECT DISTINCT 11 + 88
----
99

query I rowsort
SELECT ALL - 11 + 54
----
43

query I rowsort
SELECT ALL - 0 * 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL + 98 + COUNT( * ) + 20 * - 33 AS col0
----
-561

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL + 98 + COUNT ( * ) + 20 * - 33 AS col0
----
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ( + 51 ) + - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-147
SELECT ( + 51 ) + - COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT ( - 58 ) + - COUNT( * ) * 28
----
-86

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT ( - 58 ) + - COUNT ( * ) * 28
----
-86

query I rowsort
SELECT ALL 73 + - + 86
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL 31 + + - 80 - + COUNT( * ) * - SUM( + 1 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL 31 + + - 80 - + COUNT ( * ) * - SUM ( + 1 ) AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-151
SELECT 99 * 65 DIV CAST( - 4 AS SIGNED ) - 38 AS col0
----
-1646

skipif mysql # not compatible
query I rowsort label-151
SELECT 99 * 65 / CAST ( - 4 AS INTEGER ) - 38 AS col0
----
-1646

query I rowsort
SELECT 86 * - 44 * + 2 AS col0
----
-7568

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT ALL - 26 DIV + + 38 * 32
----
0

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - 26 / + + 38 * 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-154
SELECT DISTINCT - COALESCE ( - 45, 83 * CAST( 3 AS SIGNED ), + 28 + COUNT( DISTINCT 53 ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT - COALESCE ( - 45, 83 * CAST ( 3 AS INTEGER ), + 28 + COUNT ( DISTINCT 53 ) ) AS col0
----
45

query I rowsort
SELECT DISTINCT - 8 * 74 AS col2
----
-592

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

query I rowsort
SELECT 76 * + 78
----
5928

query I rowsort
SELECT DISTINCT + 36 - + 65 + 71 * - 94 AS col1
----
-6703

query I rowsort
SELECT 85 * - + 48 AS col1
----
-4080

query I rowsort
SELECT DISTINCT + 9 * + 85 AS col0
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL - 54 * COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - 54 * COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT 63 * - 25 AS col0
----
-1575

query I rowsort
SELECT DISTINCT - 37 * - 60
----
2220

query I rowsort
SELECT 17 + - - 8 + 81
----
106

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

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

query I rowsort
SELECT + 31 * 69 - - 42
----
2181

query I rowsort
SELECT ALL + - 94 + + + ( - NULLIF ( 90, - 69 ) ) + 67 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT DISTINCT + CASE + - CASE - CASE COUNT( * ) WHEN 32 THEN - COUNT( * ) WHEN 27 * - MIN( DISTINCT 53 ) THEN + 89 * 39 + COUNT( * ) * + 98 WHEN + 73 THEN NULL ELSE NULL END WHEN - NULLIF ( - 90, 52 ) THEN - 95 * COUNT( * ) ELSE - 32 END WHEN 51 THEN + 18 / + 22 + 25 WHEN + 35 THEN 70 END * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT + CASE + - CASE - CASE COUNT ( * ) WHEN 32 THEN - COUNT ( * ) WHEN 27 * - MIN ( DISTINCT 53 ) THEN + 89 * 39 + COUNT ( * ) * + 98 WHEN + 73 THEN NULL ELSE NULL END WHEN - NULLIF ( - 90, 52 ) THEN - 95 * COUNT ( * ) ELSE - 32 END WHEN 51 THEN + 18 / + 22 + 25 WHEN + 35 THEN 70 END * 78 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT ALL 98 + - 61 + 1 DIV - 57 col0
----
37

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL 98 + - 61 + 1 / - 57 col0
----
37

query I rowsort
SELECT 37 * + 97
----
3589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-171
SELECT SUM( + 11 ) DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT SUM ( + 11 ) / 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL + - MIN( DISTINCT 74 ) + MIN( 26 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + - MIN ( DISTINCT 74 ) + MIN ( 26 ) AS col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT 29 DIV - - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-173
SELECT 29 / - - 89 AS col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL CASE + COUNT( * ) WHEN + COUNT( * ) - 40 THEN 53 ELSE - 12 END AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL CASE + COUNT ( * ) WHEN + COUNT ( * ) - 40 THEN 53 ELSE - 12 END AS col1
----
-12

query I rowsort
SELECT ALL + 32 + + + ( + 31 ) AS col1
----
63

query I rowsort
SELECT + 47 + + 62
----
109

query I rowsort
SELECT ALL - 21 + - 93 col2
----
-114

query I rowsort
SELECT DISTINCT + 63 * + 39 AS col2
----
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-181
SELECT COUNT( * ) + + NULLIF ( + COALESCE ( + 91, + CAST( NULL AS SIGNED ), 8 ), + 46 * COUNT( * ) ) + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-181
SELECT COUNT ( * ) + + NULLIF ( + COALESCE ( + 91, + CAST ( NULL AS INTEGER ), 8 ), + 46 * COUNT ( * ) ) + COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL - 48 * + COUNT( * ) + + 36 + - ( - 92 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - 48 * + COUNT ( * ) + + 36 + - ( - 92 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - MAX( DISTINCT - 20 ) * 55 col1
----
1100

skipif mysql # not compatible
query I rowsort label-183
SELECT - MAX ( DISTINCT - 20 ) * 55 col1
----
1100

query I rowsort
SELECT ALL + 98 * - - 38 + ( - 45 ) AS col2
----
3679

query I rowsort
SELECT ALL - - NULLIF ( - ( + 64 ), + 61 ) AS col1
----
-64

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

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

query II rowsort
SELECT ALL - 96 AS col0, + 74 AS col1
----
-96
74

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL 43 * - COUNT( * ) - 26
----
-69

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 43 * - COUNT ( * ) - 26
----
-69

query I rowsort
SELECT 41 * 9 * - 8 AS col2
----
-2952

onlyif mysql # aggregate syntax: 
query II rowsort label-190
SELECT ALL - 21, COUNT( ALL + 58 ) col0
----
-21
1

skipif mysql # not compatible
query II rowsort label-190
SELECT ALL - 21, COUNT ( ALL + 58 ) col0
----
-21
1

query I rowsort
SELECT DISTINCT 84 * + COALESCE ( - - 99, - 24 + 64 ) AS col1
----
8316

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

skipif mysql # not compatible
query I rowsort label-192
SELECT MAX ( ALL - 49 )
----
-49

query I rowsort
SELECT ALL 19 * 78 AS col1
----
1482

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-195
SELECT ALL + 11 AS col1, + 93 DIV + 84 AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-195
SELECT ALL + 11 AS col1, + 93 / + 84 AS col0
----
11
1

query II rowsort
SELECT ALL + 56 AS col0, 50 AS col1
----
56
50

query I rowsort
SELECT + COALESCE ( 66, - 57, 72 )
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT - 30 * MAX( + 16 ) AS col2
----
-480

skipif mysql # not compatible
query I rowsort label-199
SELECT - 30 * MAX ( + 16 ) AS col2
----
-480

query I rowsort
SELECT + 92 * + + 37 + + 90
----
3494

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT ALL COUNT( * ) AS col2, CASE + COUNT( * ) WHEN 94 THEN 38 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-201
SELECT ALL COUNT ( * ) AS col2, CASE + COUNT ( * ) WHEN 94 THEN 38 END AS col2
----
1
NULL

query I rowsort
SELECT ALL + + 34 + - 23
----
11

query I rowsort
SELECT - 29 * + + 40
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL 99 + + - 8 * - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL 99 + + - 8 * - - COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT - 18 + - + ( - 91 ) * 75
----
6807

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT - - NULLIF ( 80, + 9 + 20 ) * - ( 12 * COUNT( * ) )
----
-960

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - - NULLIF ( 80, + 9 + 20 ) * - ( 12 * COUNT ( * ) )
----
-960

query I rowsort
SELECT - + 91 + + 37
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL + - 42 + - - MIN( + + 49 ) + 95 * COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + - 42 + - - MIN ( + + 49 ) + 95 * COUNT ( * )
----
102

query I rowsort
SELECT DISTINCT - 27 * + + 92
----
-2484

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

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

query I rowsort
SELECT + + 5 + + 57
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT DISTINCT - - COUNT( * ) * 71 + + + 90
----
161

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT - - COUNT ( * ) * 71 + + + 90
----
161

query I rowsort
SELECT ALL + - 67 + - - 74 AS col0
----
7

query I rowsort
SELECT - - 30 + 15 col2
----
45

query I rowsort
SELECT - 88 + + - 58 + - + 49
----
-195

query I rowsort
SELECT - + 55 + - 70 AS col2
----
-125

query I rowsort
SELECT NULLIF ( 80, - - 30 * 28 + + 81 )
----
80

query I rowsort
SELECT DISTINCT - + 24 - ( + 61 )
----
-85

query I rowsort
SELECT ALL - 78 * - - ( + 57 ) + - 59
----
-4505

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - + COALESCE ( + 37, + 64 + 21, COALESCE ( 7, + 22 + - 52 * 49, 77 ) ) + COUNT( * ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-223
SELECT - + COALESCE ( + 37, + 64 + 21, COALESCE ( 7, + 22 + - 52 * 49, 77 ) ) + COUNT ( * ) col0
----
-36

query I rowsort
SELECT - 38 * + - NULLIF ( + + 33, - 63 ) AS col1
----
1254

query II rowsort
SELECT ALL + 26 * + 70, + 78 col1
----
1820
78

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - COUNT( 62 ) + - + 80 + - 88 * + COUNT( * ) AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-226
SELECT - COUNT ( 62 ) + - + 80 + - 88 * + COUNT ( * ) AS col2
----
-169

query I rowsort
SELECT 26 * - 85 + + 51 + + COALESCE ( - NULLIF ( 36, 75 * 23 ), 89 ) * 49
----
-3923

query I rowsort
SELECT - COALESCE ( - - 73, 7 ) * - - 59
----
-4307

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL 26 * + 73 * COUNT( * ) - - NULLIF ( 41, + 35 ) AS col1
----
1939

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL 26 * + 73 * COUNT ( * ) - - NULLIF ( 41, + 35 ) AS col1
----
1939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT - 84 * - 78 / + NULLIF ( MIN( ALL 5 ), 4 ) * ( - 26 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT - 84 * - 78 / + NULLIF ( MIN ( ALL 5 ), 4 ) * ( - 26 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT 64 * - 16 + + + COUNT( * ) + 93 + + 93 DIV 83 col1
----
-929

skipif mysql # not compatible
query I rowsort label-231
SELECT 64 * - 16 + + + COUNT ( * ) + 93 + + 93 / 83 col1
----
-929

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT COALESCE ( COUNT( * ), - - 97, + + 9, COUNT( * ) * 46 + + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-232
SELECT COALESCE ( COUNT ( * ), - - 97, + + 9, COUNT ( * ) * 46 + + 8 )
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT NULLIF ( + + 99, + 52 * - CAST( - ( - 37 ) AS SIGNED ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-234
SELECT NULLIF ( + + 99, + 52 * - CAST ( - ( - 37 ) AS INTEGER ) ) AS col1
----
99

query I rowsort
SELECT 91 * - 91 + + 1 AS col0
----
-8280

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT + COALESCE ( + + ( - COALESCE ( 95, 86 + 59 ) ), 63 - - COUNT( * ), - NULLIF ( + 89, 0 * 61 ) + 24 ) * - 55 AS col0
----
5225

skipif mysql # not compatible
query I rowsort label-236
SELECT + COALESCE ( + + ( - COALESCE ( 95, 86 + 59 ) ), 63 - - COUNT ( * ), - NULLIF ( + 89, 0 * 61 ) + 24 ) * - 55 AS col0
----
5225

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT ALL 44 * 62 + SUM( + - 75 ) - + 44 DIV - 5 AS col0
----
2661

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL 44 * 62 + SUM ( + - 75 ) - + 44 / - 5 AS col0
----
2661

query I rowsort
SELECT CASE - 79 WHEN + 93 THEN + + 72 * 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + - 54 * + 6 * - 65 + 76 + NULLIF ( + COUNT( * ) - + 48 * - 92, + 31 )
----
25553

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + - 54 * + 6 * - 65 + 76 + NULLIF ( + COUNT ( * ) - + 48 * - 92, + 31 )
----
25553

query I rowsort
SELECT + + 95 * - 19
----
-1805

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT MIN( ALL + 91 ), COUNT( DISTINCT - - 5 ) + 61 col2
----
91
62

skipif mysql # not compatible
query II rowsort label-242
SELECT MIN ( ALL + 91 ), COUNT ( DISTINCT - - 5 ) + 61 col2
----
91
62

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL + 41 * 0 + + + COUNT( - 2 ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + 41 * 0 + + + COUNT ( - 2 ) + - 80
----
-79

query I rowsort
SELECT + 89 * 21
----
1869

query I rowsort
SELECT ALL - 26 * 70 * 92 * + 4 + 63 + + ( 17 )
----
-669680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT DISTINCT + 91 * - + CAST( - 57 AS SIGNED ) * - 70 + 56 AS col2
----
-363034

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + 91 * - + CAST ( - 57 AS INTEGER ) * - 70 + 56 AS col2
----
-363034

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT + 16 DIV - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT + 16 / - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ALL + CASE - + 49 WHEN - NULLIF ( + + 17, + ( + 72 ) - COUNT( * ) ) THEN + 89 * + 84 + 92 WHEN - 27 * + 41 + + 38 THEN 14 END + - 39 / 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + CASE - + 49 WHEN - NULLIF ( + + 17, + ( + 72 ) - COUNT ( * ) ) THEN + 89 * + 84 + 92 WHEN - 27 * + 41 + + 38 THEN 14 END + - 39 / 24 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT + + 68 * 88 - COUNT( DISTINCT 12 )
----
5983

skipif mysql # not compatible
query I rowsort label-249
SELECT + + 68 * 88 - COUNT ( DISTINCT 12 )
----
5983

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

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT SUM ( DISTINCT - 89 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-251
SELECT DISTINCT + COUNT( * ) * - 31, + MAX( COALESCE ( 52, 76 ) ) DIV COUNT( * ) AS col0
----
-31
52

skipif mysql # not compatible
query II rowsort label-251
SELECT DISTINCT + COUNT ( * ) * - 31, + MAX ( COALESCE ( 52, 76 ) ) / COUNT ( * ) AS col0
----
-31
52

query I rowsort
SELECT ALL + ( 99 ) * + + 90
----
8910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-253
SELECT - + 18 DIV COUNT( - 57 ) - 46 + 75 DIV - 62
----
-65

skipif mysql # not compatible
query I rowsort label-253
SELECT - + 18 / COUNT ( - 57 ) - 46 + 75 / - 62
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT ALL + 13 * - COUNT( * ) DIV 43 * - COUNT( ALL 23 ) DIV MIN( DISTINCT 92 * - 94 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + 13 * - COUNT ( * ) / 43 * - COUNT ( ALL 23 ) / MIN ( DISTINCT 92 * - 94 ) col1
----
0

query I rowsort
SELECT ALL - 38 - + 24 + - + 24
----
-86

query I rowsort
SELECT DISTINCT - 80 * + - 48 AS col2
----
3840

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

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

query I rowsort
SELECT + 18 + + 98 + - 16
----
100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT + COUNT( * ) + CASE - - 11 WHEN + 12 - + ( COUNT( * ) ) THEN 15 + 29 * - 58 WHEN - 90 THEN - 82 ELSE 25 END AS col1
----
-1666

skipif mysql # not compatible
query I rowsort label-260
SELECT + COUNT ( * ) + CASE - - 11 WHEN + 12 - + ( COUNT ( * ) ) THEN 15 + 29 * - 58 WHEN - 90 THEN - 82 ELSE 25 END AS col1
----
-1666

query I rowsort
SELECT - ( 65 ) * + 28 * 7 + + 94 * 35
----
-9450

query I rowsort
SELECT - 90 + + + 79
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT 76 * + - MAX( DISTINCT 91 ) * + 72
----
-497952

skipif mysql # not compatible
query I rowsort label-263
SELECT 76 * + - MAX ( DISTINCT 91 ) * + 72
----
-497952

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

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), COUNT ( * ) ) AS col2
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL + 95 + 73 + - + CASE + CASE - 32 WHEN CASE - 13 WHEN 97 THEN AVG ( DISTINCT CAST( + 27 AS SIGNED ) ) ELSE NULL END THEN - 51 END WHEN 2 * COUNT( * ) THEN NULL WHEN NULLIF ( 73, - AVG ( - 97 ) ) + 16 THEN NULL ELSE + COUNT( * ) + MIN( ALL - 57 ) END + 90 * + MIN( DISTINCT + 60 * + 39 )
----
210824

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + 95 + 73 + - + CASE + CASE - 32 WHEN CASE - 13 WHEN 97 THEN AVG ( DISTINCT CAST ( + 27 AS INTEGER ) ) ELSE NULL END THEN - 51 END WHEN 2 * COUNT ( * ) THEN NULL WHEN NULLIF ( 73, - AVG ( - 97 ) ) + 16 THEN NULL ELSE + COUNT ( * ) + MIN ( ALL - 57 ) END + 90 * + MIN ( DISTINCT + 60 * + 39 )
----
210824

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL - 32 + + 14 + AVG ( + 83 ) * - ( + CASE + 79 WHEN COUNT( DISTINCT + 19 ) THEN - 25 * 62 END ) * 9 + + ( + COUNT( 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - 32 + + 14 + AVG ( + 83 ) * - ( + CASE + 79 WHEN COUNT ( DISTINCT + 19 ) THEN - 25 * 62 END ) * 9 + + ( + COUNT ( 4 ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - 50 + + COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT DISTINCT - 60 + - + COUNT( * ) + - 65 col2, - 30 + - - 72 AS col0
----
-126
42

skipif mysql # not compatible
query II rowsort label-269
SELECT DISTINCT - 60 + - + COUNT ( * ) + - 65 col2, - 30 + - - 72 AS col0
----
-126
42

query I rowsort
SELECT ALL - CASE + + 44 WHEN + 55 / - CASE - ( 55 ) WHEN AVG ( - 59 ) + CASE + 0 WHEN - 70 THEN + 3 END THEN + 54 ELSE 47 - + NULLIF ( - ( + 18 ), COALESCE ( 4, 2 * 70 ) * + 46 ) / 51 END + - 26 THEN 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL 82 + ( + MIN( ALL + 64 ) )
----
146

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL 82 + ( + MIN ( ALL + 64 ) )
----
146

query I rowsort
SELECT ALL - CASE + 33 WHEN - + 11 THEN + - 80 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT 42 * - COALESCE ( - 87, 83, COUNT( * ) ) * 89 + - 63 AS col1
----
325143

skipif mysql # not compatible
query I rowsort label-273
SELECT 42 * - COALESCE ( - 87, 83, COUNT ( * ) ) * 89 + - 63 AS col1
----
325143

query I rowsort
SELECT - 59 + - 75 + 88 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-275
SELECT + 38, - 37 + - 91 + - + 60 DIV - 7 + 44 AS col2
----
38
-76

skipif mysql # not compatible
query II rowsort label-275
SELECT + 38, - 37 + - 91 + - + 60 / - 7 + 44 AS col2
----
38
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT COUNT( + + ( - + 28 ) ) col0, + 83 * 97 * + 68 AS col2
----
1
547468

skipif mysql # not compatible
query II rowsort label-276
SELECT COUNT ( + + ( - + 28 ) ) col0, + 83 * 97 * + 68 AS col2
----
1
547468

query I rowsort
SELECT + 56 - - + 73 + + 40 * 55
----
2329

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

query I rowsort
SELECT - COALESCE ( + - 78, + 56 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-280
SELECT DISTINCT - + ( - COUNT( * ) ) - 10, + 50 AS col1
----
-9
50

skipif mysql # not compatible
query II rowsort label-280
SELECT DISTINCT - + ( - COUNT ( * ) ) - 10, + 50 AS col1
----
-9
50

query I rowsort
SELECT 91 + - 38 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - 84 * COUNT( * ) * COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - 84 * COUNT ( * ) * COUNT ( * ) AS col2
----
-84

query II rowsort
SELECT 94, - 90 AS col2
----
94
-90

query I rowsort
SELECT - 50 + + 71
----
21

query I rowsort
SELECT - 89 * + - 77
----
6853

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-286
SELECT 83 + CAST( 70 AS SIGNED ) * 75 DIV - + 8 AS col2
----
-573

skipif mysql # not compatible
query I rowsort label-286
SELECT 83 + CAST ( 70 AS INTEGER ) * 75 / - + 8 AS col2
----
-573

query I rowsort
SELECT - NULLIF ( 6, - 68 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-288
SELECT 29 + - CASE - + COUNT( * ) WHEN - 66 THEN - 34 + + COALESCE ( 29 + - 35, AVG ( - 38 ) - + 73 * + 35 ) WHEN + 13 + 27 THEN CAST( NULL AS SIGNED ) + MIN( ALL 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT 29 + - CASE - + COUNT ( * ) WHEN - 66 THEN - 34 + + COALESCE ( 29 + - 35, AVG ( - 38 ) - + 73 * + 35 ) WHEN + 13 + 27 THEN CAST ( NULL AS INTEGER ) + MIN ( ALL 30 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT CASE - 82 WHEN - 52 THEN 98 ELSE NULL END + - - MIN( DISTINCT - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT CASE - 82 WHEN - 52 THEN 98 ELSE NULL END + - - MIN ( DISTINCT - 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT + 25 * + + 27 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT + 25 * + + 27 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT - 66 AS col2, 5 * - NULLIF ( - - 76, + + 24 * - - COUNT( 90 ) - - COUNT( * ) / MIN( 71 ) ) AS col0
----
-66
-380

skipif mysql # not compatible
query II rowsort label-291
SELECT - 66 AS col2, 5 * - NULLIF ( - - 76, + + 24 * - - COUNT ( 90 ) - - COUNT ( * ) / MIN ( 71 ) ) AS col0
----
-66
-380

query I rowsort
SELECT 70 * - - 56
----
3920

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT ALL 73 DIV - 23 col1
----
-3

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL 73 / - 23 col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL + 9 * + CAST( - 72 AS SIGNED ) col2
----
-648

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + 9 * + CAST ( - 72 AS INTEGER ) col2
----
-648

query II rowsort
SELECT - 75 AS col0, + 9 * + 9 AS col2
----
-75
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-296
SELECT CASE 43 WHEN 17 THEN NULL WHEN + 90 THEN NULL ELSE SUM( ALL - + 58 ) DIV 11 END * - 76 AS col1
----
380

skipif mysql # not compatible
query I rowsort label-296
SELECT CASE 43 WHEN 17 THEN NULL WHEN + 90 THEN NULL ELSE SUM ( ALL - + 58 ) / 11 END * - 76 AS col1
----
380

query I rowsort
SELECT 95 + ( - 17 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT 73, COUNT( * ) col2
----
73
1

skipif mysql # not compatible
query II rowsort label-298
SELECT 73, COUNT ( * ) col2
----
73
1

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT 1 DIV - 97 * - 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT 1 / - 97 * - 71 col2
----
0

query I rowsort
SELECT + 37 * + - 45 - - + 23 + + + 52 - + - CASE - 14 WHEN - 39 * 90 THEN NULLIF ( 4, - CASE - 34 WHEN + ( + 87 ) THEN NULL ELSE 31 END ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-302
SELECT CAST( 28 AS SIGNED ) + - MIN( - 94 ) DIV + - 31 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-302
SELECT CAST ( 28 AS INTEGER ) + - MIN ( - 94 ) / + - 31 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT + COUNT( - 57 ) + + 47 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT + COUNT ( - 57 ) + + 47 AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT ALL - 56, MIN( ALL - 1 ) AS col2
----
-56
-1

skipif mysql # not compatible
query II rowsort label-304
SELECT ALL - 56, MIN ( ALL - 1 ) AS col2
----
-56
-1

query I rowsort
SELECT ALL 24 + + ( 78 ) * - - 65
----
5094

query II rowsort
SELECT DISTINCT - 43, 32 * 18 col0
----
-43
576

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT 17 + + 35 * + - COUNT( * ) * - CASE - 35 WHEN + 46 * 11 THEN 37 WHEN 7 THEN NULL ELSE ( + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-308
SELECT 17 + + 35 * + - COUNT ( * ) * - CASE - 35 WHEN + 46 * 11 THEN 37 WHEN 7 THEN NULL ELSE ( + CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-309
SELECT DISTINCT - CASE 2 WHEN - + CASE - 79 WHEN 16 - - + 93 * - 84 THEN 4 * 71 ELSE NULL END * ( + COALESCE ( 25, 63 * COUNT( * ) + 75 ) ) THEN 49 WHEN CAST( NULL AS DECIMAL ) + 90 THEN 62 ELSE + 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT - CASE 2 WHEN - + CASE - 79 WHEN 16 - - + 93 * - 84 THEN 4 * 71 ELSE NULL END * ( + COALESCE ( 25, 63 * COUNT ( * ) + 75 ) ) THEN 49 WHEN CAST ( NULL AS REAL ) + 90 THEN 62 ELSE + 56 END
----
-56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT 26 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT 26 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 97 AS col2, - 63
----
97
-63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-313
SELECT ALL - 1 AS col0, - 96 * 62 * - CAST( NULL AS DECIMAL ), - 2 * + + CAST( NULL AS SIGNED ) + CASE 36 + + 84 WHEN + 60 THEN 45 WHEN ( - 16 ) - 55 THEN NULL WHEN + 16 THEN NULL END
----
-1
NULL
NULL

skipif mysql # not compatible
query III rowsort label-313
SELECT ALL - 1 AS col0, - 96 * 62 * - CAST ( NULL AS REAL ), - 2 * + + CAST ( NULL AS INTEGER ) + CASE 36 + + 84 WHEN + 60 THEN 45 WHEN ( - 16 ) - 55 THEN NULL WHEN + 16 THEN NULL END
----
-1
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT + + 44 AS col2, COALESCE ( - 80, - MIN( 96 ) - + 85 + 50 * ( - 4 ) )
----
44
-80

skipif mysql # not compatible
query II rowsort label-314
SELECT + + 44 AS col2, COALESCE ( - 80, - MIN ( 96 ) - + 85 + 50 * ( - 4 ) )
----
44
-80

query I rowsort
SELECT 60 * - ( + 54 )
----
-3240

onlyif mysql # aggregate syntax: 
query III rowsort label-316
SELECT 48 AS col0, 53 AS col0, - COUNT( * )
----
48
53
-1

skipif mysql # not compatible
query III rowsort label-316
SELECT 48 AS col0, 53 AS col0, - COUNT ( * )
----
48
53
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL - MIN( - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - MIN ( - 23 )
----
23

query I rowsort
SELECT ALL - NULLIF ( 41, + 22 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + ( + + COUNT( * ) ) * - + 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-320
SELECT + ( + + COUNT ( * ) ) * - + 65 AS col0
----
-65

query I rowsort
SELECT - 7 / - + 50 * + CASE - 13 WHEN - 78 THEN - 30 END * + 41 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 13, + + 77 ) * - ( 32 ) AS col2
----
-416

query II rowsort
SELECT + 62 AS col1, 60
----
62
60

query II rowsort
SELECT ALL - 18 AS col2, 68 * + + 94
----
-18
6392

query II rowsort
SELECT DISTINCT + 34 AS col1, + 11 AS col2
----
34
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-326
SELECT + COUNT( + + 92 ) DIV + - ( + ( 60 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-326
SELECT + COUNT ( + + 92 ) / + - ( + ( 60 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT - MIN( + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-327
SELECT - MIN ( + 68 ) AS col0
----
-68

query II rowsort
SELECT ALL 74 AS col2, 43 col2
----
74
43

query I rowsort
SELECT - 59 * - 59 - - - ( COALESCE ( 39, - 31, - 77 * - 45 ) ) * 92
----
-107

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-331
SELECT - 47, + 46 DIV 89 AS col1
----
-47
0

skipif mysql # not compatible
query II rowsort label-331
SELECT - 47, + 46 / 89 AS col1
----
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL ( - ( NULLIF ( COUNT( * ), 95 / 61 * COUNT( * ) + COUNT( + 6 ) ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL ( - ( NULLIF ( COUNT ( * ), 95 / 61 * COUNT ( * ) + COUNT ( + 6 ) ) ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-333
SELECT ALL + COUNT( ALL + 60 ) * + 50 + - 22 + 72 + 35 * - CAST( + COUNT( * ) AS SIGNED ) * + 0
----
100

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + COUNT ( ALL + 60 ) * + 50 + - 22 + 72 + 35 * - CAST ( + COUNT ( * ) AS INTEGER ) * + 0
----
100

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

query I rowsort
SELECT DISTINCT - 22 * + 61
----
-1342

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT ALL 55 + - ( - - 78 ) AS col1, 16 * COUNT( + ( + 94 ) ) AS col0
----
-23
16

skipif mysql # not compatible
query II rowsort label-336
SELECT ALL 55 + - ( - - 78 ) AS col1, 16 * COUNT ( + ( + 94 ) ) AS col0
----
-23
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-337
SELECT + 78 * + 41 * - CAST( NULL AS SIGNED ) * + - ( + - MAX( + 44 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT + 78 * + 41 * - CAST ( NULL AS INTEGER ) * + - ( + - MAX ( + 44 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT DISTINCT 84 + 11 + - + 30 * 32 * 12 DIV 44
----
-166

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT 84 + 11 + - + 30 * 32 * 12 / 44
----
-166

query I rowsort
SELECT ALL 19 + 48 * - + 76 + - 53 AS col2
----
-3682

query I rowsort
SELECT + 25 + ( + 91 ) AS col0
----
116

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

skipif mysql # not compatible
query I rowsort label-341
SELECT + CAST ( NULL AS REAL ) + + 57 / - 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT 72 + COUNT( ALL - 11 ) + 36
----
109

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT 72 + COUNT ( ALL - 11 ) + 36
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT ALL 83 + - 43 DIV + 12 DIV + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL 83 + - 43 / + 12 / + + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL + 16 * + 23 * + 98 * + - 91 + + COUNT( + - 50 ) + - 94
----
-3281917

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL + 16 * + 23 * + 98 * + - 91 + + COUNT ( + - 50 ) + - 94
----
-3281917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT + CASE - 41 WHEN CAST( + 24 AS SIGNED ) / - + 47 + - 13 THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT + CASE - 41 WHEN CAST ( + 24 AS INTEGER ) / - + 47 + - 13 THEN - - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 47 + - 57 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT ( - - 58 ), + MIN( + COALESCE ( - + 40, ( 28 ) ) ) AS col0
----
58
-40

skipif mysql # not compatible
query II rowsort label-347
SELECT ( - - 58 ), + MIN ( + COALESCE ( - + 40, ( 28 ) ) ) AS col0
----
58
-40

query I rowsort
SELECT + ( 64 ) col2
----
64

query I rowsort
SELECT ALL + 22 * + 97 * 59 + - - 78 * 2
----
126062

query I rowsort
SELECT NULLIF ( 11, + - 67 ) col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-351
SELECT 33 * + COUNT( * ) - + CAST( ( + 41 ) AS SIGNED ), - MIN( 79 ) * - 5 AS col2
----
-8
395

skipif mysql # not compatible
query II rowsort label-351
SELECT 33 * + COUNT ( * ) - + CAST ( ( + 41 ) AS INTEGER ), - MIN ( 79 ) * - 5 AS col2
----
-8
395

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + + CASE + ( - 23 ) WHEN + COUNT( DISTINCT + 5 ) + - 85 THEN 86 END + 4 * 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT + + CASE + ( - 23 ) WHEN + COUNT ( DISTINCT + 5 ) + - 85 THEN 86 END + 4 * 29 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 51 ) col1
----
-51

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

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

query I rowsort
SELECT 6 * 82 - + 36 + 65 + - - 97 + + 20 * - 26
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT + + COUNT( * ) + - 25 - 24 - + 30 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-358
SELECT + + COUNT ( * ) + - 25 - 24 - + 30 AS col0
----
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT - 54 - + COUNT( ALL - CAST( + + 40 AS SIGNED ) ) AS col1
----
-55

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

query II rowsort
SELECT ALL - 1 * - 72 AS col0, 89
----
72
89

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT - 98 + 31 * - COUNT( * )
----
-129

skipif mysql # not compatible
query I rowsort label-362
SELECT - 98 + 31 * - COUNT ( * )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL 68 * - 44 * + - COALESCE ( - - COUNT( + 38 ), 80 - + NULLIF ( + 63, + 90 - COALESCE ( 50 + + CASE 40 WHEN 89 + ( 93 ) THEN - COUNT( * ) + 1 END, 11 ) * - ( ( + CASE COUNT( * ) WHEN ( 12 ) THEN NULL ELSE - 20 + 12 END ) * - 91 ) ) ) AS col0
----
2992

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL 68 * - 44 * + - COALESCE ( - - COUNT ( + 38 ), 80 - + NULLIF ( + 63, + 90 - COALESCE ( 50 + + CASE 40 WHEN 89 + ( 93 ) THEN - COUNT ( * ) + 1 END, 11 ) * - ( ( + CASE COUNT ( * ) WHEN ( 12 ) THEN NULL ELSE - 20 + 12 END ) * - 91 ) ) ) AS col0
----
2992

query I rowsort
SELECT DISTINCT + ( + - 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT - NULLIF ( - COUNT( + + 23 ), - + 69 ) + + + MIN( DISTINCT - 81 ) + 95
----
15

skipif mysql # not compatible
query I rowsort label-365
SELECT - NULLIF ( - COUNT ( + + 23 ), - + 69 ) + + + MIN ( DISTINCT - 81 ) + 95
----
15

query I rowsort
SELECT - 21 + - ( 74 ) col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT ALL - 99 * - CAST( + + 37 AS SIGNED ) * + 74
----
271062

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - 99 * - CAST ( + + 37 AS INTEGER ) * + 74
----
271062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-368
SELECT - 37 + CAST( COUNT( - 47 ) AS SIGNED ) + + 6 DIV + - COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-368
SELECT - 37 + CAST ( COUNT ( - 47 ) AS INTEGER ) + + 6 / + - COUNT ( * ) AS col1
----
-42

query I rowsort
SELECT ALL - 9 + 95
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - NULLIF ( + + NULLIF ( - + 35, + - 56 ), - 44 ) * COUNT( DISTINCT + 25 ) * + - 44 + 96 + - 94
----
-1538

skipif mysql # not compatible
query I rowsort label-370
SELECT - NULLIF ( + + NULLIF ( - + 35, + - 56 ), - 44 ) * COUNT ( DISTINCT + 25 ) * + - 44 + 96 + - 94
----
-1538

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-371
SELECT ALL + 36 DIV COUNT( + - 33 ), + 88 * 40 AS col2
----
36
3520

skipif mysql # not compatible
query II rowsort label-371
SELECT ALL + 36 / COUNT ( + - 33 ), + 88 * 40 AS col2
----
36
3520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-372
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + 67 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-372
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 67 AS col2
----
NULL
67

query II rowsort
SELECT - 30 AS col1, 36 * - - 44 * + 33 * + CASE - 92 WHEN 36 + - 65 THEN 11 WHEN 88 THEN NULL END / - 87 AS col2
----
-30
NULL

query I rowsort
SELECT DISTINCT 31 + + - 44 * - 65
----
2891

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL - MIN( ALL - 34 ) * - - 67 AS col1
----
2278

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - MIN ( ALL - 34 ) * - - 67 AS col1
----
2278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT DISTINCT CAST( - 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT CAST ( - 32 AS INTEGER )
----
-32

query II rowsort
SELECT 62 AS col1, + 43
----
62
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT + 24 * + + 28 * CASE WHEN NOT + 34 >= NULL THEN CAST( NULL AS SIGNED ) + + 98 ELSE NULL END * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT + 24 * + + 28 * CASE WHEN NOT + 34 >= NULL THEN CAST ( NULL AS INTEGER ) + + 98 ELSE NULL END * + 37
----
NULL

query I rowsort
SELECT - 35 * + 18
----
-630

query I rowsort
SELECT 38 * + 85 + 63
----
3293

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT + 88 DIV + - 80
----
-1

skipif mysql # not compatible
query I rowsort label-381
SELECT + 88 / + - 80
----
-1

query I rowsort
SELECT + 5 * - - 70
----
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-383
SELECT DISTINCT + CASE 6 WHEN 50 THEN NULL WHEN + + 96 * SUM( 86 ) * + 84 DIV - 76 + - 60 THEN NULL ELSE ( + 58 ) END DIV + 23 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT + CASE 6 WHEN 50 THEN NULL WHEN + + 96 * SUM ( 86 ) * + 84 / - 76 + - 60 THEN NULL ELSE ( + 58 ) END / + 23 AS col1
----
2

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

query I rowsort
SELECT ALL 10 * - COALESCE ( + 7, - 48 + 16 ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-386
SELECT + 80 DIV + MAX( + 34 )
----
2

skipif mysql # not compatible
query I rowsort label-386
SELECT + 80 / + MAX ( + 34 )
----
2

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

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + 46 / + - COUNT ( * )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT - CAST( NULL AS SIGNED ) * 61 - + - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT - CAST ( NULL AS INTEGER ) * 61 - + - 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-389
SELECT + - 30, - 61 + + - CAST( NULL AS SIGNED ) AS col2
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-389
SELECT + - 30, - 61 + + - CAST ( NULL AS INTEGER ) AS col2
----
-30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT + 71 * + - 16 + - + COUNT( * ) * - + 89 + + - ( 84 )
----
-1131

skipif mysql # not compatible
query I rowsort label-390
SELECT + 71 * + - 16 + - + COUNT ( * ) * - + 89 + + - ( 84 )
----
-1131

query I rowsort
SELECT DISTINCT + - 95 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL COUNT( * ) * + 97 + - + 60 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL COUNT ( * ) * + 97 + - + 60 AS col0
----
37

query I rowsort
SELECT DISTINCT 57 * - + 15
----
-855

query I rowsort
SELECT ALL + - 0 + - + 86 + - 39 + - + 83 * + 98
----
-8259

query I rowsort
SELECT + - ( - 42 ) col1
----
42

query I rowsort
SELECT ALL - 70 + + + 60 AS col0
----
-10

query I rowsort
SELECT DISTINCT 84 + + COALESCE ( 68, 61 * - ( + NULLIF ( + 8, - - 77 ) ) ) + 24 AS col2
----
176

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-398
SELECT + ( + 55 ) * CAST( NULL AS SIGNED ) / - CAST( ( - + 36 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT + ( + 55 ) * CAST ( NULL AS INTEGER ) / - CAST ( ( - + 36 ) AS REAL )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL CAST ( NULL AS INTEGER ) + - + 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT 76 - 51 + + MAX( + - 71 ) AS col2, COUNT( * ) * 8 AS col2
----
-46
8

skipif mysql # not compatible
query II rowsort label-401
SELECT 76 - 51 + + MAX ( + - 71 ) AS col2, COUNT ( * ) * 8 AS col2
----
-46
8

query I rowsort
SELECT ( 4 ) * 12 * + 15 + 84
----
804

query I rowsort
SELECT ALL 8 + 72 + - - 80 col1
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT DISTINCT + 32 + + 75 * + CAST( + - 14 AS SIGNED ) + - 72 * 0 * + 7
----
-1018

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + 32 + + 75 * + CAST ( + - 14 AS INTEGER ) + - 72 * 0 * + 7
----
-1018

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT 11 - + 43 * - 51 + COUNT( * ) + + + 32 * - - SUM( - 28 ) * - 35 + 80
----
33645

skipif mysql # not compatible
query I rowsort label-405
SELECT 11 - + 43 * - 51 + COUNT ( * ) + + + 32 * - - SUM ( - 28 ) * - 35 + 80
----
33645

query I rowsort
SELECT DISTINCT + NULLIF ( - + 94, 37 ) - - 99 + + 31 AS col1
----
36

query I rowsort
SELECT ALL + 15 - - 86 * - 1 col2
----
-71

query I rowsort
SELECT 10 + COALESCE ( + + 86, - - 48 * + + 31 )
----
96

query I rowsort
SELECT 20 + - 63 * + - 84 + - 67 AS col1
----
5245

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ALL - NULLIF ( ( + 41 ), + - 48 ) - - MAX( - + 38 )
----
-79

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - NULLIF ( ( + 41 ), + - 48 ) - - MAX ( - + 38 )
----
-79

query I rowsort
SELECT ALL + 16 * - 16 AS col2
----
-256

query I rowsort
SELECT 35 * + - 76 * - 6
----
15960

query II rowsort
SELECT + - ( 74 ) AS col2, - 34
----
-74
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT + COUNT( * ) * + COUNT( ALL + 15 ) + - + 81 - + 39
----
-119

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + COUNT ( * ) * + COUNT ( ALL + 15 ) + - + 81 - + 39
----
-119

query I rowsort
SELECT 11 * + + 11 + + 91
----
212

query I rowsort
SELECT - 40 * + - 87 - + - 64
----
3544

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL - - CASE - 43 WHEN - - 39 THEN - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - - CASE - 43 WHEN - - 39 THEN - - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT + + 69 / + 24 + + 82 + CASE ( - - 27 ) WHEN - ( + - COALESCE ( 42, MIN( 57 ) + - COUNT( * ) ) ) * - 82 + + 6 THEN NULL ELSE + ( + ( - CAST( NULL AS SIGNED ) ) ) + 27 END + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT + + 69 / + 24 + + 82 + CASE ( - - 27 ) WHEN - ( + - COALESCE ( 42, MIN ( 57 ) + - COUNT ( * ) ) ) * - 82 + + 6 THEN NULL ELSE + ( + ( - CAST ( NULL AS INTEGER ) ) ) + 27 END + 99 AS col0
----
NULL

query I rowsort
SELECT ALL + 23 + - 16 + - + 60 + - - 50 col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT ALL + 74 + + ( 70 ) DIV - 95 col1
----
74

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL + 74 + + ( 70 ) / - 95 col1
----
74

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

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

query I rowsort
SELECT ALL + 93 + - 26 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + 65 * + COUNT( * ) + - COUNT( * ) - + + 31 * - - MAX( DISTINCT 39 ) * - 72 * - - 32 + - + MAX( 34 ) * + 48
----
2783968

skipif mysql # not compatible
query I rowsort label-423
SELECT + 65 * + COUNT ( * ) + - COUNT ( * ) - + + 31 * - - MAX ( DISTINCT 39 ) * - 72 * - - 32 + - + MAX ( 34 ) * + 48
----
2783968

query I rowsort
SELECT ALL 72 + 40 * ( + + NULLIF ( + - 55, - - ( - + 4 ) / + + 84 - - ( 16 ) ) ) * + NULLIF ( 74, + 58 * 82 )
----
-162728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-425
SELECT - 16 DIV 12 + + COUNT( * ) + + - MAX( - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-425
SELECT - 16 / 12 + + COUNT ( * ) + + - MAX ( - 23 )
----
23

query I rowsort
SELECT 93 + + 70
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT DISTINCT + CAST( - 26 AS SIGNED ) * + 63
----
-1638

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT + CAST ( - 26 AS INTEGER ) * + 63
----
-1638

query I rowsort
SELECT + 73 * 51 + - + 20
----
3703

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT 83 - + + SUM( + - 67 )
----
150

skipif mysql # not compatible
query I rowsort label-429
SELECT 83 - + + SUM ( + - 67 )
----
150

query I rowsort
SELECT ALL 8 + - 7
----
1

query I rowsort
SELECT DISTINCT 67 * - + 27 * - 31 AS col0
----
56079

query I rowsort
SELECT DISTINCT 2 * - 61 * + 18 * - - 80
----
-175680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-433
SELECT CAST( NULL AS SIGNED ) + - COUNT( 35 ) AS col0, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-433
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( 35 ) AS col0, - 63
----
NULL
-63

query I rowsort
SELECT 30 + 40
----
70

query I rowsort
SELECT 39 + 43
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT 46 * + COUNT( * ) * - + 78 AS col2, + COUNT( * ) AS col1
----
-3588
1

skipif mysql # not compatible
query II rowsort label-436
SELECT 46 * + COUNT ( * ) * - + 78 AS col2, + COUNT ( * ) AS col1
----
-3588
1

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

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

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

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

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

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

query I rowsort
SELECT ALL - 84 * + + 78
----
-6552

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT 36 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-441
SELECT 36 / - - 88
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT ALL 88 * + SUM( ALL - 58 ) AS col1, 36 + + 86
----
-5104
122

skipif mysql # not compatible
query II rowsort label-442
SELECT ALL 88 * + SUM ( ALL - 58 ) AS col1, 36 + + 86
----
-5104
122

onlyif mysql # DIV for integer division: 
query II rowsort label-443
SELECT 36 DIV ( - NULLIF ( + 46, + + AVG ( 59 ) ) ) col0, 65 AS col2
----
0
65

skipif mysql # not compatible
query II rowsort label-443
SELECT 36 / ( - NULLIF ( + 46, + + AVG ( 59 ) ) ) col0, 65 AS col2
----
0
65

query I rowsort
SELECT 80 * - + 57 AS col1
----
-4560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL + + 9 + - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL + + 9 + - - COUNT ( * )
----
10

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

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

query II rowsort
SELECT 29 - 27 + + + 84 AS col2, 49 AS col2
----
86
49

onlyif mysql # aggregate syntax: 
query II rowsort label-449
SELECT - COALESCE ( 13, + + 49 ) AS col2, - 28 + + NULLIF ( - - COUNT( * ), + 69 ) AS col2
----
-13
-27

skipif mysql # not compatible
query II rowsort label-449
SELECT - COALESCE ( 13, + + 49 ) AS col2, - 28 + + NULLIF ( - - COUNT ( * ), + 69 ) AS col2
----
-13
-27

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

skipif mysql # not compatible
query I rowsort label-450
SELECT + + MIN ( 48 )
----
48

query I rowsort
SELECT ALL + NULLIF ( - - 30, - 1 ) AS col1
----
30

query I rowsort
SELECT DISTINCT + - CASE - 17 WHEN + 56 THEN NULL WHEN 69 THEN 73 END * 96 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-453
SELECT DISTINCT + 70, 58 + - CAST( NULL AS SIGNED ) * - 98 AS col1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-453
SELECT DISTINCT + 70, 58 + - CAST ( NULL AS INTEGER ) * - 98 AS col1
----
70
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT - 17 * 94 DIV 39
----
-40

skipif mysql # not compatible
query I rowsort label-454
SELECT - 17 * 94 / 39
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT - 87 + - 29 + + - 42, - 46 - COUNT( * ) AS col2
----
-158
-47

skipif mysql # not compatible
query II rowsort label-455
SELECT - 87 + - 29 + + - 42, - 46 - COUNT ( * ) AS col2
----
-158
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT - 33 AS col1, - ( + 33 ) * - + 77 * + + COUNT( * ) + 71
----
-33
2612

skipif mysql # not compatible
query II rowsort label-456
SELECT - 33 AS col1, - ( + 33 ) * - + 77 * + + COUNT ( * ) + 71
----
-33
2612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT ALL - + NULLIF ( 30, - ( ( - - MIN( ALL - 90 ) ) ) + + 95 + CAST( NULL AS SIGNED ) + + 1 + 92 / - 75 / 44 ) * - 76
----
2280

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - + NULLIF ( 30, - ( ( - - MIN ( ALL - 90 ) ) ) + + 95 + CAST ( NULL AS INTEGER ) + + 1 + 92 / - 75 / 44 ) * - 76
----
2280

onlyif mysql # DIV for integer division: 
query II rowsort label-458
SELECT - + 56 * 19 * - 89 + - 21 - - 75, - ( + + 35 ) + + + 0 DIV - 15 AS col1
----
94750
-35

skipif mysql # not compatible
query II rowsort label-458
SELECT - + 56 * 19 * - 89 + - 21 - - 75, - ( + + 35 ) + + + 0 / - 15 AS col1
----
94750
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 25 * + 28 + - 29 + COUNT( * ) + - 92
----
580

skipif mysql # not compatible
query I rowsort label-459
SELECT + 25 * + 28 + - 29 + COUNT ( * ) + - 92
----
580

query II rowsort
SELECT 54 AS col2, 37 AS col0
----
54
37

onlyif mysql # aggregate syntax: 
query II rowsort label-461
SELECT - COUNT( * ) col1, - 90 * - 28 AS col2
----
-1
2520

skipif mysql # not compatible
query II rowsort label-461
SELECT - COUNT ( * ) col1, - 90 * - 28 AS col2
----
-1
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - 70 * ( + COUNT( * ) ) - - - 92
----
-162

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - 70 * ( + COUNT ( * ) ) - - - 92
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), + CAST( + + 34 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), + CAST ( + + 34 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-464
SELECT - 96 * - 64 DIV - COUNT( * )
----
-6144

skipif mysql # not compatible
query I rowsort label-464
SELECT - 96 * - 64 / - COUNT ( * )
----
-6144

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT DISTINCT 73 * + 21 / - 90 - - 66 / + CASE - 48 WHEN - 83 THEN NULL WHEN - AVG ( - 84 ) - - 68 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT 73 * + 21 / - 90 - - 66 / + CASE - 48 WHEN - 83 THEN NULL WHEN - AVG ( - 84 ) - - 68 THEN - COUNT ( * ) END AS col1
----
NULL

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

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

query II rowsort
SELECT + 24 AS col0, ( + - 89 ) AS col0
----
24
-89

query I rowsort
SELECT - 60 * + 49 AS col2
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT - CASE + 29 WHEN - COUNT( * ) THEN NULL ELSE ( + + 5 ) END AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-471
SELECT - CASE + 29 WHEN - COUNT ( * ) THEN NULL ELSE ( + + 5 ) END AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT - 66 * + - 66 * + 39 - 17 DIV + 51 + + 10
----
169894

skipif mysql # not compatible
query I rowsort label-472
SELECT - 66 * + - 66 * + 39 - 17 / + 51 + + 10
----
169894

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT COUNT( 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-473
SELECT COUNT ( 2 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-474
SELECT DISTINCT 83 AS col2, - 28 DIV - 15 AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT 83 AS col2, - 28 / - 15 AS col1
----
83
1

query I rowsort
SELECT ALL 7 * + - 36 AS col0
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT + 13 - + 70 + + - 98 + + 77 - - CAST( NULL AS SIGNED ) * COALESCE ( - ( - 97 ), + CAST( NULL AS SIGNED ) * + 4 * + 19, 4 * - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT + 13 - + 70 + + - 98 + + 77 - - CAST ( NULL AS INTEGER ) * COALESCE ( - ( - 97 ), + CAST ( NULL AS INTEGER ) * + 4 * + 19, 4 * - 90 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-477
SELECT ALL 92 AS col0, 9 DIV + - 85
----
92
0

skipif mysql # not compatible
query II rowsort label-477
SELECT ALL 92 AS col0, 9 / + - 85
----
92
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT - NULLIF ( - COUNT( * ), - - 87 * + - CASE + ( + 18 ) WHEN + 39 THEN + - 41 + + 79 * + 71 END * 35 * 30 + + 2 * 80 )
----
1

skipif mysql # not compatible
query I rowsort label-479
SELECT - NULLIF ( - COUNT ( * ), - - 87 * + - CASE + ( + 18 ) WHEN + 39 THEN + - 41 + + 79 * + 71 END * 35 * 30 + + 2 * 80 )
----
1

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

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

query I rowsort
SELECT + 59 - + 34
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT + 29 + ( 19 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT + 29 + ( 19 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 59 AS col0, - COALESCE ( - 16, + - 93, + 83 ) + - - 81 + + + 98 * - + 9 AS col2
----
59
-785

query I rowsort
SELECT + 60 * - - 70 + - 59 + - - 52 AS col0
----
4193

onlyif mysql # aggregate syntax: 
query II rowsort label-485
SELECT - 42 col2, COUNT( * ) * + 8
----
-42
8

skipif mysql # not compatible
query II rowsort label-485
SELECT - 42 col2, COUNT ( * ) * + 8
----
-42
8

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL + 9 + - - 34 - + + COUNT( ALL + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + 9 + - - 34 - + + COUNT ( ALL + 42 ) AS col0
----
42

query I rowsort
SELECT + + 3 + - ( - - 79 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-488
SELECT - CASE + 12 WHEN - 30 * 18 + 91 - - + 34 THEN 86 * + COUNT( * ) * + ( AVG ( - 85 ) ) ELSE CAST( NULL AS SIGNED ) * 44 - - 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT - CASE + 12 WHEN - 30 * 18 + 91 - - + 34 THEN 86 * + COUNT ( * ) * + ( AVG ( - 85 ) ) ELSE CAST ( NULL AS INTEGER ) * 44 - - 85 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + - 29 + - MAX( ALL - 96 )
----
67

skipif mysql # not compatible
query I rowsort label-489
SELECT + - 29 + - MAX ( ALL - 96 )
----
67

query I rowsort
SELECT ALL - - 94 * - 49 * - ( 34 ) col0
----
156604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT ALL 5 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL 5 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 26 + 52 AS col0
----
78

query I rowsort
SELECT DISTINCT + 15 + + 2 AS col2
----
17

query I rowsort
SELECT - 76 + 8
----
-68

query II rowsort
SELECT - 50, ( 10 ) AS col0
----
-50
10

query I rowsort
SELECT + + 60 - + COALESCE ( + + 6, 7 * 95, 73 * - + 12 * - NULLIF ( + 54, - 19 - 23 ) - - 53 + - 60 ) * 92
----
-492

query I rowsort
SELECT + + 2 * - 46
----
-92

query II rowsort
SELECT 76, - 75 AS col2
----
76
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-499
SELECT - 7 DIV + - 66 * + 32 DIV - + 8 + - 78 * + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-499
SELECT - 7 / + - 66 * + 32 / - + 8 + - 78 * + COUNT ( * ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL + 41 * - MAX( + + 9 )
----
-369

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + 41 * - MAX ( + + 9 )
----
-369

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT ALL 34 DIV 24 * - 57 * 28 * 68 AS col1
----
-108528

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL 34 / 24 * - 57 * 28 * 68 AS col1
----
-108528

query I rowsort
SELECT - + 19 - + ( - 88 ) + - 77 * + 89 AS col0
----
-6784

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT 82 * - NULLIF ( - 57, COUNT( * ) ) - + 18 * - 62
----
5790

skipif mysql # not compatible
query I rowsort label-503
SELECT 82 * - NULLIF ( - 57, COUNT ( * ) ) - + 18 * - 62
----
5790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-504
SELECT + ( ( - CAST( NULL AS SIGNED ) ) ) + - - 6 / - ( 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT + ( ( - CAST ( NULL AS INTEGER ) ) ) + - - 6 / - ( 38 ) AS col1
----
NULL

query I rowsort
SELECT - 19 * + ( - 65 ) AS col1
----
1235

query II rowsort
SELECT - 25 + - 61 * - 20 AS col1, 34
----
1195
34

query I rowsort
SELECT - 43 * - 99
----
4257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT CASE CAST( - 77 AS SIGNED ) WHEN - 71 / + + CAST( NULL AS SIGNED ) THEN + 66 * + + 69 * + + ( SUM( DISTINCT 52 ) ) WHEN 90 + 20 / CASE - COUNT( * ) * + 29 + - 75 WHEN + 14 / + 64 THEN 56 END THEN COUNT( * ) * + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT CASE CAST ( - 77 AS INTEGER ) WHEN - 71 / + + CAST ( NULL AS INTEGER ) THEN + 66 * + + 69 * + + ( SUM ( DISTINCT 52 ) ) WHEN 90 + 20 / CASE - COUNT ( * ) * + 29 + - 75 WHEN + 14 / + 64 THEN 56 END THEN COUNT ( * ) * + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT - 99 * + 78 + - COUNT( * ) * - - 47 AS col2
----
-7769

skipif mysql # not compatible
query I rowsort label-509
SELECT - 99 * + 78 + - COUNT ( * ) * - - 47 AS col2
----
-7769

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT + COUNT( * ) - - 78, - 22 AS col0
----
79
-22

skipif mysql # not compatible
query II rowsort label-510
SELECT + COUNT ( * ) - - 78, - 22 AS col0
----
79
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-511
SELECT ALL - COUNT( * ) * - 81, CAST( NULL AS SIGNED ) * 78 - + + 68 + + 41 * 3 * - - 62 AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-511
SELECT ALL - COUNT ( * ) * - 81, CAST ( NULL AS INTEGER ) * 78 - + + 68 + + 41 * 3 * - - 62 AS col1
----
81
NULL

query I rowsort
SELECT - 7 * 32 * 55
----
-12320

query II rowsort
SELECT DISTINCT - 11 * + + 32 AS col1, + 16
----
-352
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT COALESCE ( - 12, + CAST( - - 54 AS SIGNED ) * - COUNT( * ) + 59 - 72 * - COUNT( * ), + ( - + 42 ), - + 20 )
----
-12

skipif mysql # not compatible
query I rowsort label-514
SELECT COALESCE ( - 12, + CAST ( - - 54 AS INTEGER ) * - COUNT ( * ) + 59 - 72 * - COUNT ( * ), + ( - + 42 ), - + 20 )
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT ALL COUNT( * ) * + - 63 * + - 20 + - 71
----
1189

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL COUNT ( * ) * + - 63 * + - 20 + - 71
----
1189

query II rowsort
SELECT + 59 + - 37 AS col2, + 83 * 4
----
22
332

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT - 71 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-518
SELECT - 71 / - 84 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT DISTINCT + 66 DIV - 13
----
-5

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT + 66 / - 13
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT + COUNT( * ) + + 42 * 25 AS col0
----
1051

skipif mysql # not compatible
query I rowsort label-520
SELECT + COUNT ( * ) + + 42 * 25 AS col0
----
1051

query I rowsort
SELECT 74 + - + 2 + + 19
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-522
SELECT ALL 93 + CAST( + - COUNT( * ) AS SIGNED ) DIV + - 97
----
93

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL 93 + CAST ( + - COUNT ( * ) AS INTEGER ) / + - 97
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-524
SELECT ALL + CAST( NULL AS SIGNED ) * 20 col1, - 94 AS col0
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-524
SELECT ALL + CAST ( NULL AS INTEGER ) * 20 col1, - 94 AS col0
----
NULL
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT ALL - 77 + + MIN( DISTINCT 21 ), 28 + 62 * + + 12 + - + 65 AS col2
----
-56
707

skipif mysql # not compatible
query II rowsort label-525
SELECT ALL - 77 + + MIN ( DISTINCT 21 ), 28 + 62 * + + 12 + - + 65 AS col2
----
-56
707

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT ALL 77 + 58 DIV + 37
----
78

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL 77 + 58 / + 37
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-527
SELECT CASE - + CAST( - 54 AS SIGNED ) WHEN + - 51 + + 79 THEN NULL ELSE + 39 + + 57 END + + 50
----
146

skipif mysql # not compatible
query I rowsort label-527
SELECT CASE - + CAST ( - 54 AS INTEGER ) WHEN + - 51 + + 79 THEN NULL ELSE + 39 + + 57 END + + 50
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT + 69 + - 38 AS col1, 52 * - 30 * COUNT( * )
----
31
-1560

skipif mysql # not compatible
query II rowsort label-528
SELECT + 69 + - 38 AS col1, 52 * - 30 * COUNT ( * )
----
31
-1560

query I rowsort
SELECT - NULLIF ( + 47, - - 50 + + 52 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - COUNT( * ) + - 72 + + - 78 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-530
SELECT - COUNT ( * ) + - 72 + + - 78 AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT + ( + 34 ) - - 42 * COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-531
SELECT + ( + 34 ) - - 42 * COUNT ( * )
----
76

query I rowsort
SELECT - 96 * + 70
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT + - 24 * + CASE + - 2 WHEN 78 * - - 5 / NULLIF ( + COUNT( * ), + + CASE WHEN NOT NULL IS NOT NULL THEN - 37 END ) THEN - COUNT( * ) * 81 + 97 * 70 WHEN 37 * 46 THEN NULL WHEN 49 + 15 THEN + 71 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT + - 24 * + CASE + - 2 WHEN 78 * - - 5 / NULLIF ( + COUNT ( * ), + + CASE WHEN NOT NULL IS NOT NULL THEN - 37 END ) THEN - COUNT ( * ) * 81 + 97 * 70 WHEN 37 * 46 THEN NULL WHEN 49 + 15 THEN + 71 ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT 23 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 63 * + 71 AS col1
----
-4473

query I rowsort
SELECT + 72 + - + 77 * - 52
----
4076

query I rowsort
SELECT DISTINCT + 68 - - ( 19 ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-538
SELECT ALL - 49, + 72 DIV - + 41 AS col0
----
-49
-1

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL - 49, + 72 / - + 41 AS col0
----
-49
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT 20 + + + 34 - - 72 * COALESCE ( 72, + + 97 ) col0, - COUNT( * ) + + 8 AS col2
----
5238
7

skipif mysql # not compatible
query II rowsort label-539
SELECT 20 + + + 34 - - 72 * COALESCE ( 72, + + 97 ) col0, - COUNT ( * ) + + 8 AS col2
----
5238
7

query I rowsort
SELECT 30 * - ( 25 ) AS col0
----
-750

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

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

query I rowsort
SELECT 4 * + - 11 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT - SUM( DISTINCT - - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - SUM ( DISTINCT - - 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT CAST( NULL AS SIGNED ) * - 18 * + MAX( + + 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT CAST ( NULL AS INTEGER ) * - 18 * + MAX ( + + 98 ) AS col0
----
NULL

query I rowsort
SELECT 29 * + - 21
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL 71 + - CASE MIN( DISTINCT + - 84 ) WHEN - COALESCE ( - 67, 60 + + 52, - 12 ) + COUNT( * ) + + 0 + + 72 * + - 34 + 92 * 8 THEN 20 + 96 WHEN 95 + 40 THEN - 18 END + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL 71 + - CASE MIN ( DISTINCT + - 84 ) WHEN - COALESCE ( - 67, 60 + + 52, - 12 ) + COUNT ( * ) + + 0 + + 72 * + - 34 + 92 * 8 THEN 20 + 96 WHEN 95 + 40 THEN - 18 END + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT DISTINCT ( - 58 ) DIV 1 * + - 35
----
2030

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT ( - 58 ) / 1 * + - 35
----
2030

query II rowsort
SELECT 14 AS col2, 67
----
14
67

query I rowsort
SELECT ALL - 98 + + - 91 AS col0
----
-189

query I rowsort
SELECT 55 * 31 * + ( 59 ) * 20
----
2011900

query II rowsort
SELECT DISTINCT - ( + 68 ) + - - 7 AS col1, + 94 * 30 AS col2
----
-61
2820

query II rowsort
SELECT ALL + 25 + - 96 + 71 + - 0 + - - 76 * 38 AS col1, 43 AS col1
----
2888
43

query I rowsort
SELECT 89 * 70 - - 64
----
6294

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-554
SELECT - 53 col0, CAST( 87 AS SIGNED )
----
-53
87

skipif mysql # not compatible
query II rowsort label-554
SELECT - 53 col0, CAST ( 87 AS INTEGER )
----
-53
87

query I rowsort
SELECT 45 - 74
----
-29

query I rowsort
SELECT DISTINCT + 80 + - 39
----
41

query I rowsort
SELECT + 17 * - 53 * - 71 AS col1
----
63971

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT ALL + COUNT( * ) - + ( 84 ) * + 15
----
-1259

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + COUNT ( * ) - + ( 84 ) * + 15
----
-1259

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ( + - 83 ) - + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-559
SELECT ( + - 83 ) - + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT + 75 + + + 99 AS col0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-561
SELECT + 44 - + 70 - - 26, - 84 - - CAST( - 10 AS SIGNED ) AS col2
----
0
-94

skipif mysql # not compatible
query II rowsort label-561
SELECT + 44 - + 70 - - 26, - 84 - - CAST ( - 10 AS INTEGER ) AS col2
----
0
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - 11 + - CASE + SUM( ALL + 45 ) WHEN + + 30 THEN NULL WHEN - 21 THEN 91 + - 8 + + 20 + - + 99 * + 40 * NULLIF ( - 71, - COUNT( * ) ) ELSE NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT - 11 + - CASE + SUM ( ALL + 45 ) WHEN + + 30 THEN NULL WHEN - 21 THEN 91 + - 8 + + 20 + - + 99 * + 40 * NULLIF ( - 71, - COUNT ( * ) ) ELSE NULL END * 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT ALL 50 * - 23 + + COUNT( + 92 ) DIV - + 13
----
-1150

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL 50 * - 23 + + COUNT ( + 92 ) / - + 13
----
-1150

query II rowsort
SELECT ALL + - ( - 70 ) * 38 col0, - 50
----
2660
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT + MIN( ALL 90 ) * 17
----
1530

skipif mysql # not compatible
query I rowsort label-565
SELECT + MIN ( ALL 90 ) * 17
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT - NULLIF ( + + CASE + COUNT( * ) WHEN 6 - + + 95 + 57 * ( 27 ) THEN + 8 / + + 9 - - 77 + + ( + + 38 ) * + NULLIF ( ( 99 ), - 31 ) END, - ( - 68 ) ) + - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT - NULLIF ( + + CASE + COUNT ( * ) WHEN 6 - + + 95 + 57 * ( 27 ) THEN + 8 / + + 9 - - 77 + + ( + + 38 ) * + NULLIF ( ( 99 ), - 31 ) END, - ( - 68 ) ) + - 84 AS col1
----
NULL

query I rowsort
SELECT 19 * 89 + + 83 AS col2
----
1774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT ( CASE - COUNT( * ) WHEN + 11 + + CAST( NULL AS SIGNED ) THEN - COUNT( * ) ELSE NULL END ) * - COUNT( * ) + + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT ( CASE - COUNT ( * ) WHEN + 11 + + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END ) * - COUNT ( * ) + + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT - 54 * - + COUNT( * ) + + + 87 * + - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-569
SELECT - 54 * - + COUNT ( * ) + + + 87 * + - COUNT ( * ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT DISTINCT COALESCE ( - 2, 25 ) * 2 / - 64 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT COALESCE ( - 2, 25 ) * 2 / - 64 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL + COUNT( - 43 ) * - 25 + + + 93 + + 3
----
71

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + COUNT ( - 43 ) * - 25 + + + 93 + + 3
----
71

query I rowsort
SELECT ( - 56 ) * 11
----
-616

query I rowsort
SELECT 57 * - 83 - 37 AS col1
----
-4768

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-574
SELECT ALL CAST( NULL AS DECIMAL ) * - ( 86 ) * NULLIF ( + - 22, - + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL CAST ( NULL AS REAL ) * - ( 86 ) * NULLIF ( + - 22, - + 71 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-575
SELECT NULLIF ( + - 24, 20 ) DIV 94, - ( - 82 ) col1
----
0
82

skipif mysql # not compatible
query II rowsort label-575
SELECT NULLIF ( + - 24, 20 ) / 94, - ( - 82 ) col1
----
0
82

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT + COUNT( * ) * ( - 23 ) * + 73 + + 27 col2, 56 + + 26 * 55 AS col1
----
-1652
1486

skipif mysql # not compatible
query II rowsort label-576
SELECT + COUNT ( * ) * ( - 23 ) * + 73 + + 27 col2, 56 + + 26 * 55 AS col1
----
-1652
1486

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

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

query I rowsort
SELECT 64 + - 62 + 96 AS col0
----
98

query I rowsort
SELECT ALL 18 + - - 27 + 90
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + MAX( ALL 50 ) + + 75
----
125

skipif mysql # not compatible
query I rowsort label-580
SELECT + MAX ( ALL 50 ) + + 75
----
125

query I rowsort
SELECT - 1 * + 88 + + 37 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT - 15 + - - 9 + - COUNT( * ) * 2 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-582
SELECT - 15 + - - 9 + - COUNT ( * ) * 2 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT DISTINCT - COALESCE ( + 63, - - CAST( NULL AS SIGNED ), - + 70 )
----
-63

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - COALESCE ( + 63, - - CAST ( NULL AS INTEGER ), - + 70 )
----
-63

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

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

query I rowsort
SELECT - 84 * - + COALESCE ( + 16, - - 69 ) * 40 + + 34 + + 75 AS col0
----
53869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT - 54 + CAST( NULL AS SIGNED ) - + + 29 * SUM( ALL + 96 ) * + 6 + NULLIF ( - 74, + - CAST( - - 83 AS SIGNED ) + - COUNT( * ) ) + + 32 / - ( - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT - 54 + CAST ( NULL AS INTEGER ) - + + 29 * SUM ( ALL + 96 ) * + 6 + NULLIF ( - 74, + - CAST ( - - 83 AS INTEGER ) + - COUNT ( * ) ) + + 32 / - ( - 24 )
----
NULL

query I rowsort
SELECT - 14 * - 71
----
994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT ALL + COALESCE ( COUNT( * ), + CASE - + 50 WHEN - 51 * + + 10 * - 50 * - - 42 + + + COUNT( * ) THEN NULL WHEN 26 THEN - - ( + + 39 ) ELSE NULL END * - 12, - 66 + + COALESCE ( - 33, 7 ) * - 34 ) DIV - 54 + + ( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + COALESCE ( COUNT ( * ), + CASE - + 50 WHEN - 51 * + + 10 * - 50 * - - 42 + + + COUNT ( * ) THEN NULL WHEN 26 THEN - - ( + + 39 ) ELSE NULL END * - 12, - 66 + + COALESCE ( - 33, 7 ) * - 34 ) / - 54 + + ( 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL 18 * + - NULLIF ( 2, - + 23 ) + MIN( + COALESCE ( + - 83, - 20 + - 22 ) )
----
-119

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL 18 * + - NULLIF ( 2, - + 23 ) + MIN ( + COALESCE ( + - 83, - 20 + - 22 ) )
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT MAX( ALL + - CAST( NULL AS SIGNED ) ) / + 0 + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT MAX ( ALL + - CAST ( NULL AS INTEGER ) ) / + 0 + + 11 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + + ( - + 32 ), 34 ) AS col0
----
-32

query I rowsort
SELECT ( + 14 ) col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-593
SELECT DISTINCT 30 * + COUNT( * ) + - 41 AS col2, MAX( DISTINCT - - 9 ) AS col2
----
-11
9

skipif mysql # not compatible
query II rowsort label-593
SELECT DISTINCT 30 * + COUNT ( * ) + - 41 AS col2, MAX ( DISTINCT - - 9 ) AS col2
----
-11
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL - 16 * 5 + + 73 + - 19 * - CASE + 77 WHEN + MAX( ALL - 66 ) THEN NULL WHEN 25 THEN NULL WHEN + 87 / + COUNT( * ) - + - NULLIF ( + 30, - + 52 ) THEN - 92 * - 88 END * + CASE 7 WHEN + 56 - 96 THEN NULL WHEN 75 * + 24 THEN 61 * + 44 WHEN ( COUNT( * ) ) THEN NULL ELSE NULL END + - 29 * CAST( 30 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL - 16 * 5 + + 73 + - 19 * - CASE + 77 WHEN + MAX ( ALL - 66 ) THEN NULL WHEN 25 THEN NULL WHEN + 87 / + COUNT ( * ) - + - NULLIF ( + 30, - + 52 ) THEN - 92 * - 88 END * + CASE 7 WHEN + 56 - 96 THEN NULL WHEN 75 * + 24 THEN 61 * + 44 WHEN ( COUNT ( * ) ) THEN NULL ELSE NULL END + - 29 * CAST ( 30 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN NULLIF ( - COALESCE ( + 91, - 48, + 47 * + 70 * + 42 - + ( 35 ) * + + CAST( + SUM( ALL - - 64 ) AS SIGNED ) ), - 89 ) + NULLIF ( - MIN( ( COALESCE ( 52, + 44 + 43 ) ) ) - NULLIF ( - 7, 40 + + 75 ), 79 ) THEN + 32 * 72 WHEN + CAST( - 58 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN NULLIF ( - COALESCE ( + 91, - 48, + 47 * + 70 * + 42 - + ( 35 ) * + + CAST ( + SUM ( ALL - - 64 ) AS INTEGER ) ), - 89 ) + NULLIF ( - MIN ( ( COALESCE ( 52, + 44 + 43 ) ) ) - NULLIF ( - 7, 40 + + 75 ), 79 ) THEN + 32 * 72 WHEN + CAST ( - 58 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 35 * + 9 AS col0
----
315

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

skipif mysql # not compatible
query I rowsort label-597
SELECT - - 13 / - - 35 / + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT + + COALESCE ( - 94, - ( + COUNT( DISTINCT - - 58 ) ) ) - + 53
----
-147

skipif mysql # not compatible
query I rowsort label-598
SELECT + + COALESCE ( - 94, - ( + COUNT ( DISTINCT - - 58 ) ) ) - + 53
----
-147

query I rowsort
SELECT ALL 63 * 21 - + 4
----
1319

onlyif mysql # DIV for integer division: 
query I rowsort label-600
SELECT ALL - 74 DIV - - 21
----
-3

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - 74 / - - 21
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-601
SELECT + 2 DIV + - SUM( - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-601
SELECT + 2 / + - SUM ( - 62 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT + + 94 + + NULLIF ( - - 99, - 57 ) DIV 67 * + 27 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-602
SELECT + + 94 + + NULLIF ( - - 99, - 57 ) / 67 * + 27 AS col1
----
121

query I rowsort
SELECT - 29 - + - 41 col2
----
12

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

query I rowsort
SELECT DISTINCT + 81 + - 69
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL - 22 * - COUNT( * ) + - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL - 22 * - COUNT ( * ) + - COUNT ( * ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT - - 11 * - CAST( + + 45 AS SIGNED ) col0
----
-495

skipif mysql # not compatible
query I rowsort label-607
SELECT - - 11 * - CAST ( + + 45 AS INTEGER ) col0
----
-495

query I rowsort
SELECT DISTINCT 74 + - 2 AS col2
----
72

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

query I rowsort
SELECT DISTINCT - 56 + + + 9
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT DISTINCT 14 * + NULLIF ( - ( - COALESCE ( - ( + - 1 ), - COUNT( * ) ) ), + 70 )
----
14

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT 14 * + NULLIF ( - ( - COALESCE ( - ( + - 1 ), - COUNT ( * ) ) ), + 70 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT ALL - 39 DIV + - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - 39 / + - 52 AS col1
----
0

query I rowsort
SELECT 93 * + 94 + - 45
----
8697

query I rowsort
SELECT DISTINCT - 21 * + 54 AS col1
----
-1134

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT - 7 DIV - - 86 + + + 76 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-615
SELECT - 7 / - - 86 + + + 76 / + + 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL + 94 - - 7 + + 10 - MIN( DISTINCT + 8 ) + - 99 * - 9
----
994

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + 94 - - 7 + + 10 - MIN ( DISTINCT + 8 ) + - 99 * - 9
----
994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-617
SELECT ALL - COALESCE ( - - MIN( ALL + 42 ), 92, + 83 ) DIV 78 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - COALESCE ( - - MIN ( ALL + 42 ), 92, + 83 ) / 78 / + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT 54 + - MIN( ALL + 0 ) * 43 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-618
SELECT 54 + - MIN ( ALL + 0 ) * 43 AS col2
----
54

query I rowsort
SELECT ALL - ( - + 26 ) AS col0
----
26

query I rowsort
SELECT 73 * - 86
----
-6278

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT + 51, SUM( + + 78 ) AS col1
----
51
78

skipif mysql # not compatible
query II rowsort label-621
SELECT + 51, SUM ( + + 78 ) AS col1
----
51
78

query I rowsort
SELECT + 63 * + 66 + + + 79 AS col2
----
4237

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT 67 * + + 19 + + 62 * + COUNT( DISTINCT - 68 ) * - 55 * - + 26 * - 39 * + COUNT( * ) * - 0
----
1273

skipif mysql # not compatible
query I rowsort label-623
SELECT 67 * + + 19 + + 62 * + COUNT ( DISTINCT - 68 ) * - 55 * - + 26 * - 39 * + COUNT ( * ) * - 0
----
1273

query I rowsort
SELECT 89 + + 3 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT - - ( SUM( ALL - CASE - + 3 WHEN + - 52 THEN + + ( + 92 ) ELSE - 89 + + 91 * 92 END ) )
----
-8283

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT - - ( SUM ( ALL - CASE - + 3 WHEN + - 52 THEN + + ( + 92 ) ELSE - 89 + + 91 * 92 END ) )
----
-8283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT 81 + COUNT( * ) DIV - + COALESCE ( - 58, COUNT( * ) ) * + - 40 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-626
SELECT 81 + COUNT ( * ) / - + COALESCE ( - 58, COUNT ( * ) ) * + - 40 AS col2
----
81

query I rowsort
SELECT 27 * - 83
----
-2241

query I rowsort
SELECT ALL + 96 * 32 AS col1
----
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT COUNT( ALL + 12 ) + - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT COUNT ( ALL + 12 ) + - + 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT MAX( + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-630
SELECT MAX ( + - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT - MAX( ALL 56 ) AS col2, ( 76 ) AS col1
----
-56
76

skipif mysql # not compatible
query II rowsort label-631
SELECT - MAX ( ALL 56 ) AS col2, ( 76 ) AS col1
----
-56
76

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT - ( + + 48 ) DIV + 49 * - - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-632
SELECT - ( + + 48 ) / + 49 * - - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT 96 + - 36 + - 35 * - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-633
SELECT 96 + - 36 + - 35 * - COUNT ( * ) AS col1
----
95

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

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

query I rowsort
SELECT - 89 + + 52 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT ALL ( - COALESCE ( + 76, ( + 11 ) ) ) * 95 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL ( - COALESCE ( + 76, ( + 11 ) ) ) * 95 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 2 + - 35 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL COUNT( * ) + + 89 + COUNT( * ) - - + 56
----
147

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL COUNT ( * ) + + 89 + COUNT ( * ) - - + 56
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT NULLIF ( + 81, 37 ) * ( + 23 ) * 10 - + COUNT( * ) AS col0
----
18629

skipif mysql # not compatible
query I rowsort label-639
SELECT NULLIF ( + 81, 37 ) * ( + 23 ) * 10 - + COUNT ( * ) AS col0
----
18629

query I rowsort
SELECT ALL + 97 * - 24 AS col0
----
-2328

query I rowsort
SELECT 55 + 4 * + 86
----
399

query II rowsort
SELECT DISTINCT 60 * - 15 AS col2, 23 + 29 * - 38 AS col0
----
-900
-1079

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT 38 * - + COUNT( 48 )
----
-38

skipif mysql # not compatible
query I rowsort label-643
SELECT 38 * - + COUNT ( 48 )
----
-38

query I rowsort
SELECT ALL - 34 * 9 * - 19 * + + 92 AS col2
----
534888

query I rowsort
SELECT ALL 7 - - 64 + + 61
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL MAX( ALL + 66 ) * + - 88 + + + 0 AS col2
----
-5808

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL MAX ( ALL + 66 ) * + - 88 + + + 0 AS col2
----
-5808

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT 70 DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-647
SELECT 70 / + 75 AS col2
----
0

query I rowsort
SELECT 83 * + 9
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT CASE + - 74 WHEN + + COUNT( * ) * - + ( 85 ) THEN 41 ELSE NULL END * + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT CASE + - 74 WHEN + + COUNT ( * ) * - + ( 85 ) THEN 41 ELSE NULL END * + - 47 AS col1
----
NULL

query I rowsort
SELECT + 21 * - - 41 * - 30 * 7 - + 36 + + 57 AS col1
----
-180789

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT ALL + - 84 DIV - 79 col2
----
1

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL + - 84 / - 79 col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-652
SELECT DISTINCT + 80 DIV - 91, + 9 AS col2
----
0
9

skipif mysql # not compatible
query II rowsort label-652
SELECT DISTINCT + 80 / - 91, + 9 AS col2
----
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT ALL - 16 * + 40 * - CAST( 85 AS SIGNED ) / - 15 / - - 66 * CASE - - 85 WHEN + 21 THEN AVG ( + 46 ) + - - 2 WHEN - 80 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - 16 * + 40 * - CAST ( 85 AS INTEGER ) / - 15 / - - 66 * CASE - - 85 WHEN + 21 THEN AVG ( + 46 ) + - - 2 WHEN - 80 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-654
SELECT SUM( ALL - 28 ) DIV - 61 - + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-654
SELECT SUM ( ALL - 28 ) / - 61 - + 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT ALL + - 9 + + COUNT( * ) AS col2, + 65 + + 53 AS col0
----
-8
118

skipif mysql # not compatible
query II rowsort label-655
SELECT ALL + - 9 + + COUNT ( * ) AS col2, + 65 + + 53 AS col0
----
-8
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-656
SELECT + 28 + + 44 + - + 56 + + 59 * + NULLIF ( - 95, CASE - COALESCE ( + 17, - CAST( NULL AS SIGNED ) - - COUNT( * ) - + - 96 * + 26 * + - 19 * - 82 / - + 92, + + MAX( 54 ) ) WHEN - 9 + NULLIF ( - 74, 2 + - 74 ) THEN - 92 ELSE NULL END * 93 ) + COUNT( * )
----
-5588

skipif mysql # not compatible
query I rowsort label-656
SELECT + 28 + + 44 + - + 56 + + 59 * + NULLIF ( - 95, CASE - COALESCE ( + 17, - CAST ( NULL AS INTEGER ) - - COUNT ( * ) - + - 96 * + 26 * + - 19 * - 82 / - + 92, + + MAX ( 54 ) ) WHEN - 9 + NULLIF ( - 74, 2 + - 74 ) THEN - 92 ELSE NULL END * 93 ) + COUNT ( * )
----
-5588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT + - 34 * MIN( - 76 ) + + 80 / + SUM( 99 ) * 68 + + COUNT( * ) - + + 81 * + 46 + + + CAST( - CASE WHEN NULL NOT BETWEEN ( - ( 16 ) ) AND ( NULL ) THEN + 97 + SUM( ALL 18 ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT + - 34 * MIN ( - 76 ) + + 80 / + SUM ( 99 ) * 68 + + COUNT ( * ) - + + 81 * + 46 + + + CAST ( - CASE WHEN NULL NOT BETWEEN ( - ( 16 ) ) AND ( NULL ) THEN + 97 + SUM ( ALL 18 ) END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT DISTINCT - + MAX( 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - + MAX ( 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT + + ( SUM( ALL - 27 ) ) + - 40 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT + + ( SUM ( ALL - 27 ) ) + - 40 AS col0
----
-67

query I rowsort
SELECT 52 - + 22
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL 8 + + COALESCE ( SUM( DISTINCT + 35 ), 49 )
----
43

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL 8 + + COALESCE ( SUM ( DISTINCT + 35 ), 49 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT - MAX( - 49 ) + + - 1 AS col1, COALESCE ( - 94, - MIN( + 83 ) )
----
48
-94

skipif mysql # not compatible
query II rowsort label-662
SELECT - MAX ( - 49 ) + + - 1 AS col1, COALESCE ( - 94, - MIN ( + 83 ) )
----
48
-94

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-664
SELECT DISTINCT + + 92 + - + 83 + 39 - COALESCE ( 76, + - 7 DIV 0 * NULLIF ( - 49, - - NULLIF ( + 57, 96 DIV - COUNT( * ) + COUNT( * ) + 14 * 69 + + 76 + 21 ) * COUNT( * ) - 25 ) * 18 + 79 )
----
-28

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT + + 92 + - + 83 + 39 - COALESCE ( 76, + - 7 / 0 * NULLIF ( - 49, - - NULLIF ( + 57, 96 / - COUNT ( * ) + COUNT ( * ) + 14 * 69 + + 76 + 21 ) * COUNT ( * ) - 25 ) * 18 + 79 )
----
-28

query II rowsort
SELECT ALL - 40 * + 42 AS col2, + NULLIF ( 63, - 95 )
----
-1680
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-666
SELECT ALL - 70 + + 39 - 65 DIV 14 * 70 DIV + ( - 75 ) + - 48 + - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL - 70 + + 39 - 65 / 14 * 70 / + ( - 75 ) + - 48 + - COUNT ( * ) AS col1
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT COUNT( * ) - - + 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-668
SELECT COUNT ( * ) - - + 5 col0
----
6

query I rowsort
SELECT ALL NULLIF ( 13, - 87 ) * - - 81 AS col2
----
1053

query I rowsort
SELECT + 96 + - - 35
----
131

query I rowsort
SELECT DISTINCT ( + 26 ) * 57 AS col1
----
1482

query I rowsort
SELECT + 84 * - 64 AS col0
----
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + CASE + 38 WHEN COALESCE ( + + 93, 87 + 24, - ( + 72 ) / + 1, + - 88 + + + ( - 48 ) + 17 ) / + 90 / + + 21 / + 2 THEN NULL WHEN + 57 - - 70 + SUM( 93 ) * 57 THEN NULL ELSE COALESCE ( MAX( DISTINCT + 38 ), COUNT( * ) + + 71 * 77 ) * 99 END * 48 AS col0
----
180576

skipif mysql # not compatible
query I rowsort label-673
SELECT + CASE + 38 WHEN COALESCE ( + + 93, 87 + 24, - ( + 72 ) / + 1, + - 88 + + + ( - 48 ) + 17 ) / + 90 / + + 21 / + 2 THEN NULL WHEN + 57 - - 70 + SUM ( 93 ) * 57 THEN NULL ELSE COALESCE ( MAX ( DISTINCT + 38 ), COUNT ( * ) + + 71 * 77 ) * 99 END * 48 AS col0
----
180576

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT - MIN( - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-674
SELECT - MIN ( - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT + 60 + + + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-675
SELECT + 60 + + + COUNT ( * ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-676
SELECT + CASE - 73 WHEN + + ( + 30 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END * + 71 * + + 26 + - 12 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT + CASE - 73 WHEN + + ( + 30 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END * + 71 * + + 26 + - 12 + - 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT DISTINCT 77 DIV - 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT 77 / - 44 AS col0
----
-1

query I rowsort
SELECT + 41 + 76 AS col1
----
117

query I rowsort
SELECT - COALESCE ( + 50, - - 97 )
----
-50

query II rowsort
SELECT 93 AS col0, - 37 AS col1
----
93
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT ALL 12 DIV + + 31
----
0

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL 12 / + + 31
----
0

query I rowsort
SELECT + 11 * - 24 + ( - - 84 )
----
-180

query I rowsort
SELECT + ( 17 ) + - 18 * + - 76 * + + 14
----
19169

query I rowsort
SELECT ALL 5 * + 78 * + 41 * + + 66 * + 61 AS col2
----
64375740

query I rowsort
SELECT - 17 - + + CASE - 55 WHEN + + 0 THEN AVG ( ALL + 9 ) END AS col2
----
NULL

query II rowsort
SELECT ALL + 50 AS col1, 99 * - - 17
----
50
1683

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT ALL + 21 col1, + 71 + - COUNT( * )
----
21
70

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL + 21 col1, + 71 + - COUNT ( * )
----
21
70

query I rowsort
SELECT DISTINCT 7 * - 7 + - 37 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-689
SELECT - CAST( - + 9 AS SIGNED ) * - 41 + + 24 AS col1, 8 * - - 31 + COUNT( * ) AS col2
----
-345
249

skipif mysql # not compatible
query II rowsort label-689
SELECT - CAST ( - + 9 AS INTEGER ) * - 41 + + 24 AS col1, 8 * - - 31 + COUNT ( * ) AS col2
----
-345
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-690
SELECT DISTINCT + + 7 * + 5 - - + CASE + 15 WHEN + CAST( NULL AS DECIMAL ) THEN + MAX( ALL + 24 ) WHEN 29 THEN NULL END + + 14 * COALESCE ( + 35, - 13 * 46 + - 62, 79 ) + + CAST( - 96 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT + + 7 * + 5 - - + CASE + 15 WHEN + CAST ( NULL AS REAL ) THEN + MAX ( ALL + 24 ) WHEN 29 THEN NULL END + + 14 * COALESCE ( + 35, - 13 * 46 + - 62, 79 ) + + CAST ( - 96 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT - 9 + + 68 + + 25 * SUM( 28 ) * + + COUNT( * ) * + ( - 29 ) + - + COUNT( DISTINCT ( + - 34 ) ) * - - 54 AS col0
----
-20295

skipif mysql # not compatible
query I rowsort label-691
SELECT - 9 + + 68 + + 25 * SUM ( 28 ) * + + COUNT ( * ) * + ( - 29 ) + - + COUNT ( DISTINCT ( + - 34 ) ) * - - 54 AS col0
----
-20295

query I rowsort
SELECT - - 24 * - 43 AS col2
----
-1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-693
SELECT ALL + ( - - 95 ) * COUNT( * ) + CASE - CASE - COUNT( * ) WHEN - NULLIF ( - COUNT( * ), 31 ) - 61 THEN + - 71 WHEN + + 76 THEN 82 * - 30 ELSE - 71 END WHEN + COUNT( + 35 ) THEN - 79 / 99 + + 14 WHEN - 56 THEN + COUNT( * ) * MIN( + CAST( 97 AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + ( - - 95 ) * COUNT ( * ) + CASE - CASE - COUNT ( * ) WHEN - NULLIF ( - COUNT ( * ), 31 ) - 61 THEN + - 71 WHEN + + 76 THEN 82 * - 30 ELSE - 71 END WHEN + COUNT ( + 35 ) THEN - 79 / 99 + + 14 WHEN - 56 THEN + COUNT ( * ) * MIN ( + CAST ( 97 AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT ALL + + 58 AS col0, SUM( 75 )
----
58
75

skipif mysql # not compatible
query II rowsort label-694
SELECT ALL + + 58 AS col0, SUM ( 75 )
----
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT DISTINCT + - SUM( ALL - 12 ) * - 32 + - 34 + CAST( 89 AS SIGNED ) - + 27
----
-356

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + - SUM ( ALL - 12 ) * - 32 + - 34 + CAST ( 89 AS INTEGER ) - + 27
----
-356

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-696
SELECT ALL - 83 * + + 63 + CAST( NULL AS SIGNED ) AS col0, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-696
SELECT ALL - 83 * + + 63 + CAST ( NULL AS INTEGER ) AS col0, - 63
----
NULL
-63

query I rowsort
SELECT - 11 + 23 AS col0
----
12

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

onlyif mysql # aggregate syntax: 
query II rowsort label-699
SELECT - 51 * MAX( DISTINCT + + ( - 46 ) ) - ( 63 ) AS col0, - ( - + 4 ) - - ( - + 90 ) AS col2
----
2283
-86

skipif mysql # not compatible
query II rowsort label-699
SELECT - 51 * MAX ( DISTINCT + + ( - 46 ) ) - ( 63 ) AS col0, - ( - + 4 ) - - ( - + 90 ) AS col2
----
2283
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT ( + COUNT( DISTINCT + - COALESCE ( - - 84, - 28 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT ( + COUNT ( DISTINCT + - COALESCE ( - - 84, - 28 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-701
SELECT - SUM( COALESCE ( - 73, - 82 ) ) AS col2, - COUNT( * ) + + ( + 28 ) AS col0
----
73
27

skipif mysql # not compatible
query II rowsort label-701
SELECT - SUM ( COALESCE ( - 73, - 82 ) ) AS col2, - COUNT ( * ) + + ( + 28 ) AS col0
----
73
27

query I rowsort
SELECT ALL ( + + 42 ) AS col2
----
42

query I rowsort
SELECT ALL ( + + 34 ) AS col0
----
34

query I rowsort
SELECT DISTINCT 13 - - 17
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT COALESCE ( - - 55, + ( - COUNT( * ) ) - + 80 )
----
55

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT COALESCE ( - - 55, + ( - COUNT ( * ) ) - + 80 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-706
SELECT DISTINCT 7 * + - CAST( + - ( AVG ( CASE WHEN NOT NULL IS NOT NULL THEN 86 ELSE NULL END ) ) AS SIGNED ) AS col2
----
602

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT 7 * + - CAST ( + - ( AVG ( CASE WHEN NOT NULL IS NOT NULL THEN 86 ELSE NULL END ) ) AS INTEGER ) AS col2
----
602

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT + ( + ( - CAST( - 71 AS SIGNED ) ) ) + - - 48 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-710
SELECT + ( + ( - CAST ( - 71 AS INTEGER ) ) ) + - - 48 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - COALESCE ( + 95, - - COUNT( * ) * 1, - - ( NULLIF ( + 70, - - 91 / + + 42 * - COALESCE ( + + 56, 36 ) + - 69 + - 51 * + ( 40 ) ) ) * + MIN( - + 86 ) + + 60 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-711
SELECT - COALESCE ( + 95, - - COUNT ( * ) * 1, - - ( NULLIF ( + 70, - - 91 / + + 42 * - COALESCE ( + + 56, 36 ) + - 69 + - 51 * + ( 40 ) ) ) * + MIN ( - + 86 ) + + 60 ) col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT DISTINCT 71 * + + 17 AS col1, MIN( ALL + 1 ) + + 92
----
1207
93

skipif mysql # not compatible
query II rowsort label-712
SELECT DISTINCT 71 * + + 17 AS col1, MIN ( ALL + 1 ) + + 92
----
1207
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-713
SELECT ALL COUNT( * ) + CAST( 72 AS SIGNED ) * + 23 AS col0
----
1657

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL COUNT ( * ) + CAST ( 72 AS INTEGER ) * + 23 AS col0
----
1657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-714
SELECT DISTINCT + 90 + + - CAST( - 26 AS SIGNED ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT + 90 + + - CAST ( - 26 AS INTEGER ) AS col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT ALL NULLIF ( + + 14, + 15 ) DIV - 68 * + 70 + MIN( + NULLIF ( - 87, 18 + + 47 ) ) + - 97 - + 10 - - 90 * + 68 * + 17 + 68 * 64 - 79 + MIN( ALL + 16 ) - + 47
----
108088

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL NULLIF ( + + 14, + 15 ) / - 68 * + 70 + MIN ( + NULLIF ( - 87, 18 + + 47 ) ) + - 97 - + 10 - - 90 * + 68 * + 17 + 68 * 64 - 79 + MIN ( ALL + 16 ) - + 47
----
108088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-716
SELECT DISTINCT + + ( MIN( ALL + 10 ) ) DIV CAST( - 24 AS SIGNED ) + 94 * - 88 + + 25
----
-8247

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT + + ( MIN ( ALL + 10 ) ) / CAST ( - 24 AS INTEGER ) + 94 * - 88 + + 25
----
-8247

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-717
SELECT ALL 27 DIV 65 DIV - - 20 * 47 + + + 73 DIV CAST( + + ( - 3 ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL 27 / 65 / - - 20 * 47 + + + 73 / CAST ( + + ( - 3 ) AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-718
SELECT - MAX( + - 22 ) DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-718
SELECT - MAX ( + - 22 ) / - 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT + 66 * + COUNT( DISTINCT + 96 )
----
66

skipif mysql # not compatible
query I rowsort label-719
SELECT + 66 * + COUNT ( DISTINCT + 96 )
----
66

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

query I rowsort
SELECT + 21 * + + 99 - - 97 AS col0
----
2176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-722
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1, + COUNT( + 84 ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-722
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1, + COUNT ( + 84 ) AS col2
----
1
1

query I rowsort
SELECT ALL 85 * - - ( + 29 ) AS col1
----
2465

query I rowsort
SELECT DISTINCT - 45 * - + 40 * - 69
----
-124200

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL 54 * + 20 - - 29 + + + COUNT( * ) AS col1
----
1110

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL 54 * + 20 - - 29 + + + COUNT ( * ) AS col1
----
1110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-726
SELECT - + 53 * 5 - MIN( - 96 ) DIV + 78 + + 56
----
-208

skipif mysql # not compatible
query I rowsort label-726
SELECT - + 53 * 5 - MIN ( - 96 ) / + 78 + + 56
----
-208

query I rowsort
SELECT 48 * - 85 + + 53
----
-4027

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT - COUNT( 42 ) * + 58 * + 25 + - + 91 + + + 88 + - 19 - 54 * + + ( 27 ) + 10 * + 23 AS col2
----
-2700

skipif mysql # not compatible
query I rowsort label-728
SELECT - COUNT ( 42 ) * + 58 * + 25 + - + 91 + + + 88 + - 19 - 54 * + + ( 27 ) + 10 * + 23 AS col2
----
-2700

query I rowsort
SELECT + 48 * + + ( - 88 )
----
-4224

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT 82 * - 82 * ( + + COALESCE ( + 95, 19 ) ) * - 58 * COUNT( * ) * 23 AS col0, - 3
----
852132520
-3

skipif mysql # not compatible
query II rowsort label-730
SELECT 82 * - 82 * ( + + COALESCE ( + 95, 19 ) ) * - 58 * COUNT ( * ) * 23 AS col0, - 3
----
852132520
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT COALESCE ( + 58, - 54 + + 11 - + + 76 ) + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-731
SELECT COALESCE ( + 58, - 54 + + 11 - + + 76 ) + + COUNT ( * )
----
59

query II rowsort
SELECT DISTINCT 61 AS col0, 49 * + - 78 col2
----
61
-3822

query I rowsort
SELECT 54 * - 26 * - 75 AS col0
----
105300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-734
SELECT ALL 84 DIV - CASE + - 10 WHEN - 41 * - NULLIF ( + 37, + COUNT( * ) * + 84 - - - ( 4 ) ) - - CAST( NULL AS SIGNED ) * 43 + + - 5 + + + CAST( + 15 AS SIGNED ) THEN - 99 + + + 88 ELSE - 36 END AS col0, 71
----
2
71

skipif mysql # not compatible
query II rowsort label-734
SELECT ALL 84 / - CASE + - 10 WHEN - 41 * - NULLIF ( + 37, + COUNT ( * ) * + 84 - - - ( 4 ) ) - - CAST ( NULL AS INTEGER ) * 43 + + - 5 + + + CAST ( + 15 AS INTEGER ) THEN - 99 + + + 88 ELSE - 36 END AS col0, 71
----
2
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT DISTINCT 1 / + CASE - 49 WHEN + CAST( NULL AS SIGNED ) THEN + AVG ( DISTINCT 91 ) WHEN - - 94 + - 69 THEN NULL WHEN + COALESCE ( + 0, 28 * 86 / 22 + - + 41 ) / 77 + + - 31 + + 33 THEN NULL ELSE NULL END * + 72 * - + CASE + COUNT( * ) WHEN + 34 THEN NULL ELSE - MIN( + COALESCE ( 71, - 34, ( 65 ) ) ) * 24 - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT 1 / + CASE - 49 WHEN + CAST ( NULL AS INTEGER ) THEN + AVG ( DISTINCT 91 ) WHEN - - 94 + - 69 THEN NULL WHEN + COALESCE ( + 0, 28 * 86 / 22 + - + 41 ) / 77 + + - 31 + + 33 THEN NULL ELSE NULL END * + 72 * - + CASE + COUNT ( * ) WHEN + 34 THEN NULL ELSE - MIN ( + COALESCE ( 71, - 34, ( 65 ) ) ) * 24 - 18 END
----
NULL

query I rowsort
SELECT ALL - 76 * + 27 AS col2
----
-2052

query I rowsort
SELECT 44 * - 55 AS col2
----
-2420

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT 80 * + 87 * - 96 * - COUNT( * ) * - 10, 94 * + 20 * + 22 * 26 col0
----
-6681600
1075360

skipif mysql # not compatible
query II rowsort label-738
SELECT 80 * + 87 * - 96 * - COUNT ( * ) * - 10, 94 * + 20 * + 22 * 26 col0
----
-6681600
1075360

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT 83 + - 39 - MIN( + - 33 )
----
77

skipif mysql # not compatible
query I rowsort label-739
SELECT 83 + - 39 - MIN ( + - 33 )
----
77

query I rowsort
SELECT 54 * + 56 AS col1
----
3024

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT MAX( - 30 ) * + 88 + + - COUNT( DISTINCT - 74 ) AS col0, 10 + + 65 * + + 61 AS col1
----
-2641
3975

skipif mysql # not compatible
query II rowsort label-741
SELECT MAX ( - 30 ) * + 88 + + - COUNT ( DISTINCT - 74 ) AS col0, 10 + + 65 * + + 61 AS col1
----
-2641
3975

query I rowsort
SELECT ALL + 4 + - 83 AS col1
----
-79

query II rowsort
SELECT - 37 AS col0, 34
----
-37
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-744
SELECT 73 + + - 21 * CAST( NULL AS SIGNED ) AS col0, 27 + + 83 * + ( + + 76 )
----
NULL
6335

skipif mysql # not compatible
query II rowsort label-744
SELECT 73 + + - 21 * CAST ( NULL AS INTEGER ) AS col0, 27 + + 83 * + ( + + 76 )
----
NULL
6335

query I rowsort
SELECT ALL + 13 * - 43
----
-559

query I rowsort
SELECT ALL + 4 + + 17 + - + 53 * - - 10 AS col0
----
-509

query I rowsort
SELECT ALL - 41 + + - 79
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-748
SELECT ALL + 86 + 65 + - 88 AS col2, - NULLIF ( + 8, COUNT( * ) * 66 + - 16 ) DIV 88 + - - 39 AS col0
----
63
39

skipif mysql # not compatible
query II rowsort label-748
SELECT ALL + 86 + 65 + - 88 AS col2, - NULLIF ( + 8, COUNT ( * ) * 66 + - 16 ) / 88 + - - 39 AS col0
----
63
39

query I rowsort
SELECT ALL 52 + + 43 AS col2
----
95

query II rowsort
SELECT + 80 + - 23 * - + 44, + 39 * - 81 * + + 27 - - + 24 AS col1
----
1092
-85269

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT + 64 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-751
SELECT + 64 / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-752
SELECT ALL - + 89 + + 96 * - 12 DIV ( + COUNT( * ) ) + COUNT( * )
----
-1240

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - + 89 + + 96 * - 12 / ( + COUNT ( * ) ) + COUNT ( * )
----
-1240

query I rowsort
SELECT 12 + - + 55
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT 83, MAX( ALL + - 88 ) AS col2
----
83
-88

skipif mysql # not compatible
query II rowsort label-754
SELECT 83, MAX ( ALL + - 88 ) AS col2
----
83
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT 2 - - 97 DIV 30 + 98 * - + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-755
SELECT 2 - - 97 / 30 + 98 * - + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT - - SUM( DISTINCT - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - - SUM ( DISTINCT - 54 ) AS col0
----
-54

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

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

query I rowsort
SELECT ALL - 7 - - 20 + + 76
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT 50 + COUNT( * ) + + + 77 * + 24
----
1899

skipif mysql # not compatible
query I rowsort label-759
SELECT 50 + COUNT ( * ) + + + 77 * + 24
----
1899

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-761
SELECT ALL - CAST( - + 40 AS SIGNED ) DIV - + 13 - + ( + 24 )
----
-27

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - CAST ( - + 40 AS INTEGER ) / - + 13 - + ( + 24 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-762
SELECT 47 * 7 * + 37 * CAST( + - CAST( 61 AS SIGNED ) AS SIGNED ) + + ( + 5 ) + - + COUNT( * )
----
-742549

skipif mysql # not compatible
query I rowsort label-762
SELECT 47 * 7 * + 37 * CAST ( + - CAST ( 61 AS INTEGER ) AS INTEGER ) + + ( + 5 ) + - + COUNT ( * )
----
-742549

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT ALL - - COALESCE ( - 3, - 81 + - MIN( DISTINCT + 78 ) ) AS col2, + 17 AS col1
----
-3
17

skipif mysql # not compatible
query II rowsort label-764
SELECT ALL - - COALESCE ( - 3, - 81 + - MIN ( DISTINCT + 78 ) ) AS col2, + 17 AS col1
----
-3
17

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT DISTINCT 45 DIV COALESCE ( - + 96, - 9 DIV - + 87 ) + + - 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT 45 / COALESCE ( - + 96, - 9 / - + 87 ) + + - 92 AS col0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL - MAX( + ( - 81 ) ) * + 45 * + COUNT( * ) * + 35 AS col2
----
127575

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - MAX ( + ( - 81 ) ) * + 45 * + COUNT ( * ) * + 35 AS col2
----
127575

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT 50 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT 50 / + 62
----
0

query I rowsort
SELECT + NULLIF ( - 41, + + COALESCE ( + 66, - 92 ) ) + - - 94
----
53

query I rowsort
SELECT ALL 86 * 46
----
3956

onlyif mysql # aggregate syntax: 
query II rowsort label-772
SELECT DISTINCT - COUNT( * ), - 52 * CASE - - 6 WHEN + 16 THEN + 54 ELSE NULL END + - 67 col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-772
SELECT DISTINCT - COUNT ( * ), - 52 * CASE - - 6 WHEN + 16 THEN + 54 ELSE NULL END + - 67 col0
----
-1
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL 43 * - COUNT( * ) * 92 col1
----
-3956

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL 43 * - COUNT ( * ) * 92 col1
----
-3956

query I rowsort
SELECT ALL 60 * 87 AS col0
----
5220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-776
SELECT DISTINCT 95 + - + 74 + - + CAST( NULL AS SIGNED ) * 61 - + CASE - 56 WHEN - 52 * - COUNT( * ) * - 83 / - + 49 * - 23 * - + ( + CASE WHEN COUNT( * ) BETWEEN + 45 AND NULL THEN NULL ELSE - CASE 18 WHEN - 67 THEN NULL ELSE + 56 END END ) THEN + 36 END + - 87 * - CAST( COALESCE ( - CAST( 42 AS SIGNED ), 95, - 40 * AVG ( DISTINCT 75 ) ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT 95 + - + 74 + - + CAST ( NULL AS INTEGER ) * 61 - + CASE - 56 WHEN - 52 * - COUNT ( * ) * - 83 / - + 49 * - 23 * - + ( + CASE WHEN COUNT ( * ) BETWEEN + 45 AND NULL THEN NULL ELSE - CASE 18 WHEN - 67 THEN NULL ELSE + 56 END END ) THEN + 36 END + - 87 * - CAST ( COALESCE ( - CAST ( 42 AS INTEGER ), 95, - 40 * AVG ( DISTINCT 75 ) ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 48 * 19
----
912

query II rowsort
SELECT - 21 AS col2, - 73
----
-21
-73

query II rowsort
SELECT - 23 AS col2, 92 * 69 AS col1
----
-23
6348

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-780
SELECT - COUNT( * ) AS col0, + COUNT( + 80 ) * + 51 + + ( - MIN( 19 ) ) DIV + 29 + - 71 AS col0
----
-1
-20

skipif mysql # not compatible
query II rowsort label-780
SELECT - COUNT ( * ) AS col0, + COUNT ( + 80 ) * + 51 + + ( - MIN ( 19 ) ) / + 29 + - 71 AS col0
----
-1
-20

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

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL - COUNT ( * ) / 94 AS col0
----
0

query I rowsort
SELECT DISTINCT 94 + - 76 * 99
----
-7430

query I rowsort
SELECT ALL 53 + + 91
----
144

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL 47 * + COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-785
SELECT 17 AS col0, ( - SUM( DISTINCT 57 ) ) * + MIN( DISTINCT 9 ) * - 76 + + 77 - 9 AS col2
----
17
39056

skipif mysql # not compatible
query II rowsort label-785
SELECT 17 AS col0, ( - SUM ( DISTINCT 57 ) ) * + MIN ( DISTINCT 9 ) * - 76 + + 77 - 9 AS col2
----
17
39056

query I rowsort
SELECT ALL - 73 + - ( - 83 )
----
10

query I rowsort
SELECT 93 + + 49
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-788
SELECT ALL + 97 + - 11 AS col2, 14 + + + 51 * 45 * COUNT( * ) + 11
----
86
2320

skipif mysql # not compatible
query II rowsort label-788
SELECT ALL + 97 + - 11 AS col2, 14 + + + 51 * 45 * COUNT ( * ) + 11
----
86
2320

query II rowsort
SELECT DISTINCT 62, 33 col1
----
62
33

query I rowsort
SELECT ALL + + 80 * - 38 - - 28 AS col1
----
-3012

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT + 37 * + + MIN( 35 ) + + 71 AS col0
----
1366

skipif mysql # not compatible
query I rowsort label-791
SELECT + 37 * + + MIN ( 35 ) + + 71 AS col0
----
1366

query I rowsort
SELECT DISTINCT - CASE - NULLIF ( + + 64, 19 * - 49 * 99 ) WHEN 13 * - - ( - 23 ) * - 27 THEN + 21 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-793
SELECT ALL - + 11 AS col2, - 78 - + 46 - - + CAST( - - 63 AS SIGNED ) DIV + 98 + - - ( - 28 ) * + + ( - + 77 )
----
-11
2032

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL - + 11 AS col2, - 78 - + 46 - - + CAST ( - - 63 AS INTEGER ) / + 98 + - - ( - 28 ) * + + ( - + 77 )
----
-11
2032

query I rowsort
SELECT - - 18 * 63
----
1134

query II rowsort
SELECT 97, 18 AS col0
----
97
18

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - 3 * + COUNT( * ) * - - 60 * 17
----
-3060

skipif mysql # not compatible
query I rowsort label-796
SELECT - 3 * + COUNT ( * ) * - - 60 * 17
----
-3060

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-798
SELECT + + 88 AS col0, ( - + COUNT( * ) ) + - 57 + - + 71 + 80 - + + 54 col2
----
88
-103

skipif mysql # not compatible
query II rowsort label-798
SELECT + + 88 AS col0, ( - + COUNT ( * ) ) + - 57 + - + 71 + 80 - + + 54 col2
----
88
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT - - 16 DIV + 91 - - + 23
----
23

skipif mysql # not compatible
query I rowsort label-799
SELECT - - 16 / + 91 - - + 23
----
23

query I rowsort
SELECT + 91 * - 83 AS col2
----
-7553

query II rowsort
SELECT ALL + 11, 61 AS col0
----
11
61

query II rowsort
SELECT - 58 * - + COALESCE ( - - 33, - 33, + 58 ) + + 47 AS col2, 16 * + + 67 * 11 + - 49 AS col1
----
1961
11743

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL + COALESCE ( + ( 11 ), + COUNT( * ) * 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL + COALESCE ( + ( 11 ), + COUNT ( * ) * 11 ) AS col0
----
11

query II rowsort
SELECT ALL 65 * 18 + - 52 + + - 82 * 14, - 94 col1
----
-30
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-806
SELECT 49 * - + CAST( NULL AS SIGNED ) / + CAST( + + 92 AS DECIMAL ) * + COALESCE ( 73, 80, - NULLIF ( + - COUNT( * ), + 36 ) + + 20 + + + COALESCE ( 90, - 77 * SUM( + + 19 ) * 30 * 45 - 11 ) * - CAST( NULL AS SIGNED ) ) - + + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT 49 * - + CAST ( NULL AS INTEGER ) / + CAST ( + + 92 AS REAL ) * + COALESCE ( 73, 80, - NULLIF ( + - COUNT ( * ), + 36 ) + + 20 + + + COALESCE ( 90, - 77 * SUM ( + + 19 ) * 30 * 45 - 11 ) * - CAST ( NULL AS INTEGER ) ) - + + 84 AS col0
----
NULL

query I rowsort
SELECT - 43 * - - 38 AS col1
----
-1634

query I rowsort
SELECT - 83 * + 34 + + - 56 + 47
----
-2831

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT + ( + 41 ) DIV - - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT + ( + 41 ) / - - 86 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT 48 * MAX( ALL + 85 ) * - 35 AS col2
----
-142800

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT 48 * MAX ( ALL + 85 ) * - 35 AS col2
----
-142800

query I rowsort
SELECT DISTINCT - 4 + - 7 col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-813
SELECT DISTINCT + 40 + - CASE - 49 WHEN 48 THEN + - 9 / - + COALESCE ( - 43, + 90 + - CAST( - COUNT( * ) AS SIGNED ), - 81 + + 52 * - 6 + - + 45 ) / + + 41 * + 11 END + ( - - COUNT( * ) ) * - 47 + + MAX( 32 ) * - COUNT( * ) * - NULLIF ( 23, CAST( + ( - 53 ) AS SIGNED ) + CASE + 12 WHEN - 77 * 34 THEN NULL ELSE 96 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT + 40 + - CASE - 49 WHEN 48 THEN + - 9 / - + COALESCE ( - 43, + 90 + - CAST ( - COUNT ( * ) AS INTEGER ), - 81 + + 52 * - 6 + - + 45 ) / + + 41 * + 11 END + ( - - COUNT ( * ) ) * - 47 + + MAX ( 32 ) * - COUNT ( * ) * - NULLIF ( 23, CAST ( + ( - 53 ) AS INTEGER ) + CASE + 12 WHEN - 77 * 34 THEN NULL ELSE 96 END )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 76 + + 96
----
172

query I rowsort
SELECT ALL COALESCE ( 7, - + 51 + + 98 * - + 26, 64 + 86 - - 85 ) + + + 12 * - 75 * - 49 + + + COALESCE ( - 40, - 80 + - + 78 ) * - + 69 - + ( + 27 )
----
46840

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT 6 + - COUNT( * ) + + 68 * 43 * + COUNT( * )
----
2929

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT 6 + - COUNT ( * ) + + 68 * 43 * + COUNT ( * )
----
2929

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT + COUNT( * ) * 85 AS col2, + SUM( 8 ) AS col2
----
85
8

skipif mysql # not compatible
query II rowsort label-818
SELECT + COUNT ( * ) * 85 AS col2, + SUM ( 8 ) AS col2
----
85
8

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + 17 * + ( + COALESCE ( + + MAX( - - 47 ), 25 + - 62 ) ) AS col2
----
799

skipif mysql # not compatible
query I rowsort label-819
SELECT + 17 * + ( + COALESCE ( + + MAX ( - - 47 ), 25 + - 62 ) ) AS col2
----
799

query I rowsort
SELECT DISTINCT 41 - + 2 col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT + + CAST( NULL AS SIGNED ) - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT + + CAST ( NULL AS INTEGER ) - - 37
----
NULL

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

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

query I rowsort
SELECT + + 96 * 29
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT ALL + + COALESCE ( - COUNT( 26 ), + - 17 * + 30 * + 21 + 74 ) * - - MAX( ALL 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + + COALESCE ( - COUNT ( 26 ), + - 17 * + 30 * + 21 + 74 ) * - - MAX ( ALL 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT DISTINCT 91 DIV - 13 + MIN( + 99 ) * + ( + MIN( 30 ) ) + + 56 + + 9 + + 17
----
3045

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT 91 / - 13 + MIN ( + 99 ) * + ( + MIN ( 30 ) ) + + 56 + + 9 + + 17
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL COALESCE ( - - COUNT( * ), - + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL COALESCE ( - - COUNT ( * ), - + 45 )
----
1

query I rowsort
SELECT DISTINCT - 58 * + - 6 + - + 83 AS col2
----
265

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

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

query I rowsort
SELECT + ( 48 ) + + + 82 + + 97 * - 66 AS col2
----
-6272

query I rowsort
SELECT ALL - 66 * + NULLIF ( + 12, + 95 ) col0
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT + COALESCE ( + 0, + - 48 ) DIV - + 9
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT + COALESCE ( + 0, + - 48 ) / - + 9
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-832
SELECT - 75 DIV + - COUNT( * ) - 4 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-832
SELECT - 75 / + - COUNT ( * ) - 4 AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT - + 95 + + 38, MIN( ALL - 96 ) AS col2
----
-57
-96

skipif mysql # not compatible
query II rowsort label-833
SELECT - + 95 + + 38, MIN ( ALL - 96 ) AS col2
----
-57
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-834
SELECT ALL + CAST( + - 60 AS SIGNED ) * + 65 AS col1
----
-3900

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + CAST ( + - 60 AS INTEGER ) * + 65 AS col1
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT - - COUNT( * ) + + ( + 13 )
----
14

skipif mysql # not compatible
query I rowsort label-835
SELECT - - COUNT ( * ) + + ( + 13 )
----
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-837
SELECT + 17 * - CASE MAX( 30 ) WHEN 34 / - 7 * - - NULLIF ( - 73, ( 38 ) ) THEN + - 11 + + COALESCE ( + 48, + - COUNT( * ) * 35, + + 69 ) ELSE NULL END + - SUM( + 71 ) + 12 - - - 77 / + CASE 2 WHEN + 51 * 94 THEN NULL ELSE 80 + - CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT + 17 * - CASE MAX ( 30 ) WHEN 34 / - 7 * - - NULLIF ( - 73, ( 38 ) ) THEN + - 11 + + COALESCE ( + 48, + - COUNT ( * ) * 35, + + 69 ) ELSE NULL END + - SUM ( + 71 ) + 12 - - - 77 / + CASE 2 WHEN + 51 * 94 THEN NULL ELSE 80 + - CAST ( NULL AS REAL ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 62 * - ( 75 ) * 53
----
-246450

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - ( + 85 ) + - COUNT( * ) - CASE 15 WHEN + 85 * - SUM( - - 22 ) + ( + - NULLIF ( 76, + COUNT( * ) ) ) * - COUNT( 10 ) + COUNT( - 83 ) THEN - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT - ( + 85 ) + - COUNT ( * ) - CASE 15 WHEN + 85 * - SUM ( - - 22 ) + ( + - NULLIF ( 76, + COUNT ( * ) ) ) * - COUNT ( 10 ) + COUNT ( - 83 ) THEN - 98 END AS col0
----
NULL

query I rowsort
SELECT ( - - 91 ) AS col2
----
91

query I rowsort
SELECT ALL + 45 * - 59 AS col2
----
-2655

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL ( + 6 ) * + MIN( DISTINCT + - ( + 28 ) ) + + - 21 + - 4 AS col2
----
-193

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL ( + 6 ) * + MIN ( DISTINCT + - ( + 28 ) ) + + - 21 + - 4 AS col2
----
-193

query II rowsort
SELECT + 19 AS col1, - 37
----
19
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT - ( - + COUNT( * ) ) * + 57 DIV - 20 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-844
SELECT - ( - + COUNT ( * ) ) * + 57 / - 20 AS col1
----
-2

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

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

query I rowsort
SELECT NULLIF ( - 33, + - 80 + + + 27 ) AS col2
----
-33

query II rowsort
SELECT + 18 * - - 8 * + 30, + 81 * 10 AS col1
----
4320
810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-848
SELECT - 88 AS col1, CAST( NULL AS SIGNED ) * NULLIF ( - 73, + - 13 ) AS col0
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-848
SELECT - 88 AS col1, CAST ( NULL AS INTEGER ) * NULLIF ( - 73, + - 13 ) AS col0
----
-88
NULL

query I rowsort
SELECT + 35 + + - 91
----
-56

query I rowsort
SELECT DISTINCT - 6 * - 52 - + - 73 col0
----
385

query I rowsort
SELECT DISTINCT CASE 67 WHEN 72 THEN + 42 WHEN + 21 THEN NULL ELSE NULL END / + 39 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT ALL ( 1 ) * + COUNT( * ) DIV - NULLIF ( + 85, + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL ( 1 ) * + COUNT ( * ) / - NULLIF ( + 85, + 65 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-854
SELECT - 99 + + - CASE - 72 WHEN + COUNT( * ) THEN + CAST( NULL AS SIGNED ) WHEN 79 / + 12 THEN NULL END * + 20, MIN( + ( 43 ) ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-854
SELECT - 99 + + - CASE - 72 WHEN + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) WHEN 79 / + 12 THEN NULL END * + 20, MIN ( + ( 43 ) ) AS col1
----
NULL
43

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT DISTINCT - 10 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - 10 / + 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL CAST( - NULLIF ( + + 87, 9 * + 66 * + ( - + SUM( ALL 55 ) ) ) AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL CAST ( - NULLIF ( + + 87, 9 * + 66 * + ( - + SUM ( ALL 55 ) ) ) AS INTEGER ) AS col2
----
-87

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( 99, - 93 * 36 + - - 25 ) AS col2
----
99

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT COUNT( * ) AS col1, - 55 * 58 + - COALESCE ( - 33, - - 79, + COUNT( * ) + + 83 ) + - COUNT( * ) + - 34
----
1
-3192

skipif mysql # not compatible
query II rowsort label-862
SELECT COUNT ( * ) AS col1, - 55 * 58 + - COALESCE ( - 33, - - 79, + COUNT ( * ) + + 83 ) + - COUNT ( * ) + - 34
----
1
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - ( MAX( + - 32 ) ) * 93
----
2976

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - ( MAX ( + - 32 ) ) * 93
----
2976

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT + COUNT( * ) + + - COUNT( * ) * + 90 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-865
SELECT + COUNT ( * ) + + - COUNT ( * ) * + 90 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL MAX( 81 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL MAX ( 81 ) col1
----
81

query I rowsort
SELECT 25 + - 67 + + 30 - 58 * - 7 AS col2
----
394

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT - + SUM( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-869
SELECT - + SUM ( + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + 4 + + 22 + - - COUNT( - 81 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 4 + + 22 + - - COUNT ( - 81 ) col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-871
SELECT 5 * + 79 DIV 39 * COUNT( * ) * 87
----
870

skipif mysql # not compatible
query I rowsort label-871
SELECT 5 * + 79 / 39 * COUNT ( * ) * 87
----
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-872
SELECT ALL CASE + 34 WHEN - 40 DIV + + 39 + + COUNT( * ) THEN - - COUNT( - + 48 ) ELSE + - ( + COALESCE ( + - CAST( NULL AS SIGNED ), + COUNT( ALL + 85 ) + - + 67, COALESCE ( + - CASE COUNT( * ) WHEN COUNT( * ) THEN - 65 ELSE - - 6 DIV + + 0 END, 48, COUNT( * ) ) * + 83 + ( 47 ) ) ) - - COUNT( * ) END * 90 AS col0
----
6030

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL CASE + 34 WHEN - 40 / + + 39 + + COUNT ( * ) THEN - - COUNT ( - + 48 ) ELSE + - ( + COALESCE ( + - CAST ( NULL AS INTEGER ), + COUNT ( ALL + 85 ) + - + 67, COALESCE ( + - CASE COUNT ( * ) WHEN COUNT ( * ) THEN - 65 ELSE - - 6 / + + 0 END, 48, COUNT ( * ) ) * + 83 + ( 47 ) ) ) - - COUNT ( * ) END * 90 AS col0
----
6030

query II rowsort
SELECT - 76 AS col0, - 43 * + 16 AS col2
----
-76
-688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL CAST( - 33 AS SIGNED ) + CASE + COUNT( * ) WHEN - - 97 + + 49 THEN - - COUNT( * ) WHEN 67 * MAX( - + ( 52 ) ) * - - CASE 42 WHEN + 96 * - + 56 * - NULLIF ( + 37, + + 11 + 31 * + CAST( NULL AS SIGNED ) * ( + 84 ) + + - 66 ) * 92 THEN - 18 * - 22 END + 0 THEN - 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL CAST ( - 33 AS INTEGER ) + CASE + COUNT ( * ) WHEN - - 97 + + 49 THEN - - COUNT ( * ) WHEN 67 * MAX ( - + ( 52 ) ) * - - CASE 42 WHEN + 96 * - + 56 * - NULLIF ( + 37, + + 11 + 31 * + CAST ( NULL AS INTEGER ) * ( + 84 ) + + - 66 ) * 92 THEN - 18 * - 22 END + 0 THEN - 22 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL 9 + + MIN( - 23 )
----
-14

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL 9 + + MIN ( - 23 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT 84 * + + ( - + 88 ) * + MAX( ALL + 42 )
----
-310464

skipif mysql # not compatible
query I rowsort label-876
SELECT 84 * + + ( - + 88 ) * + MAX ( ALL + 42 )
----
-310464

query I rowsort
SELECT - 49 * - - 27 AS col2
----
-1323

query I rowsort
SELECT ALL + 52 * + 56 AS col2
----
2912

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT - COUNT( 74 ) * + 41, 72 AS col0
----
-41
72

skipif mysql # not compatible
query II rowsort label-879
SELECT - COUNT ( 74 ) * + 41, 72 AS col0
----
-41
72

onlyif mysql # aggregate syntax: 
query II rowsort label-880
SELECT - 10 col0, - COUNT( * ) + 15 + - - 13
----
-10
27

skipif mysql # not compatible
query II rowsort label-880
SELECT - 10 col0, - COUNT ( * ) + 15 + - - 13
----
-10
27

query I rowsort
SELECT ALL - 77 + - - 44
----
-33

query I rowsort
SELECT DISTINCT 31 + - 42
----
-11

query I rowsort
SELECT 99 * 58 * + 84 AS col0
----
482328

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT ( - + SUM( - 55 ) ) - 25 AS col1, 22
----
30
22

skipif mysql # not compatible
query II rowsort label-884
SELECT ( - + SUM ( - 55 ) ) - 25 AS col1, 22
----
30
22

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL 78 + - 76 - + 88 * - ( + 95 ) + 68 + + SUM( DISTINCT + 42 ) AS col1
----
8472

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL 78 + - 76 - + 88 * - ( + 95 ) + 68 + + SUM ( DISTINCT + 42 ) AS col1
----
8472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT DISTINCT + 40 + + + 74 - + - 90 + - + 85 + + - 28 * + COALESCE ( + - NULLIF ( + - 54, - 13 ), + + CASE + + 3 WHEN + 85 THEN NULL WHEN 49 + - 0 THEN - CAST( NULL AS SIGNED ) WHEN 22 THEN + 29 END ) col2
----
-1393

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT + 40 + + + 74 - + - 90 + - + 85 + + - 28 * + COALESCE ( + - NULLIF ( + - 54, - 13 ), + + CASE + + 3 WHEN + 85 THEN NULL WHEN 49 + - 0 THEN - CAST ( NULL AS INTEGER ) WHEN 22 THEN + 29 END ) col2
----
-1393

query I rowsort
SELECT DISTINCT + 41 - - + 43 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-888
SELECT 18 - + 46 * + CAST( 52 AS SIGNED ) DIV + 1 + + MIN( ALL + 48 ) + + CAST( 63 AS SIGNED ) AS col2, NULLIF ( + 8, + + 2 ) + + NULLIF ( + 44, + - 43 ) + - CASE - 74 WHEN - CAST( - + MAX( ALL - - 66 ) AS SIGNED ) * + 51 + - 61 + - 71 THEN 83 * + 44 ELSE 87 * + 37 - + 48 END * 26
----
-2263
-82394

skipif mysql # not compatible
query II rowsort label-888
SELECT 18 - + 46 * + CAST ( 52 AS INTEGER ) / + 1 + + MIN ( ALL + 48 ) + + CAST ( 63 AS INTEGER ) AS col2, NULLIF ( + 8, + + 2 ) + + NULLIF ( + 44, + - 43 ) + - CASE - 74 WHEN - CAST ( - + MAX ( ALL - - 66 ) AS INTEGER ) * + 51 + - 61 + - 71 THEN 83 * + 44 ELSE 87 * + 37 - + 48 END * 26
----
-2263
-82394

query I rowsort
SELECT ALL + 23 - 89 * + 31 col2
----
-2736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-890
SELECT 89 * COALESCE ( + ( - + CAST( 17 AS SIGNED ) ), ( + - 67 ) + + - 31 + - + 16 * - 6 + - 38 - + 66, + 48 ) * - - COALESCE ( 40, + + 6, - 3 ), - 28 AS col0
----
-60520
-28

skipif mysql # not compatible
query II rowsort label-890
SELECT 89 * COALESCE ( + ( - + CAST ( 17 AS INTEGER ) ), ( + - 67 ) + + - 31 + - + 16 * - 6 + - 38 - + 66, + 48 ) * - - COALESCE ( 40, + + 6, - 3 ), - 28 AS col0
----
-60520
-28

query I rowsort
SELECT DISTINCT + 14 * - ( - - ( - 92 ) )
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL - COUNT( ALL - 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - COUNT ( ALL - 93 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + SUM( ALL - 81 ) * 67
----
-5427

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + SUM ( ALL - 81 ) * 67
----
-5427

query II rowsort
SELECT ALL + 24 * - + 65 AS col2, 19 AS col0
----
-1560
19

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT 69 * - ( + - CASE - + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN - 9 THEN - + ( - 69 ) END ) * + COUNT( * ) * - 20 + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT 69 * - ( + - CASE - + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN - 9 THEN - + ( - 69 ) END ) * + COUNT ( * ) * - 20 + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - 21 + ( - + 47 ) + - - MIN( + 2 ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-896
SELECT - 21 + ( - + 47 ) + - - MIN ( + 2 ) col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-897
SELECT SUM( - 15 ) DIV - - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-897
SELECT SUM ( - 15 ) / - - 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL - - 63 + MIN( + 8 ) - 3 * + 32 * - 88 * + 76 * ( 21 ) AS col1
----
13483079

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - - 63 + MIN ( + 8 ) - 3 * + 32 * - 88 * + 76 * ( 21 ) AS col1
----
13483079

query I rowsort
SELECT 81 - + 9
----
72

query II rowsort
SELECT 40 * - 79 AS col2, 90 * + 72 AS col1
----
-3160
6480

query II rowsort
SELECT - 83 + - 99, - 45 + + NULLIF ( 57, - 72 ) col2
----
-182
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-902
SELECT ALL - + MIN( - 0 ) DIV - + 4 + + 12 AS col2, ( + + 3 ) + + - ( + - COUNT( ALL + 37 ) ) AS col1
----
12
4

skipif mysql # not compatible
query II rowsort label-902
SELECT ALL - + MIN ( - 0 ) / - + 4 + + 12 AS col2, ( + + 3 ) + + - ( + - COUNT ( ALL + 37 ) ) AS col1
----
12
4

query I rowsort
SELECT DISTINCT + - 34 + - 23
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT ALL 36 + 21 + - 76 DIV - - 28 + + 76 * 5
----
435

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL 36 + 21 + - 76 / - - 28 + + 76 * 5
----
435

query II rowsort
SELECT ALL 41 * - 59, 68 AS col1
----
-2419
68

query I rowsort
SELECT DISTINCT - + 21 + + 53 - + + 42 * - 28 AS col1
----
1208

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT + 63 + - - 25 DIV 50 - - + 18 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-907
SELECT + 63 + - - 25 / 50 - - + 18 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT SUM( 88 ) + - MIN( DISTINCT - 35 ) + + 58 col0
----
181

skipif mysql # not compatible
query I rowsort label-908
SELECT SUM ( 88 ) + - MIN ( DISTINCT - 35 ) + + 58 col0
----
181

query I rowsort
SELECT ALL + NULLIF ( + + 4, - 13 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL 96 * + MAX( CAST( 83 AS SIGNED ) ) / + - 85 + + - MAX( DISTINCT - 89 ) + + CASE + 17 WHEN - + 33 * CAST( NULL AS SIGNED ) * - 32 - - AVG ( DISTINCT + - 77 ) + - + 96 / - 96 + - + ( + 4 ) / - - 87 + COUNT( * ) + 50 THEN + 21 / - - 40 WHEN + + COUNT( * ) + 84 THEN - 86 WHEN 0 + 81 THEN + COUNT( * ) ELSE NULL END + 8 * + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL 96 * + MAX ( CAST ( 83 AS INTEGER ) ) / + - 85 + + - MAX ( DISTINCT - 89 ) + + CASE + 17 WHEN - + 33 * CAST ( NULL AS INTEGER ) * - 32 - - AVG ( DISTINCT + - 77 ) + - + 96 / - 96 + - + ( + 4 ) / - - 87 + COUNT ( * ) + 50 THEN + 21 / - - 40 WHEN + + COUNT ( * ) + 84 THEN - 86 WHEN 0 + 81 THEN + COUNT ( * ) ELSE NULL END + 8 * + 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT + + 23 * + 28 - + 32 * + 64 + + + COUNT( * ) + - NULLIF ( + - 7, - 24 + 72 ) * - 51 AS col1
----
-1760

skipif mysql # not compatible
query I rowsort label-911
SELECT + + 23 * + 28 - + 32 * + 64 + + + COUNT ( * ) + - NULLIF ( + - 7, - 24 + 72 ) * - 51 AS col1
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT MIN( ALL 74 )
----
74

skipif mysql # not compatible
query I rowsort label-912
SELECT MIN ( ALL 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL COUNT( * ) * CASE + COALESCE ( + 71, - 40 ) WHEN 8 THEN + + 66 WHEN + COUNT( DISTINCT + - 33 ) THEN - 55 END * NULLIF ( + 29, - 94 ) + COUNT( * ) / 33 * + - AVG ( - 25 ) * + 74 + - 61 + + COALESCE ( - + 12, + 13 ) + + 12 + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL COUNT ( * ) * CASE + COALESCE ( + 71, - 40 ) WHEN 8 THEN + + 66 WHEN + COUNT ( DISTINCT + - 33 ) THEN - 55 END * NULLIF ( + 29, - 94 ) + COUNT ( * ) / 33 * + - AVG ( - 25 ) * + 74 + - 61 + + COALESCE ( - + 12, + 13 ) + + 12 + + 46
----
NULL

query II rowsort
SELECT ALL - 12, - 33 * ( + + 46 ) - + - 28 * - + 55 AS col1
----
-12
-3058

query II rowsort
SELECT DISTINCT - 15 AS col1, 60 * + 13 * + 93
----
-15
72540

query I rowsort
SELECT DISTINCT 65 * + 53
----
3445

query II rowsort
SELECT + 75 AS col2, - 37
----
75
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-918
SELECT 27 DIV - SUM( - 87 ) + 38 * + 33
----
1254

skipif mysql # not compatible
query I rowsort label-918
SELECT 27 / - SUM ( - 87 ) + 38 * + 33
----
1254

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT 89 DIV 1
----
89

skipif mysql # not compatible
query I rowsort label-919
SELECT 89 / 1
----
89

query I rowsort
SELECT DISTINCT 18 * - + 16 AS col1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ( - 6 ) * MAX( - 69 )
----
414

skipif mysql # not compatible
query I rowsort label-921
SELECT ( - 6 ) * MAX ( - 69 )
----
414

query I rowsort
SELECT 34 * + 12 AS col2
----
408

query II rowsort
SELECT ALL - 72 AS col1, + 90 * NULLIF ( - 63, + 82 )
----
-72
-5670

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

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

query I rowsort
SELECT DISTINCT - ( - + 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT 10 AS col2, ( + MAX( - ( 13 ) ) ) AS col0
----
10
-13

skipif mysql # not compatible
query II rowsort label-926
SELECT 10 AS col2, ( + MAX ( - ( 13 ) ) ) AS col0
----
10
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT 40 * + 46 - - 14 * + - 62 * + 53 * - 65 * - COUNT( ( + 49 ) ) - + COUNT( DISTINCT - 31 )
----
-2988421

skipif mysql # not compatible
query I rowsort label-927
SELECT 40 * + 46 - - 14 * + - 62 * + 53 * - 65 * - COUNT ( ( + 49 ) ) - + COUNT ( DISTINCT - 31 )
----
-2988421

query II rowsort
SELECT + 31 AS col1, 19 * 8 * - 64 AS col1
----
31
-9728

query I rowsort
SELECT - 1 + - 99
----
-100

query I rowsort
SELECT - + ( + + 88 ) col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-931
SELECT ALL + 37 + - + 26 + - + CAST( NULL AS SIGNED ) col0, + MIN( 71 ) - - - COUNT( * ) + - CAST( 8 AS SIGNED ) + + 26 * - ( - COUNT( * ) ) * - 38 AS col0
----
NULL
-926

skipif mysql # not compatible
query II rowsort label-931
SELECT ALL + 37 + - + 26 + - + CAST ( NULL AS INTEGER ) col0, + MIN ( 71 ) - - - COUNT ( * ) + - CAST ( 8 AS INTEGER ) + + 26 * - ( - COUNT ( * ) ) * - 38 AS col0
----
NULL
-926

query I rowsort
SELECT ALL - 79 + - + 84
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-933
SELECT - 72 - + + CASE - + 89 WHEN CASE + 64 WHEN - 83 THEN + - 8 WHEN COUNT( * ) THEN NULL END THEN + + CAST( NULL AS SIGNED ) ELSE - 79 * CAST( NULL AS SIGNED ) END * 84 + - 31 + + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT - 72 - + + CASE - + 89 WHEN CASE + 64 WHEN - 83 THEN + - 8 WHEN COUNT ( * ) THEN NULL END THEN + + CAST ( NULL AS INTEGER ) ELSE - 79 * CAST ( NULL AS INTEGER ) END * 84 + - 31 + + + 53 AS col1
----
NULL

query I rowsort
SELECT ALL - - 44 + + + 5
----
49

query I rowsort
SELECT ALL - 96 + - 61
----
-157

query I rowsort
SELECT - + 16 + 2 + - + 35 * + - 78 AS col1
----
2716

query I rowsort
SELECT DISTINCT + - 31 + + 10
----
-21

query I rowsort
SELECT - 31 + - - 31 AS col0
----
0

query I rowsort
SELECT ALL + - 56 + - + 87 + + 12 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT - 88 * + - ( + - SUM( + 2 ) )
----
-176

skipif mysql # not compatible
query I rowsort label-940
SELECT - 88 * + - ( + - SUM ( + 2 ) )
----
-176

onlyif mysql # DIV for integer division: 
query II rowsort label-941
SELECT ALL 43 * 10 * + 90 * 38 AS col2, 51 DIV 43 AS col2
----
1470600
1

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL 43 * 10 * + 90 * 38 AS col2, 51 / 43 AS col2
----
1470600
1

query I rowsort
SELECT ALL - 58 - + 28 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT - COUNT( 87 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-943
SELECT - COUNT ( 87 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT + COUNT( 60 )
----
1

skipif mysql # not compatible
query I rowsort label-944
SELECT + COUNT ( 60 )
----
1

query II rowsort
SELECT DISTINCT + ( - 86 ) col1, + 84 AS col1
----
-86
84

query I rowsort
SELECT 95 * - + 96 * 54 * - 83 + + 77 AS col0
----
40875917

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

query I rowsort
SELECT ALL - 23 * - 31
----
713

query II rowsort
SELECT + 70 AS col2, + 96 col1
----
70
96

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT + COUNT( + + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-950
SELECT + COUNT ( + + 77 )
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-952
SELECT ALL + 63 AS col1, - 18 + - ( - 3 ) AS col1, - - CAST( NULL AS SIGNED ) AS col2
----
63
-15
NULL

skipif mysql # not compatible
query III rowsort label-952
SELECT ALL + 63 AS col1, - 18 + - ( - 3 ) AS col1, - - CAST ( NULL AS INTEGER ) AS col2
----
63
-15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-953
SELECT CAST( - + 94 AS SIGNED ) DIV + SUM( - + 30 ) - + 78
----
-75

skipif mysql # not compatible
query I rowsort label-953
SELECT CAST ( - + 94 AS INTEGER ) / + SUM ( - + 30 ) - + 78
----
-75

query I rowsort
SELECT ALL + ( + + 0 ) AS col2
----
0

query I rowsort
SELECT CASE 28 WHEN + 46 THEN + 64 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-956
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, - 37 * - 49 AS col0
----
NULL
1813

skipif mysql # not compatible
query II rowsort label-956
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - 37 * - 49 AS col0
----
NULL
1813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-957
SELECT + 52 DIV NULLIF ( - 32, + 36 * + - 45 DIV + NULLIF ( + MAX( DISTINCT - + 26 ), + 62 + + NULLIF ( + - CAST( NULL AS SIGNED ), MIN( ALL - + 3 ) + COUNT( * ) ) + - 54 * + 21 DIV + ( - - 57 ) * 63 + + - 27 + MAX( ALL + - 77 ) * - 92 * 87 ) - + COUNT( ALL 79 ) + ( 51 ) + 72 * + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-957
SELECT + 52 / NULLIF ( - 32, + 36 * + - 45 / + NULLIF ( + MAX ( DISTINCT - + 26 ), + 62 + + NULLIF ( + - CAST ( NULL AS INTEGER ), MIN ( ALL - + 3 ) + COUNT ( * ) ) + - 54 * + 21 / + ( - - 57 ) * 63 + + - 27 + MAX ( ALL + - 77 ) * - 92 * 87 ) - + COUNT ( ALL 79 ) + ( 51 ) + 72 * + 27 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL + MAX( DISTINCT 57 )
----
57

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL + MAX ( DISTINCT 57 )
----
57

query II rowsort
SELECT + ( 78 ) AS col1, 82 + + 53 AS col0
----
78
135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-960
SELECT COALESCE ( - - CAST( + 12 AS SIGNED ), 45 * + 37 * - 73 ), + 5 DIV + 59 * 71 + + 72 + - + 34 AS col2
----
12
38

skipif mysql # not compatible
query II rowsort label-960
SELECT COALESCE ( - - CAST ( + 12 AS INTEGER ), 45 * + 37 * - 73 ), + 5 / + 59 * 71 + + 72 + - + 34 AS col2
----
12
38

query I rowsort
SELECT + 99 + - 29 col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT + 5 - + - 18 DIV + - 66 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-962
SELECT + 5 - + - 18 / + - 66 AS col1
----
5

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

skipif mysql # not compatible
query I rowsort label-963
SELECT + 16 / + 60
----
0

query I rowsort
SELECT + 22 * - - 34 * + 32 col0
----
23936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT - - 74 * + + 30 DIV - - COUNT( * ) + - 11 AS col2
----
2209

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - - 74 * + + 30 / - - COUNT ( * ) + - 11 AS col2
----
2209

query I rowsort
SELECT - 99 * + 17 + + 63
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL - + 75 * + COUNT( * ) + - NULLIF ( ( - ( - 30 ) ), + 2 * - 5 ) + COUNT( * ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL - + 75 * + COUNT ( * ) + - NULLIF ( ( - ( - 30 ) ), + 2 * - 5 ) + COUNT ( * ) AS col2
----
-104

query I rowsort
SELECT ALL + - 9 * 41 + - 62 col0
----
-431

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL 12 * - - 55 + + + 42 + + - 89 - 22 + COALESCE ( + + 10, + COUNT( * ) * - 34, - COUNT( * ) ) AS col0
----
601

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL 12 * - - 55 + + + 42 + + - 89 - 22 + COALESCE ( + + 10, + COUNT ( * ) * - 34, - COUNT ( * ) ) AS col0
----
601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT DISTINCT - 52 * + 54 + + + COUNT( * ) DIV + 10 AS col2
----
-2808

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT - 52 * + 54 + + + COUNT ( * ) / + 10 AS col2
----
-2808

query I rowsort
SELECT + 70 + - 92 + CASE + 11 WHEN - 8 THEN 50 * - 12 * 6 + 24 ELSE - 80 END * - 32 AS col1
----
2538

query I rowsort
SELECT ALL - 38 * - + 68 + + + 44 + + 30 * + 85
----
5178

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT ALL 96 * - ( - + 40 ) + - 56 DIV - 27 AS col1
----
3842

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL 96 * - ( - + 40 ) + - 56 / - 27 AS col1
----
3842

query I rowsort
SELECT - 1 * 97 AS col1
----
-97

query I rowsort
SELECT - - 87 + + 95 AS col2
----
182

query II rowsort
SELECT ALL + 92 AS col1, + ( + + 31 ) AS col0
----
92
31

query I rowsort
SELECT ALL + - COALESCE ( + 54, - 27 ) - - + 47 - + - 42 * + + 46 * 97 + 32
----
187429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-978
SELECT + 28, 72 + - 69 + + ( + + MAX( DISTINCT - 23 ) ) + + CAST( NULL AS SIGNED ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-978
SELECT + 28, 72 + - 69 + + ( + + MAX ( DISTINCT - 23 ) ) + + CAST ( NULL AS INTEGER ) AS col2
----
28
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-979
SELECT ALL - ( - 8 ) * ( - - 5 ) + CASE + 88 WHEN 65 + + - 55 + - CASE COUNT( * ) WHEN 42 THEN NULL WHEN - + 4 THEN MIN( DISTINCT + - 48 ) * - COUNT( * ) + + 71 + - 91 * - + 39 END - - 40 + 87 - - - 13 / - 53 + + COALESCE ( 85, + 91 + 66 / - COALESCE ( 9 * 8 + 60, 30 / 87 ), - 18 ) * - 81 * + 71 THEN + 94 * + 52 WHEN COUNT( * ) THEN ( - NULLIF ( 0, + CASE 66 WHEN 12 THEN - 36 * - 44 END * 66 + 20 ) ) / 23 ELSE - ( CAST( NULL AS SIGNED ) ) + - 17 END + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL - ( - 8 ) * ( - - 5 ) + CASE + 88 WHEN 65 + + - 55 + - CASE COUNT ( * ) WHEN 42 THEN NULL WHEN - + 4 THEN MIN ( DISTINCT + - 48 ) * - COUNT ( * ) + + 71 + - 91 * - + 39 END - - 40 + 87 - - - 13 / - 53 + + COALESCE ( 85, + 91 + 66 / - COALESCE ( 9 * 8 + 60, 30 / 87 ), - 18 ) * - 81 * + 71 THEN + 94 * + 52 WHEN COUNT ( * ) THEN ( - NULLIF ( 0, + CASE 66 WHEN 12 THEN - 36 * - 44 END * 66 + 20 ) ) / 23 ELSE - ( CAST ( NULL AS INTEGER ) ) + - 17 END + - 9 AS col2
----
NULL

query I rowsort
SELECT + + 84 + + 86
----
170

query I rowsort
SELECT DISTINCT - - 91 * ( - 98 ) + + 13
----
-8905

query II rowsort
SELECT DISTINCT 95 AS col2, 52 col0
----
95
52

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

skipif mysql # not compatible
query I rowsort label-983
SELECT - 86 * + CAST ( NULL AS INTEGER ) + + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL - 40 * COALESCE ( - 87, - + CASE + 13 WHEN + - MIN( 39 ) * + 57 * 82 + - 23 THEN 13 + - 13 END )
----
3480

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - 40 * COALESCE ( - 87, - + CASE + 13 WHEN + - MIN ( 39 ) * + 57 * 82 + - 23 THEN 13 + - 13 END )
----
3480

query I rowsort
SELECT - + 35 + - ( + 98 )
----
-133

query I rowsort
SELECT - 1 * + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + COALESCE ( 44, + + 88 ) + + + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-987
SELECT + COALESCE ( 44, + + 88 ) + + + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-988
SELECT - 19 - - - 63 AS col2, COALESCE ( 15, 57, - COALESCE ( + MAX( - - 49 ), - 12 * + + 35 DIV 28 ) + - 51 ) * 96 - - 75 AS col1
----
-82
1515

skipif mysql # not compatible
query II rowsort label-988
SELECT - 19 - - - 63 AS col2, COALESCE ( 15, 57, - COALESCE ( + MAX ( - - 49 ), - 12 * + + 35 / 28 ) + - 51 ) * 96 - - 75 AS col1
----
-82
1515

query II rowsort
SELECT DISTINCT ( - 16 ), + 7 * COALESCE ( 65, - + 27 ) col1
----
-16
455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-990
SELECT - 71 * 90 AS col0, 6 + + - CAST( + 76 AS SIGNED ) + + + 56 * + + ( + NULLIF ( + + 96, - - 85 ) )
----
-6390
5306

skipif mysql # not compatible
query II rowsort label-990
SELECT - 71 * 90 AS col0, 6 + + - CAST ( + 76 AS INTEGER ) + + + 56 * + + ( + NULLIF ( + + 96, - - 85 ) )
----
-6390
5306

query I rowsort
SELECT + 62 * + 20 + - 54
----
1186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-992
SELECT DISTINCT + ( - NULLIF ( + CAST( - 34 AS SIGNED ), - + NULLIF ( 30, - - 97 DIV CASE 46 WHEN 3 DIV + + 91 - MIN( ALL 27 ) THEN - - 15 - - - AVG ( DISTINCT + + 32 ) WHEN - 24 THEN + 67 ELSE - + 57 END + 75 + 26 - ( + 6 ) ) ) ) DIV - 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT + ( - NULLIF ( + CAST ( - 34 AS INTEGER ), - + NULLIF ( 30, - - 97 / CASE 46 WHEN 3 / + + 91 - MIN ( ALL 27 ) THEN - - 15 - - - AVG ( DISTINCT + + 32 ) WHEN - 24 THEN + 67 ELSE - + 57 END + 75 + 26 - ( + 6 ) ) ) ) / - 20 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT + NULLIF ( - COUNT( * ), + 3 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT + NULLIF ( - COUNT ( * ), + 3 ) AS col0
----
-1

query I rowsort
SELECT ALL ( + - 10 ) * - 74 AS col2
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT 27 * ( - SUM( ALL + + 39 ) )
----
-1053

skipif mysql # not compatible
query I rowsort label-995
SELECT 27 * ( - SUM ( ALL + + 39 ) )
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL COUNT( * ) + - ( - 16 ) + - 19 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL COUNT ( * ) + - ( - 16 ) + - 19 AS col2
----
-2

query I rowsort
SELECT ALL - 92 * 68 AS col0
----
-6256

query I rowsort
SELECT ALL + ( - 12 ) + - 39 + - 18 AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT - 24 * 15 * - + CAST( NULL AS SIGNED ) + + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT - 24 * 15 * - + CAST ( NULL AS INTEGER ) + + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT 17 * - MIN( + 94 )
----
-1598

skipif mysql # not compatible
query I rowsort label-1000
SELECT 17 * - MIN ( + 94 )
----
-1598

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT NULLIF ( - 97, + 71 ) DIV ( 46 ) + - + 46 + + + 46
----
-2

skipif mysql # not compatible
query I rowsort label-1001
SELECT NULLIF ( - 97, + 71 ) / ( 46 ) + - + 46 + + + 46
----
-2

query II rowsort
SELECT 62 + + 24, 7 AS col0
----
86
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL MAX( ALL 22 ) + - 63 * + 7 * + 47 * + 28 * - 79 AS col0
----
45848146

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL MAX ( ALL 22 ) + - 63 * + 7 * + 47 * + 28 * - 79 AS col0
----
45848146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1004
SELECT ALL - + CAST( 61 AS SIGNED ) AS col1, 47 * + - 51
----
-61
-2397

skipif mysql # not compatible
query II rowsort label-1004
SELECT ALL - + CAST ( 61 AS INTEGER ) AS col1, 47 * + - 51
----
-61
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT DISTINCT - 10 + - CAST( + NULLIF ( - 41, 67 ) AS SIGNED ) col1
----
31

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - 10 + - CAST ( + NULLIF ( - 41, 67 ) AS INTEGER ) col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT - COUNT( DISTINCT 10 ), + 56 * 3 AS col2
----
-1
168

skipif mysql # not compatible
query II rowsort label-1006
SELECT - COUNT ( DISTINCT 10 ), + 56 * 3 AS col2
----
-1
168

query I rowsort
SELECT ALL - - 90 + 2 + + - 2 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT DISTINCT - CASE + CAST( - + 20 AS SIGNED ) WHEN 26 THEN + ( 95 ) WHEN NULLIF ( ( + 20 ), - ( COUNT( * ) ) + - + CAST( - - 5 AS SIGNED ) - + MIN( ALL - 85 ) * + 7 * - 64 ) * + CAST( NULL AS SIGNED ) * 25 + + 98 * - MIN( + 5 ) + CAST( + COUNT( * ) AS SIGNED ) + 48 + 7 - + - CAST( - 48 AS SIGNED ) + - 50 * + 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT - CASE + CAST ( - + 20 AS INTEGER ) WHEN 26 THEN + ( 95 ) WHEN NULLIF ( ( + 20 ), - ( COUNT ( * ) ) + - + CAST ( - - 5 AS INTEGER ) - + MIN ( ALL - 85 ) * + 7 * - 64 ) * + CAST ( NULL AS INTEGER ) * 25 + + 98 * - MIN ( + 5 ) + CAST ( + COUNT ( * ) AS INTEGER ) + 48 + 7 - + - CAST ( - 48 AS INTEGER ) + - 50 * + 1 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT DISTINCT 2 + + - COUNT( * ) AS col2, 13 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-1009
SELECT DISTINCT 2 + + - COUNT ( * ) AS col2, 13 AS col0
----
1
13

onlyif mysql # DIV for integer division: 
query II rowsort label-1010
SELECT ALL 46 DIV + + 34, - 95 * - 43 + + 62 col2
----
1
4147

skipif mysql # not compatible
query II rowsort label-1010
SELECT ALL 46 / + + 34, - 95 * - 43 + + 62 col2
----
1
4147

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT + MIN( + 33 ) AS col1, + COUNT( * ) + + + 27
----
33
28

skipif mysql # not compatible
query II rowsort label-1011
SELECT + MIN ( + 33 ) AS col1, + COUNT ( * ) + + + 27
----
33
28

query I rowsort
SELECT 74 - 16 AS col0
----
58

query I rowsort
SELECT DISTINCT 64 * - 80
----
-5120

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

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL 73 - + COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1015
SELECT + COUNT( * ) * - MAX( ALL - 11 ) AS col0, 76
----
11
76

skipif mysql # not compatible
query II rowsort label-1015
SELECT + COUNT ( * ) * - MAX ( ALL - 11 ) AS col0, 76
----
11
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT + - 76 * + + 29 + - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

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

query I rowsort
SELECT + 52 + - 43
----
9

query I rowsort
SELECT + 66 + - + 27
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT COALESCE ( + ( - 13 ), - - 49 ) - - 77 * 31 + - - COALESCE ( 97, - 32 - - 64 * - 17, + - COUNT( * ) ) * - + COALESCE ( 46, + + COUNT( * ) )
----
-2088

skipif mysql # not compatible
query I rowsort label-1019
SELECT COALESCE ( + ( - 13 ), - - 49 ) - - 77 * 31 + - - COALESCE ( 97, - 32 - - 64 * - 17, + - COUNT ( * ) ) * - + COALESCE ( 46, + + COUNT ( * ) )
----
-2088

query I rowsort
SELECT 74 * + - NULLIF ( + 25, - - 12 ) + 0 AS col2
----
-1850

onlyif mysql # DIV for integer division: 
query II rowsort label-1021
SELECT ALL + 53 DIV - 31 AS col1, 16 AS col0
----
-1
16

skipif mysql # not compatible
query II rowsort label-1021
SELECT ALL + 53 / - 31 AS col1, 16 AS col0
----
-1
16

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

query I rowsort
SELECT 11 * - 44
----
-484

query I rowsort
SELECT 18 + + - 70
----
-52

query II rowsort
SELECT 83, 22 * + 74 AS col0
----
83
1628

query II rowsort
SELECT - 13, 76 + + + 22 col0
----
-13
98

query II rowsort
SELECT DISTINCT 17 AS col0, - 31 AS col0
----
17
-31

query II rowsort
SELECT ALL 26 AS col0, 73 col2
----
26
73

query I rowsort
SELECT 27 * 9 col2
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1030
SELECT ALL - ( - COUNT( * ) ) + CAST( 72 AS SIGNED ) DIV + + 30 col1
----
3

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - ( - COUNT ( * ) ) + CAST ( 72 AS INTEGER ) / + + 30 col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1031
SELECT COUNT( DISTINCT + 32 ) * COUNT( * ) * + 91 + - - 59 DIV 9 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1031
SELECT COUNT ( DISTINCT + 32 ) * COUNT ( * ) * + 91 + - - 59 / 9 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT ALL + CAST( NULL AS SIGNED ) + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + CAST ( NULL AS INTEGER ) + + 80 AS col2
----
NULL

query II rowsort
SELECT + 92, 89 AS col2
----
92
89

query I rowsort
SELECT 62 * - ( - 84 ) * 59 - - - 56 * + 39
----
305088

query I rowsort
SELECT 33 - - 74
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1036
SELECT ALL - 7 + + + 20 * - + 6 + + ( - - ( + 28 ) ) AS col0, - 91 * - - 35 / + CASE - - 73 WHEN + CAST( + ( + CAST( - 4 AS SIGNED ) ) AS SIGNED ) * - + 92 THEN 75 * + 0 + + 33 + 77 WHEN - - COUNT( * ) + + CAST( 26 AS SIGNED ) THEN NULL END AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-1036
SELECT ALL - 7 + + + 20 * - + 6 + + ( - - ( + 28 ) ) AS col0, - 91 * - - 35 / + CASE - - 73 WHEN + CAST ( + ( + CAST ( - 4 AS INTEGER ) ) AS INTEGER ) * - + 92 THEN 75 * + 0 + + 33 + 77 WHEN - - COUNT ( * ) + + CAST ( 26 AS INTEGER ) THEN NULL END AS col0
----
-99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT ALL - + CAST( NULL AS SIGNED ) + + + 4 + - 79 + - 19 / - 50 * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - + CAST ( NULL AS INTEGER ) + + + 4 + - 79 + - 19 / - 50 * - 19
----
NULL

query II rowsort
SELECT ALL - 20 AS col1, - 15 AS col1
----
-20
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + - 87 * COUNT( * ) * 33 + 52
----
-2819

skipif mysql # not compatible
query I rowsort label-1039
SELECT + - 87 * COUNT ( * ) * 33 + 52
----
-2819

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

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + COUNT ( * ) * 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT + COUNT( 70 )
----
1

skipif mysql # not compatible
query I rowsort label-1041
SELECT + COUNT ( 70 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1042
SELECT DISTINCT + SUM( - + ( + 5 ) ) * + - 62, 16 AS col0
----
310
16

skipif mysql # not compatible
query II rowsort label-1042
SELECT DISTINCT + SUM ( - + ( + 5 ) ) * + - 62, 16 AS col0
----
310
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1043
SELECT 75 AS col1, NULLIF ( + + CAST( NULL AS DECIMAL ), - - 39 * - 66 ) + + ( + + 33 ) AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-1043
SELECT 75 AS col1, NULLIF ( + + CAST ( NULL AS REAL ), - - 39 * - 66 ) + + ( + + 33 ) AS col0
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT + COUNT( * ) * - ( - 46 ) * + ( - MIN( - - 26 ) ) + COUNT( * ) * + 10
----
-1186

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + COUNT ( * ) * - ( - 46 ) * + ( - MIN ( - - 26 ) ) + COUNT ( * ) * + 10
----
-1186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT + COALESCE ( - - 69, - COUNT( * ) DIV + - 8 * - 63 + + 35 + 33, - ( - 90 ) * - 75 + 61 + - 92 DIV - 83 * COUNT( * ) + + 96 ) + 34
----
103

skipif mysql # not compatible
query I rowsort label-1045
SELECT + COALESCE ( - - 69, - COUNT ( * ) / + - 8 * - 63 + + 35 + 33, - ( - 90 ) * - 75 + 61 + - 92 / - 83 * COUNT ( * ) + + 96 ) + 34
----
103

query II rowsort
SELECT + + 96 AS col0, - 97 * + 93 + + 76 - 80 + - 95 AS col1
----
96
-9120

query I rowsort
SELECT DISTINCT + 62 * - 12
----
-744

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT 89 * - - 32 * + + ( + + 57 ) + CASE + 5 WHEN - 79 + 47 / + 25 * MAX( ALL - 55 ) * - 66 THEN + COUNT( * ) - - 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT 89 * - - 32 * + + ( + + 57 ) + CASE + 5 WHEN - 79 + 47 / + 25 * MAX ( ALL - 55 ) * - 66 THEN + COUNT ( * ) - - 83 END AS col0
----
NULL

query I rowsort
SELECT 81 + + + 91 AS col2
----
172

query I rowsort
SELECT 82 + - - 72
----
154

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

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

query I rowsort
SELECT DISTINCT 19 * - ( - - 71 )
----
-1349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1054
SELECT ALL 65 + - CAST( NULL AS SIGNED ) + - 93 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL 65 + - CAST ( NULL AS INTEGER ) + - 93 + + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT + 36 + + 82 + - 81 DIV + COUNT( DISTINCT + 62 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1055
SELECT + 36 + + 82 + - 81 / + COUNT ( DISTINCT + 62 ) AS col1
----
37

query II rowsort
SELECT ALL ( - 31 ) + ( + 39 ) AS col1, + 36 * + 98 + - 40 + - - 54
----
8
3542

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT ALL 6 DIV 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL 6 / 28 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1058
SELECT + 12 DIV - + 59 AS col2, CAST( + - COALESCE ( + + ( - 92 ), + 75, - 8 ) AS SIGNED )
----
0
92

skipif mysql # not compatible
query II rowsort label-1058
SELECT + 12 / - + 59 AS col2, CAST ( + - COALESCE ( + + ( - 92 ), + 75, - 8 ) AS INTEGER )
----
0
92

query I rowsort
SELECT + 24 + + + 7 AS col0
----
31

query I rowsort
SELECT + 29 - - ( + 51 ) * - + 14 + ( + 80 ) AS col1
----
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT - CASE - 55 WHEN + ( - 66 ) * + 33 * - COUNT( ALL + 97 ) * + + COUNT( * ) + 35 + + - 31 + - + 89 * + + 7 THEN NULL WHEN 33 THEN NULL WHEN + 28 THEN COUNT( - 56 ) * - 49 ELSE - MIN( + + 26 ) + 6 END
----
20

skipif mysql # not compatible
query I rowsort label-1061
SELECT - CASE - 55 WHEN + ( - 66 ) * + 33 * - COUNT ( ALL + 97 ) * + + COUNT ( * ) + 35 + + - 31 + - + 89 * + + 7 THEN NULL WHEN 33 THEN NULL WHEN + 28 THEN COUNT ( - 56 ) * - 49 ELSE - MIN ( + + 26 ) + 6 END
----
20

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

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

query I rowsort
SELECT - 82 + + 90
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1064
SELECT - MAX( ALL 57 ) AS col2, 11 * - 20
----
-57
-220

skipif mysql # not compatible
query II rowsort label-1064
SELECT - MAX ( ALL 57 ) AS col2, 11 * - 20
----
-57
-220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT DISTINCT - 72 * + - CAST( + - 66 AS SIGNED ) + COUNT( * )
----
-4751

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT - 72 * + - CAST ( + - 66 AS INTEGER ) + COUNT ( * )
----
-4751

query I rowsort
SELECT ALL + 29 * - 25
----
-725

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT + COALESCE ( MAX( ALL 64 ), + 44 ) + - 64, + 4 AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-1068
SELECT + COALESCE ( MAX ( ALL 64 ), + 44 ) + - 64, + 4 AS col1
----
0
4

query II rowsort
SELECT - - 24 * + 7, 53 AS col0
----
168
53

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

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

query I rowsort
SELECT + 98 * - - 26 AS col2
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1072
SELECT ALL COUNT( * ) * - CAST( 42 AS SIGNED ) - + 40 DIV + - 22 AS col1, 80
----
-41
80

skipif mysql # not compatible
query II rowsort label-1072
SELECT ALL COUNT ( * ) * - CAST ( 42 AS INTEGER ) - + 40 / + - 22 AS col1, 80
----
-41
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1073
SELECT DISTINCT + + NULLIF ( - - 26, - - 94 * - 48 + + 87 + 36 * COUNT( * ) + + ( + CAST( NULL AS SIGNED ) ) + - 81 * 82 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT + + NULLIF ( - - 26, - - 94 * - 48 + + 87 + 36 * COUNT ( * ) + + ( + CAST ( NULL AS INTEGER ) ) + - 81 * 82 ) col1
----
26

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

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

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

query I rowsort
SELECT DISTINCT - + ( + 64 ) * - 29 AS col1
----
1856

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT - 75 DIV - + 36
----
2

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - 75 / - + 36
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1078
SELECT - 52 * + COUNT( * ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT - 52 * + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT ALL - - COALESCE ( + COUNT( ALL - 27 ), 13 + 88, + CAST( - 25 AS SIGNED ) + 91 ) * + - 3 * 41
----
-123

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - - COALESCE ( + COUNT ( ALL - 27 ), 13 + 88, + CAST ( - 25 AS INTEGER ) + 91 ) * + - 3 * 41
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1080
SELECT - + COUNT( * ) DIV 61 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1080
SELECT - + COUNT ( * ) / 61 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL - - 18 / + - CASE - 1 WHEN + 58 + 87 THEN 35 - + 81 * - 35 END * - 72 * + 71 - - ( + - 83 )
----
NULL

query I rowsort
SELECT - - 62 * 37 AS col1
----
2294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT - 84 + + CAST( CAST( + 97 AS SIGNED ) AS SIGNED ) + + 54
----
67

skipif mysql # not compatible
query I rowsort label-1083
SELECT - 84 + + CAST ( CAST ( + 97 AS INTEGER ) AS INTEGER ) + + 54
----
67

query I rowsort
SELECT DISTINCT + + 5 * - 59 * - 7 + - 55 AS col2
----
2010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT ALL + CAST( 78 AS SIGNED ) col0
----
78

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + CAST ( 78 AS INTEGER ) col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1086
SELECT ALL + 18 * + - CAST( NULL AS SIGNED ) + - 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + 18 * + - CAST ( NULL AS INTEGER ) + - 72 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT 5 * 87 + - COUNT( * ) col1
----
434

skipif mysql # not compatible
query I rowsort label-1087
SELECT 5 * 87 + - COUNT ( * ) col1
----
434

query I rowsort
SELECT ALL - 78 * - ( + 44 ) AS col1
----
3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT DISTINCT CASE - - 19 WHEN 1 - + + CASE - - ( + - 42 ) WHEN COUNT( * ) THEN MAX( ALL + CAST( - + 70 AS SIGNED ) ) WHEN 46 + - ( - 10 ) THEN CASE 99 WHEN 99 THEN + COUNT( * ) END END * - 65 * - - 90 - + 58 * - 18 THEN - - 61 WHEN + + ( 30 ) + - ( 17 ) * + 43 THEN 91 WHEN - 80 THEN 34 * + 73 ELSE - 87 * 45 END AS col1
----
-3915

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT CASE - - 19 WHEN 1 - + + CASE - - ( + - 42 ) WHEN COUNT ( * ) THEN MAX ( ALL + CAST ( - + 70 AS INTEGER ) ) WHEN 46 + - ( - 10 ) THEN CASE 99 WHEN 99 THEN + COUNT ( * ) END END * - 65 * - - 90 - + 58 * - 18 THEN - - 61 WHEN + + ( 30 ) + - ( 17 ) * + 43 THEN 91 WHEN - 80 THEN 34 * + 73 ELSE - 87 * 45 END AS col1
----
-3915

query I rowsort
SELECT ALL 48 + + 35 col1
----
83

query I rowsort
SELECT DISTINCT 65 * 84 AS col2
----
5460

query I rowsort
SELECT - 83 + + + 62
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT - 0 / - ( + ( CASE 10 WHEN - - CASE + - AVG ( DISTINCT + + 86 ) WHEN - - COUNT( * ) THEN - - COUNT( * ) ELSE 14 * + 57 + + + 87 END THEN 25 END ) ) * + + 25 AS col2, 96 * + - NULLIF ( - COUNT( * ), + 23 * - 22 + - 40 )
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1093
SELECT - 0 / - ( + ( CASE 10 WHEN - - CASE + - AVG ( DISTINCT + + 86 ) WHEN - - COUNT ( * ) THEN - - COUNT ( * ) ELSE 14 * + 57 + + + 87 END THEN 25 END ) ) * + + 25 AS col2, 96 * + - NULLIF ( - COUNT ( * ), + 23 * - 22 + - 40 )
----
NULL
96

query I rowsort
SELECT + 6 + 24
----
30

query I rowsort
SELECT ALL - 33 + + 67 AS col0
----
34

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1098
SELECT + 70 DIV - + CAST( - 69 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT + 70 / - + CAST ( - 69 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1099
SELECT ALL - COALESCE ( 80, - COUNT( * ) - ( - 72 ) + - 50 DIV + ( + + 44 ) ) * - 82 AS col0
----
6560

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - COALESCE ( 80, - COUNT ( * ) - ( - 72 ) + - 50 / + ( + + 44 ) ) * - 82 AS col0
----
6560

query I rowsort
SELECT DISTINCT 99 - - 50 AS col2
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1101
SELECT ALL 34 - - COUNT( ALL - + 38 ) + + - 41 * + + 27 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 56 * - 36 * + - COUNT( * ) * 40 + 6 * - - COUNT( * ) + + 35 + - 14 + + 5, 9 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1101
SELECT ALL 34 - - COUNT ( ALL - + 38 ) + + - 41 * + + 27 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 56 * - 36 * + - COUNT ( * ) * 40 + 6 * - - COUNT ( * ) + + 35 + - 14 + + 5, 9 AS col1
----
NULL
9

query I rowsort
SELECT + 40 * + 92
----
3680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT - COUNT( * ) + + 6
----
5

skipif mysql # not compatible
query I rowsort label-1104
SELECT - COUNT ( * ) + + 6
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1105
SELECT 34 / - + 38 + + MIN( - 2 ) * + MIN( - + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT 34 / - + 38 + + MIN ( - 2 ) * + MIN ( - + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - 65 * - 65
----
4225

query I rowsort
SELECT + 9 - ( 30 ) * + 90
----
-2691

query I rowsort
SELECT 68 * + 59 + 40 * - 2
----
3932

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

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

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

query I rowsort
SELECT ALL + 13 * 94
----
1222

query I rowsort
SELECT + + 7 + 94 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT + COALESCE ( + 27, - 59 ) * - MAX( DISTINCT + 15 ) * + + COUNT( * ) + + COUNT( * ) + + + 75, 87 AS col2
----
-329
87

skipif mysql # not compatible
query II rowsort label-1113
SELECT + COALESCE ( + 27, - 59 ) * - MAX ( DISTINCT + 15 ) * + + COUNT ( * ) + + COUNT ( * ) + + + 75, 87 AS col2
----
-329
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + - MAX( NULLIF ( - 68, + + 4 * + 78 + 21 ) )
----
68

skipif mysql # not compatible
query I rowsort label-1114
SELECT + - MAX ( NULLIF ( - 68, + + 4 * + 78 + 21 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + COALESCE ( + + ( NULLIF ( COUNT( * ), + 60 ) ), + ( - + 70 ) + - - 30 + 2, + 10, 62 ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1115
SELECT + COALESCE ( + + ( NULLIF ( COUNT ( * ), + 60 ) ), + ( - + 70 ) + - - 30 + 2, + 10, 62 ) + - - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT - 87 * COUNT( * ) * + 56 + + 33 + - + 37 * ( NULLIF ( + - ( + 81 ), + 79 ) )
----
-1842

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - 87 * COUNT ( * ) * + 56 + + 33 + - + 37 * ( NULLIF ( + - ( + 81 ), + 79 ) )
----
-1842

query I rowsort
SELECT 11 + - 55 + + - 48
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1118
SELECT ALL + 10 * - COUNT( * ), + 61 AS col1
----
-10
61

skipif mysql # not compatible
query II rowsort label-1118
SELECT ALL + 10 * - COUNT ( * ), + 61 AS col1
----
-10
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1119
SELECT 12 AS col2, SUM( ( 62 ) ) * MIN( - 34 ) AS col2
----
12
-2108

skipif mysql # not compatible
query II rowsort label-1119
SELECT 12 AS col2, SUM ( ( 62 ) ) * MIN ( - 34 ) AS col2
----
12
-2108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT + ( 20 ) * - MAX( DISTINCT + 33 ) AS col0
----
-660

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT + ( 20 ) * - MAX ( DISTINCT + 33 ) AS col0
----
-660

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

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

query I rowsort
SELECT 36 * - 25 * 40 AS col2
----
-36000

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

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

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

query I rowsort
SELECT 17 + 54 col0
----
71

query I rowsort
SELECT 23 + - 60 col2
----
-37

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

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

query I rowsort
SELECT 33 + + - 59 + + - 0 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL + COALESCE ( - + COALESCE ( + 94, + - 48 * - 59 * 23 ), - COUNT( * ) ) - + 30 + - MIN( ALL 4 ) col1
----
-128

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + COALESCE ( - + COALESCE ( + 94, + - 48 * - 59 * 23 ), - COUNT ( * ) ) - + 30 + - MIN ( ALL 4 ) col1
----
-128

query I rowsort
SELECT ALL - 47 * - 93 * - 31 AS col1
----
-135501

query II rowsort
SELECT DISTINCT 36 AS col0, - 29
----
36
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT ALL 93 DIV + + 71
----
1

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL 93 / + + 71
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT 61 + 7 * - SUM( + 17 ) * + 41 AS col2
----
-4818

skipif mysql # not compatible
query I rowsort label-1134
SELECT 61 + 7 * - SUM ( + 17 ) * + 41 AS col2
----
-4818

query I rowsort
SELECT ( - + 72 ) + + 5 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1136
SELECT 94 * + 3 + - NULLIF ( CAST( NULL AS SIGNED ), - MAX( DISTINCT + 47 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT 94 * + 3 + - NULLIF ( CAST ( NULL AS INTEGER ), - MAX ( DISTINCT + 47 ) ) col0
----
NULL

query I rowsort
SELECT 38 + - 73 - + 14 + + + 4 * 15
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ( - + 26 ) + - + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-1138
SELECT ( - + 26 ) + - + COUNT ( * )
----
-27

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

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

query I rowsort
SELECT ( - 68 ) * - 44 + + 56 + 94
----
3142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT ALL - COALESCE ( + 60, - 86 + - 42 DIV + ( - 93 ), 99 * + COUNT( + 71 ) + - COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - COALESCE ( + 60, - 86 + - 42 / + ( - 93 ), 99 * + COUNT ( + 71 ) + - COUNT ( * ) )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1142
SELECT ALL + - 76 * 85 - 64 * 87 AS col2, + 51 * + + COUNT( * )
----
-12028
51

skipif mysql # not compatible
query II rowsort label-1142
SELECT ALL + - 76 * 85 - 64 * 87 AS col2, + 51 * + + COUNT ( * )
----
-12028
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT 48 DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1143
SELECT 48 / 50 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT DISTINCT + CAST( 0 AS SIGNED ) * + + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT + CAST ( 0 AS INTEGER ) * + + 99 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL - - 63 * COUNT( DISTINCT + 41 ) + 96 + + + 86 AS col0
----
245

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - - 63 * COUNT ( DISTINCT + 41 ) + 96 + + + 86 AS col0
----
245

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1146
SELECT DISTINCT + CASE + - 95 WHEN - NULLIF ( 44, - 75 ) THEN - COUNT( * ) + COUNT( * ) ELSE 86 END DIV + + COUNT( * ) AS col2, + 15
----
86
15

skipif mysql # not compatible
query II rowsort label-1146
SELECT DISTINCT + CASE + - 95 WHEN - NULLIF ( 44, - 75 ) THEN - COUNT ( * ) + COUNT ( * ) ELSE 86 END / + + COUNT ( * ) AS col2, + 15
----
86
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT + 34 DIV 12 - + 43
----
-41

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 34 / 12 - + 43
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT 97 * - MAX( + ( - ( 6 ) ) ) + 15
----
597

skipif mysql # not compatible
query I rowsort label-1148
SELECT 97 * - MAX ( + ( - ( 6 ) ) ) + 15
----
597

query I rowsort
SELECT - 59 * + ( ( + 94 ) ) + 38
----
-5508

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT 28 DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT 28 / - 42 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1151
SELECT 17 * - COALESCE ( - - 49, - + CASE - + 27 WHEN - COUNT( * ) THEN NULL WHEN 45 - 34 THEN - - 91 END * + 3 DIV - - 49 * - 60 * + NULLIF ( + COUNT( * ), + 9 ) - + 32 ) AS col1
----
-833

skipif mysql # not compatible
query I rowsort label-1151
SELECT 17 * - COALESCE ( - - 49, - + CASE - + 27 WHEN - COUNT ( * ) THEN NULL WHEN 45 - 34 THEN - - 91 END * + 3 / - - 49 * - 60 * + NULLIF ( + COUNT ( * ), + 9 ) - + 32 ) AS col1
----
-833

query I rowsort
SELECT DISTINCT - 34 + - 66 + + - 32
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT + CASE - - COUNT( * ) WHEN + + 82 THEN - - 7 + + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT + CASE - - COUNT ( * ) WHEN + + 82 THEN - - 7 + + 89 END
----
NULL

query II rowsort
SELECT ALL - + 93 AS col0, + 97 AS col1
----
-93
97

query I rowsort
SELECT DISTINCT + 51 * - 30
----
-1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1156
SELECT ALL COUNT( * ) + + 89 + - 62 DIV + + ( - 19 ) + 73 * + 71 col0
----
5276

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL COUNT ( * ) + + 89 + - 62 / + + ( - 19 ) + 73 * + 71 col0
----
5276

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1157
SELECT MAX( + + 23 ) / CAST( NULL AS DECIMAL ) - - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT MAX ( + + 23 ) / CAST ( NULL AS REAL ) - - - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 88 - + 35 AS col2, 46 * - 24
----
53
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - MIN( 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1159
SELECT - MIN ( 77 ) AS col0
----
-77

query I rowsort
SELECT DISTINCT + 70 - - 23 + 59 * - 52 col2
----
-2975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT DISTINCT CAST( - 15 AS SIGNED ) - - - 53
----
-68

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT CAST ( - 15 AS INTEGER ) - - - 53
----
-68

query I rowsort
SELECT + 69 * NULLIF ( - 53, + 69 * + - 31 * 58 ) AS col2
----
-3657

query I rowsort
SELECT + NULLIF ( + - 5, 83 )
----
-5

query I rowsort
SELECT DISTINCT + 79 + + ( 81 )
----
160

query I rowsort
SELECT 32 * - 23 * - 39 col2
----
28704

query I rowsort
SELECT - COALESCE ( 31, 31 ) AS col0
----
-31

query I rowsort
SELECT + 41 * - - 71
----
2911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1168
SELECT + - COALESCE ( + 19, 50 - - COUNT( * ) - - - 59 * - 59 - + 51 - - MIN( DISTINCT + 72 ), + CAST( NULL AS SIGNED ) * 83 + - COUNT( * ), - - 78 DIV - 5 * + + 23 ) AS col0, - 26 + - CAST( NULL AS DECIMAL ) * 29 AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-1168
SELECT + - COALESCE ( + 19, 50 - - COUNT ( * ) - - - 59 * - 59 - + 51 - - MIN ( DISTINCT + 72 ), + CAST ( NULL AS INTEGER ) * 83 + - COUNT ( * ), - - 78 / - 5 * + + 23 ) AS col0, - 26 + - CAST ( NULL AS REAL ) * 29 AS col1
----
-19
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL + 89 * - CAST( NULL AS SIGNED ) / - - 2 + + 16 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL + 89 * - CAST ( NULL AS INTEGER ) / - - 2 + + 16 + + 40
----
NULL

query I rowsort
SELECT + 7 + ( - - 81 )
----
88

query I rowsort
SELECT ALL 47 * 29
----
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT 6 * + 35 * 32 + - COUNT( * )
----
6719

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT 6 * + 35 * 32 + - COUNT ( * )
----
6719

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

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

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

skipif mysql # not compatible
query I rowsort label-1174
SELECT + MIN ( - 34 )
----
-34

query I rowsort
SELECT + 66 - + ( - - 97 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + 62 * 76 + - - SUM( ALL - 22 ) + - + 64 * 89 AS col1
----
-1006

skipif mysql # not compatible
query I rowsort label-1176
SELECT + 62 * 76 + - - SUM ( ALL - 22 ) + - + 64 * 89 AS col1
----
-1006

query I rowsort
SELECT + 53 * + - 36 AS col2
----
-1908

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL + CASE - 66 WHEN - 21 / + - 62 + 94 + 46 THEN NULL WHEN SUM( DISTINCT + 70 ) - - + 17 THEN - 28 + - - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + CASE - 66 WHEN - 21 / + - 62 + 94 + 46 THEN NULL WHEN SUM ( DISTINCT + 70 ) - - + 17 THEN - 28 + - - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + MAX( DISTINCT + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1179
SELECT + MAX ( DISTINCT + 24 ) AS col2
----
24

query I rowsort
SELECT + 30 + + 6 AS col0
----
36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT + ( - + 65 ) * - 19 * - MIN( ALL + 43 ) * + CAST( NULL AS SIGNED ) + AVG ( - + 7 ) + + - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT + ( - + 65 ) * - 19 * - MIN ( ALL + 43 ) * + CAST ( NULL AS INTEGER ) + AVG ( - + 7 ) + + - 63 AS col2
----
NULL

query I rowsort
SELECT ALL 82 * + - 97 AS col2
----
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + MIN( ALL - 78 ) + - + 84
----
-162

skipif mysql # not compatible
query I rowsort label-1184
SELECT + MIN ( ALL - 78 ) + - + 84
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT + MIN( DISTINCT - 70 ) + - 2
----
-72

skipif mysql # not compatible
query I rowsort label-1185
SELECT + MIN ( DISTINCT - 70 ) + - 2
----
-72

query I rowsort
SELECT + 81 + 3
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT + ( - + 21 ) + ( + MAX( + COALESCE ( - + 54, + + 65 + 17 ) ) ) * - + 10 AS col2
----
519

skipif mysql # not compatible
query I rowsort label-1187
SELECT + ( - + 21 ) + ( + MAX ( + COALESCE ( - + 54, + + 65 + 17 ) ) ) * - + 10 AS col2
----
519

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT DISTINCT + + 51 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + + 51 / + 52 AS col2
----
0

query I rowsort
SELECT ALL + - 88 + - 45
----
-133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1190
SELECT + 76 + + CASE - - 71 WHEN CASE + CAST( NULL AS DECIMAL ) WHEN + - 25 THEN + 49 WHEN 30 * - 26 + + 8 - 8 THEN + ( - 62 ) END THEN NULL WHEN - - 40 THEN + ( + 43 ) + + 14 END * 29 / - 2 / - - ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT + 76 + + CASE - - 71 WHEN CASE + CAST ( NULL AS REAL ) WHEN + - 25 THEN + 49 WHEN 30 * - 26 + + 8 - 8 THEN + ( - 62 ) END THEN NULL WHEN - - 40 THEN + ( + 43 ) + + 14 END * 29 / - 2 / - - ( 77 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - 86 * - SUM( + 36 )
----
3096

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - 86 * - SUM ( + 36 )
----
3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT + 89 + + - COUNT( 9 ) + - + 27 DIV + 11 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1193
SELECT + 89 + + - COUNT ( 9 ) + - + 27 / + 11 AS col1
----
86

query I rowsort
SELECT ALL - + 75 + + + NULLIF ( - 44, + - 53 ) * + - 96
----
4149

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT - CASE + 1 WHEN - SUM( ALL + + NULLIF ( + 18, - + 17 ) ) THEN 26 + - + 42 END / - COUNT( * ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT - CASE + 1 WHEN - SUM ( ALL + + NULLIF ( + 18, - + 17 ) ) THEN 26 + - + 42 END / - COUNT ( * ) / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1196
SELECT - - 89 + + ( - CAST( NULL AS SIGNED ) ), + 14 - + 31 col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-1196
SELECT - - 89 + + ( - CAST ( NULL AS INTEGER ) ), + 14 - + 31 col0
----
NULL
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT + + NULLIF ( 95, + + 99 ) DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1197
SELECT + + NULLIF ( 95, + + 99 ) / 60 AS col2
----
1

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

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

query I rowsort
SELECT ALL + - 96 + - - 26 AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1200
SELECT - 16, 85 * + CAST( NULL AS SIGNED ) AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-1200
SELECT - 16, 85 * + CAST ( NULL AS INTEGER ) AS col0
----
-16
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1201
SELECT DISTINCT + CASE - MAX( + - CAST( NULL AS SIGNED ) ) WHEN - 75 * 80 + - 16 + 30 THEN NULL ELSE - 24 END
----
-24

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + CASE - MAX ( + - CAST ( NULL AS INTEGER ) ) WHEN - 75 * 80 + - 16 + 30 THEN NULL ELSE - 24 END
----
-24

query II rowsort
SELECT + COALESCE ( 62, - - 94 ), + 84 + + 60 AS col2
----
62
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1203
SELECT ALL - + 42 DIV + 84 + - MAX( 49 ) - - 30 + - 61 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - + 42 / + 84 + - MAX ( 49 ) - - 30 + - 61 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT + MIN( DISTINCT + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-1204
SELECT + MIN ( DISTINCT + 77 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT + 42 + + 10 + + 44 * 66 * + + CASE - 75 WHEN - COUNT( * ) * + 98 - + - 8 * - ( - 9 ) * + + 4 + + - 67 - + - CASE - + COUNT( * ) WHEN 56 + 80 THEN - COALESCE ( - 19, + 81 ) / - 94 * - 70 * 75 * + 47 + - AVG ( 60 ) / 80 / 3 + - + 9 WHEN + + 29 + + CAST( COALESCE ( + 24, + + 78, 55, ( CASE 11 WHEN - AVG ( ALL - 8 ) THEN + ( COUNT( * ) ) WHEN 14 THEN MAX( DISTINCT 26 ) END ) ) AS SIGNED ) THEN NULL ELSE + 10 * - CAST( 85 AS SIGNED ) END / - 95 THEN - NULLIF ( - 96, 87 ) ELSE 75 * 50 END * - 38
----
-413819948

skipif mysql # not compatible
query I rowsort label-1205
SELECT + 42 + + 10 + + 44 * 66 * + + CASE - 75 WHEN - COUNT ( * ) * + 98 - + - 8 * - ( - 9 ) * + + 4 + + - 67 - + - CASE - + COUNT ( * ) WHEN 56 + 80 THEN - COALESCE ( - 19, + 81 ) / - 94 * - 70 * 75 * + 47 + - AVG ( 60 ) / 80 / 3 + - + 9 WHEN + + 29 + + CAST ( COALESCE ( + 24, + + 78, 55, ( CASE 11 WHEN - AVG ( ALL - 8 ) THEN + ( COUNT ( * ) ) WHEN 14 THEN MAX ( DISTINCT 26 ) END ) ) AS INTEGER ) THEN NULL ELSE + 10 * - CAST ( 85 AS INTEGER ) END / - 95 THEN - NULLIF ( - 96, 87 ) ELSE 75 * 50 END * - 38
----
-413819948

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL - 12 * 56 - - - COUNT( * )
----
-673

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - 12 * 56 - - - COUNT ( * )
----
-673

query I rowsort
SELECT - 54 * - 93
----
5022

query I rowsort
SELECT DISTINCT + CASE - - 64 WHEN - 68 THEN + - 95 * 2 END
----
NULL

query I rowsort
SELECT ALL + 16 * - + 17
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1210
SELECT + COALESCE ( - + 96, + MAX( + 38 ) * + 38 * CAST( NULL AS SIGNED ) * + - COUNT( * ) + + - 54 DIV 62 * 7 - + 61 + - COALESCE ( 84, - 37 ) - 94 + + COALESCE ( - + 3, + - 99 * 97 - + 13 DIV + 80 DIV - 87, 76 ), 51 )
----
-96

skipif mysql # not compatible
query I rowsort label-1210
SELECT + COALESCE ( - + 96, + MAX ( + 38 ) * + 38 * CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + - 54 / 62 * 7 - + 61 + - COALESCE ( 84, - 37 ) - 94 + + COALESCE ( - + 3, + - 99 * 97 - + 13 / + 80 / - 87, 76 ), 51 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT - 88 DIV 62
----
-1

skipif mysql # not compatible
query I rowsort label-1211
SELECT - 88 / 62
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT - CASE 76 WHEN - - CASE 70 WHEN 98 * - 10 THEN - CAST( - 31 AS SIGNED ) * MIN( DISTINCT + + 53 ) / COUNT( * ) * + - 73 - + ( - 57 ) + 54 / - 42 - + 69 ELSE NULL END * + - 59 * - 20 * COUNT( * ) * - 4 + - 73 - + 69 THEN NULL WHEN 11 + - + COUNT( * ) - 1 THEN + - 80 + + 38 END * + - 81 - 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT - CASE 76 WHEN - - CASE 70 WHEN 98 * - 10 THEN - CAST ( - 31 AS INTEGER ) * MIN ( DISTINCT + + 53 ) / COUNT ( * ) * + - 73 - + ( - 57 ) + 54 / - 42 - + 69 ELSE NULL END * + - 59 * - 20 * COUNT ( * ) * - 4 + - 73 - + 69 THEN NULL WHEN 11 + - + COUNT ( * ) - 1 THEN + - 80 + + 38 END * + - 81 - 96 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT + 20 * + 23 + SUM( DISTINCT + 15 ) AS col1
----
475

skipif mysql # not compatible
query I rowsort label-1214
SELECT + 20 * + 23 + SUM ( DISTINCT + 15 ) AS col1
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT - MIN( ALL 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1215
SELECT - MIN ( ALL 70 ) AS col0
----
-70

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

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

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

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - 99 + + COUNT ( * ) col1
----
-98

query II rowsort
SELECT + ( 86 ) AS col2, + 54 AS col1
----
86
54

query I rowsort
SELECT - + 24 * 36
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT - 96 + - NULLIF ( COUNT( * ), - 35 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - 96 + - NULLIF ( COUNT ( * ), - 35 ) AS col1
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1221
SELECT ALL 79 + + + CAST( NULL AS DECIMAL ), + 49 AS col1
----
NULL
49

skipif mysql # not compatible
query II rowsort label-1221
SELECT ALL 79 + + + CAST ( NULL AS REAL ), + 49 AS col1
----
NULL
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT ALL 20 DIV 69 * 82 * - 41 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL 20 / 69 * 82 * - 41 + - 30
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT DISTINCT + 55 - 96 + + 20 + + 47 DIV + 69 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT + 55 - 96 + + 20 + + 47 / + 69 AS col2
----
-21

query I rowsort
SELECT ALL + + 68 - - 70 * 54 - - 17 col1
----
3865

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT 10 * + ( 32 ) + + + NULLIF ( + + 13, - 61 * 6 - - COUNT( * ) * + 79 * 39 + - MIN( - - 94 ) + + COUNT( - 58 ) * + 69 - 67 * - COUNT( * ) ) + 22
----
355

skipif mysql # not compatible
query I rowsort label-1225
SELECT 10 * + ( 32 ) + + + NULLIF ( + + 13, - 61 * 6 - - COUNT ( * ) * + 79 * 39 + - MIN ( - - 94 ) + + COUNT ( - 58 ) * + 69 - 67 * - COUNT ( * ) ) + 22
----
355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT 41 DIV NULLIF ( - + MIN( DISTINCT - - 9 ), - 6 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1226
SELECT 41 / NULLIF ( - + MIN ( DISTINCT - - 9 ), - 6 ) AS col2
----
-4

query I rowsort
SELECT ALL 9 - 73 * 91 AS col1
----
-6634

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT 90 + + - 6 DIV + 97
----
90

skipif mysql # not compatible
query I rowsort label-1228
SELECT 90 + + - 6 / + 97
----
90

query I rowsort
SELECT DISTINCT + 1 * + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL - SUM( + CASE - 11 WHEN 14 THEN 58 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - SUM ( + CASE - 11 WHEN 14 THEN 58 ELSE NULL END )
----
NULL

query II rowsort
SELECT DISTINCT - 68 col0, 64 * - NULLIF ( + 66, + 8 ) + + 80 AS col0
----
-68
-4144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT 43 * - 92 * 10 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT 43 * - 92 * 10 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT - NULLIF ( CASE - COUNT( * ) WHEN + MIN( DISTINCT - 88 ) THEN + 7 + + CAST( - 59 AS SIGNED ) WHEN 91 + - 21 - + - 7 - - 60 + 50 / 20 * 43 THEN - 68 END, + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT - NULLIF ( CASE - COUNT ( * ) WHEN + MIN ( DISTINCT - 88 ) THEN + 7 + + CAST ( - 59 AS INTEGER ) WHEN 91 + - 21 - + - 7 - - 60 + 50 / 20 * 43 THEN - 68 END, + 75 )
----
NULL

query I rowsort
SELECT 62 * - 63 * - 84 AS col1
----
328104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1235
SELECT ( + 33 ) + 58 + + 1 + 69 / 35 + CAST( NULL AS SIGNED ) / 79 col0, 40 col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-1235
SELECT ( + 33 ) + 58 + + 1 + 69 / 35 + CAST ( NULL AS INTEGER ) / 79 col0, 40 col1
----
NULL
40

query I rowsort
SELECT DISTINCT + 12 + + NULLIF ( + + 85, + + 87 ) AS col1
----
97

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

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

query I rowsort
SELECT 87 * + + 96
----
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT DISTINCT - 39 * - - COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT - 39 * - - COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL + 85 + + + COUNT( * ) * + + 39 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + 85 + + + COUNT ( * ) * + + 39 AS col1
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT 77 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1241
SELECT 77 / 85 AS col0
----
0

query II rowsort
SELECT DISTINCT 46 + - 80 - 31 AS col0, 49
----
-65
49

query I rowsort
SELECT DISTINCT - 40 * + 74
----
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL NULLIF ( + COUNT( ALL 64 ), - - 95 * 4 / + SUM( ALL - - 74 ) ) + 22 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL NULLIF ( + COUNT ( ALL 64 ), - - 95 * 4 / + SUM ( ALL - - 74 ) ) + 22 AS col1
----
23

query I rowsort
SELECT 61 * + - 78 AS col0
----
-4758

query I rowsort
SELECT ALL - 58 * 49
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1247
SELECT - COUNT( * ) + - CASE - 22 WHEN - MAX( ALL - + 41 ) * 32 + + 89 + + COUNT( * ) THEN NULL WHEN - - 36 / - 28 THEN + 28 ELSE NULL END - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT - COUNT ( * ) + - CASE - 22 WHEN - MAX ( ALL - + 41 ) * 32 + + 89 + + COUNT ( * ) THEN NULL WHEN - - 36 / - 28 THEN + 28 ELSE NULL END - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT 17 + + COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-1248
SELECT 17 + + COUNT ( * ) col1
----
18

query I rowsort
SELECT - 94 * - - ( + - ( - - 86 ) ) AS col1
----
8084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL - 67 + ( - CAST( - - 48 AS SIGNED ) ) AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL - 67 + ( - CAST ( - - 48 AS INTEGER ) ) AS col0
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT + CAST( NULL AS SIGNED ) + - + CASE 93 WHEN - CAST( NULL AS SIGNED ) + + - SUM( DISTINCT 16 ) * - - ( 28 ) * - 65 THEN + + MAX( - 91 ) WHEN - - COUNT( * ) * + COALESCE ( - 41, 15, - - 90 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT + CAST ( NULL AS INTEGER ) + - + CASE 93 WHEN - CAST ( NULL AS INTEGER ) + + - SUM ( DISTINCT 16 ) * - - ( 28 ) * - 65 THEN + + MAX ( - 91 ) WHEN - - COUNT ( * ) * + COALESCE ( - 41, 15, - - 90 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL - 6 - + - COUNT( * ) + + ( + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - 6 - + - COUNT ( * ) + + ( + COUNT ( * ) )
----
-4

query I rowsort
SELECT ALL 13 - + 26 AS col2
----
-13

query I rowsort
SELECT + 87 + 25
----
112

query I rowsort
SELECT - 27 * - 71 AS col2
----
1917

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT - COUNT( * ) * - - 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - COUNT ( * ) * - - 33 AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1258
SELECT CAST( 21 AS SIGNED ) * - ( - COALESCE ( - ( + + 38 ), + 11 ) ) - 16 AS col0, 41
----
-814
41

skipif mysql # not compatible
query II rowsort label-1258
SELECT CAST ( 21 AS INTEGER ) * - ( - COALESCE ( - ( + + 38 ), + 11 ) ) - 16 AS col0, 41
----
-814
41

query I rowsort
SELECT - 37 + + 41 AS col1
----
4

query I rowsort
SELECT ALL - CASE + + 42 WHEN 86 THEN NULL ELSE - 25 END col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL COUNT( - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL COUNT ( - 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT COUNT( * ) * - 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1262
SELECT COUNT ( * ) * - 26 AS col1
----
-26

query II rowsort
SELECT DISTINCT - 84 AS col1, 84 col0
----
-84
84

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

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

query II rowsort
SELECT + 12, + 92 * 62 + - - 1 AS col2
----
12
5705

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT SUM( DISTINCT - CASE - + 54 WHEN + 18 / + + 73 + + 94 + 48 THEN - 43 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1266
SELECT SUM ( DISTINCT - CASE - + 54 WHEN + 18 / + + 73 + + 94 + 48 THEN - 43 END ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1268
SELECT ALL - 53 + - 50, CAST( - NULLIF ( - 98, - ( + 67 ) * - 97 ) AS SIGNED ) col0
----
-103
98

skipif mysql # not compatible
query II rowsort label-1268
SELECT ALL - 53 + - 50, CAST ( - NULLIF ( - 98, - ( + 67 ) * - 97 ) AS INTEGER ) col0
----
-103
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT 64 + + ( - + ( + + COUNT( * ) ) ) + + 45
----
108

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT 64 + + ( - + ( + + COUNT ( * ) ) ) + + 45
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1271
SELECT 80 * + + 18, CAST( NULL AS SIGNED ) AS col0
----
1440
NULL

skipif mysql # not compatible
query II rowsort label-1271
SELECT 80 * + + 18, CAST ( NULL AS INTEGER ) AS col0
----
1440
NULL

query I rowsort
SELECT ALL 16 * - + ( 91 )
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT MAX( - + 22 ) * - 54
----
1188

skipif mysql # not compatible
query I rowsort label-1273
SELECT MAX ( - + 22 ) * - 54
----
1188

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT + COALESCE ( + 27, + ( - + COUNT( * ) ) ) * + 87 + 18 + + + COUNT( * ) + + COUNT( + 69 ) - - - 38 * - + 29, CASE - 89 WHEN - ( + - 73 ) THEN - COUNT( * ) END col2
----
3471
NULL

skipif mysql # not compatible
query II rowsort label-1274
SELECT + COALESCE ( + 27, + ( - + COUNT ( * ) ) ) * + 87 + 18 + + + COUNT ( * ) + + COUNT ( + 69 ) - - - 38 * - + 29, CASE - 89 WHEN - ( + - 73 ) THEN - COUNT ( * ) END col2
----
3471
NULL

query I rowsort
SELECT 2 + - 18 + + - 80 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT + 81 + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + 81 + COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 78 + - SUM( - 48 )
----
126

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 78 + - SUM ( - 48 )
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1278
SELECT ALL - - CAST( + CASE WHEN NOT ( + COALESCE ( + 37, + + 84, - + 81 ) ) IN ( + 94 - + 61, 24 * + 79 * + + SUM( + 88 ) + + 35 + - 80 + + 79 ) THEN + 23 END AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - - CAST ( + CASE WHEN NOT ( + COALESCE ( + 37, + + 84, - + 81 ) ) IN ( + 94 - + 61, 24 * + 79 * + + SUM ( + 88 ) + + 35 + - 80 + + 79 ) THEN + 23 END AS INTEGER )
----
23

query I rowsort
SELECT DISTINCT 96 - + - 3 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL + + SUM( - + 29 ) * - - 40
----
-1160

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + + SUM ( - + 29 ) * - - 40
----
-1160

query I rowsort
SELECT DISTINCT - + ( + + 11 ) - - 32 AS col2
----
21

query I rowsort
SELECT ALL COALESCE ( 80, + 17 )
----
80

query I rowsort
SELECT ALL - - CASE 36 WHEN + 18 * + - 0 * - 16 + + + 78 THEN NULL ELSE - 43 END - + 69 AS col0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT - 72 * - 73 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT - 72 * - 73 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL + - MAX( - 54 ) * - 22 * COUNT( * ) * - - MAX( + 72 ) AS col0
----
-85536

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + - MAX ( - 54 ) * - 22 * COUNT ( * ) * - - MAX ( + 72 ) AS col0
----
-85536

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT - - 75 DIV - 71 - + + 52 + 79
----
26

skipif mysql # not compatible
query I rowsort label-1286
SELECT - - 75 / - 71 - + + 52 + 79
----
26

query II rowsort
SELECT DISTINCT 63, 19 AS col1
----
63
19

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1289
SELECT - - 14 DIV + + 64 AS col2, NULLIF ( COUNT( * ), - - 53 ) * MAX( DISTINCT 5 ) * MAX( - 97 ) + - - 93 + + MIN( ALL - 52 )
----
0
-444

skipif mysql # not compatible
query II rowsort label-1289
SELECT - - 14 / + + 64 AS col2, NULLIF ( COUNT ( * ), - - 53 ) * MAX ( DISTINCT 5 ) * MAX ( - 97 ) + - - 93 + + MIN ( ALL - 52 )
----
0
-444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1290
SELECT DISTINCT COUNT( 30 ) AS col0, - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1290
SELECT DISTINCT COUNT ( 30 ) AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query II rowsort
SELECT ALL - 1, - 62 AS col1
----
-1
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1292
SELECT ALL 30 AS col0, + MAX( 66 ) * - - 74
----
30
4884

skipif mysql # not compatible
query II rowsort label-1292
SELECT ALL 30 AS col0, + MAX ( 66 ) * - - 74
----
30
4884

query II rowsort
SELECT ALL 52, - 14 AS col0
----
52
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1294
SELECT DISTINCT COALESCE ( + + 42, + 42 + - NULLIF ( + + 21, + 5 + + - 58 * + - ( - + 55 ) * 86 ) DIV 91 DIV + 42 DIV - CASE 36 WHEN + + 27 * 42 * + 13 + MIN( - 69 ) * - + 72 THEN + 58 + 8 + + COUNT( * ) + - 36 * - 97 * - CAST( - - 47 AS SIGNED ) * + - 67 + - COALESCE ( + - MIN( - 35 ), 85 DIV - 33 + - 76 - CAST( NULL AS SIGNED ) + 2, - + ( 95 ) DIV COUNT( * ) ) + 72 * 33 WHEN ( + NULLIF ( + 99, - 43 ) ) * 3 + 55 THEN - ( - 62 ) * + 80 + - 68 * + MIN( DISTINCT 35 ) ELSE NULL END, + CAST( - ( 7 ) AS SIGNED ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT COALESCE ( + + 42, + 42 + - NULLIF ( + + 21, + 5 + + - 58 * + - ( - + 55 ) * 86 ) / 91 / + 42 / - CASE 36 WHEN + + 27 * 42 * + 13 + MIN ( - 69 ) * - + 72 THEN + 58 + 8 + + COUNT ( * ) + - 36 * - 97 * - CAST ( - - 47 AS INTEGER ) * + - 67 + - COALESCE ( + - MIN ( - 35 ), 85 / - 33 + - 76 - CAST ( NULL AS INTEGER ) + 2, - + ( 95 ) / COUNT ( * ) ) + 72 * 33 WHEN ( + NULLIF ( + 99, - 43 ) ) * 3 + 55 THEN - ( - 62 ) * + 80 + - 68 * + MIN ( DISTINCT 35 ) ELSE NULL END, + CAST ( - ( 7 ) AS INTEGER ) ) AS col1
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT - 71 + CASE CAST( 63 AS SIGNED ) WHEN - 67 THEN + 89 - + 59 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT - 71 + CASE CAST ( 63 AS INTEGER ) WHEN - 67 THEN + 89 - + 59 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT + COUNT( ALL - - 56 ) - - 7
----
8

skipif mysql # not compatible
query I rowsort label-1297
SELECT + COUNT ( ALL - - 56 ) - - 7
----
8

query I rowsort
SELECT ALL 83 * + 14 col2
----
1162

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

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

query I rowsort
SELECT DISTINCT 18 * + ( 6 ) AS col0
----
108

query I rowsort
SELECT DISTINCT ( 44 ) * 43 + 54 + ( + 27 )
----
1973

query I rowsort
SELECT DISTINCT + 43 * + + 52 + - - 95 + + 34 * - 61
----
257

query I rowsort
SELECT ALL + CASE 52 WHEN 72 THEN + 63 - 6 ELSE NULL END * - - 15 * - - 6
----
NULL

query I rowsort
SELECT ALL 89 * + 35 + + 93 + - 26
----
3182

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1306
SELECT ALL COUNT( * ) DIV - 31 col2, + 26 * - 57 * + 29 AS col1
----
0
-42978

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL COUNT ( * ) / - 31 col2, + 26 * - 57 * + 29 AS col1
----
0
-42978

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + CASE - - 79 WHEN 20 THEN + ( + 77 ) + - CASE 75 WHEN - 41 + 16 THEN + 28 * - COUNT( * ) / 86 / - 34 / ( - 46 ) ELSE SUM( - + 52 ) END * COUNT( + + NULLIF ( + 57, - - 29 - - 92 + + 50 ) ) + + 7 WHEN - COUNT( * ) * - 14 THEN - - 52 + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT + CASE - - 79 WHEN 20 THEN + ( + 77 ) + - CASE 75 WHEN - 41 + 16 THEN + 28 * - COUNT ( * ) / 86 / - 34 / ( - 46 ) ELSE SUM ( - + 52 ) END * COUNT ( + + NULLIF ( + 57, - - 29 - - 92 + + 50 ) ) + + 7 WHEN - COUNT ( * ) * - 14 THEN - - 52 + 29 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 0, - 63 ) * + - ( + 17 ) + - 94 + + 1 * + ( + 83 ) AS col0
----
-11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + 5 * + ( + MAX( - 70 ) ) AS col0
----
-350

skipif mysql # not compatible
query I rowsort label-1311
SELECT + 5 * + ( + MAX ( - 70 ) ) AS col0
----
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT DISTINCT 1 * + + 42 - - 64 * CAST( + 42 AS SIGNED ) AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT 1 * + + 42 - - 64 * CAST ( + 42 AS INTEGER ) AS col0
----
2730

query I rowsort
SELECT CASE - + 30 WHEN - 6 THEN - + 28 ELSE NULL END
----
NULL

query II rowsort
SELECT - 40 + + NULLIF ( ( 42 ), - 59 * - ( 2 ) + - 89 ) + 13 * + 33 AS col1, 64 AS col2
----
431
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT DISTINCT + 5 * ( + + NULLIF ( + ( 53 ), + 85 * + 28 * + - COUNT( * ) * - - ( + 57 ) + 16 * - + 90 * COUNT( * ) + - 87 + + - 78 ) ) - - 82 AS col2
----
347

skipif mysql # not compatible
query I rowsort label-1315
SELECT DISTINCT + 5 * ( + + NULLIF ( + ( 53 ), + 85 * + 28 * + - COUNT ( * ) * - - ( + 57 ) + 16 * - + 90 * COUNT ( * ) + - 87 + + - 78 ) ) - - 82 AS col2
----
347

query I rowsort
SELECT 70 * 31 + - 39
----
2131

query I rowsort
SELECT + NULLIF ( - + 86, + - 4 + + 10 ) * 28
----
-2408

query I rowsort
SELECT DISTINCT + + NULLIF ( + ( - + 71 ), + 56 - + 3 - + - 32 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1319
SELECT + 49 * - 79 + + 51 AS col1, AVG ( DISTINCT + CAST( + - CASE + 23 WHEN 48 * - 44 - - 6 + - 21 THEN + 1 + - 52 * + 85 + - 35 + - 84 / 65 WHEN + CAST( NULL AS SIGNED ) / - + 57 THEN NULL END AS SIGNED ) ) * + + 77 - - 43 AS col1
----
-3820
NULL

skipif mysql # not compatible
query II rowsort label-1319
SELECT + 49 * - 79 + + 51 AS col1, AVG ( DISTINCT + CAST ( + - CASE + 23 WHEN 48 * - 44 - - 6 + - 21 THEN + 1 + - 52 * + 85 + - 35 + - 84 / 65 WHEN + CAST ( NULL AS INTEGER ) / - + 57 THEN NULL END AS INTEGER ) ) * + + 77 - - 43 AS col1
----
-3820
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT - - COUNT( * ) - - 93 + + COALESCE ( 48, + 46, + COALESCE ( + 31, + CASE WHEN NOT + 84 IS NOT NULL THEN + 48 + 54 * + 52 ELSE NULL END ) ) + + + 32 * + + COUNT( * ) AS col1, - 5 AS col1
----
174
-5

skipif mysql # not compatible
query II rowsort label-1320
SELECT - - COUNT ( * ) - - 93 + + COALESCE ( 48, + 46, + COALESCE ( + 31, + CASE WHEN NOT + 84 IS NOT NULL THEN + 48 + 54 * + 52 ELSE NULL END ) ) + + + 32 * + + COUNT ( * ) AS col1, - 5 AS col1
----
174
-5

query I rowsort
SELECT + + 60 + + 62 AS col0
----
122

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1323
SELECT ( 52 ), + 41 + 75 + + COUNT( * ) - 12 AS col2
----
52
105

skipif mysql # not compatible
query II rowsort label-1323
SELECT ( 52 ), + 41 + 75 + + COUNT ( * ) - 12 AS col2
----
52
105

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT ALL + ( + + 21 ) DIV - - 31 * - 80
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + ( + + 21 ) / - - 31 * - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT - ( COALESCE ( + 89, + - CAST( - 29 AS SIGNED ) + - - 84 + - + 6 ) ) + - 57
----
-146

skipif mysql # not compatible
query I rowsort label-1326
SELECT - ( COALESCE ( + 89, + - CAST ( - 29 AS INTEGER ) + - - 84 + - + 6 ) ) + - 57
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL COALESCE ( - 14, - - 2 + - 58 * + COUNT( * ) + + + 20 + + + 56, ( + 64 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL COALESCE ( - 14, - - 2 + - 58 * + COUNT ( * ) + + + 20 + + + 56, ( + 64 ) ) AS col2
----
-14

query I rowsort
SELECT - ( - 71 ) + - 63 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL - 39 + - + 70 - - SUM( - 34 ) * 51 / + 1 * NULLIF ( - CASE 5 WHEN ( - - 32 ) * 18 THEN NULL WHEN - 86 * + 29 / - 93 * + + 28 THEN 22 - - + COUNT( * ) + - 3 * + COUNT( * ) END, - - 33 * + 92 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - 39 + - + 70 - - SUM ( - 34 ) * 51 / + 1 * NULLIF ( - CASE 5 WHEN ( - - 32 ) * 18 THEN NULL WHEN - 86 * + 29 / - 93 * + + 28 THEN 22 - - + COUNT ( * ) + - 3 * + COUNT ( * ) END, - - 33 * + 92 ) col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT - SUM ( DISTINCT - 16 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1331
SELECT - 3, COUNT( - + ( + 60 ) ) AS col0
----
-3
1

skipif mysql # not compatible
query II rowsort label-1331
SELECT - 3, COUNT ( - + ( + 60 ) ) AS col0
----
-3
1

query II rowsort
SELECT - 48 * - ( + 74 ) AS col2, ( - - 76 ) * + 97 AS col0
----
3552
7372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT CAST( - - 60 AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT CAST ( - - 60 AS INTEGER ) AS col1
----
60

query I rowsort
SELECT ALL - 98 + - 95
----
-193

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1335
SELECT - 41 * - + CASE + 58 WHEN 35 - CAST( NULL AS DECIMAL ) THEN NULL WHEN - 47 THEN + ( + 69 ) + + ( + 46 ) * - 1 + + AVG ( DISTINCT + 68 ) - + 91 * + + ( 20 ) / + AVG ( ( 66 ) ) ELSE NULL END / + 60 / + + 4 col1, 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-1335
SELECT - 41 * - + CASE + 58 WHEN 35 - CAST ( NULL AS REAL ) THEN NULL WHEN - 47 THEN + ( + 69 ) + + ( + 46 ) * - 1 + + AVG ( DISTINCT + 68 ) - + 91 * + + ( 20 ) / + AVG ( ( 66 ) ) ELSE NULL END / + 60 / + + 4 col1, 90 AS col0
----
NULL
90

query I rowsort
SELECT ALL COALESCE ( ( - 83 ), + - CASE + + 46 WHEN + 45 THEN + + ( ( - 83 ) ) ELSE 80 END ) col1
----
-83

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL ( MAX ( 12 ) )
----
12

query I rowsort
SELECT - COALESCE ( 3, - 94, - - 14 ) * + + 50
----
-150

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1340
SELECT ALL 53 DIV - 44 - + 86 AS col1, 39
----
-87
39

skipif mysql # not compatible
query II rowsort label-1340
SELECT ALL 53 / - 44 - + 86 AS col1, 39
----
-87
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1341
SELECT CAST( NULL AS SIGNED ) AS col0, + NULLIF ( - 81, + 94 )
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-1341
SELECT CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( - 81, + 94 )
----
NULL
-81

query I rowsort
SELECT DISTINCT + 9 * + 6
----
54

query II rowsort
SELECT + ( + ( + + 47 ) ) col1, 66 AS col1
----
47
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT + + SUM( + - 69 ) * - 14 + + - 31 + + 66 + - MAX( + 58 ) * ( + 4 )
----
769

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + + SUM ( + - 69 ) * - 14 + + - 31 + + 66 + - MAX ( + 58 ) * ( + 4 )
----
769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT MAX( + - 27 ) * + NULLIF ( - 50, - 1 * 26 * + ( + + ( + - 16 ) ) + - CAST( - 78 AS SIGNED ) + + 59 + CASE WHEN NULL IS NOT NULL THEN - CAST( NULL AS SIGNED ) END - ( - 15 ) + COUNT( * ) * + 48 * MIN( - 23 ) * + - 65 - - 66 ) + + 99 - COUNT( * )
----
1448

skipif mysql # not compatible
query I rowsort label-1345
SELECT MAX ( + - 27 ) * + NULLIF ( - 50, - 1 * 26 * + ( + + ( + - 16 ) ) + - CAST ( - 78 AS INTEGER ) + + 59 + CASE WHEN NULL IS NOT NULL THEN - CAST ( NULL AS INTEGER ) END - ( - 15 ) + COUNT ( * ) * + 48 * MIN ( - 23 ) * + - 65 - - 66 ) + + 99 - COUNT ( * )
----
1448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1346
SELECT MIN( ALL - 79 ) DIV 91 + 54 + 26 * + 42 + + + 41 + - - COALESCE ( + + 1, MIN( + 10 ) + - 45 * + 79 ) + - ( - SUM( DISTINCT - 24 ) )
----
1164

skipif mysql # not compatible
query I rowsort label-1346
SELECT MIN ( ALL - 79 ) / 91 + 54 + 26 * + 42 + + + 41 + - - COALESCE ( + + 1, MIN ( + 10 ) + - 45 * + 79 ) + - ( - SUM ( DISTINCT - 24 ) )
----
1164

query I rowsort
SELECT 72 * + 37 * + + 20 AS col2
----
53280

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT DISTINCT - COUNT( * ) * + 74 * + - 13 AS col2
----
962

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT - COUNT ( * ) * + 74 * + - 13 AS col2
----
962

query II rowsort
SELECT ALL 31 AS col1, 7
----
31
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1350
SELECT DISTINCT COUNT( * ) + + 69 DIV CAST( + + MIN( 45 ) AS SIGNED ) + + + 48 * + 31 col1
----
1490

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT COUNT ( * ) + + 69 / CAST ( + + MIN ( 45 ) AS INTEGER ) + + + 48 * + 31 col1
----
1490

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT DISTINCT + 12 * MAX( DISTINCT + - ( - 47 ) ), + 1 AS col0
----
564
1

skipif mysql # not compatible
query II rowsort label-1351
SELECT DISTINCT + 12 * MAX ( DISTINCT + - ( - 47 ) ), + 1 AS col0
----
564
1

query I rowsort
SELECT ALL - 43 + + 59 + + + 15 * - + 91 col0
----
-1349

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1354
SELECT - + 67, - 79 DIV - 41 AS col1
----
-67
1

skipif mysql # not compatible
query II rowsort label-1354
SELECT - + 67, - 79 / - 41 AS col1
----
-67
1

query I rowsort
SELECT ALL + 66 + + 59
----
125

query I rowsort
SELECT DISTINCT 65 + 61 AS col0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT DISTINCT 41 DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT 41 / 36
----
1

query I rowsort
SELECT ALL 0 - + 4 + - 12 + + 7 + + 4 * - + 81 * 32 * - ( - + 48 )
----
-497673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1359
SELECT 61 + - COUNT( * ) + + 82 + CASE + 46 WHEN - 57 + - + 32 THEN NULL ELSE COUNT( * ) END * 78 + + 39 DIV + 48 * - + ( - ( CAST( + 87 AS SIGNED ) ) ) + - 50 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-1359
SELECT 61 + - COUNT ( * ) + + 82 + CASE + 46 WHEN - 57 + - + 32 THEN NULL ELSE COUNT ( * ) END * 78 + + 39 / + 48 * - + ( - ( CAST ( + 87 AS INTEGER ) ) ) + - 50 AS col0
----
170

query I rowsort
SELECT 96 * - + 60 AS col2
----
-5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1361
SELECT CAST( - 18 AS SIGNED ) + - COUNT( * ) + - 37 * - COUNT( * ) AS col0, - 43 + + 49
----
18
6

skipif mysql # not compatible
query II rowsort label-1361
SELECT CAST ( - 18 AS INTEGER ) + - COUNT ( * ) + - 37 * - COUNT ( * ) AS col0, - 43 + + 49
----
18
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT 6 - + 0 * - ( 34 ) col2, - COUNT( * )
----
6
-1

skipif mysql # not compatible
query II rowsort label-1362
SELECT 6 - + 0 * - ( 34 ) col2, - COUNT ( * )
----
6
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT 40 DIV + 27 + - - NULLIF ( - 11, - - COUNT( * ) + - - 72 )
----
-10

skipif mysql # not compatible
query I rowsort label-1363
SELECT 40 / + 27 + - - NULLIF ( - 11, - - COUNT ( * ) + - - 72 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1364
SELECT 86 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-1364
SELECT 86 / - 29
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT DISTINCT - CASE - 98 WHEN + ( - - 40 ) THEN - + 78 * + CAST( - 1 AS SIGNED ) + - + NULLIF ( + + COUNT( * ), - 68 ) WHEN - 91 + + 24 THEN - - 98 WHEN + - 84 THEN NULL END / COUNT( * ) * - + 35 * + 28 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - CASE - 98 WHEN + ( - - 40 ) THEN - + 78 * + CAST ( - 1 AS INTEGER ) + - + NULLIF ( + + COUNT ( * ), - 68 ) WHEN - 91 + + 24 THEN - - 98 WHEN + - 84 THEN NULL END / COUNT ( * ) * - + 35 * + 28 * 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT DISTINCT - COALESCE ( 8, + - MIN( DISTINCT 49 ) + 84 * 58 DIV ( - + 38 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - COALESCE ( 8, + - MIN ( DISTINCT 49 ) + 84 * 58 / ( - + 38 ) )
----
-8

query I rowsort
SELECT - - 3 * 24 + - 15 AS col2
----
57

query II rowsort
SELECT 99 + 23 AS col1, 31 col0
----
122
31

query I rowsort
SELECT 87 * - + 14 * 48 AS col0
----
-58464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1370
SELECT - 60 * CAST( NULL AS DECIMAL ) + - COUNT( * ) + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 60 * CAST ( NULL AS REAL ) + - COUNT ( * ) + 91 AS col0
----
NULL

query I rowsort
SELECT ALL - + 78 + - 36 * + + 0 AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1372
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) + - 37 * CASE + 65 WHEN + 67 + - - ( 1 ) THEN - + 30 * - 55 * ( - - 27 ) ELSE + CAST( - 98 AS SIGNED ) + - 30 + + 4 + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL + ( CAST ( NULL AS REAL ) ) + - 37 * CASE + 65 WHEN + 67 + - - ( 1 ) THEN - + 30 * - 55 * ( - - 27 ) ELSE + CAST ( - 98 AS INTEGER ) + - 30 + + 4 + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - - 24 * + 76 + + 14 - + - COUNT( * ) + 15 - - - 72
----
1782

skipif mysql # not compatible
query I rowsort label-1373
SELECT - - 24 * + 76 + + 14 - + - COUNT ( * ) + 15 - - - 72
----
1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT ALL - COALESCE ( + - CAST( NULL AS SIGNED ), + 73 ) + + 10
----
-63

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - COALESCE ( + - CAST ( NULL AS INTEGER ), + 73 ) + + 10
----
-63

query I rowsort
SELECT DISTINCT 75 + ( 80 ) AS col2
----
155

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT CAST( - 0 AS SIGNED ) * + 51 * 93 + - + 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1377
SELECT CAST ( - 0 AS INTEGER ) * + 51 * 93 + - + 88 AS col2
----
-88

query I rowsort
SELECT DISTINCT COALESCE ( - 68, 90 )
----
-68

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

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

query I rowsort
SELECT 52 + 39 * 50
----
2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1381
SELECT DISTINCT - ( - COUNT( * ) ) DIV + 74 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - ( - COUNT ( * ) ) / + 74 + + 99
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ( - COUNT( ALL 93 ) ) + 61 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1383
SELECT ( - COUNT ( ALL 93 ) ) + 61 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT 80 + + 32 DIV 62 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1384
SELECT 80 + + 32 / 62 AS col1
----
80

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

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

query II rowsort
SELECT - 64 AS col0, 4 * + + 34 AS col1
----
-64
136

query I rowsort
SELECT 77 * + 51 AS col2
----
3927

query II rowsort
SELECT DISTINCT 24, 8 + - + 1 * - 13 * 30 AS col1
----
24
398

query I rowsort
SELECT ALL - 63 * 19 AS col0
----
-1197

onlyif mysql # aggregate syntax: 
query II rowsort label-1390
SELECT - 81 * COUNT( ALL + + 17 ) AS col2, - 80
----
-81
-80

skipif mysql # not compatible
query II rowsort label-1390
SELECT - 81 * COUNT ( ALL + + 17 ) AS col2, - 80
----
-81
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT ALL 87 DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 87 / - + 93
----
0

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT - 98 / COUNT ( * ) AS col2
----
-98

query I rowsort
SELECT ALL 4 * - 62 AS col2
----
-248

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT + + 27 DIV 66 * 11 - 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1394
SELECT + + 27 / 66 * 11 - 44 AS col0
----
-44

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - - 91 * - 65 * 9 + 13 + - 77 + + 24 - - 46 + - 15 * - 98 * - 74 * - COUNT( * )
----
55551

skipif mysql # not compatible
query I rowsort label-1397
SELECT - - 91 * - 65 * 9 + 13 + - 77 + + 24 - - 46 + - 15 * - 98 * - 74 * - COUNT ( * )
----
55551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1398
SELECT ALL + 34 * + CAST( - 89 AS SIGNED ) * 46 + - 93 + + COUNT( * ) AS col2
----
-139288

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL + 34 * + CAST ( - 89 AS INTEGER ) * 46 + - 93 + + COUNT ( * ) AS col2
----
-139288

query I rowsort
SELECT DISTINCT 54 * 28 AS col2
----
1512

query I rowsort
SELECT ALL - + CASE - 83 WHEN + 16 THEN NULL ELSE + - 84 END * - + 51 + + 94
----
-4190

query I rowsort
SELECT + NULLIF ( + 52, - 30 ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL AVG ( DISTINCT 37 ) * + 36 * CASE - COUNT( * ) WHEN 92 * + 5 THEN + + 91 WHEN 26 - - - ( - 97 ) THEN NULL END + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL AVG ( DISTINCT 37 ) * + 36 * CASE - COUNT ( * ) WHEN 92 * + 5 THEN + + 91 WHEN 26 - - - ( - 97 ) THEN NULL END + - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - - CASE 92 WHEN - 25 * + - 8 + - - 63 * - - 51 + + 50 - - - 78 THEN - 37 WHEN 79 * + 78 + - 26 THEN + 57 END * - + 29 + - 28 - - CASE + + 50 WHEN - 1 * 60 * + 57 - + + CASE 86 WHEN - - ( - 5 ) * - 80 * + 17 THEN - + 62 WHEN + + MAX( ALL + 27 ) / - 82 THEN NULL ELSE + COUNT( * ) + + COUNT( * ) * + 90 - + 10 END * 1 THEN NULL WHEN 58 - 92 THEN - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1403
SELECT - - CASE 92 WHEN - 25 * + - 8 + - - 63 * - - 51 + + 50 - - - 78 THEN - 37 WHEN 79 * + 78 + - 26 THEN + 57 END * - + 29 + - 28 - - CASE + + 50 WHEN - 1 * 60 * + 57 - + + CASE 86 WHEN - - ( - 5 ) * - 80 * + 17 THEN - + 62 WHEN + + MAX ( ALL + 27 ) / - 82 THEN NULL ELSE + COUNT ( * ) + + COUNT ( * ) * + 90 - + 10 END * 1 THEN NULL WHEN 58 - 92 THEN - 92 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - + 62 * COALESCE ( + 81, + - 46 ) + - 74 AS col2, + 87 AS col2
----
-5096
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT + 76 * + 36 - + ( + - 25 ) + + 96 + + - COUNT( 26 )
----
2856

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + 76 * + 36 - + ( + - 25 ) + + 96 + + - COUNT ( 26 )
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ( - - CASE 84 WHEN 11 THEN - 21 * + 2 * COUNT( * ) WHEN + COUNT( * ) THEN + - 28 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT ( - - CASE 84 WHEN 11 THEN - 21 * + 2 * COUNT ( * ) WHEN + COUNT ( * ) THEN + - 28 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1407
SELECT + - 4 AS col0, + 47 * + COUNT( * ) AS col2
----
-4
47

skipif mysql # not compatible
query II rowsort label-1407
SELECT + - 4 AS col0, + 47 * + COUNT ( * ) AS col2
----
-4
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT - - COUNT( * ) + + - CASE - COUNT( * ) WHEN 3 * + + 34 THEN - - 52 WHEN - 81 THEN - 99 / - - MIN( 78 ) + 46 - 75 ELSE NULL END + - + 43 * + - 6 * + - 92 * + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT - - COUNT ( * ) + + - CASE - COUNT ( * ) WHEN 3 * + + 34 THEN - - 52 WHEN - 81 THEN - 99 / - - MIN ( 78 ) + 46 - 75 ELSE NULL END + - + 43 * + - 6 * + - 92 * + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT + + 33 * + 31 + 46 + - COUNT( * ) - - + 12 col1
----
1080

skipif mysql # not compatible
query I rowsort label-1409
SELECT + + 33 * + 31 + 46 + - COUNT ( * ) - - + 12 col1
----
1080

query I rowsort
SELECT ALL 71 * 87 - + 63
----
6114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1411
SELECT ALL - - CAST( - NULLIF ( + 96, - 65 ) AS SIGNED ) * + NULLIF ( + CAST( 73 AS SIGNED ), 92 * - ( + MAX( + 11 ) ) ) * 13 AS col1
----
-91104

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL - - CAST ( - NULLIF ( + 96, - 65 ) AS INTEGER ) * + NULLIF ( + CAST ( 73 AS INTEGER ), 92 * - ( + MAX ( + 11 ) ) ) * 13 AS col1
----
-91104

query I rowsort
SELECT DISTINCT + - 79 * + ( - + 63 ) - + 28 AS col0
----
4949

query II rowsort
SELECT - 94 AS col2, 31
----
-94
31

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

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

query I rowsort
SELECT ALL + 67 - 48 AS col0
----
19

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - 12 * + COUNT ( * ) AS col1
----
-12

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

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

query I rowsort
SELECT ALL 6 - - 1
----
7

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

query I rowsort
SELECT - 83 - 37 col2
----
-120

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT + ( + - COUNT ( * ) ) * + 69 + + 18 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT ALL CAST( + + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL CAST ( + + 9 AS INTEGER )
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1423
SELECT - CASE - ( - 20 ) WHEN 60 * 85 - - 50 THEN NULL ELSE - - 93 END + - 67 + + 72 - 39 + + 5 * 40 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT - CASE - ( - 20 ) WHEN 60 * 85 - - 50 THEN NULL ELSE - - 93 END + - 67 + + 72 - 39 + + 5 * 40 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT - 52 * + + ( - 49 ) * - COUNT( * ) AS col2, 26 AS col1
----
-2548
26

skipif mysql # not compatible
query II rowsort label-1424
SELECT - 52 * + + ( - 49 ) * - COUNT ( * ) AS col2, 26 AS col1
----
-2548
26

query I rowsort
SELECT ALL ( - - 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1426
SELECT ALL + 77 DIV - 23, COUNT( DISTINCT - 84 ) + - + 62 * 21 AS col1
----
-3
-1301

skipif mysql # not compatible
query II rowsort label-1426
SELECT ALL + 77 / - 23, COUNT ( DISTINCT - 84 ) + - + 62 * 21 AS col1
----
-3
-1301

query I rowsort
SELECT DISTINCT ( - 62 ) col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1428
SELECT ALL NULLIF ( + 82, + 71 ) * - CAST( NULL AS SIGNED ), 64 * - 1 DIV - 82 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1428
SELECT ALL NULLIF ( + 82, + 71 ) * - CAST ( NULL AS INTEGER ), 64 * - 1 / - 82 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT MIN( ALL - 87 ) * - - 60 + MIN( ALL - - ( + 72 ) ) * 13
----
-4284

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT MIN ( ALL - 87 ) * - - 60 + MIN ( ALL - - ( + 72 ) ) * 13
----
-4284

query I rowsort
SELECT + 81 * - + 48 * - 28 AS col0
----
108864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1431
SELECT - CAST( 95 AS SIGNED ) + + 48 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1431
SELECT - CAST ( 95 AS INTEGER ) + + 48 AS col0
----
-47

query II rowsort
SELECT ALL 87 AS col1, - 34 + + 13
----
87
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + MIN( + + 22 ) + - 63 * - 9 + 13
----
602

skipif mysql # not compatible
query I rowsort label-1433
SELECT + MIN ( + + 22 ) + - 63 * - 9 + 13
----
602

query I rowsort
SELECT + 86 * 89 * - - 19 AS col0
----
145426

query I rowsort
SELECT + + CASE - 35 WHEN - - 37 THEN - - ( 56 ) * - CASE - + 9 WHEN + + 30 / - - 2 * - + 13 THEN + COALESCE ( + 44, - 12 ) ELSE NULL END WHEN - + 96 THEN 64 END + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + + 88 - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1436
SELECT + + 88 - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1437
SELECT ALL - 44 DIV MIN( DISTINCT 90 ) + - COALESCE ( - 9, + 5 + + 56 * + 15, - COALESCE ( - 89, + 8 * + - 97 ) * ( + 59 ) )
----
9

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - 44 / MIN ( DISTINCT 90 ) + - COALESCE ( - 9, + 5 + + 56 * + 15, - COALESCE ( - 89, + 8 * + - 97 ) * ( + 59 ) )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT ALL + - 43 AS col0, + SUM( 40 ) AS col0
----
-43
40

skipif mysql # not compatible
query II rowsort label-1438
SELECT ALL + - 43 AS col0, + SUM ( 40 ) AS col0
----
-43
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT - 94 DIV + CAST( + ( + ( 34 ) ) AS SIGNED ) + 22
----
20

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - 94 / + CAST ( + ( + ( 34 ) ) AS INTEGER ) + 22
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT DISTINCT - - 84 DIV + + 4 + - - 27 * + 14 AS col0
----
399

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - - 84 / + + 4 + - - 27 * + 14 AS col0
----
399

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT DISTINCT + + 74 col1, MAX( ALL + 11 ) AS col1
----
74
11

skipif mysql # not compatible
query II rowsort label-1441
SELECT DISTINCT + + 74 col1, MAX ( ALL + 11 ) AS col1
----
74
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT 50 DIV - 9 + - 31 + + 89
----
53

skipif mysql # not compatible
query I rowsort label-1443
SELECT 50 / - 9 + - 31 + + 89
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + 66 * + MIN( ALL + ( 74 ) ) * 19 AS col0
----
92796

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 66 * + MIN ( ALL + ( 74 ) ) * 19 AS col0
----
92796

onlyif mysql # DIV for integer division: 
query II rowsort label-1445
SELECT - - 69 DIV - 68, 41 AS col2
----
-1
41

skipif mysql # not compatible
query II rowsort label-1445
SELECT - - 69 / - 68, 41 AS col2
----
-1
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT - 57 DIV - + 97 - + ( + 30 ) * + + CAST( - - 17 AS SIGNED ) + + NULLIF ( - 28, - + COUNT( * ) ) AS col0
----
-538

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - 57 / - + 97 - + ( + 30 ) * + + CAST ( - - 17 AS INTEGER ) + + NULLIF ( - 28, - + COUNT ( * ) ) AS col0
----
-538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1447
SELECT ALL 68 * + 46 DIV + 46 - + CAST( + ( + 73 ) AS SIGNED ) + + MAX( + 77 ) - + - COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL 68 * + 46 / + 46 - + CAST ( + ( + 73 ) AS INTEGER ) + + MAX ( + 77 ) - + - COUNT ( * ) AS col1
----
73

query I rowsort
SELECT + + 25 * + - 54 + - 99 AS col2
----
-1449

query I rowsort
SELECT ALL 72 * + NULLIF ( - 17, - - 99 )
----
-1224

query I rowsort
SELECT DISTINCT - 62 * + - 1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT - COUNT( * ) + - - 53 - 33
----
19

skipif mysql # not compatible
query I rowsort label-1451
SELECT - COUNT ( * ) + - - 53 - 33
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1452
SELECT - CAST( + 9 AS SIGNED ) * + COUNT( * ) * - ( + - 92 ) AS col0, - 85 + + - 46 col2
----
-828
-131

skipif mysql # not compatible
query II rowsort label-1452
SELECT - CAST ( + 9 AS INTEGER ) * + COUNT ( * ) * - ( + - 92 ) AS col0, - 85 + + - 46 col2
----
-828
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1453
SELECT + ( - - 61 ) * COUNT( * ) * CASE - 43 WHEN + + 1 THEN COUNT( * ) * ( + 40 ) + + NULLIF ( - MIN( 52 ), + NULLIF ( - - 91, - COUNT( 29 ) ) * 19 * + 19 * + 25 + CAST( NULL AS SIGNED ) ) + - - 48 / 2 + - 52 * 73 END + 59 * 36 + CAST( - 95 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT + ( - - 61 ) * COUNT ( * ) * CASE - 43 WHEN + + 1 THEN COUNT ( * ) * ( + 40 ) + + NULLIF ( - MIN ( 52 ), + NULLIF ( - - 91, - COUNT ( 29 ) ) * 19 * + 19 * + 25 + CAST ( NULL AS INTEGER ) ) + - - 48 / 2 + - 52 * 73 END + 59 * 36 + CAST ( - 95 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT - CASE - - 90 WHEN - 1 + - ( - CAST( 17 AS SIGNED ) ) * + 49 THEN - 48 * - ( - COUNT( * ) ) + + - 9 + - 87 / + - 49 * - ( + - 52 ) ELSE NULL END - - ( - - NULLIF ( ( - ( 51 ) ), 17 * NULLIF ( 94, + 35 ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT - CASE - - 90 WHEN - 1 + - ( - CAST ( 17 AS INTEGER ) ) * + 49 THEN - 48 * - ( - COUNT ( * ) ) + + - 9 + - 87 / + - 49 * - ( + - 52 ) ELSE NULL END - - ( - - NULLIF ( ( - ( 51 ) ), 17 * NULLIF ( 94, + 35 ) ) ) col0
----
NULL

query I rowsort
SELECT - 59 + + 9
----
-50

query I rowsort
SELECT 72 * + - 15 * 24 * 42 + - 68
----
-1088708

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT COUNT( * ) + + 28 col0
----
29

skipif mysql # not compatible
query I rowsort label-1457
SELECT COUNT ( * ) + + 28 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT 86 + + SUM( ALL - 69 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1458
SELECT 86 + + SUM ( ALL - 69 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT + MIN( ALL - + 51 ) * 99 AS col2
----
-5049

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + MIN ( ALL - + 51 ) * 99 AS col2
----
-5049

query I rowsort
SELECT DISTINCT + 91 * + 8 AS col0
----
728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1461
SELECT 5 + - CASE 7 WHEN - + 86 * - 42 THEN + 36 - - CAST( + - 74 AS DECIMAL ) + + - ( 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT 5 + - CASE 7 WHEN - + 86 * - 42 THEN + 36 - - CAST ( + - 74 AS REAL ) + + - ( 4 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 73 * + 89 col0
----
6497

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1463
SELECT COUNT( * ) DIV + COUNT( * ) * - COUNT( - ( - - 9 ) ) col1, - 73
----
-1
-73

skipif mysql # not compatible
query II rowsort label-1463
SELECT COUNT ( * ) / + COUNT ( * ) * - COUNT ( - ( - - 9 ) ) col1, - 73
----
-1
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1464
SELECT COUNT( * ) DIV + 2 AS col2, + 66 AS col0
----
0
66

skipif mysql # not compatible
query II rowsort label-1464
SELECT COUNT ( * ) / + 2 AS col2, + 66 AS col0
----
0
66

query I rowsort
SELECT 95 * - + 88 AS col0
----
-8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1466
SELECT COALESCE ( + + 44, - 82 DIV 61 - 80 + + - 61 + - COALESCE ( - 3, + + COUNT( * ) + + CASE 31 WHEN COUNT( * ) * + - 9 THEN NULL WHEN - 12 + - 49 + - - 5 * + 3 * - SUM( + 73 ) * + + 1 + - 28 THEN - 98 DIV - 71 END, + 20 + - 36 + CASE - 23 WHEN + 8 + + 63 * 68 * + NULLIF ( - CAST( + - 92 AS SIGNED ), + MIN( ALL - + CAST( NULL AS SIGNED ) ) ) * + 22 * - + 8 + 23 THEN NULL WHEN 34 THEN + 65 END ) - - COUNT( * ) + + 65 - - 42 * 41, COUNT( ALL 76 ) ) + + 63
----
107

skipif mysql # not compatible
query I rowsort label-1466
SELECT COALESCE ( + + 44, - 82 / 61 - 80 + + - 61 + - COALESCE ( - 3, + + COUNT ( * ) + + CASE 31 WHEN COUNT ( * ) * + - 9 THEN NULL WHEN - 12 + - 49 + - - 5 * + 3 * - SUM ( + 73 ) * + + 1 + - 28 THEN - 98 / - 71 END, + 20 + - 36 + CASE - 23 WHEN + 8 + + 63 * 68 * + NULLIF ( - CAST ( + - 92 AS INTEGER ), + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) ) * + 22 * - + 8 + 23 THEN NULL WHEN 34 THEN + 65 END ) - - COUNT ( * ) + + 65 - - 42 * 41, COUNT ( ALL 76 ) ) + + 63
----
107

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT 2 / - + 90 col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT COUNT( * ) DIV 4 col2
----
0

skipif mysql # not compatible
query I rowsort label-1469
SELECT COUNT ( * ) / 4 col2
----
0

query I rowsort
SELECT ( + - 1 ) + - 81
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - MAX( ALL 62 ) * + COUNT( * ) * + 93 AS col0
----
-5766

skipif mysql # not compatible
query I rowsort label-1471
SELECT - MAX ( ALL 62 ) * + COUNT ( * ) * + 93 AS col0
----
-5766

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT + 9 + - SUM( DISTINCT + 96 ) + - 99
----
-186

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + 9 + - SUM ( DISTINCT + 96 ) + - 99
----
-186

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

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

query I rowsort
SELECT ALL - 59 * + - 24 * + ( + 29 )
----
41064

query I rowsort
SELECT + - CASE ( - - 28 ) WHEN 70 - + 41 THEN NULL WHEN 96 * 43 * - - 66 THEN 96 ELSE - - ( - 8 ) * + - ( + - 83 ) + - 90 END
----
754

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL + COUNT ( ALL - 57 ) * 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL - NULLIF ( + + COUNT( * ), - 59 ) + + + 12
----
11

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - NULLIF ( + + COUNT ( * ), - 59 ) + + + 12
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT 21 DIV + 44 - - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1478
SELECT 21 / + 44 - - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT + SUM( ALL - + 93 ) * - COUNT( * ) + - 48 + - - 60 col0
----
105

skipif mysql # not compatible
query I rowsort label-1479
SELECT + SUM ( ALL - + 93 ) * - COUNT ( * ) + - 48 + - - 60 col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - 14 - - + MAX( ALL + 44 ) + - COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-1480
SELECT - 14 - - + MAX ( ALL + 44 ) + - COUNT ( * ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL - COUNT( ALL CASE + 61 WHEN + 88 + 24 THEN NULL WHEN + 66 + - 13 + - 38 * + ( - 74 ) THEN + 70 + + 69 ELSE - 21 END )
----
-1

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL - COUNT ( ALL CASE + 61 WHEN + 88 + 24 THEN NULL WHEN + 66 + - 13 + - 38 * + ( - 74 ) THEN + 70 + + 69 ELSE - 21 END )
----
-1

query II rowsort
SELECT DISTINCT - - ( 68 ), + 40 AS col0
----
68
40

onlyif mysql # DIV for integer division: 
query II rowsort label-1483
SELECT 59 DIV - 16, 41 AS col1
----
-3
41

skipif mysql # not compatible
query II rowsort label-1483
SELECT 59 / - 16, 41 AS col1
----
-3
41

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

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL 77 * + COUNT ( * ) AS col1
----
77

query I rowsort
SELECT 96 + 74
----
170

query I rowsort
SELECT 6 + 77
----
83

query I rowsort
SELECT ALL 30 * - 46 AS col2
----
-1380

query I rowsort
SELECT CASE + 20 WHEN 12 THEN - 0 END * + 91
----
NULL

query I rowsort
SELECT ALL 35 * - 87 AS col1
----
-3045

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT 5 * MAX( + 68 )
----
340

skipif mysql # not compatible
query I rowsort label-1490
SELECT 5 * MAX ( + 68 )
----
340

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT ALL - 4 DIV - - 72
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - 4 / - - 72
----
0

query II rowsort
SELECT DISTINCT 29 + + ( + 15 ) AS col0, 74 + + 68 AS col0
----
44
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT CAST( NULL AS SIGNED ) + NULLIF ( + 90, - 67 - - COUNT( - 68 ) + + + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( + 90, - 67 - - COUNT ( - 68 ) + + + 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT 40 * + MAX( 7 ) * + + 57 * + 50 - + + 49 AS col0
----
797951

skipif mysql # not compatible
query I rowsort label-1494
SELECT 40 * + MAX ( 7 ) * + + 57 * + 50 - + + 49 AS col0
----
797951

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT ALL 28 + + COUNT( + + 58 ) AS col2, + COUNT( * )
----
29
1

skipif mysql # not compatible
query II rowsort label-1495
SELECT ALL 28 + + COUNT ( + + 58 ) AS col2, + COUNT ( * )
----
29
1

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

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

query II rowsort
SELECT ALL + 15 + + 29 * - 34, 87 + - 95 col0
----
-971
-8

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1500
SELECT + 82 + + + 36 - + 15 - 97 * - - COALESCE ( + 83, + - 86 ) * + 50 AS col2, COUNT( * ) + - NULLIF ( + 43, - 4 + + + 44 )
----
-402447
-42

skipif mysql # not compatible
query II rowsort label-1500
SELECT + 82 + + + 36 - + 15 - 97 * - - COALESCE ( + 83, + - 86 ) * + 50 AS col2, COUNT ( * ) + - NULLIF ( + 43, - 4 + + + 44 )
----
-402447
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT ALL - COALESCE ( + 63, - 94 * + 69 + + COUNT( * ) ) - 87
----
-150

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL - COALESCE ( + 63, - 94 * + 69 + + COUNT ( * ) ) - 87
----
-150

query I rowsort
SELECT + 21 + CASE + + 99 WHEN + 53 + - - AVG ( 37 ) + + 17 THEN 60 + - 92 + + 50 + - ( + - 78 ) * + 3 * - + 78 ELSE CASE - + ( - - 88 ) WHEN 13 THEN NULL ELSE 83 END END
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT 76 * - + 30 * + 17 + + + COUNT( * )
----
-38759

skipif mysql # not compatible
query I rowsort label-1503
SELECT 76 * - + 30 * + 17 + + + COUNT ( * )
----
-38759

query I rowsort
SELECT 79 + - 35
----
44

query I rowsort
SELECT - 5 - - - 75 - - 56 AS col1
----
-24

query II rowsort
SELECT 56 * + + 76 + 49 col0, - ( - 31 ) * + + 62 col0
----
4305
1922

query I rowsort
SELECT DISTINCT + 27 * - 19 - - 57 * - + 8 AS col2
----
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1508
SELECT ALL 15 * + NULLIF ( 15, 51 - - COUNT( * ) * 73 ) AS col0, + CAST( NULL AS SIGNED ) col1
----
225
NULL

skipif mysql # not compatible
query II rowsort label-1508
SELECT ALL 15 * + NULLIF ( 15, 51 - - COUNT ( * ) * 73 ) AS col0, + CAST ( NULL AS INTEGER ) col1
----
225
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1509
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 87 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 87 + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + + 34 * - 10 + - COUNT( * ) + - 4 AS col0
----
-345

skipif mysql # not compatible
query I rowsort label-1510
SELECT + + 34 * - 10 + - COUNT ( * ) + - 4 AS col0
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL - COUNT( * ) * - 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - COUNT ( * ) * - 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + NULLIF ( - ( + ( ( - - 66 ) ) ), - + MIN( ALL - 0 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1512
SELECT + NULLIF ( - ( + ( ( - - 66 ) ) ), - + MIN ( ALL - 0 ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1513
SELECT - ( - CASE 72 WHEN - 0 THEN NULL WHEN COUNT( ALL - 57 ) + 42 THEN + 71 END ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT - ( - CASE 72 WHEN - 0 THEN NULL WHEN COUNT ( ALL - 57 ) + 42 THEN + 71 END ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT - COALESCE ( - + 25, - COUNT( * ) + + + 96, + + 52 )
----
25

skipif mysql # not compatible
query I rowsort label-1514
SELECT - COALESCE ( - + 25, - COUNT ( * ) + + + 96, + + 52 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL COUNT( + + 51 ) * - 43 * + 5 + + COUNT( * ) col0
----
-214

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL COUNT ( + + 51 ) * - 43 * + 5 + + COUNT ( * ) col0
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT + 24 + + 17 + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1516
SELECT + 24 + + 17 + - COUNT ( * )
----
40

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

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

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + + 47, - - 11 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT COUNT( * ) * + + 99 DIV + - 12 + - + 3
----
-11

skipif mysql # not compatible
query I rowsort label-1520
SELECT COUNT ( * ) * + + 99 / + - 12 + - + 3
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL 76 * + COUNT( * ) * + - 23
----
-1748

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL 76 * + COUNT ( * ) * + - 23
----
-1748

onlyif mysql # aggregate syntax: 
query II rowsort label-1523
SELECT ALL 88 + - COUNT( * ), 75 * + + 65 * - ( - COUNT( * ) ) + - + 49 AS col0
----
87
4826

skipif mysql # not compatible
query II rowsort label-1523
SELECT ALL 88 + - COUNT ( * ), 75 * + + 65 * - ( - COUNT ( * ) ) + - + 49 AS col0
----
87
4826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + - NULLIF ( - SUM( 57 ), + + 8 ) * - + COUNT( * ) - - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + - NULLIF ( - SUM ( 57 ), + + 8 ) * - + COUNT ( * ) - - - 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT + COUNT( * ) * + MAX( - 8 ) + + 84 - 30 * ( - 63 ), 31 AS col1
----
1966
31

skipif mysql # not compatible
query II rowsort label-1525
SELECT + COUNT ( * ) * + MAX ( - 8 ) + + 84 - 30 * ( - 63 ), 31 AS col1
----
1966
31

query I rowsort
SELECT + 76 - + 81 col0
----
-5

query I rowsort
SELECT ALL 40 * - 81
----
-3240

onlyif mysql # DIV for integer division: 
query II rowsort label-1528
SELECT + 46 DIV - 48 AS col2, + 76 AS col1
----
0
76

skipif mysql # not compatible
query II rowsort label-1528
SELECT + 46 / - 48 AS col2, + 76 AS col1
----
0
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT 46 * 33 * - - 87 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT 46 * 33 * - - 87 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 63 * + - NULLIF ( CASE - 5 WHEN - 76 + + 78 THEN - - 23 END, 67 / + 5 + - - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL COUNT( * ) + - + COUNT( + COALESCE ( + 55, - 36 ) ) * - 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL COUNT ( * ) + - + COUNT ( + COALESCE ( + 55, - 36 ) ) * - 36 AS col0
----
37

query I rowsort
SELECT - NULLIF ( - 8, - 60 )
----
8

query I rowsort
SELECT ALL 22 * 85
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + COUNT( ALL + - 44 ) + - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1534
SELECT + COUNT ( ALL + - 44 ) + - 57 AS col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT ALL - ( - 80 ) DIV + + 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - ( - 80 ) / + + 19 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT + 6 DIV - + COUNT( * ) - - 76 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1536
SELECT + 6 / - + COUNT ( * ) - - 76 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT DISTINCT + 26 - - 15 + - NULLIF ( - SUM( - 42 ), - 76 - - 48 * - 82 / 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT + 26 - - 15 + - NULLIF ( - SUM ( - 42 ), - 76 - - 48 * - 82 / 93 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT - + MAX( ALL + + COALESCE ( 37, + - 35 DIV - 19 * + - 70 + - 97 ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1538
SELECT - + MAX ( ALL + + COALESCE ( 37, + - 35 / - 19 * + - 70 + - 97 ) ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT - COUNT( * ) + - 30 * - - 17 + 41 * - MIN( ALL - 27 )
----
596

skipif mysql # not compatible
query I rowsort label-1539
SELECT - COUNT ( * ) + - 30 * - - 17 + 41 * - MIN ( ALL - 27 )
----
596

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - - 49 * + + 75
----
3675

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT - ( - + COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1542
SELECT - ( - + COUNT ( * ) ), COUNT ( * )
----
1
1

query I rowsort
SELECT ALL COALESCE ( - + 78, 40 + - + 70 * + 26 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT DISTINCT - COUNT( DISTINCT + 54 ) * + COUNT( * ) DIV - 40 * + SUM( DISTINCT 90 ) DIV 3 - + 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - COUNT ( DISTINCT + 54 ) * + COUNT ( * ) / - 40 * + SUM ( DISTINCT 90 ) / 3 - + 40 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1545
SELECT ALL - 41 * 99 / - - ( CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) - + 25
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-1545
SELECT ALL - 41 * 99 / - - ( CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) - + 25
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + COUNT( + 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1546
SELECT + COUNT ( + 53 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT 80 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT ALL - CAST( - 62 AS SIGNED ) * + - CAST( - + COUNT( * ) AS SIGNED ) - + + CAST( - + 29 AS SIGNED ) * - 49 + + 97
----
-1262

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - CAST ( - 62 AS INTEGER ) * + - CAST ( - + COUNT ( * ) AS INTEGER ) - + + CAST ( - + 29 AS INTEGER ) * - 49 + + 97
----
-1262

query I rowsort
SELECT ALL - 9 * 22 + + - 54 AS col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - COALESCE ( COUNT( * ), ( + 59 ) ) * - 93 - COUNT( * ) * - 43 * 67
----
2974

skipif mysql # not compatible
query I rowsort label-1550
SELECT - COALESCE ( COUNT ( * ), ( + 59 ) ) * - 93 - COUNT ( * ) * - 43 * 67
----
2974

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT 63 * + COUNT( * ) + + 83 * - + 71 * - + 94 + - COUNT( * ) * - 55 + 16
----
554076

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT 63 * + COUNT ( * ) + + 83 * - + 71 * - + 94 + - COUNT ( * ) * - 55 + 16
----
554076

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT ALL 31 * 60 + - + 38 DIV - + 84 col1
----
1860

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL 31 * 60 + - + 38 / - + 84 col1
----
1860

onlyif mysql # aggregate syntax: 
query II rowsort label-1554
SELECT ALL + 65 * + 64 + - - COUNT( * ) AS col0, 79 * - - ( + 43 )
----
4161
3397

skipif mysql # not compatible
query II rowsort label-1554
SELECT ALL + 65 * + 64 + - - COUNT ( * ) AS col0, 79 * - - ( + 43 )
----
4161
3397

query II rowsort
SELECT + 11 AS col0, + 52
----
11
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1556
SELECT CASE - ( - + 47 ) WHEN + 67 / - 9 + + 72 - 90 + + 81 THEN - NULLIF ( 55, 30 * + ( - 13 ) + CAST( NULL AS SIGNED ) ) WHEN - 52 + - 12 THEN + + 68 + + COALESCE ( + 1, - COUNT( * ) ) - + - 44 + - COALESCE ( - 91, + 73 + - - MAX( CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * 85 ) * - COALESCE ( 86, MAX( ALL + + CASE 49 WHEN 95 THEN + 10 WHEN 75 + + 68 THEN NULL ELSE NULL END ) - 72 * ( + 8 ) ) * - 71 + 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT CASE - ( - + 47 ) WHEN + 67 / - 9 + + 72 - 90 + + 81 THEN - NULLIF ( 55, 30 * + ( - 13 ) + CAST ( NULL AS INTEGER ) ) WHEN - 52 + - 12 THEN + + 68 + + COALESCE ( + 1, - COUNT ( * ) ) - + - 44 + - COALESCE ( - 91, + 73 + - - MAX ( CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * 85 ) * - COALESCE ( 86, MAX ( ALL + + CASE 49 WHEN 95 THEN + 10 WHEN 75 + + 68 THEN NULL ELSE NULL END ) - 72 * ( + 8 ) ) * - 71 + 99 END AS col2
----
NULL

query I rowsort
SELECT - 70 * + 23 col2
----
-1610

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT + 76 + + 18 + COUNT( DISTINCT - 72 ) * - - 4 AS col0, + CASE - - 54 WHEN - - 43 + - 72 - + SUM( 79 ) + COUNT( * ) THEN NULL WHEN 36 + + 22 - + MIN( 2 ) + 3 * + NULLIF ( - SUM( DISTINCT - 66 ), + + AVG ( + + 49 ) * - 30 * 21 ) + - 26 THEN + + 97 WHEN ( + + 18 ) * - 43 THEN NULL ELSE NULL END + + - 91
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1558
SELECT + 76 + + 18 + COUNT ( DISTINCT - 72 ) * - - 4 AS col0, + CASE - - 54 WHEN - - 43 + - 72 - + SUM ( 79 ) + COUNT ( * ) THEN NULL WHEN 36 + + 22 - + MIN ( 2 ) + 3 * + NULLIF ( - SUM ( DISTINCT - 66 ), + + AVG ( + + 49 ) * - 30 * 21 ) + - 26 THEN + + 97 WHEN ( + + 18 ) * - 43 THEN NULL ELSE NULL END + + - 91
----
98
NULL

query I rowsort
SELECT - 40 * - + 21 AS col0
----
840

query I rowsort
SELECT DISTINCT - 42 * - 51 AS col1
----
2142

query I rowsort
SELECT ALL + ( 41 ) col1
----
41

query I rowsort
SELECT ALL + 73 * - 41 - ( - 13 )
----
-2980

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 10 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL - MAX( DISTINCT + + 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - MAX ( DISTINCT + + 99 ) AS col1
----
-99

query I rowsort
SELECT ALL - 97 * - - 78 AS col1
----
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT + - 91 * + 53 + + ( - - COUNT( - 53 ) ) + + + 13 AS col0
----
-4809

skipif mysql # not compatible
query I rowsort label-1566
SELECT + - 91 * + 53 + + ( - - COUNT ( - 53 ) ) + + + 13 AS col0
----
-4809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT + - 33 + CAST( + - 43 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1567
SELECT + - 33 + CAST ( + - 43 AS INTEGER ) AS col0
----
-76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1569
SELECT + + 58 * + ( CAST( NULL AS SIGNED ) ) / - - ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1569
SELECT + + 58 * + ( CAST ( NULL AS INTEGER ) ) / - - ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 51, + + 78, + 60 )
----
-51

query I rowsort
SELECT + ( + 47 ) - - + 49 AS col1
----
96

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

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

query I rowsort
SELECT + 67 + ( + - 19 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT + ( + NULLIF ( COUNT( * ), - 26 ) ) + + 69, + 0 + - 87 AS col1
----
70
-87

skipif mysql # not compatible
query II rowsort label-1574
SELECT + ( + NULLIF ( COUNT ( * ), - 26 ) ) + + 69, + 0 + - 87 AS col1
----
70
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1575
SELECT + 33 + + 24 + - 24 - 26 * + 89 * 98 * - MIN( ALL - - 64 ) + 65 * - + 45 AS col2, + 50 AS col0
----
14510516
50

skipif mysql # not compatible
query II rowsort label-1575
SELECT + 33 + + 24 + - 24 - 26 * + 89 * 98 * - MIN ( ALL - - 64 ) + 65 * - + 45 AS col2, + 50 AS col0
----
14510516
50

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

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

query I rowsort
SELECT + 16 - 55 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1578
SELECT ALL - CAST( NULL AS SIGNED ) + - + 83 + + 1 - - + ( - COUNT( * ) ) / - 87 * + 44 / + 15 AS col0, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-1578
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 83 + + 1 - - + ( - COUNT ( * ) ) / - 87 * + 44 / + 15 AS col0, 37
----
NULL
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT ALL + + ( - 72 ) + 79 DIV 20 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL + + ( - 72 ) + 79 / 20 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT 77 + CASE + 37 WHEN - 99 THEN COUNT( * ) ELSE NULL END * ( 62 ) * - 16 + + 82 + - COUNT( * ) - + 0 * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT 77 + CASE + 37 WHEN - 99 THEN COUNT ( * ) ELSE NULL END * ( 62 ) * - 16 + + 82 + - COUNT ( * ) - + 0 * + 34 AS col1
----
NULL

query I rowsort
SELECT ALL - 18 * 92 AS col1
----
-1656

query I rowsort
SELECT 5 * + 90 AS col2
----
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT CAST( NULL AS SIGNED ) * + 89 + - + 20 + - 4 + - 57 * 71 * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT CAST ( NULL AS INTEGER ) * + 89 + - + 20 + - 4 + - 57 * 71 * 74
----
NULL

query I rowsort
SELECT 31 * - 60 col0
----
-1860

query II rowsort
SELECT ALL - 69, - 76 AS col0
----
-69
-76

query I rowsort
SELECT 5 + - + 38
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL + MAX( - 20 ) / + 14 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + MAX ( - 20 ) / + 14 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 56 * + 52 AS col0
----
2912

query I rowsort
SELECT 40 + - 82 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1590
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) DIV + 37 * 55 - - 3 + - 31 * + 30 + - 32 + + 87 + + 8 * 14 col2, 31 AS col1
----
-760
31

skipif mysql # not compatible
query II rowsort label-1590
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) / + 37 * 55 - - 3 + - 31 * + 30 + - 32 + + 87 + + 8 * 14 col2, 31 AS col1
----
-760
31

query II rowsort
SELECT + 32, + 50 col1
----
32
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1592
SELECT 49 + - COUNT( * ) * 63 DIV 79 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1592
SELECT 49 + - COUNT ( * ) * 63 / 79 AS col1
----
49

query I rowsort
SELECT 83 * + - 51 + 84 AS col2
----
-4149

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT 56 + - COUNT( * ) * + 12
----
44

skipif mysql # not compatible
query I rowsort label-1594
SELECT 56 + - COUNT ( * ) * + 12
----
44

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

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( 87 AS INTEGER )
----
NULL

query II rowsort
SELECT 21 AS col0, - 25
----
21
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT + CASE 73 WHEN + 69 THEN - 34 WHEN + + COUNT( * ) - + + 82 THEN NULL ELSE NULL END * MAX( 5 ) - - 24 + - + COUNT( * ) + - 53 + - 48 + - + 36 * + - 60 * COALESCE ( - 42, 63 * 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT + CASE 73 WHEN + 69 THEN - 34 WHEN + + COUNT ( * ) - + + 82 THEN NULL ELSE NULL END * MAX ( 5 ) - - 24 + - + COUNT ( * ) + - 53 + - 48 + - + 36 * + - 60 * COALESCE ( - 42, 63 * 86 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL - + 83 * + 66 + COUNT( * ) * 58 col1
----
-5420

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - + 83 * + 66 + COUNT ( * ) * 58 col1
----
-5420

query II rowsort
SELECT 88 AS col1, 55 + - + 26 + + 3 * - 40
----
88
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT 62 * + COUNT( DISTINCT - - 80 ) DIV - 94 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1600
SELECT 62 * + COUNT ( DISTINCT - - 80 ) / - 94 - - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 40 * - ( 4 )
----
160

query I rowsort
SELECT - 24 + + + 95 * + 95 + + - 49 AS col0
----
8952

query II rowsort
SELECT DISTINCT 97 AS col1, 94 * - 66 * - 94
----
97
583176

query I rowsort
SELECT DISTINCT + - 40 + - 76 + - + 80 + + 0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL - NULLIF ( - COALESCE ( + - COUNT( * ), - - 10 ), 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - NULLIF ( - COALESCE ( + - COUNT ( * ), - - 10 ), 19 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1606
SELECT - - COUNT( * ), + 69 * + - 70 DIV + 70 AS col0
----
1
-69

skipif mysql # not compatible
query II rowsort label-1606
SELECT - - COUNT ( * ), + 69 * + - 70 / + 70 AS col0
----
1
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT ALL + 25 DIV - - 80 * + - 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + 25 / - - 80 * + - 7 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT ALL + 66 + + - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL + 66 + + - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT 23 + + MIN( + + 46 ) * + ( + 44 ) AS col2
----
2047

skipif mysql # not compatible
query I rowsort label-1609
SELECT 23 + + MIN ( + + 46 ) * + ( + 44 ) AS col2
----
2047

query II rowsort
SELECT - - 10, + 11 AS col0
----
10
11

query I rowsort
SELECT + 31 * - - ( - + 85 ) AS col1
----
-2635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT + COUNT( * ) + + 46 DIV + NULLIF ( - - 52, COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1612
SELECT + COUNT ( * ) + + 46 / + NULLIF ( - - 52, COUNT ( * ) ) AS col2
----
1

query II rowsort
SELECT - 82 AS col2, 62 AS col0
----
-82
62

query I rowsort
SELECT ALL 84 + 66 + + + ( + 95 ) AS col2
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT COUNT( * ) + + 97
----
98

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT COUNT ( * ) + + 97
----
98

query I rowsort
SELECT DISTINCT + 73 + - 51 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL NULLIF ( + 52, + ( + COUNT( * ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL NULLIF ( + 52, + ( + COUNT ( * ) ) )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1618
SELECT CAST( NULL AS SIGNED ) + + 56, + 50 + + CASE - + 31 WHEN - - COUNT( * ) + + COUNT( * ) THEN + 0 * - 23 + ( - SUM( ALL - NULLIF ( - 48, 4 ) ) ) + 20 WHEN + COUNT( * ) + COUNT( * ) THEN - 28 ELSE 25 END + 2 - + 69 DIV 39 * + COUNT( * ) * - CASE - - 82 WHEN + - 32 THEN NULL ELSE - + 60 END AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-1618
SELECT CAST ( NULL AS INTEGER ) + + 56, + 50 + + CASE - + 31 WHEN - - COUNT ( * ) + + COUNT ( * ) THEN + 0 * - 23 + ( - SUM ( ALL - NULLIF ( - 48, 4 ) ) ) + 20 WHEN + COUNT ( * ) + COUNT ( * ) THEN - 28 ELSE 25 END + 2 - + 69 / 39 * + COUNT ( * ) * - CASE - - 82 WHEN + - 32 THEN NULL ELSE - + 60 END AS col2
----
NULL
17

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

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

query I rowsort
SELECT ALL 71 + - 34
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL 65 DIV + 88 * + - 4 * 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL 65 / + 88 * + - 4 * 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL CASE 10 WHEN + COUNT( * ) THEN 19 WHEN + CASE 1 WHEN + ( COUNT( * ) ) THEN NULL WHEN 7 / + 21 + - 95 * - COUNT( * ) - 21 + + 92 + + - ( AVG ( NULLIF ( 5, 59 ) ) ) * + + COUNT( * ) - - 12 - - 4 * - + NULLIF ( + - 61, + + 73 - + 56 ) + - + 38 / + 55 THEN 73 END THEN NULL WHEN 26 THEN + 22 - + + COUNT( ALL + - 47 ) END - + - 19 * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL CASE 10 WHEN + COUNT ( * ) THEN 19 WHEN + CASE 1 WHEN + ( COUNT ( * ) ) THEN NULL WHEN 7 / + 21 + - 95 * - COUNT ( * ) - 21 + + 92 + + - ( AVG ( NULLIF ( 5, 59 ) ) ) * + + COUNT ( * ) - - 12 - - 4 * - + NULLIF ( + - 61, + + 73 - + 56 ) + - + 38 / + 55 THEN 73 END THEN NULL WHEN 26 THEN + 22 - + + COUNT ( ALL + - 47 ) END - + - 19 * 97
----
NULL

query I rowsort
SELECT ( + + 81 ) * + 8
----
648

query I rowsort
SELECT ALL + 87 * - 57
----
-4959

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT SUM( - - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-1625
SELECT SUM ( - - 71 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT DISTINCT - NULLIF ( + - COALESCE ( - - 99, - + 85, + + CAST( + 62 AS SIGNED ) ), - - 20 * 72 * 89 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - NULLIF ( + - COALESCE ( - - 99, - + 85, + + CAST ( + 62 AS INTEGER ) ), - - 20 * 72 * 89 ) AS col0
----
99

query I rowsort
SELECT ( - 21 ) * - - 14 AS col0
----
-294

query I rowsort
SELECT 49 * - - 1 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT SUM( - 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1629
SELECT SUM ( - 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT DISTINCT + CAST( - 78 AS SIGNED ) * 78 * - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + CAST ( - 78 AS INTEGER ) * 78 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT DISTINCT + 47 DIV + - 67 + - 46
----
-46

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT + 47 / + - 67 + - 46
----
-46

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

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + + 43 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1633
SELECT + 22 * COALESCE ( COUNT( - 71 ), - - COUNT( * ) + COUNT( * ) - + 34 * CASE - 76 WHEN + ( - - MIN( DISTINCT - 12 ) ) THEN NULL ELSE + CAST( MAX( DISTINCT - 79 ) AS SIGNED ) END * + - COUNT( * ) + + 74 )
----
22

skipif mysql # not compatible
query I rowsort label-1633
SELECT + 22 * COALESCE ( COUNT ( - 71 ), - - COUNT ( * ) + COUNT ( * ) - + 34 * CASE - 76 WHEN + ( - - MIN ( DISTINCT - 12 ) ) THEN NULL ELSE + CAST ( MAX ( DISTINCT - 79 ) AS INTEGER ) END * + - COUNT ( * ) + + 74 )
----
22

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

query I rowsort
SELECT - + 3 * + 42 * - - 34 + - - 28
----
-4256

query I rowsort
SELECT - 88 + + 90 - - 94 + - 70
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1637
SELECT ALL - 54 * CAST( NULL AS DECIMAL ) * + 50 + + - CASE - MAX( DISTINCT 72 ) WHEN - 37 THEN + + CAST( COUNT( * ) AS SIGNED ) + + + ( NULLIF ( - ( + 47 ), 99 ) ) * 15 + 98 + 21 ELSE - - NULLIF ( + COUNT( * ), - COUNT( ALL - + 4 ) + + 74 ) + - + 86 + + - 40 + CASE WHEN ( + 38 BETWEEN - COUNT( - 86 ) * 86 AND NULL ) THEN - + 23 END END * 4 - + 7 AS col0, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1637
SELECT ALL - 54 * CAST ( NULL AS REAL ) * + 50 + + - CASE - MAX ( DISTINCT 72 ) WHEN - 37 THEN + + CAST ( COUNT ( * ) AS INTEGER ) + + + ( NULLIF ( - ( + 47 ), 99 ) ) * 15 + 98 + 21 ELSE - - NULLIF ( + COUNT ( * ), - COUNT ( ALL - + 4 ) + + 74 ) + - + 86 + + - 40 + CASE WHEN ( + 38 BETWEEN - COUNT ( - 86 ) * 86 AND NULL ) THEN - + 23 END END * 4 - + 7 AS col0, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT - 1 + 74 * + - ( + 1 ) * 94 + 73 AS col2
----
-6884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1639
SELECT - 15 + + 82 AS col1, CAST( - COUNT( * ) AS SIGNED ) * + - 10 DIV + - 43 + - 29 * + 96 AS col0
----
67
-2784

skipif mysql # not compatible
query II rowsort label-1639
SELECT - 15 + + 82 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) * + - 10 / + - 43 + - 29 * + 96 AS col0
----
67
-2784

query I rowsort
SELECT - + 24 - - + 75 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - - 49 + - COUNT( * ) * ( + + 51 )
----
-2

skipif mysql # not compatible
query I rowsort label-1641
SELECT - - 49 + - COUNT ( * ) * ( + + 51 )
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + + SUM( DISTINCT + 48 ) + - - 20 * + - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1643
SELECT + + SUM ( DISTINCT + 48 ) + - - 20 * + - COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL + 69 + + COALESCE ( + - 0, - - COUNT( * ) - - - 92 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + 69 + + COALESCE ( + - 0, - - COUNT ( * ) - - - 92 ) AS col2
----
69

query II rowsort
SELECT ALL 44 AS col0, 35 AS col0
----
44
35

query II rowsort
SELECT 35, + 32 col0
----
35
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT ALL 53 AS col1, + COALESCE ( - - COUNT( * ), - + 15 * + 83 )
----
53
1

skipif mysql # not compatible
query II rowsort label-1647
SELECT ALL 53 AS col1, + COALESCE ( - - COUNT ( * ), - + 15 * + 83 )
----
53
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1648
SELECT + 0 * - ( 52 ) * + - 69 AS col1, CAST( NULLIF ( - NULLIF ( 7, + COUNT( * ) / - MAX( DISTINCT - COALESCE ( - 19, + 73 ) ) + - - COUNT( * ) ), + + ( 26 ) * - 33 + + + 9 ) AS SIGNED ) * - - 24 * - CAST( + - 79 AS SIGNED ) col2
----
0
-13272

skipif mysql # not compatible
query II rowsort label-1648
SELECT + 0 * - ( 52 ) * + - 69 AS col1, CAST ( NULLIF ( - NULLIF ( 7, + COUNT ( * ) / - MAX ( DISTINCT - COALESCE ( - 19, + 73 ) ) + - - COUNT ( * ) ), + + ( 26 ) * - 33 + + + 9 ) AS INTEGER ) * - - 24 * - CAST ( + - 79 AS INTEGER ) col2
----
0
-13272

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT 23 * - - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 23 * - - COUNT ( * ) AS col0
----
23

query II rowsort
SELECT ( + ( + + 42 ) ), 18 + + 23 AS col0
----
42
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT - 64 DIV + 12
----
-5

skipif mysql # not compatible
query I rowsort label-1651
SELECT - 64 / + 12
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1653
SELECT CASE 59 WHEN - - 59 THEN NULL WHEN 25 * + 61 + 90 + - - 38 * + 93 * - 78 * - 9 * + CAST( - 50 AS SIGNED ) THEN 92 * - CASE - + 51 WHEN - 81 / + ( - + 67 ) THEN - COUNT( * ) + + CASE 4 WHEN - 33 THEN NULL WHEN 29 * - 6 + + - 10 + 84 THEN NULL WHEN 15 THEN - 78 * - 17 WHEN - 63 + 65 THEN NULL ELSE COUNT( * ) END + 45 * - COALESCE ( - ( ( - 56 ) ), - + 21 ) WHEN - ( + 43 ) THEN 51 END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT CASE 59 WHEN - - 59 THEN NULL WHEN 25 * + 61 + 90 + - - 38 * + 93 * - 78 * - 9 * + CAST ( - 50 AS INTEGER ) THEN 92 * - CASE - + 51 WHEN - 81 / + ( - + 67 ) THEN - COUNT ( * ) + + CASE 4 WHEN - 33 THEN NULL WHEN 29 * - 6 + + - 10 + 84 THEN NULL WHEN 15 THEN - 78 * - 17 WHEN - 63 + 65 THEN NULL ELSE COUNT ( * ) END + 45 * - COALESCE ( - ( ( - 56 ) ), - + 21 ) WHEN - ( + 43 ) THEN 51 END ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1654
SELECT + NULLIF ( + NULLIF ( 76, 82 ), + SUM( ALL - 57 ) ) * 44 DIV 91 + - 15 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1654
SELECT + NULLIF ( + NULLIF ( 76, 82 ), + SUM ( ALL - 57 ) ) * 44 / 91 + - 15 AS col0
----
21

query II rowsort
SELECT ALL + 94 AS col1, 68 AS col0
----
94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT + 57 + - - 86 + - - NULLIF ( - MIN( ALL - 4 ), + 98 ) + - 9 * - COUNT( * ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-1656
SELECT + 57 + - - 86 + - - NULLIF ( - MIN ( ALL - 4 ), + 98 ) + - 9 * - COUNT ( * ) AS col1
----
156

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT CASE - ( - MIN( DISTINCT + + 73 ) ) WHEN - CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * - + 52 THEN AVG ( DISTINCT + 92 ) + - - ( 45 ) ELSE - 62 - - 6 END AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1658
SELECT CASE - ( - MIN ( DISTINCT + + 73 ) ) WHEN - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 52 THEN AVG ( DISTINCT + 92 ) + - - ( 45 ) ELSE - 62 - - 6 END AS col1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT + 34 + - 72 + 82 DIV + 99 * + 58
----
-38

skipif mysql # not compatible
query I rowsort label-1659
SELECT + 34 + - 72 + 82 / + 99 * + 58
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - 39 * + - COALESCE ( 47, - MIN( - 60 ) )
----
1833

skipif mysql # not compatible
query I rowsort label-1660
SELECT - 39 * + - COALESCE ( 47, - MIN ( - 60 ) )
----
1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1661
SELECT ALL 45 DIV COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL 45 / COUNT ( * ) AS col1
----
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT DISTINCT + 81 * + - ( + AVG ( ALL + 13 ) ) * + COUNT( * ) + + CASE 22 WHEN 26 - + - 80 + + + 38 * - COALESCE ( - 47, + 51 ) + - + 10 + 6 * + COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN - 45 THEN NULL WHEN + - 3 THEN - - 95 - + + 65 END + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT + 81 * + - ( + AVG ( ALL + 13 ) ) * + COUNT ( * ) + + CASE 22 WHEN 26 - + - 80 + + + 38 * - COALESCE ( - 47, + 51 ) + - + 10 + 6 * + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN - 45 THEN NULL WHEN + - 3 THEN - - 95 - + + 65 END + 25 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 3 * + ( - - 2 ) + 92
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1666
SELECT 54 * + CAST( NULL AS SIGNED ) + + - 7 AS col1, + COALESCE ( - - 50, 10, - COUNT( * ) )
----
NULL
50

skipif mysql # not compatible
query II rowsort label-1666
SELECT 54 * + CAST ( NULL AS INTEGER ) + + - 7 AS col1, + COALESCE ( - - 50, 10, - COUNT ( * ) )
----
NULL
50

query I rowsort
SELECT + + 80 + + 82
----
162

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT - 42 + 59 DIV COUNT( * ) * 49 AS col0
----
2849

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 42 + 59 / COUNT ( * ) * 49 AS col0
----
2849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL - 92 * + CASE - + 37 WHEN - - 39 * - 33 THEN - 53 WHEN + + 97 - - CAST( - + COUNT( * ) AS SIGNED ) * + + AVG ( ( + 63 ) ) THEN - CAST( NULL AS SIGNED ) END + - ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL - 92 * + CASE - + 37 WHEN - - 39 * - 33 THEN - 53 WHEN + + 97 - - CAST ( - + COUNT ( * ) AS INTEGER ) * + + AVG ( ( + 63 ) ) THEN - CAST ( NULL AS INTEGER ) END + - ( 49 )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1672
SELECT - + COUNT( * ) AS col1, 62 DIV + 31 - + - 81 * - - 25 * + COUNT( * ) * + 33
----
-1
66827

skipif mysql # not compatible
query II rowsort label-1672
SELECT - + COUNT ( * ) AS col1, 62 / + 31 - + - 81 * - - 25 * + COUNT ( * ) * + 33
----
-1
66827

query I rowsort
SELECT DISTINCT 87 + + 13
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT ALL - - 98 DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - - 98 / 26
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1675
SELECT DISTINCT 1 + - CASE NULLIF ( - CASE - + 45 WHEN + COUNT( * ) THEN - 49 WHEN - - COUNT( * ) THEN NULL END, + 19 * + - CAST( - 59 AS DECIMAL ) + - 49 ) WHEN - + 73 THEN - + 42 WHEN - 68 + + COUNT( * ) + 42 + MIN( + 66 ) * + 98 THEN - ( 47 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT 1 + - CASE NULLIF ( - CASE - + 45 WHEN + COUNT ( * ) THEN - 49 WHEN - - COUNT ( * ) THEN NULL END, + 19 * + - CAST ( - 59 AS REAL ) + - 49 ) WHEN - + 73 THEN - + 42 WHEN - 68 + + COUNT ( * ) + 42 + MIN ( + 66 ) * + 98 THEN - ( 47 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT - 14 DIV - + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT - 14 / - + 50 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1677
SELECT DISTINCT + - CASE + - CAST( + CAST( + - 93 AS SIGNED ) AS DECIMAL ) WHEN + 58 THEN + + COUNT( * ) END - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT + - CASE + - CAST ( + CAST ( + - 93 AS INTEGER ) AS REAL ) WHEN + 58 THEN + + COUNT ( * ) END - 42 AS col0
----
NULL

query I rowsort
SELECT ALL - - 6 * 45 AS col0
----
270

query I rowsort
SELECT + 2 * ( + - ( 3 ) ) AS col1
----
-6

query I rowsort
SELECT - + 1 + 28 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL - MIN( DISTINCT + 82 ) * 89 col2
----
-7298

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - MIN ( DISTINCT + 82 ) * 89 col2
----
-7298

query I rowsort
SELECT - 47 * 40
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + COUNT( * ) + 32 col1
----
33

skipif mysql # not compatible
query I rowsort label-1683
SELECT + COUNT ( * ) + 32 col1
----
33

query I rowsort
SELECT - 24 * + 45 AS col1
----
-1080

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL CAST ( + + 85 AS INTEGER ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT - 17 + + MAX( ALL + 33 ) + - 47
----
-31

skipif mysql # not compatible
query I rowsort label-1686
SELECT - 17 + + MAX ( ALL + 33 ) + - 47
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1687
SELECT DISTINCT ( + 54 ), 61 + - CAST( NULL AS SIGNED ) * 90 + SUM( - 63 ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1687
SELECT DISTINCT ( + 54 ), 61 + - CAST ( NULL AS INTEGER ) * 90 + SUM ( - 63 ) AS col0
----
54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT DISTINCT ( - - COALESCE ( - - 43, - + COUNT( * ) ) ), - 81 AS col0
----
43
-81

skipif mysql # not compatible
query II rowsort label-1688
SELECT DISTINCT ( - - COALESCE ( - - 43, - + COUNT ( * ) ) ), - 81 AS col0
----
43
-81

query I rowsort
SELECT DISTINCT - 52 * - + 13
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + MAX( + + ( 51 ) ) col1
----
51

skipif mysql # not compatible
query I rowsort label-1690
SELECT + MAX ( + + ( 51 ) ) col1
----
51

query I rowsort
SELECT + 82 * + + ( + 40 ) + - 88 + - ( 3 ) * 6 * - + 97 * 47 * 81 * + 35 AS col2
----
232648962

query I rowsort
SELECT ALL 4 * - 17 * + 37 AS col2
----
-2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT ALL 1 DIV + 19 + - 82 * 4 - + COUNT( - + 50 )
----
-329

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL 1 / + 19 + - 82 * 4 - + COUNT ( - + 50 )
----
-329

query I rowsort
SELECT + 27 * - - 38 * - 68
----
-69768

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT ALL ( + - 67 ) DIV - 16 + - 55 + 46
----
-5

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL ( + - 67 ) / - 16 + - 55 + 46
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL - 20 * - - 14 * + - COUNT( * ) - MIN( DISTINCT 70 )
----
210

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - 20 * - - 14 * + - COUNT ( * ) - MIN ( DISTINCT 70 )
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - + MIN( ALL ( + 97 ) ) - + COALESCE ( 37, 12 )
----
-134

skipif mysql # not compatible
query I rowsort label-1698
SELECT - + MIN ( ALL ( + 97 ) ) - + COALESCE ( 37, 12 )
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT DISTINCT 91 + COUNT( * ) - + 20 DIV + 90
----
92

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT 91 + COUNT ( * ) - + 20 / + 90
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + CASE + COUNT( * ) WHEN - 59 THEN NULL WHEN + 34 - 41 THEN + - MIN( - 27 ) END / - - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT + CASE + COUNT ( * ) WHEN - 59 THEN NULL WHEN + 34 - 41 THEN + - MIN ( - 27 ) END / - - 3 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT ( 55 ) DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT ( 55 ) / + 60 AS col2
----
0

query I rowsort
SELECT ALL + 37 + - 25 * + 22
----
-513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT + ( - CAST( + COALESCE ( - 53, 46 ) AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-1703
SELECT + ( - CAST ( + COALESCE ( - 53, 46 ) AS INTEGER ) )
----
53

query I rowsort
SELECT + 53 * + + 20
----
1060

query I rowsort
SELECT 8 - + + 90
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1706
SELECT ALL 50 * - ( - 67 ) * + - 65 * + CAST( NULL AS DECIMAL ) + + + CAST( - COUNT( * ) AS SIGNED ) * + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL 50 * - ( - 67 ) * + - 65 * + CAST ( NULL AS REAL ) + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1707
SELECT - 20 * COUNT( * ) DIV 53 - - 29 + + 68 col1
----
97

skipif mysql # not compatible
query I rowsort label-1707
SELECT - 20 * COUNT ( * ) / 53 - - 29 + + 68 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL ( MAX( + 78 ) ) - - 68 + - + 99 * + 85 * 70 AS col2
----
-588904

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL ( MAX ( + 78 ) ) - - 68 + - + 99 * + 85 * 70 AS col2
----
-588904

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT + MIN( DISTINCT + 33 ) * 98 AS col2
----
3234

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT + MIN ( DISTINCT + 33 ) * 98 AS col2
----
3234

query II rowsort
SELECT 88 + + - 26 AS col1, + 4 col2
----
62
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT + 86 + 60 * + ( - + CAST( - COUNT( * ) AS SIGNED ) ) * - - 98 * - 90
----
-529114

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 86 + 60 * + ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) * - - 98 * - 90
----
-529114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1713
SELECT ( + CAST( NULL AS SIGNED ) ) * + AVG ( DISTINCT + + 10 ) * + 37 * CASE + CASE NULLIF ( 62, + 16 + 53 * - + MIN( ALL + CAST( NULL AS DECIMAL ) ) / + CAST( NULL AS SIGNED ) * - - 14 - + 57 * - 73 ) WHEN - 35 THEN + 7 ELSE NULL END WHEN + 56 THEN NULL WHEN - + 84 / - 90 THEN + 59 * + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ( + CAST ( NULL AS INTEGER ) ) * + AVG ( DISTINCT + + 10 ) * + 37 * CASE + CASE NULLIF ( 62, + 16 + 53 * - + MIN ( ALL + CAST ( NULL AS REAL ) ) / + CAST ( NULL AS INTEGER ) * - - 14 - + 57 * - 73 ) WHEN - 35 THEN + 7 ELSE NULL END WHEN + 56 THEN NULL WHEN - + 84 / - 90 THEN + 59 * + 93 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT 80 + + COUNT( DISTINCT - 67 ) + CASE 12 WHEN + 75 THEN - 36 + - 29 * + ( + 0 ) + CAST( - - NULLIF ( + 59, - MIN( DISTINCT 81 ) * MAX( ( 95 ) ) ) AS SIGNED ) END + + 86 / + 6 + 26 - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT 80 + + COUNT ( DISTINCT - 67 ) + CASE 12 WHEN + 75 THEN - 36 + - 29 * + ( + 0 ) + CAST ( - - NULLIF ( + 59, - MIN ( DISTINCT 81 ) * MAX ( ( 95 ) ) ) AS INTEGER ) END + + 86 / + 6 + 26 - - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT NULLIF ( - + COUNT( * ), 56 ) + + - 97 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1715
SELECT NULLIF ( - + COUNT ( * ), 56 ) + + - 97 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL 12 * + 1 * COUNT( * ) col0
----
12

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL 12 * + 1 * COUNT ( * ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT 34 + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1717
SELECT 34 + COUNT ( * ) AS col0
----
35

query I rowsort
SELECT ALL + 28 * 66
----
1848

query I rowsort
SELECT 40 * + - 9 * + 42 AS col2
----
-15120

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

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT COUNT ( * ) / + - 74
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT ( - + 56 ) DIV + 11 + 99 + - 36
----
58

skipif mysql # not compatible
query I rowsort label-1722
SELECT ( - + 56 ) / + 11 + 99 + - 36
----
58

query I rowsort
SELECT DISTINCT + 20 * - 34
----
-680

query I rowsort
SELECT ALL - 65 * - 29 col0
----
1885

query I rowsort
SELECT 40 * 49
----
1960

query I rowsort
SELECT 75 * 92
----
6900

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + COUNT ( * ) + + 63 AS col2
----
64

query I rowsort
SELECT 65 * - 85 AS col2
----
-5525

query I rowsort
SELECT + 16 * - 25 + + 72 * - - 21 - + 55
----
1057

onlyif mysql # aggregate syntax: 
query II rowsort label-1730
SELECT 36 col0, COUNT( * ) * + 95 AS col0
----
36
95

skipif mysql # not compatible
query II rowsort label-1730
SELECT 36 col0, COUNT ( * ) * + 95 AS col0
----
36
95

query I rowsort
SELECT ALL + 94 + + 12 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ( 54 ) * + 2 - - 70 * COUNT( DISTINCT - 77 + - 84 )
----
178

skipif mysql # not compatible
query I rowsort label-1732
SELECT ( 54 ) * + 2 - - 70 * COUNT ( DISTINCT - 77 + - 84 )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT 64 + - MAX( 5 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1733
SELECT 64 + - MAX ( 5 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - NULLIF ( - 83, + 96 ) * - 40 - + 98 * - COUNT( * ) AS col1
----
-3222

skipif mysql # not compatible
query I rowsort label-1734
SELECT - NULLIF ( - 83, + 96 ) * - 40 - + 98 * - COUNT ( * ) AS col1
----
-3222

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL + 58 + ( SUM( DISTINCT 67 ) )
----
125

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL + 58 + ( SUM ( DISTINCT 67 ) )
----
125

query I rowsort
SELECT + 96 * - 48 + 96 AS col2
----
-4512

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT 95 * CASE + 55 * - 72 WHEN 67 + 42 THEN - COUNT( * ) END + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT 95 * CASE + 55 * - 72 WHEN 67 + 42 THEN - COUNT ( * ) END + 5
----
NULL

query I rowsort
SELECT 93 * - 92 AS col0
----
-8556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL + 4 * MIN( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 4 * MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1741
SELECT COUNT( 49 ) + 67 DIV COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-1741
SELECT COUNT ( 49 ) + 67 / COUNT ( * )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT DISTINCT + 86 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT + 86 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 83 * 95 col2
----
7885

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT - 58 * 87 + SUM( + 54 - 10 ) col0
----
-5002

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 58 * 87 + SUM ( + 54 - 10 ) col0
----
-5002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT 32 * CAST( 43 AS SIGNED ) + 88 AS col0
----
1464

skipif mysql # not compatible
query I rowsort label-1745
SELECT 32 * CAST ( 43 AS INTEGER ) + 88 AS col0
----
1464

query I rowsort
SELECT 5 * 13 col1
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1747
SELECT NULLIF ( CAST( NULL AS DECIMAL ), 80 + + 81 ) * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT NULLIF ( CAST ( NULL AS REAL ), 80 + + 81 ) * - 81 AS col1
----
NULL

query I rowsort
SELECT 18 * - 41
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - MAX( DISTINCT - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1749
SELECT - MAX ( DISTINCT - 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - MIN( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-1750
SELECT - MIN ( DISTINCT - 34 )
----
34

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT CASE - COUNT( - 16 ) WHEN - 52 THEN NULL ELSE 43 END * 84
----
3612

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT CASE - COUNT ( - 16 ) WHEN - 52 THEN NULL ELSE 43 END * 84
----
3612

query I rowsort
SELECT DISTINCT 87 + + 82 * - 36 AS col2
----
-2865

query I rowsort
SELECT DISTINCT 46 + + ( - 4 ) AS col0
----
42

query I rowsort
SELECT ALL - 61 + 71 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ( + 80 ) - CASE + CASE 29 WHEN - 53 * - 35 THEN 78 * - SUM( ALL - 26 ) ELSE 52 END WHEN + COUNT( * ) / - ( + MAX( + 85 ) * 83 ) + - AVG ( - ( 16 ) ) THEN 51 WHEN COALESCE ( + 10, 7 / COUNT( * ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT ( + 80 ) - CASE + CASE 29 WHEN - 53 * - 35 THEN 78 * - SUM ( ALL - 26 ) ELSE 52 END WHEN + COUNT ( * ) / - ( + MAX ( + 85 ) * 83 ) + - AVG ( - ( 16 ) ) THEN 51 WHEN COALESCE ( + 10, 7 / COUNT ( * ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT CAST( - 7 AS SIGNED ) + + 78
----
71

skipif mysql # not compatible
query I rowsort label-1758
SELECT CAST ( - 7 AS INTEGER ) + + 78
----
71

query I rowsort
SELECT DISTINCT + 89 + + 94 AS col2
----
183

query I rowsort
SELECT ALL 45 + - 17
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT + SUM( DISTINCT 82 ) * 26
----
2132

skipif mysql # not compatible
query I rowsort label-1761
SELECT + SUM ( DISTINCT 82 ) * 26
----
2132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT + CASE + 84 WHEN + COUNT( + 29 ) THEN - AVG ( CAST( 69 AS SIGNED ) ) + 84 WHEN 25 * - 2 THEN + 80 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT + CASE + 84 WHEN + COUNT ( + 29 ) THEN - AVG ( CAST ( 69 AS INTEGER ) ) + 84 WHEN 25 * - 2 THEN + 80 END / COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT 8 DIV - 23 + 34
----
34

skipif mysql # not compatible
query I rowsort label-1763
SELECT 8 / - 23 + 34
----
34

query I rowsort
SELECT NULLIF ( 13, - 70 ) AS col0
----
13

query I rowsort
SELECT + 87 * ( 91 ) + 56 AS col2
----
7973

query I rowsort
SELECT - - 43 * 83 AS col0
----
3569

query I rowsort
SELECT ALL + 37 * 50 col0
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT - MIN( ALL - ( - 23 ) ) * COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - MIN ( ALL - ( - 23 ) ) * COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT ALL + 50 * + ( COALESCE ( 70, + 30 ) ) - COALESCE ( 17, + 17 + - 34 * - 80, - 21 * 81 )
----
3483

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

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

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

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

query I rowsort
SELECT DISTINCT + - 62 * - 45 col1
----
2790

query I rowsort
SELECT + 41 - - 49 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT SUM( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-1774
SELECT SUM ( ALL 68 )
----
68

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

skipif mysql # not compatible
query I rowsort label-1775
SELECT - - 41 * COUNT ( * )
----
41

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

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

query I rowsort
SELECT DISTINCT + - 87 * + 57
----
-4959

query I rowsort
SELECT - 95 * + 81 col2
----
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL + MAX( 97 ) * - ( 73 )
----
-7081

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + MAX ( 97 ) * - ( 73 )
----
-7081

query I rowsort
SELECT ALL + CASE 16 WHEN 91 THEN 82 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 67 * + 67 + - 51 * - 90 AS col0
----
9079

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT - 47 DIV - 65 * + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT - 47 / - 65 * + 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT + SUM( DISTINCT - 31 ) * 49 AS col1
----
-1519

skipif mysql # not compatible
query I rowsort label-1783
SELECT + SUM ( DISTINCT - 31 ) * 49 AS col1
----
-1519

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL + COALESCE ( - COUNT( * ), + 63 ) + 49
----
48

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + COALESCE ( - COUNT ( * ), + 63 ) + 49
----
48

query I rowsort
SELECT - 65 + - - NULLIF ( - 47, 49 + 89 / - 34 )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - MIN( DISTINCT - ( - 78 ) ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-1786
SELECT - MIN ( DISTINCT - ( - 78 ) ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT MIN( ALL 49 )
----
49

skipif mysql # not compatible
query I rowsort label-1787
SELECT MIN ( ALL 49 )
----
49

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

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

query I rowsort
SELECT ALL 11 + + 71
----
82

query I rowsort
SELECT + 23 - ( 64 ) + - 81
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT 46 + - ( 85 ) DIV 16
----
41

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT 46 + - ( 85 ) / 16
----
41

query I rowsort
SELECT ALL 5 + - - ( 80 ) + + ( 56 ) AS col0
----
141

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1794
SELECT ALL 81 + + - 17 + - COUNT( * ) DIV COUNT( + ( 65 ) * 79 ) * + 43
----
21

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL 81 + + - 17 + - COUNT ( * ) / COUNT ( + ( 65 ) * 79 ) * + 43
----
21

query I rowsort
SELECT + 87 + 11 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT DISTINCT CAST( - 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT CAST ( - 73 AS INTEGER )
----
-73

query I rowsort
SELECT DISTINCT 10 + - 81 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + 40 + COUNT( DISTINCT 85 )
----
41

skipif mysql # not compatible
query I rowsort label-1798
SELECT + 40 + COUNT ( DISTINCT 85 )
----
41

query I rowsort
SELECT DISTINCT 4 * - 20
----
-80

query I rowsort
SELECT + 69 + - 86 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT + COALESCE ( + + COUNT( * ), + CAST( NULL AS SIGNED ) * - 4 + 9, 32 * ( - NULLIF ( 18, + 43 ) ) ) * - 81
----
-81

skipif mysql # not compatible
query I rowsort label-1801
SELECT + COALESCE ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 4 + 9, 32 * ( - NULLIF ( 18, + 43 ) ) ) * - 81
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT + CAST( NULL AS SIGNED ) * + 4 * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT + CAST ( NULL AS INTEGER ) * + 4 * - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL 39 * NULLIF ( + 58, 25 * SUM( DISTINCT 17 ) )
----
2262

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL 39 * NULLIF ( + 58, 25 * SUM ( DISTINCT 17 ) )
----
2262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1804
SELECT - COALESCE ( - COUNT( * ), 94 * COUNT( - 45 * 62 ) + - 71, - COUNT( * ) DIV 20 )
----
1

skipif mysql # not compatible
query I rowsort label-1804
SELECT - COALESCE ( - COUNT ( * ), 94 * COUNT ( - 45 * 62 ) + - 71, - COUNT ( * ) / 20 )
----
1

query I rowsort
SELECT + 9 + + 64 - - 66
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + - COUNT( + - 20 ) * ( + 91 + - 53 * 75 ) col0
----
3884

skipif mysql # not compatible
query I rowsort label-1806
SELECT + - COUNT ( + - 20 ) * ( + 91 + - 53 * 75 ) col0
----
3884

query I rowsort
SELECT ALL - 80 * - + ( - 85 ) col2
----
-6800

query I rowsort
SELECT + + 25 * + + ( 83 ) + 9
----
2084

query I rowsort
SELECT + 86 * 66 col1
----
5676

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT - ( 55 ) DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1810
SELECT - ( 55 ) / - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL SUM( ALL + 17 ) * 91 col2
----
1547

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL SUM ( ALL + 17 ) * 91 col2
----
1547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT + CAST( + + ( - 60 ) AS SIGNED ) + - 80 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-1812
SELECT + CAST ( + + ( - 60 ) AS INTEGER ) + - 80 AS col2
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT 54 DIV - + 81 - - NULLIF ( 35, - 76 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1813
SELECT 54 / - + 81 - - NULLIF ( 35, - 76 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT - 32 * - MAX( ALL + 77 ) AS col1
----
2464

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - 32 * - MAX ( ALL + 77 ) AS col1
----
2464

query I rowsort
SELECT ALL + - 84 * - 49 AS col0
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT - + NULLIF ( 54, - 70 ) * COUNT( * ) + 39
----
-15

skipif mysql # not compatible
query I rowsort label-1816
SELECT - + NULLIF ( 54, - 70 ) * COUNT ( * ) + 39
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1817
SELECT - + ( + COUNT( * ) ) DIV SUM( DISTINCT - 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1817
SELECT - + ( + COUNT ( * ) ) / SUM ( DISTINCT - 88 ) AS col1
----
0

query I rowsort
SELECT ALL - 4 * - NULLIF ( 92, + 11 / 49 )
----
368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1819
SELECT 93 * - 61 + + CAST( 51 + + ( 94 ) DIV 6 AS SIGNED ) AS col2
----
-5607

skipif mysql # not compatible
query I rowsort label-1819
SELECT 93 * - 61 + + CAST ( 51 + + ( 94 ) / 6 AS INTEGER ) AS col2
----
-5607

query I rowsort
SELECT DISTINCT + - COALESCE ( + + 56, ( - 12 ) ) col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL + 52 * COUNT( * ) * + 61 - + ( + 36 ) + 27 AS col0
----
3163

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL + 52 * COUNT ( * ) * + 61 - + ( + 36 ) + 27 AS col0
----
3163

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL + - COUNT( * ) * ( 67 ) + 8 * - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + - COUNT ( * ) * ( 67 ) + 8 * - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT - 16 + - 82 AS col2
----
-98

query I rowsort
SELECT NULLIF ( 70, 39 ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-1826
SELECT DISTINCT + 85 col2, 22 + - 78 + + 47 DIV + 33
----
85
-55

skipif mysql # not compatible
query II rowsort label-1826
SELECT DISTINCT + 85 col2, 22 + - 78 + + 47 / + 33
----
85
-55

query I rowsort
SELECT - 41 * - 9 AS col1
----
369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT - COALESCE ( COUNT( * ), - 24 + 73 ) + CAST( NULL AS SIGNED ) * - 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT - COALESCE ( COUNT ( * ), - 24 + 73 ) + CAST ( NULL AS INTEGER ) * - 50 col0
----
NULL

query I rowsort
SELECT 6 * + 70 + - 54 + + 75 AS col2
----
441

query I rowsort
SELECT NULLIF ( - 36, - - 41 * - 46 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL 73 * CASE 39 WHEN - MIN( - ( - 44 ) ) THEN 80 WHEN + COUNT( * ) * + COALESCE ( 41, + ( 29 ), + 15 * + 81 + + 77 ) THEN NULL END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL 73 * CASE 39 WHEN - MIN ( - ( - 44 ) ) THEN 80 WHEN + COUNT ( * ) * + COALESCE ( 41, + ( 29 ), + 15 * + 81 + + 77 ) THEN NULL END + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - 11 * + ( - MAX( 88 ) ) col0
----
968

skipif mysql # not compatible
query I rowsort label-1832
SELECT - 11 * + ( - MAX ( 88 ) ) col0
----
968

query I rowsort
SELECT ALL COALESCE ( + 73, + 40 ) col0
----
73

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT - 64 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-1837
SELECT - 64 / 86
----
0

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

query II rowsort
SELECT - 16 AS col1, - 25 AS col1
----
-16
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT 49 - MAX( DISTINCT 51 )
----
-2

skipif mysql # not compatible
query I rowsort label-1840
SELECT 49 - MAX ( DISTINCT 51 )
----
-2

query I rowsort
SELECT 58 - 68
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT 94 * NULLIF ( 15, - ( NULLIF ( 57, 68 ) ) * ( - COUNT( * ) ) ) * + 14
----
19740

skipif mysql # not compatible
query I rowsort label-1842
SELECT 94 * NULLIF ( 15, - ( NULLIF ( 57, 68 ) ) * ( - COUNT ( * ) ) ) * + 14
----
19740

query II rowsort
SELECT - 26 AS col2, 11
----
-26
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT 0 + COUNT( * ) + - 77 + - 13 * ( 30 * + 74 )
----
-28936

skipif mysql # not compatible
query I rowsort label-1844
SELECT 0 + COUNT ( * ) + - 77 + - 13 * ( 30 * + 74 )
----
-28936

query II rowsort
SELECT DISTINCT 30, 57 * + 3 AS col2
----
30
171

query I rowsort
SELECT ALL 92 - - 46
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT 84 DIV - 36 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1847
SELECT 84 / - 36 AS col1
----
-2

query II rowsort
SELECT DISTINCT - 11, 88 col1
----
-11
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT MIN( - + ( 80 ) ) - + 83 AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-1849
SELECT MIN ( - + ( 80 ) ) - + 83 AS col2
----
-163

query I rowsort
SELECT 29 + 29
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL + MAX( - 40 ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + MAX ( - 40 ) col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1852
SELECT ALL - 88, + 92 * COUNT( * ) * COUNT( * ) + + 93 AS col0
----
-88
185

skipif mysql # not compatible
query II rowsort label-1852
SELECT ALL - 88, + 92 * COUNT ( * ) * COUNT ( * ) + + 93 AS col0
----
-88
185

query II rowsort
SELECT + 46 AS col0, - 26 * 44 AS col0
----
46
-1144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT 52 + + 54 * - NULLIF ( - 47, 14 * - COUNT( * ) ) + - 77 AS col1
----
2513

skipif mysql # not compatible
query I rowsort label-1855
SELECT 52 + + 54 * - NULLIF ( - 47, 14 * - COUNT ( * ) ) + - 77 AS col1
----
2513

onlyif mysql # DIV for integer division: 
query II rowsort label-1856
SELECT ALL - 11 col2, - 58 DIV - 94 * 97 col1
----
-11
0

skipif mysql # not compatible
query II rowsort label-1856
SELECT ALL - 11 col2, - 58 / - 94 * 97 col1
----
-11
0

query I rowsort
SELECT + COALESCE ( 3, 7 - + NULLIF ( + 72, 10 ) ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT - 78 DIV 27 - + 34 * - COUNT( 65 ) col0
----
32

skipif mysql # not compatible
query I rowsort label-1858
SELECT - 78 / 27 - + 34 * - COUNT ( 65 ) col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1859
SELECT CAST( NULL AS SIGNED ) * - CASE - COUNT( * ) WHEN 30 + ( + 4 ) THEN NULL WHEN - 50 * - CAST( NULL AS SIGNED ) THEN 89 * - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT CAST ( NULL AS INTEGER ) * - CASE - COUNT ( * ) WHEN 30 + ( + 4 ) THEN NULL WHEN - 50 * - CAST ( NULL AS INTEGER ) THEN 89 * - 77 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT ALL 90 + COUNT( * ) + - 46
----
45

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 90 + COUNT ( * ) + - 46
----
45

query II rowsort
SELECT + 31, 72 AS col2
----
31
72

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

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

query I rowsort
SELECT DISTINCT + 75 + 9
----
84

query I rowsort
SELECT ALL 17 + + 75 * - 54 col0
----
-4033

query I rowsort
SELECT - 86 * 45
----
-3870

query I rowsort
SELECT 57 - - + 87
----
144

query II rowsort
SELECT + 21 AS col2, - 29
----
21
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT 59 * CASE + + ( ( 6 ) ) WHEN 26 THEN NULL WHEN COALESCE ( CAST( NULL AS SIGNED ), 27 * 13, - AVG ( DISTINCT 29 ) ) THEN - NULLIF ( ( 71 ), 35 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT 59 * CASE + + ( ( 6 ) ) WHEN 26 THEN NULL WHEN COALESCE ( CAST ( NULL AS INTEGER ), 27 * 13, - AVG ( DISTINCT 29 ) ) THEN - NULLIF ( ( 71 ), 35 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ( 78 ) * - COUNT( 97 ) - + 15 * 60 AS col1
----
-978

skipif mysql # not compatible
query I rowsort label-1869
SELECT ( 78 ) * - COUNT ( 97 ) - + 15 * 60 AS col1
----
-978

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

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

query I rowsort
SELECT ALL - 75 + - 13 AS col0
----
-88

query I rowsort
SELECT 38 * - 6 - - 90 AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT COALESCE ( 9, SUM( ( - 29 ) ) ) + 69 * - 79
----
-5442

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT COALESCE ( 9, SUM ( ( - 29 ) ) ) + 69 * - 79
----
-5442

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT ALL + 48 DIV 36 * - 11 * + 59 AS col0
----
-649

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + 48 / 36 * - 11 * + 59 AS col0
----
-649

query I rowsort
SELECT 68 - - 77
----
145

query I rowsort
SELECT 84 * - 52 * + + 54 AS col0
----
-235872

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ( + 94 ) + + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1877
SELECT ( + 94 ) + + COUNT ( * ) AS col0
----
95

query I rowsort
SELECT 94 - - 37
----
131

query I rowsort
SELECT 3 - + 29 + + 14
----
-12

query I rowsort
SELECT DISTINCT - 58 * + - 50 * 98 col1
----
284200

query I rowsort
SELECT 93 + + 0 + - 58 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT 97 * 60 + - 18 - - 69 * COUNT( * )
----
5871

skipif mysql # not compatible
query I rowsort label-1882
SELECT 97 * 60 + - 18 - - 69 * COUNT ( * )
----
5871

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT 13 + + + COUNT( * ) * - 30 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1883
SELECT 13 + + + COUNT ( * ) * - 30 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT + 68 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-1884
SELECT + 68 / 41
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1885
SELECT CASE - COUNT( 22 ) WHEN - - 38 * 50 - + 1 THEN - 32 * + 6 + + NULLIF ( COUNT( * ), - CASE 19 WHEN + 46 * ( - 83 ) THEN - 3 END ) WHEN - 58 * CAST( NULL AS DECIMAL ) THEN NULL WHEN - COUNT( * ) THEN 40 * 96 END + - COUNT( * ) AS col2
----
3839

skipif mysql # not compatible
query I rowsort label-1885
SELECT CASE - COUNT ( 22 ) WHEN - - 38 * 50 - + 1 THEN - 32 * + 6 + + NULLIF ( COUNT ( * ), - CASE 19 WHEN + 46 * ( - 83 ) THEN - 3 END ) WHEN - 58 * CAST ( NULL AS REAL ) THEN NULL WHEN - COUNT ( * ) THEN 40 * 96 END + - COUNT ( * ) AS col2
----
3839

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT - COUNT( + 87 ) AS col1, 91 - - + 49
----
-1
140

skipif mysql # not compatible
query II rowsort label-1886
SELECT - COUNT ( + 87 ) AS col1, 91 - - + 49
----
-1
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT - 6 + - 47 * - NULLIF ( + 96, CASE WHEN NOT NULL IS NULL THEN NULLIF ( COALESCE ( - ( 7 ), + 78 / - 14 ), + 7 ) WHEN NOT 63 + COUNT( * ) NOT BETWEEN NULL AND - AVG ( DISTINCT 18 ) THEN 59 * - 88 - 73 ELSE 82 END * - 98 )
----
4506

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - 6 + - 47 * - NULLIF ( + 96, CASE WHEN NOT NULL IS NULL THEN NULLIF ( COALESCE ( - ( 7 ), + 78 / - 14 ), + 7 ) WHEN NOT 63 + COUNT ( * ) NOT BETWEEN NULL AND - AVG ( DISTINCT 18 ) THEN 59 * - 88 - 73 ELSE 82 END * - 98 )
----
4506

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1888
SELECT - COUNT( * ) DIV 10, 71 AS col2
----
0
71

skipif mysql # not compatible
query II rowsort label-1888
SELECT - COUNT ( * ) / 10, 71 AS col2
----
0
71

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1890
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - CAST ( NULL AS REAL ) / + 29 AS col1
----
NULL

query I rowsort
SELECT ALL 87 + + 15 + 23 * - - 45
----
1137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1892
SELECT 46 + 87 - + 9 + + 6 DIV COUNT( * ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-1892
SELECT 46 + 87 - + 9 + + 6 / COUNT ( * ) AS col2
----
130

query I rowsort
SELECT DISTINCT - - 49 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT - 17 * + COUNT( * ) + + + 10 + - - ( - COUNT( * ) )
----
-8

skipif mysql # not compatible
query I rowsort label-1894
SELECT - 17 * + COUNT ( * ) + + + 10 + - - ( - COUNT ( * ) )
----
-8

query I rowsort
SELECT 71 + - 54 + + 23 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + 21 * + CASE 69 WHEN + - COUNT( * ) THEN NULL WHEN COUNT( * ) / 28 + 91 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + 43 END - 26 AS col1
----
877

skipif mysql # not compatible
query I rowsort label-1896
SELECT + 21 * + CASE 69 WHEN + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) / 28 + 91 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 43 END - 26 AS col1
----
877

query I rowsort
SELECT + 50 + + 88 AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT + 33 / + + 96 * 36 + - - 96 + + CAST( NULL AS SIGNED ) / + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT + 33 / + + 96 * 36 + - - 96 + + CAST ( NULL AS INTEGER ) / + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1899
SELECT - 40 * - CAST( NULL AS SIGNED ) + - + 83 * - - 71 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT - 40 * - CAST ( NULL AS INTEGER ) + - + 83 * - - 71 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 6 * + 73 - 30 - + - ( + 93 ) * 91
----
8871

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1901
SELECT + NULLIF ( - - 73, + 35 / - COALESCE ( + 83, CAST( - 31 AS SIGNED ) * + 30 + CAST( NULL AS DECIMAL ) ) * ( 16 * - 7 - - 79 ) ) + 41
----
114

skipif mysql # not compatible
query I rowsort label-1901
SELECT + NULLIF ( - - 73, + 35 / - COALESCE ( + 83, CAST ( - 31 AS INTEGER ) * + 30 + CAST ( NULL AS REAL ) ) * ( 16 * - 7 - - 79 ) ) + 41
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT + 52 DIV 11
----
4

skipif mysql # not compatible
query I rowsort label-1902
SELECT + 52 / 11
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + CASE - 28 WHEN - MIN( - 44 ) / CASE + 93 WHEN ( 94 ) THEN NULL WHEN + 9 / 1 THEN + 37 END + - 64 THEN 84 * COUNT( * ) ELSE NULL END * + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT + CASE - 28 WHEN - MIN ( - 44 ) / CASE + 93 WHEN ( 94 ) THEN NULL WHEN + 9 / 1 THEN + 37 END + - 64 THEN 84 * COUNT ( * ) ELSE NULL END * + 66 AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT 81 DIV - 59 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 81 / - 59 col0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1907
SELECT ALL 28 DIV - ( + - 20 ), + 55 AS col0
----
1
55

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL 28 / - ( + - 20 ), + 55 AS col0
----
1
55

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - CASE WHEN 51 NOT IN ( - COUNT( * ) ) THEN 39 * 25 ELSE NULL END
----
-975

skipif mysql # not compatible
query I rowsort label-1910
SELECT - CASE WHEN 51 NOT IN ( - COUNT ( * ) ) THEN 39 * 25 ELSE NULL END
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - 68 * MIN( - - 66 ) AS col2
----
-4488

skipif mysql # not compatible
query I rowsort label-1911
SELECT - 68 * MIN ( - - 66 ) AS col2
----
-4488

query I rowsort
SELECT + + 38 - + 95
----
-57

query I rowsort
SELECT ALL - 69 + - NULLIF ( 92, - 19 ) AS col1
----
-161

query I rowsort
SELECT + - ( + 23 ) - - - 19
----
-42

query I rowsort
SELECT - 75 + - 59 + 55 + + 61 + 61 col2
----
43

query I rowsort
SELECT DISTINCT + 19 + - - 92 AS col0
----
111

query II rowsort
SELECT - + 84, 67 AS col0
----
-84
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - - MIN( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-1919
SELECT - - MIN ( 66 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT - + NULLIF ( - + 71, + ( + - 57 ) ) - - 47 + 83 DIV 16 col2
----
123

skipif mysql # not compatible
query I rowsort label-1920
SELECT - + NULLIF ( - + 71, + ( + - 57 ) ) - - 47 + 83 / 16 col2
----
123

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT - 8 * + CASE - - 89 WHEN MAX( ALL - CAST( NULL AS SIGNED ) ) THEN - 94 + - 94 ELSE NULL END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT - 8 * + CASE - - 89 WHEN MAX ( ALL - CAST ( NULL AS INTEGER ) ) THEN - 94 + - 94 ELSE NULL END * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT + - NULLIF ( + - NULLIF ( + 63, + - 51 - + 15 + ( 96 ) / 81 ), 27 + - ( MIN( ALL 67 ) ) * + 53 ) + COUNT( * ) * 88 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT + - NULLIF ( + - NULLIF ( + 63, + - 51 - + 15 + ( 96 ) / 81 ), 27 + - ( MIN ( ALL 67 ) ) * + 53 ) + COUNT ( * ) * 88 AS col1
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT DISTINCT + - ( - + 32 ) DIV 20 + - - 30
----
31

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + - ( - + 32 ) / 20 + - - 30
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT + 16 AS col0, - COUNT( * ) + - NULLIF ( + MAX( 0 ), AVG ( DISTINCT 64 ) * COUNT( * ) ) * 40
----
16
-1

skipif mysql # not compatible
query II rowsort label-1925
SELECT + 16 AS col0, - COUNT ( * ) + - NULLIF ( + MAX ( 0 ), AVG ( DISTINCT 64 ) * COUNT ( * ) ) * 40
----
16
-1

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

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

query I rowsort
SELECT DISTINCT + 95 * 71 * + + 28 * 85 * + 8 - + 18
----
128424782

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - CASE + 88 WHEN + COUNT( * ) THEN + + 75 * + - ( - COUNT( * ) ) - 25 WHEN 85 THEN NULL WHEN - 23 THEN NULL END * - COALESCE ( - NULLIF ( 52, - 34 * COUNT( * ) + 56 ), - NULLIF ( + 21, + 99 - + 69 * + COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT - CASE + 88 WHEN + COUNT ( * ) THEN + + 75 * + - ( - COUNT ( * ) ) - 25 WHEN 85 THEN NULL WHEN - 23 THEN NULL END * - COALESCE ( - NULLIF ( 52, - 34 * COUNT ( * ) + 56 ), - NULLIF ( + 21, + 99 - + 69 * + COUNT ( * ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT ALL 83 DIV 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL 83 / 64 AS col0
----
1

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

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

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

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

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

query I rowsort
SELECT - 52 - + 96
----
-148

query I rowsort
SELECT + COALESCE ( - 75, - + 66 * + + 45 * - + 46, 6 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + NULLIF ( ( - COUNT( * ) ), - 33 * - 55 + COUNT( * ) ) * 54 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1935
SELECT + NULLIF ( ( - COUNT ( * ) ), - 33 * - 55 + COUNT ( * ) ) * 54 AS col2
----
-54

query I rowsort
SELECT + 17 * - 49 + + 85 AS col0
----
-748

query I rowsort
SELECT ALL 40 * - 50 * 65 col2
----
-130000

query I rowsort
SELECT DISTINCT 75 * - - 29 AS col0
----
2175

query I rowsort
SELECT ALL + 85 * 79 AS col1
----
6715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT + CASE - 81 WHEN + 1 THEN - ( - + 15 ) * 31 + CASE ( - SUM( ALL - 16 ) ) WHEN 37 THEN - 93 END WHEN 15 + + 95 THEN NULL ELSE 80 - + 90 * 99 END - CAST( 28 AS SIGNED ) AS col1
----
-8858

skipif mysql # not compatible
query I rowsort label-1940
SELECT + CASE - 81 WHEN + 1 THEN - ( - + 15 ) * 31 + CASE ( - SUM ( ALL - 16 ) ) WHEN 37 THEN - 93 END WHEN 15 + + 95 THEN NULL ELSE 80 - + 90 * 99 END - CAST ( 28 AS INTEGER ) AS col1
----
-8858

query II rowsort
SELECT DISTINCT + 55, - 75 AS col1
----
55
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT + 75 - 28 * + - 64 * - + CAST( NULL AS SIGNED ) + COALESCE ( + COUNT( * ), COUNT( * ) - + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT + 75 - 28 * + - 64 * - + CAST ( NULL AS INTEGER ) + COALESCE ( + COUNT ( * ), COUNT ( * ) - + 60 )
----
NULL

query II rowsort
SELECT ALL + 29 AS col0, + 59 * + - 66
----
29
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - CASE COUNT( * ) WHEN - 54 * + 47 * - - 57 / 61 THEN NULL WHEN + 96 THEN 41 WHEN - 71 * - 89 THEN NULL ELSE NULL END * COUNT( * ) + MAX( - NULLIF ( 57, 87 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - CASE COUNT ( * ) WHEN - 54 * + 47 * - - 57 / 61 THEN NULL WHEN + 96 THEN 41 WHEN - 71 * - 89 THEN NULL ELSE NULL END * COUNT ( * ) + MAX ( - NULLIF ( 57, 87 ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1946
SELECT + 68 DIV - 24, 63 DIV + - 59 DIV + COUNT( * ) AS col1
----
-2
-1

skipif mysql # not compatible
query II rowsort label-1946
SELECT + 68 / - 24, 63 / + - 59 / + COUNT ( * ) AS col1
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT + 80 + + COUNT( * ) + 30 * ( - COUNT( + 67 ) ) + 49 * 44
----
2207

skipif mysql # not compatible
query I rowsort label-1947
SELECT + 80 + + COUNT ( * ) + 30 * ( - COUNT ( + 67 ) ) + 49 * 44
----
2207

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + ( - ( 87 ) ) - - 61 * + - 87 + + COUNT( * )
----
-5393

skipif mysql # not compatible
query I rowsort label-1948
SELECT + ( - ( 87 ) ) - - 61 * + - 87 + + COUNT ( * )
----
-5393

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1950
SELECT - COUNT( * ) col0, 79 + - 22 AS col2
----
-1
57

skipif mysql # not compatible
query II rowsort label-1950
SELECT - COUNT ( * ) col0, 79 + - 22 AS col2
----
-1
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT CAST( NULL AS SIGNED ) * + NULLIF ( - 76, - 63 * - 21 + + 74 ) + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT CAST ( NULL AS INTEGER ) * + NULLIF ( - 76, - 63 * - 21 + + 74 ) + + 12 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + + SUM( DISTINCT - ( 75 ) ) + - 61
----
-136

skipif mysql # not compatible
query I rowsort label-1953
SELECT + + SUM ( DISTINCT - ( 75 ) ) + - 61
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT + 87 * + - 9 + + - NULLIF ( 69, + + COUNT( * ) )
----
-852

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + 87 * + - 9 + + - NULLIF ( 69, + + COUNT ( * ) )
----
-852

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + - 76 + + - 5 * - MAX( ALL - 74 )
----
-446

skipif mysql # not compatible
query I rowsort label-1955
SELECT + - 76 + + - 5 * - MAX ( ALL - 74 )
----
-446

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT + 83 * + + MAX( + 45 )
----
3735

skipif mysql # not compatible
query I rowsort label-1956
SELECT + 83 * + + MAX ( + 45 )
----
3735

onlyif mysql # DIV for integer division: 
query II rowsort label-1957
SELECT ALL + 19, 58 DIV + + 92 col0
----
19
0

skipif mysql # not compatible
query II rowsort label-1957
SELECT ALL + 19, 58 / + + 92 col0
----
19
0

query I rowsort
SELECT + 5 + 23 * - + COALESCE ( - 76, 37 )
----
1753

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - - MIN( DISTINCT 6 ) * + + 96
----
576

skipif mysql # not compatible
query I rowsort label-1959
SELECT - - MIN ( DISTINCT 6 ) * + + 96
----
576

query I rowsort
SELECT + + 99 + 58
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1961
SELECT - CASE WHEN NULL <= ( - AVG ( - 42 ) ) THEN NULL ELSE - CAST( COUNT( * ) AS SIGNED ) DIV - 79 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1961
SELECT - CASE WHEN NULL <= ( - AVG ( - 42 ) ) THEN NULL ELSE - CAST ( COUNT ( * ) AS INTEGER ) / - 79 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1962
SELECT DISTINCT 28 AS col0, COUNT( * ) * + 36
----
28
36

skipif mysql # not compatible
query II rowsort label-1962
SELECT DISTINCT 28 AS col0, COUNT ( * ) * + 36
----
28
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL + ( 44 ) * + 63 + - COUNT( * ) + ( + 40 ) col0
----
2811

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + ( 44 ) * + 63 + - COUNT ( * ) + ( + 40 ) col0
----
2811

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

skipif mysql # not compatible
query I rowsort label-1964
SELECT + + 8 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 93 * + - 39
----
-3627

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT - COUNT( * ) * - + 36 + - - NULLIF ( - 3, - 11 )
----
33

skipif mysql # not compatible
query I rowsort label-1966
SELECT - COUNT ( * ) * - + 36 + - - NULLIF ( - 3, - 11 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT 58 + - CASE - ( ( - 73 ) ) WHEN - 34 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT 58 + - CASE - ( ( - 73 ) ) WHEN - 34 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 56 * - 93 * 0 - - + 12
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1969
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), + 36 - + COUNT( * ) * + 34 + - 13 ) DIV + - MIN( + 15 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), + 36 - + COUNT ( * ) * + 34 + - 13 ) / + - MIN ( + 15 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1970
SELECT CAST( - 2 AS SIGNED ) * 2 + NULLIF ( - + 74, + NULLIF ( + 55, - COUNT( * ) ) ) * 57 + + 90 DIV 22
----
-4218

skipif mysql # not compatible
query I rowsort label-1970
SELECT CAST ( - 2 AS INTEGER ) * 2 + NULLIF ( - + 74, + NULLIF ( + 55, - COUNT ( * ) ) ) * 57 + + 90 / 22
----
-4218

query I rowsort
SELECT 87 * - - ( NULLIF ( + 3, + 50 ) ) AS col1
----
261

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

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + COUNT ( ALL + 93 ) + + 15 AS col0
----
16

query I rowsort
SELECT + 0 * + 11 + + 79 + 50 AS col1
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1974
SELECT ALL - 26 DIV + SUM( - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - 26 / + SUM ( - 33 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1975
SELECT DISTINCT + MIN( + + 34 ) + + 17 DIV + NULLIF ( 32, - 54 DIV - 49 + - 25 * 71 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT + MIN ( + + 34 ) + + 17 / + NULLIF ( 32, - 54 / - 49 + - 25 * 71 ) AS col0
----
34

query I rowsort
SELECT 77 * 68
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT COUNT( * ) + 16 + - SUM( - ( + - COALESCE ( 68, - ( 44 ) + 91 * 15 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( * ) + 16 + - SUM ( - ( + - COALESCE ( 68, - ( 44 ) + 91 * 15 ) ) )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT - COALESCE ( + 77, 81 * + CAST( NULL AS SIGNED ) + - 71 + CAST( - + 86 AS SIGNED ) + + CASE COUNT( * ) + - COUNT( * ) * + COUNT( * ) WHEN - 54 + 22 THEN - 63 END DIV 26 ) + - 95 * + 5
----
-552

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - COALESCE ( + 77, 81 * + CAST ( NULL AS INTEGER ) + - 71 + CAST ( - + 86 AS INTEGER ) + + CASE COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) WHEN - 54 + 22 THEN - 63 END / 26 ) + - 95 * + 5
----
-552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT 18 * - 70 + CAST( NULL AS SIGNED ) / + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT 18 * - 70 + CAST ( NULL AS INTEGER ) / + 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1980
SELECT DISTINCT + ( - NULLIF ( + - CAST( NULL AS SIGNED ), - + COUNT( * ) ) ) * - + SUM( ALL - - CAST( + 57 AS SIGNED ) ) + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT + ( - NULLIF ( + - CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) ) * - + SUM ( ALL - - CAST ( + 57 AS INTEGER ) ) + + 84 AS col1
----
NULL

query I rowsort
SELECT ALL + + 19 + + 74 AS col0
----
93

query I rowsort
SELECT DISTINCT 27 + + 7 + - ( - ( + 37 ) ) - + 94 + - 81 + + 64
----
-40

query I rowsort
SELECT ALL - 86 + + + 56 AS col0
----
-30

query I rowsort
SELECT + 14 * - 20 - - 50 + - 61 * 96
----
-6086

onlyif mysql # aggregate syntax: 
query II rowsort label-1985
SELECT ALL 11 - - 70, - MIN( 19 ) AS col0
----
81
-19

skipif mysql # not compatible
query II rowsort label-1985
SELECT ALL 11 - - 70, - MIN ( 19 ) AS col0
----
81
-19

query I rowsort
SELECT - 81 - + + 86 col2
----
-167

query I rowsort
SELECT 90 * - + 40 * 86 * + 52 AS col2
----
-16099200

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL - CASE SUM( + 70 ) WHEN + COALESCE ( + - 72, - CAST( - 59 AS SIGNED ) - 82 ) THEN - 56 WHEN + 99 THEN NULL ELSE 43 + + SUM( 33 ) * + 90 END - - 10 * + CAST( CAST( NULL AS SIGNED ) * 49 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - CASE SUM ( + 70 ) WHEN + COALESCE ( + - 72, - CAST ( - 59 AS INTEGER ) - 82 ) THEN - 56 WHEN + 99 THEN NULL ELSE 43 + + SUM ( 33 ) * + 90 END - - 10 * + CAST ( CAST ( NULL AS INTEGER ) * 49 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL 23 * - - COALESCE ( - COUNT( * ), + 79, COUNT( * ) ) + + ( + + NULLIF ( - NULLIF ( CASE + 77 WHEN + 15 THEN NULL WHEN + 83 THEN + 43 WHEN + 33 / - 53 - + 81 THEN COUNT( * ) + + 33 ELSE - COUNT( * ) END, 44 ), 94 * 29 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL 23 * - - COALESCE ( - COUNT ( * ), + 79, COUNT ( * ) ) + + ( + + NULLIF ( - NULLIF ( CASE + 77 WHEN + 15 THEN NULL WHEN + 83 THEN + 43 WHEN + 33 / - 53 - + 81 THEN COUNT ( * ) + + 33 ELSE - COUNT ( * ) END, 44 ), 94 * 29 ) )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1991
SELECT NULLIF ( - CAST( - COUNT( ALL - + 18 ) AS SIGNED ), 50 * + + COUNT( * ) + - 97 + + 23 * 18 + COUNT( * ) ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-1991
SELECT NULLIF ( - CAST ( - COUNT ( ALL - + 18 ) AS INTEGER ), 50 * + + COUNT ( * ) + - 97 + + 23 * 18 + COUNT ( * ) ) * 3
----
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT CAST( + 86 AS SIGNED ) * 61 * 59
----
309514

skipif mysql # not compatible
query I rowsort label-1994
SELECT CAST ( + 86 AS INTEGER ) * 61 * 59
----
309514

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT ALL - COALESCE ( - 4, + ( - 42 ) ) * CAST( - 90 AS SIGNED ) * 26 AS col2
----
-9360

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - COALESCE ( - 4, + ( - 42 ) ) * CAST ( - 90 AS INTEGER ) * 26 AS col2
----
-9360

onlyif mysql # aggregate syntax: 
query III rowsort label-1997
SELECT ALL + MAX( ALL - 7 ) + + + 50 AS col2, 49, + CASE - + 82 WHEN 36 * - + 76 * ( 32 * - 84 ) THEN - ( 5 ) + 93 ELSE NULL END * ( - 19 + COUNT( * ) ) col2
----
43
49
NULL

skipif mysql # not compatible
query III rowsort label-1997
SELECT ALL + MAX ( ALL - 7 ) + + + 50 AS col2, 49, + CASE - + 82 WHEN 36 * - + 76 * ( 32 * - 84 ) THEN - ( 5 ) + 93 ELSE NULL END * ( - 19 + COUNT ( * ) ) col2
----
43
49
NULL

query I rowsort
SELECT ALL 57 + - ( 92 ) * 71 AS col1
----
-6475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT CASE + + 87 WHEN SUM( - CAST( 74 AS SIGNED ) ) * - 86 + COALESCE ( 45, + 97 ) THEN 91 + + 69 WHEN 64 + 56 * 97 THEN NULL END - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT CASE + + 87 WHEN SUM ( - CAST ( 74 AS INTEGER ) ) * - 86 + COALESCE ( 45, + 97 ) THEN 91 + + 69 WHEN 64 + 56 * 97 THEN NULL END - - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT 83 - 20 * + 13 * + COUNT( * ) * + COUNT( * ) AS col2
----
-177

skipif mysql # not compatible
query I rowsort label-2000
SELECT 83 - 20 * + 13 * + COUNT ( * ) * + COUNT ( * ) AS col2
----
-177

query I rowsort
SELECT ALL - 13 * + 6
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT + 70 * + 72 + - COUNT( * ) + + + 2
----
5041

skipif mysql # not compatible
query I rowsort label-2002
SELECT + 70 * + 72 + - COUNT ( * ) + + + 2
----
5041

query II rowsort
SELECT ALL - 67 col0, 50 + - + 36 * 61 AS col2
----
-67
-2146

query I rowsort
SELECT ALL 98 + + NULLIF ( - 18, 31 * + 14 )
----
80

query II rowsort
SELECT 11 AS col2, 49
----
11
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL + 90 + + COUNT( * ) + SUM( ALL 53 )
----
144

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL + 90 + + COUNT ( * ) + SUM ( ALL 53 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - 85 - + 63 - - 62 * - ( - 8 ) * + ( 98 ) - - - 20 + + ( COUNT( * ) ) * - 87 AS col1
----
48353

skipif mysql # not compatible
query I rowsort label-2007
SELECT - 85 - + 63 - - 62 * - ( - 8 ) * + ( 98 ) - - - 20 + + ( COUNT ( * ) ) * - 87 AS col1
----
48353

query I rowsort
SELECT 36 - - 3 col2
----
39

query I rowsort
SELECT ALL - 99 * - + 7 + + - 41 * + 64 AS col2
----
-1931

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2010
SELECT 15 + - 21 + + CAST( NULL AS DECIMAL ) + - + 82 * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT 15 + - 21 + + CAST ( NULL AS REAL ) + - + 82 * 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT - ( + - COUNT( - + 58 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2011
SELECT - ( + - COUNT ( - + 58 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL NULLIF ( + 98, 76 + - 21 + + COUNT( * ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL NULLIF ( + 98, 76 + - 21 + + COUNT ( * ) ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-2013
SELECT 0, 46 DIV - 58
----
0
0

skipif mysql # not compatible
query II rowsort label-2013
SELECT 0, 46 / - 58
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT NULLIF ( CASE 59 WHEN + COUNT( * ) THEN NULL WHEN + 72 THEN NULL WHEN + 90 THEN 46 END, + + 29 + - 28 * AVG ( DISTINCT - ( 30 ) ) ) - + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT NULLIF ( CASE 59 WHEN + COUNT ( * ) THEN NULL WHEN + 72 THEN NULL WHEN + 90 THEN 46 END, + + 29 + - 28 * AVG ( DISTINCT - ( 30 ) ) ) - + 81 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 39, - + 36 * + 8 ) * + 2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2016
SELECT - CAST( NULL AS SIGNED ) * - CASE + 77 WHEN 13 * - + CAST( - 92 AS DECIMAL ) * + 44 * - 27 - COUNT( * ) / - 99 THEN - 45 END / COUNT( * ) + + 9 * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT - CAST ( NULL AS INTEGER ) * - CASE + 77 WHEN 13 * - + CAST ( - 92 AS REAL ) * + 44 * - 27 - COUNT ( * ) / - 99 THEN - 45 END / COUNT ( * ) + + 9 * 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + SUM( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2017
SELECT + SUM ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT + ( - 41 ) + - COUNT( + 96 ) - + - 59 - - + NULLIF ( - 41, 80 * 76 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2018
SELECT + ( - 41 ) + - COUNT ( + 96 ) - + - 59 - - + NULLIF ( - 41, 80 * 76 ) AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2019
SELECT - - NULLIF ( + + 45, - + NULLIF ( + - NULLIF ( + 50, + COUNT( * ) ), - CASE + 55 WHEN 9 THEN NULL WHEN NULLIF ( - 58, 1 ) + - 61 THEN - 62 * 58 END ) ) DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT - - NULLIF ( + + 45, - + NULLIF ( + - NULLIF ( + 50, + COUNT ( * ) ), - CASE + 55 WHEN 9 THEN NULL WHEN NULLIF ( - 58, 1 ) + - 61 THEN - 62 * 58 END ) ) / + 52
----
0

query I rowsort
SELECT + - 42 * 38 AS col1
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - COUNT( - + 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2021
SELECT - COUNT ( - + 79 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2022
SELECT - COALESCE ( - COALESCE ( - + 79, - 96 * + - 31 * + 76 * - 82, - SUM( + CAST( NULL AS SIGNED ) ) + - COALESCE ( + 17 + 18, - CASE WHEN NOT - 66 < 11 * CAST( NULL AS DECIMAL ) THEN + 76 * 24 + + 43 END ) * + 45 ), + 77 - 27 ) + 90 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT - COALESCE ( - COALESCE ( - + 79, - 96 * + - 31 * + 76 * - 82, - SUM ( + CAST ( NULL AS INTEGER ) ) + - COALESCE ( + 17 + 18, - CASE WHEN NOT - 66 < 11 * CAST ( NULL AS REAL ) THEN + 76 * 24 + + 43 END ) * + 45 ), + 77 - 27 ) + 90 / - CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT ALL 17 + + 93 + + - 34 + 66 DIV - 91 * + 83 * 20 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL 17 + + 93 + + - 34 + 66 / - 91 * + 83 * 20 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2025
SELECT + CAST( - - ( NULLIF ( - + 75, - ( + MAX( 82 ) ) ) ) AS SIGNED ) + + NULLIF ( 42, - 98 + - 3 DIV 71 ) DIV + 11
----
-72

skipif mysql # not compatible
query I rowsort label-2025
SELECT + CAST ( - - ( NULLIF ( - + 75, - ( + MAX ( 82 ) ) ) ) AS INTEGER ) + + NULLIF ( 42, - 98 + - 3 / 71 ) / + 11
----
-72

query I rowsort
SELECT DISTINCT NULLIF ( - - 57, + - 16 * - 41 + - ( 51 ) * + ( - - 42 ) ) * + 96
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + SUM( - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2027
SELECT + SUM ( - 6 ) AS col0
----
-6

query I rowsort
SELECT - 66 * - + 68 + 10
----
4498

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT + 91 DIV + + 90 + - - 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2029
SELECT + 91 / + + 90 + - - 49 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT - 4 * 66 - + CASE + 0 WHEN + 1 + + CAST( NULL AS SIGNED ) THEN 22 WHEN - + CAST( 71 AS SIGNED ) THEN 99 WHEN - 73 THEN - 73 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT - 4 * 66 - + CASE + 0 WHEN + 1 + + CAST ( NULL AS INTEGER ) THEN 22 WHEN - + CAST ( 71 AS INTEGER ) THEN 99 WHEN - 73 THEN - 73 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( - + 8, 76 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2033
SELECT 55 * 9 + - ( + 21 ) DIV - + ( + COUNT( * ) ) - + CAST( + 38 AS SIGNED )
----
478

skipif mysql # not compatible
query I rowsort label-2033
SELECT 55 * 9 + - ( + 21 ) / - + ( + COUNT ( * ) ) - + CAST ( + 38 AS INTEGER )
----
478

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2034
SELECT - COUNT( * ) DIV - CASE + CAST( - 94 AS DECIMAL ) WHEN 70 THEN NULL ELSE 13 END + - - 37 AS col2, - 46 + + + ( 16 ) AS col1
----
37
-30

skipif mysql # not compatible
query II rowsort label-2034
SELECT - COUNT ( * ) / - CASE + CAST ( - 94 AS REAL ) WHEN 70 THEN NULL ELSE 13 END + - - 37 AS col2, - 46 + + + ( 16 ) AS col1
----
37
-30

query I rowsort
SELECT + - 53 * + 32
----
-1696

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - - 47 * - CASE + 45 WHEN - 72 THEN + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT - - 47 * - CASE + 45 WHEN - 72 THEN + COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT ALL - + 77 * 4 * - 34
----
10472

query I rowsort
SELECT + - ( + 29 ) * + - CASE WHEN ( NULL ) IS NOT NULL THEN - 87 ELSE NULL END / 25 * + - 9 - - - 20 * - AVG ( ALL - 80 / 94 ) + NULLIF ( + 1, + 50 * 75 ) * 81 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT COALESCE ( 91, + MAX( + 79 ) * + + CAST( - 10 AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2039
SELECT COALESCE ( 91, + MAX ( + 79 ) * + + CAST ( - 10 AS INTEGER ) ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT COALESCE ( + + 6, - 52 DIV AVG ( ALL 20 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2040
SELECT COALESCE ( + + 6, - 52 / AVG ( ALL 20 ) ) AS col2
----
6

query I rowsort
SELECT 46 * + - 5 + + + 84 + ( - ( - - 26 ) ) - + 46
----
-218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT - CAST( - + CASE + 58 WHEN + - 47 THEN - + 74 ELSE - 60 + - - 39 + 85 END AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2042
SELECT - CAST ( - + CASE + 58 WHEN + - 47 THEN - + 74 ELSE - 60 + - - 39 + 85 END AS INTEGER ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT - + 71 DIV + + 92 + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-2043
SELECT - + 71 / + + 92 + - 91
----
-91

query I rowsort
SELECT - ( 43 ) * + 86
----
-3698

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - - ( + CASE 10 WHEN + + MAX( + 34 ) THEN NULL ELSE 67 END ) - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2045
SELECT - - ( + CASE 10 WHEN + + MAX ( + 34 ) THEN NULL ELSE 67 END ) - COUNT ( * )
----
66

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

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

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

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL - COUNT ( * ) * + 90 AS col1
----
-90

query II rowsort
SELECT 26, - 20 AS col1
----
26
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - COUNT( ALL + + NULLIF ( 56, + - 87 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COUNT ( ALL + + NULLIF ( 56, + - 87 ) )
----
-1

query I rowsort
SELECT ALL + 85 + 19 * + ( - 17 ) - - + 97 * + 51 AS col1
----
4709

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - 52 * + - ( + COUNT( * ) ) * - 80
----
-4160

skipif mysql # not compatible
query I rowsort label-2051
SELECT - 52 * + - ( + COUNT ( * ) ) * - 80
----
-4160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT DISTINCT CAST( - 1 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT CAST ( - 1 AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - COUNT( 23 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2053
SELECT - COUNT ( 23 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + 22 + MIN( DISTINCT - 97 ) + - 48
----
-123

skipif mysql # not compatible
query I rowsort label-2054
SELECT + 22 + MIN ( DISTINCT - 97 ) + - 48
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT ALL - 77 DIV - 24 - + MIN( DISTINCT + + 77 ) + COUNT( * ) DIV + 81 * - COUNT( * ) * + - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL - 77 / - 24 - + MIN ( DISTINCT + + 77 ) + COUNT ( * ) / + 81 * - COUNT ( * ) * + - COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + NULLIF ( + 56, + COALESCE ( + - 90, 54 * + - 15 ) * + COUNT( * ) * 20 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2056
SELECT + NULLIF ( + 56, + COALESCE ( + - 90, 54 * + - 15 ) * + COUNT ( * ) * 20 ) AS col2
----
56

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

skipif mysql # not compatible
query I rowsort label-2057
SELECT + 86 / COUNT ( * ) col1
----
86

query I rowsort
SELECT DISTINCT + 78 * - 92 AS col2
----
-7176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2059
SELECT ALL + 0 DIV COALESCE ( + CAST( CASE 8 WHEN 24 THEN NULL ELSE - 77 END AS SIGNED ), + 54, - 25 * - - ( - 65 ) + 24 - - 14 ) - CAST( 68 AS SIGNED ) * COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + 0 / COALESCE ( + CAST ( CASE 8 WHEN 24 THEN NULL ELSE - 77 END AS INTEGER ), + 54, - 25 * - - ( - 65 ) + 24 - - 14 ) - CAST ( 68 AS INTEGER ) * COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT - 33 + + 89
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + ( COALESCE ( - 54, - 57, COUNT( * ) * - 88 * - - 37 + - MAX( 67 ) + COUNT( * ) + 46 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-2061
SELECT + ( COALESCE ( - 54, - 57, COUNT ( * ) * - 88 * - - 37 + - MAX ( 67 ) + COUNT ( * ) + 46 ) )
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2062
SELECT - 20 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 20 - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT + 33 + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 33 + COUNT ( * ) AS col2
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + - NULLIF ( - ( 40 ), + - 12 + - 26 ) * 5 + + COUNT( 23 ) * 85
----
285

skipif mysql # not compatible
query I rowsort label-2066
SELECT + - NULLIF ( - ( 40 ), + - 12 + - 26 ) * 5 + + COUNT ( 23 ) * 85
----
285

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

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

query II rowsort
SELECT ALL - + 22 AS col2, - 6 AS col1
----
-22
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT + COUNT( + 15 ) + + 9
----
10

skipif mysql # not compatible
query I rowsort label-2069
SELECT + COUNT ( + 15 ) + + 9
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT 55 * - 71 DIV - COUNT( * )
----
3905

skipif mysql # not compatible
query I rowsort label-2070
SELECT 55 * - 71 / - COUNT ( * )
----
3905

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT - ( MIN( DISTINCT + + 36 ) ) * + COALESCE ( + ( ( - - 94 ) ), + 93 )
----
-3384

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - ( MIN ( DISTINCT + + 36 ) ) * + COALESCE ( + ( ( - - 94 ) ), + 93 )
----
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL COUNT( 99 ) + + 34 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL COUNT ( 99 ) + + 34 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - MAX( - - 53 ) + - 51 + + + 92 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-2074
SELECT - MAX ( - - 53 ) + - 51 + + + 92 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2075
SELECT + 72 * 19 * COUNT( * ) DIV 62
----
22

skipif mysql # not compatible
query I rowsort label-2075
SELECT + 72 * 19 * COUNT ( * ) / 62
----
22

query I rowsort
SELECT 93 + + 19 * + + 71 AS col0
----
1442

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - 46 - - SUM( + 35 ) + - 50
----
-61

skipif mysql # not compatible
query I rowsort label-2077
SELECT - 46 - - SUM ( + 35 ) + - 50
----
-61

query I rowsort
SELECT DISTINCT 51 * + + 11 * + + 58
----
32538

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL + COUNT( * ) + 17 + 84 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + COUNT ( * ) + 17 + 84 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + - 57 + COUNT( * ) + + 40 * 37 AS col1
----
1424

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + - 57 + COUNT ( * ) + + 40 * 37 AS col1
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT DISTINCT 47 + - 3 - - 80 * 18 * + + 50 * + + COUNT( * ) * - - 31
----
2232044

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT 47 + - 3 - - 80 * 18 * + + 50 * + + COUNT ( * ) * - - 31
----
2232044

query I rowsort
SELECT DISTINCT 82 + + 77 + 4
----
163

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT DISTINCT + SUM( DISTINCT + 27 ) / + ( - + MIN( ALL CAST( NULL AS SIGNED ) ) ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT + SUM ( DISTINCT + 27 ) / + ( - + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT 87 * - 12 * - COUNT( * )
----
1044

skipif mysql # not compatible
query I rowsort label-2085
SELECT 87 * - 12 * - COUNT ( * )
----
1044

query I rowsort
SELECT 93 + + - 81 AS col1
----
12

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

skipif mysql # not compatible
query I rowsort label-2087
SELECT 28 / - 90
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT DISTINCT - 54 - + 41 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - 54 - + 41 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 60, 27 + - - 55 + + + 79 AS col0
----
60
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT + 82 * MAX( - 25 ) col1
----
-2050

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + 82 * MAX ( - 25 ) col1
----
-2050

query I rowsort
SELECT DISTINCT + 9 * 33 AS col0
----
297

query I rowsort
SELECT 22 * 51
----
1122

query II rowsort
SELECT ALL 70 AS col2, 9 AS col1
----
70
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT 28 + + NULLIF ( + - SUM( 2 ), + 44 - - 73 )
----
26

skipif mysql # not compatible
query I rowsort label-2094
SELECT 28 + + NULLIF ( + - SUM ( 2 ), + 44 - - 73 )
----
26

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

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

query II rowsort
SELECT + 27, + 94 AS col0
----
27
94

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

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

query II rowsort
SELECT DISTINCT - 79 AS col1, - ( - 80 )
----
-79
80

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

query I rowsort
SELECT + + 93 * 81 + - 79 * + 11 + - + 38
----
6626

query II rowsort
SELECT + - 80 AS col1, 98
----
-80
98

query II rowsort
SELECT DISTINCT - 39 AS col1, 77 AS col2
----
-39
77

query I rowsort
SELECT DISTINCT 93 * + 87 * + 30 AS col0
----
242730

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL + 26 + + 56 + + MIN( + 54 ) + - 32
----
104

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + 26 + + 56 + + MIN ( + 54 ) + - 32
----
104

query I rowsort
SELECT - 81 + - 82
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2106
SELECT ALL - COUNT( * ) * + 34 AS col1, CASE + + 68 WHEN + - CAST( - + COALESCE ( - ( + - 96 ), 53 ) AS SIGNED ) THEN NULL ELSE 96 + + - 42 END DIV - 55 + 41 AS col0
----
-34
41

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL - COUNT ( * ) * + 34 AS col1, CASE + + 68 WHEN + - CAST ( - + COALESCE ( - ( + - 96 ), 53 ) AS INTEGER ) THEN NULL ELSE 96 + + - 42 END / - 55 + 41 AS col0
----
-34
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT DISTINCT - + MIN( 10 ), + 32 AS col0
----
-10
32

skipif mysql # not compatible
query II rowsort label-2107
SELECT DISTINCT - + MIN ( 10 ), + 32 AS col0
----
-10
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL + COUNT( * ) + - 55 col0
----
-54

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + COUNT ( * ) + - 55 col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT - 47 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT - 47 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 37 AS col0, 29 + 5
----
37
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT - 84 * - 48 + + + COUNT( * ) + - 79 + - 95 + - 27 + - CASE + CAST( - 28 AS SIGNED ) WHEN ( + 39 ) + COUNT( * ) THEN 2 * NULLIF ( + COALESCE ( 85, + 53 ), + COUNT( * ) ) WHEN 19 * - 14 THEN NULL END + - NULLIF ( - 23, + COUNT( 22 ) ) * + CASE 95 + 99 WHEN 22 + 55 THEN - 14 WHEN 15 THEN CAST( NULL AS SIGNED ) + + 14 END * ( - 14 / ( + 63 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT - 84 * - 48 + + + COUNT ( * ) + - 79 + - 95 + - 27 + - CASE + CAST ( - 28 AS INTEGER ) WHEN ( + 39 ) + COUNT ( * ) THEN 2 * NULLIF ( + COALESCE ( 85, + 53 ), + COUNT ( * ) ) WHEN 19 * - 14 THEN NULL END + - NULLIF ( - 23, + COUNT ( 22 ) ) * + CASE 95 + 99 WHEN 22 + 55 THEN - 14 WHEN 15 THEN CAST ( NULL AS INTEGER ) + + 14 END * ( - 14 / ( + 63 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT ALL + 63 + COUNT( * ) DIV - - 2 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL + 63 + COUNT ( * ) / - - 2 AS col0
----
63

query I rowsort
SELECT ALL - 5 + - - 6 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + MAX( DISTINCT + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-2114
SELECT + MAX ( DISTINCT + 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2115
SELECT DISTINCT 62 + - + 60 - + 8 + + 29 DIV 58 + 92 * - CAST( + 48 AS SIGNED ) * + 50 col2
----
-220806

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT 62 + - + 60 - + 8 + + 29 / 58 + 92 * - CAST ( + 48 AS INTEGER ) * + 50 col2
----
-220806

query I rowsort
SELECT ( ( - 12 ) ) + - 5 + + + 89 AS col2
----
72

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

skipif mysql # not compatible
query I rowsort label-2117
SELECT CAST ( NULL AS INTEGER ) * 94 AS col1
----
NULL

query I rowsort
SELECT ALL 93 - + + ( + 57 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT 28 + - 17 + - CASE - 43 WHEN 4 * 28 + 94 THEN - 15 + - + CAST( - 84 AS SIGNED ) WHEN 47 THEN - + COUNT( * ) / 46 WHEN + 82 THEN + 56 END + ( COUNT( ALL - 42 ) ) * 75 * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT 28 + - 17 + - CASE - 43 WHEN 4 * 28 + 94 THEN - 15 + - + CAST ( - 84 AS INTEGER ) WHEN 47 THEN - + COUNT ( * ) / 46 WHEN + 82 THEN + 56 END + ( COUNT ( ALL - 42 ) ) * 75 * 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT DISTINCT COUNT( * ) - 52 col2, + MIN( + 17 ) * - NULLIF ( + 54, - + COALESCE ( - COUNT( * ), 1 ) ) + - 47 + + 10
----
-51
-955

skipif mysql # not compatible
query II rowsort label-2120
SELECT DISTINCT COUNT ( * ) - 52 col2, + MIN ( + 17 ) * - NULLIF ( + 54, - + COALESCE ( - COUNT ( * ), 1 ) ) + - 47 + + 10
----
-51
-955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2121
SELECT ALL 87 * + 71, - CAST( - NULLIF ( - SUM( + ( + - 74 ) ), - + 97 + + - 86 ) AS SIGNED ) * + 14 * - COALESCE ( + - COUNT( DISTINCT + 16 ), - 13 * 32 ) + 87 - + COALESCE ( COUNT( * ) + + 61, CAST( 31 AS SIGNED ) + + 47 ) AS col1
----
6177
1061

skipif mysql # not compatible
query II rowsort label-2121
SELECT ALL 87 * + 71, - CAST ( - NULLIF ( - SUM ( + ( + - 74 ) ), - + 97 + + - 86 ) AS INTEGER ) * + 14 * - COALESCE ( + - COUNT ( DISTINCT + 16 ), - 13 * 32 ) + 87 - + COALESCE ( COUNT ( * ) + + 61, CAST ( 31 AS INTEGER ) + + 47 ) AS col1
----
6177
1061

query I rowsort
SELECT ALL 99 * + 37 * - 6
----
-21978

onlyif mysql # aggregate syntax: 
query II rowsort label-2123
SELECT DISTINCT 58 - - 88 AS col1, - 84 * SUM( ALL + 41 ) AS col1
----
146
-3444

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT 58 - - 88 AS col1, - 84 * SUM ( ALL + 41 ) AS col1
----
146
-3444

query I rowsort
SELECT DISTINCT 34 * + 40 * + 21 * - - 47 col1
----
1342320

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT MAX( + + 82 ) - + 64 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT MAX ( + + 82 ) - + 64 AS col1
----
18

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

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

query I rowsort
SELECT 47 * + 96 AS col0
----
4512

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT ALL - 33 DIV - + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - 33 / - + 49 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2129
SELECT - CASE - 22 WHEN + 79 THEN NULL WHEN + ( COALESCE ( CAST( - + COUNT( DISTINCT + + CAST( + ( + 73 ) AS DECIMAL ) ) AS SIGNED ), COUNT( * ) ) ) + + - 55 THEN + 1 + - 77 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT - CASE - 22 WHEN + 79 THEN NULL WHEN + ( COALESCE ( CAST ( - + COUNT ( DISTINCT + + CAST ( + ( + 73 ) AS REAL ) ) AS INTEGER ), COUNT ( * ) ) ) + + - 55 THEN + 1 + - 77 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 3 col0
----
3

query I rowsort
SELECT - + 41 * + - 79 AS col2
----
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL 57 * + - CASE - 92 WHEN - - 69 THEN NULL WHEN + + ( - COUNT( * ) ) THEN 35 * SUM( ALL + 48 ) ELSE NULL END + + + 55 + - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL 57 * + - CASE - 92 WHEN - - 69 THEN NULL WHEN + + ( - COUNT ( * ) ) THEN 35 * SUM ( ALL + 48 ) ELSE NULL END + + + 55 + - 23 AS col0
----
NULL

query I rowsort
SELECT ALL + 19 * 60
----
1140

onlyif mysql # DIV for integer division: 
query I rowsort label-2134
SELECT + 9 + - 38 DIV - - ( + 88 ) * 92 + + + 20 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2134
SELECT + 9 + - 38 / - - ( + 88 ) * 92 + + + 20 AS col0
----
29

query II rowsort
SELECT - 79 * + 0 + + 44 AS col2, - 20 AS col1
----
44
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - - 64 + CASE + 13 WHEN + 70 THEN 8 / 93 * + NULLIF ( - 79, 29 + + 54 + + COUNT( * ) * - 82 * - 11 ) + + COUNT( * ) END * - COUNT( ALL - 22 * 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT - - 64 + CASE + 13 WHEN + 70 THEN 8 / 93 * + NULLIF ( - 79, 29 + + 54 + + COUNT ( * ) * - 82 * - 11 ) + + COUNT ( * ) END * - COUNT ( ALL - 22 * 28 )
----
NULL

query I rowsort
SELECT + COALESCE ( + 71, + + 29 )
----
71

query I rowsort
SELECT - + 84 - - 38 AS col2
----
-46

query I rowsort
SELECT 14 * + - 35 + + - 8 + 61 * + - NULLIF ( - + 27, + 99 + - + 95 ) AS col0
----
1149

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT + COALESCE ( + 31, CASE + + 10 WHEN COUNT( * ) THEN - 56 WHEN - CASE 76 WHEN + 24 * 26 THEN NULL ELSE + - 72 END + 64 * 11 THEN NULL END ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + COALESCE ( + 31, CASE + + 10 WHEN COUNT ( * ) THEN - 56 WHEN - CASE 76 WHEN + 24 * 26 THEN NULL ELSE + - 72 END + 64 * 11 THEN NULL END ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT - + COALESCE ( - 67, + + COUNT( * ) ) + + NULLIF ( - + COUNT( * ), COALESCE ( 89, - 95 ) ) DIV + + 67
----
67

skipif mysql # not compatible
query I rowsort label-2141
SELECT - + COALESCE ( - 67, + + COUNT ( * ) ) + + NULLIF ( - + COUNT ( * ), COALESCE ( 89, - 95 ) ) / + + 67
----
67

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

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

query I rowsort
SELECT + + ( + 69 ) * 98 + + 42
----
6804

onlyif mysql # aggregate syntax: 
query II rowsort label-2144
SELECT + ( + COUNT( * ) ) AS col2, - 17 + - - COUNT( * ) AS col1
----
1
-16

skipif mysql # not compatible
query II rowsort label-2144
SELECT + ( + COUNT ( * ) ) AS col2, - 17 + - - COUNT ( * ) AS col1
----
1
-16

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

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

query I rowsort
SELECT 8 * 72 + - 45
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + 29 * + + NULLIF ( - 98, ( COALESCE ( COUNT( * ), + 29 - 88 + 11 ) ) / COUNT( * ) * 79 - + 75 - + 17 / + 79 + 15 )
----
-2842

skipif mysql # not compatible
query I rowsort label-2147
SELECT + 29 * + + NULLIF ( - 98, ( COALESCE ( COUNT ( * ), + 29 - 88 + 11 ) ) / COUNT ( * ) * 79 - + 75 - + 17 / + 79 + 15 )
----
-2842

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - CASE + + 59 WHEN + 42 THEN NULL WHEN - 50 THEN NULL ELSE - + 54 + + + 31 - 23 * COUNT( * ) - - - 53 * 25 END AS col0
----
1371

skipif mysql # not compatible
query I rowsort label-2150
SELECT - CASE + + 59 WHEN + 42 THEN NULL WHEN - 50 THEN NULL ELSE - + 54 + + + 31 - 23 * COUNT ( * ) - - - 53 * 25 END AS col0
----
1371

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL + 9 * + + CAST( + - 28 AS SIGNED ) col1
----
-252

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL + 9 * + + CAST ( + - 28 AS INTEGER ) col1
----
-252

query I rowsort
SELECT + 69 * 49
----
3381

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

skipif mysql # not compatible
query I rowsort label-2154
SELECT - NULLIF ( COUNT ( DISTINCT 78 ), - COUNT ( * ) ) AS col2
----
-1

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

query I rowsort
SELECT + 39 * - 31
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT + 51 + ( + + MIN( - - 43 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2157
SELECT + 51 + ( + + MIN ( - - 43 ) ) AS col1
----
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT + 92 DIV + 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 92 / + 38 AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-2160
SELECT + 3 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT ALL 9 DIV - ( + + 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL 9 / - ( + + 7 ) AS col0
----
-1

query I rowsort
SELECT - CASE 38 WHEN - - 39 THEN NULL ELSE - 86 - 65 * - 30 END
----
-1864

query I rowsort
SELECT ALL ( - + 53 ) + + + 45
----
-8

query I rowsort
SELECT DISTINCT 44 * + 46 AS col1
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL - + COUNT( * ) + + 91 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - + COUNT ( * ) + + 91 AS col0
----
90

query I rowsort
SELECT + + 54 + + - ( + 68 )
----
-14

query I rowsort
SELECT ALL + 48 * + 39 + ( - 46 ) - 75 * - 1 AS col2
----
1901

query II rowsort
SELECT ALL 92 AS col1, + 21 + 83 AS col0
----
92
104

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT - 34 * ( + 83 ) * COUNT( * ) + - 63 - - - COUNT( * ) + - - 84 * + 99 + 22 * + - CAST( NULL AS SIGNED ) + + 39 * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT - 34 * ( + 83 ) * COUNT ( * ) + - 63 - - - COUNT ( * ) + - - 84 * + 99 + 22 * + - CAST ( NULL AS INTEGER ) + + 39 * 43 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT ALL - 76 DIV + + 81 + 97
----
97

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - 76 / + + 81 + 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2172
SELECT + + 93 * MAX( - 97 ) AS col2, CAST( - 62 AS SIGNED ) AS col0
----
-9021
-62

skipif mysql # not compatible
query II rowsort label-2172
SELECT + + 93 * MAX ( - 97 ) AS col2, CAST ( - 62 AS INTEGER ) AS col0
----
-9021
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2173
SELECT + COALESCE ( + 60, 13, + ( + NULLIF ( + 82, CAST( + COUNT( 47 ) AS DECIMAL ) * + - CAST( 60 AS DECIMAL ) ) ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2173
SELECT + COALESCE ( + 60, 13, + ( + NULLIF ( + 82, CAST ( + COUNT ( 47 ) AS REAL ) * + - CAST ( 60 AS REAL ) ) ) ) AS col1
----
60

query II rowsort
SELECT + 65, 8 - + 20 AS col0
----
65
-12

query I rowsort
SELECT + 38 * - 94 AS col2
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - COUNT( * ) / - CASE - - 93 WHEN + - 83 / + - 68 THEN - ( 78 ) + 39 WHEN + COALESCE ( - 36, - 56 * - - 48 + + 34 + + 46, - COUNT( * ) + COUNT( * ) ) THEN NULL END * + 92 + - 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COUNT ( * ) / - CASE - - 93 WHEN + - 83 / + - 68 THEN - ( 78 ) + 39 WHEN + COALESCE ( - 36, - 56 * - - 48 + + 34 + + 46, - COUNT ( * ) + COUNT ( * ) ) THEN NULL END * + 92 + - 26 col0
----
NULL

query I rowsort
SELECT DISTINCT - 40 * + - 16 + - 16
----
624

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

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

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

query II rowsort
SELECT + - 99 AS col1, ( - 85 ) AS col1
----
-99
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2181
SELECT DISTINCT - 80 * 82 * 34 * + COUNT( * ) * - COUNT( * ) + + + CASE + NULLIF ( COUNT( DISTINCT - 56 ), 77 ) WHEN - 18 THEN NULL WHEN - CASE 84 WHEN - COUNT( * ) DIV 30 + 93 * ( - COUNT( * ) * - COUNT( * ) + - 94 ) THEN NULL WHEN 15 DIV 46 THEN - COUNT( * ) DIV ( - CAST( NULL AS SIGNED ) ) + + 42 * 9 END THEN NULL WHEN + 98 DIV + NULLIF ( COALESCE ( + 38, - 11 DIV 51 ), 71 * 80 - 86 ) THEN COUNT( * ) DIV + 84 ELSE 14 END + + ( - 15 ) * + ( ( 98 ) + - SUM( ALL 14 + - 84 ) )
----
220534

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - 80 * 82 * 34 * + COUNT ( * ) * - COUNT ( * ) + + + CASE + NULLIF ( COUNT ( DISTINCT - 56 ), 77 ) WHEN - 18 THEN NULL WHEN - CASE 84 WHEN - COUNT ( * ) / 30 + 93 * ( - COUNT ( * ) * - COUNT ( * ) + - 94 ) THEN NULL WHEN 15 / 46 THEN - COUNT ( * ) / ( - CAST ( NULL AS INTEGER ) ) + + 42 * 9 END THEN NULL WHEN + 98 / + NULLIF ( COALESCE ( + 38, - 11 / 51 ), 71 * 80 - 86 ) THEN COUNT ( * ) / + 84 ELSE 14 END + + ( - 15 ) * + ( ( 98 ) + - SUM ( ALL 14 + - 84 ) )
----
220534

query I rowsort
SELECT ALL + 46 * - 76 - - 88 AS col0
----
-3408

query I rowsort
SELECT + 50 * - - 9 - 4 - - - ( 50 )
----
396

query I rowsort
SELECT DISTINCT + 1 * 38 - + - COALESCE ( - 17, - + 32 )
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT + NULLIF ( - 53, + - COUNT( * ) + 29 * + 72 )
----
-53

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT + NULLIF ( - 53, + - COUNT ( * ) + 29 * + 72 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - MAX( 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-2187
SELECT - MAX ( 34 )
----
-34

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

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

query II rowsort
SELECT + 16 * 42, 58 AS col2
----
672
58

query I rowsort
SELECT - ( + + 29 ) * - - 78 + - - 23 AS col1
----
-2239

onlyif mysql # aggregate syntax: 
query II rowsort label-2191
SELECT - ( + 7 ), NULLIF ( - - 74, - - 88 - - COALESCE ( MAX( - + 84 ), - 12 ) + + - AVG ( ALL - - 57 ) + COUNT( + 32 ) * - CASE 72 WHEN + 20 THEN 68 * - 80 ELSE NULL END ) AS col2
----
-7
74

skipif mysql # not compatible
query II rowsort label-2191
SELECT - ( + 7 ), NULLIF ( - - 74, - - 88 - - COALESCE ( MAX ( - + 84 ), - 12 ) + + - AVG ( ALL - - 57 ) + COUNT ( + 32 ) * - CASE 72 WHEN + 20 THEN 68 * - 80 ELSE NULL END ) AS col2
----
-7
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT - 4 DIV - 8 * - 64 * - ( + - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-2192
SELECT - 4 / - 8 * - 64 * - ( + - 61 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL - CASE 97 WHEN 94 THEN - + 50 WHEN - + 34 * 21 * - 38 * + 1 / - 84 * 50 * COALESCE ( + CAST( - 6 AS SIGNED ), + 94 / - 47 + + 66, COUNT( * ) ) * ( 83 + COUNT( * ) ) - - 87 THEN NULL ELSE NULL END * - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - CASE 97 WHEN 94 THEN - + 50 WHEN - + 34 * 21 * - 38 * + 1 / - 84 * 50 * COALESCE ( + CAST ( - 6 AS INTEGER ), + 94 / - 47 + + 66, COUNT ( * ) ) * ( 83 + COUNT ( * ) ) - - 87 THEN NULL ELSE NULL END * - 4 AS col1
----
NULL

query I rowsort
SELECT 37 * - + 56
----
-2072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT ALL 92 + - CAST( - 37 AS SIGNED )
----
129

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL 92 + - CAST ( - 37 AS INTEGER )
----
129

query I rowsort
SELECT DISTINCT - 60 * + 40 col1
----
-2400

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT ALL ( 80 ) + - MAX( DISTINCT - 87 ) AS col1, 48
----
167
48

skipif mysql # not compatible
query II rowsort label-2198
SELECT ALL ( 80 ) + - MAX ( DISTINCT - 87 ) AS col1, 48
----
167
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL 17 + + CAST( + - 54 AS SIGNED ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL 17 + + CAST ( + - 54 AS INTEGER ) col0
----
-37

query I rowsort
SELECT 75 - + 17
----
58

query I rowsort
SELECT - 0 * CASE + - 97 WHEN 61 THEN + 11 WHEN - - 16 THEN NULL END + + + 6
----
NULL

query I rowsort
SELECT DISTINCT + - 31 * + 18
----
-558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT ALL - 87 - + + CAST( NULL AS SIGNED ) + 16 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - 87 - + + CAST ( NULL AS INTEGER ) + 16 * 69
----
NULL

query I rowsort
SELECT 44 - + 46
----
-2

query I rowsort
SELECT ALL - 76 * - 75
----
5700

query I rowsort
SELECT 93 + + + 67 * 37 * - + 12
----
-29655

query I rowsort
SELECT ALL - 26 - 83 - + 73 + + 99 * 91
----
8827

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT 24 * - 19, COUNT( * ) * + COALESCE ( + 58, - 88 ) * 44 + + 8 + + + ( - 82 ) * 77 AS col0
----
-456
-3754

skipif mysql # not compatible
query II rowsort label-2208
SELECT 24 * - 19, COUNT ( * ) * + COALESCE ( + 58, - 88 ) * 44 + + 8 + + + ( - 82 ) * 77 AS col0
----
-456
-3754

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - 16 + + SUM( ALL - 74 )
----
-90

skipif mysql # not compatible
query I rowsort label-2209
SELECT - 16 + + SUM ( ALL - 74 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT + 90 * - - SUM( ALL - 29 )
----
-2610

skipif mysql # not compatible
query I rowsort label-2210
SELECT + 90 * - - SUM ( ALL - 29 )
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - SUM( 88 ) - - + 43 col0
----
-45

skipif mysql # not compatible
query I rowsort label-2211
SELECT - SUM ( 88 ) - - + 43 col0
----
-45

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT CAST( NULL AS SIGNED ) + AVG ( ALL - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT CAST ( NULL AS INTEGER ) + AVG ( ALL - 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT 96 AS col2, + SUM( DISTINCT - + 79 ) * + + ( + 52 ) - + 82 + - 67 * 1 * - 85 col2
----
96
1505

skipif mysql # not compatible
query II rowsort label-2215
SELECT 96 AS col2, + SUM ( DISTINCT - + 79 ) * + + ( + 52 ) - + 82 + - 67 * 1 * - 85 col2
----
96
1505

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

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

query I rowsort
SELECT 28 * - 63 AS col1
----
-1764

query I rowsort
SELECT ALL - CASE 76 WHEN - 45 THEN + + 23 + - - ( 39 ) WHEN 37 THEN - 8 ELSE 63 END AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT - CAST( 16 AS SIGNED ) * 22 + - 38 AS col0
----
-390

skipif mysql # not compatible
query I rowsort label-2219
SELECT - CAST ( 16 AS INTEGER ) * 22 + - 38 AS col0
----
-390

query I rowsort
SELECT ALL + 46 * + 80 * 82 AS col1
----
301760

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT NULLIF ( - - 61, 31 + 88 + 10 ) * - 24, + MIN( 74 ) AS col2
----
-1464
74

skipif mysql # not compatible
query II rowsort label-2221
SELECT NULLIF ( - - 61, 31 + 88 + 10 ) * - 24, + MIN ( 74 ) AS col2
----
-1464
74

query II rowsort
SELECT 34, 95 AS col1
----
34
95

query I rowsort
SELECT DISTINCT + NULLIF ( 6, 22 ) + + + ( 33 ) AS col1
----
39

query I rowsort
SELECT 31 * + + 61 * + 17
----
32147

query I rowsort
SELECT ALL + 1 + - + ( + 79 ) AS col1
----
-78

query I rowsort
SELECT ALL - 47 + - + 89 AS col0
----
-136

query I rowsort
SELECT 56 + + 81 AS col1
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT 62 DIV - 15
----
-4

skipif mysql # not compatible
query I rowsort label-2228
SELECT 62 / - 15
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT ALL + NULLIF ( - - 14, 37 * + COALESCE ( - CAST( + 55 AS SIGNED ), - 82 ) ) + + - ( + 99 ) + 56
----
-29

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + NULLIF ( - - 14, 37 * + COALESCE ( - CAST ( + 55 AS INTEGER ), - 82 ) ) + + - ( + 99 ) + 56
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT 59 * + - 3 + COUNT( * ) AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-2230
SELECT 59 * + - 3 + COUNT ( * ) AS col2
----
-176

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT + 98 + + - 67 - - NULLIF ( - CASE - 92 WHEN - NULLIF ( CAST( - + 15 AS SIGNED ), - ( - 61 ) ) THEN - - ( 31 ) + - 61 * - + 83 END, - + 71 + + 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT + 98 + + - 67 - - NULLIF ( - CASE - 92 WHEN - NULLIF ( CAST ( - + 15 AS INTEGER ), - ( - 61 ) ) THEN - - ( 31 ) + - 61 * - + 83 END, - + 71 + + 53 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL - CASE - - 89 WHEN - + 79 * MAX( DISTINCT ( + + 38 ) ) + 30 * - 7 + + - MIN( + 63 ) THEN + 37 WHEN 77 THEN NULL WHEN - 87 * ( + + 87 ) THEN + COUNT( * ) END - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL - CASE - - 89 WHEN - + 79 * MAX ( DISTINCT ( + + 38 ) ) + 30 * - 7 + + - MIN ( + 63 ) THEN + 37 WHEN 77 THEN NULL WHEN - 87 * ( + + 87 ) THEN + COUNT ( * ) END - 51
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) - - + COUNT ( * ) * - COALESCE ( 60, + - 61 + 94 )
----
NULL

query I rowsort
SELECT DISTINCT - 80 * + ( + + 45 ) + - 66 col1
----
-3666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL + COUNT( * ) - 97 + + CAST( - 8 AS SIGNED ) * + 0 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + COUNT ( * ) - 97 + + CAST ( - 8 AS INTEGER ) * + 0 AS col1
----
-96

query I rowsort
SELECT 59 + - + 61 AS col2
----
-2

query I rowsort
SELECT DISTINCT + NULLIF ( - 38, - 44 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL COALESCE ( - 88, - 87 * COUNT( + 24 ) ) * + 97
----
-8536

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL COALESCE ( - 88, - 87 * COUNT ( + 24 ) ) * + 97
----
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + MAX( + - 46 ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-2241
SELECT + MAX ( + - 46 ) col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2242
SELECT DISTINCT - 70 AS col2, CAST( NULL AS SIGNED ) * - SUM( ALL - 60 ) * - ( + - COUNT( * ) ) * - 20 + - 88 AS col2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-2242
SELECT DISTINCT - 70 AS col2, CAST ( NULL AS INTEGER ) * - SUM ( ALL - 60 ) * - ( + - COUNT ( * ) ) * - 20 + - 88 AS col2
----
-70
NULL

query I rowsort
SELECT - 44 * + 59 - 21 AS col1
----
-2617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT ALL CAST( NULL AS SIGNED ) / 27 / - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL CAST ( NULL AS INTEGER ) / 27 / - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2245
SELECT 69 * - 88 * + 0 DIV 25 + 95 - - ( - SUM( ALL + - 64 ) ) AS col2
----
159

skipif mysql # not compatible
query I rowsort label-2245
SELECT 69 * - 88 * + 0 / 25 + 95 - - ( - SUM ( ALL + - 64 ) ) AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT MIN( 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2246
SELECT MIN ( 79 ) AS col0
----
79

query I rowsort
SELECT + 4 * ( - - 77 ) col1
----
308

query I rowsort
SELECT + 63 * + 10
----
630

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT ALL 86 DIV 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL 86 / 57 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT ALL + 15 + - 92 DIV - + 13
----
22

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + 15 + - 92 / - + 13
----
22

query I rowsort
SELECT DISTINCT ( - 68 ) + - 52 + + 44
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2252
SELECT COUNT( * ) * COUNT( * ) + + CAST( 70 AS SIGNED ) + - + 9 * 82 DIV 52 * + 70
----
-909

skipif mysql # not compatible
query I rowsort label-2252
SELECT COUNT ( * ) * COUNT ( * ) + + CAST ( 70 AS INTEGER ) + - + 9 * 82 / 52 * + 70
----
-909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL 56 + + + 66 * - CAST( NULL AS SIGNED ) + - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL 56 + + + 66 * - CAST ( NULL AS INTEGER ) + - - 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL 15 + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL 15 + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + COUNT( * ) * + 26 * - + 73
----
-1898

skipif mysql # not compatible
query I rowsort label-2255
SELECT + COUNT ( * ) * + 26 * - + 73
----
-1898

query I rowsort
SELECT DISTINCT + 53 - - 36 * - 67 col0
----
-2359

query I rowsort
SELECT + 73 + + 18 + 70
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT - - 42 * CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2258
SELECT - - 42 * CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
-42

query I rowsort
SELECT ALL + + 6 - - 59 AS col2
----
65

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

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

query II rowsort
SELECT + 39 AS col0, 95 + + + 86
----
39
181

query I rowsort
SELECT - + 81 * + 38 * 66 AS col0
----
-203148

query II rowsort
SELECT - 40 AS col1, + 70
----
-40
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2264
SELECT + + CASE 0 WHEN + + 21 THEN CAST( NULL AS SIGNED ) + + 68 END - 1, + 46 DIV MAX( DISTINCT - 5 ) DIV + + 77 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2264
SELECT + + CASE 0 WHEN + + 21 THEN CAST ( NULL AS INTEGER ) + + 68 END - 1, + 46 / MAX ( DISTINCT - 5 ) / + + 77 AS col2
----
NULL
0

query I rowsort
SELECT - ( - NULLIF ( + + 41, - - 40 ) ) * 48
----
1968

query I rowsort
SELECT DISTINCT - 93 * 89 AS col1
----
-8277

query I rowsort
SELECT ALL + - 51 * + 29 AS col1
----
-1479

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT ALL - - CASE - + ( + ( ( 39 ) ) ) WHEN + - SUM( - 93 ) THEN + ( 38 ) ELSE + - CASE - 50 WHEN - CASE - COALESCE ( - 67, + 53, - 82 ) WHEN 13 THEN NULL WHEN - ( CAST( 41 AS SIGNED ) ) * 20 + 79 THEN ( 94 ) * + AVG ( - 67 ) - + COUNT( * ) * 70 END + - COALESCE ( - COUNT( * ), 13, ( + 97 ) ) THEN 40 * - 71 END / + 9 END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - - CASE - + ( + ( ( 39 ) ) ) WHEN + - SUM ( - 93 ) THEN + ( 38 ) ELSE + - CASE - 50 WHEN - CASE - COALESCE ( - 67, + 53, - 82 ) WHEN 13 THEN NULL WHEN - ( CAST ( 41 AS INTEGER ) ) * 20 + 79 THEN ( 94 ) * + AVG ( - 67 ) - + COUNT ( * ) * 70 END + - COALESCE ( - COUNT ( * ), 13, ( + 97 ) ) THEN 40 * - 71 END / + 9 END * 76
----
NULL

query I rowsort
SELECT - - 54 * - - 96
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT - + COUNT( * ) * - 38 + - 6 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - + COUNT ( * ) * - 38 + - 6 AS col1
----
32

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

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + + ( - 72 ) * + COUNT ( * ) AS col0
----
-72

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

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

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

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

query I rowsort
SELECT + NULLIF ( - + 57, + 37 ) AS col2
----
-57

query I rowsort
SELECT ALL + 9 * - 3 * 64 + - 27
----
-1755

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT 19 DIV + - 95 DIV 91 * MAX( ALL - + 88 ) + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2277
SELECT 19 / + - 95 / 91 * MAX ( ALL - + 88 ) + 46 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2278
SELECT ALL - 32 * - - 80 + - + COALESCE ( + COUNT( * ), 52 DIV COUNT( * ) + 64, CASE + - 19 WHEN - - CASE 10 WHEN - 84 THEN NULL WHEN - + CAST( 75 AS SIGNED ) * CAST( - 56 AS SIGNED ) * + + NULLIF ( CAST( - CAST( + 53 AS SIGNED ) AS DECIMAL ), + AVG ( + 13 ) * - 55 ) + 66 THEN + 61 * - 88 END - - 72 THEN - 22 WHEN 62 THEN + 33 END + 92 DIV - ( 82 ), + COALESCE ( + SUM( ALL - 61 ), 29 DIV ( 49 ) ) + 18 )
----
-2561

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - 32 * - - 80 + - + COALESCE ( + COUNT ( * ), 52 / COUNT ( * ) + 64, CASE + - 19 WHEN - - CASE 10 WHEN - 84 THEN NULL WHEN - + CAST ( 75 AS INTEGER ) * CAST ( - 56 AS INTEGER ) * + + NULLIF ( CAST ( - CAST ( + 53 AS INTEGER ) AS REAL ), + AVG ( + 13 ) * - 55 ) + 66 THEN + 61 * - 88 END - - 72 THEN - 22 WHEN 62 THEN + 33 END + 92 / - ( 82 ), + COALESCE ( + SUM ( ALL - 61 ), 29 / ( 49 ) ) + 18 )
----
-2561

query I rowsort
SELECT DISTINCT + 99 * ( + 97 ) + - - 21
----
9624

query I rowsort
SELECT 20 * - 24 * + 75 + 42
----
-35958

query I rowsort
SELECT - 21 * ( - 31 ) AS col1
----
651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT CASE CAST( NULL AS SIGNED ) WHEN - - 43 THEN NULL ELSE - 7 END
----
-7

skipif mysql # not compatible
query I rowsort label-2282
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - - 43 THEN NULL ELSE - 7 END
----
-7

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

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

query I rowsort
SELECT + 79 * + 12
----
948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT DISTINCT + 38 DIV + MIN( ALL 95 )
----
0

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT + 38 / + MIN ( ALL 95 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT DISTINCT ( + 26 ) DIV + - 16 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT ( + 26 ) / + - 16 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT + 94 DIV 10
----
9

skipif mysql # not compatible
query I rowsort label-2287
SELECT + 94 / 10
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2288
SELECT 94 * - ( 35 ) + CAST( + 66 AS SIGNED ) col0, 82
----
-3224
82

skipif mysql # not compatible
query II rowsort label-2288
SELECT 94 * - ( 35 ) + CAST ( + 66 AS INTEGER ) col0, 82
----
-3224
82

query I rowsort
SELECT DISTINCT - COALESCE ( - 34, - 71 + 31 )
----
34

query I rowsort
SELECT - NULLIF ( + 33, - 26 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT + CASE + + NULLIF ( + + 52, COALESCE ( - 29, - 8 * - + 57 / + + 26 * - + 91 - - - 53 - + CASE + 45 WHEN + 68 * + 74 THEN NULL ELSE 53 END + + 83 * MIN( DISTINCT - 41 ) - - 51, + 22 ) ) WHEN 3 THEN 16 WHEN 12 THEN 94 * 94 WHEN - 1 * 92 THEN 70 * 62 ELSE NULL END + CASE - 34 + + 34 WHEN 73 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT + CASE + + NULLIF ( + + 52, COALESCE ( - 29, - 8 * - + 57 / + + 26 * - + 91 - - - 53 - + CASE + 45 WHEN + 68 * + 74 THEN NULL ELSE 53 END + + 83 * MIN ( DISTINCT - 41 ) - - 51, + 22 ) ) WHEN 3 THEN 16 WHEN 12 THEN 94 * 94 WHEN - 1 * 92 THEN 70 * 62 ELSE NULL END + CASE - 34 + + 34 WHEN 73 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 83 + + 49 AS col0
----
132

query I rowsort
SELECT - 52 - + 53 * - 32
----
1644

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL - MIN( ALL - ( + - 41 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - MIN ( ALL - ( + - 41 ) ) AS col1
----
-41

query I rowsort
SELECT DISTINCT + ( - - ( 10 ) ) * 18 * 21 AS col2
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL + MAX( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + MAX ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT + 10 * 31
----
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL 79 + + + 36 + - 38 + - 77 * - - 29 * + 80 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL 79 + + + 36 + - 38 + - 77 * - - 29 * + 80 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + - 22 * - - 35 * 0 + + 50 * 70 * 5 - + - 20 * + + 88 * + 91 * + - 76 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + - 22 * - - 35 * 0 + + 50 * 70 * 5 - + - 20 * + + 88 * + 91 * + - 76 * 35
----
NULL

query II rowsort
SELECT ALL + - 24 + + + 92, 16 col1
----
68
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT - + 43 + - - 17, 52 - COUNT( * ) AS col2
----
-26
51

skipif mysql # not compatible
query II rowsort label-2301
SELECT - + 43 + - - 17, 52 - COUNT ( * ) AS col2
----
-26
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - 74 * + 64 + COUNT( * ) AS col2
----
-4735

skipif mysql # not compatible
query I rowsort label-2303
SELECT - 74 * + 64 + COUNT ( * ) AS col2
----
-4735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT ALL - NULLIF ( + 12, 69 + - SUM( 77 ) - + + 91 * - 35 ) / - 97 + - 81 - + - 98 * + + 7 + 65 - + 68 + - CASE + 43 WHEN + 26 * 31 - - 91 THEN COUNT( * ) WHEN MIN( DISTINCT 7 ) THEN - 61 / - MIN( DISTINCT - 14 ) ELSE 36 END + CAST( NULL AS SIGNED ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - NULLIF ( + 12, 69 + - SUM ( 77 ) - + + 91 * - 35 ) / - 97 + - 81 - + - 98 * + + 7 + 65 - + 68 + - CASE + 43 WHEN + 26 * 31 - - 91 THEN COUNT ( * ) WHEN MIN ( DISTINCT 7 ) THEN - 61 / - MIN ( DISTINCT - 14 ) ELSE 36 END + CAST ( NULL AS INTEGER ) * 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2305
SELECT ALL - ( - COUNT( * ) ) + - 83 / - 27 - - + 45 - 77 * - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) + 9 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2305
SELECT ALL - ( - COUNT ( * ) ) + - 83 / - 27 - - + 45 - 77 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) + 9 AS col1
----
NULL
NULL

query I rowsort
SELECT 21 * + - 63
----
-1323

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT 11 * 27 DIV 26 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT 11 * 27 / 26 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT ALL + ( - - 25 ) * - + CAST( - 10 AS SIGNED )
----
250

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + ( - - 25 ) * - + CAST ( - 10 AS INTEGER )
----
250

query I rowsort
SELECT DISTINCT - 33 + - - 12 + + 97 + 52 col1
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT ALL + 42 DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + 42 / - 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL 28 + - - 88 + - 81 * - COUNT( * )
----
197

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL 28 + - - 88 + - 81 * - COUNT ( * )
----
197

query I rowsort
SELECT 56 * 77 * + + 41 AS col1
----
176792

query II rowsort
SELECT DISTINCT - 4 AS col1, - 60 AS col2
----
-4
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2314
SELECT ALL - NULLIF ( - 10, + ( MAX( + ( 9 ) ) ) ) AS col2, CAST( - - 10 AS SIGNED )
----
10
10

skipif mysql # not compatible
query II rowsort label-2314
SELECT ALL - NULLIF ( - 10, + ( MAX ( + ( 9 ) ) ) ) AS col2, CAST ( - - 10 AS INTEGER )
----
10
10

query I rowsort
SELECT 82 * + 85 AS col1
----
6970

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

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

query II rowsort
SELECT ALL - 27 AS col1, 61 - + - 71 + 10 * 17
----
-27
302

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL - CASE 12 WHEN 59 THEN + + SUM( DISTINCT + - 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - CASE 12 WHEN 59 THEN + + SUM ( DISTINCT + - 69 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT 72 * - 44 * - COUNT( * )
----
3168

skipif mysql # not compatible
query I rowsort label-2319
SELECT 72 * - 44 * - COUNT ( * )
----
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT ALL - 9 * - NULLIF ( + 66, ( - COUNT( * ) ) ) / CAST( NULL AS SIGNED ) + 68 / - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - 9 * - NULLIF ( + 66, ( - COUNT ( * ) ) ) / CAST ( NULL AS INTEGER ) + 68 / - 79 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2321
SELECT DISTINCT - + COUNT( * ) - - 79 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - + COUNT ( * ) - - 79 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 65 + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-2322
SELECT 65 + COUNT ( * ) col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2323
SELECT MAX( DISTINCT + + 40 ) * 14 AS col1, 80 + 53
----
560
133

skipif mysql # not compatible
query II rowsort label-2323
SELECT MAX ( DISTINCT + + 40 ) * 14 AS col1, 80 + 53
----
560
133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - + MIN( 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2325
SELECT - + MIN ( 77 ) col0
----
-77

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2328
SELECT DISTINCT + 76 DIV 54 - 95, 86 AS col2
----
-94
86

skipif mysql # not compatible
query II rowsort label-2328
SELECT DISTINCT + 76 / 54 - 95, 86 AS col2
----
-94
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2329
SELECT DISTINCT COUNT( * ) AS col0, 68 * + - 28 * 66 * COALESCE ( - 65, - 49 ) DIV - 42
----
1
-194480

skipif mysql # not compatible
query II rowsort label-2329
SELECT DISTINCT COUNT ( * ) AS col0, 68 * + - 28 * 66 * COALESCE ( - 65, - 49 ) / - 42
----
1
-194480

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL - COUNT( * ) + + 74 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL - COUNT ( * ) + + 74 AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT - ( - - 80 ) DIV 94 * 50
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT - ( - - 80 ) / 94 * 50
----
0

query I rowsort
SELECT ALL + 32 + ( + 12 ) AS col0
----
44

query I rowsort
SELECT DISTINCT 68 + 75 AS col1
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT ALL - 52 + + 28 + - 64 + + NULLIF ( 83, + + AVG ( DISTINCT - 65 ) ) - 8 * 73 * 3 DIV 39 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - 52 + + 28 + - 64 + + NULLIF ( 83, + + AVG ( DISTINCT - 65 ) ) - 8 * 73 * 3 / 39 AS col0
----
-49

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

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

query I rowsort
SELECT ALL 86 + + 72 AS col1
----
158

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2337
SELECT - CASE + 91 WHEN + 74 THEN NULL ELSE - + COUNT( + - CAST( NULL AS DECIMAL ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT - CASE + 91 WHEN + 74 THEN NULL ELSE - + COUNT ( + - CAST ( NULL AS REAL ) ) END
----
0

query I rowsort
SELECT 93 - - 21 * + 90
----
1983

query I rowsort
SELECT ALL ( + 39 ) + + 7
----
46

query I rowsort
SELECT 12 - + 11 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ( + 71 ) + - CASE WHEN 62 NOT BETWEEN - 37 * 59 + - CASE AVG ( - 79 ) WHEN + COUNT( * ) + 51 THEN NULLIF ( - - 13, 82 * - 20 + ( + 59 ) * - COUNT( * ) * 50 + COUNT( DISTINCT - 85 ) - + 41 / 4 ) + 32 END * - CASE - 97 WHEN 8 THEN + 68 WHEN - 75 * - 47 THEN 5 ELSE - 61 END AND ( NULL ) THEN 70 ELSE + MAX( 58 ) END * COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2341
SELECT ( + 71 ) + - CASE WHEN 62 NOT BETWEEN - 37 * 59 + - CASE AVG ( - 79 ) WHEN + COUNT ( * ) + 51 THEN NULLIF ( - - 13, 82 * - 20 + ( + 59 ) * - COUNT ( * ) * 50 + COUNT ( DISTINCT - 85 ) - + 41 / 4 ) + 32 END * - CASE - 97 WHEN 8 THEN + 68 WHEN - 75 * - 47 THEN 5 ELSE - 61 END AND ( NULL ) THEN 70 ELSE + MAX ( 58 ) END * COUNT ( * ) AS col0
----
13

query I rowsort
SELECT DISTINCT 52 * 90
----
4680

query I rowsort
SELECT ALL 70 + + - 6
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT COUNT( * ) * - 36, 32 AS col1
----
-36
32

skipif mysql # not compatible
query II rowsort label-2344
SELECT COUNT ( * ) * - 36, 32 AS col1
----
-36
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT COUNT( * ) - - + ( + 90 ) - + 26 + 84 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT COUNT ( * ) - - + ( + 90 ) - + 26 + 84 AS col0
----
149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - 56 * - COALESCE ( - + ( - COUNT( * ) ), + 20 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - 56 * - COALESCE ( - + ( - COUNT ( * ) ), + 20 ) col1
----
56

query I rowsort
SELECT 20 * - - 80 - - 41 AS col0
----
1641

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL COALESCE ( - 77, - COUNT( * ) * - 45 ) - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL COALESCE ( - 77, - COUNT ( * ) * - 45 ) - + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT COUNT( * ) * + ( - 87 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-2350
SELECT COUNT ( * ) * + ( - 87 ) col1
----
-87

query I rowsort
SELECT 82 * 66 * - 64 col0
----
-346368

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT MAX( DISTINCT - 97 ) * 22 * + 56 + + COUNT( * ) + + 11
----
-119492

skipif mysql # not compatible
query I rowsort label-2352
SELECT MAX ( DISTINCT - 97 ) * 22 * + 56 + + COUNT ( * ) + + 11
----
-119492

onlyif mysql # DIV for integer division: 
query II rowsort label-2353
SELECT DISTINCT - NULLIF ( + - 99, + + AVG ( DISTINCT 11 ) ), 35 DIV 45 DIV - 27 * + 17 * - - ( + - 66 ) * + 59 AS col1
----
99
0

skipif mysql # not compatible
query II rowsort label-2353
SELECT DISTINCT - NULLIF ( + - 99, + + AVG ( DISTINCT 11 ) ), 35 / 45 / - 27 * + 17 * - - ( + - 66 ) * + 59 AS col1
----
99
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2354
SELECT ALL 56 * - 73 col0, + 80 - - - 60 DIV ( + 99 ) DIV - 81 + - - 46
----
-4088
126

skipif mysql # not compatible
query II rowsort label-2354
SELECT ALL 56 * - 73 col0, + 80 - - - 60 / ( + 99 ) / - 81 + - - 46
----
-4088
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT 72 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-2355
SELECT 72 / + 88
----
0

query I rowsort
SELECT ALL - 85 * - ( + 30 )
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + COUNT( 28 ) + 3
----
4

skipif mysql # not compatible
query I rowsort label-2357
SELECT + COUNT ( 28 ) + 3
----
4

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

skipif mysql # not compatible
query I rowsort label-2358
SELECT - COUNT ( * ) / - + 34 col2
----
0

query I rowsort
SELECT - 98 * + 9
----
-882

query I rowsort
SELECT 59 + 28 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL - + NULLIF ( + - 68, - 74 + 43 ) * + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - + NULLIF ( + - 68, - 74 + 43 ) * + COUNT ( * ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL - - 28 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - - 28 + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 56 + - 72 AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT 82 - 96 + 48 + + 76 + + 97 * 87 * + - COALESCE ( - 79, + 43 DIV - 39, - + 14 ) * + 42 AS col2
----
28000712

skipif mysql # not compatible
query I rowsort label-2364
SELECT 82 - 96 + 48 + + 76 + + 97 * 87 * + - COALESCE ( - 79, + 43 / - 39, - + 14 ) * + 42 AS col2
----
28000712

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2366
SELECT ALL - - CAST( NULL AS DECIMAL ) + - COALESCE ( ( + 7 ), - 19 * + 1 - - 57 + - 20 * ( - + 61 ) * + 38 / - 70 * - CASE + - 74 WHEN AVG ( ALL 46 ) THEN - 46 WHEN - 27 THEN - ( + 66 ) + 36 / 31 END, - CASE + 19 WHEN 35 THEN NULL WHEN COALESCE ( + 43, 59, AVG ( 74 ), 53 * - COUNT( * ) ) THEN NULL ELSE 81 END - + 88, - 40 + + 33 * - NULLIF ( 3 / 78, + 39 + - 47 ) ) * ( 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - - CAST ( NULL AS REAL ) + - COALESCE ( ( + 7 ), - 19 * + 1 - - 57 + - 20 * ( - + 61 ) * + 38 / - 70 * - CASE + - 74 WHEN AVG ( ALL 46 ) THEN - 46 WHEN - 27 THEN - ( + 66 ) + 36 / 31 END, - CASE + 19 WHEN 35 THEN NULL WHEN COALESCE ( + 43, 59, AVG ( 74 ), 53 * - COUNT ( * ) ) THEN NULL ELSE 81 END - + 88, - 40 + + 33 * - NULLIF ( 3 / 78, + 39 + - 47 ) ) * ( 37 )
----
NULL

query I rowsort
SELECT NULLIF ( + 91, + 1 ) AS col2
----
91

query I rowsort
SELECT ALL 97 + - 65 + - 97
----
-65

query II rowsort
SELECT - - 15 + - 62 AS col0, ( 51 )
----
-47
51

query II rowsort
SELECT + - 9 - + + 82 AS col0, 58
----
-91
58

query I rowsort
SELECT - + COALESCE ( + 97, 37 * - 53 + 93, - - 71 ) + + 3
----
-94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2373
SELECT ALL CAST( + - MAX( 34 ) AS DECIMAL ) / ( + - CASE + 75 WHEN - + 65 + 58 * - ( + 85 ) + - - 65 * - 37 THEN NULL ELSE - CAST( NULL AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL CAST ( + - MAX ( 34 ) AS REAL ) / ( + - CASE + 75 WHEN - + 65 + 58 * - ( + 85 ) + - - 65 * - 37 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END )
----
NULL

query I rowsort
SELECT DISTINCT - 33 - + + 80
----
-113

query I rowsort
SELECT DISTINCT 93 * 37 AS col0
----
3441

query I rowsort
SELECT DISTINCT 11 - - 80 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + COALESCE ( - + COUNT( 51 ), 58 ) * + + 58
----
-58

skipif mysql # not compatible
query I rowsort label-2377
SELECT + COALESCE ( - + COUNT ( 51 ), 58 ) * + + 58
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2378
SELECT ALL CAST( NULL AS DECIMAL ) / - + 80 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL CAST ( NULL AS REAL ) / - + 80 * + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + COALESCE ( - 39, + 45 * + + 29 * - + 51 * 73 * COUNT( * ) ) + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2379
SELECT + COALESCE ( - 39, + 45 * + + 29 * - + 51 * 73 * COUNT ( * ) ) + - COUNT ( * )
----
-40

query I rowsort
SELECT - 46 * + 69 col0
----
-3174

query I rowsort
SELECT ALL 16 * - + 48
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + 22 * - - MAX( 20 )
----
440

skipif mysql # not compatible
query I rowsort label-2382
SELECT + 22 * - - MAX ( 20 )
----
440

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

skipif mysql # not compatible
query II rowsort label-2383
SELECT + COUNT ( * ), COUNT ( - 42 ) col0
----
1
1

query I rowsort
SELECT DISTINCT ( - - 73 ) * - 97 col2
----
-7081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT 15 * - ( COALESCE ( + + COUNT( * ), - + 2 DIV + ( 5 ) DIV - 77 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT 15 * - ( COALESCE ( + + COUNT ( * ), - + 2 / + ( 5 ) / - 77 ) ) AS col1
----
-15

query II rowsort
SELECT DISTINCT + 20, 99 col0
----
20
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT CASE - - 39 WHEN - COUNT( * ) THEN NULL WHEN - 23 / + ( + NULLIF ( - 81, - 99 + + NULLIF ( - + ( - 21 ), + 29 ) * 87 * - 48 * 40 + + + 43 + + + 52 ) ) THEN + + 46 WHEN - + 5 * + COUNT( * ) / CAST( NULL AS SIGNED ) THEN - COUNT( * ) + + 42 ELSE CASE + 87 WHEN 63 THEN + 58 + + ( + COUNT( * ) ) * 14 ELSE NULL END * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT CASE - - 39 WHEN - COUNT ( * ) THEN NULL WHEN - 23 / + ( + NULLIF ( - 81, - 99 + + NULLIF ( - + ( - 21 ), + 29 ) * 87 * - 48 * 40 + + + 43 + + + 52 ) ) THEN + + 46 WHEN - + 5 * + COUNT ( * ) / CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + + 42 ELSE CASE + 87 WHEN 63 THEN + 58 + + ( + COUNT ( * ) ) * 14 ELSE NULL END * - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2388
SELECT - 76 DIV + 33 - + + 78 + 59 * - 31 AS col2, + 67 AS col2
----
-1909
67

skipif mysql # not compatible
query II rowsort label-2388
SELECT - 76 / + 33 - + + 78 + 59 * - 31 AS col2, + 67 AS col2
----
-1909
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - 75 * + + 42 + + COUNT( * )
----
-3149

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - 75 * + + 42 + + COUNT ( * )
----
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT ALL 43 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL 43 / 27
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT + COUNT( * ) AS col2, 95 + + ( + 46 ) * - COUNT( * ) * 34 AS col1
----
1
-1469

skipif mysql # not compatible
query II rowsort label-2391
SELECT + COUNT ( * ) AS col2, 95 + + ( + 46 ) * - COUNT ( * ) * 34 AS col1
----
1
-1469

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + 9 * + 99 - + + COUNT( * ) + - COUNT( * ) AS col0
----
889

skipif mysql # not compatible
query I rowsort label-2392
SELECT + 9 * + 99 - + + COUNT ( * ) + - COUNT ( * ) AS col0
----
889

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

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

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

query I rowsort
SELECT ALL + 76 * 3 * - - 7 * + - ( - - 60 ) + + + 22 AS col0
----
-95738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2396
SELECT + COALESCE ( 86, + 38 * + 20 + COALESCE ( 65, + COUNT( - 2 ) ) - - 17 - SUM( ALL 47 ) + - 72 + - - 95 + 50 * - + 95 + - + MAX( + - 20 ) DIV 32 + - 57 + - 86 - 3 ) col1
----
86

skipif mysql # not compatible
query I rowsort label-2396
SELECT + COALESCE ( 86, + 38 * + 20 + COALESCE ( 65, + COUNT ( - 2 ) ) - - 17 - SUM ( ALL 47 ) + - 72 + - - 95 + 50 * - + 95 + - + MAX ( + - 20 ) / 32 + - 57 + - 86 - 3 ) col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL 88 * + NULLIF ( - 28, - + 26 * + 35 * 96 ) + + ( - + MIN( ALL 27 ) )
----
-2491

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL 88 * + NULLIF ( - 28, - + 26 * + 35 * 96 ) + + ( - + MIN ( ALL 27 ) )
----
-2491

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT + + ( + + 40 ) * + 30 - - 66 + COUNT( ALL 60 )
----
1267

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + + ( + + 40 ) * + 30 - - 66 + COUNT ( ALL 60 )
----
1267

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT COUNT( * ) * - 77 + + - 50 AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT COUNT ( * ) * - 77 + + - 50 AS col2
----
-127

query I rowsort
SELECT ALL - 38 * + + 77 + - + 22
----
-2948

query I rowsort
SELECT - 76 * + NULLIF ( 65, + + 97 * - 68 - - 43 ) col0
----
-4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT DISTINCT + + CASE - CASE 66 WHEN 99 THEN - - 8 + - 77 + - 62 ELSE NULL END WHEN ( + 24 ) + - - 82 THEN - + MIN( 31 ) WHEN - 58 * - + 56 + - 75 THEN NULL ELSE NULL END * - 28 * - CAST( 3 AS SIGNED ) / + COUNT( * ) + + 94 + 71 * COUNT( - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + + CASE - CASE 66 WHEN 99 THEN - - 8 + - 77 + - 62 ELSE NULL END WHEN ( + 24 ) + - - 82 THEN - + MIN ( 31 ) WHEN - 58 * - + 56 + - 75 THEN NULL ELSE NULL END * - 28 * - CAST ( 3 AS INTEGER ) / + COUNT ( * ) + + 94 + 71 * COUNT ( - 58 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2403
SELECT ALL - - 22 * - 5 + + 10 + + + 18 + SUM( - CAST( - 80 AS SIGNED ) ) DIV - 95 * + 45 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL - - 22 * - 5 + + 10 + + + 18 + SUM ( - CAST ( - 80 AS INTEGER ) ) / - 95 * + 45 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL + + 55 * + 84 + - - CASE - 46 WHEN - ( + + 82 ) THEN NULL WHEN - NULLIF ( - + 20, COUNT( * ) * - 23 ) + + 6 THEN NULL ELSE - 98 END + - 42 AS col0
----
4480

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + + 55 * + 84 + - - CASE - 46 WHEN - ( + + 82 ) THEN NULL WHEN - NULLIF ( - + 20, COUNT ( * ) * - 23 ) + + 6 THEN NULL ELSE - 98 END + - 42 AS col0
----
4480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2405
SELECT DISTINCT + - CAST( + + 40 AS SIGNED ) + - + 86 DIV + 13
----
-46

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + - CAST ( + + 40 AS INTEGER ) + - + 86 / + 13
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT - + COUNT( * ) * ( - + 88 ) / + 22 - 63 - - 19 * - 10 - + + 99 * - - 33 + + + COALESCE ( - 74, COUNT( + 76 ), 98 ) + + 92 * 17 * + - CAST( NULL AS SIGNED ) * + 93 + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT - + COUNT ( * ) * ( - + 88 ) / + 22 - 63 - - 19 * - 10 - + + 99 * - - 33 + + + COALESCE ( - 74, COUNT ( + 76 ), 98 ) + + 92 * 17 * + - CAST ( NULL AS INTEGER ) * + 93 + 0 AS col2
----
NULL

query I rowsort
SELECT ALL - 83 - - - 90
----
-173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2408
SELECT - 27, + 70 DIV COUNT( 2 ) - 78 AS col1
----
-27
-8

skipif mysql # not compatible
query II rowsort label-2408
SELECT - 27, + 70 / COUNT ( 2 ) - 78 AS col1
----
-27
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2409
SELECT DISTINCT COALESCE ( + + 1, + 92 DIV - 43 * - 7 * - CAST( + - 1 AS SIGNED ) DIV + CAST( 81 AS SIGNED ) DIV - 32, + 11 ), - 19 AS col1
----
1
-19

skipif mysql # not compatible
query II rowsort label-2409
SELECT DISTINCT COALESCE ( + + 1, + 92 / - 43 * - 7 * - CAST ( + - 1 AS INTEGER ) / + CAST ( 81 AS INTEGER ) / - 32, + 11 ), - 19 AS col1
----
1
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT ALL + CASE + + SUM( DISTINCT 16 ) WHEN - - 14 THEN - + ( - 84 ) * + - ( + 24 ) END * + 73 AS col0, 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-2410
SELECT ALL + CASE + + SUM ( DISTINCT 16 ) WHEN - - 14 THEN - + ( - 84 ) * + - ( + 24 ) END * + 73 AS col0, 13
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT 70 * - COALESCE ( - 56, - 78, - 19 + + COUNT( * ) + 37 * 59 * - MIN( + ( - + 41 ) ), + - NULLIF ( 37, 1 + + + MIN( - 59 ) * - - 59 + + 38 * + 40 ) * - ( 73 ) + + 40 + + COUNT( * ) )
----
3920

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 70 * - COALESCE ( - 56, - 78, - 19 + + COUNT ( * ) + 37 * 59 * - MIN ( + ( - + 41 ) ), + - NULLIF ( 37, 1 + + + MIN ( - 59 ) * - - 59 + + 38 * + 40 ) * - ( 73 ) + + 40 + + COUNT ( * ) )
----
3920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + 56 * + ( - COUNT( ALL + + 83 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + 56 * + ( - COUNT ( ALL + + 83 ) ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + ( MIN( DISTINCT - + 9 ) ) * - 58 * + COUNT( - 15 ) AS col1
----
522

skipif mysql # not compatible
query I rowsort label-2414
SELECT + ( MIN ( DISTINCT - + 9 ) ) * - 58 * + COUNT ( - 15 ) AS col1
----
522

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT + CAST( - 94 AS SIGNED ) * 11 * + - 11
----
11374

skipif mysql # not compatible
query I rowsort label-2416
SELECT + CAST ( - 94 AS INTEGER ) * 11 * + - 11
----
11374

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT - 92 DIV - 61
----
1

skipif mysql # not compatible
query I rowsort label-2418
SELECT - 92 / - 61
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2420
SELECT ALL 57, CASE + 57 WHEN 22 THEN + + CASE - 87 WHEN - - 27 THEN - 15 END * - COUNT( * ) + - + COALESCE ( - + COUNT( * ), + + 72 * + 83 ) + COUNT( * ) - - + 16 - 86 * COUNT( * ) / + 82 + - - CAST( - + 61 AS SIGNED ) / - 97 / 14 + 27 END AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL 57, CASE + 57 WHEN 22 THEN + + CASE - 87 WHEN - - 27 THEN - 15 END * - COUNT ( * ) + - + COALESCE ( - + COUNT ( * ), + + 72 * + 83 ) + COUNT ( * ) - - + 16 - 86 * COUNT ( * ) / + 82 + - - CAST ( - + 61 AS INTEGER ) / - 97 / 14 + 27 END AS col2
----
57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL CAST( 99 AS SIGNED ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL CAST ( 99 AS INTEGER ) AS col1
----
99

query I rowsort
SELECT ALL 39 * - - 70 AS col0
----
2730

query I rowsort
SELECT + 45 - - 51 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT ALL - 21 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL - 21 / 36
----
0

query I rowsort
SELECT ALL 56 * + 4 AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + SUM( 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2426
SELECT + SUM ( 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT DISTINCT 91 DIV COUNT( * ) + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT 91 / COUNT ( * ) + - COUNT ( * )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT ALL 60 DIV 92 * - ( + ( - NULLIF ( 9, + NULLIF ( + + 86, AVG ( + 53 ) ) ) ) ) + - + 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL 60 / 92 * - ( + ( - NULLIF ( 9, + NULLIF ( + + 86, AVG ( + 53 ) ) ) ) ) + - + 92 AS col0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + + COALESCE ( 12, 34 ) * COUNT( 11 ) * - MIN( - 43 ) * - 73
----
-37668

skipif mysql # not compatible
query I rowsort label-2430
SELECT + + COALESCE ( 12, 34 ) * COUNT ( 11 ) * - MIN ( - 43 ) * - 73
----
-37668

query I rowsort
SELECT ALL 50 * + 5 * - ( - + 80 ) AS col1
----
20000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT DISTINCT ( + COUNT( - ( - 13 ) ) ) DIV + 44 + + ( MIN( ALL 85 ) ) DIV + NULLIF ( + - 17, COUNT( * ) * 47 * - 64 * 32 * + MIN( - 94 ) + - + 83 + - 43 + COUNT( DISTINCT + 45 ) + - 35 * 74 )
----
-5

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT ( + COUNT ( - ( - 13 ) ) ) / + 44 + + ( MIN ( ALL 85 ) ) / + NULLIF ( + - 17, COUNT ( * ) * 47 * - 64 * 32 * + MIN ( - 94 ) + - + 83 + - 43 + COUNT ( DISTINCT + 45 ) + - 35 * 74 )
----
-5

query I rowsort
SELECT + - 42 + - 55
----
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL - + CAST( - 78 AS SIGNED ) / - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - + CAST ( - 78 AS INTEGER ) / - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2436
SELECT + MIN( ALL 34 ) + - CASE - 57 WHEN - - 1 / ( + 98 ) - 6 THEN NULL WHEN - 87 + COUNT( * ) + - + 28 * + 38 * + 89 * - NULLIF ( NULLIF ( 31, - + 99 * - + 57 * + COUNT( * ) * CAST( NULL AS DECIMAL ) ), + + 7 ) THEN - 36 * 40 + COUNT( * ) ELSE - CASE + AVG ( 90 ) WHEN + 25 THEN - 15 + COUNT( * ) WHEN - CAST( + 82 AS SIGNED ) THEN NULL END * 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT + MIN ( ALL 34 ) + - CASE - 57 WHEN - - 1 / ( + 98 ) - 6 THEN NULL WHEN - 87 + COUNT ( * ) + - + 28 * + 38 * + 89 * - NULLIF ( NULLIF ( 31, - + 99 * - + 57 * + COUNT ( * ) * CAST ( NULL AS REAL ) ), + + 7 ) THEN - 36 * 40 + COUNT ( * ) ELSE - CASE + AVG ( 90 ) WHEN + 25 THEN - 15 + COUNT ( * ) WHEN - CAST ( + 82 AS INTEGER ) THEN NULL END * 24 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2437
SELECT MAX( DISTINCT + - 82 ) col0, 10 - + 76
----
-82
-66

skipif mysql # not compatible
query II rowsort label-2437
SELECT MAX ( DISTINCT + - 82 ) col0, 10 - + 76
----
-82
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT + SUM( NULLIF ( + CAST( - 71 AS SIGNED ), + ( 48 ) * 45 ) ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-2438
SELECT + SUM ( NULLIF ( + CAST ( - 71 AS INTEGER ), + ( 48 ) * 45 ) ) col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT 77 AS col1, - 39 * + - COUNT( * )
----
77
39

skipif mysql # not compatible
query II rowsort label-2439
SELECT 77 AS col1, - 39 * + - COUNT ( * )
----
77
39

query I rowsort
SELECT + COALESCE ( + 10, + 11 ) AS col2
----
10

query I rowsort
SELECT - 65 * - 26 * 69 + + - 86
----
116524

query I rowsort
SELECT + 10 * 75
----
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL AVG ( DISTINCT 96 ) * + + CASE + 28 WHEN + + COUNT( * ) + CASE + COUNT( * ) WHEN - 8 * - + 58 THEN NULL ELSE - MAX( DISTINCT + - ( - 47 ) ) END THEN NULL ELSE + + ( + ( - CAST( NULL AS SIGNED ) ) ) * - - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL AVG ( DISTINCT 96 ) * + + CASE + 28 WHEN + + COUNT ( * ) + CASE + COUNT ( * ) WHEN - 8 * - + 58 THEN NULL ELSE - MAX ( DISTINCT + - ( - 47 ) ) END THEN NULL ELSE + + ( + ( - CAST ( NULL AS INTEGER ) ) ) * - - 37 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT 91 + - 3 + COUNT( * ) + + 55 * MAX( DISTINCT - 50 ) + 48 * - + 11 * 74 AS col1
----
-41733

skipif mysql # not compatible
query I rowsort label-2444
SELECT 91 + - 3 + COUNT ( * ) + + 55 * MAX ( DISTINCT - 50 ) + 48 * - + 11 * 74 AS col1
----
-41733

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT ALL 19 DIV + 96 * - 80 col2
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL 19 / + 96 * - 80 col2
----
0

query I rowsort
SELECT ALL - 35 - - 83 - + - 12 AS col1
----
60

query II rowsort
SELECT - + 37 AS col0, 55 * + 97 AS col2
----
-37
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT - ( + MAX( - 40 ) ) col2
----
40

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT - ( + MAX ( - 40 ) ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + 85 + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-2449
SELECT + 85 + - COUNT ( * )
----
84

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

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

query I rowsort
SELECT 66 + - 99
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2452
SELECT CAST( NULL AS SIGNED ) * + - 93 AS col1, - 92
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-2452
SELECT CAST ( NULL AS INTEGER ) * + - 93 AS col1, - 92
----
NULL
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-2453
SELECT 75 * + 9 col0, + 49 DIV + 66
----
675
0

skipif mysql # not compatible
query II rowsort label-2453
SELECT 75 * + 9 col0, + 49 / + 66
----
675
0

query I rowsort
SELECT 65 * + 89
----
5785

query II rowsort
SELECT 81 + + 90 AS col2, - 54
----
171
-54

query I rowsort
SELECT 55 * + 69 AS col1
----
3795

onlyif mysql # aggregate syntax: 
query II rowsort label-2457
SELECT 91 + - + COUNT( * ), 77 col1
----
90
77

skipif mysql # not compatible
query II rowsort label-2457
SELECT 91 + - + COUNT ( * ), 77 col1
----
90
77

query I rowsort
SELECT ALL + 62 + 59 AS col1
----
121

query I rowsort
SELECT 81 * + 39 AS col2
----
3159

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

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

query I rowsort
SELECT ALL 61 + + ( + + 71 ) AS col2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT CASE + 74 WHEN - 16 * - + 59 + + 90 * - 7 + + + 93 + MIN( - 92 ) * + - 67 THEN - MIN( DISTINCT - 12 ) * + MIN( ALL + + 96 ) / AVG ( - 86 ) WHEN - 70 * - - CAST( COUNT( * ) AS SIGNED ) + + CASE - 68 WHEN + 99 THEN - 33 - - 12 END * + 3 THEN NULL END * - COALESCE ( 76, - 70 * - COUNT( * ), 77 * 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT CASE + 74 WHEN - 16 * - + 59 + + 90 * - 7 + + + 93 + MIN ( - 92 ) * + - 67 THEN - MIN ( DISTINCT - 12 ) * + MIN ( ALL + + 96 ) / AVG ( - 86 ) WHEN - 70 * - - CAST ( COUNT ( * ) AS INTEGER ) + + CASE - 68 WHEN + 99 THEN - 33 - - 12 END * + 3 THEN NULL END * - COALESCE ( 76, - 70 * - COUNT ( * ), 77 * 46 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2463
SELECT DISTINCT MAX( DISTINCT + 31 ) * - - 78 AS col1, CASE 72 WHEN + CAST( + 79 AS SIGNED ) + - 62 + - 12 THEN NULL ELSE - 22 END AS col0
----
2418
-22

skipif mysql # not compatible
query II rowsort label-2463
SELECT DISTINCT MAX ( DISTINCT + 31 ) * - - 78 AS col1, CASE 72 WHEN + CAST ( + 79 AS INTEGER ) + - 62 + - 12 THEN NULL ELSE - 22 END AS col0
----
2418
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT - CAST( - 81 AS SIGNED ) col1
----
81

skipif mysql # not compatible
query I rowsort label-2464
SELECT - CAST ( - 81 AS INTEGER ) col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT - COUNT( * ) * + 28 + + 61, 89 + + 77 AS col2
----
33
166

skipif mysql # not compatible
query II rowsort label-2465
SELECT - COUNT ( * ) * + 28 + + 61, 89 + + 77 AS col2
----
33
166

query I rowsort
SELECT DISTINCT + + 9 + + 70 AS col0
----
79

query I rowsort
SELECT ALL - 99 + 33 + 0 * + + 62 * + 74
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL + 24 - - 8 + + 17 + + ( 77 ) + + COUNT( * ) * + MAX( ALL + 85 ) AS col1
----
211

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL + 24 - - 8 + + 17 + + ( 77 ) + + COUNT ( * ) * + MAX ( ALL + 85 ) AS col1
----
211

query I rowsort
SELECT - 62 * + 15 + + 43 + - 63 - + 11 + 69 AS col0
----
-892

query I rowsort
SELECT DISTINCT + 75 * + - 88 AS col2
----
-6600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT ALL - - 66 - + CAST( NULL AS SIGNED ) + - 5 * - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - - 66 - + CAST ( NULL AS INTEGER ) + - 5 * - - 45
----
NULL

query I rowsort
SELECT ALL 91 - + 5 * + - ( - 38 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT 98 * - COUNT( * ) * + 37
----
-3626

skipif mysql # not compatible
query I rowsort label-2473
SELECT 98 * - COUNT ( * ) * + 37
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT 85 * + 84 + COUNT( * ) AS col1
----
7141

skipif mysql # not compatible
query I rowsort label-2474
SELECT 85 * + 84 + COUNT ( * ) AS col1
----
7141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT ALL - - COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query II rowsort
SELECT 56 AS col1, 46 AS col1
----
56
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT 40 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT 40 / - 42
----
0

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

query I rowsort
SELECT 82 + + ( 87 ) + + 22 * - 35 * + - 15 * + + 42 AS col0
----
485269

query II rowsort
SELECT ALL 87, NULLIF ( + 9, 60 ) * 46 AS col2
----
87
414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2482
SELECT MIN( ALL - ( 55 ) ) DIV 19 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2482
SELECT MIN ( ALL - ( 55 ) ) / 19 AS col0
----
-2

query I rowsort
SELECT DISTINCT 75 * + 5 * - 52 AS col0
----
-19500

query II rowsort
SELECT - 52 AS col1, - 40 AS col1
----
-52
-40

query I rowsort
SELECT 91 * 41 AS col0
----
3731

query I rowsort
SELECT ALL 27 + + 41 + - + COALESCE ( + - 59, + 92, - + 87 + 44 + + 1 + + 64 ) + - 37 AS col1
----
90

query II rowsort
SELECT ALL 7, + 27 - + + 13 AS col2
----
7
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT 0 * + MAX( DISTINCT + + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT 0 * + MAX ( DISTINCT + + 17 )
----
0

query I rowsort
SELECT 71 - + 80 + - + ( 28 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL + MAX( - - 70 ) + - - 98 + - 72 - 56 * - 59 * - 49 * 60 - - + 49 AS col2
----
-9713615

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + MAX ( - - 70 ) + - - 98 + - 72 - 56 * - 59 * - 49 * 60 - - + 49 AS col2
----
-9713615

query I rowsort
SELECT 0 + ( - COALESCE ( + 17, 7 ) ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2492
SELECT ALL + COUNT( ALL + 43 ) + - SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + COUNT ( ALL + 43 ) + - SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT - 15 * CAST( + 4 AS SIGNED ) + - MIN( DISTINCT + 45 )
----
-105

skipif mysql # not compatible
query I rowsort label-2493
SELECT - 15 * CAST ( + 4 AS INTEGER ) + - MIN ( DISTINCT + 45 )
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT MAX( + - 42 ) DIV 47 + + 64 + + 4
----
68

skipif mysql # not compatible
query I rowsort label-2494
SELECT MAX ( + - 42 ) / 47 + + 64 + + 4
----
68

query I rowsort
SELECT - 95 + - 43
----
-138

query II rowsort
SELECT ALL + + 34, 42 AS col0
----
34
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - - 82 * + 34 + - CASE - 64 WHEN - 97 * - 61 * - + 6 - 49 THEN - ( - 44 ) * - 21 * SUM( - 37 ) WHEN 33 * 33 * + MIN( + ( 35 ) ) + - 68 THEN NULL ELSE NULL END - COUNT( * ) + 73 * + COUNT( * ) + - 45 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT - - 82 * + 34 + - CASE - 64 WHEN - 97 * - 61 * - + 6 - 49 THEN - ( - 44 ) * - 21 * SUM ( - 37 ) WHEN 33 * 33 * + MIN ( + ( 35 ) ) + - 68 THEN NULL ELSE NULL END - COUNT ( * ) + 73 * + COUNT ( * ) + - 45 * - 42
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2499
SELECT - 35 * - - 63 / + + 35 * - CAST( + CAST( ( + 61 ) AS SIGNED ) AS DECIMAL ) + - - 45 + CASE 37 WHEN 40 * 0 + - 21 THEN + 8 * ( + - AVG ( ALL - 69 ) ) WHEN + 95 * + + 95 * - 2 + - - 63 THEN - COUNT( - 83 ) + - CAST( + 59 + 19 AS SIGNED ) * - 71 WHEN 34 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT - 35 * - - 63 / + + 35 * - CAST ( + CAST ( ( + 61 ) AS INTEGER ) AS REAL ) + - - 45 + CASE 37 WHEN 40 * 0 + - 21 THEN + 8 * ( + - AVG ( ALL - 69 ) ) WHEN + 95 * + + 95 * - 2 + - - 63 THEN - COUNT ( - 83 ) + - CAST ( + 59 + 19 AS INTEGER ) * - 71 WHEN 34 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - + 82 * + 56 AS col1
----
-4592

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT DISTINCT 80 DIV + 89 * + - 91
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT 80 / + 89 * + - 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT DISTINCT + 10 DIV + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT + 10 / + 34 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2504
SELECT - COUNT( * ), ( - 47 ) * + + 76 + - - 24 + + + 44 + 93 DIV - 53 + - + 49 AS col2
----
-1
-3554

skipif mysql # not compatible
query II rowsort label-2504
SELECT - COUNT ( * ), ( - 47 ) * + + 76 + - - 24 + + + 44 + 93 / - 53 + - + 49 AS col2
----
-1
-3554

query I rowsort
SELECT DISTINCT 35 * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT - SUM( ALL - 22 ) + + - 16 + + COUNT( + + 2 ) * + - 46 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2506
SELECT - SUM ( ALL - 22 ) + + - 16 + + COUNT ( + + 2 ) * + - 46 AS col1
----
-40

query I rowsort
SELECT - 76 + - 21 * 70
----
-1546

query II rowsort
SELECT ALL + 98 + 6 AS col0, + 26 AS col2
----
104
26

query I rowsort
SELECT ALL 40 + - 59
----
-19

query I rowsort
SELECT ALL 51 + - 39 + 88 * + - 65 AS col1
----
-5708

query I rowsort
SELECT ALL 28 + - + 9 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2512
SELECT - SUM( DISTINCT - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT - SUM ( DISTINCT - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 98 + - 64
----
34

query I rowsort
SELECT ALL 80 + - - 9 - + + 14
----
75

query I rowsort
SELECT + 92 + 79 * - - 99 col1
----
7913

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT 15 + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT 15 + - COUNT ( * )
----
14

query I rowsort
SELECT + ( + + ( 60 ) ) * 86 AS col1
----
5160

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + 14 * + MIN( ALL + + 9 )
----
126

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 14 * + MIN ( ALL + + 9 )
----
126

query I rowsort
SELECT ALL ( 93 ) * + + 69
----
6417

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT + 52 * COUNT( * ) * + CASE 78 WHEN - 70 THEN + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT + 52 * COUNT ( * ) * + CASE 78 WHEN - 70 THEN + 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - 40 + - ( - ( 45 ) ) + - CASE + 5 WHEN + - 45 THEN + 22 WHEN + 71 + + 29 + + 56 * + - 69 + 3 + + + 70 + 59 / - 56 * + + 47 * - - COUNT( * ) * + + 65 - + COALESCE ( + 33, + ( - 52 ) ) THEN NULL END / + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT - 40 + - ( - ( 45 ) ) + - CASE + 5 WHEN + - 45 THEN + 22 WHEN + 71 + + 29 + + 56 * + - 69 + 3 + + + 70 + 59 / - 56 * + + 47 * - - COUNT ( * ) * + + 65 - + COALESCE ( + 33, + ( - 52 ) ) THEN NULL END / + 57 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT NULLIF ( + COALESCE ( - 13, 8, + 58 * 46 + + CAST( ( + - 90 ) AS SIGNED ) ), - + COALESCE ( - COUNT( * ), + 25, - 2 ) - + MAX( - - 17 ) + + 73 - + 68 * - 22 / - + ( - CAST( - 44 AS SIGNED ) ) * + 39 - - + COALESCE ( - 59, 85, 27 ) + + 2 )
----
-13

skipif mysql # not compatible
query I rowsort label-2523
SELECT NULLIF ( + COALESCE ( - 13, 8, + 58 * 46 + + CAST ( ( + - 90 ) AS INTEGER ) ), - + COALESCE ( - COUNT ( * ), + 25, - 2 ) - + MAX ( - - 17 ) + + 73 - + 68 * - 22 / - + ( - CAST ( - 44 AS INTEGER ) ) * + 39 - - + COALESCE ( - 59, 85, 27 ) + + 2 )
----
-13

query II rowsort
SELECT - ( 52 ) * - - 4 * - 51 AS col1, + CASE + + 70 WHEN ( + 40 ) / - 32 THEN - + 33 WHEN - 5 THEN 92 + + + 60 END
----
10608
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT + 70 * + - 78 * - 34 + CAST( + + 5 AS SIGNED ) * - 5 AS col1
----
185615

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 70 * + - 78 * - 34 + CAST ( + + 5 AS INTEGER ) * - 5 AS col1
----
185615

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2526
SELECT ALL + - 99 * + - 22, + CAST( NULL AS SIGNED ) col0
----
2178
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT ALL + - 99 * + - 22, + CAST ( NULL AS INTEGER ) col0
----
2178
NULL

query I rowsort
SELECT - - 70 * + + 65 * - 97 AS col0
----
-441350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT ALL - CASE WHEN - 24 IN ( 97 * - CAST( + COUNT( * ) AS SIGNED ) + + 26 ) THEN + 93 ELSE NULL END * - 30 + 90 + - + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - CASE WHEN - 24 IN ( 97 * - CAST ( + COUNT ( * ) AS INTEGER ) + + 26 ) THEN + 93 ELSE NULL END * - 30 + 90 + - + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL - 20 * + 37 AS col2
----
-740

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

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

query I rowsort
SELECT NULLIF ( + 79, - 22 ) col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT 82 * COUNT( * ) + + - 21 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 82 * COUNT ( * ) + + - 21 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT + SUM( - + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-2533
SELECT + SUM ( - + 57 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2534
SELECT ALL 32 * 76 * - 70 * 17 + - + 13 AS col1, 13 DIV 62 - - - 36 col2, - - 22 * - + COUNT( * ) * - 91 + - 1 - + 26 col1
----
-2894093
-36
1975

skipif mysql # not compatible
query III rowsort label-2534
SELECT ALL 32 * 76 * - 70 * 17 + - + 13 AS col1, 13 / 62 - - - 36 col2, - - 22 * - + COUNT ( * ) * - 91 + - 1 - + 26 col1
----
-2894093
-36
1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT - CAST( NULL AS SIGNED ) * - + 74 * - CASE - 25 WHEN - 63 * + + 27 / - 66 THEN + ( + - COUNT( * ) ) * COUNT( * ) * - + SUM( DISTINCT - 74 ) + 2 + + NULLIF ( + 39, + 16 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT - CAST ( NULL AS INTEGER ) * - + 74 * - CASE - 25 WHEN - 63 * + + 27 / - 66 THEN + ( + - COUNT ( * ) ) * COUNT ( * ) * - + SUM ( DISTINCT - 74 ) + 2 + + NULLIF ( + 39, + 16 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2536
SELECT DISTINCT CASE + - 47 WHEN + - 69 THEN + - 98 ELSE - - 68 * + 94 END * + 22 + + 8, 75 + - CAST( - 29 AS SIGNED ) col2
----
140632
104

skipif mysql # not compatible
query II rowsort label-2536
SELECT DISTINCT CASE + - 47 WHEN + - 69 THEN + - 98 ELSE - - 68 * + 94 END * + 22 + + 8, 75 + - CAST ( - 29 AS INTEGER ) col2
----
140632
104

query I rowsort
SELECT NULLIF ( 14, 57 * - 58 * + 4 )
----
14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT ALL + 76 DIV 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + 76 / 55 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2540
SELECT COALESCE ( - 25, + ( - COUNT( * ) ), COUNT( * ) ) AS col1, + 73
----
-25
73

skipif mysql # not compatible
query II rowsort label-2540
SELECT COALESCE ( - 25, + ( - COUNT ( * ) ), COUNT ( * ) ) AS col1, + 73
----
-25
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT - ( ( - 65 ) ) DIV 5 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2541
SELECT - ( ( - 65 ) ) / 5 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT MIN( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-2542
SELECT MIN ( - 52 )
----
-52

query I rowsort
SELECT + 92 * 96 AS col1
----
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT COUNT( + 45 ) * - + 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT COUNT ( + 45 ) * - + 21 AS col2
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2545
SELECT ALL + 5 * - + 82 / CASE + 68 WHEN + 76 * 81 THEN + ( 73 ) END * + CAST( NULL AS DECIMAL ) * 10 + + + 11 - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + 5 * - + 82 / CASE + 68 WHEN + 76 * 81 THEN + ( 73 ) END * + CAST ( NULL AS REAL ) * 10 + + + 11 - - 39
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 49 - + + 27 * + 13 AS col1
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT - NULLIF ( + 80, CAST( NULL AS SIGNED ) / - ( + - COUNT( * ) ) * - + 55 * 35 * - - 81 + + 46 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2548
SELECT - NULLIF ( + 80, CAST ( NULL AS INTEGER ) / - ( + - COUNT ( * ) ) * - + 55 * 35 * - - 81 + + 46 ) AS col1
----
-80

query I rowsort
SELECT - ( + 89 ) + - + 25 + - COALESCE ( 36, 5, - 15 ) AS col2
----
-150

query I rowsort
SELECT ( + - 20 ) * - 70
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT + AVG ( - 17 ) + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT + AVG ( - 17 ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2552
SELECT - MAX ( + + 38 )
----
-38

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

skipif mysql # not compatible
query I rowsort label-2553
SELECT + COUNT ( * ) * 13 + + 48 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT ALL + 37 DIV - + 11
----
-3

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + 37 / - + 11
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT CAST( NULL AS SIGNED ) + + ( - AVG ( ALL 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT CAST ( NULL AS INTEGER ) + + ( - AVG ( ALL 75 ) )
----
NULL

query I rowsort
SELECT ALL 17 * - 81
----
-1377

query I rowsort
SELECT ALL 74 * + 28 AS col2
----
2072

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

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

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

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

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

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

query I rowsort
SELECT - 71 * 70
----
-4970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT CASE + + ( - 55 ) WHEN + ( - 40 ) THEN + COALESCE ( + - CASE - 24 WHEN + 47 + COALESCE ( + ( + 46 ), SUM( - 27 ) + - + 11 * + 34, + 24 ) + - 71 * + 11 + - - 8 / + - 19 * - + 4 THEN + 93 * - COUNT( * ) ELSE - 75 END, + COUNT( * ), 22 + CASE - 41 WHEN + 95 * + COUNT( * ) THEN - 60 * CAST( NULL AS SIGNED ) END ) * ( - 47 ) WHEN 74 + - 4 THEN NULL ELSE NULL END / 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT CASE + + ( - 55 ) WHEN + ( - 40 ) THEN + COALESCE ( + - CASE - 24 WHEN + 47 + COALESCE ( + ( + 46 ), SUM ( - 27 ) + - + 11 * + 34, + 24 ) + - 71 * + 11 + - - 8 / + - 19 * - + 4 THEN + 93 * - COUNT ( * ) ELSE - 75 END, + COUNT ( * ), 22 + CASE - 41 WHEN + 95 * + COUNT ( * ) THEN - 60 * CAST ( NULL AS INTEGER ) END ) * ( - 47 ) WHEN 74 + - 4 THEN NULL ELSE NULL END / 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT ALL + 94 + + 69 + - 42 DIV - + 87 * 20 * - 82 * 73 * + 56
----
163

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + 94 + + 69 + - 42 / - + 87 * 20 * - 82 * 73 * + 56
----
163

query I rowsort
SELECT - 2 * + 90 * + + 17
----
-3060

query II rowsort
SELECT + 81 AS col1, - 42 * 33 + - 15
----
81
-1401

query I rowsort
SELECT ALL 85 + 16 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-2567
SELECT DISTINCT - 33, SUM( DISTINCT - 59 ) AS col0
----
-33
-59

skipif mysql # not compatible
query II rowsort label-2567
SELECT DISTINCT - 33, SUM ( DISTINCT - 59 ) AS col0
----
-33
-59

query I rowsort
SELECT ALL + 98 + + - 45
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT ALL - 34 + 5 + COUNT( 23 ) AS col1, - NULLIF ( + 43, + COUNT( * ) ) AS col1
----
-28
-43

skipif mysql # not compatible
query II rowsort label-2569
SELECT ALL - 34 + 5 + COUNT ( 23 ) AS col1, - NULLIF ( + 43, + COUNT ( * ) ) AS col1
----
-28
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ( + - 92 ) * AVG ( ALL - 67 ) / - + CASE - 38 WHEN - 23 THEN NULL WHEN + + NULLIF ( - 94, NULLIF ( - - 31, + 75 ) + + COUNT( * ) * 57 ) THEN NULL WHEN + 43 + + COUNT( + 45 ) THEN + 70 ELSE NULL END + - 64 * + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT ( + - 92 ) * AVG ( ALL - 67 ) / - + CASE - 38 WHEN - 23 THEN NULL WHEN + + NULLIF ( - 94, NULLIF ( - - 31, + 75 ) + + COUNT ( * ) * 57 ) THEN NULL WHEN + 43 + + COUNT ( + 45 ) THEN + 70 ELSE NULL END + - 64 * + - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT 85 + + NULLIF ( ( - 41 ), - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-2571
SELECT 85 + + NULLIF ( ( - 41 ), - COUNT ( * ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT ALL 11 * CAST( + 40 AS SIGNED ) col1
----
440

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 11 * CAST ( + 40 AS INTEGER ) col1
----
440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2573
SELECT CAST( + 9 AS SIGNED ) * 58 + - COALESCE ( - 5, + 25 DIV 43, + CAST( + 99 AS SIGNED ) )
----
527

skipif mysql # not compatible
query I rowsort label-2573
SELECT CAST ( + 9 AS INTEGER ) * 58 + - COALESCE ( - 5, + 25 / 43, + CAST ( + 99 AS INTEGER ) )
----
527

query I rowsort
SELECT DISTINCT + 89 * 20 * 78
----
138840

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT 98 * + 83 + - 31 * SUM( ALL - 48 )
----
9622

skipif mysql # not compatible
query I rowsort label-2575
SELECT 98 * + 83 + - 31 * SUM ( ALL - 48 )
----
9622

query I rowsort
SELECT 81 + + 68
----
149

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

query II rowsort
SELECT 90 + - - 15 + COALESCE ( + 36, - + 30 ) * + 36 AS col0, 31
----
1401
31

query II rowsort
SELECT ALL 4 AS col0, 53
----
4
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2580
SELECT ALL - COUNT( * ) DIV - + 27 * + COUNT( * ) * + 23, 91 AS col1
----
0
91

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL - COUNT ( * ) / - + 27 * + COUNT ( * ) * + 23, 91 AS col1
----
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT 6 + 51 + 65 + + 96 * - 19 - + COUNT( * ) * - 63 AS col1
----
-1639

skipif mysql # not compatible
query I rowsort label-2581
SELECT 6 + 51 + 65 + + 96 * - 19 - + COUNT ( * ) * - 63 AS col1
----
-1639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2582
SELECT ALL - COALESCE ( - COUNT( * ), 1 ) DIV + SUM( 51 ) * - 1
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - COALESCE ( - COUNT ( * ), 1 ) / + SUM ( 51 ) * - 1
----
0

query I rowsort
SELECT 90 * 6
----
540

query I rowsort
SELECT 25 + - 99
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT 96 DIV 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2585
SELECT 96 / 35 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT - 71, - MIN( + 12 ) AS col2
----
-71
-12

skipif mysql # not compatible
query II rowsort label-2586
SELECT - 71, - MIN ( + 12 ) AS col2
----
-71
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT COUNT( * ) + + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2587
SELECT COUNT ( * ) + + 84 AS col1
----
85

query I rowsort
SELECT 1 * + 11 * - 36 AS col0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT 16 * COUNT( - 58 )
----
16

skipif mysql # not compatible
query I rowsort label-2589
SELECT 16 * COUNT ( - 58 )
----
16

query I rowsort
SELECT ALL + - 24 * + - 87 AS col2
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT - CASE + 87 WHEN - MIN( ALL 24 ) - 73 + + + 99 THEN + + 43 WHEN + COUNT( DISTINCT - 10 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - CASE + 87 WHEN - MIN ( ALL 24 ) - 73 + + + 99 THEN + + 43 WHEN + COUNT ( DISTINCT - 10 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL - 25 + - + COUNT( DISTINCT + + 58 )
----
-26

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - 25 + - + COUNT ( DISTINCT + + 58 )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT + 11 + + 6 + + 23 * + 69 DIV - COUNT( * ) AS col1
----
-1570

skipif mysql # not compatible
query I rowsort label-2593
SELECT + 11 + + 6 + + 23 * + 69 / - COUNT ( * ) AS col1
----
-1570

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

skipif mysql # not compatible
query II rowsort label-2594
SELECT DISTINCT + COUNT ( * ) AS col1, 54
----
1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ( + + 93 ) + ( + + COALESCE ( 87, + 31 * + 62 + COUNT( * ), - + 20 ) ) AS col0
----
180

skipif mysql # not compatible
query I rowsort label-2595
SELECT ( + + 93 ) + ( + + COALESCE ( 87, + 31 * + 62 + COUNT ( * ), - + 20 ) ) AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT MAX( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT MAX ( + 81 )
----
81

query I rowsort
SELECT DISTINCT 57 * + 50 + + 58
----
2908

query I rowsort
SELECT 44 * 24 AS col1
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - - 24 * - 79 + - 73 + 63 * + COUNT( * )
----
-1906

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - - 24 * - 79 + - 73 + 63 * + COUNT ( * )
----
-1906

query I rowsort
SELECT DISTINCT + 97 * + 52 + + 31
----
5075

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT 85 * 41 * + 34 * + SUM( DISTINCT 67 ) * - 17
----
-134960110

skipif mysql # not compatible
query I rowsort label-2601
SELECT 85 * 41 * + 34 * + SUM ( DISTINCT 67 ) * - 17
----
-134960110

query I rowsort
SELECT DISTINCT 70 * + 10 AS col2
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT 75 * - + ( - MIN( - 47 ) ) AS col2
----
-3525

skipif mysql # not compatible
query I rowsort label-2603
SELECT 75 * - + ( - MIN ( - 47 ) ) AS col2
----
-3525

query I rowsort
SELECT ( - + 2 ) - + 41 + 31 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT MIN( - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2605
SELECT MIN ( - 36 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT 56 * - ( + 93 )
----
-5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT + ( 13 ) - - 61 + + + COALESCE ( - COUNT( * ), - 52 + - - 47 * + + 19 DIV 92 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2607
SELECT + ( 13 ) - - 61 + + + COALESCE ( - COUNT ( * ), - 52 + - - 47 * + + 19 / 92 ) AS col2
----
73

query I rowsort
SELECT + 79 * + 40
----
3160

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2610
SELECT DISTINCT 20 * + 12 AS col1, 30 * + ( + 98 ) * 55 + - 20 + CAST( NULL AS SIGNED )
----
240
NULL

skipif mysql # not compatible
query II rowsort label-2610
SELECT DISTINCT 20 * + 12 AS col1, 30 * + ( + 98 ) * 55 + - 20 + CAST ( NULL AS INTEGER )
----
240
NULL

query I rowsort
SELECT ALL + 9 * - 35 * 35 AS col1
----
-11025

query II rowsort
SELECT ALL + 29 + + 98, - 17 AS col1
----
127
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2613
SELECT - - CAST( NULL AS DECIMAL ) - + 77 * + + ( - + 56 ) * - + 85 + + CAST( + 67 AS DECIMAL ) + + CASE - 25 WHEN + COUNT( * ) THEN NULL WHEN + 30 THEN + COALESCE ( + 52, + + 40 + + + COUNT( * ), + 22 - + COUNT( * ), 63 + + 35 * - ( - 1 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT - - CAST ( NULL AS REAL ) - + 77 * + + ( - + 56 ) * - + 85 + + CAST ( + 67 AS REAL ) + + CASE - 25 WHEN + COUNT ( * ) THEN NULL WHEN + 30 THEN + COALESCE ( + 52, + + 40 + + + COUNT ( * ), + 22 - + COUNT ( * ), 63 + + 35 * - ( - 1 ) ) END AS col0
----
NULL

query II rowsort
SELECT + + 54 + + + 24, 69 + + 51 AS col0
----
78
120

query I rowsort
SELECT + - 80 + + - 11 AS col0
----
-91

query I rowsort
SELECT ALL + 69 + - 66 + - - 42 AS col1
----
45

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

skipif mysql # not compatible
query I rowsort label-2617
SELECT SUM ( DISTINCT 98 )
----
98

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

skipif mysql # not compatible
query I rowsort label-2618
SELECT - COUNT ( * ) / - + 75 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT - 62 + 89 DIV 52
----
-61

skipif mysql # not compatible
query I rowsort label-2619
SELECT - 62 + 89 / 52
----
-61

query I rowsort
SELECT ALL + 77 * - + 75
----
-5775

query I rowsort
SELECT DISTINCT + + 51 + - 56 AS col1
----
-5

query I rowsort
SELECT ALL - + 80 * 40 AS col2
----
-3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT - + CAST( MAX( DISTINCT - + 59 ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-2623
SELECT - + CAST ( MAX ( DISTINCT - + 59 ) AS INTEGER )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + COUNT( * ) + + 41 - 98 - + 61 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + COUNT ( * ) + + 41 - 98 - + 61 AS col1
----
-117

query I rowsort
SELECT - + 64 + - - 68 + + + 82 AS col1
----
86

query I rowsort
SELECT ALL + 53 + 23
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT - COUNT( 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2627
SELECT - COUNT ( 8 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - 42 * + NULLIF ( COUNT( * ), - 57 ) * - - 88 AS col2
----
-3696

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - 42 * + NULLIF ( COUNT ( * ), - 57 ) * - - 88 AS col2
----
-3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2629
SELECT + 9 * COUNT( * ) + - 69 / 9 + 17 * 23 * - COUNT( 14 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT + 9 * COUNT ( * ) + - 69 / 9 + 17 * 23 * - COUNT ( 14 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2630
SELECT CAST( NULL AS SIGNED ) / - 94 + + COUNT( * ) / - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT CAST ( NULL AS INTEGER ) / - 94 + + COUNT ( * ) / - 98 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT ALL ( + 21 ) * - - CASE - + 75 WHEN - - 37 THEN NULL WHEN + 89 THEN + 64 * + MAX( DISTINCT - - 30 ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) ELSE NULL END - + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL ( + 21 ) * - - CASE - + 75 WHEN - - 37 THEN NULL WHEN + 89 THEN + 64 * + MAX ( DISTINCT - - 30 ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) ELSE NULL END - + 36 AS col2
----
NULL

query I rowsort
SELECT + 58 + 98
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + CASE - 14 WHEN - 68 + - COUNT( * ) THEN CASE + 8 WHEN 69 THEN NULL WHEN - + 9 THEN + 13 END + + + COUNT( ALL 96 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT + CASE - 14 WHEN - 68 + - COUNT ( * ) THEN CASE + 8 WHEN 69 THEN NULL WHEN - + 9 THEN + 13 END + + + COUNT ( ALL 96 ) END AS col1
----
NULL

query I rowsort
SELECT ( - NULLIF ( - + 6, - 11 ) )
----
6

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

query I rowsort
SELECT ALL 57 * 87
----
4959

query I rowsort
SELECT DISTINCT 75 * 94 * + 19
----
133950

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT + 16 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-2639
SELECT + 16 / + 76
----
0

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

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

query II rowsort
SELECT + 92 + ( + 60 ) AS col0, ( - 44 )
----
152
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + 80 DIV - NULLIF ( - - 77, - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 80 / - NULLIF ( - - 77, - 91 ) AS col0
----
-1

query I rowsort
SELECT + 85 * 48 col0
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - ( + CASE - 22 WHEN - ( + 50 ) THEN - - 93 WHEN - + 81 THEN NULL END ) * + CASE 15 WHEN 47 + - - COUNT( + 68 ) + + ( + 53 ) THEN - ( + MAX( 22 ) ) + 79 END + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT - ( + CASE - 22 WHEN - ( + 50 ) THEN - - 93 WHEN - + 81 THEN NULL END ) * + CASE 15 WHEN 47 + - - COUNT ( + 68 ) + + ( + 53 ) THEN - ( + MAX ( 22 ) ) + 79 END + + 49
----
NULL

query I rowsort
SELECT + 62 * - 90 AS col0
----
-5580

query II rowsort
SELECT ALL + 80 AS col1, 17 * + 0 col0
----
80
0

query I rowsort
SELECT + 73 + - 48
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2648
SELECT ALL ( + + COUNT( * ) ) DIV + ( - - 63 ) * - - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL ( + + COUNT ( * ) ) / + ( - - 63 ) * - - 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + 50 + 0 * - COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-2649
SELECT + 50 + 0 * - COUNT ( * ) col0
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2650
SELECT ALL + CAST( NULL AS DECIMAL ) * - 56 + - 61 * + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + CAST ( NULL AS REAL ) * - 56 + - 61 * + + 25 AS col2
----
NULL

query I rowsort
SELECT + + 69 * + 6 AS col0
----
414

query II rowsort
SELECT 86, 84 AS col1
----
86
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL - NULLIF ( - 32, - COUNT( * ) ) * + 95 * 53 * 28 + + 4 col1
----
4511364

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL - NULLIF ( - 32, - COUNT ( * ) ) * + 95 * 53 * 28 + + 4 col1
----
4511364

query I rowsort
SELECT DISTINCT + 97 * - - 40 + - 9 + - 22 - + 27 * + 48
----
2553

query I rowsort
SELECT ALL 63 + + 15 + 49 * + 53
----
2675

query I rowsort
SELECT - 7 + - 70
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - - MIN( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2657
SELECT - - MIN ( 57 ) AS col1
----
57

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

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - CAST ( NULL AS INTEGER ) * - 72
----
NULL

query I rowsort
SELECT + - 43 * + 29 - + 21 + 54 AS col2
----
-1214

query I rowsort
SELECT ALL - 37 + + 86
----
49

query I rowsort
SELECT DISTINCT + + 15 + 14 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - SUM( DISTINCT 40 ) * 39 * - - 17 + - + 87
----
-26607

skipif mysql # not compatible
query I rowsort label-2662
SELECT - SUM ( DISTINCT 40 ) * 39 * - - 17 + - + 87
----
-26607

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2663
SELECT 10 AS col0, AVG ( ALL CAST( NULL AS SIGNED ) )
----
10
NULL

skipif mysql # not compatible
query II rowsort label-2663
SELECT 10 AS col0, AVG ( ALL CAST ( NULL AS INTEGER ) )
----
10
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2664
SELECT + 50 AS col2, 4 + - COUNT( * ) DIV + 83
----
50
4

skipif mysql # not compatible
query II rowsort label-2664
SELECT + 50 AS col2, 4 + - COUNT ( * ) / + 83
----
50
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT ALL + + 73 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + + 73 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2667
SELECT - + 10 * - + ( + CASE + - 21 WHEN + + 59 THEN 41 + - 86 WHEN CAST( + 62 AS DECIMAL ) * 60 + - MIN( ALL - - 89 ) THEN + COUNT( * ) ELSE NULL END ) / COUNT( * ) + - ( - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT - + 10 * - + ( + CASE + - 21 WHEN + + 59 THEN 41 + - 86 WHEN CAST ( + 62 AS REAL ) * 60 + - MIN ( ALL - - 89 ) THEN + COUNT ( * ) ELSE NULL END ) / COUNT ( * ) + - ( - 32 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT - 87 + - 8 + + 86 * - NULLIF ( 77, + CASE - - CAST( NULL AS SIGNED ) WHEN 35 - CASE WHEN + 89 IS NULL THEN NULL ELSE + COUNT( * ) * - - 7 END THEN + 27 + + - CASE - 59 WHEN - + 76 THEN + 30 END END + 82 * - 68 ) * - 87 * + COUNT( * ) + - 86 * 26 AS col2
----
573783

skipif mysql # not compatible
query I rowsort label-2669
SELECT - 87 + - 8 + + 86 * - NULLIF ( 77, + CASE - - CAST ( NULL AS INTEGER ) WHEN 35 - CASE WHEN + 89 IS NULL THEN NULL ELSE + COUNT ( * ) * - - 7 END THEN + 27 + + - CASE - 59 WHEN - + 76 THEN + 30 END END + 82 * - 68 ) * - 87 * + COUNT ( * ) + - 86 * 26 AS col2
----
573783

query I rowsort
SELECT DISTINCT NULLIF ( - - NULLIF ( + - 22, + COALESCE ( + COALESCE ( + 24, + 6, + - 5 + + + 12 ), + 14 * + 81 ) - - - 12 + + 23 ), 80 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2671
SELECT - CAST( + - ( + - 47 ) AS SIGNED ) * + - 58 + + - 43 * 29 DIV + 80 + 23 + - 1 * - - COUNT( * )
----
2733

skipif mysql # not compatible
query I rowsort label-2671
SELECT - CAST ( + - ( + - 47 ) AS INTEGER ) * + - 58 + + - 43 * 29 / + 80 + 23 + - 1 * - - COUNT ( * )
----
2733

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

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

query I rowsort
SELECT - 40 * + 51
----
-2040

query I rowsort
SELECT ALL - 76 * - 47 * + - 28
----
-100016

query I rowsort
SELECT 84 + 91 AS col1
----
175

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

skipif mysql # not compatible
query I rowsort label-2676
SELECT 90 * - CAST ( NULL AS INTEGER ) / 55
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT DISTINCT ( - + COUNT( ALL - 46 ) ) + - - 56
----
55

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT ( - + COUNT ( ALL - 46 ) ) + - - 56
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL 61 + - 22 + + 10 * 75 * + - NULLIF ( - 77, - + COUNT( * ) ) * + 15 + COUNT( DISTINCT + 52 ) col0
----
866290

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL 61 + - 22 + + 10 * 75 * + - NULLIF ( - 77, - + COUNT ( * ) ) * + 15 + COUNT ( DISTINCT + 52 ) col0
----
866290

query I rowsort
SELECT ALL + 14 + 56 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT COUNT( * ) * + ( - CASE + CASE - 87 WHEN - - ( - 6 ) / 71 * + 56 + 34 * + 72 + + 28 / + AVG ( - - 72 ) - - 95 THEN NULL ELSE - - COALESCE ( + 50, + 78 * 0, - - AVG ( ALL - 18 ) + - 49 ) END WHEN - 2 THEN - - ( - + ( + 73 ) ) / - 47 WHEN + 24 * 14 + 99 * 55 THEN NULL WHEN + 6 / 99 THEN + 2 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT COUNT ( * ) * + ( - CASE + CASE - 87 WHEN - - ( - 6 ) / 71 * + 56 + 34 * + 72 + + 28 / + AVG ( - - 72 ) - - 95 THEN NULL ELSE - - COALESCE ( + 50, + 78 * 0, - - AVG ( ALL - 18 ) + - 49 ) END WHEN - 2 THEN - - ( - + ( + 73 ) ) / - 47 WHEN + 24 * 14 + 99 * 55 THEN NULL WHEN + 6 / 99 THEN + 2 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2683
SELECT DISTINCT + 71 * + 38 + ( + - 61 ) AS col2, ( SUM( + + 17 ) )
----
2637
17

skipif mysql # not compatible
query II rowsort label-2683
SELECT DISTINCT + 71 * + 38 + ( + - 61 ) AS col2, ( SUM ( + + 17 ) )
----
2637
17

query I rowsort
SELECT DISTINCT + - 51 + + - 93 * - 10
----
879

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ( + 51 ) - - COUNT( * ) + - 37 + - 56 + CASE 73 WHEN - 90 * - ( - 12 ) THEN 78 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ( + 51 ) - - COUNT ( * ) + - 37 + - 56 + CASE 73 WHEN - 90 * - ( - 12 ) THEN 78 END - COUNT ( * )
----
NULL

query I rowsort
SELECT + 30 - - ( - 30 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT 73 * CAST( NULL AS SIGNED ) * + + 98 + + ( + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT 73 * CAST ( NULL AS INTEGER ) * + + 98 + + ( + 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT ALL + - 9 + - COUNT( * ) * - 79 + - 27 AS col2, 46 + - COUNT( * ) + + + 75 AS col0
----
43
120

skipif mysql # not compatible
query II rowsort label-2688
SELECT ALL + - 9 + - COUNT ( * ) * - 79 + - 27 AS col2, 46 + - COUNT ( * ) + + + 75 AS col0
----
43
120

query I rowsort
SELECT ALL - + 46 * - 70 AS col1
----
3220

onlyif mysql # DIV for integer division: 
query II rowsort label-2690
SELECT DISTINCT - 44 DIV - 10 AS col0, 10 AS col1
----
4
10

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT - 44 / - 10 AS col0, 10 AS col1
----
4
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT + 28 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 28 / + 97
----
0

query I rowsort
SELECT - 24 + + 76 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT ( - + 65 ) * + 41 + 43 DIV + COUNT( * ) AS col1
----
-2622

skipif mysql # not compatible
query I rowsort label-2693
SELECT ( - + 65 ) * + 41 + 43 / + COUNT ( * ) AS col1
----
-2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT - CAST( NULL AS SIGNED ) + + 77 / + CASE - - 71 WHEN + COUNT( - COALESCE ( + 94, 14 + - 44 * - ( 60 ), - 85 ) ) THEN - 95 WHEN - 61 - + 80 THEN NULL ELSE NULL END * CASE + + 25 WHEN - 61 + 6 - - + 58 * 39 THEN + + 99 END * - ( + + ( COUNT( * ) ) ) - + 75 * - 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT - CAST ( NULL AS INTEGER ) + + 77 / + CASE - - 71 WHEN + COUNT ( - COALESCE ( + 94, 14 + - 44 * - ( 60 ), - 85 ) ) THEN - 95 WHEN - 61 - + 80 THEN NULL ELSE NULL END * CASE + + 25 WHEN - 61 + 6 - - + 58 * 39 THEN + + 99 END * - ( + + ( COUNT ( * ) ) ) - + 75 * - 97 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT ( - - CAST( NULL AS SIGNED ) ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT ( - - CAST ( NULL AS INTEGER ) ) + 97
----
NULL

query I rowsort
SELECT 84 + - 93 - + 87
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT DISTINCT 11 * + - CAST( + - CASE + 37 WHEN CAST( - ( - CASE + COUNT( * ) WHEN + + COUNT( * ) THEN + SUM( - 95 ) WHEN 57 THEN NULL ELSE NULL END ) AS SIGNED ) THEN NULL WHEN + CASE - 39 WHEN - 41 * - 1 * + 21 THEN NULL WHEN + MIN( + 45 ) THEN NULL WHEN + 74 THEN 9 + + 47 - - - ( + 30 ) * - 5 ELSE NULL END THEN - 74 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - + ( - 50 ) END AS SIGNED ) AS col0
----
550

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT 11 * + - CAST ( + - CASE + 37 WHEN CAST ( - ( - CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN + SUM ( - 95 ) WHEN 57 THEN NULL ELSE NULL END ) AS INTEGER ) THEN NULL WHEN + CASE - 39 WHEN - 41 * - 1 * + 21 THEN NULL WHEN + MIN ( + 45 ) THEN NULL WHEN + 74 THEN 9 + + 47 - - - ( + 30 ) * - 5 ELSE NULL END THEN - 74 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + ( - 50 ) END AS INTEGER ) AS col0
----
550

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT CAST( NULL AS SIGNED ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT CAST ( NULL AS INTEGER ) * 29
----
NULL

query I rowsort
SELECT 10 + 33 AS col2
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT 26 * COUNT( * ) * - 41 AS col1
----
-1066

skipif mysql # not compatible
query I rowsort label-2702
SELECT 26 * COUNT ( * ) * - 41 AS col1
----
-1066

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT DISTINCT + 0 DIV 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT + 0 / 9 AS col0
----
0

query I rowsort
SELECT ALL - ( - 98 ) + 95 AS col2
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT - CAST( + 86 AS SIGNED ) + - COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - CAST ( + 86 AS INTEGER ) + - COUNT ( * ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT DISTINCT + ( - COUNT( * ) ) + - 99 - + 95 AS col1
----
-195

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT + ( - COUNT ( * ) ) + - 99 - + 95 AS col1
----
-195

query I rowsort
SELECT DISTINCT + 0 * + 27
----
0

query I rowsort
SELECT 50 * 10
----
500

query I rowsort
SELECT DISTINCT + 10 + - 19 * + 44 AS col1
----
-826

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT + - COALESCE ( MIN( - - NULLIF ( 54, - 24 ) ), + 4 + + 77 * + + 17 * + - 30, - 41 + + - 79 * - 39 * + 41 ), - 14 col2
----
-54
-14

skipif mysql # not compatible
query II rowsort label-2712
SELECT + - COALESCE ( MIN ( - - NULLIF ( 54, - 24 ) ), + 4 + + 77 * + + 17 * + - 30, - 41 + + - 79 * - 39 * + 41 ), - 14 col2
----
-54
-14

query I rowsort
SELECT - 65 * - - 92 + - 62
----
-6042

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

skipif mysql # not compatible
query I rowsort label-2714
SELECT + + COUNT ( * ) * 95 - - 29 AS col1
----
124

query I rowsort
SELECT ALL - + ( - 37 ) - 72 + 63 + + 41 AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2716
SELECT DISTINCT - NULLIF ( + 61, 83 * COALESCE ( + 81, + CAST( NULL AS SIGNED ) * - 69, + - CAST( NULL AS SIGNED ) - + CASE COALESCE ( 28, MAX( + 88 ) ) WHEN 56 * 14 + - + 68 / + 57 * + 67 / CAST( - 7 AS DECIMAL ) + - 26 THEN 43 WHEN - 20 THEN NULL WHEN 63 * - 91 THEN NULL END ) + - 71 / - 86 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT - NULLIF ( + 61, 83 * COALESCE ( + 81, + CAST ( NULL AS INTEGER ) * - 69, + - CAST ( NULL AS INTEGER ) - + CASE COALESCE ( 28, MAX ( + 88 ) ) WHEN 56 * 14 + - + 68 / + 57 * + 67 / CAST ( - 7 AS REAL ) + - 26 THEN 43 WHEN - 20 THEN NULL WHEN 63 * - 91 THEN NULL END ) + - 71 / - 86 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL - 15 - - 41 * + + 98 + 83 + - COUNT( * ) AS col2
----
4085

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL - 15 - - 41 * + + 98 + 83 + - COUNT ( * ) AS col2
----
4085

query I rowsort
SELECT 49 * - + 31 + 97 AS col1
----
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - MIN( DISTINCT + 33 ) * + 92 + + + 52
----
-2984

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - MIN ( DISTINCT + 33 ) * + 92 + + + 52
----
-2984

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

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + - 31 / + + COUNT ( * )
----
-31

query I rowsort
SELECT - 69 * - 32 AS col1
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + 78 + + + ( + + COUNT( * ) ) * - 48
----
30

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 78 + + + ( + + COUNT ( * ) ) * - 48
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - COUNT( + 63 ) - - 33 * + + 57
----
1880

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - COUNT ( + 63 ) - - 33 * + + 57
----
1880

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

skipif mysql # not compatible
query I rowsort label-2724
SELECT 29 * - COUNT ( * ) * - + 59 + - + 59 AS col2
----
1652

query II rowsort
SELECT - - 75, 78 + ( - 72 ) AS col2
----
75
6

query I rowsort
SELECT + 5 + + 48 + + + 86 AS col0
----
139

query II rowsort
SELECT - + 21, + 15 AS col0
----
-21
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT 65 DIV - 72 * + 55 * - NULLIF ( - + 68, - NULLIF ( AVG ( 43 ), ( 3 ) * + - CASE - + MIN( + + 11 ) WHEN - - 19 THEN + 2 WHEN - + 45 + - AVG ( DISTINCT - 1 ) THEN NULL END + - - COUNT( * ) ) DIV - 97 ) - + 58 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2728
SELECT 65 / - 72 * + 55 * - NULLIF ( - + 68, - NULLIF ( AVG ( 43 ), ( 3 ) * + - CASE - + MIN ( + + 11 ) WHEN - - 19 THEN + 2 WHEN - + 45 + - AVG ( DISTINCT - 1 ) THEN NULL END + - - COUNT ( * ) ) / - 97 ) - + 58 AS col2
----
-58

query I rowsort
SELECT 98 * - 72 + - + 26 * 67 AS col0
----
-8798

query I rowsort
SELECT 94 * + 78
----
7332

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT ALL 34 DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 34 / + 40 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2732
SELECT DISTINCT 64 DIV 2 AS col1, + 66
----
32
66

skipif mysql # not compatible
query II rowsort label-2732
SELECT DISTINCT 64 / 2 AS col1, + 66
----
32
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2733
SELECT 45, - 2 + - 99 * - CAST( + COUNT( * ) AS SIGNED ) col1
----
45
97

skipif mysql # not compatible
query II rowsort label-2733
SELECT 45, - 2 + - 99 * - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
45
97

query II rowsort
SELECT ALL 33 col2, - 92
----
33
-92

query II rowsort
SELECT DISTINCT 85 AS col1, 36 * 66 * 46
----
85
109296

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL MIN( - 67 ) + - 60
----
-127

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL MIN ( - 67 ) + - 60
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + 57 - - CASE - 75 WHEN - + 32 - 2 + - 43 THEN NULL WHEN - 87 THEN + 81 * 97 - - SUM( ALL + 84 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT + 57 - - CASE - 75 WHEN - + 32 - 2 + - 43 THEN NULL WHEN - 87 THEN + 81 * 97 - - SUM ( ALL + 84 ) END AS col2
----
NULL

query II rowsort
SELECT ALL 44, - 55 col1
----
44
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2739
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN ( + 83 ) THEN - + MAX( + + ( NULLIF ( - 9, - 83 ) ) ) * + - 88 WHEN 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN ( + 83 ) THEN - + MAX ( + + ( NULLIF ( - 9, - 83 ) ) ) * + - 88 WHEN 84 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT ALL + 87 * - 52 + + 87 + 34 + + + 70 DIV - + 86 * + + 50 + COUNT( * ) - 4 * - - COUNT( * )
----
-4406

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL + 87 * - 52 + + 87 + 34 + + + 70 / - + 86 * + + 50 + COUNT ( * ) - 4 * - - COUNT ( * )
----
-4406

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT CASE + COUNT( * ) WHEN + + ( - 79 ) THEN - 74 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT CASE + COUNT ( * ) WHEN + + ( - 79 ) THEN - 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT ALL 87 * 12 + 59 * + - 0 DIV COUNT( * ) AS col2
----
1044

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL 87 * 12 + 59 * + - 0 / COUNT ( * ) AS col2
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT DISTINCT + 71 * - NULLIF ( + - 88, - 37 * 33 * - COUNT( * ) ) + - + ( - COUNT( * ) )
----
6249

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT + 71 * - NULLIF ( + - 88, - 37 * 33 * - COUNT ( * ) ) + - + ( - COUNT ( * ) )
----
6249

query I rowsort
SELECT COALESCE ( 66, + 91 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT + 67 AS col0, - 93 * 70 * - NULLIF ( 50, + - COUNT( * ) ) AS col0
----
67
325500

skipif mysql # not compatible
query II rowsort label-2745
SELECT + 67 AS col0, - 93 * 70 * - NULLIF ( 50, + - COUNT ( * ) ) AS col0
----
67
325500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT - 63 / + + CASE + 39 WHEN + COUNT( * ) * + + 60 THEN + 20 + 5 * + CASE ( - ( - - 55 ) ) WHEN - CASE ( + 84 ) WHEN 75 THEN - + 27 * 99 * CASE 1 WHEN 8 / MAX( DISTINCT + 30 ) - - 53 - - 9 / - 90 THEN NULL WHEN - COUNT( * ) THEN + CAST( + ( 89 ) AS SIGNED ) ELSE NULL END / NULLIF ( - 20, 80 ) WHEN 32 THEN NULL ELSE NULL END THEN - 42 ELSE COUNT( * ) * 92 END END * - 43 + + CASE 2 + 71 WHEN CAST( NULL AS SIGNED ) * + NULLIF ( - ( 66 ), - CASE + CASE - 10 WHEN NULLIF ( 25, + ( + 73 ) / + 33 - 34 ) * 41 - 5 * - 19 THEN MAX( ALL - 24 ) * + 98 WHEN 85 + + AVG ( + 79 ) THEN NULL ELSE - 66 END WHEN COUNT( * ) THEN CASE + 80 WHEN + NULLIF ( 33, - 28 + ( 75 ) ) - - 98 THEN COUNT( * ) + MAX( 70 ) * - COUNT( 42 * + NULLIF ( 0, 14 ) ) WHEN + ( ( 35 ) ) * - 45 THEN NULL WHEN + 62 + + 99 THEN NULL END + 71 END ) THEN + 96 ELSE + ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT - 63 / + + CASE + 39 WHEN + COUNT ( * ) * + + 60 THEN + 20 + 5 * + CASE ( - ( - - 55 ) ) WHEN - CASE ( + 84 ) WHEN 75 THEN - + 27 * 99 * CASE 1 WHEN 8 / MAX ( DISTINCT + 30 ) - - 53 - - 9 / - 90 THEN NULL WHEN - COUNT ( * ) THEN + CAST ( + ( 89 ) AS INTEGER ) ELSE NULL END / NULLIF ( - 20, 80 ) WHEN 32 THEN NULL ELSE NULL END THEN - 42 ELSE COUNT ( * ) * 92 END END * - 43 + + CASE 2 + 71 WHEN CAST ( NULL AS INTEGER ) * + NULLIF ( - ( 66 ), - CASE + CASE - 10 WHEN NULLIF ( 25, + ( + 73 ) / + 33 - 34 ) * 41 - 5 * - 19 THEN MAX ( ALL - 24 ) * + 98 WHEN 85 + + AVG ( + 79 ) THEN NULL ELSE - 66 END WHEN COUNT ( * ) THEN CASE + 80 WHEN + NULLIF ( 33, - 28 + ( 75 ) ) - - 98 THEN COUNT ( * ) + MAX ( 70 ) * - COUNT ( 42 * + NULLIF ( 0, 14 ) ) WHEN + ( ( 35 ) ) * - 45 THEN NULL WHEN + 62 + + 99 THEN NULL END + 71 END ) THEN + 96 ELSE + ( COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 21 * + 98 - - 31
----
2089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL - 61 * + CAST( NULL AS SIGNED ) * 44 * - 94 + + + ( + MIN( + 87 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - 61 * + CAST ( NULL AS INTEGER ) * 44 * - 94 + + + ( + MIN ( + 87 ) )
----
NULL

query I rowsort
SELECT - - 55 * - ( + - 71 ) AS col0
----
3905

query II rowsort
SELECT - 84, 9 AS col1
----
-84
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2751
SELECT ALL + + 79 AS col0, 22 * + 34 * + COUNT( * ) AS col1
----
79
748

skipif mysql # not compatible
query II rowsort label-2751
SELECT ALL + + 79 AS col0, 22 * + 34 * + COUNT ( * ) AS col1
----
79
748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT ALL + + 79 * CASE + - 32 WHEN CAST( + COUNT( * ) AS SIGNED ) THEN NULL WHEN + - 32 THEN - 0 ELSE 80 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + + 79 * CASE + - 32 WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL WHEN + - 32 THEN - 0 ELSE 80 END AS col1
----
0

query I rowsort
SELECT + - 20 * + - 80 * - 1 AS col0
----
-1600

query I rowsort
SELECT - 15 - 43 - - 46 + - 10
----
-22

query II rowsort
SELECT + + 59, + 78 AS col1
----
59
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT - CAST( NULL AS SIGNED ) - - 43 / + 72 * 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT - CAST ( NULL AS INTEGER ) - - 43 / + 72 * 80 AS col1
----
NULL

query II rowsort
SELECT ALL - 33 AS col1, - 55 AS col1
----
-33
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL - COALESCE ( + ( CAST( - 59 AS SIGNED ) ), - 29 + - 16 * + + 74 )
----
59

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - COALESCE ( + ( CAST ( - 59 AS INTEGER ) ), - 29 + - 16 * + + 74 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT - 25, COUNT( * ) + - 4 col1
----
-25
-3

skipif mysql # not compatible
query II rowsort label-2760
SELECT - 25, COUNT ( * ) + - 4 col1
----
-25
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT - 17 - + + NULLIF ( - MIN( DISTINCT - 31 ), + 33 ) * + - 87 + - 37, 83 AS col2
----
2643
83

skipif mysql # not compatible
query II rowsort label-2761
SELECT - 17 - + + NULLIF ( - MIN ( DISTINCT - 31 ), + 33 ) * + - 87 + - 37, 83 AS col2
----
2643
83

query I rowsort
SELECT - ( 65 ) + + 87 + 98 AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT - 93 - + CASE 90 WHEN 35 * - 24 + - + 83 * - COUNT( * ) THEN NULL ELSE CASE 65 WHEN CAST( 18 AS SIGNED ) THEN 92 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT - 93 - + CASE 90 WHEN 35 * - 24 + - + 83 * - COUNT ( * ) THEN NULL ELSE CASE 65 WHEN CAST ( 18 AS INTEGER ) THEN 92 ELSE NULL END END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - COUNT ( DISTINCT + 34 ) * 80 AS col1
----
-80

query I rowsort
SELECT - 63 + 40 * + + 11 * + + 82
----
36017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2766
SELECT + 69 * CAST( + - COUNT( * ) AS SIGNED ), 98 AS col0
----
-69
98

skipif mysql # not compatible
query II rowsort label-2766
SELECT + 69 * CAST ( + - COUNT ( * ) AS INTEGER ), 98 AS col0
----
-69
98

query II rowsort
SELECT - 81 + - - 23 AS col0, 27 col1
----
-58
27

query I rowsort
SELECT - NULLIF ( 84, + 60 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT - 33 + - - CASE + 90 WHEN + - 1 * + 54 + 7 + 83 + + CAST( NULL AS SIGNED ) - CAST( - COALESCE ( - 47, MAX( DISTINCT + - 59 ) + 26, - 60 ) AS SIGNED ) + + COUNT( * ) * - COUNT( * ) THEN + 12 * 39 * 91 * MAX( 19 ) + 45 * + 54 + + + COUNT( ALL + 21 ) + + + 93 ELSE - 5 END + - ( + + 41 ) - - 97 * + 21
----
1958

skipif mysql # not compatible
query I rowsort label-2769
SELECT - 33 + - - CASE + 90 WHEN + - 1 * + 54 + 7 + 83 + + CAST ( NULL AS INTEGER ) - CAST ( - COALESCE ( - 47, MAX ( DISTINCT + - 59 ) + 26, - 60 ) AS INTEGER ) + + COUNT ( * ) * - COUNT ( * ) THEN + 12 * 39 * 91 * MAX ( 19 ) + 45 * + 54 + + + COUNT ( ALL + 21 ) + + + 93 ELSE - 5 END + - ( + + 41 ) - - 97 * + 21
----
1958

query I rowsort
SELECT + 9 + - + 71 * + - 10 * + 66
----
46869

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2771
SELECT ALL + 28 + - + 42 + - CAST( 63 AS SIGNED ) * - - 37, - 18 AS col1
----
-2345
-18

skipif mysql # not compatible
query II rowsort label-2771
SELECT ALL + 28 + - + 42 + - CAST ( 63 AS INTEGER ) * - - 37, - 18 AS col1
----
-2345
-18

query I rowsort
SELECT - CASE + - 72 WHEN - 51 + - 20 THEN NULL WHEN + 59 THEN + 54 + - + 36 ELSE + 8 END
----
-8

query I rowsort
SELECT ALL 97 + 98
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT + 3 + - 66 DIV - 92 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2774
SELECT + 3 + - 66 / - 92 + - COUNT ( * )
----
2

query I rowsort
SELECT - 74 * + 86 AS col0
----
-6364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT CAST( - COALESCE ( 35, MAX( DISTINCT 76 ) / - 37 / + 67 * + 14 ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-2776
SELECT CAST ( - COALESCE ( 35, MAX ( DISTINCT 76 ) / - 37 / + 67 * + 14 ) AS INTEGER )
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2778
SELECT + 85 + - - SUM( ALL + 74 ) + - 33 + - COUNT( * ) DIV + - 83 * 46 * ( - + 59 )
----
126

skipif mysql # not compatible
query I rowsort label-2778
SELECT + 85 + - - SUM ( ALL + 74 ) + - 33 + - COUNT ( * ) / + - 83 * 46 * ( - + 59 )
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2779
SELECT + 43 * 44 DIV - - SUM( ALL + 82 )
----
23

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 43 * 44 / - - SUM ( ALL + 82 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + MAX( 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2780
SELECT + MAX ( 4 ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2781
SELECT DISTINCT - CAST( NULL AS SIGNED ) / COUNT( * ) / - + 77 - - + 79 + - MIN( ALL 77 ) * - - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / COUNT ( * ) / - + 77 - - + 79 + - MIN ( ALL 77 ) * - - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + 46 + - MIN( + 5 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-2782
SELECT + 46 + - MIN ( + 5 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT + CASE + 73 WHEN + + 42 + - 37 * 35 THEN + 84 WHEN 94 * + 33 * + 93 THEN NULL END * COUNT( * ) / - 23 + - - 61 - + 12 * + + 73 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT + CASE + 73 WHEN + + 42 + - 37 * 35 THEN + 84 WHEN 94 * + 33 * + 93 THEN NULL END * COUNT ( * ) / - 23 + - - 61 - + 12 * + + 73 * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2784
SELECT - 60 * + 31, + 55 * + COUNT( * ) AS col2
----
-1860
55

skipif mysql # not compatible
query II rowsort label-2784
SELECT - 60 * + 31, + 55 * + COUNT ( * ) AS col2
----
-1860
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL + CASE + 59 WHEN + 67 * + - 85 + + ( - + COALESCE ( - 42, + 50 * - - 90 - - 1 - - COUNT( * ) + - COUNT( * ), - + AVG ( ALL + 33 ) ) ) + 2 THEN + 65 * 22 + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL + CASE + 59 WHEN + 67 * + - 85 + + ( - + COALESCE ( - 42, + 50 * - - 90 - - 1 - - COUNT ( * ) + - COUNT ( * ), - + AVG ( ALL + 33 ) ) ) + 2 THEN + 65 * 22 + 46 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2786
SELECT - COUNT ( * ) * - 19 + + - 25 AS col0
----
-6

query I rowsort
SELECT + - 57 + + 83
----
26

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT DISTINCT + - MAX( ALL - 36 ) AS col2, 86
----
36
86

skipif mysql # not compatible
query II rowsort label-2789
SELECT DISTINCT + - MAX ( ALL - 36 ) AS col2, 86
----
36
86

query II rowsort
SELECT DISTINCT + 44 * - 70 col1, + NULLIF ( - - 58, - 78 ) AS col2
----
-3080
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2791
SELECT CAST( + 79 AS SIGNED ) DIV - ( + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-2791
SELECT CAST ( + 79 AS INTEGER ) / - ( + 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - 30 * - 3 + + + SUM( ALL + 6 ) + + - 68 + + 51
----
79

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 30 * - 3 + + + SUM ( ALL + 6 ) + + - 68 + + 51
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT - 6 * 67 + + + 29 + + + CAST( - 61 AS SIGNED ) + - 61 AS col2
----
-495

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 6 * 67 + + + 29 + + + CAST ( - 61 AS INTEGER ) + - 61 AS col2
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - 13 + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - 13 + - COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT ALL + CASE - 43 WHEN + + CAST( 51 AS SIGNED ) * - COUNT( * ) THEN NULL ELSE - + 37 + + 70 END + + 40 + - 28 - 48 + - NULLIF ( + + 99, COUNT( ALL + - 73 ) ) + + + 1 + - 94 * + - 97 - - COALESCE ( - + 73, - ( 33 ) * 32 + 55 ) * + 49 AS col2
----
5440

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + CASE - 43 WHEN + + CAST ( 51 AS INTEGER ) * - COUNT ( * ) THEN NULL ELSE - + 37 + + 70 END + + 40 + - 28 - 48 + - NULLIF ( + + 99, COUNT ( ALL + - 73 ) ) + + + 1 + - 94 * + - 97 - - COALESCE ( - + 73, - ( 33 ) * 32 + 55 ) * + 49 AS col2
----
5440

query II rowsort
SELECT 32 AS col2, 73 * - - 91
----
32
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT 38 + + 39 + + - COUNT( ALL 92 ) + - + NULLIF ( 73, - AVG ( ALL COALESCE ( - + 85, + 58 * - ( + - 7 ) ) ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2797
SELECT 38 + + 39 + + - COUNT ( ALL 92 ) + - + NULLIF ( 73, - AVG ( ALL COALESCE ( - + 85, + 58 * - ( + - 7 ) ) ) ) AS col1
----
3

query I rowsort
SELECT 9 * + + 15 AS col2
----
135

query I rowsort
SELECT DISTINCT + ( - 11 ) + - 82
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT 54 DIV + + 32
----
1

skipif mysql # not compatible
query I rowsort label-2800
SELECT 54 / + + 32
----
1

query I rowsort
SELECT 25 * - + 67 AS col0
----
-1675

onlyif mysql # aggregate syntax: 
query II rowsort label-2802
SELECT 48 col2, ( + MAX( ALL + 37 ) ) AS col1
----
48
37

skipif mysql # not compatible
query II rowsort label-2802
SELECT 48 col2, ( + MAX ( ALL + 37 ) ) AS col1
----
48
37

query I rowsort
SELECT DISTINCT + 51 * + - 74 col1
----
-3774

query I rowsort
SELECT 44 - 78 * 31
----
-2374

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

skipif mysql # not compatible
query I rowsort label-2805
SELECT 50 * + CAST ( NULL AS REAL ) * - ( - - 25 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2806
SELECT ALL - - MIN( ALL NULLIF ( CAST( NULL AS SIGNED ), 42 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - - MIN ( ALL NULLIF ( CAST ( NULL AS INTEGER ), 42 ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT DISTINCT + + 24 DIV - + 72 * - + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + + 24 / - + 72 * - + 56 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2808
SELECT 63 - - 26 - + 28 AS col0, 40 DIV + - COUNT( - 71 ) AS col1
----
61
-40

skipif mysql # not compatible
query II rowsort label-2808
SELECT 63 - - 26 - + 28 AS col0, 40 / + - COUNT ( - 71 ) AS col1
----
61
-40

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

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

query II rowsort
SELECT ALL - + 14 AS col1, 12 + + 7
----
-14
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + + COUNT( - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-2811
SELECT + + COUNT ( - 76 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT + 16 DIV + + 67 + + CASE MIN( ALL - + 4 ) WHEN - - 41 THEN - - 83 * 32 + + 17 ELSE + - 49 - - - COUNT( * ) + - 79 + - COUNT( * ) DIV + 79 END + - 3
----
-132

skipif mysql # not compatible
query I rowsort label-2812
SELECT + 16 / + + 67 + + CASE MIN ( ALL - + 4 ) WHEN - - 41 THEN - - 83 * 32 + + 17 ELSE + - 49 - - - COUNT ( * ) + - 79 + - COUNT ( * ) / + 79 END + - 3
----
-132

query II rowsort
SELECT + 53 AS col2, 71 + + + 5 * + COALESCE ( - - 56, - NULLIF ( - + 92, + - 19 ) ) + + ( - 47 ) AS col2
----
53
304

query I rowsort
SELECT ALL + - 82 + + 39
----
-43

query I rowsort
SELECT - 24 * + 46
----
-1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL 63 + - CAST( + - 9 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL 63 + - CAST ( + - 9 AS INTEGER )
----
72

query I rowsort
SELECT DISTINCT - 15 * - 58 * + 41 AS col1
----
35670

query II rowsort
SELECT 52 AS col1, - 30
----
52
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT - 90 DIV - + 58
----
1

skipif mysql # not compatible
query I rowsort label-2819
SELECT - 90 / - + 58
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT 42 * + SUM( ALL - 11 ) AS col0
----
-462

skipif mysql # not compatible
query I rowsort label-2820
SELECT 42 * + SUM ( ALL - 11 ) AS col0
----
-462

onlyif mysql # DIV for integer division: 
query II rowsort label-2821
SELECT 19 * 52 AS col0, + 75 DIV 61 AS col2
----
988
1

skipif mysql # not compatible
query II rowsort label-2821
SELECT 19 * 52 AS col0, + 75 / 61 AS col2
----
988
1

query I rowsort
SELECT DISTINCT - ( - 42 ) * 31 AS col0
----
1302

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT 9 + - 70 * + + COUNT( * ) * + 43 AS col1, 8 * + 22
----
-3001
176

skipif mysql # not compatible
query II rowsort label-2823
SELECT 9 + - 70 * + + COUNT ( * ) * + 43 AS col1, 8 * + 22
----
-3001
176

query II rowsort
SELECT 44 - - 31 - - 80 - - + 99 * 51, - 50 AS col1
----
5204
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT CAST( NULL AS SIGNED ) + + 34 * + AVG ( DISTINCT - + 28 ) + - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT CAST ( NULL AS INTEGER ) + + 34 * + AVG ( DISTINCT - + 28 ) + - + 16 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT - MAX( DISTINCT - CAST( - 45 AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-2826
SELECT - MAX ( DISTINCT - CAST ( - 45 AS INTEGER ) )
----
-45

query I rowsort
SELECT COALESCE ( 50, 12 + ( + + CASE 62 WHEN + 81 THEN + - 41 WHEN + 39 THEN + - 66 END ) ) + 29
----
79

query I rowsort
SELECT 70 * + 37
----
2590

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

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

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

query I rowsort
SELECT ALL + 38 * + - 32
----
-1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2832
SELECT COUNT( * ) DIV 76 * - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT COUNT ( * ) / 76 * - 28 AS col1
----
0

query I rowsort
SELECT DISTINCT 30 * + + 7 * + 25 + - - 23 * + + 4
----
5342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT COUNT( * ) * - ( + + CAST( NULL AS SIGNED ) ) + + 64 + - - 72 + + 86 / - 73 * - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT COUNT ( * ) * - ( + + CAST ( NULL AS INTEGER ) ) + + 64 + - - 72 + + 86 / - 73 * - + 40
----
NULL

query I rowsort
SELECT ALL - 6 * - 79 + COALESCE ( + ( 73 ), + NULLIF ( + 40, - - 93 * - - 34 + - NULLIF ( 10, - 45 ) + 28 - + 99 ), 39 ) AS col2
----
547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT - - 80 + + COUNT( ALL - 81 ) * - - 2 * + + 8 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT - - 80 + + COUNT ( ALL - 81 ) * - - 2 * + + 8 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT - - COUNT( * ) / - CAST( NULL AS SIGNED ) + + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT - - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + + - 28
----
NULL

query I rowsort
SELECT + NULLIF ( - - 84, 44 ) * - 90 - + 87 + ( + + 73 ) + - 83 * ( + 48 )
----
-11558

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL - CASE - 7 WHEN ( + - 62 ) THEN - + 77 * + + 16 * + 55 WHEN CAST( NULL AS SIGNED ) THEN + - 37 END * COUNT( + 21 ) + - + 69 - - ( + MAX( 22 ) ) * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - CASE - 7 WHEN ( + - 62 ) THEN - + 77 * + + 16 * + 55 WHEN CAST ( NULL AS INTEGER ) THEN + - 37 END * COUNT ( + 21 ) + - + 69 - - ( + MAX ( 22 ) ) * - 60 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2842
SELECT + - MIN ( 9 )
----
-9

query I rowsort
SELECT - 59 * 17 + 34 + - - 50
----
-919

query II rowsort
SELECT + ( - 23 ) AS col2, 32 AS col1
----
-23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + 34 + - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2845
SELECT + 34 + - COUNT ( * ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2846
SELECT ALL - COUNT( DISTINCT - 70 ) * + ( - NULLIF ( - + 22, - 13 * - 5 * - CASE COALESCE ( 81, - - 38 * + 41 ) WHEN - 67 THEN - AVG ( - 9 ) * - COUNT( * ) / - 22 - + + CAST( NULL AS SIGNED ) WHEN 53 THEN NULL ELSE + 83 * 37 / 37 END + - 86 + - NULLIF ( - - 7, - COUNT( * ) * - COUNT( DISTINCT + 52 ) - 87 + + COUNT( * ) * - + 23 + 70 + - CAST( NULL AS DECIMAL ) + - CASE - ( - 93 ) WHEN 42 + + 31 * - 61 THEN NULL WHEN - 24 THEN + 69 / 12 WHEN 33 THEN NULL ELSE 17 / 48 END ) ) ) - NULLIF ( 27, COUNT( DISTINCT 75 ) + - 27 * ( 46 * - ( + COUNT( * ) ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - COUNT ( DISTINCT - 70 ) * + ( - NULLIF ( - + 22, - 13 * - 5 * - CASE COALESCE ( 81, - - 38 * + 41 ) WHEN - 67 THEN - AVG ( - 9 ) * - COUNT ( * ) / - 22 - + + CAST ( NULL AS INTEGER ) WHEN 53 THEN NULL ELSE + 83 * 37 / 37 END + - 86 + - NULLIF ( - - 7, - COUNT ( * ) * - COUNT ( DISTINCT + 52 ) - 87 + + COUNT ( * ) * - + 23 + 70 + - CAST ( NULL AS REAL ) + - CASE - ( - 93 ) WHEN 42 + + 31 * - 61 THEN NULL WHEN - 24 THEN + 69 / 12 WHEN 33 THEN NULL ELSE 17 / 48 END ) ) ) - NULLIF ( 27, COUNT ( DISTINCT 75 ) + - 27 * ( 46 * - ( + COUNT ( * ) ) ) )
----
-49

query II rowsort
SELECT DISTINCT + 58 AS col2, - 0 col0
----
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + SUM( - + 53 ) * - - 87 AS col1
----
-4611

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + SUM ( - + 53 ) * - - 87 AS col1
----
-4611

query I rowsort
SELECT ALL ( - 90 ) * + + 83 AS col0
----
-7470

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT + 80 + - + ( - + CASE + 13 WHEN 72 THEN + CAST( + ( - COUNT( * ) ) AS SIGNED ) + - - 48 ELSE 67 END ) col2
----
147

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 80 + - + ( - + CASE + 13 WHEN 72 THEN + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + - - 48 ELSE 67 END ) col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL COUNT( DISTINCT + 29 ) - + - ( - + 90 )
----
-89

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL COUNT ( DISTINCT + 29 ) - + - ( - + 90 )
----
-89

query I rowsort
SELECT + 51 * - 25
----
-1275

query I rowsort
SELECT + ( - - 65 ) + - 84 * 16
----
-1279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL ( + + NULLIF ( COUNT( * ), - - 48 + ( 17 ) + 50 + + - 61 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL ( + + NULLIF ( COUNT ( * ), - - 48 + ( 17 ) + 50 + + - 61 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT ALL 15 * ( - ( + 81 ) ) DIV 11 DIV - - 57
----
-1

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL 15 * ( - ( + 81 ) ) / 11 / - - 57
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2858
SELECT DISTINCT MAX( DISTINCT + ( - + 85 ) ) AS col2, MAX( - - 25 )
----
-85
25

skipif mysql # not compatible
query II rowsort label-2858
SELECT DISTINCT MAX ( DISTINCT + ( - + 85 ) ) AS col2, MAX ( - - 25 )
----
-85
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT ALL 44 DIV + 5
----
8

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL 44 / + 5
----
8

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

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL + 34 * + COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - ( - SUM( ALL - 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-2861
SELECT - ( - SUM ( ALL - 38 ) )
----
-38

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

skipif mysql # not compatible
query I rowsort label-2862
SELECT - MIN ( + + 32 )
----
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT - CAST( - + 48 AS SIGNED ) + + + MIN( + + 38 ) * + + 71 * 37 AS col1
----
99874

skipif mysql # not compatible
query I rowsort label-2864
SELECT - CAST ( - + 48 AS INTEGER ) + + + MIN ( + + 38 ) * + + 71 * 37 AS col1
----
99874

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

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

query I rowsort
SELECT - 13 + 22 col0
----
9

query I rowsort
SELECT ALL - 50 + 22
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2868
SELECT - - 64 AS col2, CAST( 74 AS SIGNED ) AS col0
----
64
74

skipif mysql # not compatible
query II rowsort label-2868
SELECT - - 64 AS col2, CAST ( 74 AS INTEGER ) AS col0
----
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT - 39 + + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT - 39 + + + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2870
SELECT ALL 40 * - COUNT( 85 ) AS col1, + ( CASE + 16 WHEN + + MAX( ALL + 66 ) THEN NULL WHEN + ( - COUNT( * ) ) + 29 THEN 75 ELSE - 27 * + 6 END )
----
-40
-162

skipif mysql # not compatible
query II rowsort label-2870
SELECT ALL 40 * - COUNT ( 85 ) AS col1, + ( CASE + 16 WHEN + + MAX ( ALL + 66 ) THEN NULL WHEN + ( - COUNT ( * ) ) + 29 THEN 75 ELSE - 27 * + 6 END )
----
-40
-162

query I rowsort
SELECT - 83 - - 17
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL ( + - CASE - 32 WHEN + + 99 * - 65 THEN - 96 WHEN + ( - COALESCE ( + 14, CASE + 64 WHEN + - 80 THEN NULL ELSE - - CAST( NULL AS SIGNED ) * + COUNT( * ) / 95 * + + 40 END + - + COUNT( * ) ) ) * NULLIF ( 16, - - 91 + + 38 + + 43 / 24 ) THEN + 21 - - 60 END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL ( + - CASE - 32 WHEN + + 99 * - 65 THEN - 96 WHEN + ( - COALESCE ( + 14, CASE + 64 WHEN + - 80 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 95 * + + 40 END + - + COUNT ( * ) ) ) * NULLIF ( 16, - - 91 + + 38 + + 43 / 24 ) THEN + 21 - - 60 END ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + - 99 ) col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT ALL + 16 DIV CASE - - COALESCE ( - + COUNT( * ), + 18 + - - COUNT( * ) DIV - 17, CAST( + NULLIF ( + + COUNT( * ), 30 DIV - ( + 12 ) * + + 45 ) AS SIGNED ) + - - 78 ) WHEN - 30 + + 48 THEN + 69 - - 25 + - COUNT( ALL - 26 ) ELSE 41 * - 11 END + COALESCE ( 11, + - MIN( DISTINCT 54 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + 16 / CASE - - COALESCE ( - + COUNT ( * ), + 18 + - - COUNT ( * ) / - 17, CAST ( + NULLIF ( + + COUNT ( * ), 30 / - ( + 12 ) * + + 45 ) AS INTEGER ) + - - 78 ) WHEN - 30 + + 48 THEN + 69 - - 25 + - COUNT ( ALL - 26 ) ELSE 41 * - 11 END + COALESCE ( 11, + - MIN ( DISTINCT 54 ) ) AS col1
----
11

query II rowsort
SELECT DISTINCT + 74, 97 AS col1
----
74
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + + COUNT( * ) * - 20 * - - NULLIF ( + 4, + - 37 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2876
SELECT + + COUNT ( * ) * - 20 * - - NULLIF ( + 4, + - 37 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2877
SELECT ALL - - 51 DIV - + SUM( + CAST( 80 AS SIGNED ) ) + - 82 AS col0, - SUM( ALL - 7 )
----
-82
7

skipif mysql # not compatible
query II rowsort label-2877
SELECT ALL - - 51 / - + SUM ( + CAST ( 80 AS INTEGER ) ) + - 82 AS col0, - SUM ( ALL - 7 )
----
-82
7

query I rowsort
SELECT ALL - - 53 * + + 75
----
3975

query I rowsort
SELECT ( 10 ) col1
----
10

query I rowsort
SELECT - 81 * - ( ( - 30 ) )
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL - 44 * - + 52 - - COUNT( * ) AS col2
----
2289

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - 44 * - + 52 - - COUNT ( * ) AS col2
----
2289

query I rowsort
SELECT - 28 * 12 AS col2
----
-336

query I rowsort
SELECT - 87 * + - 99
----
8613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT 0 * - 59 + - CASE - NULLIF ( + - ( + CAST( NULL AS SIGNED ) ), + 81 / + 63 + + + 55 ) WHEN + 52 + + 4 + 77 * 85 * - 30 / + 62 THEN + 60 / - 49 * 22 + NULLIF ( 56, - + 19 * - ( - MAX( NULLIF ( + - 35, + 16 ) ) ) - SUM( ALL + - ( 72 ) ) ) WHEN - + 56 THEN NULL ELSE NULL END + COUNT( * ) + - 91 * + + ( + + 42 ) * + ( 67 ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT 0 * - 59 + - CASE - NULLIF ( + - ( + CAST ( NULL AS INTEGER ) ), + 81 / + 63 + + + 55 ) WHEN + 52 + + 4 + 77 * 85 * - 30 / + 62 THEN + 60 / - 49 * 22 + NULLIF ( 56, - + 19 * - ( - MAX ( NULLIF ( + - 35, + 16 ) ) ) - SUM ( ALL + - ( 72 ) ) ) WHEN - + 56 THEN NULL ELSE NULL END + COUNT ( * ) + - 91 * + + ( + + 42 ) * + ( 67 ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT + CASE + - 98 WHEN + + 76 THEN + - COALESCE ( - - 19, + CASE - - 30 WHEN 77 THEN NULL ELSE + + 66 END, - ( + COUNT( * ) ) ) + + - 20 + - + COALESCE ( - - 0, COUNT( * ) + + - 61 ) * - - 81 * - COUNT( * ) WHEN - 37 THEN NULL WHEN + CAST( - 57 AS SIGNED ) THEN COUNT( * ) * - 82 + - - 99 * + 68 ELSE + - 20 - - 66 - + 57 END
----
-11

skipif mysql # not compatible
query I rowsort label-2885
SELECT + CASE + - 98 WHEN + + 76 THEN + - COALESCE ( - - 19, + CASE - - 30 WHEN 77 THEN NULL ELSE + + 66 END, - ( + COUNT ( * ) ) ) + + - 20 + - + COALESCE ( - - 0, COUNT ( * ) + + - 61 ) * - - 81 * - COUNT ( * ) WHEN - 37 THEN NULL WHEN + CAST ( - 57 AS INTEGER ) THEN COUNT ( * ) * - 82 + - - 99 * + 68 ELSE + - 20 - - 66 - + 57 END
----
-11

query I rowsort
SELECT - 51 * - - 30
----
-1530

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT + 57 * + 71 AS col0, - COALESCE ( + ( + 53 ), + 30 * - CASE + 7 WHEN 27 THEN - 39 ELSE NULL END * + MIN( + ( + 45 ) ) - - + 6 + 5 ) AS col0
----
4047
-53

skipif mysql # not compatible
query II rowsort label-2887
SELECT + 57 * + 71 AS col0, - COALESCE ( + ( + 53 ), + 30 * - CASE + 7 WHEN 27 THEN - 39 ELSE NULL END * + MIN ( + ( + 45 ) ) - - + 6 + 5 ) AS col0
----
4047
-53

query I rowsort
SELECT - 68 - - - 30 AS col2
----
-98

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT DISTINCT + COUNT( * ) col0, ( 64 ) * - 56 AS col0
----
1
-3584

skipif mysql # not compatible
query II rowsort label-2890
SELECT DISTINCT + COUNT ( * ) col0, ( 64 ) * - 56 AS col0
----
1
-3584

query II rowsort
SELECT ALL 39 * + 43 AS col0, 56 col0
----
1677
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - COUNT( * ) + 5 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2892
SELECT - COUNT ( * ) + 5 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT 38 * + 91 + + - ( ( + COUNT( * ) ) ) AS col0
----
3457

skipif mysql # not compatible
query I rowsort label-2893
SELECT 38 * + 91 + + - ( ( + COUNT ( * ) ) ) AS col0
----
3457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - MIN( 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - MIN ( 41 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT DISTINCT CAST( - - 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT CAST ( - - 83 AS INTEGER ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL - 38 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - 38 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 85 + 99 + - 65 * + CASE + 43 WHEN - COALESCE ( + - 3, + 75 ) THEN NULL WHEN + 21 THEN - - AVG ( DISTINCT - + 82 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - MIN( 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2898
SELECT - MIN ( 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT - 61 + - 97 - - COUNT( * ) - - - COUNT( * ) * - + ( - 67 ) DIV + + 48 AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 61 + - 97 - - COUNT ( * ) - - - COUNT ( * ) * - + ( - 67 ) / + + 48 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL 73 + - + COUNT( * ) + - COUNT( * ) + 48 - - 55 + - COALESCE ( - + 88, COUNT( * ), + + 85, - + 23 ) + SUM( + 76 ) * + 45 * - - COUNT( * ) * - - 57 - + 97 * + 68
----
188606

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL 73 + - + COUNT ( * ) + - COUNT ( * ) + 48 - - 55 + - COALESCE ( - + 88, COUNT ( * ), + + 85, - + 23 ) + SUM ( + 76 ) * + 45 * - - COUNT ( * ) * - - 57 - + 97 * + 68
----
188606

query I rowsort
SELECT ALL 85 + + 85 col2
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 15 * - ( - 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 15 * - ( - 1 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT COUNT( * ) DIV - - MIN( - NULLIF ( - 17, - 49 ) ) + + 87 * - 52 - 7
----
-4531

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT COUNT ( * ) / - - MIN ( - NULLIF ( - 17, - 49 ) ) + + 87 * - 52 - 7
----
-4531

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT 58 + + SUM( ALL - 28 )
----
30

skipif mysql # not compatible
query I rowsort label-2904
SELECT 58 + + SUM ( ALL - 28 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT - 17 + - + COUNT( * ) - ( - 33 ), - 40 AS col0
----
15
-40

skipif mysql # not compatible
query II rowsort label-2905
SELECT - 17 + - + COUNT ( * ) - ( - 33 ), - 40 AS col0
----
15
-40

query II rowsort
SELECT ALL 87 + - 40, + 50 AS col2
----
47
50

query I rowsort
SELECT DISTINCT + 36 * + - 68
----
-2448

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT 27 + - + 86 DIV - 90
----
27

skipif mysql # not compatible
query I rowsort label-2908
SELECT 27 + - + 86 / - 90
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2909
SELECT DISTINCT - COUNT( - 11 ) - - 23 DIV 12 + 17 * 17 * + + ( + COUNT( * ) ) + 22 AS col0
----
311

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - COUNT ( - 11 ) - - 23 / 12 + 17 * 17 * + + ( + COUNT ( * ) ) + 22 AS col0
----
311

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL - MIN( - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - MIN ( - 4 )
----
4

query I rowsort
SELECT DISTINCT + 12 - - ( + 96 ) * - ( - - 30 ) AS col2
----
-2868

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT - COUNT( ALL 17 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT - COUNT ( ALL 17 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT - 32 DIV 80 + + + 37
----
37

skipif mysql # not compatible
query I rowsort label-2913
SELECT - 32 / 80 + + + 37
----
37

query I rowsort
SELECT 96 * + - 85 + - + 83 col1
----
-8243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT - 23 * - CAST( NULL AS SIGNED ) * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT - 23 * - CAST ( NULL AS INTEGER ) * - 73
----
NULL

query I rowsort
SELECT - 69 * - 37 + - 43 AS col0
----
2510

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT 38 DIV 86 * 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT 38 / 86 * 24 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2918
SELECT ALL - 6 * + 66 AS col0, MAX( ALL + - 47 ) + 92
----
-396
45

skipif mysql # not compatible
query II rowsort label-2918
SELECT ALL - 6 * + 66 AS col0, MAX ( ALL + - 47 ) + 92
----
-396
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT 44 + + - CAST( - - 53 AS SIGNED ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-2919
SELECT 44 + + - CAST ( - - 53 AS INTEGER ) col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL MAX( DISTINCT 69 ) * 29 + - 97 * + ( + 69 ) + - - ( 85 ) * 30 AS col1
----
-2142

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL MAX ( DISTINCT 69 ) * 29 + - 97 * + ( + 69 ) + - - ( 85 ) * 30 AS col1
----
-2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2921
SELECT DISTINCT + CASE + 2 WHEN - - 87 * 32 THEN COALESCE ( - 64, COUNT( * ) + + CAST( NULLIF ( - NULLIF ( + ( + - 30 ), 53 / + COALESCE ( - 45, NULLIF ( + + 81, - + COUNT( * ) ) ) ), 72 ) AS SIGNED ) ) ELSE NULL END * + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + CASE + 2 WHEN - - 87 * 32 THEN COALESCE ( - 64, COUNT ( * ) + + CAST ( NULLIF ( - NULLIF ( + ( + - 30 ), 53 / + COALESCE ( - 45, NULLIF ( + + 81, - + COUNT ( * ) ) ) ), 72 ) AS INTEGER ) ) ELSE NULL END * + + 40
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT + 88 + MIN( DISTINCT + + 63 ) + + 39 * 67 * - 95 * + 93
----
-23085704

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + 88 + MIN ( DISTINCT + + 63 ) + + 39 * 67 * - 95 * + 93
----
-23085704

query I rowsort
SELECT 88 + ( 64 )
----
152

query I rowsort
SELECT DISTINCT + + 24 + 18
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL 91 * + - MIN( + NULLIF ( + + 81, + - 83 ) ) AS col1
----
-7371

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL 91 * + - MIN ( + NULLIF ( + + 81, + - 83 ) ) AS col1
----
-7371

query I rowsort
SELECT ALL - 48 * - 33
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL + + SUM( ALL 5 ) + - + 5
----
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + + SUM ( ALL 5 ) + - + 5
----
0

query I rowsort
SELECT 86 * - 17
----
-1462

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT ALL - 98 * + - CASE - - 26 WHEN + 71 THEN NULL WHEN 21 THEN 34 - + - 28 END, MAX( ALL + 48 ) + - 58 AS col2
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL - 98 * + - CASE - - 26 WHEN + 71 THEN NULL WHEN 21 THEN 34 - + - 28 END, MAX ( ALL + 48 ) + - 58 AS col2
----
NULL
-10

query I rowsort
SELECT + 97 + + + 54 * 94
----
5173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT MIN( + CAST( NULL AS SIGNED ) ) - + + 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) - + + 81 col0
----
NULL

query I rowsort
SELECT ALL - - 69 * - 96 + + 56
----
-6568

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 11 - 26 * COUNT( * ) + 55
----
40

skipif mysql # not compatible
query I rowsort label-2935
SELECT 11 - 26 * COUNT ( * ) + 55
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT ALL COUNT( * ) * + + 3 AS col0, + 67
----
3
67

skipif mysql # not compatible
query II rowsort label-2936
SELECT ALL COUNT ( * ) * + + 3 AS col0, + 67
----
3
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT COUNT( * ) * + + 86 * 83 * - CASE 68 WHEN - 3 + 16 THEN - COUNT( * ) * 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT COUNT ( * ) * + + 86 * 83 * - CASE 68 WHEN - 3 + 16 THEN - COUNT ( * ) * 84 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT MAX( DISTINCT 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2939
SELECT MAX ( DISTINCT 32 ) AS col2
----
32

query I rowsort
SELECT ALL 63 * ( + + 94 ) AS col0
----
5922

onlyif mysql # DIV for integer division: 
query II rowsort label-2941
SELECT DISTINCT - 86 AS col2, 8 DIV - 99 - 0 AS col1
----
-86
0

skipif mysql # not compatible
query II rowsort label-2941
SELECT DISTINCT - 86 AS col2, 8 / - 99 - 0 AS col1
----
-86
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL - COALESCE ( 36, - NULLIF ( - 13, - - CAST( 87 AS SIGNED ) * + 17 + - 9 - - COALESCE ( + - COUNT( * ), + + MAX( + 97 ) * - ( 12 ) * + - MIN( + 19 ) + - + 42 - - CAST( - 13 AS SIGNED ), + 66 + + 53 ) + + 52 * COUNT( * ) * - COUNT( * ) * - 0 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - COALESCE ( 36, - NULLIF ( - 13, - - CAST ( 87 AS INTEGER ) * + 17 + - 9 - - COALESCE ( + - COUNT ( * ), + + MAX ( + 97 ) * - ( 12 ) * + - MIN ( + 19 ) + - + 42 - - CAST ( - 13 AS INTEGER ), + 66 + + 53 ) + + 52 * COUNT ( * ) * - COUNT ( * ) * - 0 ) )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2943
SELECT COUNT( DISTINCT + COALESCE ( + ( - 61 ), 81, 40 ) ), 21 DIV - COALESCE ( 81, 49 ) + - 77 + ( + 74 ) AS col0
----
1
-3

skipif mysql # not compatible
query II rowsort label-2943
SELECT COUNT ( DISTINCT + COALESCE ( + ( - 61 ), 81, 40 ) ), 21 / - COALESCE ( 81, 49 ) + - 77 + ( + 74 ) AS col0
----
1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2944
SELECT DISTINCT - COUNT( * ), 77 * + 36 - + 66 - CAST( + SUM( DISTINCT - - 93 ) AS SIGNED ) * - 5 AS col0
----
-1
3171

skipif mysql # not compatible
query II rowsort label-2944
SELECT DISTINCT - COUNT ( * ), 77 * + 36 - + 66 - CAST ( + SUM ( DISTINCT - - 93 ) AS INTEGER ) * - 5 AS col0
----
-1
3171

query I rowsort
SELECT 79 * - 10 AS col1
----
-790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2946
SELECT ALL - COALESCE ( - 25, + ( + 64 ) DIV 59 DIV - 43 * - 27, COUNT( * ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - COALESCE ( - 25, + ( + 64 ) / 59 / - 43 * - 27, COUNT ( * ) ) AS col0
----
25

query I rowsort
SELECT 53 + + 52 + - + ( - 18 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + SUM( - - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-2948
SELECT + SUM ( - - 60 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT 98 DIV + 12 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2949
SELECT 98 / + 12 AS col2
----
8

query I rowsort
SELECT ALL + 75 + - - 38 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT CASE - COALESCE ( - CASE + 17 WHEN - 47 / 11 THEN - 3 * 25 + - 76 ELSE NULL END, - 3 * - 75 + - + 80 + - 22, - - 8 + - - 82 - ( + 95 ) ) WHEN + - 52 THEN - 18 * + 63 + - 60 * + 72 WHEN + 71 * - 89 THEN - + ( - 83 ) + + + 17 + - MAX( - 91 ) ELSE NULL END - + + ( - - 42 ) - CASE - - 26 WHEN - - 73 THEN 70 * - ( - CAST( NULL AS SIGNED ) ) + 75 + 1 * + 9 + + ( 30 ) WHEN - ( 18 ) + - 81 THEN 38 * + CAST( + ( ( 48 ) ) AS SIGNED ) ELSE MIN( 12 ) END * 51 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT CASE - COALESCE ( - CASE + 17 WHEN - 47 / 11 THEN - 3 * 25 + - 76 ELSE NULL END, - 3 * - 75 + - + 80 + - 22, - - 8 + - - 82 - ( + 95 ) ) WHEN + - 52 THEN - 18 * + 63 + - 60 * + 72 WHEN + 71 * - 89 THEN - + ( - 83 ) + + + 17 + - MAX ( - 91 ) ELSE NULL END - + + ( - - 42 ) - CASE - - 26 WHEN - - 73 THEN 70 * - ( - CAST ( NULL AS INTEGER ) ) + 75 + 1 * + 9 + + ( 30 ) WHEN - ( 18 ) + - 81 THEN 38 * + CAST ( + ( ( 48 ) ) AS INTEGER ) ELSE MIN ( 12 ) END * 51 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2952
SELECT ALL - 4 AS col1, + SUM( ALL + + ( 74 ) ) DIV + + NULLIF ( - 64, 85 ) AS col2
----
-4
-1

skipif mysql # not compatible
query II rowsort label-2952
SELECT ALL - 4 AS col1, + SUM ( ALL + + ( 74 ) ) / + + NULLIF ( - 64, 85 ) AS col2
----
-4
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2953
SELECT 75 * CAST( NULL AS SIGNED ) + - + 97, 52 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-2953
SELECT 75 * CAST ( NULL AS INTEGER ) + - + 97, 52 AS col1
----
NULL
52

query I rowsort
SELECT DISTINCT 96 * + 96 AS col1
----
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2955
SELECT - COALESCE ( - CASE - + 96 WHEN CAST( + ( + - 98 ) AS DECIMAL ) THEN NULL ELSE 36 END, + + 26 - 54 - 86 ) * + - 85 AS col1, 39 + - 42 AS col2
----
-3060
-3

skipif mysql # not compatible
query II rowsort label-2955
SELECT - COALESCE ( - CASE - + 96 WHEN CAST ( + ( + - 98 ) AS REAL ) THEN NULL ELSE 36 END, + + 26 - 54 - 86 ) * + - 85 AS col1, 39 + - 42 AS col2
----
-3060
-3

query II rowsort
SELECT + 99 AS col1, - 75 AS col1
----
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT + 61 - NULLIF ( - 48, + + 85 - 35 ) + MAX( - 34 ) + + 11 * + - COUNT( + 69 )
----
64

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT + 61 - NULLIF ( - 48, + + 85 - 35 ) + MAX ( - 34 ) + + 11 * + - COUNT ( + 69 )
----
64

query I rowsort
SELECT - - 64 + + 64
----
128

query I rowsort
SELECT - - 58 + - 78 * + 7
----
-488

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT + COUNT( + 62 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2960
SELECT + COUNT ( + 62 ) col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2961
SELECT ALL + 67 DIV - ( 98 ) AS col0, 81
----
0
81

skipif mysql # not compatible
query II rowsort label-2961
SELECT ALL + 67 / - ( 98 ) AS col0, 81
----
0
81

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

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

query II rowsort
SELECT - 66 + 55 + 89 * - + 76 * - 32 * 86 AS col1, ( + 55 ) AS col2
----
18614517
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT DISTINCT 10 * + + COUNT( * ) + - 60 col1
----
-50

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT 10 * + + COUNT ( * ) + - 60 col1
----
-50

query I rowsort
SELECT - + 31 * + + 81
----
-2511

query I rowsort
SELECT ALL + 26 * 88
----
2288

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT 87, - COUNT( * ) - + 80 col0
----
87
-81

skipif mysql # not compatible
query II rowsort label-2968
SELECT 87, - COUNT ( * ) - + 80 col0
----
87
-81

query I rowsort
SELECT + - 57 + + - CASE - - 7 WHEN - 87 * + 99 THEN NULL ELSE - + 90 END * + 39
----
3453

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT - - NULLIF ( 3, - ( COUNT( * ) ) - + + COALESCE ( - 5, 98 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2970
SELECT - - NULLIF ( 3, - ( COUNT ( * ) ) - + + COALESCE ( - 5, 98 ) ) AS col2
----
3

query II rowsort
SELECT + 74 AS col1, - 31
----
74
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2972
SELECT ALL + 23 AS col0, 55 + COUNT( + 22 ) * 30 AS col2
----
23
85

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL + 23 AS col0, 55 + COUNT ( + 22 ) * 30 AS col2
----
23
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - 52 / + - 38 * + + 84 * - - CASE - - COUNT( * ) WHEN - 98 THEN + + NULLIF ( + 71, + 43 + + NULLIF ( - 45, - 84 ) ) * 43 WHEN - + 68 * NULLIF ( + ( - 82 ), + 85 ) - + + 83 + - ( - 30 ) * - - 58 + + + 37 THEN - + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT - 52 / + - 38 * + + 84 * - - CASE - - COUNT ( * ) WHEN - 98 THEN + + NULLIF ( + 71, + 43 + + NULLIF ( - 45, - 84 ) ) * 43 WHEN - + 68 * NULLIF ( + ( - 82 ), + 85 ) - + + 83 + - ( - 30 ) * - - 58 + + + 37 THEN - + 44 END
----
NULL

query I rowsort
SELECT ALL + 36 * + + 14 + + 91
----
595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2975
SELECT - NULLIF ( - 30, + 91 - + - 85 ) DIV - - 7 + + 85 + + - CAST( - + SUM( + + 3 ) AS SIGNED ) - - + 47 * - - 95 AS col0
----
4557

skipif mysql # not compatible
query I rowsort label-2975
SELECT - NULLIF ( - 30, + 91 - + - 85 ) / - - 7 + + 85 + + - CAST ( - + SUM ( + + 3 ) AS INTEGER ) - - + 47 * - - 95 AS col0
----
4557

query I rowsort
SELECT DISTINCT + NULLIF ( + 57, - 85 ) * + + 57 * ( - + ( - 51 ) ) AS col0
----
165699

query I rowsort
SELECT DISTINCT + 92 * - 65 + - + 73 * - 64 * - 50
----
-239580

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL 67 * COUNT( * ) + - + 10
----
57

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 67 * COUNT ( * ) + - + 10
----
57

query I rowsort
SELECT CASE WHEN - 37 IS NULL THEN - + 40 + - - 13 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT CASE - 38 WHEN + 92 / - 71 + 39 / + - 21 THEN NULL WHEN + 73 / + CAST( NULL AS SIGNED ) THEN NULL ELSE - 16 END col2
----
-16

skipif mysql # not compatible
query I rowsort label-2981
SELECT CASE - 38 WHEN + 92 / - 71 + 39 / + - 21 THEN NULL WHEN + 73 / + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 16 END col2
----
-16

query I rowsort
SELECT DISTINCT 36 * 43 + 2
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT + COUNT( + - 36 ) * - 44 * + 40 + - 83 + - - CASE COALESCE ( COUNT( * ), + - 69 * - COUNT( ALL - 65 ) * + 7, + 89 ) WHEN - 77 THEN - ( + - 92 ) * - - 73 + 41 * + 62 - - 8 WHEN - 81 THEN NULL ELSE + + 49 END * 57
----
950

skipif mysql # not compatible
query I rowsort label-2983
SELECT + COUNT ( + - 36 ) * - 44 * + 40 + - 83 + - - CASE COALESCE ( COUNT ( * ), + - 69 * - COUNT ( ALL - 65 ) * + 7, + 89 ) WHEN - 77 THEN - ( + - 92 ) * - - 73 + 41 * + 62 - - 8 WHEN - 81 THEN NULL ELSE + + 49 END * 57
----
950

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT ALL 10 * + 96 DIV - - 47 + - 32 * - 16 * 23 AS col1
----
11796

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL 10 * + 96 / - - 47 + - 32 * - 16 * 23 AS col1
----
11796

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL - 71 * ( - + 74 ) * + - COUNT( * ) AS col2
----
-5254

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL - 71 * ( - + 74 ) * + - COUNT ( * ) AS col2
----
-5254

query I rowsort
SELECT ALL + 16 * - 78
----
-1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2987
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - MIN( DISTINCT 73 ) + COUNT( * ) + ( + - COALESCE ( + 52, 74 ) ) ) + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - MIN ( DISTINCT 73 ) + COUNT ( * ) + ( + - COALESCE ( + 52, 74 ) ) ) + + 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL 47 * - COUNT( DISTINCT 22 ) - - 59
----
12

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 47 * - COUNT ( DISTINCT 22 ) - - 59
----
12

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

query II rowsort
SELECT + ( + 93 ) AS col1, - 88 AS col2
----
93
-88

query I rowsort
SELECT + - 62 + - - 54 + - - 69 + - 24 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT COUNT( + 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT COUNT ( + 30 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL 40 * + NULLIF ( - 34, - 49 ) + MAX( - - 67 )
----
-1293

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL 40 * + NULLIF ( - 34, - 49 ) + MAX ( - - 67 )
----
-1293

query II rowsort
SELECT + 9 * + 15 AS col1, - 30 AS col2
----
135
-30

query I rowsort
SELECT - 79 * + 34
----
-2686

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

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + + COUNT ( * ) - + MIN ( ALL - 58 )
----
59

query I rowsort
SELECT ALL + 16 * + 5 AS col0
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT + 5 * + MAX( - + 12 )
----
-60

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + 5 * + MAX ( - + 12 )
----
-60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3001
SELECT + - 66 - NULLIF ( CAST( + 43 AS SIGNED ), + - NULLIF ( + COUNT( + 67 ), - 33 ) )
----
-109

skipif mysql # not compatible
query I rowsort label-3001
SELECT + - 66 - NULLIF ( CAST ( + 43 AS INTEGER ), + - NULLIF ( + COUNT ( + 67 ), - 33 ) )
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT - - SUM( ALL - 36 ) col0, + 17
----
-36
17

skipif mysql # not compatible
query II rowsort label-3002
SELECT - - SUM ( ALL - 36 ) col0, + 17
----
-36
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + COUNT( * ) * + 37 col1
----
37

skipif mysql # not compatible
query I rowsort label-3003
SELECT + COUNT ( * ) * + 37 col1
----
37

query I rowsort
SELECT + + 91 + + 16
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3005
SELECT + 26 * - - 34 AS col2, 4 * + - 26 + 21 + 77 * + 72 * + 71 * + + COUNT( - CAST( NULL AS SIGNED ) ) AS col2
----
884
-83

skipif mysql # not compatible
query II rowsort label-3005
SELECT + 26 * - - 34 AS col2, 4 * + - 26 + 21 + 77 * + 72 * + 71 * + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
884
-83

query I rowsort
SELECT DISTINCT + ( + 59 ) + 65
----
124

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3007
SELECT ALL - - 26 DIV CAST( + 92 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - - 26 / CAST ( + 92 AS INTEGER ) col2
----
0

query I rowsort
SELECT DISTINCT 93 + - 48
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3009
SELECT DISTINCT CASE COALESCE ( + ( - + 50 ), - 51 ) WHEN + NULLIF ( 1, 85 ) THEN + + COUNT( + + 21 ) * - SUM( ALL - + NULLIF ( + 49, - 22 * + 7 ) ) * + + COUNT( * ) * - 14 + + 95 WHEN + + 86 * - - 55 + + + CAST( - - 12 AS SIGNED ) + - - 77 * 22 THEN NULL ELSE + 27 END + + + 45 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT CASE COALESCE ( + ( - + 50 ), - 51 ) WHEN + NULLIF ( 1, 85 ) THEN + + COUNT ( + + 21 ) * - SUM ( ALL - + NULLIF ( + 49, - 22 * + 7 ) ) * + + COUNT ( * ) * - 14 + + 95 WHEN + + 86 * - - 55 + + + CAST ( - - 12 AS INTEGER ) + - - 77 * 22 THEN NULL ELSE + 27 END + + + 45 AS col0
----
72

query I rowsort
SELECT DISTINCT + 92 + 1 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL + CAST( NULL AS SIGNED ) + - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + CAST ( NULL AS INTEGER ) + - 67 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT ALL 95 DIV - + 30 + + 47 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL 95 / - + 30 + + 47 AS col1
----
44

query I rowsort
SELECT - 69 + - + NULLIF ( + 15, - 70 )
----
-84

query II rowsort
SELECT - ( 57 ) - + 64 * - ( - 86 ) AS col0, + 33 * - 97
----
-5561
-3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT CAST( + AVG ( + - 14 ) AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3015
SELECT CAST ( + AVG ( + - 14 ) AS INTEGER ) AS col0
----
-14

query II rowsort
SELECT - ( - 64 ) * - - 56, + 56 col1
----
3584
56

query I rowsort
SELECT ALL - 75 - + + 62
----
-137

query I rowsort
SELECT DISTINCT - NULLIF ( 95, - ( + 26 ) )
----
-95

query I rowsort
SELECT ( - 27 ) * + 85 + - - 52 AS col2
----
-2243

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT 4 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-3020
SELECT 4 / 88
----
0

query I rowsort
SELECT ALL - ( 74 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3022
SELECT + COUNT( 27 ) * + - 41 + - COUNT( * ) DIV 27 + 84 + + ( + - 33 ), 60 * - + 37 * + - CAST( NULL AS SIGNED ) DIV 18 AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3022
SELECT + COUNT ( 27 ) * + - 41 + - COUNT ( * ) / 27 + 84 + + ( + - 33 ), 60 * - + 37 * + - CAST ( NULL AS INTEGER ) / 18 AS col1
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - MAX( ALL + 54 ) + + 5
----
-49

skipif mysql # not compatible
query I rowsort label-3023
SELECT - MAX ( ALL + 54 ) + + 5
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL NULLIF ( - COUNT( * ), + 95 ) * - - 17 + 83 col2
----
66

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL NULLIF ( - COUNT ( * ), + 95 ) * - - 17 + 83 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT - 94 + + - COALESCE ( 85, 47 DIV + 42 + + 84 * + + 50 ) AS col0
----
-179

skipif mysql # not compatible
query I rowsort label-3025
SELECT - 94 + + - COALESCE ( 85, 47 / + 42 + + 84 * + + 50 ) AS col0
----
-179

onlyif mysql # DIV for integer division: 
query II rowsort label-3026
SELECT 24 col1, + 53 + - COALESCE ( - 61, + 79 DIV + 39 * ( - 40 ) + - 67 + + 20 ) AS col1
----
24
114

skipif mysql # not compatible
query II rowsort label-3026
SELECT 24 col1, + 53 + - COALESCE ( - 61, + 79 / + 39 * ( - 40 ) + - 67 + + 20 ) AS col1
----
24
114

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

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

query I rowsort
SELECT DISTINCT + - 25 * 74 AS col1
----
-1850

query I rowsort
SELECT ALL - 76 * + - 99 AS col0
----
7524

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

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

query I rowsort
SELECT NULLIF ( - - 47, + 91 ) + - + 51 + + 50 col2
----
46

query II rowsort
SELECT ALL + 84, 37 AS col2
----
84
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT - 91 * - 31 + 67 + - MAX( - + 90 ) col0, - 71
----
2978
-71

skipif mysql # not compatible
query II rowsort label-3033
SELECT - 91 * - 31 + 67 + - MAX ( - + 90 ) col0, - 71
----
2978
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT + MIN( + + 66 ) + + + 82 * - 78 + CASE + 88 WHEN - - 29 THEN - + 19 WHEN - COUNT( * ) THEN 84 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + MIN ( + + 66 ) + + + 82 * - 78 + CASE + 88 WHEN - - 29 THEN - + 19 WHEN - COUNT ( * ) THEN 84 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 54 + + - 70
----
-16

query I rowsort
SELECT 79 + + - 14 * + - ( 62 ) AS col2
----
947

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT 11 + - 1 + MAX( ALL + 56 )
----
66

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT 11 + - 1 + MAX ( ALL + 56 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT DISTINCT - 32 + - COUNT( * ) * 51 + 5 * - - 21 col0, - 88 * - ( ( - + COALESCE ( + - 99, - + 92 ) ) )
----
22
8712

skipif mysql # not compatible
query II rowsort label-3038
SELECT DISTINCT - 32 + - COUNT ( * ) * 51 + 5 * - - 21 col0, - 88 * - ( ( - + COALESCE ( + - 99, - + 92 ) ) )
----
22
8712

query I rowsort
SELECT ALL - 74 + + 94 * + 66 AS col0
----
6130

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT - 66 AS col2, + COUNT( * ) + + + 72
----
-66
73

skipif mysql # not compatible
query II rowsort label-3040
SELECT - 66 AS col2, + COUNT ( * ) + + + 72
----
-66
73

query I rowsort
SELECT ALL 4 * - + 33 * + 21 AS col0
----
-2772

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

skipif mysql # not compatible
query II rowsort label-3042
SELECT - 73, - COUNT ( DISTINCT - 94 ) AS col0
----
-73
-1

query I rowsort
SELECT ( - CASE - 3 WHEN + 15 * + 80 + - 99 THEN NULL WHEN 29 THEN 55 + + - 7 * + - 76 ELSE NULL END ) + - 80 AS col2
----
NULL

query I rowsort
SELECT 79 * - + 60 * - 50
----
237000

query I rowsort
SELECT DISTINCT 98 + + 61 col0
----
159

query I rowsort
SELECT ALL - 43 + + - 51 AS col1
----
-94

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

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

query II rowsort
SELECT + 86 AS col1, + ( - 80 )
----
86
-80

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

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 77 / COUNT ( * ) + ( - MAX ( + ( + + ( + 77 ) ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT 72 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT 72 / + 93 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT 79 + + - 95 - COUNT( + 1 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3052
SELECT 79 + + - 95 - COUNT ( + 1 ) AS col0
----
-17

query I rowsort
SELECT ALL 38 - 74 + - 35 * - 12 AS col2
----
384

onlyif mysql # aggregate syntax: 
query II rowsort label-3054
SELECT ALL - COALESCE ( - - 24, MAX( + 37 ) ) AS col1, + 52
----
-24
52

skipif mysql # not compatible
query II rowsort label-3054
SELECT ALL - COALESCE ( - - 24, MAX ( + 37 ) ) AS col1, + 52
----
-24
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + 90 * COUNT( * ) + - 39 * - COUNT( * ) * - + 23 AS col1
----
-807

skipif mysql # not compatible
query I rowsort label-3055
SELECT + 90 * COUNT ( * ) + - 39 * - COUNT ( * ) * - + 23 AS col1
----
-807

query I rowsort
SELECT ALL + 44 * + 64 AS col2
----
2816

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT DISTINCT - 30, ( 77 ) + + COUNT( * ) AS col1
----
-30
78

skipif mysql # not compatible
query II rowsort label-3057
SELECT DISTINCT - 30, ( 77 ) + + COUNT ( * ) AS col1
----
-30
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3058
SELECT - 33 * + 88 DIV + - COUNT( * ) + 87 AS col2, 47 * - 19 col1
----
2991
-893

skipif mysql # not compatible
query II rowsort label-3058
SELECT - 33 * + 88 / + - COUNT ( * ) + 87 AS col2, 47 * - 19 col1
----
2991
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT 7 * + SUM( DISTINCT 94 ) AS col2
----
658

skipif mysql # not compatible
query I rowsort label-3059
SELECT 7 * + SUM ( DISTINCT 94 ) AS col2
----
658

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - COUNT( * ) * + - MIN( DISTINCT 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - COUNT ( * ) * + - MIN ( DISTINCT 40 ) AS col0
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + COUNT( * ) * 91 + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3062
SELECT + COUNT ( * ) * 91 + + COUNT ( * ) AS col2
----
92

query II rowsort
SELECT ALL - + 35 AS col0, + 33
----
-35
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT DISTINCT - COUNT( * ) AS col2, - 87 * + + 45 - + + 65 AS col2
----
-1
-3980

skipif mysql # not compatible
query II rowsort label-3064
SELECT DISTINCT - COUNT ( * ) AS col2, - 87 * + + 45 - + + 65 AS col2
----
-1
-3980

query I rowsort
SELECT + 19 * 57 * + 53 * - CASE - 3 WHEN 33 + + - 19 THEN NULL ELSE 51 END + - + 99 AS col0
----
-2927448

query II rowsort
SELECT DISTINCT - 6 AS col1, + 27
----
-6
27

query I rowsort
SELECT ALL + 30 + 63 - - 7 + + - 92 * + - 82 AS col1
----
7644

query II rowsort
SELECT 19, 71 * 67 + + 18 AS col1
----
19
4775

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - + 60 + - COUNT( * ) + + COUNT( - - 15 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - + 60 + - COUNT ( * ) + + COUNT ( - - 15 ) AS col1
----
-60

query I rowsort
SELECT 55 + 70 - - - ( - 40 ) - + 28
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL - 39 * + MIN( DISTINCT + 8 ) AS col2
----
-312

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - 39 * + MIN ( DISTINCT + 8 ) AS col2
----
-312

query II rowsort
SELECT - 59, 48 + + 50 col2
----
-59
98

query I rowsort
SELECT ALL + 64 + - 5 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL - COUNT( * ) + - CASE WHEN ( - + 11 ) IS NULL THEN NULL ELSE 50 END AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL - COUNT ( * ) + - CASE WHEN ( - + 11 ) IS NULL THEN NULL ELSE 50 END AS col1
----
-51

query I rowsort
SELECT 65 + ( - + 27 )
----
38

query I rowsort
SELECT ALL - - 55 + + + 31
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + 45 * + + 14 + + + COUNT( * ) AS col0
----
631

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + 45 * + + 14 + + + COUNT ( * ) AS col0
----
631

query II rowsort
SELECT - + 27, 70 AS col2
----
-27
70

query II rowsort
SELECT + 66 AS col1, + 15 * + 39 * - 39 AS col0
----
66
-22815

query I rowsort
SELECT ALL 63 + - + 88
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT 37 + - - 77 + COUNT( * ) * + 19 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-3081
SELECT 37 + - - 77 + COUNT ( * ) * + 19 AS col2
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT 79 + - 94 AS col0, COUNT( * )
----
-15
1

skipif mysql # not compatible
query II rowsort label-3082
SELECT 79 + - 94 AS col0, COUNT ( * )
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT 92 * + NULLIF ( + 32, COUNT( * ) )
----
2944

skipif mysql # not compatible
query I rowsort label-3083
SELECT 92 * + NULLIF ( + 32, COUNT ( * ) )
----
2944

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3084
SELECT ALL 33 - 4 AS col0, - 43 + - COUNT( * ) + + NULLIF ( - - 49, + 46 ) DIV - - COUNT( * ) AS col1, - COUNT( * ) AS col0
----
29
5
-1

skipif mysql # not compatible
query III rowsort label-3084
SELECT ALL 33 - 4 AS col0, - 43 + - COUNT ( * ) + + NULLIF ( - - 49, + 46 ) / - - COUNT ( * ) AS col1, - COUNT ( * ) AS col0
----
29
5
-1

query I rowsort
SELECT 63 * ( - 9 ) AS col2
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT 62 - + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT 62 - + - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT - SUM( + 87 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-3087
SELECT - SUM ( + 87 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + COUNT( ALL 8 ) + - SUM( 89 )
----
-88

skipif mysql # not compatible
query I rowsort label-3088
SELECT + COUNT ( ALL 8 ) + - SUM ( 89 )
----
-88

query I rowsort
SELECT ALL 97 * + + 35 col0
----
3395

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + COUNT( * ) * - + SUM( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-3090
SELECT + COUNT ( * ) * - + SUM ( 89 )
----
-89

query I rowsort
SELECT DISTINCT 32 * 15 * + + 45
----
21600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3092
SELECT + SUM( ALL - 12 ), MIN( + CASE 69 WHEN + CAST( NULL AS SIGNED ) THEN - + 98 END ) + + 97 AS col0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-3092
SELECT + SUM ( ALL - 12 ), MIN ( + CASE 69 WHEN + CAST ( NULL AS INTEGER ) THEN - + 98 END ) + + 97 AS col0
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + 67 - + 15 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 67 - + 15 + - COUNT ( * )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT + ( - + 36 ) DIV + + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT + ( - + 36 ) / + + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL + ( NULLIF ( - COALESCE ( 69, - 93 + NULLIF ( + - 10, + 16 ) * - MIN( DISTINCT 81 ) * 87 * + 15 ), + + 25 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + ( NULLIF ( - COALESCE ( 69, - 93 + NULLIF ( + - 10, + 16 ) * - MIN ( DISTINCT 81 ) * 87 * + 15 ), + + 25 ) )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3096
SELECT DISTINCT - 50 DIV 14 DIV + - 1 AS col2, - COALESCE ( + 67, - 50, COUNT( * ) )
----
3
-67

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT - 50 / 14 / + - 1 AS col2, - COALESCE ( + 67, - 50, COUNT ( * ) )
----
3
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT - COUNT( * ) * - 38 col2
----
38

skipif mysql # not compatible
query I rowsort label-3097
SELECT - COUNT ( * ) * - 38 col2
----
38

query I rowsort
SELECT CASE + 5 WHEN ( 28 ) THEN NULL ELSE + - 84 * 20 END AS col0
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT - + 32 * - - CASE + SUM( + 17 ) WHEN - - 82 THEN + 46 * - 20 + - COUNT( * ) ELSE NULL END + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT - + 32 * - - CASE + SUM ( + 17 ) WHEN - - 82 THEN + 46 * - 20 + - COUNT ( * ) ELSE NULL END + - 13
----
NULL

query I rowsort
SELECT ALL - 71 * + - 75 + 33
----
5358

query II rowsort
SELECT - 5 + + 83 + 36 AS col0, 91 col2
----
114
91

query I rowsort
SELECT ALL - - 76 * + 94 * + 34 + - 8 * 11 + 39 AS col1
----
242847

query I rowsort
SELECT ALL 72 + + ( 67 ) AS col0
----
139

query I rowsort
SELECT DISTINCT 76 * + - 82
----
-6232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT - 85 / - + COUNT( * ) + - 13 * - CAST( NULL AS SIGNED ) * - + 72 - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT - 85 / - + COUNT ( * ) + - 13 * - CAST ( NULL AS INTEGER ) * - + 72 - - 94
----
NULL

query I rowsort
SELECT DISTINCT + 43 - 67
----
-24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT - COALESCE ( - ( - + 51 ), 97 * 31, + 57 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT - COALESCE ( - ( - + 51 ), 97 * 31, + 57 ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 51 * 15
----
765

query I rowsort
SELECT ALL 10 * + - 80
----
-800

query I rowsort
SELECT - 16 + 19 + + - 22
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT - ( CAST( + 73 AS SIGNED ) ) + 29 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3112
SELECT - ( CAST ( + 73 AS INTEGER ) ) + 29 AS col1
----
-44

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

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + 25 - - - COUNT ( * ) AS col2
----
24

query I rowsort
SELECT ALL 80 - + 29 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT - CAST( - - 84 AS SIGNED ) + - - 62
----
-22

skipif mysql # not compatible
query I rowsort label-3115
SELECT - CAST ( - - 84 AS INTEGER ) + - - 62
----
-22

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

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

query II rowsort
SELECT DISTINCT 97, + 85 AS col1
----
97
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3118
SELECT ALL 49 AS col2, - CASE NULLIF ( COUNT( * ), 69 ) WHEN - 90 * - 45 THEN COALESCE ( - 71, - 30 ) * - 89 / + + 55 WHEN 33 THEN 26 * + 70 END AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3118
SELECT ALL 49 AS col2, - CASE NULLIF ( COUNT ( * ), 69 ) WHEN - 90 * - 45 THEN COALESCE ( - 71, - 30 ) * - 89 / + + 55 WHEN 33 THEN 26 * + 70 END AS col0
----
49
NULL

query I rowsort
SELECT + 55 * - 37
----
-2035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3120
SELECT ALL - 75 DIV - COUNT( * ) + + CASE + CAST( 62 AS SIGNED ) WHEN 10 THEN + - 41 * + + 93 + 7 * + + 53 WHEN 68 DIV - - 46 + COUNT( * ) THEN 98 ELSE + NULLIF ( - 3, + 24 ) + COUNT( * ) - - CASE 14 WHEN + 47 THEN + - 64 WHEN + 56 * - + 47 * 87 THEN + - 9 * - + 39 * + + 74 + - 33 * - 22 WHEN - COUNT( * ) * + AVG ( DISTINCT - ( + - 78 ) ) THEN - COUNT( * ) ELSE + + 65 + + + MIN( ALL + 75 ) - - 76 + - COUNT( * ) END DIV 53 DIV 30 END + 39
----
112

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - 75 / - COUNT ( * ) + + CASE + CAST ( 62 AS INTEGER ) WHEN 10 THEN + - 41 * + + 93 + 7 * + + 53 WHEN 68 / - - 46 + COUNT ( * ) THEN 98 ELSE + NULLIF ( - 3, + 24 ) + COUNT ( * ) - - CASE 14 WHEN + 47 THEN + - 64 WHEN + 56 * - + 47 * 87 THEN + - 9 * - + 39 * + + 74 + - 33 * - 22 WHEN - COUNT ( * ) * + AVG ( DISTINCT - ( + - 78 ) ) THEN - COUNT ( * ) ELSE + + 65 + + + MIN ( ALL + 75 ) - - 76 + - COUNT ( * ) END / 53 / 30 END + 39
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT + 43 + + + ( - NULLIF ( ( + + CAST( NULL AS SIGNED ) ), 90 * - + ( + 46 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 43 + + + ( - NULLIF ( ( + + CAST ( NULL AS INTEGER ) ), 90 * - + ( + 46 ) ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + 32 * COUNT ( * ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT ALL + 26, - 41 * COUNT( * ) AS col1
----
26
-41

skipif mysql # not compatible
query II rowsort label-3123
SELECT ALL + 26, - 41 * COUNT ( * ) AS col1
----
26
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT 52 * - 80 + - 97 DIV + 88 col0
----
-4161

skipif mysql # not compatible
query I rowsort label-3124
SELECT 52 * - 80 + - 97 / + 88 col0
----
-4161

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT - 51 DIV - + 73 * - 59 + 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3125
SELECT - 51 / - + 73 * - 59 + 94 AS col2
----
94

query I rowsort
SELECT - - 2 + 19 * 22 - - + 79
----
499

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3127
SELECT ALL + + 17 DIV - - 28 + 70 AS col1, + CAST( NULL AS SIGNED ) * - + 45 + + 68 AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3127
SELECT ALL + + 17 / - - 28 + 70 AS col1, + CAST ( NULL AS INTEGER ) * - + 45 + + 68 AS col0
----
70
NULL

query I rowsort
SELECT + 76 * - 6 - - + 59 + + ( + 48 )
----
-349

query I rowsort
SELECT + 76 * + 93 + + 91 col2
----
7159

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

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 46 * COUNT ( * ) / + + 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT DISTINCT 15 DIV - 63 * 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT 15 / - 63 * 23 AS col2
----
0

query II rowsort
SELECT 29, 8 AS col0
----
29
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL - - 98 * + 49 * - - COUNT( ALL 30 ) + - 69 + + - 2
----
4731

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - - 98 * + 49 * - - COUNT ( ALL 30 ) + - 69 + + - 2
----
4731

query I rowsort
SELECT - - 50 * + - 13
----
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + 43 * - 38 * + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + 43 * - 38 * + + 9 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT ALL + + CAST( NULL AS SIGNED ) * + 61 * + 27 - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 61 * + 27 - 40 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3138
SELECT CAST( NULL AS SIGNED ) col1, 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3138
SELECT CAST ( NULL AS INTEGER ) col1, 98 AS col2
----
NULL
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT ALL 88 * + 46 - 88 - + 86 DIV + 96 AS col0
----
3960

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL 88 * + 46 - 88 - + 86 / + 96 AS col0
----
3960

query II rowsort
SELECT + 92 * 28 + + + 54, 73 * - 83 AS col1
----
2630
-6059

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT COALESCE ( COUNT( * ), - + 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3142
SELECT COALESCE ( COUNT ( * ), - + 21 ) AS col2
----
1

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

query I rowsort
SELECT DISTINCT - 75 - 76
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3145
SELECT 79 * + 90 * + 59 * COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + - MIN( 25 ) AS col2
----
419490
NULL

skipif mysql # not compatible
query II rowsort label-3145
SELECT 79 * + 90 * + 59 * COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + - MIN ( 25 ) AS col2
----
419490
NULL

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

skipif mysql # not compatible
query I rowsort label-3146
SELECT 98 / + 61 * COUNT ( ALL + ( 47 ) ) AS col2
----
1

query I rowsort
SELECT 7 - 85 * - 44 * + - 38 * + + 44
----
-6253273

query I rowsort
SELECT ALL + 94 * 80 AS col0
----
7520

onlyif mysql # DIV for integer division: 
query II rowsort label-3149
SELECT 88 DIV + 11, 2 * 5 AS col1
----
8
10

skipif mysql # not compatible
query II rowsort label-3149
SELECT 88 / + 11, 2 * 5 AS col1
----
8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT COALESCE ( 81, - 31 * - 83 ) * - + COUNT( * ) + + - 75 col1
----
-156

skipif mysql # not compatible
query I rowsort label-3150
SELECT COALESCE ( 81, - 31 * - 83 ) * - + COUNT ( * ) + + - 75 col1
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT ALL + MIN( DISTINCT + 77 ) + - ( + 86 ) * - 35 DIV - ( - COUNT( * ) ) col1
----
3087

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + MIN ( DISTINCT + 77 ) + - ( + 86 ) * - 35 / - ( - COUNT ( * ) ) col1
----
3087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT ALL + 22 + CAST( - SUM( + 21 ) AS SIGNED ) + 10 + + 36
----
47

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + 22 + CAST ( - SUM ( + 21 ) AS INTEGER ) + 10 + + 36
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT 7 + COUNT( * ) + - 98 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3153
SELECT 7 + COUNT ( * ) + - 98 AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3154
SELECT ALL - 95 * 23 AS col0, + CAST( NULL AS SIGNED )
----
-2185
NULL

skipif mysql # not compatible
query II rowsort label-3154
SELECT ALL - 95 * 23 AS col0, + CAST ( NULL AS INTEGER )
----
-2185
NULL

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

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + COUNT ( * ) + 95 AS col1
----
96

query I rowsort
SELECT DISTINCT - 77 * + 72
----
-5544

query I rowsort
SELECT DISTINCT 49 + 2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT NULLIF ( + - 78, 32 ) * 6 DIV + - 34 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3158
SELECT NULLIF ( + - 78, 32 ) * 6 / + - 34 AS col0
----
13

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

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

query II rowsort
SELECT DISTINCT + 59 + - CASE - 14 WHEN - 5 THEN + - 72 + + 40 / + 39 * + 29 - - 74 END AS col0, + 96 - - 64
----
NULL
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT - COUNT( * ) + + ( - ( + - COALESCE ( COUNT( * ), - 89 * + COALESCE ( NULLIF ( 65, 75 * + 97 ), - 30 ) + + 95 * 44, COUNT( * ) * 68 + - 28 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT - COUNT ( * ) + + ( - ( + - COALESCE ( COUNT ( * ), - 89 * + COALESCE ( NULLIF ( 65, 75 * + 97 ), - 30 ) + + 95 * 44, COUNT ( * ) * 68 + - 28 ) ) )
----
0

query I rowsort
SELECT 61 * + 3
----
183

query I rowsort
SELECT ALL 91 + - - 8
----
99

query I rowsort
SELECT ( - 71 ) * - 58 AS col1
----
4118

query I rowsort
SELECT DISTINCT - 60 * 80 * + - 76 * - 48
----
-17510400

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT ALL + 85 - + COUNT( * ) + 10 + + - 45, - 58 AS col1
----
49
-58

skipif mysql # not compatible
query II rowsort label-3166
SELECT ALL + 85 - + COUNT ( * ) + 10 + + - 45, - 58 AS col1
----
49
-58

query I rowsort
SELECT ALL - NULLIF ( 48, 5 * 8 ) * 52 * + 24 col0
----
-59904

query I rowsort
SELECT DISTINCT - ( ( 91 ) ) - 73
----
-164

query I rowsort
SELECT 9 - - 80
----
89

query I rowsort
SELECT ALL - ( 92 ) * - 78 + - + 62 col1
----
7114

query I rowsort
SELECT - 67 + - 0 * + 96 + + - ( - 82 )
----
15

query I rowsort
SELECT - 76 * - 66 + - 23
----
4993

query I rowsort
SELECT ALL - 64 * - 28
----
1792

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT ALL 10 DIV - - 60
----
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL 10 / - - 60
----
0

query II rowsort
SELECT 72 + + + ( - 55 ), - 70 AS col2
----
17
-70

query I rowsort
SELECT 79 * 77 * - 8 * + 61 * + 56
----
-166236224

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT ( + COALESCE ( - COUNT( * ), 60 + - ( + 63 ) ) ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-3177
SELECT ( + COALESCE ( - COUNT ( * ), 60 + - ( + 63 ) ) ) * - 91
----
91

query I rowsort
SELECT 14 * + 22 AS col1
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT 17 + + 9 - + 74 + + + 3 * - - COUNT( * ) + + - 3 + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT 17 + + 9 - + 74 + + + 3 * - - COUNT ( * ) + + - 3 + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL - SUM( + 19 ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - SUM ( + 19 ) + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 99 + ( - 2 ) + + ( 59 ) - + + 60 * + 82
----
-4764

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

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

query I rowsort
SELECT 4 + + - 96
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT CASE + 65 WHEN - - 34 * + MIN( ALL - + 30 ) THEN - CASE - 36 WHEN 82 + - 44 + 75 THEN NULL ELSE - - 53 END WHEN CASE + NULLIF ( - - 31, - 29 ) WHEN + - NULLIF ( - CAST( - + COUNT( * ) AS SIGNED ), - 16 / 13 * + 42 + - ( - 55 ) ) * 75 THEN NULL ELSE + + 47 END THEN COUNT( * ) + + + 20 * + COUNT( * ) + + 91 * + - NULLIF ( - CAST( NULL AS SIGNED ), + 97 ) * 22 + - 58 + + + 96 END * - CASE COUNT( + ( - + 89 ) ) WHEN - 38 * + + 86 + + - 81 THEN - 53 END * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT CASE + 65 WHEN - - 34 * + MIN ( ALL - + 30 ) THEN - CASE - 36 WHEN 82 + - 44 + 75 THEN NULL ELSE - - 53 END WHEN CASE + NULLIF ( - - 31, - 29 ) WHEN + - NULLIF ( - CAST ( - + COUNT ( * ) AS INTEGER ), - 16 / 13 * + 42 + - ( - 55 ) ) * 75 THEN NULL ELSE + + 47 END THEN COUNT ( * ) + + + 20 * + COUNT ( * ) + + 91 * + - NULLIF ( - CAST ( NULL AS INTEGER ), + 97 ) * 22 + - 58 + + + 96 END * - CASE COUNT ( + ( - + 89 ) ) WHEN - 38 * + + 86 + + - 81 THEN - 53 END * + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL 26 + - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL 26 + - - COUNT ( * )
----
27

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

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

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

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

query I rowsort
SELECT ALL - 54 + + + 17 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3189
SELECT CASE + 27 WHEN - MAX( DISTINCT + 77 ) + + 90 + + 84 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 70 * + 14 + + CAST( NULL AS SIGNED ) ELSE + - 94 END - - - 77 DIV + 90 * - 97
----
-94

skipif mysql # not compatible
query I rowsort label-3189
SELECT CASE + 27 WHEN - MAX ( DISTINCT + 77 ) + + 90 + + 84 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 70 * + 14 + + CAST ( NULL AS INTEGER ) ELSE + - 94 END - - - 77 / + 90 * - 97
----
-94

query I rowsort
SELECT 39 - + 13 * 12 * 89 * + + 8 + - + 90
----
-111123

query I rowsort
SELECT DISTINCT + - 63 + 29 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3192
SELECT - 92 DIV + + 78 + + + 26 + - - 28 * + - NULLIF ( + + 93, - MAX( DISTINCT - 72 ) ) * + 78 * 52
----
-10561799

skipif mysql # not compatible
query I rowsort label-3192
SELECT - 92 / + + 78 + + + 26 + - - 28 * + - NULLIF ( + + 93, - MAX ( DISTINCT - 72 ) ) * + 78 * 52
----
-10561799

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT 45 + + NULLIF ( + - NULLIF ( - 54, - - 38 + - 36 ), - 9 * MIN( ALL + 57 ) * - 24 + + 49 )
----
99

skipif mysql # not compatible
query I rowsort label-3193
SELECT 45 + + NULLIF ( + - NULLIF ( - 54, - - 38 + - 36 ), - 9 * MIN ( ALL + 57 ) * - 24 + + 49 )
----
99

query I rowsort
SELECT DISTINCT - - 51 * - - 6
----
306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL + - ( - NULLIF ( 76, + - 84 ) ) + - CASE + - 2 WHEN + COUNT( ALL ( - 28 ) ) / CAST( NULL AS SIGNED ) * + COUNT( * ) + + 74 + + 8 THEN + - 67 + 52 * + 90 + - COUNT( * ) + - 42 + - - 72 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + - ( - NULLIF ( 76, + - 84 ) ) + - CASE + - 2 WHEN + COUNT ( ALL ( - 28 ) ) / CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 74 + + 8 THEN + - 67 + 52 * + 90 + - COUNT ( * ) + - 42 + - - 72 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3196
SELECT ALL - 11 / - ( - CAST( NULL AS DECIMAL ) ) + - ( + + COUNT( * ) ), + COUNT( * ) * - - CAST( NULL AS SIGNED ) * - CAST( ( - 37 ) AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3196
SELECT ALL - 11 / - ( - CAST ( NULL AS REAL ) ) + - ( + + COUNT ( * ) ), + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - CAST ( ( - 37 ) AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + 58 + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-3197
SELECT + 58 + + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT + - COUNT( * ) AS col0, 2 * - 23
----
-1
-46

skipif mysql # not compatible
query II rowsort label-3198
SELECT + - COUNT ( * ) AS col0, 2 * - 23
----
-1
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT ALL + - 13 * MIN( DISTINCT - - ( + 83 ) ) * - 35 - - 5 DIV - + MAX( 71 ) AS col0
----
37765

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + - 13 * MIN ( DISTINCT - - ( + 83 ) ) * - 35 - - 5 / - + MAX ( 71 ) AS col0
----
37765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT - + 44 * + - 49 + + 82 * + CAST( NULL AS SIGNED ) * 23 * + - 90 + + ( 4 ) + - 36 - - 27 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT - + 44 * + - 49 + + 82 * + CAST ( NULL AS INTEGER ) * 23 * + - 90 + + ( 4 ) + - 36 - - 27 * + 83
----
NULL

query II rowsort
SELECT ALL - - 41, + 57 AS col0
----
41
57

query I rowsort
SELECT + 85 * - 34
----
-2890

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL - - 8 * - + MIN( 35 ) AS col1
----
-280

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - - 8 * - + MIN ( 35 ) AS col1
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + - 58 / - CASE - 70 WHEN + - 61 * 69 - + NULLIF ( + ( - + 90 ), - 67 - - 6 + - 21 ) THEN 47 END * + ( + 24 ) + - - 66 / + COUNT( * ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT + - 58 / - CASE - 70 WHEN + - 61 * 69 - + NULLIF ( + ( - + 90 ), - 67 - - 6 + - 21 ) THEN 47 END * + ( + 24 ) + - - 66 / + COUNT ( * ) + + 28
----
NULL

query II rowsort
SELECT ALL - + 77 AS col0, + 38 AS col0
----
-77
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT COUNT( * ) + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3206
SELECT COUNT ( * ) + 54 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL + NULLIF ( 8, - CAST( 14 AS SIGNED ) - CAST( NULL AS SIGNED ) ) col2
----
8

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + NULLIF ( 8, - CAST ( 14 AS INTEGER ) - CAST ( NULL AS INTEGER ) ) col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT 23 * + + 7 * + 30 * + CAST( - - 84 AS SIGNED ) AS col1
----
405720

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT 23 * + + 7 * + 30 * + CAST ( - - 84 AS INTEGER ) AS col1
----
405720

query I rowsort
SELECT ALL + 54 * - 23 AS col0
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3210
SELECT ALL + 17 AS col2, - 16 * - - CAST( NULL AS SIGNED ) * - 21 + 64 * - 14
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL + 17 AS col2, - 16 * - - CAST ( NULL AS INTEGER ) * - 21 + 64 * - 14
----
17
NULL

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

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

query I rowsort
SELECT + 20 * + 38 - + 58 * - 55 AS col1
----
3950

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

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

query I rowsort
SELECT + NULLIF ( - 64, 22 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL 68 * + COALESCE ( + 30, + COUNT( * ) * 83 * 29 ) AS col2
----
2040

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL 68 * + COALESCE ( + 30, + COUNT ( * ) * 83 * 29 ) AS col2
----
2040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT - 74 / + - CAST( NULL AS SIGNED ) * - + ( - 4 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT - 74 / + - CAST ( NULL AS INTEGER ) * - + ( - 4 ) AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3217
SELECT 57 AS col2, COUNT ( * ) AS col0
----
57
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT 92 AS col1, - COUNT( ALL + 39 ) AS col0
----
92
-1

skipif mysql # not compatible
query II rowsort label-3218
SELECT 92 AS col1, - COUNT ( ALL + 39 ) AS col0
----
92
-1

query I rowsort
SELECT 31 * - + 97 - - - 46 AS col2
----
-3053

query I rowsort
SELECT ALL 32 * + 76 AS col1
----
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT DISTINCT MIN( ALL + 38 ) + + - COALESCE ( - CASE 36 WHEN + 82 * - ( + 61 ) * - - COUNT( * ) - - 66 THEN + 35 WHEN + + 58 THEN 93 + + 50 + 97 * - - 39 * CAST( NULL AS SIGNED ) ELSE NULL END, - 97, + 66 ) col0
----
135

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT MIN ( ALL + 38 ) + + - COALESCE ( - CASE 36 WHEN + 82 * - ( + 61 ) * - - COUNT ( * ) - - 66 THEN + 35 WHEN + + 58 THEN 93 + + 50 + 97 * - - 39 * CAST ( NULL AS INTEGER ) ELSE NULL END, - 97, + 66 ) col0
----
135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3222
SELECT ALL 92 AS col0, COALESCE ( 38, + 10, 64 * + 27 + - + 46 DIV - CAST( NULL AS SIGNED ) * 97 )
----
92
38

skipif mysql # not compatible
query II rowsort label-3222
SELECT ALL 92 AS col0, COALESCE ( 38, + 10, 64 * + 27 + - + 46 / - CAST ( NULL AS INTEGER ) * 97 )
----
92
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT NULLIF ( - 16, + 95 * - ( ( + - 51 ) ) * + 62 / - 87 + - - COUNT( - 96 ) ) + - 1 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT NULLIF ( - 16, + 95 * - ( ( + - 51 ) ) * + 62 / - 87 + - - COUNT ( - 96 ) ) + - 1 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - 22 + - COUNT( * ) * 10 + - 7 col0
----
-39

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - 22 + - COUNT ( * ) * 10 + - 7 col0
----
-39

query I rowsort
SELECT - ( 3 ) col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + 43 + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3226
SELECT + 43 + - COUNT ( * )
----
42

query I rowsort
SELECT - 49 - + 9 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - MIN( DISTINCT - - 98 ) + + 51 - + 70
----
-117

skipif mysql # not compatible
query I rowsort label-3228
SELECT - MIN ( DISTINCT - - 98 ) + + 51 - + 70
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT ALL - + 48 * + 93 * + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - + 48 * + 93 * + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3230
SELECT - CASE 64 WHEN + 22 * CAST( NULL AS DECIMAL ) THEN + - 38 WHEN - + 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT - CASE 64 WHEN + 22 * CAST ( NULL AS REAL ) THEN + - 38 WHEN - + 51 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 82 * + 70
----
-5740

query II rowsort
SELECT ALL 50 col2, + ( - - COALESCE ( - 60, 86 ) )
----
50
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL NULLIF ( + 63, 58 + + 76 ) * + COALESCE ( + 57, 11 + CASE - 79 WHEN - 73 THEN + 28 END * - CASE 88 WHEN + 22 * + - ( - COUNT( * ) ) THEN + + 78 ELSE + + 31 END ) AS col1
----
3591

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL NULLIF ( + 63, 58 + + 76 ) * + COALESCE ( + 57, 11 + CASE - 79 WHEN - 73 THEN + 28 END * - CASE 88 WHEN + 22 * + - ( - COUNT ( * ) ) THEN + + 78 ELSE + + 31 END ) AS col1
----
3591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT ALL + 90 - COUNT( * ) DIV + 21
----
90

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + 90 - COUNT ( * ) / + 21
----
90

query I rowsort
SELECT + 9 - 66 * + 52 AS col2
----
-3423

query I rowsort
SELECT DISTINCT ( - 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL + MIN( DISTINCT 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + MIN ( DISTINCT 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + MIN( DISTINCT - 1 )
----
-1

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

query II rowsort
SELECT + 12 AS col0, - 10
----
12
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3240
SELECT DISTINCT - 66 DIV ( + + 12 ) * + CASE + CASE - + 62 WHEN - 86 * + - 15 THEN NULL ELSE - - COUNT( * ) + - CAST( NULL AS DECIMAL ) + + 88 END WHEN - 74 THEN NULL WHEN - 57 + + 18 + 27 THEN NULL ELSE 26 END AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT - 66 / ( + + 12 ) * + CASE + CASE - + 62 WHEN - 86 * + - 15 THEN NULL ELSE - - COUNT ( * ) + - CAST ( NULL AS REAL ) + + 88 END WHEN - 74 THEN NULL WHEN - 57 + + 18 + 27 THEN NULL ELSE 26 END AS col1
----
-130

query II rowsort
SELECT - + COALESCE ( - 14, 54 ) * - 3 AS col2, + 58
----
-42
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3242
SELECT ALL - CAST( NULL AS SIGNED ) * + 81 DIV 92 + 84 + + 80 * 8, + 21 DIV - 55 + - ( + - 96 ) * + 37 AS col1
----
NULL
3552

skipif mysql # not compatible
query II rowsort label-3242
SELECT ALL - CAST ( NULL AS INTEGER ) * + 81 / 92 + 84 + + 80 * 8, + 21 / - 55 + - ( + - 96 ) * + 37 AS col1
----
NULL
3552

query I rowsort
SELECT - 58 - - 19 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT - 16 * + COUNT( 39 ) * + + 48 AS col1
----
-768

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - 16 * + COUNT ( 39 ) * + + 48 AS col1
----
-768

query I rowsort
SELECT - 86 * + - 43 AS col1
----
3698

query II rowsort
SELECT - 87 - 6 - 28 * 70 * - + 86 + - 56 * 45 AS col2, 58
----
165947
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL - COUNT( * ) * - 67 * - + 71
----
-4757

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - COUNT ( * ) * - 67 * - + 71
----
-4757

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT ALL COUNT( * ) * - 93 + - 86 * - 39 + + - 45 AS col2, 5 AS col2
----
3216
5

skipif mysql # not compatible
query II rowsort label-3248
SELECT ALL COUNT ( * ) * - 93 + - 86 * - 39 + + - 45 AS col2, 5 AS col2
----
3216
5

query I rowsort
SELECT - 63 - 81 * 64 - - 74 - ( - 16 ) * 3
----
-5125

query I rowsort
SELECT + 39 * 1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT ALL - CAST( NULL AS SIGNED ) * 6 + - ( - - 26 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - CAST ( NULL AS INTEGER ) * 6 + - ( - - 26 ) col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3253
SELECT CASE + COUNT( * ) WHEN - - 28 THEN + ( + 51 ) WHEN 43 THEN - 49 ELSE + 67 END AS col1, 57 * + 93 AS col2
----
67
5301

skipif mysql # not compatible
query II rowsort label-3253
SELECT CASE + COUNT ( * ) WHEN - - 28 THEN + ( + 51 ) WHEN 43 THEN - 49 ELSE + 67 END AS col1, 57 * + 93 AS col2
----
67
5301

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

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

query I rowsort
SELECT DISTINCT 53 * 68 + + ( - 74 )
----
3530

query I rowsort
SELECT ALL 15 * - 26 AS col2
----
-390

query I rowsort
SELECT - ( 55 ) * - - 60 + + ( 91 )
----
-3209

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL + 88 * + 73 * + 17 + + - COUNT( * ) * - ( + 29 ) * - 34
----
108222

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + 88 * + 73 * + 17 + + - COUNT ( * ) * - ( + 29 ) * - 34
----
108222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3259
SELECT + 56 + CAST( NULL AS SIGNED ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3259
SELECT + 56 + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + 25 + + + 57 * + 90 * + - CASE - 17 WHEN - 62 + - 70 THEN - ( + - 78 ) END AS col1
----
NULL

query I rowsort
SELECT + 37 * - 43
----
-1591

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3262
SELECT - CAST( 66 AS SIGNED ), - 55 + + - 49 * + 61 AS col0
----
-66
-3044

skipif mysql # not compatible
query II rowsort label-3262
SELECT - CAST ( 66 AS INTEGER ), - 55 + + - 49 * + 61 AS col0
----
-66
-3044

query I rowsort
SELECT ALL 7 - 58 + 34 * + - 33
----
-1173

query I rowsort
SELECT DISTINCT + + 67 * + 73 col2
----
4891

query I rowsort
SELECT + 40 * - 99 * - 55
----
217800

query I rowsort
SELECT + + 98 + + 1
----
99

query II rowsort
SELECT + 98 - - 79, 58 - 13 + - 15 AS col0
----
177
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3268
SELECT + - ( + + ( 53 ) ) DIV CAST( + 8 AS SIGNED ) * - 4 + + + 17
----
41

skipif mysql # not compatible
query I rowsort label-3268
SELECT + - ( + + ( 53 ) ) / CAST ( + 8 AS INTEGER ) * - 4 + + + 17
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3269
SELECT + - 23 + + 7 AS col1, 20 + 50 + 45 + SUM( DISTINCT 27 ) + + 54 + + 67 + - ( 5 ) + + CASE - 57 WHEN - 84 * + + CAST( 47 AS DECIMAL ) * + + 52 * + 84 THEN NULL WHEN 21 THEN NULL ELSE + 59 * 88 + 56 END + + ( - + COUNT( * ) ) AS col0
----
-16
5505

skipif mysql # not compatible
query II rowsort label-3269
SELECT + - 23 + + 7 AS col1, 20 + 50 + 45 + SUM ( DISTINCT 27 ) + + 54 + + 67 + - ( 5 ) + + CASE - 57 WHEN - 84 * + + CAST ( 47 AS REAL ) * + + 52 * + 84 THEN NULL WHEN 21 THEN NULL ELSE + 59 * 88 + 56 END + + ( - + COUNT ( * ) ) AS col0
----
-16
5505

query I rowsort
SELECT + + 17 + + 58 + 3 AS col2
----
78

query I rowsort
SELECT + + 48 * 16 - - 86 col2
----
854

query I rowsort
SELECT - 90 + 70 + ( + + 48 )
----
28

query I rowsort
SELECT ALL 60 * - 34 AS col2
----
-2040

query II rowsort
SELECT ALL ( CASE + 29 WHEN - 88 THEN - 33 END ) AS col2, + 72 AS col2
----
NULL
72

query I rowsort
SELECT 95 + + 73 col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - 56 + 97 * - COUNT( * ) AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-3276
SELECT - 56 + 97 * - COUNT ( * ) AS col2
----
-153

query I rowsort
SELECT + 58 * 4 * + 68 + - 99 + 64 * + COALESCE ( - 67, - 40 + - 90 ) AS col0
----
11389

query I rowsort
SELECT 33 * - - 2 - + 41 - 54
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT SUM( DISTINCT + 24 ) AS col0, 98 AS col1
----
24
98

skipif mysql # not compatible
query II rowsort label-3279
SELECT SUM ( DISTINCT + 24 ) AS col0, 98 AS col1
----
24
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL + 52 + NULLIF ( - COUNT( + 63 ), + + 44 + 12 ) + - MIN( + 90 )
----
-39

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + 52 + NULLIF ( - COUNT ( + 63 ), + + 44 + 12 ) + - MIN ( + 90 )
----
-39

query I rowsort
SELECT 7 + 97 * 1 * - ( + - 0 ) * ( 3 )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3282
SELECT ( COUNT( * ) ) DIV - 1 AS col0, - 48
----
-1
-48

skipif mysql # not compatible
query II rowsort label-3282
SELECT ( COUNT ( * ) ) / - 1 AS col0, - 48
----
-1
-48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3284
SELECT ALL + 67 + + + 92 + + + CAST( - 17 AS SIGNED ) + + 20 - - 60 + - SUM( - 0 )
----
222

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + 67 + + + 92 + + + CAST ( - 17 AS INTEGER ) + + 20 - - 60 + - SUM ( - 0 )
----
222

query I rowsort
SELECT ALL 16 + 78
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT DISTINCT + COALESCE ( 66, + ( COUNT( * ) ) ) + - + 81 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT + COALESCE ( 66, + ( COUNT ( * ) ) ) + - + 81 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT 7 DIV - ( ( + 99 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT 7 / - ( ( + 99 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL COUNT( * ) + + - MAX( + - 70 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL COUNT ( * ) + + - MAX ( + - 70 ) AS col2
----
71

query I rowsort
SELECT ALL - ( - 68 ) * 23 + + 10
----
1574

query I rowsort
SELECT DISTINCT + 22 + - 83 + ( + - 17 ) * - 24 AS col2
----
347

query II rowsort
SELECT ALL - 58, - 8 AS col2
----
-58
-8

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

skipif mysql # not compatible
query I rowsort label-3292
SELECT COUNT ( * ) * + CAST ( - 86 AS INTEGER )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - SUM( ALL - + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - SUM ( ALL - + 38 ) AS col0
----
38

query I rowsort
SELECT ALL + 5 - - - 20 - 77 + - - 59
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3295
SELECT ALL + 77 * ( + 29 ), ( 99 ) * 19 DIV 13 DIV - SUM( ALL - 68 ) * COUNT( * ) AS col0
----
2233
2

skipif mysql # not compatible
query II rowsort label-3295
SELECT ALL + 77 * ( + 29 ), ( 99 ) * 19 / 13 / - SUM ( ALL - 68 ) * COUNT ( * ) AS col0
----
2233
2

query II rowsort
SELECT ALL 8, + ( - NULLIF ( + 99, + + 52 * - + 26 + - 80 ) ) + + 63 * + - CASE + ( 51 ) WHEN 55 THEN ( + 4 ) + 97 * + 50 / - ( + 90 ) / + 18 ELSE NULL END AS col0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT 41 - - ( 69 ) * + - MIN( ALL - 12 )
----
869

skipif mysql # not compatible
query I rowsort label-3297
SELECT 41 - - ( 69 ) * + - MIN ( ALL - 12 )
----
869

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL 10 AS col1, 39 * - 65 * + CASE 23 WHEN - 6 THEN NULL WHEN + COUNT( * ) THEN + COUNT( ALL + - 4 ) END AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL 10 AS col1, 39 * - 65 * + CASE 23 WHEN - 6 THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( ALL + - 4 ) END AS col1
----
10
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3299
SELECT 72 AS col0, 26 * 56 * MAX( - 90 ) + - - ( 31 ) DIV 1 AS col0
----
72
-131009

skipif mysql # not compatible
query II rowsort label-3299
SELECT 72 AS col0, 26 * 56 * MAX ( - 90 ) + - - ( 31 ) / 1 AS col0
----
72
-131009

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3300
SELECT + 38 * - 16 - + 89 AS col0, COALESCE ( COUNT( * ), + COUNT( * ) * 2 DIV - 69 * + 56 ) * - + 79 * + COUNT( * ) AS col1
----
-697
-79

skipif mysql # not compatible
query II rowsort label-3300
SELECT + 38 * - 16 - + 89 AS col0, COALESCE ( COUNT ( * ), + COUNT ( * ) * 2 / - 69 * + 56 ) * - + 79 * + COUNT ( * ) AS col1
----
-697
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT ALL + 32 DIV - - 1 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + 32 / - - 1 AS col2
----
32

query I rowsort
SELECT COALESCE ( 94, - - 88 + + 74, + 12 ) + 34
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT - - ( - ( - 19 ) ) col0, COALESCE ( + - 94, - 5 * - 79 * - SUM( DISTINCT + 31 ) + + + 41 + 10 )
----
19
-94

skipif mysql # not compatible
query II rowsort label-3303
SELECT - - ( - ( - 19 ) ) col0, COALESCE ( + - 94, - 5 * - 79 * - SUM ( DISTINCT + 31 ) + + + 41 + 10 )
----
19
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT ALL + CAST( CAST( 76 AS SIGNED ) AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + CAST ( CAST ( 76 AS INTEGER ) AS INTEGER ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3305
SELECT DISTINCT + 99 * + 20 + + CAST( + + 30 AS SIGNED ) DIV 60 + - SUM( ALL + + 99 ) + + 85 AS col0
----
1966

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + 99 * + 20 + + CAST ( + + 30 AS INTEGER ) / 60 + - SUM ( ALL + + 99 ) + + 85 AS col0
----
1966

query I rowsort
SELECT + 95 + - 97 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT 99 - MAX( DISTINCT + + ( + - 60 ) ) * 50 * + - 97 AS col1
----
-290901

skipif mysql # not compatible
query I rowsort label-3307
SELECT 99 - MAX ( DISTINCT + + ( + - 60 ) ) * 50 * + - 97 AS col1
----
-290901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT - COUNT( * ) * - - NULLIF ( + 67, - 73 + - ( - + 11 ) ) DIV + + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3308
SELECT - COUNT ( * ) * - - NULLIF ( + 67, - 73 + - ( - + 11 ) ) / + + 93 AS col0
----
0

query II rowsort
SELECT - 8 col0, 1
----
-8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL + NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) ) + - NULLIF ( - 11, - + 25 * 41 ) * - 20 AS col0
----
-219

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) ) + - NULLIF ( - 11, - + 25 * 41 ) * - 20 AS col0
----
-219

query I rowsort
SELECT ALL + + 97 + + + 61 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT + COALESCE ( - 91, SUM( - - 95 ), - + 28 * - 39 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-3312
SELECT + COALESCE ( - 91, SUM ( - - 95 ), - + 28 * - 39 ) AS col0
----
-91

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

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

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

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + ( - + 67 ) / - COUNT ( * )
----
67

query I rowsort
SELECT ALL + 56 + + 1 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - 77 * CASE CASE + + 21 WHEN + + 42 + - 96 - + COUNT( * ) THEN - ( - 67 ) - + + COUNT( + 75 ) * 59 * 95 ELSE NULL END WHEN + - 72 + 16 / + ( + NULLIF ( 98, - 71 - 72 / - 15 * - ( 61 ) - - 73 ) ) THEN NULL ELSE - COUNT( * ) END * + - 33
----
-2541

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 77 * CASE CASE + + 21 WHEN + + 42 + - 96 - + COUNT ( * ) THEN - ( - 67 ) - + + COUNT ( + 75 ) * 59 * 95 ELSE NULL END WHEN + - 72 + 16 / + ( + NULLIF ( 98, - 71 - 72 / - 15 * - ( 61 ) - - 73 ) ) THEN NULL ELSE - COUNT ( * ) END * + - 33
----
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - MIN( ALL + + 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - MIN ( ALL + + 86 ) AS col1
----
-86

query I rowsort
SELECT ALL 60 + + 60 AS col2
----
120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3320
SELECT DISTINCT COALESCE ( 89, 97, + 36 ) * - + 2 + + + 47 + - - CAST( NULL AS SIGNED ) AS col2, + 79
----
NULL
79

skipif mysql # not compatible
query II rowsort label-3320
SELECT DISTINCT COALESCE ( 89, 97, + 36 ) * - + 2 + + + 47 + - - CAST ( NULL AS INTEGER ) AS col2, + 79
----
NULL
79

query I rowsort
SELECT 72 * - 14 + - + 28 - 50
----
-1086

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

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

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

skipif mysql # not compatible
query I rowsort label-3323
SELECT CAST ( NULL AS REAL ) * + 11 * + + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ( - - 92 ) * 77 + 79 * + 64 + COUNT( * ) + + + 47 AS col0
----
12188

skipif mysql # not compatible
query I rowsort label-3324
SELECT ( - - 92 ) * 77 + 79 * + 64 + COUNT ( * ) + + + 47 AS col0
----
12188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT 32 - SUM( DISTINCT - ( + CAST( + 23 AS SIGNED ) ) )
----
55

skipif mysql # not compatible
query I rowsort label-3325
SELECT 32 - SUM ( DISTINCT - ( + CAST ( + 23 AS INTEGER ) ) )
----
55

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3327
SELECT - COUNT( * ) * + 18 * + 40 - + 7, COUNT( * ) DIV 24 col1
----
-727
0

skipif mysql # not compatible
query II rowsort label-3327
SELECT - COUNT ( * ) * + 18 * + 40 - + 7, COUNT ( * ) / 24 col1
----
-727
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL - MIN( 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - MIN ( 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT CAST( NULL AS SIGNED ) * + 82 * + CASE + 84 WHEN - - 17 - ( 60 ) THEN - CASE + - 34 WHEN 64 THEN COUNT( * ) ELSE NULL END + - 49 + 61 ELSE NULL END * CASE - NULLIF ( - - 93, 49 ) WHEN - CASE + CAST( + 23 AS SIGNED ) WHEN 18 + - + 53 THEN + 13 END THEN - + SUM( ALL + + 76 ) ELSE NULL END + 52 * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT CAST ( NULL AS INTEGER ) * + 82 * + CASE + 84 WHEN - - 17 - ( 60 ) THEN - CASE + - 34 WHEN 64 THEN COUNT ( * ) ELSE NULL END + - 49 + 61 ELSE NULL END * CASE - NULLIF ( - - 93, 49 ) WHEN - CASE + CAST ( + 23 AS INTEGER ) WHEN 18 + - + 53 THEN + 13 END THEN - + SUM ( ALL + + 76 ) ELSE NULL END + 52 * + 8 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 87 AS col2
----
NULL

query I rowsort
SELECT ALL - 0 * + + 25 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT DISTINCT 55 DIV 1 * 32
----
1760

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT 55 / 1 * 32
----
1760

query I rowsort
SELECT ALL - - ( 83 ) * + 87 AS col0
----
7221

onlyif mysql # aggregate syntax: 
query II rowsort label-3334
SELECT ALL + COUNT( * ) * - ( 93 ) + 52, + 62 AS col0
----
-41
62

skipif mysql # not compatible
query II rowsort label-3334
SELECT ALL + COUNT ( * ) * - ( 93 ) + 52, + 62 AS col0
----
-41
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT 24 * - + 32 + - 91 + + ( - 40 ) + - - CASE - COUNT( * ) WHEN + 25 + + - 53 THEN NULL ELSE COUNT( * ) * + + 91 / + - CASE 50 WHEN - 63 * 29 + + + 30 THEN + + 80 * + + 41 END * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT 24 * - + 32 + - 91 + + ( - 40 ) + - - CASE - COUNT ( * ) WHEN + 25 + + - 53 THEN NULL ELSE COUNT ( * ) * + + 91 / + - CASE 50 WHEN - 63 * 29 + + + 30 THEN + + 80 * + + 41 END * - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT 68 + - 30
----
38

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

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

query I rowsort
SELECT - 63 + 75 * - 63
----
-4788

query I rowsort
SELECT ALL + + 62 + - 35 AS col2
----
27

query I rowsort
SELECT DISTINCT + + 45 + + 9 * - 97 AS col1
----
-828

query I rowsort
SELECT ALL - 46 + 22 * + 89
----
1912

query I rowsort
SELECT - - 40 + + - 30
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT - - MAX( ALL - + 64 ) AS col2, - 70
----
-64
-70

skipif mysql # not compatible
query II rowsort label-3343
SELECT - - MAX ( ALL - + 64 ) AS col2, - 70
----
-64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - COALESCE ( + 85, COUNT( * ) * + - 27, + ( + - 51 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - COALESCE ( + 85, COUNT ( * ) * + - 27, + ( + - 51 ) )
----
-85

query I rowsort
SELECT - + 65 * + - ( 37 ) - ( + 25 ) + - 2
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL 78 + + 34 - - MAX( - 10 ) * 36
----
-248

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL 78 + + 34 - - MAX ( - 10 ) * 36
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - SUM( DISTINCT 32 ) + + 53
----
21

skipif mysql # not compatible
query I rowsort label-3347
SELECT - SUM ( DISTINCT 32 ) + + 53
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3348
SELECT - 5 DIV NULLIF ( - - 7, + COUNT( * ) * - 70 * 47 ) + + + 16 * - - 56 AS col2
----
896

skipif mysql # not compatible
query I rowsort label-3348
SELECT - 5 / NULLIF ( - - 7, + COUNT ( * ) * - 70 * 47 ) + + + 16 * - - 56 AS col2
----
896

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT + 74 + + - 72 DIV + 23 - - 20 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3349
SELECT + 74 + + - 72 / + 23 - - 20 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT + + CAST( NULL AS SIGNED ) + 9 + - - 87 * 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + + CAST ( NULL AS INTEGER ) + 9 + - - 87 * 87 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT - + 13 + - 34 + + + 54 DIV + 67
----
-47

skipif mysql # not compatible
query I rowsort label-3351
SELECT - + 13 + - 34 + + + 54 / + 67
----
-47

query I rowsort
SELECT DISTINCT + 21 + - - 20 + + - 42 + + + NULLIF ( 76, + 66 ) AS col0
----
75

query I rowsort
SELECT ALL - 67 + 88 * - 45
----
-4027

query I rowsort
SELECT DISTINCT + ( 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL + 67 * - 84 * + CASE 16 WHEN - 19 THEN NULL WHEN + 88 THEN - - 25 * + 73 + - + 14 END / - COUNT( * ) - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + 67 * - 84 * + CASE 16 WHEN - 19 THEN NULL WHEN + 88 THEN - - 25 * + 73 + - + 14 END / - COUNT ( * ) - + 67
----
NULL

query I rowsort
SELECT + 98 * - 15 * + 51 * + - 58 AS col0
----
4348260

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

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

query II rowsort
SELECT DISTINCT - 22 * 54 * - - 52 - - 5 * - 69 + - 36 AS col2, - NULLIF ( - - 48, - 46 )
----
-62157
-48

query I rowsort
SELECT + 33 * - - 41 * - 94 AS col0
----
-127182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT NULLIF ( - - 52, CASE 22 WHEN CAST( + 54 AS SIGNED ) * 76 THEN + 87 WHEN + 12 * - 95 THEN NULL END ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3360
SELECT NULLIF ( - - 52, CASE 22 WHEN CAST ( + 54 AS INTEGER ) * 76 THEN + 87 WHEN + 12 * - 95 THEN NULL END ) AS col2
----
52

query I rowsort
SELECT + 50 + - 21
----
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT + COALESCE ( + 74, - - 39 ) + + - COALESCE ( - 89, + 54, - + 74 DIV + 85 ) col0
----
163

skipif mysql # not compatible
query I rowsort label-3363
SELECT + COALESCE ( + 74, - - 39 ) + + - COALESCE ( - 89, + 54, - + 74 / + 85 ) col0
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT + 38 * + CAST( - ( - 62 ) AS SIGNED ) * + + 43 * - 29 AS col1
----
-2937932

skipif mysql # not compatible
query I rowsort label-3364
SELECT + 38 * + CAST ( - ( - 62 ) AS INTEGER ) * + + 43 * - 29 AS col1
----
-2937932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3365
SELECT CASE + - 14 WHEN - COUNT( * ) THEN + CAST( NULL AS DECIMAL ) * 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT CASE + - 14 WHEN - COUNT ( * ) THEN + CAST ( NULL AS REAL ) * 55 END AS col0
----
NULL

query I rowsort
SELECT ALL 85 * - 19
----
-1615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3367
SELECT + COALESCE ( + 80, - 66 + + + 23 * + 41 + + + MIN( + 78 ) DIV - - 11 + - - 96 * 54 ) * + + 17
----
1360

skipif mysql # not compatible
query I rowsort label-3367
SELECT + COALESCE ( + 80, - 66 + + + 23 * + 41 + + + MIN ( + 78 ) / - - 11 + - - 96 * 54 ) * + + 17
----
1360

query I rowsort
SELECT DISTINCT 14 * + 56 AS col0
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3369
SELECT CASE - 38 WHEN 68 + + 57 * + 10 THEN CAST( - + 90 AS SIGNED ) * ( 50 ) WHEN - - CAST( NULL AS SIGNED ) - - 77 * + 47 THEN 86 ELSE NULL END AS col1, 66 * + 24 * - + 24
----
NULL
-38016

skipif mysql # not compatible
query II rowsort label-3369
SELECT CASE - 38 WHEN 68 + + 57 * + 10 THEN CAST ( - + 90 AS INTEGER ) * ( 50 ) WHEN - - CAST ( NULL AS INTEGER ) - - 77 * + 47 THEN 86 ELSE NULL END AS col1, 66 * + 24 * - + 24
----
NULL
-38016

query I rowsort
SELECT + 43 * - - 37 AS col0
----
1591

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL - 63 * + COUNT( * ) * + + COALESCE ( - - 75, + + 3 + 8 * MIN( DISTINCT + + CASE - + 85 WHEN - 21 THEN + 52 * - 91 END ) ) + + 78
----
-4647

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 63 * + COUNT ( * ) * + + COALESCE ( - - 75, + + 3 + 8 * MIN ( DISTINCT + + CASE - + 85 WHEN - 21 THEN + 52 * - 91 END ) ) + + 78
----
-4647

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

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

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

query I rowsort
SELECT + 72 * + 59
----
4248

query I rowsort
SELECT + 31 + ( - 35 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3376
SELECT + SUM( ALL 31 ) * 73 + CASE + COUNT( * ) WHEN - COALESCE ( CAST( NULL AS SIGNED ), - 74 / 19, - ( - 92 ) * 80 ) THEN 56 WHEN - 17 * 56 THEN 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT + SUM ( ALL 31 ) * 73 + CASE + COUNT ( * ) WHEN - COALESCE ( CAST ( NULL AS INTEGER ), - 74 / 19, - ( - 92 ) * 80 ) THEN 56 WHEN - 17 * 56 THEN 1 END
----
NULL

query I rowsort
SELECT ALL 1 * 50 + 93 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL 70 * 91 + COUNT( * ) * 72
----
6442

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL 70 * 91 + COUNT ( * ) * 72
----
6442

query I rowsort
SELECT + 82 * - 51 - 46
----
-4228

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

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

query I rowsort
SELECT + 77 - 11 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + CASE 63 WHEN COUNT( * ) THEN + ( 33 ) * + 23 + COALESCE ( COUNT( * ), 1 ) WHEN + 92 * - ( 54 / MAX( ALL - 53 * - 96 ) ) THEN COUNT( 13 ) + + 33 END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT + CASE 63 WHEN COUNT ( * ) THEN + ( 33 ) * + 23 + COALESCE ( COUNT ( * ), 1 ) WHEN + 92 * - ( 54 / MAX ( ALL - 53 * - 96 ) ) THEN COUNT ( 13 ) + + 33 END * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + 41 + SUM( ALL 62 )
----
103

skipif mysql # not compatible
query I rowsort label-3383
SELECT + 41 + SUM ( ALL 62 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - 47 * - MIN( ALL + ( 49 ) ) AS col1
----
2303

skipif mysql # not compatible
query I rowsort label-3384
SELECT - 47 * - MIN ( ALL + ( 49 ) ) AS col1
----
2303

query I rowsort
SELECT - 64 + - 91 * + 52
----
-4796

query I rowsort
SELECT DISTINCT NULLIF ( 28, + ( 72 ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL ( + COUNT( ALL ( COALESCE ( 79, 75, 81 + 0 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL ( + COUNT ( ALL ( COALESCE ( 79, 75, 81 + 0 ) ) ) )
----
1

query I rowsort
SELECT - 87 * 10
----
-870

query I rowsort
SELECT ALL NULLIF ( - 94, + 3 ) AS col0
----
-94

query I rowsort
SELECT DISTINCT - 35 - ( - 14 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3391
SELECT ALL CASE SUM( 38 ) WHEN 20 THEN NULL ELSE CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL CASE SUM ( 38 ) WHEN 20 THEN NULL ELSE CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT - 51 * 90 AS col1
----
-4590

query I rowsort
SELECT - 57 * - 66
----
3762

query I rowsort
SELECT - 68 + - 67 AS col0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT DISTINCT - COALESCE ( - ( + 3 ), + AVG ( ALL 78 ) DIV + 14 ) * - 32 col0
----
-96

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - COALESCE ( - ( + 3 ), + AVG ( ALL 78 ) / + 14 ) * - 32 col0
----
-96

query I rowsort
SELECT - 45 + 57 AS col1
----
12

query I rowsort
SELECT - 21 * + 32 col1
----
-672

query I rowsort
SELECT + COALESCE ( ( + NULLIF ( 42, + 76 ) ), 95 ) AS col0
----
42

query I rowsort
SELECT - 38 - 66 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + MIN( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + MIN ( + 46 ) AS col1
----
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL + CAST( - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + CAST ( - 14 AS INTEGER )
----
-14

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

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

query I rowsort
SELECT - 54 * 56 + + 84 * 73
----
3108

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT ALL 66 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL 66 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT COUNT( * ) * + 75 - + 39
----
36

skipif mysql # not compatible
query I rowsort label-3406
SELECT COUNT ( * ) * + 75 - + 39
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT MIN( DISTINCT 27 ) + + 37 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT MIN ( DISTINCT 27 ) + + 37 AS col2
----
64

query I rowsort
SELECT ALL - 20 + + 49 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT 84 + NULLIF ( COUNT( * ), 97 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3409
SELECT 84 + NULLIF ( COUNT ( * ), 97 ) AS col0
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT + COUNT( * ) * + 0 + MIN( - 72 ) * + NULLIF ( - COUNT( * ) * - 8 + - ( - 92 ) * + 18, - 86 * 43 - + CAST( NULL AS SIGNED ) ) col1
----
-119808

skipif mysql # not compatible
query I rowsort label-3411
SELECT + COUNT ( * ) * + 0 + MIN ( - 72 ) * + NULLIF ( - COUNT ( * ) * - 8 + - ( - 92 ) * + 18, - 86 * 43 - + CAST ( NULL AS INTEGER ) ) col1
----
-119808

query I rowsort
SELECT + + CASE 23 WHEN + 60 * 68 THEN 70 + 64 WHEN 28 + 37 THEN 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL 81 + + MAX( 0 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL 81 + + MAX ( 0 ) AS col1
----
81

query I rowsort
SELECT 64 * + 56 AS col2
----
3584

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ( SUM( + 94 ) ) + 15 * + 7
----
199

skipif mysql # not compatible
query I rowsort label-3415
SELECT ( SUM ( + 94 ) ) + 15 * + 7
----
199

query I rowsort
SELECT + 73 + - 8
----
65

query I rowsort
SELECT 56 * - 58 AS col0
----
-3248

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + 47 + COUNT( ALL - 81 ) * - 61
----
-14

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 47 + COUNT ( ALL - 81 ) * - 61
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT + MAX( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + MAX ( 16 ) AS col0
----
16

query I rowsort
SELECT - 48 * - 12 + + 6 * - 46 AS col2
----
300

query I rowsort
SELECT 64 + ( 51 ) AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT MAX( 9 ) + - ( 38 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3422
SELECT MAX ( 9 ) + - ( 38 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL COUNT( * ) * + 56 col0
----
56

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL COUNT ( * ) * + 56 col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3424
SELECT MIN( ALL 79 ) DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-3424
SELECT MIN ( ALL 79 ) / - 26
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 26 * - - CASE - 19 WHEN 92 * MIN( + 56 ) THEN + 48 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT 26 * - - CASE - 19 WHEN 92 * MIN ( + 56 ) THEN + 48 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT CASE WHEN NOT + 98 > 99 THEN NULL ELSE CAST( NULL AS SIGNED ) * CAST( - 65 AS SIGNED ) END + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT CASE WHEN NOT + 98 > 99 THEN NULL ELSE CAST ( NULL AS INTEGER ) * CAST ( - 65 AS INTEGER ) END + - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL 39 * + CAST( 15 AS SIGNED ) AS col2
----
585

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL 39 * + CAST ( 15 AS INTEGER ) AS col2
----
585

query I rowsort
SELECT 42 + + - 92 * 48
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT 52 + NULLIF ( + 89, COUNT( * ) * + 32 ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-3429
SELECT 52 + NULLIF ( + 89, COUNT ( * ) * + 32 ) AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT NULLIF ( - 43, + 8 ) * + COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT NULLIF ( - 43, + 8 ) * + COUNT ( * ) col0
----
-43

query I rowsort
SELECT DISTINCT 38 + - 35 AS col0
----
3

query I rowsort
SELECT ALL - ( + - 69 ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT 51 * + 32 * ( 69 DIV 21 )
----
4896

skipif mysql # not compatible
query I rowsort label-3433
SELECT 51 * + 32 * ( 69 / 21 )
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL - ( + MAX( DISTINCT 26 ) ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - ( + MAX ( DISTINCT 26 ) ) col2
----
-26

query I rowsort
SELECT ALL - 87 + + 81
----
-6

query I rowsort
SELECT 41 * 0
----
0

query I rowsort
SELECT ALL - 15 + + 38 AS col2
----
23

query I rowsort
SELECT DISTINCT - - 18 + 76
----
94

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

query I rowsort
SELECT DISTINCT + 22 + + - 18
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT + MAX( DISTINCT + CAST( 65 AS SIGNED ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3441
SELECT + MAX ( DISTINCT + CAST ( 65 AS INTEGER ) ) AS col0
----
65

query I rowsort
SELECT + 5 * + - 71 col1
----
-355

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT + + COUNT( * ) DIV + ( + 38 ) - 96 col1
----
-96

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + + COUNT ( * ) / + ( + 38 ) - 96 col1
----
-96

query I rowsort
SELECT + 62 + + 58
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - 71 * - COUNT( * ) - + 96
----
-25

skipif mysql # not compatible
query I rowsort label-3447
SELECT - 71 * - COUNT ( * ) - + 96
----
-25

query I rowsort
SELECT 99 + - 19 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT 10 * - 90 * 60 + - MAX( 50 ) AS col2
----
-54050

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT 10 * - 90 * 60 + - MAX ( 50 ) AS col2
----
-54050

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL COUNT( * ) - 58 + 89
----
32

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL COUNT ( * ) - 58 + 89
----
32

query I rowsort
SELECT 1 * - + 96 - 30
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT - 98 - + + 79 + + CAST( 66 + - 75 * 54 AS SIGNED ) col1
----
-4161

skipif mysql # not compatible
query I rowsort label-3452
SELECT - 98 - + + 79 + + CAST ( 66 + - 75 * 54 AS INTEGER ) col1
----
-4161

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

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( - 30, + 26 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3457
SELECT DISTINCT CASE CAST( NULL AS DECIMAL ) WHEN NULLIF ( 49, COUNT( * ) * + ( - 90 * MIN( DISTINCT + 85 ) ) ) - - 44 * COALESCE ( + 31 + 65, + 66 ) THEN + ( 73 ) / 14 WHEN + 93 THEN + 86 WHEN + 99 THEN - 55 END * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT CASE CAST ( NULL AS REAL ) WHEN NULLIF ( 49, COUNT ( * ) * + ( - 90 * MIN ( DISTINCT + 85 ) ) ) - - 44 * COALESCE ( + 31 + 65, + 66 ) THEN + ( 73 ) / 14 WHEN + 93 THEN + 86 WHEN + 99 THEN - 55 END * 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - MAX( DISTINCT 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3458
SELECT - MAX ( DISTINCT 7 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT 27 * + + 12
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT ALL 86 + COALESCE ( - - 8, + 99 - + AVG ( 97 ) DIV - ( 74 ), - 39, 17 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL 86 + COALESCE ( - - 8, + 99 - + AVG ( 97 ) / - ( 74 ), - 39, 17 ) AS col0
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + 55 * + CASE ( COUNT( * ) ) WHEN - 85 * ( + COUNT( * ) / - 11 ) THEN COUNT( * ) * - 75 ELSE 83 * 8 + 45 END AS col1
----
38995

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + 55 * + CASE ( COUNT ( * ) ) WHEN - 85 * ( + COUNT ( * ) / - 11 ) THEN COUNT ( * ) * - 75 ELSE 83 * 8 + 45 END AS col1
----
38995

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT 31 + - + COUNT( * ) * 57 - 70 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-3464
SELECT 31 + - + COUNT ( * ) * 57 - 70 AS col1
----
-96

query I rowsort
SELECT ALL 26 * - 1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT + COUNT( * ) + + + 6
----
7

skipif mysql # not compatible
query I rowsort label-3466
SELECT + COUNT ( * ) + + + 6
----
7

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

skipif mysql # not compatible
query I rowsort label-3467
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL 46 * - 0 + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL 46 * - 0 + ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + COUNT( * ) - + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT + COUNT ( * ) - + 1 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( 84, 2 - 43 ) * + 90
----
7560

query I rowsort
SELECT 83 * - - 53 + - 43 * 11 AS col2
----
3926

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3472
SELECT + - 98 AS col2, 53 DIV CAST( 84 AS SIGNED )
----
-98
0

skipif mysql # not compatible
query II rowsort label-3472
SELECT + - 98 AS col2, 53 / CAST ( 84 AS INTEGER )
----
-98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - - 24 + + COUNT( * ) - 6 * SUM( DISTINCT + 89 + - 28 ) AS col0
----
-341

skipif mysql # not compatible
query I rowsort label-3473
SELECT - - 24 + + COUNT ( * ) - 6 * SUM ( DISTINCT + 89 + - 28 ) AS col0
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT 12 * - COUNT( * ) + + 42 - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3474
SELECT 12 * - COUNT ( * ) + + 42 - - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3475
SELECT ALL + 88 AS col0, 13 DIV + + 72 * MAX( + 5 )
----
88
0

skipif mysql # not compatible
query II rowsort label-3475
SELECT ALL + 88 AS col0, 13 / + + 72 * MAX ( + 5 )
----
88
0

query I rowsort
SELECT + 52 * - 11 + 5 * 32
----
-412

query I rowsort
SELECT - 2 - + 97 + - 60 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-3478
SELECT ALL + - 77 col0, 34 + - 43 * ( COUNT( * ) + ( + 26 ) )
----
-77
-1127

skipif mysql # not compatible
query II rowsort label-3478
SELECT ALL + - 77 col0, 34 + - 43 * ( COUNT ( * ) + ( + 26 ) )
----
-77
-1127

query I rowsort
SELECT - - ( + + NULLIF ( 6, - 98 * 24 ) ) * ( + 23 ) + 83 AS col2
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT ALL + 77 * + CAST( - 48 AS SIGNED ) * 37 + - 42
----
-136794

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL + 77 * + CAST ( - 48 AS INTEGER ) * 37 + - 42
----
-136794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT - - CASE + 71 WHEN + CAST( + COUNT( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - 47 + 79 THEN NULL WHEN 57 THEN - 33 WHEN + 11 THEN NULL ELSE - 74 * 87 END * - 4
----
25752

skipif mysql # not compatible
query I rowsort label-3481
SELECT - - CASE + 71 WHEN + CAST ( + COUNT ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - 47 + 79 THEN NULL WHEN 57 THEN - 33 WHEN + 11 THEN NULL ELSE - 74 * 87 END * - 4
----
25752

query I rowsort
SELECT ALL - 66 * ( - 74 ) + - 39 * + 10 AS col1
----
4494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT - CAST( + - ( 41 ) AS SIGNED ) * + 89 + MIN( 87 ) AS col2
----
3736

skipif mysql # not compatible
query I rowsort label-3483
SELECT - CAST ( + - ( 41 ) AS INTEGER ) * + 89 + MIN ( 87 ) AS col2
----
3736

query II rowsort
SELECT ALL + 3, 84 col2
----
3
84

query I rowsort
SELECT - + 23 * - 62 + - 25 + 17 * + 12 * + 14
----
4257

query I rowsort
SELECT ALL + 16 * + 52 AS col2
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - ( - 86 ) * + ( MIN( ALL 5 ) ) AS col2
----
430

skipif mysql # not compatible
query I rowsort label-3487
SELECT - ( - 86 ) * + ( MIN ( ALL 5 ) ) AS col2
----
430

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT DISTINCT - 34 DIV 9 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - 34 / 9 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - 22 * - ( + ( - COUNT( * ) ) ) * 64
----
-1408

skipif mysql # not compatible
query I rowsort label-3490
SELECT - 22 * - ( + ( - COUNT ( * ) ) ) * 64
----
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT - CASE + + COALESCE ( - + 37, + - ( 76 ) + - 2 ) WHEN CASE + 89 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 21 + + COUNT( ALL 70 - - 0 ) THEN 88 * COUNT( 50 ) ELSE NULL END / 60 THEN + 99 WHEN + 15 * - 72 + + 6 THEN + 43 * + 4 ELSE COUNT( * ) * 95 END AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3491
SELECT - CASE + + COALESCE ( - + 37, + - ( 76 ) + - 2 ) WHEN CASE + 89 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 21 + + COUNT ( ALL 70 - - 0 ) THEN 88 * COUNT ( 50 ) ELSE NULL END / 60 THEN + 99 WHEN + 15 * - 72 + + 6 THEN + 43 * + 4 ELSE COUNT ( * ) * 95 END AS col2
----
-95

query I rowsort
SELECT ALL 92 * - + 22
----
-2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT ALL - 86 / - + 27 / - + ( - CAST( ( - CASE 42 WHEN - 21 THEN 90 END ) AS SIGNED ) ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - 86 / - + 27 / - + ( - CAST ( ( - CASE 42 WHEN - 21 THEN 90 END ) AS INTEGER ) ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL + CAST( NULL AS SIGNED ) + + + 24 + 80 / - 26 + 70 * + ( + 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 24 + 80 / - 26 + 70 * + ( + 25 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - 56 * - - ( + 22 ) * - SUM( - 84 ) AS col2
----
-103488

skipif mysql # not compatible
query I rowsort label-3495
SELECT - 56 * - - ( + 22 ) * - SUM ( - 84 ) AS col2
----
-103488

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT DISTINCT 85 + - 26 DIV - + 54
----
85

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT 85 + - 26 / - + 54
----
85

query I rowsort
SELECT ALL 44 + + + 92
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-3498
SELECT - MIN( - 41 ), + 20 + - 12 * + 45 AS col0
----
41
-520

skipif mysql # not compatible
query II rowsort label-3498
SELECT - MIN ( - 41 ), + 20 + - 12 * + 45 AS col0
----
41
-520

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3499
SELECT + CAST( NULL AS DECIMAL ) + + - 60 AS col1, + 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-3499
SELECT + CAST ( NULL AS REAL ) + + - 60 AS col1, + 53 AS col1
----
NULL
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT DISTINCT 54 DIV + 79 * + - 28 * 15 - + 70
----
-70

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT 54 / + 79 * + - 28 * 15 - + 70
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT + 78 * - 76 + + 96 DIV + 78 + 35 * + 11
----
-5542

skipif mysql # not compatible
query I rowsort label-3501
SELECT + 78 * - 76 + + 96 / + 78 + 35 * + 11
----
-5542

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL COUNT( * ) * - COALESCE ( COUNT( * ), ( COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL COUNT ( * ) * - COALESCE ( COUNT ( * ), ( COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT + + 50 * + 93
----
4650

query I rowsort
SELECT DISTINCT - 39 * + - 71 AS col0
----
2769

query I rowsort
SELECT + 44 * - 27 AS col2
----
-1188

query I rowsort
SELECT ALL - 37 * - 76 col2
----
2812

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

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + + COUNT( * ) * - 87 + - CASE - 5 WHEN - 40 THEN 2 WHEN - ( + 40 ) + - 33 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT + + COUNT ( * ) * - 87 + - CASE - 5 WHEN - 40 THEN 2 WHEN - ( + 40 ) + - 33 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + 47 + + 78 * COUNT( * ) + + + 22 + 26 * 41
----
1213

skipif mysql # not compatible
query I rowsort label-3509
SELECT + 47 + + 78 * COUNT ( * ) + + + 22 + 26 * 41
----
1213

query I rowsort
SELECT + 12 * 50 + 28 - + - 32
----
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT DISTINCT + + 23 * CAST( NULL AS SIGNED ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + + 23 * CAST ( NULL AS INTEGER ) + 93
----
NULL

query I rowsort
SELECT - - 94 + 89 col1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT - 92 DIV 15 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3513
SELECT - 92 / 15 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - SUM( ALL - 19 ) - - CASE + + 58 WHEN + - 50 THEN NULL WHEN + 49 THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT - SUM ( ALL - 19 ) - - CASE + + 58 WHEN + - 50 THEN NULL WHEN + 49 THEN 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT DISTINCT - 73 * + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - 73 * + COUNT ( * ) AS col2
----
-73

query I rowsort
SELECT - 39 * 58 * + 84 AS col0
----
-190008

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT 32 DIV - 49 * - ( - - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT 32 / - 49 * - ( - - 31 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT MAX( + 78 ) * 8 DIV 26 + 45 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3518
SELECT MAX ( + 78 ) * 8 / 26 + 45 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT ALL - 28 DIV - - NULLIF ( + ( 48 ), - 98 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL - 28 / - - NULLIF ( + ( 48 ), - 98 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT 57 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT 57 / 59 AS col0
----
0

query II rowsort
SELECT ALL 90, CASE + 56 WHEN + 41 * + 82 - 91 THEN 33 / - 44 ELSE NULL END AS col1
----
90
NULL

query I rowsort
SELECT ALL + 83 - - 26
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT COUNT( * ) * - SUM( + 49 ) * - 50 AS col0
----
2450

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT COUNT ( * ) * - SUM ( + 49 ) * - 50 AS col0
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL 90 - - 24 * - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL 90 - - 24 * - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT 56 + + - 84 + - + 30 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT 92 - + + 45 + - 80 DIV - - 97 * + 48 - 5 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3526
SELECT 92 - + + 45 + - 80 / - - 97 * + 48 - 5 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3527
SELECT - 55 AS col1, - CAST( - + 85 AS SIGNED ) AS col2
----
-55
85

skipif mysql # not compatible
query II rowsort label-3527
SELECT - 55 AS col1, - CAST ( - + 85 AS INTEGER ) AS col2
----
-55
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT + 1 + - + 21 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-3528
SELECT + 1 + - + 21 / - 40
----
1

query I rowsort
SELECT - ( + - 60 ) * + 11 AS col0
----
660

query I rowsort
SELECT 7 + - 45
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT + 85 * - 27 * - - COUNT( * ) + - COUNT( * ) AS col0
----
-2296

skipif mysql # not compatible
query I rowsort label-3531
SELECT + 85 * - 27 * - - COUNT ( * ) + - COUNT ( * ) AS col0
----
-2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT - CASE - + 33 WHEN + COUNT( * ) - + 7 THEN + + CAST( NULL AS SIGNED ) + - 65 ELSE NULL END / - 1 + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT - CASE - + 33 WHEN + COUNT ( * ) - + 7 THEN + + CAST ( NULL AS INTEGER ) + - 65 ELSE NULL END / - 1 + + 45 AS col2
----
NULL

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

query I rowsort
SELECT 94 * + 98 * - 68 + - 78 + + 28 * - 45
----
-627754

query I rowsort
SELECT ALL 61 + 96
----
157

query I rowsort
SELECT - - 85 * 2 + - - 30 AS col2
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + 40 * - NULLIF ( + COUNT( * ), + 45 * + COUNT( * ) - 72 )
----
-40

skipif mysql # not compatible
query I rowsort label-3537
SELECT + 40 * - NULLIF ( + COUNT ( * ), + 45 * + COUNT ( * ) - 72 )
----
-40

query I rowsort
SELECT 39 * + 35 + - 58 col1
----
1307

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3539
SELECT ALL ( 91 ) + - 30 + + + 8 + - 18 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL ( 91 ) + - 30 + + + 8 + - 18 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 64 + - - 87 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL 6 + + NULLIF ( COUNT( * ), + + 10 + - 12 ) * 88
----
94

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 6 + + NULLIF ( COUNT ( * ), + + 10 + - 12 ) * 88
----
94

query I rowsort
SELECT ALL 11 + - 82 - - 70
----
-1

query II rowsort
SELECT ALL - 71 AS col1, - 83 AS col0
----
-71
-83

query II rowsort
SELECT 90 AS col2, + 41 + 89
----
90
130

query I rowsort
SELECT 32 * ( - - 71 ) + 67 + + ( + 94 )
----
2433

query II rowsort
SELECT ALL - 87 col1, + 50
----
-87
50

query II rowsort
SELECT 71 AS col2, - 47 AS col2
----
71
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT COALESCE ( 20, + COUNT( * ), 40 / + + 38 ) + 0 * CASE 24 WHEN + 45 / CASE - 58 WHEN ( - 12 ) THEN + 64 * - 16 - 7 / 21 WHEN CASE - 68 WHEN + 87 THEN - COUNT( * ) * + ( 51 ) ELSE NULL END + + NULLIF ( + 89, + 13 ) THEN NULL END THEN - NULLIF ( 97, 12 ) + + 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT COALESCE ( 20, + COUNT ( * ), 40 / + + 38 ) + 0 * CASE 24 WHEN + 45 / CASE - 58 WHEN ( - 12 ) THEN + 64 * - 16 - 7 / 21 WHEN CASE - 68 WHEN + 87 THEN - COUNT ( * ) * + ( 51 ) ELSE NULL END + + NULLIF ( + 89, + 13 ) THEN NULL END THEN - NULLIF ( 97, 12 ) + + 35 ELSE NULL END
----
NULL

query I rowsort
SELECT 35 * - 52
----
-1820

query I rowsort
SELECT 70 * 98
----
6860

query I rowsort
SELECT 41 + + - 55 AS col1
----
-14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3554
SELECT DISTINCT - 42 * - NULLIF ( - ( + - ( + 24 ) ), - MIN( ALL - 0 ) ) DIV NULLIF ( 92 * + COALESCE ( 87 DIV - COUNT( * ), - NULLIF ( COUNT( * ), 7 ) ), 18 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - 42 * - NULLIF ( - ( + - ( + 24 ) ), - MIN ( ALL - 0 ) ) / NULLIF ( 92 * + COALESCE ( 87 / - COUNT ( * ), - NULLIF ( COUNT ( * ), 7 ) ), 18 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 73 - + 43 + + - 13 - - 58 * 44 * - NULLIF ( - 48, + 78 + 19 ) AS col0
----
122513

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL - COUNT( * ) * 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL - COUNT ( * ) * 46 AS col1
----
-46

query I rowsort
SELECT 76 + - + 14
----
62

query II rowsort
SELECT ALL 43 AS col1, 68 AS col2
----
43
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT 92 + - SUM( ALL 97 ) * 54
----
-5146

skipif mysql # not compatible
query I rowsort label-3559
SELECT 92 + - SUM ( ALL 97 ) * 54
----
-5146

onlyif mysql # DIV for integer division: 
query II rowsort label-3560
SELECT 30 AS col2, 88 DIV ( - 22 ) * + COALESCE ( COALESCE ( 58, - 65 * 56, + ( 50 ) ), + 94 + 98 ) * 74 AS col0
----
30
-17168

skipif mysql # not compatible
query II rowsort label-3560
SELECT 30 AS col2, 88 / ( - 22 ) * + COALESCE ( COALESCE ( 58, - 65 * 56, + ( 50 ) ), + 94 + 98 ) * 74 AS col0
----
30
-17168

query I rowsort
SELECT 1 + + 35 * - 87 AS col0
----
-3044

query I rowsort
SELECT ALL - 52 - ( + 51 )
----
-103

query I rowsort
SELECT 76 * + 72 col1
----
5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT 43 + - CAST( NULL AS SIGNED ) + 94 * 13 * + 14 * - - 36 * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT 43 + - CAST ( NULL AS INTEGER ) + 94 * 13 * + 14 * - - 36 * 58 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT - 8 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT - 8 / + 62 AS col2
----
0

query II rowsort
SELECT - + 45, ( + 36 ) + + - 24 AS col0
----
-45
12

query II rowsort
SELECT ALL 79 col1, + 76
----
79
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3568
SELECT 91 DIV + CAST( - 78 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3568
SELECT 91 / + CAST ( - 78 AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3569
SELECT ALL + + 37 DIV 15 * - 57 * ( + COUNT( * ) ) * + - 58 * - 56
----
-370272

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + + 37 / 15 * - 57 * ( + COUNT ( * ) ) * + - 58 * - 56
----
-370272

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT CASE - + 63 WHEN ( 38 ) THEN NULL WHEN - 55 / + 49 * + ( + NULLIF ( ( - ( - 41 ) ), COUNT( * ) ) * 55 ) + 36 / - NULLIF ( MIN( DISTINCT + 65 ) * + 71, 34 + 15 ) + NULLIF ( 76 + 3, - 82 ) THEN NULL ELSE + 68 END
----
68

skipif mysql # not compatible
query I rowsort label-3570
SELECT CASE - + 63 WHEN ( 38 ) THEN NULL WHEN - 55 / + 49 * + ( + NULLIF ( ( - ( - 41 ) ), COUNT ( * ) ) * 55 ) + 36 / - NULLIF ( MIN ( DISTINCT + 65 ) * + 71, 34 + 15 ) + NULLIF ( 76 + 3, - 82 ) THEN NULL ELSE + 68 END
----
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT ALL - 96 * 36 DIV 2 + + 42 * - 52
----
-3912

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - 96 * 36 / 2 + + 42 * - 52
----
-3912

query I rowsort
SELECT + 15 * - 10
----
-150

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT - 24 * 75 + 31 + + NULLIF ( + + 73, - CAST( + COUNT( * ) AS SIGNED ) ) AS col1
----
-1696

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - 24 * 75 + 31 + + NULLIF ( + + 73, - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1
----
-1696

query II rowsort
SELECT NULLIF ( - 82, - ( 48 ) ), + 47 AS col1
----
-82
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT SUM( - - 20 ) * 58
----
1160

skipif mysql # not compatible
query I rowsort label-3578
SELECT SUM ( - - 20 ) * 58
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL + 22 * - CAST( NULL AS SIGNED ) + - + 65 / - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + 22 * - CAST ( NULL AS INTEGER ) + - + 65 / - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT MIN( DISTINCT + ( - 66 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-3580
SELECT MIN ( DISTINCT + ( - 66 ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT - 39 + 14 + + - 76 * - - ( COUNT( * ) ) * - CAST( - + 30 AS SIGNED )
----
-2305

skipif mysql # not compatible
query I rowsort label-3581
SELECT - 39 + 14 + + - 76 * - - ( COUNT ( * ) ) * - CAST ( - + 30 AS INTEGER )
----
-2305

query I rowsort
SELECT - 15 + - + 78 AS col1
----
-93

query I rowsort
SELECT + COALESCE ( - 74, - 2 ) * + NULLIF ( ( + + 75 ), - + 61 * - 56 )
----
-5550

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT ALL 27 * + COALESCE ( 26, + + 85 DIV - 95 + + 74 )
----
702

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL 27 * + COALESCE ( 26, + + 85 / - 95 + + 74 )
----
702

query I rowsort
SELECT + 37 * - 59 + + + 89 + - 55
----
-2149

query I rowsort
SELECT + 97 * - 51
----
-4947

query I rowsort
SELECT DISTINCT + ( COALESCE ( - 67, - 94 * + + COALESCE ( - - 42, + 86 ) + 67, 25 ) ) * - 6
----
402

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT 32 - - 95 / CASE WHEN NOT ( 13 ) > NULL THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT 32 - - 95 / CASE WHEN NOT ( 13 ) > NULL THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - SUM( + + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-3589
SELECT - SUM ( + + 80 )
----
-80

query I rowsort
SELECT + 61 - - ( - 64 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + 25 + + 86 + - NULLIF ( - 60, - + MIN( ALL + ( ( 85 ) ) ) ) AS col0
----
171

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 25 + + 86 + - NULLIF ( - 60, - + MIN ( ALL + ( ( 85 ) ) ) ) AS col0
----
171

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

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

query I rowsort
SELECT ALL + 94 * - + 30
----
-2820

query I rowsort
SELECT + + 88 - - - ( - 39 ) AS col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3595
SELECT DISTINCT + MIN( + - 53 ) * + ( + CAST( - 57 AS SIGNED ) ) AS col0
----
3021

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT + MIN ( + - 53 ) * + ( + CAST ( - 57 AS INTEGER ) ) AS col0
----
3021

query I rowsort
SELECT + 86 + - 70 + + + 93 col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + 99 + - 57 + - + COUNT( * ) * - - 67 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3597
SELECT + 99 + - 57 + - + COUNT ( * ) * - - 67 AS col2
----
-25

query I rowsort
SELECT DISTINCT + + ( 17 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3599
SELECT ALL + - 26 / 45 + + COUNT( * ) + 45 / - CAST( NULL AS SIGNED ) * - 45 * 86 + - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + - 26 / 45 + + COUNT ( * ) + 45 / - CAST ( NULL AS INTEGER ) * - 45 * 86 + - 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3600
SELECT + 38 * - - 16 + 73 col1, + COUNT( * ) DIV 62
----
681
0

skipif mysql # not compatible
query II rowsort label-3600
SELECT + 38 * - - 16 + 73 col1, + COUNT ( * ) / 62
----
681
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3601
SELECT ALL - + 22 * + CAST( NULL AS SIGNED ) AS col0, ( - 60 )
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-3601
SELECT ALL - + 22 * + CAST ( NULL AS INTEGER ) AS col0, ( - 60 )
----
NULL
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT - - 62 + + COUNT( * ) + - 88 - - 38 * - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT - - 62 + + COUNT ( * ) + - 88 - - 38 * - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - MIN( - - ( - 1 ) ) * + 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3603
SELECT - MIN ( - - ( - 1 ) ) * + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT - + ( - 28 ) + - 25 - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3604
SELECT - + ( - 28 ) + - 25 - - COUNT ( * )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT - ( - - 12 ) * - ( 22 ) + - 18 DIV + 71 + - 39
----
225

skipif mysql # not compatible
query I rowsort label-3605
SELECT - ( - - 12 ) * - ( 22 ) + - 18 / + 71 + - 39
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT - 85 * - + CAST( NULL AS SIGNED ) - + + 2 + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT - 85 * - + CAST ( NULL AS INTEGER ) - + + 2 + - 39 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ( CASE SUM( + CAST( - 97 AS SIGNED ) ) WHEN - 85 * 1 * 78 THEN 2 * COUNT( * ) + - 3 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ( CASE SUM ( + CAST ( - 97 AS INTEGER ) ) WHEN - 85 * 1 * 78 THEN 2 * COUNT ( * ) + - 3 END )
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + 70
----
2940

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT COALESCE ( - - 82, + 25, + 17 * + 51 DIV + 60 )
----
82

skipif mysql # not compatible
query I rowsort label-3609
SELECT COALESCE ( - - 82, + 25, + 17 * + 51 / + 60 )
----
82

query II rowsort
SELECT ALL + 25 AS col1, - 55
----
25
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3611
SELECT ALL COUNT( ALL 66 ) DIV - + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL COUNT ( ALL 66 ) / - + 35 AS col1
----
0

query II rowsort
SELECT + ( - - 85 ) * + - 41 AS col1, 15
----
-3485
15

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3614
SELECT + COALESCE ( - 8, - COUNT( * ) DIV 42 DIV 80 DIV + - 62, + 45 * 7 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3614
SELECT + COALESCE ( - 8, - COUNT ( * ) / 42 / 80 / + - 62, + 45 * 7 ) AS col1
----
-8

query I rowsort
SELECT - 67 + - 74
----
-141

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

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

query I rowsort
SELECT - ( + - 86 ) + - ( + 29 ) + - 8 * 37
----
-239

query I rowsort
SELECT + 49 - - 27 AS col0
----
76

query I rowsort
SELECT + 8 + - 78 AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT DISTINCT COUNT( + 12 ) * - 80 DIV CASE 44 WHEN + 49 THEN NULL ELSE + COUNT( * ) END * 89 + - 55 + 53
----
-7122

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT COUNT ( + 12 ) * - 80 / CASE 44 WHEN + 49 THEN NULL ELSE + COUNT ( * ) END * 89 + - 55 + 53
----
-7122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3621
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 71 - + COUNT( * ) - + 49
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3621
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 71 - + COUNT ( * ) - + 49
----
NULL
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT + 94 * + 33 + 77 AS col0, NULLIF ( 72, + COUNT( * ) ) col2
----
3179
72

skipif mysql # not compatible
query II rowsort label-3622
SELECT + 94 * + 33 + 77 AS col0, NULLIF ( 72, + COUNT ( * ) ) col2
----
3179
72

query I rowsort
SELECT DISTINCT - 89 * 94 AS col1
----
-8366

query II rowsort
SELECT DISTINCT 36 + + - 79 * - 23, + 17 AS col2
----
1853
17

query I rowsort
SELECT ALL 87 + - COALESCE ( + - 6, 42 - 0 ) * + ( - + 86 ) AS col1
----
-429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT - CAST( - 83 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3626
SELECT - CAST ( - 83 AS INTEGER ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT - 64 AS col2, 54 * NULLIF ( 97, + 11 + + COUNT( * ) + - - 91 * - 29 ) * 42 + + 33 * + 65
----
-64
222141

skipif mysql # not compatible
query II rowsort label-3627
SELECT - 64 AS col2, 54 * NULLIF ( 97, + 11 + + COUNT ( * ) + - - 91 * - 29 ) * 42 + + 33 * + 65
----
-64
222141

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + COUNT( ALL - 10 ) * + 27 * - 84 AS col1
----
-2268

skipif mysql # not compatible
query I rowsort label-3628
SELECT + COUNT ( ALL - 10 ) * + 27 * - 84 AS col1
----
-2268

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3629
SELECT + CAST( NULL AS DECIMAL ) + - 38 * - 46 + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT + CAST ( NULL AS REAL ) + - 38 * - 46 + - 24 AS col0
----
NULL

query I rowsort
SELECT + - 1 + - - ( - 29 ) * + + 75 * 65
----
-141376

query II rowsort
SELECT ALL 76 AS col0, 26 + - 29
----
76
-3

query I rowsort
SELECT DISTINCT 32 + 30 + + NULLIF ( - 93, 83 ) * 37 + + 42 * 63 AS col0
----
-733

query I rowsort
SELECT DISTINCT 71 + 59 + - 3 AS col2
----
127

query I rowsort
SELECT ( 37 ) col1
----
37

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

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

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

query I rowsort
SELECT ALL + ( - 53 ) * + 28 * + 61 + - + 50 * + 46 - + 30 AS col2
----
-92854

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + COUNT( - 53 ) * COUNT( * ) * + 54 * CASE - NULLIF ( COALESCE ( 87, + MIN( ALL 91 ) * 4 + - SUM( 76 ), + 98, - 13 * 71 - 59 ), 43 - 38 / + 39 ) WHEN + NULLIF ( + 37, 86 ) + 92 THEN 54 END * ( - COUNT( * ) * - COUNT( * ) ) + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + COUNT ( - 53 ) * COUNT ( * ) * + 54 * CASE - NULLIF ( COALESCE ( 87, + MIN ( ALL 91 ) * 4 + - SUM ( 76 ), + 98, - 13 * 71 - 59 ), 43 - 38 / + 39 ) WHEN + NULLIF ( + 37, 86 ) + 92 THEN 54 END * ( - COUNT ( * ) * - COUNT ( * ) ) + - 1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3640
SELECT + ( + + ( + MAX( - 74 ) ) ) DIV 93 - - - 53
----
-53

skipif mysql # not compatible
query I rowsort label-3640
SELECT + ( + + ( + MAX ( - 74 ) ) ) / 93 - - - 53
----
-53

query II rowsort
SELECT + 5, COALESCE ( + 36, - - 28 ) * + - 14 AS col0
----
5
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT 33 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-3642
SELECT 33 / 31
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT ALL - COUNT( * ), 76 + 17 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-3643
SELECT ALL - COUNT ( * ), 76 + 17 AS col2
----
-1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL - COALESCE ( - + COUNT( * ), - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - COALESCE ( - + COUNT ( * ), - 14 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT + 91 DIV SUM( 17 ) - 94 + - 19
----
-108

skipif mysql # not compatible
query I rowsort label-3645
SELECT + 91 / SUM ( 17 ) - 94 + - 19
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT DISTINCT 50 DIV 13
----
3

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT 50 / 13
----
3

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

skipif mysql # not compatible
query I rowsort label-3647
SELECT 76 * - COUNT ( * ) * - COUNT ( * )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT DISTINCT - 93 DIV + 71
----
-1

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - 93 / + 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL - NULLIF ( + 61, + 69 * 85 * COUNT( * ) + - + 84 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL - NULLIF ( + 61, + 69 * 85 * COUNT ( * ) + - + 84 ) AS col2
----
-61

query II rowsort
SELECT 86 * + - 57, 1 AS col1
----
-4902
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT 60 + CASE + 10 WHEN 92 THEN + 47 * + 40 WHEN + + SUM( ALL 45 ) * 98 + - 60 + + 88 / + 84 THEN NULL WHEN + 99 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT 60 + CASE + 10 WHEN 92 THEN + 47 * + 40 WHEN + + SUM ( ALL 45 ) * 98 + - 60 + + 88 / + 84 THEN NULL WHEN + 99 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT 76 * - 40 AS col1, 3
----
-3040
3

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

skipif mysql # not compatible
query I rowsort label-3653
SELECT - 90 * - ( - COUNT ( * ) ) + + + 87 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3654
SELECT DISTINCT + 93 + + 62 AS col2, ( + + 84 ) DIV 17 + + - COALESCE ( + + 48, + 80 * - 1 - 32 * 72, - 80 DIV 98 ) AS col2
----
155
-44

skipif mysql # not compatible
query II rowsort label-3654
SELECT DISTINCT + 93 + + 62 AS col2, ( + + 84 ) / 17 + + - COALESCE ( + + 48, + 80 * - 1 - 32 * 72, - 80 / 98 ) AS col2
----
155
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL + SUM( DISTINCT ( + 42 ) ) + 76
----
118

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL + SUM ( DISTINCT ( + 42 ) ) + 76
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL + MAX( + 18 ) + - 28 - COUNT( * ) * 76
----
-86

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + MAX ( + 18 ) + - 28 - COUNT ( * ) * 76
----
-86

query I rowsort
SELECT 7 - - 88 - + 38 AS col0
----
57

query I rowsort
SELECT + 24 * + 39
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT - CASE - 6 WHEN + 83 + AVG ( DISTINCT + - 96 ) + + CASE + 44 WHEN + COUNT( * ) + - 41 + COUNT( * ) THEN + 87 END * + 39 THEN + 39 + + 67 WHEN 90 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT - CASE - 6 WHEN + 83 + AVG ( DISTINCT + - 96 ) + + CASE + 44 WHEN + COUNT ( * ) + - 41 + COUNT ( * ) THEN + 87 END * + 39 THEN + 39 + + 67 WHEN 90 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT + 42 * + + COUNT( * ) col2, NULLIF ( - 8, - + 75 )
----
42
-8

skipif mysql # not compatible
query II rowsort label-3661
SELECT + 42 * + + COUNT ( * ) col2, NULLIF ( - 8, - + 75 )
----
42
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT + 51 DIV + 4
----
12

skipif mysql # not compatible
query I rowsort label-3662
SELECT + 51 / + 4
----
12

query I rowsort
SELECT ALL ( + 13 ) + + + NULLIF ( 9, + 22 + 45 ) AS col2
----
22

query II rowsort
SELECT DISTINCT - + 26 * 87 AS col1, + 85
----
-2262
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + COUNT( * ) * 32 + + - 66 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3665
SELECT + COUNT ( * ) * 32 + + - 66 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT + + COUNT( * ) * - - 77 * + + 38 AS col0
----
2926

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + + COUNT ( * ) * - - 77 * + + 38 AS col0
----
2926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL - + CAST( - ( - AVG ( ALL 98 ) ) AS SIGNED ) - 21 * 22 * - 76 * + CAST( - 65 AS SIGNED ) AS col2
----
-2282378

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL - + CAST ( - ( - AVG ( ALL 98 ) ) AS INTEGER ) - 21 * 22 * - 76 * + CAST ( - 65 AS INTEGER ) AS col2
----
-2282378

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT DISTINCT - 68 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - 68 / 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT SUM( - 57 ) + - + 16 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3669
SELECT SUM ( - 57 ) + - + 16 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT COUNT( * ) * COALESCE ( - 30, 2, 25 + MAX( + 9 ) ) * 75 + + 17 + 93 AS col0
----
-2140

skipif mysql # not compatible
query I rowsort label-3670
SELECT COUNT ( * ) * COALESCE ( - 30, 2, 25 + MAX ( + 9 ) ) * 75 + + 17 + 93 AS col0
----
-2140

query I rowsort
SELECT 46 - + - 66 col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + ( - MIN( DISTINCT - + 93 ) ) - + 88 col1
----
5

skipif mysql # not compatible
query I rowsort label-3672
SELECT + ( - MIN ( DISTINCT - + 93 ) ) - + 88 col1
----
5

query I rowsort
SELECT - ( 89 ) * - + 39
----
3471

query I rowsort
SELECT 94 + - ( 11 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT ALL - - SUM( ALL - + 24 ) AS col1, 2 * - NULLIF ( - NULLIF ( 17, - 87 ), - 19 - + 68 + + ( - 61 ) )
----
-24
34

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL - - SUM ( ALL - + 24 ) AS col1, 2 * - NULLIF ( - NULLIF ( 17, - 87 ), - 19 - + 68 + + ( - 61 ) )
----
-24
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3676
SELECT ALL - 89 AS col1, + 88 DIV + + COUNT( * )
----
-89
88

skipif mysql # not compatible
query II rowsort label-3676
SELECT ALL - 89 AS col1, + 88 / + + COUNT ( * )
----
-89
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL 98 * - + 23 * - MAX( + - 86 ) AS col0
----
-193844

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL 98 * - + 23 * - MAX ( + - 86 ) AS col0
----
-193844

query I rowsort
SELECT DISTINCT 9 * - 95 AS col0
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT + SUM( DISTINCT + + 22 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-3679
SELECT + SUM ( DISTINCT + + 22 ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT 79 + 77 + - COUNT( * ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-3680
SELECT 79 + 77 + - COUNT ( * ) AS col2
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT ALL 44 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL 44 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT + 72 AS col1, CASE + 20 WHEN - + ( COUNT( * ) ) THEN + - 18 WHEN 63 * + 78 THEN NULL END / - ( - - 14 ) + 37 AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3683
SELECT + 72 AS col1, CASE + 20 WHEN - + ( COUNT ( * ) ) THEN + - 18 WHEN 63 * + 78 THEN NULL END / - ( - - 14 ) + 37 AS col1
----
72
NULL

query I rowsort
SELECT 69 * 9 AS col2
----
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT 7 * - + COUNT( + - CAST( - + 52 AS SIGNED ) ) + + 48
----
41

skipif mysql # not compatible
query I rowsort label-3685
SELECT 7 * - + COUNT ( + - CAST ( - + 52 AS INTEGER ) ) + + 48
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3686
SELECT 76 DIV ( COUNT( * ) ), + CASE + + NULLIF ( - 43, - + COUNT( * ) + + COUNT( * ) * + COUNT( * ) * + COUNT( * ) ) WHEN SUM( 91 ) THEN NULL ELSE NULLIF ( 7, + 6 + 53 * 21 ) * 64 END AS col1
----
76
448

skipif mysql # not compatible
query II rowsort label-3686
SELECT 76 / ( COUNT ( * ) ), + CASE + + NULLIF ( - 43, - + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) ) WHEN SUM ( 91 ) THEN NULL ELSE NULLIF ( 7, + 6 + 53 * 21 ) * 64 END AS col1
----
76
448

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 11 * CASE - COUNT( * ) WHEN - + 33 THEN + 80 WHEN 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT 11 * CASE - COUNT ( * ) WHEN - + 33 THEN + 80 WHEN 97 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), + 99 + + 55, - ( - 68 ) + + + 54 ) + - 44 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), + 99 + + 55, - ( - 68 ) + + + 54 ) + - 44 AS col1
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3689
SELECT DISTINCT 61 + + 63 DIV - - COUNT( DISTINCT 27 ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT 61 + + 63 / - - COUNT ( DISTINCT 27 ) AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT 95 * - COALESCE ( ( + COUNT( * ) ), - 60 ) * - 60 AS col1
----
5700

skipif mysql # not compatible
query I rowsort label-3690
SELECT 95 * - COALESCE ( ( + COUNT ( * ) ), - 60 ) * - 60 AS col1
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT DISTINCT 96 + + 11 - + - COUNT( * ) * 15 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT 96 + + 11 - + - COUNT ( * ) * 15 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT - 17 + - NULLIF ( 38, + MIN( - 79 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - 17 + - NULLIF ( 38, + MIN ( - 79 ) ) AS col2
----
-55

query I rowsort
SELECT ALL - 44 + ( 99 ) + 2 - - 61
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - + COUNT( * ) WHEN NULLIF ( + - 47, + + 95 + - 14 ) THEN - COALESCE ( ( - 64 ), 67 * - SUM( ALL 81 ), - 88 * 20 + 6 / + COUNT( * ) ) / - 16 WHEN 38 THEN NULL ELSE NULL END * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - + COUNT ( * ) WHEN NULLIF ( + - 47, + + 95 + - 14 ) THEN - COALESCE ( ( - 64 ), 67 * - SUM ( ALL 81 ), - 88 * 20 + 6 / + COUNT ( * ) ) / - 16 WHEN 38 THEN NULL ELSE NULL END * - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - COUNT( * ) + - NULLIF ( - 99, + + 4 * + 72 ) * - ( + 84 ) * 43 + + COUNT( * ) + 46 col0
----
-357542

skipif mysql # not compatible
query I rowsort label-3695
SELECT - COUNT ( * ) + - NULLIF ( - 99, + + 4 * + 72 ) * - ( + 84 ) * 43 + + COUNT ( * ) + 46 col0
----
-357542

query I rowsort
SELECT ALL + 79 - + - 40 AS col0
----
119

query I rowsort
SELECT ALL - + 23 * + 28 AS col2
----
-644

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3698
SELECT COUNT( * ) + - - 4 + - 2 + - COUNT( * ) DIV - COUNT( * ) AS col1, 86 AS col0
----
4
86

skipif mysql # not compatible
query II rowsort label-3698
SELECT COUNT ( * ) + - - 4 + - 2 + - COUNT ( * ) / - COUNT ( * ) AS col1, 86 AS col0
----
4
86

query II rowsort
SELECT 16, + 48 * - 6 * - - 21 AS col0
----
16
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL + 19 - - - NULLIF ( + COUNT( * ), 90 + - - 24 * 20 * - - 20 * + 43 )
----
18

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 19 - - - NULLIF ( + COUNT ( * ), 90 + - - 24 * 20 * - - 20 * + 43 )
----
18

query I rowsort
SELECT + + 0 * + + 83 + 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT ALL - + 48 DIV 95 * + 91
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - + 48 / 95 * + 91
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + 51 + COUNT( * ) + + - 32
----
20

skipif mysql # not compatible
query I rowsort label-3704
SELECT + 51 + COUNT ( * ) + + - 32
----
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3706
SELECT DISTINCT + 45 * - ( + ( - CASE + + AVG ( 23 ) WHEN 71 + - CAST( + - 39 AS DECIMAL ) / + 32 * 46 THEN NULL WHEN + NULLIF ( 73, 61 ) THEN 33 + ( - 13 ) * COALESCE ( COUNT( * ) + 2, CAST( NULL AS SIGNED ), - COALESCE ( - MIN( 20 ), SUM( + 16 ) + - 90, + 81 ) ) END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + 45 * - ( + ( - CASE + + AVG ( 23 ) WHEN 71 + - CAST ( + - 39 AS REAL ) / + 32 * 46 THEN NULL WHEN + NULLIF ( 73, 61 ) THEN 33 + ( - 13 ) * COALESCE ( COUNT ( * ) + 2, CAST ( NULL AS INTEGER ), - COALESCE ( - MIN ( 20 ), SUM ( + 16 ) + - 90, + 81 ) ) END ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - COUNT( * ) * - 22 + - - 93 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - COUNT ( * ) * - 22 + - - 93 AS col2
----
115

query I rowsort
SELECT DISTINCT COALESCE ( + + 91, - 61 * ( - 27 ) + + - 84 + + + 99, - - 88 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3709
SELECT DISTINCT + 92 * + + CASE + + 54 WHEN + - 40 THEN NULL WHEN + 87 THEN 34 / + - SUM( 49 ) * + - 13 + + 83 + + 24 WHEN 11 THEN - COUNT( CAST( NULL AS DECIMAL ) ) * + 65 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + 92 * + + CASE + + 54 WHEN + - 40 THEN NULL WHEN + 87 THEN 34 / + - SUM ( 49 ) * + - 13 + + 83 + + 24 WHEN 11 THEN - COUNT ( CAST ( NULL AS REAL ) ) * + 65 END AS col2
----
NULL

query I rowsort
SELECT ALL - 38 * - 62
----
2356

query I rowsort
SELECT ( + 7 ) col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT + 15 * - 32 * + - 94 * - CAST( - 50 AS SIGNED )
----
2256000

skipif mysql # not compatible
query I rowsort label-3712
SELECT + 15 * - 32 * + - 94 * - CAST ( - 50 AS INTEGER )
----
2256000

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT ALL 76 * - 92 * + 22 + COUNT( + 4 ) * - 96, ( 84 ) * + 65 AS col1
----
-153920
5460

skipif mysql # not compatible
query II rowsort label-3713
SELECT ALL 76 * - 92 * + 22 + COUNT ( + 4 ) * - 96, ( 84 ) * + 65 AS col1
----
-153920
5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3714
SELECT - 27 - + 58 + + + NULLIF ( CASE + 88 WHEN 88 + + 5 - 48 + + 95 + - 13 * - 77 * 21 + - 55 * 92 THEN NULL ELSE 21 END, + 27 * + 38 ) DIV + SUM( ALL 15 )
----
-84

skipif mysql # not compatible
query I rowsort label-3714
SELECT - 27 - + 58 + + + NULLIF ( CASE + 88 WHEN 88 + + 5 - 48 + + 95 + - 13 * - 77 * 21 + - 55 * 92 THEN NULL ELSE 21 END, + 27 * + 38 ) / + SUM ( ALL 15 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT + COALESCE ( + - COUNT( * ), + 0 + - CASE - 45 WHEN + 59 * + + 20 THEN NULL WHEN - 73 * 8 + - - AVG ( DISTINCT - 56 ) THEN NULL ELSE 56 END, 7 * 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-3715
SELECT + COALESCE ( + - COUNT ( * ), + 0 + - CASE - 45 WHEN + 59 * + + 20 THEN NULL WHEN - 73 * 8 + - - AVG ( DISTINCT - 56 ) THEN NULL ELSE 56 END, 7 * 56 )
----
-1

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

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

query I rowsort
SELECT DISTINCT 88 * + 42 + 28 AS col2
----
3724

onlyif mysql # aggregate syntax: 
query II rowsort label-3718
SELECT ALL + COUNT( + 44 ), + 20 + 5 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-3718
SELECT ALL + COUNT ( + 44 ), + 20 + 5 AS col0
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT MIN( - ( - 32 ) ) * - + 46 + + - 97
----
-1569

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT MIN ( - ( - 32 ) ) * - + 46 + + - 97
----
-1569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT + ( - + CAST( + 93 AS SIGNED ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3720
SELECT + ( - + CAST ( + 93 AS INTEGER ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + COUNT( + + 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3721
SELECT + COUNT ( + + 5 ) AS col1
----
1

query I rowsort
SELECT + NULLIF ( - + 58, - 92 ) + + - 18 * - 83 * ( + 89 ) + - + 39 AS col1
----
132869

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL + + 49 * + 29 - + MAX( DISTINCT - 40 )
----
1461

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + + 49 * + 29 - + MAX ( DISTINCT - 40 )
----
1461

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT + 64 * 76 * 18 + + - 69 DIV - 32 AS col1
----
87554

skipif mysql # not compatible
query I rowsort label-3724
SELECT + 64 * 76 * 18 + + - 69 / - 32 AS col1
----
87554

query I rowsort
SELECT + NULLIF ( - 61, - - 35 * + 84 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT DISTINCT - 17 * + 74 * 47 - - + 43 * + + 78 * - - 23, COUNT( * ) + 13 AS col1
----
18016
14

skipif mysql # not compatible
query II rowsort label-3726
SELECT DISTINCT - 17 * + 74 * 47 - - + 43 * + + 78 * - - 23, COUNT ( * ) + 13 AS col1
----
18016
14

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

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

query II rowsort
SELECT ALL + 3 AS col0, 37 AS col2
----
3
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT ALL - 90 DIV 28 DIV + 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - 90 / 28 / + 7 AS col2
----
0

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

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

query I rowsort
SELECT + + 9 * 14
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT - CAST( 81 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3732
SELECT - CAST ( 81 AS INTEGER ) AS col2
----
-81

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

skipif mysql # not compatible
query I rowsort label-3733
SELECT + 53 + + COUNT ( * ) / + 14 AS col0
----
53

query II rowsort
SELECT - 23 AS col2, - 48 AS col2
----
-23
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT - - 29 DIV + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT - - 29 / + 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT - + 46 * - SUM( ALL 61 ) AS col1
----
2806

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - + 46 * - SUM ( ALL 61 ) AS col1
----
2806

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL SUM( - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL SUM ( - 4 ) AS col2
----
-4

query I rowsort
SELECT ALL 49 * 11 * - 60 AS col2
----
-32340

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

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

query I rowsort
SELECT ALL - 83 + - 20
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - - 77 + + - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3741
SELECT - - 77 + + - COUNT ( * ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT + - CASE + 99 WHEN + + CASE + COUNT( * ) WHEN - COUNT( * ) * + 34 - - - ( + + 90 ) THEN NULL WHEN - ( + + 68 ) THEN + 71 ELSE NULL END THEN NULLIF ( CAST( 10 AS SIGNED ), 38 ) + 13 END + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + - CASE + 99 WHEN + + CASE + COUNT ( * ) WHEN - COUNT ( * ) * + 34 - - - ( + + 90 ) THEN NULL WHEN - ( + + 68 ) THEN + 71 ELSE NULL END THEN NULLIF ( CAST ( 10 AS INTEGER ), 38 ) + 13 END + - 23
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3743
SELECT - 51 + ( - 88 ) + + 29 DIV - - 22 AS col0, + 47
----
-138
47

skipif mysql # not compatible
query II rowsort label-3743
SELECT - 51 + ( - 88 ) + + 29 / - - 22 AS col0, + 47
----
-138
47

query I rowsort
SELECT DISTINCT ( 28 ) AS col0
----
28

query I rowsort
SELECT ALL + 79 + - - 50
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - COUNT( * ) + - 36 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3746
SELECT - COUNT ( * ) + - 36 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - ( - - SUM( DISTINCT 23 ) ) - 47 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3747
SELECT - ( - - SUM ( DISTINCT 23 ) ) - 47 AS col2
----
-70

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

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

query I rowsort
SELECT + 9 - 68 AS col1
----
-59

query I rowsort
SELECT ALL - 7 + - + ( 97 )
----
-104

query I rowsort
SELECT - CASE - - 16 WHEN 17 * + + 51 THEN 74 WHEN - + 77 THEN NULL END + + + ( - 10 )
----
NULL

query I rowsort
SELECT ALL + 80 + - 38 * 35 AS col2
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT - ( 6 ) * + + 73 - + COUNT( * ) col1
----
-439

skipif mysql # not compatible
query I rowsort label-3753
SELECT - ( 6 ) * + + 73 - + COUNT ( * ) col1
----
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT COUNT( * ) * 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT COUNT ( * ) * 87 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3755
SELECT ALL 90 DIV 16 * - 37 + 78 DIV - - 55 + + 89 * + 61 + 45 + CAST( - + 35 AS SIGNED )
----
5255

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 90 / 16 * - 37 + 78 / - - 55 + + 89 * + 61 + 45 + CAST ( - + 35 AS INTEGER )
----
5255

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT DISTINCT - 89 * - 9 AS col2, - 71 * + CASE COALESCE ( 92, - + 46, 0 + + 52 ) WHEN 79 THEN + + 10 ELSE COUNT( * ) END
----
801
-71

skipif mysql # not compatible
query II rowsort label-3756
SELECT DISTINCT - 89 * - 9 AS col2, - 71 * + CASE COALESCE ( 92, - + 46, 0 + + 52 ) WHEN 79 THEN + + 10 ELSE COUNT ( * ) END
----
801
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3757
SELECT CAST( - + 12 AS SIGNED ), + 73 AS col1
----
-12
73

skipif mysql # not compatible
query II rowsort label-3757
SELECT CAST ( - + 12 AS INTEGER ), + 73 AS col1
----
-12
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3758
SELECT DISTINCT - CAST( - 11 AS SIGNED ) DIV + - COUNT( 41 ) - - ( NULLIF ( + - COUNT( * ), - ( 22 ) + + + 67 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - CAST ( - 11 AS INTEGER ) / + - COUNT ( 41 ) - - ( NULLIF ( + - COUNT ( * ), - ( 22 ) + + + 67 ) ) AS col0
----
-12

query I rowsort
SELECT + NULLIF ( + 89, + 38 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3760
SELECT ALL + + SUM( + - 7 ), - 62 - + 51 AS col0
----
-7
-113

skipif mysql # not compatible
query II rowsort label-3760
SELECT ALL + + SUM ( + - 7 ), - 62 - + 51 AS col0
----
-7
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3761
SELECT DISTINCT - 63 DIV 96 + + - NULLIF ( - 35, + 35 + + 12 ) - - 51 + - COALESCE ( - CAST( NULL AS SIGNED ), SUM( DISTINCT + - 8 ) + - 12 - 84, + 6 ) + COUNT( * ) AS col2
----
191

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT - 63 / 96 + + - NULLIF ( - 35, + 35 + + 12 ) - - 51 + - COALESCE ( - CAST ( NULL AS INTEGER ), SUM ( DISTINCT + - 8 ) + - 12 - 84, + 6 ) + COUNT ( * ) AS col2
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT - 70 + + CASE CASE - 57 WHEN + AVG ( ALL 29 ) + + 35 * 6 / + ( - 51 ) THEN + + 14 WHEN + COUNT( * ) THEN NULL END WHEN CAST( NULL AS SIGNED ) THEN - 66 ELSE NULL END * + ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT - 70 + + CASE CASE - 57 WHEN + AVG ( ALL 29 ) + + 35 * 6 / + ( - 51 ) THEN + + 14 WHEN + COUNT ( * ) THEN NULL END WHEN CAST ( NULL AS INTEGER ) THEN - 66 ELSE NULL END * + ( + COUNT ( * ) ) AS col0
----
NULL

query III rowsort
SELECT DISTINCT 10 * - 35 AS col2, + 51 * - 94 * + 78, + 71 AS col0
----
-350
-373932
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT + 60 * + 15 - - COUNT( 58 )
----
901

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + 60 * + 15 - - COUNT ( 58 )
----
901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT - 28 * COUNT( * ) + - CAST( - 44 AS SIGNED ) col1
----
16

skipif mysql # not compatible
query I rowsort label-3765
SELECT - 28 * COUNT ( * ) + - CAST ( - 44 AS INTEGER ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT 21 * - - COUNT( * ) + + 53 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3766
SELECT 21 * - - COUNT ( * ) + + 53 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - 37 + - 65 + 90 - 63 * - + MAX( + - 19 ) col1
----
-1209

skipif mysql # not compatible
query I rowsort label-3767
SELECT - 37 + - 65 + 90 - 63 * - + MAX ( + - 19 ) col1
----
-1209

query I rowsort
SELECT + - 27 * - + ( + + 32 ) * 74 - 53 - + 1
----
63882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3769
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3770
SELECT + COUNT( * ) + 21 AS col1, 48 + - 26 * - CAST( NULL AS SIGNED ) + - - SUM( ALL - 31 )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-3770
SELECT + COUNT ( * ) + 21 AS col1, 48 + - 26 * - CAST ( NULL AS INTEGER ) + - - SUM ( ALL - 31 )
----
22
NULL

query I rowsort
SELECT ALL + 67 * - + 37 AS col2
----
-2479

onlyif mysql # aggregate syntax: 
query II rowsort label-3772
SELECT DISTINCT + MAX( + 15 ) col0, - 10
----
15
-10

skipif mysql # not compatible
query II rowsort label-3772
SELECT DISTINCT + MAX ( + 15 ) col0, - 10
----
15
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL - 86 + + 67 - + ( + COUNT( * ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL - 86 + + 67 - + ( + COUNT ( * ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT ALL + 95 * + COUNT( * ) + - - 24 AS col2, 75 * + 71 AS col1
----
119
5325

skipif mysql # not compatible
query II rowsort label-3775
SELECT ALL + 95 * + COUNT ( * ) + - - 24 AS col2, 75 * + 71 AS col1
----
119
5325

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT ALL 21 + 77 + + 32 AS col1, + 46 + SUM( ALL 87 ) AS col2
----
130
133

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL 21 + 77 + + 32 AS col1, + 46 + SUM ( ALL 87 ) AS col2
----
130
133

query I rowsort
SELECT 60 * - CASE + 0 WHEN 16 * - 28 + - + ( 42 ) THEN 6 + + 10 ELSE - 19 - - + 80 END col2
----
-3660

query I rowsort
SELECT ALL - 38 * - 4
----
152

query I rowsort
SELECT CASE - ( - COALESCE ( - 11, - 84 ) ) WHEN + - 43 * + 91 THEN - 28 * - 16 WHEN NULLIF ( + 23, - 41 ) / - 67 THEN NULL WHEN 85 + - 4 * + 42 THEN NULL END * - 46 AS col0
----
NULL

query I rowsort
SELECT 5 + + + ( + COALESCE ( - 13, - 57 + + 43 * - 54 + 95 ) ) + + + 58 + + + 50
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3781
SELECT ALL + 75 + + - 79 / + CASE + 27 WHEN + 66 - + 73 THEN NULL WHEN + - COALESCE ( - 56, + CAST( - - 95 AS DECIMAL ), - - COUNT( ( + - 89 ) ) ) THEN - 47 - + 31 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL + 75 + + - 79 / + CASE + 27 WHEN + 66 - + 73 THEN NULL WHEN + - COALESCE ( - 56, + CAST ( - - 95 AS REAL ), - - COUNT ( ( + - 89 ) ) ) THEN - 47 - + 31 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 86 + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 86 + + COUNT ( * )
----
87

query II rowsort
SELECT 91 AS col0, - 80
----
91
-80

query II rowsort
SELECT 20 * + 50 * 3, + 93 * - 85 col0
----
3000
-7905

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT COALESCE ( - 72, + 13 ) DIV + - 94 * + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT COALESCE ( - 72, + 13 ) / + - 94 * + 88 AS col1
----
0

query I rowsort
SELECT ALL + 13 * + 51
----
663

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL - NULLIF ( + 27, 5 * + + 72 / 61 + + 12 * + COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - NULLIF ( + 27, 5 * + + 72 / 61 + + 12 * + COUNT ( * ) )
----
-27

query II rowsort
SELECT 29 - + ( - 82 ), + 86 col2
----
111
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - - 17 * + AVG ( + + 59 ) / + - 79 * + 44 + + ( + 75 ) * - - 72 * + - CASE - 25 WHEN 84 * 62 + + 13 * + 34 THEN NULL WHEN + 80 THEN 70 * + NULLIF ( 80, + 6 ) + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - - 17 * + AVG ( + + 59 ) / + - 79 * + 44 + + ( + 75 ) * - - 72 * + - CASE - 25 WHEN 84 * 62 + + 13 * + 34 THEN NULL WHEN + 80 THEN 70 * + NULLIF ( 80, + 6 ) + COUNT ( * ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT DISTINCT - + 20 AS col0, 12
----
-20
12

query I rowsort
SELECT DISTINCT - 90 * - 0
----
0

query I rowsort
SELECT ALL + + 4 * - 54 col2
----
-216

query I rowsort
SELECT 76 * 50
----
3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3796
SELECT - COUNT( * ) + COALESCE ( + - 63, 87 ) + - - ( + CAST( + 48 AS SIGNED ) ) * - 87 - - 82 + + 23 * - - 0 - + + 21 + + - COUNT( * ) DIV COUNT( * )
----
-4180

skipif mysql # not compatible
query I rowsort label-3796
SELECT - COUNT ( * ) + COALESCE ( + - 63, 87 ) + - - ( + CAST ( + 48 AS INTEGER ) ) * - 87 - - 82 + + 23 * - - 0 - + + 21 + + - COUNT ( * ) / COUNT ( * )
----
-4180

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

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

query I rowsort
SELECT + 35 * - - 84
----
2940

query I rowsort
SELECT + - 65 * 87 - + + 57 + - + 12 * - 53 + - - 7 col1
----
-5069

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT + 9 - - 49 + - + 43 AS col1, - COUNT( * ) AS col1
----
15
-1

skipif mysql # not compatible
query II rowsort label-3800
SELECT + 9 - - 49 + - + 43 AS col1, - COUNT ( * ) AS col1
----
15
-1

query II rowsort
SELECT 84, 95 col1
----
84
95

query II rowsort
SELECT ALL - 96 + - ( + 14 ), + 4 AS col1
----
-110
4

query I rowsort
SELECT DISTINCT + - 62 + + 0 + + - 93 AS col0
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT + + ( + MIN( + ( + + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT + + ( + MIN ( + ( + + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3806
SELECT DISTINCT + - CASE - 64 WHEN NULLIF ( - + 0, + 31 + 17 + + 0 + MIN( ALL + 17 ) ) THEN + + 73 + - + 75 WHEN + MIN( + - 9 ) THEN 36 + - 48 WHEN + NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) ) + 36 * + COUNT( * ) THEN NULL WHEN 94 + - 45 THEN 74 * ( + CASE 57 WHEN - 67 THEN 63 END ) ELSE + 95 END + MAX( DISTINCT 73 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT + - CASE - 64 WHEN NULLIF ( - + 0, + 31 + 17 + + 0 + MIN ( ALL + 17 ) ) THEN + + 73 + - + 75 WHEN + MIN ( + - 9 ) THEN 36 + - 48 WHEN + NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + 36 * + COUNT ( * ) THEN NULL WHEN 94 + - 45 THEN 74 * ( + CASE 57 WHEN - 67 THEN 63 END ) ELSE + 95 END + MAX ( DISTINCT 73 ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT DISTINCT + 24 + + + CASE - + 38 WHEN 28 + 15 * - - COUNT( * ) THEN - - 95 / - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + 24 + + + CASE - + 38 WHEN 28 + 15 * - - COUNT ( * ) THEN - - 95 / - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 38 * + + 97 AS col1
----
3686

query I rowsort
SELECT 25 - - 51 AS col0
----
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT + ( - SUM( DISTINCT - 58 ) ) + + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT + ( - SUM ( DISTINCT - 58 ) ) + + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT DISTINCT 4 col0, - ( - ( ( + - COALESCE ( COUNT( * ), + + 86 ) ) ) ) AS col1
----
4
-1

skipif mysql # not compatible
query II rowsort label-3812
SELECT DISTINCT 4 col0, - ( - ( ( + - COALESCE ( COUNT ( * ), + + 86 ) ) ) ) AS col1
----
4
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3813
SELECT ALL - ( + 42 ) * 36, + CAST( + 89 AS SIGNED ) + 55 AS col0
----
-1512
144

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL - ( + 42 ) * 36, + CAST ( + 89 AS INTEGER ) + 55 AS col0
----
-1512
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3814
SELECT 17 DIV - + 25 + 35 AS col0, + COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-3814
SELECT 17 / - + 25 + 35 AS col0, + COUNT ( * )
----
35
1

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

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

query I rowsort
SELECT 95 - + 8 * 50 AS col2
----
-305

query I rowsort
SELECT ALL 80 + + 2 AS col2
----
82

query II rowsort
SELECT 85 + + - 7 AS col2, 83 AS col1
----
78
83

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT 30 - + 26 AS col0, ( + COUNT( * ) )
----
4
1

skipif mysql # not compatible
query II rowsort label-3821
SELECT 30 - + 26 AS col0, ( + COUNT ( * ) )
----
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT 4 + COUNT( * ) * 15
----
19

skipif mysql # not compatible
query I rowsort label-3822
SELECT 4 + COUNT ( * ) * 15
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3823
SELECT 39 - - 89 + - MIN( ALL - - 40 ) AS col1, - 7
----
88
-7

skipif mysql # not compatible
query II rowsort label-3823
SELECT 39 - - 89 + - MIN ( ALL - - 40 ) AS col1, - 7
----
88
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL CASE COUNT( * ) WHEN - AVG ( - 28 ) THEN + - COUNT( * ) ELSE + - 41 END * 78 + - 15 AS col1
----
-3213

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL CASE COUNT ( * ) WHEN - AVG ( - 28 ) THEN + - COUNT ( * ) ELSE + - 41 END * 78 + - 15 AS col1
----
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT ( NULLIF ( + 99, 47 - - 17 + + 85 - + COUNT( * ) * - MIN( DISTINCT + - 5 ) * COUNT( * ) * - 57 - - + 31 * - 96 ) ) * + 4 * 59 - 96 AS col2
----
23268

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT ( NULLIF ( + 99, 47 - - 17 + + 85 - + COUNT ( * ) * - MIN ( DISTINCT + - 5 ) * COUNT ( * ) * - 57 - - + 31 * - 96 ) ) * + 4 * 59 - 96 AS col2
----
23268

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT - 57 + - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 57 + - COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT + + 80 + - + 42 * + 92
----
-3784

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - 88 * COUNT( * ) * - 94
----
8272

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 88 * COUNT ( * ) * - 94
----
8272

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + + 76 * + + CASE + + 4 WHEN - 15 THEN NULL ELSE ( - - COUNT( * ) ) END + - MIN( ( + 71 ) )
----
5

skipif mysql # not compatible
query I rowsort label-3829
SELECT + + 76 * + + CASE + + 4 WHEN - 15 THEN NULL ELSE ( - - COUNT ( * ) ) END + - MIN ( ( + 71 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL 76 * - 92 + + - ( SUM( - 36 ) )
----
-6956

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL 76 * - 92 + + - ( SUM ( - 36 ) )
----
-6956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT ALL - 50 DIV + + COUNT( * ) DIV COUNT( * ) + + 83 * + NULLIF ( - 61, - 44 + + ( 31 ) )
----
-5113

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - 50 / + + COUNT ( * ) / COUNT ( * ) + + 83 * + NULLIF ( - 61, - 44 + + ( 31 ) )
----
-5113

query I rowsort
SELECT DISTINCT - - 64 * - - 15 + + 3
----
963

query I rowsort
SELECT DISTINCT - 54 * + 1 + + 18 * + 6 - 23
----
31

query I rowsort
SELECT ALL 84 * - 27 + + 81 + + 43 * - 46
----
-4165

query I rowsort
SELECT + CASE + ( 23 ) WHEN - 24 THEN 55 + - - 71 WHEN 83 THEN NULL WHEN 11 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 4 + 78
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3837
SELECT DISTINCT ( 90 ) * - - 0 + 74 + + - COALESCE ( COALESCE ( 2, + - ( 62 ) ), 46 * + + 91 + + 25, + 86 ) + + CAST( - CAST( SUM( DISTINCT - 33 ) AS SIGNED ) AS SIGNED ) DIV - 59 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT ( 90 ) * - - 0 + 74 + + - COALESCE ( COALESCE ( 2, + - ( 62 ) ), 46 * + + 91 + + 25, + 86 ) + + CAST ( - CAST ( SUM ( DISTINCT - 33 ) AS INTEGER ) AS INTEGER ) / - 59 AS col1
----
72

query I rowsort
SELECT ALL 92 + - - 36
----
128

query I rowsort
SELECT DISTINCT NULLIF ( 58, + ( - 42 ) * - + 20 ) AS col0
----
58

query I rowsort
SELECT ALL CASE - 13 WHEN - 32 + 78 THEN NULL WHEN - 45 THEN - - 42 ELSE 88 END
----
88

query I rowsort
SELECT DISTINCT ( + NULLIF ( - + 60, - 95 ) )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT ALL - 48 - - + SUM( - 42 ) + 98 + 18 DIV - 78 * + 74 * + 35 + + 70
----
78

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - 48 - - + SUM ( - 42 ) + 98 + 18 / - 78 * + 74 * + 35 + + 70
----
78

query I rowsort
SELECT - 62 * - 16
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - CASE 20 WHEN + 20 THEN NULL WHEN - 96 - - - 77 - + - 34 THEN + CASE + + COUNT( * ) WHEN 73 * - 59 + + + 75 THEN NULL WHEN - 27 * COUNT( * ) * 17 THEN NULL WHEN - + COUNT( * ) THEN SUM( - 0 ) + + 51 / 44 WHEN 9 * COUNT( * ) THEN 50 * CASE - 14 WHEN COUNT( * ) THEN - MIN( ALL - 63 ) + - NULLIF ( - 81, 55 ) END END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT - CASE 20 WHEN + 20 THEN NULL WHEN - 96 - - - 77 - + - 34 THEN + CASE + + COUNT ( * ) WHEN 73 * - 59 + + + 75 THEN NULL WHEN - 27 * COUNT ( * ) * 17 THEN NULL WHEN - + COUNT ( * ) THEN SUM ( - 0 ) + + 51 / 44 WHEN 9 * COUNT ( * ) THEN 50 * CASE - 14 WHEN COUNT ( * ) THEN - MIN ( ALL - 63 ) + - NULLIF ( - 81, 55 ) END END ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 91 - + + 60 + 26 AS col2, - 71 - 56 AS col1
----
57
-127

query II rowsort
SELECT DISTINCT 69 AS col0, - 88
----
69
-88

query I rowsort
SELECT + 20 + - 63 AS col2
----
-43

query I rowsort
SELECT ALL 26 * 38 AS col1
----
988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT DISTINCT - 31 * + + COUNT( * ) DIV + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT - 31 * + + COUNT ( * ) / + 53 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL - COALESCE ( - 4, COUNT( * ) ) * - 54 AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - COALESCE ( - 4, COUNT ( * ) ) * - 54 AS col2
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT DISTINCT COUNT( * ) DIV - - CASE - ( + 66 ) WHEN 83 - 71 THEN NULL WHEN 0 + + MAX( 65 ) * + 52 THEN - + 78 ELSE + 33 * CASE - 56 WHEN - 59 * + 0 THEN - COUNT( * ) ELSE 8 END * - 64 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT COUNT ( * ) / - - CASE - ( + 66 ) WHEN 83 - 71 THEN NULL WHEN 0 + + MAX ( 65 ) * + 52 THEN - + 78 ELSE + 33 * CASE - 56 WHEN - 59 * + 0 THEN - COUNT ( * ) ELSE 8 END * - 64 END AS col0
----
0

query I rowsort
SELECT + 37 * 32
----
1184

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT + 54 DIV - NULLIF ( 87, + - 59 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3855
SELECT + 54 / - NULLIF ( 87, + - 59 ) AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3857
SELECT + 24 - - + COUNT( * ) + + ( - 45 ) / + 8 - - CAST( NULL AS SIGNED ) + 73 * - 4 * - MAX( ALL - 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT + 24 - - + COUNT ( * ) + + ( - 45 ) / + 8 - - CAST ( NULL AS INTEGER ) + 73 * - 4 * - MAX ( ALL - 84 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + + 51 - - COUNT( * ) + - 51 * - CASE - + 3 WHEN - ( + + 80 ) + - ( 33 ) THEN - + 47 * + 17 WHEN + AVG ( ALL - 17 ) THEN NULL END * + 68 + - 64 + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT + + 51 - - COUNT ( * ) + - 51 * - CASE - + 3 WHEN - ( + + 80 ) + - ( 33 ) THEN - + 47 * + 17 WHEN + AVG ( ALL - 17 ) THEN NULL END * + 68 + - 64 + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL 33 * + 90 + + + COUNT( * ) - + 62 AS col2
----
2909

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL 33 * + 90 + + + COUNT ( * ) - + 62 AS col2
----
2909

onlyif mysql # DIV for integer division: 
query II rowsort label-3860
SELECT + NULLIF ( + 84, ( - + 60 ) ) DIV - 18 AS col1, + 2
----
-4
2

skipif mysql # not compatible
query II rowsort label-3860
SELECT + NULLIF ( + 84, ( - + 60 ) ) / - 18 AS col1, + 2
----
-4
2

query II rowsort
SELECT 76 * + 60 + + 77 AS col2, + 48 AS col0
----
4637
48

query II rowsort
SELECT + 14, 89 AS col1
----
14
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT DISTINCT - 12 DIV - 52 * - ( + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT - 12 / - 52 * - ( + 11 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + + MAX( DISTINCT 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3864
SELECT + + MAX ( DISTINCT 97 )
----
97

query II rowsort
SELECT ALL - 28 * + 6 + 94 AS col2, 2 AS col1
----
-74
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3866
SELECT + CAST( NULL AS SIGNED ), + 35 + - - 19 AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3866
SELECT + CAST ( NULL AS INTEGER ), + 35 + - - 19 AS col1
----
NULL
54

query I rowsort
SELECT - COALESCE ( + 4, 60 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3868
SELECT ALL + - NULLIF ( CAST( - 62 AS SIGNED ), - ( - COUNT( * ) ) * + + COALESCE ( - MAX( + - CAST( NULL AS SIGNED ) ), 29 + 78 + - 0, + 98 ) + - 8 ) AS col0, + 63 * - SUM( 14 ) * + ( + 45 * 41 + 13 * 84 ) + - ( 87 )
----
62
-2590521

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL + - NULLIF ( CAST ( - 62 AS INTEGER ), - ( - COUNT ( * ) ) * + + COALESCE ( - MAX ( + - CAST ( NULL AS INTEGER ) ), 29 + 78 + - 0, + 98 ) + - 8 ) AS col0, + 63 * - SUM ( 14 ) * + ( + 45 * 41 + 13 * 84 ) + - ( 87 )
----
62
-2590521

query I rowsort
SELECT + - 67 col2
----
-67

query II rowsort
SELECT ALL + - 63 AS col1, + 47 AS col1
----
-63
47

query I rowsort
SELECT DISTINCT - - COALESCE ( 24, - + 98 + + + 73 * - 56 * - ( + + ( - + ( + + 84 ) ) ) + 99 ) * - - 42 AS col0
----
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT DISTINCT - - 28 DIV + + ( - COUNT( ALL - COALESCE ( 78, + 28 + - + 50 + - 56 ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - - 28 / + + ( - COUNT ( ALL - COALESCE ( 78, + 28 + - + 50 + - 56 ) ) )
----
-28

query I rowsort
SELECT ALL + CASE - AVG ( DISTINCT + 8 ) WHEN - 87 THEN - 35 * 38 END
----
NULL

query I rowsort
SELECT ALL + 16 * - 76 AS col2
----
-1216

query I rowsort
SELECT NULLIF ( + - 78, - 4 )
----
-78

query I rowsort
SELECT - 3 * - 67
----
201

query I rowsort
SELECT + 79 * - 71
----
-5609

query I rowsort
SELECT - 91 + + 18 AS col0
----
-73

query I rowsort
SELECT - NULLIF ( + 71, 1 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT ( - ( CASE - CASE - + 78 WHEN - 28 * MAX( 42 ) - + + COUNT( * ) + 35 THEN + + 58 WHEN - 31 * + + 89 - + 36 THEN NULL ELSE - 77 END WHEN - AVG ( DISTINCT 54 ) / 14 + + 3 THEN 19 + 63 WHEN 5 THEN 39 * - 49 - 78 ELSE - COUNT( * ) END ) )
----
1

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT ( - ( CASE - CASE - + 78 WHEN - 28 * MAX ( 42 ) - + + COUNT ( * ) + 35 THEN + + 58 WHEN - 31 * + + 89 - + 36 THEN NULL ELSE - 77 END WHEN - AVG ( DISTINCT 54 ) / 14 + + 3 THEN 19 + 63 WHEN 5 THEN 39 * - 49 - 78 ELSE - COUNT ( * ) END ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT ( MAX( ALL + 29 ) ) col2
----
29

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT ( MAX ( ALL + 29 ) ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3882
SELECT - 84 - - 80 - + - NULLIF ( - + NULLIF ( + + 57, + 1 ), - 62 * + 57 ) DIV + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-3882
SELECT - 84 - - 80 - + - NULLIF ( - + NULLIF ( + + 57, + 1 ), - 62 * + 57 ) / + COUNT ( * )
----
-61

query II rowsort
SELECT ALL 78 col2, - 39 * ( + - 22 ) AS col0
----
78
858

query I rowsort
SELECT 29 + + 87 * 83 + + 33
----
7283

query I rowsort
SELECT ALL 72 * - + 82
----
-5904

query II rowsort
SELECT ALL 87 AS col2, 81 * + 80
----
87
6480

query I rowsort
SELECT 48 * 54 AS col0
----
2592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3888
SELECT 19 + 59 AS col0, CAST( NULL AS SIGNED )
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3888
SELECT 19 + 59 AS col0, CAST ( NULL AS INTEGER )
----
78
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT ( 84 ) - - ( + 74 ) DIV + 12 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3889
SELECT ( 84 ) - - ( + 74 ) / + 12 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - NULLIF ( - - COUNT( * ), - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-3890
SELECT - NULLIF ( - - COUNT ( * ), - 99 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3891
SELECT 44 + 33 AS col0, + 89 + + - ( - MAX( DISTINCT + - NULLIF ( - NULLIF ( - 88, - 12 ), - 84 ) ) )
----
77
1

skipif mysql # not compatible
query II rowsort label-3891
SELECT 44 + 33 AS col0, + 89 + + - ( - MAX ( DISTINCT + - NULLIF ( - NULLIF ( - 88, - 12 ), - 84 ) ) )
----
77
1

query I rowsort
SELECT ALL + + 30 + + 28 AS col0
----
58

query II rowsort
SELECT DISTINCT 87, + CASE - 91 WHEN - - 45 * + + 99 + + 54 THEN - ( 3 ) WHEN 81 THEN 58 END * 76 / + 91 AS col1
----
87
NULL

query I rowsort
SELECT ALL + 83 * 77 - - + 80 AS col1
----
6471

query I rowsort
SELECT + 14 + + 75 AS col2
----
89

query I rowsort
SELECT ALL - CASE - 95 WHEN + 78 THEN NULL ELSE + - 4 - + 31 END AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT ALL 67 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL 67 / 70 AS col2
----
0

query I rowsort
SELECT DISTINCT - + 72 col0
----
-72

query I rowsort
SELECT - 94 * - 54
----
5076

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT ALL 34 DIV - ( + - 25 ) + - - 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL 34 / - ( + - 25 ) + - - 1 AS col1
----
2

query I rowsort
SELECT 92 * 84 AS col2
----
7728

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT ALL 91 - 74 - - SUM( DISTINCT - 84 ), COUNT( * ) col0
----
-67
1

skipif mysql # not compatible
query II rowsort label-3902
SELECT ALL 91 - 74 - - SUM ( DISTINCT - 84 ), COUNT ( * ) col0
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL - 18 * + COUNT( * ) * MAX( + 88 ) * + 67 + COALESCE ( 48, - - COUNT( * ) ) + 85 * - CASE - - 9 WHEN 56 THEN - 52 WHEN 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - 18 * + COUNT ( * ) * MAX ( + 88 ) * + 67 + COALESCE ( 48, - - COUNT ( * ) ) + 85 * - CASE - - 9 WHEN 56 THEN - 52 WHEN 68 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT + COUNT( * ) * + SUM( - + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-3904
SELECT + COUNT ( * ) * + SUM ( - + 28 )
----
-28

query I rowsort
SELECT ALL + 7 * - 95 AS col2
----
-665

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3906
SELECT + 44 * - 56, + MIN( ALL - + 8 ) + - 89 DIV 95 DIV - 75 AS col1
----
-2464
-8

skipif mysql # not compatible
query II rowsort label-3906
SELECT + 44 * - 56, + MIN ( ALL - + 8 ) + - 89 / 95 / - 75 AS col1
----
-2464
-8

query I rowsort
SELECT ALL - 32 * + + ( - 3 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - - MIN( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - - MIN ( DISTINCT + 86 )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT - + 37 * 6 * 26 + COUNT( ALL - 59 ) + - 96, - MIN( DISTINCT + 2 ) col0
----
-5867
-2

skipif mysql # not compatible
query II rowsort label-3909
SELECT - + 37 * 6 * 26 + COUNT ( ALL - 59 ) + - 96, - MIN ( DISTINCT + 2 ) col0
----
-5867
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3910
SELECT ALL - - COUNT( * ), 0 + 69 DIV + 46
----
1
1

skipif mysql # not compatible
query II rowsort label-3910
SELECT ALL - - COUNT ( * ), 0 + 69 / + 46
----
1
1

query I rowsort
SELECT ALL 15 - 61
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT - 20 * 48 * + 40 + CAST( + + NULLIF ( 99, + CAST( - 51 AS SIGNED ) ) AS SIGNED ) + + 0 AS col2
----
-38301

skipif mysql # not compatible
query I rowsort label-3912
SELECT - 20 * 48 * + 40 + CAST ( + + NULLIF ( 99, + CAST ( - 51 AS INTEGER ) ) AS INTEGER ) + + 0 AS col2
----
-38301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT MAX( ALL + 86 ) + + 36 + CAST( + COALESCE ( + 88, + ( - COALESCE ( + + CASE - ( 64 ) WHEN + COALESCE ( 85, + CAST( 80 AS SIGNED ) ) THEN + - 86 ELSE NULL END, - + 96 ) ) - 39, + 76 / + 73 ) AS SIGNED ) * CASE 29 WHEN + 20 THEN - 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT MAX ( ALL + 86 ) + + 36 + CAST ( + COALESCE ( + 88, + ( - COALESCE ( + + CASE - ( 64 ) WHEN + COALESCE ( 85, + CAST ( 80 AS INTEGER ) ) THEN + - 86 ELSE NULL END, - + 96 ) ) - 39, + 76 / + 73 ) AS INTEGER ) * CASE 29 WHEN + 20 THEN - 39 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT 33 * - 28 AS col2
----
-924

query I rowsort
SELECT ( NULLIF ( + 4, + 91 / 24 - + 86 ) ) * - + 76
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT ALL + 85 DIV + + 22
----
3

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL + 85 / + + 22
----
3

query I rowsort
SELECT 86 * - ( + 91 ) + - 2
----
-7828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3919
SELECT ALL COALESCE ( - COUNT( * ), + SUM( ALL - - CAST( 17 AS SIGNED ) ) ) DIV + 60 * + 73 - + CAST( - - 26 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL COALESCE ( - COUNT ( * ), + SUM ( ALL - - CAST ( 17 AS INTEGER ) ) ) / + 60 * + 73 - + CAST ( - - 26 AS INTEGER )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT 29 + + 51 + + + 16 DIV - 33
----
80

skipif mysql # not compatible
query I rowsort label-3920
SELECT 29 + + 51 + + + 16 / - 33
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT ALL - COUNT( * ) + ( - 33 ) + - COUNT( * ) * + - MIN( DISTINCT - 91 ) DIV - 95 + + - 67 - - 95 + - - 20 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - COUNT ( * ) + ( - 33 ) + - COUNT ( * ) * + - MIN ( DISTINCT - 91 ) / - 95 + + - 67 - - 95 + - - 20 AS col0
----
14

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

skipif mysql # not compatible
query I rowsort label-3922
SELECT CAST ( NULL AS INTEGER ) * - 22 * + + 96
----
NULL

query I rowsort
SELECT ALL + 23 + ( 57 ) AS col1
----
80

query I rowsort
SELECT 45 * + - 41 * + - 26 AS col1
----
47970

onlyif mysql # aggregate syntax: 
query II rowsort label-3925
SELECT ALL + - COUNT( * ) + + COUNT( * ) AS col2, + 29 * - 86 AS col0
----
0
-2494

skipif mysql # not compatible
query II rowsort label-3925
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) AS col2, + 29 * - 86 AS col0
----
0
-2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT ALL - + CASE 5 WHEN + 94 THEN NULL WHEN COALESCE ( + 5, - - 20 + + AVG ( + CAST( - 10 AS SIGNED ) ) + + ( - - 36 ) ) + 21 * 20 - 66 - - ( - 9 ) THEN 83 END + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - + CASE 5 WHEN + 94 THEN NULL WHEN COALESCE ( + 5, - - 20 + + AVG ( + CAST ( - 10 AS INTEGER ) ) + + ( - - 36 ) ) + 21 * 20 - 66 - - ( - 9 ) THEN 83 END + + 57
----
NULL

query I rowsort
SELECT 69 * + + 45 + - + 88
----
3017

query I rowsort
SELECT - 79 - - 28
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3929
SELECT ALL + 38 * CAST( NULL AS SIGNED ) AS col0, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3929
SELECT ALL + 38 * CAST ( NULL AS INTEGER ) AS col0, 80 AS col1
----
NULL
80

query I rowsort
SELECT + + 48 * ( - 60 ) + - 26 AS col2
----
-2906

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT + 62 * 19 DIV - 91
----
-12

skipif mysql # not compatible
query I rowsort label-3931
SELECT + 62 * 19 / - 91
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT - CAST( - NULLIF ( 85, 84 ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-3932
SELECT - CAST ( - NULLIF ( 85, 84 ) AS INTEGER )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT - 86 DIV 73 + 32 * + 32 + + 19
----
1042

skipif mysql # not compatible
query I rowsort label-3933
SELECT - 86 / 73 + 32 * + 32 + + 19
----
1042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT DISTINCT ( - 63 ) * + 50 + + CAST( NULL AS SIGNED ) + - + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT ( - 63 ) * + 50 + + CAST ( NULL AS INTEGER ) + - + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL - - CASE MAX( + 59 ) WHEN + - 80 * + COUNT( * ) * + 98 * - 23 + + + COALESCE ( + - 43, 96 * - - 86 ) THEN + 63 WHEN + 66 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - - CASE MAX ( + 59 ) WHEN + - 80 * + COUNT ( * ) * + 98 * - 23 + + + COALESCE ( + - 43, 96 * - - 86 ) THEN + 63 WHEN + 66 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 42 - + + 35
----
-77

query I rowsort
SELECT NULLIF ( 69, 67 * - - 74 * - - 14 - + 86 * + + 22 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - + 47 * - + MAX( ALL + 84 ) - + + 50 + - + COALESCE ( - 41, 96 ) AS col0
----
3939

skipif mysql # not compatible
query I rowsort label-3938
SELECT - + 47 * - + MAX ( ALL + 84 ) - + + 50 + - + COALESCE ( - 41, 96 ) AS col0
----
3939

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT COALESCE ( + 8, + + 78 * - - 87 * - COUNT( DISTINCT 62 ) ) * 95, 29 AS col1
----
760
29

skipif mysql # not compatible
query II rowsort label-3939
SELECT COALESCE ( + 8, + + 78 * - - 87 * - COUNT ( DISTINCT 62 ) ) * 95, 29 AS col1
----
760
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3940
SELECT 88 + + NULLIF ( + 45, - - 75 * - 27 ) DIV 68
----
88

skipif mysql # not compatible
query I rowsort label-3940
SELECT 88 + + NULLIF ( + 45, - - 75 * - 27 ) / 68
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT 4 DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT 4 / - 29 AS col2
----
0

query I rowsort
SELECT ALL 3 * - 98
----
-294

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3944
SELECT ALL MAX( - 54 ) + - + 78 AS col2, + CASE + 36 WHEN + 85 THEN ( + 63 ) + COALESCE ( 14, - COALESCE ( - NULLIF ( - 78, - 17 * + - 38 ), AVG ( ALL - - 10 ) * - + 10, 46 ) ) + 11 ELSE + 25 + 46 END
----
-132
71

skipif mysql # not compatible
query II rowsort label-3944
SELECT ALL MAX ( - 54 ) + - + 78 AS col2, + CASE + 36 WHEN + 85 THEN ( + 63 ) + COALESCE ( 14, - COALESCE ( - NULLIF ( - 78, - 17 * + - 38 ), AVG ( ALL - - 10 ) * - + 10, 46 ) ) + 11 ELSE + 25 + 46 END
----
-132
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL 55 + 54 + - MIN( 8 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL 55 + 54 + - MIN ( 8 ) AS col1
----
101

query I rowsort
SELECT ALL 67 + + - 76 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT ALL NULLIF ( + + ( + + 1 ), 45 ) * - 96 * + COUNT( * ) AS col1, 2 col1
----
-96
2

skipif mysql # not compatible
query II rowsort label-3947
SELECT ALL NULLIF ( + + ( + + 1 ), 45 ) * - 96 * + COUNT ( * ) AS col1, 2 col1
----
-96
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + COUNT( * ) * - ( - - 4 ) * SUM( ALL + 28 ) AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-3948
SELECT + COUNT ( * ) * - ( - - 4 ) * SUM ( ALL + 28 ) AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT + 49 + COUNT( * ) * - + 89 * + 1 + - 98 * - COUNT( * ) col2
----
58

skipif mysql # not compatible
query I rowsort label-3949
SELECT + 49 + COUNT ( * ) * - + 89 * + 1 + - 98 * - COUNT ( * ) col2
----
58

query I rowsort
SELECT ALL 19 + - - 25
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3951
SELECT + 25 + 86 * - 31, CAST( NULL AS SIGNED ) + 53 AS col0
----
-2641
NULL

skipif mysql # not compatible
query II rowsort label-3951
SELECT + 25 + 86 * - 31, CAST ( NULL AS INTEGER ) + 53 AS col0
----
-2641
NULL

query II rowsort
SELECT - 82 AS col1, + 76 AS col2
----
-82
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + 78 + + 44 * - + 97 * - COUNT( * ) AS col1
----
4346

skipif mysql # not compatible
query I rowsort label-3953
SELECT + 78 + + 44 * - + 97 * - COUNT ( * ) AS col1
----
4346

query I rowsort
SELECT ALL - 91 + - + 93
----
-184

query II rowsort
SELECT 88, 26 AS col0
----
88
26

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

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

query I rowsort
SELECT DISTINCT + 19 * + 40 AS col2
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT 71 * COUNT( * ) + - 16 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT 71 * COUNT ( * ) + - 16 AS col0
----
55

query I rowsort
SELECT + + 12 + 81 AS col2
----
93

query I rowsort
SELECT - + 6 * 52
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL + COUNT( * ) * + + 54 * - - 66 AS col1
----
3564

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + COUNT ( * ) * + + 54 * - - 66 AS col1
----
3564

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3962
SELECT + + 62 + - COUNT( * ) DIV - 31 AS col0, 53 * + ( - + 17 ) * + 99 * ( + 6 ) - + 1 + + - 71 * + 41
----
62
-538106

skipif mysql # not compatible
query II rowsort label-3962
SELECT + + 62 + - COUNT ( * ) / - 31 AS col0, 53 * + ( - + 17 ) * + 99 * ( + 6 ) - + 1 + + - 71 * + 41
----
62
-538106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT - + SUM( - 79 ) - - - COALESCE ( - - MIN( DISTINCT - - 60 ), 23 * - - 8 ) + - + 93 DIV + + 19
----
15

skipif mysql # not compatible
query I rowsort label-3963
SELECT - + SUM ( - 79 ) - - - COALESCE ( - - MIN ( DISTINCT - - 60 ), 23 * - - 8 ) + - + 93 / + + 19
----
15

query I rowsort
SELECT DISTINCT 55 * + ( + 22 ) * - 75 * + 2
----
-181500

query I rowsort
SELECT ALL + + 75 - 99 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - MAX( DISTINCT - + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - MAX ( DISTINCT - + 17 )
----
17

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

skipif mysql # not compatible
query II rowsort label-3967
SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3968
SELECT DISTINCT + + 91 AS col1, + ( 52 ) DIV + ( - 20 ) - + 61 + + + ( + + ( + - 9 ) ) + MAX( DISTINCT - ( 87 ) ) + - - 51
----
91
-108

skipif mysql # not compatible
query II rowsort label-3968
SELECT DISTINCT + + 91 AS col1, + ( 52 ) / + ( - 20 ) - + 61 + + + ( + + ( + - 9 ) ) + MAX ( DISTINCT - ( 87 ) ) + - - 51
----
91
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3969
SELECT DISTINCT + - COALESCE ( + 43, + + COUNT( * ) * + 28 DIV + CASE 89 WHEN - 45 THEN - 79 * - - 73 + + 17 END + - CASE - 44 WHEN CAST( 77 AS DECIMAL ) THEN 23 WHEN + NULLIF ( MIN( 38 ), 81 ) THEN NULL WHEN - 82 * 96 - 25 * - 94 THEN NULL ELSE + COUNT( ( ( 77 ) ) ) END ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT + - COALESCE ( + 43, + + COUNT ( * ) * + 28 / + CASE 89 WHEN - 45 THEN - 79 * - - 73 + + 17 END + - CASE - 44 WHEN CAST ( 77 AS REAL ) THEN 23 WHEN + NULLIF ( MIN ( 38 ), 81 ) THEN NULL WHEN - 82 * 96 - 25 * - 94 THEN NULL ELSE + COUNT ( ( ( 77 ) ) ) END ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - 40 + - + MAX( DISTINCT + 67 )
----
-107

skipif mysql # not compatible
query I rowsort label-3970
SELECT - 40 + - + MAX ( DISTINCT + 67 )
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT + ( + MIN( + 19 ) ) AS col1, 94 + + COUNT( * ) * + 99 col0
----
19
193

skipif mysql # not compatible
query II rowsort label-3971
SELECT + ( + MIN ( + 19 ) ) AS col1, 94 + + COUNT ( * ) * + 99 col0
----
19
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + - 8 * - COUNT( * ) + + COALESCE ( ( - 93 ), + 9, + + SUM( + 52 ) + - 35 )
----
-85

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + - 8 * - COUNT ( * ) + + COALESCE ( ( - 93 ), + 9, + + SUM ( + 52 ) + - 35 )
----
-85

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

query II rowsort
SELECT 19, - ( 74 ) AS col0
----
19
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT DISTINCT + COUNT( * ) * + - ( + + 32 ), + 94 AS col1
----
-32
94

skipif mysql # not compatible
query II rowsort label-3975
SELECT DISTINCT + COUNT ( * ) * + - ( + + 32 ), + 94 AS col1
----
-32
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL + CASE - + 37 WHEN + - 58 THEN NULL ELSE + - ( + SUM( ALL + + 41 ) ) * + 45 - 84 END
----
-1929

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + CASE - + 37 WHEN + - 58 THEN NULL ELSE + - ( + SUM ( ALL + + 41 ) ) * + 45 - 84 END
----
-1929

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL ( - 26 ) * + ( - 65 ) + - - 13 + + COUNT( - 26 ) + + 10
----
1714

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL ( - 26 ) * + ( - 65 ) + - - 13 + + COUNT ( - 26 ) + + 10
----
1714

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + 42 * + + COUNT( * ) + + 43
----
85

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + 42 * + + COUNT ( * ) + + 43
----
85

query I rowsort
SELECT - 62 + - - 59 * + 12
----
646

query II rowsort
SELECT DISTINCT + 48 * - 33 * + 91 + - 22 + - 84 AS col1, + ( - + 4 ) AS col2
----
-144250
-4

query I rowsort
SELECT - 49 * ( 21 )
----
-1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT COALESCE ( COUNT( * ), + CASE + CASE + + ( 6 ) WHEN + 87 - + ( - + NULLIF ( COUNT( * ), CAST( - - 29 AS SIGNED ) ) ) + + + MIN( DISTINCT + 53 ) + + 90 * + 20 / + 26 / + COUNT( * ) / + - 61 * 97 THEN NULL WHEN CASE + 31 WHEN 79 THEN 60 WHEN + 18 THEN 26 END THEN NULL WHEN MIN( + 2 ) THEN COALESCE ( + 9, COUNT( 4 ), COUNT( * ) / COALESCE ( - 76, - ( 93 ) * - 11 ) + 67 ) * - 29 ELSE NULL END WHEN - 76 THEN NULL WHEN + 86 + 15 THEN NULL WHEN 4 + MIN( DISTINCT 21 - 4 ) * - CAST( - COALESCE ( CAST( NULL AS SIGNED ), 95, 50 ) AS SIGNED ) THEN COUNT( * ) * CAST( - COUNT( * ) * 28 AS SIGNED ) WHEN - COUNT( * ) * 45 THEN NULL ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-3982
SELECT COALESCE ( COUNT ( * ), + CASE + CASE + + ( 6 ) WHEN + 87 - + ( - + NULLIF ( COUNT ( * ), CAST ( - - 29 AS INTEGER ) ) ) + + + MIN ( DISTINCT + 53 ) + + 90 * + 20 / + 26 / + COUNT ( * ) / + - 61 * 97 THEN NULL WHEN CASE + 31 WHEN 79 THEN 60 WHEN + 18 THEN 26 END THEN NULL WHEN MIN ( + 2 ) THEN COALESCE ( + 9, COUNT ( 4 ), COUNT ( * ) / COALESCE ( - 76, - ( 93 ) * - 11 ) + 67 ) * - 29 ELSE NULL END WHEN - 76 THEN NULL WHEN + 86 + 15 THEN NULL WHEN 4 + MIN ( DISTINCT 21 - 4 ) * - CAST ( - COALESCE ( CAST ( NULL AS INTEGER ), 95, 50 ) AS INTEGER ) THEN COUNT ( * ) * CAST ( - COUNT ( * ) * 28 AS INTEGER ) WHEN - COUNT ( * ) * 45 THEN NULL ELSE NULL END )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT ALL - CAST( NULL AS SIGNED ) * - NULLIF ( - 69, - MIN( - 59 ) * - 68 ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - CAST ( NULL AS INTEGER ) * - NULLIF ( - 69, - MIN ( - 59 ) * - 68 ) + 46
----
NULL

query I rowsort
SELECT COALESCE ( - - 82, + 87, + + 30 + 65 ) col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3985
SELECT - 2 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-3985
SELECT - 2 / - 98
----
0

query I rowsort
SELECT ALL 30 * + + AVG ( + + 70 ) * + + 26 + + 30 + CASE + + 47 WHEN - 70 THEN - - 18 WHEN - ( - - 2 ) THEN NULL END - - - 67 * + 64 + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL + 38 * - - 26 + COUNT( * ) AS col2
----
989

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + 38 * - - 26 + COUNT ( * ) AS col2
----
989

query I rowsort
SELECT - CASE + ( + - 29 ) WHEN + 45 + - 57 + - 23 - + 90 / - + 71 + 95 THEN - 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT MAX( - + NULLIF ( - ( + 72 ), - 31 ) )
----
72

skipif mysql # not compatible
query I rowsort label-3989
SELECT MAX ( - + NULLIF ( - ( + 72 ), - 31 ) )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT MIN( - + ( CAST( NULL AS SIGNED ) ) ) * + CAST( NULL AS SIGNED ) - + 20 + - 25 - - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT MIN ( - + ( CAST ( NULL AS INTEGER ) ) ) * + CAST ( NULL AS INTEGER ) - + 20 + - 25 - - 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL MAX( ALL + - 19 ) * 95 * - ( + MAX( DISTINCT 29 ) )
----
52345

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL MAX ( ALL + - 19 ) * 95 * - ( + MAX ( DISTINCT 29 ) )
----
52345

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + ( - + COUNT( * ) ) + 55 + - 75 * 17 * - 56 * - 86
----
-6140346

skipif mysql # not compatible
query I rowsort label-3992
SELECT + ( - + COUNT ( * ) ) + 55 + - 75 * 17 * - 56 * - 86
----
-6140346

query I rowsort
SELECT ALL + CASE + 92 WHEN + AVG ( DISTINCT - 98 ) THEN + 89 ELSE - - 68 END * + COALESCE ( 50, + 68, - 52 * + 94 * + + 68 + - 20 ) - - 35 + - 86 col0
----
3349

query II rowsort
SELECT - CASE 72 WHEN + 47 THEN + - 8 ELSE NULL END, 20 AS col1
----
NULL
20

query I rowsort
SELECT - 30 + - 66 col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT DISTINCT CASE - 42 WHEN + - SUM( CAST( 14 AS SIGNED ) ) THEN NULL WHEN 58 / COUNT( * ) * + - 9 THEN - - 33 / 57 * 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT CASE - 42 WHEN + - SUM ( CAST ( 14 AS INTEGER ) ) THEN NULL WHEN 58 / COUNT ( * ) * + - 9 THEN - - 33 / 57 * 97 END
----
NULL

query I rowsort
SELECT + 83 * 56 AS col2
----
4648

query I rowsort
SELECT DISTINCT - 89 * + 98 AS col2
----
-8722

query I rowsort
SELECT ALL + CASE + ( + 97 ) WHEN + + 35 THEN + 33 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL - 56 * - CAST( NULL AS SIGNED ) * - + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - 56 * - CAST ( NULL AS INTEGER ) * - + 17 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT ALL - 45 DIV - 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - 45 / - 30 AS col1
----
1

query I rowsort
SELECT ALL - 39 * - 59 AS col0
----
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - + 34 * - ( - + 8 ) * - 30 - + COUNT( * )
----
8159

skipif mysql # not compatible
query I rowsort label-4003
SELECT - + 34 * - ( - + 8 ) * - 30 - + COUNT ( * )
----
8159

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT 89 * 17 * + COUNT( * ) AS col1
----
1513

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT 89 * 17 * + COUNT ( * ) AS col1
----
1513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL - 95 + - 57 - - 82 * + - 39 * + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - 95 + - 57 - - 82 * + - 39 * + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT + - SUM( + 61 ) - - ( - + 81 ) + - CAST( NULL AS SIGNED ) + - COUNT( - - CAST( NULL AS SIGNED ) ) * + + 72 * + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT + - SUM ( + 61 ) - - ( - + 81 ) + - CAST ( NULL AS INTEGER ) + - COUNT ( - - CAST ( NULL AS INTEGER ) ) * + + 72 * + - 24
----
NULL

query I rowsort
SELECT + + 10 * 2 + 13
----
33

query I rowsort
SELECT + 99 * - 70 AS col1
----
-6930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT ALL + SUM( DISTINCT + 41 ) DIV - + 64 + + + 39 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + SUM ( DISTINCT + 41 ) / - + 64 + + + 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL CASE + CASE + 71 WHEN - 21 + - 76 THEN - 88 END WHEN - COUNT( * ) THEN 95 WHEN + 59 THEN 61 * - COALESCE ( 31, MIN( DISTINCT 95 ) * ( - 13 ) + + - COUNT( * ) * 82 - + 85 + - COUNT( * ) * - 50, COUNT( ALL 85 ) ) + 18 WHEN + 89 / + 56 THEN NULL END + - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL CASE + CASE + 71 WHEN - 21 + - 76 THEN - 88 END WHEN - COUNT ( * ) THEN 95 WHEN + 59 THEN 61 * - COALESCE ( 31, MIN ( DISTINCT 95 ) * ( - 13 ) + + - COUNT ( * ) * 82 - + 85 + - COUNT ( * ) * - 50, COUNT ( ALL 85 ) ) + 18 WHEN + 89 / + 56 THEN NULL END + - 78 AS col0
----
NULL

query II rowsort
SELECT + 49, 8 AS col1
----
49
8

query I rowsort
SELECT ALL + ( + 89 ) + - 90
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT ALL - 59 col1, COUNT( * ) + + 34 + + 5 * 62
----
-59
345

skipif mysql # not compatible
query II rowsort label-4013
SELECT ALL - 59 col1, COUNT ( * ) + + 34 + + 5 * 62
----
-59
345

query I rowsort
SELECT 30 * - 44
----
-1320

query I rowsort
SELECT 33 - + 79 AS col0
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL + COUNT( * ) + 89 col1
----
90

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + COUNT ( * ) + 89 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT 23 + + 5 * COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-4018
SELECT 23 + + 5 * COUNT ( * ) col2
----
28

query I rowsort
SELECT ALL - 37 * + 55
----
-2035

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

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + COUNT ( * ) - - 15 AS col2
----
16

query I rowsort
SELECT DISTINCT + ( - 12 ) - - + 18
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4022
SELECT 51 AS col0, 59 - - + 35 * 36 * - 15 + 92 + - + 25 * + 63 DIV COUNT( * ) AS col2
----
51
-20324

skipif mysql # not compatible
query II rowsort label-4022
SELECT 51 AS col0, 59 - - + 35 * 36 * - 15 + 92 + - + 25 * + 63 / COUNT ( * ) AS col2
----
51
-20324

query I rowsort
SELECT 44 + - 90 - - 23 * + 22 AS col2
----
460

query I rowsort
SELECT 48 * + 9
----
432

query I rowsort
SELECT 83 * - 99 AS col1
----
-8217

query I rowsort
SELECT - 31 + 47 + 49 / + CASE - 25 WHEN - 9 * 37 THEN + 39 + + AVG ( - 47 ) END AS col0
----
NULL

query I rowsort
SELECT 64 - - NULLIF ( + 81, + 73 ) AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4028
SELECT DISTINCT + - ( + - 27 ) / + - 37 * - - CASE + 73 WHEN - COUNT( * ) THEN NULL WHEN + CAST( NULL AS DECIMAL ) * + 97 + + 42 THEN 68 WHEN - - NULLIF ( - 31, - 62 ) THEN + - ( + ( - 29 ) ) END, + COUNT( * ) * + - 69 AS col0
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-4028
SELECT DISTINCT + - ( + - 27 ) / + - 37 * - - CASE + 73 WHEN - COUNT ( * ) THEN NULL WHEN + CAST ( NULL AS REAL ) * + 97 + + 42 THEN 68 WHEN - - NULLIF ( - 31, - 62 ) THEN + - ( + ( - 29 ) ) END, + COUNT ( * ) * + - 69 AS col0
----
NULL
-69

query I rowsort
SELECT 67 + + 48 - - + ( - 44 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT ALL - COALESCE ( - 2, + NULLIF ( - 42, + 32 ) ) - - 86 DIV + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - COALESCE ( - 2, + NULLIF ( - 42, + 32 ) ) - - 86 / + COUNT ( * )
----
88

query I rowsort
SELECT - ( 51 ) AS col2
----
-51

query I rowsort
SELECT + 81 + - + 31
----
50

query I rowsort
SELECT ALL + - NULLIF ( - + 25, - 58 * 72 + - + 3 ) * 1 + - - 98
----
123

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

query I rowsort
SELECT 82 + - 44 + + 26
----
64

query I rowsort
SELECT ALL 78 * - 63
----
-4914

query I rowsort
SELECT ALL ( ( + 96 ) ) + + 74 AS col2
----
170

query I rowsort
SELECT 15 + - 12 col2
----
3

query I rowsort
SELECT 61 + ( + + ( 49 ) ) AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT CASE + COUNT( ALL - - 68 ) WHEN 8 THEN - COUNT( - 79 ) * 20 WHEN + + COUNT( * ) * + 85 * - 34 THEN COUNT( DISTINCT ( + - 95 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT CASE + COUNT ( ALL - - 68 ) WHEN 8 THEN - COUNT ( - 79 ) * 20 WHEN + + COUNT ( * ) * + 85 * - 34 THEN COUNT ( DISTINCT ( + - 95 ) ) END
----
NULL

query I rowsort
SELECT ALL + 83 + 72 AS col0
----
155

query I rowsort
SELECT ( + 55 ) + + + 32 * - 95 AS col0
----
-2985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT COALESCE ( - 21, - + 50 * + COUNT( * ) ) DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT COALESCE ( - 21, - + 50 * + COUNT ( * ) ) / + 52 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4044
SELECT 40 DIV - - 90 + CAST( + COUNT( * ) AS SIGNED ), COUNT( - 4 ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4044
SELECT 40 / - - 90 + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( - 4 ) col0
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT ALL 44 + + COUNT( * ) * 27 DIV + 52 col1
----
44

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL 44 + + COUNT ( * ) * 27 / + 52 col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT NULLIF ( MAX( + + 97 ), 60 ) + + 96 + COUNT( * ) - - 48 + - 48 DIV + 4
----
230

skipif mysql # not compatible
query I rowsort label-4046
SELECT NULLIF ( MAX ( + + 97 ), 60 ) + + 96 + COUNT ( * ) - - 48 + - 48 / + 4
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT 32 * + - CASE - 78 WHEN + COUNT( * ) + ( + 7 ) * 57 * + MAX( DISTINCT - 5 ) THEN + 25 / 91 + - - COUNT( * ) ELSE NULL END + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT 32 * + - CASE - 78 WHEN + COUNT ( * ) + ( + 7 ) * 57 * + MAX ( DISTINCT - 5 ) THEN + 25 / 91 + - - COUNT ( * ) ELSE NULL END + + 15 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT 65 * 22 DIV - 97 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4048
SELECT 65 * 22 / - 97 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + 41 * 4 * + + COUNT( * ) + + 64
----
228

skipif mysql # not compatible
query I rowsort label-4049
SELECT + 41 * 4 * + + COUNT ( * ) + + 64
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + MAX( DISTINCT - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4050
SELECT + MAX ( DISTINCT - 8 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT 55 + - + 50 DIV - 86 + - + 79
----
-24

skipif mysql # not compatible
query I rowsort label-4051
SELECT 55 + - + 50 / - 86 + - + 79
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT 58 DIV 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4052
SELECT 58 / 39 AS col1
----
1

query I rowsort
SELECT 64 + 69
----
133

query I rowsort
SELECT DISTINCT + 60 - - - 63 + + - 68 + - 30 * - 99 * + 96 * 9 * - 2
----
-5132231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT - COALESCE ( - - 72, + CASE + MIN( 55 ) WHEN CAST( NULL AS SIGNED ) + - + 22 + + 39 * - COUNT( * ) THEN NULL WHEN + 62 * - + 0 THEN NULL ELSE - 23 END * + 7 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - COALESCE ( - - 72, + CASE + MIN ( 55 ) WHEN CAST ( NULL AS INTEGER ) + - + 22 + + 39 * - COUNT ( * ) THEN NULL WHEN + 62 * - + 0 THEN NULL ELSE - 23 END * + 7 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT 98 AS col1, COALESCE ( - + COUNT( * ), - + ( - SUM( ALL + 67 ) ) * + 65, COUNT( * ) + + 11 ) AS col2
----
98
-1

skipif mysql # not compatible
query II rowsort label-4056
SELECT 98 AS col1, COALESCE ( - + COUNT ( * ), - + ( - SUM ( ALL + 67 ) ) * + 65, COUNT ( * ) + + 11 ) AS col2
----
98
-1

query I rowsort
SELECT 93 * - 92 * 60 * - ( + - 97 ) AS col1
----
-49795920

query I rowsort
SELECT ALL - 6 * + 22
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT COUNT( 39 ) + ( + 33 )
----
34

skipif mysql # not compatible
query I rowsort label-4059
SELECT COUNT ( 39 ) + ( + 33 )
----
34

query I rowsort
SELECT ALL - COALESCE ( 7, - 9 ) AS col1
----
-7

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

query II rowsort
SELECT ALL - 69 AS col0, 94
----
-69
94

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

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

query I rowsort
SELECT ALL + ( + + 18 ) AS col2
----
18

query II rowsort
SELECT + 80 col1, COALESCE ( - - 18, CASE - AVG ( + 27 ) WHEN - 16 * - 23 / + 66 THEN + - 76 ELSE NULL END, + 35 + - 94 )
----
80
18

query II rowsort
SELECT DISTINCT + 45, - 96 * - - ( + 34 ) + - 27 * 95 * + 59 * + + 79 AS col0
----
45
-11958729

query I rowsort
SELECT DISTINCT + 61 + 12 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - COUNT( + 97 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4068
SELECT - COUNT ( + 97 ) col1
----
-1

query I rowsort
SELECT 38 - - 92 + - 49
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4070
SELECT - - 97, 87 * + 75 * - ( - - MIN( 82 ) ) AS col0
----
97
-535050

skipif mysql # not compatible
query II rowsort label-4070
SELECT - - 97, 87 * + 75 * - ( - - MIN ( 82 ) ) AS col0
----
97
-535050

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL + + ( - CAST( + 14 AS SIGNED ) ) + - 11 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + + ( - CAST ( + 14 AS INTEGER ) ) + - 11 AS col2
----
-25

query II rowsort
SELECT 30 * + - ( + - ( + + 14 ) ) * + NULLIF ( + 5, 3 + + 39 ) * - 70, - 93 AS col2
----
-147000
-93

query I rowsort
SELECT + 28 * + 95
----
2660

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT ALL + 87 + + 35 DIV 86
----
87

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + 87 + + 35 / 86
----
87

query I rowsort
SELECT ALL - 12 + + 32 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT DISTINCT + - ( 59 ) + 62 + + - 9 DIV - ( + NULLIF ( - 10, + - 33 ) ) * - COUNT( * ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + - ( 59 ) + 62 + + - 9 / - ( + NULLIF ( - 10, + - 33 ) ) * - COUNT ( * ) + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - MIN( ALL 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4078
SELECT - MIN ( ALL 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL 3 + + CASE COUNT( * ) WHEN - 78 THEN NULL WHEN 51 / - 13 / + 93 / - - 50 THEN 87 + 17 + + 55 - - 44 ELSE NULL END - + SUM( + 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL 3 + + CASE COUNT ( * ) WHEN - 78 THEN NULL WHEN 51 / - 13 / + 93 / - - 50 THEN 87 + 17 + + 55 - - 44 ELSE NULL END - + SUM ( + 8 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT MIN( - 70 ) * - - 91 + + 50 AS col0
----
-6320

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT MIN ( - 70 ) * - - 91 + + 50 AS col0
----
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT 46 * + - 52 + - + SUM( ALL - + 80 ) AS col2
----
-2312

skipif mysql # not compatible
query I rowsort label-4081
SELECT 46 * + - 52 + - + SUM ( ALL - + 80 ) AS col2
----
-2312

query I rowsort
SELECT ALL 86 * + 5 - + 17 AS col2
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + SUM( ALL - 6 ) * + ( + 33 ) + - 45 + - 94
----
-337

skipif mysql # not compatible
query I rowsort label-4083
SELECT + SUM ( ALL - 6 ) * + ( + 33 ) + - 45 + - 94
----
-337

query I rowsort
SELECT + 31 - - - 38 col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + NULLIF ( 66, - SUM( ALL 8 ) * + 26 ) + 14
----
80

skipif mysql # not compatible
query I rowsort label-4085
SELECT + NULLIF ( 66, - SUM ( ALL 8 ) * + 26 ) + 14
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + COUNT( * ) * - + 35 * + 80 col1
----
-2800

skipif mysql # not compatible
query I rowsort label-4086
SELECT + COUNT ( * ) * - + 35 * + 80 col1
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + ( - 28 ) * - SUM( DISTINCT + + 99 ) * + 81
----
224532

skipif mysql # not compatible
query I rowsort label-4087
SELECT + ( - 28 ) * - SUM ( DISTINCT + + 99 ) * + 81
----
224532

query I rowsort
SELECT DISTINCT 48 * + + 32
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT + COALESCE ( + ( - + ( + - 46 ) ), - 62 - + COUNT( * ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4089
SELECT + COALESCE ( + ( - + ( + - 46 ) ), - 62 - + COUNT ( * ) ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4090
SELECT - CAST( - 85 AS SIGNED ) DIV 68 + - + 87 DIV + - 96
----
1

skipif mysql # not compatible
query I rowsort label-4090
SELECT - CAST ( - 85 AS INTEGER ) / 68 + - + 87 / + - 96
----
1

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

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

query I rowsort
SELECT + ( - 96 ) * 69 * ( - 22 ) + + 41
----
145769

query I rowsort
SELECT + 50 * 89
----
4450

query I rowsort
SELECT - COALESCE ( - 56, 3 )
----
56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL - SUM( 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - SUM ( 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4098
SELECT - + COALESCE ( 49, - CAST( NULL AS SIGNED ) * - COUNT( * ), + - SUM( + ( + + 51 ) ) + - 34 ) + - 20 + + NULLIF ( - + 16, - 95 ) * + 42 + - NULLIF ( + + 95, + 24 ) + + + NULLIF ( - 16, COALESCE ( + CASE - COALESCE ( - 24, - 26 * CAST( NULL AS SIGNED ) ) WHEN 2 THEN - 48 WHEN + 52 THEN NULL END, + 27 ) ) + 80 * COUNT( * )
----
-772

skipif mysql # not compatible
query I rowsort label-4098
SELECT - + COALESCE ( 49, - CAST ( NULL AS INTEGER ) * - COUNT ( * ), + - SUM ( + ( + + 51 ) ) + - 34 ) + - 20 + + NULLIF ( - + 16, - 95 ) * + 42 + - NULLIF ( + + 95, + 24 ) + + + NULLIF ( - 16, COALESCE ( + CASE - COALESCE ( - 24, - 26 * CAST ( NULL AS INTEGER ) ) WHEN 2 THEN - 48 WHEN + 52 THEN NULL END, + 27 ) ) + 80 * COUNT ( * )
----
-772

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT CASE - COUNT( * ) WHEN - COUNT( * ) THEN + 75 WHEN - 80 THEN + 69 / + 79 + - 21 * - 41 WHEN + + 93 * + 3 + - 1 THEN - NULLIF ( - 11, - ( 90 ) ) END AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + 75 WHEN - 80 THEN + 69 / + 79 + - 21 * - 41 WHEN + + 93 * + 3 + - 1 THEN - NULLIF ( - 11, - ( 90 ) ) END AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT - - 27 + + - 6 - + - 40 + + - COALESCE ( + - 2, - 74 DIV + 1, 19 DIV + ( 88 ) + + 72 * + + COUNT( DISTINCT ( + 74 ) ) * + COALESCE ( - + 74, + - 67, - 16 ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4100
SELECT - - 27 + + - 6 - + - 40 + + - COALESCE ( + - 2, - 74 / + 1, 19 / + ( 88 ) + + 72 * + + COUNT ( DISTINCT ( + 74 ) ) * + COALESCE ( - + 74, + - 67, - 16 ) ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL + COUNT( * ) + + + 31 + - + CAST( NULL AS SIGNED ) - + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + COUNT ( * ) + + + 31 + - + CAST ( NULL AS INTEGER ) - + + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL 35 * COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL 35 * COUNT ( * ) AS col2
----
35

query I rowsort
SELECT - 79 + - 16 + - + 3 AS col1
----
-98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT - CASE + 66 WHEN - + ( + CAST( NULL AS SIGNED ) ) + - + 24 THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT - CASE + 66 WHEN - + ( + CAST ( NULL AS INTEGER ) ) + - + 24 THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4106
SELECT - 86 / + - 81
----
1

query I rowsort
SELECT + 91 * + 77
----
7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT DISTINCT CAST( - 9 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT CAST ( - 9 AS INTEGER ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT DISTINCT - 95 DIV 47
----
-2

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT - 95 / 47
----
-2

query I rowsort
SELECT ALL 50 - - 8 AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT - 55 DIV 41 DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 55 / 41 / - 45 AS col2
----
0

query I rowsort
SELECT DISTINCT ( 67 ) AS col2
----
67

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

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

query I rowsort
SELECT ALL 43 * 75 col0
----
3225

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

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + ( + - COUNT ( DISTINCT - 61 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT - 19 DIV + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT - 19 / + 62 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4117
SELECT CAST( NULL AS SIGNED ) col2, 84 * + 34 * + NULLIF ( + + 40, + 70 ) AS col0
----
NULL
114240

skipif mysql # not compatible
query II rowsort label-4117
SELECT CAST ( NULL AS INTEGER ) col2, 84 * + 34 * + NULLIF ( + + 40, + 70 ) AS col0
----
NULL
114240

query I rowsort
SELECT + ( ( + 34 ) ) * 87
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - COALESCE ( - + COUNT( * ), - MAX( DISTINCT 51 ) ) + + ( - 56 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4119
SELECT - COALESCE ( - + COUNT ( * ), - MAX ( DISTINCT 51 ) ) + + ( - 56 ) AS col2
----
-55

query I rowsort
SELECT ALL + 15 * + 58 col2
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL + NULLIF ( + COUNT( * ), - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + NULLIF ( + COUNT ( * ), - 47 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + - 67 + - 85 - + 40 + + - 90 * + 56 * - - CASE - COUNT( * ) WHEN 14 / + COUNT( * ) + + + COUNT( * ) THEN NULL ELSE + 41 END AS col2
----
-206832

skipif mysql # not compatible
query I rowsort label-4122
SELECT + - 67 + - 85 - + 40 + + - 90 * + 56 * - - CASE - COUNT ( * ) WHEN 14 / + COUNT ( * ) + + + COUNT ( * ) THEN NULL ELSE + 41 END AS col2
----
-206832

query I rowsort
SELECT + ( 5 ) AS col1
----
5

query II rowsort
SELECT DISTINCT + - 40 col2, + 96 AS col2
----
-40
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL + 58 * + 5 + - COUNT( * ) + - 86 * + 38
----
-2979

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + 58 * + 5 + - COUNT ( * ) + - 86 * + 38
----
-2979

query I rowsort
SELECT + 14 * 76 col2
----
1064

query I rowsort
SELECT ALL 67 + + 60 + 15
----
142

query II rowsort
SELECT DISTINCT - + 6, ( - 49 ) AS col0
----
-6
-49

query I rowsort
SELECT ALL 80 + + 95 AS col0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + CASE + 7 WHEN - - ( - COALESCE ( + + 90, - + 38 ) ) THEN - COUNT( * ) END * + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT + CASE + 7 WHEN - - ( - COALESCE ( + + 90, - + 38 ) ) THEN - COUNT ( * ) END * + + 75
----
NULL

query II rowsort
SELECT DISTINCT + 31 AS col0, + ( - + 71 ) AS col2
----
31
-71

query I rowsort
SELECT DISTINCT 29 + - + 79 col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4133
SELECT ALL - + 34 DIV + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - + 34 / + - COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT + 16 * - COUNT( * ) + 12 * + ( + CAST( - - 43 AS SIGNED ) ) AS col1
----
500

skipif mysql # not compatible
query I rowsort label-4134
SELECT + 16 * - COUNT ( * ) + 12 * + ( + CAST ( - - 43 AS INTEGER ) ) AS col1
----
500

query I rowsort
SELECT 67 * + 62 AS col1
----
4154

query I rowsort
SELECT - 0 * - - 62 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + 79, - 82 ) * - 13 AS col2
----
-1027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT ALL + 9 * 59 * + NULLIF ( - 93, - CAST( + + COUNT( * ) AS SIGNED ) - - + 28 )
----
-49383

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + 9 * 59 * + NULLIF ( - 93, - CAST ( + + COUNT ( * ) AS INTEGER ) - - + 28 )
----
-49383

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT 39 * + - CASE + 3 WHEN + - 24 * 40 + 96 + - 42 * 19 THEN + ( + COUNT( * ) ) END * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT 39 * + - CASE + 3 WHEN + - 24 * 40 + 96 + - 42 * 19 THEN + ( + COUNT ( * ) ) END * 27
----
NULL

query I rowsort
SELECT DISTINCT - 91 * - 97 AS col2
----
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL 20 * - MIN( ALL + - 22 ) * - 9 - - + 8 col0
----
-3952

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL 20 * - MIN ( ALL + - 22 ) * - 9 - - + 8 col0
----
-3952

query I rowsort
SELECT 64 + - 7 AS col0
----
57

query I rowsort
SELECT 77 * - NULLIF ( 30, + 73 + - + 43 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT 48 + + COUNT( * ) * - 88
----
-40

skipif mysql # not compatible
query I rowsort label-4144
SELECT 48 + + COUNT ( * ) * - 88
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT 83 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT 83 / 91 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT 57 + 38 + 95 * 34 + - 60 DIV + - 68 AS col0
----
3325

skipif mysql # not compatible
query I rowsort label-4146
SELECT 57 + 38 + 95 * 34 + - 60 / + - 68 AS col0
----
3325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT DISTINCT - 56 + CAST( + + 16 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT - 56 + CAST ( + + 16 AS INTEGER ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT COUNT( * ) * 75 DIV + - 40 + - 55 - - - COUNT( * ) + - 4 + + 59
----
-2

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( * ) * 75 / + - 40 + - 55 - - - COUNT ( * ) + - 4 + + 59
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT ALL - 47 DIV - ( + + COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - 47 / - ( + + COUNT ( * ) )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT ALL - 74 + - - CAST( NULL AS SIGNED ) * + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - 74 + - - CAST ( NULL AS INTEGER ) * + 96 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT ALL + 84 + - 30 - CAST( COUNT( * ) AS SIGNED ) + - 51
----
2

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + 84 + - 30 - CAST ( COUNT ( * ) AS INTEGER ) + - 51
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT DISTINCT - NULLIF ( - + MAX( ALL 89 ), 21 * 55 + SUM( ALL 50 ) ) * + 48
----
4272

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - NULLIF ( - + MAX ( ALL 89 ), 21 * 55 + SUM ( ALL 50 ) ) * + 48
----
4272

query I rowsort
SELECT DISTINCT + 2 + 29 + - + 91 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT - 91 * - 45 * - COUNT( * ) + 3 + + 87
----
-4005

skipif mysql # not compatible
query I rowsort label-4154
SELECT - 91 * - 45 * - COUNT ( * ) + 3 + + 87
----
-4005

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT - 82 + - - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - 82 + - - COUNT ( * )
----
-81

query I rowsort
SELECT DISTINCT + 8 + - 92 + 70 col0
----
-14

query I rowsort
SELECT ALL + 49 + - 22 AS col1
----
27

query I rowsort
SELECT ALL - - 55 col1
----
55

query I rowsort
SELECT DISTINCT - ( - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + 5 * - - COUNT( * ) * 29
----
145

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 5 * - - COUNT ( * ) * 29
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT NULLIF ( - + 43, 46 * + 27 * + - 49 + COUNT( * ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4161
SELECT NULLIF ( - + 43, 46 * + 27 * + - 49 + COUNT ( * ) ) AS col1
----
-43

query I rowsort
SELECT 82 * - 54 + - - 7 col1
----
-4421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4163
SELECT - 41 + + COUNT( * ) + 53 - + 92, + COALESCE ( + 79, + CAST( 48 AS SIGNED ) ) AS col2
----
-79
79

skipif mysql # not compatible
query II rowsort label-4163
SELECT - 41 + + COUNT ( * ) + 53 - + 92, + COALESCE ( + 79, + CAST ( 48 AS INTEGER ) ) AS col2
----
-79
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT CAST( NULL AS SIGNED ) + 8 + - COUNT( * ) * + - 90 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT CAST ( NULL AS INTEGER ) + 8 + - COUNT ( * ) * + - 90 + 55
----
NULL

query I rowsort
SELECT 74 * 44
----
3256

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT 77 + ( - - 53 ) DIV 89
----
77

skipif mysql # not compatible
query I rowsort label-4166
SELECT 77 + ( - - 53 ) / 89
----
77

query I rowsort
SELECT ALL 67 + 93
----
160

query I rowsort
SELECT 64 * - - 29
----
1856

query I rowsort
SELECT DISTINCT - 61 * - 64
----
3904

query I rowsort
SELECT ALL 31 + - 40 * ( - 96 ) AS col0
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT MIN( DISTINCT - NULLIF ( - 40, + - 42 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT MIN ( DISTINCT - NULLIF ( - 40, + - 42 ) ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - COUNT( * ) + - - 38
----
37

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - COUNT ( * ) + - - 38
----
37

query I rowsort
SELECT 89 + 39 AS col1
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT 2 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT 2 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT CASE + COUNT( + - 41 ) WHEN 24 / 82 THEN NULL WHEN - 16 THEN + NULLIF ( + 93, + + 69 / - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT CASE + COUNT ( + - 41 ) WHEN 24 / 82 THEN NULL WHEN - 16 THEN + NULLIF ( + 93, + + 69 / - CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4176
SELECT ALL 42 * + 40 + COUNT( + 45 ) + + + AVG ( CAST( NULL AS SIGNED ) ) + + 72 * 51 * 46 * 87, 62 AS col0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-4176
SELECT ALL 42 * + 40 + COUNT ( + 45 ) + + + AVG ( CAST ( NULL AS INTEGER ) ) + + 72 * 51 * 46 * 87, 62 AS col0
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MAX( 36 ) + + 80 * COUNT( * ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-4177
SELECT MAX ( 36 ) + + 80 * COUNT ( * ) AS col1
----
116

query II rowsort
SELECT + + 28 AS col1, + 24 * + 95
----
28
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4179
SELECT + + 92 * - 69 - + + 92 * - 13 + 12 + - COUNT( * ) + ( - 9 ) + + MAX( 96 ) DIV COUNT( * ) DIV + ( + 9 )
----
-5140

skipif mysql # not compatible
query I rowsort label-4179
SELECT + + 92 * - 69 - + + 92 * - 13 + 12 + - COUNT ( * ) + ( - 9 ) + + MAX ( 96 ) / COUNT ( * ) / + ( + 9 )
----
-5140

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - + 59 - COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4180
SELECT - + 59 - COUNT ( * ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT - 78 * 26 * + - 84 * 33 DIV + COUNT( * ) + + + 86 col2
----
5621702

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - 78 * 26 * + - 84 * 33 / + COUNT ( * ) + + + 86 col2
----
5621702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4182
SELECT DISTINCT + - 92 DIV + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT + - 92 / + + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - - 40 * + + COUNT( * ) * + 77 * + + 24 + - ( + - 48 ) + COALESCE ( 23, - 3 - - - 6 ) AS col1
----
73991

skipif mysql # not compatible
query I rowsort label-4183
SELECT - - 40 * + + COUNT ( * ) * + 77 * + + 24 + - ( + - 48 ) + COALESCE ( 23, - 3 - - - 6 ) AS col1
----
73991

query I rowsort
SELECT ALL + + 42 * - - ( + 63 ) * - 62 - - + 80 * - 81 * 27 AS col1
----
-339012

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + 42 * 3 + ( 94 ) + - 36 - 16 * + CASE - - 66 WHEN MAX( 65 ) THEN NULL WHEN + + 78 THEN + 55 * COALESCE ( - SUM( 15 ), 68 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + 42 * 3 + ( 94 ) + - 36 - 16 * + CASE - - 66 WHEN MAX ( 65 ) THEN NULL WHEN + + 78 THEN + 55 * COALESCE ( - SUM ( 15 ), 68 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( * ) * 3 + - 13 - - 17 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) * 3 + - 13 - - 17 AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT - SUM( ALL + 92 ) * COALESCE ( - 62, - 63 ) + + 67 AS col2, 0
----
5771
0

skipif mysql # not compatible
query II rowsort label-4187
SELECT - SUM ( ALL + 92 ) * COALESCE ( - 62, - 63 ) + + 67 AS col2, 0
----
5771
0

query I rowsort
SELECT - CASE + - 33 WHEN - 31 THEN NULL ELSE - 93 END * - ( - 8 ) + - 67 AS col2
----
677

query I rowsort
SELECT ALL + + 50 * + 84 AS col2
----
4200

query I rowsort
SELECT ( + + 51 ) AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT DISTINCT - - ( + 2 ) * - - 87 + + CAST( - 14 AS SIGNED )
----
160

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT - - ( + 2 ) * - - 87 + + CAST ( - 14 AS INTEGER )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - - 38 * - COUNT( * ) * - 14 * + ( + 71 ) + + - 68 + + + 94 * - 16 col1
----
36200

skipif mysql # not compatible
query I rowsort label-4192
SELECT - - 38 * - COUNT ( * ) * - 14 * + ( + 71 ) + + - 68 + + + 94 * - 16 col1
----
36200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL - 33 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - 33 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT COUNT( ALL + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-4194
SELECT COUNT ( ALL + 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT - COALESCE ( + + 72, - + 81 * - COUNT( * ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4195
SELECT - COALESCE ( + + 72, - + 81 * - COUNT ( * ) ) AS col1
----
-72

query I rowsort
SELECT ALL 84 * 25
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT 78 + - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT 78 + - - COUNT ( * )
----
79

query II rowsort
SELECT ALL 76 AS col0, + 63 * + + 72 AS col0
----
76
4536

query I rowsort
SELECT ALL 13 + + 87 col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + 19 - - + 93 + + CASE - 57 WHEN + 39 THEN - - 50 * + 8 + - 39 WHEN - 82 THEN NULL END * - MIN( - 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT + 19 - - + 93 + + CASE - 57 WHEN + 39 THEN - - 50 * + 8 + - 39 WHEN - 82 THEN NULL END * - MIN ( - 33 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT + 95 DIV - 22
----
-4

skipif mysql # not compatible
query I rowsort label-4201
SELECT + 95 / - 22
----
-4

query I rowsort
SELECT + ( - 16 ) * - 68
----
1088

query II rowsort
SELECT 91 AS col1, 30 - - 18
----
91
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4204
SELECT ALL COUNT( * ) DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL COUNT ( * ) / + 92 AS col1
----
0

query I rowsort
SELECT ALL 77 + + ( 4 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + MAX( DISTINCT + + 11 ) + + 6
----
17

skipif mysql # not compatible
query I rowsort label-4206
SELECT + MAX ( DISTINCT + + 11 ) + + 6
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4207
SELECT - COALESCE ( + + COALESCE ( - 60, + - COUNT( * ), + COUNT( * ) ), - COUNT( * ) ), SUM( DISTINCT + 21 ) DIV + 19 * + 16 DIV + 16 + - 16 AS col2
----
60
-15

skipif mysql # not compatible
query II rowsort label-4207
SELECT - COALESCE ( + + COALESCE ( - 60, + - COUNT ( * ), + COUNT ( * ) ), - COUNT ( * ) ), SUM ( DISTINCT + 21 ) / + 19 * + 16 / + 16 + - 16 AS col2
----
60
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT - - MIN( + 67 ) AS col2, - 75
----
67
-75

skipif mysql # not compatible
query II rowsort label-4208
SELECT - - MIN ( + 67 ) AS col2, - 75
----
67
-75

query II rowsort
SELECT + + 19 AS col0, 30 + 34 AS col0
----
19
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT ALL + - 90 * - COUNT( * ) AS col2, 86 AS col2
----
90
86

skipif mysql # not compatible
query II rowsort label-4210
SELECT ALL + - 90 * - COUNT ( * ) AS col2, 86 AS col2
----
90
86

query I rowsort
SELECT ALL 90 * - 97
----
-8730

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4212
SELECT ( + 83 ) * + - 51 - CAST( NULL AS DECIMAL ), + 85 AS col2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4212
SELECT ( + 83 ) * + - 51 - CAST ( NULL AS REAL ), + 85 AS col2
----
NULL
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT + CASE + + 59 WHEN - 0 THEN - COUNT( * ) WHEN + + 73 THEN NULL WHEN + 6 + + 88 THEN NULL ELSE + - 16 + 81 END / + + 6 * CASE + - 40 WHEN 39 * - 28 / - 70 - + 10 * AVG ( - + 26 ) / - 3 - - SUM( - + ( - 5 ) ) THEN ( 10 ) + + - 89 + - + 8 + - 36 / NULLIF ( + 99 / + CAST( NULL AS SIGNED ), CAST( 31 AS SIGNED ) / - 15 ) ELSE NULL END / + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT + CASE + + 59 WHEN - 0 THEN - COUNT ( * ) WHEN + + 73 THEN NULL WHEN + 6 + + 88 THEN NULL ELSE + - 16 + 81 END / + + 6 * CASE + - 40 WHEN 39 * - 28 / - 70 - + 10 * AVG ( - + 26 ) / - 3 - - SUM ( - + ( - 5 ) ) THEN ( 10 ) + + - 89 + - + 8 + - 36 / NULLIF ( + 99 / + CAST ( NULL AS INTEGER ), CAST ( 31 AS INTEGER ) / - 15 ) ELSE NULL END / + 91 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT - + 28 * + 80 DIV + 5
----
-448

skipif mysql # not compatible
query I rowsort label-4214
SELECT - + 28 * + 80 / + 5
----
-448

query II rowsort
SELECT DISTINCT + 96 col2, 14 AS col1
----
96
14

query I rowsort
SELECT - + 68 * 0
----
0

query I rowsort
SELECT ALL + 56 * - 20 - + 69 + - - 36 * 41 * 22
----
31283

query I rowsort
SELECT - 32 - - 7 AS col2
----
-25

query I rowsort
SELECT - 37 * + 34 * NULLIF ( 98, + 71 )
----
-123284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4220
SELECT ALL ( + 32 ) * 89 - + 90 DIV CAST( + COUNT( * ) AS SIGNED ) + + 43
----
2801

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL ( + 32 ) * 89 - + 90 / CAST ( + COUNT ( * ) AS INTEGER ) + + 43
----
2801

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + COUNT( * ) * 84 * - 10 - + 71 * + COUNT( * ) col1
----
-911

skipif mysql # not compatible
query I rowsort label-4221
SELECT + COUNT ( * ) * 84 * - 10 - + 71 * + COUNT ( * ) col1
----
-911

query I rowsort
SELECT ALL - + NULLIF ( ( + - 86 ), - 87 ) * + 87 * + 69
----
516258

query I rowsort
SELECT - ( - - 20 ) * + 44 + - 62 AS col0
----
-942

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - COUNT( * ) + + 26 col1
----
25

skipif mysql # not compatible
query I rowsort label-4224
SELECT - COUNT ( * ) + + 26 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + SUM( - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4225
SELECT + SUM ( - 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - 97 + - 52 * COUNT( * ) col2
----
-149

skipif mysql # not compatible
query I rowsort label-4226
SELECT - 97 + - 52 * COUNT ( * ) col2
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT COALESCE ( - SUM( DISTINCT - 41 ), - - 19 )
----
41

skipif mysql # not compatible
query I rowsort label-4227
SELECT COALESCE ( - SUM ( DISTINCT - 41 ), - - 19 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT - COALESCE ( + 63, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4228
SELECT - COALESCE ( + 63, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL CAST( - NULLIF ( + 30, - 69 ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL CAST ( - NULLIF ( + 30, - 69 ) AS INTEGER )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT - COUNT( * ) + + + CAST( - 30 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4230
SELECT - COUNT ( * ) + + + CAST ( - 30 AS INTEGER ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT - 26 + + - ( + + 47 ) + + 63 - + - 54 * - 0 * + 90 * 2 * + + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4231
SELECT - 26 + + - ( + + 47 ) + + 63 - + - 54 * - 0 * + 90 * 2 * + + COUNT ( * ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL COUNT( * ) * + - 74 + - 4 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL COUNT ( * ) * + - 74 + - 4 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT - 43 + - - 41 + + CAST( NULL AS SIGNED ) + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT - 43 + - - 41 + + CAST ( NULL AS INTEGER ) + - 48
----
NULL

query I rowsort
SELECT ALL ( + ( 94 ) ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL COUNT( * ) + 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL COUNT ( * ) + 20 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT - CASE - + COUNT( * ) WHEN - 59 * + + COUNT( * ) + + CAST( + + 33 AS SIGNED ) THEN - + ( + - COALESCE ( + 20, 55, - 10 + 53 ) ) * 16 - - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT - CASE - + COUNT ( * ) WHEN - 59 * + + COUNT ( * ) + + CAST ( + + 33 AS INTEGER ) THEN - + ( + - COALESCE ( + 20, 55, - 10 + 53 ) ) * 16 - - 50 END
----
NULL

query I rowsort
SELECT + 72 + - 96 col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4238
SELECT - ( CAST( 72 AS DECIMAL ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT - ( CAST ( 72 AS REAL ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ( 97 ) * - NULLIF ( - 50, - 52 + MAX( DISTINCT 38 ) ) AS col2
----
4850

skipif mysql # not compatible
query I rowsort label-4239
SELECT ( 97 ) * - NULLIF ( - 50, - 52 + MAX ( DISTINCT 38 ) ) AS col2
----
4850

query I rowsort
SELECT DISTINCT ( + 29 ) * + + 80
----
2320

query I rowsort
SELECT ALL + 26 - 2 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4242
SELECT - CAST( 36 AS SIGNED ) * NULLIF ( + 44, - 51 + + 68 ) DIV 12 + + 48 * + 86 * - 28 + + COALESCE ( + + COALESCE ( ( 43 ), - 26 * + CASE - COUNT( * ) WHEN + SUM( + 23 ) THEN + 82 ELSE NULL END - + - 32 ), + CAST( NULL AS SIGNED ) * - + ( - 57 ) * - 27 + + 0 ) + 69 - + 98 col1
----
-115702

skipif mysql # not compatible
query I rowsort label-4242
SELECT - CAST ( 36 AS INTEGER ) * NULLIF ( + 44, - 51 + + 68 ) / 12 + + 48 * + 86 * - 28 + + COALESCE ( + + COALESCE ( ( 43 ), - 26 * + CASE - COUNT ( * ) WHEN + SUM ( + 23 ) THEN + 82 ELSE NULL END - + - 32 ), + CAST ( NULL AS INTEGER ) * - + ( - 57 ) * - 27 + + 0 ) + 69 - + 98 col1
----
-115702

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT + MAX( - CASE - - 34 WHEN + + 32 THEN + 97 ELSE 61 END ) - 5
----
-66

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + MAX ( - CASE - - 34 WHEN + + 32 THEN + 97 ELSE 61 END ) - 5
----
-66

query I rowsort
SELECT + 44 * + 1 * 61
----
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT 11 + + + 35 + CASE COUNT( * ) WHEN 10 THEN - 83 * + 24 + 76 * + - 34 + + 92 WHEN - 54 THEN NULL END + - ( + + 55 ) + - 53 * 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT 11 + + + 35 + CASE COUNT ( * ) WHEN 10 THEN - 83 * + 24 + 76 * + - 34 + + 92 WHEN - 54 THEN NULL END + - ( + + 55 ) + - 53 * 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT NULLIF ( + + 97, - + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-4246
SELECT NULLIF ( + + 97, - + COUNT ( * ) )
----
97

query I rowsort
SELECT + + ( + 8 )
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4248
SELECT + 41 / + 52 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT + 41 / + 52 + + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT CAST( NULL AS SIGNED ) * + 28 + 21 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT CAST ( NULL AS INTEGER ) * + 28 + 21 + + 14
----
NULL

query I rowsort
SELECT - 50 - - 33 + - 39 AS col2
----
-56

query II rowsort
SELECT + - ( + 20 ) AS col1, - 35 AS col1
----
-20
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT - 75 DIV - + 12 + - - COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4252
SELECT - 75 / - + 12 + - - COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT DISTINCT - ( + 69 ), 1 + + 46 * - COUNT( * ) AS col0
----
-69
-45

skipif mysql # not compatible
query II rowsort label-4253
SELECT DISTINCT - ( + 69 ), 1 + + 46 * - COUNT ( * ) AS col0
----
-69
-45

query I rowsort
SELECT 59 + + 8
----
67

query II rowsort
SELECT + ( 59 ), - 64 AS col0
----
59
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - 99 * - NULLIF ( ( - COUNT( * ) ), - + 16 ) + 60
----
-39

skipif mysql # not compatible
query I rowsort label-4256
SELECT - 99 * - NULLIF ( ( - COUNT ( * ) ), - + 16 ) + 60
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT ALL + 25 + - + 99 DIV + - 2 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + 25 + - + 99 / + - 2 * + COUNT ( * )
----
74

query II rowsort
SELECT + 57 * - + 69 AS col2, 64 AS col1
----
-3933
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT CAST( NULL AS SIGNED ) * + 92 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT CAST ( NULL AS INTEGER ) * + 92 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4260
SELECT + 19 * + COALESCE ( - - COUNT( * ), - - ( - - AVG ( + 68 ) ) DIV - 17 ) * 62 + - - 97 + - COUNT( * ) + + 0 * - ( - 33 ), - 51 * - - 43 AS col2
----
1274
-2193

skipif mysql # not compatible
query II rowsort label-4260
SELECT + 19 * + COALESCE ( - - COUNT ( * ), - - ( - - AVG ( + 68 ) ) / - 17 ) * 62 + - - 97 + - COUNT ( * ) + + 0 * - ( - 33 ), - 51 * - - 43 AS col2
----
1274
-2193

query I rowsort
SELECT DISTINCT - NULLIF ( + 7, - + 49 ) AS col2
----
-7

query II rowsort
SELECT 86, 62 AS col2
----
86
62

query I rowsort
SELECT 93 + + 25
----
118

query I rowsort
SELECT DISTINCT + 74 + 92 * + 47 / - 93 + CASE - - 43 WHEN - + 36 THEN + 53 END
----
NULL

query I rowsort
SELECT DISTINCT 14 + + 38 AS col0
----
52

query I rowsort
SELECT ALL + 56 + + 37
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT - NULLIF ( - 5, - COUNT( * ) * COUNT( ALL + 86 ) ) * + + 38
----
190

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT - NULLIF ( - 5, - COUNT ( * ) * COUNT ( ALL + 86 ) ) * + + 38
----
190

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT 92 DIV 76 * 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4268
SELECT 92 / 76 * 74 AS col1
----
74

query I rowsort
SELECT 63 * - 41
----
-2583

query I rowsort
SELECT DISTINCT - 11 * - 61 AS col0
----
671

query II rowsort
SELECT - 72 AS col2, - 74 col2
----
-72
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL - CASE 51 WHEN - COUNT( DISTINCT 2 ) - + 59 THEN NULL WHEN + 44 + - 83 THEN + 58 WHEN - + 35 * + 58 + - 69 THEN NULL ELSE - COUNT( ALL + ( 27 ) ) END * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL - CASE 51 WHEN - COUNT ( DISTINCT 2 ) - + 59 THEN NULL WHEN + 44 + - 83 THEN + 58 WHEN - + 35 * + 58 + - 69 THEN NULL ELSE - COUNT ( ALL + ( 27 ) ) END * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT COUNT( * ) * + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4273
SELECT COUNT ( * ) * + - 89 AS col2
----
-89

query II rowsort
SELECT 16 col2, 1
----
16
1

query I rowsort
SELECT DISTINCT + 39 * - + 22 * - CASE - - 4 WHEN + - 44 THEN + - 49 ELSE 12 END AS col2
----
10296

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + 76 * COUNT( * ) col1
----
76

skipif mysql # not compatible
query I rowsort label-4276
SELECT + 76 * COUNT ( * ) col1
----
76

query I rowsort
SELECT + 89 - 64 AS col0
----
25

query I rowsort
SELECT - - ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4279
SELECT + 42 * - 19 - - 77 * - - CASE - - ( - + CAST( - 81 AS DECIMAL ) ) WHEN 38 / COUNT( * ) * 7 THEN 75 ELSE + + CAST( NULL AS SIGNED ) / - 78 END + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT + 42 * - 19 - - 77 * - - CASE - - ( - + CAST ( - 81 AS REAL ) ) WHEN 38 / COUNT ( * ) * 7 THEN 75 ELSE + + CAST ( NULL AS INTEGER ) / - 78 END + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT - + 59 AS col0, 58 * + 90 + - COUNT( * ) AS col0
----
-59
5219

skipif mysql # not compatible
query II rowsort label-4280
SELECT - + 59 AS col0, 58 * + 90 + - COUNT ( * ) AS col0
----
-59
5219

query I rowsort
SELECT + 34 + 99
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT 5 * - - COUNT( * ) + + 3 col1
----
8

skipif mysql # not compatible
query I rowsort label-4282
SELECT 5 * - - COUNT ( * ) + + 3 col1
----
8

query I rowsort
SELECT ALL - 78 * 55 * + 33 + - 93 AS col2
----
-141663

query I rowsort
SELECT DISTINCT - + COALESCE ( + 63, - 90 * + - 1 + + 3 + ( 62 ) + 73 ) * + - 72 AS col0
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT MAX( ALL - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-4285
SELECT MAX ( ALL - - 59 )
----
59

query I rowsort
SELECT + ( + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL - - MAX( DISTINCT - 92 ) * + 82
----
-7544

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL - - MAX ( DISTINCT - 92 ) * + 82
----
-7544

query I rowsort
SELECT DISTINCT + + 89 * - + 69 * - ( - 50 ) + 14
----
-307036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT 43 + + CAST( + - 69 AS SIGNED ) + 68
----
42

skipif mysql # not compatible
query I rowsort label-4289
SELECT 43 + + CAST ( + - 69 AS INTEGER ) + 68
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT + + CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-4290
SELECT + + CAST ( 8 AS INTEGER )
----
8

query I rowsort
SELECT 74 * + + 95 + + 48 AS col1
----
7078

query I rowsort
SELECT - 50 * - - 47 AS col2
----
-2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4293
SELECT MIN( DISTINCT + COALESCE ( - 17, - 26 ) ) AS col1, + 72 DIV - + 3
----
-17
-24

skipif mysql # not compatible
query II rowsort label-4293
SELECT MIN ( DISTINCT + COALESCE ( - 17, - 26 ) ) AS col1, + 72 / - + 3
----
-17
-24

query I rowsort
SELECT 83 - - - 20 * - 58 * - 19 + + 36 AS col2
----
-21921

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + COUNT( - + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-4295
SELECT + COUNT ( - + 40 )
----
1

query I rowsort
SELECT DISTINCT 67 * 41
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT SUM( ALL + 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4297
SELECT SUM ( ALL + 22 ) AS col0
----
22

query I rowsort
SELECT ALL 2 - 46 AS col2
----
-44

query I rowsort
SELECT 8 * + ( 9 ) AS col1
----
72

query II rowsort
SELECT + 32 * - - 87 * - 48 * + 0 + - 32 AS col0, 32 * 99 + + 46
----
-32
3214

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT CASE - - 77 WHEN 60 * - - 85 / - - 16 THEN NULL WHEN 36 * - 73 + + - 3 THEN - 16 * 2 ELSE NULL END * COUNT( * ) - ( 72 ) + + - 76 + - COALESCE ( 56, + - 18 ) * + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT CASE - - 77 WHEN 60 * - - 85 / - - 16 THEN NULL WHEN 36 * - 73 + + - 3 THEN - 16 * 2 ELSE NULL END * COUNT ( * ) - ( 72 ) + + - 76 + - COALESCE ( 56, + - 18 ) * + 54 AS col0
----
NULL

query I rowsort
SELECT + 78 * + + 37 col0
----
2886

query I rowsort
SELECT + 36 + 56 * + + 32
----
1828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT DISTINCT 53 / - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT 53 / - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - ( - 63 ) * - - 83 col0
----
5229

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4306
SELECT - + 5 + + CAST( 8 AS SIGNED ) * + + 56 AS col1, 59 * - 40 AS col0
----
443
-2360

skipif mysql # not compatible
query II rowsort label-4306
SELECT - + 5 + + CAST ( 8 AS INTEGER ) * + + 56 AS col1, 59 * - 40 AS col0
----
443
-2360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT - MIN( 13 ) * 98 DIV - - 12
----
-106

skipif mysql # not compatible
query I rowsort label-4307
SELECT - MIN ( 13 ) * 98 / - - 12
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL CAST( NULL AS SIGNED ) * - - NULLIF ( + 60, + - 6 ) / CAST( + - COUNT( * ) AS SIGNED ) * + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL CAST ( NULL AS INTEGER ) * - - NULLIF ( + 60, + - 6 ) / CAST ( + - COUNT ( * ) AS INTEGER ) * + - 38 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4309
SELECT - - NULLIF ( 51, - 82 * - CAST( NULL AS SIGNED ) * - 39 ) DIV ( + + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-4309
SELECT - - NULLIF ( 51, - 82 * - CAST ( NULL AS INTEGER ) * - 39 ) / ( + + 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT + 19 + + 2 + - 3 * - CASE COUNT( DISTINCT 89 ) WHEN 91 THEN NULL WHEN 71 + 83 THEN - - COUNT( * ) * 16 ELSE + + 71 END
----
234

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + 19 + + 2 + - 3 * - CASE COUNT ( DISTINCT 89 ) WHEN 91 THEN NULL WHEN 71 + 83 THEN - - COUNT ( * ) * 16 ELSE + + 71 END
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4311
SELECT ALL - + 12 + MAX( ALL - CAST( NULL AS SIGNED ) ) * + 50, 70 * 49 + - MIN( - 1 ) AS col2
----
NULL
3431

skipif mysql # not compatible
query II rowsort label-4311
SELECT ALL - + 12 + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + 50, 70 * 49 + - MIN ( - 1 ) AS col2
----
NULL
3431

query I rowsort
SELECT - COALESCE ( + 39, - 42 )
----
-39

query I rowsort
SELECT ALL + 69 + - 30 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT DISTINCT + - COUNT( 56 ) + 18
----
17

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT + - COUNT ( 56 ) + 18
----
17

query I rowsort
SELECT ALL 49 * + + 65 * + + 75 * + 96 + - 91 + - 48 + - 26 + - + 28 AS col0
----
22931807

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT NULLIF ( - - COUNT( * ), + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-4316
SELECT NULLIF ( - - COUNT ( * ), + 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT - + NULLIF ( 39, - ( + NULLIF ( + COALESCE ( 43, + MIN( - 46 ), + + 58 * + 77, + - COALESCE ( + 41, - 55 ), + + NULLIF ( - 57, + - 24 / - 30 ) ), 20 ) ) * - 54 ) + - 69 - - - ( NULLIF ( - 20, + CASE + ( - ( - + 56 ) ) WHEN - MIN( DISTINCT + 15 ) THEN 11 * + 69 ELSE NULL END ) ) * + 74
----
1372

skipif mysql # not compatible
query I rowsort label-4317
SELECT - + NULLIF ( 39, - ( + NULLIF ( + COALESCE ( 43, + MIN ( - 46 ), + + 58 * + 77, + - COALESCE ( + 41, - 55 ), + + NULLIF ( - 57, + - 24 / - 30 ) ), 20 ) ) * - 54 ) + - 69 - - - ( NULLIF ( - 20, + CASE + ( - ( - + 56 ) ) WHEN - MIN ( DISTINCT + 15 ) THEN 11 * + 69 ELSE NULL END ) ) * + 74
----
1372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4318
SELECT + COUNT( ALL - NULLIF ( + - 6, - 67 ) ) * - 65 * 0 - - CAST( + - 2 AS SIGNED ) + + MAX( DISTINCT NULLIF ( + - 18, 68 ) ) + 90 * COUNT( + + 89 ) * 51 DIV + 31 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-4318
SELECT + COUNT ( ALL - NULLIF ( + - 6, - 67 ) ) * - 65 * 0 - - CAST ( + - 2 AS INTEGER ) + + MAX ( DISTINCT NULLIF ( + - 18, 68 ) ) + 90 * COUNT ( + + 89 ) * 51 / + 31 AS col1
----
128

query I rowsort
SELECT ALL - 34 * + 63 + - - 55 AS col0
----
-2087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT 28 * CAST( NULL AS SIGNED ) + + 73 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT 28 * CAST ( NULL AS INTEGER ) + + 73 + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL COUNT( ALL 44 ) * 2 * - NULLIF ( - 14, 56 * COUNT( * ) + 68 + - - COUNT( * ) + + 66 + - + COUNT( * ) * - ( - COUNT( ALL - + 6 ) ) * + 55 / - COUNT( DISTINCT + - 27 ) ) - - 38 + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL COUNT ( ALL 44 ) * 2 * - NULLIF ( - 14, 56 * COUNT ( * ) + 68 + - - COUNT ( * ) + + 66 + - + COUNT ( * ) * - ( - COUNT ( ALL - + 6 ) ) * + 55 / - COUNT ( DISTINCT + - 27 ) ) - - 38 + - COUNT ( * ) AS col2
----
65

query I rowsort
SELECT ALL - 29 * - 76
----
2204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4323
SELECT NULLIF ( - COUNT( * ), + 51 ) AS col0, + COALESCE ( 71, - COUNT( * ) ) * + CAST( + 68 AS SIGNED )
----
-1
4828

skipif mysql # not compatible
query II rowsort label-4323
SELECT NULLIF ( - COUNT ( * ), + 51 ) AS col0, + COALESCE ( 71, - COUNT ( * ) ) * + CAST ( + 68 AS INTEGER )
----
-1
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - SUM( - + 59 ) * 94
----
5546

skipif mysql # not compatible
query I rowsort label-4324
SELECT - SUM ( - + 59 ) * 94
----
5546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4325
SELECT - COUNT( * ) * - 52 + - 12 DIV 48 * + 23, 26 AS col0
----
52
26

skipif mysql # not compatible
query II rowsort label-4325
SELECT - COUNT ( * ) * - 52 + - 12 / 48 * + 23, 26 AS col0
----
52
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT - COALESCE ( + 57, - + MIN( DISTINCT 3 ) ) DIV - 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4326
SELECT - COALESCE ( + 57, - + MIN ( DISTINCT 3 ) ) / - 30 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT + 14 * MIN( DISTINCT 48 ) * - + 4
----
-2688

skipif mysql # not compatible
query I rowsort label-4327
SELECT + 14 * MIN ( DISTINCT 48 ) * - + 4
----
-2688

query II rowsort
SELECT DISTINCT + 44, - 19 AS col1
----
44
-19

query I rowsort
SELECT NULLIF ( + + 7, - - 61 ) AS col0
----
7

query I rowsort
SELECT + 49 * + 44 AS col0
----
2156

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4331
SELECT ALL SUM( DISTINCT CAST( NULL AS DECIMAL ) ) / 21 - + ( 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL SUM ( DISTINCT CAST ( NULL AS REAL ) ) / 21 - + ( 54 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + COUNT( ALL + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-4332
SELECT + COUNT ( ALL + 18 )
----
1

query I rowsort
SELECT + 54 * - 85
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL COUNT( - - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL COUNT ( - - 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL COUNT( * ) * - + 53
----
-53

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL COUNT ( * ) * - + 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT MAX( - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4336
SELECT MAX ( - - 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL 12 * - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL 12 * - - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4338
SELECT - COUNT( * ) AS col1, + 7 + - + 26 AS col2
----
-1
-19

skipif mysql # not compatible
query II rowsort label-4338
SELECT - COUNT ( * ) AS col1, + 7 + - + 26 AS col2
----
-1
-19

query I rowsort
SELECT + 24 * - 95 AS col2
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + - COUNT( * ) * + MAX( - + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4340
SELECT + - COUNT ( * ) * + MAX ( - + 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + - 75 - + + COUNT( * ) + - 98 - - 50 * - 81 * 38
----
-154074

skipif mysql # not compatible
query I rowsort label-4341
SELECT + - 75 - + + COUNT ( * ) + - 98 - - 50 * - 81 * 38
----
-154074

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT COUNT( * ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT COUNT ( * ) * 59
----
59

query I rowsort
SELECT ALL - 20 + + 36
----
16

query I rowsort
SELECT + 74 - - 75 col1
----
149

query II rowsort
SELECT - 98 col2, - 57 col2
----
-98
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT - 87 + - CAST( NULL AS SIGNED ) - 80 * + - 80 * + 13 * + 84 * - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - 87 + - CAST ( NULL AS INTEGER ) - 80 * + - 80 * + 13 * + 84 * - 23 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT ALL 57 DIV - 7
----
-8

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL 57 / - 7
----
-8

query I rowsort
SELECT - 1 - - + 63
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - - 68 * - 40 + - + COUNT( * )
----
-2721

skipif mysql # not compatible
query I rowsort label-4349
SELECT - - 68 * - 40 + - + COUNT ( * )
----
-2721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4350
SELECT DISTINCT - + 34 * - COUNT( * ) DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - + 34 * - COUNT ( * ) / 42 AS col2
----
0

query I rowsort
SELECT + + 99 + + + 0 + - 62
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4352
SELECT ALL + 93 - + - 13 - + - 11 - - 3 * + + COUNT( * ) DIV + 33 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + 93 - + - 13 - + - 11 - - 3 * + + COUNT ( * ) / + 33 AS col0
----
117

query I rowsort
SELECT DISTINCT 41 * - 18 col0
----
-738

query II rowsort
SELECT ALL + 80, - 87 + - 60 col2
----
80
-147

query I rowsort
SELECT DISTINCT 91 * 86 col1
----
7826

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - COUNT( * ) * - 9
----
9

skipif mysql # not compatible
query I rowsort label-4356
SELECT - COUNT ( * ) * - 9
----
9

query II rowsort
SELECT + 46 AS col1, 96
----
46
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT 25 * - 57 - - 30 * - + 81 AS col0, - COUNT( * ) AS col0
----
-3855
-1

skipif mysql # not compatible
query II rowsort label-4358
SELECT 25 * - 57 - - 30 * - + 81 AS col0, - COUNT ( * ) AS col0
----
-3855
-1

query I rowsort
SELECT 76 * + - 51 AS col2
----
-3876

query I rowsort
SELECT 12 * - - 19 AS col0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL - COALESCE ( - COUNT( * ), COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - COALESCE ( - COUNT ( * ), COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4362
SELECT + CASE - ( + 43 ) WHEN + ( + 17 ) THEN NULL WHEN + - 26 + 54 * - - 39 THEN + 59 ELSE NULL END * - 76 - - + CAST( NULL AS DECIMAL ) + - 24 + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT + CASE - ( + 43 ) WHEN + ( + 17 ) THEN NULL WHEN + - 26 + 54 * - - 39 THEN + 59 ELSE NULL END * - 76 - - + CAST ( NULL AS REAL ) + - 24 + 53 AS col2
----
NULL

query II rowsort
SELECT 45 AS col0, 96 AS col2
----
45
96

query I rowsort
SELECT 92 + + - 24 * + ( - + ( 97 ) ) AS col2
----
2420

query II rowsort
SELECT DISTINCT - 34 AS col2, + 26
----
-34
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL + 98 DIV 28
----
3

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + 98 / 28
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4367
SELECT ALL CAST( NULL AS SIGNED ) + - + 87 + 35 + + - 42 AS col0, + 93 * + + 29 AS col2
----
NULL
2697

skipif mysql # not compatible
query II rowsort label-4367
SELECT ALL CAST ( NULL AS INTEGER ) + - + 87 + 35 + + - 42 AS col0, + 93 * + + 29 AS col2
----
NULL
2697

query I rowsort
SELECT - 48 * ( - 1 ) + + 26
----
74

query I rowsort
SELECT ALL + 62 * - + 21 AS col2
----
-1302

query I rowsort
SELECT 37 + + ( 54 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - ( COUNT( * ) ) * - + 57 + ( + 72 )
----
129

skipif mysql # not compatible
query I rowsort label-4371
SELECT - ( COUNT ( * ) ) * - + 57 + ( + 72 )
----
129

query II rowsort
SELECT 69 AS col1, - 70 col1
----
69
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT CAST( COUNT( * ) AS SIGNED ) + + - 48 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4373
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + - 48 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT DISTINCT COUNT( * ), + 64 - + 64 + - MIN( 59 ) * - 11 * + - 98 * + + 83 * 92 AS col2
----
1
-485664872

skipif mysql # not compatible
query II rowsort label-4374
SELECT DISTINCT COUNT ( * ), + 64 - + 64 + - MIN ( 59 ) * - 11 * + - 98 * + + 83 * 92 AS col2
----
1
-485664872

query I rowsort
SELECT + 36 + + - 7 AS col0
----
29

query I rowsort
SELECT ALL + 24 + + 64 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - COUNT( * ) * - 55
----
55

skipif mysql # not compatible
query I rowsort label-4377
SELECT - COUNT ( * ) * - 55
----
55

query I rowsort
SELECT DISTINCT - 91 + + 6
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT COUNT( * ) + - ( + - 31 ) * 6 * - COUNT( * ) + 82 + - 0
----
-103

skipif mysql # not compatible
query I rowsort label-4379
SELECT COUNT ( * ) + - ( + - 31 ) * 6 * - COUNT ( * ) + 82 + - 0
----
-103

query II rowsort
SELECT 72 AS col1, - ( CASE 9 WHEN 53 THEN + 73 END ) + + 59
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL CASE - - 89 WHEN + 26 + - 29 THEN COUNT( * ) ELSE + COUNT( * ) END * COALESCE ( - ( - COUNT( * ) ), - + COALESCE ( 57, - COUNT( * ) ) * + 42 * - 97 ) - - - 70 col2
----
-69

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL CASE - - 89 WHEN + 26 + - 29 THEN COUNT ( * ) ELSE + COUNT ( * ) END * COALESCE ( - ( - COUNT ( * ) ), - + COALESCE ( 57, - COUNT ( * ) ) * + 42 * - 97 ) - - - 70 col2
----
-69

query I rowsort
SELECT - 34 + + 7 + 6 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4383
SELECT - - CAST( NULL AS SIGNED ) AS col2, + 59 col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-4383
SELECT - - CAST ( NULL AS INTEGER ) AS col2, + 59 col1
----
NULL
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT 59 + + + CAST( + - NULLIF ( + COALESCE ( + 66, + 18 ), - - 31 ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT 59 + + + CAST ( + - NULLIF ( + COALESCE ( + 66, + 18 ), - - 31 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( - - 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT ALL 66 AS col2, COUNT( * ) + - 39
----
66
-38

skipif mysql # not compatible
query II rowsort label-4386
SELECT ALL 66 AS col2, COUNT ( * ) + - 39
----
66
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL NULLIF ( + + 37, 67 * + 47 * - COUNT( * ) * 24 - - 83 / + 54 ) * + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL NULLIF ( + + 37, 67 * + 47 * - COUNT ( * ) * 24 - - 83 / + 54 ) * + COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT + CASE + + 78 WHEN - 36 THEN NULL ELSE - + 66 DIV COUNT( * ) * 23 END + - + 3 + + COUNT( * ) - - COUNT( * ) * - 72 AS col1
----
-1592

skipif mysql # not compatible
query I rowsort label-4388
SELECT + CASE + + 78 WHEN - 36 THEN NULL ELSE - + 66 / COUNT ( * ) * 23 END + - + 3 + + COUNT ( * ) - - COUNT ( * ) * - 72 AS col1
----
-1592

query I rowsort
SELECT DISTINCT + 15 - 89
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT 28 + + - ( + - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - COUNT( * ) / - MIN( ALL - - ( - 73 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT 28 + + - ( + - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - COUNT ( * ) / - MIN ( ALL - - ( - 73 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4391
SELECT DISTINCT COUNT( * ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT COUNT ( * ) / - 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT 93 / + 47 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT 93 / + 47 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4393
SELECT CAST( - 49 AS SIGNED ) DIV - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4393
SELECT CAST ( - 49 AS INTEGER ) / - COUNT ( * ) AS col2
----
49

query II rowsort
SELECT 12 * - + 97 AS col2, 21 + 45
----
-1164
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL 79 * - 11 / - CAST( NULL AS SIGNED ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 79 * - 11 / - CAST ( NULL AS INTEGER ) * + 29
----
NULL

query I rowsort
SELECT 83 + + 33
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT 93 DIV - 63 + 11 + + 7 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4397
SELECT 93 / - 63 + 11 + + 7 AS col1
----
17

query I rowsort
SELECT 21 * + 58 * + - 83 AS col2
----
-101094

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT 2 DIV - ( 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT 2 / - ( 26 ) AS col1
----
0

query I rowsort
SELECT ALL 43 * - - 33
----
1419

query I rowsort
SELECT DISTINCT 2 * + 68 * 57
----
7752

query I rowsort
SELECT 11 * 43 * + - 82
----
-38786

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL + 67 + MIN( DISTINCT 19 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + 67 + MIN ( DISTINCT 19 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL COUNT( * ) * + - 9 col0
----
-9

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL COUNT ( * ) * + - 9 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT 27 + + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4405
SELECT 27 + + - COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT ALL - SUM( DISTINCT - 20 ) AS col0, COUNT( * ) col2
----
20
1

skipif mysql # not compatible
query II rowsort label-4406
SELECT ALL - SUM ( DISTINCT - 20 ) AS col0, COUNT ( * ) col2
----
20
1

query I rowsort
SELECT ( 75 ) * + 20 AS col1
----
1500

query II rowsort
SELECT 37 * - - 53, 24 AS col2
----
1961
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL - NULLIF ( + 57, + CAST( + - ( - 92 ) AS SIGNED ) ) + - 16 + - + 89
----
-162

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - NULLIF ( + 57, + CAST ( + - ( - 92 ) AS INTEGER ) ) + - 16 + - + 89
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT DISTINCT + 49 + - + COALESCE ( COUNT( * ), + 46 + + 26 ) DIV - 99 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + 49 + - + COALESCE ( COUNT ( * ), + 46 + + 26 ) / - 99 AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4411
SELECT DISTINCT 94 + - COUNT( * ) + + COUNT( * ) + - 7 DIV + 52 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT 94 + - COUNT ( * ) + + COUNT ( * ) + - 7 / + 52 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT ALL - - SUM( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - - SUM ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT + CASE + 27 WHEN + 72 THEN NULL WHEN - 75 THEN NULL ELSE + CASE - COUNT( * ) WHEN + + 57 THEN COUNT( * ) END END + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT + CASE + 27 WHEN + 72 THEN NULL WHEN - 75 THEN NULL ELSE + CASE - COUNT ( * ) WHEN + + 57 THEN COUNT ( * ) END END + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + - NULLIF ( 41, + 31 + - 2 ) + - COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + - NULLIF ( 41, + 31 + - 2 ) + - COUNT ( * ) AS col2
----
-42

query I rowsort
SELECT + COALESCE ( + 21, 4 ) * - 9 * + 21 AS col0
----
-3969

query I rowsort
SELECT ALL - - 5 * - 26 + 51 - 13 AS col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4417
SELECT - + COUNT( * ) * - ( + + 95 ) + - - COALESCE ( ( - 32 ), - - COUNT( * ) + + - SUM( 49 ) DIV 96 * 70 ) + - - 81 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-4417
SELECT - + COUNT ( * ) * - ( + + 95 ) + - - COALESCE ( ( - 32 ), - - COUNT ( * ) + + - SUM ( 49 ) / 96 * 70 ) + - - 81 AS col2
----
144

query II rowsort
SELECT DISTINCT - + 55 * + - 97 + - 94 col0, 47
----
5241
47

query I rowsort
SELECT - - ( - 32 ) AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT 95 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT 95 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 97 - 52 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4422
SELECT ALL 75 DIV 94 AS col2, 52 + COUNT( * ) * 47 * - 22 * - 99 * - 7 * + COUNT( * )
----
0
-716510

skipif mysql # not compatible
query II rowsort label-4422
SELECT ALL 75 / 94 AS col2, 52 + COUNT ( * ) * 47 * - 22 * - 99 * - 7 * + COUNT ( * )
----
0
-716510

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT DISTINCT - - 88 DIV 60
----
1

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - - 88 / 60
----
1

query I rowsort
SELECT ALL - 97 * + 77 col0
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ( - COUNT( * ) ) - - 81 * + 74 AS col1
----
5993

skipif mysql # not compatible
query I rowsort label-4425
SELECT ( - COUNT ( * ) ) - - 81 * + 74 AS col1
----
5993

query I rowsort
SELECT + 94 * + ( + 18 ) * + + 21
----
35532

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL 64 * - - 76 + MIN( 34 ) col1
----
4898

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL 64 * - - 76 + MIN ( 34 ) col1
----
4898

query II rowsort
SELECT - 45 col1, 80
----
-45
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT DISTINCT NULLIF ( - 77, CAST( + 49 AS SIGNED ) )
----
-77

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT NULLIF ( - 77, CAST ( + 49 AS INTEGER ) )
----
-77

query II rowsort
SELECT 65 AS col2, 75 + + - 35
----
65
40

query I rowsort
SELECT ALL 43 + - 20 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT DISTINCT 35 * CAST( NULL AS SIGNED ) + - CAST( + 34 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT 35 * CAST ( NULL AS INTEGER ) + - CAST ( + 34 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT CASE 60 WHEN + + MAX( - 43 ) + + 46 THEN - 91 WHEN - + 22 + 23 * 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT CASE 60 WHEN + + MAX ( - 43 ) + + 46 THEN - 91 WHEN - + 22 + 23 * 88 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + CASE + MAX( 9 ) WHEN COUNT( * ) THEN NULL ELSE 47 * + 87 END AS col1
----
4089

skipif mysql # not compatible
query I rowsort label-4434
SELECT + CASE + MAX ( 9 ) WHEN COUNT ( * ) THEN NULL ELSE 47 * + 87 END AS col1
----
4089

onlyif mysql # DIV for integer division: 
query II rowsort label-4435
SELECT DISTINCT + 69, + 82 DIV - 73 - - - 14 * + + 33 AS col1
----
69
-463

skipif mysql # not compatible
query II rowsort label-4435
SELECT DISTINCT + 69, + 82 / - 73 - - - 14 * + + 33 AS col1
----
69
-463

query I rowsort
SELECT ALL + 87 * + + ( + 65 ) + 79
----
5734

query I rowsort
SELECT 99 * 67 + + 62
----
6695

query I rowsort
SELECT COALESCE ( - 75, - 7 ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4439
SELECT + 48 + + - 60 - + + 67 * - 94 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT + 48 + + - 60 - + + 67 * - 94 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 65 * + 77 col2
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL + 65 * - + MAX( DISTINCT + - 0 ) * + COUNT( * ) * 61 * - + 74 + - + 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + 65 * - + MAX ( DISTINCT + - 0 ) * + COUNT ( * ) * 61 * - + 74 + - + 47 AS col1
----
-47

query I rowsort
SELECT ALL + 33 * 45 AS col0
----
1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT + 79 * 73 * - 70 * 22 + - COUNT( * ) * - + CASE - 63 WHEN + 40 THEN + - 19 + - 5 - + - 49 * - + CAST( NULL AS SIGNED ) * - 82 - + + 55 * + 28 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT + 79 * 73 * - 70 * 22 + - COUNT ( * ) * - + CASE - 63 WHEN + 40 THEN + - 19 + - 5 - + - 49 * - + CAST ( NULL AS INTEGER ) * - 82 - + + 55 * + 28 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT - 54 + - - 67 - - - COUNT( * ) * + CAST( CASE 65 WHEN - MIN( DISTINCT - 49 ) * + 26 * + COUNT( 36 ) THEN 98 END AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT - 54 + - - 67 - - - COUNT ( * ) * + CAST ( CASE 65 WHEN - MIN ( DISTINCT - 49 ) * + 26 * + COUNT ( 36 ) THEN 98 END AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 93 + + - 80
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - ( + 5 ) + - - 37 + + COUNT( * ) * + 96
----
128

skipif mysql # not compatible
query I rowsort label-4446
SELECT - ( + 5 ) + - - 37 + + COUNT ( * ) * + 96
----
128

query I rowsort
SELECT - - 56 - + - 14 + - 52 * - 18 AS col2
----
1006

query I rowsort
SELECT DISTINCT - COALESCE ( + 32, - ( + CASE - - 37 WHEN 98 THEN + 50 END ) ) AS col2
----
-32

query II rowsort
SELECT DISTINCT - - 27 * 42 + 21 + - - 61 AS col1, + 50 col1
----
1216
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4450
SELECT - 6 AS col0, ( + COUNT( * ) )
----
-6
1

skipif mysql # not compatible
query II rowsort label-4450
SELECT - 6 AS col0, ( + COUNT ( * ) )
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT + 48 - - + ( + COUNT( * ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT + 48 - - + ( + COUNT ( * ) ) AS col0
----
49

query I rowsort
SELECT ALL - - 86 * + 4
----
344

query I rowsort
SELECT ALL - ( + 19 ) AS col0
----
-19

query I rowsort
SELECT - + 20 + - 31 + + 48 + - 37
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT + - 51 * 99 * ( - + 52 ) * + 91 DIV - COUNT( + 84 ) - COUNT( * ) - - - ( - 65 ) AS col1
----
-23891804

skipif mysql # not compatible
query I rowsort label-4455
SELECT + - 51 * 99 * ( - + 52 ) * + 91 / - COUNT ( + 84 ) - COUNT ( * ) - - - ( - 65 ) AS col1
----
-23891804

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - MIN( + ( - 90 ) ) + - 7 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4456
SELECT - MIN ( + ( - 90 ) ) + - 7 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT - NULLIF ( + - ( + 68 ), - + 48 + + + 11 ) DIV 85 + + 12 col0
----
12

skipif mysql # not compatible
query I rowsort label-4457
SELECT - NULLIF ( + - ( + 68 ), - + 48 + + + 11 ) / 85 + + 12 col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4458
SELECT - 79 * 54 * 65 - - - CAST( NULL AS SIGNED ) + - - AVG ( DISTINCT + 97 ), COALESCE ( - 27, + + COUNT( * ) - + 95, - 45 * 81 ) AS col1
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-4458
SELECT - 79 * 54 * 65 - - - CAST ( NULL AS INTEGER ) + - - AVG ( DISTINCT + 97 ), COALESCE ( - 27, + + COUNT ( * ) - + 95, - 45 * 81 ) AS col1
----
NULL
-27

query I rowsort
SELECT ALL - + 85 * 11 * + 66 * 19
----
-1172490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT - - 43 + ( + 17 ) DIV + 53 - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4460
SELECT - - 43 + ( + 17 ) / + 53 - COUNT ( * )
----
42

query II rowsort
SELECT DISTINCT ( - - 48 ) AS col1, - 42 * + COALESCE ( - 96, - - 5 ) col1
----
48
4032

query I rowsort
SELECT ALL - 66 + + 62
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL CAST( NULL AS SIGNED ) + + - 27 + CAST( + ( + 62 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL CAST ( NULL AS INTEGER ) + + - 27 + CAST ( + ( + 62 ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT ( - 24 ), COALESCE ( + - 6, + 49 ) AS col2
----
-24
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL + 39 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + 39 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4466
SELECT DISTINCT COALESCE ( + - CAST( 54 AS SIGNED ), 64 DIV + + 6, + 8 ) * - ( - 67 ) + COUNT( * ) * + COUNT( * ) * - - 92
----
-3526

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT COALESCE ( + - CAST ( 54 AS INTEGER ), 64 / + + 6, + 8 ) * - ( - 67 ) + COUNT ( * ) * + COUNT ( * ) * - - 92
----
-3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL - 67 + - NULLIF ( - 17, - ( + + ( - MIN( DISTINCT - 2 ) ) ) * + NULLIF ( + 43, - 14 + - 98 * 23 + + - 28 * + - 22 ) ) * CASE - 98 WHEN - CASE - + MIN( DISTINCT - 36 ) WHEN + 84 - + - 21 / NULLIF ( + COALESCE ( + 79, + - CAST( - 4 AS SIGNED ) / 10 ), + - 37 + 5 ) + AVG ( ALL - + 58 ) + - 31 + + 64 THEN 29 * ( 75 ) END THEN + 38 * - 18 WHEN - COUNT( * ) * - 60 THEN NULL ELSE - 12 + + 21 END * MIN( 24 * + 92 ) AS col1
----
337757

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - 67 + - NULLIF ( - 17, - ( + + ( - MIN ( DISTINCT - 2 ) ) ) * + NULLIF ( + 43, - 14 + - 98 * 23 + + - 28 * + - 22 ) ) * CASE - 98 WHEN - CASE - + MIN ( DISTINCT - 36 ) WHEN + 84 - + - 21 / NULLIF ( + COALESCE ( + 79, + - CAST ( - 4 AS INTEGER ) / 10 ), + - 37 + 5 ) + AVG ( ALL - + 58 ) + - 31 + + 64 THEN 29 * ( 75 ) END THEN + 38 * - 18 WHEN - COUNT ( * ) * - 60 THEN NULL ELSE - 12 + + 21 END * MIN ( 24 * + 92 ) AS col1
----
337757

query II rowsort
SELECT + 84 + + 81 AS col2, ( + 2 ) AS col1
----
165
2

query I rowsort
SELECT ALL + ( + 27 ) + 88 AS col1
----
115

query I rowsort
SELECT - 72 * - 49 AS col0
----
3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT COUNT( 98 ) DIV + - 25 + - + 43 + - 67 DIV + COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-4471
SELECT COUNT ( 98 ) / + - 25 + - + 43 + - 67 / + COUNT ( * )
----
-110

query I rowsort
SELECT DISTINCT 83 * - 84
----
-6972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT ALL + 65 DIV 88 + - COUNT( * ) + + NULLIF ( + 32, - COUNT( * ) ) DIV - 45 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + 65 / 88 + - COUNT ( * ) + + NULLIF ( + 32, - COUNT ( * ) ) / - 45 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT DISTINCT - 82 DIV - COUNT( * ) + - ( - 71 ) * - 50 AS col1
----
-3468

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - 82 / - COUNT ( * ) + - ( - 71 ) * - 50 AS col1
----
-3468

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + NULLIF ( - 39, - MAX( ALL 7 ) / + 89 - + - COUNT( * ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4475
SELECT + NULLIF ( - 39, - MAX ( ALL 7 ) / + 89 - + - COUNT ( * ) ) AS col2
----
-39

query I rowsort
SELECT + 42 * - 59
----
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT DISTINCT - COUNT( * ) * - 71 * + 51
----
3621

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT - COUNT ( * ) * - 71 * + 51
----
3621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT ( + 24 ) DIV + 53 * 80 - + 17 + MAX( ALL - 33 ) + + + 22 + + MAX( - - 13 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT ( + 24 ) / + 53 * 80 - + 17 + MAX ( ALL - 33 ) + + + 22 + + MAX ( - - 13 ) AS col2
----
-15

query I rowsort
SELECT + + 40 * ( + 0 ) AS col1
----
0

query I rowsort
SELECT + 51 * + 77
----
3927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT + + SUM( DISTINCT - 67 ) * CAST( + 86 AS SIGNED ) + + 19 + - 86 - + 49
----
-5878

skipif mysql # not compatible
query I rowsort label-4481
SELECT + + SUM ( DISTINCT - 67 ) * CAST ( + 86 AS INTEGER ) + + 19 + - 86 - + 49
----
-5878

query I rowsort
SELECT ALL + 79 * 4 * 70
----
22120

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT - COUNT( - ( + 17 ) ) * SUM( DISTINCT + 66 ) + - + SUM( + 65 ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT - COUNT ( - ( + 17 ) ) * SUM ( DISTINCT + 66 ) + - + SUM ( + 65 ) AS col1
----
-131

query I rowsort
SELECT + + 41 * - - 99
----
4059

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT + CASE WHEN NOT - SUM( - 21 ) NOT IN ( + 42, 1, - COUNT( * ) - 39, + 63 + COUNT( * ), + - 60, 84 * - 32 * COUNT( * ) - + SUM( DISTINCT 26 ) + - - 33 + + 36 * - 61 / - 48 ) THEN - - 65 + - + COALESCE ( 2, 79 + 56 ) * + - ( + + 85 ) - + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + CASE WHEN NOT - SUM ( - 21 ) NOT IN ( + 42, 1, - COUNT ( * ) - 39, + 63 + COUNT ( * ), + - 60, 84 * - 32 * COUNT ( * ) - + SUM ( DISTINCT 26 ) + - - 33 + + 36 * - 61 / - 48 ) THEN - - 65 + - + COALESCE ( 2, 79 + 56 ) * + - ( + + 85 ) - + 16 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL 97 * 37 + + 49 + 10 - + - ( - 18 ) - + + CAST( NULL AS SIGNED ) * - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL 97 * 37 + + 49 + 10 - + - ( - 18 ) - + + CAST ( NULL AS INTEGER ) * - - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL - 60 * - - ( + 22 ) - + + 4 * + + MIN( 35 ) AS col0
----
-1460

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - 60 * - - ( + 22 ) - + + 4 * + + MIN ( 35 ) AS col0
----
-1460

query I rowsort
SELECT + ( + - 71 ) * - 48 + + 2 + 81 * + 63 * 69 + - 88 + - + 52 AS col1
----
355377

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ( - + COUNT( + 99 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4489
SELECT ( - + COUNT ( + 99 ) )
----
-1

query II rowsort
SELECT - - ( 57 ) AS col1, 89
----
57
89

query I rowsort
SELECT + 20 + - + 42 - + 1 * + 91
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT - - COUNT( * ) + - CASE + + 63 WHEN 73 / - 21 * + + 81 * + 95 THEN - - 99 * COUNT( * ) * 25 * 37 WHEN 51 THEN NULL ELSE 12 END
----
-11

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - - COUNT ( * ) + - CASE + + 63 WHEN 73 / - 21 * + + 81 * + 95 THEN - - 99 * COUNT ( * ) * 25 * 37 WHEN 51 THEN NULL ELSE 12 END
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL - COUNT( * ) + + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - COUNT ( * ) + + 61 AS col1
----
60

query I rowsort
SELECT DISTINCT 79 + 66 * + + 69 + + 63 + + 33
----
4729

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT 27 DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT 27 / + 74 AS col2
----
0

query I rowsort
SELECT ALL + 35 + + 98 + - + 88 + 84 * + 58 + - CASE - 61 WHEN ( 25 ) + - - 86 THEN 12 END AS col1
----
NULL

query II rowsort
SELECT ALL 5 col1, 26 * + 95 * 64
----
5
158080

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL + COUNT( * ) + + 98 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL + COUNT ( * ) + + 98 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4499
SELECT 17 DIV + + COALESCE ( 32, - 50 * - + 73, 93 + - - 35 DIV COUNT( + + 16 ) DIV 15 ) AS col1, - 62 AS col1, - - 6 + + COUNT( + 37 ) + + + 58 + - + COUNT( * ) - 67
----
0
-62
-3

skipif mysql # not compatible
query III rowsort label-4499
SELECT 17 / + + COALESCE ( 32, - 50 * - + 73, 93 + - - 35 / COUNT ( + + 16 ) / 15 ) AS col1, - 62 AS col1, - - 6 + + COUNT ( + 37 ) + + + 58 + - + COUNT ( * ) - 67
----
0
-62
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4500
SELECT ALL + 18 - - MIN( ALL 59 ), + COUNT( * ) + 41 AS col0
----
77
42

skipif mysql # not compatible
query II rowsort label-4500
SELECT ALL + 18 - - MIN ( ALL 59 ), + COUNT ( * ) + 41 AS col0
----
77
42

query I rowsort
SELECT 36 * - 57
----
-2052

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT ALL + 72 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + 72 / + 96
----
0

query I rowsort
SELECT 43 - - 26
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4504
SELECT SUM( 88 ) DIV 83 + + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-4504
SELECT SUM ( 88 ) / 83 + + - 36
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4505
SELECT 49 col0, COALESCE ( CAST( NULL AS SIGNED ), + - COUNT( * ) )
----
49
-1

skipif mysql # not compatible
query II rowsort label-4505
SELECT 49 col0, COALESCE ( CAST ( NULL AS INTEGER ), + - COUNT ( * ) )
----
49
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4506
SELECT + ( - ( - NULLIF ( - COUNT( * ), + 17 + - COUNT( * ) ) ) ) * - - 2 DIV 80 + 14 + + - 57 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4506
SELECT + ( - ( - NULLIF ( - COUNT ( * ), + 17 + - COUNT ( * ) ) ) ) * - - 2 / 80 + 14 + + - 57 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4507
SELECT 0 * CAST( 95 AS DECIMAL ) * 34 * + ( 76 ) - + 41 + - 35 + + + 43 * - - NULLIF ( - 77, - - 95 + + 16 + + + 52 ) * 18 * + + ( + + ( + - 81 ) ) * CAST( NULL AS SIGNED ) - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT 0 * CAST ( 95 AS REAL ) * 34 * + ( 76 ) - + 41 + - 35 + + + 43 * - - NULLIF ( - 77, - - 95 + + 16 + + + 52 ) * 18 * + + ( + + ( + - 81 ) ) * CAST ( NULL AS INTEGER ) - - 74
----
NULL

query I rowsort
SELECT DISTINCT - - 86 * + 56 AS col1
----
4816

query I rowsort
SELECT ALL + 50 * 9
----
450

query I rowsort
SELECT 49 + 51 * + + 93 * 44 AS col1
----
208741

query I rowsort
SELECT ALL + + 19 * + 36
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL - COUNT( + + 77 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - COUNT ( + + 77 ) AS col2
----
-1

query I rowsort
SELECT ALL - - ( - 44 )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT 59 DIV + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT 59 / + 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT DISTINCT - 56 + - ( - 35 ) * + - COUNT( * ) + - CAST( NULL AS SIGNED ) * + 33 * + 41 * + + MIN( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT - 56 + - ( - 35 ) * + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 33 * + 41 * + + MIN ( 7 )
----
NULL

query I rowsort
SELECT DISTINCT - - ( + + 47 ) AS col2
----
47

query I rowsort
SELECT + 52 + + 37 AS col2
----
89

query II rowsort
SELECT 52 + ( 61 ) AS col1, 36
----
113
36

query I rowsort
SELECT CASE - 59 WHEN 30 THEN + 32 END
----
NULL

query I rowsort
SELECT ALL 30 * - 85 col2
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - - 39 + - MIN( - 62 ) * + 14
----
907

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - - 39 + - MIN ( - 62 ) * + 14
----
907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT DISTINCT - 74 + 16 * - + CAST( NULL AS SIGNED ) * - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - 74 + 16 * - + CAST ( NULL AS INTEGER ) * - - 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT ALL SUM( DISTINCT 23 ) + - 82 * + 34 + + 29 AS col0, + 57 + + - COALESCE ( - - ( 10 ), + 76 + - - MAX( + 45 ) + 10 ) AS col2
----
-2736
47

skipif mysql # not compatible
query II rowsort label-4523
SELECT ALL SUM ( DISTINCT 23 ) + - 82 * + 34 + + 29 AS col0, + 57 + + - COALESCE ( - - ( 10 ), + 76 + - - MAX ( + 45 ) + 10 ) AS col2
----
-2736
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT ALL 97 * - ( - 63 ) AS col0, + 48 + - 18
----
6111
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT ALL CAST( - 89 AS SIGNED ) + + 34
----
-55

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL CAST ( - 89 AS INTEGER ) + + 34
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - MAX( - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4527
SELECT - MAX ( - 88 ) AS col1
----
88

query I rowsort
SELECT DISTINCT ( 96 ) + ( 34 ) AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL MIN( ALL - 32 ) + - 83
----
-115

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL MIN ( ALL - 32 ) + - 83
----
-115

query II rowsort
SELECT 67 AS col0, ( - 27 ) AS col1
----
67
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT 10, + COUNT( DISTINCT CASE + 71 WHEN 91 THEN - 87 ELSE NULL END ) - - - COUNT( * ) AS col2
----
10
-1

skipif mysql # not compatible
query II rowsort label-4531
SELECT 10, + COUNT ( DISTINCT CASE + 71 WHEN 91 THEN - 87 ELSE NULL END ) - - - COUNT ( * ) AS col2
----
10
-1

query I rowsort
SELECT NULLIF ( + + 7, - 2 ) * - ( 67 ) AS col2
----
-469

query I rowsort
SELECT NULLIF ( + + ( + 20 ), - AVG ( DISTINCT - 13 ) ) + + + 73 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT DISTINCT + ( 43 ) - 92 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + ( 43 ) - 92 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 86 - - + ( - + 31 )
----
55

query I rowsort
SELECT 46 * - 81
----
-3726

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT DISTINCT 23 AS col0, COUNT( * ) AS col2
----
23
1

skipif mysql # not compatible
query II rowsort label-4537
SELECT DISTINCT 23 AS col0, COUNT ( * ) AS col2
----
23
1

query I rowsort
SELECT DISTINCT ( - 12 ) - - - ( - - 38 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4539
SELECT CAST( NULL AS SIGNED ) * + - 83 * COUNT( - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT CAST ( NULL AS INTEGER ) * + - 83 * COUNT ( - 60 )
----
NULL

query I rowsort
SELECT 71 + - 73
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT + NULLIF ( + NULLIF ( - 39, 15 ), 70 * ( 84 ) + - CAST( NULL AS SIGNED ) + - + COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-4541
SELECT + NULLIF ( + NULLIF ( - 39, 15 ), 70 * ( 84 ) + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT NULLIF ( - COUNT( * ), + MIN( - 41 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4542
SELECT NULLIF ( - COUNT ( * ), + MIN ( - 41 ) ) AS col2
----
-1

query I rowsort
SELECT ALL 34 * - 21 AS col2
----
-714

query I rowsort
SELECT 18 * + 76 AS col2
----
1368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4545
SELECT ALL + 63 DIV + - CAST( 64 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + 63 / + - CAST ( 64 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT + - COUNT( * ) AS col0, 12 AS col0
----
-1
12

skipif mysql # not compatible
query II rowsort label-4546
SELECT + - COUNT ( * ) AS col0, 12 AS col0
----
-1
12

query I rowsort
SELECT DISTINCT - + ( 24 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT DISTINCT - 30 DIV 4 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - 30 / 4 AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT - 0 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT - 0 / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 80, - 77 AS col2
----
-80
-77

query I rowsort
SELECT - + 38 * + 22
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL 91 * + CAST( NULL AS SIGNED ) * 51 + - + 51 - 38 + + 10 + COALESCE ( + 7, - + CAST( + - 24 AS SIGNED ) ) * 64 + NULLIF ( - NULLIF ( + + 22, 15 ), + + 24 ) * + COALESCE ( + 48, 14 - 77 + + 9 * 94 ) + 8 + 54 * + - 90 - - - 99 + - CASE 15 WHEN - - 0 THEN NULL ELSE 16 END * 51 + 25 + - CAST( - COUNT( DISTINCT + + ( + 61 ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL 91 * + CAST ( NULL AS INTEGER ) * 51 + - + 51 - 38 + + 10 + COALESCE ( + 7, - + CAST ( + - 24 AS INTEGER ) ) * 64 + NULLIF ( - NULLIF ( + + 22, 15 ), + + 24 ) * + COALESCE ( + 48, 14 - 77 + + 9 * 94 ) + 8 + 54 * + - 90 - - - 99 + - CASE 15 WHEN - - 0 THEN NULL ELSE 16 END * 51 + 25 + - CAST ( - COUNT ( DISTINCT + + ( + 61 ) ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + - 64, + 63 AS col1
----
-64
63

query II rowsort
SELECT ALL + 7, - 20 AS col1
----
7
-20

query I rowsort
SELECT - 89 * - + 12 + + - 80 + + ( - 75 )
----
913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4556
SELECT ALL MAX( DISTINCT - 24 ) * COALESCE ( + CASE CAST( 26 AS SIGNED ) WHEN + + 20 THEN - NULLIF ( - + NULLIF ( + + 30, - 25 ), - - 27 ) * + + NULLIF ( + 34, - - 17 * + - 57 * - 76 * - 45 * 88 * - 31 + - COUNT( * ) / - 21 / 94 + + MAX( DISTINCT + - 61 ) ) * - 95 * + COUNT( * ) * + 8 END, + COUNT( * ), - MIN( ALL - + 20 ) / 37 * + ( + MIN( ALL - 61 ) ) ) + - 33 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL MAX ( DISTINCT - 24 ) * COALESCE ( + CASE CAST ( 26 AS INTEGER ) WHEN + + 20 THEN - NULLIF ( - + NULLIF ( + + 30, - 25 ), - - 27 ) * + + NULLIF ( + 34, - - 17 * + - 57 * - 76 * - 45 * 88 * - 31 + - COUNT ( * ) / - 21 / 94 + + MAX ( DISTINCT + - 61 ) ) * - 95 * + COUNT ( * ) * + 8 END, + COUNT ( * ), - MIN ( ALL - + 20 ) / 37 * + ( + MIN ( ALL - 61 ) ) ) + - 33 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT DISTINCT + MAX( ALL + - 74 ) * - ( 89 ) + - COUNT( * ) - + - 62, COUNT( * ) AS col0
----
6647
1

skipif mysql # not compatible
query II rowsort label-4557
SELECT DISTINCT + MAX ( ALL + - 74 ) * - ( 89 ) + - COUNT ( * ) - + - 62, COUNT ( * ) AS col0
----
6647
1

query I rowsort
SELECT ALL - 57 * + - 67 + - - 95
----
3914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT + + 6 * CASE CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - - COUNT( * ) * CAST( NULL AS SIGNED ) THEN NULL ELSE + + 17 / - 58 * - 4 * - - 71 END * 96 + 27 * + COUNT( * ) * + + 23 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT + + 6 * CASE CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 17 / - 58 * - 4 * - - 71 END * 96 + 27 * + COUNT ( * ) * + + 23 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL + CAST( - - 1 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL + CAST ( - - 1 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL + COUNT( DISTINCT + 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + COUNT ( DISTINCT + 13 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT ALL ( MAX( ALL + + 81 ) ) - - + CAST( NULL AS SIGNED ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL ( MAX ( ALL + + 81 ) ) - - + CAST ( NULL AS INTEGER ) * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT - 55 + - COALESCE ( + 71, + + 60 + - 91 * - COUNT( * ) )
----
-126

skipif mysql # not compatible
query I rowsort label-4563
SELECT - 55 + - COALESCE ( + 71, + + 60 + - 91 * - COUNT ( * ) )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - NULLIF ( + - 84, - 52 + + + 38 * - + 4 / - COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4564
SELECT - NULLIF ( + - 84, - 52 + + + 38 * - + 4 / - COUNT ( * ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT DISTINCT ( + COUNT( * ) ), 55 AS col0
----
1
55

skipif mysql # not compatible
query II rowsort label-4565
SELECT DISTINCT ( + COUNT ( * ) ), 55 AS col0
----
1
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT ALL 19 * 87 DIV + 43 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL 19 * 87 / + 43 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - CASE 12 WHEN - 64 * + + 1 * 6 * + - 22 THEN NULL WHEN + 1 * - 69 - - COUNT( * ) THEN 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT - CASE 12 WHEN - 64 * + + 1 * 6 * + - 22 THEN NULL WHEN + 1 * - 69 - - COUNT ( * ) THEN 77 END AS col2
----
NULL

query I rowsort
SELECT ALL 90 * - + 42
----
-3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT - 72 + + + 32 * + CAST( - - 13 AS SIGNED )
----
344

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 72 + + + 32 * + CAST ( - - 13 AS INTEGER )
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT + MIN( DISTINCT 49 ) - - ( 25 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4570
SELECT + MIN ( DISTINCT 49 ) - - ( 25 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL ( - 56 ) * + + MAX( + 41 )
----
-2296

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL ( - 56 ) * + + MAX ( + 41 )
----
-2296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT + 65 DIV - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4572
SELECT + 65 / - COUNT ( * )
----
-65

query I rowsort
SELECT + 83 - + - 47
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-4574
SELECT - ( MAX( DISTINCT 60 ) ) * + 13 * 34, - 78 * + COUNT( * ) + + 81 * + 1 col0
----
-26520
3

skipif mysql # not compatible
query II rowsort label-4574
SELECT - ( MAX ( DISTINCT 60 ) ) * + 13 * 34, - 78 * + COUNT ( * ) + + 81 * + 1 col0
----
-26520
3

query I rowsort
SELECT ALL + 34 * + + 93 + 88 AS col1
----
3250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) * 24 * - ( COUNT( * ) ) / 7 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) * 24 * - ( COUNT ( * ) ) / 7 + - 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT ALL + 18 DIV MIN( - 82 ) + - 88 DIV + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + 18 / MIN ( - 82 ) + - 88 / + COUNT ( * )
----
-88

query I rowsort
SELECT - 68 * - 92 + 40 * - 58 + - + 47 * ( + 75 ) AS col1
----
411

onlyif mysql # aggregate syntax: 
query II rowsort label-4579
SELECT + COUNT( * ) + 1 AS col0, 15 + + 84 AS col1
----
2
99

skipif mysql # not compatible
query II rowsort label-4579
SELECT + COUNT ( * ) + 1 AS col0, 15 + + 84 AS col1
----
2
99

query I rowsort
SELECT + + 58 col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4581
SELECT ALL - 3 * - ( 24 ) * + - 70 + 13 - CASE - + 3 WHEN - COUNT( * ) THEN - + MIN( 36 ) + - + 65 * 44 END, - 82 AS col1
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-4581
SELECT ALL - 3 * - ( 24 ) * + - 70 + 13 - CASE - + 3 WHEN - COUNT ( * ) THEN - + MIN ( 36 ) + - + 65 * 44 END, - 82 AS col1
----
NULL
-82

query I rowsort
SELECT - 93 * - 64 * + 58 + + ( 23 ) * + - 56
----
343928

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL + COUNT( DISTINCT + 4 ) * - - 29 + 25 + 80 + 76 + 81 + - ( 58 ) + - - NULLIF ( + 50, 61 ) col0
----
283

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL + COUNT ( DISTINCT + 4 ) * - - 29 + 25 + 80 + 76 + 81 + - ( 58 ) + - - NULLIF ( + 50, 61 ) col0
----
283

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4584
SELECT DISTINCT + 17 * 35 + NULLIF ( + 67, + + 64 ) + + + 75 * ( + - ( + CASE COUNT( DISTINCT + 27 ) WHEN + + 32 THEN 79 * 23 * - - 52 END ) ) + + 97 + - - 89 + 67 * - 94 * + 8 * - 87 * - CAST( + 24 AS DECIMAL ) + + 34 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT + 17 * 35 + NULLIF ( + 67, + + 64 ) + + + 75 * ( + - ( + CASE COUNT ( DISTINCT + 27 ) WHEN + + 32 THEN 79 * 23 * - - 52 END ) ) + + 97 + - - 89 + 67 * - 94 * + 8 * - 87 * - CAST ( + 24 AS REAL ) + + 34 * - 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4585
SELECT DISTINCT - - 31 * + - 82 + - 39 + + + 49 - COALESCE ( 61, - 93 DIV + CASE - - AVG ( + 73 ) WHEN + 29 + + CAST( - COALESCE ( - + 29, - 82, - ( - COUNT( * ) ) - + 0 ) AS SIGNED ) - 53 * + 53 + - - COUNT( * ) * - COUNT( * ) + 46 * - + CASE - ( - CASE + 59 WHEN - CAST( + 89 AS SIGNED ) - 36 THEN NULL WHEN COALESCE ( + 6, - COUNT( * ) * 48 - - - 88 + - 89 * 23, 46 ) DIV - 29 THEN - 97 END ) WHEN + MAX( ALL 94 ) THEN 54 WHEN - 10 - 60 THEN + 11 + 46 ELSE CAST( 7 AS SIGNED ) + 98 END THEN NULL WHEN + 95 + - 89 THEN - COUNT( ALL + 30 ) WHEN + 45 + + 57 THEN COUNT( + 89 ) ELSE NULL END DIV - 16 ) - + COUNT( DISTINCT + 31 ) * COUNT( * )
----
-2594

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - - 31 * + - 82 + - 39 + + + 49 - COALESCE ( 61, - 93 / + CASE - - AVG ( + 73 ) WHEN + 29 + + CAST ( - COALESCE ( - + 29, - 82, - ( - COUNT ( * ) ) - + 0 ) AS INTEGER ) - 53 * + 53 + - - COUNT ( * ) * - COUNT ( * ) + 46 * - + CASE - ( - CASE + 59 WHEN - CAST ( + 89 AS INTEGER ) - 36 THEN NULL WHEN COALESCE ( + 6, - COUNT ( * ) * 48 - - - 88 + - 89 * 23, 46 ) / - 29 THEN - 97 END ) WHEN + MAX ( ALL 94 ) THEN 54 WHEN - 10 - 60 THEN + 11 + 46 ELSE CAST ( 7 AS INTEGER ) + 98 END THEN NULL WHEN + 95 + - 89 THEN - COUNT ( ALL + 30 ) WHEN + 45 + + 57 THEN COUNT ( + 89 ) ELSE NULL END / - 16 ) - + COUNT ( DISTINCT + 31 ) * COUNT ( * )
----
-2594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT - 36 + + 63 DIV - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 36 + + 63 / - COUNT ( * )
----
-99

query I rowsort
SELECT - 79 * + 57 col0
----
-4503

query I rowsort
SELECT - 25 * 25 AS col2
----
-625

query I rowsort
SELECT ALL - 13 * + 37 AS col1
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT DISTINCT CAST( - 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT CAST ( - 0 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT SUM( DISTINCT - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4592
SELECT SUM ( DISTINCT - 63 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT + 48 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 48 / + 88
----
0

query I rowsort
SELECT - 59 + - - ( + 50 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL CAST( - - 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL CAST ( - - 42 AS INTEGER ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - CASE - NULLIF ( 46, 35 + 42 + + 97 * + SUM( DISTINCT - 74 ) + + 32 * - 2 ) WHEN 74 THEN + 21 ELSE 51 END col0
----
-51

skipif mysql # not compatible
query I rowsort label-4596
SELECT - CASE - NULLIF ( 46, 35 + 42 + + 97 * + SUM ( DISTINCT - 74 ) + + 32 * - 2 ) WHEN 74 THEN + 21 ELSE 51 END col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL + COUNT( * ) + 16 * 0
----
1

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + COUNT ( * ) + 16 * 0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4598
SELECT DISTINCT + 93 + - + 68 + - 4 * 60 * + 98 * + 79 + + 94 DIV + - 88, + 78 * + + 92 + + + NULLIF ( - + 16, - COUNT( * ) ) AS col1
----
-1858056
7160

skipif mysql # not compatible
query II rowsort label-4598
SELECT DISTINCT + 93 + - + 68 + - 4 * 60 * + 98 * + 79 + + 94 / + - 88, + 78 * + + 92 + + + NULLIF ( - + 16, - COUNT ( * ) ) AS col1
----
-1858056
7160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT DISTINCT 34 * - CAST( + - 39 AS SIGNED ) * MIN( - + 58 ) + - - 36 * + 13
----
-76440

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT 34 * - CAST ( + - 39 AS INTEGER ) * MIN ( - + 58 ) + - - 36 * + 13
----
-76440

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT - 8 * - - 91 + + 86 + COUNT( * ), 66 + - COUNT( * ) * - 10 col1
----
-641
76

skipif mysql # not compatible
query II rowsort label-4600
SELECT - 8 * - - 91 + + 86 + COUNT ( * ), 66 + - COUNT ( * ) * - 10 col1
----
-641
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4601
SELECT 78 + - COUNT( * ) * 62 AS col0, + COUNT( * ) * + 48 AS col2
----
16
48

skipif mysql # not compatible
query II rowsort label-4601
SELECT 78 + - COUNT ( * ) * 62 AS col0, + COUNT ( * ) * + 48 AS col2
----
16
48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4602
SELECT + 9 AS col0, CAST( NULL AS DECIMAL )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-4602
SELECT + 9 AS col0, CAST ( NULL AS REAL )
----
9
NULL

query I rowsort
SELECT - 91 + - 60 AS col2
----
-151

query I rowsort
SELECT ALL + 11 + 28
----
39

query I rowsort
SELECT ( - 75 ) * ( + 98 ) AS col2
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL - + ( - ( + - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL - + ( - ( + - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - NULLIF ( MIN( ALL + 90 ), - SUM( DISTINCT 15 ) - - 23 + 30 + + 48 + - COUNT( * ) / - 53 * - + 45 )
----
-90

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - NULLIF ( MIN ( ALL + 90 ), - SUM ( DISTINCT 15 ) - - 23 + 30 + + 48 + - COUNT ( * ) / - 53 * - + 45 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT + CAST( - 88 AS SIGNED ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4608
SELECT + CAST ( - 88 AS INTEGER ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT 86, + COUNT( * ) col0
----
86
1

skipif mysql # not compatible
query II rowsort label-4609
SELECT 86, + COUNT ( * ) col0
----
86
1

query II rowsort
SELECT ALL - + 54 AS col0, + 72
----
-54
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + COUNT( * ) - - + ( ( - ( - NULLIF ( - 29, + COUNT( * ) * + - 85 ) ) ) ) * + 46 AS col2
----
-1333

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + COUNT ( * ) - - + ( ( - ( - NULLIF ( - 29, + COUNT ( * ) * + - 85 ) ) ) ) * + 46 AS col2
----
-1333

query I rowsort
SELECT ALL - - ( + 23 ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT - 7 * - - CAST( + + 46 AS SIGNED ) - - 64 AS col1
----
-258

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 7 * - - CAST ( + + 46 AS INTEGER ) - - 64 AS col1
----
-258

query II rowsort
SELECT ALL 77 - 28 + + + 12, ( - 96 ) AS col1
----
61
-96

query I rowsort
SELECT ( - ( 53 ) )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT DISTINCT - 93 AS col1, COUNT( * ) * COUNT( * ) AS col1
----
-93
1

skipif mysql # not compatible
query II rowsort label-4616
SELECT DISTINCT - 93 AS col1, COUNT ( * ) * COUNT ( * ) AS col1
----
-93
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT ALL - 34 * - COUNT( * ) + - CAST( NULL AS SIGNED ) * 19 * - - COUNT( * ) * - 75 * 31 * ( + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - 34 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 19 * - - COUNT ( * ) * - 75 * 31 * ( + - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT + 73 - 1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT DISTINCT - 45 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - 45 / 84 AS col2
----
0

query I rowsort
SELECT 54 * + 83 - - 71
----
4553

query I rowsort
SELECT - 16 * - + 34 + - 32
----
512

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4622
SELECT ALL + CAST( + + 4 AS SIGNED ) DIV + + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL + CAST ( + + 4 AS INTEGER ) / + + 64 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4623
SELECT COALESCE ( 96, - - 30 * 84 * - COUNT( * ) ) DIV + - 96 + + - 76, - 15 AS col2
----
-77
-15

skipif mysql # not compatible
query II rowsort label-4623
SELECT COALESCE ( 96, - - 30 * 84 * - COUNT ( * ) ) / + - 96 + + - 76, - 15 AS col2
----
-77
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT 62 * + - SUM( + - 69 ) * 66 * 83
----
23434884

skipif mysql # not compatible
query I rowsort label-4624
SELECT 62 * + - SUM ( + - 69 ) * 66 * 83
----
23434884

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT DISTINCT + 45 DIV - NULLIF ( + - 72, 17 ) * - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + 45 / - NULLIF ( + - 72, 17 ) * - 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT 7 + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT 7 + COUNT ( * )
----
8

query I rowsort
SELECT 55 + + 84
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT + 1 + COUNT( * ) * + + 31
----
32

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT + 1 + COUNT ( * ) * + + 31
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT + 10 + - - 93 * SUM( ALL - 89 ) * - 96 * + 33 * + COUNT( * ) AS col2
----
26221546

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + 10 + - - 93 * SUM ( ALL - 89 ) * - 96 * + 33 * + COUNT ( * ) AS col2
----
26221546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL - 56 * + CAST( + 95 AS SIGNED )
----
-5320

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - 56 * + CAST ( + 95 AS INTEGER )
----
-5320

query I rowsort
SELECT 51 * - 79
----
-4029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4632
SELECT ALL + - 72 + + 91 * - - COALESCE ( MIN( - 47 ), 72 - - 5 * 23 DIV CASE CAST( NULL AS SIGNED ) WHEN - - 78 * - - 67 - - 68 + - 86 + + 90 + + 91 * 82 THEN - 52 END ) * - + 70 AS col0, ( - 99 ) DIV - COUNT( * ) - + COUNT( * ) AS col2
----
299318
98

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL + - 72 + + 91 * - - COALESCE ( MIN ( - 47 ), 72 - - 5 * 23 / CASE CAST ( NULL AS INTEGER ) WHEN - - 78 * - - 67 - - 68 + - 86 + + 90 + + 91 * 82 THEN - 52 END ) * - + 70 AS col0, ( - 99 ) / - COUNT ( * ) - + COUNT ( * ) AS col2
----
299318
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT MAX( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4633
SELECT MAX ( 95 )
----
95

query I rowsort
SELECT + 28 - 64
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT DISTINCT - - 59 DIV 22
----
2

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT - - 59 / 22
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT DISTINCT - NULLIF ( - - 11, CAST( NULL AS SIGNED ) + - 61 )
----
-11

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - NULLIF ( - - 11, CAST ( NULL AS INTEGER ) + - 61 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT ALL - ( - 94 ) * - + 95 - COUNT( * ) + - MAX( ALL - 96 ) + - 38 AS col1, + 83
----
-8873
83

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL - ( - 94 ) * - + 95 - COUNT ( * ) + - MAX ( ALL - 96 ) + - 38 AS col1, + 83
----
-8873
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4638
SELECT DISTINCT - COUNT( - ( - ( - 38 ) ) ), 3 - + ( COALESCE ( 52, + + COUNT( * ) + COUNT( DISTINCT 63 ) DIV - AVG ( + 54 ) * - 10 ) ) AS col1
----
-1
-49

skipif mysql # not compatible
query II rowsort label-4638
SELECT DISTINCT - COUNT ( - ( - ( - 38 ) ) ), 3 - + ( COALESCE ( 52, + + COUNT ( * ) + COUNT ( DISTINCT 63 ) / - AVG ( + 54 ) * - 10 ) ) AS col1
----
-1
-49

query I rowsort
SELECT DISTINCT - + 30 - 66 + + - 37 AS col2
----
-133

query I rowsort
SELECT DISTINCT - 57 * - 7 * - 41 AS col2
----
-16359

onlyif mysql # aggregate syntax: 
query II rowsort label-4641
SELECT ALL + + 17 * + 63 AS col2, - CASE 99 WHEN + 19 + - COUNT( * ) - - 74 THEN + COALESCE ( + + 91, + + 9, + 63 + + 8 ) * - COUNT( * ) ELSE SUM( ALL 8 ) * + ( 48 ) END col2
----
1071
-384

skipif mysql # not compatible
query II rowsort label-4641
SELECT ALL + + 17 * + 63 AS col2, - CASE 99 WHEN + 19 + - COUNT ( * ) - - 74 THEN + COALESCE ( + + 91, + + 9, + 63 + + 8 ) * - COUNT ( * ) ELSE SUM ( ALL 8 ) * + ( 48 ) END col2
----
1071
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - ( 49 ) + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4642
SELECT - ( 49 ) + COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT 28 * 29 AS col0
----
812

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT MAX( ALL + 53 ) col1, 28 + - - MAX( + 80 ) AS col2
----
53
108

skipif mysql # not compatible
query II rowsort label-4644
SELECT MAX ( ALL + 53 ) col1, 28 + - - MAX ( + 80 ) AS col2
----
53
108

query I rowsort
SELECT ALL - 38 * - 82
----
3116

query I rowsort
SELECT + 96 * - 32 * + COALESCE ( 83, - 92 ) + + 96
----
-254880

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + COUNT( * ) * - 99 * + 26 AS col1
----
-2574

skipif mysql # not compatible
query I rowsort label-4647
SELECT + COUNT ( * ) * - 99 * + 26 AS col1
----
-2574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL - + CAST( + + 49 AS SIGNED ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - + CAST ( + + 49 AS INTEGER ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - COUNT( * ) * - + 0 * - - 80 + + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4649
SELECT - COUNT ( * ) * - + 0 * - - 80 + + 30 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT - 27 / - 54 + + ( CASE WHEN NULL <> NULL THEN - COALESCE ( 73, + CAST( + + 36 AS SIGNED ) * 61, - 13 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 27 / - 54 + + ( CASE WHEN NULL <> NULL THEN - COALESCE ( 73, + CAST ( + + 36 AS INTEGER ) * 61, - 13 ) END )
----
NULL

query I rowsort
SELECT ALL - 94 * 81 * 4
----
-30456

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT - - NULLIF ( - + 58, COUNT( * ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT - - NULLIF ( - + 58, COUNT ( * ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ( 56 ) + ( + MIN( + COALESCE ( 5, 77 ) ) )
----
61

skipif mysql # not compatible
query I rowsort label-4653
SELECT ( 56 ) + ( + MIN ( + COALESCE ( 5, 77 ) ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT COUNT( + + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-4654
SELECT COUNT ( + + 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT COUNT( * ) * - - 8 * + MAX( DISTINCT 87 )
----
696

skipif mysql # not compatible
query I rowsort label-4655
SELECT COUNT ( * ) * - - 8 * + MAX ( DISTINCT 87 )
----
696

query I rowsort
SELECT 22 * + 73 + NULLIF ( + 30, + - 3 + - 82 ) AS col1
----
1636

query II rowsort
SELECT ALL - 81, + 45 AS col1
----
-81
45

query I rowsort
SELECT 17 * 86 AS col0
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT COUNT( - ( - - 25 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4659
SELECT COUNT ( - ( - - 25 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT + COUNT( * ) AS col2, 78 AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-4660
SELECT + COUNT ( * ) AS col2, 78 AS col0
----
1
78

query I rowsort
SELECT DISTINCT 2 + - 64
----
-62

query I rowsort
SELECT ALL 60 * + 6 AS col2
----
360

query I rowsort
SELECT 74 + - + 67
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT COALESCE ( + + COUNT( * ), - + 33 ) + + 25 + - - 73
----
99

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - + 33 ) + + 25 + - - 73
----
99

query I rowsort
SELECT DISTINCT 66 + 73 + 90 AS col1
----
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT + CASE - 81 WHEN - 61 * - 29 - + CAST( NULL AS SIGNED ) THEN 32 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT + CASE - 81 WHEN - 61 * - 29 - + CAST ( NULL AS INTEGER ) THEN 32 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL ( + - 0 ) + - 83 + + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL ( + - 0 ) + - 83 + + COUNT ( * ) AS col2
----
-82

query I rowsort
SELECT ALL - 51 + 76 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + MAX( 8 ) + + 30 * + NULLIF ( - 10, + 91 ) * + + 34 AS col1
----
-10192

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + MAX ( 8 ) + + 30 * + NULLIF ( - 10, + 91 ) * + + 34 AS col1
----
-10192

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT - ( - 27 ) * - 58 + + 95 + 89 DIV + 81 - + - 85 AS col0
----
-1385

skipif mysql # not compatible
query I rowsort label-4670
SELECT - ( - 27 ) * - 58 + + 95 + 89 / + 81 - + - 85 AS col0
----
-1385

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - ( - 0 ) + SUM( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4671
SELECT - ( - 0 ) + SUM ( 81 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT DISTINCT + 6 DIV + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + 6 / + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL + - COUNT( 86 ) + + - 57, 76 AS col0
----
-58
76

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL + - COUNT ( 86 ) + + - 57, 76 AS col0
----
-58
76

query I rowsort
SELECT - - 5 - - 79
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL - CASE + MIN( + COALESCE ( - 3, + 44, 64 ) ) WHEN + - 12 THEN - - COALESCE ( - 57, - 23 + COUNT( DISTINCT + + ( + - 77 ) ) ) END * + COUNT( * ) * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - CASE + MIN ( + COALESCE ( - 3, + 44, 64 ) ) WHEN + - 12 THEN - - COALESCE ( - 57, - 23 + COUNT ( DISTINCT + + ( + - 77 ) ) ) END * + COUNT ( * ) * - 95
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 63 WHEN - + 30 THEN - + 51 END * - 43 * - + 52
----
NULL

query I rowsort
SELECT DISTINCT ( + 88 ) col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL ( CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 17 * + 13 col1
----
221

query I rowsort
SELECT - + 78 * - - ( 80 ) + + 59
----
-6181

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - + CASE ( 84 ) WHEN - 27 THEN 34 / + 59 END + - + ( COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT - + CASE ( 84 ) WHEN - 27 THEN 34 / + 59 END + - + ( COUNT ( * ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT + 12 + - 54 * + 88 + - 96 * 10 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 12 + - 54 * + 88 + - 96 * 10 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + COUNT( DISTINCT + - ( 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + COUNT ( DISTINCT + - ( 49 ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4684
SELECT ALL + CAST( NULL AS DECIMAL ) / + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + CAST ( NULL AS REAL ) / + 16
----
NULL

query II rowsort
SELECT ALL + - 25, + 41 AS col1
----
-25
41

query I rowsort
SELECT DISTINCT + 85 * 12 + 13 * + 16
----
1228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT DISTINCT + - COUNT( * ) DIV + SUM( + 47 ) * 3 + + + 48 + - ( + + 92 ) * COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + - COUNT ( * ) / + SUM ( + 47 ) * 3 + + + 48 + - ( + + 92 ) * COUNT ( * ) AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT - COUNT( - 52 ) DIV - - 14
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT - COUNT ( - 52 ) / - - 14
----
0

query I rowsort
SELECT ALL 97 * + 42
----
4074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT ALL + 54 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + 54 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL + SUM( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + SUM ( - 34 )
----
-34

query II rowsort
SELECT + 42, - 65 AS col1
----
42
-65

query II rowsort
SELECT + 45, 44 + + 61 AS col1
----
45
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT - COUNT( * ) DIV 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT - COUNT ( * ) / 7 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT + ( 97 ) * - 48 + - CAST( - - 53 AS SIGNED ) AS col1
----
-4709

skipif mysql # not compatible
query I rowsort label-4695
SELECT + ( 97 ) * - 48 + - CAST ( - - 53 AS INTEGER ) AS col1
----
-4709

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT + COALESCE ( 80, + COUNT( CASE 35 WHEN + 94 * + 24 THEN + 59 - + 62 / - 54 ELSE NULL END ) )
----
80

skipif mysql # not compatible
query I rowsort label-4696
SELECT + COALESCE ( 80, + COUNT ( CASE 35 WHEN + 94 * + 24 THEN + 59 - + 62 / - 54 ELSE NULL END ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + COUNT( * ) * 98
----
98

skipif mysql # not compatible
query I rowsort label-4697
SELECT + COUNT ( * ) * 98
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT - 43 - + ( - 19 ) + + 17 + - CAST( - ( - - AVG ( DISTINCT + ( - 29 ) ) ) AS SIGNED ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-4698
SELECT - 43 - + ( - 19 ) + + 17 + - CAST ( - ( - - AVG ( DISTINCT + ( - 29 ) ) ) AS INTEGER ) col1
----
-36

query I rowsort
SELECT + ( + 72 ) col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT ALL 14 * + + 7 + - + 85 + COUNT( * ) - - + 41 DIV - - 80 * 60
----
14

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL 14 * + + 7 + - + 85 + COUNT ( * ) - - + 41 / - - 80 * 60
----
14

query I rowsort
SELECT ALL - 81 * + 29 + ( + 23 ) + 22
----
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4702
SELECT CASE - - COUNT( * ) WHEN + CAST( COALESCE ( - CASE - + 39 WHEN + COALESCE ( + 96, - + CAST( - AVG ( DISTINCT - 59 ) AS SIGNED ) * + COALESCE ( + 79, 10 * + 63 ) ) THEN + NULLIF ( + 21, - COUNT( * ) ) END, + 11, + + 4 ) AS SIGNED ) THEN + 57 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col1, NULLIF ( + + 55, COUNT( * ) )
----
NULL
55

skipif mysql # not compatible
query II rowsort label-4702
SELECT CASE - - COUNT ( * ) WHEN + CAST ( COALESCE ( - CASE - + 39 WHEN + COALESCE ( + 96, - + CAST ( - AVG ( DISTINCT - 59 ) AS INTEGER ) * + COALESCE ( + 79, 10 * + 63 ) ) THEN + NULLIF ( + 21, - COUNT ( * ) ) END, + 11, + + 4 ) AS INTEGER ) THEN + 57 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col1, NULLIF ( + + 55, COUNT ( * ) )
----
NULL
55

query I rowsort
SELECT ALL 45 * 80 + + + 28 AS col2
----
3628

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + CASE 24 WHEN - MAX( + 66 ) THEN NULL ELSE + 38 END
----
38

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CASE 24 WHEN - MAX ( + 66 ) THEN NULL ELSE + 38 END
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + 89 - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4705
SELECT + 89 - COUNT ( * )
----
88

query II rowsort
SELECT ALL + 16 col0, 95 AS col0
----
16
95

query I rowsort
SELECT NULLIF ( 32, 24 / - 29 ) AS col0
----
32

query I rowsort
SELECT 19 * - 16 + - 31 AS col0
----
-335

query I rowsort
SELECT DISTINCT 26 * 44 * + 59 + - 20 + 4
----
67480

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT SUM( DISTINCT - + 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4710
SELECT SUM ( DISTINCT - + 8 ) AS col2
----
-8

query I rowsort
SELECT ALL 88 * + 43
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL COUNT( * ) * 26 - + 27
----
-1

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL COUNT ( * ) * 26 - + 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT - COALESCE ( - - MIN( ALL + - 94 ), + 89 + - 84 )
----
94

skipif mysql # not compatible
query I rowsort label-4713
SELECT - COALESCE ( - - MIN ( ALL + - 94 ), + 89 + - 84 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - COALESCE ( + 26, COUNT( ALL - 49 ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4714
SELECT - COALESCE ( + 26, COUNT ( ALL - 49 ) ) AS col2
----
-26

query I rowsort
SELECT + ( - 71 ) + + + 68
----
-3

query I rowsort
SELECT ALL ( - - 3 ) * - 23 col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT DISTINCT - 81, - COUNT( DISTINCT + - 43 ) + - + 85 AS col0
----
-81
-86

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT - 81, - COUNT ( DISTINCT + - 43 ) + - + 85 AS col0
----
-81
-86

query I rowsort
SELECT + 15 + - - 20 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL 84 - + COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL 84 - + COUNT ( * ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT - ( COALESCE ( + CASE + + NULLIF ( COUNT( * ), 61 * + NULLIF ( - 13, 76 ) * - - 26 + 17 * 77 + + 54 ) WHEN - 80 THEN NULL WHEN + ( + COUNT( * ) ) * + - 13 THEN NULL WHEN + + 32 THEN + + 84 END, + 5 + - - COUNT( * ) ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4720
SELECT - ( COALESCE ( + CASE + + NULLIF ( COUNT ( * ), 61 * + NULLIF ( - 13, 76 ) * - - 26 + 17 * 77 + + 54 ) WHEN - 80 THEN NULL WHEN + ( + COUNT ( * ) ) * + - 13 THEN NULL WHEN + + 32 THEN + + 84 END, + 5 + - - COUNT ( * ) ) ) AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4721
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 45
----
NULL
45

query I rowsort
SELECT ALL - ( + + 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT ALL COUNT( * ) DIV - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL COUNT ( * ) / - 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT + 13 - - COUNT( ALL + 37 )
----
14

skipif mysql # not compatible
query I rowsort label-4724
SELECT + 13 - - COUNT ( ALL + 37 )
----
14

query I rowsort
SELECT + 17 * 88 * - ( - 49 ) * 79 * - - 67 - - 74
----
387998146

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL - + MAX( ALL + 81 ) * 97
----
-7857

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - + MAX ( ALL + 81 ) * 97
----
-7857

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT + + 41 * - 7 + + - 41 + + COUNT( * ) AS col2, - 38 AS col0
----
-327
-38

skipif mysql # not compatible
query II rowsort label-4727
SELECT + + 41 * - 7 + + - 41 + + COUNT ( * ) AS col2, - 38 AS col0
----
-327
-38

query I rowsort
SELECT - - 67 * + - 46 + + + 26
----
-3056

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL + MAX( ALL + 26 ) * + 31
----
806

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + MAX ( ALL + 26 ) * + 31
----
806

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4730
SELECT DISTINCT 32 * + 58 AS col2, + CAST( + 27 AS SIGNED ) col2
----
1856
27

skipif mysql # not compatible
query II rowsort label-4730
SELECT DISTINCT 32 * + 58 AS col2, + CAST ( + 27 AS INTEGER ) col2
----
1856
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT - 76 - - MAX( - + 98 ) + - - 63 * + - 71 AS col2
----
-4647

skipif mysql # not compatible
query I rowsort label-4731
SELECT - 76 - - MAX ( - + 98 ) + - - 63 * + - 71 AS col2
----
-4647

query I rowsort
SELECT + 73 + 9 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT + CAST( NULL AS SIGNED ) / - ( + 62 ) - COUNT( ALL - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT + CAST ( NULL AS INTEGER ) / - ( + 62 ) - COUNT ( ALL - 42 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT ALL ( - 93 ) DIV + + 41 + - - 40 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL ( - 93 ) / + + 41 + - - 40 AS col1
----
38

query I rowsort
SELECT 59 * ( + 35 ) + + 60 AS col1
----
2125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - CAST( NULL AS SIGNED ) / + 40 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT - CAST ( NULL AS INTEGER ) / + 40 * - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - COUNT( * ) + 31 - - 30 * - 87 AS col1
----
-2580

skipif mysql # not compatible
query I rowsort label-4737
SELECT - COUNT ( * ) + 31 - - 30 * - 87 AS col1
----
-2580

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT ALL - ( + - 88 ) DIV - 16 + - 21
----
-26

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - ( + - 88 ) / - 16 + - 21
----
-26

query I rowsort
SELECT - 95 + + 64 + + 82 * + 47 + - ( - 10 )
----
3833

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL - COALESCE ( - SUM( ALL + ( + 58 ) ), + - 19 * 28 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL - COALESCE ( - SUM ( ALL + ( + 58 ) ), + - 19 * 28 ) AS col1
----
58

query II rowsort
SELECT DISTINCT - 6 * + + 85, 5 * 8 col0
----
-510
40

query I rowsort
SELECT ALL - 97 - - 99
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT 61 * + COUNT( * ) col1
----
61

skipif mysql # not compatible
query I rowsort label-4743
SELECT 61 * + COUNT ( * ) col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4744
SELECT CASE - CASE - + COUNT( * ) WHEN 29 * + 68 + + ( - + ( + + AVG ( - 78 ) ) ) * + CAST( + - 41 AS SIGNED ) THEN NULL WHEN + + 67 THEN + 24 * + 95 DIV + + 39 * + - AVG ( 76 ) - - - 30 END WHEN 71 * + 99 THEN NULL ELSE + 2 * - 0 + - 3 END + + 17 - 39 + - 48 * + + 99 + + - 41 * + - 25 + + 54 + + CASE 82 WHEN + - ( + + 91 ) + + COUNT( * ) - - SUM( + + 34 ) THEN 50 ELSE + COUNT( * ) * + ( - + 38 ) + + ( + 24 ) + 32 DIV - 15 END AS col1
----
-3714

skipif mysql # not compatible
query I rowsort label-4744
SELECT CASE - CASE - + COUNT ( * ) WHEN 29 * + 68 + + ( - + ( + + AVG ( - 78 ) ) ) * + CAST ( + - 41 AS INTEGER ) THEN NULL WHEN + + 67 THEN + 24 * + 95 / + + 39 * + - AVG ( 76 ) - - - 30 END WHEN 71 * + 99 THEN NULL ELSE + 2 * - 0 + - 3 END + + 17 - 39 + - 48 * + + 99 + + - 41 * + - 25 + + 54 + + CASE 82 WHEN + - ( + + 91 ) + + COUNT ( * ) - - SUM ( + + 34 ) THEN 50 ELSE + COUNT ( * ) * + ( - + 38 ) + + ( + 24 ) + 32 / - 15 END AS col1
----
-3714

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL + 33 - - ( + 91 ) + + + COALESCE ( COUNT( * ), - 89, ( + 7 ) + + 4 + - 10 + - 96 * + 68 * 53 )
----
125

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + 33 - - ( + 91 ) + + + COALESCE ( COUNT ( * ), - 89, ( + 7 ) + + 4 + - 10 + - 96 * + 68 * 53 )
----
125

onlyif mysql # DIV for integer division: 
query II rowsort label-4746
SELECT 80 DIV + 51 AS col0, ( - 47 ) + + - 92 * - - 81 * - 69
----
1
514141

skipif mysql # not compatible
query II rowsort label-4746
SELECT 80 / + 51 AS col0, ( - 47 ) + + - 92 * - - 81 * - 69
----
1
514141

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT COUNT( * ) * + - 94 + 59 * - 57
----
-3457

skipif mysql # not compatible
query I rowsort label-4747
SELECT COUNT ( * ) * + - 94 + 59 * - 57
----
-3457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT 58 DIV - - COUNT( 45 )
----
58

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT 58 / - - COUNT ( 45 )
----
58

query I rowsort
SELECT + NULLIF ( 25, - 95 ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL + 3 - COALESCE ( - - 47, - CAST( 69 AS SIGNED ) ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + 3 - COALESCE ( - - 47, - CAST ( 69 AS INTEGER ) ) col0
----
-44

query I rowsort
SELECT - 74 * 72
----
-5328

query I rowsort
SELECT 47 + + + 39
----
86

query II rowsort
SELECT ALL 32 * - + 7 * - 42 AS col2, - 91 AS col1
----
9408
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL + COUNT( DISTINCT 46 ) * - - MIN( DISTINCT - - COALESCE ( + 15, - - 32 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + COUNT ( DISTINCT 46 ) * - - MIN ( DISTINCT - - COALESCE ( + 15, - - 32 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT NULLIF ( + - 19, MIN( 78 ) ) + + - 3 * 86 AS col1
----
-277

skipif mysql # not compatible
query I rowsort label-4755
SELECT NULLIF ( + - 19, MIN ( 78 ) ) + + - 3 * 86 AS col1
----
-277

query II rowsort
SELECT ALL ( + 72 ) col1, 39
----
72
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT + 38 * - - 48 * - + COUNT( 14 ) AS col1
----
-1824

skipif mysql # not compatible
query I rowsort label-4757
SELECT + 38 * - - 48 * - + COUNT ( 14 ) AS col1
----
-1824

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4758
SELECT DISTINCT 16 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT 16 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 21 + + - 11 AS col0
----
10

query I rowsort
SELECT DISTINCT + 57 + - 79 + + 30
----
8

query II rowsort
SELECT - 74 + + 60, 16 + - 18 AS col0
----
-14
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT ALL - COUNT( * ) + 45 AS col2, SUM( ALL 87 )
----
44
87

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - COUNT ( * ) + 45 AS col2, SUM ( ALL 87 )
----
44
87

query II rowsort
SELECT 76 AS col0, 46 AS col0
----
76
46

query I rowsort
SELECT ALL 37 + 60 + - - 49
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL COUNT( * ) + 91 col1
----
92

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL COUNT ( * ) + 91 col1
----
92

query I rowsort
SELECT ALL + 28 + + - 56 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT - 10 * + + COUNT( * ) * - - 95
----
-950

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - 10 * + + COUNT ( * ) * - - 95
----
-950

query I rowsort
SELECT ALL 78 * 14 AS col0
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4769
SELECT DISTINCT 36 - + - 56 - NULLIF ( - ( - + 33 ), - 51 / + CAST( - ( - + COUNT( * ) ) AS SIGNED ) ) * 64 * 94, + COUNT( * ) - - SUM( + 28 ) * - - CAST( NULL AS SIGNED ) - - 18 / + COUNT( * ) AS col2
----
-198436
NULL

skipif mysql # not compatible
query II rowsort label-4769
SELECT DISTINCT 36 - + - 56 - NULLIF ( - ( - + 33 ), - 51 / + CAST ( - ( - + COUNT ( * ) ) AS INTEGER ) ) * 64 * 94, + COUNT ( * ) - - SUM ( + 28 ) * - - CAST ( NULL AS INTEGER ) - - 18 / + COUNT ( * ) AS col2
----
-198436
NULL

query II rowsort
SELECT + 61 AS col0, + 3 col0
----
61
3

query I rowsort
SELECT 6 * - - 37 AS col2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4772
SELECT ALL - 41 col1, 3 + - 49 * + 89 DIV 52 DIV SUM( 88 ) AS col2
----
-41
3

skipif mysql # not compatible
query II rowsort label-4772
SELECT ALL - 41 col1, 3 + - 49 * + 89 / 52 / SUM ( 88 ) AS col2
----
-41
3

query I rowsort
SELECT ALL - NULLIF ( + - 93, - AVG ( + 5 ) )
----
93

query I rowsort
SELECT 80 - + + 95 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query III rowsort label-4775
SELECT ALL - COUNT( * ), + 41 + - ( - 46 ) AS col1, 63 col1
----
-1
87
63

skipif mysql # not compatible
query III rowsort label-4775
SELECT ALL - COUNT ( * ), + 41 + - ( - 46 ) AS col1, 63 col1
----
-1
87
63

query I rowsort
SELECT 38 * - + 47 - + - 24 * - + 52 AS col1
----
-3034

query I rowsort
SELECT ALL - 66 * + 68
----
-4488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT 96 * COUNT( - + 78 ) DIV - + 18 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4778
SELECT 96 * COUNT ( - + 78 ) / - + 18 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT - 74 * - COALESCE ( - 89, + + 27 DIV + + 49 )
----
-6586

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - 74 * - COALESCE ( - 89, + + 27 / + + 49 )
----
-6586

query I rowsort
SELECT 41 + - 22
----
19

query I rowsort
SELECT CASE - - 87 WHEN + 61 + - 72 THEN - + 36 END * + 49 * + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4782
SELECT + 28 * + MAX( ALL 89 ), + COUNT( * ) AS col1
----
2492
1

skipif mysql # not compatible
query II rowsort label-4782
SELECT + 28 * + MAX ( ALL 89 ), + COUNT ( * ) AS col1
----
2492
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT DISTINCT - ( + - 79 ) * - NULLIF ( - 88, 45 ) * - + 61 * - 42 + - 75 - - COUNT( * ) DIV - 51 AS col1
----
17810949

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - ( + - 79 ) * - NULLIF ( - 88, 45 ) * - + 61 * - 42 + - 75 - - COUNT ( * ) / - 51 AS col1
----
17810949

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + 72 * + ( - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4784
SELECT + 72 * + ( - COUNT ( * ) )
----
-72

query II rowsort
SELECT 73 AS col1, - 21 AS col1
----
73
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT - ( - CAST( + - ( - 67 ) AS SIGNED ) ) * 20 + - COUNT( * )
----
1339

skipif mysql # not compatible
query I rowsort label-4786
SELECT - ( - CAST ( + - ( - 67 ) AS INTEGER ) ) * 20 + - COUNT ( * )
----
1339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT DISTINCT - 38 * 97 + - CAST( NULL AS SIGNED ) + - COUNT( * ) * 74 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - 38 * 97 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 74 * + 2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4788
SELECT ALL - 52, 92 * - CAST( NULL AS DECIMAL ) + 37 AS col1
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-4788
SELECT ALL - 52, 92 * - CAST ( NULL AS REAL ) + 37 AS col1
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - SUM( DISTINCT 89 ) * 39
----
-3471

skipif mysql # not compatible
query I rowsort label-4789
SELECT - SUM ( DISTINCT 89 ) * 39
----
-3471

query I rowsort
SELECT DISTINCT + 69 * + 86 AS col1
----
5934

query I rowsort
SELECT ALL - + 79 * - 22 AS col1
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT 41 * 64 * + COUNT( * ) AS col0
----
2624

skipif mysql # not compatible
query I rowsort label-4792
SELECT 41 * 64 * + COUNT ( * ) AS col0
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT 48 + - + 92 * - MIN( + - CASE + 73 WHEN + 30 THEN - 45 ELSE NULL END ) - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT 48 + - + 92 * - MIN ( + - CASE + 73 WHEN + 30 THEN - 45 ELSE NULL END ) - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT ALL 52 DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL 52 / 18
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + COUNT( * ) + - - 30 + + 84
----
115

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + COUNT ( * ) + - - 30 + + 84
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT - - 33, COUNT( ALL + 76 ) AS col1
----
33
1

skipif mysql # not compatible
query II rowsort label-4796
SELECT - - 33, COUNT ( ALL + 76 ) AS col1
----
33
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT ALL 75 + + 2 + - - 86 + + - COUNT( * ) + + - COUNT( * ) + - 40 * - 84 * - 35 AS col0, 76 * + 58 * - 28 + - - 93 * 33 AS col2
----
-117439
-120355

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL 75 + + 2 + - - 86 + + - COUNT ( * ) + + - COUNT ( * ) + - 40 * - 84 * - 35 AS col0, 76 * + 58 * - 28 + - - 93 * 33 AS col2
----
-117439
-120355

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + 44 * ( 99 ) + - NULLIF ( 40, ( - - CASE - COUNT( * ) WHEN - 10 THEN + 74 END ) )
----
4316

skipif mysql # not compatible
query I rowsort label-4798
SELECT + 44 * ( 99 ) + - NULLIF ( 40, ( - - CASE - COUNT ( * ) WHEN - 10 THEN + 74 END ) )
----
4316

query I rowsort
SELECT DISTINCT - 28 + - 17
----
-45

query II rowsort
SELECT ALL + 53 + - - 81 + 76 AS col2, - 46
----
210
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT + 11 - + COUNT( * ) * 17 + - - CAST( + 48 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 11 - + COUNT ( * ) * 17 + - - CAST ( + 48 AS INTEGER ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT 50 * + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT 50 * + COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT NULLIF ( + + 85, + - COUNT( ALL - 55 ) - 82 ) + 93 + - - 39 col0
----
217

skipif mysql # not compatible
query I rowsort label-4803
SELECT NULLIF ( + + 85, + - COUNT ( ALL - 55 ) - 82 ) + 93 + - - 39 col0
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL 31 + - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 31 + - COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT COUNT( * ) * 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT COUNT ( * ) * 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + ( - 98 ) - + SUM( - 69 ) - 17
----
-46

skipif mysql # not compatible
query I rowsort label-4806
SELECT + ( - 98 ) - + SUM ( - 69 ) - 17
----
-46

query I rowsort
SELECT ALL 78 * - 70
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT 37 - + + COUNT( DISTINCT + - 63 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT 37 - + + COUNT ( DISTINCT + - 63 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT COUNT( * ) * - 52 + - 68 col2
----
-120

skipif mysql # not compatible
query I rowsort label-4809
SELECT COUNT ( * ) * - 52 + - 68 col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT CASE SUM( DISTINCT + 23 ) WHEN 47 THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT CASE SUM ( DISTINCT + 23 ) WHEN 47 THEN 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + COUNT( * ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-4811
SELECT + COUNT ( * ) * 28
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT CASE COUNT( * ) WHEN - 6 - ( - 14 ) + + 56 * COUNT( - 53 ) / 54 * + SUM( + 29 ) * - 10 * - 61 + + 46 + + CAST( 8 AS SIGNED ) - + 72 * + COUNT( * ) THEN + - AVG ( - 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT CASE COUNT ( * ) WHEN - 6 - ( - 14 ) + + 56 * COUNT ( - 53 ) / 54 * + SUM ( + 29 ) * - 10 * - 61 + + 46 + + CAST ( 8 AS INTEGER ) - + 72 * + COUNT ( * ) THEN + - AVG ( - 50 ) END
----
NULL

query I rowsort
SELECT + 95 * - - 62 + + 41 AS col1
----
5931

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT - 60 DIV - + 58
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT - 60 / - + 58
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4815
SELECT 70 DIV 51 + 4 + + ( + SUM( DISTINCT 65 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4815
SELECT 70 / 51 + 4 + + ( + SUM ( DISTINCT 65 ) ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT DISTINCT 95 DIV + 20, 74 AS col2
----
4
74

skipif mysql # not compatible
query II rowsort label-4816
SELECT DISTINCT 95 / + 20, 74 AS col2
----
4
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL + 34 * CAST( - + 97 AS SIGNED )
----
-3298

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + 34 * CAST ( - + 97 AS INTEGER )
----
-3298

query I rowsort
SELECT DISTINCT 29 * + + 18 AS col0
----
522

query II rowsort
SELECT + 0 * - 61 AS col2, 66 AS col0
----
0
66

query I rowsort
SELECT + + ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT - 40 DIV 13 + + ( - COUNT( * ) ) + - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4821
SELECT - 40 / 13 + + ( - COUNT ( * ) ) + - - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL - - 31 * + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - - 31 * + COUNT ( * ) AS col2
----
31

query III rowsort
SELECT - 26 * - 93, - 13 * - ( 83 ) AS col1, - + ( 93 ) AS col2
----
2418
1079
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT ALL + + 24 * - 22 * + 31 + COUNT( * ) col1, 96 + - 88 * - 98
----
-16367
8720

skipif mysql # not compatible
query II rowsort label-4824
SELECT ALL + + 24 * - 22 * + 31 + COUNT ( * ) col1, 96 + - 88 * - 98
----
-16367
8720

query I rowsort
SELECT DISTINCT + 38 col2
----
38

query I rowsort
SELECT ALL + + 40 * + 95 + + 98 + + + 26 * - - ( - 72 )
----
2026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4827
SELECT ( 60 ) AS col0, + NULLIF ( - 96, 9 - 92 + + 53 ) - + 62 + + + COUNT( * ) * COALESCE ( - - 48, + CAST( + 41 AS SIGNED ) * SUM( DISTINCT 71 ) ) DIV 54 AS col0
----
60
-158

skipif mysql # not compatible
query II rowsort label-4827
SELECT ( 60 ) AS col0, + NULLIF ( - 96, 9 - 92 + + 53 ) - + 62 + + + COUNT ( * ) * COALESCE ( - - 48, + CAST ( + 41 AS INTEGER ) * SUM ( DISTINCT 71 ) ) / 54 AS col0
----
60
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - + 63 + - MAX( - - 33 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4828
SELECT - + 63 + - MAX ( - - 33 ) AS col1
----
-96

query I rowsort
SELECT DISTINCT + + COALESCE ( - 45, ( - 15 ), + - 46 ) + + + 62
----
17

query II rowsort
SELECT ALL + ( 60 ) AS col0, + 87
----
60
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT MIN( DISTINCT - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4831
SELECT MIN ( DISTINCT - 83 ) AS col2
----
-83

query I rowsort
SELECT - + 13 + - - 10 AS col2
----
-3

query I rowsort
SELECT ALL + + 39 + + 23 * + 3
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT - 95 + CAST( NULL AS SIGNED ) + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 95 + CAST ( NULL AS INTEGER ) + - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - + 69 - + NULLIF ( ( + 24 ), - - COUNT( * ) ) * + - 83 + + 98 * 55 AS col0
----
7313

skipif mysql # not compatible
query I rowsort label-4835
SELECT - + 69 - + NULLIF ( ( + 24 ), - - COUNT ( * ) ) * + - 83 + + 98 * 55 AS col0
----
7313

query I rowsort
SELECT ALL + - CASE 20 WHEN 81 THEN 12 * + - 87 * - CASE - ( - ( + + 73 ) ) WHEN 55 + + + 71 THEN - 53 + - 68 + 50 * 59 + - NULLIF ( + - ( - 58 ), 60 ) END END * + 2 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT DISTINCT - - 9 * - - 90 DIV + 9 col0
----
90

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT - - 9 * - - 90 / + 9 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL 32 - - - COUNT( * ) * + 69 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL 32 - - - COUNT ( * ) * + 69 AS col2
----
-37

query II rowsort
SELECT 39, + COALESCE ( COALESCE ( 15, + 73 ), 71 ) AS col2
----
39
15

query I rowsort
SELECT DISTINCT + 82 - - 50 AS col1
----
132

query II rowsort
SELECT ALL + 65 - - 19 * 93 + + ( - 26 ) AS col2, ( - 23 ) AS col1
----
1806
-23

query I rowsort
SELECT - ( + COALESCE ( + - 28, - 91, 58 ) )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4843
SELECT ALL 24 * - NULLIF ( + CAST( 22 AS SIGNED ), - 97 * 52 + + 50 ) * 81 * - ( - 90 ) AS col1, + 46 * + 51
----
-3849120
2346

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL 24 * - NULLIF ( + CAST ( 22 AS INTEGER ), - 97 * 52 + + 50 ) * 81 * - ( - 90 ) AS col1, + 46 * + 51
----
-3849120
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL COUNT( * ) * + - ( + - 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL COUNT ( * ) * + - ( + - 99 ) AS col2
----
99

query I rowsort
SELECT DISTINCT + 93 * - 23
----
-2139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT + CAST( NULL AS SIGNED ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT + CAST ( NULL AS INTEGER ) * 4
----
NULL

query I rowsort
SELECT + 53 * + ( - + 33 ) AS col1
----
-1749

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4848
SELECT + ( - 74 ) DIV + + CAST( + 85 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT + ( - 74 ) / + + CAST ( + 85 AS INTEGER ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT DISTINCT + - 47 DIV 75 + - 10 * - - 26 + + 85 col1
----
-175

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + - 47 / 75 + - 10 * - - 26 + + 85 col1
----
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT ALL - + 81 DIV - 44 + ( 17 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - + 81 / - 44 + ( 17 ) AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT ALL - + 82 DIV - 31 + 76
----
78

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - + 82 / - 31 + 76
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT + 68 - - 40 + - - COUNT( * ) AS col2, 7 AS col1
----
109
7

skipif mysql # not compatible
query II rowsort label-4852
SELECT + 68 - - 40 + - - COUNT ( * ) AS col2, 7 AS col1
----
109
7

query I rowsort
SELECT ALL + 63 * - + 77 col0
----
-4851

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT + + ( - - NULLIF ( 47, - 89 ) ) DIV 34 DIV + 76 * + 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-4854
SELECT + + ( - - NULLIF ( 47, - 89 ) ) / 34 / + 76 * + 65 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT - COUNT( * ) * 73 + + - 45 * - + 12 + + - 56 - - CASE - 28 WHEN MAX( + 25 ) THEN NULL WHEN + 78 THEN NULL WHEN 21 * + SUM( + 28 ) / + 33 THEN NULL ELSE COUNT( * ) END + 67 AS col0
----
479

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - COUNT ( * ) * 73 + + - 45 * - + 12 + + - 56 - - CASE - 28 WHEN MAX ( + 25 ) THEN NULL WHEN + 78 THEN NULL WHEN 21 * + SUM ( + 28 ) / + 33 THEN NULL ELSE COUNT ( * ) END + 67 AS col0
----
479

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT + 42, 51 + - + MAX( + 41 ) AS col2
----
42
10

skipif mysql # not compatible
query II rowsort label-4856
SELECT + 42, 51 + - + MAX ( + 41 ) AS col2
----
42
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT DISTINCT 79 * 59 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT 79 * 59 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4858
SELECT - - 97 * - 79 + - 29 DIV + COUNT( + - 18 ) + ( + 64 ) AS col0
----
-7628

skipif mysql # not compatible
query I rowsort label-4858
SELECT - - 97 * - 79 + - 29 / + COUNT ( + - 18 ) + ( + 64 ) AS col0
----
-7628

query I rowsort
SELECT - - 34 - + 64
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL + NULLIF ( 15, - - NULLIF ( + 23, + - 13 * MIN( DISTINCT + 57 ) + + COUNT( * ) ) ) * + 53 col1
----
795

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + NULLIF ( 15, - - NULLIF ( + 23, + - 13 * MIN ( DISTINCT + 57 ) + + COUNT ( * ) ) ) * + 53 col1
----
795

query I rowsort
SELECT - + 59 - 93 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL - MAX( ALL - + 21 ) * 94 - 62
----
1912

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - MAX ( ALL - + 21 ) * 94 - 62
----
1912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4863
SELECT - MAX( DISTINCT - - COALESCE ( + 75, 60 DIV + 41 ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4863
SELECT - MAX ( DISTINCT - - COALESCE ( + 75, 60 / + 41 ) ) AS col2
----
-75

query II rowsort
SELECT + 97 + - - 46 * + 69, 93 * + 51 AS col1
----
3271
4743

query I rowsort
SELECT 19 * - COALESCE ( + + 52, - 86 ) col1
----
-988

query I rowsort
SELECT ALL + 69 * - ( - + 88 )
----
6072

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT - 36 col2, 10 * + COUNT( * ) AS col0
----
-36
10

skipif mysql # not compatible
query II rowsort label-4867
SELECT - 36 col2, 10 * + COUNT ( * ) AS col0
----
-36
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT COUNT( * ) + + 57 + - 45 col0
----
13

skipif mysql # not compatible
query I rowsort label-4868
SELECT COUNT ( * ) + + 57 + - 45 col0
----
13

query II rowsort
SELECT - 39 col0, 97 * 40 AS col0
----
-39
3880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4870
SELECT 84 DIV COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4870
SELECT 84 / COUNT ( * ) AS col2
----
84

query I rowsort
SELECT ALL + 78 * - + 96 col0
----
-7488

query I rowsort
SELECT 61 - 1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - 6 * COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - 6 * COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT 71 + - 89 * 39 AS col2
----
-3400

query I rowsort
SELECT 6 * - 30 AS col1
----
-180

query I rowsort
SELECT 9 * + 63 AS col1
----
567

query I rowsort
SELECT 80 + + 94
----
174

query I rowsort
SELECT ALL + 6 * - 9 col0
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-4879
SELECT 99 DIV + ( - ( - 54 ) ) AS col0, + 27 AS col2
----
1
27

skipif mysql # not compatible
query II rowsort label-4879
SELECT 99 / + ( - ( - 54 ) ) AS col0, + 27 AS col2
----
1
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4880
SELECT ALL 95 DIV COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 95 / COUNT ( * ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4881
SELECT 5 - 10 + 1 DIV - - SUM( + 60 ) * - - 6 + - NULLIF ( - CAST( - SUM( ALL 54 ) AS SIGNED ), MAX( - 11 ) ) * - - 54 * - COUNT( * ) AS col2
----
2911

skipif mysql # not compatible
query I rowsort label-4881
SELECT 5 - 10 + 1 / - - SUM ( + 60 ) * - - 6 + - NULLIF ( - CAST ( - SUM ( ALL 54 ) AS INTEGER ), MAX ( - 11 ) ) * - - 54 * - COUNT ( * ) AS col2
----
2911

query I rowsort
SELECT 9 * - - 61 * + + 63
----
34587

query I rowsort
SELECT 80 + - - 62
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT COUNT( * ) + 63 + + 99 - - + 66 * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT COUNT ( * ) + 63 + + 99 - - + 66 * - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT 25 + 15 + MAX( ALL + 67 )
----
107

skipif mysql # not compatible
query I rowsort label-4885
SELECT 25 + 15 + MAX ( ALL + 67 )
----
107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4886
SELECT - 23 * 19 * + CAST( NULL AS DECIMAL ) * - 7 + + 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT - 23 * 19 * + CAST ( NULL AS REAL ) * - 7 + + 0 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT - 48 * + + 19 * + 22 * ( - 45 ) + - 17 * + - 66 * - + CAST( NULL AS SIGNED ) + COALESCE ( 14, - 62 ) + + - MAX( ALL 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT - 48 * + + 19 * + 22 * ( - 45 ) + - 17 * + - 66 * - + CAST ( NULL AS INTEGER ) + COALESCE ( 14, - 62 ) + + - MAX ( ALL 90 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4888
SELECT 4 DIV + 8 + + ( + 68 ) + - 72 * 21 AS col0, 73
----
-1444
73

skipif mysql # not compatible
query II rowsort label-4888
SELECT 4 / + 8 + + ( + 68 ) + - 72 * 21 AS col0, 73
----
-1444
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL + - 72 + CASE - + 42 WHEN 58 THEN - 68 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL + - 72 + CASE - + 42 WHEN 58 THEN - 68 ELSE NULL END + - COUNT ( * )
----
NULL

query III rowsort
SELECT + - 9 col1, ( + 67 ) * + 72, - 30 col1
----
-9
4824
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT ALL - 43 + - + 88 + COUNT( * ) * - - ( - MIN( DISTINCT 12 ) ) DIV - COUNT( * ) - 95 + - - 60 * + 31
----
1646

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL - 43 + - + 88 + COUNT ( * ) * - - ( - MIN ( DISTINCT 12 ) ) / - COUNT ( * ) - 95 + - - 60 * + 31
----
1646

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - - CASE 44 WHEN + 41 * 57 THEN 73 ELSE - 67 * - - COUNT( DISTINCT + 4 ) END
----
-67

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - - CASE 44 WHEN + 41 * 57 THEN 73 ELSE - 67 * - - COUNT ( DISTINCT + 4 ) END
----
-67

query I rowsort
SELECT - 51 * - 33 + 40 AS col0
----
1723

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4894
SELECT + COUNT( * ) DIV + + 24 AS col0, + 41
----
0
41

skipif mysql # not compatible
query II rowsort label-4894
SELECT + COUNT ( * ) / + + 24 AS col0, + 41
----
0
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT + 80 * + 45 + - CAST( NULL AS SIGNED ) * + NULLIF ( - ( - 30 ), + 83 ) * + 81 + - SUM( DISTINCT - 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT + 80 * + 45 + - CAST ( NULL AS INTEGER ) * + NULLIF ( - ( - 30 ), + 83 ) * + 81 + - SUM ( DISTINCT - 38 ) AS col1
----
NULL

query II rowsort
SELECT + + 73, 68 * - + 98 AS col1
----
73
-6664

query I rowsort
SELECT 78 + + 11 + 14
----
103

query I rowsort
SELECT ALL 98 - ( 29 )
----
69

query I rowsort
SELECT 65 * - - 81 + - 44
----
5221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT 8 * 66 * + 59 * + 82 - + - COUNT( * ) + + 42 + + + COALESCE ( + + COUNT( + 58 ), - 56 ) + + NULLIF ( 66, - 77 ) * - CAST( + COUNT( * ) AS SIGNED ) * 99 + - COUNT( * )
----
2547973

skipif mysql # not compatible
query I rowsort label-4900
SELECT 8 * 66 * + 59 * + 82 - + - COUNT ( * ) + + 42 + + + COALESCE ( + + COUNT ( + 58 ), - 56 ) + + NULLIF ( 66, - 77 ) * - CAST ( + COUNT ( * ) AS INTEGER ) * 99 + - COUNT ( * )
----
2547973

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE COUNT( + - 77 ) END + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4901
SELECT CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE COUNT ( + - 77 ) END + 32 AS col0
----
33

query I rowsort
SELECT + 82 * 64 AS col0
----
5248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL - CAST( + 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - CAST ( + 45 AS INTEGER )
----
-45

query I rowsort
SELECT + 76 * - 18 + - + 95 AS col1
----
-1463

query I rowsort
SELECT ALL - 47 - COALESCE ( + 17, 63 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT CASE - 76 WHEN 90 + - 58 THEN - 78 ELSE 40 END * 51 DIV + 79 col1
----
25

skipif mysql # not compatible
query I rowsort label-4906
SELECT CASE - 76 WHEN 90 + - 58 THEN - 78 ELSE 40 END * 51 / + 79 col1
----
25

query I rowsort
SELECT ALL ( + + 5 ) * + 63 AS col0
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT 34 * MIN( 41 )
----
1394

skipif mysql # not compatible
query I rowsort label-4908
SELECT 34 * MIN ( 41 )
----
1394

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT - + 21 AS col1, - MAX( DISTINCT + 17 ) AS col2
----
-21
-17

skipif mysql # not compatible
query II rowsort label-4909
SELECT - + 21 AS col1, - MAX ( DISTINCT + 17 ) AS col2
----
-21
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT CAST( MAX( DISTINCT - 75 ) AS SIGNED ) + + - MAX( - CASE + 77 WHEN - + 85 THEN - - 88 WHEN - 57 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT CAST ( MAX ( DISTINCT - 75 ) AS INTEGER ) + + - MAX ( - CASE + 77 WHEN - + 85 THEN - - 88 WHEN - 57 THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 14 * + 11 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - 52 * + 53 + + COUNT( * )
----
-2755

skipif mysql # not compatible
query I rowsort label-4912
SELECT - 52 * + 53 + + COUNT ( * )
----
-2755

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT 78 * - 56 * + - COUNT( * ) col2
----
4368

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT 78 * - 56 * + - COUNT ( * ) col2
----
4368

query I rowsort
SELECT 90 * 48 col1
----
4320

query I rowsort
SELECT DISTINCT - 29 + + 7
----
-22

query I rowsort
SELECT ALL + ( 28 ) + - 62 AS col1
----
-34

query I rowsort
SELECT ALL 65 + + + COALESCE ( 26, 80, + - 65 ) col0
----
91

query I rowsort
SELECT 15 + + 34 * 84 col0
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - COUNT( - 13 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4919
SELECT - COUNT ( - 13 ) AS col2
----
-1

query I rowsort
SELECT 25 + 4
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL + MIN( ALL - 10 ) + COUNT( * ) + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + MIN ( ALL - 10 ) + COUNT ( * ) + + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT - COUNT( ALL 68 ) AS col0, - COALESCE ( + 20, + - 20 + - - 48 ) AS col1
----
-1
-20

skipif mysql # not compatible
query II rowsort label-4922
SELECT - COUNT ( ALL 68 ) AS col0, - COALESCE ( + 20, + - 20 + - - 48 ) AS col1
----
-1
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT 34 DIV 8 * - 29 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-4923
SELECT 34 / 8 * - 29 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL - 12 + + - MAX( - 26 )
----
14

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - 12 + + - MAX ( - 26 )
----
14

query II rowsort
SELECT 40 * - 5, 50 + 37 + 45 AS col1
----
-200
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT - COUNT( * ) * + 27 * MIN( + + 24 )
----
-648

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - COUNT ( * ) * + 27 * MIN ( + + 24 )
----
-648

query II rowsort
SELECT DISTINCT 64 + - - ( - 86 ), 39 AS col1
----
-22
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL COUNT( 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL COUNT ( 90 ) AS col1
----
1

query I rowsort
SELECT ALL + 61 * 45 + - 82 AS col0
----
2663

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ( - ( - - MAX( - + 56 ) ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4930
SELECT ( - ( - - MAX ( - + 56 ) ) ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT ALL - 96 * + 69 + - 46 DIV - 64 * ( - COUNT( * ) ) AS col0
----
-6624

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - 96 * + 69 + - 46 / - 64 * ( - COUNT ( * ) ) AS col0
----
-6624

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT DISTINCT - 14 DIV + - 45 * - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - 14 / + - 45 * - 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT 97 * - 76 - + 3 * + 56 - - 8 + - + 81 * - + ( - COUNT( * ) )
----
-7613

skipif mysql # not compatible
query I rowsort label-4933
SELECT 97 * - 76 - + 3 * + 56 - - 8 + - + 81 * - + ( - COUNT ( * ) )
----
-7613

query I rowsort
SELECT + - NULLIF ( + - 99, - 50 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4935
SELECT + 39 * - COALESCE ( + 12, ( + 56 ), - 37 ) DIV 4 * + + 2 + 0 + + - 81 + + 41 + + 24 + + - COUNT( * ) DIV 13 + + - 97 AS col2, + 10 + + + MAX( 53 )
----
-347
63

skipif mysql # not compatible
query II rowsort label-4935
SELECT + 39 * - COALESCE ( + 12, ( + 56 ), - 37 ) / 4 * + + 2 + 0 + + - 81 + + 41 + + 24 + + - COUNT ( * ) / 13 + + - 97 AS col2, + 10 + + + MAX ( 53 )
----
-347
63

query I rowsort
SELECT ALL - + ( 2 ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL COUNT( * ) * + 69 + 10 * - 94 AS col2
----
-871

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL COUNT ( * ) * + 69 + 10 * - 94 AS col2
----
-871

query I rowsort
SELECT - 75 * - 74
----
5550

query I rowsort
SELECT ALL + + ( - + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT - NULLIF ( + COUNT( * ), 30 ) * 35 - 44 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 30 ) * 35 - 44 AS col1
----
-79

query I rowsort
SELECT + 2 * + 38 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4942
SELECT ALL - - ( - 31 ) * 90 DIV - - 12 * COUNT( * )
----
-232

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - - ( - 31 ) * 90 / - - 12 * COUNT ( * )
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - + MIN( ALL + 77 ) * + 55 + COUNT( * ) AS col0
----
-4234

skipif mysql # not compatible
query I rowsort label-4943
SELECT - + MIN ( ALL + 77 ) * + 55 + COUNT ( * ) AS col0
----
-4234

query I rowsort
SELECT + - ( + ( 65 ) )
----
-65

query I rowsort
SELECT + 16 - 73
----
-57

query I rowsort
SELECT + 43 * + - 29 AS col1
----
-1247

query I rowsort
SELECT - 55 * 86 col0
----
-4730

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT 67 DIV 64 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT 67 / 64 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL 2 * + NULLIF ( - + COALESCE ( - MIN( ALL 8 ), + + 53 * 87 + - COUNT( * ) + - + ( - + NULLIF ( + 78, 4 + 14 ) ), 56 * 9 + + + 34 ), - NULLIF ( + 7, 41 ) * + + 6 * - + NULLIF ( + - 35, - + 80 ) * + + 74 * + ( + - 14 ) * + 26 + + COUNT( * ) + + + ( - - ( + 76 ) ) * - 45 )
----
16

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL 2 * + NULLIF ( - + COALESCE ( - MIN ( ALL 8 ), + + 53 * 87 + - COUNT ( * ) + - + ( - + NULLIF ( + 78, 4 + 14 ) ), 56 * 9 + + + 34 ), - NULLIF ( + 7, 41 ) * + + 6 * - + NULLIF ( + - 35, - + 80 ) * + + 74 * + ( + - 14 ) * + 26 + + COUNT ( * ) + + + ( - - ( + 76 ) ) * - 45 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT + COUNT( * ) DIV - + ( + + 57 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COUNT ( * ) / - + ( + + 57 ) AS col0
----
0

query I rowsort
SELECT - CASE 97 WHEN 29 THEN - 30 END
----
NULL

query I rowsort
SELECT ALL 66 * 80
----
5280

query I rowsort
SELECT + 48 + - - 11
----
59

query I rowsort
SELECT + 53 * + - NULLIF ( - ( - 8 ), 3 + 27 + + - 96 * ( + 36 ) ) AS col2
----
-424

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4955
SELECT ALL 59 + - 54 * - + ( - ( - + 69 ) ) * + + 47 + + CAST( NULL AS DECIMAL ) / MAX( DISTINCT + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 59 + - 54 * - + ( - ( - + 69 ) ) * + + 47 + + CAST ( NULL AS REAL ) / MAX ( DISTINCT + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT + 65 + 94 + - - COALESCE ( CASE WHEN + 5 NOT IN ( 98, - CASE - 23 WHEN - 35 THEN + ( + - COUNT( * ) ) + + - 8 + CASE - 29 WHEN - - 77 THEN NULL WHEN - 0 THEN + 69 END WHEN + 60 * - 65 THEN + 44 * - - 50 * + 90 * - + ( + 51 ) + + 19 ELSE + 71 END * + 79, - - ( 23 ) + + + 49 ) THEN + 72 ELSE NULL END, 91 + 73 * - 57 ) + + 65 / + - ( - + CASE + 51 WHEN 67 THEN 52 / + 10 WHEN + 38 THEN NULL ELSE NULL END ) AS col0, - 15 * - - 74 * + 12 AS col1
----
NULL
-13320

skipif mysql # not compatible
query II rowsort label-4956
SELECT + 65 + 94 + - - COALESCE ( CASE WHEN + 5 NOT IN ( 98, - CASE - 23 WHEN - 35 THEN + ( + - COUNT ( * ) ) + + - 8 + CASE - 29 WHEN - - 77 THEN NULL WHEN - 0 THEN + 69 END WHEN + 60 * - 65 THEN + 44 * - - 50 * + 90 * - + ( + 51 ) + + 19 ELSE + 71 END * + 79, - - ( 23 ) + + + 49 ) THEN + 72 ELSE NULL END, 91 + 73 * - 57 ) + + 65 / + - ( - + CASE + 51 WHEN 67 THEN 52 / + 10 WHEN + 38 THEN NULL ELSE NULL END ) AS col0, - 15 * - - 74 * + 12 AS col1
----
NULL
-13320

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT 1 AS col0, - AVG ( DISTINCT - 3 ) / 55 * COALESCE ( - ( ( + + 10 ) ), - 70 + + 69 ) * + - 42 + - 67 + CASE - 23 WHEN + 81 * - 36 THEN - + 44 + + + COUNT( * ) WHEN + MAX( ALL - 88 ) THEN NULL ELSE NULL END * + 13 + + 50
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4957
SELECT 1 AS col0, - AVG ( DISTINCT - 3 ) / 55 * COALESCE ( - ( ( + + 10 ) ), - 70 + + 69 ) * + - 42 + - 67 + CASE - 23 WHEN + 81 * - 36 THEN - + 44 + + + COUNT ( * ) WHEN + MAX ( ALL - 88 ) THEN NULL ELSE NULL END * + 13 + + 50
----
1
NULL

query I rowsort
SELECT + 41 + - 75 AS col0
----
-34

query II rowsort
SELECT DISTINCT 70 AS col0, + 0 + + 70 * - 21
----
70
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT COUNT( ALL + - ( + 71 ) ) + + 44 * + - 6 * - 69 * 34 * 70 AS col0
----
43354081

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT COUNT ( ALL + - ( + 71 ) ) + + 44 * + - 6 * - 69 * 34 * 70 AS col0
----
43354081

query I rowsort
SELECT ALL 23 + + 23 - - - 2
----
44

query I rowsort
SELECT + 94 + - 80
----
14

query I rowsort
SELECT ALL + 44 + + - 46 * + 70
----
-3176

query I rowsort
SELECT DISTINCT COALESCE ( - 39, 68, + - 19 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL - COUNT( * ) - - 24 * + 63 * 55 + + 38
----
83197

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - COUNT ( * ) - - 24 * + 63 * 55 + + 38
----
83197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4966
SELECT DISTINCT 5 AS col1, + NULLIF ( + + 95, + MIN( + CAST( NULL AS SIGNED ) ) ) * + - 81
----
5
-7695

skipif mysql # not compatible
query II rowsort label-4966
SELECT DISTINCT 5 AS col1, + NULLIF ( + + 95, + MIN ( + CAST ( NULL AS INTEGER ) ) ) * + - 81
----
5
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + MAX( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4967
SELECT + MAX ( - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT - + ( - + COUNT( * ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT - + ( - + COUNT ( * ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4969
SELECT ALL - - 0 DIV - 28 + - - 79 - - CAST( - 1 AS SIGNED ) * MIN( COALESCE ( 24, - - CAST( NULL AS SIGNED ), 39 + + 90 ) ) * + ( 49 ) AS col1, 75
----
-1097
75

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL - - 0 / - 28 + - - 79 - - CAST ( - 1 AS INTEGER ) * MIN ( COALESCE ( 24, - - CAST ( NULL AS INTEGER ), 39 + + 90 ) ) * + ( 49 ) AS col1, 75
----
-1097
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + ( + + 99 ) * + + COUNT( * ) * - + 48 + + 13 AS col2
----
-4739

skipif mysql # not compatible
query I rowsort label-4970
SELECT + ( + + 99 ) * + + COUNT ( * ) * - + 48 + + 13 AS col2
----
-4739

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT 60 * COUNT( DISTINCT 36 ) + - 11 + - ( + + 28 ) + 44 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4971
SELECT 60 * COUNT ( DISTINCT 36 ) + - 11 + - ( + + 28 ) + 44 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL - + COUNT( * ) * 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - + COUNT ( * ) * 32 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT ALL + 25 DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + 25 / + 55 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT DISTINCT + - ( + 55 ) DIV - + ( 41 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + - ( + 55 ) / - + ( 41 ) * COUNT ( * )
----
1

query I rowsort
SELECT - + 34 * 88
----
-2992

query I rowsort
SELECT - 9 * 6
----
-54

query I rowsort
SELECT - - 70 + - 96 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT ALL + 7 AS col2, + 72 * ( COUNT( * ) )
----
7
72

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL + 7 AS col2, + 72 * ( COUNT ( * ) )
----
7
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4979
SELECT - CAST( NULL AS SIGNED ) AS col1, COALESCE ( - 72, + + ( - CAST( - 64 AS SIGNED ) ) )
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-4979
SELECT - CAST ( NULL AS INTEGER ) AS col1, COALESCE ( - 72, + + ( - CAST ( - 64 AS INTEGER ) ) )
----
NULL
-72

query I rowsort
SELECT ALL - 47 * 76
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT 50 * + 13 + COUNT( * )
----
651

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT 50 * + 13 + COUNT ( * )
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL + COALESCE ( + 54, COUNT( * ) + ( 2 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL + COALESCE ( + 54, COUNT ( * ) + ( 2 ) ) AS col0
----
54

query I rowsort
SELECT + 44 * + 65 + + + 3
----
2863

query I rowsort
SELECT NULLIF ( 17, + 43 - + + ( - - 22 ) / - 58 ) col0
----
17

query I rowsort
SELECT DISTINCT 37 * 31 * - - 74 + + 90 AS col0
----
84968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT DISTINCT + 20 * - COUNT( * ) + + COALESCE ( - COUNT( * ), - - 15 * - ( + - 52 ) * + 77 DIV + MAX( - 31 ) + + - ( - - 12 ) - 7 + - COUNT( * ) * + 37, + 92 DIV + 44 * - 27 * + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT + 20 * - COUNT ( * ) + + COALESCE ( - COUNT ( * ), - - 15 * - ( + - 52 ) * + 77 / + MAX ( - 31 ) + + - ( - - 12 ) - 7 + - COUNT ( * ) * + 37, + 92 / + 44 * - 27 * + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + 54 + + 88 * + MAX( + 29 ) AS col1
----
2606

skipif mysql # not compatible
query I rowsort label-4987
SELECT + 54 + + 88 * + MAX ( + 29 ) AS col1
----
2606

query I rowsort
SELECT - 0 * + + 36
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4989
SELECT ALL COALESCE ( + 69, + - 29 * + NULLIF ( - NULLIF ( CAST( NULL AS SIGNED ), - - 10 + + 3 ), 81 ), - COALESCE ( - - NULLIF ( - 6, CAST( - 70 AS SIGNED ) ), CAST( 44 AS SIGNED ) * + + 9 ) - + 39 + - 98 + 23 DIV - 3 DIV + 80 + + 10 ) DIV - - NULLIF ( - + 79, - - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COALESCE ( + 69, + - 29 * + NULLIF ( - NULLIF ( CAST ( NULL AS INTEGER ), - - 10 + + 3 ), 81 ), - COALESCE ( - - NULLIF ( - 6, CAST ( - 70 AS INTEGER ) ), CAST ( 44 AS INTEGER ) * + + 9 ) - + 39 + - 98 + 23 / - 3 / + 80 + + 10 ) / - - NULLIF ( - + 79, - - 31 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT - 18 DIV - 4
----
4

skipif mysql # not compatible
query I rowsort label-4990
SELECT - 18 / - 4
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT ALL + 12 + - NULLIF ( + 22, + 5 ) * - - 88 AS col0, COUNT( * )
----
-1924
1

skipif mysql # not compatible
query II rowsort label-4991
SELECT ALL + 12 + - NULLIF ( + 22, + 5 ) * - - 88 AS col0, COUNT ( * )
----
-1924
1

query II rowsort
SELECT - ( + 84 ) AS col1, 84 AS col1
----
-84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - + COALESCE ( + 24, + 98 * - MIN( + - 4 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4993
SELECT - + COALESCE ( + 24, + 98 * - MIN ( + - 4 ) ) AS col2
----
-24

query I rowsort
SELECT ALL 24 - - 36 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + 7 - - - 63 * - 39 + + - COUNT( * )
----
2463

skipif mysql # not compatible
query I rowsort label-4995
SELECT + 7 - - - 63 * - 39 + + - COUNT ( * )
----
2463

query I rowsort
SELECT 94 * - 94 * - 47
----
415292

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT ALL 54 DIV + 1 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL 54 / + 1 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4998
SELECT 73 DIV COUNT( * ) + 84
----
157

skipif mysql # not compatible
query I rowsort label-4998
SELECT 73 / COUNT ( * ) + 84
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - 93 * + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4999
SELECT - 93 * + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT - ( + 0 ) * COUNT( ALL - ( + 2 ) ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT - ( + 0 ) * COUNT ( ALL - ( + 2 ) ) + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5001
SELECT ALL - 77 + - COALESCE ( 77, - - 85 ) + - + 67 + - 32 * ( + + 46 ) * - 26 * ( - - COUNT( * ) ) * - - 75 * + + 4 - + + COALESCE ( - COALESCE ( - - CAST( - 3 AS SIGNED ), - 43 + + 20 ), + ( - - CAST( + + 80 AS SIGNED ) ), 34 + + COUNT( * ) + + 73 ) DIV + - 46 * - + MIN( - 71 ) * ( ( + 51 ) ) - - 57 - + 11
----
11481425

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - 77 + - COALESCE ( 77, - - 85 ) + - + 67 + - 32 * ( + + 46 ) * - 26 * ( - - COUNT ( * ) ) * - - 75 * + + 4 - + + COALESCE ( - COALESCE ( - - CAST ( - 3 AS INTEGER ), - 43 + + 20 ), + ( - - CAST ( + + 80 AS INTEGER ) ), 34 + + COUNT ( * ) + + 73 ) / + - 46 * - + MIN ( - 71 ) * ( ( + 51 ) ) - - 57 - + 11
----
11481425

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5002
SELECT + CAST( - - 22 AS SIGNED ) DIV - - 47 * + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT + CAST ( - - 22 AS INTEGER ) / - - 47 * + 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - 14 * + MIN( ALL + - ( + 71 ) ) + 38
----
1032

skipif mysql # not compatible
query I rowsort label-5003
SELECT - 14 * + MIN ( ALL + - ( + 71 ) ) + 38
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL 96 + + COALESCE ( + COUNT( * ), - 17 ) * 56
----
152

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL 96 + + COALESCE ( + COUNT ( * ), - 17 ) * 56
----
152

query I rowsort
SELECT DISTINCT 55 * - ( 62 )
----
-3410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5006
SELECT ALL - ( ( COUNT( * ) ) ) AS col2, - 96 * - + 22 DIV 49 DIV ( - + 68 ) + MAX( ALL + ( + 20 ) ) col2
----
-1
20

skipif mysql # not compatible
query II rowsort label-5006
SELECT ALL - ( ( COUNT ( * ) ) ) AS col2, - 96 * - + 22 / 49 / ( - + 68 ) + MAX ( ALL + ( + 20 ) ) col2
----
-1
20

query II rowsort
SELECT + 87 AS col2, 52
----
87
52

query I rowsort
SELECT ALL 49 + + + 50 * - 90
----
-4451

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT MIN( + ( - - 45 ) ) + + - 17
----
28

skipif mysql # not compatible
query I rowsort label-5009
SELECT MIN ( + ( - - 45 ) ) + + - 17
----
28

query II rowsort
SELECT 88, + 71 AS col0
----
88
71

query I rowsort
SELECT 15 * + + 36
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL - MAX( - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - MAX ( - 80 )
----
80

query I rowsort
SELECT 5 * + ( + 9 ) * + - 52 AS col0
----
-2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT DISTINCT + ( + - 54 ) * + CAST( - + COUNT( * ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + ( + - 54 ) * + CAST ( - + COUNT ( * ) AS INTEGER )
----
54

query II rowsort
SELECT DISTINCT 14 AS col0, 12 AS col2
----
14
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT ALL + 81 - - CASE CAST( NULL AS SIGNED ) WHEN - + 48 * - - 58 THEN + CASE 95 WHEN AVG ( + 80 ) * + 97 + 99 + + 93 THEN NULL WHEN + 92 THEN - 85 * 65 END WHEN COUNT( * ) THEN + NULLIF ( + 96, + - 79 / 85 * + + COALESCE ( + - 7, + - ( - COUNT( * ) ) + 73 ) * + 42 + COUNT( + + 82 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + 81 - - CASE CAST ( NULL AS INTEGER ) WHEN - + 48 * - - 58 THEN + CASE 95 WHEN AVG ( + 80 ) * + 97 + 99 + + 93 THEN NULL WHEN + 92 THEN - 85 * 65 END WHEN COUNT ( * ) THEN + NULLIF ( + 96, + - 79 / 85 * + + COALESCE ( + - 7, + - ( - COUNT ( * ) ) + 73 ) * + 42 + COUNT ( + + 82 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT + 99 * + - 89 AS col2
----
-8811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT COUNT( * ) * COALESCE ( - + 18, + 94 * - 38 DIV - 89 + + 28 + + 79 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5018
SELECT COUNT ( * ) * COALESCE ( - + 18, + 94 * - 38 / - 89 + + 28 + + 79 ) AS col0
----
-18

query I rowsort
SELECT 14 + 29
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL + ( - - COUNT( * ) ) - 70 * - 36 AS col0
----
2521

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + ( - - COUNT ( * ) ) - 70 * - 36 AS col0
----
2521

query I rowsort
SELECT 30 + + 48 * 46 AS col1
----
2238

query I rowsort
SELECT 33 * 12
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT COUNT( * ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-5023
SELECT COUNT ( * ) + - 19
----
-18

query I rowsort
SELECT 49 + + 44
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT DISTINCT - 37 DIV - 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT - 37 / - 30 AS col0
----
1

query I rowsort
SELECT 49 * 69
----
3381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5027
SELECT 84 + CASE 47 WHEN 77 THEN - ( - MIN( + 53 ) ) WHEN 50 * + 67 THEN 21 * + CAST( - NULLIF ( NULLIF ( - 76, - 17 * 98 ), + 81 + - 21 ) AS SIGNED ) ELSE 27 END
----
111

skipif mysql # not compatible
query I rowsort label-5027
SELECT 84 + CASE 47 WHEN 77 THEN - ( - MIN ( + 53 ) ) WHEN 50 * + 67 THEN 21 * + CAST ( - NULLIF ( NULLIF ( - 76, - 17 * 98 ), + 81 + - 21 ) AS INTEGER ) ELSE 27 END
----
111

query I rowsort
SELECT ALL 56 * 98
----
5488

query I rowsort
SELECT DISTINCT 15 * + 43
----
645

query I rowsort
SELECT 58 * 19 AS col2
----
1102

query I rowsort
SELECT CASE - 10 WHEN + 18 * 53 THEN NULL WHEN 41 THEN + 94 WHEN 88 THEN + 7 + 27 END + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT SUM( - 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5032
SELECT SUM ( - 76 ) AS col2
----
-76

query I rowsort
SELECT DISTINCT 50 + - 65 * 47
----
-3005

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT 56 DIV - 42 + + 0
----
-1

skipif mysql # not compatible
query I rowsort label-5034
SELECT 56 / - 42 + + 0
----
-1

query I rowsort
SELECT ALL 14 + + 41 AS col1
----
55

query I rowsort
SELECT ALL 79 + ( + 78 ) * 8
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT - MAX( 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT - MAX ( 42 ) AS col2
----
-42

query I rowsort
SELECT ALL 96 + - 45
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT CAST( NULL AS SIGNED ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT CAST ( NULL AS INTEGER ) * 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT CAST( NULL AS SIGNED ) / 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT CAST ( NULL AS INTEGER ) / 93 AS col0
----
NULL

query I rowsort
SELECT 93 * 98 + 87
----
9201

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5042
SELECT 28 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT 28 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5043
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * 81
----
NULL

query I rowsort
SELECT ALL ( - COALESCE ( + 66, + 16 ) ) * 69
----
-4554

query I rowsort
SELECT DISTINCT 48 - + 49 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT 18 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT 18 / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT 24 * - COALESCE ( + 39, + 44 - + 40, - NULLIF ( - COUNT( * ), 96 ) * 99 )
----
-936

skipif mysql # not compatible
query I rowsort label-5047
SELECT 24 * - COALESCE ( + 39, + 44 - + 40, - NULLIF ( - COUNT ( * ), 96 ) * 99 )
----
-936

query I rowsort
SELECT ALL 0 * - 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL - SUM( DISTINCT - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - SUM ( DISTINCT - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT 40 + - ( - 97 + 47 ) * ( + COALESCE ( + 76, + MAX( - 45 ) ) )
----
3840

skipif mysql # not compatible
query I rowsort label-5050
SELECT 40 + - ( - 97 + 47 ) * ( + COALESCE ( + 76, + MAX ( - 45 ) ) )
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT CASE + COUNT( * ) WHEN 49 THEN - ( 88 ) + - 18 END - 54 / + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT CASE + COUNT ( * ) WHEN 49 THEN - ( 88 ) + - 18 END - 54 / + 66 col1
----
NULL

query I rowsort
SELECT 14 * - 85 AS col2
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT 50 + 82 * ( + 20 + - 79 * + COUNT( * ) ) AS col1
----
-4788

skipif mysql # not compatible
query I rowsort label-5053
SELECT 50 + 82 * ( + 20 + - 79 * + COUNT ( * ) ) AS col1
----
-4788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL COALESCE ( - 18, 86 + NULLIF ( - COUNT( * ) + 13, - 15 / 16 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL COALESCE ( - 18, 86 + NULLIF ( - COUNT ( * ) + 13, - 15 / 16 ) )
----
-18

query I rowsort
SELECT ALL + - 85 * - 55
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT MAX( DISTINCT - 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT MAX ( DISTINCT - 25 ) AS col0
----
-25

query I rowsort
SELECT ALL + 29 * 61
----
1769

query I rowsort
SELECT - 30 * 62
----
-1860

query I rowsort
SELECT + 69 * 40 AS col1
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + SUM( 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5061
SELECT + SUM ( 46 ) AS col2
----
46

query I rowsort
SELECT ALL + - 94 * 60 col2
----
-5640

query I rowsort
SELECT DISTINCT - + 43 * + 64
----
-2752

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT - 96 DIV - 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5064
SELECT - 96 / - 71 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL + MAX( - 63 ) + 92
----
29

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + MAX ( - 63 ) + 92
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT DISTINCT - CASE - CAST( 94 AS SIGNED ) WHEN 92 - + 56 * 29 THEN NULL WHEN + 39 THEN NULL ELSE 79 * 86 END
----
-6794

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - CASE - CAST ( 94 AS INTEGER ) WHEN 92 - + 56 * 29 THEN NULL WHEN + 39 THEN NULL ELSE 79 * 86 END
----
-6794

query I rowsort
SELECT - - 97 * 81
----
7857

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT ALL 72 DIV - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 72 / - COUNT ( * ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - + NULLIF ( 18, COALESCE ( 22, - COUNT( * ) ) * + 70 ) * 33
----
-594

skipif mysql # not compatible
query I rowsort label-5069
SELECT - + NULLIF ( 18, COALESCE ( 22, - COUNT ( * ) ) * + 70 ) * 33
----
-594

query I rowsort
SELECT ALL 39 * - 25 + 90
----
-885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT + 61 - + NULLIF ( + 23, + MIN( DISTINCT 31 ) + 46 * - 87 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 61 - + NULLIF ( + 23, + MIN ( DISTINCT 31 ) + 46 * - 87 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT ALL - MIN( ALL - COALESCE ( - 2, 7 * + 15 ) ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL - MIN ( ALL - COALESCE ( - 2, 7 * + 15 ) ) / 5
----
0

query I rowsort
SELECT ( + 52 ) col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT + COUNT( * ) DIV + - 83 + COALESCE ( 70, + 78, + 86 * - COUNT( 38 ) + + 31 )
----
70

skipif mysql # not compatible
query I rowsort label-5074
SELECT + COUNT ( * ) / + - 83 + COALESCE ( 70, + 78, + 86 * - COUNT ( 38 ) + + 31 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + 37 * - + 44 * - COUNT( * )
----
1628

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 37 * - + 44 * - COUNT ( * )
----
1628

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5076
SELECT + NULLIF ( NULLIF ( 45, + 67 + + CAST( + 44 AS DECIMAL ) ), + COUNT( 92 ) )
----
45

skipif mysql # not compatible
query I rowsort label-5076
SELECT + NULLIF ( NULLIF ( 45, + 67 + + CAST ( + 44 AS REAL ) ), + COUNT ( 92 ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT ALL ( - - 14 ) * - CAST( + 90 AS SIGNED )
----
-1260

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL ( - - 14 ) * - CAST ( + 90 AS INTEGER )
----
-1260

query I rowsort
SELECT ALL + 26 * - 76 * + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5079
SELECT 98 * + 93 + + NULLIF ( + 22 + - COUNT( * ), + 44 ) DIV - MIN( 4 ) AS col2
----
9109

skipif mysql # not compatible
query I rowsort label-5079
SELECT 98 * + 93 + + NULLIF ( + 22 + - COUNT ( * ), + 44 ) / - MIN ( 4 ) AS col2
----
9109

query I rowsort
SELECT ALL + CASE - 82 WHEN 28 / + 78 THEN AVG ( ALL - 88 ) END AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 45, - 82 - COALESCE ( 14, 35 * + ( + NULLIF ( 75, + 72 ) ) + 74, 0 ) )
----
45

query I rowsort
SELECT - 42 + - 96 AS col2
----
-138

query I rowsort
SELECT + 24 + ( 30 ) + 65 * + 99
----
6489

query I rowsort
SELECT + 35 * + 89 AS col0
----
3115

query I rowsort
SELECT + 41 * + + 29 AS col2
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + CASE + MAX( ALL + 41 ) WHEN + 36 THEN NULL ELSE 22 END AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5086
SELECT + CASE + MAX ( ALL + 41 ) WHEN + 36 THEN NULL ELSE 22 END AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + 88 + + ( COUNT( * ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5087
SELECT + 88 + + ( COUNT ( * ) ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT ALL 93 DIV + - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL 93 / + - 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT 21 * - COUNT( * ) + + 14
----
-7

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT 21 * - COUNT ( * ) + + 14
----
-7

query I rowsort
SELECT - - 36 - - - 86
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - COUNT( - + CASE 11 WHEN 15 * + 7 THEN - 22 * 11 END )
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - COUNT ( - + CASE 11 WHEN 15 * + 7 THEN - 22 * 11 END )
----
0

query I rowsort
SELECT - + ( - - 73 ) AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT - COALESCE ( ( - 19 ), 17 DIV 25 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5093
SELECT - COALESCE ( ( - 19 ), 17 / 25 ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5094
SELECT - - 86 DIV - - 60 * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5094
SELECT - - 86 / - - 60 * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL + + 79 + - + 43 + - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + + 79 + - + 43 + - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT + 90 + + 85 + 76 * 57 col2
----
4507

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - - ( + MAX( 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-5097
SELECT - - ( + MAX ( 94 ) )
----
94

query I rowsort
SELECT + 3 + 48
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT + MIN( DISTINCT + - 8 ) + + 64
----
56

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + MIN ( DISTINCT + - 8 ) + + 64
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT ALL - 56 * 93 DIV 42 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - 56 * 93 / 42 AS col2
----
-124

query I rowsort
SELECT - 30 + - - 67
----
37

query I rowsort
SELECT ALL 0 + - 45 * + 5 AS col0
----
-225

query I rowsort
SELECT - + 60 + - 43 + 25 * 79
----
1872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL - 96 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL - 96 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 49 * + + 27
----
-1323

query II rowsort
SELECT - 81 AS col1, 81
----
-81
81

query I rowsort
SELECT - 14 + - + 44 * ( + 74 ) + 78
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL - COUNT( * ) * + - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT - 2 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT - 2 / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - 19 * 88 * - CASE - 58 WHEN + 92 THEN - NULLIF ( COUNT( * ), + 27 ) * + 38 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT - 19 * 88 * - CASE - 58 WHEN + 92 THEN - NULLIF ( COUNT ( * ), + 27 ) * + 38 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT DISTINCT NULLIF ( 9, 52 * 59 ) DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT NULLIF ( 9, 52 * 59 ) / 39 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5112
SELECT CAST( NULL AS SIGNED ) AS col2, 99 + 87 AS col2
----
NULL
186

skipif mysql # not compatible
query II rowsort label-5112
SELECT CAST ( NULL AS INTEGER ) AS col2, 99 + 87 AS col2
----
NULL
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5114
SELECT - 83 * - 56 * 75 + - MIN( ALL 88 ) DIV 70 AS col0
----
348599

skipif mysql # not compatible
query I rowsort label-5114
SELECT - 83 * - 56 * 75 + - MIN ( ALL 88 ) / 70 AS col0
----
348599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT + NULLIF ( + CAST( + NULLIF ( 13, 26 * COUNT( * ) + 63 / COUNT( * ) ) AS SIGNED ), - 20 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5115
SELECT + NULLIF ( + CAST ( + NULLIF ( 13, 26 * COUNT ( * ) + 63 / COUNT ( * ) ) AS INTEGER ), - 20 ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5116
SELECT ALL + 79 col2, + 24 DIV + COUNT( * )
----
79
24

skipif mysql # not compatible
query II rowsort label-5116
SELECT ALL + 79 col2, + 24 / + COUNT ( * )
----
79
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT + COALESCE ( + 40, + NULLIF ( - 68, + COUNT( * ) + 32 ) * 34, + 58 - + 16, + 56 )
----
40

skipif mysql # not compatible
query I rowsort label-5117
SELECT + COALESCE ( + 40, + NULLIF ( - 68, + COUNT ( * ) + 32 ) * 34, + 58 - + 16, + 56 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT + COUNT( * ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT + COUNT ( * ) / - 35
----
0

query I rowsort
SELECT ALL 6 * + 4
----
24

query I rowsort
SELECT 69 * 39 * - 54 * + 5 AS col0
----
-726570

query I rowsort
SELECT ALL + 23 + + ( - 60 ) * 22 AS col0
----
-1297

query I rowsort
SELECT 59 * + - 82
----
-4838

query I rowsort
SELECT ALL - 45 + - 92
----
-137

query I rowsort
SELECT + + ( - 98 )
----
-98

query II rowsort
SELECT ALL 25 AS col1, 64 * 0 AS col1
----
25
0

query I rowsort
SELECT + 51 * - ( 39 )
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - COUNT( * ) + + 99 - - 30
----
128

skipif mysql # not compatible
query I rowsort label-5127
SELECT - COUNT ( * ) + + 99 - - 30
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT - SUM( ALL - ( - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT - SUM ( ALL - ( - 0 ) )
----
0

query I rowsort
SELECT ALL 4 + 25 + + + 72 * - 68
----
-4867

query I rowsort
SELECT DISTINCT - 52 + 57 * 10 * + NULLIF ( + 71, 7 * + 57 ) + - 93
----
40325

query II rowsort
SELECT + 37, 53 AS col1
----
37
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT ALL 48 AS col1, + NULLIF ( 1, - COUNT( * ) + 23 / - 90 )
----
48
1

skipif mysql # not compatible
query II rowsort label-5132
SELECT ALL 48 AS col1, + NULLIF ( 1, - COUNT ( * ) + 23 / - 90 )
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT + 19 * NULLIF ( - COUNT( * ), AVG ( DISTINCT + 82 ) + - 28 ) * 6
----
-114

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT + 19 * NULLIF ( - COUNT ( * ), AVG ( DISTINCT + 82 ) + - 28 ) * 6
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT ALL - 42, - 84 + + 17 * COUNT( * ) col1
----
-42
-67

skipif mysql # not compatible
query II rowsort label-5134
SELECT ALL - 42, - 84 + + 17 * COUNT ( * ) col1
----
-42
-67

query I rowsort
SELECT ALL - 49 + 85 * + - 53 + 10 * 95
----
-3604

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT - - COUNT( * ), 64 + CASE AVG ( ALL - 89 ) WHEN 69 THEN + 22 ELSE NULL END + + 23 / 13 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5136
SELECT - - COUNT ( * ), 64 + CASE AVG ( ALL - 89 ) WHEN 69 THEN + 22 ELSE NULL END + + 23 / 13 AS col0
----
1
NULL

query I rowsort
SELECT 63 * 23 AS col2
----
1449

query I rowsort
SELECT DISTINCT - 58 * 46
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - + SUM( DISTINCT ( - 15 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5139
SELECT - + SUM ( DISTINCT ( - 15 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT + 37 * + 51 * + + 34 * COUNT( * )
----
64158

skipif mysql # not compatible
query I rowsort label-5140
SELECT + 37 * + 51 * + + 34 * COUNT ( * )
----
64158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT 42 DIV - MAX( + 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5141
SELECT 42 / - MAX ( + 38 ) AS col1
----
-1

query I rowsort
SELECT - ( - + 90 ) - - 23 * 46 AS col1
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT 34 * - MIN( + 26 ) AS col2
----
-884

skipif mysql # not compatible
query I rowsort label-5143
SELECT 34 * - MIN ( + 26 ) AS col2
----
-884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT 24 * - + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5145
SELECT 24 * - + COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT - 53 * - 22 * + - NULLIF ( - + ( COUNT( * ) ), + NULLIF ( 91, + 51 ) ) AS col2
----
1166

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT - 53 * - 22 * + - NULLIF ( - + ( COUNT ( * ) ), + NULLIF ( 91, + 51 ) ) AS col2
----
1166

query I rowsort
SELECT 35 * - + 2 + + + 47 + + - 53 * + 71
----
-3786

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT 43 - - 49 * COUNT( * ) - - - 49
----
43

skipif mysql # not compatible
query I rowsort label-5148
SELECT 43 - - 49 * COUNT ( * ) - - - 49
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT 50 + 98 - + 33 - + 5 * - 22 * - ( + SUM( 7 ) ) * 57
----
-43775

skipif mysql # not compatible
query I rowsort label-5149
SELECT 50 + 98 - + 33 - + 5 * - 22 * - ( + SUM ( 7 ) ) * 57
----
-43775

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT + ( + 69 ) * + 42 * + COUNT( * ) col0
----
2898

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + ( + 69 ) * + 42 * + COUNT ( * ) col0
----
2898

query I rowsort
SELECT 62 * + 81
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL COUNT( * ) * - - 95
----
95

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL COUNT ( * ) * - - 95
----
95

query I rowsort
SELECT DISTINCT 77 + - - CASE - 13 WHEN 29 THEN + 87 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5154
SELECT DISTINCT COALESCE ( + + 47, + CASE CASE COUNT( * ) WHEN - 84 * COUNT( * ) THEN - COUNT( 45 ) + 0 WHEN + ( 90 ) DIV - 35 THEN NULL WHEN - NULLIF ( - 37, - 45 ) THEN - 54 ELSE 86 + 97 END WHEN 56 - - 57 THEN + 70 WHEN - 0 THEN CASE + 28 WHEN - ( - 6 ) THEN + 20 DIV + 22 + - COALESCE ( - 44, + NULLIF ( + 69, 81 + 1 ), - 19 * + 12 + + CASE ( 62 ) WHEN - 31 THEN + CAST( NULL AS SIGNED ) ELSE NULL END ) END * + COUNT( * ) ELSE NULL END ) + ( + 52 + - 2 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT COALESCE ( + + 47, + CASE CASE COUNT ( * ) WHEN - 84 * COUNT ( * ) THEN - COUNT ( 45 ) + 0 WHEN + ( 90 ) / - 35 THEN NULL WHEN - NULLIF ( - 37, - 45 ) THEN - 54 ELSE 86 + 97 END WHEN 56 - - 57 THEN + 70 WHEN - 0 THEN CASE + 28 WHEN - ( - 6 ) THEN + 20 / + 22 + - COALESCE ( - 44, + NULLIF ( + 69, 81 + 1 ), - 19 * + 12 + + CASE ( 62 ) WHEN - 31 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ) END * + COUNT ( * ) ELSE NULL END ) + ( + 52 + - 2 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT + NULLIF ( + + COUNT( * ), + 71 ) * - SUM( ALL - 39 ) * 90 + - 95 AS col1
----
3415

skipif mysql # not compatible
query I rowsort label-5155
SELECT + NULLIF ( + + COUNT ( * ), + 71 ) * - SUM ( ALL - 39 ) * 90 + - 95 AS col1
----
3415

query I rowsort
SELECT ALL + ( - 81 ) + - + 84 + - 97 col0
----
-262

query I rowsort
SELECT ALL + 91 + - 54 + - ( + 42 ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT ALL 52 + - CAST( - + 49 AS SIGNED ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL 52 + - CAST ( - + 49 AS INTEGER ) AS col1
----
101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5159
SELECT 39 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT 39 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ( 93 ) * + 72 AS col2
----
6696

query I rowsort
SELECT DISTINCT - + NULLIF ( - 51, + - 87 ) + 38 AS col0
----
89

query I rowsort
SELECT ALL + COALESCE ( - 49, - 47 ) + + 34 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + 91 * + COUNT( * ) - + + CASE - + 96 WHEN 35 THEN AVG ( + 58 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 91 * + COUNT ( * ) - + + CASE - + 96 WHEN 35 THEN AVG ( + 58 ) END AS col2
----
NULL

query II rowsort
SELECT 78 * + 75 AS col1, - 63 AS col0
----
5850
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL + 70 * - 9 * + MIN( 79 )
----
-49770

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + 70 * - 9 * + MIN ( 79 )
----
-49770

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT + COUNT( * ) * + 83 + - 77 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5166
SELECT + COUNT ( * ) * + 83 + - 77 AS col2
----
6

query I rowsort
SELECT ALL + 53 + + 40 * + 58
----
2373

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL COALESCE ( 60, - - 49 * + COALESCE ( + 78, 72 * + ( COUNT( * ) * 80 ), + 13 + 91 ) ) - 98
----
-38

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL COALESCE ( 60, - - 49 * + COALESCE ( + 78, 72 * + ( COUNT ( * ) * 80 ), + 13 + 91 ) ) - 98
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5169
SELECT - 8 - - NULLIF ( + 5, + + 69 * ( CAST( + 32 AS SIGNED ) + - COUNT( * ) ) + - 82 )
----
-3

skipif mysql # not compatible
query I rowsort label-5169
SELECT - 8 - - NULLIF ( + 5, + + 69 * ( CAST ( + 32 AS INTEGER ) + - COUNT ( * ) ) + - 82 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL - CAST( - 85 AS SIGNED ) col2
----
85

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - CAST ( - 85 AS INTEGER ) col2
----
85

query I rowsort
SELECT - 52 + + - 56 AS col2
----
-108

query I rowsort
SELECT 78 - + 60 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5173
SELECT + CASE - 63 WHEN - COUNT( * ) THEN NULL WHEN - + COUNT( * ) THEN - 80 + 10 / + NULLIF ( - 28 * 81, CAST( NULL AS SIGNED ) * + AVG ( DISTINCT 14 ) + + 0 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT + CASE - 63 WHEN - COUNT ( * ) THEN NULL WHEN - + COUNT ( * ) THEN - 80 + 10 / + NULLIF ( - 28 * 81, CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT 14 ) + + 0 ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT 57 + - COUNT( * ) + 62 + + - 4 + - 91 * - 84 * MAX( - 89 + 50 DIV 18 ) AS col1
----
-664914

skipif mysql # not compatible
query I rowsort label-5174
SELECT 57 + - COUNT ( * ) + 62 + + - 4 + - 91 * - 84 * MAX ( - 89 + 50 / 18 ) AS col1
----
-664914

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL ( COUNT( * ) ) * + 92 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL ( COUNT ( * ) ) * + 92 * + COUNT ( * )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5176
SELECT COALESCE ( + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) DIV + CASE + 93 WHEN - 35 THEN + COALESCE ( - 8, 48 * - 78 ) END * - 50, + COUNT( * ) DIV COUNT( * ) + - 20 ) + 43
----
24

skipif mysql # not compatible
query I rowsort label-5176
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / + CASE + 93 WHEN - 35 THEN + COALESCE ( - 8, 48 * - 78 ) END * - 50, + COUNT ( * ) / COUNT ( * ) + - 20 ) + 43
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5177
SELECT ( - + 63 ) DIV - ( + ( + + 62 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5177
SELECT ( - + 63 ) / - ( + ( + + 62 ) )
----
1

query I rowsort
SELECT 28 + + 49 AS col2
----
77

query I rowsort
SELECT ALL ( + 33 ) * - - 16 * - - 82
----
43296

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT NULLIF ( - COUNT( * ), 66 * + 22 + 86 * - 9 ) * ( 65 * 9 )
----
-585

skipif mysql # not compatible
query I rowsort label-5180
SELECT NULLIF ( - COUNT ( * ), 66 * + 22 + 86 * - 9 ) * ( 65 * 9 )
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT CAST( NULL AS SIGNED ) + + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT CAST ( NULL AS INTEGER ) + + - 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5182
SELECT COALESCE ( - 64, + - 63 ) DIV + + COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5182
SELECT COALESCE ( - 64, + - 63 ) / + + COUNT ( * ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - COUNT( * ) * + + 70 * + 37 AS col2
----
-2590

skipif mysql # not compatible
query I rowsort label-5183
SELECT - COUNT ( * ) * + + 70 * + 37 AS col2
----
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - 1 + + - 92 - - + COUNT( * ) - - 75 + 58 + - 55 * + NULLIF ( - COUNT( * ), - 19 + 46 * SUM( 10 * - 90 ) ) * - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5184
SELECT - 1 + + - 92 - - + COUNT ( * ) - - 75 + 58 + - 55 * + NULLIF ( - COUNT ( * ), - 19 + 46 * SUM ( 10 * - 90 ) ) * - COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL 80 * COUNT( * ) + - CASE - 52 WHEN 19 / + MAX( DISTINCT - ( NULLIF ( 84, 99 ) ) * 9 ) THEN NULL WHEN + 84 THEN 91 END + - 46 / - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL 80 * COUNT ( * ) + - CASE - 52 WHEN 19 / + MAX ( DISTINCT - ( NULLIF ( 84, 99 ) ) * 9 ) THEN NULL WHEN + 84 THEN 91 END + - 46 / - 58 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5186
SELECT DISTINCT - 36 * CAST( NULL AS SIGNED ) + + COUNT( * ), ( + + COALESCE ( 64, 14 ) ) AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-5186
SELECT DISTINCT - 36 * CAST ( NULL AS INTEGER ) + + COUNT ( * ), ( + + COALESCE ( 64, 14 ) ) AS col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT + COUNT( * ) * + - 41 * + COALESCE ( + 3, - NULLIF ( + MIN( ALL + 96 ), 11 ) * 47, 86 * 65 ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-5187
SELECT + COUNT ( * ) * + - 41 * + COALESCE ( + 3, - NULLIF ( + MIN ( ALL + 96 ), 11 ) * 47, 86 * 65 ) AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT CASE 33 WHEN - 99 THEN NULL WHEN + 35 * + 23 * COUNT( * ) - - COUNT( * ) THEN NULL ELSE - 9 * - 67 END
----
603

skipif mysql # not compatible
query I rowsort label-5188
SELECT CASE 33 WHEN - 99 THEN NULL WHEN + 35 * + 23 * COUNT ( * ) - - COUNT ( * ) THEN NULL ELSE - 9 * - 67 END
----
603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5189
SELECT + NULLIF ( - 13, - NULLIF ( + 58, - ( - COUNT( 71 ) ) * + 32 ) * ( COUNT( * ) + COUNT( * ) ) - - CASE COUNT( * ) - CAST( + 10 AS DECIMAL ) WHEN 79 THEN 27 WHEN + NULLIF ( 62, - 66 ) THEN + 19 WHEN 86 THEN NULL END )
----
-13

skipif mysql # not compatible
query I rowsort label-5189
SELECT + NULLIF ( - 13, - NULLIF ( + 58, - ( - COUNT ( 71 ) ) * + 32 ) * ( COUNT ( * ) + COUNT ( * ) ) - - CASE COUNT ( * ) - CAST ( + 10 AS REAL ) WHEN 79 THEN 27 WHEN + NULLIF ( 62, - 66 ) THEN + 19 WHEN 86 THEN NULL END )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5190
SELECT DISTINCT 47 * COALESCE ( + 74, + COALESCE ( + 95, - 92 ) - 95 * SUM( DISTINCT - 88 ), 56 DIV - CAST( - 83 AS SIGNED ) ) + - 8
----
3470

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT 47 * COALESCE ( + 74, + COALESCE ( + 95, - 92 ) - 95 * SUM ( DISTINCT - 88 ), 56 / - CAST ( - 83 AS INTEGER ) ) + - 8
----
3470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL + + CASE + NULLIF ( + - 87, ( 28 ) * 84 ) WHEN 18 THEN - 69 * 24 ELSE CAST( NULL AS SIGNED ) + - 88 END * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + + CASE + NULLIF ( + - 87, ( 28 ) * 84 ) WHEN 18 THEN - 69 * 24 ELSE CAST ( NULL AS INTEGER ) + - 88 END * 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT 21 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT 21 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT 55 * + NULLIF ( + 41, 91 * - - 40 * 32 - 68 * 34 ) - + ( COUNT( * ) + + ( + 67 ) ) col2
----
2187

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT 55 * + NULLIF ( + 41, 91 * - - 40 * 32 - 68 * 34 ) - + ( COUNT ( * ) + + ( + 67 ) ) col2
----
2187

query I rowsort
SELECT ALL - 24 * - - 31 AS col0
----
-744

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5195
SELECT + 76 * - 29 / + 64 + + 42 - - CAST( - CASE MIN( - 10 ) WHEN - 17 THEN - 28 WHEN 51 THEN NULL END AS DECIMAL ) + 56 * + 90 * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT + 76 * - 29 / + 64 + + 42 - - CAST ( - CASE MIN ( - 10 ) WHEN - 17 THEN - 28 WHEN 51 THEN NULL END AS REAL ) + 56 * + 90 * 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5196
SELECT DISTINCT - 18 * - 18 * - - 35 + + COUNT( * ) - 76 + 21 DIV 29
----
11265

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT - 18 * - 18 * - - 35 + + COUNT ( * ) - 76 + 21 / 29
----
11265

query II rowsort
SELECT ALL + 13 AS col2, - 24
----
13
-24

query I rowsort
SELECT 22 * + + ( - 21 ) + + 96
----
-366

query I rowsort
SELECT - 97 * - - 64 AS col2
----
-6208

onlyif mysql # aggregate syntax: 
query II rowsort label-5200
SELECT ALL + - 66 col2, + 73 * + SUM( + 31 )
----
-66
2263

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL + - 66 col2, + 73 * + SUM ( + 31 )
----
-66
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 2 THEN NULL WHEN + 59 THEN - + 37 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 2 THEN NULL WHEN + 59 THEN - + 37 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT - - 72 + - 29 + + - SUM( - + 2 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT - - 72 + - 29 + + - SUM ( - + 2 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL ( + CASE + 1 WHEN 93 THEN NULL WHEN - + 30 + + 12 THEN - MIN( DISTINCT ( 44 ) ) * - 74 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL ( + CASE + 1 WHEN 93 THEN NULL WHEN - + 30 + + 12 THEN - MIN ( DISTINCT ( 44 ) ) * - 74 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT - COUNT( * ) * + 86 + - 79 AS col0, + 96
----
-165
96

skipif mysql # not compatible
query II rowsort label-5204
SELECT - COUNT ( * ) * + 86 + - 79 AS col0, + 96
----
-165
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5205
SELECT - - COUNT( * ) * + 50 * + - NULLIF ( 59, - CASE 8 WHEN + 96 + + 82 THEN - COALESCE ( + CASE + 9 WHEN COUNT( * ) THEN - 62 ELSE NULL END, - CAST( NULL AS SIGNED ), 54 ) * - 57 ELSE 92 / 21 + - COUNT( * ) END ) - 33 AS col2
----
-2983

skipif mysql # not compatible
query I rowsort label-5205
SELECT - - COUNT ( * ) * + 50 * + - NULLIF ( 59, - CASE 8 WHEN + 96 + + 82 THEN - COALESCE ( + CASE + 9 WHEN COUNT ( * ) THEN - 62 ELSE NULL END, - CAST ( NULL AS INTEGER ), 54 ) * - 57 ELSE 92 / 21 + - COUNT ( * ) END ) - 33 AS col2
----
-2983

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL + 17 * - 23 + + COUNT( * ) * - 93 * - 29 * + NULLIF ( + COUNT( * ), 22 / + 52 ) AS col1
----
2306

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + 17 * - 23 + + COUNT ( * ) * - 93 * - 29 * + NULLIF ( + COUNT ( * ), 22 / + 52 ) AS col1
----
2306

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT COALESCE ( - - COUNT( * ), - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT COALESCE ( - - COUNT ( * ), - 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - MAX( DISTINCT - ( + + 93 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5208
SELECT - MAX ( DISTINCT - ( + + 93 ) ) AS col0
----
93

query I rowsort
SELECT ALL - 8 + + 55 AS col2
----
47

query II rowsort
SELECT - 34, + 16 + - NULLIF ( 55, 55 ) AS col2
----
-34
NULL

query I rowsort
SELECT - 19 * - 60 * + + 66
----
75240

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + COALESCE ( + 60, - - ( COUNT( - 9 ) ) + - + COUNT( * ) ) * CASE + 55 * - 38 WHEN 70 THEN - COUNT( * ) / - 56 WHEN 93 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT + COALESCE ( + 60, - - ( COUNT ( - 9 ) ) + - + COUNT ( * ) ) * CASE + 55 * - 38 WHEN 70 THEN - COUNT ( * ) / - 56 WHEN 93 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5213
SELECT - 92, MIN( ALL + + 90 ) + 40 - + - 1 DIV + ( + 22 ) + - 56 * - 46 AS col0
----
-92
2706

skipif mysql # not compatible
query II rowsort label-5213
SELECT - 92, MIN ( ALL + + 90 ) + 40 - + - 1 / + ( + 22 ) + - 56 * - 46 AS col0
----
-92
2706

query II rowsort
SELECT 39, 5 AS col1
----
39
5

query I rowsort
SELECT - 13 - - 14
----
1

query I rowsort
SELECT ALL 83 + - 66 AS col1
----
17

query II rowsort
SELECT + 89 - 22 * - 69 + - + 42 AS col2, 2 AS col2
----
1565
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5218
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( 22 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( 22 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT - 18 * + - COUNT( * ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - 18 * + - COUNT ( * ) / + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 59 col1, 75 * - 6 AS col0
----
59
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL 47 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL 47 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - 53 + + ( + 7 ) + - - 44 - - + 7 * MAX( + 85 ) AS col2
----
593

skipif mysql # not compatible
query I rowsort label-5222
SELECT - 53 + + ( + 7 ) + - - 44 - - + 7 * MAX ( + 85 ) AS col2
----
593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5223
SELECT CAST( NULL AS SIGNED ) AS col1, + 54 * + 5 / - MIN( DISTINCT - 18 ) + + - 63 + + CAST( NULL AS SIGNED ) * + 34
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5223
SELECT CAST ( NULL AS INTEGER ) AS col1, + 54 * + 5 / - MIN ( DISTINCT - 18 ) + + - 63 + + CAST ( NULL AS INTEGER ) * + 34
----
NULL
NULL

query I rowsort
SELECT - 32 * + + 67 + + 91
----
-2053

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5225
SELECT CAST( 67 AS SIGNED ) col0, + ( + 66 ) * - - CAST( + 53 AS SIGNED ) * - 17
----
67
-59466

skipif mysql # not compatible
query II rowsort label-5225
SELECT CAST ( 67 AS INTEGER ) col0, + ( + 66 ) * - - CAST ( + 53 AS INTEGER ) * - 17
----
67
-59466

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT 10 * - + 78 - + MAX( ALL + 0 ) + - 20 col2
----
-800

skipif mysql # not compatible
query I rowsort label-5226
SELECT 10 * - + 78 - + MAX ( ALL + 0 ) + - 20 col2
----
-800

query I rowsort
SELECT + 23 * 56 AS col0
----
1288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT CAST( - 80 AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5228
SELECT CAST ( - 80 AS INTEGER ) AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT + CAST( - 77 AS SIGNED ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5229
SELECT + CAST ( - 77 AS INTEGER ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT DISTINCT - 64 / - CAST( - 3 AS SIGNED ) * - - 63 * + 56 + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT - 64 / - CAST ( - 3 AS INTEGER ) * - - 63 * + 56 + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT + 61 * + 31 + + COUNT( * ) + + - NULLIF ( + + 73, - 99 ) + - 87
----
1732

skipif mysql # not compatible
query I rowsort label-5231
SELECT + 61 * + 31 + + COUNT ( * ) + + - NULLIF ( + + 73, - 99 ) + - 87
----
1732

query I rowsort
SELECT DISTINCT + ( - - 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5233
SELECT ALL + 81, 51 + COUNT( * ) AS col1
----
81
52

skipif mysql # not compatible
query II rowsort label-5233
SELECT ALL + 81, 51 + COUNT ( * ) AS col1
----
81
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT + SUM( ALL - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT + SUM ( ALL - + 43 )
----
-43

query I rowsort
SELECT + + 7 * - + 33 * - 15
----
3465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5236
SELECT + + 63 * - - COALESCE ( + - 58, + 25 ) - + 50 + 12 + CAST( NULL AS DECIMAL ) * 94 - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT + + 63 * - - COALESCE ( + - 58, + 25 ) - + 50 + 12 + CAST ( NULL AS REAL ) * 94 - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT - MIN( ALL - 53 ) * - - 86 * COUNT( * ) + COALESCE ( + COUNT( * ), 90, + 15 ) - + 48 * 72
----
1103

skipif mysql # not compatible
query I rowsort label-5237
SELECT - MIN ( ALL - 53 ) * - - 86 * COUNT ( * ) + COALESCE ( + COUNT ( * ), 90, + 15 ) - + 48 * 72
----
1103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5238
SELECT ALL 40 * MIN( DISTINCT 34 ) * + 4 + + 66 - + - 42 DIV ( - 41 * - COALESCE ( - 34 * + 99, 64 * 26 ) )
----
5506

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL 40 * MIN ( DISTINCT 34 ) * + 4 + + 66 - + - 42 / ( - 41 * - COALESCE ( - 34 * + 99, 64 * 26 ) )
----
5506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT - 19 * COUNT( * ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT - 19 * COUNT ( * ) / + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL + MAX( DISTINCT 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + MAX ( DISTINCT 68 ) AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT ALL - + 90 DIV + 54 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL - + 90 / + 54 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT - COUNT( ALL + + 39 ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT - COUNT ( ALL + + 39 ) / 13
----
0

query I rowsort
SELECT + 43 + + + 79 AS col2
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT - COUNT( * ) - - 11, 69 AS col2
----
10
69

skipif mysql # not compatible
query II rowsort label-5244
SELECT - COUNT ( * ) - - 11, 69 AS col2
----
10
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT 18 + - CASE - + MAX( - + ( + + ( 25 ) ) ) WHEN 46 * CASE ( SUM( DISTINCT + 16 ) ) + - 74 * 24 WHEN 26 / 89 THEN + AVG ( DISTINCT + 41 ) / 55 ELSE NULL END + 5 * - 69 THEN 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT 18 + - CASE - + MAX ( - + ( + + ( 25 ) ) ) WHEN 46 * CASE ( SUM ( DISTINCT + 16 ) ) + - 74 * 24 WHEN 26 / 89 THEN + AVG ( DISTINCT + 41 ) / 55 ELSE NULL END + 5 * - 69 THEN 20 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 60 + - + 81 + + 29 AS col1
----
8

query I rowsort
SELECT ALL - 77 + - - 41 - - + 61 AS col2
----
25

query I rowsort
SELECT ALL 77 + 82 + + 58 AS col0
----
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 28 / - - ( + 84 ) * - 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 28 / - - ( + 84 ) * - 19 col0
----
NULL

query I rowsort
SELECT DISTINCT - 23 + - - 57 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT 39 + - COUNT( * ) + + - 41 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5251
SELECT 39 + - COUNT ( * ) + + - 41 AS col0
----
-3

query I rowsort
SELECT 43 * - 10
----
-430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT 97 + - 41 - - 9 + - 49 DIV COALESCE ( + COUNT( * ), + 51, ( + 18 ) + + 78 ) * 68 * 51 AS col1
----
-169867

skipif mysql # not compatible
query I rowsort label-5253
SELECT 97 + - 41 - - 9 + - 49 / COALESCE ( + COUNT ( * ), + 51, ( + 18 ) + + 78 ) * 68 * 51 AS col1
----
-169867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5254
SELECT DISTINCT + 60 - 85, + CASE 73 WHEN + CASE 71 WHEN + CAST( NULL AS SIGNED ) + 32 THEN NULL ELSE COUNT( * ) END THEN 2 * - 68 + 38 * + 36 ELSE + 61 * 72 + + 66 * 88 END AS col2
----
-25
10200

skipif mysql # not compatible
query II rowsort label-5254
SELECT DISTINCT + 60 - 85, + CASE 73 WHEN + CASE 71 WHEN + CAST ( NULL AS INTEGER ) + 32 THEN NULL ELSE COUNT ( * ) END THEN 2 * - 68 + 38 * + 36 ELSE + 61 * 72 + + 66 * 88 END AS col2
----
-25
10200

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT 33 * - 88 + + COUNT( + 62 )
----
-2903

skipif mysql # not compatible
query I rowsort label-5255
SELECT 33 * - 88 + + COUNT ( + 62 )
----
-2903

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT COALESCE ( - - ( + - 62 ), + SUM( + 75 ), + ( + 58 ) * - 95, - 44 ) * - 94 col0
----
5828

skipif mysql # not compatible
query I rowsort label-5256
SELECT COALESCE ( - - ( + - 62 ), + SUM ( + 75 ), + ( + 58 ) * - 95, - 44 ) * - 94 col0
----
5828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5257
SELECT ALL - 91 * COUNT( * ) AS col2, 26 DIV + 56
----
-91
0

skipif mysql # not compatible
query II rowsort label-5257
SELECT ALL - 91 * COUNT ( * ) AS col2, 26 / + 56
----
-91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT + 30 DIV + + 88 - 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5258
SELECT + 30 / + + 88 - 22 AS col1
----
-22

query I rowsort
SELECT + + ( - 59 ) AS col1
----
-59

query I rowsort
SELECT 83 + - + 91
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5261
SELECT DISTINCT 44 * + CASE + 71 WHEN + - CAST( NULL AS SIGNED ) / - CAST( COUNT( * ) AS SIGNED ) + - - 18 THEN COUNT( * ) END * - 88 - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT 44 * + CASE + 71 WHEN + - CAST ( NULL AS INTEGER ) / - CAST ( COUNT ( * ) AS INTEGER ) + - - 18 THEN COUNT ( * ) END * - 88 - 41
----
NULL

query I rowsort
SELECT ALL - 41 * 79 AS col1
----
-3239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5263
SELECT 86 * + COUNT( * ) col1, CAST( 86 AS SIGNED ) DIV + - 64 + - CAST( - + 55 AS SIGNED ) * + NULLIF ( 32, 20 + + CAST( NULL AS SIGNED ) DIV + 48 ) AS col2
----
86
1759

skipif mysql # not compatible
query II rowsort label-5263
SELECT 86 * + COUNT ( * ) col1, CAST ( 86 AS INTEGER ) / + - 64 + - CAST ( - + 55 AS INTEGER ) * + NULLIF ( 32, 20 + + CAST ( NULL AS INTEGER ) / + 48 ) AS col2
----
86
1759

query I rowsort
SELECT 30 * 16 + 63 + + + 79 AS col2
----
622

query II rowsort
SELECT 32 * 40 col2, + 27
----
1280
27

query I rowsort
SELECT DISTINCT + + 58 * + + 39 * 90 col2
----
203580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT DISTINCT - 39 * + 26 * 95 * + - 50 * + CAST( NULL AS SIGNED ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - 39 * + 26 * 95 * + - 50 * + CAST ( NULL AS INTEGER ) + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT - COUNT( * ) * - 9 + + - ( - 55 )
----
64

skipif mysql # not compatible
query I rowsort label-5268
SELECT - COUNT ( * ) * - 9 + + - ( - 55 )
----
64

query I rowsort
SELECT - 54 * - - 84 - + 52 col0
----
-4588

query I rowsort
SELECT DISTINCT - + 87 + + 86
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT DISTINCT CASE - 90 WHEN - CAST( + 55 AS SIGNED ) * + + 37 THEN + - 44 WHEN - + ( + 52 ) * - 17 THEN - NULLIF ( - 48, ( + AVG ( 83 ) ) - + 38 * - 57 ) END + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT CASE - 90 WHEN - CAST ( + 55 AS INTEGER ) * + + 37 THEN + - 44 WHEN - + ( + 52 ) * - 17 THEN - NULLIF ( - 48, ( + AVG ( 83 ) ) - + 38 * - 57 ) END + 10 AS col1
----
NULL

query I rowsort
SELECT - 62 * + 72 + - 2 col2
----
-4466

query I rowsort
SELECT 34 * 1 * - 96 col1
----
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5274
SELECT 69 AS col1, - CAST( NULL AS SIGNED ) * + 18 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-5274
SELECT 69 AS col1, - CAST ( NULL AS INTEGER ) * + 18 AS col0
----
69
NULL

query I rowsort
SELECT 53 + 25 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL COUNT( * ) + ( + 40 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL COUNT ( * ) + ( + 40 ) AS col0
----
41

query I rowsort
SELECT ALL 19 * - 32 AS col1
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT - 90 + - COUNT( * ) + + 21 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - 90 + - COUNT ( * ) + + 21 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT DISTINCT 92 AS col2, ( - + COUNT( * ) )
----
92
-1

skipif mysql # not compatible
query II rowsort label-5279
SELECT DISTINCT 92 AS col2, ( - + COUNT ( * ) )
----
92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT 59 * - COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5280
SELECT 59 * - COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 12, 78 col2
----
12
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5283
SELECT NULLIF ( + 87, + 83 ) + + CASE + 70 WHEN - COALESCE ( - 34, + + 44 ) THEN 59 WHEN COALESCE ( - 17, COUNT( DISTINCT 34 ) + COUNT( + 44 ) * + 92 ) / - 88 + COUNT( * ) THEN 84 / + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT NULLIF ( + 87, + 83 ) + + CASE + 70 WHEN - COALESCE ( - 34, + + 44 ) THEN 59 WHEN COALESCE ( - 17, COUNT ( DISTINCT 34 ) + COUNT ( + 44 ) * + 92 ) / - 88 + COUNT ( * ) THEN 84 / + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL + 73 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + 73 / - 88
----
0

query I rowsort
SELECT NULLIF ( 86, - + 91 ) * + + 6 + + 45 * - NULLIF ( - 77, - - 17 + + 61 ) * - 86
----
-297474

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL + COUNT( * ) * - 58
----
-58

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + COUNT ( * ) * - 58
----
-58

query I rowsort
SELECT 68 - - 88
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-5288
SELECT ALL 5 DIV - + 88 * 82 col0, + CASE 20 WHEN - + 68 - 18 + + 43 + 86 * - NULLIF ( + 19, 29 * 32 ) THEN + COALESCE ( 23, 28 + - 22 ) * - 13 ELSE - 46 END
----
0
-46

skipif mysql # not compatible
query II rowsort label-5288
SELECT ALL 5 / - + 88 * 82 col0, + CASE 20 WHEN - + 68 - 18 + + 43 + 86 * - NULLIF ( + 19, 29 * 32 ) THEN + COALESCE ( 23, 28 + - 22 ) * - 13 ELSE - 46 END
----
0
-46

query I rowsort
SELECT 77 - - ( + + 61 ) * 86
----
5323

query II rowsort
SELECT 20, + 64 AS col1
----
20
64

query I rowsort
SELECT - + CASE + 69 WHEN + - 5 THEN NULL WHEN + 81 THEN 33 END
----
NULL

query I rowsort
SELECT ALL - - 98 * + ( 8 ) AS col0
----
784

query I rowsort
SELECT 8 * - - COALESCE ( 41, - - 84, + 27 ) * + ( - 3 ) * + + 44 + + 18
----
-43278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT + CAST( NULL AS SIGNED ) * + SUM( + 32 ) / + 7 * + 41 + - ( + 58 ) + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( + 32 ) / + 7 * + 41 + - ( + 58 ) + - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5295
SELECT 35 col1, NULLIF ( - 18, - 55 ) DIV + 74 + + + 79 * 95 DIV CAST( 75 AS SIGNED ) AS col2
----
35
100

skipif mysql # not compatible
query II rowsort label-5295
SELECT 35 col1, NULLIF ( - 18, - 55 ) / + 74 + + + 79 * 95 / CAST ( 75 AS INTEGER ) AS col2
----
35
100

query I rowsort
SELECT 1 * ( 56 ) - - + 67 AS col0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT - 86 * + - CAST( - 6 AS SIGNED ) * + 49 AS col0
----
-25284

skipif mysql # not compatible
query I rowsort label-5297
SELECT - 86 * + - CAST ( - 6 AS INTEGER ) * + 49 AS col0
----
-25284

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT ALL - + 32 * 20 + + 70 DIV + 13 - 42 AS col2
----
-677

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - + 32 * 20 + + 70 / + 13 - 42 AS col2
----
-677

query I rowsort
SELECT DISTINCT - + CASE 14 WHEN - 83 THEN + + ( + - 1 ) WHEN - 62 THEN + 12 + + ( + 96 ) ELSE 58 END AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL - COUNT( - + 54 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - COUNT ( - + 54 ) AS col0
----
-1

query II rowsort
SELECT - - 12 * + - 47 + 70 AS col1, 45
----
-494
45

query I rowsort
SELECT ALL - ( - 6 ) * 10 * + 81 AS col1
----
4860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT + 52 * 5 + + + 51 AS col2, + CAST( NULL AS SIGNED ) AS col1
----
311
NULL

skipif mysql # not compatible
query II rowsort label-5303
SELECT + 52 * 5 + + + 51 AS col2, + CAST ( NULL AS INTEGER ) AS col1
----
311
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL + 83 * 12 + + - 90 + - CAST( - 23 AS SIGNED ) * 54 * - 12 - - 24 * 85 AS col0
----
-11958

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + 83 * 12 + + - 90 + - CAST ( - 23 AS INTEGER ) * 54 * - 12 - - 24 * 85 AS col0
----
-11958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN - 20 THEN 12 ELSE NULL END * + 9 + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN - 20 THEN 12 ELSE NULL END * + 9 + + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5306
SELECT ALL + + COUNT( * ) * - - CAST( - 56 AS SIGNED ), + 62 AS col2
----
-56
62

skipif mysql # not compatible
query II rowsort label-5306
SELECT ALL + + COUNT ( * ) * - - CAST ( - 56 AS INTEGER ), + 62 AS col2
----
-56
62

query I rowsort
SELECT - 18 + 16 * - 55
----
-898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT + - ( + - MAX( 19 ) ) + 54 + + - 10 + CAST( NULL AS SIGNED ) * - 99 * + 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT + - ( + - MAX ( 19 ) ) + 54 + + - 10 + CAST ( NULL AS INTEGER ) * - 99 * + 77 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT - + COUNT( - 74 ) - - 9 AS col2, AVG ( 8 ) * - 32 - - 48 + - CASE 92 WHEN + 26 THEN + 8 * 21 END + SUM( + 3 )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5309
SELECT - + COUNT ( - 74 ) - - 9 AS col2, AVG ( 8 ) * - 32 - - 48 + - CASE 92 WHEN + 26 THEN + 8 * 21 END + SUM ( + 3 )
----
8
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT ALL CAST( NULL AS SIGNED ) + - - NULLIF ( + COUNT( * ), + + CAST( - MIN( 4 ) AS SIGNED ) + + - 33 - - 30 + - - AVG ( ALL 79 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL CAST ( NULL AS INTEGER ) + - - NULLIF ( + COUNT ( * ), + + CAST ( - MIN ( 4 ) AS INTEGER ) + + - 33 - - 30 + - - AVG ( ALL 79 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL + 4 + - 70 - + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + 4 + - 70 - + COUNT ( * )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT ALL 60 DIV + ( - 13 )
----
-4

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL 60 / + ( - 13 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT ALL CAST( 26 AS SIGNED ) - 3
----
23

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL CAST ( 26 AS INTEGER ) - 3
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT COUNT( * ) - 40 + + - 50
----
-89

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT COUNT ( * ) - 40 + + - 50
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT 77 * CASE 64 WHEN + 86 THEN NULL WHEN - 50 THEN + 24 * - - 40 + + NULLIF ( - - COUNT( * ), 87 ) - ( + CASE + MIN( DISTINCT + 80 ) WHEN + 75 * - 81 THEN + 82 / + 87 + - 26 ELSE NULL END ) * - 19 END + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT 77 * CASE 64 WHEN + 86 THEN NULL WHEN - 50 THEN + 24 * - - 40 + + NULLIF ( - - COUNT ( * ), 87 ) - ( + CASE + MIN ( DISTINCT + 80 ) WHEN + 75 * - 81 THEN + 82 / + 87 + - 26 ELSE NULL END ) * - 19 END + 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT - CASE - 82 WHEN ( - COUNT( * ) ) THEN + - 77 DIV - 39 * 3 * - - 68 ELSE - ( ( 35 ) ) * + SUM( DISTINCT - 0 ) END col0
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT - CASE - 82 WHEN ( - COUNT ( * ) ) THEN + - 77 / - 39 * 3 * - - 68 ELSE - ( ( 35 ) ) * + SUM ( DISTINCT - 0 ) END col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT + COUNT( * ) + - 70 + - + 92 AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-5317
SELECT + COUNT ( * ) + - 70 + - + 92 AS col2
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5318
SELECT + CAST( NULL AS SIGNED ) - - 95, 12 * + 6 col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5318
SELECT + CAST ( NULL AS INTEGER ) - - 95, 12 * + 6 col0
----
NULL
72

query I rowsort
SELECT ALL 0 * - - 73 AS col2
----
0

query II rowsort
SELECT ALL 18 * - 31 AS col2, 1
----
-558
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT + COUNT( * ) * 93 * - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5321
SELECT + COUNT ( * ) * 93 * - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL 64 * - 92 * COUNT( * ) AS col2
----
-5888

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL 64 * - 92 * COUNT ( * ) AS col2
----
-5888

query I rowsort
SELECT + ( + + 4 ) + 42
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT + 41 DIV - ( + + COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT + 41 / - ( + + COUNT ( * ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - CASE - COUNT( * ) WHEN - 4 THEN NULL WHEN - COUNT( * ) + 32 THEN NULL ELSE - 8 END
----
8

skipif mysql # not compatible
query I rowsort label-5325
SELECT - CASE - COUNT ( * ) WHEN - 4 THEN NULL WHEN - COUNT ( * ) + 32 THEN NULL ELSE - 8 END
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT - + 14 DIV 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT - + 14 / 60 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL - SUM( - CAST( 39 AS SIGNED ) ) + - + 68 * + 6
----
-369

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - SUM ( - CAST ( 39 AS INTEGER ) ) + - + 68 * + 6
----
-369

query I rowsort
SELECT DISTINCT + CASE 3 WHEN + 51 THEN 49 WHEN + 19 THEN NULL END * + + 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5329
SELECT DISTINCT + 36 DIV COALESCE ( - ( CAST( - SUM( - - CASE + 0 WHEN 44 THEN NULL WHEN 48 THEN - 33 END ) AS SIGNED ) ), - CAST( 16 AS SIGNED ) DIV 18 + + 90 * 49, - CASE 4 WHEN - 5 * 9 - + 28 THEN - 42 END + + 97 ) * 92 + - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + 36 / COALESCE ( - ( CAST ( - SUM ( - - CASE + 0 WHEN 44 THEN NULL WHEN 48 THEN - 33 END ) AS INTEGER ) ), - CAST ( 16 AS INTEGER ) / 18 + + 90 * 49, - CASE 4 WHEN - 5 * 9 - + 28 THEN - 42 END + + 97 ) * 92 + - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5330
SELECT - - 86 DIV + ( - 45 ) + + 38 + 89 - 79 + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5330
SELECT - - 86 / + ( - 45 ) + + 38 + 89 - 79 + - COUNT ( * )
----
46

query I rowsort
SELECT ALL + 29 * 47 + + ( 75 ) AS col2
----
1438

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ALL - ( + - MIN( ALL - COALESCE ( 82, - 34, + 53, - 48 + 4 + ( 7 ) ) ) ) * 61 + 78 AS col0
----
-4924

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - ( + - MIN ( ALL - COALESCE ( 82, - 34, + 53, - 48 + 4 + ( 7 ) ) ) ) * 61 + 78 AS col0
----
-4924

query I rowsort
SELECT DISTINCT - + 16 * - - 52
----
-832

query I rowsort
SELECT + 89 * - + ( - + NULLIF ( + + 43, + ( - 34 ) * + - 52 * 64 + 53 ) ) AS col0
----
3827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT COUNT( * ) DIV - + 43 - - 61 * + 29 * 23 AS col1
----
40687

skipif mysql # not compatible
query I rowsort label-5335
SELECT COUNT ( * ) / - + 43 - - 61 * + 29 * 23 AS col1
----
40687

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT + 79 * - + 42 + + COUNT( * )
----
-3317

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT + 79 * - + 42 + + COUNT ( * )
----
-3317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT + - CAST( - 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT + - CAST ( - 5 AS INTEGER )
----
5

query I rowsort
SELECT ALL + - 39 * + 54 + - + 88 + + 0 + 46
----
-2148

query I rowsort
SELECT - + 68 * - - 46 AS col0
----
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT ALL + CAST( - - 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + CAST ( - - 28 AS INTEGER )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT - MAX( - 74 ) * - 89 * - ( 98 ) + ( + + 17 ) + 18 * + - COUNT( * ) * + ( + 44 )
----
644653

skipif mysql # not compatible
query I rowsort label-5341
SELECT - MAX ( - 74 ) * - 89 * - ( 98 ) + ( + + 17 ) + 18 * + - COUNT ( * ) * + ( + 44 )
----
644653

query I rowsort
SELECT - NULLIF ( - 5, + 70 ) * 96 AS col0
----
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT COALESCE ( + 48, - - 6, ( + - 59 ) * - 41 * + + COUNT( * ) * + 96 DIV CASE + - 63 WHEN - 19 THEN ( - 83 ) ELSE NULL END ) col2
----
48

skipif mysql # not compatible
query I rowsort label-5343
SELECT COALESCE ( + 48, - - 6, ( + - 59 ) * - 41 * + + COUNT ( * ) * + 96 / CASE + - 63 WHEN - 19 THEN ( - 83 ) ELSE NULL END ) col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT + ( + + 85 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT + ( + + 85 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT DISTINCT + 73 * + CAST( - - 79 AS SIGNED ) * - + 93
----
-536331

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + 73 * + CAST ( - - 79 AS INTEGER ) * - + 93
----
-536331

query I rowsort
SELECT DISTINCT + 64 * - 73 AS col1
----
-4672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5347
SELECT - NULLIF ( + 24, + COUNT( * ) * 3 ) * + NULLIF ( - COUNT( * ), 13 ) + + 95 DIV - 84
----
23

skipif mysql # not compatible
query I rowsort label-5347
SELECT - NULLIF ( + 24, + COUNT ( * ) * 3 ) * + NULLIF ( - COUNT ( * ), 13 ) + + 95 / - 84
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5348
SELECT + 60 * + COALESCE ( + CAST( 50 AS SIGNED ), - COUNT( * ) * + 87 * - 37 ) * + 41 + - 31 + + 67 * 43 * + 21 + 62 AS col0
----
183532

skipif mysql # not compatible
query I rowsort label-5348
SELECT + 60 * + COALESCE ( + CAST ( 50 AS INTEGER ), - COUNT ( * ) * + 87 * - 37 ) * + 41 + - 31 + + 67 * 43 * + 21 + 62 AS col0
----
183532

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - ( - + CASE 21 WHEN + 72 + + 81 THEN - - 95 * 25 ELSE NULL END ) / - 45 + - 27 + - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT - ( - + CASE 21 WHEN + 72 + + 81 THEN - - 95 * 25 ELSE NULL END ) / - 45 + - 27 + - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5350
SELECT COUNT( * ), + MIN( - - 48 ) + - 96 AS col2
----
1
-48

skipif mysql # not compatible
query II rowsort label-5350
SELECT COUNT ( * ), + MIN ( - - 48 ) + - 96 AS col2
----
1
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5351
SELECT DISTINCT CAST( - + NULLIF ( ( + + ( + - COUNT( DISTINCT + + 20 ) ) ), 28 - + 0 / - CAST( - - 38 AS DECIMAL ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT CAST ( - + NULLIF ( ( + + ( + - COUNT ( DISTINCT + + 20 ) ) ), 28 - + 0 / - CAST ( - - 38 AS REAL ) ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5352
SELECT DISTINCT 65, + 39 + + MIN( ALL - - 26 ) + - + 79 - - + 11 + - SUM( + ( - 40 ) ) + + 27 / + CAST( NULL AS SIGNED ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-5352
SELECT DISTINCT 65, + 39 + + MIN ( ALL - - 26 ) + - + 79 - - + 11 + - SUM ( + ( - 40 ) ) + + 27 / + CAST ( NULL AS INTEGER ) AS col0
----
65
NULL

query I rowsort
SELECT - 40 + 85
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL COUNT( * ) + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL COUNT ( * ) + - 54
----
-53

query I rowsort
SELECT - NULLIF ( + 72, + - 34 ) + - 60 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT 10 + 82 + - 20 * 2 + - ( + 67 ) * + - COALESCE ( - 81, + COALESCE ( + 15, + COUNT( * ) ), + 32 )
----
-5375

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT 10 + 82 + - 20 * 2 + - ( + 67 ) * + - COALESCE ( - 81, + COALESCE ( + 15, + COUNT ( * ) ), + 32 )
----
-5375

query I rowsort
SELECT ALL - 54 + 92
----
38

query I rowsort
SELECT DISTINCT 19 * + + 4
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5359
SELECT + + CAST( - - MAX( 50 ) AS SIGNED ) - - 4 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5359
SELECT + + CAST ( - - MAX ( 50 ) AS INTEGER ) - - 4 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL 37 * - + 95 - MIN( + + 19 )
----
-3534

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL 37 * - + 95 - MIN ( + + 19 )
----
-3534

query I rowsort
SELECT + 7 * + + 7
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL COUNT( 60 ) + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL COUNT ( 60 ) + - 91
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5363
SELECT + ( 94 ) + - + 33 * - COUNT( ALL - - 16 ), + 63 + - 14 * + 80 * + CAST( + 87 AS SIGNED ) AS col2
----
127
-97377

skipif mysql # not compatible
query II rowsort label-5363
SELECT + ( 94 ) + - + 33 * - COUNT ( ALL - - 16 ), + 63 + - 14 * + 80 * + CAST ( + 87 AS INTEGER ) AS col2
----
127
-97377

query I rowsort
SELECT ALL 95 + 10
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-5365
SELECT + - ( + + 67 ) DIV 20 DIV + - 99 * + COALESCE ( 88, + 18 ) * + 74 AS col1, COALESCE ( 38, 82 DIV - 93, 22, + 34 ) + + 19
----
0
57

skipif mysql # not compatible
query II rowsort label-5365
SELECT + - ( + + 67 ) / 20 / + - 99 * + COALESCE ( 88, + 18 ) * + 74 AS col1, COALESCE ( 38, 82 / - 93, 22, + 34 ) + + 19
----
0
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT + 78 + + 90 + 6 + + 93 * 37 + + + CASE - 83 WHEN - + 41 THEN + + 10 END / - - 35 + 85 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT + 78 + + 90 + 6 + + 93 * 37 + + + CASE - 83 WHEN - + 41 THEN + + 10 END / - - 35 + 85 * COUNT ( * )
----
NULL

query I rowsort
SELECT ( + ( 47 ) ) * - 8 - 58 AS col1
----
-434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5368
SELECT ALL NULLIF ( - 5, - + 31 ) + - 29 DIV 80 * COUNT( * ) * 47 col0
----
-5

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL NULLIF ( - 5, - + 31 ) + - 29 / 80 * COUNT ( * ) * 47 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT - - 89 * - COUNT( * ) * 35
----
-3115

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - - 89 * - COUNT ( * ) * 35
----
-3115

query II rowsort
SELECT DISTINCT - + 88, 90 col1
----
-88
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT MAX( DISTINCT + + 23 ) + 58 * 22 AS col0
----
1299

skipif mysql # not compatible
query I rowsort label-5371
SELECT MAX ( DISTINCT + + 23 ) + 58 * 22 AS col0
----
1299

query I rowsort
SELECT ALL - + ( + COALESCE ( - 50, ( - - 50 ), + 23 ) ) * + 70 * 90 AS col1
----
315000

query I rowsort
SELECT ALL - ( - 37 ) AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT DISTINCT CAST( - 52 AS SIGNED ) * 38
----
-1976

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT CAST ( - 52 AS INTEGER ) * 38
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL - CASE 86 WHEN - + 19 / 94 THEN 17 WHEN + COUNT( * ) THEN NULL END * SUM( DISTINCT + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - CASE 86 WHEN - + 19 / 94 THEN 17 WHEN + COUNT ( * ) THEN NULL END * SUM ( DISTINCT + 90 )
----
NULL

query I rowsort
SELECT 33 + - - 87
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT CAST( NULL AS SIGNED ) * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT CAST ( NULL AS INTEGER ) * - 9
----
NULL

query I rowsort
SELECT 72 * + ( - 85 ) AS col0
----
-6120

query I rowsort
SELECT ALL + 86 * - 69
----
-5934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT CAST( NULL AS SIGNED ) + + 54 + + COUNT( * ) * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT CAST ( NULL AS INTEGER ) + + 54 + + COUNT ( * ) * + 13
----
NULL

query II rowsort
SELECT + 85 AS col2, 10 AS col1
----
85
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5382
SELECT ALL - NULLIF ( - 17, - ( - 82 ) ) col1, - CASE - + ( - MAX( DISTINCT 93 ) ) WHEN + 56 THEN NULL WHEN + 34 + + + 10 + 40 / - COUNT( * ) THEN CAST( + 2 AS SIGNED ) - 78 * 26 ELSE 67 + - 56 END
----
17
-11

skipif mysql # not compatible
query II rowsort label-5382
SELECT ALL - NULLIF ( - 17, - ( - 82 ) ) col1, - CASE - + ( - MAX ( DISTINCT 93 ) ) WHEN + 56 THEN NULL WHEN + 34 + + + 10 + 40 / - COUNT ( * ) THEN CAST ( + 2 AS INTEGER ) - 78 * 26 ELSE 67 + - 56 END
----
17
-11

query I rowsort
SELECT 59 + ( - COALESCE ( - 98, - - 78 + - 58 + + - 64 ) )
----
157

query I rowsort
SELECT 62 * - + 57 AS col0
----
-3534

query II rowsort
SELECT 17, + 55 AS col0
----
17
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL - COALESCE ( COUNT( * ), + 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - COALESCE ( COUNT ( * ), + 54 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT 78 + + CASE + COUNT( * ) WHEN + 63 + + + COUNT( * ) THEN 28 ELSE 36 END * - - 80 AS col2
----
2958

skipif mysql # not compatible
query I rowsort label-5387
SELECT 78 + + CASE + COUNT ( * ) WHEN + 63 + + + COUNT ( * ) THEN 28 ELSE 36 END * - - 80 AS col2
----
2958

query II rowsort
SELECT 36, - 20 AS col0
----
36
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT - 42 DIV - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - 42 / - 50 AS col1
----
0

query I rowsort
SELECT ALL + 88 + - 2 AS col0
----
86

query I rowsort
SELECT + 61 * + - 84 * + - 4 + + 46 + - + 0 + + - 96 col1
----
20446

query I rowsort
SELECT 3 - + - 6
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL - 24 + + + 34 * + MIN( - + 10 ) AS col2
----
-364

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL - 24 + + + 34 * + MIN ( - + 10 ) AS col2
----
-364

query I rowsort
SELECT 77 + - 61 AS col2
----
16

query I rowsort
SELECT 52 * - + ( 93 ) * - + 61 + + 67 AS col1
----
295063

query II rowsort
SELECT 22, + 51 AS col0
----
22
51

query II rowsort
SELECT - 70 AS col2, 44 + - 17
----
-70
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT ALL + 52 + + 85 DIV 8
----
62

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL + 52 + + 85 / 8
----
62

query I rowsort
SELECT 6 + 12 * ( + 34 ) AS col1
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL - COUNT( * ) + - 83 + - 98 * - 76 * MAX( - + NULLIF ( + + 87, - + 93 * - 18 + + 87 ) ) AS col2
----
-648060

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - COUNT ( * ) + - 83 + - 98 * - 76 * MAX ( - + NULLIF ( + + 87, - + 93 * - 18 + + 87 ) ) AS col2
----
-648060

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT + MAX( + + 84 ) + 15 * + + 58 + COUNT( * ) * - 18 AS col1
----
936

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + MAX ( + + 84 ) + 15 * + + 58 + COUNT ( * ) * - 18 AS col1
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5402
SELECT ALL NULLIF ( + 21, - - 52 * - 13 * + COUNT( * ) * 34 ) + - 33 * - - 73 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL NULLIF ( + 21, - - 52 * - 13 * + COUNT ( * ) * 34 ) + - 33 * - - 73 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT ALL + 22 + NULLIF ( - 72, + + COUNT( * ) ) DIV - + 85 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + 22 + NULLIF ( - 72, + + COUNT ( * ) ) / - + 85 AS col0
----
22

query II rowsort
SELECT DISTINCT 20 AS col0, 65 - - + 38
----
20
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT 45 + - SUM( 38 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5405
SELECT 45 + - SUM ( 38 ) AS col2
----
7

query I rowsort
SELECT ALL + 42 + 30
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT ALL - - 74 / 62 * - ( - - 7 ) - AVG ( DISTINCT - CAST( ( + + 25 ) AS SIGNED ) ) * - - CASE - + 58 WHEN - ( 53 ) THEN 19 ELSE NULL END / - 81 + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - - 74 / 62 * - ( - - 7 ) - AVG ( DISTINCT - CAST ( ( + + 25 ) AS INTEGER ) ) * - - CASE - + 58 WHEN - ( 53 ) THEN 19 ELSE NULL END / - 81 + - 12
----
NULL

query I rowsort
SELECT + 62 * - 70
----
-4340

query I rowsort
SELECT + 32 + - 25 * - 94 AS col0
----
2382

query I rowsort
SELECT + 71 + - + 17 * - ( - + ( - - 81 ) ) - + + 72
----
-1378

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT ( + 58 ) - - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT ( + 58 ) - - COUNT ( * ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT 3 AS col2, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-5412
SELECT 3 AS col2, COUNT ( * )
----
3
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5413
SELECT - 10 AS col2, COUNT( * ) AS col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-5413
SELECT - 10 AS col2, COUNT ( * ) AS col1
----
-10
1

query I rowsort
SELECT 14 + 63 + + 19 + + - 66 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL - 7 - - - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 7 - - - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT ALL ( 46 ) * 59
----
2714

query I rowsort
SELECT ALL 95 - + 97 + - 54 - - + 0 AS col2
----
-56

query III rowsort
SELECT DISTINCT - 52, 60 + + + 46 * - 43 AS col0, 43 col0
----
-52
-1918
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT + NULLIF ( + AVG ( - CAST( NULL AS SIGNED ) ), 48 + + ( - 26 ) - 65 + - + 56 * - 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT + NULLIF ( + AVG ( - CAST ( NULL AS INTEGER ) ), 48 + + ( - 26 ) - 65 + - + 56 * - 26 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5420
SELECT 72 DIV + 46 AS col0, - 72 * - + 57
----
1
4104

skipif mysql # not compatible
query II rowsort label-5420
SELECT 72 / + 46 AS col0, - 72 * - + 57
----
1
4104

query II rowsort
SELECT 43 * 19, 11 col0
----
817
11

query I rowsort
SELECT + 15 * + 96 + 35 col1
----
1475

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT ALL 77 DIV 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL 77 / 37 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5424
SELECT COUNT( ALL + ( 78 ) ) DIV 76 * 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5424
SELECT COUNT ( ALL + ( 78 ) ) / 76 * 6 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL 95 * - 49 * + COUNT( + 12 )
----
-4655

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL 95 * - 49 * + COUNT ( + 12 )
----
-4655

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5426
SELECT ALL 7 DIV 83, - 55 DIV - 77 DIV - 97 DIV - 72 * - 78 * CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL 7 / 83, - 55 / - 77 / - 97 / - 72 * - 78 * CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - COALESCE ( 72, - SUM( DISTINCT 67 ) + COUNT( * ) * + 45 )
----
-72

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - COALESCE ( 72, - SUM ( DISTINCT 67 ) + COUNT ( * ) * + 45 )
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-5428
SELECT ALL 42 DIV + 11 AS col0, 92
----
3
92

skipif mysql # not compatible
query II rowsort label-5428
SELECT ALL 42 / + 11 AS col0, 92
----
3
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT 87 DIV + - 46
----
-1

skipif mysql # not compatible
query I rowsort label-5429
SELECT 87 / + - 46
----
-1

query I rowsort
SELECT DISTINCT 76 * + 57 * + 48 col0
----
207936

query I rowsort
SELECT ALL 35 + 66 * 54 + + + 0 * - 37
----
3599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5432
SELECT DISTINCT 94 + 31 AS col0, NULLIF ( - CAST( 47 AS DECIMAL ), + COUNT( - ( + 84 ) ) ) * - CAST( NULL AS SIGNED ) + - 17, 37 * + 64 AS col0
----
125
NULL
2368

skipif mysql # not compatible
query III rowsort label-5432
SELECT DISTINCT 94 + 31 AS col0, NULLIF ( - CAST ( 47 AS REAL ), + COUNT ( - ( + 84 ) ) ) * - CAST ( NULL AS INTEGER ) + - 17, 37 * + 64 AS col0
----
125
NULL
2368

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT + SUM( - - 55 ), + 40 * COUNT( ( 24 ) ) AS col1
----
55
40

skipif mysql # not compatible
query II rowsort label-5433
SELECT + SUM ( - - 55 ), + 40 * COUNT ( ( 24 ) ) AS col1
----
55
40

query I rowsort
SELECT 13 + 55 AS col1
----
68

query II rowsort
SELECT ALL + 84 + + 24 AS col2, 15
----
108
15

query I rowsort
SELECT 22 * + 66 AS col1
----
1452

query I rowsort
SELECT ALL 93 + - ( + + 80 ) * + + 68 * + 67 + + - 9 AS col2
----
-364396

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT + MIN( DISTINCT + - 66 ) * - 23 * + COALESCE ( + 11, - + 29 )
----
16698

skipif mysql # not compatible
query I rowsort label-5438
SELECT + MIN ( DISTINCT + - 66 ) * - 23 * + COALESCE ( + 11, - + 29 )
----
16698

query I rowsort
SELECT ALL - - 47 + - 61 AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT - - CAST( + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5440
SELECT - - CAST ( + 77 AS INTEGER ) AS col1
----
77

query I rowsort
SELECT ALL - - 72 * 73 AS col2
----
5256

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT - + 96 + COUNT( * ) * + + 71
----
-25

skipif mysql # not compatible
query I rowsort label-5442
SELECT - + 96 + COUNT ( * ) * + + 71
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5443
SELECT - CAST( NULL AS DECIMAL ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT - CAST ( NULL AS REAL ) * 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL + CAST( NULL AS SIGNED ) - + 72 + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + CAST ( NULL AS INTEGER ) - + 72 + - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT - + 97 * 39 + + SUM( ALL 31 ) col0
----
-3752

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT - + 97 * 39 + + SUM ( ALL 31 ) col0
----
-3752

query I rowsort
SELECT - 74 + + - 5 * + + 38 + + 60 + + 25 * + 70 * 43 + - 45 + + 66 AS col2
----
75067

query I rowsort
SELECT - 83 * 50 + 28 * + 1 + + - 23 AS col1
----
-4145

query I rowsort
SELECT DISTINCT + - 30 * + ( + + 27 )
----
-810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT - 10 + + 15 DIV COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5449
SELECT - 10 + + 15 / COUNT ( * ) AS col0
----
5

query I rowsort
SELECT ALL + 75 - - 0 + + - 79 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT ALL - 70 DIV + 93 - + 28 + + ( + 92 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - 70 / + 93 - + 28 + + ( + 92 ) AS col2
----
64

query I rowsort
SELECT + + 89 * + ( 40 ) + - - 56 * 28
----
5128

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - - COUNT( * ) + - - 59 * 42 * 61
----
151159

skipif mysql # not compatible
query I rowsort label-5453
SELECT - - COUNT ( * ) + - - 59 * 42 * 61
----
151159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT CAST( + 40 AS SIGNED ) * + ( - 0 ) * - + 84 * 42 - + + 42 * + - 88 - + 54
----
3642

skipif mysql # not compatible
query I rowsort label-5454
SELECT CAST ( + 40 AS INTEGER ) * + ( - 0 ) * - + 84 * 42 - + + 42 * + - 88 - + 54
----
3642

query I rowsort
SELECT - 7 * NULLIF ( - 19, + 72 ) AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT + 13 * - - COUNT( 48 )
----
13

skipif mysql # not compatible
query I rowsort label-5456
SELECT + 13 * - - COUNT ( 48 )
----
13

query I rowsort
SELECT COALESCE ( - 63, + 28 - ( - 46 ) * - 39 + + 58 ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT ALL CAST( + 59 AS SIGNED ) * - 39 + + 52
----
-2249

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL CAST ( + 59 AS INTEGER ) * - 39 + + 52
----
-2249

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + SUM( 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5459
SELECT + SUM ( 94 ) AS col1
----
94

query I rowsort
SELECT ALL - 60 * - - COALESCE ( + 4, - - 33 ) AS col2
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + COUNT( ALL - 67 ) * 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5461
SELECT + COUNT ( ALL - 67 ) * 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL + MIN( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL + MIN ( DISTINCT 98 )
----
98

query I rowsort
SELECT NULLIF ( + + 50, - 91 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT + COALESCE ( - - NULLIF ( - 12, + 88 ), - COUNT( * ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5464
SELECT + COALESCE ( - - NULLIF ( - 12, + 88 ), - COUNT ( * ) ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - COUNT( * ) + - + 91
----
-92

skipif mysql # not compatible
query I rowsort label-5465
SELECT - COUNT ( * ) + - + 91
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5466
SELECT + 47 * - - 52 DIV COUNT( * ), - 40 + - - 35 + - 48 * - + 74 - - 26 * - 47 col1
----
2444
2325

skipif mysql # not compatible
query II rowsort label-5466
SELECT + 47 * - - 52 / COUNT ( * ), - 40 + - - 35 + - 48 * - + 74 - - 26 * - 47 col1
----
2444
2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT CASE - + 91 WHEN + - 10 + ( - 40 ) + - 77 THEN NULL WHEN - - 44 THEN NULL ELSE - + ( + SUM( DISTINCT + 87 ) ) * - AVG ( CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT CASE - + 91 WHEN + - 10 + ( - 40 ) + - 77 THEN NULL WHEN - - 44 THEN NULL ELSE - + ( + SUM ( DISTINCT + 87 ) ) * - AVG ( CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT + 18 + ( - 80 )
----
-62

query II rowsort
SELECT ALL + 51 AS col1, 92 AS col2
----
51
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT + 0 DIV + 16 * + ( + - 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT + 0 / + 16 * + ( + - 82 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + 43 * - COALESCE ( 70, + 41 ) + - + 55 + COUNT( * ) + + 29 * - + 51 + - COUNT( * ) * + - 68 AS col1
----
-4475

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + 43 * - COALESCE ( 70, + 41 ) + - + 55 + COUNT ( * ) + + 29 * - + 51 + - COUNT ( * ) * + - 68 AS col1
----
-4475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5472
SELECT 88 * + COALESCE ( + 77, - COALESCE ( + + ( 42 ), 89 * - - CASE + + MAX( + 2 ) WHEN + 48 THEN - 97 WHEN - + 83 + ( - COUNT( * ) ) THEN 7 * 35 WHEN - CAST( 74 AS DECIMAL ) THEN NULL ELSE NULL END + - CAST( NULL AS SIGNED ) ), + 88 ) + 88
----
6864

skipif mysql # not compatible
query I rowsort label-5472
SELECT 88 * + COALESCE ( + 77, - COALESCE ( + + ( 42 ), 89 * - - CASE + + MAX ( + 2 ) WHEN + 48 THEN - 97 WHEN - + 83 + ( - COUNT ( * ) ) THEN 7 * 35 WHEN - CAST ( 74 AS REAL ) THEN NULL ELSE NULL END + - CAST ( NULL AS INTEGER ) ), + 88 ) + 88
----
6864

query I rowsort
SELECT + + ( + ( + 49 ) ) + 42
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5474
SELECT + 12 * - 1 + + + CAST( NULL AS SIGNED ) AS col1, - 67 * 23 AS col2
----
NULL
-1541

skipif mysql # not compatible
query II rowsort label-5474
SELECT + 12 * - 1 + + + CAST ( NULL AS INTEGER ) AS col1, - 67 * 23 AS col2
----
NULL
-1541

query I rowsort
SELECT - - 37 * + 3 * - - 87 AS col2
----
9657

query I rowsort
SELECT ALL 61 * + 98 * + 51
----
304878

query I rowsort
SELECT + 31 + 94 AS col0
----
125

query I rowsort
SELECT - 14 + 80 + 18 * 18 AS col1
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL - COUNT( * ) - 73 + + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - COUNT ( * ) - 73 + + COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT + - NULLIF ( + 46, + + 64 ) * 13 AS col1
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - 27 + MIN( + + 83 ) + + 37 * 10 AS col1
----
426

skipif mysql # not compatible
query I rowsort label-5481
SELECT - 27 + MIN ( + + 83 ) + + 37 * 10 AS col1
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT COUNT( * ) - NULLIF ( - ( + 9 ), + 36 * - - 1 * 54 ) - + 89 + - + 76
----
-155

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT COUNT ( * ) - NULLIF ( - ( + 9 ), + 36 * - - 1 * 54 ) - + 89 + - + 76
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT - - ( + - CASE 72 WHEN + CAST( NULL AS SIGNED ) THEN - 62 + + COUNT( * ) + 11 * - 97 END ) + - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT - - ( + - CASE 72 WHEN + CAST ( NULL AS INTEGER ) THEN - 62 + + COUNT ( * ) + 11 * - 97 END ) + - 52 AS col1
----
NULL

query I rowsort
SELECT - 89 * - 41 + 94 * - - 63 * + - 1 AS col1
----
-2273

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT COUNT( ALL + 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT COUNT ( ALL + 38 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT + 41 * + CASE 17 WHEN - - SUM( - 98 ) * - + 69 + - + ( - + 41 ) THEN + 21 - - - COUNT( * ) + - SUM( + 34 ) - - - 20 WHEN - 41 / + 83 THEN 18 * + COUNT( * ) + 35 ELSE + COUNT( * ) END
----
41

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + 41 * + CASE 17 WHEN - - SUM ( - 98 ) * - + 69 + - + ( - + 41 ) THEN + 21 - - - COUNT ( * ) + - SUM ( + 34 ) - - - 20 WHEN - 41 / + 83 THEN 18 * + COUNT ( * ) + 35 ELSE + COUNT ( * ) END
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5487
SELECT 13 AS col1, 55 + + + 0 + 1 * 33 DIV - + 18, 92 * - CAST( + 64 AS SIGNED ) * - + 27 * + + CASE + 4 WHEN + - ( 83 ) + 28 THEN COUNT( DISTINCT 26 ) ELSE NULL END * - CAST( COUNT( * ) AS SIGNED ) + - 9 AS col0
----
13
54
NULL

skipif mysql # not compatible
query III rowsort label-5487
SELECT 13 AS col1, 55 + + + 0 + 1 * 33 / - + 18, 92 * - CAST ( + 64 AS INTEGER ) * - + 27 * + + CASE + 4 WHEN + - ( 83 ) + 28 THEN COUNT ( DISTINCT 26 ) ELSE NULL END * - CAST ( COUNT ( * ) AS INTEGER ) + - 9 AS col0
----
13
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - NULLIF ( + 57, - 60 * AVG ( - + 24 ) ) + + + CASE + 40 WHEN + 43 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT - NULLIF ( + 57, - 60 * AVG ( - + 24 ) ) + + + CASE + 40 WHEN + 43 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT ALL COUNT( * ) AS col1, + 39 AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-5489
SELECT ALL COUNT ( * ) AS col1, + 39 AS col1
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT - 74 * + 87 * COALESCE ( - SUM( DISTINCT 84 ), + 30 ) col0
----
540792

skipif mysql # not compatible
query I rowsort label-5490
SELECT - 74 * + 87 * COALESCE ( - SUM ( DISTINCT 84 ), + 30 ) col0
----
540792

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - 43 + + 27 * - ( MAX( - + 71 ) )
----
1874

skipif mysql # not compatible
query I rowsort label-5491
SELECT - 43 + + 27 * - ( MAX ( - + 71 ) )
----
1874

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + - 52 * + - MAX( 48 )
----
2496

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + - 52 * + - MAX ( 48 )
----
2496

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5493
SELECT - + CAST( 94 AS SIGNED ) DIV + + 11 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5493
SELECT - + CAST ( 94 AS INTEGER ) / + + 11 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + COUNT( * ) * 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + COUNT ( * ) * 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT - 82 + + COALESCE ( + 78, SUM( ALL ( 59 ) ) + + MAX( DISTINCT - NULLIF ( - 65, 92 ) ) + + 2 * + - 25 * + 64, + COUNT( DISTINCT 93 ) ) + - 0 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT - 82 + + COALESCE ( + 78, SUM ( ALL ( 59 ) ) + + MAX ( DISTINCT - NULLIF ( - 65, 92 ) ) + + 2 * + - 25 * + 64, + COUNT ( DISTINCT 93 ) ) + - 0 AS col0
----
-4

query I rowsort
SELECT DISTINCT + ( + - 10 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT ALL 94 DIV - + 11 + - 45 col1
----
-53

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL 94 / - + 11 + - 45 col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT - ( - 81 ) DIV + 22
----
3

skipif mysql # not compatible
query I rowsort label-5498
SELECT - ( - 81 ) / + 22
----
3

query I rowsort
SELECT + 47 + 77
----
124

query II rowsort
SELECT 56 * + 62 + + + 72 * + 60 AS col2, - ( - + 0 ) - + + 2
----
7792
-2

query I rowsort
SELECT + ( - 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5502
SELECT 93 / - 65 * + 74 * COALESCE ( - COALESCE ( - 11, - 96 * + 39 / - 53 ), + + 21 * 0 ) + + + CAST( NULL AS DECIMAL ) + - - 14 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT 93 / - 65 * + 74 * COALESCE ( - COALESCE ( - 11, - 96 * + 39 / - 53 ), + + 21 * 0 ) + + + CAST ( NULL AS REAL ) + - - 14 * + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT + 11 * COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + 11 * COUNT ( * )
----
11

query I rowsort
SELECT + ( + ( + 8 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ( - COUNT( * ) ) * - 72
----
72

skipif mysql # not compatible
query I rowsort label-5505
SELECT ( - COUNT ( * ) ) * - 72
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT + - ( + COALESCE ( CAST( NULL AS SIGNED ), + 99 * + 61 * - 15 ) )
----
90585

skipif mysql # not compatible
query I rowsort label-5506
SELECT + - ( + COALESCE ( CAST ( NULL AS INTEGER ), + 99 * + 61 * - 15 ) )
----
90585

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL + 19 * + MAX( DISTINCT - - 66 )
----
1254

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + 19 * + MAX ( DISTINCT - - 66 )
----
1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL COUNT( * ) * 71 + + 9 * CAST( NULL AS SIGNED ) * 79 * + + 0 * - 10 * - - AVG ( DISTINCT CAST( + 75 AS SIGNED ) ) - + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL COUNT ( * ) * 71 + + 9 * CAST ( NULL AS INTEGER ) * 79 * + + 0 * - 10 * - - AVG ( DISTINCT CAST ( + 75 AS INTEGER ) ) - + 29 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT DISTINCT 43 DIV + 62 * - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT 43 / + 62 * - 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL COUNT( * ) * 52 + + 71 * MIN( 79 ) col2
----
5661

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL COUNT ( * ) * 52 + + 71 * MIN ( 79 ) col2
----
5661

query I rowsort
SELECT 30 * - - 59 - - - 74
----
1696

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT + MIN( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT + MIN ( 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT - COUNT( * ) + + 57 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5513
SELECT - COUNT ( * ) + + 57 AS col2
----
56

query I rowsort
SELECT ( + 46 ) * + - 12
----
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT - COALESCE ( - + COUNT( * ), - + 67 + - 17 ), - 4 col1
----
1
-4

skipif mysql # not compatible
query II rowsort label-5515
SELECT - COALESCE ( - + COUNT ( * ), - + 67 + - 17 ), - 4 col1
----
1
-4

query I rowsort
SELECT ALL + + 25 + - 49
----
-24

query II rowsort
SELECT 71 + - - 96 + + 23 col2, 34 + - - 6 + - 93 col1
----
190
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5518
SELECT ALL 23, 69 * - 12 + + 90 - - COUNT( * ) AS col1
----
23
-737

skipif mysql # not compatible
query II rowsort label-5518
SELECT ALL 23, 69 * - 12 + + 90 - - COUNT ( * ) AS col1
----
23
-737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT 84 + - 94 * + CAST( NULL AS SIGNED ) + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT 84 + - 94 * + CAST ( NULL AS INTEGER ) + 10 AS col2
----
NULL

query I rowsort
SELECT ALL + 96 * 14 AS col0
----
1344

query I rowsort
SELECT ALL 60 + 83 + 1 + 67 col1
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL 19 + - 41 - - - MIN( - 6 )
----
-16

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL 19 + - 41 - - - MIN ( - 6 )
----
-16

query I rowsort
SELECT 61 + 17
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT 6 * COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-5524
SELECT 6 * COUNT ( * ) col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT 70 * + ( - 11 ) - + 59 DIV + 1 * - COUNT( * ) + - COUNT( * )
----
-712

skipif mysql # not compatible
query I rowsort label-5525
SELECT 70 * + ( - 11 ) - + 59 / + 1 * - COUNT ( * ) + - COUNT ( * )
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + SUM( + ( 50 ) ) - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + SUM ( + ( 50 ) ) - + COUNT ( * )
----
49

query I rowsort
SELECT 96 * - 46
----
-4416

query I rowsort
SELECT ALL 76 * - 98
----
-7448

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) + 30 * - ( + MAX( - + 49 ) ) + - 18
----
1454

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) + 30 * - ( + MAX ( - + 49 ) ) + - 18
----
1454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT ALL - COUNT( * ) DIV 80 * 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - COUNT ( * ) / 80 * 20 AS col0
----
0

query II rowsort
SELECT DISTINCT - 89 col2, 84
----
-89
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5532
SELECT COALESCE ( + 71, - 61 ) * + 83 + 13 DIV + 80
----
5893

skipif mysql # not compatible
query I rowsort label-5532
SELECT COALESCE ( + 71, - 61 ) * + 83 + 13 / + 80
----
5893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT 89 * - + 83 - - + 79 * + COUNT( * ) * + 28 + - 76 DIV NULLIF ( + 13, + 24 * + 17 + 72 + + + COUNT( * ) + + COALESCE ( - 11, ( - 89 ), COUNT( * ) * + 72 ) ) * 72 + - 17 col1
----
-5552

skipif mysql # not compatible
query I rowsort label-5533
SELECT 89 * - + 83 - - + 79 * + COUNT ( * ) * + 28 + - 76 / NULLIF ( + 13, + 24 * + 17 + 72 + + + COUNT ( * ) + + COALESCE ( - 11, ( - 89 ), COUNT ( * ) * + 72 ) ) * 72 + - 17 col1
----
-5552

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL + COUNT( ALL 0 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + COUNT ( ALL 0 ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT COUNT( * ) * 58 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( * ) * 58 / 88
----
0

query I rowsort
SELECT - - 18 * + 69 + - + 14
----
1228

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT COUNT( ALL + 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5537
SELECT COUNT ( ALL + 77 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL 93 * + + 24 * + + COUNT( * ) * - ( - COUNT( * ) ) + + 49 col2
----
2281

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL 93 * + + 24 * + + COUNT ( * ) * - ( - COUNT ( * ) ) + + 49 col2
----
2281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL + - 61 * - 3 + + CAST( + 88 AS SIGNED ) AS col0
----
271

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL + - 61 * - 3 + + CAST ( + 88 AS INTEGER ) AS col0
----
271

query I rowsort
SELECT + 71 * - 33 col0
----
-2343

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - 88 + + MIN( - 29 ) + - + 57
----
-174

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - 88 + + MIN ( - 29 ) + - + 57
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT + + 11 * MIN( DISTINCT - 59 ) + + + 16 AS col0
----
-633

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + + 11 * MIN ( DISTINCT - 59 ) + + + 16 AS col0
----
-633

query I rowsort
SELECT ALL + ( - NULLIF ( - 44, + - 55 ) )
----
44

query I rowsort
SELECT ( 75 ) * + 51
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT MIN( ALL + 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5545
SELECT MIN ( ALL + 91 ) AS col0
----
91

query I rowsort
SELECT NULLIF ( - ( + + 7 ), - - 14 - + 15 ) + - 13 col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5547
SELECT ALL 95 + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + 73 - + + 31 * - 62 + - - CASE - 36 WHEN - + 68 THEN 75 ELSE + 48 END * 39 - + 94 - + 61 AS col0
----
3807

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL 95 + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + 73 - + + 31 * - 62 + - - CASE - 36 WHEN - + 68 THEN 75 ELSE + 48 END * 39 - + 94 - + 61 AS col0
----
3807

query I rowsort
SELECT DISTINCT + 14 + + 90 + + 31 + 47 + + 88
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT 62 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT 62 / + + 64
----
0

query I rowsort
SELECT ALL 43 + 22 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ( COALESCE ( + 50, + COUNT( * ) ) ) * + + 33 AS col0
----
1650

skipif mysql # not compatible
query I rowsort label-5551
SELECT ( COALESCE ( + 50, + COUNT ( * ) ) ) * + + 33 AS col0
----
1650

query I rowsort
SELECT DISTINCT 78 * - 68 * 67
----
-355368

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT CASE + + 68 WHEN - ( - 92 ) THEN NULL ELSE MIN( DISTINCT 76 ) END + + 58 * + - 55
----
-3114

skipif mysql # not compatible
query I rowsort label-5553
SELECT CASE + + 68 WHEN - ( - 92 ) THEN NULL ELSE MIN ( DISTINCT 76 ) END + + 58 * + - 55
----
-3114

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT COUNT( * ) + + + MAX( - + 8 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5554
SELECT COUNT ( * ) + + + MAX ( - + 8 ) AS col1
----
-7

query I rowsort
SELECT DISTINCT 30 - - 73 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL 65 - - - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL 65 - - - COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT - COUNT( * ) AS col0, + 86 AS col1
----
-1
86

skipif mysql # not compatible
query II rowsort label-5557
SELECT - COUNT ( * ) AS col0, + 86 AS col1
----
-1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT COUNT( * ) * 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT COUNT ( * ) * 92 AS col1
----
92

query I rowsort
SELECT ALL - ( - 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5560
SELECT ALL - 48 col2, COUNT( * ) DIV + 44
----
-48
0

skipif mysql # not compatible
query II rowsort label-5560
SELECT ALL - 48 col2, COUNT ( * ) / + 44
----
-48
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5561
SELECT 39 DIV + MAX( ALL 33 ) - - 49
----
50

skipif mysql # not compatible
query I rowsort label-5561
SELECT 39 / + MAX ( ALL 33 ) - - 49
----
50

query I rowsort
SELECT - 34 + 95 + + - 36 + 59 AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5563
SELECT + 64, 86 + - 81 * - 19 + - - NULLIF ( + 85, - 1 ) DIV ( + 51 ) + + 99 + + + COUNT( * ) * - 14 AS col2
----
64
1711

skipif mysql # not compatible
query II rowsort label-5563
SELECT + 64, 86 + - 81 * - 19 + - - NULLIF ( + 85, - 1 ) / ( + 51 ) + + 99 + + + COUNT ( * ) * - 14 AS col2
----
64
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL + COUNT( - 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + COUNT ( - 19 ) AS col2
----
1

query I rowsort
SELECT + 81 * - 66 AS col2
----
-5346

query I rowsort
SELECT ALL - 52 * 26 AS col1
----
-1352

query I rowsort
SELECT DISTINCT + + 72 AS col2
----
72

query I rowsort
SELECT - - 97 * - ( + 26 ) + + 52 * 15 AS col2
----
-1742

query I rowsort
SELECT ALL + 92 * - 74 + - - 82 AS col1
----
-6726

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT - 80 AS col1, 20 * + COUNT( * ) * - 73 * - CASE - + 37 WHEN + ( - 50 ) / - 55 THEN - 47 ELSE NULL END
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-5570
SELECT - 80 AS col1, 20 * + COUNT ( * ) * - 73 * - CASE - + 37 WHEN + ( - 50 ) / - 55 THEN - 47 ELSE NULL END
----
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT + COUNT( * ) * - COALESCE ( - - 3, - + 4 ) + + 88 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( - - 3, - + 4 ) + + 88 AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT - COUNT( * ), - 95 - + 87 * + 79 AS col1
----
-1
-6968

skipif mysql # not compatible
query II rowsort label-5572
SELECT - COUNT ( * ), - 95 - + 87 * + 79 AS col1
----
-1
-6968

query I rowsort
SELECT - + 37 * + 96
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - MAX( 14 ) * + 79
----
-1106

skipif mysql # not compatible
query I rowsort label-5574
SELECT - MAX ( 14 ) * + 79
----
-1106

query I rowsort
SELECT - 27 * + 93 AS col2
----
-2511

query II rowsort
SELECT + + 6 AS col1, - 71
----
6
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5577
SELECT ALL COUNT( * ) * + COUNT( * ) + + 77 + + 86, + MAX( ALL - 42 ) AS col1
----
164
-42

skipif mysql # not compatible
query II rowsort label-5577
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + 77 + + 86, + MAX ( ALL - 42 ) AS col1
----
164
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - COUNT( * ) - 44
----
-45

skipif mysql # not compatible
query I rowsort label-5578
SELECT - COUNT ( * ) - 44
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - 25 + - 81 * + 93 * + COALESCE ( COUNT( * ), - ( + + 75 ) * 40 )
----
-7558

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 25 + - 81 * + 93 * + COALESCE ( COUNT ( * ), - ( + + 75 ) * 40 )
----
-7558

query I rowsort
SELECT + 31 * 10
----
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT ALL - 97 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - 97 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT + 83 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-5582
SELECT + 83 / + 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL 89 - - - 16 - + COUNT( * ) + + 82 * + COUNT( * ) * - - ( + 48 ) + + COUNT( * )
----
4009

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 89 - - - 16 - + COUNT ( * ) + + 82 * + COUNT ( * ) * - - ( + 48 ) + + COUNT ( * )
----
4009

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5584
SELECT - 95 * CAST( - 33 AS DECIMAL ) * + CAST( NULL AS SIGNED ) + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT - 95 * CAST ( - 33 AS REAL ) * + CAST ( NULL AS INTEGER ) + 32 AS col0
----
NULL

query I rowsort
SELECT ALL - 97 * - + 28 col0
----
2716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT - CAST( + + 72 AS SIGNED ) + - - COUNT( * ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-5586
SELECT - CAST ( + + 72 AS INTEGER ) + - - COUNT ( * ) col1
----
-71

query I rowsort
SELECT DISTINCT ( + NULLIF ( 19, 19 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5588
SELECT DISTINCT ( - CASE - 26 WHEN + 98 DIV 94 THEN NULL WHEN + 10 + - + MAX( ALL + - 10 ) * + COUNT( * ) THEN 97 DIV + + 90 * 24 DIV + 36 - + + 50 ELSE COALESCE ( - - 5, - + 95 * - CAST( + 24 + 95 * + CAST( NULL AS SIGNED ) AS SIGNED ) + + 18 * + COUNT( * ) ) END ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT ( - CASE - 26 WHEN + 98 / 94 THEN NULL WHEN + 10 + - + MAX ( ALL + - 10 ) * + COUNT ( * ) THEN 97 / + + 90 * 24 / + 36 - + + 50 ELSE COALESCE ( - - 5, - + 95 * - CAST ( + 24 + 95 * + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 18 * + COUNT ( * ) ) END ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL MAX( ALL - 71 ) * + + 13
----
-923

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL MAX ( ALL - 71 ) * + + 13
----
-923

query I rowsort
SELECT + 65 * + - ( 99 ) AS col0
----
-6435

query II rowsort
SELECT - 53 + 94 AS col2, + 98 col2
----
41
98

query I rowsort
SELECT - NULLIF ( + 72, 57 + - 75 + 7 * + - 43 ) + 87
----
15

query I rowsort
SELECT - ( - 41 ) AS col2
----
41

query I rowsort
SELECT + 93 + - NULLIF ( + 16, COALESCE ( + 32, - 3 ) ) + + 63 + 29 col0
----
169

query I rowsort
SELECT + NULLIF ( + + ( 81 ), - + 67 / + ( 57 ) ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT ALL 17 * + + 25 AS col2, + COUNT( * )
----
425
1

skipif mysql # not compatible
query II rowsort label-5596
SELECT ALL 17 * + + 25 AS col2, + COUNT ( * )
----
425
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT + 81 / - 45 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT + 81 / - 45 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( - 7 ) * + CASE + - 65 WHEN + - 79 THEN + 44 + - 37 END - + - 91 + - 49 AS col2
----
NULL

query I rowsort
SELECT ALL - 96 * - - 12
----
-1152

query I rowsort
SELECT ALL + + CASE - AVG ( - 45 ) WHEN - 10 + - 9 * + - 55 THEN + + 13 + - + 8 + + 32 + + 2 * + 55 - + 50 WHEN 94 - - 90 THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5601
SELECT + 77 * - 59 + - + 43 + - - 74 - + - NULLIF ( - CAST( - - 19 AS SIGNED ), - 55 + - - 24 - 81 ) AS col0
----
-4531

skipif mysql # not compatible
query I rowsort label-5601
SELECT + 77 * - 59 + - + 43 + - - 74 - + - NULLIF ( - CAST ( - - 19 AS INTEGER ), - 55 + - - 24 - 81 ) AS col0
----
-4531

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL 6 * + 60 + NULLIF ( 92, COUNT( * ) / - 4 ) + COUNT( * ) * - 75 * + - COUNT( * ) * 4 * + 54 - + COALESCE ( 85, - COUNT( * ) * + - ( + + 11 ) ) AS col0
----
16567

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL 6 * + 60 + NULLIF ( 92, COUNT ( * ) / - 4 ) + COUNT ( * ) * - 75 * + - COUNT ( * ) * 4 * + 54 - + COALESCE ( 85, - COUNT ( * ) * + - ( + + 11 ) ) AS col0
----
16567

query I rowsort
SELECT - 10 * + - 84 + - 12
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - CASE - COUNT( * ) WHEN - 80 THEN NULL ELSE - 59 END * COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5604
SELECT - CASE - COUNT ( * ) WHEN - 80 THEN NULL ELSE - 59 END * COUNT ( * ) AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5605
SELECT - SUM( + 39 ) AS col2, - 27 DIV + 67 * - + 62 * + 55 AS col2
----
-39
0

skipif mysql # not compatible
query II rowsort label-5605
SELECT - SUM ( + 39 ) AS col2, - 27 / + 67 * - + 62 * + 55 AS col2
----
-39
0

query I rowsort
SELECT DISTINCT + 5 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL + - 84 * - 24 / 30 + + CASE + 48 WHEN - + ( + - 57 ) THEN NULL WHEN + 28 THEN - 80 * - 61 WHEN + 61 - - 19 * + - CASE 17 WHEN - - 78 + COUNT( * ) + + 77 THEN 31 WHEN + 68 THEN NULL ELSE - 61 END THEN NULL END + - ( 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + - 84 * - 24 / 30 + + CASE + 48 WHEN - + ( + - 57 ) THEN NULL WHEN + 28 THEN - 80 * - 61 WHEN + 61 - - 19 * + - CASE 17 WHEN - - 78 + COUNT ( * ) + + 77 THEN 31 WHEN + 68 THEN NULL ELSE - 61 END THEN NULL END + - ( 98 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT + ( + MIN( DISTINCT - 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT + ( + MIN ( DISTINCT - 35 ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL - 15 * + - 31 + - CASE - - ( 32 ) WHEN - + 78 THEN + - 52 WHEN + MIN( ALL + - 80 ) THEN + 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - 15 * + - 31 + - CASE - - ( 32 ) WHEN - + 78 THEN + - 52 WHEN + MIN ( ALL + - 80 ) THEN + 16 END AS col2
----
NULL

query I rowsort
SELECT - - 50 + - 30 + + 59
----
79

query I rowsort
SELECT DISTINCT + 57 * + 79 - + 92
----
4411

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT ( + CASE - 29 WHEN 20 THEN - 68 ELSE COUNT( ALL + - 56 ) END )
----
1

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT ( + CASE - 29 WHEN 20 THEN - 68 ELSE COUNT ( ALL + - 56 ) END )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT - ( + 31 ) DIV + + 66 col0
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT - ( + 31 ) / + + 66 col0
----
0

query I rowsort
SELECT ALL NULLIF ( 11, + + 5 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL - CASE - - NULLIF ( + + 92, 13 ) WHEN - + 26 THEN - 8 ELSE + CASE + + 8 WHEN - 70 THEN - 70 ELSE + COUNT( * ) END * + 58 END * + - NULLIF ( + 78, 58 ) * + - 32
----
-144768

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - CASE - - NULLIF ( + + 92, 13 ) WHEN - + 26 THEN - 8 ELSE + CASE + + 8 WHEN - 70 THEN - 70 ELSE + COUNT ( * ) END * + 58 END * + - NULLIF ( + 78, 58 ) * + - 32
----
-144768

query I rowsort
SELECT DISTINCT ( 84 ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL COUNT( * ) * - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL COUNT ( * ) * - 9 AS col1
----
-9

query I rowsort
SELECT 22 * + 84 AS col1
----
1848

query I rowsort
SELECT 12 * + 65
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT COUNT( * ) * COUNT( DISTINCT + 37 ) * - - 67 * + 19
----
1273

skipif mysql # not compatible
query I rowsort label-5620
SELECT COUNT ( * ) * COUNT ( DISTINCT + 37 ) * - - 67 * + 19
----
1273

query II rowsort
SELECT DISTINCT 55 AS col2, NULLIF ( - 45, 23 )
----
55
-45

query I rowsort
SELECT DISTINCT + 49 + + 63
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-5623
SELECT - 62, 85 - - SUM( ALL + + 33 ) AS col1
----
-62
118

skipif mysql # not compatible
query II rowsort label-5623
SELECT - 62, 85 - - SUM ( ALL + + 33 ) AS col1
----
-62
118

query I rowsort
SELECT ALL 69 + + NULLIF ( + + 45, - 7 ) AS col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT 56 DIV - 59 + 78 * 70
----
5460

skipif mysql # not compatible
query I rowsort label-5625
SELECT 56 / - 59 + 78 * 70
----
5460

query II rowsort
SELECT + 80 col2, 52 AS col2
----
80
52

query I rowsort
SELECT 51 + 8
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT COUNT( DISTINCT 73 ) * 62 + + - 40 * 88
----
-3458

skipif mysql # not compatible
query I rowsort label-5628
SELECT COUNT ( DISTINCT 73 ) * 62 + + - 40 * 88
----
-3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT + CAST( + + 86 AS SIGNED ) + - 19 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5629
SELECT + CAST ( + + 86 AS INTEGER ) + - 19 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL - COUNT( * ) + - 83 * + COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - COUNT ( * ) + - 83 * + COUNT ( * ) AS col1
----
-84

query I rowsort
SELECT NULLIF ( 76, - 90 + - 68 ) * 51 AS col0
----
3876

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT DISTINCT + - ( - 17 ) + + 39, NULLIF ( + 44, + 56 * - 87 * + COUNT( * ) ) AS col0
----
56
44

skipif mysql # not compatible
query II rowsort label-5632
SELECT DISTINCT + - ( - 17 ) + + 39, NULLIF ( + 44, + 56 * - 87 * + COUNT ( * ) ) AS col0
----
56
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL - SUM( DISTINCT - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - SUM ( DISTINCT - 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5634
SELECT + - 22, 50 - 5 + + CAST( - 5 AS SIGNED ) + - 83 AS col0
----
-22
-43

skipif mysql # not compatible
query II rowsort label-5634
SELECT + - 22, 50 - 5 + + CAST ( - 5 AS INTEGER ) + - 83 AS col0
----
-22
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL COUNT( * ) - + + 59 col0
----
-58

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL COUNT ( * ) - + + 59 col0
----
-58

query I rowsort
SELECT ALL + 90 * - - 96 AS col0
----
8640

query II rowsort
SELECT DISTINCT - + 23 AS col1, 87
----
-23
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5638
SELECT COUNT( * ) - - - 40 / 95 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT COUNT ( * ) - - - 40 / 95 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5639
SELECT 61 * - COUNT ( * )
----
-61

query II rowsort
SELECT 61, - ( - 61 )
----
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - 7 * + + COUNT( * ) * - + 63
----
441

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - 7 * + + COUNT ( * ) * - + 63
----
441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5642
SELECT + - COALESCE ( ( - 20 ), 30 * - 5 + - - 87 + - - 75 + + 57 + - + 88 * COUNT( * ) * 0 DIV - 77 + - - COUNT( * ) ) col1
----
20

skipif mysql # not compatible
query I rowsort label-5642
SELECT + - COALESCE ( ( - 20 ), 30 * - 5 + - - 87 + - - 75 + + 57 + - + 88 * COUNT ( * ) * 0 / - 77 + - - COUNT ( * ) ) col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5644
SELECT ALL 60 DIV + 10 col0, + 9
----
6
9

skipif mysql # not compatible
query II rowsort label-5644
SELECT ALL 60 / + 10 col0, + 9
----
6
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL + NULLIF ( - - 33, + CAST( NULL AS SIGNED ) * + - 42 ) * MAX( ALL - 36 ) AS col1
----
-1188

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL + NULLIF ( - - 33, + CAST ( NULL AS INTEGER ) * + - 42 ) * MAX ( ALL - 36 ) AS col1
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT COUNT( * ) * + ( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT COUNT ( * ) * + ( 11 ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5647
SELECT 16 * MAX( ALL - 76 ) * ( - + 26 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT 16 * MAX ( ALL - 76 ) * ( - + 26 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - + ( 55 ) ) + 25 AS col1
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5649
SELECT CAST( NULL AS DECIMAL ) + + 45 * + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT CAST ( NULL AS REAL ) + + 45 * + 63 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5650
SELECT 41 - - + CAST( - COUNT( * ) AS SIGNED ) * + + 11 * + - 5 col0
----
96

skipif mysql # not compatible
query I rowsort label-5650
SELECT 41 - - + CAST ( - COUNT ( * ) AS INTEGER ) * + + 11 * + - 5 col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5651
SELECT ALL + 7 DIV - COUNT( * ) AS col2, 64 AS col0
----
-7
64

skipif mysql # not compatible
query II rowsort label-5651
SELECT ALL + 7 / - COUNT ( * ) AS col2, 64 AS col0
----
-7
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT COUNT( * ) DIV 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT COUNT ( * ) / 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT COUNT( * ) + + 68 + + 86
----
155

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT COUNT ( * ) + + 68 + + 86
----
155

query I rowsort
SELECT ALL - 72 + - 71 AS col0
----
-143

query I rowsort
SELECT 40 + NULLIF ( - 3, + 34 * + 17 ) col1
----
37

query I rowsort
SELECT DISTINCT + 99 + 59
----
158

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5657
SELECT ALL - MIN( ALL - - CAST( NULL AS DECIMAL ) ) + - 15 * - 71 AS col0, + 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-5657
SELECT ALL - MIN ( ALL - - CAST ( NULL AS REAL ) ) + - 15 * - 71 AS col0, + 98
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT DISTINCT - 71 + - - COUNT( - 25 ) * - 80 * MIN( - + 36 ) - - + MIN( 5 )
----
2814

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT - 71 + - - COUNT ( - 25 ) * - 80 * MIN ( - + 36 ) - - + MIN ( 5 )
----
2814

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT DISTINCT + 13 + COALESCE ( - + 34, - 52, + + 38, - 30 DIV + 30 ) - + 73 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT + 13 + COALESCE ( - + 34, - 52, + + 38, - 30 / + 30 ) - + 73 AS col0
----
-94

query I rowsort
SELECT + - ( + CASE 81 WHEN + 76 * - 17 - ( + 89 ) THEN AVG ( ALL + + 41 ) WHEN + 88 * ( + 56 ) + + 54 THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT - - MAX( + 39 ) * COUNT( * ) + + 75
----
114

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT - - MAX ( + 39 ) * COUNT ( * ) + + 75
----
114

query I rowsort
SELECT - 15 + - - 38 + + 9 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT + 30 * + - 20 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 30 * + - 20 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + 56 * + - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 56 * + - COUNT ( * ) AS col0
----
-56

query I rowsort
SELECT ALL - 78 * + 49
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT 93 + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5666
SELECT 93 + COUNT ( * ) AS col1
----
94

query I rowsort
SELECT + 23 * + + 59
----
1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) * - 53 - + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) * - 53 - + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL - 38 * SUM( ALL - - 88 )
----
-3344

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - 38 * SUM ( ALL - - 88 )
----
-3344

query I rowsort
SELECT + 48 + + - 35 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT ALL + 77 AS col2, 9 * + + MAX( ALL + 76 )
----
77
684

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL + 77 AS col2, 9 * + + MAX ( ALL + 76 )
----
77
684

query I rowsort
SELECT + 24 + 15 AS col2
----
39

query I rowsort
SELECT ALL NULLIF ( + 17, 10 / - - 84 ) + + 75 AS col0
----
92

query II rowsort
SELECT - 83 AS col2, - 93
----
-83
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + 18 + - - COUNT( * ) * + - 3
----
15

skipif mysql # not compatible
query I rowsort label-5675
SELECT + 18 + - - COUNT ( * ) * + - 3
----
15

query I rowsort
SELECT + 30 * 9 AS col2
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5677
SELECT DISTINCT ( - 57 ) + + - 31 / + CAST( NULL AS SIGNED ) * + NULLIF ( - NULLIF ( + 32, + 64 / 9 * - 89 ), 18 ) / 54 + - COUNT( DISTINCT 34 ) - + AVG ( 75 ) * + 67 + - 71 + + - ( 46 ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT ( - 57 ) + + - 31 / + CAST ( NULL AS INTEGER ) * + NULLIF ( - NULLIF ( + 32, + 64 / 9 * - 89 ), 18 ) / 54 + - COUNT ( DISTINCT 34 ) - + AVG ( 75 ) * + 67 + - 71 + + - ( 46 ) + - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5678
SELECT ALL 39 AS col0, 84 + + 72 + + 36 + + + 33 - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
39
224

skipif mysql # not compatible
query II rowsort label-5678
SELECT ALL 39 AS col0, 84 + + 72 + + 36 + + + 33 - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
39
224

query I rowsort
SELECT + 65 * + 52 * + 56 * - + NULLIF ( - + 30, - 38 )
----
5678400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT ALL CASE - + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN 79 END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL CASE - + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN 79 END + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( - 88, + 89 + + 76 )
----
88

query II rowsort
SELECT ALL 50 AS col1, - 62 + 79 AS col2
----
50
17

query I rowsort
SELECT + 76 + + 61 + 9
----
146

query I rowsort
SELECT - NULLIF ( - + 33, + 71 )
----
33

query I rowsort
SELECT ALL 58 + + + 31
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - MAX( 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5686
SELECT - MAX ( 57 ) AS col0
----
-57

query I rowsort
SELECT + 40 + 27
----
67

query I rowsort
SELECT - 4 * + 97 AS col1
----
-388

query I rowsort
SELECT - NULLIF ( + 90, 8 ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT - COUNT( * ) + + 25 * CAST( NULL AS SIGNED ) * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT - COUNT ( * ) + + 25 * CAST ( NULL AS INTEGER ) * - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5691
SELECT ALL - 93 col1, COUNT( + + 82 )
----
-93
1

skipif mysql # not compatible
query II rowsort label-5691
SELECT ALL - 93 col1, COUNT ( + + 82 )
----
-93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT ALL + COUNT( * ) - - + MIN( - 65 ) AS col1, - 51 AS col1
----
-64
-51

skipif mysql # not compatible
query II rowsort label-5692
SELECT ALL + COUNT ( * ) - - + MIN ( - 65 ) AS col1, - 51 AS col1
----
-64
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT + ( - 91 ) * 83 * - + 5 + - - 88 AS col2, - 6 * NULLIF ( + - CASE + + 58 WHEN - 82 + 62 THEN NULL WHEN - 0 + 89 + - + AVG ( 36 ) * - + NULLIF ( - - SUM( DISTINCT + 88 ), + COUNT( * ) + + 23 ) * 41 * + 84 THEN ( COUNT( * ) ) - - 41 / 27 WHEN COUNT( * ) THEN NULL WHEN + 87 THEN NULL END, + 25 * 98 ) / - ( + 82 )
----
37853
NULL

skipif mysql # not compatible
query II rowsort label-5693
SELECT + ( - 91 ) * 83 * - + 5 + - - 88 AS col2, - 6 * NULLIF ( + - CASE + + 58 WHEN - 82 + 62 THEN NULL WHEN - 0 + 89 + - + AVG ( 36 ) * - + NULLIF ( - - SUM ( DISTINCT + 88 ), + COUNT ( * ) + + 23 ) * 41 * + 84 THEN ( COUNT ( * ) ) - - 41 / 27 WHEN COUNT ( * ) THEN NULL WHEN + 87 THEN NULL END, + 25 * 98 ) / - ( + 82 )
----
37853
NULL

query I rowsort
SELECT - - 87 + + 64
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - + 12 + SUM( - 52 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5695
SELECT - + 12 + SUM ( - 52 ) AS col0
----
-64

query I rowsort
SELECT DISTINCT + - 74 - - 19 col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT + + 68 * 34 DIV 69 * - + 47 AS col2
----
-1551

skipif mysql # not compatible
query I rowsort label-5697
SELECT + + 68 * 34 / 69 * - + 47 AS col2
----
-1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5698
SELECT + MAX( DISTINCT + CAST( 87 AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-5698
SELECT + MAX ( DISTINCT + CAST ( 87 AS INTEGER ) )
----
87

query I rowsort
SELECT - + 13 * + 96 * - + 49 AS col2
----
61152

query I rowsort
SELECT - 93 * - 3 AS col2
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5701
SELECT + 17 AS col2, - CAST( - 0 AS SIGNED )
----
17
0

skipif mysql # not compatible
query II rowsort label-5701
SELECT + 17 AS col2, - CAST ( - 0 AS INTEGER )
----
17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL + - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + - ( + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL - COUNT( * ) DIV + COUNT( * ) + - + 10 + + + 73
----
62

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - COUNT ( * ) / + COUNT ( * ) + - + 10 + + + 73
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT - ( + + COUNT( * ) ) - - 7 + 25 + + + 89 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-5704
SELECT - ( + + COUNT ( * ) ) - - 7 + 25 + + + 89 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT - 13 - + + ( 28 ) DIV + 62
----
-13

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 13 - + + ( 28 ) / + 62
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT CASE + + 42 WHEN - 28 THEN + NULLIF ( + 69, ( + 89 ) * 75 + 63 - - MAX( + - 70 ) * - 16 * 62 * 39 + NULLIF ( + 20, - 53 * + AVG ( + + 79 ) - 45 - - - 10 ) ) * CASE 16 * NULLIF ( + 74 * - 14, + 10 ) + 88 * - 86 WHEN 59 + + 12 THEN - 87 * + 96 WHEN COUNT( * ) * + CAST( NULL AS SIGNED ) THEN + 62 WHEN COUNT( * ) + 24 THEN 67 / 23 END - + 57 WHEN 59 + 89 THEN 55 + 66 / + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT CASE + + 42 WHEN - 28 THEN + NULLIF ( + 69, ( + 89 ) * 75 + 63 - - MAX ( + - 70 ) * - 16 * 62 * 39 + NULLIF ( + 20, - 53 * + AVG ( + + 79 ) - 45 - - - 10 ) ) * CASE 16 * NULLIF ( + 74 * - 14, + 10 ) + 88 * - 86 WHEN 59 + + 12 THEN - 87 * + 96 WHEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN + 62 WHEN COUNT ( * ) + 24 THEN 67 / 23 END - + 57 WHEN 59 + 89 THEN 55 + 66 / + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 7 * 83
----
-581

query I rowsort
SELECT DISTINCT 59 * + + ( + + 93 ) AS col1
----
5487

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5709
SELECT - 65 DIV - - COUNT( * ) AS col2, + 46 * 78
----
-65
3588

skipif mysql # not compatible
query II rowsort label-5709
SELECT - 65 / - - COUNT ( * ) AS col2, + 46 * 78
----
-65
3588

query II rowsort
SELECT ALL + 53 * + + 27 * + 99 + - + 52, 5 AS col2
----
141617
5

query I rowsort
SELECT ALL + 14 * + + 22 + + 68
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT + COUNT( ALL 13 ) - + - 14 - - + 31
----
46

skipif mysql # not compatible
query I rowsort label-5712
SELECT + COUNT ( ALL 13 ) - + - 14 - - + 31
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL + COALESCE ( COUNT( DISTINCT ( - NULLIF ( + 60, - 36 ) ) ), + 83, - - 84, + - 12 ) * + 45
----
45

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL + COALESCE ( COUNT ( DISTINCT ( - NULLIF ( + 60, - 36 ) ) ), + 83, - - 84, + - 12 ) * + 45
----
45

query I rowsort
SELECT DISTINCT - 90 * + 22 AS col2
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT + 35 - - + 9 + + 40 * + CASE - - 94 WHEN 73 * 80 THEN NULL ELSE - + 53 END - COUNT( DISTINCT 2 )
----
-2077

skipif mysql # not compatible
query I rowsort label-5715
SELECT + 35 - - + 9 + + 40 * + CASE - - 94 WHEN 73 * 80 THEN NULL ELSE - + 53 END - COUNT ( DISTINCT 2 )
----
-2077

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + 11 * + NULLIF ( - 65, + CASE - - AVG ( 9 ) WHEN + 8 THEN + 94 - + MIN( ALL + 22 ) + + 32 + - - 14 * + 84 * COALESCE ( ( + 34 ), - 92 * - - 61 * COUNT( ALL + 77 ) - + 41 + 54 ) WHEN - 17 THEN NULL WHEN + 1 THEN + 30 ELSE + 77 * - 90 - + 33 * COUNT( * ) END ) * - 2
----
1430

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 11 * + NULLIF ( - 65, + CASE - - AVG ( 9 ) WHEN + 8 THEN + 94 - + MIN ( ALL + 22 ) + + 32 + - - 14 * + 84 * COALESCE ( ( + 34 ), - 92 * - - 61 * COUNT ( ALL + 77 ) - + 41 + 54 ) WHEN - 17 THEN NULL WHEN + 1 THEN + 30 ELSE + 77 * - 90 - + 33 * COUNT ( * ) END ) * - 2
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL - 37 * - CAST( NULL AS SIGNED ) * - 18 + + 32 + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - 37 * - CAST ( NULL AS INTEGER ) * - 18 + + 32 + + 41
----
NULL

query I rowsort
SELECT - 99 + - 68
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT SUM( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-5719
SELECT SUM ( 5 )
----
5

query I rowsort
SELECT + 75 + 98
----
173

query I rowsort
SELECT + 81 - - 21 AS col2
----
102

query I rowsort
SELECT - NULLIF ( 79, 64 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT DISTINCT - CAST( 91 AS SIGNED ) * + + 82 AS col1
----
-7462

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT - CAST ( 91 AS INTEGER ) * + + 82 AS col1
----
-7462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5724
SELECT ALL COUNT( * ) * + ( + 33 ) - - MIN( DISTINCT - 40 ) * + CASE - + 4 WHEN + 3 THEN NULL WHEN + 43 THEN COUNT( * ) END - MIN( DISTINCT + CAST( + 91 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL COUNT ( * ) * + ( + 33 ) - - MIN ( DISTINCT - 40 ) * + CASE - + 4 WHEN + 3 THEN NULL WHEN + 43 THEN COUNT ( * ) END - MIN ( DISTINCT + CAST ( + 91 AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5725
SELECT + + CAST( 35 AS SIGNED ) + COUNT( - 60 ) * + 36
----
71

skipif mysql # not compatible
query I rowsort label-5725
SELECT + + CAST ( 35 AS INTEGER ) + COUNT ( - 60 ) * + 36
----
71

query II rowsort
SELECT + 16, 81 AS col0
----
16
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT + - COUNT( + + 87 ) + 83
----
82

skipif mysql # not compatible
query I rowsort label-5727
SELECT + - COUNT ( + + 87 ) + 83
----
82

query II rowsort
SELECT ALL ( 32 ) AS col2, + 86 AS col1
----
32
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5729
SELECT ALL 78, + 6 * - - 27 * + AVG ( + CAST( NULL AS SIGNED ) ) + + 51 AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5729
SELECT ALL 78, + 6 * - - 27 * + AVG ( + CAST ( NULL AS INTEGER ) ) + + 51 AS col2
----
78
NULL

query I rowsort
SELECT ALL + 3 * + + 86 - + + 15
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT + - COUNT( DISTINCT 93 ) DIV - SUM( DISTINCT 35 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5731
SELECT + - COUNT ( DISTINCT 93 ) / - SUM ( DISTINCT 35 ) col0
----
0

query I rowsort
SELECT + 11 * + 32
----
352

query I rowsort
SELECT + 50 + + 19 * 76
----
1494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT + CASE + + 94 WHEN - - NULLIF ( + CASE - + ( + - 68 ) WHEN + - 50 / - + 87 - - MAX( DISTINCT - 33 ) + 80 + + 31 + CASE 30 WHEN - CASE CAST( - - ( - 51 ) AS SIGNED ) WHEN + 25 * + 6 THEN NULL ELSE COUNT( * ) END + 67 THEN + 52 / 46 WHEN + AVG ( + 56 ) THEN CASE MIN( DISTINCT 81 ) WHEN 78 THEN NULL ELSE - 55 + + COALESCE ( COUNT( * ), 63 * - 10, ( 93 ), - 45 ) END / 45 ELSE + MIN( DISTINCT 25 ) END * 63 THEN - 34 END, - COUNT( * ) ) THEN NULL ELSE - 70 END AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5734
SELECT + CASE + + 94 WHEN - - NULLIF ( + CASE - + ( + - 68 ) WHEN + - 50 / - + 87 - - MAX ( DISTINCT - 33 ) + 80 + + 31 + CASE 30 WHEN - CASE CAST ( - - ( - 51 ) AS INTEGER ) WHEN + 25 * + 6 THEN NULL ELSE COUNT ( * ) END + 67 THEN + 52 / 46 WHEN + AVG ( + 56 ) THEN CASE MIN ( DISTINCT 81 ) WHEN 78 THEN NULL ELSE - 55 + + COALESCE ( COUNT ( * ), 63 * - 10, ( 93 ), - 45 ) END / 45 ELSE + MIN ( DISTINCT 25 ) END * 63 THEN - 34 END, - COUNT ( * ) ) THEN NULL ELSE - 70 END AS col1
----
-70

query II rowsort
SELECT 6 AS col0, 24 AS col0
----
6
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - 38 + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-5736
SELECT - 38 + COUNT ( * )
----
-37

query I rowsort
SELECT + 77 * - 33 AS col2
----
-2541

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT ALL - + 67 DIV - 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL - + 67 / - 59 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT DISTINCT + CAST( 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + CAST ( 73 AS INTEGER )
----
73

query II rowsort
SELECT ALL + 33, + 65 col0
----
33
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT 40 DIV - - 27 - + 96 + - 22 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-5741
SELECT 40 / - - 27 - + 96 + - 22 AS col2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT ALL + 76 DIV 17 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL + 76 / 17 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT SUM( + - 25 ) * + 35 * - 65 + + + 31 col2
----
56906

skipif mysql # not compatible
query I rowsort label-5743
SELECT SUM ( + - 25 ) * + 35 * - 65 + + + 31 col2
----
56906

onlyif mysql # aggregate syntax: 
query II rowsort label-5744
SELECT COUNT( * ) AS col2, + 3 AS col2
----
1
3

skipif mysql # not compatible
query II rowsort label-5744
SELECT COUNT ( * ) AS col2, + 3 AS col2
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ( - 34 ) + + CASE + 75 WHEN - - COUNT( * ) THEN NULL WHEN - 18 THEN + 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT ( - 34 ) + + CASE + 75 WHEN - - COUNT ( * ) THEN NULL WHEN - 18 THEN + 44 END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5746
SELECT ALL - CASE + - CAST( NULL AS DECIMAL ) WHEN - AVG ( 19 ) THEN - - ( + + NULLIF ( + 36, + - 81 * 51 + 18 ) ) WHEN - 37 + - - 38 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - CASE + - CAST ( NULL AS REAL ) WHEN - AVG ( 19 ) THEN - - ( + + NULLIF ( + 36, + - 81 * 51 + 18 ) ) WHEN - 37 + - - 38 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL - ( - COUNT( * ) ) + ( - COUNT( * ) ) * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL - ( - COUNT ( * ) ) + ( - COUNT ( * ) ) * - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT 6 + - 8 DIV - 97
----
6

skipif mysql # not compatible
query I rowsort label-5748
SELECT 6 + - 8 / - 97
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5749
SELECT COUNT( * ) DIV - CAST( 23 AS SIGNED ) - 77 + - 95 + - 29
----
-201

skipif mysql # not compatible
query I rowsort label-5749
SELECT COUNT ( * ) / - CAST ( 23 AS INTEGER ) - 77 + - 95 + - 29
----
-201

query I rowsort
SELECT ALL + ( + 56 ) + - - 69 * - 18 AS col0
----
-1186

query I rowsort
SELECT - 73 * 65 * + 7 + - + 57
----
-33272

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5752
SELECT ALL - COUNT( DISTINCT - + 96 ) AS col2, COUNT( * ) + + 93 DIV - 78 + + - COUNT( * ) + - 38 + + 16 * - 93 AS col1
----
-1
-1527

skipif mysql # not compatible
query II rowsort label-5752
SELECT ALL - COUNT ( DISTINCT - + 96 ) AS col2, COUNT ( * ) + + 93 / - 78 + + - COUNT ( * ) + - 38 + + 16 * - 93 AS col1
----
-1
-1527

query I rowsort
SELECT DISTINCT - ( 1 ) + + 51 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL 6 * + MAX( - 68 ) AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL 6 * + MAX ( - 68 ) AS col0
----
-408

query I rowsort
SELECT 50 + + 89 + - ( - 30 )
----
169

query I rowsort
SELECT ALL - 85 + 18 AS col1
----
-67

query II rowsort
SELECT 56 * + 27 AS col2, + 78
----
1512
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5758
SELECT 66 + 54, + 14 DIV - 43 + COUNT( * ) - 11 + - + 67 AS col2
----
120
-77

skipif mysql # not compatible
query II rowsort label-5758
SELECT 66 + 54, + 14 / - 43 + COUNT ( * ) - 11 + - + 67 AS col2
----
120
-77

query I rowsort
SELECT + ( 42 ) * - 61 + - - 14 + - 21
----
-2569

query II rowsort
SELECT 46 * - 8 AS col1, + 15 AS col0
----
-368
15

query II rowsort
SELECT DISTINCT + 41 * + + 26 AS col2, + 15 + 25 col1
----
1066
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5762
SELECT + 59 / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT + 59 / - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT 91 - - CAST( NULL AS SIGNED ) + + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT 91 - - CAST ( NULL AS INTEGER ) + + - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT 22 * - CAST( - - 5 AS SIGNED ) * 59 + + - CAST( - COUNT( * ) AS SIGNED )
----
-6489

skipif mysql # not compatible
query I rowsort label-5764
SELECT 22 * - CAST ( - - 5 AS INTEGER ) * 59 + + - CAST ( - COUNT ( * ) AS INTEGER )
----
-6489

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + COUNT( * ) + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-5765
SELECT + COUNT ( * ) + - 27
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - - MAX( DISTINCT + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5766
SELECT - - MAX ( DISTINCT + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT + SUM( DISTINCT 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5767
SELECT + SUM ( DISTINCT 85 ) AS col0
----
85

query I rowsort
SELECT ALL - 91 * - 28 + - 25 + + ( 52 ) * - 85
----
-1897

query I rowsort
SELECT ALL + CASE - 43 WHEN + 6 + - 68 * 9 * + 42 THEN 11 * + 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT - SUM( + 86 ) + + + MAX( ALL 30 )
----
-56

skipif mysql # not compatible
query I rowsort label-5770
SELECT - SUM ( + 86 ) + + + MAX ( ALL 30 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT - 47 + + 20 - - 95 * - + 21 * + CAST( + 68 AS SIGNED ) + SUM( + 92 ) DIV 19 + - - 97 AS col2
----
-135586

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT - 47 + + 20 - - 95 * - + 21 * + CAST ( + 68 AS INTEGER ) + SUM ( + 92 ) / 19 + - - 97 AS col2
----
-135586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5772
SELECT + 34 + + COUNT( * ) + + 21 DIV ( 33 ) + + COALESCE ( 38, 64 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5772
SELECT + 34 + + COUNT ( * ) + + 21 / ( 33 ) + + COALESCE ( 38, 64 ) AS col0
----
73

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5773
SELECT COALESCE ( + CASE 44 WHEN - - CAST( - + 24 AS DECIMAL ) DIV + 34 THEN + - 69 WHEN - + 70 THEN NULL ELSE - 56 + - 43 + - 25 END, - + 68 - 26 * 40 ) DIV - + 87 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5773
SELECT COALESCE ( + CASE 44 WHEN - - CAST ( - + 24 AS REAL ) / + 34 THEN + - 69 WHEN - + 70 THEN NULL ELSE - 56 + - 43 + - 25 END, - + 68 - 26 * 40 ) / - + 87 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL 77 + + - SUM( ALL - 60 )
----
137

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL 77 + + - SUM ( ALL - 60 )
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5775
SELECT ALL - 60, 13 * + CAST( 42 AS SIGNED ) * - 54 + - - 73 AS col0
----
-60
-29411

skipif mysql # not compatible
query II rowsort label-5775
SELECT ALL - 60, 13 * + CAST ( 42 AS INTEGER ) * - 54 + - - 73 AS col0
----
-60
-29411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT CAST( NULL AS SIGNED ) / - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT CAST ( NULL AS INTEGER ) / - 78
----
NULL

query I rowsort
SELECT ALL 41 - - + ( ( - + 72 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ( + 75 ) - - + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5778
SELECT ( + 75 ) - - + COUNT ( * )
----
76

query II rowsort
SELECT + 92 AS col1, 96 + + 52
----
92
148

query I rowsort
SELECT DISTINCT - CASE - + 88 WHEN + 75 THEN - 96 ELSE + 28 + - ( + 11 ) END AS col1
----
-17

query I rowsort
SELECT 54 * + ( 6 ) * - 28 - + 27 + - 59 AS col0
----
-9158

onlyif mysql # aggregate syntax: 
query II rowsort label-5782
SELECT + 1 AS col2, + SUM( DISTINCT - 58 ) + - 89 * + - 67
----
1
5905

skipif mysql # not compatible
query II rowsort label-5782
SELECT + 1 AS col2, + SUM ( DISTINCT - 58 ) + - 89 * + - 67
----
1
5905

query I rowsort
SELECT 56 * - + 75 col2
----
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT 65 - COUNT( * ) + + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5784
SELECT 65 - COUNT ( * ) + + - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query IIII rowsort label-5785
SELECT 75 - 86 + + 0, 7 AS col2, + 72 + - 7 col2, MAX( + + 12 ) AS col2
----
-11
7
65
12

skipif mysql # not compatible
query IIII rowsort label-5785
SELECT 75 - 86 + + 0, 7 AS col2, + 72 + - 7 col2, MAX ( + + 12 ) AS col2
----
-11
7
65
12

query II rowsort
SELECT + 95, 37 AS col1
----
95
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT - 10 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT - 10 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 2, - + 96 * + COALESCE ( - + 91, - 25 * + 72, + 82 - + + 9 ) * - - 33 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT - COUNT( * ) + - + 36
----
-37

skipif mysql # not compatible
query I rowsort label-5789
SELECT - COUNT ( * ) + - + 36
----
-37

query I rowsort
SELECT + 32 * + + 63 AS col1
----
2016

query II rowsort
SELECT ALL + - 25 * + + 93 + + 65 AS col1, 49 AS col2
----
-2260
49

query I rowsort
SELECT DISTINCT - 51 + - 12
----
-63

query I rowsort
SELECT - 73 + + 25
----
-48

query I rowsort
SELECT ALL - - 96 + 54 AS col1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5795
SELECT ALL + 59 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + 59 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - + COUNT( * ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-5796
SELECT - + COUNT ( * ) + 32
----
31

query I rowsort
SELECT - - 63 + - 24
----
39

query II rowsort
SELECT - - 55 AS col1, ( - + 56 )
----
55
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT CAST( + + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5799
SELECT CAST ( + + 16 AS INTEGER ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT CAST( + 83 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5800
SELECT CAST ( + 83 AS INTEGER ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT ALL ( COUNT( * ) ) + 80, 37 col0
----
81
37

skipif mysql # not compatible
query II rowsort label-5801
SELECT ALL ( COUNT ( * ) ) + 80, 37 col0
----
81
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - COUNT( * ) * 83 - - + 5 * - 27 col0
----
-218

skipif mysql # not compatible
query I rowsort label-5802
SELECT - COUNT ( * ) * 83 - - + 5 * - 27 col0
----
-218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT CASE - - MIN( ALL + COALESCE ( - ( 87 ), - 22 * + 13 / - 23 ) ) WHEN - CAST( NULL AS SIGNED ) * - 32 THEN + + COUNT( + 76 ) / + 12 ELSE + + 39 - 32 END AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5803
SELECT CASE - - MIN ( ALL + COALESCE ( - ( 87 ), - 22 * + 13 / - 23 ) ) WHEN - CAST ( NULL AS INTEGER ) * - 32 THEN + + COUNT ( + 76 ) / + 12 ELSE + + 39 - 32 END AS col0
----
7

query I rowsort
SELECT DISTINCT - 88 * 57 * 1 + 84 - + ( + 44 ) AS col1
----
-4976

query I rowsort
SELECT + 18 * + 99 AS col0
----
1782

query II rowsort
SELECT ALL 30 * - 34, 93 * 84 AS col0
----
-1020
7812

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + COUNT( * ) + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-5807
SELECT + COUNT ( * ) + - 70
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + COALESCE ( 16, - - ( - COUNT( * ) ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5808
SELECT + COALESCE ( 16, - - ( - COUNT ( * ) ) ) AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5809
SELECT 85 DIV - + COUNT( * ) + - 7 * + 36 * + + COUNT( * ) + - 26 * 83 AS col2
----
-2495

skipif mysql # not compatible
query I rowsort label-5809
SELECT 85 / - + COUNT ( * ) + - 7 * + 36 * + + COUNT ( * ) + - 26 * 83 AS col2
----
-2495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5810
SELECT ALL CAST( + + 10 AS SIGNED ) * + COALESCE ( - - 9, + + 89 * 39 + - CASE - 86 WHEN - 28 THEN - + COUNT( * ) END + + - CASE + 35 WHEN + COUNT( * ) THEN + + 77 WHEN + 82 - 66 THEN NULL END * + 53 DIV COUNT( * ) DIV + 13 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL CAST ( + + 10 AS INTEGER ) * + COALESCE ( - - 9, + + 89 * 39 + - CASE - 86 WHEN - 28 THEN - + COUNT ( * ) END + + - CASE + 35 WHEN + COUNT ( * ) THEN + + 77 WHEN + 82 - 66 THEN NULL END * + 53 / COUNT ( * ) / + 13 ) AS col1
----
90

query I rowsort
SELECT + 0 + - + 3 - ( - COALESCE ( - - 71, + 6, + + 20 ) ) - + 34 + - 81 * + 25
----
-1991

query I rowsort
SELECT + 89 * + - 74 - - 27 AS col0
----
-6559

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + MAX( ALL - 10 ) + 45
----
35

skipif mysql # not compatible
query I rowsort label-5813
SELECT + MAX ( ALL - 10 ) + 45
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT ALL CAST( NULL AS SIGNED ) * - 56 - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL CAST ( NULL AS INTEGER ) * - 56 - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT MAX( + COALESCE ( - ( - ( - 81 ) ), - - 54 + + 92 ) ) * + ( + ( - CASE COUNT( * ) WHEN - 62 THEN NULL WHEN - - 64 * 18 * + - 77 + 27 / + 19 THEN COUNT( * ) END ) ) + - AVG ( DISTINCT 67 ) + + NULLIF ( + 17, - - 70 + - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT MAX ( + COALESCE ( - ( - ( - 81 ) ), - - 54 + + 92 ) ) * + ( + ( - CASE COUNT ( * ) WHEN - 62 THEN NULL WHEN - - 64 * 18 * + - 77 + 27 / + 19 THEN COUNT ( * ) END ) ) + - AVG ( DISTINCT 67 ) + + NULLIF ( + 17, - - 70 + - 7 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5816
SELECT DISTINCT 81 DIV 32 AS col2, 62
----
2
62

skipif mysql # not compatible
query II rowsort label-5816
SELECT DISTINCT 81 / 32 AS col2, 62
----
2
62

query I rowsort
SELECT + 32 * - 1 * 9 + + - 35
----
-323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT ALL - 96 * + CAST( NULL AS SIGNED ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL - 96 * + CAST ( NULL AS INTEGER ) * 51
----
NULL

query I rowsort
SELECT + 22 + + 88 col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT - CAST( - 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-5820
SELECT - CAST ( - 21 AS INTEGER )
----
21

query II rowsort
SELECT ALL + + ( 78 ) AS col0, + 18 AS col1
----
78
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL - 86 * 72 + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - 86 * 72 + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5823
SELECT COALESCE ( 64, + 13 + + 74 + 27 * - 76, - - MIN( - 48 ) ) * + NULLIF ( + 82, 72 * 77 * COUNT( * ) ) + - 87 * + CAST( - 63 AS SIGNED ) + 24 + - + 0 DIV - + 14 * - - 39
----
10753

skipif mysql # not compatible
query I rowsort label-5823
SELECT COALESCE ( 64, + 13 + + 74 + 27 * - 76, - - MIN ( - 48 ) ) * + NULLIF ( + 82, 72 * 77 * COUNT ( * ) ) + - 87 * + CAST ( - 63 AS INTEGER ) + 24 + - + 0 / - + 14 * - - 39
----
10753

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT + + 35 * - ( NULLIF ( - 66, - 38 + + ( COUNT( * ) ) + - - MIN( DISTINCT - 7 ) ) ) AS col1
----
2310

skipif mysql # not compatible
query I rowsort label-5824
SELECT + + 35 * - ( NULLIF ( - 66, - 38 + + ( COUNT ( * ) ) + - - MIN ( DISTINCT - 7 ) ) ) AS col1
----
2310

query I rowsort
SELECT ALL + + 73 * 91 * + 22
----
146146

query I rowsort
SELECT ALL 0 + + + 49 + + - 68
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL - - 60 + SUM( 74 )
----
134

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - - 60 + SUM ( 74 )
----
134

query II rowsort
SELECT DISTINCT - 22 + + - 92 AS col2, - 97
----
-114
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT + - 48 + - COUNT( * ) + + + 8
----
-41

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + - 48 + - COUNT ( * ) + + + 8
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5830
SELECT + - 8 - + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT + - 8 - + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT + 33 DIV + - 2 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5831
SELECT + 33 / + - 2 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5832
SELECT - + 33 - + + CAST( NULL AS SIGNED ) AS col0, + 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-5832
SELECT - + 33 - + + CAST ( NULL AS INTEGER ) AS col0, + 54
----
NULL
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT - + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5833
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT - 16 + - 18
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5835
SELECT - - 53 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT - - 53 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - + COALESCE ( 30, 18, 88 ) * NULLIF ( - - CASE - 89 WHEN + 69 * - 84 THEN ( + 42 ) * 50 END, - 3 ) - - 4 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - + COALESCE ( 30, 18, 88 ) * NULLIF ( - - CASE - 89 WHEN + 69 * - 84 THEN ( + 42 ) * 50 END, - 3 ) - - 4 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5837
SELECT ALL COUNT( * ) DIV 92 + + 19 + - 71
----
-52

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL COUNT ( * ) / 92 + + 19 + - 71
----
-52

query I rowsort
SELECT DISTINCT - 15 * - + 41 AS col0
----
615

query I rowsort
SELECT ALL + CASE - 91 WHEN 83 THEN NULL WHEN - 33 THEN 96 ELSE NULL END * - 56 * 79 AS col1
----
NULL

query I rowsort
SELECT - 60 + + 77 + - - 80 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL + COALESCE ( - COUNT( * ), + + 4 * + COUNT( * ) ) - - 57
----
56

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + COALESCE ( - COUNT ( * ), + + 4 * + COUNT ( * ) ) - - 57
----
56

query I rowsort
SELECT ALL 48 - 4 AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT DISTINCT ( SUM( ALL - 76 ) ) AS col2, 16 AS col2
----
-76
16

skipif mysql # not compatible
query II rowsort label-5843
SELECT DISTINCT ( SUM ( ALL - 76 ) ) AS col2, 16 AS col2
----
-76
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT CAST( 14 AS SIGNED ) col0
----
14

skipif mysql # not compatible
query I rowsort label-5844
SELECT CAST ( 14 AS INTEGER ) col0
----
14

query II rowsort
SELECT ALL + 95 AS col0, - 1 AS col0
----
95
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT DISTINCT + CAST( + 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + CAST ( + 68 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT + ( + 17 ) * + + COUNT( * ) + + COALESCE ( COUNT( * ), + + 78, - - 25 ) * + 46
----
63

skipif mysql # not compatible
query I rowsort label-5847
SELECT + ( + 17 ) * + + COUNT ( * ) + + COALESCE ( COUNT ( * ), + + 78, - - 25 ) * + 46
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5848
SELECT + CAST( NULL AS DECIMAL ) * 34 * MAX( + 72 ) + CASE + - CAST( NULL AS SIGNED ) WHEN - + 22 + + 0 - + + 58 * - 8 * + - 58 THEN 16 - + 69 + - + CAST( 41 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT + CAST ( NULL AS REAL ) * 34 * MAX ( + 72 ) + CASE + - CAST ( NULL AS INTEGER ) WHEN - + 22 + + 0 - + + 58 * - 8 * + - 58 THEN 16 - + 69 + - + CAST ( 41 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT + ( + 95 ) AS col2
----
95

query I rowsort
SELECT - ( 0 ) * + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT + CASE NULLIF ( + + AVG ( - NULLIF ( - 32, + 96 ) ), 66 / - 24 * 65 ) WHEN + COUNT( * ) THEN - - 89 ELSE SUM( - + 65 ) END AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5851
SELECT + CASE NULLIF ( + + AVG ( - NULLIF ( - 32, + 96 ) ), 66 / - 24 * 65 ) WHEN + COUNT ( * ) THEN - - 89 ELSE SUM ( - + 65 ) END AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT + 99 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + 3 * + + COUNT( * ) + + 92
----
95

skipif mysql # not compatible
query I rowsort label-5853
SELECT + 3 * + + COUNT ( * ) + + 92
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT 64 * + COUNT( * ) + + - 67 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT 64 * + COUNT ( * ) + + - 67 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT + MIN( + - 37 ) * - NULLIF ( - 72, 89 + - + 76 )
----
-2664

skipif mysql # not compatible
query I rowsort label-5855
SELECT + MIN ( + - 37 ) * - NULLIF ( - 72, 89 + - + 76 )
----
-2664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT ALL 33 * - - COALESCE ( - 59, + 70, + MIN( DISTINCT 96 ) * - 27 + + COUNT( * ) + + COUNT( * ) * - 8 * 39 * 92 * + 34 * ( + 51 ) * - 7 + 8 ) + 4 DIV - - 16 col2
----
-1947

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL 33 * - - COALESCE ( - 59, + 70, + MIN ( DISTINCT 96 ) * - 27 + + COUNT ( * ) + + COUNT ( * ) * - 8 * 39 * 92 * + 34 * ( + 51 ) * - 7 + 8 ) + 4 / - - 16 col2
----
-1947

query I rowsort
SELECT + 28 - - 86 - - 34 * + 95 AS col0
----
3344

query I rowsort
SELECT ALL 72 + - 10
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - 62 * - 78 + - 62 + - - MAX( DISTINCT + - 85 )
----
4689

skipif mysql # not compatible
query I rowsort label-5859
SELECT - 62 * - 78 + - 62 + - - MAX ( DISTINCT + - 85 )
----
4689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT DISTINCT COUNT( * ) / + + MAX( ALL + - 55 ) * + - 21 + + 58 * - - 22 + - + 65 + - CASE + CAST( NULL AS SIGNED ) WHEN - 73 THEN + + COUNT( * ) WHEN 89 THEN NULL WHEN - 61 + + + 33 THEN - - 20 END * - - COUNT( * ) + COALESCE ( - COUNT( * ), COUNT( * ) + + 94 * - 87 * + 17, - 54 ) * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT COUNT ( * ) / + + MAX ( ALL + - 55 ) * + - 21 + + 58 * - - 22 + - + 65 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 73 THEN + + COUNT ( * ) WHEN 89 THEN NULL WHEN - 61 + + + 33 THEN - - 20 END * - - COUNT ( * ) + COALESCE ( - COUNT ( * ), COUNT ( * ) + + 94 * - 87 * + 17, - 54 ) * 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - COUNT( * ) + 28 * + - 59 * + - COUNT( * ) AS col1
----
1651

skipif mysql # not compatible
query I rowsort label-5861
SELECT - COUNT ( * ) + 28 * + - 59 * + - COUNT ( * ) AS col1
----
1651

query I rowsort
SELECT 36 - - 85 * + 14 col0
----
1226

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5863
SELECT - CAST( NULL AS DECIMAL ) - CAST( - CASE - - ( - 66 ) WHEN + - 8 / - 36 THEN + 64 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT - CAST ( NULL AS REAL ) - CAST ( - CASE - - ( - 66 ) WHEN + - 8 / - 36 THEN + 64 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT DISTINCT 18 * - ( + CAST( NULL AS SIGNED ) ) + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT 18 * - ( + CAST ( NULL AS INTEGER ) ) + + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT COUNT( * ) * + 35 + - 97 - 52 + - 29 + - 52 * - 41 * + 65 * - COALESCE ( - + 86, 54 )
----
11917737

skipif mysql # not compatible
query I rowsort label-5865
SELECT COUNT ( * ) * + 35 + - 97 - 52 + - 29 + - 52 * - 41 * + 65 * - COALESCE ( - + 86, 54 )
----
11917737

query I rowsort
SELECT DISTINCT + 85 - - + 61 + - ( - + 78 ) col0
----
224

query I rowsort
SELECT 50 * - CASE + 34 WHEN + + 21 * - 81 * 19 THEN 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT 21 + + MAX( ALL + 33 )
----
54

skipif mysql # not compatible
query I rowsort label-5868
SELECT 21 + + MAX ( ALL + 33 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5869
SELECT 86 AS col2, - 45 DIV - 91 * - + CASE - AVG ( DISTINCT - + 14 ) WHEN + CAST( NULL AS DECIMAL ) + 78 + COUNT( * ) - 5 * + 65 THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) DIV 97 * 97 ELSE + + 25 END + - 15
----
86
-15

skipif mysql # not compatible
query II rowsort label-5869
SELECT 86 AS col2, - 45 / - 91 * - + CASE - AVG ( DISTINCT - + 14 ) WHEN + CAST ( NULL AS REAL ) + 78 + COUNT ( * ) - 5 * + 65 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) / 97 * 97 ELSE + + 25 END + - 15
----
86
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5870
SELECT 69 DIV + + COUNT( 64 )
----
69

skipif mysql # not compatible
query I rowsort label-5870
SELECT 69 / + + COUNT ( 64 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5871
SELECT - 85 AS col1, CAST( - 86 AS SIGNED )
----
-85
-86

skipif mysql # not compatible
query II rowsort label-5871
SELECT - 85 AS col1, CAST ( - 86 AS INTEGER )
----
-85
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5872
SELECT DISTINCT COUNT( * ) DIV 55 AS col1, - CAST( NULL AS DECIMAL ) * + 50 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5872
SELECT DISTINCT COUNT ( * ) / 55 AS col1, - CAST ( NULL AS REAL ) * + 50 AS col2
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT 59 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-5873
SELECT 59 / - 33
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT ALL - COUNT( * ), COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-5874
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + SUM( 19 ) * - 92 + + 53 col0
----
-1695

skipif mysql # not compatible
query I rowsort label-5875
SELECT + SUM ( 19 ) * - 92 + + 53 col0
----
-1695

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL + 96 + + MIN( DISTINCT - 51 ) + + COUNT( DISTINCT + 26 )
----
46

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL + 96 + + MIN ( DISTINCT - 51 ) + + COUNT ( DISTINCT + 26 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT + 24 DIV - + 18 + + 82 * + ( - COUNT( * ) ) DIV - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5877
SELECT + 24 / - + 18 + + 82 * + ( - COUNT ( * ) ) / - + COUNT ( * )
----
81

query II rowsort
SELECT 42 AS col0, 86 * - 32 AS col0
----
42
-2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5879
SELECT 65 + + MIN( - ( + 12 ) ) - - - 60 DIV + 62 AS col0, - CAST( + - 95 AS SIGNED )
----
53
95

skipif mysql # not compatible
query II rowsort label-5879
SELECT 65 + + MIN ( - ( + 12 ) ) - - - 60 / + 62 AS col0, - CAST ( + - 95 AS INTEGER )
----
53
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5880
SELECT 23 AS col0, - COUNT( * )
----
23
-1

skipif mysql # not compatible
query II rowsort label-5880
SELECT 23 AS col0, - COUNT ( * )
----
23
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT COUNT( * ) + + 28 DIV SUM( + - 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5881
SELECT COUNT ( * ) + + 28 / SUM ( + - 42 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 66 + 35
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5883
SELECT - 10 * MAX( DISTINCT + ( - 20 ) ) DIV - + 25 + ( - 56 ) * + 88 + - 96 + - 27 * + ( + 2 ) + + 82
----
-5004

skipif mysql # not compatible
query I rowsort label-5883
SELECT - 10 * MAX ( DISTINCT + ( - 20 ) ) / - + 25 + ( - 56 ) * + 88 + - 96 + - 27 * + ( + 2 ) + + 82
----
-5004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL + CAST( NULL AS SIGNED ) + - 59 + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + CAST ( NULL AS INTEGER ) + - 59 + + 92 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - AVG ( ALL - - CASE 65 WHEN + + 34 THEN - + 87 * - - 2 END ) AS col1
----
NULL

query I rowsort
SELECT ( + 35 ) + + + 52
----
87

query I rowsort
SELECT ALL - 30 * + 75 AS col2
----
-2250

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT + 93 * 27 * - 26 * + 75 DIV - + 25 + - 45
----
195813

skipif mysql # not compatible
query I rowsort label-5888
SELECT + 93 * 27 * - 26 * + 75 / - + 25 + - 45
----
195813

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT 61 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-5889
SELECT 61 / 44
----
1

query I rowsort
SELECT 86 * 55 + 23 AS col2
----
4753

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT - + COUNT( * ) col1, + 74
----
-1
74

skipif mysql # not compatible
query II rowsort label-5891
SELECT - + COUNT ( * ) col1, + 74
----
-1
74

query I rowsort
SELECT 50 + + 88
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT DISTINCT - 78 - + 38 DIV - + 54
----
-78

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT - 78 - + 38 / - + 54
----
-78

query I rowsort
SELECT - 51 + + 24
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5895
SELECT - COUNT( * ) DIV - + 73 + + 91 + + 85 * + 90 AS col1
----
7741

skipif mysql # not compatible
query I rowsort label-5895
SELECT - COUNT ( * ) / - + 73 + + 91 + + 85 * + 90 AS col1
----
7741

query I rowsort
SELECT - 78 * - 76 AS col2
----
5928

query I rowsort
SELECT 24 - + ( + 13 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 60 * + COUNT( DISTINCT 82 ) * - + 63
----
-3780

skipif mysql # not compatible
query I rowsort label-5898
SELECT 60 * + COUNT ( DISTINCT 82 ) * - + 63
----
-3780

query I rowsort
SELECT 66 + - 85 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT DISTINCT 12 * + 86 * + 84, - MIN( DISTINCT + - 46 ) + + 51 AS col0
----
86688
97

skipif mysql # not compatible
query II rowsort label-5900
SELECT DISTINCT 12 * + 86 * + 84, - MIN ( DISTINCT + - 46 ) + + 51 AS col0
----
86688
97

query I rowsort
SELECT 76 + + 70
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL 11 * COUNT( * ) * + 2 * 6
----
132

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL 11 * COUNT ( * ) * + 2 * 6
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT ALL 39 * - 18 * - 29 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL 39 * - 18 * - 29 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 1 + - 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT 65 * + 32 + - 8 * + NULLIF ( 40, - 71 / + 73 - 76 * + 56 + COUNT( ALL - + 37 ) ) * + + COUNT( * ) + + - 89 + 34 * - 33 * ( - 21 ) * + NULLIF ( - 71, - - 25 ) * 42 AS col0
----
-70260213

skipif mysql # not compatible
query I rowsort label-5905
SELECT 65 * + 32 + - 8 * + NULLIF ( 40, - 71 / + 73 - 76 * + 56 + COUNT ( ALL - + 37 ) ) * + + COUNT ( * ) + + - 89 + 34 * - 33 * ( - 21 ) * + NULLIF ( - 71, - - 25 ) * 42 AS col0
----
-70260213

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT COALESCE ( COUNT( * ), - 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5906
SELECT COALESCE ( COUNT ( * ), - 35 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5907
SELECT - ( - - CAST( NULL AS DECIMAL ) ) * - + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT - ( - - CAST ( NULL AS REAL ) ) * - + 77 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT ALL 66 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL 66 / 20
----
3

query I rowsort
SELECT + 63 - - 29 * NULLIF ( - 15, + ( - + 22 ) ) AS col1
----
-372

query I rowsort
SELECT - + 65 * + 37
----
-2405

query I rowsort
SELECT ALL - - 87 * + 8 * 78
----
54288

query I rowsort
SELECT - + ( + 4 ) + - 28 + 11 * 10 + 50 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5913
SELECT - 91 * + CAST( NULL AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED ) - - + 58 - + - 56 + + CASE COUNT( * ) WHEN - 55 + - - AVG ( + 31 ) THEN + 44 + + COALESCE ( - 44, 43 * 83, - - ( + MAX( DISTINCT - + 90 ) ) + 21 * - + 74 ) / 32 + - 37 * + COUNT( * ) ELSE - - 82 END * 57 / 47 + 88 * 55 + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT - 91 * + CAST ( NULL AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER ) - - + 58 - + - 56 + + CASE COUNT ( * ) WHEN - 55 + - - AVG ( + 31 ) THEN + 44 + + COALESCE ( - 44, 43 * 83, - - ( + MAX ( DISTINCT - + 90 ) ) + 21 * - + 74 ) / 32 + - 37 * + COUNT ( * ) ELSE - - 82 END * 57 / 47 + 88 * 55 + - 36 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT + + CAST( 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-5914
SELECT + + CAST ( 67 AS INTEGER )
----
67

query I rowsort
SELECT - - 46 + - - 66 + + 75
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - 13 * 74 * - SUM( + 64 ) * + + 79 + 6
----
4863878

skipif mysql # not compatible
query I rowsort label-5916
SELECT - 13 * 74 * - SUM ( + 64 ) * + + 79 + 6
----
4863878

query I rowsort
SELECT DISTINCT - + 45 - + + 74 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - COUNT( * ) - 98 col1
----
-99

skipif mysql # not compatible
query I rowsort label-5918
SELECT - COUNT ( * ) - 98 col1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT DISTINCT SUM( 21 ), 51 AS col1
----
21
51

skipif mysql # not compatible
query II rowsort label-5919
SELECT DISTINCT SUM ( 21 ), 51 AS col1
----
21
51

query I rowsort
SELECT ALL + 25 * - CASE - 51 WHEN - + 33 * - 54 * + + 5 + 17 THEN + 70 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5921
SELECT - NULLIF ( + MIN( - 97 ), - COUNT( * ) ) + + 73 AS col1, - 74 + + 36 + 9
----
170
-29

skipif mysql # not compatible
query II rowsort label-5921
SELECT - NULLIF ( + MIN ( - 97 ), - COUNT ( * ) ) + + 73 AS col1, - 74 + + 36 + 9
----
170
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT + + 14 DIV 87 * + 48 * 46 + 9 + - - NULLIF ( 30, 47 * + + 95 * 19 DIV + 61 )
----
39

skipif mysql # not compatible
query I rowsort label-5922
SELECT + + 14 / 87 * + 48 * 46 + 9 + - - NULLIF ( 30, 47 * + + 95 * 19 / + 61 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT - + 3 * - + 93 * 34 + - MAX( ALL - + CAST( + + 99 AS SIGNED ) )
----
9585

skipif mysql # not compatible
query I rowsort label-5923
SELECT - + 3 * - + 93 * 34 + - MAX ( ALL - + CAST ( + + 99 AS INTEGER ) )
----
9585

query I rowsort
SELECT - 60 + 41
----
-19

query II rowsort
SELECT ALL 17, + 40 AS col1
----
17
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5926
SELECT 73, - 27 DIV + 41 DIV + COUNT( ALL + 7 ) + COUNT( * ) + - + COUNT( * ) AS col0
----
73
0

skipif mysql # not compatible
query II rowsort label-5926
SELECT 73, - 27 / + 41 / + COUNT ( ALL + 7 ) + COUNT ( * ) + - + COUNT ( * ) AS col0
----
73
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT DISTINCT COALESCE ( 86, - + 36 ) AS col1, COUNT( * ) * + COUNT( ALL - - ( + 4 ) )
----
86
1

skipif mysql # not compatible
query II rowsort label-5927
SELECT DISTINCT COALESCE ( 86, - + 36 ) AS col1, COUNT ( * ) * + COUNT ( ALL - - ( + 4 ) )
----
86
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT ALL 65 + CAST( NULL AS SIGNED ) - CASE 28 WHEN + - 40 THEN - - 77 WHEN + CAST( + COUNT( * ) AS SIGNED ) + + 85 + - + 71 THEN NULL ELSE - 87 - - MIN( + CAST( NULL AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL 65 + CAST ( NULL AS INTEGER ) - CASE 28 WHEN + - 40 THEN - - 77 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) + + 85 + - + 71 THEN NULL ELSE - 87 - - MIN ( + CAST ( NULL AS INTEGER ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - 95 ) col2
----
-95

query I rowsort
SELECT ALL ( + - 52 ) col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL 29 + 10 * - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL 29 + 10 * - COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - COUNT( * ) + COUNT( * ) - + 72 * - + 16 * + + 95 - - SUM( + 63 ) + + 65 - - - 79 * + + NULLIF ( - 74, + 54 )
----
115414

skipif mysql # not compatible
query I rowsort label-5932
SELECT - COUNT ( * ) + COUNT ( * ) - + 72 * - + 16 * + + 95 - - SUM ( + 63 ) + + 65 - - - 79 * + + NULLIF ( - 74, + 54 )
----
115414

query II rowsort
SELECT - COALESCE ( - + 93, - 81 ), 70 + - 63 AS col2
----
93
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT - 11 + 45 DIV + 81 col1
----
-11

skipif mysql # not compatible
query I rowsort label-5934
SELECT - 11 + 45 / + 81 col1
----
-11

query I rowsort
SELECT + ( 20 ) + + 57
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT + 93 DIV + 85
----
1

skipif mysql # not compatible
query I rowsort label-5936
SELECT + 93 / + 85
----
1

query I rowsort
SELECT ALL 58 * - 54 AS col2
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT + SUM( DISTINCT 80 ) + 86 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-5938
SELECT + SUM ( DISTINCT 80 ) + 86 AS col0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT 28 + 41 + + MIN( DISTINCT 64 ) + + 39 * + - 12 * - 55 + + 72 col2
----
25945

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT 28 + 41 + + MIN ( DISTINCT 64 ) + + 39 * + - 12 * - 55 + + 72 col2
----
25945

onlyif mysql # DIV for integer division: 
query II rowsort label-5940
SELECT ALL + 70 DIV - - 29 + - 82 AS col1, + 42
----
-80
42

skipif mysql # not compatible
query II rowsort label-5940
SELECT ALL + 70 / - - 29 + - 82 AS col1, + 42
----
-80
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5941
SELECT + 34 + COUNT( * ) - - COUNT( ALL - CAST( NULL AS DECIMAL ) ) + 26 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5941
SELECT + 34 + COUNT ( * ) - - COUNT ( ALL - CAST ( NULL AS REAL ) ) + 26 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT + COUNT( DISTINCT + + CASE - 78 WHEN + + 90 THEN + 19 * - - 60 WHEN 99 THEN - 82 + - 64 WHEN + 68 THEN NULL ELSE NULL END ) * - 88 * - - COUNT( * ) * - - 86
----
0

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT + COUNT ( DISTINCT + + CASE - 78 WHEN + + 90 THEN + 19 * - - 60 WHEN 99 THEN - 82 + - 64 WHEN + 68 THEN NULL ELSE NULL END ) * - 88 * - - COUNT ( * ) * - - 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5943
SELECT + 52 * + COALESCE ( - + 45, + - ( - 39 ), - CAST( NULL AS SIGNED ) * + 4 DIV + ( - 43 ) ) * - COUNT( * ) + COUNT( * ) + - 79 * 10 AS col0, 62
----
1551
62

skipif mysql # not compatible
query II rowsort label-5943
SELECT + 52 * + COALESCE ( - + 45, + - ( - 39 ), - CAST ( NULL AS INTEGER ) * + 4 / + ( - 43 ) ) * - COUNT ( * ) + COUNT ( * ) + - 79 * 10 AS col0, 62
----
1551
62

query I rowsort
SELECT - - 4 * 26 * - - 47 + ( - + 1 )
----
4887

query I rowsort
SELECT - - 32 * - 81 + + - 66 AS col1
----
-2658

query II rowsort
SELECT 59 AS col1, 20 * + 10 col1
----
59
200

query I rowsort
SELECT CASE + - 4 WHEN + 40 THEN 71 * - 38 + 51 * + 94 * + 40 + + 13 WHEN 83 - - 95 + - 69 * + 44 THEN + 66 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5948
SELECT 44 DIV - 88 * + SUM( + - 70 ) + + 22
----
22

skipif mysql # not compatible
query I rowsort label-5948
SELECT 44 / - 88 * + SUM ( + - 70 ) + + 22
----
22

query I rowsort
SELECT NULLIF ( 74, - 32 * - 90 * + 0 + - - 82 )
----
74

query II rowsort
SELECT ALL + - 67 AS col1, 39 + ( + 17 ) * - 52 * + CASE + 25 WHEN + ( + + 64 ) + - + 63 THEN 22 ELSE NULL END
----
-67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT ALL + - SUM( + ( + - 57 ) ) AS col1, 32 + + - 94
----
57
-62

skipif mysql # not compatible
query II rowsort label-5951
SELECT ALL + - SUM ( + ( + - 57 ) ) AS col1, 32 + + - 94
----
57
-62

query I rowsort
SELECT ALL - + 67 * 99 AS col0
----
-6633

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT - + 18 * - MAX( + 55 ) * 29 AS col2
----
28710

skipif mysql # not compatible
query I rowsort label-5953
SELECT - + 18 * - MAX ( + 55 ) * 29 AS col2
----
28710

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT - + COUNT( DISTINCT + 7 ) * + - 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5954
SELECT - + COUNT ( DISTINCT + 7 ) * + - 19 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5955
SELECT DISTINCT + 96 * 99 + - ( - + COUNT( * ) ) - - - NULLIF ( - COUNT( - - 57 ), - + 96 + + + AVG ( CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * - + 56 * + + 9 / 74 * + - 47 - + 84 + CASE CAST( + 60 AS SIGNED ) WHEN + - 96 - - - 49 THEN NULL WHEN 27 THEN + AVG ( + 17 ) ELSE NULL END * + ( + COUNT( * ) ) ) AS col0, + 25
----
9506
25

skipif mysql # not compatible
query II rowsort label-5955
SELECT DISTINCT + 96 * 99 + - ( - + COUNT ( * ) ) - - - NULLIF ( - COUNT ( - - 57 ), - + 96 + + + AVG ( CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * - + 56 * + + 9 / 74 * + - 47 - + 84 + CASE CAST ( + 60 AS INTEGER ) WHEN + - 96 - - - 49 THEN NULL WHEN 27 THEN + AVG ( + 17 ) ELSE NULL END * + ( + COUNT ( * ) ) ) AS col0, + 25
----
9506
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5956
SELECT CAST( NULL AS SIGNED ) * - + 30 + - + 28 * - + ( + 25 ) * - 45 AS col1, - ( - + 55 ) + - 30, 56 AS col1
----
NULL
25
56

skipif mysql # not compatible
query III rowsort label-5956
SELECT CAST ( NULL AS INTEGER ) * - + 30 + - + 28 * - + ( + 25 ) * - 45 AS col1, - ( - + 55 ) + - 30, 56 AS col1
----
NULL
25
56

query II rowsort
SELECT 82 AS col2, + 92
----
82
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT - 13 * + - CAST( NULL AS SIGNED ) - - - NULLIF ( + - COUNT( * ), - + 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT - 13 * + - CAST ( NULL AS INTEGER ) - - - NULLIF ( + - COUNT ( * ), - + 61 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT DISTINCT 44 * + ( - 77 ) + + 7 * COUNT( * ) AS col0, 49 AS col0
----
-3381
49

skipif mysql # not compatible
query II rowsort label-5959
SELECT DISTINCT 44 * + ( - 77 ) + + 7 * COUNT ( * ) AS col0, 49 AS col0
----
-3381
49

query I rowsort
SELECT ALL 19 * + COALESCE ( + + 96, - + 4, - - 57 ) + + COALESCE ( + 87, - 8, + + 88 * - 42 + + ( 31 ) + 58 + 75 ) * - 60 AS col1
----
-3396

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL CASE 41 WHEN + 10 - - + 89 THEN NULL WHEN - NULLIF ( 27, - + 72 ) * - 79 THEN + + 63 + - - COUNT( DISTINCT - 6 ) * - + 29 * - + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL CASE 41 WHEN + 10 - - + 89 THEN NULL WHEN - NULLIF ( 27, - + 72 ) * - 79 THEN + + 63 + - - COUNT ( DISTINCT - 6 ) * - + 29 * - + 65 END
----
NULL

query I rowsort
SELECT DISTINCT + 25 * - 8 + + 60 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT 82 * 99 * 60 + - - MIN( - - 18 )
----
487098

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT 82 * 99 * 60 + - - MIN ( - - 18 )
----
487098

query I rowsort
SELECT - 24 + + + 12
----
-12

query I rowsort
SELECT - 70 - - + 0
----
-70

query I rowsort
SELECT + 94 + 28
----
122

query I rowsort
SELECT DISTINCT + 92 * + - 75 * - + 36 col0
----
248400

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + COUNT( * ) * - - 14
----
14

skipif mysql # not compatible
query I rowsort label-5968
SELECT + COUNT ( * ) * - - 14
----
14

query I rowsort
SELECT DISTINCT 73 * + 22
----
1606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT COALESCE ( - - 32, + COUNT( * ), - - 12 + - CAST( NULL AS SIGNED ) ) + - - ( COUNT( * ) ) + + + CASE - CAST( NULL AS SIGNED ) WHEN - 41 / - - 95 + 58 + + - COUNT( * ) THEN NULL WHEN - COALESCE ( + - 8, - 48 ) * - + 43 + - COUNT( ALL 59 ) + - COUNT( 41 ) + - 48 + 9 * - COALESCE ( - 96, - + 61 ) / 23 * + CASE - + 8 WHEN 4 THEN + SUM( 87 ) WHEN + 71 + CAST( 0 AS SIGNED ) * 5 THEN NULL WHEN 41 THEN NULL END * 57 THEN NULL ELSE 38 * 31 END + - 90 * + 49 AS col1
----
-3199

skipif mysql # not compatible
query I rowsort label-5970
SELECT COALESCE ( - - 32, + COUNT ( * ), - - 12 + - CAST ( NULL AS INTEGER ) ) + - - ( COUNT ( * ) ) + + + CASE - CAST ( NULL AS INTEGER ) WHEN - 41 / - - 95 + 58 + + - COUNT ( * ) THEN NULL WHEN - COALESCE ( + - 8, - 48 ) * - + 43 + - COUNT ( ALL 59 ) + - COUNT ( 41 ) + - 48 + 9 * - COALESCE ( - 96, - + 61 ) / 23 * + CASE - + 8 WHEN 4 THEN + SUM ( 87 ) WHEN + 71 + CAST ( 0 AS INTEGER ) * 5 THEN NULL WHEN 41 THEN NULL END * 57 THEN NULL ELSE 38 * 31 END + - 90 * + 49 AS col1
----
-3199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT + CAST( NULL AS SIGNED ) * 62 + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT + CAST ( NULL AS INTEGER ) * 62 + - 92 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL - 58 * COUNT( * ) + + NULLIF ( - - COUNT( * ), + 52 ) + - + NULLIF ( + 97, - + COUNT( * ) + - 15 ) * - CAST( + - ( - + 93 ) AS SIGNED ) col0
----
8964

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - 58 * COUNT ( * ) + + NULLIF ( - - COUNT ( * ), + 52 ) + - + NULLIF ( + 97, - + COUNT ( * ) + - 15 ) * - CAST ( + - ( - + 93 ) AS INTEGER ) col0
----
8964

query I rowsort
SELECT 69 + 51
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT - 31 * - CAST( - + 47 AS SIGNED ) col2
----
-1457

skipif mysql # not compatible
query I rowsort label-5974
SELECT - 31 * - CAST ( - + 47 AS INTEGER ) col2
----
-1457

query I rowsort
SELECT - ( - - 39 ) * - 32 * + + 17 + + 96 AS col2
----
21312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT NULLIF ( + ( CASE 10 WHEN + 65 / 34 - + 28 THEN - 91 * 83 - - COUNT( * ) WHEN - - 33 THEN NULL ELSE - 96 + - 3 END ), + 64 ) * 42 + CAST( + + 43 AS SIGNED ) AS col1
----
-4115

skipif mysql # not compatible
query I rowsort label-5976
SELECT NULLIF ( + ( CASE 10 WHEN + 65 / 34 - + 28 THEN - 91 * 83 - - COUNT ( * ) WHEN - - 33 THEN NULL ELSE - 96 + - 3 END ), + 64 ) * 42 + CAST ( + + 43 AS INTEGER ) AS col1
----
-4115

query I rowsort
SELECT 7 + + - ( + 70 ) AS col1
----
-63

query I rowsort
SELECT ALL + + 40 + + 64 - 87
----
17

query I rowsort
SELECT 59 - + 82 AS col1
----
-23

query I rowsort
SELECT ALL - 68 * + - 53
----
3604

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT 66 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5981
SELECT 66 / 40 AS col1
----
1

query I rowsort
SELECT DISTINCT 54 + + + 63 AS col1
----
117

query I rowsort
SELECT ALL 89 + - 19 + - 57 * 79 * - + 46 * - - 61 - - + 73
----
12635561

query I rowsort
SELECT 49 * - - 58 * - ( - - NULLIF ( + + COALESCE ( - 76, + + 55 ), + 25 + + + 44 ) )
----
215992

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT 56 DIV 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5985
SELECT 56 / 11 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5986
SELECT ( CAST( NULL AS SIGNED ) ) + 16 AS col1, - MIN( ALL + 92 ) AS col1
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-5986
SELECT ( CAST ( NULL AS INTEGER ) ) + 16 AS col1, - MIN ( ALL + 92 ) AS col1
----
NULL
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT 1 * - 18 DIV 45 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT 1 * - 18 / 45 * - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5988
SELECT 4 - + 0 * - + CAST( NULL AS DECIMAL ) * - - 37 * - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT 4 - + 0 * - + CAST ( NULL AS REAL ) * - - 37 * - + 0
----
NULL

query I rowsort
SELECT ALL + 78 - + 35 AS col1
----
43

query I rowsort
SELECT 91 * - 43 AS col2
----
-3913

query I rowsort
SELECT ALL + 33 - - + 53 AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5992
SELECT ALL 1, + 40 * 4 * - SUM( - 95 ) AS col2
----
1
15200

skipif mysql # not compatible
query II rowsort label-5992
SELECT ALL 1, + 40 * 4 * - SUM ( - 95 ) AS col2
----
1
15200

query I rowsort
SELECT 81 + 27 AS col1
----
108

query I rowsort
SELECT DISTINCT - 61 * - - 26 AS col1
----
-1586

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5995
SELECT 90 + - - CAST( + + 32 AS SIGNED ) + - 37 DIV 5, + 77 * - 19 AS col0
----
115
-1463

skipif mysql # not compatible
query II rowsort label-5995
SELECT 90 + - - CAST ( + + 32 AS INTEGER ) + - 37 / 5, + 77 * - 19 AS col0
----
115
-1463

query I rowsort
SELECT 26 - - 95 AS col2
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-5997
SELECT ALL - ( 74 ) * + - COUNT( * ) AS col0, - ( 69 )
----
74
-69

skipif mysql # not compatible
query II rowsort label-5997
SELECT ALL - ( 74 ) * + - COUNT ( * ) AS col0, - ( 69 )
----
74
-69

query I rowsort
SELECT 35 + + + 89 col2
----
124

query I rowsort
SELECT DISTINCT - - 38 * 59
----
2242

query I rowsort
SELECT 12 + + - 94 + + 42
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + 70 * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-6001
SELECT + 70 * + COUNT ( * )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT ALL - CAST( + 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL - CAST ( + 59 AS INTEGER )
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-6003
SELECT + 36 DIV - 89 * 53, 50 AS col0
----
0
50

skipif mysql # not compatible
query II rowsort label-6003
SELECT + 36 / - 89 * 53, 50 AS col0
----
0
50

query I rowsort
SELECT + 96 * + + NULLIF ( - COALESCE ( - - 31, - - 14 ), ( - + 62 ) / 41 ) + - 10 + 92 col1
----
-2894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT DISTINCT - - ( 74 ) / - - 36 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - - ( 74 ) / - - 36 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 83 * + 66 + + 77 - + 6 + + + 42
----
5591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT 30 * - - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT 30 * - - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT + 96 DIV + + 80 + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6008
SELECT + 96 / + + 80 + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT DISTINCT + 10 + 50 col0
----
60

query I rowsort
SELECT ALL - 46 + - - 48 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT + + COALESCE ( - 56, 19 + - 58, 25 DIV + + 80 * + 19 )
----
-56

skipif mysql # not compatible
query I rowsort label-6011
SELECT + + COALESCE ( - 56, 19 + - 58, 25 / + + 80 * + 19 )
----
-56

query I rowsort
SELECT ALL - ( - 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT ALL + + COALESCE ( - MAX( + - 63 ), - - 28 - - 43 + CASE - 63 WHEN - + ( - 5 ) THEN + - 86 END DIV + 49 ) + - - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + + COALESCE ( - MAX ( + - 63 ), - - 28 - - 43 + CASE - 63 WHEN - + ( - 5 ) THEN + - 86 END / + 49 ) + - - COUNT ( * ) AS col2
----
64

query I rowsort
SELECT DISTINCT - ( + 24 ) + - - ( - 24 )
----
-48

query I rowsort
SELECT 69 * 8 * - 84 AS col2
----
-46368

query II rowsort
SELECT DISTINCT - 8 AS col2, 25 + - + 95
----
-8
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT SUM( DISTINCT 51 ), - COALESCE ( COUNT( * ), + + 48 + 30 - - 45 - + 18 * + 74 ) * - ( + 52 ) AS col0
----
51
52

skipif mysql # not compatible
query II rowsort label-6017
SELECT SUM ( DISTINCT 51 ), - COALESCE ( COUNT ( * ), + + 48 + 30 - - 45 - + 18 * + 74 ) * - ( + 52 ) AS col0
----
51
52

query II rowsort
SELECT DISTINCT - 17, + 84 AS col0
----
-17
84

query I rowsort
SELECT 94 * - 18
----
-1692

query I rowsort
SELECT ( - 5 ) * + 22 + + - 21
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6021
SELECT 70 AS col2, + CAST( - COUNT( * ) AS SIGNED ) * - 44 AS col1
----
70
44

skipif mysql # not compatible
query II rowsort label-6021
SELECT 70 AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) * - 44 AS col1
----
70
44

onlyif mysql # DIV for integer division: 
query II rowsort label-6022
SELECT ALL 81, - 16 DIV + + 11 - 68 AS col2
----
81
-69

skipif mysql # not compatible
query II rowsort label-6022
SELECT ALL 81, - 16 / + + 11 - 68 AS col2
----
81
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT + COUNT( * ) * - MIN( + ( - + 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-6023
SELECT + COUNT ( * ) * - MIN ( + ( - + 37 ) )
----
37

query I rowsort
SELECT DISTINCT 64 - + - 4 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT ALL SUM( - + NULLIF ( - + 24, 27 ) ) AS col2, - 67 AS col2
----
24
-67

skipif mysql # not compatible
query II rowsort label-6025
SELECT ALL SUM ( - + NULLIF ( - + 24, 27 ) ) AS col2, - 67 AS col2
----
24
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT + 34 + - 86 + ( - + NULLIF ( + + 83, MIN( 46 ) + + CAST( NULL AS SIGNED ) ) ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 34 + - 86 + ( - + NULLIF ( + + 83, MIN ( 46 ) + + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-135

query I rowsort
SELECT ALL 99 * 89
----
8811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT + COUNT( * ) * 80 DIV 23 * + - 91
----
-273

skipif mysql # not compatible
query I rowsort label-6028
SELECT + COUNT ( * ) * 80 / 23 * + - 91
----
-273

query II rowsort
SELECT 74 * + 92 * 7 + 18 AS col1, + 86 AS col1
----
47674
86

query I rowsort
SELECT DISTINCT 34 * 30 * 68 AS col1
----
69360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT ALL 93 * - NULLIF ( + - CAST( NULL AS SIGNED ), 87 - 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL 93 * - NULLIF ( + - CAST ( NULL AS INTEGER ), 87 - 93 ) AS col1
----
NULL

query I rowsort
SELECT - 4 + - ( 78 ) AS col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT - 63 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 63 / 70 AS col1
----
0

query I rowsort
SELECT + 75 * + 13
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL SUM( ALL COALESCE ( + + 7, + 65 + - - 42 + 58 ) ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL SUM ( ALL COALESCE ( + + 7, + 65 + - - 42 + 58 ) ) col1
----
7

query II rowsort
SELECT DISTINCT - 68 AS col0, 18 + - ( - - 65 ) * + + 73 + + + 88 * 88 + + 1
----
-68
3018

query I rowsort
SELECT ALL - 2 + + ( + + 31 ) * - 31 AS col1
----
-963

query I rowsort
SELECT DISTINCT + - 90 + + 48 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6039
SELECT ALL + 32 AS col1, + 55 * + COUNT( * ) AS col2
----
32
55

skipif mysql # not compatible
query II rowsort label-6039
SELECT ALL + 32 AS col1, + 55 * + COUNT ( * ) AS col2
----
32
55

query I rowsort
SELECT COALESCE ( 25, - - 23 )
----
25

query II rowsort
SELECT + - 11 - + 44 AS col1, 48 col2
----
-55
48

query II rowsort
SELECT - 41 AS col0, 6
----
-41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT + COUNT( 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6043
SELECT + COUNT ( 93 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT DISTINCT + 11 * + 36 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT + 11 * + 36 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6045
SELECT ALL + 76 * - 71 + + + 96 - + 49 + - 58 * 30 * + COALESCE ( - 75, - - COALESCE ( - + 87, + CAST( NULL AS SIGNED ) + + - 24, - 1 * + - 87 * + 66 DIV - 18 + + 99 * - + 26 * - - ( - 14 ) + SUM( ALL + 7 ) ) DIV + + CAST( NULL AS SIGNED ) + + - 66 ) AS col2, 67 * + - 65 + + 3
----
125151
-4352

skipif mysql # not compatible
query II rowsort label-6045
SELECT ALL + 76 * - 71 + + + 96 - + 49 + - 58 * 30 * + COALESCE ( - 75, - - COALESCE ( - + 87, + CAST ( NULL AS INTEGER ) + + - 24, - 1 * + - 87 * + 66 / - 18 + + 99 * - + 26 * - - ( - 14 ) + SUM ( ALL + 7 ) ) / + + CAST ( NULL AS INTEGER ) + + - 66 ) AS col2, 67 * + - 65 + + 3
----
125151
-4352

query II rowsort
SELECT + - 29 AS col0, - COALESCE ( - ( ( 28 ) ), + 6 * 58 ) - - 54 AS col0
----
-29
82

query I rowsort
SELECT DISTINCT + - NULLIF ( + - 31, - 16 / - - 12 ) AS col0
----
31

query I rowsort
SELECT - 79 * + 83 * ( - 19 )
----
124583

query I rowsort
SELECT - ( - 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT ALL + COUNT( * ) AS col0, - MAX( ALL - - 37 ) AS col0
----
1
-37

skipif mysql # not compatible
query II rowsort label-6050
SELECT ALL + COUNT ( * ) AS col0, - MAX ( ALL - - 37 ) AS col0
----
1
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-6051
SELECT ALL + 65 col1, + COUNT( * ) AS col0
----
65
1

skipif mysql # not compatible
query II rowsort label-6051
SELECT ALL + 65 col1, + COUNT ( * ) AS col0
----
65
1

query II rowsort
SELECT ALL + - 37, + ( 8 ) AS col0
----
-37
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6053
SELECT - 6 DIV MIN( - + 61 ) - + - SUM( + - 98 ) * + - 92
----
9016

skipif mysql # not compatible
query I rowsort label-6053
SELECT - 6 / MIN ( - + 61 ) - + - SUM ( + - 98 ) * + - 92
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT - 46 * 50 + - - COUNT( * ) + + - 7 * + - 97
----
-1620

skipif mysql # not compatible
query I rowsort label-6054
SELECT - 46 * 50 + - - COUNT ( * ) + + - 7 * + - 97
----
-1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6055
SELECT - MIN( ALL - - CASE + + 11 WHEN 58 THEN NULL ELSE + - CAST( + CAST( - - 55 AS SIGNED ) AS SIGNED ) END ) + - - COALESCE ( - 81, - CAST( - 1 AS SIGNED ) - 58, - + 56 + + COUNT( ALL + 68 ) * + ( - + COALESCE ( - 74, + COUNT( * ) - + - COUNT( * ) * + 90 * + - 10 + 9 + + - 92 * 90, - 51 DIV - 2 * - 20 + + 25 ) ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-6055
SELECT - MIN ( ALL - - CASE + + 11 WHEN 58 THEN NULL ELSE + - CAST ( + CAST ( - - 55 AS INTEGER ) AS INTEGER ) END ) + - - COALESCE ( - 81, - CAST ( - 1 AS INTEGER ) - 58, - + 56 + + COUNT ( ALL + 68 ) * + ( - + COALESCE ( - 74, + COUNT ( * ) - + - COUNT ( * ) * + 90 * + - 10 + 9 + + - 92 * 90, - 51 / - 2 * - 20 + + 25 ) ) ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT - 95 + - ( CASE - COUNT( * ) WHEN + MIN( ALL + - 82 ) THEN - 90 END ) + + COALESCE ( + + 83, - ( 8 ) ) * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT - 95 + - ( CASE - COUNT ( * ) WHEN + MIN ( ALL + - 82 ) THEN - 90 END ) + + COALESCE ( + + 83, - ( 8 ) ) * + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6057
SELECT ALL + 50 DIV - COUNT( * ), - 64 AS col2
----
-50
-64

skipif mysql # not compatible
query II rowsort label-6057
SELECT ALL + 50 / - COUNT ( * ), - 64 AS col2
----
-50
-64

query I rowsort
SELECT + 57 * 92 * + 59 * + 43 + + - 25 + 8 AS col2
----
13304011

query I rowsort
SELECT + ( - 42 ) * - 55 AS col0
----
2310

query I rowsort
SELECT + 53 * + 0 AS col0
----
0

query I rowsort
SELECT COALESCE ( - 24, + - 76 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT + COUNT( * ) + - 75 col1, - CASE - + 52 WHEN + 5 THEN + + MAX( DISTINCT + 31 ) + + + 86 * COUNT( DISTINCT - + 16 ) - + + 73 WHEN 68 THEN NULL END
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-6062
SELECT + COUNT ( * ) + - 75 col1, - CASE - + 52 WHEN + 5 THEN + + MAX ( DISTINCT + 31 ) + + + 86 * COUNT ( DISTINCT - + 16 ) - + + 73 WHEN 68 THEN NULL END
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT MAX( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-6063
SELECT MAX ( 81 )
----
81

query I rowsort
SELECT ALL 31 * - 28 - - - 48 AS col0
----
-916

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT COUNT( + - 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6065
SELECT COUNT ( + - 85 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT + 51 * + AVG ( ALL + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT + 51 * + AVG ( ALL + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query II rowsort
SELECT ALL 78 + - 95 AS col2, 18
----
-17
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT + ( ( 2 ) ) - + 69 + - 25 * 12 * + + 1 * + COUNT( * ) * - MIN( 75 ) * - 3
----
-67567

skipif mysql # not compatible
query I rowsort label-6068
SELECT + ( ( 2 ) ) - + 69 + - 25 * 12 * + + 1 * + COUNT ( * ) * - MIN ( 75 ) * - 3
----
-67567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6069
SELECT ALL NULLIF ( - 20, + + 71 ) DIV + - COUNT( * ) col0
----
20

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL NULLIF ( - 20, + + 71 ) / + - COUNT ( * ) col0
----
20

query I rowsort
SELECT + 61 * + 24 AS col0
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL + 45 + - 70 - - + 76 + + ( + COUNT( * ) ) + + + 73 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL + 45 + - 70 - - + 76 + + ( + COUNT ( * ) ) + + + 73 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT + + 40 + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6072
SELECT + + 40 + COUNT ( * ) AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6073
SELECT + - 65 + - CAST( - COALESCE ( + 74, + - CAST( NULL AS DECIMAL ), + + COUNT( * ), - 96 * - 80 - 64 ) AS SIGNED ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6073
SELECT + - 65 + - CAST ( - COALESCE ( + 74, + - CAST ( NULL AS REAL ), + + COUNT ( * ), - 96 * - 80 - 64 ) AS INTEGER ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT - - ( COUNT( * ) ) - + 27 + - ( - 54 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6074
SELECT - - ( COUNT ( * ) ) - + 27 + - ( - 54 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + COUNT( - ( - 31 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6075
SELECT + COUNT ( - ( - 31 ) ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6076
SELECT ALL 80 + 12 AS col2, CAST( NULL AS SIGNED ) AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6076
SELECT ALL 80 + 12 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
92
NULL

query I rowsort
SELECT ALL 24 + - 48 AS col0
----
-24

query II rowsort
SELECT DISTINCT + 52 + 75 AS col0, + 70
----
127
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT DISTINCT - NULLIF ( + 13, NULLIF ( 49, + 88 + - + 43 * CAST( - 58 AS SIGNED ) * - MIN( DISTINCT + 42 ) + - 17 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - NULLIF ( + 13, NULLIF ( 49, + 88 + - + 43 * CAST ( - 58 AS INTEGER ) * - MIN ( DISTINCT + 42 ) + - 17 ) )
----
-13

query I rowsort
SELECT ALL - 29 + 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT - 91 + ( - MIN( DISTINCT - 85 ) ) + - - COUNT( DISTINCT - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6081
SELECT - 91 + ( - MIN ( DISTINCT - 85 ) ) + - - COUNT ( DISTINCT - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + - COUNT( * ) * + + 4 * 36 + 58 - + CASE + 95 WHEN - 94 THEN + 12 * 63 WHEN + - 65 + - 24 - - + 55 THEN + 36 * - 15 + NULLIF ( SUM( 54 ), 35 * - 15 + 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT + - COUNT ( * ) * + + 4 * 36 + 58 - + CASE + 95 WHEN - 94 THEN + 12 * 63 WHEN + - 65 + - 24 - - + 55 THEN + 36 * - 15 + NULLIF ( SUM ( 54 ), 35 * - 15 + 90 ) END
----
NULL

query II rowsort
SELECT ALL + ( - + 65 ) AS col0, 68 AS col0
----
-65
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT 3 AS col0, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-6084
SELECT 3 AS col0, COUNT ( * )
----
3
1

query I rowsort
SELECT ALL + 46 - - 52 AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6086
SELECT + 77 AS col1, NULLIF ( + NULLIF ( + 76, COUNT( * ) ), + 9 * - ( - 58 ) * + 72 + + 31 ) AS col1
----
77
76

skipif mysql # not compatible
query II rowsort label-6086
SELECT + 77 AS col1, NULLIF ( + NULLIF ( + 76, COUNT ( * ) ), + 9 * - ( - 58 ) * + 72 + + 31 ) AS col1
----
77
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT DISTINCT - 33 AS col0, COUNT( * ) * - CASE WHEN NOT 53 <= 18 THEN - 96 ELSE NULL END * - 96 + - 28 + + SUM( + 1 ) AS col1
----
-33
-9243

skipif mysql # not compatible
query II rowsort label-6087
SELECT DISTINCT - 33 AS col0, COUNT ( * ) * - CASE WHEN NOT 53 <= 18 THEN - 96 ELSE NULL END * - 96 + - 28 + + SUM ( + 1 ) AS col1
----
-33
-9243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT DISTINCT - ( + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT - ( + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - ( 84 ) col0
----
-84

query I rowsort
SELECT + ( + 50 ) * - - 46 - + 52 AS col2
----
2248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6091
SELECT COUNT( * ) DIV - + 31 col0
----
0

skipif mysql # not compatible
query I rowsort label-6091
SELECT COUNT ( * ) / - + 31 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT + CAST( NULL AS SIGNED ) * + NULLIF ( + - COUNT( 25 ), + 32 ) * MIN( + - ( + - 66 ) ) - - + 6 + + 65 + + 74 + 60 * - 21 + 34 * + CASE 84 WHEN - - COUNT( * ) * - 92 THEN - 16 ELSE + 15 + COUNT( * ) - + - 17 / + 28 END / 62 / + - 60 - + - ( + 53 ) + + COUNT( * ) * + 23 * - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( + - COUNT ( 25 ), + 32 ) * MIN ( + - ( + - 66 ) ) - - + 6 + + 65 + + 74 + 60 * - 21 + 34 * + CASE 84 WHEN - - COUNT ( * ) * - 92 THEN - 16 ELSE + 15 + COUNT ( * ) - + - 17 / + 28 END / 62 / + - 60 - + - ( + 53 ) + + COUNT ( * ) * + 23 * - - 2
----
NULL

query I rowsort
SELECT 35 + + 71 + - - 6 * + 72 + + 33 * - - NULLIF ( CASE - - 48 WHEN + 38 THEN - CASE + 98 WHEN - 89 * 78 * - 52 / + 66 THEN - 21 END END, 71 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT COUNT( * ) DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6094
SELECT COUNT ( * ) / - 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - 11 + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - 11 + - COUNT ( * )
----
-12

query I rowsort
SELECT ALL + 57 + 1 + - 8
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT - COUNT( * ) DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - COUNT ( * ) / + + 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT ALL NULLIF ( + + 30, 43 + + + CASE - - 87 WHEN 72 THEN - 74 WHEN - CAST( NULL AS SIGNED ) - + 98 THEN + 75 + - 53 + + COUNT( * ) ELSE NULL END + + 17 ) + + - 22
----
8

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL NULLIF ( + + 30, 43 + + + CASE - - 87 WHEN 72 THEN - 74 WHEN - CAST ( NULL AS INTEGER ) - + 98 THEN + 75 + - 53 + + COUNT ( * ) ELSE NULL END + + 17 ) + + - 22
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT + COUNT( * ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT + COUNT ( * ) + - 83
----
-82

query I rowsort
SELECT DISTINCT + - 19 + - + 55
----
-74

query I rowsort
SELECT COALESCE ( + - 9, 74, - 12 + 31, - 59 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT - 98 * + + 98 * - 68 + + COUNT( * ) AS col1
----
653073

skipif mysql # not compatible
query I rowsort label-6102
SELECT - 98 * + + 98 * - 68 + + COUNT ( * ) AS col1
----
653073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT + CAST( + 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-6103
SELECT + CAST ( + 5 AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - 81 + - - COUNT( ALL - ( 45 ) ) * - 43 - + + 82 AS col0
----
-206

skipif mysql # not compatible
query I rowsort label-6104
SELECT - 81 + - - COUNT ( ALL - ( 45 ) ) * - 43 - + + 82 AS col0
----
-206

query II rowsort
SELECT - - 48 AS col2, 42
----
48
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6106
SELECT ALL + 92 AS col1, 96 - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - 41 * COUNT( DISTINCT - 18 ) * - 35 + + + 24 AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6106
SELECT ALL + 92 AS col1, 96 - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 41 * COUNT ( DISTINCT - 18 ) * - 35 + + + 24 AS col0
----
92
NULL

query I rowsort
SELECT 79 + - + 32 + - + ( - 87 )
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-6108
SELECT COUNT( * ) AS col1, 32
----
1
32

skipif mysql # not compatible
query II rowsort label-6108
SELECT COUNT ( * ) AS col1, 32
----
1
32

query I rowsort
SELECT DISTINCT + 81 + - 69 + + - 76 col2
----
-64

query II rowsort
SELECT - 43, 38 * + + 10 * - COALESCE ( 22, 74 ) * - 15 AS col0
----
-43
125400

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT CASE + 76 WHEN - 59 THEN + COUNT( * ) + + 84 ELSE NULL END / 18 + + COUNT( * ) + - 26 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT CASE + 76 WHEN - 59 THEN + COUNT ( * ) + + 84 ELSE NULL END / 18 + + COUNT ( * ) + - 26 * 68
----
NULL

query I rowsort
SELECT ALL + 48 - 21 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6113
SELECT - CAST( NULL AS SIGNED ) col2, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6113
SELECT - CAST ( NULL AS INTEGER ) col2, 58
----
NULL
58

query I rowsort
SELECT 38 - + - 13 - 59 AS col2
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6115
SELECT - 97 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT - 97 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6116
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - 96 THEN NULL WHEN - ( - SUM( - + 0 ) ) THEN NULL ELSE + 81 - + 38 END * - 71 * - 28 AS col1
----
85484

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - 96 THEN NULL WHEN - ( - SUM ( - + 0 ) ) THEN NULL ELSE + 81 - + 38 END * - 71 * - 28 AS col1
----
85484

query I rowsort
SELECT ALL 25 * - 21 * 3
----
-1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6118
SELECT ALL 30 * - CAST( - SUM( - 45 ) AS SIGNED ) AS col0, CAST( - - 46 AS SIGNED )
----
-1350
46

skipif mysql # not compatible
query II rowsort label-6118
SELECT ALL 30 * - CAST ( - SUM ( - 45 ) AS INTEGER ) AS col0, CAST ( - - 46 AS INTEGER )
----
-1350
46

query I rowsort
SELECT ( + 51 ) - 75
----
-24

query I rowsort
SELECT 51 * - + 81 - + 23
----
-4154

query I rowsort
SELECT 10 * 87
----
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6122
SELECT + NULLIF ( 74, 1 * AVG ( DISTINCT - 11 ) ) * + SUM( ALL CAST( NULL AS SIGNED ) ) * + - 7 + - - 1, ( - 15 ) AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-6122
SELECT + NULLIF ( 74, 1 * AVG ( DISTINCT - 11 ) ) * + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + - 7 + - - 1, ( - 15 ) AS col2
----
NULL
-15

query I rowsort
SELECT 29 - 40 * 85
----
-3371

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6124
SELECT CAST( NULL AS DECIMAL ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT CAST ( NULL AS REAL ) * 49
----
NULL

query I rowsort
SELECT ALL 40 + + 99 + 12
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6126
SELECT DISTINCT + 98 * + CASE 70 WHEN COUNT( * ) + + + CAST( - COUNT( * ) AS DECIMAL ) THEN - + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + 98 * + CASE 70 WHEN COUNT ( * ) + + + CAST ( - COUNT ( * ) AS REAL ) THEN - + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query II rowsort
SELECT 28 + + 67 col0, + 76
----
95
76

query I rowsort
SELECT DISTINCT + 44 + - 4 - + 7 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL - + 29 + ( + MIN( + 29 ) ) + 56 + 0
----
56

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - + 29 + ( + MIN ( + 29 ) ) + 56 + 0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT - CAST( NULL AS SIGNED ) * ( - ( - 61 ) ) + - COUNT( * ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT - CAST ( NULL AS INTEGER ) * ( - ( - 61 ) ) + - COUNT ( * ) * + 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6131
SELECT - 96 + 56 AS col2, + 48 - MIN( ALL 88 ) AS col1
----
-40
-40

skipif mysql # not compatible
query II rowsort label-6131
SELECT - 96 + 56 AS col2, + 48 - MIN ( ALL 88 ) AS col1
----
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT 73 * - 50 + - 3 DIV + - 31 AS col2
----
-3650

skipif mysql # not compatible
query I rowsort label-6132
SELECT 73 * - 50 + - 3 / + - 31 AS col2
----
-3650

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT - 70 * + + 78 * - 17 * + 6 + + 15 DIV - - 8 + + + 20
----
556941

skipif mysql # not compatible
query I rowsort label-6133
SELECT - 70 * + + 78 * - 17 * + 6 + + 15 / - - 8 + + + 20
----
556941

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT ALL - + 54 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL - + 54 / + 65
----
0

query I rowsort
SELECT DISTINCT - - 4 * ( + + 28 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL + - COUNT( * ) + + 54
----
53

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + - COUNT ( * ) + + 54
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT CAST( 37 AS SIGNED ) - - ( - 43 )
----
-6

skipif mysql # not compatible
query I rowsort label-6137
SELECT CAST ( 37 AS INTEGER ) - - ( - 43 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT ALL - 93 DIV + - 33 + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - 93 / + - 33 + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + 46 - + COUNT( * ) * + - 18 + - ( + 41 ) + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-6139
SELECT + 46 - + COUNT ( * ) * + - 18 + - ( + 41 ) + COUNT ( * )
----
24

query I rowsort
SELECT ALL + - 49 * - 31 * - 26 * + + 76 + - 51 + + - 79 AS col2
----
-3001674

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - 12 + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-6141
SELECT - 12 + COUNT ( * )
----
-11

query I rowsort
SELECT 22 * 34 * 91 + - 32
----
68036

query I rowsort
SELECT - 26 + + ( - - 4 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - COALESCE ( + - 43, + MAX( + - 38 ) + + + 29 * - ( - 65 ) ) + + - 79 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6144
SELECT - COALESCE ( + - 43, + MAX ( + - 38 ) + + + 29 * - ( - 65 ) ) + + - 79 AS col1
----
-36

query I rowsort
SELECT + - 97 * + 46 AS col2
----
-4462

query I rowsort
SELECT ALL NULLIF ( 76, 47 ) AS col1
----
76

query I rowsort
SELECT + 94 + + 4 + + ( - 97 ) * + + 28 + 42 - 5 * - + 25 * - 56 + + 26
----
-9550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT ALL 0 DIV MIN( - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL 0 / MIN ( - 74 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6149
SELECT + 12 DIV CASE 55 WHEN 36 * - COALESCE ( + 34, + 51 * 22 ) + + ( - + CASE 23 WHEN - COUNT( * ) - + 26 THEN - 94 WHEN - ( - CASE + 72 WHEN + COUNT( * ) THEN 23 + ( + 71 ) + + - 93 WHEN + 58 * + 61 + - + 8 THEN NULL END ) * 76 THEN NULL ELSE NULL END ) THEN NULL WHEN + COALESCE ( + 10, - 45 ) DIV - + 43 THEN NULL ELSE + + 71 DIV + + COUNT( * ) END DIV - + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT + 12 / CASE 55 WHEN 36 * - COALESCE ( + 34, + 51 * 22 ) + + ( - + CASE 23 WHEN - COUNT ( * ) - + 26 THEN - 94 WHEN - ( - CASE + 72 WHEN + COUNT ( * ) THEN 23 + ( + 71 ) + + - 93 WHEN + 58 * + 61 + - + 8 THEN NULL END ) * 76 THEN NULL ELSE NULL END ) THEN NULL WHEN + COALESCE ( + 10, - 45 ) / - + 43 THEN NULL ELSE + + 71 / + + COUNT ( * ) END / - + 34 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL NULLIF ( + - 94, + MIN( DISTINCT - - 17 ) * + 37 + + - 82 * 65 * + COUNT( * ) - - - 31 ) * - 4 + + 75 + - - 8 * 35 AS col2
----
731

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL NULLIF ( + - 94, + MIN ( DISTINCT - - 17 ) * + 37 + + - 82 * 65 * + COUNT ( * ) - - - 31 ) * - 4 + + 75 + - - 8 * 35 AS col2
----
731

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + COUNT( ALL + - 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6151
SELECT + COUNT ( ALL + - 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT CASE + 37 WHEN MIN( 57 ) THEN NULL ELSE + - ( + - NULLIF ( - 73, - 96 / - - 80 * - 33 + - 65 ) ) + + 92 END
----
19

skipif mysql # not compatible
query I rowsort label-6152
SELECT CASE + 37 WHEN MIN ( 57 ) THEN NULL ELSE + - ( + - NULLIF ( - 73, - 96 / - - 80 * - 33 + - 65 ) ) + + 92 END
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-6153
SELECT ALL + 55 AS col1, + 1 DIV 58 * - + 30 + + + 21
----
55
21

skipif mysql # not compatible
query II rowsort label-6153
SELECT ALL + 55 AS col1, + 1 / 58 * - + 30 + + + 21
----
55
21

query I rowsort
SELECT + 58 * - - 35 * + + 83 AS col0
----
168490

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL 70 * + + MAX( DISTINCT 35 ) * + 1 + - 20 + + + COUNT( + 38 ) + - 39 AS col1
----
2392

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 70 * + + MAX ( DISTINCT 35 ) * + 1 + - 20 + + + COUNT ( + 38 ) + - 39 AS col1
----
2392

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT + 76 DIV 2 * + 96 AS col1
----
3648

skipif mysql # not compatible
query I rowsort label-6156
SELECT + 76 / 2 * + 96 AS col1
----
3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL 56 * ( ( - 91 ) ) + + 60 + - - 52 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL 56 * ( ( - 91 ) ) + + 60 + - - 52 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT 99 * COUNT( 26 )
----
99

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT 99 * COUNT ( 26 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT + 69 * 55 * 70 + + - MIN( DISTINCT + + 98 )
----
265552

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT + 69 * 55 * 70 + + - MIN ( DISTINCT + + 98 )
----
265552

query I rowsort
SELECT + 28 * - 49 * + + 40
----
-54880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6161
SELECT ALL + 54, 90 + + + CASE + COUNT( * ) WHEN + 83 THEN - - COUNT( * ) WHEN CASE - 21 WHEN NULLIF ( + + COUNT( + + CASE - 67 WHEN - 99 THEN - CAST( NULL AS SIGNED ) + - 38 WHEN CAST( - ( + 19 ) AS SIGNED ) * - 25 THEN NULL WHEN + 93 - - ( + + 67 ) THEN NULL END ), - 65 + - 96 + COALESCE ( + 90, 34, 46 ) * - 24 / SUM( + 63 ) ) THEN + + SUM( ALL + 44 ) ELSE + + 55 END THEN NULL END / - - 50 * - 96 AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-6161
SELECT ALL + 54, 90 + + + CASE + COUNT ( * ) WHEN + 83 THEN - - COUNT ( * ) WHEN CASE - 21 WHEN NULLIF ( + + COUNT ( + + CASE - 67 WHEN - 99 THEN - CAST ( NULL AS INTEGER ) + - 38 WHEN CAST ( - ( + 19 ) AS INTEGER ) * - 25 THEN NULL WHEN + 93 - - ( + + 67 ) THEN NULL END ), - 65 + - 96 + COALESCE ( + 90, 34, 46 ) * - 24 / SUM ( + 63 ) ) THEN + + SUM ( ALL + 44 ) ELSE + + 55 END THEN NULL END / - - 50 * - 96 AS col0
----
54
NULL

query I rowsort
SELECT DISTINCT + 25 * - 19 + - + 3 + + - 37 AS col1
----
-515

query I rowsort
SELECT - 30 * - 3 + 50 AS col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6164
SELECT DISTINCT - 92 * + 35 * + + 27 + - COUNT( * ) * 26 - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT - 92 * + 35 * + + 27 + - COUNT ( * ) * 26 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6165
SELECT ALL + 59 * - 51 + 47 + COUNT( * ) + 35 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + 59 * - 51 + 47 + COUNT ( * ) + 35 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 85 - + 31
----
54

onlyif mysql # aggregate syntax: 
query III rowsort label-6167
SELECT DISTINCT - ( + + 39 ) * 49 - + 13 * 39 AS col0, COUNT( * ) AS col2, NULLIF ( 11, - COUNT( * ) + - 81 * - 49 ) AS col1
----
-2418
1
11

skipif mysql # not compatible
query III rowsort label-6167
SELECT DISTINCT - ( + + 39 ) * 49 - + 13 * 39 AS col0, COUNT ( * ) AS col2, NULLIF ( 11, - COUNT ( * ) + - 81 * - 49 ) AS col1
----
-2418
1
11

query I rowsort
SELECT - CASE + 25 WHEN - 38 THEN NULL ELSE 16 - 31 END
----
15

query I rowsort
SELECT DISTINCT + 64 * + + 63
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT 53 * COUNT( * ) + + + 7 + + 34 + - - 64 - 75 * - 75
----
5783

skipif mysql # not compatible
query I rowsort label-6170
SELECT 53 * COUNT ( * ) + + + 7 + + 34 + - - 64 - 75 * - 75
----
5783

query I rowsort
SELECT ALL - + 9 * ( + 36 ) + - 63 * + 85 col2
----
-5679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT - 70 * - 54 + + - CASE 23 WHEN 86 THEN - 10 - - 78 + + 10 * - CAST( NULL AS SIGNED ) ELSE NULL END * + + ( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT - 70 * - 54 + + - CASE 23 WHEN 86 THEN - 10 - - 78 + + 10 * - CAST ( NULL AS INTEGER ) ELSE NULL END * + + ( + 35 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT - + 26 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-6173
SELECT - + 26 / - + 89
----
0

query I rowsort
SELECT ALL + - 34 * 95 AS col2
----
-3230

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT DISTINCT + 4 DIV 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + 4 / 43 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6176
SELECT DISTINCT 30 * CAST( NULL AS DECIMAL ) / - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT 30 * CAST ( NULL AS REAL ) / - 69
----
NULL

query II rowsort
SELECT ALL 61 col0, 37 AS col1
----
61
37

query II rowsort
SELECT ALL ( - 40 ) AS col0, 21
----
-40
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT - COALESCE ( 26, 98 DIV - - 36 + - 60 + - COUNT( * ), - + 4 ) - + 27 col1
----
-53

skipif mysql # not compatible
query I rowsort label-6179
SELECT - COALESCE ( 26, 98 / - - 36 + - 60 + - COUNT ( * ), - + 4 ) - + 27 col1
----
-53

query I rowsort
SELECT - 65 * - - 27 AS col1
----
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6181
SELECT - 83 - - 24 + 40 + + + ( + 15 ) + - 14 + + + 23 + - COUNT( * ) * CASE + COUNT( * ) WHEN - ( + 19 ) THEN NULL WHEN + ( + 34 ) * - AVG ( ALL + 34 ) / - - COALESCE ( + 9, + + ( + CAST( NULL AS SIGNED ) ), - 31 * + 75 + COUNT( * ) + 22 + - 18 ) * 30 * - 32 - - + COUNT( * ) + - + ( + - ( - 76 ) ) * - COUNT( * ) + 16 * - - 67 THEN - 32 END * + ( - 72 ) * COUNT( + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT - 83 - - 24 + 40 + + + ( + 15 ) + - 14 + + + 23 + - COUNT ( * ) * CASE + COUNT ( * ) WHEN - ( + 19 ) THEN NULL WHEN + ( + 34 ) * - AVG ( ALL + 34 ) / - - COALESCE ( + 9, + + ( + CAST ( NULL AS INTEGER ) ), - 31 * + 75 + COUNT ( * ) + 22 + - 18 ) * 30 * - 32 - - + COUNT ( * ) + - + ( + - ( - 76 ) ) * - COUNT ( * ) + 16 * - - 67 THEN - 32 END * + ( - 72 ) * COUNT ( + 43 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6182
SELECT ALL + MIN( CASE + + 73 WHEN 40 * - 83 THEN 47 ELSE NULL END ) + + - CAST( + - 95 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL + MIN ( CASE + + 73 WHEN 40 * - 83 THEN 47 ELSE NULL END ) + + - CAST ( + - 95 AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - ( 99 ) - 90 col2
----
-189

query I rowsort
SELECT - 35 * + - 87 col2
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - 29 - - - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-6185
SELECT - 29 - - - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6186
SELECT ALL + CAST( + NULLIF ( 53, + 36 * - - 45 + COUNT( * ) * - COUNT( * ) * - 57 ) AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + CAST ( + NULLIF ( 53, + 36 * - - 45 + COUNT ( * ) * - COUNT ( * ) * - 57 ) AS INTEGER ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT DISTINCT + 98 DIV ( + 28 ) + + - 41 + 2 DIV + 74 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT + 98 / ( + 28 ) + + - 41 + 2 / + 74 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL COUNT( * ) * - - 8
----
8

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL COUNT ( * ) * - - 8
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6189
SELECT DISTINCT COUNT( * ) DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT COUNT ( * ) / - 89 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6190
SELECT - 69 + + 52 + + 70 * + ( - MAX( DISTINCT + 3 ) ) * + 70 + COALESCE ( - 27, + 41 * - + 23 + - CAST( NULL AS SIGNED ) ) DIV + 82 * - 44 * + COUNT( * ) AS col2
----
-14717

skipif mysql # not compatible
query I rowsort label-6190
SELECT - 69 + + 52 + + 70 * + ( - MAX ( DISTINCT + 3 ) ) * + 70 + COALESCE ( - 27, + 41 * - + 23 + - CAST ( NULL AS INTEGER ) ) / + 82 * - 44 * + COUNT ( * ) AS col2
----
-14717

query I rowsort
SELECT + 75 * + - 9
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL CASE - 53 WHEN - 21 THEN NULL WHEN 63 THEN + 23 END * - COUNT( - - 20 ) * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL CASE - 53 WHEN - 21 THEN NULL WHEN 63 THEN + 23 END * - COUNT ( - - 20 ) * + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + NULLIF ( - + COUNT( * ), + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT + NULLIF ( - + COUNT ( * ), + - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - ( + - 92 ), - 41 * + 89 / + CASE - 18 WHEN + NULLIF ( - - 39, - - 11 ) THEN - 20 END * + NULLIF ( - 86, + 32 + - 38 ) * - 62 * + 64 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT ALL 61 * + 88 + + 16 DIV + 85 AS col1
----
5368

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL 61 * + 88 + + 16 / + 85 AS col1
----
5368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6196
SELECT ALL - ( + ( + ( 55 ) ) ) * CAST( NULL AS SIGNED ) - + + COUNT( * ), + 77 * - 12 col1
----
NULL
-924

skipif mysql # not compatible
query II rowsort label-6196
SELECT ALL - ( + ( + ( 55 ) ) ) * CAST ( NULL AS INTEGER ) - + + COUNT ( * ), + 77 * - 12 col1
----
NULL
-924

query I rowsort
SELECT + 5 * + + 81 AS col1
----
405

query I rowsort
SELECT ALL 75 * + - 10 col1
----
-750

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT ALL + - 44, + COUNT( * ) + 67 AS col2
----
-44
68

skipif mysql # not compatible
query II rowsort label-6199
SELECT ALL + - 44, + COUNT ( * ) + 67 AS col2
----
-44
68

query II rowsort
SELECT - 44 AS col1, 34 + - - 31
----
-44
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT + - 96 * + - 68 * - - COALESCE ( - ( - CAST( NULL AS SIGNED ) ), - - 3 * + 58 * + 45 ) AS col1
----
51114240

skipif mysql # not compatible
query I rowsort label-6201
SELECT + - 96 * + - 68 * - - COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - - 3 * + 58 * + 45 ) AS col1
----
51114240

query I rowsort
SELECT + 94 + + 59
----
153

query I rowsort
SELECT - 8 * + 42 - + 90 * - 2 AS col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - - 82 * - 83 + + COUNT( * ) AS col0
----
-6805

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - - 82 * - 83 + + COUNT ( * ) AS col0
----
-6805

query II rowsort
SELECT - 18 AS col0, 53
----
-18
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT ALL 29, 15 + + - CAST( - 4 AS SIGNED ) + + + 74 AS col1
----
29
93

skipif mysql # not compatible
query II rowsort label-6206
SELECT ALL 29, 15 + + - CAST ( - 4 AS INTEGER ) + + + 74 AS col1
----
29
93

query I rowsort
SELECT 13 - - 15 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT ALL ( COUNT( * ) ) * 14 * + 59 AS col0, - 78
----
826
-78

skipif mysql # not compatible
query II rowsort label-6208
SELECT ALL ( COUNT ( * ) ) * 14 * + 59 AS col0, - 78
----
826
-78

query I rowsort
SELECT - 44 + - NULLIF ( - 49, + 85 * - + 93 ) - + 25 + + 23 * + + 88 col2
----
2004

query I rowsort
SELECT ALL - 59 * - + 47 col1
----
2773

query II rowsort
SELECT - - 62 AS col1, + 79
----
62
79

query I rowsort
SELECT + 57 + - 45
----
12

query I rowsort
SELECT ALL + 84 + 30 AS col0
----
114

query I rowsort
SELECT ( + 56 ) + 92
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT 13 DIV - - 95 * + 78
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT 13 / - - 95 * + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT CASE + 15 WHEN + - 9 + ( 28 ) + - COUNT( * ) * - ( + - 23 ) * - 8 * + ( + + 95 ) THEN 77 WHEN 60 THEN NULL END + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT CASE + 15 WHEN + - 9 + ( 28 ) + - COUNT ( * ) * - ( + - 23 ) * - 8 * + ( + + 95 ) THEN 77 WHEN 60 THEN NULL END + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT 20 - - COUNT( * ) + - 23 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6217
SELECT 20 - - COUNT ( * ) + - 23 AS col0
----
-2

query I rowsort
SELECT 29 - 49 * 42
----
-2029

onlyif mysql # aggregate syntax: 
query II rowsort label-6219
SELECT 3 + - - ( + COUNT( * ) ) AS col0, - 6
----
4
-6

skipif mysql # not compatible
query II rowsort label-6219
SELECT 3 + - - ( + COUNT ( * ) ) AS col0, - 6
----
4
-6

query I rowsort
SELECT 10 * - 86 AS col0
----
-860

query I rowsort
SELECT 19 + ( + 58 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT 29 + ( COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-6222
SELECT 29 + ( COUNT ( * ) )
----
30

query I rowsort
SELECT ALL + 57 + - 42 * + + 49
----
-2001

query II rowsort
SELECT ALL - ( + 25 ) - 15 AS col0, 74 AS col0
----
-40
74

query II rowsort
SELECT DISTINCT - ( + - 12 ) AS col1, 84 + - + 21
----
12
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL - CAST( - 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - CAST ( - 58 AS INTEGER ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL - SUM( + + 97 ) * COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - SUM ( + + 97 ) * COUNT ( * ) AS col0
----
-97

query II rowsort
SELECT DISTINCT - COALESCE ( 92, + 44 + 7 * + - 52 ) AS col1, 26
----
-92
26

query I rowsort
SELECT - 89 * + - 72
----
6408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6230
SELECT ALL + 75 DIV 91 * - + 95 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + 75 / 91 * - + 95 * - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT + 38 * - - 22 * - ( 50 ) * 38 + 44 + - MIN( 79 ) + 60 * 23 * + 45 + NULLIF ( - - 80, + - 68 * - CAST( - + 49 AS SIGNED ) - - 25 + 59 - 75 * - 87 ) AS col2
----
-1526255

skipif mysql # not compatible
query I rowsort label-6231
SELECT + 38 * - - 22 * - ( 50 ) * 38 + 44 + - MIN ( 79 ) + 60 * 23 * + 45 + NULLIF ( - - 80, + - 68 * - CAST ( - + 49 AS INTEGER ) - - 25 + 59 - 75 * - 87 ) AS col2
----
-1526255

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + COUNT( + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-6232
SELECT + COUNT ( + + 95 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6233
SELECT + CAST( + 8 AS SIGNED ) DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT + CAST ( + 8 AS INTEGER ) / 65 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + 25 * + NULLIF ( + 83, + 56 + - + 43 + + - 15 + - 53 + ( + 14 ) + - CASE - ( + 62 ) WHEN - 84 * + + COUNT( * ) THEN - + 35 ELSE NULL END + 78 - + 49 + - - 62 )
----
2075

skipif mysql # not compatible
query I rowsort label-6234
SELECT + 25 * + NULLIF ( + 83, + 56 + - + 43 + + - 15 + - 53 + ( + 14 ) + - CASE - ( + 62 ) WHEN - 84 * + + COUNT ( * ) THEN - + 35 ELSE NULL END + 78 - + 49 + - - 62 )
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL + ( 10 ) * - + 0 + - + 91 + 80 - + MIN( DISTINCT + 29 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + ( 10 ) * - + 0 + - + 91 + 80 - + MIN ( DISTINCT + 29 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT + + CASE ( + - 33 ) WHEN - COALESCE ( - 13, MAX( 11 ), - COUNT( * ) - CAST( NULL AS SIGNED ), + 92 ) + - 0 * - 64 * + COUNT( * ) * - 5 - 19 THEN NULL WHEN - 46 THEN + 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT + + CASE ( + - 33 ) WHEN - COALESCE ( - 13, MAX ( 11 ), - COUNT ( * ) - CAST ( NULL AS INTEGER ), + 92 ) + - 0 * - 64 * + COUNT ( * ) * - 5 - 19 THEN NULL WHEN - 46 THEN + 87 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + ( + 68 ) - + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6237
SELECT + ( + 68 ) - + COUNT ( * )
----
67

query I rowsort
SELECT - 92 * + - 39 col0
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT + + 25 * 14 + + COUNT( * ) + + 1 AS col0
----
352

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + + 25 * 14 + + COUNT ( * ) + + 1 AS col0
----
352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT ALL - - CAST( 88 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - - CAST ( 88 AS INTEGER ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT DISTINCT + 21 + + MIN( DISTINCT + 66 ) AS col1, - 52 * + 7
----
87
-364

skipif mysql # not compatible
query II rowsort label-6241
SELECT DISTINCT + 21 + + MIN ( DISTINCT + 66 ) AS col1, - 52 * + 7
----
87
-364

query I rowsort
SELECT ALL - CASE + 67 WHEN 81 + + 12 THEN - 33 END + + 54 col2
----
NULL

query I rowsort
SELECT ALL + ( + - 33 ) + 15 col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT + ( + - COUNT( * ) ) col0, + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-6244
SELECT + ( + - COUNT ( * ) ) col0, + COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT ALL - 55 + + + 9 - 58
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL NULLIF ( + 46, - 5 ) + - NULLIF ( + 95, + + 95 + + SUM( DISTINCT + + 58 ) - NULLIF ( COUNT( * ), + 38 ) ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL NULLIF ( + 46, - 5 ) + - NULLIF ( + 95, + + 95 + + SUM ( DISTINCT + + 58 ) - NULLIF ( COUNT ( * ), + 38 ) ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT - MAX( + - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-6247
SELECT - MAX ( + - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT 29 + 52 + - 15 + - + ( + COUNT( * ) ) * + NULLIF ( + COALESCE ( - 31, 80 ), + 65 ) + - + 56 - - + 82
----
123

skipif mysql # not compatible
query I rowsort label-6248
SELECT 29 + 52 + - 15 + - + ( + COUNT ( * ) ) * + NULLIF ( + COALESCE ( - 31, 80 ), + 65 ) + - + 56 - - + 82
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT ALL 47 + - 55 + - ( - 38 ) AS col0, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-6249
SELECT ALL 47 + - 55 + - ( - 38 ) AS col0, COUNT ( * )
----
30
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6250
SELECT - COUNT( * ), + 79 * + 16 AS col0
----
-1
1264

skipif mysql # not compatible
query II rowsort label-6250
SELECT - COUNT ( * ), + 79 * + 16 AS col0
----
-1
1264

query I rowsort
SELECT DISTINCT 76 + - - 27 AS col2
----
103

query I rowsort
SELECT DISTINCT CASE + 76 WHEN + 74 * - 27 THEN NULL ELSE + + 61 END + - 69 + + - 2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6253
SELECT DISTINCT + NULLIF ( + CASE 45 WHEN - 19 THEN - 75 WHEN - 35 - 43 THEN - + 12 * + CASE 49 WHEN - 57 / + + 67 * + COUNT( * ) / + + 42 THEN 85 END ELSE + + 95 / + 11 + + - 1 + MAX( DISTINCT + 45 ) + + 70 END, - + 28 / 58 * - 2 - 27 - + - AVG ( DISTINCT 5 ) + - ( - - 27 ) + + COUNT( * ) * - - 28 / - 30 ) - - CAST( NULL AS SIGNED ) AS col2, 27 * 93 AS col0
----
NULL
2511

skipif mysql # not compatible
query II rowsort label-6253
SELECT DISTINCT + NULLIF ( + CASE 45 WHEN - 19 THEN - 75 WHEN - 35 - 43 THEN - + 12 * + CASE 49 WHEN - 57 / + + 67 * + COUNT ( * ) / + + 42 THEN 85 END ELSE + + 95 / + 11 + + - 1 + MAX ( DISTINCT + 45 ) + + 70 END, - + 28 / 58 * - 2 - 27 - + - AVG ( DISTINCT 5 ) + - ( - - 27 ) + + COUNT ( * ) * - - 28 / - 30 ) - - CAST ( NULL AS INTEGER ) AS col2, 27 * 93 AS col0
----
NULL
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL CASE - 31 WHEN 30 + 16 * ( 50 ) - + + 99 THEN - 99 ELSE + COUNT( * ) END * + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL CASE - 31 WHEN 30 + 16 * ( 50 ) - + + 99 THEN - 99 ELSE + COUNT ( * ) END * + 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6255
SELECT 68 AS col1, NULLIF ( COUNT( - 79 ), 44 ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-6255
SELECT 68 AS col1, NULLIF ( COUNT ( - 79 ), 44 ) AS col1
----
68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT COUNT( * ) - - 3 * + + 18 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6256
SELECT COUNT ( * ) - - 3 * + + 18 AS col0
----
55

query II rowsort
SELECT 17, + 64 * + - ( + - 91 ) * - 66 * - 11 AS col2
----
17
4228224

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT 64 DIV + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT 64 / + - 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - SUM( DISTINCT - 76 ) col2
----
76

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - SUM ( DISTINCT - 76 ) col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT ALL 49 * + + 74 - + 32 col0, 72 * COUNT( * ) * - 17 + 66 AS col2
----
3594
-1158

skipif mysql # not compatible
query II rowsort label-6260
SELECT ALL 49 * + + 74 - + 32 col0, 72 * COUNT ( * ) * - 17 + 66 AS col2
----
3594
-1158

query I rowsort
SELECT 47 * + 94
----
4418

query II rowsort
SELECT DISTINCT - 86 AS col0, - 32 * - 44 AS col0
----
-86
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT + COUNT( * ) * + - 16 - NULLIF ( + + 49, - + 96 + + CAST( - MAX( DISTINCT - + 99 ) AS SIGNED ) ) + - + NULLIF ( ( + + 2 ), 0 * 75 )
----
-67

skipif mysql # not compatible
query I rowsort label-6263
SELECT + COUNT ( * ) * + - 16 - NULLIF ( + + 49, - + 96 + + CAST ( - MAX ( DISTINCT - + 99 ) AS INTEGER ) ) + - + NULLIF ( ( + + 2 ), 0 * 75 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT ALL - + CASE - COUNT( * ) WHEN - + 84 / + + 55 * SUM( DISTINCT + 49 ) * + - 67 THEN - 93 WHEN - - 28 THEN NULL END, 17 * + COUNT( * ) AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL - + CASE - COUNT ( * ) WHEN - + 84 / + + 55 * SUM ( DISTINCT + 49 ) * + - 67 THEN - 93 WHEN - - 28 THEN NULL END, 17 * + COUNT ( * ) AS col2
----
NULL
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6265
SELECT ALL + + CAST( NULL AS SIGNED ) * COUNT( + + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + + CAST ( NULL AS INTEGER ) * COUNT ( + + 17 )
----
NULL

query I rowsort
SELECT + + 60 * 74 + + 35 + + 99
----
4574

query I rowsort
SELECT - 63 * - 97 AS col0
----
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT COUNT( * ) * - 43 + + 1 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6268
SELECT COUNT ( * ) * - 43 + + 1 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT - NULLIF ( + 31, + - 59 + 63 * - 57 ) - - ( - + COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6269
SELECT - NULLIF ( + 31, + - 59 + 63 * - 57 ) - - ( - + COUNT ( * ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT DISTINCT + - 73 * + CASE + - NULLIF ( + COUNT( 41 ), 83 * - 81 + COUNT( * ) * COALESCE ( + CAST( NULL AS SIGNED ), - AVG ( ALL - 37 ) ) + 93 ) WHEN 90 * + COUNT( * ) - + COUNT( * ) + - + 48 THEN NULL WHEN COALESCE ( - 35, + ( - MAX( 22 ) ) + 39 + - 78 - - + 46 + + CASE - 63 WHEN - 63 THEN + - 56 ELSE NULL END + 79 * + - 59 * + - 47 / - - 4, - 81 ) THEN - + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT + - 73 * + CASE + - NULLIF ( + COUNT ( 41 ), 83 * - 81 + COUNT ( * ) * COALESCE ( + CAST ( NULL AS INTEGER ), - AVG ( ALL - 37 ) ) + 93 ) WHEN 90 * + COUNT ( * ) - + COUNT ( * ) + - + 48 THEN NULL WHEN COALESCE ( - 35, + ( - MAX ( 22 ) ) + 39 + - 78 - - + 46 + + CASE - 63 WHEN - 63 THEN + - 56 ELSE NULL END + 79 * + - 59 * + - 47 / - - 4, - 81 ) THEN - + 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL COUNT( * ) * - ( - 87 ) + + - 77
----
10

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL COUNT ( * ) * - ( - 87 ) + + - 77
----
10

query II rowsort
SELECT DISTINCT + 91, NULLIF ( + + NULLIF ( 29, + 57 ), - - 56 ) AS col1
----
91
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL 15 * + + NULLIF ( - - 90, + 82 - - COUNT( * ) ) + + 69
----
1419

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL 15 * + + NULLIF ( - - 90, + 82 - - COUNT ( * ) ) + + 69
----
1419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6274
SELECT ALL - 52 * - 58 * - COALESCE ( 10, + 1 * - MIN( - + CAST( + 2 AS SIGNED ) ) + + + 56, + MAX( 5 ) ) + 38 + + 5
----
-30117

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL - 52 * - 58 * - COALESCE ( 10, + 1 * - MIN ( - + CAST ( + 2 AS INTEGER ) ) + + + 56, + MAX ( 5 ) ) + 38 + + 5
----
-30117

query II rowsort
SELECT - 14 AS col0, 6 + - + ( - 32 ) + - 40 * - 40 + 68 AS col2
----
-14
1706

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT - COUNT( * ) + + 42 - - - 94
----
-53

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - COUNT ( * ) + + 42 - - - 94
----
-53

query II rowsort
SELECT ALL - 67 + + + ( 32 ), 52 AS col0
----
-35
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT ( - - 44 ) * + 81 + - CAST( + 20 AS SIGNED ) * 63
----
2304

skipif mysql # not compatible
query I rowsort label-6278
SELECT ( - - 44 ) * + 81 + - CAST ( + 20 AS INTEGER ) * 63
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT + + MAX( 87 ) * + - 96 + - + 61 AS col1
----
-8413

skipif mysql # not compatible
query I rowsort label-6279
SELECT + + MAX ( 87 ) * + - 96 + - + 61 AS col1
----
-8413

query I rowsort
SELECT DISTINCT - 76 + - 51
----
-127

query I rowsort
SELECT ALL 36 * 30 * 25 * + + 72 AS col1
----
1944000

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT - 36 + 64 * + + 39 * COUNT( DISTINCT + - 76 ) AS col0
----
2460

skipif mysql # not compatible
query I rowsort label-6282
SELECT - 36 + 64 * + + 39 * COUNT ( DISTINCT + - 76 ) AS col0
----
2460

query I rowsort
SELECT ALL + 29 + - 25 col0
----
4

query I rowsort
SELECT DISTINCT - 57 * 16 col0
----
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6285
SELECT DISTINCT 59 - + + 95 - - 20 DIV 14 * + - COUNT( ALL - 99 )
----
-37

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT 59 - + + 95 - - 20 / 14 * + - COUNT ( ALL - 99 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6286
SELECT - 76 * SUM( + 37 ) DIV + - 44
----
63

skipif mysql # not compatible
query I rowsort label-6286
SELECT - 76 * SUM ( + 37 ) / + - 44
----
63

query I rowsort
SELECT + 82 + - 66 AS col2
----
16

query I rowsort
SELECT - 94 + 65 col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT - CASE + SUM( - - 42 ) WHEN + - 99 / + 42 + + 47 THEN COUNT( 78 ) * + - CAST( + ( - 6 ) AS SIGNED ) * ( 51 ) - + CAST( NULL AS SIGNED ) + - + CAST( + 91 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT - CASE + SUM ( - - 42 ) WHEN + - 99 / + 42 + + 47 THEN COUNT ( 78 ) * + - CAST ( + ( - 6 ) AS INTEGER ) * ( 51 ) - + CAST ( NULL AS INTEGER ) + - + CAST ( + 91 AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT + 70 + + COALESCE ( - 7, - + AVG ( + 78 ) DIV + 93 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-6290
SELECT + 70 + + COALESCE ( - 7, - + AVG ( + 78 ) / + 93 ) col2
----
63

query I rowsort
SELECT + 46 + 35 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT + 52 - + CASE - + 93 WHEN 56 * - 84 + + + 73 * COUNT( * ) THEN + 74 * ( - 19 ) + - 55 * ( CASE 99 WHEN + 29 THEN NULL WHEN 44 THEN - 57 + - 84 ELSE - 40 END ) + + NULLIF ( - 72, + 41 ) + + 44 / - COUNT( * ) * - 52 WHEN 75 * + + CASE 97 WHEN - + 80 THEN 80 ELSE NULL END * - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT + 52 - + CASE - + 93 WHEN 56 * - 84 + + + 73 * COUNT ( * ) THEN + 74 * ( - 19 ) + - 55 * ( CASE 99 WHEN + 29 THEN NULL WHEN 44 THEN - 57 + - 84 ELSE - 40 END ) + + NULLIF ( - 72, + 41 ) + + 44 / - COUNT ( * ) * - 52 WHEN 75 * + + CASE 97 WHEN - + 80 THEN 80 ELSE NULL END * - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL 16 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL 16 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( 90, - 33 ) AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT DISTINCT CAST( - 80 AS SIGNED ) * - + 73 + - 70 AS col1
----
5770

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT CAST ( - 80 AS INTEGER ) * - + 73 + - 70 AS col1
----
5770

query I rowsort
SELECT + 92 + 48 + 86 + + 59 AS col1
----
285

query I rowsort
SELECT ALL 98 * + ( + 37 ) col2
----
3626

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT + 4 * - - COUNT( * ), 92 AS col1
----
4
92

skipif mysql # not compatible
query II rowsort label-6298
SELECT + 4 * - - COUNT ( * ), 92 AS col1
----
4
92

query I rowsort
SELECT + 10 * - - 31 * - 9
----
-2790

query I rowsort
SELECT DISTINCT 15 * 42 AS col2
----
630

query I rowsort
SELECT + COALESCE ( 28, - 58 * + 54 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6302
SELECT ALL 0 DIV + 35 * - + 92 - - - ( - 40 ) + - 26 DIV - 33 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL 0 / + 35 * - + 92 - - - ( - 40 ) + - 26 / - 33 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6303
SELECT + + AVG ( DISTINCT + 84 ) * CASE + MIN( DISTINCT + 32 ) WHEN - 25 * - ( - - 7 ) + + COUNT( * ) + CAST( + 91 AS DECIMAL ) THEN NULL WHEN - 87 THEN CAST( - COUNT( * ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT + + AVG ( DISTINCT + 84 ) * CASE + MIN ( DISTINCT + 32 ) WHEN - 25 * - ( - - 7 ) + + COUNT ( * ) + CAST ( + 91 AS REAL ) THEN NULL WHEN - 87 THEN CAST ( - COUNT ( * ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL - 6 * - COUNT( * ) * 75 * 31 + + 73
----
14023

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - 6 * - COUNT ( * ) * 75 * 31 + + 73
----
14023

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6305
SELECT ALL + 70 * - 19 * 91 + - NULLIF ( ( + - 25 ), + - 1 * + ( - - 43 ) * + CAST( NULL AS SIGNED ) * + 15 ) + 72 DIV - 14
----
-121010

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + 70 * - 19 * 91 + - NULLIF ( ( + - 25 ), + - 1 * + ( - - 43 ) * + CAST ( NULL AS INTEGER ) * + 15 ) + 72 / - 14
----
-121010

query I rowsort
SELECT - ( - + 74 ) * + 78
----
5772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6307
SELECT ALL 71 DIV - + COUNT( 7 )
----
-71

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 71 / - + COUNT ( 7 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT 77 DIV - + 50 + - 69 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6308
SELECT 77 / - + 50 + - 69 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6309
SELECT ALL + ( 61 ) * - CAST( COUNT( CAST( NULL AS SIGNED ) ) AS SIGNED ) + - - SUM( - 52 ), ( CAST( NULL AS SIGNED ) ) * + 70 AS col1
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL + ( 61 ) * - CAST ( COUNT ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - SUM ( - 52 ), ( CAST ( NULL AS INTEGER ) ) * + 70 AS col1
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + + 91 * - - COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6310
SELECT + + 91 * - - COUNT ( * ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT - + 11 + + - 99 * - NULLIF ( + - 33, + 86 ) * NULLIF ( 32, + 53 ) * - 9 - + 34 + - NULLIF ( ( - - CAST( 37 AS SIGNED ) ), + 61 ) + - 84 * 78
----
934262

skipif mysql # not compatible
query I rowsort label-6311
SELECT - + 11 + + - 99 * - NULLIF ( + - 33, + 86 ) * NULLIF ( 32, + 53 ) * - 9 - + 34 + - NULLIF ( ( - - CAST ( 37 AS INTEGER ) ), + 61 ) + - 84 * 78
----
934262

query I rowsort
SELECT ALL - NULLIF ( - 54, 57 ) * + 32 AS col0
----
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6313
SELECT ALL + COUNT( * ) * + COALESCE ( - CAST( NULL AS SIGNED ), 89 - 49 + + + 67 * SUM( + + 31 ) + + 55, + 95 * CAST( NULL AS SIGNED ) + 15 ) - 69 - + 41 AS col0
----
2062

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + COUNT ( * ) * + COALESCE ( - CAST ( NULL AS INTEGER ), 89 - 49 + + + 67 * SUM ( + + 31 ) + + 55, + 95 * CAST ( NULL AS INTEGER ) + 15 ) - 69 - + 41 AS col0
----
2062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6314
SELECT ALL CAST( - + 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL CAST ( - + 30 AS INTEGER )
----
-30

query I rowsort
SELECT - 30 + - - 85 AS col0
----
55

query I rowsort
SELECT - 6 + 10
----
4

query I rowsort
SELECT - 65 - 51 * 8 + + 22 col0
----
-451

query I rowsort
SELECT - 53 * 69 AS col1
----
-3657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6319
SELECT ALL - COALESCE ( + 39, + 31 * 17 DIV 66 * + + COUNT( * ) + NULLIF ( - - CASE 15 WHEN + CASE CAST( + 53 AS SIGNED ) WHEN + 50 THEN + 29 + + 56 WHEN - 91 + 52 - + ( + 74 ) THEN NULL ELSE NULL END THEN NULL WHEN + 7 THEN 21 ELSE NULL END, 38 ) DIV AVG ( DISTINCT - + 60 ) + - 28 * 28, + 91 ) DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - COALESCE ( + 39, + 31 * 17 / 66 * + + COUNT ( * ) + NULLIF ( - - CASE 15 WHEN + CASE CAST ( + 53 AS INTEGER ) WHEN + 50 THEN + 29 + + 56 WHEN - 91 + 52 - + ( + 74 ) THEN NULL ELSE NULL END THEN NULL WHEN + 7 THEN 21 ELSE NULL END, 38 ) / AVG ( DISTINCT - + 60 ) + - 28 * 28, + 91 ) / + 28
----
-1

query II rowsort
SELECT + 76 + - - 36 * 87, 9 * - - 77 AS col1
----
3208
693

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6321
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT - CAST ( NULL AS REAL ) * 23 AS col2
----
NULL

query I rowsort
SELECT ALL 17 * 81 * 74
----
101898

query I rowsort
SELECT - 22 * + 81
----
-1782

query I rowsort
SELECT ALL - 35 * + 41
----
-1435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT DISTINCT CAST( + - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT CAST ( + - 14 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT ALL - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT + MAX( - - 85 ) * + + 18 + - 74 AS col1
----
1456

skipif mysql # not compatible
query I rowsort label-6327
SELECT + MAX ( - - 85 ) * + + 18 + - 74 AS col1
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT COUNT( * ) * - 20
----
-20

skipif mysql # not compatible
query I rowsort label-6328
SELECT COUNT ( * ) * - 20
----
-20

query I rowsort
SELECT 44 - + + 88
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT MIN( + - ( - - 38 ) ) DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6330
SELECT MIN ( + - ( - - 38 ) ) / 93 AS col0
----
0

query I rowsort
SELECT 53 - - + 40 AS col1
----
93

query I rowsort
SELECT DISTINCT - 25 + - 17
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT 98 + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT 98 + - COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT ALL NULLIF ( - 28, - 77 / - - 93 ) + - - CAST( ( 6 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL NULLIF ( - 28, - 77 / - - 93 ) + - - CAST ( ( 6 ) AS INTEGER )
----
-22

query I rowsort
SELECT ALL 41 * + 25
----
1025

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT DISTINCT 59 * - - COUNT( * ) + 80 AS col0, + 81
----
139
81

skipif mysql # not compatible
query II rowsort label-6336
SELECT DISTINCT 59 * - - COUNT ( * ) + 80 AS col0, + 81
----
139
81

query I rowsort
SELECT ALL 68 + + ( - + 76 ) * 28 + + + 51 * - 49
----
-4559

query I rowsort
SELECT 82 * + 86
----
7052

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL + ( ( 25 ) ) + COALESCE ( - 51, 88 * + 81 * + MIN( + + 20 ), - COUNT( * ) ) + - 78 * - 17 + + 11 + + - 87 AS col0
----
1224

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + ( ( 25 ) ) + COALESCE ( - 51, 88 * + 81 * + MIN ( + + 20 ), - COUNT ( * ) ) + - 78 * - 17 + + 11 + + - 87 AS col0
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT + MAX( + 58 ) * + 33 - 95 + + - 58 * + 38
----
-385

skipif mysql # not compatible
query I rowsort label-6340
SELECT + MAX ( + 58 ) * + 33 - 95 + + - 58 * + 38
----
-385

query II rowsort
SELECT 77 AS col1, + 47 + - 21 AS col1
----
77
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT ALL - + 55 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL - + 55 / 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT + 33 col1, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-6343
SELECT + 33 col1, COUNT ( * )
----
33
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT - NULLIF ( - 42, - - 84 ) DIV + - ( + 5 ) - - - 35 + + + COALESCE ( 58, 62, - 33 ) + - 2
----
13

skipif mysql # not compatible
query I rowsort label-6344
SELECT - NULLIF ( - 42, - - 84 ) / + - ( + 5 ) - - - 35 + + + COALESCE ( 58, 62, - 33 ) + - 2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT ALL 71 DIV 31 + + NULLIF ( + 19, - - 17 + - - 98 ) * - + 39 AS col1
----
-739

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL 71 / 31 + + NULLIF ( + 19, - - 17 + - - 98 ) * - + 39 AS col1
----
-739

query II rowsort
SELECT DISTINCT - 61 AS col2, + 25 AS col2
----
-61
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT 11 * 11 + + + 1 DIV + 43 * + COUNT( - - 17 )
----
121

skipif mysql # not compatible
query I rowsort label-6347
SELECT 11 * 11 + + + 1 / + 43 * + COUNT ( - - 17 )
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-6348
SELECT + 11, SUM( ( + 39 ) ) AS col0
----
11
39

skipif mysql # not compatible
query II rowsort label-6348
SELECT + 11, SUM ( ( + 39 ) ) AS col0
----
11
39

query I rowsort
SELECT 30 * + 45 + + 94 col2
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT 48 * - + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6350
SELECT 48 * - + COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT ( + 95 ) + 38 AS col1
----
133

query II rowsort
SELECT DISTINCT 70 col0, - 85 AS col1
----
70
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT ALL - COUNT( * ) * - + CAST( - 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL - COUNT ( * ) * - + CAST ( - 21 AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT 28 + - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6354
SELECT 28 + - COUNT ( * ) AS col0
----
27

query II rowsort
SELECT ALL 24 AS col0, - 19 * 83 + 80
----
24
-1497

query I rowsort
SELECT 38 + 59
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6357
SELECT DISTINCT 81 AS col1, + CAST( + - CASE + ( + 23 ) WHEN + 97 THEN - + 47 WHEN + 99 THEN NULL ELSE - + 1 * - 85 + 24 + - 97 * - 34 * + 0 END AS SIGNED ) + + - 28 AS col2
----
81
-137

skipif mysql # not compatible
query II rowsort label-6357
SELECT DISTINCT 81 AS col1, + CAST ( + - CASE + ( + 23 ) WHEN + 97 THEN - + 47 WHEN + 99 THEN NULL ELSE - + 1 * - 85 + 24 + - 97 * - 34 * + 0 END AS INTEGER ) + + - 28 AS col2
----
81
-137

query I rowsort
SELECT 54 + + 77 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT - COUNT( * ) + - - 53 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - COUNT ( * ) + - - 53 + - COUNT ( * )
----
51

query II rowsort
SELECT 97 AS col0, 97
----
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT 37 * + - COUNT( * ), 29 * - 73 * + - 45 AS col1
----
-37
95265

skipif mysql # not compatible
query II rowsort label-6361
SELECT 37 * + - COUNT ( * ), 29 * - 73 * + - 45 AS col1
----
-37
95265

query I rowsort
SELECT 73 + + - NULLIF ( - 85, - - 49 + - 31 + 43 ) + 64 * - 75
----
-4642

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6363
SELECT 41, - CAST( NULL AS SIGNED ) col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-6363
SELECT 41, - CAST ( NULL AS INTEGER ) col2
----
41
NULL

query I rowsort
SELECT 53 + + - 43
----
10

query I rowsort
SELECT ALL + 77 + ( + - 49 ) + - + NULLIF ( + 41, 28 + + - 73 * NULLIF ( + + 53, + - 97 ) )
----
-13

query I rowsort
SELECT 63 + - - 96
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT ALL + COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - MAX( + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6368
SELECT - MAX ( + 19 ) AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6369
SELECT ALL 9 AS col0, CAST( - 34 AS SIGNED )
----
9
-34

skipif mysql # not compatible
query II rowsort label-6369
SELECT ALL 9 AS col0, CAST ( - 34 AS INTEGER )
----
9
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT 71 + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6370
SELECT 71 + COUNT ( * ) AS col2
----
72

query II rowsort
SELECT ALL 70 AS col0, 89 col0
----
70
89

query II rowsort
SELECT DISTINCT + - 91 + + - 50 col0, + 57 AS col0
----
-141
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6373
SELECT ALL COUNT( * ) * - 33 - - CAST( + CASE - ( + + 89 ) WHEN + + 48 * - + 79 * + + 75 THEN NULL WHEN COUNT( * ) + - + 19 * + ( 6 ) - - + 26 THEN NULL ELSE - - 13 END AS SIGNED ) + - - 53 AS col0, COUNT( * ) - 65 AS col2
----
33
-64

skipif mysql # not compatible
query II rowsort label-6373
SELECT ALL COUNT ( * ) * - 33 - - CAST ( + CASE - ( + + 89 ) WHEN + + 48 * - + 79 * + + 75 THEN NULL WHEN COUNT ( * ) + - + 19 * + ( 6 ) - - + 26 THEN NULL ELSE - - 13 END AS INTEGER ) + - - 53 AS col0, COUNT ( * ) - 65 AS col2
----
33
-64

query I rowsort
SELECT ( + 63 ) * + + ( 11 )
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT 97 * 1 * - - COUNT( * ) + + - 66 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6375
SELECT 97 * 1 * - - COUNT ( * ) + + - 66 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT 40 * CASE + 47 WHEN - 89 + + + 35 * - - 95 * + 30 THEN NULL WHEN 2 * MAX( ALL - 1 ) * - - 9 + + 16 THEN ( + 23 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT 40 * CASE + 47 WHEN - 89 + + + 35 * - - 95 * + 30 THEN NULL WHEN 2 * MAX ( ALL - 1 ) * - - 9 + + 16 THEN ( + 23 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL - - COUNT( + 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL - - COUNT ( + 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6378
SELECT - COUNT( * ) DIV - 58 * + + 57 + + + 28 + 79 * - COUNT( * ) + + 89 + + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6378
SELECT - COUNT ( * ) / - 58 * + + 57 + + + 28 + 79 * - COUNT ( * ) + + 89 + + COUNT ( * ) AS col1
----
39

query II rowsort
SELECT DISTINCT - - COALESCE ( - + 60, - + 90, 19 ), - 76 col1
----
-60
-76

query I rowsort
SELECT ALL + + 49 - NULLIF ( 13, 2 + ( + ( 0 ) ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL COUNT( * ) - + 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL COUNT ( * ) - + 36 AS col1
----
-35

query II rowsort
SELECT + - 66 AS col2, 24
----
-66
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6383
SELECT DISTINCT 60 * + 6 * 71 + 22, CASE + 26 WHEN - 68 + - 77 THEN - 44 WHEN - + 3 THEN - COUNT( * ) END AS col2
----
25582
NULL

skipif mysql # not compatible
query II rowsort label-6383
SELECT DISTINCT 60 * + 6 * 71 + 22, CASE + 26 WHEN - 68 + - 77 THEN - 44 WHEN - + 3 THEN - COUNT ( * ) END AS col2
----
25582
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT CASE + + 88 WHEN - COALESCE ( + NULLIF ( 83, + 51 ), - + COUNT( * ) * - + 2 + + COUNT( * ) ) THEN - 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT CASE + + 88 WHEN - COALESCE ( + NULLIF ( 83, + 51 ), - + COUNT ( * ) * - + 2 + + COUNT ( * ) ) THEN - 84 END AS col1
----
NULL

query I rowsort
SELECT ( - 80 ) * 1 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT + COUNT( * ) + - - 64 - + - 48 col2
----
113

skipif mysql # not compatible
query I rowsort label-6386
SELECT + COUNT ( * ) + - - 64 - + - 48 col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT DISTINCT NULLIF ( - COUNT( DISTINCT + + 26 ), COUNT( * ) * CAST( NULL AS SIGNED ) * 70 ) * CASE - 23 WHEN + - 16 THEN COALESCE ( - - 3, - ( + 16 ), + 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT NULLIF ( - COUNT ( DISTINCT + + 26 ), COUNT ( * ) * CAST ( NULL AS INTEGER ) * 70 ) * CASE - 23 WHEN + - 16 THEN COALESCE ( - - 3, - ( + 16 ), + 48 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT COUNT( * ) - + 50 + - - 70 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6388
SELECT COUNT ( * ) - + 50 + - - 70 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6389
SELECT ALL 93 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL 93 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT - COALESCE ( 39, 98 + COUNT( * ) + + - ( - 4 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-6390
SELECT - COALESCE ( 39, 98 + COUNT ( * ) + + - ( - 4 ) )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6391
SELECT - ( - 71 ) DIV COUNT( * ) + + + 0
----
71

skipif mysql # not compatible
query I rowsort label-6391
SELECT - ( - 71 ) / COUNT ( * ) + + + 0
----
71

query I rowsort
SELECT ALL 75 + + 93 col0
----
168

query I rowsort
SELECT DISTINCT 92 * - 22 col2
----
-2024

query I rowsort
SELECT - COALESCE ( + - 66, - ( + 67 ) ) AS col1
----
66

query I rowsort
SELECT DISTINCT - 0 * - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT 98 * MIN( + - 21 ) * - + 70 + + + ( + 33 ) AS col1
----
144093

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT 98 * MIN ( + - 21 ) * - + 70 + + + ( + 33 ) AS col1
----
144093

query I rowsort
SELECT DISTINCT - 27 + 62 + 64
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL + COUNT( * ) * - 21 + - + 27
----
-48

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + COUNT ( * ) * - 21 + - + 27
----
-48

query I rowsort
SELECT - NULLIF ( + 98, + 34 )
----
-98

query I rowsort
SELECT - - 63 col1
----
63

query II rowsort
SELECT - 90 * + 84 * - ( + COALESCE ( - ( + + 17 ), - 9 * - 64, - 46 ) ) + + + 75 AS col1, 1
----
-128445
1

query II rowsort
SELECT ALL + + 89 * - 92 + - - 3 AS col2, 37 * 4 * - 30 + 7
----
-8185
-4433

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6403
SELECT - 34 + 10 + - 46 * COUNT( * ) * + 41 - + - CASE - 6 WHEN - 72 * - + COUNT( * ) * - + 72 * + 25 / - 56 THEN - 80 + - CAST( - COALESCE ( 55, ( + - ( - COUNT( - - 33 ) ) ) ) AS DECIMAL ) WHEN - 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT - 34 + 10 + - 46 * COUNT ( * ) * + 41 - + - CASE - 6 WHEN - 72 * - + COUNT ( * ) * - + 72 * + 25 / - 56 THEN - 80 + - CAST ( - COALESCE ( 55, ( + - ( - COUNT ( - - 33 ) ) ) ) AS REAL ) WHEN - 40 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT - COALESCE ( - 19, 64, + - 8 ) + CASE + - COALESCE ( + 54, - 58 + + 44 ) WHEN + 96 THEN + 45 WHEN - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 45 - - 5 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT - COALESCE ( - 19, 64, + - 8 ) + CASE + - COALESCE ( + 54, - 58 + + 44 ) WHEN + 96 THEN + 45 WHEN - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 45 - - 5 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT - NULLIF ( + 11, - + ( + - 36 ) * COUNT( * ) / ( - COUNT( DISTINCT + + 35 ) ) / + + 43 ) * + CAST( NULL AS SIGNED ) - 91 * + + 60 - + 22 * 75 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT - NULLIF ( + 11, - + ( + - 36 ) * COUNT ( * ) / ( - COUNT ( DISTINCT + + 35 ) ) / + + 43 ) * + CAST ( NULL AS INTEGER ) - 91 * + + 60 - + 22 * 75 * 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - + 13 * + 24 + SUM( DISTINCT + 77 ) * 72 + - 4 AS col2
----
5228

skipif mysql # not compatible
query I rowsort label-6406
SELECT - + 13 * + 24 + SUM ( DISTINCT + 77 ) * 72 + - 4 AS col2
----
5228

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT - 23 DIV - 65 * + 78 * 28 + + - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6407
SELECT - 23 / - 65 * + 78 * 28 + + - 69 AS col2
----
-69

query I rowsort
SELECT + + 29 + + 7
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT DISTINCT + + CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT + + CAST ( + 67 AS INTEGER )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT COALESCE ( 31, - 12 DIV 39 + - + 87 + - 74 * - - 22 )
----
31

skipif mysql # not compatible
query I rowsort label-6410
SELECT COALESCE ( 31, - 12 / 39 + - + 87 + - 74 * - - 22 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT 48 * COUNT( * ) + 8 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6411
SELECT 48 * COUNT ( * ) + 8 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT ALL 41 DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL 41 / - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - 24 * - - 20 * - + 80 * - - 83 * - COUNT( * ) + + COUNT( * ) * - 54 * 85 + 90
----
-3191700

skipif mysql # not compatible
query I rowsort label-6413
SELECT - 24 * - - 20 * - + 80 * - - 83 * - COUNT ( * ) + + COUNT ( * ) * - 54 * 85 + 90
----
-3191700

query I rowsort
SELECT - 23 * + 36 * + + 54
----
-44712

query I rowsort
SELECT ALL 86 * + 37 + - 58
----
3124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT DISTINCT + 97 * CAST( NULL AS SIGNED ) + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT + 97 * CAST ( NULL AS INTEGER ) + - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT CASE - - 40 WHEN + 62 THEN 26 WHEN - 36 * - 36 THEN - - 11 * 20 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT CASE - - 40 WHEN + 62 THEN 26 WHEN - 36 * - 36 THEN - - 11 * 20 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT - ( 77 ) * - + 43 * 27 + - 62 + - COUNT( DISTINCT + 77 ) + ( - COUNT( * ) ) + - 67 + + + 37 * + 35 AS col0
----
90561

skipif mysql # not compatible
query I rowsort label-6418
SELECT - ( 77 ) * - + 43 * 27 + - 62 + - COUNT ( DISTINCT + 77 ) + ( - COUNT ( * ) ) + - 67 + + + 37 * + 35 AS col0
----
90561

query I rowsort
SELECT + COALESCE ( 77, - 90 - + 56 )
----
77

query I rowsort
SELECT + ( + - 52 ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT + CAST( 62 AS SIGNED ) * - NULLIF ( NULLIF ( - - ( - 10 ), + 38 ), - + 8 / - 82 ) + 16 AS col0
----
636

skipif mysql # not compatible
query I rowsort label-6421
SELECT + CAST ( 62 AS INTEGER ) * - NULLIF ( NULLIF ( - - ( - 10 ), + 38 ), - + 8 / - 82 ) + 16 AS col0
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT MIN( ALL + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6422
SELECT MIN ( ALL + 43 )
----
43

query I rowsort
SELECT ALL NULLIF ( - 38, - + 91 ) + 59 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT + CAST( NULL AS SIGNED ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT + CAST ( NULL AS INTEGER ) + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT MIN( DISTINCT 17 )
----
17

skipif mysql # not compatible
query I rowsort label-6425
SELECT MIN ( DISTINCT 17 )
----
17

query I rowsort
SELECT + 38 + - + 11
----
27

query I rowsort
SELECT ALL 8 - 57
----
-49

query I rowsort
SELECT + 77 * - + 86
----
-6622

query I rowsort
SELECT + 52 + - 99 - - - 20
----
-67

query I rowsort
SELECT ALL 35 * + + ( - 76 )
----
-2660

query I rowsort
SELECT - - ( + + 4 ) + - 43 - - NULLIF ( 59, - 91 ) + + 35 + - 59 * - 63 * + + 98
----
364321

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL + SUM( ( + + 10 ) ) - + 27
----
-17

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + SUM ( ( + + 10 ) ) - + 27
----
-17

query I rowsort
SELECT + - 58 * + + 9
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL ( + COALESCE ( - 57, - - 87, + 64 + + + COUNT( * ) + + - ( + + 26 ) * - 12 * - - 86 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL ( + COALESCE ( - 57, - - 87, + 64 + + + COUNT ( * ) + + - ( + + 26 ) * - 12 * - - 86 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT - MIN( + - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-6435
SELECT - MIN ( + - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT DISTINCT NULLIF ( - 34, + 8 * + CASE 20 WHEN + 40 THEN - + ( + + 4 ) WHEN - CASE - 48 WHEN + 48 THEN 16 / - 75 - + 57 ELSE NULL END * - 49 THEN - 94 END + + - 34 * + 27 + - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT NULLIF ( - 34, + 8 * + CASE 20 WHEN + 40 THEN - + ( + + 4 ) WHEN - CASE - 48 WHEN + 48 THEN 16 / - 75 - + 57 ELSE NULL END * - 49 THEN - 94 END + + - 34 * + 27 + - COUNT ( * ) )
----
-34

query I rowsort
SELECT - 81 * - + 41 + 98
----
3419

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT - + 42 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT - + 42 / + + 94
----
0

query I rowsort
SELECT + COALESCE ( - 73, + 33 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6440
SELECT - 6 * + + SUM( DISTINCT - + 79 ) * - 13, ( + 63 ) AS col0
----
-6162
63

skipif mysql # not compatible
query II rowsort label-6440
SELECT - 6 * + + SUM ( DISTINCT - + 79 ) * - 13, ( + 63 ) AS col0
----
-6162
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6441
SELECT ALL 82 DIV 28 + - 55 + 80 * + + SUM( - 81 )
----
-6533

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL 82 / 28 + - 55 + 80 * + + SUM ( - 81 )
----
-6533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6442
SELECT DISTINCT - 69 DIV + CAST( - COUNT( * ) AS SIGNED ) + - 93 col1
----
-24

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT - 69 / + CAST ( - COUNT ( * ) AS INTEGER ) + - 93 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ( COUNT( * ) ) * 11 + + 39 + 96 + ( COALESCE ( 78, - 53 - + COUNT( * ) * NULLIF ( 12, 95 ), - + 30 ) ) + - - 52 AS col1
----
276

skipif mysql # not compatible
query I rowsort label-6443
SELECT ( COUNT ( * ) ) * 11 + + 39 + 96 + ( COALESCE ( 78, - 53 - + COUNT ( * ) * NULLIF ( 12, 95 ), - + 30 ) ) + - - 52 AS col1
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT ALL - COALESCE ( - - 14, + 19 * + 33 DIV + 98 + MAX( - 26 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - COALESCE ( - - 14, + 19 * + 33 / + 98 + MAX ( - 26 ) )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6445
SELECT 47 * 45 DIV + COUNT( * )
----
2115

skipif mysql # not compatible
query I rowsort label-6445
SELECT 47 * 45 / + COUNT ( * )
----
2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6446
SELECT 53 DIV - + COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6446
SELECT 53 / - + COUNT ( * ) AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT DISTINCT - 27 DIV + 14 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT - 27 / + 14 AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL CASE + + 11 WHEN + COUNT( * ) + - 95 THEN NULL ELSE COUNT( * ) END - + ( 26 ) + - - 7 * - + 86
----
-627

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL CASE + + 11 WHEN + COUNT ( * ) + - 95 THEN NULL ELSE COUNT ( * ) END - + ( 26 ) + - - 7 * - + 86
----
-627

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT 69 - 65 DIV + 48 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6450
SELECT 69 - 65 / + 48 AS col0
----
68

query II rowsort
SELECT NULLIF ( + - 25, 57 + + + 74 ), - 83 * + 12 col1
----
-25
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL - COUNT( * ) * - ( - - 42 ) * + 42 + ( - 82 ) AS col2
----
1682

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - COUNT ( * ) * - ( - - 42 ) * + 42 + ( - 82 ) AS col2
----
1682

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT - ( - 89 ) AS col1, - COUNT( * ) AS col1
----
89
-1

skipif mysql # not compatible
query II rowsort label-6453
SELECT - ( - 89 ) AS col1, - COUNT ( * ) AS col1
----
89
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6454
SELECT DISTINCT - - ( 97 ) * - ( - CAST( NULL AS SIGNED ) ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT - - ( 97 ) * - ( - CAST ( NULL AS INTEGER ) ) + + 35
----
NULL

query I rowsort
SELECT 26 - - 87
----
113

query I rowsort
SELECT + 29 * + 61 col2
----
1769

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT ALL 69 DIV 5 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL 69 / 5 AS col0
----
13

query I rowsort
SELECT COALESCE ( 9, ( + + 77 ) + - - 42, + - 49 + + 95 - 7 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT - 96 + - 80 DIV + + 16 col2
----
-101

skipif mysql # not compatible
query I rowsort label-6459
SELECT - 96 + - 80 / + + 16 col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT SUM( DISTINCT + ( - 98 ) ) * SUM( + 33 ) AS col0
----
-3234

skipif mysql # not compatible
query I rowsort label-6460
SELECT SUM ( DISTINCT + ( - 98 ) ) * SUM ( + 33 ) AS col0
----
-3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT + NULLIF ( - + 71, - 39 ) + COUNT( * ) * - CASE + - MIN( - 5 ) WHEN - 8 THEN + + COUNT( ALL 82 ) * - - 9 + 78 DIV - MIN( 12 ) ELSE + + SUM( - + 71 ) END + - 17 * + 59 * - 26
----
26078

skipif mysql # not compatible
query I rowsort label-6461
SELECT + NULLIF ( - + 71, - 39 ) + COUNT ( * ) * - CASE + - MIN ( - 5 ) WHEN - 8 THEN + + COUNT ( ALL 82 ) * - - 9 + 78 / - MIN ( 12 ) ELSE + + SUM ( - + 71 ) END + - 17 * + 59 * - 26
----
26078

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT COALESCE ( - 99, - 21 * - - 39 + - + 48 + + - 98 * + - COUNT( * ) ) - NULLIF ( + + 21, + - 0 * 79 + - 60 / + + 9 )
----
-120

skipif mysql # not compatible
query I rowsort label-6462
SELECT COALESCE ( - 99, - 21 * - - 39 + - + 48 + + - 98 * + - COUNT ( * ) ) - NULLIF ( + + 21, + - 0 * 79 + - 60 / + + 9 )
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT CAST( NULL AS SIGNED ) + - 71 * 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT CAST ( NULL AS INTEGER ) + - 71 * 33 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT ALL 89 + - - CAST( - - 65 AS SIGNED ) col1
----
154

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL 89 + - - CAST ( - - 65 AS INTEGER ) col1
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-6465
SELECT DISTINCT - COUNT( * ) AS col2, 29 col1
----
-1
29

skipif mysql # not compatible
query II rowsort label-6465
SELECT DISTINCT - COUNT ( * ) AS col2, 29 col1
----
-1
29

query I rowsort
SELECT ALL - 76 + 95 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6467
SELECT + ( + 96 ) * - 84 * 60 * + 63 - - - COUNT( * ) + - ( + COALESCE ( - ( - + 9 ), - 97 + - NULLIF ( 57, 60 ) + NULLIF ( - - CASE + 45 WHEN + ( COALESCE ( + 78, ( 19 ) + + 37 ) ) THEN - 80 WHEN - - 43 THEN NULL END, - 86 ) ) ) col2, + 48 + - COUNT( * ) + + + 77 + CAST( NULL AS SIGNED ) + + 9 * 84
----
-30481930
NULL

skipif mysql # not compatible
query II rowsort label-6467
SELECT + ( + 96 ) * - 84 * 60 * + 63 - - - COUNT ( * ) + - ( + COALESCE ( - ( - + 9 ), - 97 + - NULLIF ( 57, 60 ) + NULLIF ( - - CASE + 45 WHEN + ( COALESCE ( + 78, ( 19 ) + + 37 ) ) THEN - 80 WHEN - - 43 THEN NULL END, - 86 ) ) ) col2, + 48 + - COUNT ( * ) + + + 77 + CAST ( NULL AS INTEGER ) + + 9 * 84
----
-30481930
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6468
SELECT ALL - 8 col0, CASE + COUNT( ALL - 42 ) WHEN - + 59 THEN + 33 ELSE - 61 END
----
-8
-61

skipif mysql # not compatible
query II rowsort label-6468
SELECT ALL - 8 col0, CASE + COUNT ( ALL - 42 ) WHEN - + 59 THEN + 33 ELSE - 61 END
----
-8
-61

query I rowsort
SELECT ( 53 ) + - ( - - 17 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT - 59 + 15 * + + 80 * + 41 * COUNT( * ) + - - 71 AS col2
----
49212

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT - 59 + 15 * + + 80 * + 41 * COUNT ( * ) + - - 71 AS col2
----
49212

query II rowsort
SELECT 22 * - 49 + - 70 - + 98 - 69, 44 AS col1
----
-1315
44

query I rowsort
SELECT 92 * 89
----
8188

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT DISTINCT - 41 - - ( COUNT( * ) ) - COUNT( * ) * - 49 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT - 41 - - ( COUNT ( * ) ) - COUNT ( * ) * - 49 AS col2
----
9

query I rowsort
SELECT ALL - ( ( - 49 ) ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6475
SELECT + 83 AS col0, + 86 + - + 83 * 15 * CAST( 45 AS SIGNED ) + 92
----
83
-55847

skipif mysql # not compatible
query II rowsort label-6475
SELECT + 83 AS col0, + 86 + - + 83 * 15 * CAST ( 45 AS INTEGER ) + 92
----
83
-55847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT DISTINCT 75 - 3 * + - 10 - + NULLIF ( + - COALESCE ( + 43, - 11, + COUNT( * ) DIV + 56 * + 84 + - + 48 - 92 * + + 86 * - 87 ), ( - CASE 88 WHEN - 7 + - MIN( - 56 ) + 3 + + - 34 THEN + 48 WHEN + + 42 * ( - 9 ) THEN NULL END ) * - COUNT( * ) ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT 75 - 3 * + - 10 - + NULLIF ( + - COALESCE ( + 43, - 11, + COUNT ( * ) / + 56 * + 84 + - + 48 - 92 * + + 86 * - 87 ), ( - CASE 88 WHEN - 7 + - MIN ( - 56 ) + 3 + + - 34 THEN + 48 WHEN + + 42 * ( - 9 ) THEN NULL END ) * - COUNT ( * ) ) AS col2
----
148

query I rowsort
SELECT 82 * + + 37
----
3034

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT 91 + COUNT( DISTINCT - + ( + 77 ) ) + + - 74 + - 3, - 43 AS col1
----
15
-43

skipif mysql # not compatible
query II rowsort label-6478
SELECT 91 + COUNT ( DISTINCT - + ( + 77 ) ) + + - 74 + - 3, - 43 AS col1
----
15
-43

query I rowsort
SELECT ALL - COALESCE ( + + 53, + - COALESCE ( - 87, + 59 ), 16 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + SUM( DISTINCT - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-6480
SELECT + SUM ( DISTINCT - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT 72 * + ( - + SUM( ALL - 33 ) ) * + + 79 + - 15 * 3 AS col0
----
187659

skipif mysql # not compatible
query I rowsort label-6481
SELECT 72 * + ( - + SUM ( ALL - 33 ) ) * + + 79 + - 15 * 3 AS col0
----
187659

query I rowsort
SELECT 7 * + + COALESCE ( + - 94, - + 28 )
----
-658

onlyif mysql # aggregate syntax: 
query II rowsort label-6483
SELECT ALL - COUNT( * ) AS col2, 44
----
-1
44

skipif mysql # not compatible
query II rowsort label-6483
SELECT ALL - COUNT ( * ) AS col2, 44
----
-1
44

query I rowsort
SELECT 81 * - 87 AS col2
----
-7047

query I rowsort
SELECT 71 + + 7 + + 98 - - 87
----
263

query I rowsort
SELECT - 78 * - + 64 - 53 * - + 16
----
5840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6487
SELECT - COUNT( * ) * - - 20 DIV + NULLIF ( + - COUNT( * ), 43 + - 70 ), + 38 AS col0
----
20
38

skipif mysql # not compatible
query II rowsort label-6487
SELECT - COUNT ( * ) * - - 20 / + NULLIF ( + - COUNT ( * ), 43 + - 70 ), + 38 AS col0
----
20
38

query I rowsort
SELECT DISTINCT + ( + - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT DISTINCT - COUNT( * ) * + 36
----
-36

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT - COUNT ( * ) * + 36
----
-36

query I rowsort
SELECT 40 + + + 44 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - MAX( DISTINCT 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6491
SELECT - MAX ( DISTINCT 52 ) AS col0
----
-52

query I rowsort
SELECT + 50 + 20
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL + 11 + ( + 62 ) + - + ( + 5 ) + NULLIF ( + MIN( ALL - 53 ), - + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + 11 + ( + 62 ) + - + ( + 5 ) + NULLIF ( + MIN ( ALL - 53 ), - + COUNT ( * ) )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT - - COALESCE ( - - 8, - MIN( - 73 ) + - COALESCE ( + 37, + + 87 * - + NULLIF ( - - 92, - + 15 * - 19 ) + 73 * - CAST( 37 AS SIGNED ) ) ) col2
----
8

skipif mysql # not compatible
query I rowsort label-6494
SELECT - - COALESCE ( - - 8, - MIN ( - 73 ) + - COALESCE ( + 37, + + 87 * - + NULLIF ( - - 92, - + 15 * - 19 ) + 73 * - CAST ( 37 AS INTEGER ) ) ) col2
----
8

query I rowsort
SELECT - 3 * + 31 AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT ALL CAST( - 91 AS SIGNED ) + - 27
----
-118

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL CAST ( - 91 AS INTEGER ) + - 27
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6497
SELECT 58 DIV + COUNT( * ) + + ( + + 62 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-6497
SELECT 58 / + COUNT ( * ) + + ( + + 62 ) AS col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT ALL - 76 + - 62 - 18 DIV + 15
----
-139

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL - 76 + - 62 - 18 / + 15
----
-139

query I rowsort
SELECT DISTINCT + 18 + 40
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6500
SELECT 68, + 11 * - COUNT( * ) AS col1
----
68
-11

skipif mysql # not compatible
query II rowsort label-6500
SELECT 68, + 11 * - COUNT ( * ) AS col1
----
68
-11

query II rowsort
SELECT ALL 5 AS col2, + ( - 97 )
----
5
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6502
SELECT 39, + NULLIF ( + ( - COUNT( * ) ), - 41 * 5 ) DIV + 28 AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-6502
SELECT 39, + NULLIF ( + ( - COUNT ( * ) ), - 41 * 5 ) / + 28 AS col0
----
39
0

query I rowsort
SELECT - 65 * 56 AS col0
----
-3640

query II rowsort
SELECT 82 col2, + 2 AS col2
----
82
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6505
SELECT ALL 76 DIV - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL 76 / - COUNT ( * )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6506
SELECT ALL COUNT( ALL - CAST( NULL AS DECIMAL ) ) * - 43 + + 86
----
86

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL COUNT ( ALL - CAST ( NULL AS REAL ) ) * - 43 + + 86
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT 54 DIV - + 56 - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6507
SELECT 54 / - + 56 - 36 AS col1
----
-36

query I rowsort
SELECT + COALESCE ( - + 53, - - 52 )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6509
SELECT + COUNT( * ) DIV + + 39, - COUNT( * ) + + + 3 + - - ( COUNT( * ) ) - + 32 * NULLIF ( 30, + 59 ) AS col2
----
0
-957

skipif mysql # not compatible
query II rowsort label-6509
SELECT + COUNT ( * ) / + + 39, - COUNT ( * ) + + + 3 + - - ( COUNT ( * ) ) - + 32 * NULLIF ( 30, + 59 ) AS col2
----
0
-957

query I rowsort
SELECT ALL 29 * - 9 * - - 81 * + - 48
----
1014768

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT + COALESCE ( 72, 34 ) * - MAX( 30 ) AS col2
----
-2160

skipif mysql # not compatible
query I rowsort label-6511
SELECT + COALESCE ( 72, 34 ) * - MAX ( 30 ) AS col2
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL 5 * - MIN( - 12 ) * + 16 AS col2
----
960

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL 5 * - MIN ( - 12 ) * + 16 AS col2
----
960

query I rowsort
SELECT DISTINCT 92 * - + 58 - + + 32
----
-5368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT + 85 * 90 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT + 85 * 90 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + COUNT( ALL - 43 ) * + 60 col0
----
60

skipif mysql # not compatible
query I rowsort label-6515
SELECT + COUNT ( ALL - 43 ) * + 60 col0
----
60

query I rowsort
SELECT ALL 69 * + - 15 AS col1
----
-1035

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT + 75 * COUNT( * ) AS col2, + 98 * + MAX( ALL - - 92 ) + + 64 + - 46 AS col0
----
75
9034

skipif mysql # not compatible
query II rowsort label-6517
SELECT + 75 * COUNT ( * ) AS col2, + 98 * + MAX ( ALL - - 92 ) + + 64 + - 46 AS col0
----
75
9034

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT COALESCE ( + 38, CASE + 13 WHEN + AVG ( - 8 ) / + + 34 - - 60 + - - MIN( - 18 ) THEN 46 END + + 97 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6518
SELECT COALESCE ( + 38, CASE + 13 WHEN + AVG ( - 8 ) / + + 34 - - 60 + - - MIN ( - 18 ) THEN 46 END + + 97 ) AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT COALESCE ( - 20, 9 DIV + 11, + 37 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6519
SELECT COALESCE ( - 20, 9 / + 11, + 37 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + COUNT( * ) * + + 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6520
SELECT + COUNT ( * ) * + + 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - 33 * - - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6521
SELECT - 33 * - - COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT + CASE 92 WHEN - 42 + + 88 THEN - COALESCE ( + + MAX( + 48 ), ( 86 ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT + CASE 92 WHEN - 42 + + 88 THEN - COALESCE ( + + MAX ( + 48 ), ( 86 ) ) END col0
----
NULL

query I rowsort
SELECT - 50 + 36 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6524
SELECT DISTINCT + COUNT( * ) DIV - + ( 27 )
----
0

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT + COUNT ( * ) / - + ( 27 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT - 84 * + - SUM( + 91 ) * - COUNT( * ) + ( - - MIN( + + 56 ) ) AS col1
----
-7588

skipif mysql # not compatible
query I rowsort label-6525
SELECT - 84 * + - SUM ( + 91 ) * - COUNT ( * ) + ( - - MIN ( + + 56 ) ) AS col1
----
-7588

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL + 76 * + + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + 76 * + + COUNT ( * ) AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6527
SELECT DISTINCT - 65 DIV 82 * + 68 * + ( - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT - 65 / 82 * + 68 * + ( - 64 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6528
SELECT + - 26 DIV + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6528
SELECT + - 26 / + COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT - - 21 * + - 54 + 91
----
-1043

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT + 60 - - + SUM( ALL 53 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-6530
SELECT + 60 - - + SUM ( ALL 53 ) AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6531
SELECT - CAST( - CASE - 17 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + COALESCE ( - - 96, - + 90 * + MAX( DISTINCT - 40 ) / - 3 + + + 22 ) + + 28 + COUNT( * ) END AS SIGNED ) col2, 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6531
SELECT - CAST ( - CASE - 17 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + COALESCE ( - - 96, - + 90 * + MAX ( DISTINCT - 40 ) / - 3 + + + 22 ) + + 28 + COUNT ( * ) END AS INTEGER ) col2, 18 AS col1
----
NULL
18

query II rowsort
SELECT 96 AS col1, 32 * - + 81 AS col0
----
96
-2592

query II rowsort
SELECT - 36, 50 + 62 + - - 39 AS col2
----
-36
151

query I rowsort
SELECT ALL - 80 + + 35 - + - 39 + + 13
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT DISTINCT CAST( + 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT CAST ( + 56 AS INTEGER ) AS col2
----
56

query I rowsort
SELECT - + 94 - - 82 * 33 AS col2
----
2612

query I rowsort
SELECT ALL NULLIF ( 5, - - 40 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL - COUNT( * ) + 22 + 16 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL - COUNT ( * ) + 22 + 16 AS col2
----
37

query I rowsort
SELECT - - 19 * + - COALESCE ( + ( COALESCE ( + 54, - 85, - 44 ) ), + 7 + + - 82 )
----
-1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6540
SELECT - + 50 + 9 + + COUNT( * ) + - + ( + COUNT( * ) ) + - 56 - CAST( - NULLIF ( + COUNT( * ), 65 ) AS SIGNED ) + - COUNT( * ) DIV + - 57 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6540
SELECT - + 50 + 9 + + COUNT ( * ) + - + ( + COUNT ( * ) ) + - 56 - CAST ( - NULLIF ( + COUNT ( * ), 65 ) AS INTEGER ) + - COUNT ( * ) / + - 57 AS col1
----
-96

query I rowsort
SELECT ALL + 58 - - 85 AS col1
----
143

query I rowsort
SELECT - 41 + + + 46 col1
----
5

query I rowsort
SELECT - 17 + ( - 13 )
----
-30

query I rowsort
SELECT DISTINCT ( - 13 ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT DISTINCT 19 DIV - 86 * + + 55 - + 73 * + 62
----
-4526

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT 19 / - 86 * + + 55 - + 73 * + 62
----
-4526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6546
SELECT + ( + 25 ) AS col2, - CAST( - 24 AS SIGNED ) * COUNT( DISTINCT + 71 ) AS col1
----
25
24

skipif mysql # not compatible
query II rowsort label-6546
SELECT + ( + 25 ) AS col2, - CAST ( - 24 AS INTEGER ) * COUNT ( DISTINCT + 71 ) AS col1
----
25
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6547
SELECT COALESCE ( + - 69, - ( - + 41 ) * - + CAST( 90 AS SIGNED ) ) DIV 22 - + - 79 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-6547
SELECT COALESCE ( + - 69, - ( - + 41 ) * - + CAST ( 90 AS INTEGER ) ) / 22 - + - 79 / + 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT + CAST( NULL AS SIGNED ) * - COUNT( ALL + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( ALL + 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6549
SELECT ALL COUNT( * ) * - 79 AS col2, + 78 * + 62 * - 54 + COUNT( * ) + + + 8 col2
----
-79
-261135

skipif mysql # not compatible
query II rowsort label-6549
SELECT ALL COUNT ( * ) * - 79 AS col2, + 78 * + 62 * - 54 + COUNT ( * ) + + + 8 col2
----
-79
-261135

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT ALL 74 DIV + 31 + 9
----
11

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL 74 / + 31 + 9
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL - MIN( 7 ) * + - 34
----
238

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - MIN ( 7 ) * + - 34
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT + + 16 DIV + ( + ( 97 ) ) * - - 96
----
0

skipif mysql # not compatible
query I rowsort label-6552
SELECT + + 16 / + ( + ( 97 ) ) * - - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6553
SELECT - CAST( NULL AS SIGNED ) * + - 77 - - CAST( NULL AS DECIMAL ) * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT - CAST ( NULL AS INTEGER ) * + - 77 - - CAST ( NULL AS REAL ) * 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + MAX( - - 17 ) - - 78 col0
----
95

skipif mysql # not compatible
query I rowsort label-6554
SELECT + MAX ( - - 17 ) - - 78 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6555
SELECT + COUNT( * ) * - 73, CAST( NULL AS DECIMAL ) col2
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-6555
SELECT + COUNT ( * ) * - 73, CAST ( NULL AS REAL ) col2
----
-73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT - + 59 - - COUNT( * ) AS col1, 86 AS col2
----
-58
86

skipif mysql # not compatible
query II rowsort label-6556
SELECT - + 59 - - COUNT ( * ) AS col1, 86 AS col2
----
-58
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT + + MIN( - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + + MIN ( - 36 ) AS col0
----
-36

query I rowsort
SELECT + - 89 + - ( + - 73 ) + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT + + COUNT( * ) + - - 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6559
SELECT + + COUNT ( * ) + - - 58 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT ALL - - 42 * + + 4 + - - 74 + + MIN( ALL 87 ) AS col1, + 87
----
329
87

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL - - 42 * + + 4 + - - 74 + + MIN ( ALL 87 ) AS col1, + 87
----
329
87

query I rowsort
SELECT DISTINCT + + 76 * + 28 + 60
----
2188

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL - COUNT( * ) + - - 74 * + + ( + 70 )
----
5179

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - COUNT ( * ) + - - 74 * + + ( + 70 )
----
5179

query II rowsort
SELECT - 7 + - 53 AS col2, - 21 AS col0
----
-60
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT + CAST( - ( + 6 ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-6564
SELECT + CAST ( - ( + 6 ) AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL + ( COALESCE ( + - COUNT( * ), + 60 + - 13 - + 38, - - 99 - + - COUNT( * ) ) ) * + 36 * - COUNT( * ) * + 48 AS col2
----
1728

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + ( COALESCE ( + - COUNT ( * ), + 60 + - 13 - + 38, - - 99 - + - COUNT ( * ) ) ) * + 36 * - COUNT ( * ) * + 48 AS col2
----
1728

query I rowsort
SELECT 59 * - + 31
----
-1829

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6567
SELECT ALL - + 56 - - - 38, CAST( - 27 AS SIGNED ) col1
----
-94
-27

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL - + 56 - - - 38, CAST ( - 27 AS INTEGER ) col1
----
-94
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - 78 * COUNT( * ) + 62 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6568
SELECT - 78 * COUNT ( * ) + 62 AS col0
----
-16

query I rowsort
SELECT 83 * + 92
----
7636

query II rowsort
SELECT 1 AS col0, - 13 AS col0
----
1
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6571
SELECT ALL - 0 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - 0 / - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT 82 * + ( COALESCE ( + - ( + 1 ), - - COUNT( * ) ) ) AS col0, + 60
----
-82
60

skipif mysql # not compatible
query II rowsort label-6572
SELECT 82 * + ( COALESCE ( + - ( + 1 ), - - COUNT ( * ) ) ) AS col0, + 60
----
-82
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6573
SELECT - 26 AS col1, - COUNT( * ) * - + 36 * 51 AS col1
----
-26
1836

skipif mysql # not compatible
query II rowsort label-6573
SELECT - 26 AS col1, - COUNT ( * ) * - + 36 * 51 AS col1
----
-26
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT COUNT( * ) * + + 83
----
83

skipif mysql # not compatible
query I rowsort label-6574
SELECT COUNT ( * ) * + + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL - MAX( DISTINCT + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - MAX ( DISTINCT + 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) * ( - 48 ) + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) * ( - 48 ) + - 61
----
NULL

query I rowsort
SELECT DISTINCT - 83 + 32 - 75
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT MAX( DISTINCT - - 16 ) * 85 * + - 11 + - 14 * + COUNT( + 83 )
----
-14974

skipif mysql # not compatible
query I rowsort label-6578
SELECT MAX ( DISTINCT - - 16 ) * 85 * + - 11 + - 14 * + COUNT ( + 83 )
----
-14974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT DISTINCT ( - 16 ) + NULLIF ( - CAST( + 44 AS SIGNED ), + 32 / - - 50 + + 12 + - 91 + + - ( - + 55 ) + - + 13 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT ( - 16 ) + NULLIF ( - CAST ( + 44 AS INTEGER ), + 32 / - - 50 + + 12 + - 91 + + - ( - + 55 ) + - + 13 ) AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6580
SELECT ALL CAST( - 66 AS SIGNED ) + 52 * 34 DIV + 33 col2
----
-13

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL CAST ( - 66 AS INTEGER ) + 52 * 34 / + 33 col2
----
-13

query I rowsort
SELECT - 80 - - 77
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT COUNT( 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6582
SELECT COUNT ( 13 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 4 * + 15 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL 8 + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL 8 + + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT - + 79 * COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT - + 79 * COUNT ( * ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT 95 * + COUNT( + 44 ) - 34 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6586
SELECT 95 * + COUNT ( + 44 ) - 34 AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT ALL - 54 AS col2, - 96 - COUNT( - 58 )
----
-54
-97

skipif mysql # not compatible
query II rowsort label-6587
SELECT ALL - 54 AS col2, - 96 - COUNT ( - 58 )
----
-54
-97

query I rowsort
SELECT 74 - - 43 * + 60
----
2654

query I rowsort
SELECT + 71 - - 6 AS col2
----
77

query I rowsort
SELECT + 46 * - 73
----
-3358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT 63 * NULLIF ( + 53, 40 ) * COUNT( * ) * - - SUM( ALL - 21 ) * CAST( NULL AS SIGNED ) + 72 * 58 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT 63 * NULLIF ( + 53, 40 ) * COUNT ( * ) * - - SUM ( ALL - 21 ) * CAST ( NULL AS INTEGER ) + 72 * 58 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT 47 * SUM( ALL 60 ) AS col1
----
2820

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT 47 * SUM ( ALL 60 ) AS col1
----
2820

query I rowsort
SELECT DISTINCT 59 - 75 + + + 66
----
50

query I rowsort
SELECT 76 * + + 49 AS col2
----
3724

query I rowsort
SELECT 82 - - + 64 * + 98 AS col1
----
6354

query I rowsort
SELECT ALL 46 * + ( 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT 7 DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT 7 / - 66 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT ( + CAST( NULL AS SIGNED ) ) + - - 76 + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT ( + CAST ( NULL AS INTEGER ) ) + - - 76 + - 73
----
NULL

query I rowsort
SELECT ALL 10 * + + 61 * - 7 AS col0
----
-4270

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT 97 DIV 28
----
3

skipif mysql # not compatible
query I rowsort label-6600
SELECT 97 / 28
----
3

query I rowsort
SELECT ALL + ( + + 27 ) + + 68
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL COUNT( * ) + + ( - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL COUNT ( * ) + + ( - COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT 16 * + 33 * 37 AS col1
----
19536

query I rowsort
SELECT - 35 * - - 6 + 9
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL - COUNT( * ) * + 33 + 83
----
50

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - COUNT ( * ) * + 33 + 83
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT MIN( ALL - + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6606
SELECT MIN ( ALL - + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT + CASE - - 26 WHEN + COUNT( * ) * - + 96 THEN + 0 / + 26 * - ( - - 42 ) * + + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT + CASE - - 26 WHEN + COUNT ( * ) * - + 96 THEN + 0 / + 26 * - ( - - 42 ) * + + 60 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT - CAST( NULL AS SIGNED ) + + - 51 + - + 63 + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT - CAST ( NULL AS INTEGER ) + + - 51 + - + 63 + - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6609
SELECT ALL - ( - 96 ) * - MAX( ALL - CAST( - 42 AS SIGNED ) ) * - 83 col1
----
334656

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - ( - 96 ) * - MAX ( ALL - CAST ( - 42 AS INTEGER ) ) * - 83 col1
----
334656

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT + + MIN( DISTINCT - + 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6610
SELECT + + MIN ( DISTINCT - + 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL - CASE - + 35 WHEN + SUM( ALL + 43 ) * 8 THEN NULL WHEN + - 4 THEN NULL ELSE - NULLIF ( + 14, - + MIN( 37 ) * 77 ) + + 23 - 53 * + 54 END
----
2853

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - CASE - + 35 WHEN + SUM ( ALL + 43 ) * 8 THEN NULL WHEN + - 4 THEN NULL ELSE - NULLIF ( + 14, - + MIN ( 37 ) * 77 ) + + 23 - 53 * + 54 END
----
2853

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL + SUM( DISTINCT + 74 ) * + + COALESCE ( - + 97, - 11 ) - + 54 + 87 + CASE - COUNT( * ) WHEN + - 89 THEN + + 16 END * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + SUM ( DISTINCT + 74 ) * + + COALESCE ( - + 97, - 11 ) - + 54 + 87 + CASE - COUNT ( * ) WHEN + - 89 THEN + + 16 END * - 21
----
NULL

query I rowsort
SELECT + + 33 col2
----
33

query I rowsort
SELECT ALL - 92 * - + 53
----
4876

query I rowsort
SELECT + ( 91 ) * - 27 * + + 58 - - 55 AS col2
----
-142451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6616
SELECT DISTINCT + ( - 65 ), 74 * 46 + CAST( - ( - 50 ) AS SIGNED ) + + 2 * 85 * + 39 AS col2
----
-65
10084

skipif mysql # not compatible
query II rowsort label-6616
SELECT DISTINCT + ( - 65 ), 74 * 46 + CAST ( - ( - 50 ) AS INTEGER ) + + 2 * 85 * + 39 AS col2
----
-65
10084

query I rowsort
SELECT - + 37 * + - 4
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT DISTINCT - 10 DIV + + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - 10 / + + 29 AS col0
----
0

query I rowsort
SELECT + 72 * + 26 - + 38
----
1834

query I rowsort
SELECT ALL + 77 * 39 * + 61
----
183183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT ALL - + 84 DIV NULLIF ( + 99, 88 ) * 16 + + + COUNT( * ) + - - 50
----
51

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - + 84 / NULLIF ( + 99, 88 ) * 16 + + + COUNT ( * ) + - - 50
----
51

query II rowsort
SELECT - 83 + + - 97 col2, - 64 + 46
----
-180
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6623
SELECT ALL COUNT( * ) * + - 90 AS col2, - 53 + 55 + + + 28
----
-90
30

skipif mysql # not compatible
query II rowsort label-6623
SELECT ALL COUNT ( * ) * + - 90 AS col2, - 53 + 55 + + + 28
----
-90
30

query I rowsort
SELECT DISTINCT NULLIF ( + 86, - - 40 ) AS col2
----
86

query I rowsort
SELECT ALL + 0 * 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT + 57 * - 27 + - - 7 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT + 57 * - 27 + - - 7 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT + 64 + COUNT( * ) * - + COALESCE ( + 81, 81 ) * - - 65, + ( + + 50 ) - - COUNT( * ) col2
----
-5201
51

skipif mysql # not compatible
query II rowsort label-6627
SELECT + 64 + COUNT ( * ) * - + COALESCE ( + 81, 81 ) * - - 65, + ( + + 50 ) - - COUNT ( * ) col2
----
-5201
51

query I rowsort
SELECT ALL 70 * 77 * + ( + 56 )
----
301840

query I rowsort
SELECT + 40 + - 32 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT - SUM( ALL 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6630
SELECT - SUM ( ALL 62 )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT + 17 + + NULLIF ( COUNT( ALL + 11 ), - 33 ) + - - COUNT( * ) AS col2, 93 AS col2
----
19
93

skipif mysql # not compatible
query II rowsort label-6631
SELECT + 17 + + NULLIF ( COUNT ( ALL + 11 ), - 33 ) + - - COUNT ( * ) AS col2, 93 AS col2
----
19
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6632
SELECT DISTINCT 28 + - - 0 + - SUM( ALL + 7 ) DIV - + CAST( - + ( + - 75 ) AS SIGNED ) * + 55 * - + 50
----
28

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT 28 + - - 0 + - SUM ( ALL + 7 ) / - + CAST ( - + ( + - 75 ) AS INTEGER ) * + 55 * - + 50
----
28

query I rowsort
SELECT ALL 92 + 8 AS col1
----
100

query I rowsort
SELECT - NULLIF ( - 43, - 45 + + 9 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ALL MAX( + - ( ( - + ( + - 84 ) ) ) ) + + + COUNT( * ) + 91 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL MAX ( + - ( ( - + ( + - 84 ) ) ) ) + + + COUNT ( * ) + 91 AS col0
----
8

query I rowsort
SELECT - ( + + 95 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-6637
SELECT 56 col2, COUNT( * ) col1
----
56
1

skipif mysql # not compatible
query II rowsort label-6637
SELECT 56 col2, COUNT ( * ) col1
----
56
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6638
SELECT + COUNT( * ) * 79 * - 54 * - + CAST( + COUNT( * ) AS SIGNED )
----
4266

skipif mysql # not compatible
query I rowsort label-6638
SELECT + COUNT ( * ) * 79 * - 54 * - + CAST ( + COUNT ( * ) AS INTEGER )
----
4266

query I rowsort
SELECT + 51 * + 97 * + 49 AS col0
----
242403

query I rowsort
SELECT ALL 56 * + ( 10 ) AS col0
----
560

onlyif mysql # aggregate syntax: 
query II rowsort label-6641
SELECT 64, - ( 28 ) + + ( - SUM( 75 ) ) AS col1
----
64
-103

skipif mysql # not compatible
query II rowsort label-6641
SELECT 64, - ( 28 ) + + ( - SUM ( 75 ) ) AS col1
----
64
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6642
SELECT 2 AS col1, 30 DIV 87 + - + 55 * + + COUNT( ALL 40 )
----
2
-55

skipif mysql # not compatible
query II rowsort label-6642
SELECT 2 AS col1, 30 / 87 + - + 55 * + + COUNT ( ALL 40 )
----
2
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6643
SELECT - CASE - + COUNT( * ) WHEN - AVG ( - 66 ) - - 51 + + 34 + - 5 THEN NULL WHEN 64 * - 75 + COALESCE ( + CAST( NULL AS SIGNED ), - ( + 61 ) * 65 - - 23, 33 * - 8 ) THEN + 26 / - + 56 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT - CASE - + COUNT ( * ) WHEN - AVG ( - 66 ) - - 51 + + 34 + - 5 THEN NULL WHEN 64 * - 75 + COALESCE ( + CAST ( NULL AS INTEGER ), - ( + 61 ) * 65 - - 23, 33 * - 8 ) THEN + 26 / - + 56 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 57 * 10 + - 52
----
518

query I rowsort
SELECT + 15 - 93
----
-78

query I rowsort
SELECT - 20 * - 85 AS col1
----
1700

query I rowsort
SELECT + 91 * 24
----
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT ALL + 10 DIV + 58 - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + 10 / + 58 - + 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT DISTINCT MIN( ALL - 68 ) * 78
----
-5304

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT MIN ( ALL - 68 ) * 78
----
-5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT ALL 14 * + COALESCE ( + CAST( NULL AS SIGNED ), ( + CASE 28 WHEN - COALESCE ( - 48, 68 * 24 + 27 ) THEN + 48 ELSE NULL END ), + CAST( NULL AS SIGNED ), 65 )
----
910

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL 14 * + COALESCE ( + CAST ( NULL AS INTEGER ), ( + CASE 28 WHEN - COALESCE ( - 48, 68 * 24 + 27 ) THEN + 48 ELSE NULL END ), + CAST ( NULL AS INTEGER ), 65 )
----
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6651
SELECT ALL + 3 DIV MAX( DISTINCT 18 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + 3 / MAX ( DISTINCT 18 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - COUNT( * ) + - 90 * 56 AS col1
----
-5041

skipif mysql # not compatible
query I rowsort label-6652
SELECT - COUNT ( * ) + - 90 * 56 AS col1
----
-5041

query I rowsort
SELECT - 61 * 47 AS col0
----
-2867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT - NULLIF ( - 71, - CAST( NULL AS SIGNED ) ) - 78 * + 45
----
-3439

skipif mysql # not compatible
query I rowsort label-6654
SELECT - NULLIF ( - 71, - CAST ( NULL AS INTEGER ) ) - 78 * + 45
----
-3439

query I rowsort
SELECT ( - 66 ) AS col2
----
-66

query I rowsort
SELECT + 25 * NULLIF ( 53, 58 )
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT - 31 * - COALESCE ( + COUNT( * ), 62 * 97 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6657
SELECT - 31 * - COALESCE ( + COUNT ( * ), 62 * 97 ) AS col0
----
31

query I rowsort
SELECT ALL - 31 * 70 AS col2
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - COUNT( * ) + 70
----
69

skipif mysql # not compatible
query I rowsort label-6659
SELECT - COUNT ( * ) + 70
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + COUNT( 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6660
SELECT + COUNT ( 94 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 13 * - ( + 80 )
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL - 32 * - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - 32 * - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT NULLIF ( + 42, 97 )
----
42

query I rowsort
SELECT DISTINCT + NULLIF ( - 39, - 74 * + 3 + 42 * + 51 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6665
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - SUM( ALL - 21 ) * 77 AS col2
----
1617

skipif mysql # not compatible
query I rowsort label-6666
SELECT - SUM ( ALL - 21 ) * 77 AS col2
----
1617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT ALL ( - CAST( 94 AS SIGNED ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL ( - CAST ( 94 AS INTEGER ) ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - NULLIF ( COUNT( * ), - 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-6668
SELECT - NULLIF ( COUNT ( * ), - 92 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6669
SELECT + 17 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-6669
SELECT + 17 / 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT ALL 15 * 4 + CAST( - 10 AS SIGNED ) * - 2 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL 15 * 4 + CAST ( - 10 AS INTEGER ) * - 2 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - NULLIF ( + 68, - COUNT( * ) / + 91 ) - COUNT( * ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-6671
SELECT - NULLIF ( + 68, - COUNT ( * ) / + 91 ) - COUNT ( * ) col0
----
-69

query I rowsort
SELECT - 5 + + 85 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT DISTINCT + 78 DIV 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + 78 / 57 AS col1
----
1

query I rowsort
SELECT DISTINCT ( COALESCE ( + 20, 85 + + 39 ) ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT - 99 * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT - 99 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - NULLIF ( 76, 50 * 13 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - COUNT( * ) + NULLIF ( 30, COALESCE ( 43, COUNT( * ), + 55 + 39 ) )
----
29

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - COUNT ( * ) + NULLIF ( 30, COALESCE ( 43, COUNT ( * ), + 55 + 39 ) )
----
29

query I rowsort
SELECT DISTINCT + 52 + + 84
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT - CAST( NULL AS SIGNED ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT - CAST ( NULL AS INTEGER ) + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL + COUNT( * ) + 89
----
90

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + COUNT ( * ) + 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - COUNT( DISTINCT + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-6681
SELECT - COUNT ( DISTINCT + 59 )
----
-1

query I rowsort
SELECT - 39 * 1 col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT - 15 + NULLIF ( NULLIF ( COUNT( * ), - 55 ), 95 + - 70 )
----
-14

skipif mysql # not compatible
query I rowsort label-6683
SELECT - 15 + NULLIF ( NULLIF ( COUNT ( * ), - 55 ), 95 + - 70 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT + NULLIF ( + 0, + CAST( 23 AS SIGNED ) * - 31 ) + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-6684
SELECT + NULLIF ( + 0, + CAST ( 23 AS INTEGER ) * - 31 ) + - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL - - MIN( DISTINCT 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - - MIN ( DISTINCT 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT COUNT( * ) - - 15 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT COUNT ( * ) - - 15 AS col2
----
16

query I rowsort
SELECT - 88 * - 63
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT COUNT( * ) * COUNT( * ) + - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6688
SELECT COUNT ( * ) * COUNT ( * ) + - 4 AS col0
----
-3

query I rowsort
SELECT DISTINCT + 43 * + 86 AS col2
----
3698

onlyif mysql # DIV for integer division: 
query I rowsort label-6690
SELECT - 15 DIV 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT - 15 / 27 AS col2
----
0

query I rowsort
SELECT 39 * - 16
----
-624

query I rowsort
SELECT + 24 + + ( - 83 + + 38 )
----
-21

query I rowsort
SELECT ALL - - ( 17 ) col0
----
17

query I rowsort
SELECT DISTINCT 3 * + 43
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6695
SELECT ALL + 49 + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + 49 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT - MAX( DISTINCT - 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - MAX ( DISTINCT - 89 ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT + ( + 64 ) * + NULLIF ( - 92 * + CAST( NULL AS SIGNED ), 83 * NULLIF ( + 10, + 17 + ( COUNT( * ) + 93 * + 88 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT + ( + 64 ) * + NULLIF ( - 92 * + CAST ( NULL AS INTEGER ), 83 * NULLIF ( + 10, + 17 + ( COUNT ( * ) + 93 * + 88 ) ) )
----
NULL

query I rowsort
SELECT ALL - 69 + - 10
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ( 37 ) * 43 - COUNT( * ) col2
----
1590

skipif mysql # not compatible
query I rowsort label-6699
SELECT ( 37 ) * 43 - COUNT ( * ) col2
----
1590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT 98 DIV COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6700
SELECT 98 / COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT 41 + + 46 DIV - ( COUNT( * ) * + 23 )
----
39

skipif mysql # not compatible
query I rowsort label-6701
SELECT 41 + + 46 / - ( COUNT ( * ) * + 23 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT 88 + + + ( + 61 ) + 49 * SUM( DISTINCT + 42 * 54 )
----
111281

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT 88 + + + ( + 61 ) + 49 * SUM ( DISTINCT + 42 * 54 )
----
111281

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT + COUNT( * ) * + 38 + 70
----
108

skipif mysql # not compatible
query I rowsort label-6703
SELECT + COUNT ( * ) * + 38 + 70
----
108

query I rowsort
SELECT 82 + - 58 AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT 64 * - - 92 - 71 DIV 27 col1
----
5886

skipif mysql # not compatible
query I rowsort label-6705
SELECT 64 * - - 92 - 71 / 27 col1
----
5886

query I rowsort
SELECT DISTINCT 52 + 79 AS col2
----
131

query I rowsort
SELECT ALL + 65 + 74 * 96
----
7169

query I rowsort
SELECT DISTINCT 28 * - 7 AS col0
----
-196

query I rowsort
SELECT ALL 87 + - 97
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT ALL + COALESCE ( + CAST( 86 AS SIGNED ), 89 ) + 39 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + COALESCE ( + CAST ( 86 AS INTEGER ), 89 ) + 39 AS col1
----
125

query I rowsort
SELECT - 10 * + 50 + 66
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL + MAX( ALL 23 ) * 39 AS col2
----
897

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + MAX ( ALL 23 ) * 39 AS col2
----
897

query I rowsort
SELECT 26 + - 90
----
-64

query I rowsort
SELECT 7 * - 97 AS col2
----
-679

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6715
SELECT DISTINCT + ( - + 75 ) - CAST( 74 + 42 AS SIGNED ) DIV 48
----
-77

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT + ( - + 75 ) - CAST ( 74 + 42 AS INTEGER ) / 48
----
-77

query I rowsort
SELECT 22 + + - 20 + ( 28 ) * 58
----
1626

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT COUNT( * ) * - ( + ( + 85 ) ) * - 78
----
6630

skipif mysql # not compatible
query I rowsort label-6717
SELECT COUNT ( * ) * - ( + ( + 85 ) ) * - 78
----
6630

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT ALL + 30 DIV + 87 * 76
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + 30 / + 87 * 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6719
SELECT DISTINCT - + COUNT( * ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - + COUNT ( * ) / + 31
----
0

query I rowsort
SELECT ALL 59 * - 48
----
-2832

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL - - 70 * + - MIN( 95 ) - + 81 * + 95
----
-14345

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - - 70 * + - MIN ( 95 ) - + 81 * + 95
----
-14345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6722
SELECT - CASE WHEN NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND NULL THEN ( 19 ) END * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT - CASE WHEN NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND NULL THEN ( 19 ) END * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT COUNT( * ) + - 60 * + NULLIF ( - 31 * 95, 80 * - 95 ) col1
----
176701

skipif mysql # not compatible
query I rowsort label-6723
SELECT COUNT ( * ) + - 60 * + NULLIF ( - 31 * 95, 80 * - 95 ) col1
----
176701

query I rowsort
SELECT 18 * - - 9 - 14
----
148

query I rowsort
SELECT + 56 + 7 col0
----
63

query I rowsort
SELECT ALL + 14 * + + 79
----
1106

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT + 13 - + 41 DIV - 98 col0
----
13

skipif mysql # not compatible
query I rowsort label-6727
SELECT + 13 - + 41 / - 98 col0
----
13

query I rowsort
SELECT ALL + 20 + + 92
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL 88 + - 56 DIV 57 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL 88 + - 56 / 57 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + + ( + 74 ) * - SUM( - ( - 59 ) ) + 73 * 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6730
SELECT + + ( + 74 ) * - SUM ( - ( - 59 ) ) + 73 * 59 AS col0
----
-59

query I rowsort
SELECT DISTINCT + 87 + - 32 * 80 AS col1
----
-2473

query I rowsort
SELECT 18 * - 84 + + 59 + 3
----
-1450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT DISTINCT - CAST( COALESCE ( 17, + 83 / - 57, - 88 ) AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - CAST ( COALESCE ( 17, + 83 / - 57, - 88 ) AS INTEGER ) AS col2
----
-17

query I rowsort
SELECT ALL + 37 + - 59 * 76
----
-4447

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT 43 * 54 DIV + 51 col0
----
45

skipif mysql # not compatible
query I rowsort label-6735
SELECT 43 * 54 / + 51 col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6736
SELECT + 52 AS col2, NULLIF ( 36, + 4 + + 35 * CAST( 2 AS SIGNED ) ) * + 68 - + 13 * 1
----
52
2435

skipif mysql # not compatible
query II rowsort label-6736
SELECT + 52 AS col2, NULLIF ( 36, + 4 + + 35 * CAST ( 2 AS INTEGER ) ) * + 68 - + 13 * 1
----
52
2435

query I rowsort
SELECT NULLIF ( + - 2, 10 + 20 * - 44 ) + 72 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT 91 DIV + 70
----
1

skipif mysql # not compatible
query I rowsort label-6738
SELECT 91 / + 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL 11 + CASE + 67 WHEN COALESCE ( + 79, - COUNT( * ) + 16 ) THEN - ( SUM( 41 ) ) WHEN 96 THEN NULL WHEN + AVG ( ALL 49 ) * - 76 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL 11 + CASE + 67 WHEN COALESCE ( + 79, - COUNT ( * ) + 16 ) THEN - ( SUM ( 41 ) ) WHEN 96 THEN NULL WHEN + AVG ( ALL 49 ) * - 76 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6740
SELECT 80 AS col1, - 35 * CASE + 15 WHEN + ( COUNT( * ) ) THEN NULL WHEN + 80 THEN 54 * - COUNT( * ) END col1
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6740
SELECT 80 AS col1, - 35 * CASE + 15 WHEN + ( COUNT ( * ) ) THEN NULL WHEN + 80 THEN 54 * - COUNT ( * ) END col1
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT ALL 87 + - + CASE + 74 WHEN - NULLIF ( 58, 60 ) THEN 84 WHEN 23 THEN NULL ELSE CAST( NULL AS SIGNED ) * 28 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL 87 + - + CASE + 74 WHEN - NULLIF ( 58, 60 ) THEN 84 WHEN 23 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 28 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT 46 + - MIN( ALL 5 ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT 46 + - MIN ( ALL 5 ) * COUNT ( * )
----
41

query II rowsort
SELECT DISTINCT - 43, 41 + - 37 * 96 AS col0
----
-43
-3511

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT ALL - ( + 21 ) DIV + + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL - ( + 21 ) / + + 53 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT 17 DIV + - 53 * + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT 17 / + - 53 * + 46 AS col1
----
0

query I rowsort
SELECT 0 * 39 AS col1
----
0

query II rowsort
SELECT ALL 28 AS col1, + 22 AS col0
----
28
22

query I rowsort
SELECT 7 - + - 59 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT 18 AS col2, 86 + + 62 + - COUNT( * )
----
18
147

skipif mysql # not compatible
query II rowsort label-6749
SELECT 18 AS col2, 86 + + 62 + - COUNT ( * )
----
18
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT CAST( NULL AS SIGNED ) - + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT CAST ( NULL AS INTEGER ) - + - 5
----
NULL

query I rowsort
SELECT ALL + 34 * COALESCE ( - + 7, - 88 )
----
-238

query II rowsort
SELECT DISTINCT 88 AS col0, 2 AS col1
----
88
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT ALL ( - 49 ) * + CAST( - 18 AS SIGNED ) + + 92
----
974

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL ( - 49 ) * + CAST ( - 18 AS INTEGER ) + + 92
----
974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6754
SELECT - SUM( + - 17 ) * + ( + ( + CAST( NULL AS SIGNED ) ) ) + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT - SUM ( + - 17 ) * + ( + ( + CAST ( NULL AS INTEGER ) ) ) + + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT ALL CAST( 22 AS SIGNED ) * + + 15 col0
----
330

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL CAST ( 22 AS INTEGER ) * + + 15 col0
----
330

query I rowsort
SELECT - 17 - + 90 + - 56 + 3 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT DISTINCT - 76 * + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT - 76 * + + COUNT ( * )
----
-76

query I rowsort
SELECT + 61 + + ( + 98 ) * 64
----
6333

query I rowsort
SELECT - COALESCE ( - ( 55 ), 22 + - 48 ) - 30 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - 44 + - COUNT( * ) - 41 * + 49 AS col0
----
-2054

skipif mysql # not compatible
query I rowsort label-6760
SELECT - 44 + - COUNT ( * ) - 41 * + 49 AS col0
----
-2054

query II rowsort
SELECT ALL 12 AS col1, + 53 + - 40 - - 5 * ( - 92 * + 4 )
----
12
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - - 79 + - COUNT( * ) - + + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6762
SELECT - - 79 + - COUNT ( * ) - + + COUNT ( * ) AS col2
----
77

query I rowsort
SELECT - ( + - 7 ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6764
SELECT - + CAST( NULL AS SIGNED ) + - + 7 - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT - + CAST ( NULL AS INTEGER ) + - + 7 - + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6765
SELECT ALL - + COUNT( * ) DIV ( - 27 ) + + 38
----
38

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - + COUNT ( * ) / ( - 27 ) + + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT - - SUM( DISTINCT + - 92 ) + + + MAX( + 12 ) + 81
----
1

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - - SUM ( DISTINCT + - 92 ) + + + MAX ( + 12 ) + 81
----
1

query I rowsort
SELECT ALL + - 29 + - 34 + - 11 col1
----
-74

query II rowsort
SELECT DISTINCT 2, 62 * 92 AS col1
----
2
5704

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT ALL - 33 DIV + - 15 col2
----
2

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - 33 / + - 15 col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT + MAX( - ( - - 53 ) ) * 45 + - 20 * CAST( - 3 AS SIGNED ) AS col2
----
-2325

skipif mysql # not compatible
query I rowsort label-6770
SELECT + MAX ( - ( - - 53 ) ) * 45 + - 20 * CAST ( - 3 AS INTEGER ) AS col2
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT + CASE 24 WHEN + - 63 THEN + CAST( 76 AS SIGNED ) * COUNT( * ) END * - 87 + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT + CASE 24 WHEN + - 63 THEN + CAST ( 76 AS INTEGER ) * COUNT ( * ) END * - 87 + + 6 AS col2
----
NULL

query I rowsort
SELECT - + NULLIF ( - - 52, - - 41 + 40 ) * 70 AS col0
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL 38 * + MAX( ALL - + 44 ) * 16 + 43 * + 8
----
-26408

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL 38 * + MAX ( ALL - + 44 ) * 16 + 43 * + 8
----
-26408

query I rowsort
SELECT + ( - - 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT ALL - COUNT( * ) * + 81 + + 15 + + 19 DIV + ( - 75 )
----
-66

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - COUNT ( * ) * + 81 + + 15 + + 19 / + ( - 75 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT - 42 DIV + 81 - - 93 * + 90 + - 21 AS col0
----
8349

skipif mysql # not compatible
query I rowsort label-6776
SELECT - 42 / + 81 - - 93 * + 90 + - 21 AS col0
----
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT - 92 * + COUNT( DISTINCT 32 )
----
-92

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - 92 * + COUNT ( DISTINCT 32 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6778
SELECT ALL ( - + ( + CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) * - CAST( - 33 AS SIGNED ) + 1 + + CASE WHEN NOT NULL <> ( 24 + COALESCE ( - COUNT( 37 ), + 85, ( 92 ) * - 28 ) * + 72 ) THEN 91 * - 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL ( - + ( + CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) * - CAST ( - 33 AS INTEGER ) + 1 + + CASE WHEN NOT NULL <> ( 24 + COALESCE ( - COUNT ( 37 ), + 85, ( 92 ) * - 28 ) * + 72 ) THEN 91 * - 13 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL + 38 * - 15 - + + MIN( DISTINCT 94 ) * 85
----
-8560

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL + 38 * - 15 - + + MIN ( DISTINCT 94 ) * 85
----
-8560

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT 1 * - + 3 - + SUM( + 43 ) * 75
----
-3228

skipif mysql # not compatible
query I rowsort label-6780
SELECT 1 * - + 3 - + SUM ( + 43 ) * 75
----
-3228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6781
SELECT - COUNT( + 53 ) DIV 82 + 35 + 68 * - ( COALESCE ( ( 51 ), CAST( NULL AS SIGNED ), 67 ) + + 69 ) col2
----
-8125

skipif mysql # not compatible
query I rowsort label-6781
SELECT - COUNT ( + 53 ) / 82 + 35 + 68 * - ( COALESCE ( ( 51 ), CAST ( NULL AS INTEGER ), 67 ) + + 69 ) col2
----
-8125

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT + 52 + + - 52 * + 49 * - COALESCE ( 81, 86, SUM( ALL 42 ), + 39 + 56 * 98 ) * 0 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6782
SELECT + 52 + + - 52 * + 49 * - COALESCE ( 81, 86, SUM ( ALL 42 ), + 39 + 56 * 98 ) * 0 AS col0
----
52

query I rowsort
SELECT - 63 * + 42
----
-2646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6784
SELECT - 77 * MIN( - 86 ) DIV 37 DIV - 38 + + 0 * 50 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6784
SELECT - 77 * MIN ( - 86 ) / 37 / - 38 + + 0 * 50 AS col1
----
-4

query I rowsort
SELECT - 2 * 21 * 56 + + - 97 AS col1
----
-2449

query I rowsort
SELECT + 4 * 65
----
260

query I rowsort
SELECT + 16 + + 15 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL 28 * - NULLIF ( + COUNT( * ), + 19 + ( + 39 ) ) * 95 AS col1
----
-2660

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL 28 * - NULLIF ( + COUNT ( * ), + 19 + ( + 39 ) ) * 95 AS col1
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT - 30 * - 40 * - + COUNT( * ) * 27 AS col0
----
-32400

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - 30 * - 40 * - + COUNT ( * ) * 27 AS col0
----
-32400

query I rowsort
SELECT DISTINCT 57 * - 22
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT + 68 * - COUNT( * ) * 5 * + 34
----
-11560

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 68 * - COUNT ( * ) * 5 * + 34
----
-11560

query I rowsort
SELECT + 32 * - 0
----
0

query I rowsort
SELECT + - 94 + - 64
----
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT ALL - 88 DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - 88 / 57
----
-1

query I rowsort
SELECT ALL + ( 99 ) + + 35
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6796
SELECT DISTINCT - SUM( DISTINCT ( + 52 ) ) + + - ( - 12 ) + - 41 DIV 72
----
-40

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - SUM ( DISTINCT ( + 52 ) ) + + - ( - 12 ) + - 41 / 72
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL MIN( - + NULLIF ( - CAST( NULL AS SIGNED ), + + 97 * COALESCE ( 21, - COALESCE ( + ( - 36 ), + 41 * + 89 + - 72 ) * 87 + 90, CASE - 6 WHEN - ( 67 ) * - 92 THEN - 4 END ) ) ) + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL MIN ( - + NULLIF ( - CAST ( NULL AS INTEGER ), + + 97 * COALESCE ( 21, - COALESCE ( + ( - 36 ), + 41 * + 89 + - 72 ) * 87 + 90, CASE - 6 WHEN - ( 67 ) * - 92 THEN - 4 END ) ) ) + - 45 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT DISTINCT - 31 + + + 19 DIV - 3 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT - 31 + + + 19 / - 3 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL + - COUNT( * ) + - COUNT( * ) * - 30
----
29

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) * - 30
----
29

query I rowsort
SELECT ALL - COALESCE ( - - 63, - 66, 62 * 83 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT DISTINCT 92 + + + COALESCE ( ( + 84 ), + COUNT( * ) + + 5 * 9, - 2 ) + + 28 * + 18
----
680

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT 92 + + + COALESCE ( ( + 84 ), + COUNT ( * ) + + 5 * 9, - 2 ) + + 28 * + 18
----
680

query I rowsort
SELECT - - 92 * - ( 19 ) * + ( 3 ) + - 5 * 66 + - 53
----
-5627

query I rowsort
SELECT - 40 + ( 84 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT - + 98 + - 57 - 13 + - - MAX( 55 )
----
-113

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT - + 98 + - 57 - 13 + - - MAX ( 55 )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + - 35 + - MIN( ALL - 98 ) + 59
----
122

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + - 35 + - MIN ( ALL - 98 ) + 59
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT + MAX( 45 ) * 88 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT + MAX ( 45 ) * 88 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT - 88 DIV + COALESCE ( - ( 1 ), - 69, 26 )
----
88

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - 88 / + COALESCE ( - ( 1 ), - 69, 26 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT ALL + 10 DIV 57 - + ( ( + 14 ) ) DIV 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + 10 / 57 - + ( ( + 14 ) ) / 82 col2
----
0

query I rowsort
SELECT DISTINCT + 24 * + 10
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT - 35 DIV + + 71
----
0

skipif mysql # not compatible
query I rowsort label-6810
SELECT - 35 / + + 71
----
0

query I rowsort
SELECT - COALESCE ( 65, + - 9 ) * 73 * - + 99 - - 31
----
469786

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL + COUNT( * ) * + 50 * - NULLIF ( 8, ( 41 ) ) AS col0
----
-400

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL + COUNT ( * ) * + 50 * - NULLIF ( 8, ( 41 ) ) AS col0
----
-400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6813
SELECT ALL - 52 * - - CASE + CAST( + 48 AS DECIMAL ) WHEN - 23 THEN + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL - 52 * - - CASE + CAST ( + 48 AS REAL ) WHEN - 23 THEN + 85 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT - 99 DIV + - 1
----
99

skipif mysql # not compatible
query I rowsort label-6814
SELECT - 99 / + - 1
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6815
SELECT ALL + CASE 3 WHEN MIN( ALL + 94 ) THEN COALESCE ( + 8, 3 * 72, + 71 ) WHEN + NULLIF ( 94, + 99 * 56 ) * 4 THEN 17 / + CAST( - 69 AS DECIMAL ) - 50 * + 23 WHEN 45 THEN 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + CASE 3 WHEN MIN ( ALL + 94 ) THEN COALESCE ( + 8, 3 * 72, + 71 ) WHEN + NULLIF ( 94, + 99 * 56 ) * 4 THEN 17 / + CAST ( - 69 AS REAL ) - 50 * + 23 WHEN 45 THEN 78 END
----
NULL

query II rowsort
SELECT DISTINCT - 93, 20 AS col0
----
-93
20

query I rowsort
SELECT DISTINCT - ( - 87 ) AS col1
----
87

query II rowsort
SELECT 48 AS col0, 5 + + 72 AS col1
----
48
77

query I rowsort
SELECT 45 * - 47 * + 54 col0
----
-114210

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL - MIN( + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - MIN ( + 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT 80 * - COUNT( * ) + - 7 + - 74 + - 92 * + 48 * 66
----
-291617

skipif mysql # not compatible
query I rowsort label-6821
SELECT 80 * - COUNT ( * ) + - 7 + - 74 + - 92 * + 48 * 66
----
-291617

query I rowsort
SELECT 22 * + - 77 col0
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT 25 + + MAX( ALL - - 28 )
----
53

skipif mysql # not compatible
query I rowsort label-6823
SELECT 25 + + MAX ( ALL - - 28 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT 35 * COALESCE ( ( 32 ), COUNT( ALL - 78 ), + COUNT( * ) * ( - 14 ), + 99 * - 75 + + 51 ) AS col1
----
1120

skipif mysql # not compatible
query I rowsort label-6824
SELECT 35 * COALESCE ( ( 32 ), COUNT ( ALL - 78 ), + COUNT ( * ) * ( - 14 ), + 99 * - 75 + + 51 ) AS col1
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT 70 - - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6825
SELECT 70 - - COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL + COALESCE ( + + COALESCE ( + COUNT( * ), - 3 + - - 58 ), - 63 ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + COALESCE ( + + COALESCE ( + COUNT ( * ), - 3 + - - 58 ), - 63 ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6827
SELECT ALL - + 71 + + COALESCE ( ( - 76 ), - 4 DIV 12 - + COUNT( * ) )
----
-147

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - + 71 + + COALESCE ( ( - 76 ), - 4 / 12 - + COUNT ( * ) )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT - NULLIF ( - COUNT( * ), - 19 * 51 - + - NULLIF ( 82, - 42 ) * - 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6828
SELECT - NULLIF ( - COUNT ( * ), - 19 * 51 - + - NULLIF ( 82, - 42 ) * - 23 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6829
SELECT 62 + + 33 + 4 DIV - + 25 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6829
SELECT 62 + + 33 + 4 / - + 25 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL + 82 + + 54 + + + 55 + + COUNT( * ) + + 13 * + 36 * + 8 AS col0
----
3936

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL + 82 + + 54 + + + 55 + + COUNT ( * ) + + 13 * + 36 * + 8 AS col0
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL + - COUNT( DISTINCT - 80 ) * - 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + - COUNT ( DISTINCT - 80 ) * - 53 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6832
SELECT ALL - COUNT( * ) + - 13 + - 22 DIV + 37
----
-14

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - COUNT ( * ) + - 13 + - 22 / + 37
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6833
SELECT ALL - CAST( NULL AS SIGNED ) + CASE + CAST( NULL AS DECIMAL ) WHEN 68 THEN 83 END - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - CAST ( NULL AS INTEGER ) + CASE + CAST ( NULL AS REAL ) WHEN 68 THEN 83 END - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + ( - 6 ) - 62 * - 13
----
800

query I rowsort
SELECT 31 + 55
----
86

query I rowsort
SELECT ALL 99 + - + 92 * - - 17 AS col0
----
-1465

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT DISTINCT - 83 DIV - 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT - 83 / - 44 AS col2
----
1

query I rowsort
SELECT - ( + 96 ) + + + 91
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT 8 * + - CAST( NULL AS SIGNED ) + + - 33 - COUNT( + ( - 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT 8 * + - CAST ( NULL AS INTEGER ) + + - 33 - COUNT ( + ( - 68 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6840
SELECT - COALESCE ( COUNT( * ), - 65 DIV - AVG ( ALL ( 64 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6840
SELECT - COALESCE ( COUNT ( * ), - 65 / - AVG ( ALL ( 64 ) ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 39 - - + 81 * 20 + - 92 + 60
----
1549

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - NULLIF ( + NULLIF ( - 12, + + COUNT( - + 73 ) ), COUNT( * ) - + ( COUNT( * ) - 55 * 62 ) ) + + 50
----
62

skipif mysql # not compatible
query I rowsort label-6842
SELECT - NULLIF ( + NULLIF ( - 12, + + COUNT ( - + 73 ) ), COUNT ( * ) - + ( COUNT ( * ) - 55 * 62 ) ) + + 50
----
62

query I rowsort
SELECT ALL - 6 - - + 78 AS col1
----
72

query I rowsort
SELECT ALL - + 20 - - - NULLIF ( - - 20, - 42 ) AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT + 31 * + CAST( 71 AS SIGNED )
----
2201

skipif mysql # not compatible
query I rowsort label-6845
SELECT + 31 * + CAST ( 71 AS INTEGER )
----
2201

query I rowsort
SELECT ALL 65 * 29
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT SUM( + 47 ) + - COALESCE ( - 79, - - COUNT( - 39 ) + COUNT( * ) ) + 20 * - 11 * 45 AS col0
----
-9774

skipif mysql # not compatible
query I rowsort label-6847
SELECT SUM ( + 47 ) + - COALESCE ( - 79, - - COUNT ( - 39 ) + COUNT ( * ) ) + 20 * - 11 * 45 AS col0
----
-9774

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6848
SELECT DISTINCT 82 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT 82 * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 3 AS col0, 85 AS col1
----
3
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT NULLIF ( - + COUNT( * ), 64 + - 72 ) * - - 67 * 54 AS col1
----
-3618

skipif mysql # not compatible
query I rowsort label-6850
SELECT NULLIF ( - + COUNT ( * ), 64 + - 72 ) * - - 67 * 54 AS col1
----
-3618

query II rowsort
SELECT 36 * + 10 AS col0, + 86
----
360
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT - MAX( 30 ) / - CASE ( - + 71 ) WHEN + COALESCE ( 59, 11 ) THEN 85 * + 68 END + NULLIF ( - 99 + COALESCE ( 63, + 42 ) / SUM( ALL + 81 ), AVG ( 42 ) - 36 * 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT - MAX ( 30 ) / - CASE ( - + 71 ) WHEN + COALESCE ( 59, 11 ) THEN 85 * + 68 END + NULLIF ( - 99 + COALESCE ( 63, + 42 ) / SUM ( ALL + 81 ), AVG ( 42 ) - 36 * 6 )
----
NULL

query I rowsort
SELECT 16 + + + 20
----
36

query I rowsort
SELECT ALL + 75 * + + 74
----
5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6855
SELECT 20 AS col0, - COUNT( * ) DIV 38 AS col1
----
20
0

skipif mysql # not compatible
query II rowsort label-6855
SELECT 20 AS col0, - COUNT ( * ) / 38 AS col1
----
20
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6856
SELECT ALL + COUNT( + - 53 ) DIV 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + COUNT ( + - 53 ) / 19 AS col0
----
0

query I rowsort
SELECT 51 + - 30 + + ( - 74 ) col0
----
-53

query I rowsort
SELECT ALL + ( + NULLIF ( - 54, + 33 / ( + 72 ) + - 73 ) ) * - ( 25 ) AS col1
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT COUNT( * ) * 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6859
SELECT COUNT ( * ) * 54 AS col0
----
54

query I rowsort
SELECT 61 + ( - 19 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6861
SELECT ALL - NULLIF ( - 65, - COUNT( * ) * + 53 * - CAST( NULL AS SIGNED ) + 7 ) + 45 * + COUNT( + 93 * CAST( NULL AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - NULLIF ( - 65, - COUNT ( * ) * + 53 * - CAST ( NULL AS INTEGER ) + 7 ) + 45 * + COUNT ( + 93 * CAST ( NULL AS INTEGER ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT 76 * - - NULLIF ( + - COALESCE ( 31, COUNT( * ) * + 69 * + 21, MIN( - 16 ) ), + 66 + 67 ) + - 58 AS col1
----
-2414

skipif mysql # not compatible
query I rowsort label-6862
SELECT 76 * - - NULLIF ( + - COALESCE ( 31, COUNT ( * ) * + 69 * + 21, MIN ( - 16 ) ), + 66 + 67 ) + - 58 AS col1
----
-2414

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT - 3 + ( - 60 ) - 32 + - 66 * + + COUNT( ALL 20 ) * + COUNT( * ) col1
----
-161

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT - 3 + ( - 60 ) - 32 + - 66 * + + COUNT ( ALL 20 ) * + COUNT ( * ) col1
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL - 85 + 35 - + 73 * + 72 + - 43 - - COUNT( * ) * - 70
----
-5419

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL - 85 + 35 - + 73 * + 72 + - 43 - - COUNT ( * ) * - 70
----
-5419

query I rowsort
SELECT ALL - - 31 + 17 col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT DISTINCT - - COUNT( * ), 86 + 58 AS col0
----
1
144

skipif mysql # not compatible
query II rowsort label-6866
SELECT DISTINCT - - COUNT ( * ), 86 + 58 AS col0
----
1
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT + + ( CAST( + - CAST( 75 AS SIGNED ) AS SIGNED ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6867
SELECT + + ( CAST ( + - CAST ( 75 AS INTEGER ) AS INTEGER ) ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL - 6 + - MIN( DISTINCT - 66 )
----
60

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - 6 + - MIN ( DISTINCT - 66 )
----
60

query I rowsort
SELECT ALL + - 56 + + 29
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT + 39 * - - 44 + + 8 + - - COUNT( * )
----
1725

skipif mysql # not compatible
query I rowsort label-6870
SELECT + 39 * - - 44 + + 8 + - - COUNT ( * )
----
1725

query I rowsort
SELECT DISTINCT + NULLIF ( + + 77, 18 ) + + - 50 + + 62 + - 88
----
1

query I rowsort
SELECT - 13 + + 19 * 44 AS col0
----
823

query I rowsort
SELECT ALL + - ( - 48 ) - 80 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query III rowsort label-6874
SELECT - 49, + 53 AS col0, - COUNT( * ) AS col1
----
-49
53
-1

skipif mysql # not compatible
query III rowsort label-6874
SELECT - 49, + 53 AS col0, - COUNT ( * ) AS col1
----
-49
53
-1

query II rowsort
SELECT - 60 AS col1, - 76
----
-60
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL COUNT( * ) * - 1 * + - 68 - 76 * + 78
----
-5860

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL COUNT ( * ) * - 1 * + - 68 - 76 * + 78
----
-5860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6877
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV - - 92 * 7 - 49 * - + 87 AS col2
----
4263

skipif mysql # not compatible
query I rowsort label-6877
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - - 92 * 7 - 49 * - + 87 AS col2
----
4263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT ALL + 10 - 86 + 71 + - NULLIF ( ( - - SUM( DISTINCT 22 ) ), - CAST( 66 AS SIGNED ) + - 77 ) * ( 67 * - 46 ) * 51
----
3457999

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + 10 - 86 + 71 + - NULLIF ( ( - - SUM ( DISTINCT 22 ) ), - CAST ( 66 AS INTEGER ) + - 77 ) * ( 67 * - 46 ) * 51
----
3457999

query I rowsort
SELECT + 89 * - 91 + + 5 AS col0
----
-8094

query I rowsort
SELECT ALL + ( + ( - 23 ) )
----
-23

query I rowsort
SELECT ALL + 60 * + ( + 99 ) AS col0
----
5940

onlyif mysql # aggregate syntax: 
query III rowsort label-6882
SELECT ALL 95 col2, - 6 AS col1, - 30 + - - CASE 74 WHEN - - 69 THEN NULL ELSE 67 + - 77 * COUNT( * ) END * + 51 AS col2
----
95
-6
-540

skipif mysql # not compatible
query III rowsort label-6882
SELECT ALL 95 col2, - 6 AS col1, - 30 + - - CASE 74 WHEN - - 69 THEN NULL ELSE 67 + - 77 * COUNT ( * ) END * + 51 AS col2
----
95
-6
-540

query II rowsort
SELECT - 6, - 9 AS col0
----
-6
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL 17 DIV - + 67 col2
----
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL 17 / - + 67 col2
----
0

query I rowsort
SELECT 36 * + NULLIF ( + 61, 75 ) AS col0
----
2196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6886
SELECT ALL 35 DIV + - 57 AS col1, - 81 * + 27 + + CAST( NULL AS SIGNED ) * - 65
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6886
SELECT ALL 35 / + - 57 AS col1, - 81 * + 27 + + CAST ( NULL AS INTEGER ) * - 65
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT 70 * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT 70 * - COUNT ( * )
----
-70

query I rowsort
SELECT + 76 - + ( - 79 )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL 63 * + 28 * - - COUNT( * )
----
1764

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL 63 * + 28 * - - COUNT ( * )
----
1764

query I rowsort
SELECT + 69 * - - 43
----
2967

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL + 52 * - + MAX( DISTINCT - 68 ) + + COUNT( * ) AS col0
----
3537

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + 52 * - + MAX ( DISTINCT - 68 ) + + COUNT ( * ) AS col0
----
3537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT + NULLIF ( - 15, - 72 * + SUM( - CAST( + + 96 AS SIGNED ) ) * 23 - + 77 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6892
SELECT + NULLIF ( - 15, - 72 * + SUM ( - CAST ( + + 96 AS INTEGER ) ) * 23 - + 77 ) AS col0
----
-15

query I rowsort
SELECT ALL ( - 0 ) * - + 32 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6894
SELECT ALL 70 * + 88 + 94 - CAST( 69 AS SIGNED ), 78 + - + ( 88 ) AS col1
----
6185
-10

skipif mysql # not compatible
query II rowsort label-6894
SELECT ALL 70 * + 88 + 94 - CAST ( 69 AS INTEGER ), 78 + - + ( 88 ) AS col1
----
6185
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT NULLIF ( + ( - ( 51 ) ), + 94 * + - 46 * ( + SUM( 96 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6895
SELECT NULLIF ( + ( - ( 51 ) ), + 94 * + - 46 * ( + SUM ( 96 ) ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL + NULLIF ( - MIN( + 40 ), - - 62 * ( 54 ) / COUNT( * ) + + COUNT( * ) / NULLIF ( 58 * - 45, + 74 + 28 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + NULLIF ( - MIN ( + 40 ), - - 62 * ( 54 ) / COUNT ( * ) + + COUNT ( * ) / NULLIF ( 58 * - 45, + 74 + 28 ) )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT ALL + - ( 77 ) * - - COUNT( * ) - + CAST( NULL AS SIGNED ) - - - ( + - 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + - ( 77 ) * - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) - - - ( + - 92 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 54 * 79 + - 2 AS col2
----
4264

query I rowsort
SELECT ALL + 63 * + 41 - - + 19 + + 22
----
2624

query I rowsort
SELECT + 28 + - + 80 + 60 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6901
SELECT - + 88 * - 91 AS col1, COUNT( * ) * - COUNT( * )
----
8008
-1

skipif mysql # not compatible
query II rowsort label-6901
SELECT - + 88 * - 91 AS col1, COUNT ( * ) * - COUNT ( * )
----
8008
-1

query I rowsort
SELECT ALL + + 29 * - 3 AS col2
----
-87

query I rowsort
SELECT - - 19 + 89
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT - COUNT( * ) * - 36 * + 29 + + 55 + - - 96 DIV + COUNT( * ) - + 12 col1
----
1183

skipif mysql # not compatible
query I rowsort label-6904
SELECT - COUNT ( * ) * - 36 * + 29 + + 55 + - - 96 / + COUNT ( * ) - + 12 col1
----
1183

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL ( - + SUM( + 90 ) ) - + 4 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL ( - + SUM ( + 90 ) ) - + 4 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT + - COUNT( - + 92 ) * + + ( + + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + - COUNT ( - + 92 ) * + + ( + + 77 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT - - CAST( - 15 AS SIGNED ) + ( 48 ) * 74 - - - 58
----
3479

skipif mysql # not compatible
query I rowsort label-6907
SELECT - - CAST ( - 15 AS INTEGER ) + ( 48 ) * 74 - - - 58
----
3479

query I rowsort
SELECT ALL + 58 - - 38
----
96

query I rowsort
SELECT - 86 * - 56 AS col1
----
4816

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - 44 + 51 + - NULLIF ( - 40, COUNT( * ) + - SUM( 11 ) * ( 30 * 13 ) ) + 98 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-6910
SELECT - 44 + 51 + - NULLIF ( - 40, COUNT ( * ) + - SUM ( 11 ) * ( 30 * 13 ) ) + 98 AS col1
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT - 13 - + - COUNT( * ), 70 AS col2
----
-12
70

skipif mysql # not compatible
query II rowsort label-6911
SELECT - 13 - + - COUNT ( * ), 70 AS col2
----
-12
70

query I rowsort
SELECT - + 92 * 44 + + NULLIF ( - - 53, - NULLIF ( + - 49, 2 ) - COALESCE ( - 34, - NULLIF ( - 79, 78 * - 10 ), + 36 ) ) - ( + 25 )
----
-4020

query I rowsort
SELECT - + 87 * 76
----
-6612

query I rowsort
SELECT + ( 14 ) + 45
----
59

query I rowsort
SELECT DISTINCT + 65 * + 55 AS col2
----
3575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT ALL ( - CASE + 5 WHEN - 58 THEN NULL WHEN - ( + ( - + 97 ) ) THEN - MIN( 78 ) * CASE COUNT( * ) WHEN - 33 * 96 THEN NULL WHEN 84 * - 93 - 58 * AVG ( ALL + CAST( 52 AS SIGNED ) * + 30 ) THEN ( - COUNT( * ) ) ELSE - CAST( COALESCE ( 39, 8 ) AS SIGNED ) END WHEN 67 THEN 63 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL ( - CASE + 5 WHEN - 58 THEN NULL WHEN - ( + ( - + 97 ) ) THEN - MIN ( 78 ) * CASE COUNT ( * ) WHEN - 33 * 96 THEN NULL WHEN 84 * - 93 - 58 * AVG ( ALL + CAST ( 52 AS INTEGER ) * + 30 ) THEN ( - COUNT ( * ) ) ELSE - CAST ( COALESCE ( 39, 8 ) AS INTEGER ) END WHEN 67 THEN 63 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + ( 96 ) * + 55 AS col2
----
5280

query I rowsort
SELECT - 0 + - - 22 * - 65 AS col2
----
-1430

query I rowsort
SELECT - 17 * 35 AS col1
----
-595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT ALL CASE + - 81 WHEN NULLIF ( 93, + + 74 ) THEN + + 8 * - + 15 + - MAX( + 90 ) * CAST( + 85 * + 98 AS SIGNED ) WHEN 58 + 42 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL CASE + - 81 WHEN NULLIF ( 93, + + 74 ) THEN + + 8 * - + 15 + - MAX ( + 90 ) * CAST ( + 85 * + 98 AS INTEGER ) WHEN 58 + 42 THEN NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT - 2 * - + 28 AS col2
----
56

query I rowsort
SELECT ALL + ( + ( - - ( + 80 ) ) ) + 76
----
156

query II rowsort
SELECT ALL 10, 39 + - - 17 AS col1
----
10
56

query I rowsort
SELECT - 57 + + + 61 * + + 92
----
5555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT DISTINCT + 91 DIV - COUNT( * ) + - - 24 + - ( + COUNT( * ) ) DIV + COALESCE ( + 52, + 31 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + 91 / - COUNT ( * ) + - - 24 + - ( + COUNT ( * ) ) / + COALESCE ( + 52, + 31 ) AS col2
----
-67

query I rowsort
SELECT + ( + ( 21 ) )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT ALL 98 DIV - + 67 + - 10 * + + 35 + 89
----
-262

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL 98 / - + 67 + - 10 * + + 35 + 89
----
-262

query I rowsort
SELECT + 86 * + - 34
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL + COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + COUNT ( DISTINCT - 15 )
----
1

query I rowsort
SELECT + 3 + - - 3 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT + 22 * 77 * - 38 + 57 * + COUNT( * )
----
-64315

skipif mysql # not compatible
query I rowsort label-6931
SELECT + 22 * 77 * - 38 + 57 * + COUNT ( * )
----
-64315

query II rowsort
SELECT ALL + 34 AS col1, - 84 * - 15
----
34
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT DISTINCT 10 * + 1 - + - 30 AS col1, - MAX( - + 86 ) + + ( + 72 ) * + 42 * + 69 AS col0
----
40
208742

skipif mysql # not compatible
query II rowsort label-6933
SELECT DISTINCT 10 * + 1 - + - 30 AS col1, - MAX ( - + 86 ) + + ( + 72 ) * + 42 * + 69 AS col0
----
40
208742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6934
SELECT ALL + CAST( ( + 72 ) AS SIGNED ) AS col2, - SUM( 37 )
----
72
-37

skipif mysql # not compatible
query II rowsort label-6934
SELECT ALL + CAST ( ( + 72 ) AS INTEGER ) AS col2, - SUM ( 37 )
----
72
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT + - ( - - MIN( ALL 93 ) ) + 33
----
-60

skipif mysql # not compatible
query I rowsort label-6935
SELECT + - ( - - MIN ( ALL 93 ) ) + 33
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT ALL 64 * + SUM( ALL 71 ) - + 32
----
4512

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL 64 * + SUM ( ALL 71 ) - + 32
----
4512

query I rowsort
SELECT + + 98 * + 73 AS col0
----
7154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT + + COUNT( * ) + + - 99 - + 54 DIV 95 * - 15
----
-98

skipif mysql # not compatible
query I rowsort label-6938
SELECT + + COUNT ( * ) + + - 99 - + 54 / 95 * - 15
----
-98

query II rowsort
SELECT ALL + COALESCE ( - ( - - 27 ), - 19 ) AS col2, 62 col1
----
-27
62

query II rowsort
SELECT + 11, - 62 * 38 AS col1
----
11
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT + MAX( 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + MAX ( 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6942
SELECT + + ( - 59 ) DIV + 77 AS col0, - COUNT( * ) + + 88 * + COUNT( * )
----
0
87

skipif mysql # not compatible
query II rowsort label-6942
SELECT + + ( - 59 ) / + 77 AS col0, - COUNT ( * ) + + 88 * + COUNT ( * )
----
0
87

query I rowsort
SELECT DISTINCT - 71 * - 40
----
2840

query I rowsort
SELECT + + 38 * 34
----
1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT - + CAST( NULL AS SIGNED ) + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT - + CAST ( NULL AS INTEGER ) + 48 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT + - 21 DIV - + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6946
SELECT + - 21 / - + 79 AS col2
----
0

query I rowsort
SELECT - 7 * 30 + + - 13 + + - 79
----
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT - NULLIF ( - 46, + COUNT( * ) ) * + 5 * - + 25 AS col1
----
-5750

skipif mysql # not compatible
query I rowsort label-6948
SELECT - NULLIF ( - 46, + COUNT ( * ) ) * + 5 * - + 25 AS col1
----
-5750

query I rowsort
SELECT ALL - 77 + - 12
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT + COUNT( * ) * - - 87
----
87

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT + COUNT ( * ) * - - 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT - 8 + + CASE NULLIF ( 0, + - 47 ) WHEN MAX( DISTINCT 44 ) THEN NULL ELSE - 36 END
----
-44

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT - 8 + + CASE NULLIF ( 0, + - 47 ) WHEN MAX ( DISTINCT 44 ) THEN NULL ELSE - 36 END
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT DISTINCT COUNT( * ) * + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT COUNT ( * ) * + - 73
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6953
SELECT ALL + 16 + + 10 * - - 91 + 80 + CAST( NULL AS SIGNED ) * 66 * 71 AS col2, + 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6953
SELECT ALL + 16 + + 10 * - - 91 + 80 + CAST ( NULL AS INTEGER ) * 66 * 71 AS col2, + 46
----
NULL
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 80 * + 79 + + ( COUNT( - 32 ) ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 80 * + 79 + + ( COUNT ( - 32 ) ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT 16 * + 39 col1, + COUNT( + 72 ) AS col2
----
624
1

skipif mysql # not compatible
query II rowsort label-6955
SELECT 16 * + 39 col1, + COUNT ( + 72 ) AS col2
----
624
1

query I rowsort
SELECT 51 + 56 AS col0
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-6957
SELECT 61 + 60 AS col1, - NULLIF ( 69, + - 63 ) * - ( - MIN( ALL - 64 ) )
----
121
4416

skipif mysql # not compatible
query II rowsort label-6957
SELECT 61 + 60 AS col1, - NULLIF ( 69, + - 63 ) * - ( - MIN ( ALL - 64 ) )
----
121
4416

query I rowsort
SELECT ALL + NULLIF ( - - ( + 60 ), - + 7 * - - 77 ) + + 45
----
105

query II rowsort
SELECT ALL - 53 * 31 AS col1, 96 AS col2
----
-1643
96

query I rowsort
SELECT 41 * + 8 AS col2
----
328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT 44 - + COALESCE ( 24, COUNT( * ), + 67 ) + COUNT( - CAST( + - 24 AS SIGNED ) ) - - 63 * - 26 col2
----
-1617

skipif mysql # not compatible
query I rowsort label-6961
SELECT 44 - + COALESCE ( 24, COUNT ( * ), + 67 ) + COUNT ( - CAST ( + - 24 AS INTEGER ) ) - - 63 * - 26 col2
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT + 81 + - COUNT( - 38 )
----
80

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT + 81 + - COUNT ( - 38 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL 74 * - 99 * + ( + MAX( ALL + 9 ) )
----
-65934

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL 74 * - 99 * + ( + MAX ( ALL + 9 ) )
----
-65934

query II rowsort
SELECT DISTINCT - 36 - 3 AS col1, 15 * + 58
----
-39
870

query I rowsort
SELECT ALL - 27 * + 1
----
-27

query I rowsort
SELECT + 10 * + - 9 + + 52
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT 52 * + 68 + 38 + 87 + - CAST( NULL AS SIGNED ) * - - 9 / + COUNT( * ) * 15 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT 52 * + 68 + 38 + 87 + - CAST ( NULL AS INTEGER ) * - - 9 / + COUNT ( * ) * 15 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL + CAST( 84 AS SIGNED ) - - + 80 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL + CAST ( 84 AS INTEGER ) - - + 80 AS col2
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT - 66 DIV COUNT( * ) * - + 27 AS col0
----
1782

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT - 66 / COUNT ( * ) * - + 27 AS col0
----
1782

query I rowsort
SELECT DISTINCT - COALESCE ( 35, + 52 ) AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6971
SELECT ALL 76 * 58 DIV 30
----
146

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL 76 * 58 / 30
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT 31 * ( COUNT( ALL 82 ) ) * CASE + 62 WHEN - - ( + + ( - 25 ) ) THEN + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT 31 * ( COUNT ( ALL 82 ) ) * CASE + 62 WHEN - - ( + + ( - 25 ) ) THEN + 1 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( 79 ) * + 33 AS col2
----
2607

query I rowsort
SELECT + 68 - - 62 col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT COUNT( * ) + - - 59
----
60

skipif mysql # not compatible
query I rowsort label-6975
SELECT COUNT ( * ) + - - 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT 0 * + - 27 + - ( 48 ) * - MIN( DISTINCT 80 ) AS col2
----
3840

skipif mysql # not compatible
query I rowsort label-6976
SELECT 0 * + - 27 + - ( 48 ) * - MIN ( DISTINCT 80 ) AS col2
----
3840

query I rowsort
SELECT ALL 65 * + + NULLIF ( - + 74, 45 )
----
-4810

query I rowsort
SELECT DISTINCT 23 * + 30 col1
----
690

query I rowsort
SELECT DISTINCT - 79 + + + 97
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT + 4 + + COUNT( - 58 ) + + MAX( 60 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT + 4 + + COUNT ( - 58 ) + + MAX ( 60 ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT DISTINCT - 48 + - + 79 + - 77 + + 39 * + 38 + - ( CAST( NULL AS SIGNED ) ) - + 99 * - + 38 / + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT - 48 + - + 79 + - 77 + + 39 * + 38 + - ( CAST ( NULL AS INTEGER ) ) - + 99 * - + 38 / + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT DISTINCT - 84 + + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT - 84 + + COUNT ( * ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT 55 + - + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6983
SELECT 55 + - + COUNT ( * ) AS col1
----
54

query I rowsort
SELECT ALL 5 + - - 12
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ( 97 ) / - - COUNT( * ) * 34 / 27 * + + ( - CASE - - 62 WHEN - 16 * + 90 - + COUNT( * ) THEN MIN( 49 ) WHEN - 18 THEN 98 END ) * COUNT( * ) + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT ( 97 ) / - - COUNT ( * ) * 34 / 27 * + + ( - CASE - - 62 WHEN - 16 * + 90 - + COUNT ( * ) THEN MIN ( 49 ) WHEN - 18 THEN 98 END ) * COUNT ( * ) + 37 AS col1
----
NULL

query I rowsort
SELECT 44 + 78
----
122

query I rowsort
SELECT ALL - 58 * + 75
----
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT ALL CAST( 75 AS SIGNED ) * 4 col2
----
300

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL CAST ( 75 AS INTEGER ) * 4 col2
----
300

query II rowsort
SELECT ALL 77, 27 + - 4 + - 70 * - 64 * + 56 * + 35 AS col0
----
77
8780823

query I rowsort
SELECT DISTINCT - 50 - + 63 + + COALESCE ( - - 98, - - 18, + 97 * + + 50 * - - 26 + + - 99 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6991
SELECT CAST( + 19 AS SIGNED ) + 83
----
102

skipif mysql # not compatible
query I rowsort label-6991
SELECT CAST ( + 19 AS INTEGER ) + 83
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT 68 * + COUNT( * ) + NULLIF ( + + 17, - 90 * 60 ) + + - 57 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6992
SELECT 68 * + COUNT ( * ) + NULLIF ( + + 17, - 90 * 60 ) + + - 57 AS col2
----
28

query I rowsort
SELECT 60 * + 15
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + MAX( ALL 44 )
----
44

skipif mysql # not compatible
query I rowsort label-6994
SELECT + MAX ( ALL 44 )
----
44

query I rowsort
SELECT - 8 * - 90 * - 91 + - + 93 + + + 33 * + + 83 * - 81
----
-287472

query I rowsort
SELECT ALL + 37 * ( - 26 ) - + 11 AS col2
----
-973

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL - SUM( ALL - + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - SUM ( ALL - + 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT - 26 * + 2 + - 90 * 47 - - 63 + - 59 + 31 + - NULLIF ( + + 71, + 86 / + 99 + COUNT( * ) ) AS col2
----
-4318

skipif mysql # not compatible
query I rowsort label-6998
SELECT - 26 * + 2 + - 90 * 47 - - 63 + - 59 + 31 + - NULLIF ( + + 71, + 86 / + 99 + COUNT ( * ) ) AS col2
----
-4318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6999
SELECT DISTINCT - - 9, + NULLIF ( + CAST( NULL AS SIGNED ), - 94 / - - 44 + + CAST( NULL AS SIGNED ) + + + COUNT( - + 81 ) + NULLIF ( - ( 13 ), SUM( - 54 ) - COUNT( * ) * 38 ) / - 1 ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6999
SELECT DISTINCT - - 9, + NULLIF ( + CAST ( NULL AS INTEGER ), - 94 / - - 44 + + CAST ( NULL AS INTEGER ) + + + COUNT ( - + 81 ) + NULLIF ( - ( 13 ), SUM ( - 54 ) - COUNT ( * ) * 38 ) / - 1 ) AS col1
----
9
NULL

query II rowsort
SELECT ALL - - 83 AS col1, 54
----
83
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT - + 35 DIV + NULLIF ( + 58, - 3 ) + + 88
----
88

skipif mysql # not compatible
query I rowsort label-7001
SELECT - + 35 / + NULLIF ( + 58, - 3 ) + + 88
----
88

query I rowsort
SELECT ALL + - 5 * - + 87 * - 78 AS col2
----
-33930

query I rowsort
SELECT - 66 + - 80
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT ALL - 64 * 47 + - + 23 DIV - + 48 AS col0
----
-3008

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - 64 * 47 + - + 23 / - + 48 AS col0
----
-3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT 41 * - + 75 + - NULLIF ( + 11, - CAST( NULL AS SIGNED ) ) + 84 + - 69
----
-3071

skipif mysql # not compatible
query I rowsort label-7005
SELECT 41 * - + 75 + - NULLIF ( + 11, - CAST ( NULL AS INTEGER ) ) + 84 + - 69
----
-3071

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7006
SELECT ALL + 61 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + 61 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + + 38 + + 30 - 52 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - MIN( - + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-7008
SELECT - MIN ( - + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT COUNT( * ) * + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT COUNT ( * ) * + - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT - 17 * COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-7010
SELECT - 17 * COUNT ( * )
----
-17

query I rowsort
SELECT + 23 * - + 75
----
-1725

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7012
SELECT 45 AS col0, COUNT( * ) DIV 57 DIV - + 18 AS col2
----
45
0

skipif mysql # not compatible
query II rowsort label-7012
SELECT 45 AS col0, COUNT ( * ) / 57 / - + 18 AS col2
----
45
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7013
SELECT 80 AS col2, COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-7013
SELECT 80 AS col2, COUNT ( * ) AS col1
----
80
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT DISTINCT COALESCE ( 73, NULLIF ( + - 42, SUM( ALL 80 ) ) + - + 31 DIV - 41 * + + 92 ) * + COUNT( * ) * + 37 AS col1
----
2701

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT COALESCE ( 73, NULLIF ( + - 42, SUM ( ALL 80 ) ) + - + 31 / - 41 * + + 92 ) * + COUNT ( * ) * + 37 AS col1
----
2701

query I rowsort
SELECT ALL 5 - - + ( + 47 ) * - + 6
----
-277

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT DISTINCT 64 * - COUNT( ( 1 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT 64 * - COUNT ( ( 1 ) )
----
-64

query I rowsort
SELECT + 87 * + + 11 * - ( 93 )
----
-89001

query II rowsort
SELECT ALL 64, + ( - 94 ) AS col1
----
64
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT + COUNT( * ) + - - MAX( DISTINCT + 33 ) + - 41 DIV 84 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7019
SELECT + COUNT ( * ) + - - MAX ( DISTINCT + 33 ) + - 41 / 84 AS col1
----
34

query II rowsort
SELECT DISTINCT ( 55 ) * + 48 - 50, 88 AS col2
----
2590
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7021
SELECT DISTINCT 21, - COUNT( * ) AS col2
----
21
-1

skipif mysql # not compatible
query II rowsort label-7021
SELECT DISTINCT 21, - COUNT ( * ) AS col2
----
21
-1

query II rowsort
SELECT + 27 + - - 56, + 63 * + 83 AS col2
----
83
5229

query I rowsort
SELECT - ( + + 17 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT DISTINCT 98 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT 98 / 81
----
1

query II rowsort
SELECT DISTINCT 32, 61 + 6 + + 98 + - ( + 63 ) AS col2
----
32
102

query I rowsort
SELECT + COALESCE ( + 41, + 33 ) * - 65 AS col0
----
-2665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7027
SELECT - CAST( NULL AS SIGNED ) + - CASE - 37 WHEN - COUNT( * ) THEN - 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT - CAST ( NULL AS INTEGER ) + - CASE - 37 WHEN - COUNT ( * ) THEN - 30 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 32 * + - 57 AS col1, + 30 * + 31 AS col0
----
-1824
930

query I rowsort
SELECT + 97 * 82 * + 8 AS col0
----
63632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT - COALESCE ( - - CASE CAST( - 45 AS SIGNED ) WHEN 65 * + ( + 18 ) - - - 26 THEN NULL ELSE - 50 END, + + 47 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7030
SELECT - COALESCE ( - - CASE CAST ( - 45 AS INTEGER ) WHEN 65 * + ( + 18 ) - - - 26 THEN NULL ELSE - 50 END, + + 47 ) AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7031
SELECT + CAST( + + COALESCE ( COUNT( ALL + 36 ), - - 48 * + 15, + 88 + - + 47 ) AS SIGNED ) - - 50 DIV 4 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7031
SELECT + CAST ( + + COALESCE ( COUNT ( ALL + 36 ), - - 48 * + 15, + 88 + - + 47 ) AS INTEGER ) - - 50 / 4 AS col1
----
13

query I rowsort
SELECT + + 61 * + 55 * 83 AS col1
----
278465

query I rowsort
SELECT ALL ( + 50 ) * 61 * - 13
----
-39650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7034
SELECT + 14 * + 25 col0, 15 + + CAST( - - 98 AS SIGNED ) AS col0
----
350
113

skipif mysql # not compatible
query II rowsort label-7034
SELECT + 14 * + 25 col0, 15 + + CAST ( - - 98 AS INTEGER ) AS col0
----
350
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL + - SUM( ALL ( 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + - SUM ( ALL ( 44 ) )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7036
SELECT ALL - + 7 DIV - 7 DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - + 7 / - 7 / - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT ALL + 96 DIV + - 27 + - - 0 + - MAX( + - 77 )
----
74

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + 96 / + - 27 + - - 0 + - MAX ( + - 77 )
----
74

query I rowsort
SELECT + 81 * + 30 * - - 53 AS col1
----
128790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT - + COALESCE ( + 91, - COUNT( * ) ) * - + CAST( + 18 AS SIGNED )
----
1638

skipif mysql # not compatible
query I rowsort label-7039
SELECT - + COALESCE ( + 91, - COUNT ( * ) ) * - + CAST ( + 18 AS INTEGER )
----
1638

query I rowsort
SELECT ALL - 17 * - - 35 + - 47 AS col1
----
-642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL - COUNT( * ) * - - 78 * - 27 + - - ( - ( + CAST( - 50 AS SIGNED ) ) )
----
2156

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - COUNT ( * ) * - - 78 * - 27 + - - ( - ( + CAST ( - 50 AS INTEGER ) ) )
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL + COUNT( * ) * - + 34 * + - 92 AS col2
----
3128

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL + COUNT ( * ) * - + 34 * + - 92 AS col2
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) + 26 + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) + 26 + + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7044
SELECT DISTINCT + + 35 DIV - MIN( 6 ) + + 47 * + + 84 + 50 + - 20
----
3973

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + + 35 / - MIN ( 6 ) + + 47 * + + 84 + 50 + - 20
----
3973

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT - + COUNT( * ) * + 66 + - + 20 + + 43 + + 91
----
48

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT - + COUNT ( * ) * + 66 + - + 20 + + 43 + + 91
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7046
SELECT ALL + 16 * + 17 * - 70 / - CAST( NULL AS SIGNED ) + CAST( 38 AS SIGNED ) col1, NULLIF ( ( + + ( + 81 ) ), + 80 ) + - 8 col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL + 16 * + 17 * - 70 / - CAST ( NULL AS INTEGER ) + CAST ( 38 AS INTEGER ) col1, NULLIF ( ( + + ( + 81 ) ), + 80 ) + - 8 col0
----
NULL
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT - 53 * + CASE + 64 WHEN - SUM( ALL + 19 ) * + 64 * + 27 THEN - 1 ELSE NULL END / - 5 col0, + 9 + + 1 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7047
SELECT - 53 * + CASE + 64 WHEN - SUM ( ALL + 19 ) * + 64 * + 27 THEN - 1 ELSE NULL END / - 5 col0, + 9 + + 1 AS col1
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL + 88 * - ( + COUNT( * ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + 88 * - ( + COUNT ( * ) ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT + 14 * 5 * + - COUNT( 76 ) + - 19 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7049
SELECT + 14 * 5 * + - COUNT ( 76 ) + - 19 AS col2
----
-89

query I rowsort
SELECT + + ( + 76 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7051
SELECT - 10 + 17 AS col1, + 28 DIV + 7
----
7
4

skipif mysql # not compatible
query II rowsort label-7051
SELECT - 10 + 17 AS col1, + 28 / + 7
----
7
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT - COALESCE ( 31, + - 67 ) / - 13 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT - COALESCE ( 31, + - 67 ) / - 13 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 32 * ( 41 ) - COALESCE ( + - 73, + + 20 ) + + - 80 AS col1
----
-1319

query I rowsort
SELECT - 35 * + 28
----
-980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7055
SELECT CASE + - 13 WHEN CAST( NULL AS SIGNED ) - + 34 * + 2 THEN NULL ELSE CASE + 67 WHEN - + 53 THEN COUNT( * ) ELSE 78 * + 97 * + ( + NULLIF ( - 39, 85 ) ) + + NULLIF ( + COUNT( * ), 27 ) END END AS col1
----
-295073

skipif mysql # not compatible
query I rowsort label-7055
SELECT CASE + - 13 WHEN CAST ( NULL AS INTEGER ) - + 34 * + 2 THEN NULL ELSE CASE + 67 WHEN - + 53 THEN COUNT ( * ) ELSE 78 * + 97 * + ( + NULLIF ( - 39, 85 ) ) + + NULLIF ( + COUNT ( * ), 27 ) END END AS col1
----
-295073

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL 70 * + NULLIF ( + 78, 99 * - MIN( 95 ) * + AVG ( - - 0 ) + - 67 ) - - 42 AS col1
----
5502

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL 70 * + NULLIF ( + 78, 99 * - MIN ( 95 ) * + AVG ( - - 0 ) + - 67 ) - - 42 AS col1
----
5502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT + CASE - ( - - 17 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 38 THEN + + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT + CASE - ( - - 17 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 38 THEN + + 96 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 86, + 20 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT + 94 * - COUNT( * ) + - COUNT( * ) * - 29 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7059
SELECT + 94 * - COUNT ( * ) + - COUNT ( * ) * - 29 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-7060
SELECT DISTINCT - 13 DIV - 6 AS col1, - 97 * 99 col0
----
2
-9603

skipif mysql # not compatible
query II rowsort label-7060
SELECT DISTINCT - 13 / - 6 AS col1, - 97 * 99 col0
----
2
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL COUNT( * ) * - + 46 - - 34 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL COUNT ( * ) * - + 46 - - 34 AS col0
----
-12

query I rowsort
SELECT + ( - 85 ) + + - 21
----
-106

query I rowsort
SELECT + 9 + + + 56
----
65

query I rowsort
SELECT ALL 92 * + 19 * - 95
----
-166060

query I rowsort
SELECT + 3 * - 59
----
-177

query I rowsort
SELECT + ( + - 91 ) + 13 * - + 75 AS col1
----
-1066

query I rowsort
SELECT DISTINCT + 23 * 61 AS col1
----
1403

query I rowsort
SELECT - ( - + 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT ALL + 5 * - MAX( DISTINCT 45 ) AS col0, + 46 AS col2
----
-225
46

skipif mysql # not compatible
query II rowsort label-7069
SELECT ALL + 5 * - MAX ( DISTINCT 45 ) AS col0, + 46 AS col2
----
-225
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT DISTINCT SUM( DISTINCT + 38 ), - ( + 1 ) AS col2
----
38
-1

skipif mysql # not compatible
query II rowsort label-7070
SELECT DISTINCT SUM ( DISTINCT + 38 ), - ( + 1 ) AS col2
----
38
-1

query I rowsort
SELECT DISTINCT - 88 / ( - + CASE + 8 WHEN 3 THEN ( - 38 ) END ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7072
SELECT + + 24 - - - CASE + + ( COUNT( * ) ) WHEN 58 THEN + 77 WHEN 24 * 31 THEN NULL END col2, 79 DIV ( + 49 ) + 52 + - 7
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7072
SELECT + + 24 - - - CASE + + ( COUNT ( * ) ) WHEN 58 THEN + 77 WHEN 24 * 31 THEN NULL END col2, 79 / ( + 49 ) + 52 + - 7
----
NULL
46

query I rowsort
SELECT + - 55 + - - 82 * - - 76 * - 80 AS col2
----
-498615

query I rowsort
SELECT ALL - 44 + + - 62
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT + CASE - 2 WHEN + + MAX( ALL 69 ) THEN + 9 WHEN + + 3 THEN NULL ELSE - + 57 DIV - 44 + 28 END
----
29

skipif mysql # not compatible
query I rowsort label-7075
SELECT + CASE - 2 WHEN + + MAX ( ALL 69 ) THEN + 9 WHEN + + 3 THEN NULL ELSE - + 57 / - 44 + 28 END
----
29

query I rowsort
SELECT - 1 + - 33 + 44 * - 45 AS col2
----
-2014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL CASE + 84 WHEN + CAST( - 95 AS SIGNED ) THEN 13 - + COALESCE ( - 75, + 99 ) + - 16 - - 90 * + + 76 * - 38 * 34 WHEN - 66 + 96 * COUNT( * ) THEN NULL WHEN 42 THEN NULL END + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL CASE + 84 WHEN + CAST ( - 95 AS INTEGER ) THEN 13 - + COALESCE ( - 75, + 99 ) + - 16 - - 90 * + + 76 * - 38 * 34 WHEN - 66 + 96 * COUNT ( * ) THEN NULL WHEN 42 THEN NULL END + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + COUNT( * ) + + 89 * - MAX( + 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + COUNT ( * ) + + 89 * - MAX ( + 0 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7079
SELECT DISTINCT - CASE - - 11 WHEN + CASE - 53 WHEN - + 10 + - + 20 * - 51 THEN NULL WHEN - 95 * 59 THEN NULL ELSE + 65 END * 3 + - + 18 + 11 / 54 * - COALESCE ( 79 + + 11, - 91 * CASE 76 WHEN + 5 + - 29 / - CAST( + 69 + 56 * + COUNT( - 3 * CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN - MIN( + ( 16 ) ) * CAST( MIN( - 33 ) AS DECIMAL ) END + + 57, 28 - 70 ) THEN - 11 WHEN 64 THEN NULL ELSE - 83 END * - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - CASE - - 11 WHEN + CASE - 53 WHEN - + 10 + - + 20 * - 51 THEN NULL WHEN - 95 * 59 THEN NULL ELSE + 65 END * 3 + - + 18 + 11 / 54 * - COALESCE ( 79 + + 11, - 91 * CASE 76 WHEN + 5 + - 29 / - CAST ( + 69 + 56 * + COUNT ( - 3 * CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN - MIN ( + ( 16 ) ) * CAST ( MIN ( - 33 ) AS REAL ) END + + 57, 28 - 70 ) THEN - 11 WHEN 64 THEN NULL ELSE - 83 END * - COUNT ( * ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT DISTINCT - + 37 DIV - 59 + - 65
----
-65

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - + 37 / - 59 + - 65
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT 65 * + - 21 * - 92 DIV + 4 + 42 + 76 * - - 34 * - - 31
----
111541

skipif mysql # not compatible
query I rowsort label-7081
SELECT 65 * + - 21 * - 92 / + 4 + 42 + 76 * - - 34 * - - 31
----
111541

onlyif mysql # DIV for integer division: 
query I rowsort label-7082
SELECT - 66 DIV + - 79 * - 87 + - - ( + 57 ) + + 25
----
82

skipif mysql # not compatible
query I rowsort label-7082
SELECT - 66 / + - 79 * - 87 + - - ( + 57 ) + + 25
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL + SUM( 38 ) - + 60 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL + SUM ( 38 ) - + 60 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT + CAST( 52 AS SIGNED ) * - 64 * - 50 * + CASE - 10 WHEN + 9 THEN + 50 ELSE NULL END + - - AVG ( ( - 19 ) ) * - 85 - - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT + CAST ( 52 AS INTEGER ) * - 64 * - 50 * + CASE - 10 WHEN + 9 THEN + 50 ELSE NULL END + - - AVG ( ( - 19 ) ) * - 85 - - 77 AS col1
----
NULL

query I rowsort
SELECT 71 * + 21 AS col0
----
1491

query I rowsort
SELECT DISTINCT - ( + 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT ALL - COUNT( * ) AS col2, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-7087
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * )
----
-1
1

query II rowsort
SELECT 0, + 86 AS col1
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL COUNT( - ( + - 31 ) ) - + 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL COUNT ( - ( + - 31 ) ) - + 3 AS col2
----
-2

query I rowsort
SELECT ALL - 8 * 50
----
-400

query I rowsort
SELECT ALL - 99 * - 32
----
3168

query I rowsort
SELECT 61 * + ( 99 )
----
6039

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT DISTINCT 87 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT 87 / 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL - 8 * ( - 18 ) * + - 90 - - 28 + - MIN( ALL - + 51 ) AS col1
----
-12881

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - 8 * ( - 18 ) * + - 90 - - 28 + - MIN ( ALL - + 51 ) AS col1
----
-12881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7095
SELECT DISTINCT 65, CASE - 90 WHEN + 78 * 10 * + CAST( NULL AS SIGNED ) - - MAX( ALL - 35 ) THEN + - COUNT( * ) WHEN - - AVG ( DISTINCT + CASE 92 WHEN + 92 THEN NULL WHEN 34 THEN 88 ELSE NULL END ) THEN + 54 + ( + 74 ) WHEN 59 + 76 THEN NULL ELSE + 82 END AS col1
----
65
82

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT 65, CASE - 90 WHEN + 78 * 10 * + CAST ( NULL AS INTEGER ) - - MAX ( ALL - 35 ) THEN + - COUNT ( * ) WHEN - - AVG ( DISTINCT + CASE 92 WHEN + 92 THEN NULL WHEN 34 THEN 88 ELSE NULL END ) THEN + 54 + ( + 74 ) WHEN 59 + 76 THEN NULL ELSE + 82 END AS col1
----
65
82

query II rowsort
SELECT DISTINCT 22, - 20 AS col2
----
22
-20

query I rowsort
SELECT 99 * - 6
----
-594

onlyif mysql # DIV for integer division: 
query I rowsort label-7098
SELECT 5 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7098
SELECT 5 / 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT 76 + + MAX( DISTINCT + ( + 73 ) ) AS col2
----
149

skipif mysql # not compatible
query I rowsort label-7099
SELECT 76 + + MAX ( DISTINCT + ( + 73 ) ) AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT 79 - + SUM( 99 ) * + - COUNT( * ) * COUNT( DISTINCT + - 53 ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-7100
SELECT 79 - + SUM ( 99 ) * + - COUNT ( * ) * COUNT ( DISTINCT + - 53 ) AS col1
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT 29 col1, - NULLIF ( + - COUNT( * ), - 30 + - NULLIF ( - COUNT( * ), - 32 ) )
----
29
1

skipif mysql # not compatible
query II rowsort label-7101
SELECT 29 col1, - NULLIF ( + - COUNT ( * ), - 30 + - NULLIF ( - COUNT ( * ), - 32 ) )
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT 89 * - ( - 27 ) * + + CASE + 63 WHEN 16 THEN - NULLIF ( NULLIF ( COUNT( * ), + 81 ), - 63 + + 2 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT 89 * - ( - 27 ) * + + CASE + 63 WHEN 16 THEN - NULLIF ( NULLIF ( COUNT ( * ), + 81 ), - 63 + + 2 ) END col2
----
NULL

query I rowsort
SELECT ALL 62 * - 12 AS col2
----
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT 95 DIV - 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7104
SELECT 95 / - 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-7105
SELECT ALL ( ( + + 42 ) ) + - 60 AS col1, MIN( ALL + - 89 ) AS col1, + - 88 + 60 - - 58
----
-18
-89
30

skipif mysql # not compatible
query III rowsort label-7105
SELECT ALL ( ( + + 42 ) ) + - 60 AS col1, MIN ( ALL + - 89 ) AS col1, + - 88 + 60 - - 58
----
-18
-89
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT DISTINCT 31 * - CAST( + ( + CAST( - 14 AS SIGNED ) ) AS SIGNED ) + - + 34 AS col2
----
400

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT 31 * - CAST ( + ( + CAST ( - 14 AS INTEGER ) ) AS INTEGER ) + - + 34 AS col2
----
400

query I rowsort
SELECT + 36 * - - 90
----
3240

query I rowsort
SELECT 83 + + 19
----
102

query I rowsort
SELECT - 19 + - 80 - 18 * - 5 * - 25 AS col2
----
-2349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL - CAST( NULL AS SIGNED ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL - CAST ( NULL AS INTEGER ) * 98
----
NULL

query II rowsort
SELECT DISTINCT - 3 AS col1, 34
----
-3
34

query II rowsort
SELECT 62 * + ( - 81 ) AS col2, + 69 AS col0
----
-5022
69

query I rowsort
SELECT DISTINCT + 81 * - 98 * + 64 + - + 10
----
-508042

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL + COUNT( * ) + - 97 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + COUNT ( * ) + - 97 AS col2
----
-96

query I rowsort
SELECT ALL + 32 + + + 0 + + 87
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL - - COALESCE ( COUNT( * ), - 3 + - 99 * - 9, - 57, + NULLIF ( + COUNT( DISTINCT + 8 ), - + 86 ) * - - 32 * - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - - COALESCE ( COUNT ( * ), - 3 + - 99 * - 9, - 57, + NULLIF ( + COUNT ( DISTINCT + 8 ), - + 86 ) * - - 32 * - 1 )
----
1

query I rowsort
SELECT + 26 * + + 61 AS col2
----
1586

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7118
SELECT - ( 30 ) DIV - CAST( - 33 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7118
SELECT - ( 30 ) / - CAST ( - 33 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT 93, - 16 * + CASE - COUNT( * ) WHEN + + ( 12 ) THEN NULL WHEN + + 91 * - AVG ( 29 ) + 76 * NULLIF ( COUNT( * ), + + SUM( DISTINCT + 27 ) ) * - 91 THEN + 77 ELSE NULL END * CASE + 1 + + NULLIF ( - 15 + 61 * 52, 2 ) * + 4 WHEN + 7 + + 68 THEN NULL ELSE - 21 END - 38 AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-7119
SELECT 93, - 16 * + CASE - COUNT ( * ) WHEN + + ( 12 ) THEN NULL WHEN + + 91 * - AVG ( 29 ) + 76 * NULLIF ( COUNT ( * ), + + SUM ( DISTINCT + 27 ) ) * - 91 THEN + 77 ELSE NULL END * CASE + 1 + + NULLIF ( - 15 + 61 * 52, 2 ) * + 4 WHEN + 7 + + 68 THEN NULL ELSE - 21 END - 38 AS col0
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL COUNT( * ) - + 91 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL COUNT ( * ) - + 91 AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT ALL + 38 DIV - + 19
----
-2

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + 38 / - + 19
----
-2

query I rowsort
SELECT - 93 * 80 + + 84
----
-7356

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT - 2 - MIN( DISTINCT 18 ) + + 38 + 48 * - COUNT( * ) * - + 94 * ( - - 14 )
----
63186

skipif mysql # not compatible
query I rowsort label-7123
SELECT - 2 - MIN ( DISTINCT 18 ) + + 38 + 48 * - COUNT ( * ) * - + 94 * ( - - 14 )
----
63186

query I rowsort
SELECT 0 * - 13
----
0

query I rowsort
SELECT DISTINCT - 5 * 48
----
-240

query I rowsort
SELECT - 47 * - 33 + + + 77 - 16 AS col0
----
1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT ALL CAST( AVG ( ALL 95 ) AS SIGNED ) - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL CAST ( AVG ( ALL 95 ) AS INTEGER ) - COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7128
SELECT DISTINCT - NULLIF ( 70, - COUNT( * ) * - CAST( + 8 AS SIGNED ) + + 77 + + 79 + 37 )
----
-70

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT - NULLIF ( 70, - COUNT ( * ) * - CAST ( + 8 AS INTEGER ) + + 77 + + 79 + 37 )
----
-70

query I rowsort
SELECT ALL 46 * + 67 AS col2
----
3082

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT DISTINCT + 49 DIV - 2
----
-24

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT + 49 / - 2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT - 86 * - COUNT( * ) + + SUM( - - 4 ) * + 12 * + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 86 * - COUNT ( * ) + + SUM ( - - 4 ) * + 12 * + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 9 ) - - 50 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT DISTINCT 33 + - 58 * + + 58 + 17 + - + COUNT( * ) * 28 AS col1
----
-3342

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT 33 + - 58 * + + 58 + 17 + - + COUNT ( * ) * 28 AS col1
----
-3342

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT ( - 80 ) + - 50 + 44 DIV + 64 col0
----
-130

skipif mysql # not compatible
query I rowsort label-7134
SELECT ( - 80 ) + - 50 + 44 / + 64 col0
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7135
SELECT 79 + + 38 AS col2, + CAST( - + 43 AS SIGNED )
----
117
-43

skipif mysql # not compatible
query II rowsort label-7135
SELECT 79 + + 38 AS col2, + CAST ( - + 43 AS INTEGER )
----
117
-43

query I rowsort
SELECT 85 * - 75 AS col1
----
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT + COUNT( * ) * - 89 * + - 48 + - - 10 * + + COALESCE ( - COALESCE ( + 10, 37 * + - 69 ), - COUNT( - 45 ) )
----
4172

skipif mysql # not compatible
query I rowsort label-7137
SELECT + COUNT ( * ) * - 89 * + - 48 + - - 10 * + + COALESCE ( - COALESCE ( + 10, 37 * + - 69 ), - COUNT ( - 45 ) )
----
4172

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL SUM( ALL + - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL SUM ( ALL + - 15 )
----
-15

query I rowsort
SELECT DISTINCT - 51 * 92 AS col0
----
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL 32 + SUM( DISTINCT - 28 ) * - + 83 AS col1
----
2356

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL 32 + SUM ( DISTINCT - 28 ) * - + 83 AS col1
----
2356

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT DISTINCT SUM( DISTINCT 9 ) AS col1, 73
----
9
73

skipif mysql # not compatible
query II rowsort label-7141
SELECT DISTINCT SUM ( DISTINCT 9 ) AS col1, 73
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT - CASE - ( + CASE - MIN( + - 42 ) WHEN + 44 THEN NULL WHEN 20 THEN NULL WHEN - 74 THEN NULLIF ( + + 51, 3 + + 72 ) - - 71 - - 42 + 83 ELSE NULL END ) WHEN + 62 * 64 THEN MAX( + 23 ) ELSE 63 END col1
----
-63

skipif mysql # not compatible
query I rowsort label-7142
SELECT - CASE - ( + CASE - MIN ( + - 42 ) WHEN + 44 THEN NULL WHEN 20 THEN NULL WHEN - 74 THEN NULLIF ( + + 51, 3 + + 72 ) - - 71 - - 42 + 83 ELSE NULL END ) WHEN + 62 * 64 THEN MAX ( + 23 ) ELSE 63 END col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7143
SELECT 14 + + + 82 + + CAST( - CAST( - 53 AS SIGNED ) AS SIGNED ) AS col1, + 10 AS col1
----
149
10

skipif mysql # not compatible
query II rowsort label-7143
SELECT 14 + + + 82 + + CAST ( - CAST ( - 53 AS INTEGER ) AS INTEGER ) AS col1, + 10 AS col1
----
149
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL MIN( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL MIN ( 7 )
----
7

query II rowsort
SELECT - 8 + + - ( + 56 ) + + 12 AS col1, 55
----
-52
55

query I rowsort
SELECT DISTINCT + ( - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL - + 71 + - 35 - - 44 + - COALESCE ( NULLIF ( + 3, - - 14 ), CASE + 69 WHEN 21 THEN COUNT( * ) * - COUNT( 84 ) * - 43 + 67 + ( - COUNT( * ) ) ELSE 10 - 24 END * - 82 ) * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - + 71 + - 35 - - 44 + - COALESCE ( NULLIF ( + 3, - - 14 ), CASE + 69 WHEN 21 THEN COUNT ( * ) * - COUNT ( 84 ) * - 43 + 67 + ( - COUNT ( * ) ) ELSE 10 - 24 END * - 82 ) * - COUNT ( * )
----
-59

query I rowsort
SELECT - ( - 59 ) * 16
----
944

query I rowsort
SELECT DISTINCT + 61 - + 61 * - + 11
----
732

query I rowsort
SELECT ALL + ( - 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT DISTINCT + - 29 - COUNT( * ) * + 8 * 33 AS col1, 37 col2
----
-293
37

skipif mysql # not compatible
query II rowsort label-7151
SELECT DISTINCT + - 29 - COUNT ( * ) * + 8 * 33 AS col1, 37 col2
----
-293
37

query I rowsort
SELECT - - 22 * 86 AS col1
----
1892

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7153
SELECT - 19 - + - 65 AS col1, + 68 DIV + 41 + - SUM( - 21 ) * COUNT( * ) AS col2, + 49 AS col1
----
46
22
49

skipif mysql # not compatible
query III rowsort label-7153
SELECT - 19 - + - 65 AS col1, + 68 / + 41 + - SUM ( - 21 ) * COUNT ( * ) AS col2, + 49 AS col1
----
46
22
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) / + ( - - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / + ( - - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT DISTINCT - 9 * + - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - 9 * + - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT + CAST( - + COUNT( DISTINCT + + 18 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7156
SELECT + CAST ( - + COUNT ( DISTINCT + + 18 ) AS INTEGER ) AS col2
----
-1

query II rowsort
SELECT ALL - 76 * - 10 AS col1, 23
----
760
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT - - CAST( + + 55 AS SIGNED ) + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7158
SELECT - - CAST ( + + 55 AS INTEGER ) + - COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT - - MAX( + + 35 ) * - 82 AS col1
----
-2870

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT - - MAX ( + + 35 ) * - 82 AS col1
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + COUNT( * ) * 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7160
SELECT + COUNT ( * ) * 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL + MIN( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + MIN ( + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT CASE - 85 WHEN + 32 * - 26 THEN + COUNT( * ) * - 3 WHEN + 65 THEN - - MAX( - - 24 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7162
SELECT CASE - 85 WHEN + 32 * - 26 THEN + COUNT ( * ) * - 3 WHEN + 65 THEN - - MAX ( - - 24 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT NULLIF ( + 11, + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7163
SELECT NULLIF ( + 11, + COUNT ( * ) )
----
11

query I rowsort
SELECT + 34 + - 22 AS col2
----
12

query I rowsort
SELECT NULLIF ( 23, 65 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - COUNT( * ) * 68 * + 56
----
-3808

skipif mysql # not compatible
query I rowsort label-7166
SELECT - COUNT ( * ) * 68 * + 56
----
-3808

query I rowsort
SELECT DISTINCT 82 * + 77 + + 97
----
6411

query I rowsort
SELECT ALL 50 * - 27 + 57 AS col2
----
-1293

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7169
SELECT + CASE 67 WHEN + 67 THEN - - COUNT( * ) * + 72 + + + 44 DIV 45 ELSE NULL END * + 72 AS col0, + 55
----
5184
55

skipif mysql # not compatible
query II rowsort label-7169
SELECT + CASE 67 WHEN + 67 THEN - - COUNT ( * ) * + 72 + + + 44 / 45 ELSE NULL END * + 72 AS col0, + 55
----
5184
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT DISTINCT ( + CAST( - + 38 AS SIGNED ) ) * - + 81 + 11 * 54 AS col0
----
3672

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT ( + CAST ( - + 38 AS INTEGER ) ) * - + 81 + 11 * 54 AS col0
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT MAX( DISTINCT 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7171
SELECT MAX ( DISTINCT 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL 94 * - 86 + + - MAX( ALL + - 54 ) + - 46 AS col1
----
-8076

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL 94 * - 86 + + - MAX ( ALL + - 54 ) + - 46 AS col1
----
-8076

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT + SUM( ALL + 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7173
SELECT + SUM ( ALL + 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT + 15 - - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7174
SELECT + 15 - - COUNT ( * ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT MAX( + - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7175
SELECT MAX ( + - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7176
SELECT ALL 35 AS col1, MAX( - + 10 ) col0
----
35
-10

skipif mysql # not compatible
query II rowsort label-7176
SELECT ALL 35 AS col1, MAX ( - + 10 ) col0
----
35
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT MAX( ALL 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7177
SELECT MAX ( ALL 89 ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7178
SELECT 1 * + + COUNT( * ) + + + CAST( NULL AS SIGNED ) + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT 1 * + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + 49
----
NULL

query II rowsort
SELECT ALL 48 AS col0, 21 + + + 25 AS col0
----
48
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT + - COUNT( * ) - + - 5 + + 44 DIV - ( 7 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7180
SELECT + - COUNT ( * ) - + - 5 + + 44 / - ( 7 ) AS col1
----
-2

query I rowsort
SELECT ALL + COALESCE ( - + 34, + 85 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7182
SELECT - ( + ( - 92 ) ) AS col1, - COUNT( * ) + + + COALESCE ( 6, - + 6, - 49 * + 13 * + 93 * 41 + - 13 * 0 ) + 4 AS col2
----
92
9

skipif mysql # not compatible
query II rowsort label-7182
SELECT - ( + ( - 92 ) ) AS col1, - COUNT ( * ) + + + COALESCE ( 6, - + 6, - 49 * + 13 * + 93 * 41 + - 13 * 0 ) + 4 AS col2
----
92
9

query I rowsort
SELECT - 81 * 63 * - NULLIF ( - + 46, - 50 )
----
-234738

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + 15 * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + 15 * - COUNT ( * )
----
-15

query I rowsort
SELECT - + 35 + 94 AS col2
----
59

query I rowsort
SELECT - - 60 + + 5 AS col0
----
65

query II rowsort
SELECT - CASE + 44 WHEN ( 45 ) THEN 31 END, NULLIF ( + 92, + ( - 89 ) ) AS col1
----
NULL
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT - - 16 DIV + 61 * - ( - - 61 ) * 42 * - - 92 * - - COUNT( * ) DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT - - 16 / + 61 * - ( - - 61 ) * 42 * - - 92 * - - COUNT ( * ) / + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL - 10 * - COUNT( * ) * - - 95
----
950

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - 10 * - COUNT ( * ) * - - 95
----
950

query I rowsort
SELECT - - ( + 32 ) col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT NULLIF ( 60, 42 * - CASE + 96 WHEN + 61 THEN NULL ELSE + 30 * - 42 * - + 94 + + COUNT( * ) + + COUNT( * ) + - - 2 * + AVG ( DISTINCT 35 ) * + + 24 * 24 END )
----
60

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT NULLIF ( 60, 42 * - CASE + 96 WHEN + 61 THEN NULL ELSE + 30 * - 42 * - + 94 + + COUNT ( * ) + + COUNT ( * ) + - - 2 * + AVG ( DISTINCT 35 ) * + + 24 * 24 END )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT ALL + + 1 DIV ( + 41 ) DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + + 1 / ( + 41 ) / + 11
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7193
SELECT - 11 DIV + + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT - 11 / + + 91 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT ALL + - 76 * + 76 - + CAST( - + 46 AS SIGNED )
----
-5730

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + - 76 * + 76 - + CAST ( - + 46 AS INTEGER )
----
-5730

query II rowsort
SELECT ALL + 49 * 32, 88 col0
----
1568
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7196
SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST( NULL AS SIGNED ) * - 97 * + 6 + - + 41 + - - 50 AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST ( NULL AS INTEGER ) * - 97 * + 6 + - + 41 + - - 50 AS col0
----
8
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7197
SELECT ( ( - 43 ) ) * ( - - CAST( COUNT( * ) AS SIGNED ) ) - - + 85 * + COUNT( * ) - 23 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7197
SELECT ( ( - 43 ) ) * ( - - CAST ( COUNT ( * ) AS INTEGER ) ) - - + 85 * + COUNT ( * ) - 23 AS col0
----
19

query II rowsort
SELECT ALL + 53, - 95 AS col0
----
53
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT - ( 56 ) * CASE - 77 WHEN 59 THEN + + 77 WHEN + COUNT( * ) THEN - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT - ( 56 ) * CASE - 77 WHEN 59 THEN + + 77 WHEN + COUNT ( * ) THEN - 98 END
----
NULL

query I rowsort
SELECT + 39 * + 42 + 85
----
1723

onlyif mysql # aggregate syntax: 
query II rowsort label-7201
SELECT + 80 AS col2, COUNT( * ) + + 49
----
80
50

skipif mysql # not compatible
query II rowsort label-7201
SELECT + 80 AS col2, COUNT ( * ) + + 49
----
80
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT 15 * + - 95 - - 97 * - ( SUM( - ( - + 38 ) ) ) AS col0
----
-5111

skipif mysql # not compatible
query I rowsort label-7202
SELECT 15 * + - 95 - - 97 * - ( SUM ( - ( - + 38 ) ) ) AS col0
----
-5111

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT ALL ( - - COUNT( * ) ) - + SUM( 83 ) / CASE + 44 WHEN - + 25 * + - 84 THEN - 57 + - + COUNT( DISTINCT + 16 ) END AS col0, + 44 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-7203
SELECT ALL ( - - COUNT ( * ) ) - + SUM ( 83 ) / CASE + 44 WHEN - + 25 * + - 84 THEN - 57 + - + COUNT ( DISTINCT + 16 ) END AS col0, + 44 AS col1
----
NULL
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7204
SELECT COUNT( * ) + - + MIN( - COALESCE ( 65, - 62 ) ) DIV 94 - - 29
----
30

skipif mysql # not compatible
query I rowsort label-7204
SELECT COUNT ( * ) + - + MIN ( - COALESCE ( 65, - 62 ) ) / 94 - - 29
----
30

query I rowsort
SELECT - 33 * 86 + + + 1 * + 94 AS col1
----
-2744

query I rowsort
SELECT ALL 82 * 75 AS col2
----
6150

query II rowsort
SELECT - - 60 AS col2, 41 * 54
----
60
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT 39 + ( + - MIN( + 8 ) )
----
31

skipif mysql # not compatible
query I rowsort label-7208
SELECT 39 + ( + - MIN ( + 8 ) )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7209
SELECT MIN( DISTINCT 35 ) AS col1, - COUNT( * ) * 79
----
35
-79

skipif mysql # not compatible
query II rowsort label-7209
SELECT MIN ( DISTINCT 35 ) AS col1, - COUNT ( * ) * 79
----
35
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT COUNT( - + 68 ) + - + 84 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7210
SELECT COUNT ( - + 68 ) + - + 84 AS col0
----
-83

query II rowsort
SELECT ( - + 14 ) * 31 * 56, ( 3 ) AS col1
----
-24304
3

query I rowsort
SELECT 29 * - 53 AS col1
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + 6 + COUNT( - 76 ) - - 14 + 36 col1
----
57

skipif mysql # not compatible
query I rowsort label-7213
SELECT + 6 + COUNT ( - 76 ) - - 14 + 36 col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT + 45 * - COUNT( * ) AS col0, COUNT( * ) AS col2
----
-45
1

skipif mysql # not compatible
query II rowsort label-7214
SELECT + 45 * - COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-45
1

query I rowsort
SELECT - NULLIF ( 2, - CASE + + ( - NULLIF ( 48, 49 * 83 + - + 97 ) ) WHEN + + 0 THEN NULL WHEN - 54 - 54 - + + 38 * - 30 * + ( 83 ) THEN + 26 + - 28 ELSE NULL END )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL + - 49 * - + COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + - 49 * - + COUNT ( * ) AS col0
----
49

query I rowsort
SELECT 55 + + 73 * + + 12
----
931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT ALL CAST( - 83 AS SIGNED ) + + 67
----
-16

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL CAST ( - 83 AS INTEGER ) + + 67
----
-16

query II rowsort
SELECT ALL 1, 65 * + - 0 col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL - MAX( + 6 ) + 25
----
19

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL - MAX ( + 6 ) + 25
----
19

query I rowsort
SELECT + 4 - + 67 AS col0
----
-63

query I rowsort
SELECT DISTINCT - ( - NULLIF ( 19, 80 * - + 55 ) )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT ALL + CAST( - 59 AS SIGNED ) + - 82 + - 84 col1
----
-225

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + CAST ( - 59 AS INTEGER ) + - 82 + - 84 col1
----
-225

query I rowsort
SELECT DISTINCT 58 + + 72 + + 49 * + + 93 col2
----
4687

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7225
SELECT ALL - 9 + CASE 45 WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE - 7 + ( 27 ) END + - 0 DIV COUNT( + 23 ) + - 62 * 95
----
-5879

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - 9 + CASE 45 WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE - 7 + ( 27 ) END + - 0 / COUNT ( + 23 ) + - 62 * 95
----
-5879

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT MAX( ALL + 3 ) + - 57 + - 55 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-7226
SELECT MAX ( ALL + 3 ) + - 57 + - 55 AS col1
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT 99 DIV + 97
----
1

skipif mysql # not compatible
query I rowsort label-7227
SELECT 99 / + 97
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7228
SELECT ( 43 ) DIV + - 69 - - - 96 * NULLIF ( COUNT( * ), - + 7 ) + 11 * - COUNT( * ) + + CAST( + + 81 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7228
SELECT ( 43 ) / + - 69 - - - 96 * NULLIF ( COUNT ( * ), - + 7 ) + 11 * - COUNT ( * ) + + CAST ( + + 81 AS INTEGER ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT 22 + - 40 * + + NULLIF ( + 30, ( - + MAX( - + 73 ) ) )
----
-1178

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT 22 + - 40 * + + NULLIF ( + 30, ( - + MAX ( - + 73 ) ) )
----
-1178

onlyif mysql # DIV for integer division: 
query II rowsort label-7230
SELECT ALL - 18 DIV - 59 * - 90 AS col0, 94 AS col2
----
0
94

skipif mysql # not compatible
query II rowsort label-7230
SELECT ALL - 18 / - 59 * - 90 AS col0, 94 AS col2
----
0
94

query I rowsort
SELECT 95 * + - 94 AS col1
----
-8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT - 73 * + CAST( - 55 AS SIGNED ) * - MIN( ALL + 85 ) + - + 55 col0
----
-341330

skipif mysql # not compatible
query I rowsort label-7232
SELECT - 73 * + CAST ( - 55 AS INTEGER ) * - MIN ( ALL + 85 ) + - + 55 col0
----
-341330

query II rowsort
SELECT 8 * 92 col1, 39 AS col1
----
736
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT 85 * - 16 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT 85 * - 16 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 1 * 71 AS col1, - 42 AS col2
----
-71
-42

query I rowsort
SELECT 95 * 99
----
9405

query I rowsort
SELECT 19 * + 1 * - + 0 + - 84
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT ALL - CAST( + 33 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - CAST ( + 33 AS INTEGER ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT - MAX( ALL 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - MAX ( ALL 29 ) AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT DISTINCT + 37 * + ( - + 37 ) + + + 78 + + - 65 DIV - 69
----
-1291

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT + 37 * + ( - + 37 ) + + + 78 + + - 65 / - 69
----
-1291

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7241
SELECT DISTINCT - COUNT( DISTINCT + - CAST( 22 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - COUNT ( DISTINCT + - CAST ( 22 AS REAL ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + CASE + 0 WHEN + - 88 THEN - 93 WHEN - 35 THEN NULL ELSE NULL END - + - COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT + CASE + 0 WHEN + - 88 THEN - 93 WHEN - 35 THEN NULL ELSE NULL END - + - COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + 2 * + 79 + + NULLIF ( COUNT( * ), COUNT( * ) ) + - MAX( ALL + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT + 2 * + 79 + + NULLIF ( COUNT ( * ), COUNT ( * ) ) + - MAX ( ALL + 46 )
----
NULL

query I rowsort
SELECT 23 - - 77
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT 0 DIV 80 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT 0 / 80 * - 58 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT 44 * - + CAST( NULL AS SIGNED ) * 14 * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT 44 * - + CAST ( NULL AS INTEGER ) * 14 * - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT - COUNT( * ) * + 14 * - COUNT( * ) - 98 * - - 26 * COUNT( * ) + + 82
----
-2452

skipif mysql # not compatible
query I rowsort label-7247
SELECT - COUNT ( * ) * + 14 * - COUNT ( * ) - 98 * - - 26 * COUNT ( * ) + + 82
----
-2452

query I rowsort
SELECT DISTINCT - - 42 + + 85 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT + - 80 + + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT + - 80 + + COUNT ( * ) AS col2
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-7250
SELECT 23 DIV + 39, + 12 AS col1
----
0
12

skipif mysql # not compatible
query II rowsort label-7250
SELECT 23 / + 39, + 12 AS col1
----
0
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT + 72 + - 71 + - 17 + + + 5 * - 45 * + 37 * + + ( + - 80 ) + COUNT( 76 )
----
665985

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + 72 + - 71 + - 17 + + + 5 * - 45 * + 37 * + + ( + - 80 ) + COUNT ( 76 )
----
665985

query I rowsort
SELECT ALL - 97 + + 75 * - 13
----
-1072

query II rowsort
SELECT 72 + 46, - 1 AS col2
----
118
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL - COUNT( * ) * COUNT( - ( + 8 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - COUNT ( * ) * COUNT ( - ( + 8 ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT NULLIF ( - 38, + 63 * - + 75 ) DIV + 4 + + NULLIF ( + + 63, + - 86 ) DIV - + 74
----
-9

skipif mysql # not compatible
query I rowsort label-7255
SELECT NULLIF ( - 38, + 63 * - + 75 ) / + 4 + + NULLIF ( + + 63, + - 86 ) / - + 74
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - COUNT( * ) + - 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7256
SELECT - COUNT ( * ) + - 85 AS col2
----
-86

query I rowsort
SELECT ( - 26 ) - - - 58
----
-84

query I rowsort
SELECT 92 * ( - - 66 ) AS col2
----
6072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7259
SELECT ALL 85 + - 53 AS col1, CASE 73 WHEN - 61 + + CASE - 67 WHEN + - 25 THEN + + 51 * - + 3 END THEN - - ( + NULLIF ( 78, 71 ) ) + 15 WHEN - 35 + NULLIF ( - CAST( 11 AS SIGNED ), - CASE 72 WHEN + 72 THEN - 80 * 90 ELSE NULL END ) + + 83 THEN NULL ELSE - COUNT( * ) END * - CASE - 59 + + NULLIF ( 73, - 23 ) WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN - 77 / + 27 ELSE NULL END AS col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL 85 + - 53 AS col1, CASE 73 WHEN - 61 + + CASE - 67 WHEN + - 25 THEN + + 51 * - + 3 END THEN - - ( + NULLIF ( 78, 71 ) ) + 15 WHEN - 35 + NULLIF ( - CAST ( 11 AS INTEGER ), - CASE 72 WHEN + 72 THEN - 80 * 90 ELSE NULL END ) + + 83 THEN NULL ELSE - COUNT ( * ) END * - CASE - 59 + + NULLIF ( 73, - 23 ) WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 77 / + 27 ELSE NULL END AS col1
----
32
NULL

query II rowsort
SELECT - 41 col0, 27 AS col1
----
-41
27

query II rowsort
SELECT 92, 27 AS col1
----
92
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT DISTINCT MIN( - - 96 ) + ( - 57 )
----
39

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT MIN ( - - 96 ) + ( - 57 )
----
39

query II rowsort
SELECT ALL 98, 70 AS col2
----
98
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL 81 + + ( + MIN( ALL - 55 ) ) * COUNT( ALL - - 25 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL 81 + + ( + MIN ( ALL - 55 ) ) * COUNT ( ALL - - 25 ) AS col0
----
26

query II rowsort
SELECT ALL 52 AS col1, - 68 AS col2
----
52
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-7266
SELECT 78 AS col1, + COUNT( * ) AS col0
----
78
1

skipif mysql # not compatible
query II rowsort label-7266
SELECT 78 AS col1, + COUNT ( * ) AS col0
----
78
1

query II rowsort
SELECT DISTINCT - 31 AS col0, 59
----
-31
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7268
SELECT 14 DIV + 31 + - 50 + - CAST( - 10 AS SIGNED ) DIV - 3
----
-53

skipif mysql # not compatible
query I rowsort label-7268
SELECT 14 / + 31 + - 50 + - CAST ( - 10 AS INTEGER ) / - 3
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT + CASE + 51 WHEN + MAX( DISTINCT 79 ) + + + COUNT( * ) + - 53 + + ( + 27 ) THEN NULL WHEN + ( 28 ) / + 83 * - - 70 * 89 / + COUNT( * ) THEN + 28 + ( ( - + 55 ) ) + 99 * - 54 / 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT + CASE + 51 WHEN + MAX ( DISTINCT 79 ) + + + COUNT ( * ) + - 53 + + ( + 27 ) THEN NULL WHEN + ( 28 ) / + 83 * - - 70 * 89 / + COUNT ( * ) THEN + 28 + ( ( - + 55 ) ) + 99 * - 54 / 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT CASE + 49 WHEN + ( + SUM( ALL + + 65 ) ) * + + COUNT( * ) + - 33 * + + COALESCE ( - 48, 86 ) + 6 * 18 THEN - ( + 61 ) / + - 35 + - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT CASE + 49 WHEN + ( + SUM ( ALL + + 65 ) ) * + + COUNT ( * ) + - 33 * + + COALESCE ( - 48, 86 ) + 6 * 18 THEN - ( + 61 ) / + - 35 + - 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT + 20, ( - MAX( ALL - 66 ) ) * + 57 + - 66 + - - 25 col1
----
20
3721

skipif mysql # not compatible
query II rowsort label-7271
SELECT + 20, ( - MAX ( ALL - 66 ) ) * + 57 + - 66 + - - 25 col1
----
20
3721

query II rowsort
SELECT + 9 * - 2 * 53, 96 + - + 81 col0
----
-954
15

query I rowsort
SELECT - 15 * 38 AS col2
----
-570

query I rowsort
SELECT - 44 * 77 - - - 2 * + 48
----
-3484

query II rowsort
SELECT DISTINCT + 46, + 81 + - 38 AS col2
----
46
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL 68 * - COUNT( - ( 12 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL 68 * - COUNT ( - ( 12 ) )
----
-68

query I rowsort
SELECT + 79 * - 29 AS col0
----
-2291

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT - 38 + 35 * 13 + COUNT( * ) col0
----
418

skipif mysql # not compatible
query I rowsort label-7278
SELECT - 38 + 35 * 13 + COUNT ( * ) col0
----
418

query I rowsort
SELECT ALL + ( 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT COUNT( * ) AS col2, 18 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-7280
SELECT COUNT ( * ) AS col2, 18 AS col1
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT COUNT( * ) * - 88 + COUNT( DISTINCT - 29 ) * + 62 col1
----
-26

skipif mysql # not compatible
query I rowsort label-7281
SELECT COUNT ( * ) * - 88 + COUNT ( DISTINCT - 29 ) * + 62 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT + MAX( 41 ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7282
SELECT + MAX ( 41 ) * COUNT ( * )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT + + CAST( - - 67 AS SIGNED ) + 44
----
111

skipif mysql # not compatible
query I rowsort label-7283
SELECT + + CAST ( - - 67 AS INTEGER ) + 44
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT + 0 * - 97 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT + 0 * - 97 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7285
SELECT + 12 AS col1, - 40 DIV + 90 * + ( - 59 ) + 92 * 23 AS col0
----
12
2116

skipif mysql # not compatible
query II rowsort label-7285
SELECT + 12 AS col1, - 40 / + 90 * + ( - 59 ) + 92 * 23 AS col0
----
12
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT + + ( COUNT( * ) ) * 50 * SUM( + 69 ) + + - 92 - + - 81 AS col1
----
3439

skipif mysql # not compatible
query I rowsort label-7286
SELECT + + ( COUNT ( * ) ) * 50 * SUM ( + 69 ) + + - 92 - + - 81 AS col1
----
3439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT ALL + 84 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + 84 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 27 + ( 88 ) AS col1
----
61

query I rowsort
SELECT - - 87 * - 4
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT DISTINCT - 81 + + ( 54 ) + + 36 DIV - 64
----
-27

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - 81 + + ( 54 ) + + 36 / - 64
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT - + CAST( - - 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-7291
SELECT - + CAST ( - - 63 AS INTEGER )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7292
SELECT - - 54 + - 20 - ( - + COUNT( * ) ) * CAST( - 0 AS SIGNED ) * ( - 97 ) DIV + COUNT( * ) - 20 DIV 59 col0
----
34

skipif mysql # not compatible
query I rowsort label-7292
SELECT - - 54 + - 20 - ( - + COUNT ( * ) ) * CAST ( - 0 AS INTEGER ) * ( - 97 ) / + COUNT ( * ) - 20 / 59 col0
----
34

query I rowsort
SELECT ALL - 32 + + 19 * + - 89 + - - 10 AS col0
----
-1713

query I rowsort
SELECT - 3 + - 53 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 16 + 68 * 18
----
1208

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7297
SELECT + COALESCE ( - 12, COUNT( * ) ) / - CAST( NULL AS DECIMAL ) * + ( - - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT + COALESCE ( - 12, COUNT ( * ) ) / - CAST ( NULL AS REAL ) * + ( - - 0 )
----
NULL

query I rowsort
SELECT ALL + - 2 + + 8
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-7299
SELECT + 9 AS col2, - 65 DIV + - ( + 57 )
----
9
1

skipif mysql # not compatible
query II rowsort label-7299
SELECT + 9 AS col2, - 65 / + - ( + 57 )
----
9
1

query I rowsort
SELECT DISTINCT - 38 + - ( - 65 ) + - 58 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT - 57 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT - 57 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT - COUNT( DISTINCT 38 ) + 90 + + + 6
----
95

skipif mysql # not compatible
query I rowsort label-7302
SELECT - COUNT ( DISTINCT 38 ) + 90 + + + 6
----
95

query I rowsort
SELECT ALL - 45 + - 34
----
-79

query I rowsort
SELECT ALL + 19 * 98 * + COALESCE ( - - 3, - 78 ) AS col1
----
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL 28 - + + COUNT( + 23 ) + + + 34 * + + 40 + + + COUNT( * )
----
1388

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL 28 - + + COUNT ( + 23 ) + + + 34 * + + 40 + + + COUNT ( * )
----
1388

query I rowsort
SELECT + 98 + ( 66 ) AS col2
----
164

query I rowsort
SELECT - ( + - ( - 59 ) ) + 36 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7308
SELECT CAST( + CAST( + MIN( + 65 ) AS SIGNED ) AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7308
SELECT CAST ( + CAST ( + MIN ( + 65 ) AS INTEGER ) AS INTEGER ) AS col0
----
65

query I rowsort
SELECT + 86 + - + 38 * + - 68 col0
----
2670

query II rowsort
SELECT + ( + 62 ) AS col1, + 11
----
62
11

query I rowsort
SELECT + 56 * 42
----
2352

query I rowsort
SELECT + ( - - 73 )
----
73

query I rowsort
SELECT ( 47 ) AS col2
----
47

query I rowsort
SELECT + 76 * - 77 * 35
----
-204820

query I rowsort
SELECT + 45 + - - CASE + AVG ( + ( 82 ) ) WHEN 82 * - - 52 THEN 30 WHEN - 31 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT COUNT( * ) * 86 + + 52 + - + 73 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT COUNT ( * ) * 86 + + 52 + - + 73 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL + COUNT( * ) * 40 * - + 25 - + - 45 + - 94
----
-1049

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + COUNT ( * ) * 40 * - + 25 - + - 45 + - 94
----
-1049

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT + + MIN( 11 ) * + - 9 col2
----
-99

skipif mysql # not compatible
query I rowsort label-7318
SELECT + + MIN ( 11 ) * + - 9 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL + COUNT( * ) * 57 * - 22 + + - 75 + + 51 * 55 + - + 71 AS col2
----
1405

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL + COUNT ( * ) * 57 * - 22 + + - 75 + + 51 * 55 + - + 71 AS col2
----
1405

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7320
SELECT DISTINCT + + CAST( - + 53 AS SIGNED ) AS col2, + CAST( + COALESCE ( - CAST( NULL AS SIGNED ), - 50, - + 91 * - 82 ) AS SIGNED ) * - 12 AS col0
----
-53
600

skipif mysql # not compatible
query II rowsort label-7320
SELECT DISTINCT + + CAST ( - + 53 AS INTEGER ) AS col2, + CAST ( + COALESCE ( - CAST ( NULL AS INTEGER ), - 50, - + 91 * - 82 ) AS INTEGER ) * - 12 AS col0
----
-53
600

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT + COALESCE ( - SUM( DISTINCT ( + 3 ) ), - 79 ) * 79 + - + 62 + + 98 + + ( + 36 ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-7321
SELECT + COALESCE ( - SUM ( DISTINCT ( + 3 ) ), - 79 ) * 79 + - + 62 + + 98 + + ( + 36 ) AS col1
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-7322
SELECT DISTINCT 13 * 17 * + + 15 + + 99 AS col0, AVG ( ALL - 66 ) * + - ( MAX( DISTINCT - + 26 ) ) / - + 61 - - 32 + - + 60 - + NULLIF ( 53, 79 ) * - - ( + CASE COUNT( + 89 ) WHEN + 67 * COUNT( * ) THEN NULL WHEN - 14 THEN 58 * - ( - 34 ) END ) AS col1
----
3414
NULL

skipif mysql # not compatible
query II rowsort label-7322
SELECT DISTINCT 13 * 17 * + + 15 + + 99 AS col0, AVG ( ALL - 66 ) * + - ( MAX ( DISTINCT - + 26 ) ) / - + 61 - - 32 + - + 60 - + NULLIF ( 53, 79 ) * - - ( + CASE COUNT ( + 89 ) WHEN + 67 * COUNT ( * ) THEN NULL WHEN - 14 THEN 58 * - ( - 34 ) END ) AS col1
----
3414
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7323
SELECT ALL + 11 DIV + MIN( DISTINCT + + COALESCE ( 21, - + 38 * + NULLIF ( - 6, COALESCE ( - 16, - - 0, + - 68 ) ) ) ) + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + 11 / + MIN ( DISTINCT + + COALESCE ( 21, - + 38 * + NULLIF ( - 6, COALESCE ( - 16, - - 0, + - 68 ) ) ) ) + - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - COALESCE ( COUNT( * ), + 77 * - 0 + 98 + + 83 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7324
SELECT - COALESCE ( COUNT ( * ), + 77 * - 0 + 98 + + 83 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT - - 0 + + COUNT( ALL - 17 ) + + 90 * COALESCE ( - + COUNT( DISTINCT - 65 ), + 45 + - + CASE + - 45 WHEN 54 * + + 0 - - 51 THEN + 28 * - NULLIF ( - - 96, 51 ) + - 79 + CAST( SUM( + 37 ) AS SIGNED ) * + 21 END + COUNT( * ) * 22 ) * 73 + 15 AS col1
----
-6554

skipif mysql # not compatible
query I rowsort label-7325
SELECT - - 0 + + COUNT ( ALL - 17 ) + + 90 * COALESCE ( - + COUNT ( DISTINCT - 65 ), + 45 + - + CASE + - 45 WHEN 54 * + + 0 - - 51 THEN + 28 * - NULLIF ( - - 96, 51 ) + - 79 + CAST ( SUM ( + 37 ) AS INTEGER ) * + 21 END + COUNT ( * ) * 22 ) * 73 + 15 AS col1
----
-6554

query I rowsort
SELECT ALL - - 37 * ( - 42 ) AS col0
----
-1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) * - + 74
----
-74

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) * - + 74
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7328
SELECT - + 81 - - 65 + + 78 + 40 + - + 50 * 46 / - - ( - + CAST( NULL AS DECIMAL ) ) * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT - + 81 - - 65 + + 78 + 40 + - + 50 * 46 / - - ( - + CAST ( NULL AS REAL ) ) * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL - COUNT( * ) - 49
----
-50

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - COUNT ( * ) - 49
----
-50

query II rowsort
SELECT - 97 AS col1, 45 AS col0
----
-97
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT 17 - - 95 + 53 DIV - + 69
----
112

skipif mysql # not compatible
query I rowsort label-7331
SELECT 17 - - 95 + 53 / - + 69
----
112

query I rowsort
SELECT 98 * + + 77 AS col0
----
7546

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT ALL + CASE + 53 WHEN - 26 + + 80 THEN + 62 * - 73 + + SUM( + 88 ) ELSE NULL END / - - 3 + + 0 * 48 + 29 + 10, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7333
SELECT ALL + CASE + 53 WHEN - 26 + + 80 THEN + 62 * - 73 + + SUM ( + 88 ) ELSE NULL END / - - 3 + + 0 * 48 + 29 + 10, COUNT ( * ) col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT ALL + 97 DIV - 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + 97 / - 68 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT COUNT( * ) * + 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7335
SELECT COUNT ( * ) * + 98 AS col1
----
98

query I rowsort
SELECT ALL ( ( - 46 ) ) * - 36 + + 99 AS col0
----
1755

onlyif mysql # aggregate syntax: 
query II rowsort label-7337
SELECT ALL 26 AS col0, - COUNT( DISTINCT - 37 ) col0
----
26
-1

skipif mysql # not compatible
query II rowsort label-7337
SELECT ALL 26 AS col0, - COUNT ( DISTINCT - 37 ) col0
----
26
-1

query I rowsort
SELECT ALL - 25 + + 98
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT 88 DIV + 73 + + 84 + 51 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-7339
SELECT 88 / + 73 + + 84 + 51 AS col2
----
136

query II rowsort
SELECT + 81, 98 AS col2
----
81
98

query I rowsort
SELECT 13 + + 58 AS col1
----
71

query I rowsort
SELECT NULLIF ( + 54, 61 ) * + + 23
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL COUNT( 3 ) * 83 - + + 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL COUNT ( 3 ) * 83 - + + 41 AS col0
----
42

query I rowsort
SELECT 61 * - + 24 + + 80
----
-1384

query I rowsort
SELECT + 82 - - 50
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 16 AS col1
----
NULL

query I rowsort
SELECT ALL - 67 + + ( 72 ) - - 62 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT - + ( + + COUNT( - 4 ) ) * - 31 * 85 * 35 * - + 13 + SUM( + 21 ) - + 56
----
-1198960

skipif mysql # not compatible
query I rowsort label-7348
SELECT - + ( + + COUNT ( - 4 ) ) * - 31 * 85 * 35 * - + 13 + SUM ( + 21 ) - + 56
----
-1198960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7349
SELECT + 7 DIV - COUNT( * ) + - 43 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7349
SELECT + 7 / - COUNT ( * ) + - 43 AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT DISTINCT - CAST( - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT - CAST ( - 51 AS INTEGER )
----
51

query I rowsort
SELECT ALL 6 + + 65
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - + 63 * SUM( DISTINCT 3 ) + - - 38
----
-151

skipif mysql # not compatible
query I rowsort label-7352
SELECT - + 63 * SUM ( DISTINCT 3 ) + - - 38
----
-151

query I rowsort
SELECT + 45 - - 35
----
80

query I rowsort
SELECT - 89 + - - 72 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT COUNT( * ) * - COUNT( * ) - - - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7355
SELECT COUNT ( * ) * - COUNT ( * ) - - - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT + 73 + - - 36 AS col2
----
109

query II rowsort
SELECT + + 44 AS col0, + 75 * + + CASE + 77 WHEN - + 12 THEN + + 92 WHEN 29 THEN - 18 END
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL MIN( DISTINCT + 3 ) * - 53 + + COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL MIN ( DISTINCT + 3 ) * - 53 + + COUNT ( * )
----
-158

query I rowsort
SELECT ALL + 91 - 68 AS col2
----
23

query I rowsort
SELECT ( - 56 ) + - 58 + 12
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT ALL - - CAST( - 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - - CAST ( - 29 AS INTEGER )
----
-29

query II rowsort
SELECT + 5 AS col0, 81
----
5
81

query I rowsort
SELECT + - 62 * 43 * 53 + + 73 AS col1
----
-141225

query I rowsort
SELECT DISTINCT ( - 49 ) AS col2
----
-49

query II rowsort
SELECT 94, ( + 18 ) col0
----
94
18

query I rowsort
SELECT 69 + - - 4 AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7367
SELECT - 92 col1, + 71 * - COUNT( * ) AS col0
----
-92
-71

skipif mysql # not compatible
query II rowsort label-7367
SELECT - 92 col1, + 71 * - COUNT ( * ) AS col0
----
-92
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ( MIN( DISTINCT + 19 ) ) + - COALESCE ( - + ( + - MAX( + + 45 ) ), + COUNT( * ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7368
SELECT ( MIN ( DISTINCT + 19 ) ) + - COALESCE ( - + ( + - MAX ( + + 45 ) ), + COUNT ( * ) ) AS col1
----
-26

query II rowsort
SELECT 8 AS col0, 7 AS col0
----
8
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT 17 + + CAST( NULL AS SIGNED ) + - 99 + MAX( DISTINCT 92 ) * - 36 * 20 * + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT 17 + + CAST ( NULL AS INTEGER ) + - 99 + MAX ( DISTINCT 92 ) * - 36 * 20 * + - 39 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT DISTINCT 46 / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT 46 / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL - CASE 62 WHEN + - 45 / - 58 + 23 / - - 87 - - - 81 / CASE - 51 WHEN 36 + ( - COUNT( * ) ) THEN 67 * COUNT( * ) * 80 + 97 + 49 * - 24 * - COUNT( + 58 ) WHEN MIN( + 2 ) THEN - 30 / + 74 END * + ( - 95 ) THEN NULL ELSE + 25 END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - CASE 62 WHEN + - 45 / - 58 + 23 / - - 87 - - - 81 / CASE - 51 WHEN 36 + ( - COUNT ( * ) ) THEN 67 * COUNT ( * ) * 80 + 97 + 49 * - 24 * - COUNT ( + 58 ) WHEN MIN ( + 2 ) THEN - 30 / + 74 END * + ( - 95 ) THEN NULL ELSE + 25 END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 4 + 58
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT DISTINCT 92 DIV - 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT 92 / - 25 AS col2
----
-3

query I rowsort
SELECT 14 + + - 15 * - 85 AS col2
----
1289

query II rowsort
SELECT ALL 45 + 48 col2, - 88 AS col2
----
93
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-7377
SELECT - 19, - 10 DIV - + 53 + + - 4 * 82 AS col0
----
-19
-328

skipif mysql # not compatible
query II rowsort label-7377
SELECT - 19, - 10 / - + 53 + + - 4 * 82 AS col0
----
-19
-328

query I rowsort
SELECT 33 * + 3 * + 36 AS col0
----
3564

query I rowsort
SELECT ( - 23 ) * + - 6 * - - 7 + - + 20 * - + 92
----
2806

query I rowsort
SELECT 39 + + + ( - - 38 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL + COUNT( - 91 ) * - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL + COUNT ( - 91 ) * - - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 49 + - + ( 77 ) AS col0
----
-28

query I rowsort
SELECT 23 * - + 12
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT 29 + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7384
SELECT 29 + COUNT ( * )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7385
SELECT - 80 + + NULLIF ( 86, + COUNT( * ) + + ( - 62 ) + - ( - + 0 ) - - SUM( 11 ) + 41 + + 57 * + 24 ) * + - CAST( NULL AS SIGNED ) + - 93 * + 67 / 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT - 80 + + NULLIF ( 86, + COUNT ( * ) + + ( - 62 ) + - ( - + 0 ) - - SUM ( 11 ) + 41 + + 57 * + 24 ) * + - CAST ( NULL AS INTEGER ) + - 93 * + 67 / 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT - + 38 * - + COUNT( * ) + 7
----
45

skipif mysql # not compatible
query I rowsort label-7386
SELECT - + 38 * - + COUNT ( * ) + 7
----
45

query I rowsort
SELECT ALL + 5 * - 29
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7388
SELECT + 60 DIV + CASE WHEN 16 NOT BETWEEN + 49 AND - - 8 THEN + 33 + + SUM( 49 ) ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT + 60 / + CASE WHEN 16 NOT BETWEEN + 49 AND - - 8 THEN + 33 + + SUM ( 49 ) ELSE NULL END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT + 67 DIV - + 57 + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-7389
SELECT + 67 / - + 57 + - 41
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL - - CASE + 64 WHEN + 6 THEN + COUNT( * ) * + COUNT( * ) * + + 26 END * ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - - CASE + 64 WHEN + 6 THEN + COUNT ( * ) * + COUNT ( * ) * + + 26 END * ( + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + - ( + + 84 ) AS col2
----
-84

query I rowsort
SELECT + 43 + + ( - ( - - 44 ) ) + - 51 * 93 AS col0
----
-4744

onlyif mysql # aggregate syntax: 
query II rowsort label-7393
SELECT + + COUNT( * ) AS col2, - 75 AS col2
----
1
-75

skipif mysql # not compatible
query II rowsort label-7393
SELECT + + COUNT ( * ) AS col2, - 75 AS col2
----
1
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7394
SELECT + 91 * - COALESCE ( ( - 54 ), COUNT( * ) * + - NULLIF ( + 64, - - 55 ), + 45 + - 87, + 2 ) + - + 82 + - 77 + + 72 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT + 91 * - COALESCE ( ( - 54 ), COUNT ( * ) * + - NULLIF ( + 64, - - 55 ), + 45 + - 87, + 2 ) + - + 82 + - 77 + + 72 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( ( 32 ), + 62 - - ( + 44 ) ) * + + 98 AS col1
----
3136

query I rowsort
SELECT + 62 * 49 * 21 - 60 + + NULLIF ( + 8, 30 / + + 18 - + 57 )
----
63746

query II rowsort
SELECT + 11 AS col2, - ( NULLIF ( - 4, + + 3 ) ) AS col1
----
11
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT ALL - + 2, 5 + - - COUNT( * ) AS col0
----
-2
6

skipif mysql # not compatible
query II rowsort label-7398
SELECT ALL - + 2, 5 + - - COUNT ( * ) AS col0
----
-2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT + + 48 * - + 81 - - COUNT( * )
----
-3887

skipif mysql # not compatible
query I rowsort label-7399
SELECT + + 48 * - + 81 - - COUNT ( * )
----
-3887

query II rowsort
SELECT ALL + + 29 col2, ( - 47 ) - - 94 + + - 56 + - + 15 - + 64 * 94 * - 0 AS col2
----
29
-24

query I rowsort
SELECT 87 * + 70 * - 59 + + 94
----
-359216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7402
SELECT + CAST( + ( + + 0 ) AS SIGNED ) * + + CAST( + 7 AS SIGNED ) + + - 6 + COUNT( - 96 ) + + 75 - - - 91 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7402
SELECT + CAST ( + ( + + 0 ) AS INTEGER ) * + + CAST ( + 7 AS INTEGER ) + + - 6 + COUNT ( - 96 ) + + 75 - - - 91 AS col0
----
-21

query I rowsort
SELECT + 99 + + - 12 - + + 2 + - + 1 + + 61 - 69 AS col0
----
76

query I rowsort
SELECT ALL ( + 29 ) * + 41
----
1189

query II rowsort
SELECT + 45 - - - 33, - 56 * + 69 AS col2
----
12
-3864

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7406
SELECT ALL 51 * - 5 AS col0, - ( NULLIF ( + SUM( DISTINCT 40 ), + - ( - 36 ) * - - ( + ( - - 10 ) ) * + + CAST( NULL AS DECIMAL ) * + 94 ) ) * + COUNT( + 23 ) AS col0
----
-255
-40

skipif mysql # not compatible
query II rowsort label-7406
SELECT ALL 51 * - 5 AS col0, - ( NULLIF ( + SUM ( DISTINCT 40 ), + - ( - 36 ) * - - ( + ( - - 10 ) ) * + + CAST ( NULL AS REAL ) * + 94 ) ) * + COUNT ( + 23 ) AS col0
----
-255
-40

query I rowsort
SELECT + 63 * 42
----
2646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7408
SELECT DISTINCT 92 + + - 5 - + 76 DIV MIN( - 3 ) AS col1, ( + 71 ) + - CAST( NULL AS SIGNED ), + ( - 49 ) * - COALESCE ( + AVG ( DISTINCT 95 ), - 87 DIV - 60, + + 55 ) * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + ( + 19 ) * 84 * + 59 + 47 - 26
----
112
NULL
NULL

skipif mysql # not compatible
query III rowsort label-7408
SELECT DISTINCT 92 + + - 5 - + 76 / MIN ( - 3 ) AS col1, ( + 71 ) + - CAST ( NULL AS INTEGER ), + ( - 49 ) * - COALESCE ( + AVG ( DISTINCT 95 ), - 87 / - 60, + + 55 ) * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + ( + 19 ) * 84 * + 59 + 47 - 26
----
112
NULL
NULL

query I rowsort
SELECT DISTINCT 4 + - - 43
----
47

query I rowsort
SELECT - NULLIF ( + - ( NULLIF ( - 16, 88 ) ), + 59 ) AS col0
----
-16

query I rowsort
SELECT + 27 * - 83 AS col1
----
-2241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT + 33 * - COUNT( * ) * + 53 / ( + MAX( - 62 ) ) * + 81 * 74 * + 65 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT + 33 * - COUNT ( * ) * + 53 / ( + MAX ( - 62 ) ) * + 81 * 74 * + 65 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 91 + - 31 AS col2
----
60

query I rowsort
SELECT + 97 * - + 19 * - COALESCE ( + + ( + 39 ), - 4 )
----
71877

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT DISTINCT 3 DIV + - NULLIF ( + 53, + ( 51 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT 3 / + - NULLIF ( + 53, + ( 51 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT + MAX( ALL + 1 ) * - 61 + 12 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7416
SELECT + MAX ( ALL + 1 ) * - 61 + 12 AS col2
----
-49

query I rowsort
SELECT DISTINCT + 53 * - + 85
----
-4505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT ALL + 76 * + ( - - CAST( 20 AS SIGNED ) ) AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + 76 * + ( - - CAST ( 20 AS INTEGER ) ) AS col1
----
1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7419
SELECT - COUNT( * ) DIV + 21 + + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7419
SELECT - COUNT ( * ) / + 21 + + 47 AS col0
----
47

query I rowsort
SELECT - 28 * - 88 + - 6 + + 14 + - + ( + NULLIF ( - 63, 96 ) ) * - + 23
----
1023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7421
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7421
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - 50 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT + 60 * - ( - COUNT( DISTINCT - 36 ) ) * - - SUM( ALL - 14 ) * - - COALESCE ( + 37, + 90 * - - 27 + + 13 ) + + 77 + - - 84 - - NULLIF ( + - 22, 30 + + NULLIF ( + AVG ( - 54 ), - CASE + 27 WHEN COUNT( * ) / + 33 THEN NULL WHEN - NULLIF ( COUNT( * ), + 93 * - 90 + - 23 ) THEN + 81 + - 42 * 10 ELSE NULL END * + 75 ) ) AS col1
----
-30941

skipif mysql # not compatible
query I rowsort label-7422
SELECT + 60 * - ( - COUNT ( DISTINCT - 36 ) ) * - - SUM ( ALL - 14 ) * - - COALESCE ( + 37, + 90 * - - 27 + + 13 ) + + 77 + - - 84 - - NULLIF ( + - 22, 30 + + NULLIF ( + AVG ( - 54 ), - CASE + 27 WHEN COUNT ( * ) / + 33 THEN NULL WHEN - NULLIF ( COUNT ( * ), + 93 * - 90 + - 23 ) THEN + 81 + - 42 * 10 ELSE NULL END * + 75 ) ) AS col1
----
-30941

query I rowsort
SELECT - 80 + - 22 + 7 * 7
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT + COUNT( * ) * - 9 + 64 + - CAST( NULL AS SIGNED ) + - 48 / + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT + COUNT ( * ) * - 9 + 64 + - CAST ( NULL AS INTEGER ) + - 48 / + 62 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT + 60 / - CAST( NULL AS SIGNED ) + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT + 60 / - CAST ( NULL AS INTEGER ) + + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - + 94 + + COUNT( * ) * + + ( 2 )
----
-92

skipif mysql # not compatible
query I rowsort label-7426
SELECT - + 94 + + COUNT ( * ) * + + ( 2 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT - 30 DIV - COALESCE ( + 18, - + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7427
SELECT - 30 / - COALESCE ( + 18, - + 95 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT + MIN( DISTINCT + 87 ) col2, - 43
----
87
-43

skipif mysql # not compatible
query II rowsort label-7428
SELECT + MIN ( DISTINCT + 87 ) col2, - 43
----
87
-43

query II rowsort
SELECT - 87 + + ( - - 8 ), + 59 * + + 93 AS col2
----
-79
5487

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ( - 40 ) * - COUNT( * ) + + 48 * 55 - - ( - 40 ) + - 57 * + - 14 AS col1
----
3438

skipif mysql # not compatible
query I rowsort label-7430
SELECT ( - 40 ) * - COUNT ( * ) + + 48 * 55 - - ( - 40 ) + - 57 * + - 14 AS col1
----
3438

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7431
SELECT + 99 DIV - CAST( - 60 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7431
SELECT + 99 / - CAST ( - 60 AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7432
SELECT COALESCE ( - 22, - CAST( NULL AS SIGNED ) DIV 9 )
----
-22

skipif mysql # not compatible
query I rowsort label-7432
SELECT COALESCE ( - 22, - CAST ( NULL AS INTEGER ) / 9 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT 1 * - 24 + + + COUNT( * ), NULLIF ( + 31, - + 84 ) AS col1
----
-23
31

skipif mysql # not compatible
query II rowsort label-7433
SELECT 1 * - 24 + + + COUNT ( * ), NULLIF ( + 31, - + 84 ) AS col1
----
-23
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT ALL MAX( DISTINCT + 62 ) DIV - + 11 + - + 81 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL MAX ( DISTINCT + 62 ) / - + 11 + - + 81 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7435
SELECT - 63 DIV + + 14
----
-4

skipif mysql # not compatible
query I rowsort label-7435
SELECT - 63 / + + 14
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL + 47 * SUM( + - 19 ) + 95
----
-798

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + 47 * SUM ( + - 19 ) + 95
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT MIN( - - 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7437
SELECT MIN ( - - 9 ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT - 27 + + 99 - 95 + - + CAST( NULL AS SIGNED ) - + + CASE ( 74 ) WHEN - + AVG ( DISTINCT 42 ) THEN + 66 - + 22 + + - AVG ( - 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 27 + + 99 - 95 + - + CAST ( NULL AS INTEGER ) - + + CASE ( 74 ) WHEN - + AVG ( DISTINCT 42 ) THEN + 66 - + 22 + + - AVG ( - 52 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT SUM( + - 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-7439
SELECT SUM ( + - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - 3 + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7440
SELECT - 3 + COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT + 9 * - + 60 col1
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-7442
SELECT COUNT( * ) AS col1, 11 + + 65
----
1
76

skipif mysql # not compatible
query II rowsort label-7442
SELECT COUNT ( * ) AS col1, 11 + + 65
----
1
76

query I rowsort
SELECT - ( - 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL ( - - 47 ) + 13 + + + COALESCE ( + - 42, - - COALESCE ( ( COUNT( * ) ), - + 18 ), 17 + SUM( DISTINCT - 85 ) ) * - 9 - - - ( - 41 ) * + 36 AS col1
----
1914

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL ( - - 47 ) + 13 + + + COALESCE ( + - 42, - - COALESCE ( ( COUNT ( * ) ), - + 18 ), 17 + SUM ( DISTINCT - 85 ) ) * - 9 - - - ( - 41 ) * + 36 AS col1
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - 97 + - SUM( DISTINCT + 81 ) * + 7
----
-664

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 97 + - SUM ( DISTINCT + 81 ) * + 7
----
-664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT CAST( - 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT CAST ( - 43 AS INTEGER )
----
-43

query I rowsort
SELECT DISTINCT + 12 + - 26 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7448
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 1 AS col2
----
NULL

query I rowsort
SELECT ALL ( 92 ) + - 11 - ( + 89 )
----
-8

query I rowsort
SELECT + 26 + + + 13 * + 19 AS col2
----
273

query I rowsort
SELECT ALL 37 - 21 AS col1
----
16

query I rowsort
SELECT + 85 + + 90 - - 86 * - + 12
----
-857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7453
SELECT DISTINCT 26, ( + + 53 ) * - + 10 * + 17 + + CAST( + + COUNT( 63 ) AS SIGNED ) * - 81 * - 78 DIV COUNT( * ) col0
----
26
-2692

skipif mysql # not compatible
query II rowsort label-7453
SELECT DISTINCT 26, ( + + 53 ) * - + 10 * + 17 + + CAST ( + + COUNT ( 63 ) AS INTEGER ) * - 81 * - 78 / COUNT ( * ) col0
----
26
-2692

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7454
SELECT + 98 + - 58 - CASE 83 WHEN + - 53 + - - CAST( NULL AS DECIMAL ) + + 35 THEN NULLIF ( 45, - - 55 ) END + - + 38 - 37 / - - 97 * - + COUNT( * ) * + ( 30 ) * + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT + 98 + - 58 - CASE 83 WHEN + - 53 + - - CAST ( NULL AS REAL ) + + 35 THEN NULLIF ( 45, - - 55 ) END + - + 38 - 37 / - - 97 * - + COUNT ( * ) * + ( 30 ) * + + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7455
SELECT + COUNT( * ) * - + CAST( 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-7455
SELECT + COUNT ( * ) * - + CAST ( 30 AS INTEGER )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT DISTINCT COUNT( * ), 18 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-7456
SELECT DISTINCT COUNT ( * ), 18 AS col1
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + - COUNT( * ) * - - 94
----
-94

skipif mysql # not compatible
query I rowsort label-7457
SELECT + - COUNT ( * ) * - - 94
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT - 25 + 39 - + + 76 AS col0, SUM( DISTINCT + + 18 ) + + ( - 70 ) AS col1
----
-62
-52

skipif mysql # not compatible
query II rowsort label-7458
SELECT - 25 + 39 - + + 76 AS col0, SUM ( DISTINCT + + 18 ) + + ( - 70 ) AS col1
----
-62
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + + 47 * - - COUNT( * ) * + - 7
----
-329

skipif mysql # not compatible
query I rowsort label-7459
SELECT + + 47 * - - COUNT ( * ) * + - 7
----
-329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7460
SELECT ALL - 84 DIV CAST( CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - 84 / CAST ( CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-7461
SELECT DISTINCT + - 43, ( COUNT( * ) ) + 42 * + 50 AS col0
----
-43
2101

skipif mysql # not compatible
query II rowsort label-7461
SELECT DISTINCT + - 43, ( COUNT ( * ) ) + 42 * + 50 AS col0
----
-43
2101

query I rowsort
SELECT ALL + - 91 * - + 73 AS col1
----
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL - + 28 * + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - + 28 * + + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT DISTINCT - - 40 AS col0, + SUM( + ( + + 17 ) )
----
40
17

skipif mysql # not compatible
query II rowsort label-7464
SELECT DISTINCT - - 40 AS col0, + SUM ( + ( + + 17 ) )
----
40
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT + 59 * - MAX( DISTINCT + 15 ) AS col0
----
-885

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT + 59 * - MAX ( DISTINCT + 15 ) AS col0
----
-885

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT - 12 AS col0, - 91 + + MAX( 89 )
----
-12
-2

skipif mysql # not compatible
query II rowsort label-7466
SELECT - 12 AS col0, - 91 + + MAX ( 89 )
----
-12
-2

query I rowsort
SELECT + 67 * + 73 AS col1
----
4891

query II rowsort
SELECT + - 24 AS col1, + 92 AS col0
----
-24
92

query I rowsort
SELECT - COALESCE ( 76, - 96 ) + + ( + 21 ) + 82 * + 5 * - - 47 + 90 AS col0
----
19305

query I rowsort
SELECT + + ( + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT 14 * + 62 * - + CAST( NULL AS SIGNED ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT 14 * + 62 * - + CAST ( NULL AS INTEGER ) + 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT DISTINCT COUNT( * ) + + COUNT( * ), 80 + - - COUNT( * ) - - COALESCE ( COUNT( * ), 98 ) - 0 + - 44 AS col2
----
2
38

skipif mysql # not compatible
query II rowsort label-7472
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ), 80 + - - COUNT ( * ) - - COALESCE ( COUNT ( * ), 98 ) - 0 + - 44 AS col2
----
2
38

query I rowsort
SELECT DISTINCT 93 + + 53 + 44
----
190

query I rowsort
SELECT ALL - ( - 82 ) col1
----
82

query I rowsort
SELECT 14 + - - 88 * - - 26 AS col1
----
2302

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT DISTINCT - NULLIF ( + + CASE 47 WHEN + 5 + - COUNT( * ) THEN 30 WHEN 10 THEN - 59 + COUNT( * ) / + 75 * 44 END, - 25 ) + + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT - NULLIF ( + + CASE 47 WHEN + 5 + - COUNT ( * ) THEN 30 WHEN 10 THEN - 59 + COUNT ( * ) / + 75 * 44 END, - 25 ) + + + 58
----
NULL

query I rowsort
SELECT 98 - 37
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT COALESCE ( + - 29, + - 74 ) + - - 47 * COALESCE ( - - 21, - COUNT( * ) + ( + 28 ), 63 + - - 72 + - 94 ) AS col0
----
958

skipif mysql # not compatible
query I rowsort label-7478
SELECT COALESCE ( + - 29, + - 74 ) + - - 47 * COALESCE ( - - 21, - COUNT ( * ) + ( + 28 ), 63 + - - 72 + - 94 ) AS col0
----
958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7479
SELECT 43 * + + CAST( NULL AS SIGNED ) AS col1, + 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-7479
SELECT 43 * + + CAST ( NULL AS INTEGER ) AS col1, + 92 AS col0
----
NULL
92

query I rowsort
SELECT - 69 * 50 + + 42 * + 63
----
-804

query I rowsort
SELECT DISTINCT + 25 + - + 66 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7482
SELECT 58 + + 24 DIV + SUM( + + 96 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7482
SELECT 58 + + 24 / + SUM ( + + 96 ) AS col2
----
58

query I rowsort
SELECT DISTINCT - 80 * - + 39 AS col0
----
3120

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT DISTINCT + ( - + MIN( + - 78 ) ) - - + 26 AS col1, - 1 * 61 + + 69 + + - 24 * - 65 + + COUNT( * ) * 47
----
104
1615

skipif mysql # not compatible
query II rowsort label-7484
SELECT DISTINCT + ( - + MIN ( + - 78 ) ) - - + 26 AS col1, - 1 * 61 + + 69 + + - 24 * - 65 + + COUNT ( * ) * 47
----
104
1615

query I rowsort
SELECT + 40 * + - 25 AS col1
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + COUNT( * ) - - 75 * 86 AS col0
----
6451

skipif mysql # not compatible
query I rowsort label-7486
SELECT + COUNT ( * ) - - 75 * 86 AS col0
----
6451

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT SUM( 95 ) * + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT SUM ( 95 ) * + COUNT ( * )
----
95

query I rowsort
SELECT DISTINCT + + 22 * - 8 + + 73
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL + - 72 * + + COUNT( * ) * + CASE - COUNT( - ( - - 20 ) ) WHEN ( - AVG ( + - 40 ) ) THEN + + 11 * + 30 WHEN - 33 THEN NULL END + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL + - 72 * + + COUNT ( * ) * + CASE - COUNT ( - ( - - 20 ) ) WHEN ( - AVG ( + - 40 ) ) THEN + + 11 * + 30 WHEN - 33 THEN NULL END + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT MAX( DISTINCT + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT MAX ( DISTINCT + 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7491
SELECT 1 + - - 52 + + 23 * + 23 DIV - - COUNT( * )
----
582

skipif mysql # not compatible
query I rowsort label-7491
SELECT 1 + - - 52 + + 23 * + 23 / - - COUNT ( * )
----
582

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT 60 DIV ( 10 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7492
SELECT 60 / ( 10 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7493
SELECT + 56 + ( + - 58 ) + - - MIN( + - 93 ), - 87 AS col1
----
-95
-87

skipif mysql # not compatible
query II rowsort label-7493
SELECT + 56 + ( + - 58 ) + - - MIN ( + - 93 ), - 87 AS col1
----
-95
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT + ( + CASE + COUNT( * ) WHEN - 45 + - - 63 THEN - MAX( DISTINCT 28 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT + ( + CASE + COUNT ( * ) WHEN - 45 + - - 63 THEN - MAX ( DISTINCT 28 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT 67 * COUNT( * ) + + 55 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-7495
SELECT 67 * COUNT ( * ) + + 55 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + ( CASE + COUNT( - - ( - 82 ) ) WHEN + COALESCE ( 22, 4 * 6, SUM( + 61 ) ) THEN - COALESCE ( AVG ( ALL 85 ), - 1 ) + + 35 END ) * - 31 + + COUNT( * ) + + 22 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT + ( CASE + COUNT ( - - ( - 82 ) ) WHEN + COALESCE ( 22, 4 * 6, SUM ( + 61 ) ) THEN - COALESCE ( AVG ( ALL 85 ), - 1 ) + + 35 END ) * - 31 + + COUNT ( * ) + + 22 * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT 57 + COUNT( * ) * - + 6
----
51

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT 57 + COUNT ( * ) * - + 6
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL ( NULLIF ( + + 38, + 58 ) ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL ( NULLIF ( + + 38, + 58 ) ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL NULLIF ( + COUNT( * ), - 67 / 61 + + COUNT( * ) ) + - - 66
----
67

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL NULLIF ( + COUNT ( * ), - 67 / 61 + + COUNT ( * ) ) + - - 66
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT COUNT( * ) + 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7501
SELECT COUNT ( * ) + 81 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT + 44 AS col1, COUNT( * ) AS col1
----
44
1

skipif mysql # not compatible
query II rowsort label-7502
SELECT + 44 AS col1, COUNT ( * ) AS col1
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL COUNT( * ) * + NULLIF ( + COUNT( * ), + AVG ( DISTINCT ( - - 66 ) ) ) * NULLIF ( 13, 29 + - 21 - 32 + + - MAX( + 47 ) ) * 33
----
429

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL COUNT ( * ) * + NULLIF ( + COUNT ( * ), + AVG ( DISTINCT ( - - 66 ) ) ) * NULLIF ( 13, 29 + - 21 - 32 + + - MAX ( + 47 ) ) * 33
----
429

query I rowsort
SELECT ALL ( + 77 ) + 80 - - - 75
----
82

query II rowsort
SELECT + 98, - 84 AS col0
----
98
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT COUNT( * ) * - - 37 DIV + COALESCE ( - - 9, COUNT( * ) * 3 + - 81 + 90 + 44, ( + 18 ) - - 5 )
----
4

skipif mysql # not compatible
query I rowsort label-7506
SELECT COUNT ( * ) * - - 37 / + COALESCE ( - - 9, COUNT ( * ) * 3 + - 81 + 90 + 44, ( + 18 ) - - 5 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL 45 + - CAST( NULL AS SIGNED ) + - + 10 + + + 9 * + 7 / + + 39 / - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL 45 + - CAST ( NULL AS INTEGER ) + - + 10 + + + 9 * + 7 / + + 39 / - 38
----
NULL

query I rowsort
SELECT DISTINCT 80 - - 85 + - NULLIF ( - 2, - 55 ) * - - 88 * 5
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT + 94 - MAX( DISTINCT + 16 ) * + 38 AS col0
----
-514

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + 94 - MAX ( DISTINCT + 16 ) * + 38 AS col0
----
-514

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT - 22 AS col1, SUM( - - 59 ) col0
----
-22
59

skipif mysql # not compatible
query II rowsort label-7510
SELECT - 22 AS col1, SUM ( - - 59 ) col0
----
-22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT 29 + - - NULLIF ( 36, - + 4 - + AVG ( - + 51 ) ) + + ( + - MIN( COALESCE ( + 8, + 57 ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-7511
SELECT 29 + - - NULLIF ( 36, - + 4 - + AVG ( - + 51 ) ) + + ( + - MIN ( COALESCE ( + 8, + 57 ) ) )
----
57

query I rowsort
SELECT 67 * + 65
----
4355

query I rowsort
SELECT ALL + 3 * + + 51 col0
----
153

query II rowsort
SELECT - 31 col1, 7
----
-31
7

onlyif mysql # aggregate syntax: 
query III rowsort label-7515
SELECT COUNT( * ) + - - ( - 41 ) col2, COUNT( * ) * 7 * + + 42 - + + 45 + - + 6 AS col2, 83 * + 82 - - 41
----
-40
243
6847

skipif mysql # not compatible
query III rowsort label-7515
SELECT COUNT ( * ) + - - ( - 41 ) col2, COUNT ( * ) * 7 * + + 42 - + + 45 + - + 6 AS col2, 83 * + 82 - - 41
----
-40
243
6847

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7516
SELECT ( 92 ) * + 89 * - ( + - ( + COALESCE ( 18, 0 + + COALESCE ( + ( + 54 ), - - 49 * + - 24 + + CAST( ( + CAST( + + ( 33 ) AS DECIMAL ) ) AS SIGNED ), - 68 * 45 * + 87 ) ) ) )
----
147384

skipif mysql # not compatible
query I rowsort label-7516
SELECT ( 92 ) * + 89 * - ( + - ( + COALESCE ( 18, 0 + + COALESCE ( + ( + 54 ), - - 49 * + - 24 + + CAST ( ( + CAST ( + + ( 33 ) AS REAL ) ) AS INTEGER ), - 68 * 45 * + 87 ) ) ) )
----
147384

query I rowsort
SELECT 57 * - + 77
----
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT SUM( DISTINCT 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT SUM ( DISTINCT 58 ) AS col0
----
58

query I rowsort
SELECT ALL - - 20 * + 14 AS col0
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7520
SELECT - COUNT( DISTINCT + 30 ) + - NULLIF ( ( 50 ), - CASE + - COUNT( * ) WHEN + + 83 + - + ( + 44 ) + + + 21 * - CASE AVG ( ALL 36 ) WHEN - + 84 * - 15 THEN + + COUNT( * ) WHEN - 91 / + + 84 * + + SUM( ( + 50 ) ) * 25 THEN - 16 / + + 81 * + 57 END + + 77 / + 92 THEN 2 WHEN - MAX( 35 ) THEN NULL ELSE + CAST( NULL AS DECIMAL ) * - 96 END ) + - 92 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT - COUNT ( DISTINCT + 30 ) + - NULLIF ( ( 50 ), - CASE + - COUNT ( * ) WHEN + + 83 + - + ( + 44 ) + + + 21 * - CASE AVG ( ALL 36 ) WHEN - + 84 * - 15 THEN + + COUNT ( * ) WHEN - 91 / + + 84 * + + SUM ( ( + 50 ) ) * 25 THEN - 16 / + + 81 * + 57 END + + 77 / + 92 THEN 2 WHEN - MAX ( 35 ) THEN NULL ELSE + CAST ( NULL AS REAL ) * - 96 END ) + - 92 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 65 + - 11 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT DISTINCT + COALESCE ( 13, + + CASE - COUNT( * ) WHEN 97 + - + 76 THEN NULL WHEN - - 93 * CAST( NULL AS SIGNED ) + + 25 THEN NULL WHEN 60 THEN + ( - 43 ) ELSE - - CASE 91 WHEN - - CAST( NULL AS SIGNED ) / - 41 THEN - 47 WHEN + - 97 THEN NULL END END, 78, - 79 * + 16 ) + 8
----
21

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT + COALESCE ( 13, + + CASE - COUNT ( * ) WHEN 97 + - + 76 THEN NULL WHEN - - 93 * CAST ( NULL AS INTEGER ) + + 25 THEN NULL WHEN 60 THEN + ( - 43 ) ELSE - - CASE 91 WHEN - - CAST ( NULL AS INTEGER ) / - 41 THEN - 47 WHEN + - 97 THEN NULL END END, 78, - 79 * + 16 ) + 8
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT - + 21 * + + 52 + - - 21 * - + 19 * - ( - SUM( + 79 ) ) AS col1
----
-32613

skipif mysql # not compatible
query I rowsort label-7523
SELECT - + 21 * + + 52 + - - 21 * - + 19 * - ( - SUM ( + 79 ) ) AS col1
----
-32613

query I rowsort
SELECT ALL + - 44 + + 69
----
25

query I rowsort
SELECT DISTINCT + + 2 + + 10
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - COUNT( * ) * + + ( + - COUNT( * ) ) + - - 50 + - 21 - + 82 * 13
----
-1036

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - COUNT ( * ) * + + ( + - COUNT ( * ) ) + - - 50 + - 21 - + 82 * 13
----
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT - 76 * + 50 + - COUNT( * ) + - + 19
----
-3820

skipif mysql # not compatible
query I rowsort label-7527
SELECT - 76 * + 50 + - COUNT ( * ) + - + 19
----
-3820

query I rowsort
SELECT ALL 52 * 41 + + + 47 AS col0
----
2179

query I rowsort
SELECT DISTINCT + + 2 * + 45 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT CASE - CAST( 91 AS SIGNED ) WHEN + - 68 THEN - 99 * - 98 + CAST( NULL AS SIGNED ) * + + ( - CAST( - - 88 AS SIGNED ) ) + + ( + 57 ) * - + 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT CASE - CAST ( 91 AS INTEGER ) WHEN + - 68 THEN - 99 * - 98 + CAST ( NULL AS INTEGER ) * + + ( - CAST ( - - 88 AS INTEGER ) ) + + ( + 57 ) * - + 24 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( 89, + + 43 ) col1
----
89

query I rowsort
SELECT + NULLIF ( - ( - - 75 ), 49 * 30 / - + 2 ) AS col0
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-7533
SELECT ALL + 54 * 41 - + + ( - - 29 ) col1, 67 DIV + 12
----
2185
5

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL + 54 * 41 - + + ( - - 29 ) col1, 67 / + 12
----
2185
5

query II rowsort
SELECT + 81 * - + 86, 20 AS col2
----
-6966
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT ALL + CASE + 2 WHEN 87 / - 42 THEN - 4 / - CAST( NULL AS SIGNED ) ELSE - 79 END col2
----
-79

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + CASE + 2 WHEN 87 / - 42 THEN - 4 / - CAST ( NULL AS INTEGER ) ELSE - 79 END col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7536
SELECT - CAST( + 44 AS SIGNED ) * + 90 - - CAST( 21 AS DECIMAL ) + - CASE 89 WHEN - ( ( + 41 ) ) + MAX( DISTINCT - 98 ) THEN NULL WHEN + 87 * + COUNT( * ) THEN + 91 END + - + COUNT( * ) + - 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT - CAST ( + 44 AS INTEGER ) * + 90 - - CAST ( 21 AS REAL ) + - CASE 89 WHEN - ( ( + 41 ) ) + MAX ( DISTINCT - 98 ) THEN NULL WHEN + 87 * + COUNT ( * ) THEN + 91 END + - + COUNT ( * ) + - 79 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT + 33 DIV + 12 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7537
SELECT + 33 / + 12 AS col0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-7538
SELECT ALL 39 DIV + 79 AS col1, + 18
----
0
18

skipif mysql # not compatible
query II rowsort label-7538
SELECT ALL 39 / + 79 AS col1, + 18
----
0
18

query II rowsort
SELECT DISTINCT + 81 AS col2, 84 * + - 59
----
81
-4956

query I rowsort
SELECT ALL 21 * + 50
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT + MAX( + 42 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-7541
SELECT + MAX ( + 42 ) col1
----
42

query II rowsort
SELECT + 97 + + + COALESCE ( - 78, 43 ) AS col1, + 2
----
19
2

query II rowsort
SELECT + ( + 53 ) AS col2, - 93
----
53
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT MAX( - + NULLIF ( + 67, + 17 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-7544
SELECT MAX ( - + NULLIF ( + 67, + 17 ) )
----
-67

query I rowsort
SELECT + ( - 65 ) - + 22 * - 40
----
815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT + SUM( - 44 ) * - COUNT( * ) * - + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT + SUM ( - 44 ) * - COUNT ( * ) * - + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7547
SELECT + COUNT( * ) * + - 25 * - - 11 + - - 23 - NULLIF ( CAST( NULL AS SIGNED ), - + 97 + - 3 ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT + COUNT ( * ) * + - 25 * - - 11 + - - 23 - NULLIF ( CAST ( NULL AS INTEGER ), - + 97 + - 3 ) * COUNT ( * ) col1
----
NULL

query I rowsort
SELECT - COALESCE ( - 74, 51 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7549
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 95 AS col1, 72 + - 76 * + 34 AS col0
----
NULL
-2512

skipif mysql # not compatible
query II rowsort label-7549
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 95 AS col1, 72 + - 76 * + 34 AS col0
----
NULL
-2512

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL + COALESCE ( - - 85, 29, + NULLIF ( + NULLIF ( 89, - ( NULLIF ( 40, + 11 ) ) * - + ( 8 ) ), - + COUNT( * ) / - COUNT( * ) - COUNT( + COALESCE ( + - 93, 20 ) ) ) * 12 * - 90 )
----
85

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL + COALESCE ( - - 85, 29, + NULLIF ( + NULLIF ( 89, - ( NULLIF ( 40, + 11 ) ) * - + ( 8 ) ), - + COUNT ( * ) / - COUNT ( * ) - COUNT ( + COALESCE ( + - 93, 20 ) ) ) * 12 * - 90 )
----
85

query II rowsort
SELECT - - 59, 64 AS col2
----
59
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT - - COUNT( * ) * COUNT( * ) DIV + - MIN( + COALESCE ( - - 50, - 74 * + 82 - + - 80 + + 91 * + 71 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7552
SELECT - - COUNT ( * ) * COUNT ( * ) / + - MIN ( + COALESCE ( - - 50, - 74 * + 82 - + - 80 + + 91 * + 71 ) ) AS col2
----
0

query I rowsort
SELECT ALL - 5 + - 32 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + - COUNT( - - 3 ) - - 77 + - 45 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7554
SELECT + - COUNT ( - - 3 ) - - 77 + - 45 AS col0
----
31

query I rowsort
SELECT + COALESCE ( + 67, - 53 + - 44, 81 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7556
SELECT + 25 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7556
SELECT + 25 / - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - MIN( - + 7 ) * + - 77
----
-539

skipif mysql # not compatible
query I rowsort label-7557
SELECT - MIN ( - + 7 ) * + - 77
----
-539

query I rowsort
SELECT ALL 8 + + ( - 18 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT - 11 + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - 11 + - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7560
SELECT - + MAX( - + 60 ) DIV 35 + + 97 * ( 97 ) AS col0, + 94 AS col1
----
9410
94

skipif mysql # not compatible
query II rowsort label-7560
SELECT - + MAX ( - + 60 ) / 35 + + 97 * ( 97 ) AS col0, + 94 AS col1
----
9410
94

query I rowsort
SELECT ALL + - 50 * ( 89 ) AS col1
----
-4450

query I rowsort
SELECT ALL + 98 + + 6 AS col2
----
104

query II rowsort
SELECT - 48, + 89 * - 64 AS col2
----
-48
-5696

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT ALL - + 37 + COUNT( * ) * 84 * - CASE + - 88 WHEN - MIN( + - 57 ) + - 72 THEN NULL ELSE 25 END - CASE + - 50 WHEN COUNT( * ) THEN + 14 WHEN - + 57 + - - 16 THEN - - 43 END, + 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7564
SELECT ALL - + 37 + COUNT ( * ) * 84 * - CASE + - 88 WHEN - MIN ( + - 57 ) + - 72 THEN NULL ELSE 25 END - CASE + - 50 WHEN COUNT ( * ) THEN + 14 WHEN - + 57 + - - 16 THEN - - 43 END, + 57 AS col2
----
NULL
57

query I rowsort
SELECT + + 23 + + 12 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT - 2 DIV + 90 + - - 28 col2
----
28

skipif mysql # not compatible
query I rowsort label-7566
SELECT - 2 / + 90 + - - 28 col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7567
SELECT - ( + 32 ) * + + 29 * - + 77 + + COUNT( * ) DIV COUNT( DISTINCT + 41 ) + + 81 + - - 56 * + COUNT( - - 48 ) * + COUNT( DISTINCT CAST( + - 79 AS SIGNED ) ) DIV + + 75 - - - 53 AS col1
----
71485

skipif mysql # not compatible
query I rowsort label-7567
SELECT - ( + 32 ) * + + 29 * - + 77 + + COUNT ( * ) / COUNT ( DISTINCT + 41 ) + + 81 + - - 56 * + COUNT ( - - 48 ) * + COUNT ( DISTINCT CAST ( + - 79 AS INTEGER ) ) / + + 75 - - - 53 AS col1
----
71485

query I rowsort
SELECT ALL + ( + COALESCE ( - - 12, 45, 14 + - 52 + - - 83 ) ) AS col0
----
12

query I rowsort
SELECT - 63 + - - CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 90 END + + ( + 15 ) + - 3 * + - ( - - 18 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7570
SELECT + COALESCE ( 33, - 85 * ( - 48 ) + - + CAST( 37 AS SIGNED ) + 50, - MAX( DISTINCT + NULLIF ( - 9, - 68 ) ) + - MAX( CAST( NULL AS SIGNED ) ) * - ( - 28 ) * 84 + - 26 * + - 32 )
----
33

skipif mysql # not compatible
query I rowsort label-7570
SELECT + COALESCE ( 33, - 85 * ( - 48 ) + - + CAST ( 37 AS INTEGER ) + 50, - MAX ( DISTINCT + NULLIF ( - 9, - 68 ) ) + - MAX ( CAST ( NULL AS INTEGER ) ) * - ( - 28 ) * 84 + - 26 * + - 32 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT DISTINCT + COUNT( * ) * - 41 AS col1, + 2
----
-41
2

skipif mysql # not compatible
query II rowsort label-7571
SELECT DISTINCT + COUNT ( * ) * - 41 AS col1, + 2
----
-41
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT + COUNT( DISTINCT - + 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT + COUNT ( DISTINCT - + 10 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL + ( CASE + 79 WHEN + + 81 * - 65 THEN COUNT( - 48 ) * COUNT( * ) * + 7 WHEN - 16 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + ( CASE + 79 WHEN + + 81 * - 65 THEN COUNT ( - 48 ) * COUNT ( * ) * + 7 WHEN - 16 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT - 57 DIV - NULLIF ( 87, - - 57 ) + - 55
----
-55

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 57 / - NULLIF ( 87, - - 57 ) + - 55
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7575
SELECT ALL - COALESCE ( + + COUNT( * ), - 40 ) DIV + ( 23 ) - - 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - COALESCE ( + + COUNT ( * ), - 40 ) / + ( 23 ) - - 87 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COALESCE ( 60, - - COUNT( ALL + 3 ), ( 66 ) ) / 90 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COALESCE ( 60, - - COUNT ( ALL + 3 ), ( 66 ) ) / 90 * + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT + CASE - NULLIF ( - 66, + - ( - 89 ) * - 23 + + 0 + - 60 ) WHEN + + 14 THEN + 42 - - 21 WHEN + COUNT( * ) THEN - 72 * + - 11 + NULLIF ( - 71, - 49 ) WHEN 49 * 18 * + 83 + + 88 THEN + 70 * 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT + CASE - NULLIF ( - 66, + - ( - 89 ) * - 23 + + 0 + - 60 ) WHEN + + 14 THEN + 42 - - 21 WHEN + COUNT ( * ) THEN - 72 * + - 11 + NULLIF ( - 71, - 49 ) WHEN 49 * 18 * + 83 + + 88 THEN + 70 * 21 END
----
NULL

query I rowsort
SELECT + 27 * 9 AS col1
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT ALL - COUNT( * ) * CASE 40 WHEN + AVG ( ( + 26 ) ) * + 62 * + CASE - - AVG ( 82 ) WHEN + - ( 26 ) / + MAX( ALL + - 1 ) THEN + ( - 68 ) END + - MIN( ALL - 91 ) + - COUNT( * ) THEN + 11 * CAST( NULL AS SIGNED ) WHEN 30 * 20 * - 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - COUNT ( * ) * CASE 40 WHEN + AVG ( ( + 26 ) ) * + 62 * + CASE - - AVG ( 82 ) WHEN + - ( 26 ) / + MAX ( ALL + - 1 ) THEN + ( - 68 ) END + - MIN ( ALL - 91 ) + - COUNT ( * ) THEN + 11 * CAST ( NULL AS INTEGER ) WHEN 30 * 20 * - 66 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( + 79 ) col2
----
79

query I rowsort
SELECT - 91 * - ( - 42 ) AS col1
----
-3822

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT + 97 * - 6 AS col2, - 55 * - + 25 + - MIN( - 77 ) AS col2
----
-582
1452

skipif mysql # not compatible
query II rowsort label-7582
SELECT + 97 * - 6 AS col2, - 55 * - + 25 + - MIN ( - 77 ) AS col2
----
-582
1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT + 19 * + + ( + SUM( ALL - + 60 ) ) * - 75 - + + CAST( NULL AS SIGNED ) + - 48 * + + 40 * - + ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 19 * + + ( + SUM ( ALL - + 60 ) ) * - 75 - + + CAST ( NULL AS INTEGER ) + - 48 * + + 40 * - + ( + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7584
SELECT ( + COUNT( * ) ) AS col0, 27 + + + CAST( 5 AS SIGNED ) + 23
----
1
55

skipif mysql # not compatible
query II rowsort label-7584
SELECT ( + COUNT ( * ) ) AS col0, 27 + + + CAST ( 5 AS INTEGER ) + 23
----
1
55

query I rowsort
SELECT DISTINCT + ( 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT + 61 + - - 64 AS col0, + 81 + - NULLIF ( + - 16, + + COUNT( 24 ) ) AS col0
----
125
97

skipif mysql # not compatible
query II rowsort label-7586
SELECT + 61 + - - 64 AS col0, + 81 + - NULLIF ( + - 16, + + COUNT ( 24 ) ) AS col0
----
125
97

query I rowsort
SELECT + ( - + 55 ) col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT DISTINCT - 67 DIV 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - 67 / 31 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT ALL 98 + - CASE + + 72 WHEN - + 89 / - MAX( - 74 ) THEN - 92 + - 17 + - COUNT( * ) + + 11 + + 75 / + 78 WHEN 2 THEN - + 33 + + + COUNT( * ) * - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL 98 + - CASE + + 72 WHEN - + 89 / - MAX ( - 74 ) THEN - 92 + - 17 + - COUNT ( * ) + + 11 + + 75 / + 78 WHEN 2 THEN - + 33 + + + COUNT ( * ) * - 41 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT + 42 DIV 28 + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-7590
SELECT + 42 / 28 + - 49
----
-48

query I rowsort
SELECT ALL NULLIF ( + 9, - + 54 ) + + 56 * 21 * 43 * + 69
----
3489201

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT 7 + + + 31 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-7592
SELECT 7 + + + 31 + + COUNT ( * )
----
39

query I rowsort
SELECT 53 + - 29 * 73 + + 69
----
-1995

query I rowsort
SELECT DISTINCT + 43 + 88
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT CASE - 29 WHEN 31 * - 62 THEN NULL ELSE + 85 + + 73 END + - SUM( + + 99 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7595
SELECT CASE - 29 WHEN 31 * - 62 THEN NULL ELSE + 85 + + 73 END + - SUM ( + + 99 ) AS col2
----
59

query I rowsort
SELECT ALL + 82 * - - 25 - + 5 + - 21 AS col0
----
2024

query I rowsort
SELECT 22 + + 95
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7598
SELECT ALL 28 + - CAST( - 68 AS SIGNED ) - + COUNT( ALL ( - 57 ) ) DIV - 58 * + - NULLIF ( - - NULLIF ( + 1, + 43 * - 48 ), 43 * + AVG ( DISTINCT + 51 ) + + + 36 + + + 66 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL 28 + - CAST ( - 68 AS INTEGER ) - + COUNT ( ALL ( - 57 ) ) / - 58 * + - NULLIF ( - - NULLIF ( + 1, + 43 * - 48 ), 43 * + AVG ( DISTINCT + 51 ) + + + 36 + + + 66 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - 67 * + ( + 93 ) * 16 + - - CASE - 14 WHEN - 42 THEN NULL WHEN 43 + + COUNT( * ) THEN NULL ELSE 96 END - + 33
----
-99633

skipif mysql # not compatible
query I rowsort label-7599
SELECT - 67 * + ( + 93 ) * 16 + - - CASE - 14 WHEN - 42 THEN NULL WHEN 43 + + COUNT ( * ) THEN NULL ELSE 96 END - + 33
----
-99633

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL COUNT( ALL 26 )
----
1

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL COUNT ( ALL 26 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT 91 + - 10 DIV + 50 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7601
SELECT 91 + - 10 / + 50 AS col1
----
91

query I rowsort
SELECT ALL - 66 - + ( 55 ) + + + 42
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT + 34 * + ( + SUM( DISTINCT + + 95 ) ) * + + COUNT( * ) - MAX( 53 ) - + 61 * - 81 + - + 35 AS col2
----
8083

skipif mysql # not compatible
query I rowsort label-7603
SELECT + 34 * + ( + SUM ( DISTINCT + + 95 ) ) * + + COUNT ( * ) - MAX ( 53 ) - + 61 * - 81 + - + 35 AS col2
----
8083

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT 52 + - 96 * - - COUNT( * ), - 17 - - 75 AS col1
----
-44
58

skipif mysql # not compatible
query II rowsort label-7604
SELECT 52 + - 96 * - - COUNT ( * ), - 17 - - 75 AS col1
----
-44
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7605
SELECT COUNT( * ) * 62 * + - CAST( NULL AS SIGNED ) * - AVG ( + 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT COUNT ( * ) * 62 * + - CAST ( NULL AS INTEGER ) * - AVG ( + 71 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7606
SELECT 6 AS col2, - COUNT( * )
----
6
-1

skipif mysql # not compatible
query II rowsort label-7606
SELECT 6 AS col2, - COUNT ( * )
----
6
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT COUNT( ALL - - 37 ) * - COUNT( * ) * - 47
----
47

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT COUNT ( ALL - - 37 ) * - COUNT ( * ) * - 47
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT CAST( + 3 AS SIGNED ) * - - 31
----
93

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT CAST ( + 3 AS INTEGER ) * - - 31
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT 58 DIV 75 * 81 * 92
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT 58 / 75 * 81 * 92
----
0

query II rowsort
SELECT ALL - 97 AS col2, + 13 AS col2
----
-97
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7611
SELECT 32 - - COUNT( * ) / - 10 * + 41 * 41 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT 32 - - COUNT ( * ) / - 10 * + 41 * 41 * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 6 AS col0, 96
----
6
96

query II rowsort
SELECT 41 col2, + 54 AS col0
----
41
54

query II rowsort
SELECT 43, 86 AS col1
----
43
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT ALL + 17 + - 15 * 89, + COUNT( * ) AS col0
----
-1318
1

skipif mysql # not compatible
query II rowsort label-7615
SELECT ALL + 17 + - 15 * 89, + COUNT ( * ) AS col0
----
-1318
1

query I rowsort
SELECT 67 - + 44 * 45 * 54
----
-106853

query I rowsort
SELECT DISTINCT - 90 + ( - 6 ) + 42 + - - 21 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL 32 * + MIN( DISTINCT 62 ) * + 59
----
117056

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL 32 * + MIN ( DISTINCT 62 ) * + 59
----
117056

query I rowsort
SELECT 83 * 29 AS col2
----
2407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT ALL - 72 + + - COALESCE ( MAX( - 20 ), CAST( 32 AS SIGNED ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL - 72 + + - COALESCE ( MAX ( - 20 ), CAST ( 32 AS INTEGER ) ) AS col1
----
-52

query I rowsort
SELECT DISTINCT - 5 + + 36
----
31

query I rowsort
SELECT ALL - + 38 * + 68
----
-2584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT COALESCE ( + COUNT( * ), - 40 * + 20 * - + 95, + 85 ) DIV - 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT COALESCE ( + COUNT ( * ), - 40 * + 20 * - + 95, + 85 ) / - 91 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT MAX( + + 19 ) * 10 + ( - 40 ) + + 30 AS col2
----
180

skipif mysql # not compatible
query I rowsort label-7624
SELECT MAX ( + + 19 ) * 10 + ( - 40 ) + + 30 AS col2
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT + COUNT( * ) AS col1, 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-7625
SELECT + COUNT ( * ) AS col1, 32 AS col1
----
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT COUNT( * ) + 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7626
SELECT COUNT ( * ) + 73 AS col1
----
74

query I rowsort
SELECT - + ( + 77 )
----
-77

query I rowsort
SELECT ALL - 22 + ( - - 99 ) AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT - 16 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT - 16 / + 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7630
SELECT DISTINCT + CAST( NULL AS SIGNED ) + NULLIF ( 3, 94 + + 32 + + SUM( ALL 17 ) ) + + 70 * 64 + - 76 + + - 71 AS col2, 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7630
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + NULLIF ( 3, 94 + + 32 + + SUM ( ALL 17 ) ) + + 70 * 64 + - 76 + + - 71 AS col2, 33 AS col0
----
NULL
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT ALL CAST( + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL CAST ( + 40 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7632
SELECT DISTINCT - COUNT( * ) col2, ( - 60 ) col2
----
-1
-60

skipif mysql # not compatible
query II rowsort label-7632
SELECT DISTINCT - COUNT ( * ) col2, ( - 60 ) col2
----
-1
-60

query I rowsort
SELECT ALL 73 * + + 38 AS col1
----
2774

query II rowsort
SELECT - 77 col2, 4 col1
----
-77
4

query I rowsort
SELECT + 65 * - 94
----
-6110

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT DISTINCT COUNT( * ) AS col1, + MAX( - 65 ) AS col1
----
1
-65

skipif mysql # not compatible
query II rowsort label-7636
SELECT DISTINCT COUNT ( * ) AS col1, + MAX ( - 65 ) AS col1
----
1
-65

query I rowsort
SELECT ALL 39 * + 40 AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT - - SUM( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-7638
SELECT - - SUM ( + 78 )
----
78

query I rowsort
SELECT ALL + 37 * - 37 AS col0
----
-1369

query I rowsort
SELECT DISTINCT - 10 * - 82 AS col2
----
820

query I rowsort
SELECT ALL - ( + - 98 ) AS col1
----
98

query I rowsort
SELECT ALL 22 * + 12 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT COUNT( * ) - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7643
SELECT COUNT ( * ) - + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT COUNT( * ) + - + 54 * - 42
----
2269

skipif mysql # not compatible
query I rowsort label-7644
SELECT COUNT ( * ) + - + 54 * - 42
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT 42 + + 76 * + ( - - COUNT( * ) )
----
118

skipif mysql # not compatible
query I rowsort label-7645
SELECT 42 + + 76 * + ( - - COUNT ( * ) )
----
118

query I rowsort
SELECT DISTINCT 45 * - - ( - + 50 ) * + 45
----
-101250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT + 61 * + + 51 + + + MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT + 61 * + + 51 + + + MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL MAX( ALL - 95 ) * CASE MAX( + 21 ) WHEN - 82 / + 39 + + 58 + 53 THEN 59 + 43 + + SUM( - 18 ) ELSE 30 END * + ( 5 ) + 24 * + 94 AS col0
----
-11994

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL MAX ( ALL - 95 ) * CASE MAX ( + 21 ) WHEN - 82 / + 39 + + 58 + 53 THEN 59 + 43 + + SUM ( - 18 ) ELSE 30 END * + ( 5 ) + 24 * + 94 AS col0
----
-11994

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT COUNT( * ) * 20 * + 92 + + 25
----
1865

skipif mysql # not compatible
query I rowsort label-7649
SELECT COUNT ( * ) * 20 * + 92 + + 25
----
1865

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT 86 * + + 61 + - - SUM( - 51 ) + + COUNT( * ) - + COUNT( * )
----
5195

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT 86 * + + 61 + - - SUM ( - 51 ) + + COUNT ( * ) - + COUNT ( * )
----
5195

onlyif mysql # aggregate syntax: 
query II rowsort label-7651
SELECT DISTINCT + 30 * - 11 * + + 64 + COUNT( * ) AS col1, + 60 * 97
----
-21119
5820

skipif mysql # not compatible
query II rowsort label-7651
SELECT DISTINCT + 30 * - 11 * + + 64 + COUNT ( * ) AS col1, + 60 * 97
----
-21119
5820

query I rowsort
SELECT - 96 + 75
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL 29 * + 26 + 98 + + SUM( DISTINCT + + 33 ) + 47 + + 45 * - - 75 * + + 88
----
297932

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL 29 * + 26 + 98 + + SUM ( DISTINCT + + 33 ) + 47 + + 45 * - - 75 * + + 88
----
297932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7654
SELECT MAX( ALL 75 ) AS col0, CAST( NULL AS SIGNED ) + - COUNT( * )
----
75
NULL

skipif mysql # not compatible
query II rowsort label-7654
SELECT MAX ( ALL 75 ) AS col0, CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
75
NULL

query I rowsort
SELECT + 26 + - 49 + ( + 9 ) - + 56
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT + CASE - COUNT( * ) WHEN - - 7 THEN - ( + ( + + COALESCE ( + CASE + + COUNT( * ) WHEN - 32 THEN NULL ELSE + 5 * - + 0 / + 51 - + 82 END, - 0 ) ) ) END * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT + CASE - COUNT ( * ) WHEN - - 7 THEN - ( + ( + + COALESCE ( + CASE + + COUNT ( * ) WHEN - 32 THEN NULL ELSE + 5 * - + 0 / + 51 - + 82 END, - 0 ) ) ) END * + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT - 90 * + 17 AS col1, COUNT( * ) AS col1
----
-1530
1

skipif mysql # not compatible
query II rowsort label-7657
SELECT - 90 * + 17 AS col1, COUNT ( * ) AS col1
----
-1530
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT + 68 * 25 + + 77 + - 17 + - COUNT( * ) + 11 * + 41 * - + 56 + + - 90 + 3 + + ( - COUNT( * ) ) * - 49 * + - 5 * + + MAX( DISTINCT 33 ) + + + 4 + - 17
----
-31682

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + 68 * 25 + + 77 + - 17 + - COUNT ( * ) + 11 * + 41 * - + 56 + + - 90 + 3 + + ( - COUNT ( * ) ) * - 49 * + - 5 * + + MAX ( DISTINCT 33 ) + + + 4 + - 17
----
-31682

query I rowsort
SELECT + + 54 * 31
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - 19 * - COUNT( * ) + + 53 * - MAX( ALL 47 ) AS col0
----
-2472

skipif mysql # not compatible
query I rowsort label-7660
SELECT - 19 * - COUNT ( * ) + + 53 * - MAX ( ALL 47 ) AS col0
----
-2472

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL + 25 * + COUNT( * ) + - - 34 * - - MAX( DISTINCT - 19 ) * - 15 + - - ( + MAX( 31 ) ) + 60 * NULLIF ( + 93, - NULLIF ( + 31, + CASE - COUNT( * ) WHEN - COUNT( ( + 87 ) ) THEN 28 ELSE NULL END ) + + 74 + 55 )
----
15326

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + 25 * + COUNT ( * ) + - - 34 * - - MAX ( DISTINCT - 19 ) * - 15 + - - ( + MAX ( 31 ) ) + 60 * NULLIF ( + 93, - NULLIF ( + 31, + CASE - COUNT ( * ) WHEN - COUNT ( ( + 87 ) ) THEN 28 ELSE NULL END ) + + 74 + 55 )
----
15326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT - 0 + + + 39 + + 27 * - ( - + NULLIF ( - + CASE - 95 WHEN - + 65 THEN - + 30 ELSE - 85 END, 17 * + + 6 / 14 - + + 81 - - COALESCE ( + ( 95 ), 80, + 22 ) ) ) + + CAST( - 39 AS SIGNED )
----
2295

skipif mysql # not compatible
query I rowsort label-7662
SELECT - 0 + + + 39 + + 27 * - ( - + NULLIF ( - + CASE - 95 WHEN - + 65 THEN - + 30 ELSE - 85 END, 17 * + + 6 / 14 - + + 81 - - COALESCE ( + ( 95 ), 80, + 22 ) ) ) + + CAST ( - 39 AS INTEGER )
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT - 4 * - + COUNT( * ) * 64 * - - 36
----
9216

skipif mysql # not compatible
query I rowsort label-7663
SELECT - 4 * - + COUNT ( * ) * 64 * - - 36
----
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7664
SELECT - 13 + + + COALESCE ( COALESCE ( - 57, - CASE + AVG ( 85 ) WHEN + COUNT( * ) * + NULLIF ( - 51, - + 70 ) THEN - - 31 DIV 38 * - - 6 WHEN + + COUNT( * ) THEN NULL END DIV + ( - 10 ), - 17 * 36 - + + 76 ), - CAST( + 61 AS SIGNED ) DIV - + 53 + + 17 - - + 94 ) + 87 * - COUNT( * ) * - + 97 * - COUNT( ( + 20 ) ) * + 27 col2
----
-227923

skipif mysql # not compatible
query I rowsort label-7664
SELECT - 13 + + + COALESCE ( COALESCE ( - 57, - CASE + AVG ( 85 ) WHEN + COUNT ( * ) * + NULLIF ( - 51, - + 70 ) THEN - - 31 / 38 * - - 6 WHEN + + COUNT ( * ) THEN NULL END / + ( - 10 ), - 17 * 36 - + + 76 ), - CAST ( + 61 AS INTEGER ) / - + 53 + + 17 - - + 94 ) + 87 * - COUNT ( * ) * - + 97 * - COUNT ( ( + 20 ) ) * + 27 col2
----
-227923

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL CASE + ( - 74 ) WHEN + 41 - 76 THEN + ( - ( - 72 ) ) ELSE NULL END * - COUNT( * ) - + 17 * - 20 * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL CASE + ( - 74 ) WHEN + 41 - 76 THEN + ( - ( - 72 ) ) ELSE NULL END * - COUNT ( * ) - + 17 * - 20 * 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7666
SELECT DISTINCT + + 60 * - + 73 AS col0, MAX( - 25 ) DIV 33
----
-4380
0

skipif mysql # not compatible
query II rowsort label-7666
SELECT DISTINCT + + 60 * - + 73 AS col0, MAX ( - 25 ) / 33
----
-4380
0

query I rowsort
SELECT ALL + 32 - - ( - 17 ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT - 71 * - COUNT( * ) * CAST( - ( + 19 ) AS SIGNED ) + 36
----
-1313

skipif mysql # not compatible
query I rowsort label-7668
SELECT - 71 * - COUNT ( * ) * CAST ( - ( + 19 ) AS INTEGER ) + 36
----
-1313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT - - 21 * CAST( + 91 AS SIGNED )
----
1911

skipif mysql # not compatible
query I rowsort label-7669
SELECT - - 21 * CAST ( + 91 AS INTEGER )
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT - + COUNT( * ) + 26
----
25

skipif mysql # not compatible
query I rowsort label-7670
SELECT - + COUNT ( * ) + 26
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT + - 93 * COUNT( - 36 )
----
-93

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT + - 93 * COUNT ( - 36 )
----
-93

query II rowsort
SELECT ALL + ( + 64 ), 26 * - + 39 - - 12 AS col1
----
64
-1002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT - - CAST( NULL AS SIGNED ) + + COUNT( * ) - + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT + CASE - 69 WHEN 24 THEN NULL ELSE - 97 * + 92 + - + 74 * - - 57 END + + 76 + 13 * - 52 + + COUNT( * ) * - + 93 * - 34 AS col0
----
-10580

skipif mysql # not compatible
query I rowsort label-7674
SELECT + CASE - 69 WHEN 24 THEN NULL ELSE - 97 * + 92 + - + 74 * - - 57 END + + 76 + 13 * - 52 + + COUNT ( * ) * - + 93 * - 34 AS col0
----
-10580

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - NULLIF ( - - 36, - 66 ) + 25 + 0 + - + COUNT( * ) * + 60
----
-71

skipif mysql # not compatible
query I rowsort label-7675
SELECT - NULLIF ( - - 36, - 66 ) + 25 + 0 + - + COUNT ( * ) * + 60
----
-71

query I rowsort
SELECT - 29 + 25
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7677
SELECT - 34 DIV 19 + + CASE 97 WHEN - 22 THEN - COUNT( * ) ELSE - + 80 * 44 * 32 * + 2 - 66 + 55 * + - 44 * 56 END AS col0, COALESCE ( + 27, + + 1 ) AS col1
----
-360867
27

skipif mysql # not compatible
query II rowsort label-7677
SELECT - 34 / 19 + + CASE 97 WHEN - 22 THEN - COUNT ( * ) ELSE - + 80 * 44 * 32 * + 2 - 66 + 55 * + - 44 * 56 END AS col0, COALESCE ( + 27, + + 1 ) AS col1
----
-360867
27

query I rowsort
SELECT DISTINCT - ( + - 65 )
----
65

query I rowsort
SELECT + 10 + 3
----
13

query I rowsort
SELECT DISTINCT ( + + 13 )
----
13

query I rowsort
SELECT + ( - + 11 ) + - 78 col2
----
-89

query I rowsort
SELECT ALL 10 * 67
----
670

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT ALL 69 * + 16 * - COUNT( * ) * + 51 * - - 96, ( - - 30 ) * - 26 + + 58 AS col2
----
-5405184
-722

skipif mysql # not compatible
query II rowsort label-7683
SELECT ALL 69 * + 16 * - COUNT ( * ) * + 51 * - - 96, ( - - 30 ) * - 26 + + 58 AS col2
----
-5405184
-722

query I rowsort
SELECT DISTINCT 27 + + 67 AS col2
----
94

query I rowsort
SELECT DISTINCT 4 + 45 - 80 * 82 AS col2
----
-6511

query I rowsort
SELECT ALL 62 + + 70
----
132

query I rowsort
SELECT ALL ( - 71 ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT 97 + - + 4 DIV 85 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT 97 + - + 4 / 85 AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT CAST( + ( - 79 ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-7689
SELECT CAST ( + ( - 79 ) AS INTEGER )
----
-79

query I rowsort
SELECT + ( - - 60 ) * + 42 * + - 5 AS col0
----
-12600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7691
SELECT ALL 56 DIV MAX( ALL 34 ) + COUNT( * ) + + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL 56 / MAX ( ALL 34 ) + COUNT ( * ) + + COUNT ( * ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7692
SELECT + 69 / - 29 - + 40 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT + 69 / - 29 - + 40 + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7693
SELECT + 85 - - CAST( - - COUNT( * ) AS SIGNED ) + 22 * - 57 AS col0, - 85 AS col1
----
-1168
-85

skipif mysql # not compatible
query II rowsort label-7693
SELECT + 85 - - CAST ( - - COUNT ( * ) AS INTEGER ) + 22 * - 57 AS col0, - 85 AS col1
----
-1168
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7694
SELECT DISTINCT MAX( ALL + 11 ) DIV + + 38
----
0

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT MAX ( ALL + 11 ) / + + 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL - CAST( NULL AS SIGNED ) * + 96 - 48 - - + 71 + + + 36 + + - 90 * - 85 * 33 * 81 + + - 76 + - COUNT( * ) + - + CASE - 64 WHEN - 11 + + CAST( NULL AS SIGNED ) * - 35 - 23 THEN - 16 WHEN - 38 THEN NULL ELSE - COUNT( * ) END * 0 / - 68 * 71 * 16 * + - ( + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - CAST ( NULL AS INTEGER ) * + 96 - 48 - - + 71 + + + 36 + + - 90 * - 85 * 33 * 81 + + - 76 + - COUNT ( * ) + - + CASE - 64 WHEN - 11 + + CAST ( NULL AS INTEGER ) * - 35 - 23 THEN - 16 WHEN - 38 THEN NULL ELSE - COUNT ( * ) END * 0 / - 68 * 71 * 16 * + - ( + - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 39 * 31 + + - 63 AS col0
----
-1272

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT DISTINCT 49 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT 49 / - 45
----
-1

query I rowsort
SELECT ALL + + ( - 75 )
----
-75

query II rowsort
SELECT DISTINCT + - 46 AS col0, 5
----
-46
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT + - 81 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT + - 81 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT - - 76 * + - COUNT( * ) + + 34 AS col1, - ( - 40 ) * COUNT( * ) + - MAX( ALL + 35 ) * + 51 * - COALESCE ( + - 21, 59 * - 48 ) + - - 27 + + 26 * + 57 * COUNT( * )
----
-42
-35936

skipif mysql # not compatible
query II rowsort label-7701
SELECT - - 76 * + - COUNT ( * ) + + 34 AS col1, - ( - 40 ) * COUNT ( * ) + - MAX ( ALL + 35 ) * + 51 * - COALESCE ( + - 21, 59 * - 48 ) + - - 27 + + 26 * + 57 * COUNT ( * )
----
-42
-35936

query I rowsort
SELECT ALL + NULLIF ( ( - + 62 ), - - 97 + + 98 * - 77 + 29 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7703
SELECT CAST( NULL AS SIGNED ) col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7703
SELECT CAST ( NULL AS INTEGER ) col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT 17, 27 + + - COUNT( * ) AS col0
----
17
26

skipif mysql # not compatible
query II rowsort label-7704
SELECT 17, 27 + + - COUNT ( * ) AS col0
----
17
26

query II rowsort
SELECT ALL + 87, - 76 AS col1
----
87
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT + + SUM( ALL - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + + SUM ( ALL - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT - NULLIF ( + - COUNT( DISTINCT - + 40 ), - 46 * 8 * + MAX( + - 43 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT - NULLIF ( + - COUNT ( DISTINCT - + 40 ), - 46 * 8 * + MAX ( + - 43 ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7708
SELECT DISTINCT + SUM( ALL + 11 ) * 1 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT + SUM ( ALL + 11 ) * 1 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 51 AS col1, ( 95 )
----
-51
95

query I rowsort
SELECT - + 49 * 5 AS col0
----
-245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7711
SELECT + 22 - - - 0 + - COUNT( * ) * + 21 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT + 22 - - - 0 + - COUNT ( * ) * + 21 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT - 99 + - 69 + + + 24 + - - 54 - - + CASE - + 86 WHEN - NULLIF ( + - 27, + - 41 ) + - + 1 THEN + 33 WHEN + COUNT( * ) THEN + + 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT - 99 + - 69 + + + 24 + - - 54 - - + CASE - + 86 WHEN - NULLIF ( + - 27, + - 41 ) + - + 1 THEN + 33 WHEN + COUNT ( * ) THEN + + 7 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT - MAX( 97 ) + 41 * - COUNT( * )
----
-138

skipif mysql # not compatible
query I rowsort label-7713
SELECT - MAX ( 97 ) + 41 * - COUNT ( * )
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT - CAST( - COUNT( * ) AS SIGNED ) * 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7714
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * 33 AS col2
----
33

query I rowsort
SELECT ALL + 49 + - 43 + - 70 col2
----
-64

query I rowsort
SELECT ALL - 85 + + 25 * 61
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - MIN( ALL + 56 ) - 76 * + + COUNT( * ) + + NULLIF ( - 69, + 22 ) - - - 30 + - - 95 * 24
----
2049

skipif mysql # not compatible
query I rowsort label-7717
SELECT - MIN ( ALL + 56 ) - 76 * + + COUNT ( * ) + + NULLIF ( - 69, + 22 ) - - - 30 + - - 95 * 24
----
2049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT ALL 56 DIV ( COUNT( DISTINCT - - 29 ) ) * + ( - + 17 ) AS col0
----
-952

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL 56 / ( COUNT ( DISTINCT - - 29 ) ) * + ( - + 17 ) AS col0
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL 15 + + COUNT( DISTINCT 19 ) + - ( + 3 ) + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL 15 + + COUNT ( DISTINCT 19 ) + - ( + 3 ) + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT 77 + - CASE 44 WHEN 28 / + COUNT( * ) * 59 THEN NULL WHEN 4 THEN + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT 77 + - CASE 44 WHEN 28 / + COUNT ( * ) * 59 THEN NULL WHEN 4 THEN + 56 END
----
NULL

query I rowsort
SELECT ALL + 86 + - 71
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT DISTINCT 11, COUNT( ALL - - 23 ) * - 79 AS col0
----
11
-79

skipif mysql # not compatible
query II rowsort label-7722
SELECT DISTINCT 11, COUNT ( ALL - - 23 ) * - 79 AS col0
----
11
-79

query I rowsort
SELECT 57 + + 16
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7724
SELECT 93 * MIN( - 86 ) DIV - ( + + COUNT( * ) ) AS col1
----
7998

skipif mysql # not compatible
query I rowsort label-7724
SELECT 93 * MIN ( - 86 ) / - ( + + COUNT ( * ) ) AS col1
----
7998

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT ALL - 13 DIV 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - 13 / 38 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7726
SELECT 67 + 7, + 72 DIV - + 92 AS col0
----
74
0

skipif mysql # not compatible
query II rowsort label-7726
SELECT 67 + 7, + 72 / - + 92 AS col0
----
74
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7727
SELECT COUNT( * ) - MAX( DISTINCT 52 ) - - 59 DIV + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7727
SELECT COUNT ( * ) - MAX ( DISTINCT 52 ) - - 59 / + COUNT ( * ) AS col1
----
8

query I rowsort
SELECT ALL - 95 * + + 37 col2
----
-3515

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT 23 DIV 78 - + NULLIF ( + NULLIF ( - 6, 5 ), + ( 94 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7729
SELECT 23 / 78 - + NULLIF ( + NULLIF ( - 6, 5 ), + ( 94 ) ) AS col0
----
6

query I rowsort
SELECT 83 * + 76 * 73 col0
----
460484

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + COUNT( * ) * + 90 + - - 67
----
157

skipif mysql # not compatible
query I rowsort label-7731
SELECT + COUNT ( * ) * + 90 + - - 67
----
157

query I rowsort
SELECT ALL NULLIF ( + 64, + + 38 ) - - - 20 + - - 90 AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT MIN( DISTINCT 93 ) * + 43 - + COALESCE ( - COUNT( * ), - + 26 ) - - COALESCE ( - 27, + 51 + CASE 32 WHEN 52 / 39 + + - 68 * - 0 THEN NULL WHEN - 10 * + + 29 THEN NULL ELSE - 55 END )
----
3973

skipif mysql # not compatible
query I rowsort label-7733
SELECT MIN ( DISTINCT 93 ) * + 43 - + COALESCE ( - COUNT ( * ), - + 26 ) - - COALESCE ( - 27, + 51 + CASE 32 WHEN 52 / 39 + + - 68 * - 0 THEN NULL WHEN - 10 * + + 29 THEN NULL ELSE - 55 END )
----
3973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT ALL + 50 * + - CAST( 15 AS SIGNED ) AS col1
----
-750

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + 50 * + - CAST ( 15 AS INTEGER ) AS col1
----
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT - ( + + COUNT( * ) ) DIV + 9 + - - 14
----
14

skipif mysql # not compatible
query I rowsort label-7735
SELECT - ( + + COUNT ( * ) ) / + 9 + - - 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT - - ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - - ( + - COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT 35 * 94 AS col0, + 89
----
3290
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT 94 * COUNT( DISTINCT - 5 ) * - - 67 * + - 54 + 45 * + 23 + - 98 AS col2
----
-339155

skipif mysql # not compatible
query I rowsort label-7738
SELECT 94 * COUNT ( DISTINCT - 5 ) * - - 67 * + - 54 + 45 * + 23 + - 98 AS col2
----
-339155

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT DISTINCT - 83 DIV + 4 + + 0 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT - 83 / + 4 + + 0 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + + SUM( + + 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7740
SELECT + + SUM ( + + 67 ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7741
SELECT 14 DIV - - 44 + - ( + 72 ) AS col1, CAST( NULL AS SIGNED ) AS col1
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-7741
SELECT 14 / - - 44 + - ( + 72 ) AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-72
NULL

query II rowsort
SELECT ALL - + COALESCE ( + 17, + 83 + - 84 ) AS col0, 40
----
-17
40

query I rowsort
SELECT ALL 81 + - + 37 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT 24 + + 1 * + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7744
SELECT 24 + + 1 * + COUNT ( * ) AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT ALL 8 + - - 36 DIV - 19
----
7

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL 8 + - - 36 / - 19
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT - 78 + - 63 * CAST( NULL AS SIGNED ) + - COUNT( * ) + - COUNT( * ) - 36 + 17 - - 8 + + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT - 78 + - 63 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - COUNT ( * ) - 36 + 17 - - 8 + + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT + MAX( - + 92 ) * - NULLIF ( 42, + ( - + COUNT( * ) ) + - 38 - + 45 * - - 67 ) - 64 + - ( + COUNT( * ) ) AS col2, COUNT( * ) * + 57 + - NULLIF ( + - 55, 26 ) AS col1
----
3799
112

skipif mysql # not compatible
query II rowsort label-7747
SELECT + MAX ( - + 92 ) * - NULLIF ( 42, + ( - + COUNT ( * ) ) + - 38 - + 45 * - - 67 ) - 64 + - ( + COUNT ( * ) ) AS col2, COUNT ( * ) * + 57 + - NULLIF ( + - 55, 26 ) AS col1
----
3799
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7748
SELECT 42 DIV + ( - - COUNT( * ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7748
SELECT 42 / + ( - - COUNT ( * ) ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT 87 + 75 * 1 DIV 54
----
88

skipif mysql # not compatible
query I rowsort label-7749
SELECT 87 + 75 * 1 / 54
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT ALL - 90 + + 39 DIV + 18
----
-88

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - 90 + + 39 / + 18
----
-88

query I rowsort
SELECT ALL 51 + 61 - - 8
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7752
SELECT ALL 27 + - - CAST( NULL AS SIGNED ), - 23 AS col1
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-7752
SELECT ALL 27 + - - CAST ( NULL AS INTEGER ), - 23 AS col1
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT 44 * + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT 44 * + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT ALL - 27 * 18 col2
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT 2 + + 6 * - COUNT( * ) + + - 95 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7755
SELECT 2 + + 6 * - COUNT ( * ) + + - 95 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT - 9 * - MAX( - NULLIF ( + 95, - 80 ) ) * + 89 AS col0
----
-76095

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT - 9 * - MAX ( - NULLIF ( + 95, - 80 ) ) * + 89 AS col0
----
-76095

query I rowsort
SELECT - 24 - 84 AS col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7758
SELECT - 93 * + CASE + 41 WHEN 21 THEN - COALESCE ( + + 72, - 37 * + 10 * 75 ) WHEN - CAST( NULL AS SIGNED ) THEN - ( - 86 ) * + 57 ELSE + 13 DIV - 29 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT - 93 * + CASE + 41 WHEN 21 THEN - COALESCE ( + + 72, - 37 * + 10 * 75 ) WHEN - CAST ( NULL AS INTEGER ) THEN - ( - 86 ) * + 57 ELSE + 13 / - 29 END AS col1
----
0

query I rowsort
SELECT + NULLIF ( 18, - AVG ( + 88 ) ) col1
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7760
SELECT - 95 DIV + - CAST( 70 AS SIGNED ) + + 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7760
SELECT - 95 / + - CAST ( 70 AS INTEGER ) + + 94 AS col0
----
95

query I rowsort
SELECT DISTINCT - + 86 * 38 - - 18 AS col0
----
-3250

query I rowsort
SELECT ALL - + COALESCE ( 30, 64 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT + CAST( - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-7763
SELECT + CAST ( - 37 AS INTEGER )
----
-37

query I rowsort
SELECT ALL ( + + 98 ) + 46
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT ALL - 4 + + + CASE - 58 WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + 84 + - - 33 * + 25 * 97 END * ( - 88 ) * + + 75 * + 79 + + + MIN( ALL - + 25 ) / - - 62 + 34 + - COUNT( * ) + - + 31 * 60 AS col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7765
SELECT ALL - 4 + + + CASE - 58 WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + 84 + - - 33 * + 25 * 97 END * ( - 88 ) * + + 75 * + 79 + + + MIN ( ALL - + 25 ) / - - 62 + 34 + - COUNT ( * ) + - + 31 * 60 AS col2, 41
----
NULL
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT + NULLIF ( COUNT( * ), - 43 - + 95 ) - + CAST( NULL AS SIGNED ) + - + ( + ( - COALESCE ( COUNT( * ), + SUM( - - 49 ) ) ) ) + + 28 + MIN( DISTINCT + 0 ) + 75 + 33 * + 46 * - AVG ( ALL 15 ) + - 37 + - 72 + + SUM( DISTINCT + 86 ) * COUNT( * ) + - + 26 * + CAST( - 13 AS SIGNED ) * CASE - + 67 WHEN - 28 THEN NULL WHEN - 5 THEN - CASE - 37 WHEN + 96 THEN + 8 + + COUNT( * ) * + COUNT( * ) WHEN COUNT( * ) THEN + 71 ELSE NULL END * 89 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT + NULLIF ( COUNT ( * ), - 43 - + 95 ) - + CAST ( NULL AS INTEGER ) + - + ( + ( - COALESCE ( COUNT ( * ), + SUM ( - - 49 ) ) ) ) + + 28 + MIN ( DISTINCT + 0 ) + 75 + 33 * + 46 * - AVG ( ALL 15 ) + - 37 + - 72 + + SUM ( DISTINCT + 86 ) * COUNT ( * ) + - + 26 * + CAST ( - 13 AS INTEGER ) * CASE - + 67 WHEN - 28 THEN NULL WHEN - 5 THEN - CASE - 37 WHEN + 96 THEN + 8 + + COUNT ( * ) * + COUNT ( * ) WHEN COUNT ( * ) THEN + 71 ELSE NULL END * 89 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL + COUNT( * ) + - + ( - - 66 )
----
-65

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL + COUNT ( * ) + - + ( - - 66 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + COALESCE ( 35, - 55, - COUNT( * ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7768
SELECT + COALESCE ( 35, - 55, - COUNT ( * ) ) AS col2
----
35

query I rowsort
SELECT ALL ( + ( 28 ) ) + + 67 * + 79 + 30 AS col1
----
5351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7770
SELECT COALESCE ( + MIN( DISTINCT - 21 ), 18 DIV + 16 + CAST( NULL AS SIGNED ) * 61 + - 68 + 37 + MIN( ALL 12 ) - COUNT( * ) * + 53, + 28, COALESCE ( - 40, + 18 + + ( + - 43 ) + - ( - 66 ), - + 3 ) DIV - - 6 + + 57 + - SUM( - NULLIF ( - 0, - 36 ) ) ) * ( 79 ) * + 82 AS col1
----
-136038

skipif mysql # not compatible
query I rowsort label-7770
SELECT COALESCE ( + MIN ( DISTINCT - 21 ), 18 / + 16 + CAST ( NULL AS INTEGER ) * 61 + - 68 + 37 + MIN ( ALL 12 ) - COUNT ( * ) * + 53, + 28, COALESCE ( - 40, + 18 + + ( + - 43 ) + - ( - 66 ), - + 3 ) / - - 6 + + 57 + - SUM ( - NULLIF ( - 0, - 36 ) ) ) * ( 79 ) * + 82 AS col1
----
-136038

query I rowsort
SELECT DISTINCT - 10 + 23 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT CASE + 76 WHEN - CAST( - COUNT( * ) AS SIGNED ) * 40 THEN COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT CASE + 76 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) * 40 THEN COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7773
SELECT + 27 * - + 5 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT + 27 * - + 5 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 36 + - 62 AS col0
----
-26

query I rowsort
SELECT DISTINCT + 3 + + - 16 AS col1
----
-13

query I rowsort
SELECT DISTINCT 92 + - + 33 col0
----
59

query I rowsort
SELECT DISTINCT 98 + + + 94
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + COUNT( * ) * + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7778
SELECT + COUNT ( * ) * + - 61 AS col0
----
-61

query I rowsort
SELECT DISTINCT 45 * - 91 col2
----
-4095

query I rowsort
SELECT ALL 3 * - + 66
----
-198

query I rowsort
SELECT + 9 + + ( + ( 92 ) ) AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + SUM( - - 94 ) * + ( - + 11 ) AS col1
----
-1034

skipif mysql # not compatible
query I rowsort label-7782
SELECT + SUM ( - - 94 ) * + ( - + 11 ) AS col1
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + MIN( ALL + 64 ) + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-7783
SELECT + MIN ( ALL + 64 ) + + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7784
SELECT + 91 DIV COUNT( * ) * + + MIN( + - 88 ) * CASE WHEN NOT NULL IN ( 92, SUM( ALL 78 ) ) THEN NULL ELSE - 19 + - + 99 END AS col1
----
944944

skipif mysql # not compatible
query I rowsort label-7784
SELECT + 91 / COUNT ( * ) * + + MIN ( + - 88 ) * CASE WHEN NOT NULL IN ( 92, SUM ( ALL 78 ) ) THEN NULL ELSE - 19 + - + 99 END AS col1
----
944944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT + 62 + 54 + - - 31 * + - 59 - + CASE - 21 WHEN - 12 + - + CAST( + 23 AS SIGNED ) + + 85 + - + 75 THEN NULL WHEN - 24 + 46 THEN NULL ELSE - COUNT( * ) + - 0 END
----
-1712

skipif mysql # not compatible
query I rowsort label-7785
SELECT + 62 + 54 + - - 31 * + - 59 - + CASE - 21 WHEN - 12 + - + CAST ( + 23 AS INTEGER ) + + 85 + - + 75 THEN NULL WHEN - 24 + 46 THEN NULL ELSE - COUNT ( * ) + - 0 END
----
-1712

query I rowsort
SELECT ALL 73 - + 44
----
29

query I rowsort
SELECT + 79 * - 70 AS col2
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + ( - COUNT( DISTINCT + 1 ) ) - + 73 + - 4 * - + 29
----
42

skipif mysql # not compatible
query I rowsort label-7788
SELECT + ( - COUNT ( DISTINCT + 1 ) ) - + 73 + - 4 * - + 29
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT SUM( DISTINCT + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT SUM ( DISTINCT + 33 ) AS col2
----
33

query II rowsort
SELECT DISTINCT 72, - 0 AS col2
----
72
0

query II rowsort
SELECT DISTINCT 75, 68 * - ( + + 46 ) * 12 - - + 37 AS col0
----
75
-37499

query I rowsort
SELECT - 8 + - + 89 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT - ( - - 88 ) * - SUM( DISTINCT + 71 ) * - + COALESCE ( + COUNT( * ), + 74 ) * + + 49 col1
----
-306152

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - ( - - 88 ) * - SUM ( DISTINCT + 71 ) * - + COALESCE ( + COUNT ( * ), + 74 ) * + + 49 col1
----
-306152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT - 68 + + - 80 + + COUNT( * ) * + 3 DIV - COUNT( * )
----
-151

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 68 + + - 80 + + COUNT ( * ) * + 3 / - COUNT ( * )
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + COUNT( * ) + + 28 * - COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7795
SELECT + COUNT ( * ) + + 28 * - COUNT ( * ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - + 38 * - - COUNT( * ) + + 23
----
-15

skipif mysql # not compatible
query I rowsort label-7796
SELECT - + 38 * - - COUNT ( * ) + + 23
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL - MIN( DISTINCT - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL - MIN ( DISTINCT - 40 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7798
SELECT - - ( - - 69 ) - + 98 AS col0, + 85 + + - 47 * - 35 * - COUNT( * ) + 78
----
-29
-1482

skipif mysql # not compatible
query II rowsort label-7798
SELECT - - ( - - 69 ) - + 98 AS col0, + 85 + + - 47 * - 35 * - COUNT ( * ) + 78
----
-29
-1482

query II rowsort
SELECT - + 59, 49 AS col2
----
-59
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT - 93 DIV + COUNT( * ) + - + MIN( DISTINCT + 66 ) + 40 - + 23 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-7800
SELECT - 93 / + COUNT ( * ) + - + MIN ( DISTINCT + 66 ) + 40 - + 23 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL + + COUNT( DISTINCT + - 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + + COUNT ( DISTINCT + - 53 ) AS col0
----
1

query II rowsort
SELECT 99 AS col2, - 26 AS col1
----
99
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7803
SELECT - COALESCE ( + 63, - COUNT( * ) + 4 ) * COALESCE ( + 65, + 85 * - 25, 69 DIV 93 + 20 + - 38 ) + - ( + - 79 ) AS col0
----
-4016

skipif mysql # not compatible
query I rowsort label-7803
SELECT - COALESCE ( + 63, - COUNT ( * ) + 4 ) * COALESCE ( + 65, + 85 * - 25, 69 / 93 + 20 + - 38 ) + - ( + - 79 ) AS col0
----
-4016

query II rowsort
SELECT DISTINCT + + COALESCE ( - 46, + 36 * - + 33 * 20, 55 ) * + 87 + - + 45 AS col0, 67 AS col1
----
-4047
67

query I rowsort
SELECT ALL - 35 * - 22 + - 31 + - 59
----
680

query I rowsort
SELECT - + 78 * + 14 + - 88 + + - 66
----
-1246

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT DISTINCT + 85 * - 70 + - 58 - + 75 DIV - + 83 AS col2
----
-6008

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT + 85 * - 70 + - 58 - + 75 / - + 83 AS col2
----
-6008

query I rowsort
SELECT - 84 * + 88 + 38
----
-7354

query I rowsort
SELECT DISTINCT + 63 * - + 64 + - 1 + + 8 + 43 AS col1
----
-3982

query I rowsort
SELECT ALL + 6 * - 22 AS col1
----
-132

query I rowsort
SELECT + ( + + 88 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT ALL - CAST( NULL AS SIGNED ) * 77 - + - 57 + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - CAST ( NULL AS INTEGER ) * 77 - + - 57 + - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT DISTINCT + ( + - COUNT( + + 33 ) ) * 90 * - 59 - - + 43 * - 93 * + - 13 + + - 18
----
57279

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT + ( + - COUNT ( + + 33 ) ) * 90 * - 59 - - + 43 * - 93 * + - 13 + + - 18
----
57279

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT 54 * 86 - COUNT( * ) AS col2
----
4643

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT 54 * 86 - COUNT ( * ) AS col2
----
4643

query I rowsort
SELECT ALL + ( + ( + 70 ) ) AS col2
----
70

query I rowsort
SELECT DISTINCT - 45 * + + 93 * - + 36 col2
----
150660

query I rowsort
SELECT ALL 72 * - 4 * 46 - 81 + + 5
----
-13324

query I rowsort
SELECT 54 * + 59 * - + 45 - - ( + 19 ) AS col1
----
-143351

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT - 86 + - + 3 + + COALESCE ( + COUNT( * ), - 21 * + 72 + - + ( - 60 ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7819
SELECT - 86 + - + 3 + + COALESCE ( + COUNT ( * ), - 21 * + 72 + - + ( - 60 ) ) AS col1
----
-88

query II rowsort
SELECT + 50 * 55, 51 col0
----
2750
51

query I rowsort
SELECT + 68 + + - 4 + + 20 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT COUNT( ALL + - 6 ) * + + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT COUNT ( ALL + - 6 ) * + + 25 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT CAST( + MIN( - 31 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT CAST ( + MIN ( - 31 ) AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7824
SELECT + ( - COALESCE ( + ( - + 7 ), + COUNT( * ) ) ) * + COUNT( * ) * + 62 + 20 * - ( + 16 ) * COUNT( * ) * - + 23 + - 58 + + 83 col1, 42
----
7819
42

skipif mysql # not compatible
query II rowsort label-7824
SELECT + ( - COALESCE ( + ( - + 7 ), + COUNT ( * ) ) ) * + COUNT ( * ) * + 62 + 20 * - ( + 16 ) * COUNT ( * ) * - + 23 + - 58 + + 83 col1, 42
----
7819
42

query I rowsort
SELECT + 32 + + 53 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT ALL + 91 DIV + + 53
----
1

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL + 91 / + + 53
----
1

query I rowsort
SELECT + 84 * 89 * - 61 AS col1
----
-456036

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7828
SELECT - CAST( + + 70 AS SIGNED ), 89 AS col1
----
-70
89

skipif mysql # not compatible
query II rowsort label-7828
SELECT - CAST ( + + 70 AS INTEGER ), 89 AS col1
----
-70
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + + MIN( DISTINCT + 56 ) + 91
----
147

skipif mysql # not compatible
query I rowsort label-7829
SELECT + + MIN ( DISTINCT + 56 ) + 91
----
147

query I rowsort
SELECT + - 23 * - + 12
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + 89 + + + COUNT( * ) + 73 AS col2
----
163

skipif mysql # not compatible
query I rowsort label-7831
SELECT + 89 + + + COUNT ( * ) + 73 AS col2
----
163

query I rowsort
SELECT DISTINCT ( + 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + + COUNT( * ) * - - 95
----
95

skipif mysql # not compatible
query I rowsort label-7833
SELECT + + COUNT ( * ) * - - 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL SUM( 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL SUM ( 48 ) AS col1
----
48

query II rowsort
SELECT ALL + 62 + + 58 * - ( + 97 ) AS col1, - 83 + 2
----
-5564
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT - COUNT( * ) + 75 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - COUNT ( * ) + 75 AS col1
----
74

query I rowsort
SELECT + + ( + + 87 ) + - + 31 - + 78
----
-22

query I rowsort
SELECT DISTINCT + 35 + + ( - - 83 ) AS col2
----
118

query I rowsort
SELECT ALL + 71 * - 14 AS col2
----
-994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7840
SELECT ALL - 88 DIV + 81 - + COUNT( * ) + + - 92 + + 5
----
-89

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - 88 / + 81 - + COUNT ( * ) + + - 92 + + 5
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7841
SELECT ALL + - COUNT( * ) DIV + + 69 + - 9 + - COUNT( * ) * 60 col0
----
-69

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + - COUNT ( * ) / + + 69 + - 9 + - COUNT ( * ) * 60 col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT - - 87 * 44 * + 47 + + + 35 - 94 + - + 21 DIV - 97 AS col1
----
179857

skipif mysql # not compatible
query I rowsort label-7842
SELECT - - 87 * 44 * + 47 + + + 35 - 94 + - + 21 / - 97 AS col1
----
179857

query I rowsort
SELECT - - 16 * - 4
----
-64

query I rowsort
SELECT ALL + 61 - + ( - 82 ) * + 46 - - + 59 * + 7 AS col0
----
4246

query I rowsort
SELECT - 71 * + + 29 * 54
----
-111186

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL COUNT( * ) * + 56 + - 68 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL COUNT ( * ) * + 56 + - 68 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + MIN( ALL 3 )
----
3

skipif mysql # not compatible
query I rowsort label-7847
SELECT + MIN ( ALL 3 )
----
3

query I rowsort
SELECT 86 * - + 82
----
-7052

query II rowsort
SELECT ALL - NULLIF ( + 33, 89 * + 94 + + 6 ), - 98 AS col2
----
-33
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7850
SELECT DISTINCT - 25 AS col0, + CASE 93 WHEN + - AVG ( CAST( NULL AS SIGNED ) ) THEN - 11 / COUNT( * ) END
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-7850
SELECT DISTINCT - 25 AS col0, + CASE 93 WHEN + - AVG ( CAST ( NULL AS INTEGER ) ) THEN - 11 / COUNT ( * ) END
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT - COUNT( * ) - - + 68 + + 0
----
67

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT - COUNT ( * ) - - + 68 + + 0
----
67

query II rowsort
SELECT 23 col1, 68 AS col1
----
23
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7853
SELECT 95 DIV 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7853
SELECT 95 / 71 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT ALL - 69 * CASE - COUNT( * ) WHEN + COALESCE ( + - 3, + 3 ) THEN 62 ELSE NULL END * - + CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL - 69 * CASE - COUNT ( * ) WHEN + COALESCE ( + - 3, + 3 ) THEN 62 ELSE NULL END * - + CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7855
SELECT ALL + COUNT( * ) * 7 DIV - - 70 AS col1, 81 DIV + 66 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7855
SELECT ALL + COUNT ( * ) * 7 / - - 70 AS col1, 81 / + 66 AS col0
----
0
1

query II rowsort
SELECT 39 AS col0, 17 AS col0
----
39
17

query I rowsort
SELECT 1 + 80
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7858
SELECT - 76, CASE - 55 WHEN - 89 THEN COUNT( * ) * - 65 ELSE NULL END AS col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-7858
SELECT - 76, CASE - 55 WHEN - 89 THEN COUNT ( * ) * - 65 ELSE NULL END AS col1
----
-76
NULL

query I rowsort
SELECT 11 + 67 * - + ( + 60 ) col2
----
-4009

query II rowsort
SELECT - - 55 AS col2, 75 col0
----
55
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT 58 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT 58 / + 83 AS col2
----
0

query I rowsort
SELECT ALL 56 + - 0 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT ( + COALESCE ( + + 21, - 48 + + 50, + ( - 9 ), + - 11 ) ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT ( + COALESCE ( + + 21, - 48 + + 50, + ( - 9 ), + - 11 ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 70, + 25 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7865
SELECT DISTINCT - 64 + + ( - 1 ) * - 67 * - + COUNT( * ) AS col1, 9 * 69 * + + 31 + + 13
----
-131
19264

skipif mysql # not compatible
query II rowsort label-7865
SELECT DISTINCT - 64 + + ( - 1 ) * - 67 * - + COUNT ( * ) AS col1, 9 * 69 * + + 31 + + 13
----
-131
19264

query I rowsort
SELECT ALL + - 25 + + - 41
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT CAST( NULL AS SIGNED ) + - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT CAST ( NULL AS INTEGER ) + - - 27
----
NULL

query I rowsort
SELECT 14 + + 86
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - COUNT( * ) + 66 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7869
SELECT - COUNT ( * ) + 66 AS col1
----
65

query I rowsort
SELECT 6 + - 47 AS col0
----
-41

query I rowsort
SELECT - 3 + - 53
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7872
SELECT ALL COUNT( ALL CASE - + 55 WHEN 48 THEN 33 + + + 96 * + ( + 24 ) * - 48 * - - 66 WHEN - 95 THEN NULL END ) - - 68 DIV + - 98, ( + 42 ) * + - 9 AS col1
----
0
-378

skipif mysql # not compatible
query II rowsort label-7872
SELECT ALL COUNT ( ALL CASE - + 55 WHEN 48 THEN 33 + + + 96 * + ( + 24 ) * - 48 * - - 66 WHEN - 95 THEN NULL END ) - - 68 / + - 98, ( + 42 ) * + - 9 AS col1
----
0
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT ( 6 ) DIV - - 81 + 17 + COUNT( * ) * - 39
----
-22

skipif mysql # not compatible
query I rowsort label-7873
SELECT ( 6 ) / - - 81 + 17 + COUNT ( * ) * - 39
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT + 54 DIV 95 + - 24 + - 10 * + 3 + + 89
----
35

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 54 / 95 + - 24 + - 10 * + 3 + + 89
----
35

query II rowsort
SELECT ALL - + 8 AS col0, - 22
----
-8
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7876
SELECT + 83 col0, 74 * + CAST( NULL AS SIGNED ) * - ( - - 62 ) AS col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7876
SELECT + 83 col0, 74 * + CAST ( NULL AS INTEGER ) * - ( - - 62 ) AS col2
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ( + CASE 78 WHEN + 65 - - + 11 + + 84 * - - 13 * COUNT( DISTINCT 11 ) + 20 THEN + 78 WHEN + 33 * - - COUNT( * ) - - 1 * - 32 + + 85 + 5 - + 89 * 13 THEN 20 + - - 91 * - 41 ELSE NULL END ) + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT ( + CASE 78 WHEN + 65 - - + 11 + + 84 * - - 13 * COUNT ( DISTINCT 11 ) + 20 THEN + 78 WHEN + 33 * - - COUNT ( * ) - - 1 * - 32 + + 85 + 5 - + 89 * 13 THEN 20 + - - 91 * - 41 ELSE NULL END ) + 74 AS col1
----
NULL

query I rowsort
SELECT ALL - 29 - 5 + + 35 * - 67 AS col0
----
-2379

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT 57 + + COUNT( * ) + - 7 * - + 64 AS col1
----
506

skipif mysql # not compatible
query I rowsort label-7879
SELECT 57 + + COUNT ( * ) + - 7 * - + 64 AS col1
----
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT + NULLIF ( + - NULLIF ( - 52, - 67 - - - 68 ), - 95 * 60 ) * + - CAST( - 51 AS SIGNED ) + - 75 * 41 AS col1
----
-423

skipif mysql # not compatible
query I rowsort label-7880
SELECT + NULLIF ( + - NULLIF ( - 52, - 67 - - - 68 ), - 95 * 60 ) * + - CAST ( - 51 AS INTEGER ) + - 75 * 41 AS col1
----
-423

onlyif mysql # aggregate syntax: 
query III rowsort label-7881
SELECT ALL - 41 AS col1, - COUNT( * ) - - - 49 + 36, + 31 - - 99 col1
----
-41
-14
130

skipif mysql # not compatible
query III rowsort label-7881
SELECT ALL - 41 AS col1, - COUNT ( * ) - - - 49 + 36, + 31 - - 99 col1
----
-41
-14
130

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT ALL - 47 AS col2, COUNT( * ) * - - 51 * + - 74 * - - 68 AS col0
----
-47
-256632

skipif mysql # not compatible
query II rowsort label-7882
SELECT ALL - 47 AS col2, COUNT ( * ) * - - 51 * + - 74 * - - 68 AS col0
----
-47
-256632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT CAST( + 59 AS SIGNED ) * - COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7883
SELECT CAST ( + 59 AS INTEGER ) * - COUNT ( * ) AS col0
----
-59

query II rowsort
SELECT 95 AS col2, 23
----
95
23

query I rowsort
SELECT DISTINCT 80 * - 79
----
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT DISTINCT - MIN( ALL 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - MIN ( ALL 88 ) AS col1
----
-88

query I rowsort
SELECT 1 * - 84 + - ( + 88 ) AS col1
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT 81 col2, + 62 + - - CASE - SUM( 75 ) WHEN 36 * 51 / + 7 THEN - 86 * + 8 * COUNT( * ) WHEN + + 86 * + 54 + - 7 THEN NULL END
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7888
SELECT 81 col2, + 62 + - - CASE - SUM ( 75 ) WHEN 36 * 51 / + 7 THEN - 86 * + 8 * COUNT ( * ) WHEN + + 86 * + 54 + - 7 THEN NULL END
----
81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7889
SELECT DISTINCT - COUNT( * ) + + + 23 AS col1, + 40 + + + 24 AS col0
----
22
64

skipif mysql # not compatible
query II rowsort label-7889
SELECT DISTINCT - COUNT ( * ) + + + 23 AS col1, + 40 + + + 24 AS col0
----
22
64

query I rowsort
SELECT ALL - NULLIF ( - - 34, + - 57 ) + - 21 AS col0
----
-55

query I rowsort
SELECT 1 * - + 59
----
-59

query I rowsort
SELECT 11 * + 31 AS col0
----
341

query II rowsort
SELECT DISTINCT 77 col2, + 23 + - + 48
----
77
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL - - COUNT( - - 4 ) + + NULLIF ( - 44, - COUNT( + 30 ) + + - CAST( NULL AS SIGNED ) * + 56 )
----
-43

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL - - COUNT ( - - 4 ) + + NULLIF ( - 44, - COUNT ( + 30 ) + + - CAST ( NULL AS INTEGER ) * + 56 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT - MAX( DISTINCT 22 ) + + - 33 / + - NULLIF ( - - CAST( NULL AS SIGNED ), - 18 * + - 69 ) + - MAX( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT - MAX ( DISTINCT 22 ) + + - 33 / + - NULLIF ( - - CAST ( NULL AS INTEGER ), - 18 * + - 69 ) + - MAX ( 33 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT DISTINCT + + 48 * + - 90 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + + 48 * + - 90 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT + 76 * + COUNT( ALL + 32 )
----
76

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT + 76 * + COUNT ( ALL + 32 )
----
76

query I rowsort
SELECT - 60 * + 23 * + - 4 * + 46 AS col0
----
253920

query I rowsort
SELECT ALL - CASE + 84 WHEN - 54 * + + ( + 77 ) THEN - - 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT 72 + + + 65 * - - COUNT( * ) + + - ( 54 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7900
SELECT 72 + + + 65 * - - COUNT ( * ) + + - ( 54 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7901
SELECT - SUM( + 60 ) AS col0, - 98
----
-60
-98

skipif mysql # not compatible
query II rowsort label-7901
SELECT - SUM ( + 60 ) AS col0, - 98
----
-60
-98

query I rowsort
SELECT + + 99 + + + 84 - + 77 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL - + CASE + - 64 WHEN + 16 THEN NULL WHEN - 68 THEN 19 * + + 39 - - - 19 END - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL - + CASE + - 64 WHEN + 16 THEN NULL WHEN - 68 THEN 19 * + + 39 - - - 19 END - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT DISTINCT - NULLIF ( + + 97, - 79 / - - 6 + + CASE + 8 WHEN - COALESCE ( - - 87, COUNT( * ) ) / - + 76 + - 68 * + + 43 + + + COUNT( * ) THEN + - 33 WHEN - NULLIF ( - NULLIF ( + 14, 33 ), + 48 * - 60 * CASE - SUM( DISTINCT - - 63 ) WHEN - AVG ( ALL 48 ) * 59 THEN - 0 END + - 26 ) THEN NULL END + + CAST( NULL AS SIGNED ) + - ( - + 50 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT - NULLIF ( + + 97, - 79 / - - 6 + + CASE + 8 WHEN - COALESCE ( - - 87, COUNT ( * ) ) / - + 76 + - 68 * + + 43 + + + COUNT ( * ) THEN + - 33 WHEN - NULLIF ( - NULLIF ( + 14, 33 ), + 48 * - 60 * CASE - SUM ( DISTINCT - - 63 ) WHEN - AVG ( ALL 48 ) * 59 THEN - 0 END + - 26 ) THEN NULL END + + CAST ( NULL AS INTEGER ) + - ( - + 50 ) )
----
-97

query I rowsort
SELECT DISTINCT + 11 * - 89 - + + 96 + 84 AS col2
----
-991

onlyif mysql # aggregate syntax: 
query II rowsort label-7906
SELECT DISTINCT - - 56 * + - 7 * - COUNT( * ) * - CASE + ( - MAX( - 0 ) ) WHEN + - 7 THEN + 68 END AS col0, 59 * + 69 AS col2
----
NULL
4071

skipif mysql # not compatible
query II rowsort label-7906
SELECT DISTINCT - - 56 * + - 7 * - COUNT ( * ) * - CASE + ( - MAX ( - 0 ) ) WHEN + - 7 THEN + 68 END AS col0, 59 * + 69 AS col2
----
NULL
4071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT + 89 DIV - 44 * - COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-7907
SELECT + 89 / - 44 * - COUNT ( * ) col1
----
2

query I rowsort
SELECT - 87 * + 78
----
-6786

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT CASE COUNT( * ) WHEN 6 THEN + - COUNT( * ) + - 41 + + 10 + - + ( 90 ) * + + 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT CASE COUNT ( * ) WHEN 6 THEN + - COUNT ( * ) + - 41 + + 10 + - + ( 90 ) * + + 0 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT DISTINCT + 23 * - COUNT( * ) AS col1, 41 col0
----
-23
41

skipif mysql # not compatible
query II rowsort label-7910
SELECT DISTINCT + 23 * - COUNT ( * ) AS col1, 41 col0
----
-23
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT + COUNT( + ( + 71 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7911
SELECT + COUNT ( + ( + 71 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL + MAX( ALL 92 )
----
92

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + MAX ( ALL 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT + CASE + MAX( + ( - 1 ) ) WHEN 42 THEN 46 WHEN + 50 THEN NULL WHEN 65 * - COUNT( * ) * + 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT + CASE + MAX ( + ( - 1 ) ) WHEN 42 THEN 46 WHEN + 50 THEN NULL WHEN 65 * - COUNT ( * ) * + 91 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT + 92 - + - 25 DIV 50 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 92 - + - 25 / 50 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT + 85 * - CASE 6 WHEN - - AVG ( - + 12 ) * - 75 * - 24 + - 27 * + NULLIF ( - - COALESCE ( 36, - 24 * - CAST( 88 AS SIGNED ) * + - 8, + 61 ), + + 91 - + + COUNT( * ) / - + 24 ) - + 61 THEN 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT + 85 * - CASE 6 WHEN - - AVG ( - + 12 ) * - 75 * - 24 + - 27 * + NULLIF ( - - COALESCE ( 36, - 24 * - CAST ( 88 AS INTEGER ) * + - 8, + 61 ), + + 91 - + + COUNT ( * ) / - + 24 ) - + 61 THEN 3 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7916
SELECT + 97 * - COUNT( * ), 90 AS col0, 55 DIV - ( - MAX( + + 98 ) ) AS col2
----
-97
90
0

skipif mysql # not compatible
query III rowsort label-7916
SELECT + 97 * - COUNT ( * ), 90 AS col0, 55 / - ( - MAX ( + + 98 ) ) AS col2
----
-97
90
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7917
SELECT CASE COUNT( * ) WHEN + ( 91 ) THEN - ( 89 ) * 37 * 69 + 66 + + + 81 ELSE NULL END, + 79 * 58 AS col1
----
NULL
4582

skipif mysql # not compatible
query II rowsort label-7917
SELECT CASE COUNT ( * ) WHEN + ( 91 ) THEN - ( 89 ) * 37 * 69 + 66 + + + 81 ELSE NULL END, + 79 * 58 AS col1
----
NULL
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL + MAX( + - 81 ) * COUNT( * ) - - + 57 + + 84
----
60

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + MAX ( + - 81 ) * COUNT ( * ) - - + 57 + + 84
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + 67 - ( 53 ) + + SUM( 71 ) - - + 43
----
128

skipif mysql # not compatible
query I rowsort label-7919
SELECT + 67 - ( 53 ) + + SUM ( 71 ) - - + 43
----
128

query I rowsort
SELECT DISTINCT 73 * - 75 * - 97 AS col1
----
531075

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + ( - - COALESCE ( + - COUNT( 36 ), 2, + COUNT( * ), - 33 * - - 86 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7921
SELECT + ( - - COALESCE ( + - COUNT ( 36 ), 2, + COUNT ( * ), - 33 * - - 86 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT + ( + ( + 30 ) ) * + MIN( DISTINCT - 69 ) + - - 20
----
-2050

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + ( + ( + 30 ) ) * + MIN ( DISTINCT - 69 ) + - - 20
----
-2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7923
SELECT + + 58 + + 5 - + + ( + COUNT( * ) ) + 82 AS col0, - 62 * 22 + + 69 + - 96 + 21 * CAST( NULL AS SIGNED ) + - 89 * - + 46 * + + 11 * - - CASE - 40 WHEN + - 74 THEN NULL ELSE + 47 END
----
144
NULL

skipif mysql # not compatible
query II rowsort label-7923
SELECT + + 58 + + 5 - + + ( + COUNT ( * ) ) + 82 AS col0, - 62 * 22 + + 69 + - 96 + 21 * CAST ( NULL AS INTEGER ) + - 89 * - + 46 * + + 11 * - - CASE - 40 WHEN + - 74 THEN NULL ELSE + 47 END
----
144
NULL

query I rowsort
SELECT + 65 * 81 * 57
----
300105

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - - MIN( DISTINCT + 92 ) - + 89 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7925
SELECT - - MIN ( DISTINCT + 92 ) - + 89 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT ALL - 73 DIV - 26
----
2

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL - 73 / - 26
----
2

query I rowsort
SELECT - + ( + + 92 )
----
-92

query I rowsort
SELECT + - 34 + 39 col1
----
5

query II rowsort
SELECT ALL + 23 - - + 87 AS col2, - 82
----
110
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7930
SELECT ALL MAX( DISTINCT 52 ), ( + 2 ) AS col2
----
52
2

skipif mysql # not compatible
query II rowsort label-7930
SELECT ALL MAX ( DISTINCT 52 ), ( + 2 ) AS col2
----
52
2

query II rowsort
SELECT ALL - 32 * 46 * 32 AS col0, + 4 AS col2
----
-47104
4

query II rowsort
SELECT + - 82 * - - 12 AS col2, 10 AS col1
----
-984
10

query I rowsort
SELECT - + 7 + + + ( 60 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - - COUNT( * ) - + + 32 + - + 95 + 46 * - + 73 * - 72 AS col2
----
241650

skipif mysql # not compatible
query I rowsort label-7934
SELECT - - COUNT ( * ) - + + 32 + - + 95 + 46 * - + 73 * - 72 AS col2
----
241650

query I rowsort
SELECT - 63 * 24 AS col0
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + 69 * - 58 * - - COUNT( * ) AS col2
----
-4002

skipif mysql # not compatible
query I rowsort label-7936
SELECT + 69 * - 58 * - - COUNT ( * ) AS col2
----
-4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT ALL + CAST( - - 73 AS SIGNED ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + CAST ( - - 73 AS INTEGER ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + COUNT( DISTINCT 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + COUNT ( DISTINCT 9 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7939
SELECT DISTINCT 62 DIV + 65 + 51, - 66 AS col2
----
51
-66

skipif mysql # not compatible
query II rowsort label-7939
SELECT DISTINCT 62 / + 65 + 51, - 66 AS col2
----
51
-66

query I rowsort
SELECT 37 * + 96 + 78 AS col1
----
3630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT + MAX( 21 ) DIV 78 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT + MAX ( 21 ) / 78 * + 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT ALL + 48 DIV ( + - 16 ) DIV + 2 + + 77
----
76

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL + 48 / ( + - 16 ) / + 2 + + 77
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7943
SELECT ( ( + - 57 ) ) AS col0, + 80 DIV - 70 AS col0
----
-57
-1

skipif mysql # not compatible
query II rowsort label-7943
SELECT ( ( + - 57 ) ) AS col0, + 80 / - 70 AS col0
----
-57
-1

query I rowsort
SELECT ALL - 74 * 91 AS col2
----
-6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT + 3 * + COALESCE ( + CAST( NULL AS SIGNED ), + 14 ) * - + COUNT( * ) * 2 * - 59 + - COUNT( * ) + 97 col2
----
5052

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + 3 * + COALESCE ( + CAST ( NULL AS INTEGER ), + 14 ) * - + COUNT ( * ) * 2 * - 59 + - COUNT ( * ) + 97 col2
----
5052

query I rowsort
SELECT + 2 * - ( + - 34 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL - 70 * + + COUNT( * ) - - 46 + - 61 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - 70 * + + COUNT ( * ) - - 46 + - 61 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT - - COUNT( ALL CAST( - 63 AS SIGNED ) ) * - 38
----
-38

skipif mysql # not compatible
query I rowsort label-7948
SELECT - - COUNT ( ALL CAST ( - 63 AS INTEGER ) ) * - 38
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7949
SELECT COUNT( * ), + COUNT( * ) * - + MAX( DISTINCT 87 ) AS col1
----
1
-87

skipif mysql # not compatible
query II rowsort label-7949
SELECT COUNT ( * ), + COUNT ( * ) * - + MAX ( DISTINCT 87 ) AS col1
----
1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT COUNT( + - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-7950
SELECT COUNT ( + - 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - + SUM( + 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7951
SELECT - + SUM ( + 86 ) AS col1
----
-86

query I rowsort
SELECT + 42 + - 76
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL COUNT( * ) - - - ( + 5 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL COUNT ( * ) - - - ( + 5 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT - 83, - ( + COUNT( * ) ) * - 76 AS col0
----
-83
76

skipif mysql # not compatible
query II rowsort label-7954
SELECT - 83, - ( + COUNT ( * ) ) * - 76 AS col0
----
-83
76

query II rowsort
SELECT - - 43 AS col2, 77 + - 72
----
43
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7956
SELECT DISTINCT - 30, CASE - - 60 WHEN + 64 THEN 50 WHEN + 77 THEN + + 50 + - 32 + + COUNT( * ) END AS col0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-7956
SELECT DISTINCT - 30, CASE - - 60 WHEN + 64 THEN 50 WHEN + 77 THEN + + 50 + - 32 + + COUNT ( * ) END AS col0
----
-30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT DISTINCT + COALESCE ( + + COUNT( * ), - 54 * + 33 + + MIN( ALL - 51 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + COALESCE ( + + COUNT ( * ), - 54 * + 33 + + MIN ( ALL - 51 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT MAX( - + NULLIF ( + 88, - 13 ) ) * - NULLIF ( - 24, CASE - 64 WHEN COUNT( * ) THEN NULL WHEN 20 * + 52 THEN 3 END )
----
-2112

skipif mysql # not compatible
query I rowsort label-7958
SELECT MAX ( - + NULLIF ( + 88, - 13 ) ) * - NULLIF ( - 24, CASE - 64 WHEN COUNT ( * ) THEN NULL WHEN 20 * + 52 THEN 3 END )
----
-2112

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT ( - 93 ) - + + 35 DIV 89 + - + 65
----
-158

skipif mysql # not compatible
query I rowsort label-7959
SELECT ( - 93 ) - + + 35 / 89 + - + 65
----
-158

query I rowsort
SELECT - - CASE NULLIF ( 38, + 71 - - - 47 ) WHEN - - 37 THEN NULL WHEN + 47 * + - 66 THEN 47 * + - ( - 11 ) + 98 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT ALL + 67 DIV + - 64 + - 60 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + 67 / + - 64 + - 60 AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7962
SELECT CAST( + 73 AS SIGNED ) * ( - NULLIF ( + 99, CAST( 57 AS DECIMAL ) ) ) * - 52
----
375804

skipif mysql # not compatible
query I rowsort label-7962
SELECT CAST ( + 73 AS INTEGER ) * ( - NULLIF ( + 99, CAST ( 57 AS REAL ) ) ) * - 52
----
375804

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT 91 DIV 66 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7963
SELECT 91 / 66 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT - 81 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT - 81 / 97 AS col1
----
0

query I rowsort
SELECT DISTINCT + - 88 * + ( - 80 ) + + 11 + 81 + - - 14 * 68 AS col2
----
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL - MIN( ALL + - 33 ) + 48 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - MIN ( ALL + - 33 ) + 48 AS col1
----
81

query I rowsort
SELECT ALL + 5 + + - 41
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT 2 + + - COUNT( DISTINCT + - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7968
SELECT 2 + + - COUNT ( DISTINCT + - 46 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7969
SELECT DISTINCT + AVG ( ALL - + 73 ) + CAST( NULL AS DECIMAL ) - - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + AVG ( ALL - + 73 ) + CAST ( NULL AS REAL ) - - - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT MAX( + - 88 ) * 44
----
-3872

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT MAX ( + - 88 ) * 44
----
-3872

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7971
SELECT DISTINCT - 87 + + SUM( CAST( NULL AS DECIMAL ) ) + + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT - 87 + + SUM ( CAST ( NULL AS REAL ) ) + + + 10
----
NULL

query I rowsort
SELECT 46 + + ( 38 ) col0
----
84

query I rowsort
SELECT ALL + 15 + + 90 - - 58 + 89
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL + COUNT( * ) * + 14 * - - 41 AS col0
----
574

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + COUNT ( * ) * + 14 * - - 41 AS col0
----
574

query I rowsort
SELECT 27 * + 47 * CASE 37 WHEN - - NULLIF ( + 56, - 26 ) THEN - 51 END AS col0
----
NULL

query I rowsort
SELECT 40 - 34 + - 71 * 67 * + 30
----
-142704

onlyif mysql # DIV for integer division: 
query I rowsort label-7977
SELECT ALL + ( - 91 ) DIV - - 75
----
-1

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + ( - 91 ) / - - 75
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT - 6 * - COUNT( * ) - + + 8 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7978
SELECT - 6 * - COUNT ( * ) - + + 8 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7979
SELECT DISTINCT + SUM( + - CAST( NULL AS SIGNED ) ) * - 52 + - - NULLIF ( - CAST( NULL AS SIGNED ), 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + SUM ( + - CAST ( NULL AS INTEGER ) ) * - 52 + - - NULLIF ( - CAST ( NULL AS INTEGER ), 32 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + 47 + + MIN( - 43 )
----
4

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 47 + + MIN ( - 43 )
----
4

query I rowsort
SELECT ( - + 20 ) * ( - 47 ) + + 77 + - ( - 72 ) * - + 26 AS col0
----
-855

query I rowsort
SELECT DISTINCT - ( + ( + 23 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL + 56 - ( COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + 56 - ( COUNT ( * ) )
----
55

query I rowsort
SELECT 27 * - 95 col0
----
-2565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT 58 - - MIN( - - ( + NULLIF ( CAST( 99 AS SIGNED ), + + 5 ) ) ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-7985
SELECT 58 - - MIN ( - - ( + NULLIF ( CAST ( 99 AS INTEGER ), + + 5 ) ) ) AS col0
----
157

query I rowsort
SELECT ALL - + 62 col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT ALL CAST( - - 38 AS SIGNED ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL CAST ( - - 38 AS INTEGER ) AS col2
----
38

query I rowsort
SELECT 37 + - - CASE - 25 WHEN + 26 THEN - 35 WHEN 16 THEN NULL END
----
NULL

query I rowsort
SELECT ( 95 ) * 64 - + 53 + 43 + + 54 + + + 80 + 57
----
6261

query I rowsort
SELECT ALL + 71 + + 91 + 70
----
232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT 83 + - NULLIF ( ( + 30 ), + COUNT( * ) ) * - - COALESCE ( + + ( 54 ), - 40 DIV + 10 + 8 * + 56 ) * - 87
----
141023

skipif mysql # not compatible
query I rowsort label-7991
SELECT 83 + - NULLIF ( ( + 30 ), + COUNT ( * ) ) * - - COALESCE ( + + ( 54 ), - 40 / + 10 + 8 * + 56 ) * - 87
----
141023

query I rowsort
SELECT 75 + 98
----
173

query I rowsort
SELECT ALL + 10 + + 4 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT CASE + NULLIF ( + COUNT( + + 51 ), 79 + + + 4 + 35 + 16 * + + 39 - + CAST( NULL AS SIGNED ) * - COALESCE ( + + 47, + 87 * NULLIF ( 83, + - CAST( NULL AS SIGNED ) ) + 48 + - 13 * + 65 - + - CAST( NULL AS SIGNED ) + + - 29 * + 37 * 86, NULLIF ( - + 84, - 57 ) ) ) WHEN + 62 THEN - - 88 END + + + 94 * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT CASE + NULLIF ( + COUNT ( + + 51 ), 79 + + + 4 + 35 + 16 * + + 39 - + CAST ( NULL AS INTEGER ) * - COALESCE ( + + 47, + 87 * NULLIF ( 83, + - CAST ( NULL AS INTEGER ) ) + 48 + - 13 * + 65 - + - CAST ( NULL AS INTEGER ) + + - 29 * + 37 * 86, NULLIF ( - + 84, - 57 ) ) ) WHEN + 62 THEN - - 88 END + + + 94 * 72
----
NULL

query II rowsort
SELECT ( - 53 ) + + - 30 AS col0, 13 AS col2
----
-83
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7996
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 31 * - - 38
----
1178

query I rowsort
SELECT DISTINCT ( + 1 ) + COALESCE ( + 54, - - 16 * + + 55, + ( + 97 ) )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT CAST( NULL AS SIGNED ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT - SUM( + - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT - SUM ( + - 48 )
----
48

query I rowsort
SELECT ALL + 26 * 86 - - 30 col0
----
2266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8002
SELECT DISTINCT NULLIF ( + - 84, MIN( + 43 ) ) * - 67 * - COUNT( + + ( + - 28 ) ) AS col2, CAST( - 68 AS SIGNED ) - + 7 col0
----
-5628
-75

skipif mysql # not compatible
query II rowsort label-8002
SELECT DISTINCT NULLIF ( + - 84, MIN ( + 43 ) ) * - 67 * - COUNT ( + + ( + - 28 ) ) AS col2, CAST ( - 68 AS INTEGER ) - + 7 col0
----
-5628
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8003
SELECT + NULLIF ( 76, CAST( + 86 AS DECIMAL ) ) col2
----
76

skipif mysql # not compatible
query I rowsort label-8003
SELECT + NULLIF ( 76, CAST ( + 86 AS REAL ) ) col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT 12 * - 59 * - 33 + + + ( - + CASE 88 WHEN + 91 * + 29 * + + 22 + + CAST( + 27 AS SIGNED ) THEN + 11 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT 12 * - 59 * - 33 + + + ( - + CASE 88 WHEN + 91 * + 29 * + + 22 + + CAST ( + 27 AS INTEGER ) THEN + 11 END )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8005
SELECT ALL + 7 AS col2, + 65 DIV - + NULLIF ( - + 38, + 11 )
----
7
1

skipif mysql # not compatible
query II rowsort label-8005
SELECT ALL + 7 AS col2, + 65 / - + NULLIF ( - + 38, + 11 )
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - + 21 * + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8006
SELECT - + 21 * + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - 16 * 29 + - 84 - - COUNT( * ) + MAX( + - 42 ) + + 90 + 83
----
-416

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - 16 * 29 + - 84 - - COUNT ( * ) + MAX ( + - 42 ) + + 90 + 83
----
-416

query I rowsort
SELECT DISTINCT + - 29 col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT - COALESCE ( 64, - 85 - - 10 * COUNT( + 36 ) * + ( 52 ) ) AS col0, + 78 AS col0
----
-64
78

skipif mysql # not compatible
query II rowsort label-8009
SELECT - COALESCE ( 64, - 85 - - 10 * COUNT ( + 36 ) * + ( 52 ) ) AS col0, + 78 AS col0
----
-64
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8010
SELECT - + 30 + + - 8 * + 96 + + COUNT( * ) + - - ( + 58 ) col1, ( - NULLIF ( + 58, + 33 ) ) / + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
-739
NULL

skipif mysql # not compatible
query II rowsort label-8010
SELECT - + 30 + + - 8 * + 96 + + COUNT ( * ) + - - ( + 58 ) col1, ( - NULLIF ( + 58, + 33 ) ) / + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
-739
NULL

query I rowsort
SELECT + - ( - 70 )
----
70

query I rowsort
SELECT ALL + + 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - 90 + - + 8 + - - MIN( ALL + - 38 )
----
-136

skipif mysql # not compatible
query I rowsort label-8013
SELECT - 90 + - + 8 + - - MIN ( ALL + - 38 )
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT ALL + + 39 * - + CAST( 8 AS SIGNED ) * + 78 + + MIN( ALL - 52 ) col2
----
-24388

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + + 39 * - + CAST ( 8 AS INTEGER ) * + 78 + + MIN ( ALL - 52 ) col2
----
-24388

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT - 17 DIV 12 + 37
----
36

skipif mysql # not compatible
query I rowsort label-8015
SELECT - 17 / 12 + 37
----
36

query I rowsort
SELECT - 57 * + 64 AS col1
----
-3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT + 55 * - + CAST( NULL AS SIGNED ) + + ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT + 55 * - + CAST ( NULL AS INTEGER ) + + ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL - - CAST( NULL AS SIGNED ) * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - - CAST ( NULL AS INTEGER ) * 82 AS col2
----
NULL

query I rowsort
SELECT ALL + 9 + + 88
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT - - COUNT( * ) AS col1, + NULLIF ( 41, 2 ) - + COALESCE ( 92, - 14, 75 ) AS col2
----
1
-51

skipif mysql # not compatible
query II rowsort label-8020
SELECT - - COUNT ( * ) AS col1, + NULLIF ( 41, 2 ) - + COALESCE ( 92, - 14, 75 ) AS col2
----
1
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8021
SELECT - + COUNT( * ) DIV - + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8021
SELECT - + COUNT ( * ) / - + 65 AS col0
----
0

query I rowsort
SELECT ALL - + 80 + - + 38
----
-118

query II rowsort
SELECT ALL 47 AS col2, 32 AS col2
----
47
32

query I rowsort
SELECT ALL - CASE WHEN NULL BETWEEN 80 AND NULL THEN - 88 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT - ( ( + - COUNT( * ) ) ) DIV + - ( 21 ) - ( - MIN( + ( ( + + 78 ) ) ) ) * 1 * 69
----
5382

skipif mysql # not compatible
query I rowsort label-8025
SELECT - ( ( + - COUNT ( * ) ) ) / + - ( 21 ) - ( - MIN ( + ( ( + + 78 ) ) ) ) * 1 * 69
----
5382

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT ALL 59 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL 59 / + 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8027
SELECT DISTINCT - 5 DIV - MAX( DISTINCT 94 )
----
0

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT - 5 / - MAX ( DISTINCT 94 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8028
SELECT ALL + AVG ( + NULLIF ( + CAST( NULL AS SIGNED ), 22 * + ( - - ( - 69 ) ) + - 26 ) ) + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + AVG ( + NULLIF ( + CAST ( NULL AS INTEGER ), 22 * + ( - - ( - 69 ) ) + - 26 ) ) + + 61 AS col2
----
NULL

query I rowsort
SELECT - ( + + 68 ) - - + 90 + - ( - 37 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8030
SELECT 36, - MAX( ALL - 31 ) AS col2
----
36
31

skipif mysql # not compatible
query II rowsort label-8030
SELECT 36, - MAX ( ALL - 31 ) AS col2
----
36
31

query I rowsort
SELECT - NULLIF ( - 61, - 46 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT + COUNT( * ) - + ( - 98 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT + COUNT ( * ) - + ( - 98 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8033
SELECT ALL 48 AS col0, - COUNT( * )
----
48
-1

skipif mysql # not compatible
query II rowsort label-8033
SELECT ALL 48 AS col0, - COUNT ( * )
----
48
-1

query II rowsort
SELECT ALL 99 col2, 98 * 74 * 1 AS col0
----
99
7252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8035
SELECT + 3 - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT + 3 - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 40 AS col2
----
NULL

query I rowsort
SELECT ALL 9 * - 30 AS col0
----
-270

query I rowsort
SELECT + 20 + 13 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8038
SELECT 73 AS col2, - COUNT( * )
----
73
-1

skipif mysql # not compatible
query II rowsort label-8038
SELECT 73 AS col2, - COUNT ( * )
----
73
-1

query II rowsort
SELECT ALL 59 AS col1, 24 - + 25
----
59
-1

query I rowsort
SELECT + 67 * - 5 col1
----
-335

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8041
SELECT + 73 * 16 col0, - 84 DIV - COALESCE ( + MAX( - 16 ), MAX( ALL - + 83 ) ) + + - 82
----
1168
-87

skipif mysql # not compatible
query II rowsort label-8041
SELECT + 73 * 16 col0, - 84 / - COALESCE ( + MAX ( - 16 ), MAX ( ALL - + 83 ) ) + + - 82
----
1168
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT + NULLIF ( COUNT( * ), - NULLIF ( 93, 95 * 64 + - 81 - - 91 * - CAST( + + 11 AS SIGNED ) * 13 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8042
SELECT + NULLIF ( COUNT ( * ), - NULLIF ( 93, 95 * 64 + - 81 - - 91 * - CAST ( + + 11 AS INTEGER ) * 13 ) )
----
1

query I rowsort
SELECT + 43 + - 48
----
-5

query I rowsort
SELECT + 37 * - 15
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT - ( - - COUNT( * ) ) * - 84 * + 8 AS col2
----
672

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT - ( - - COUNT ( * ) ) * - 84 * + 8 AS col2
----
672

query II rowsort
SELECT DISTINCT + + 86 * - 87 AS col0, - 21 AS col2
----
-7482
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT - 94 * + 48 * 96 + + + SUM( DISTINCT + 82 ) * 4 AS col0
----
-432824

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - 94 * + 48 * 96 + + + SUM ( DISTINCT + 82 ) * 4 AS col0
----
-432824

query II rowsort
SELECT DISTINCT + 28, - 90 AS col2
----
28
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT ALL 20 * + + 99 - - - MAX( - 96 ) + - - 44 DIV - 53 * + 5
----
2076

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL 20 * + + 99 - - - MAX ( - 96 ) + - - 44 / - 53 * + 5
----
2076

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT + COALESCE ( MAX( - 7 ), - 8 - 89 )
----
-7

skipif mysql # not compatible
query I rowsort label-8050
SELECT + COALESCE ( MAX ( - 7 ), - 8 - 89 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL - 57 * + ( - - 64 ) + + - MAX( ALL - 48 ) * 36
----
-1920

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL - 57 * + ( - - 64 ) + + - MAX ( ALL - 48 ) * 36
----
-1920

query I rowsort
SELECT - 77 - 10 col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT ALL - MAX( + ( - ( + 95 ) ) ) * CAST( 70 AS SIGNED ) + + CASE + - 64 WHEN 77 - COUNT( * ) THEN - 40 END + - + 50 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - MAX ( + ( - ( + 95 ) ) ) * CAST ( 70 AS INTEGER ) + + CASE + - 64 WHEN 77 - COUNT ( * ) THEN - 40 END + - + 50 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8054
SELECT + CAST( NULL AS SIGNED ) * + + 98 * + 54 / - 32 - 94 / - - COUNT( * ), + 41 col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8054
SELECT + CAST ( NULL AS INTEGER ) * + + 98 * + 54 / - 32 - 94 / - - COUNT ( * ), + 41 col1
----
NULL
41

query I rowsort
SELECT DISTINCT - 72 * 8 - - 47 AS col0
----
-529

query II rowsort
SELECT ALL 65, 29 AS col2
----
65
29

onlyif mysql # DIV for integer division: 
query II rowsort label-8057
SELECT - + 38, 16 DIV + 37 AS col2
----
-38
0

skipif mysql # not compatible
query II rowsort label-8057
SELECT - + 38, 16 / + 37 AS col2
----
-38
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT COUNT( * ) AS col1, 49 * 52
----
1
2548

skipif mysql # not compatible
query II rowsort label-8058
SELECT COUNT ( * ) AS col1, 49 * 52
----
1
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL + - 9 * + + 41 + + - COUNT( * )
----
-370

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL + - 9 * + + 41 + + - COUNT ( * )
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT + - COUNT( * ) + - - 34 + - 47 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8060
SELECT + - COUNT ( * ) + - - 34 + - 47 AS col1
----
-14

query I rowsort
SELECT - - 17 * - 38 AS col0
----
-646

query I rowsort
SELECT - 63 - + 19 * - - 87 + + 89
----
-1627

query I rowsort
SELECT ALL ( - + 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL - 92 * - - NULLIF ( - 30, 88 ) * - COUNT( DISTINCT + 82 )
----
-2760

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - 92 * - - NULLIF ( - 30, 88 ) * - COUNT ( DISTINCT + 82 )
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT - 33 + + MAX( 60 ) + 28 * + + 67 AS col1
----
1903

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 33 + + MAX ( 60 ) + 28 * + + 67 AS col1
----
1903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT - 39 - + CAST( - + NULLIF ( 82, + + 93 ) AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8066
SELECT - 39 - + CAST ( - + NULLIF ( 82, + + 93 ) AS INTEGER ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT - 10 + + 51 + + 89 DIV 44 col0
----
43

skipif mysql # not compatible
query I rowsort label-8067
SELECT - 10 + + 51 + + 89 / 44 col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL + 20 - - 83 + - - COUNT( * ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + 20 - - 83 + - - COUNT ( * ) AS col0
----
104

query I rowsort
SELECT - 3 + + 92 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8070
SELECT ALL 15 DIV COUNT( DISTINCT 10 ) * - 38 + + 85 * ( - 94 )
----
-8560

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL 15 / COUNT ( DISTINCT 10 ) * - 38 + + 85 * ( - 94 )
----
-8560

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - MIN( + ( - 15 ) ) + - - NULLIF ( + 93, + - 69 )
----
108

skipif mysql # not compatible
query I rowsort label-8071
SELECT - MIN ( + ( - 15 ) ) + - - NULLIF ( + 93, + - 69 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - 91 * + - MIN( DISTINCT + 45 )
----
4095

skipif mysql # not compatible
query I rowsort label-8072
SELECT - 91 * + - MIN ( DISTINCT + 45 )
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT - NULLIF ( COUNT( * ), + 38 / + + 27 + - ( COUNT( * ) ) + + - COUNT( * ) / 74 * - ( + 74 ) * 97 * 18 * - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-8073
SELECT - NULLIF ( COUNT ( * ), + 38 / + + 27 + - ( COUNT ( * ) ) + + - COUNT ( * ) / 74 * - ( + 74 ) * 97 * 18 * - 39 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT + 56 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT + 56 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8075
SELECT ALL + CASE - - 95 WHEN 21 + - 46 THEN CAST( + SUM( ALL 11 ) AS DECIMAL ) * - + SUM( + 13 ) WHEN - - 26 * - COALESCE ( + 93, 75 ) THEN NULL ELSE NULL END / 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + CASE - - 95 WHEN 21 + - 46 THEN CAST ( + SUM ( ALL 11 ) AS REAL ) * - + SUM ( + 13 ) WHEN - - 26 * - COALESCE ( + 93, 75 ) THEN NULL ELSE NULL END / 20
----
NULL

query I rowsort
SELECT - 85 + - 89 - ( - 6 )
----
-168

query I rowsort
SELECT ALL 8 * - + 59 AS col2
----
-472

onlyif mysql # DIV for integer division: 
query II rowsort label-8078
SELECT ALL - 85 * + 20 col0, - 98 * 15 * 70 DIV + 94 AS col1
----
-1700
-1094

skipif mysql # not compatible
query II rowsort label-8078
SELECT ALL - 85 * + 20 col0, - 98 * 15 * 70 / + 94 AS col1
----
-1700
-1094

query I rowsort
SELECT 61 + + + 59
----
120

query II rowsort
SELECT DISTINCT - 66 + 92, - 50 + - 15 AS col1
----
26
-65

query I rowsort
SELECT ALL + + 67 + + - 72
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8082
SELECT + CASE + - ( - AVG ( - 99 ) ) WHEN - 38 * - + MAX( ALL ( - + 53 ) ) THEN + 17 WHEN - + CASE CAST( NULL AS DECIMAL ) WHEN - - ( - + 11 ) + + CAST( NULL AS SIGNED ) THEN + NULLIF ( 17, + - 76 ) + + 50 END * 74 * 91 + + 21 + + 75 * - - MAX( + 38 ) + + 75 - - 12 THEN + 23 + + - 59 ELSE NULL END * + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT + CASE + - ( - AVG ( - 99 ) ) WHEN - 38 * - + MAX ( ALL ( - + 53 ) ) THEN + 17 WHEN - + CASE CAST ( NULL AS REAL ) WHEN - - ( - + 11 ) + + CAST ( NULL AS INTEGER ) THEN + NULLIF ( 17, + - 76 ) + + 50 END * 74 * 91 + + 21 + + 75 * - - MAX ( + 38 ) + + 75 - - 12 THEN + 23 + + - 59 ELSE NULL END * + - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT 43 + - - MAX( 33 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8083
SELECT 43 + - - MAX ( 33 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT - 9 + 0 * - - COUNT( * ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-8084
SELECT - 9 + 0 * - - COUNT ( * ) col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT ALL ( - - NULLIF ( + - CASE + 72 WHEN - COUNT( * ) + - 26 + ( COUNT( * ) ) / - 9 * + - 95 * + CAST( - - 48 AS SIGNED ) * - - 93 + + CASE + COUNT( * ) WHEN + 72 THEN - + 96 + - - 56 + + 71 WHEN 44 THEN - CASE + 97 WHEN + - 44 THEN 68 END * + 63 WHEN 42 THEN - AVG ( 23 ) - COUNT( * ) * - - 32 * + 36 END THEN - 0 WHEN + 29 * + 23 + 55 + + 56 + - AVG ( 81 ) THEN MIN( ALL + + ( - + 87 ) ) * - 7 ELSE 61 END, 67 ) ) + + 19 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL ( - - NULLIF ( + - CASE + 72 WHEN - COUNT ( * ) + - 26 + ( COUNT ( * ) ) / - 9 * + - 95 * + CAST ( - - 48 AS INTEGER ) * - - 93 + + CASE + COUNT ( * ) WHEN + 72 THEN - + 96 + - - 56 + + 71 WHEN 44 THEN - CASE + 97 WHEN + - 44 THEN 68 END * + 63 WHEN 42 THEN - AVG ( 23 ) - COUNT ( * ) * - - 32 * + 36 END THEN - 0 WHEN + 29 * + 23 + 55 + + 56 + - AVG ( 81 ) THEN MIN ( ALL + + ( - + 87 ) ) * - 7 ELSE 61 END, 67 ) ) + + 19 AS col2
----
-42

query I rowsort
SELECT DISTINCT - + 31 col0
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-8087
SELECT DISTINCT + - 79 * + 43, 34 DIV ( + 12 ) col2
----
-3397
2

skipif mysql # not compatible
query II rowsort label-8087
SELECT DISTINCT + - 79 * + 43, 34 / ( + 12 ) col2
----
-3397
2

query I rowsort
SELECT ALL - + 17 * + + 81 * + 20 - + - 31
----
-27509

onlyif mysql # aggregate syntax: 
query II rowsort label-8089
SELECT - COUNT( * ) * 62 + - - 4 AS col1, - 23 * - - 32 + - CASE - + 56 WHEN AVG ( ALL - 65 ) * + 1 + COUNT( * ) THEN NULL WHEN - 88 + + 94 THEN - 96 + 80 END
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-8089
SELECT - COUNT ( * ) * 62 + - - 4 AS col1, - 23 * - - 32 + - CASE - + 56 WHEN AVG ( ALL - 65 ) * + 1 + COUNT ( * ) THEN NULL WHEN - 88 + + 94 THEN - 96 + 80 END
----
-58
NULL

query II rowsort
SELECT ALL - 32 - 41 AS col1, + 30 AS col1
----
-73
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT CAST( - 75 AS SIGNED ) * + 66
----
-4950

skipif mysql # not compatible
query I rowsort label-8091
SELECT CAST ( - 75 AS INTEGER ) * + 66
----
-4950

query I rowsort
SELECT - 25 + + 76
----
51

query I rowsort
SELECT 40 + - + NULLIF ( 1, + 0 ) * + 29 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT DISTINCT 98 * MIN( + CAST( NULL AS SIGNED ) ) * - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT 98 * MIN ( + CAST ( NULL AS INTEGER ) ) * - + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT COUNT( * ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-8095
SELECT COUNT ( * ) * - 91
----
-91

query I rowsort
SELECT ALL - 61 * 56 AS col1
----
-3416

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( * ) * + + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8097
SELECT COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * )
----
-1

query I rowsort
SELECT 46 * - 61
----
-2806

query II rowsort
SELECT - 96, 70 * - 97 * + 57 AS col0
----
-96
-387030

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT NULLIF ( COUNT( * ), + + 79 ) - - 10 + + 15
----
26

skipif mysql # not compatible
query I rowsort label-8100
SELECT NULLIF ( COUNT ( * ), + + 79 ) - - 10 + + 15
----
26

query I rowsort
SELECT 36 * - - 68
----
2448

query I rowsort
SELECT DISTINCT + 43 * - - 56 col1
----
2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8103
SELECT 71 * 82 DIV - - 22 AS col1, + COUNT( 76 ) + 46
----
264
47

skipif mysql # not compatible
query II rowsort label-8103
SELECT 71 * 82 / - - 22 AS col1, + COUNT ( 76 ) + 46
----
264
47

query I rowsort
SELECT + NULLIF ( - 14, 92 + - 87 ) col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT DISTINCT + + 15 / + CAST( NULL AS SIGNED ) + + 30 * - + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT + + 15 / + CAST ( NULL AS INTEGER ) + + 30 * - + 70 AS col0
----
NULL

query I rowsort
SELECT 58 * 57 + - 39
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT - + COUNT( * ) + MAX( - 78 ) * - + 21 + - + 0
----
1637

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - + COUNT ( * ) + MAX ( - 78 ) * - + 21 + - + 0
----
1637

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT + + ( - - COUNT( * ) ) + + + 14 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + + ( - - COUNT ( * ) ) + + + 14 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8109
SELECT + COUNT( * ) AS col2, ( - 61 ) col2
----
1
-61

skipif mysql # not compatible
query II rowsort label-8109
SELECT + COUNT ( * ) AS col2, ( - 61 ) col2
----
1
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8110
SELECT + 70 AS col2, 2 * - COALESCE ( + - COUNT( * ), + 80 ) + + COUNT( * ) AS col0
----
70
3

skipif mysql # not compatible
query II rowsort label-8110
SELECT + 70 AS col2, 2 * - COALESCE ( + - COUNT ( * ), + 80 ) + + COUNT ( * ) AS col0
----
70
3

query I rowsort
SELECT DISTINCT - + 10 * - 66 AS col1
----
660

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT ALL - + 3 AS col2, COALESCE ( + + 22, 31, + COUNT( * ) ) col0
----
-3
22

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL - + 3 AS col2, COALESCE ( + + 22, 31, + COUNT ( * ) ) col0
----
-3
22

query I rowsort
SELECT ALL + - 60 - + 98
----
-158

query I rowsort
SELECT ( + - 74 ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT 96 DIV + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8115
SELECT 96 / + 34 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT + + 18 - + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT + + 18 - + - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT DISTINCT - CASE + 68 WHEN - COUNT( * ) THEN + AVG ( - + 52 ) WHEN - 85 * - 32 - - + 13 - COUNT( * ) THEN + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT - CASE + 68 WHEN - COUNT ( * ) THEN + AVG ( - + 52 ) WHEN - 85 * - 32 - - + 13 - COUNT ( * ) THEN + 45 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT NULLIF ( 3, + - 95 * + + CAST( NULL AS SIGNED ) ) - + 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT NULLIF ( 3, + - 95 * + + CAST ( NULL AS INTEGER ) ) - + 3 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT DISTINCT CAST( NULL AS SIGNED ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ( - MAX( 53 ) ) * + + 52 AS col2
----
-2756

skipif mysql # not compatible
query I rowsort label-8120
SELECT ( - MAX ( 53 ) ) * + + 52 AS col2
----
-2756

query I rowsort
SELECT ALL ( + 47 ) * - 15
----
-705

query I rowsort
SELECT 20 + - 56 * - 88
----
4948

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8123
SELECT - COUNT( * ) * COALESCE ( COALESCE ( - 6, - + 97 DIV - + 34 * - 20 DIV + 49, + 34 ), + COUNT( * ) ) + + 95 * + ( + 12 ) - + + 62 AS col0, ( 51 ) * 82 + + 29 AS col2
----
1084
4211

skipif mysql # not compatible
query II rowsort label-8123
SELECT - COUNT ( * ) * COALESCE ( COALESCE ( - 6, - + 97 / - + 34 * - 20 / + 49, + 34 ), + COUNT ( * ) ) + + 95 * + ( + 12 ) - + + 62 AS col0, ( 51 ) * 82 + + 29 AS col2
----
1084
4211

query I rowsort
SELECT - ( 92 ) - - 81
----
-11

query I rowsort
SELECT + 20 + + - 11 + 5
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT - COUNT( * ) - - 75 * - 69 AS col0
----
-5176

skipif mysql # not compatible
query I rowsort label-8126
SELECT - COUNT ( * ) - - 75 * - 69 AS col0
----
-5176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8127
SELECT ALL COALESCE ( + SUM( DISTINCT - 4 ), - - 50 * + COUNT( * ) + - CAST( + - ( 94 ) AS SIGNED ) + - + 80 - - + MAX( - - 96 ) DIV - - 89 ) * COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL COALESCE ( + SUM ( DISTINCT - 4 ), - - 50 * + COUNT ( * ) + - CAST ( + - ( 94 ) AS INTEGER ) + - + 80 - - + MAX ( - - 96 ) / - - 89 ) * COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8128
SELECT ALL - 85 + + + COUNT( * ) DIV 15 * - - 37 AS col0, + 29 * NULLIF ( - 23, - COUNT( * ) )
----
-85
-667

skipif mysql # not compatible
query II rowsort label-8128
SELECT ALL - 85 + + + COUNT ( * ) / 15 * - - 37 AS col0, + 29 * NULLIF ( - 23, - COUNT ( * ) )
----
-85
-667

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT DISTINCT 37 + ( - 52 ) + 51 + + 58 + + 72 * + 62 + - - 32 * - - 30 + + - 12 DIV - + 63
----
5518

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT 37 + ( - 52 ) + 51 + + 58 + + 72 * + 62 + - - 32 * - - 30 + + - 12 / - + 63
----
5518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8130
SELECT ALL + 21 * - NULLIF ( CAST( - + 95 AS SIGNED ), 4 * - COUNT( * ) * + - COUNT( * ) ) AS col0
----
1995

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + 21 * - NULLIF ( CAST ( - + 95 AS INTEGER ), 4 * - COUNT ( * ) * + - COUNT ( * ) ) AS col0
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - COALESCE ( + 17, - + 69 * 82, + 40, MAX( ALL + - 29 ) ) * CASE + ( COUNT( * ) ) WHEN - - 93 THEN - 61 WHEN - 83 THEN - COUNT( * ) ELSE NULL END / - ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT - COALESCE ( + 17, - + 69 * 82, + 40, MAX ( ALL + - 29 ) ) * CASE + ( COUNT ( * ) ) WHEN - - 93 THEN - 61 WHEN - 83 THEN - COUNT ( * ) ELSE NULL END / - ( 57 )
----
NULL

query I rowsort
SELECT - 66 + + + 11
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + COUNT( - 85 ) * + COUNT( ALL - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-8133
SELECT + COUNT ( - 85 ) * + COUNT ( ALL - 3 )
----
1

query I rowsort
SELECT ALL + + 13 * - + 48
----
-624

query I rowsort
SELECT DISTINCT - + 50 + - ( - - 4 ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT CASE + 39 WHEN - COUNT( + CAST( NULL AS SIGNED ) ) THEN 23 + + 52 ELSE - 51 END
----
-51

skipif mysql # not compatible
query I rowsort label-8136
SELECT CASE + 39 WHEN - COUNT ( + CAST ( NULL AS INTEGER ) ) THEN 23 + + 52 ELSE - 51 END
----
-51

query I rowsort
SELECT DISTINCT - 25 + - ( 52 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT ALL + + COUNT( * ) * - - 61, + 37 - 45 AS col1
----
61
-8

skipif mysql # not compatible
query II rowsort label-8138
SELECT ALL + + COUNT ( * ) * - - 61, + 37 - 45 AS col1
----
61
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT - ( + COUNT( * ) ) + - - 26
----
25

skipif mysql # not compatible
query I rowsort label-8139
SELECT - ( + COUNT ( * ) ) + - - 26
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - NULLIF ( + - 3, - 79 ) * + 69 + - SUM( DISTINCT 26 )
----
181

skipif mysql # not compatible
query I rowsort label-8140
SELECT - NULLIF ( + - 3, - 79 ) * + 69 + - SUM ( DISTINCT 26 )
----
181

query I rowsort
SELECT DISTINCT + + 36 col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT - ( + + 41 ) + - 23 DIV + 3 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8142
SELECT - ( + + 41 ) + - 23 / + 3 AS col1
----
-48

query I rowsort
SELECT - 84 * - 37
----
3108

query I rowsort
SELECT - - ( - 96 ) - + 70
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + SUM( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8145
SELECT + SUM ( 94 ) AS col2
----
94

query I rowsort
SELECT + + 54 + - 60 + - 27 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT - + COUNT( * ) * + 48 + + 84 * - ( - 37 ) AS col2
----
3060

skipif mysql # not compatible
query I rowsort label-8147
SELECT - + COUNT ( * ) * + 48 + + 84 * - ( - 37 ) AS col2
----
3060

query I rowsort
SELECT - 51 * + 17
----
-867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8149
SELECT - NULLIF ( 30, COALESCE ( - 9, - + 48, + - COUNT( * ) + - + 39 + 44 / + 55 ) + 9 ) * 47 * + - CAST( NULL AS DECIMAL ) / + CAST( - CAST( + 24 AS SIGNED ) AS SIGNED ) + + - 85 * - + ( + 4 ) + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT - NULLIF ( 30, COALESCE ( - 9, - + 48, + - COUNT ( * ) + - + 39 + 44 / + 55 ) + 9 ) * 47 * + - CAST ( NULL AS REAL ) / + CAST ( - CAST ( + 24 AS INTEGER ) AS INTEGER ) + + - 85 * - + ( + 4 ) + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + CASE 13 WHEN - NULLIF ( - - 99, 85 + - 94 - + 99 + + - 3 / 93 / + 32 * 98 * + COUNT( * ) ) THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT + CASE 13 WHEN - NULLIF ( - - 99, 85 + - 94 - + 99 + + - 3 / 93 / + 32 * 98 * + COUNT ( * ) ) THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8151
SELECT CASE - COUNT( * ) WHEN + 45 THEN NULL WHEN + 2 * - 59 + + - CAST( 52 AS SIGNED ) * + + 79 + - MAX( + 86 ) THEN + + 24 END, - 28 * + COUNT( + - 30 ) + - 93 * + - 4 - + 46 AS col2
----
NULL
298

skipif mysql # not compatible
query II rowsort label-8151
SELECT CASE - COUNT ( * ) WHEN + 45 THEN NULL WHEN + 2 * - 59 + + - CAST ( 52 AS INTEGER ) * + + 79 + - MAX ( + 86 ) THEN + + 24 END, - 28 * + COUNT ( + - 30 ) + - 93 * + - 4 - + 46 AS col2
----
NULL
298

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - COUNT( * ) * + 12 * - 20 * + - ( + + 50 ) AS col2
----
-12000

skipif mysql # not compatible
query I rowsort label-8152
SELECT - COUNT ( * ) * + 12 * - 20 * + - ( + + 50 ) AS col2
----
-12000

query I rowsort
SELECT ALL - ( - - 22 ) * + 42 + - - 97 + + - 93 + 80 - - - 43 * NULLIF ( + 31, 53 ) * - + ( + CASE 11 WHEN + 50 THEN - 66 WHEN - - 23 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - CASE + - COUNT( * ) WHEN - 50 + 48 THEN + - 33 / + 26 + + 9 WHEN + + 50 * 41 + - - 6 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT - CASE + - COUNT ( * ) WHEN - 50 + 48 THEN + - 33 / + 26 + + 9 WHEN + + 50 * 41 + - - 6 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT ALL 85 + - 77 / 29 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL 85 + - 77 / 29 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT ALL 96 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL 96 / 79
----
1

query I rowsort
SELECT + 8 + + 20 AS col0
----
28

query I rowsort
SELECT - ( + - 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT + 55 - + - CASE + COUNT( * ) WHEN MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + 25 THEN NULL ELSE + + 99 END + + ( + 50 ) - COUNT( * ) * - COALESCE ( - 57, - + 13, - 86 * - CAST( - 46 AS SIGNED ) ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-8159
SELECT + 55 - + - CASE + COUNT ( * ) WHEN MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 25 THEN NULL ELSE + + 99 END + + ( + 50 ) - COUNT ( * ) * - COALESCE ( - 57, - + 13, - 86 * - CAST ( - 46 AS INTEGER ) ) AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + 60 * + NULLIF ( 63, + COUNT( * ) )
----
3780

skipif mysql # not compatible
query I rowsort label-8160
SELECT + 60 * + NULLIF ( 63, + COUNT ( * ) )
----
3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT ALL 25 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL 25 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT - CAST( 58 AS SIGNED ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-8162
SELECT - CAST ( 58 AS INTEGER ) col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8163
SELECT - + CASE + 61 WHEN + 97 THEN + + MAX( + 69 ) WHEN + COUNT( * ) THEN NULL ELSE NULL END + 54 + - + SUM( 65 ) * + 18 * 3 * + NULLIF ( + CAST( - ( 22 ) AS SIGNED ), + 21 * ( + - 40 ) - + 81 * - 29 - + 23 * - 10 ) * + COALESCE ( + 88, + 51 + AVG ( 44 ) + + + 2 + - - 54 + - COUNT( * ) * - - 2 * + + COALESCE ( + 52, ( 70 ) + CASE - + 47 WHEN CASE + COUNT( * ) WHEN 54 THEN NULL ELSE 74 - 26 END THEN NULL WHEN + 50 THEN - 66 WHEN + 15 THEN 59 ELSE 90 END + + COUNT( * ) / 91 ) * SUM( ALL 59 * + 74 ) * + 33, 65 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT - + CASE + 61 WHEN + 97 THEN + + MAX ( + 69 ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END + 54 + - + SUM ( 65 ) * + 18 * 3 * + NULLIF ( + CAST ( - ( 22 ) AS INTEGER ), + 21 * ( + - 40 ) - + 81 * - 29 - + 23 * - 10 ) * + COALESCE ( + 88, + 51 + AVG ( 44 ) + + + 2 + - - 54 + - COUNT ( * ) * - - 2 * + + COALESCE ( + 52, ( 70 ) + CASE - + 47 WHEN CASE + COUNT ( * ) WHEN 54 THEN NULL ELSE 74 - 26 END THEN NULL WHEN + 50 THEN - 66 WHEN + 15 THEN 59 ELSE 90 END + + COUNT ( * ) / 91 ) * SUM ( ALL 59 * + 74 ) * + 33, 65 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL + COUNT( * ) * 15 * - 18 + 41
----
-229

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + COUNT ( * ) * 15 * - 18 + 41
----
-229

query I rowsort
SELECT + + 16 * + 69
----
1104

query I rowsort
SELECT + 46 - 30 AS col0
----
16

query II rowsort
SELECT + 85 * - - ( + 69 ) col0, 35
----
5865
35

query I rowsort
SELECT - 55 * - - 17
----
-935

query I rowsort
SELECT + ( 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT - - COUNT( * ) DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT - - COUNT ( * ) / + 78
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8171
SELECT + - 89 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT + - 89 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8172
SELECT ALL + CAST( - 2 AS SIGNED ) DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + CAST ( - 2 AS INTEGER ) / 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT + CASE - + 46 WHEN - + 89 + 89 THEN - COUNT( DISTINCT + + 60 ) WHEN 34 * - 10 THEN 85 - - - 48 + + - CASE - 28 WHEN ( + COUNT( ALL + 58 ) ) THEN + 43 ELSE NULL END * + 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT + CASE - + 46 WHEN - + 89 + 89 THEN - COUNT ( DISTINCT + + 60 ) WHEN 34 * - 10 THEN 85 - - - 48 + + - CASE - 28 WHEN ( + COUNT ( ALL + 58 ) ) THEN + 43 ELSE NULL END * + 39 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 50 * - 39 col1
----
1950

query II rowsort
SELECT ALL + 15 AS col0, 51 * + 2 col0
----
15
102

query I rowsort
SELECT ALL 27 * 3
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - COALESCE ( + ( - 72 ), + - 56 ) + + MAX( 63 ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - COALESCE ( + ( - 72 ), + - 56 ) + + MAX ( 63 ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 93 * + COUNT( * ) - 53 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8178
SELECT 93 * + COUNT ( * ) - 53 AS col0
----
40

query I rowsort
SELECT 30 + - 90 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT 39 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT 39 / - 43
----
0

query I rowsort
SELECT ALL - 30 + - - 91 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8182
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-8182
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 98
----
NULL
98

query I rowsort
SELECT DISTINCT - 84 + 89 - 81 AS col1
----
-76

query I rowsort
SELECT ALL 85 + - 21
----
64

query I rowsort
SELECT + 28 * 36 - + 57 AS col1
----
951

query I rowsort
SELECT ALL + 94 + + + 84
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT DISTINCT - 22 * - + COUNT( - + 2 )
----
22

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT - 22 * - + COUNT ( - + 2 )
----
22

query I rowsort
SELECT ALL + 67 + + 76 + - 4 + + 0 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT 55 + + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8189
SELECT 55 + + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT 57 col2, COALESCE ( - 80, - + 32 + - 32 + - COUNT( * ) + - 23 ) + + 65
----
57
-15

skipif mysql # not compatible
query II rowsort label-8190
SELECT 57 col2, COALESCE ( - 80, - + 32 + - 32 + - COUNT ( * ) + - 23 ) + + 65
----
57
-15

query I rowsort
SELECT 0 - - 82 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT DISTINCT 78 DIV + - 93 col0
----
0

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT 78 / + - 93 col0
----
0

query II rowsort
SELECT ALL - 15 AS col0, + 62
----
-15
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT DISTINCT + 98 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + 98 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT DISTINCT - 6 DIV + 70 * + - 82 - ( NULLIF ( + 76, - COALESCE ( + + CASE - - 70 WHEN 60 * + 77 + + - AVG ( ALL + - 16 ) THEN NULL WHEN - ( - 72 ) THEN + 56 * + 84 END, - - 11 ) ) ) - 78 + + 97 + + 54 + - - 66 * 7 * 70 AS col2
----
32337

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT - 6 / + 70 * + - 82 - ( NULLIF ( + 76, - COALESCE ( + + CASE - - 70 WHEN 60 * + 77 + + - AVG ( ALL + - 16 ) THEN NULL WHEN - ( - 72 ) THEN + 56 * + 84 END, - - 11 ) ) ) - 78 + + 97 + + 54 + - - 66 * 7 * 70 AS col2
----
32337

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL + 73 * + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL + 73 * + COUNT ( * ) AS col0
----
73

query II rowsort
SELECT 71 * - - 99 col1, 52
----
7029
52

query I rowsort
SELECT - 92 + 97 * + 1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT ALL SUM( + 48 ) AS col0, + COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-8199
SELECT ALL SUM ( + 48 ) AS col0, + COUNT ( * ) AS col0
----
48
1

query I rowsort
SELECT - 6 + - 14
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL + COUNT( * ) * - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + COUNT ( * ) * - 56 AS col0
----
-56

query I rowsort
SELECT DISTINCT + 21 * + 24
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT - 70 * + COUNT( * ) + 55 * + + 44
----
2350

skipif mysql # not compatible
query I rowsort label-8203
SELECT - 70 * + COUNT ( * ) + 55 * + + 44
----
2350

query I rowsort
SELECT DISTINCT 20 + - 75
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT ( 49 ) DIV - 99 + + 42 + - - 69
----
111

skipif mysql # not compatible
query I rowsort label-8205
SELECT ( 49 ) / - 99 + + 42 + - - 69
----
111

query II rowsort
SELECT + - 20 AS col2, 71
----
-20
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8207
SELECT ALL - 97 + - CASE - 6 WHEN + COUNT( - NULLIF ( - COALESCE ( - 51, - + 80 ), - - 47 ) ) * 11 + CAST( NULL AS SIGNED ) + + 79 THEN NULL WHEN - 81 * COUNT( * ) * COUNT( * ) THEN 62 * + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - 97 + - CASE - 6 WHEN + COUNT ( - NULLIF ( - COALESCE ( - 51, - + 80 ), - - 47 ) ) * 11 + CAST ( NULL AS INTEGER ) + + 79 THEN NULL WHEN - 81 * COUNT ( * ) * COUNT ( * ) THEN 62 * + 34 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT + 6 DIV + - 8 - ( - + 80 ) + + 23 + + 76 DIV 76
----
104

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 6 / + - 8 - ( - + 80 ) + + 23 + + 76 / 76
----
104

query I rowsort
SELECT 65 + + 11 col1
----
76

query I rowsort
SELECT ALL 57 + 41 AS col1
----
98

query I rowsort
SELECT ALL ( + 49 ) + + 8
----
57

query I rowsort
SELECT DISTINCT - COALESCE ( 46, + 30, + 11 ) AS col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL - 98 + ( + 67 ) + - 17 DIV COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - 98 + ( + 67 ) + - 17 / COUNT ( * ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query III rowsort label-8214
SELECT ALL COUNT( * ) * 23 col0, 85 AS col0, 74 AS col0
----
23
85
74

skipif mysql # not compatible
query III rowsort label-8214
SELECT ALL COUNT ( * ) * 23 col0, 85 AS col0, 74 AS col0
----
23
85
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT ALL 56 * + COUNT( + NULLIF ( - 56, - + CAST( + 47 AS SIGNED ) ) ) * + CAST( NULL AS SIGNED ) * 74 - - + 54 - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL 56 * + COUNT ( + NULLIF ( - 56, - + CAST ( + 47 AS INTEGER ) ) ) * + CAST ( NULL AS INTEGER ) * 74 - - + 54 - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8216
SELECT DISTINCT - NULLIF ( + 97, + 21 + + COALESCE ( + + ( SUM( 52 ) ), - COALESCE ( - - 69, ( + - 76 ) ) / + COALESCE ( - + 64, + CAST( NULL AS SIGNED ) * 91 + 73 - + CASE - COUNT( * ) WHEN 72 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN COUNT( * ) * 6 THEN - 72 END * + 72 + + 9 + CASE SUM( - 11 ) WHEN - - 21 * - 37 THEN + + 73 END * + 75 * + - 43, + 21 * - 84 * COUNT( - + 53 ) + - MIN( ALL + - 20 ) + + 77 - + MAX( 61 ) ) + + - CAST( + 24 AS SIGNED ) ) )
----
-97

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT - NULLIF ( + 97, + 21 + + COALESCE ( + + ( SUM ( 52 ) ), - COALESCE ( - - 69, ( + - 76 ) ) / + COALESCE ( - + 64, + CAST ( NULL AS INTEGER ) * 91 + 73 - + CASE - COUNT ( * ) WHEN 72 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * 6 THEN - 72 END * + 72 + + 9 + CASE SUM ( - 11 ) WHEN - - 21 * - 37 THEN + + 73 END * + 75 * + - 43, + 21 * - 84 * COUNT ( - + 53 ) + - MIN ( ALL + - 20 ) + + 77 - + MAX ( 61 ) ) + + - CAST ( + 24 AS INTEGER ) ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT COUNT( * ) * + + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8217
SELECT COUNT ( * ) * + + 32 AS col0
----
32

query I rowsort
SELECT 55 * + 16
----
880

query I rowsort
SELECT 93 * 40
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT 0 + - ( - COUNT( * ) ) * 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8220
SELECT 0 + - ( - COUNT ( * ) ) * 79 AS col2
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-8221
SELECT ALL + 63 DIV 75, 87 AS col1
----
0
87

skipif mysql # not compatible
query II rowsort label-8221
SELECT ALL + 63 / 75, 87 AS col1
----
0
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT DISTINCT 72 DIV + - 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT 72 / + - 53 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT DISTINCT - 90 * + + 28 * - CAST( CASE - 97 WHEN - + 14 + + 36 THEN - NULLIF ( - - 37, - MAX( ALL - - 33 ) ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT - 90 * + + 28 * - CAST ( CASE - 97 WHEN - + 14 + + 36 THEN - NULLIF ( - - 37, - MAX ( ALL - - 33 ) ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + 88 * COUNT( * ) * ( - - 92 )
----
8096

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + 88 * COUNT ( * ) * ( - - 92 )
----
8096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8225
SELECT CAST( NULL AS SIGNED ) + + 2 + - + ( COUNT( * ) ) + + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT CAST ( NULL AS INTEGER ) + + 2 + - + ( COUNT ( * ) ) + + + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT DISTINCT - + ( 94 ) * - - NULLIF ( + 71, + + 5 * - CAST( NULL AS SIGNED ) + COUNT( * ) ) * + 14 AS col2
----
-93436

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT - + ( 94 ) * - - NULLIF ( + 71, + + 5 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) ) * + 14 AS col2
----
-93436

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ( + 61 ) - + MAX( DISTINCT 29 )
----
32

skipif mysql # not compatible
query I rowsort label-8227
SELECT ( + 61 ) - + MAX ( DISTINCT 29 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT 27 * - 38 * - - COUNT( - 8 ) AS col1
----
-1026

skipif mysql # not compatible
query I rowsort label-8228
SELECT 27 * - 38 * - - COUNT ( - 8 ) AS col1
----
-1026

query I rowsort
SELECT + 81 - - ( - 51 ) * 47 AS col0
----
-2316

query I rowsort
SELECT DISTINCT - NULLIF ( + - 67, + + 87 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT DISTINCT COALESCE ( - CASE - ( 72 ) WHEN + MAX( + 3 ) THEN - - 55 ELSE NULL END, - CAST( NULL AS SIGNED ), 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT COALESCE ( - CASE - ( 72 ) WHEN + MAX ( + 3 ) THEN - - 55 ELSE NULL END, - CAST ( NULL AS INTEGER ), 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL + 1 + + ( ( 30 ) ) + + COUNT( * ) + 23 * + COUNT( * ) + - 96 - - 87
----
46

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + 1 + + ( ( 30 ) ) + + COUNT ( * ) + 23 * + COUNT ( * ) + - 96 - - 87
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT - - ( - CASE 72 WHEN - COUNT( * ) * - 61 THEN NULL WHEN - 26 THEN + 90 * - COUNT( * ) + 73 + 26 / ( - 84 ) * + + 66 / - 53 - - 81 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT - - ( - CASE 72 WHEN - COUNT ( * ) * - 61 THEN NULL WHEN - 26 THEN + 90 * - COUNT ( * ) + 73 + 26 / ( - 84 ) * + + 66 / - 53 - - 81 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8234
SELECT DISTINCT - 68 + - 86 + + - COALESCE ( - - 77, + COALESCE ( + + 97, - + CASE - 6 WHEN + - ( + COUNT( * ) ) THEN 58 DIV + 33 * 22 END ) ) * ( COUNT( * ) ) AS col1, - COALESCE ( 76, - COUNT( * ) ) col1
----
-231
-76

skipif mysql # not compatible
query II rowsort label-8234
SELECT DISTINCT - 68 + - 86 + + - COALESCE ( - - 77, + COALESCE ( + + 97, - + CASE - 6 WHEN + - ( + COUNT ( * ) ) THEN 58 / + 33 * 22 END ) ) * ( COUNT ( * ) ) AS col1, - COALESCE ( 76, - COUNT ( * ) ) col1
----
-231
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT - 6 DIV - MIN( - + 42 ) * 97
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT - 6 / - MIN ( - + 42 ) * 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL 16 * + CASE + SUM( ALL + + 15 ) WHEN + CASE + 29 WHEN - - 81 + + 52 THEN - + 18 END THEN - 21 + 53 + + - 71 * - + COUNT( * ) + + COUNT( * ) * 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL 16 * + CASE + SUM ( ALL + + 15 ) WHEN + CASE + 29 WHEN - - 81 + + 52 THEN - + 18 END THEN - 21 + 53 + + - 71 * - + COUNT ( * ) + + COUNT ( * ) * 60 END AS col0
----
NULL

query I rowsort
SELECT CASE + 82 WHEN - - 9 THEN + - 8 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 36 * 72 + + + 34 + + 70 + - 19 AS col0
----
2677

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + MIN( + - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8239
SELECT + MIN ( + - 14 )
----
-14

query II rowsort
SELECT DISTINCT + 91, 75 AS col1
----
91
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL MAX( ALL - 31 ) * + 12 AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL MAX ( ALL - 31 ) * + 12 AS col2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + 91 * + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8242
SELECT + 91 * + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + COALESCE ( + - COUNT( * ), + 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-8243
SELECT + COALESCE ( + - COUNT ( * ), + 10 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT MAX( DISTINCT - 25 ) * 0 + + - 89 * + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-8244
SELECT MAX ( DISTINCT - 25 ) * 0 + + - 89 * + COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8245
SELECT DISTINCT + 26 AS col2, CAST( + + 77 AS SIGNED ) AS col0
----
26
77

skipif mysql # not compatible
query II rowsort label-8245
SELECT DISTINCT + 26 AS col2, CAST ( + + 77 AS INTEGER ) AS col0
----
26
77

query I rowsort
SELECT + 32 + - 86
----
-54

query I rowsort
SELECT ALL 2 * - 55 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT + NULLIF ( + 75, + 34 * + CASE - 42 WHEN + + 25 * + 64 * 96 / + 84 + - 30 THEN - COUNT( ALL - 0 ) * - - COUNT( * ) WHEN COUNT( * ) THEN NULL END - - 39 - + 8 ) + NULLIF ( - 92, + - 76 + - - 23 + - 22 )
----
-17

skipif mysql # not compatible
query I rowsort label-8248
SELECT + NULLIF ( + 75, + 34 * + CASE - 42 WHEN + + 25 * + 64 * 96 / + 84 + - 30 THEN - COUNT ( ALL - 0 ) * - - COUNT ( * ) WHEN COUNT ( * ) THEN NULL END - - 39 - + 8 ) + NULLIF ( - 92, + - 76 + - - 23 + - 22 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT 68 * + - 93 - - 54 DIV + 78 * 44 AS col1
----
-6324

skipif mysql # not compatible
query I rowsort label-8249
SELECT 68 * + - 93 - - 54 / + 78 * 44 AS col1
----
-6324

query I rowsort
SELECT + 81 * - 45 + - 64
----
-3709

query I rowsort
SELECT - 95 * - - 69
----
-6555

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8252
SELECT 25 AS col1, 87 DIV 67 * COUNT( * ) + - 80 * + 78 * - 40
----
25
249601

skipif mysql # not compatible
query II rowsort label-8252
SELECT 25 AS col1, 87 / 67 * COUNT ( * ) + - 80 * + 78 * - 40
----
25
249601

query I rowsort
SELECT - - 79 * + 84 col2
----
6636

query I rowsort
SELECT + 65 + 1 - + COALESCE ( - 83, - 83, + - 3 + - 74 + - 89 ) + + - 17 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - COALESCE ( NULLIF ( - COUNT( * ), + 57 + + + 46 ), + ( - 8 ) ) - - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8255
SELECT - COALESCE ( NULLIF ( - COUNT ( * ), + 57 + + + 46 ), + ( - 8 ) ) - - + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT ALL + 96 DIV - COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + 96 / - COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT ALL - + 24 + 28 AS col2
----
4

query I rowsort
SELECT DISTINCT + ( + + 91 ) + 75 + 46 * - 96 AS col2
----
-4250

query I rowsort
SELECT DISTINCT + - 82 + + + 7
----
-75

query I rowsort
SELECT COALESCE ( + 6, 70 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL + ( - COUNT( DISTINCT - NULLIF ( - 45, - + 2 ) ) ) + 29 + + 37 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + ( - COUNT ( DISTINCT - NULLIF ( - 45, - + 2 ) ) ) + 29 + + 37 AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT DISTINCT + - 82 * 10 DIV + 27 + 99 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT + - 82 * 10 / + 27 + 99 AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8263
SELECT - - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) + 99 / - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT - - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) + 99 / - 72
----
NULL

query I rowsort
SELECT - 95 * - 11 AS col1
----
1045

query I rowsort
SELECT - + 0 + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL + - COUNT( * ) + - + 38 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + - COUNT ( * ) + - + 38 AS col1
----
-39

query I rowsort
SELECT ALL COALESCE ( - + 67, + 27 ) AS col2
----
-67

query I rowsort
SELECT - 15 + + 78 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - CASE + AVG ( + 83 ) WHEN 47 + COUNT( * ) THEN NULL WHEN + 49 THEN - 38 END * - 90 * + - CASE + + 46 WHEN + 1 THEN NULL ELSE - 96 / - 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT - CASE + AVG ( + 83 ) WHEN 47 + COUNT ( * ) THEN NULL WHEN + 49 THEN - 38 END * - 90 * + - CASE + + 46 WHEN + 1 THEN NULL ELSE - 96 / - 80 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT + COUNT( * ) * + + 56 + - 1 + - 61, 1 AS col1
----
-6
1

skipif mysql # not compatible
query II rowsort label-8270
SELECT + COUNT ( * ) * + + 56 + - 1 + - 61, 1 AS col1
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT - NULLIF ( + 18, - COALESCE ( ( - 98 ), - MAX( DISTINCT - 39 ) + ( + - COUNT( * ) ) ) / - 59 * ( 11 ) ) * + 5 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8271
SELECT - NULLIF ( + 18, - COALESCE ( ( - 98 ), - MAX ( DISTINCT - 39 ) + ( + - COUNT ( * ) ) ) / - 59 * ( 11 ) ) * + 5 AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT + CAST( NULL AS SIGNED ) + 50 * 8 - - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT + CAST ( NULL AS INTEGER ) + 50 * 8 - - - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + ( 5 ) / COUNT( * ) * - CASE + 94 WHEN + 31 THEN NULL WHEN - 60 THEN - 66 END + + - MIN( 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT + ( 5 ) / COUNT ( * ) * - CASE + 94 WHEN + 31 THEN NULL WHEN - 60 THEN - 66 END + + - MIN ( 66 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 67 * + 28 AS col1
----
1876

query I rowsort
SELECT - 8 * 63
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT DISTINCT + 18 * - ( - - NULLIF ( + 15, + CAST( - 50 AS SIGNED ) ) )
----
-270

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + 18 * - ( - - NULLIF ( + 15, + CAST ( - 50 AS INTEGER ) ) )
----
-270

query I rowsort
SELECT DISTINCT - 63 * 71
----
-4473

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT ALL + 9 * + COUNT( * ) AS col1, 84 AS col2
----
9
84

skipif mysql # not compatible
query II rowsort label-8278
SELECT ALL + 9 * + COUNT ( * ) AS col1, 84 AS col2
----
9
84

query I rowsort
SELECT + NULLIF ( - COALESCE ( 26, + 51 * 98 ), - 75 ) + 33
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT + 78 + + - 72 + + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8280
SELECT + 78 + + - 72 + + COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT - NULLIF ( + 66, - 69 ) * 19 - + + 48 * - COUNT( * )
----
-1206

skipif mysql # not compatible
query I rowsort label-8281
SELECT - NULLIF ( + 66, - 69 ) * 19 - + + 48 * - COUNT ( * )
----
-1206

query II rowsort
SELECT - 15 * 82 * + + 19 + - 34 AS col0, - ( + 99 ) AS col0
----
-23404
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT + CASE WHEN CAST( - - COUNT( * ) AS SIGNED ) NOT IN ( + + 89 * + - COUNT( * ), 14 * - - 44, 63 * 66 * - ( - 15 ) / + 42 * - 81 * - + ( - - 3 ) + - 27 - + 0, - 85 * - 88 ) THEN - - 4 * + - 61 END AS col1
----
-244

skipif mysql # not compatible
query I rowsort label-8283
SELECT + CASE WHEN CAST ( - - COUNT ( * ) AS INTEGER ) NOT IN ( + + 89 * + - COUNT ( * ), 14 * - - 44, 63 * 66 * - ( - 15 ) / + 42 * - 81 * - + ( - - 3 ) + - 27 - + 0, - 85 * - 88 ) THEN - - 4 * + - 61 END AS col1
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - MAX( 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8284
SELECT - MAX ( 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + 55 * 62 + + 5 * ( - COUNT( * ) ) * - 25
----
3535

skipif mysql # not compatible
query I rowsort label-8285
SELECT + 55 * 62 + + 5 * ( - COUNT ( * ) ) * - 25
----
3535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT ALL - - COUNT( * ) * + + CAST( + + 26 AS SIGNED ) + + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - - COUNT ( * ) * + + CAST ( + + 26 AS INTEGER ) + + - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT + - COUNT( * ) * + - 65
----
65

skipif mysql # not compatible
query I rowsort label-8287
SELECT + - COUNT ( * ) * + - 65
----
65

query I rowsort
SELECT + - 17 + + 93
----
76

query I rowsort
SELECT ALL - 66 * + + 5 + + 0 AS col2
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT + 85 * + SUM( ALL - + 93 ) col1
----
-7905

skipif mysql # not compatible
query I rowsort label-8290
SELECT + 85 * + SUM ( ALL - + 93 ) col1
----
-7905

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT + + 7 * - MIN( + + 15 ) + 44 + - 98 + COALESCE ( - 87, ( - 68 ) ) + 90 * 8 * + 2
----
1194

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + + 7 * - MIN ( + + 15 ) + 44 + - 98 + COALESCE ( - 87, ( - 68 ) ) + 90 * 8 * + 2
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT - - COUNT( * ) * 47 + + COALESCE ( - - 70, - + ( - - 46 ) + + + ( - - 68 ) + 86, - MIN( DISTINCT + 5 ) )
----
117

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - - COUNT ( * ) * 47 + + COALESCE ( - - 70, - + ( - - 46 ) + + + ( - - 68 ) + 86, - MIN ( DISTINCT + 5 ) )
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8293
SELECT ALL 69 + + COUNT( * ) + + + 51 * - 89 * + 47 + - 57 * 80 + COUNT( * ) DIV - 87 + 44 col1, + 77 AS col0
----
-217779
77

skipif mysql # not compatible
query II rowsort label-8293
SELECT ALL 69 + + COUNT ( * ) + + + 51 * - 89 * + 47 + - 57 * 80 + COUNT ( * ) / - 87 + 44 col1, + 77 AS col0
----
-217779
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8294
SELECT 95 DIV 40 DIV - CAST( - - 74 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT 95 / 40 / - CAST ( - - 74 AS INTEGER )
----
0

query I rowsort
SELECT - COALESCE ( + + 42, + 10, + - 51 ) AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT DISTINCT - - 17 DIV 2 + - - COALESCE ( + 36, - - COUNT( * ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT - - 17 / 2 + - - COALESCE ( + 36, - - COUNT ( * ) ) AS col2
----
44

query I rowsort
SELECT ( + + 72 ) * 59
----
4248

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT - 18 - - 74 * - CASE - 63 WHEN + + NULLIF ( 26, 48 / - + COUNT( * ) + + 9 + - 97 ) * - 96 * SUM( DISTINCT 37 ) * + 96 * - - ( 18 ) / + - 43 + - 11 - + 87 + - 21 THEN NULL ELSE + COALESCE ( - 85, - - 64, - 97, + 73 ) END AS col2
----
6272

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT - 18 - - 74 * - CASE - 63 WHEN + + NULLIF ( 26, 48 / - + COUNT ( * ) + + 9 + - 97 ) * - 96 * SUM ( DISTINCT 37 ) * + 96 * - - ( 18 ) / + - 43 + - 11 - + 87 + - 21 THEN NULL ELSE + COALESCE ( - 85, - - 64, - 97, + 73 ) END AS col2
----
6272

query I rowsort
SELECT - + ( + 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8300
SELECT DISTINCT + 91 DIV - 29 + NULLIF ( + - 0, MIN( DISTINCT 96 ) * + - 6 + - 56 + - - 60 ) + - 21
----
-24

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT + 91 / - 29 + NULLIF ( + - 0, MIN ( DISTINCT 96 ) * + - 6 + - 56 + - - 60 ) + - 21
----
-24

query I rowsort
SELECT ALL + 76 * - 84 AS col2
----
-6384

query I rowsort
SELECT DISTINCT 56 * - - 34 AS col2
----
1904

onlyif mysql # aggregate syntax: 
query III rowsort label-8303
SELECT 80 - + CASE - 70 WHEN + 74 THEN + 1 END col1, + 44, + NULLIF ( 77, - ( - 85 ) + - + 20 + SUM( DISTINCT + 25 ) + COUNT( * ) - 83 * + + 22 ) AS col0
----
NULL
44
77

skipif mysql # not compatible
query III rowsort label-8303
SELECT 80 - + CASE - 70 WHEN + 74 THEN + 1 END col1, + 44, + NULLIF ( 77, - ( - 85 ) + - + 20 + SUM ( DISTINCT + 25 ) + COUNT ( * ) - 83 * + + 22 ) AS col0
----
NULL
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT 83 * - - CASE WHEN NOT 96 BETWEEN COALESCE ( + 51, + + 80 * - 96 ) * + + COUNT( * ) AND + - 14 + MIN( + ( + - 98 ) ) THEN NULL ELSE + - 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT 83 * - - CASE WHEN NOT 96 BETWEEN COALESCE ( + 51, + + 80 * - 96 ) * + + COUNT ( * ) AND + - 14 + MIN ( + ( + - 98 ) ) THEN NULL ELSE + - 72 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT 73 DIV - 68
----
-1

skipif mysql # not compatible
query I rowsort label-8305
SELECT 73 / - 68
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT 9 * + + COUNT( * ) * - 25 * + COUNT( * )
----
-225

skipif mysql # not compatible
query I rowsort label-8306
SELECT 9 * + + COUNT ( * ) * - 25 * + COUNT ( * )
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT COALESCE ( + 35, 27 + - - 96 ) * - - 88 - - COUNT( * ) + - CASE MIN( 36 ) WHEN + 69 THEN NULL WHEN + + 47 THEN + 36 WHEN - 81 * - ( 19 ) THEN NULL ELSE - ( + - ( + 82 ) ) END
----
2999

skipif mysql # not compatible
query I rowsort label-8307
SELECT COALESCE ( + 35, 27 + - - 96 ) * - - 88 - - COUNT ( * ) + - CASE MIN ( 36 ) WHEN + 69 THEN NULL WHEN + + 47 THEN + 36 WHEN - 81 * - ( 19 ) THEN NULL ELSE - ( + - ( + 82 ) ) END
----
2999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8308
SELECT DISTINCT - COUNT( * ) * - + 30 DIV - - 56 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT - COUNT ( * ) * - + 30 / - - 56 * + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + 73 * 90 + 61
----
6631

query I rowsort
SELECT ALL - 14 + - + 13 + + + ( + 69 ) * - COALESCE ( 57, 95 )
----
-3960

query I rowsort
SELECT 99 + + 51
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT 34 * COUNT( 25 )
----
34

skipif mysql # not compatible
query I rowsort label-8312
SELECT 34 * COUNT ( 25 )
----
34

query I rowsort
SELECT DISTINCT - COALESCE ( + 4, + 46 ) AS col0
----
-4

query I rowsort
SELECT DISTINCT - 33 + 3
----
-30

query I rowsort
SELECT ALL ( + 16 ) + - 44 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL - COUNT( * ) + - CASE + 28 WHEN + 93 * - 36 + 11 THEN - 54 + + SUM( ALL 16 + - 60 ) * 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - COUNT ( * ) + - CASE + 28 WHEN + 93 * - 36 + 11 THEN - 54 + + SUM ( ALL 16 + - 60 ) * 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT + 60 + - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT + 60 + - COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8318
SELECT - COALESCE ( 69, + 41 ) * CAST( CASE 4 WHEN CAST( 72 AS SIGNED ) * 30 + 12 THEN COUNT( 26 ) * NULLIF ( - 42 + - 11, + 97 * - 65 + AVG ( DISTINCT + 48 ) ) END AS SIGNED ) + + COALESCE ( - 99, - MIN( ALL + 38 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT - COALESCE ( 69, + 41 ) * CAST ( CASE 4 WHEN CAST ( 72 AS INTEGER ) * 30 + 12 THEN COUNT ( 26 ) * NULLIF ( - 42 + - 11, + 97 * - 65 + AVG ( DISTINCT + 48 ) ) END AS INTEGER ) + + COALESCE ( - 99, - MIN ( ALL + 38 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT - MAX( ALL 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - MAX ( ALL 47 )
----
-47

query I rowsort
SELECT 14 + - 24
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT - 72 * + 56 + + ( 47 + - ( + NULLIF ( COUNT( * ), + CAST( CASE - 20 WHEN 51 * 49 + + MAX( DISTINCT 82 ) THEN + 23 + + 9 END AS SIGNED ) ) ) * - COUNT( * ) )
----
-3984

skipif mysql # not compatible
query I rowsort label-8321
SELECT - 72 * + 56 + + ( 47 + - ( + NULLIF ( COUNT ( * ), + CAST ( CASE - 20 WHEN 51 * 49 + + MAX ( DISTINCT 82 ) THEN + 23 + + 9 END AS INTEGER ) ) ) * - COUNT ( * ) )
----
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT COUNT( * ) + - 75 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8322
SELECT COUNT ( * ) + - 75 AS col2
----
-74

query I rowsort
SELECT ALL 93 - 89 col1
----
4

query I rowsort
SELECT 49 * - 20 AS col0
----
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT ALL 4 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL 4 / 63 AS col2
----
0

query I rowsort
SELECT 68 + 13
----
81

query I rowsort
SELECT ALL 57 * - 82
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT 39 * - MIN( + 20 ) col0
----
-780

skipif mysql # not compatible
query I rowsort label-8328
SELECT 39 * - MIN ( + 20 ) col0
----
-780

query I rowsort
SELECT 74 * - NULLIF ( + 30, + 62 + + 52 )
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT CASE - 19 WHEN COALESCE ( 48, + 80 ) + 28 THEN - 38 / + 92 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT CASE - 19 WHEN COALESCE ( 48, + 80 ) + 28 THEN - 38 / + 92 END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT 94 DIV ( COUNT( * ) * 44 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8331
SELECT 94 / ( COUNT ( * ) * 44 ) AS col1
----
2

query I rowsort
SELECT 64 + 88 AS col0
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT DISTINCT 44 DIV 9
----
4

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT 44 / 9
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL - COUNT( * ) * NULLIF ( + 37 * - 19, 49 )
----
703

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - COUNT ( * ) * NULLIF ( + 37 * - 19, 49 )
----
703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT COUNT( ALL - COALESCE ( - 47, - 31 ) ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT COUNT ( ALL - COALESCE ( - 47, - 31 ) ) / 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8336
SELECT ALL 91 DIV COUNT( 14 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL 91 / COUNT ( 14 ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT DISTINCT 8 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT 8 / 88 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + 53, + 29 ) * + 68 AS col1
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL ( + 80 ) * + COUNT( * ) + + 85
----
165

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL ( + 80 ) * + COUNT ( * ) + + 85
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT MIN( ALL ( + 21 ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8340
SELECT MIN ( ALL ( + 21 ) ) AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT - 69 DIV 41 + + 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8341
SELECT - 69 / 41 + + 10 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT MIN( DISTINCT ( 70 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8342
SELECT MIN ( DISTINCT ( 70 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT - SUM( + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT - SUM ( + 56 )
----
-56

query I rowsort
SELECT 89 * 91 AS col2
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT 25 + MAX( - 75 ) * - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8345
SELECT 25 + MAX ( - 75 ) * - COUNT ( * )
----
100

query I rowsort
SELECT DISTINCT + 47 * + 1 + 20
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL - 63 * SUM( + 70 ) + - 27
----
-4437

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - 63 * SUM ( + 70 ) + - 27
----
-4437

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL 25 * 0 + + NULLIF ( COUNT( * ), 26 * + 56 - - 88 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL 25 * 0 + + NULLIF ( COUNT ( * ), 26 * + 56 - - 88 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT - COUNT( DISTINCT - 43 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - COUNT ( DISTINCT - 43 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8350
SELECT DISTINCT - COUNT( DISTINCT 52 ) * 72 + + CAST( ( - 83 ) AS SIGNED ) AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT - COUNT ( DISTINCT 52 ) * 72 + + CAST ( ( - 83 ) AS INTEGER ) AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL - COUNT( * ) * 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - COUNT ( * ) * 60 AS col2
----
-60

query I rowsort
SELECT - - ( ( 6 ) ) * - 88 col1
----
-528

query I rowsort
SELECT - - 28 * + 72 AS col1
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8354
SELECT DISTINCT - + 75 DIV + MAX( - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT - + 75 / + MAX ( - 68 )
----
1

query I rowsort
SELECT ALL - 84 * 3
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT - - 79 DIV 70
----
1

skipif mysql # not compatible
query I rowsort label-8356
SELECT - - 79 / 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - 8 * - 78 + CASE - COUNT( * ) WHEN - 13 THEN 85 + 42 * + 4 WHEN COUNT( * ) THEN + COUNT( * ) ELSE + 24 * - COUNT( * ) END
----
600

skipif mysql # not compatible
query I rowsort label-8357
SELECT - 8 * - 78 + CASE - COUNT ( * ) WHEN - 13 THEN 85 + 42 * + 4 WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE + 24 * - COUNT ( * ) END
----
600

query I rowsort
SELECT DISTINCT - ( + 13 ) * + 82 AS col0
----
-1066

query I rowsort
SELECT ALL + - 33 * - 83 AS col1
----
2739

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8360
SELECT - CAST( CAST( 94 AS SIGNED ) AS SIGNED ) DIV 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8360
SELECT - CAST ( CAST ( 94 AS INTEGER ) AS INTEGER ) / 69 AS col2
----
-1

query I rowsort
SELECT ALL - 49 * 49
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT + COUNT( - 33 ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT + COUNT ( - 33 ) * + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL - COUNT( * ) * 51
----
-51

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - COUNT ( * ) * 51
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8364
SELECT ALL + - COUNT( * ) - - 82 DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL + - COUNT ( * ) - - 82 / 45 AS col1
----
0

query I rowsort
SELECT - + 77 * 26
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 45 * - MIN( - ( 59 ) ) AS col2
----
2655

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 45 * - MIN ( - ( 59 ) ) AS col2
----
2655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT - COALESCE ( - 73, - 19 * 72, + CAST( ( 33 ) AS SIGNED ) ) - + 77 * - 25 AS col0
----
1998

skipif mysql # not compatible
query I rowsort label-8367
SELECT - COALESCE ( - 73, - 19 * 72, + CAST ( ( 33 ) AS INTEGER ) ) - + 77 * - 25 AS col0
----
1998

query I rowsort
SELECT ALL 3 * 42 AS col0
----
126

query I rowsort
SELECT + 9 * 32
----
288

query I rowsort
SELECT ALL 67 * + 55 * - 82 AS col0
----
-302170

query I rowsort
SELECT + 38 - 36
----
2

query I rowsort
SELECT DISTINCT 2 * 58
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL CASE + + 69 WHEN + 16 * + ( - 45 ) + AVG ( DISTINCT 61 ) THEN + CASE - 41 WHEN + 67 THEN - MIN( ALL 22 ) WHEN 96 * - COUNT( * ) THEN NULL WHEN ( - COUNT( * ) ) - + COUNT( * ) THEN + CAST( NULL AS SIGNED ) ELSE 81 END + COUNT( * ) END + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL CASE + + 69 WHEN + 16 * + ( - 45 ) + AVG ( DISTINCT 61 ) THEN + CASE - 41 WHEN + 67 THEN - MIN ( ALL 22 ) WHEN 96 * - COUNT ( * ) THEN NULL WHEN ( - COUNT ( * ) ) - + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) ELSE 81 END + COUNT ( * ) END + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL COUNT( * ) + + 62
----
63

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL COUNT ( * ) + + 62
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT + COALESCE ( + COUNT( * ), + 48 ) * + 89
----
89

skipif mysql # not compatible
query I rowsort label-8375
SELECT + COALESCE ( + COUNT ( * ), + 48 ) * + 89
----
89

query I rowsort
SELECT + 49 * + 63 * ( 52 ) AS col0
----
160524

query I rowsort
SELECT + 19 * 83 AS col1
----
1577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT ALL - 19 / - 66 + + CASE COUNT( * ) WHEN + CAST( + AVG ( + 45 ) AS SIGNED ) * - 44 - CASE 26 WHEN 82 THEN 15 WHEN + COUNT( * ) * 25 THEN 65 * 97 WHEN COUNT( * ) * - 90 + COUNT( * ) * 6 THEN NULL END THEN 66 * - 71 END * 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - 19 / - 66 + + CASE COUNT ( * ) WHEN + CAST ( + AVG ( + 45 ) AS INTEGER ) * - 44 - CASE 26 WHEN 82 THEN 15 WHEN + COUNT ( * ) * 25 THEN 65 * 97 WHEN COUNT ( * ) * - 90 + COUNT ( * ) * 6 THEN NULL END THEN 66 * - 71 END * 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8379
SELECT ALL CASE + - 88 WHEN 35 THEN + 1 * - ( + 60 ) ELSE 64 * - 72 END DIV - ( 47 DIV 10 ) col2
----
1152

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL CASE + - 88 WHEN 35 THEN + 1 * - ( + 60 ) ELSE 64 * - 72 END / - ( 47 / 10 ) col2
----
1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT DISTINCT COUNT( * ) DIV + COALESCE ( 4, 58, COUNT( * ) * 80 ) + 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT COUNT ( * ) / + COALESCE ( 4, 58, COUNT ( * ) * 80 ) + 82 * - COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT + 69 * 34 AS col2
----
2346

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT ALL + 20 DIV + 50 * 71 + + 25 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + 20 / + 50 * 71 + + 25 / - 63
----
0

query I rowsort
SELECT + - 43 * - - 91
----
-3913

query I rowsort
SELECT ALL + 82 * + ( - 27 ) + - 71 * 50 + 49 col2
----
-5715

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT ALL + 80 DIV - 15 + 44 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + 80 / - 15 + 44 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL 35 * + CASE 60 WHEN 87 + - COUNT( * ) THEN COUNT( * ) + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL 35 * + CASE 60 WHEN 87 + - COUNT ( * ) THEN COUNT ( * ) + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + 65 * CASE 99 WHEN - AVG ( ALL - 31 ) * 53 THEN - 22 + ( MAX( + ( - 27 ) ) ) END + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT + 65 * CASE 99 WHEN - AVG ( ALL - 31 ) * 53 THEN - 22 + ( MAX ( + ( - 27 ) ) ) END + 15
----
NULL

query I rowsort
SELECT - 74 * + 88 AS col2
----
-6512

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT - 77 DIV 36 + + 0 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 77 / 36 + + 0 AS col2
----
-2

query I rowsort
SELECT + NULLIF ( + 53, 54 / 26 ) + 47 AS col1
----
100

query I rowsort
SELECT - + 17 * - + 46
----
782

query I rowsort
SELECT DISTINCT + 11 * + 32
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT - MIN( 94 ) * 52 - + ( - 61 + - MAX( - 6 ) ) AS col0
----
-4833

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - MIN ( 94 ) * 52 - + ( - 61 + - MAX ( - 6 ) ) AS col0
----
-4833

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT MAX( - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8394
SELECT MAX ( - 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT COALESCE ( - - COALESCE ( 41, 62, COUNT( * ) * - 79 ), 85 )
----
41

skipif mysql # not compatible
query I rowsort label-8395
SELECT COALESCE ( - - COALESCE ( 41, 62, COUNT ( * ) * - 79 ), 85 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT ALL + 12 DIV 62 + 40
----
40

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL + 12 / 62 + 40
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT - 4 DIV + 32 * 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8397
SELECT - 4 / + 32 * 55 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT - 10 * + - 0 DIV + 34 + 17
----
17

skipif mysql # not compatible
query I rowsort label-8398
SELECT - 10 * + - 0 / + 34 + 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT 75 * COUNT( * ) + + 6
----
81

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT 75 * COUNT ( * ) + + 6
----
81

query I rowsort
SELECT ALL + 17 * - + 52 AS col0
----
-884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT ALL 81 * - 53 + - CAST( NULL AS SIGNED ) / - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL 81 * - 53 + - CAST ( NULL AS INTEGER ) / - 55 AS col2
----
NULL

query I rowsort
SELECT ALL ( COALESCE ( + 95, 35 ) ) * 4 + 27 * 56 AS col0
----
1892

query I rowsort
SELECT DISTINCT + 36 * + 90 AS col1
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8404
SELECT ALL 97 + 95 + - + ( ( 24 ) ) + + 33 * - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
201

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL 97 + 95 + - + ( ( 24 ) ) + + 33 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL CASE WHEN - COALESCE ( 65, - 29, + COUNT( * ) ) IS NULL THEN 45 - - 8 ELSE NULL END + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL CASE WHEN - COALESCE ( 65, - 29, + COUNT ( * ) ) IS NULL THEN 45 - - 8 ELSE NULL END + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT - CAST( - + MAX( ALL - CASE WHEN NOT 1 IS NULL THEN + 74 ELSE - 96 END ) AS SIGNED ) + + 65 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8406
SELECT - CAST ( - + MAX ( ALL - CASE WHEN NOT 1 IS NULL THEN + 74 ELSE - 96 END ) AS INTEGER ) + + 65 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT DISTINCT - 63 + CAST( NULL AS SIGNED ) + + COALESCE ( + COALESCE ( + 12, 19 ), 27 ) * - 33 * ( 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT - 63 + CAST ( NULL AS INTEGER ) + + COALESCE ( + COALESCE ( + 12, 19 ), 27 ) * - 33 * ( 49 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT - 38 + 54 DIV - 81 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8409
SELECT - 38 + 54 / - 81 AS col2
----
-38

query II rowsort
SELECT 18, 61 AS col2
----
18
61

query I rowsort
SELECT - NULLIF ( 37, 36 + - 73 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT ALL - 45 + 30 - 63 DIV 64 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - 45 + 30 - 63 / 64 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + 91 + ( + ( COUNT( * ) ) ) + - 64
----
28

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + 91 + ( + ( COUNT ( * ) ) ) + - 64
----
28

query II rowsort
SELECT - 95 AS col0, + 42
----
-95
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT + 49 - SUM( ALL + 99 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8415
SELECT + 49 - SUM ( ALL + 99 ) AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8416
SELECT DISTINCT 55 + 55 * - 69 + - CAST( - CASE ( + COALESCE ( 47, - 93, 43, - 75 * - 98 ) ) WHEN CAST( + CAST( 51 AS SIGNED ) AS DECIMAL ) - 76 * 49 THEN 52 * 89 ELSE NULL END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT 55 + 55 * - 69 + - CAST ( - CASE ( + COALESCE ( 47, - 93, 43, - 75 * - 98 ) ) WHEN CAST ( + CAST ( 51 AS INTEGER ) AS REAL ) - 76 * 49 THEN 52 * 89 ELSE NULL END AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + 46 + - ( + COUNT( * ) ) * COALESCE ( + 50, + 7, 94 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + 46 + - ( + COUNT ( * ) ) * COALESCE ( + 50, + 7, 94 ) col2
----
-4

query II rowsort
SELECT ALL 6 col1, 9
----
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT NULLIF ( + ( - COUNT( * ) ), 29 ) * 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT NULLIF ( + ( - COUNT ( * ) ), 29 ) * 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT + COUNT( * ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + COUNT ( * ) + + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL ( + - COUNT( + + 87 ) ) * 60
----
-60

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL ( + - COUNT ( + + 87 ) ) * 60
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT COUNT( * ) + - - 67 * - - 96 col2
----
6433

skipif mysql # not compatible
query I rowsort label-8422
SELECT COUNT ( * ) + - - 67 * - - 96 col2
----
6433

query I rowsort
SELECT ALL + ( - 17 ) - ( + 38 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT DISTINCT NULLIF ( + + COUNT( - 16 ), - NULLIF ( AVG ( 17 ), COUNT( * ) * + 57 - 81 ) - - 91 ) * NULLIF ( - 95, + COUNT( * ) + COUNT( * ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT NULLIF ( + + COUNT ( - 16 ), - NULLIF ( AVG ( 17 ), COUNT ( * ) * + 57 - 81 ) - - 91 ) * NULLIF ( - 95, + COUNT ( * ) + COUNT ( * ) ) AS col2
----
-95

query I rowsort
SELECT - 80 * 62
----
-4960

query I rowsort
SELECT ALL 19 * - 76 * + 68
----
-98192

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT 56 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-8427
SELECT 56 / - 35
----
-1

query I rowsort
SELECT 0 * - + 46 * 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8429
SELECT - CASE + 16 WHEN - 65 THEN NULL WHEN 87 + + CAST( SUM( + 20 ) + 45 AS DECIMAL ) THEN - COUNT( * ) + + 74 END * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT - CASE + 16 WHEN - 65 THEN NULL WHEN 87 + + CAST ( SUM ( + 20 ) + 45 AS REAL ) THEN - COUNT ( * ) + + 74 END * 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT ALL - - 46 col2, COUNT( * ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-8430
SELECT ALL - - 46 col2, COUNT ( * ) AS col0
----
46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT ALL - + 86 AS col1, + ( 85 ) * COUNT( * ) - - 41 AS col2
----
-86
126

skipif mysql # not compatible
query II rowsort label-8431
SELECT ALL - + 86 AS col1, + ( 85 ) * COUNT ( * ) - - 41 AS col2
----
-86
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL - COALESCE ( CASE - 52 WHEN - COUNT( * ) + 67 THEN - ( - NULLIF ( 98, 77 * - NULLIF ( 90, + COALESCE ( 9, NULLIF ( + 17, AVG ( 82 ) ) - 69 ) * 72 ) ) ) END, 24 * - COUNT( ALL + 68 * - 85 ) + + 14 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - COALESCE ( CASE - 52 WHEN - COUNT ( * ) + 67 THEN - ( - NULLIF ( 98, 77 * - NULLIF ( 90, + COALESCE ( 9, NULLIF ( + 17, AVG ( 82 ) ) - 69 ) * 72 ) ) ) END, 24 * - COUNT ( ALL + 68 * - 85 ) + + 14 ) col1
----
10

query I rowsort
SELECT DISTINCT - - NULLIF ( 2, - 26 / + 62 + + 16 ) AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT + 43 DIV - 30 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8434
SELECT + 43 / - 30 AS col1
----
-1

query I rowsort
SELECT ALL + 2 * - 26 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-8436
SELECT ALL - + 26, + 21 - - + 56 DIV - 95 AS col2
----
-26
21

skipif mysql # not compatible
query II rowsort label-8436
SELECT ALL - + 26, + 21 - - + 56 / - 95 AS col2
----
-26
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT DISTINCT + 74 DIV 58 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + 74 / 58 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - COUNT( * ) - - ( - 26 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8438
SELECT - COUNT ( * ) - - ( - 26 ) AS col0
----
-27

query I rowsort
SELECT - 93 * + 32 col0
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - NULLIF ( - + COUNT( * ), + 18 + ( - 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8440
SELECT - NULLIF ( - + COUNT ( * ), + 18 + ( - 97 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL + ( 62 ) * MIN( - 89 ) * 34
----
-187612

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + ( 62 ) * MIN ( - 89 ) * 34
----
-187612

query I rowsort
SELECT NULLIF ( - ( + 22 ), 16 + 98 * - 95 ) * 13 AS col0
----
-286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT DISTINCT NULLIF ( COUNT( * ), + 61 ) + - 98 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT NULLIF ( COUNT ( * ), + 61 ) + - 98 / + 57 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT ALL + 80 + - COALESCE ( - CASE - 80 WHEN 10 THEN - 39 - 60 DIV 67 ELSE NULL END, 42 * - 79, + 94 DIV COUNT( * ) ) + + ( + ( + 82 ) ) * - 5 AS col0
----
2988

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + 80 + - COALESCE ( - CASE - 80 WHEN 10 THEN - 39 - 60 / 67 ELSE NULL END, 42 * - 79, + 94 / COUNT ( * ) ) + + ( + ( + 82 ) ) * - 5 AS col0
----
2988

query I rowsort
SELECT + COALESCE ( + 57, + 35 ) AS col2
----
57

query I rowsort
SELECT ( + + 97 ) * + 25
----
2425

query I rowsort
SELECT ALL 74 + + 21 * - 81
----
-1627

query I rowsort
SELECT DISTINCT 33 + 81 AS col2
----
114

query I rowsort
SELECT 99 + 62 + - 4 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT - MIN( 8 ) + - COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT - MIN ( 8 ) + - COUNT ( * ) AS col2
----
-9

query I rowsort
SELECT ALL + 14 + + 90 + + 53 + - 0 * + 63 * - 11
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8452
SELECT MAX( + CAST( NULL AS SIGNED ) ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 87 * + - 7 * - 3 AS col2
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL COUNT( * ) + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL COUNT ( * ) + - 22
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT - MIN( ALL + ( 17 ) ) * - ( + ( 91 ) ) - + 97 * - 19
----
3390

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT - MIN ( ALL + ( 17 ) ) * - ( + ( 91 ) ) - + 97 * - 19
----
3390

query I rowsort
SELECT ALL + 14 * + 83 AS col0
----
1162

query II rowsort
SELECT 18 * - 30 AS col0, + 50
----
-540
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT + COUNT( - 70 ) - - 46 * 63
----
2899

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + COUNT ( - 70 ) - - 46 * 63
----
2899

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT ALL + COUNT( * ) * 28, 18 AS col0
----
28
18

skipif mysql # not compatible
query II rowsort label-8459
SELECT ALL + COUNT ( * ) * 28, 18 AS col0
----
28
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL + COALESCE ( + 29, - 41, + 0 ) * + CAST( 4 AS SIGNED ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + COALESCE ( + 29, - 41, + 0 ) * + CAST ( 4 AS INTEGER ) AS col1
----
116

query I rowsort
SELECT 8 * + 11 AS col2
----
88

query II rowsort
SELECT 14 - + 28, 25 col2
----
-14
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT - COUNT( + + 98 ) * + 15
----
-15

skipif mysql # not compatible
query I rowsort label-8463
SELECT - COUNT ( + + 98 ) * + 15
----
-15

query I rowsort
SELECT DISTINCT - - ( 9 ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8465
SELECT DISTINCT - + CAST( 67 AS SIGNED ) AS col0, - 6
----
-67
-6

skipif mysql # not compatible
query II rowsort label-8465
SELECT DISTINCT - + CAST ( 67 AS INTEGER ) AS col0, - 6
----
-67
-6

query I rowsort
SELECT 63 * + ( - 6 ) * - - COALESCE ( 26, CASE + 73 WHEN + 72 THEN NULL ELSE 91 - 1 END )
----
-9828

query I rowsort
SELECT ALL 53 * 22
----
1166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8468
SELECT - - 8 * + 34 DIV NULLIF ( - COUNT( * ), 67 ) - - ( COUNT( * ) )
----
-271

skipif mysql # not compatible
query I rowsort label-8468
SELECT - - 8 * + 34 / NULLIF ( - COUNT ( * ), 67 ) - - ( COUNT ( * ) )
----
-271

query I rowsort
SELECT + + ( - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL + 61 * CASE ( + 24 ) WHEN - COUNT( 63 ) * - 76 THEN COUNT( * ) * + 75 END / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + 61 * CASE ( + 24 ) WHEN - COUNT ( 63 ) * - 76 THEN COUNT ( * ) * + 75 END / 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT - COALESCE ( + 41, - - MIN( + 55 ) ) * - 70 + - COUNT( * ) AS col2
----
2869

skipif mysql # not compatible
query I rowsort label-8471
SELECT - COALESCE ( + 41, - - MIN ( + 55 ) ) * - 70 + - COUNT ( * ) AS col2
----
2869

query I rowsort
SELECT ALL - 70 + 77 + + 98
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8473
SELECT - 18 * - - COUNT( * ) + + - 64 + CASE COUNT( * ) WHEN 44 THEN NULL WHEN ( 55 ) * 3 THEN 96 + - 77 ELSE + 63 DIV 97 END
----
-82

skipif mysql # not compatible
query I rowsort label-8473
SELECT - 18 * - - COUNT ( * ) + + - 64 + CASE COUNT ( * ) WHEN 44 THEN NULL WHEN ( 55 ) * 3 THEN 96 + - 77 ELSE + 63 / 97 END
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT 12 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT 12 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + NULLIF ( 39, + NULLIF ( SUM( ALL + 53 ), 25 ) ) + - 54 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + NULLIF ( 39, + NULLIF ( SUM ( ALL + 53 ), 25 ) ) + - 54 AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8476
SELECT + 55 * - - 21 * + MIN( - + 64 ) * + 74 + - 24 DIV 64 + + 32 AS col2
----
-5470048

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 55 * - - 21 * + MIN ( - + 64 ) * + 74 + - 24 / 64 + + 32 AS col2
----
-5470048

query I rowsort
SELECT ALL 51 + - 62 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT + COALESCE ( - 38, ( + + 39 ) * - - 83 * + ( 64 * + 11 ) ) * 50 + - 15 DIV 6
----
-1902

skipif mysql # not compatible
query I rowsort label-8478
SELECT + COALESCE ( - 38, ( + + 39 ) * - - 83 * + ( 64 * + 11 ) ) * 50 + - 15 / 6
----
-1902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT 67 DIV - 77 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8479
SELECT 67 / - 77 * COUNT ( * )
----
0

query I rowsort
SELECT 3 + + 7
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT 74 * + - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8481
SELECT 74 * + - COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL COUNT( * ) + + 32 + - 81 * + COUNT( * ) + - 64 + - 52 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL COUNT ( * ) + + 32 + - 81 * + COUNT ( * ) + - 64 + - 52 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT + COUNT( + + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-8483
SELECT + COUNT ( + + 94 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8484
SELECT 0 AS col1, - 21 DIV - 33 + + 35
----
0
35

skipif mysql # not compatible
query II rowsort label-8484
SELECT 0 AS col1, - 21 / - 33 + + 35
----
0
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8485
SELECT ALL NULLIF ( - 52, - 54 + + COALESCE ( + 18, + 42 * - COUNT( * ) ) + + COUNT( * ) / - COUNT( * ) ) * CAST( 25 * 76 - 29 * 75 AS SIGNED )
----
14300

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL NULLIF ( - 52, - 54 + + COALESCE ( + 18, + 42 * - COUNT ( * ) ) + + COUNT ( * ) / - COUNT ( * ) ) * CAST ( 25 * 76 - 29 * 75 AS INTEGER )
----
14300

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - COUNT( - + 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8486
SELECT - COUNT ( - + 81 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT 28 + - + ( COALESCE ( - ( + ( - COUNT( * ) ) ), 2 ) )
----
27

skipif mysql # not compatible
query I rowsort label-8487
SELECT 28 + - + ( COALESCE ( - ( + ( - COUNT ( * ) ) ), 2 ) )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT - COUNT( * ) AS col0, 89
----
-1
89

skipif mysql # not compatible
query II rowsort label-8488
SELECT - COUNT ( * ) AS col0, 89
----
-1
89

query II rowsort
SELECT 81 AS col1, 27 AS col0
----
81
27

query I rowsort
SELECT - 49 * + 39 AS col2
----
-1911

query I rowsort
SELECT + 60 * + - 43 AS col0
----
-2580

query I rowsort
SELECT - 25 + + - 33
----
-58

query I rowsort
SELECT ALL NULLIF ( + + 91, 46 * + + 7 * + 89 ) - - 9 AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT 81 AS col2, NULLIF ( - 79, - COALESCE ( + 45, 20 + COUNT( DISTINCT 28 + + 54 * 40 ) * SUM( ALL - 54 ), COUNT( * ) / 55 ) ) + - 68 AS col0
----
81
-147

skipif mysql # not compatible
query II rowsort label-8494
SELECT 81 AS col2, NULLIF ( - 79, - COALESCE ( + 45, 20 + COUNT ( DISTINCT 28 + + 54 * 40 ) * SUM ( ALL - 54 ), COUNT ( * ) / 55 ) ) + - 68 AS col0
----
81
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT + 54 + - 51 + SUM( DISTINCT 46 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8495
SELECT + 54 + - 51 + SUM ( DISTINCT 46 ) AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT + 13 DIV 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT + 13 / 35 AS col0
----
0

query I rowsort
SELECT - 19 * + + 44 col0
----
-836

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT ALL - 56 DIV + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - 56 / + - 89 AS col2
----
0

query I rowsort
SELECT + 30 + - 11 - - NULLIF ( - COALESCE ( + 20, 52 ), 90 )
----
-1

query I rowsort
SELECT - 36 - + ( 67 ) + 4 AS col0
----
-99

query I rowsort
SELECT - 84 + + 97 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT ALL + 57 DIV - ( + 18 )
----
-3

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + 57 / - ( + 18 )
----
-3

query I rowsort
SELECT - 98 * + 10 col0
----
-980

onlyif mysql # DIV for integer division: 
query II rowsort label-8504
SELECT - - 29 + + 70 + - - 33 AS col0, 23 DIV + 43 AS col0
----
132
0

skipif mysql # not compatible
query II rowsort label-8504
SELECT - - 29 + + 70 + - - 33 AS col0, 23 / + 43 AS col0
----
132
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT - 24 * CAST( NULL AS SIGNED ) + + 59 - - COALESCE ( - COUNT( * ), - ( + COUNT( * ) ) + ( 17 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - 24 * CAST ( NULL AS INTEGER ) + + 59 - - COALESCE ( - COUNT ( * ), - ( + COUNT ( * ) ) + ( 17 ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 22 col1, 50
----
22
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT + + 85 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT + + 85 / + 90
----
0

query I rowsort
SELECT - - 80 + - 55
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT ALL - CASE 92 WHEN + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) THEN + COUNT( * ) / 51 ELSE NULL END * + 71 + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - CASE 92 WHEN + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) / 51 ELSE NULL END * + 71 + 68 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8510
SELECT DISTINCT + 16 * COUNT( * ) + + 34 * + + 39 * - + COUNT( + 33 ) * CAST( NULL AS DECIMAL ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + 16 * COUNT ( * ) + + 34 * + + 39 * - + COUNT ( + 33 ) * CAST ( NULL AS REAL ) + + 85
----
NULL

query I rowsort
SELECT - - NULLIF ( ( - 73 ), 56 + + 56 * 21 ) * 50 AS col0
----
-3650

query I rowsort
SELECT ALL - 67 * + 25 + + ( - 31 ) - + - 93 AS col0
----
-1613

query I rowsort
SELECT - ( 88 ) * + 52 * + + 51 AS col0
----
-233376

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL + MAX( ALL - - 76 ) * - 16 + - 87
----
-1303

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + MAX ( ALL - - 76 ) * - 16 + - 87
----
-1303

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + NULLIF ( - NULLIF ( 78, + + MIN( - 83 ) ), CASE 13 WHEN 71 + 40 THEN - 81 ELSE NULL END ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8515
SELECT + NULLIF ( - NULLIF ( 78, + + MIN ( - 83 ) ), CASE 13 WHEN 71 + 40 THEN - 81 ELSE NULL END ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT 71 * COUNT( 51 ) * 12 + - 78 + 60 AS col1
----
834

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT 71 * COUNT ( 51 ) * 12 + - 78 + 60 AS col1
----
834

query I rowsort
SELECT DISTINCT 57 * + - 93 + + + 72 AS col1
----
-5229

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + + COUNT( DISTINCT + NULLIF ( - 21, 58 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8518
SELECT + + COUNT ( DISTINCT + NULLIF ( - 21, 58 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL 81 * + 20 + COUNT( * ) AS col2
----
1621

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL 81 * + 20 + COUNT ( * ) AS col2
----
1621

query I rowsort
SELECT + CASE + 70 WHEN - 51 * 81 THEN NULL WHEN - ( - - 79 ) THEN - ( - 95 ) END col0
----
NULL

query I rowsort
SELECT + NULLIF ( - + 98, + 11 )
----
-98

query I rowsort
SELECT - 27 - - 73
----
46

query I rowsort
SELECT + 33 * 94 col0
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL 38 * - + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 38 * - + COUNT ( * ) AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8525
SELECT ALL + 57 AS col2, MIN( DISTINCT 15 ) * + - 19 + + SUM( DISTINCT + 4 ) - + CAST( NULL AS SIGNED ) / 47 AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL + 57 AS col2, MIN ( DISTINCT 15 ) * + - 19 + + SUM ( DISTINCT + 4 ) - + CAST ( NULL AS INTEGER ) / 47 AS col1
----
57
NULL

query I rowsort
SELECT COALESCE ( - 99, + 88 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT + COUNT( * ), - 78 AS col1
----
1
-78

skipif mysql # not compatible
query II rowsort label-8527
SELECT + COUNT ( * ), - 78 AS col1
----
1
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL + 60 * + - COUNT( * ) * - 72 * 97 - + 14 AS col0
----
419026

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + 60 * + - COUNT ( * ) * - 72 * 97 - + 14 AS col0
----
419026

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL + COUNT( * ) * - 87 - + - 79 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + COUNT ( * ) * - 87 - + - 79 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT ALL CAST( - - 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL CAST ( - - 91 AS INTEGER ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT + 49 - - + 19 * + 71 + + - COUNT( ALL - 19 )
----
1397

skipif mysql # not compatible
query I rowsort label-8531
SELECT + 49 - - + 19 * + 71 + + - COUNT ( ALL - 19 )
----
1397

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8532
SELECT - CASE + + 9 WHEN - 16 THEN NULL WHEN 28 + + 86 * - NULLIF ( - 77, NULLIF ( 30, 4 * + ( 92 * + 40 ) + + 53 ) ) THEN NULL ELSE + 43 * - CAST( NULL AS DECIMAL ) END * + AVG ( ALL 12 * 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT - CASE + + 9 WHEN - 16 THEN NULL WHEN 28 + + 86 * - NULLIF ( - 77, NULLIF ( 30, 4 * + ( 92 * + 40 ) + + 53 ) ) THEN NULL ELSE + 43 * - CAST ( NULL AS REAL ) END * + AVG ( ALL 12 * 62 ) AS col0
----
NULL

query II rowsort
SELECT ALL 2 AS col2, - 27 * - 75
----
2
2025

query II rowsort
SELECT - ( + 39 ) AS col1, 1
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8535
SELECT + 13 + - CAST( + NULLIF ( 10, - + COUNT( DISTINCT - + 5 ) ) AS SIGNED ) DIV - 67 col2
----
13

skipif mysql # not compatible
query I rowsort label-8535
SELECT + 13 + - CAST ( + NULLIF ( 10, - + COUNT ( DISTINCT - + 5 ) ) AS INTEGER ) / - 67 col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT - CAST( 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-8536
SELECT - CAST ( 91 AS INTEGER )
----
-91

query II rowsort
SELECT DISTINCT 83 * + + 7 * 14 * - 23 AS col1, - 74
----
-187082
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT + 89 + + ( - CASE + - 3 WHEN + MIN( + - 25 ) * 68 THEN - ( + CAST( NULL AS SIGNED ) ) * - 32 WHEN 3 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT + 89 + + ( - CASE + - 3 WHEN + MIN ( + - 25 ) * 68 THEN - ( + CAST ( NULL AS INTEGER ) ) * - 32 WHEN 3 THEN NULL END )
----
NULL

query II rowsort
SELECT ALL 13 col0, 23 + + + COALESCE ( - - 32, 65 ) * + + 38
----
13
1239

query I rowsort
SELECT ALL 18 * + 1
----
18

query II rowsort
SELECT ALL + 57, 28 * 3 AS col2
----
57
84

query I rowsort
SELECT ALL + ( + + 22 ) * + - 39 AS col1
----
-858

query I rowsort
SELECT ALL - 89 + + 26
----
-63

query II rowsort
SELECT ALL + 21 AS col1, + 53 * + 51 AS col1
----
21
2703

query I rowsort
SELECT + 58 - + ( - 14 )
----
72

query II rowsort
SELECT DISTINCT + 98 AS col1, - 54 AS col1
----
98
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT + 71 - + + NULLIF ( CAST( NULL AS SIGNED ), 53 * + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT + 71 - + + NULLIF ( CAST ( NULL AS INTEGER ), 53 * + 74 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT + SUM( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-8548
SELECT + SUM ( DISTINCT 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT ALL + + 59 + - COALESCE ( - + 81, 71 * + SUM( ALL - + 83 ), 99, - 20 DIV + 87 )
----
140

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + + 59 + - COALESCE ( - + 81, 71 * + SUM ( ALL - + 83 ), 99, - 20 / + 87 )
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT - 86, COUNT( * ) AS col1
----
-86
1

skipif mysql # not compatible
query II rowsort label-8550
SELECT - 86, COUNT ( * ) AS col1
----
-86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - MIN( ALL + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-8551
SELECT - MIN ( ALL + 54 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT + 98 DIV + 53 + + 70 col1
----
71

skipif mysql # not compatible
query I rowsort label-8552
SELECT + 98 / + 53 + + 70 col1
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-8553
SELECT ALL 46 DIV + 28 + - 92 + - - 28 AS col2, 3 AS col2
----
-63
3

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL 46 / + 28 + - 92 + - - 28 AS col2, 3 AS col2
----
-63
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT + 51 DIV 93 * - - 81 * - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + 51 / 93 * - - 81 * - 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL CAST( - CASE 26 WHEN + 60 / + COUNT( * ) * - + 1 + + 12 THEN 90 * + ( - 36 ) + + CASE 96 WHEN + 38 * 55 THEN NULL ELSE + 50 END WHEN + CAST( NULL AS SIGNED ) THEN NULL END AS SIGNED ) / - AVG ( - 12 ) + CAST( - COUNT( * ) + 55 * 57 AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL CAST ( - CASE 26 WHEN + 60 / + COUNT ( * ) * - + 1 + + 12 THEN 90 * + ( - 36 ) + + CASE 96 WHEN + 38 * 55 THEN NULL ELSE + 50 END WHEN + CAST ( NULL AS INTEGER ) THEN NULL END AS INTEGER ) / - AVG ( - 12 ) + CAST ( - COUNT ( * ) + 55 * 57 AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 82 * + - ( + 90 ) - 85 AS col1
----
-7465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8557
SELECT ALL - CAST( NULL AS DECIMAL ) * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - CAST ( NULL AS REAL ) * - 92 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8558
SELECT + CASE + ( - 72 ) WHEN 18 + + 99 THEN - ( - 74 ) ELSE ( - ( + CAST( - MAX( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) ) / 17 + - 13 END * - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT + CASE + ( - 72 ) WHEN 18 + + 99 THEN - ( - 74 ) ELSE ( - ( + CAST ( - MAX ( - CAST ( NULL AS INTEGER ) ) AS REAL ) ) ) / 17 + - 13 END * - 39 AS col0
----
NULL

query I rowsort
SELECT 21 * - 96 + 76 col2
----
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT DISTINCT + MAX( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT + MAX ( - 55 )
----
-55

query I rowsort
SELECT + 27 * + 75 + + - 81
----
1944

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT - 33 DIV - + 63 col2
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT - 33 / - + 63 col2
----
0

query I rowsort
SELECT ALL + CASE - 35 WHEN + 4 THEN NULL WHEN + + 79 THEN - 94 WHEN - 88 THEN NULL ELSE - 46 END
----
-46

query II rowsort
SELECT - 3 + 18, - 47 + - 3 col1
----
15
-50

query I rowsort
SELECT 27 * 29 * + 68 * - - 37 - - 9 + 42 * 38 + 30 * 75
----
1973883

query II rowsort
SELECT ALL - NULLIF ( + + 54, 71 ), 52 AS col0
----
-54
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT DISTINCT - COUNT( ALL - 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT - COUNT ( ALL - 52 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8568
SELECT ALL - ( + CAST( NULL AS SIGNED ) ), + CASE + 89 WHEN 95 THEN 91 * + - 49 END + 19
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8568
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), + CASE + 89 WHEN 95 THEN 91 * + - 49 END + 19
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT 37 + + 49, MIN( ALL + 27 ) col2
----
86
27

skipif mysql # not compatible
query II rowsort label-8569
SELECT 37 + + 49, MIN ( ALL + 27 ) col2
----
86
27

query I rowsort
SELECT ALL - 65 * + ( + + 83 ) AS col1
----
-5395

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT 8 * COUNT( * ) AS col1, CASE - 60 WHEN COUNT( * ) THEN - 3 END col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-8571
SELECT 8 * COUNT ( * ) AS col1, CASE - 60 WHEN COUNT ( * ) THEN - 3 END col2
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL - MIN( + 64 ) * + 68 * + 90 * - + 50
----
19584000

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - MIN ( + 64 ) * + 68 * + 90 * - + 50
----
19584000

query I rowsort
SELECT DISTINCT + 47 * + 90 AS col1
----
4230

query I rowsort
SELECT ALL 19 + - + 60 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT DISTINCT + + 82 + + CAST( NULL AS SIGNED ) + + ( - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + + 82 + + CAST ( NULL AS INTEGER ) + + ( - 80 )
----
NULL

query II rowsort
SELECT - 3 * 39 AS col0, + 18 + - 68 * + 98
----
-117
-6646

query I rowsort
SELECT ALL 77 + + 83
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL ( - MAX( DISTINCT + 36 ) ) + - 7 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL ( - MAX ( DISTINCT + 36 ) ) + - 7 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT + 55 + + 64 * 61 + - - 57 DIV + - 40 + 20 AS col0
----
3978

skipif mysql # not compatible
query I rowsort label-8579
SELECT + 55 + + 64 * 61 + - - 57 / + - 40 + 20 AS col0
----
3978

query I rowsort
SELECT ALL 99 * - 74 AS col1
----
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + SUM( - + 99 ) + - 63 AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-8581
SELECT + SUM ( - + 99 ) + - 63 AS col1
----
-162

query I rowsort
SELECT + 39 - COALESCE ( 32, + ( + + 19 ) ) + + 20 AS col1
----
27

query I rowsort
SELECT ALL - 91 + - + 9 + CASE + - 48 WHEN - - ( 79 ) * - + 5 THEN + 96 END + + 30 / + 40
----
NULL

query I rowsort
SELECT ALL - 33 * 86 * 95 AS col1
----
-269610

query I rowsort
SELECT + COALESCE ( + NULLIF ( + - 59, - 28 / + 90 ), COALESCE ( 12, 67 - - 53 * + 38 ) * + 9 + + 44 * - 30 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL + 22 * + 20 * 71 * - CAST( - 72 AS SIGNED ) * - SUM( + 11 ) * COUNT( * ) AS col0
----
-24742080

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + 22 * + 20 * 71 * - CAST ( - 72 AS INTEGER ) * - SUM ( + 11 ) * COUNT ( * ) AS col0
----
-24742080

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT + MIN( - NULLIF ( - 62, - 51 / 54 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT + MIN ( - NULLIF ( - 62, - 51 / 54 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL MAX( + 5 ) - + - 77 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL MAX ( + 5 ) - + - 77 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT - CAST( + 95 AS SIGNED ) * + ( + - 84 ) col1
----
7980

skipif mysql # not compatible
query I rowsort label-8589
SELECT - CAST ( + 95 AS INTEGER ) * + ( + - 84 ) col1
----
7980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT - NULLIF ( - - 58, - CASE + 1 WHEN + - 27 / - 81 / + - 35 THEN 46 * 42 WHEN 8 * CAST( NULL AS SIGNED ) THEN 78 END )
----
-58

skipif mysql # not compatible
query I rowsort label-8590
SELECT - NULLIF ( - - 58, - CASE + 1 WHEN + - 27 / - 81 / + - 35 THEN 46 * 42 WHEN 8 * CAST ( NULL AS INTEGER ) THEN 78 END )
----
-58

query I rowsort
SELECT 79 * - 91 + + ( 71 ) * + 80
----
-1509

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT ALL 29 DIV + 41 * + ( + 9 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL 29 / + 41 * + ( + 9 ) AS col1
----
0

query II rowsort
SELECT + 68 AS col1, 89 AS col2
----
68
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL + 59 * - - ( + - ( + - COUNT( * ) ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + 59 * - - ( + - ( + - COUNT ( * ) ) ) AS col1
----
59

query II rowsort
SELECT + 25, - ( + 50 ) AS col2
----
25
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8596
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) * - 5 / 22 * + - CASE + - 63 WHEN - 17 THEN + + 27 ELSE 63 * + CASE WHEN SUM( - 98 ) = ( 26 ) THEN + CAST( - 9 AS SIGNED ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - 5 / 22 * + - CASE + - 63 WHEN - 17 THEN + + 27 ELSE 63 * + CASE WHEN SUM ( - 98 ) = ( 26 ) THEN + CAST ( - 9 AS INTEGER ) END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8597
SELECT CAST( NULL AS SIGNED ) * 42 / + + ( - CASE - + 9 WHEN 94 + COUNT( ALL + 77 ) + - 84 * - 82 THEN NULL ELSE - CAST( 33 AS SIGNED ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT CAST ( NULL AS INTEGER ) * 42 / + + ( - CASE - + 9 WHEN 94 + COUNT ( ALL + 77 ) + - 84 * - 82 THEN NULL ELSE - CAST ( 33 AS INTEGER ) END ) col0
----
NULL

query II rowsort
SELECT + 91, 47 * - 37 AS col2
----
91
-1739

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT 44 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8599
SELECT 44 / + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT 24 * SUM( - - 27 )
----
648

skipif mysql # not compatible
query I rowsort label-8600
SELECT 24 * SUM ( - - 27 )
----
648

query II rowsort
SELECT ALL - COALESCE ( 79, + 26 ) col2, ( + 73 ) - + + 71 + + 28
----
-79
30

query II rowsort
SELECT + 57, + 3 AS col1
----
57
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL - COUNT( ALL 73 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL - COUNT ( ALL 73 ) AS col2
----
-1

query I rowsort
SELECT ALL + 25 + + 75 AS col1
----
100

query I rowsort
SELECT ALL - 61 + - + 13
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT NULLIF ( - 23, 78 ) * + 52 + + - COUNT( * )
----
-1197

skipif mysql # not compatible
query I rowsort label-8606
SELECT NULLIF ( - 23, 78 ) * + 52 + + - COUNT ( * )
----
-1197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col0
----
0

query II rowsort
SELECT ALL 52 AS col2, 50 * + 22
----
52
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL - SUM( - - ( + - 79 ) ) + - 1 + - - 37
----
115

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - SUM ( - - ( + - 79 ) ) + - 1 + - - 37
----
115

query I rowsort
SELECT + 44 + - 53 + + 52 - 57 * 27
----
-1496

query I rowsort
SELECT 55 + - 5 AS col0
----
50

query I rowsort
SELECT DISTINCT + 84 * 97
----
8148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT ALL + CAST( - 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + CAST ( - 43 AS INTEGER )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8614
SELECT 63 DIV - + 61 + ( 36 ) * - CASE + CASE + + 56 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 2 END WHEN - 23 THEN - 72 WHEN + COUNT( * ) + CAST( + 5 AS SIGNED ) THEN NULL ELSE + 26 END
----
-937

skipif mysql # not compatible
query I rowsort label-8614
SELECT 63 / - + 61 + ( 36 ) * - CASE + CASE + + 56 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 2 END WHEN - 23 THEN - 72 WHEN + COUNT ( * ) + CAST ( + 5 AS INTEGER ) THEN NULL ELSE + 26 END
----
-937

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8615
SELECT DISTINCT + 7 AS col0, - 4 + + CAST( + + 31 AS SIGNED ) - - + 99 - + SUM( ALL - + 49 ) + + 69 + CAST( NULL AS SIGNED ) * 27 * 23 / - ( - 37 )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8615
SELECT DISTINCT + 7 AS col0, - 4 + + CAST ( + + 31 AS INTEGER ) - - + 99 - + SUM ( ALL - + 49 ) + + 69 + CAST ( NULL AS INTEGER ) * 27 * 23 / - ( - 37 )
----
7
NULL

query II rowsort
SELECT ALL + 66, - 18 AS col0
----
66
-18

query I rowsort
SELECT 12 * 76 col1
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8618
SELECT COUNT( * ) - - CAST( 61 AS SIGNED ) * 60 + - 92 * + + 78 AS col0
----
-3515

skipif mysql # not compatible
query I rowsort label-8618
SELECT COUNT ( * ) - - CAST ( 61 AS INTEGER ) * 60 + - 92 * + + 78 AS col0
----
-3515

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - MIN( ALL + 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8619
SELECT - MIN ( ALL + 20 ) AS col1
----
-20

query I rowsort
SELECT + 69 - 59 AS col2
----
10

query I rowsort
SELECT + 44 * 98 col2
----
4312

onlyif mysql # aggregate syntax: 
query III rowsort label-8622
SELECT COALESCE ( - - 14, - + 84 ) + + 29 AS col0, 9 * + COUNT( * ) AS col2, + + 71 col2
----
43
9
71

skipif mysql # not compatible
query III rowsort label-8622
SELECT COALESCE ( - - 14, - + 84 ) + + 29 AS col0, 9 * + COUNT ( * ) AS col2, + + 71 col2
----
43
9
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL 22 - COUNT( * ) + - 90 - + 0
----
-69

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL 22 - COUNT ( * ) + - 90 - + 0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT DISTINCT COUNT( * ) * + - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT COUNT ( * ) * + - 95 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8625
SELECT ALL + MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT - 43 DIV 45 - 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8626
SELECT - 43 / 45 - 84 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT + CAST( + - 27 AS SIGNED ) * 73
----
-1971

skipif mysql # not compatible
query I rowsort label-8627
SELECT + CAST ( + - 27 AS INTEGER ) * 73
----
-1971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT CASE - COUNT( - CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) * + 19 + + - 38 + + COUNT( * ) THEN - 35 WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT CASE - COUNT ( - CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) * + 19 + + - 38 + + COUNT ( * ) THEN - 35 WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 65 * - 90 + 27 col0
----
-5823

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT + COUNT( * ) * + 61, - 31 AS col1
----
61
-31

skipif mysql # not compatible
query II rowsort label-8630
SELECT + COUNT ( * ) * + 61, - 31 AS col1
----
61
-31

query I rowsort
SELECT ALL - 51 * 99 + + 86 AS col0
----
-4963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8632
SELECT - 80 * + CAST( 84 AS SIGNED ) + MIN( + 81 ) AS col0
----
-6639

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 80 * + CAST ( 84 AS INTEGER ) + MIN ( + 81 ) AS col0
----
-6639

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + 90 + + COUNT( * ) * + 89
----
179

skipif mysql # not compatible
query I rowsort label-8633
SELECT + 90 + + COUNT ( * ) * + 89
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT + 30 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 30 / - + 77
----
0

query I rowsort
SELECT ALL 42 * 86 AS col0
----
3612

query II rowsort
SELECT DISTINCT 1 * 20 AS col0, + 13 AS col2
----
20
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL MAX( DISTINCT - + 88 ) * + 93 + 66 + 17
----
-8101

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL MAX ( DISTINCT - + 88 ) * + 93 + 66 + 17
----
-8101

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT + - 52 * + - 79 + CASE + + 58 WHEN - COALESCE ( 71, 94 ) * - 63 THEN NULL WHEN 60 THEN NULL ELSE - COUNT( * ) * - 14 END * - 8 AS col0
----
3996

skipif mysql # not compatible
query I rowsort label-8638
SELECT + - 52 * + - 79 + CASE + + 58 WHEN - COALESCE ( 71, 94 ) * - 63 THEN NULL WHEN 60 THEN NULL ELSE - COUNT ( * ) * - 14 END * - 8 AS col0
----
3996

query I rowsort
SELECT + 38 + - 76
----
-38

query I rowsort
SELECT + + 77 * + + 66 + - 44 + + 94
----
5132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT DISTINCT CAST( + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT CAST ( + 10 AS INTEGER )
----
10

query I rowsort
SELECT - + 69 + + 56 + - COALESCE ( 37, - 90 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT - + 23 - + NULLIF ( + 55, MIN( + ( - 88 ) ) + + MAX( ALL - 45 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT - + 23 - + NULLIF ( + 55, MIN ( + ( - 88 ) ) + + MAX ( ALL - 45 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT - COUNT( ALL 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-8644
SELECT - COUNT ( ALL 7 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL SUM( ALL ( + 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL SUM ( ALL ( + 47 ) )
----
47

query I rowsort
SELECT - 40 + + + 30 col1
----
-10

query I rowsort
SELECT - - 50 * - 64 AS col1
----
-3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8648
SELECT - - 45 * + COUNT( * ) * - - CAST( NULL AS SIGNED ) / 36, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8648
SELECT - - 45 * + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / 36, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ALL - 39 * - 79 * - - 7 AS col2
----
21567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8650
SELECT - MAX( DISTINCT - 50 ) + - 55 * + + COUNT( ALL - 94 ) * - 47 / - 8 + - COUNT( * ) + + 2 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT - MAX ( DISTINCT - 50 ) + - 55 * + + COUNT ( ALL - 94 ) * - 47 / - 8 + - COUNT ( * ) + + 2 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 35 * + + 50 AS col2
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - COUNT( DISTINCT - + 80 ) * 25 - + - 10 col1
----
-15

skipif mysql # not compatible
query I rowsort label-8652
SELECT - COUNT ( DISTINCT - + 80 ) * 25 - + - 10 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL - + COUNT( DISTINCT + 96 ) * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - + COUNT ( DISTINCT + 96 ) * - + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT - + CAST( - 94 AS SIGNED ) + - + 4 * - 88 + + + 76 + + - CASE - + 43 WHEN + - MAX( ALL - 36 ) THEN 66 END + ( - 78 ) / + COUNT( 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT - + CAST ( - 94 AS INTEGER ) + - + 4 * - 88 + + + 76 + + - CASE - + 43 WHEN + - MAX ( ALL - 36 ) THEN 66 END + ( - 78 ) / + COUNT ( 89 ) AS col1
----
NULL

query I rowsort
SELECT - 74 + + 43
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL ( + + CAST( 85 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL ( + + CAST ( 85 AS INTEGER ) )
----
85

query I rowsort
SELECT - 44 * 79 AS col0
----
-3476

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT - NULLIF ( 76, - + COUNT( * ) + - ( + 32 ) * - 66 ) + + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - NULLIF ( 76, - + COUNT ( * ) + - ( + 32 ) * - 66 ) + + COUNT ( * )
----
-75

query I rowsort
SELECT + CASE 91 WHEN - 46 THEN 57 WHEN - 40 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT + 3 DIV - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8660
SELECT + 3 / - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT ALL - 7 DIV 2 DIV - 93 + + 46 - 22 + + 98 - - + MIN( 97 ) * - MIN( ALL + 18 )
----
-1624

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - 7 / 2 / - 93 + + 46 - 22 + + 98 - - + MIN ( 97 ) * - MIN ( ALL + 18 )
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT - 14 * - NULLIF ( COALESCE ( 69, COALESCE ( + SUM( ALL - 8 ), + 65 + 72 ) ), + 68 ) * CASE + 85 * - ( ( 26 ) * 43 ) - - 85 / CAST( NULL AS SIGNED ) WHEN + 10 THEN 77 ELSE + 48 END AS col1
----
46368

skipif mysql # not compatible
query I rowsort label-8662
SELECT - 14 * - NULLIF ( COALESCE ( 69, COALESCE ( + SUM ( ALL - 8 ), + 65 + 72 ) ), + 68 ) * CASE + 85 * - ( ( 26 ) * 43 ) - - 85 / CAST ( NULL AS INTEGER ) WHEN + 10 THEN 77 ELSE + 48 END AS col1
----
46368

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT 33 DIV + 96 + + + COALESCE ( + 61, + 17, 43 )
----
61

skipif mysql # not compatible
query I rowsort label-8663
SELECT 33 / + 96 + + + COALESCE ( + 61, + 17, 43 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT CAST( MIN( + 74 ) AS SIGNED ) col1
----
74

skipif mysql # not compatible
query I rowsort label-8664
SELECT CAST ( MIN ( + 74 ) AS INTEGER ) col1
----
74

query I rowsort
SELECT + NULLIF ( - 46, + - 3 ) col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT ALL + 30 DIV + 59 + + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL + 30 / + 59 + + 34 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8667
SELECT DISTINCT - 47 DIV + MIN( DISTINCT + - 9 ) + + - 38
----
-33

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT - 47 / + MIN ( DISTINCT + - 9 ) + + - 38
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL 66 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL 66 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + MAX( - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8669
SELECT + MAX ( - 11 ) AS col0
----
-11

query I rowsort
SELECT + 13 * - 95 AS col2
----
-1235

query I rowsort
SELECT ALL 88 * - 67 + 50 - + - 68
----
-5778

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + 24 * - - COUNT( * ) * + 45 * + 48 col0
----
51840

skipif mysql # not compatible
query I rowsort label-8672
SELECT + 24 * - - COUNT ( * ) * + 45 * + 48 col0
----
51840

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL SUM( + + 21 ) * - 65 + + MIN( DISTINCT + 75 ) col1
----
-1290

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL SUM ( + + 21 ) * - 65 + + MIN ( DISTINCT + 75 ) col1
----
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + COUNT( * ) - - 20
----
21

skipif mysql # not compatible
query I rowsort label-8674
SELECT + COUNT ( * ) - - 20
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8675
SELECT ALL + COUNT( * ) AS col2, ( + + 67 ) * 16 AS col1
----
1
1072

skipif mysql # not compatible
query II rowsort label-8675
SELECT ALL + COUNT ( * ) AS col2, ( + + 67 ) * 16 AS col1
----
1
1072

query I rowsort
SELECT - COALESCE ( + 30, - - 91 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT 6 * + 88 - 1 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT 6 * + 88 - 1 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8678
SELECT ALL COUNT( - 9 ) DIV NULLIF ( 88, 67 ) + + 52 + - ( COUNT( * ) ) - + 11
----
40

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL COUNT ( - 9 ) / NULLIF ( 88, 67 ) + + 52 + - ( COUNT ( * ) ) - + 11
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT + + 40 DIV - 73 * + COUNT( DISTINCT + 33 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT + + 40 / - 73 * + COUNT ( DISTINCT + 33 ) AS col1
----
0

query I rowsort
SELECT ALL + 35 * - 72 * - - ( + ( + - 8 ) ) + - 31 AS col2
----
20129

query I rowsort
SELECT + + 29 * - 94
----
-2726

query I rowsort
SELECT - ( + + 93 ) AS col2
----
-93

query I rowsort
SELECT ALL 55 * - 88
----
-4840

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + MIN( + ( 58 ) ) * + 56 AS col2
----
3248

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + MIN ( + ( 58 ) ) * + 56 AS col2
----
3248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8685
SELECT + + 80 DIV + CAST( + 47 AS SIGNED ) DIV + COUNT( * ) + 72 + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8685
SELECT + + 80 / + CAST ( + 47 AS INTEGER ) / + COUNT ( * ) + 72 + COUNT ( * )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT + 42 + + 69 - MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT + 42 + + 69 - MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8687
SELECT ALL + CAST( NULL AS SIGNED ) / - 2 * 12, + NULLIF ( - MAX( DISTINCT + - 42 ), + + 17 ) col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-8687
SELECT ALL + CAST ( NULL AS INTEGER ) / - 2 * 12, + NULLIF ( - MAX ( DISTINCT + - 42 ), + + 17 ) col1
----
NULL
42

query II rowsort
SELECT DISTINCT 62 AS col0, 92 + + + 75 * + 4 AS col1
----
62
392

query I rowsort
SELECT ALL - + 32 + - 84
----
-116

query I rowsort
SELECT DISTINCT - 11 * 28
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT 2 * + 81 * + COUNT( * ) AS col1
----
162

skipif mysql # not compatible
query I rowsort label-8691
SELECT 2 * + 81 * + COUNT ( * ) AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT 37 * COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8692
SELECT 37 * COUNT ( * ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT ALL - 37 + COUNT( * ) + + 45 * 80 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - 37 + COUNT ( * ) + + 45 * 80 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 8 - ( + - 29 ) AS col1
----
37

query II rowsort
SELECT 99 AS col1, + 11
----
99
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8696
SELECT 18 + ( + CAST( + + 52 AS SIGNED ) ), - 84 * + 53 AS col0
----
70
-4452

skipif mysql # not compatible
query II rowsort label-8696
SELECT 18 + ( + CAST ( + + 52 AS INTEGER ) ), - 84 * + 53 AS col0
----
70
-4452

query II rowsort
SELECT - 77 AS col1, - 93 AS col2
----
-77
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL - CAST( NULL AS SIGNED ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - CAST ( NULL AS INTEGER ) + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8699
SELECT 27 + + - COALESCE ( + 58, - 77 + - 71 - 98 DIV + COUNT( * ) * - COUNT( DISTINCT + - 3 ), - 21 * - + CAST( 7 AS SIGNED ) ) DIV + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-8699
SELECT 27 + + - COALESCE ( + 58, - 77 + - 71 - 98 / + COUNT ( * ) * - COUNT ( DISTINCT + - 3 ), - 21 * - + CAST ( 7 AS INTEGER ) ) / + COUNT ( * )
----
-31

query I rowsort
SELECT ALL 97 + 72 AS col2
----
169

query II rowsort
SELECT ALL 84, + 79 * 9 AS col2
----
84
711

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT - CASE WHEN NOT + COUNT( * ) NOT IN ( + 52 ) THEN - 55 + NULLIF ( + - 15, + 40 + - 45 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT - CASE WHEN NOT + COUNT ( * ) NOT IN ( + 52 ) THEN - 55 + NULLIF ( + - 15, + 40 + - 45 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL - 75 + + + 70 * - 41 + - CAST( NULL AS SIGNED ) + + 41 * + 37 * + NULLIF ( - 58, + 75 ) * + 20 * - + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - 75 + + + 70 * - 41 + - CAST ( NULL AS INTEGER ) + + 41 * + 37 * + NULLIF ( - 58, + 75 ) * + 20 * - + 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT ALL 72 DIV - 1 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL 72 / - 1 AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8705
SELECT + 0 AS col1, - COALESCE ( + - 27, 33 DIV COUNT( * ) * - 84, + 84 * 46 + + 69 + 1 )
----
0
27

skipif mysql # not compatible
query II rowsort label-8705
SELECT + 0 AS col1, - COALESCE ( + - 27, 33 / COUNT ( * ) * - 84, + 84 * 46 + + 69 + 1 )
----
0
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT 72 + CASE + 5 WHEN - CAST( + + 11 AS SIGNED ) * - + 9 THEN + + 17 + - + 60 * 9 END + - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT 72 + CASE + 5 WHEN - CAST ( + + 11 AS INTEGER ) * - + 9 THEN + + 17 + - + 60 * 9 END + - + 54
----
NULL

query I rowsort
SELECT ALL + 75 - 70
----
5

query I rowsort
SELECT - 28 * + ( + 52 ) * ( - + 4 ) + + 35 AS col1
----
5859

query II rowsort
SELECT + 9 AS col1, 90 AS col2
----
9
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8710
SELECT + 11 AS col2, 86 + - + 4 + - + COUNT( * ) * 69 AS col2
----
11
13

skipif mysql # not compatible
query II rowsort label-8710
SELECT + 11 AS col2, 86 + - + 4 + - + COUNT ( * ) * 69 AS col2
----
11
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) - - 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) - - 51 AS col2
----
52

query I rowsort
SELECT 61 * 26 + - + ( - 71 ) * + 54 AS col2
----
5420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT ALL + ( 22 ) - - 78 + 35 + - + 63 * - 30 + + 56 + - - 81 + - 7 + - SUM( + 12 ) DIV - 38 * + 53 DIV 39 * + 3 col1
----
2155

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + ( 22 ) - - 78 + 35 + - + 63 * - 30 + + 56 + - - 81 + - 7 + - SUM ( + 12 ) / - 38 * + 53 / 39 * + 3 col1
----
2155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8714
SELECT NULLIF ( - 52, CAST( - 79 AS SIGNED ) * + 59 ) * + CAST( NULL AS DECIMAL ) * 83 AS col2, COUNT( * ) DIV - 34 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8714
SELECT NULLIF ( - 52, CAST ( - 79 AS INTEGER ) * + 59 ) * + CAST ( NULL AS REAL ) * 83 AS col2, COUNT ( * ) / - 34 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + - ( - 35 ) * MAX( 28 ) + + 29 AS col1
----
1009

skipif mysql # not compatible
query I rowsort label-8715
SELECT + - ( - 35 ) * MAX ( 28 ) + + 29 AS col1
----
1009

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT + - 71 AS col1, 2 + + - ( + COUNT( * ) ) - + + 40 * - 32
----
-71
1281

skipif mysql # not compatible
query II rowsort label-8716
SELECT + - 71 AS col1, 2 + + - ( + COUNT ( * ) ) - + + 40 * - 32
----
-71
1281

query I rowsort
SELECT 18 * 83 - 1 AS col1
----
1493

query I rowsort
SELECT 61 * + 95 + 78
----
5873

query II rowsort
SELECT + 39 AS col2, 77 + 57 AS col0
----
39
134

query II rowsort
SELECT 39 AS col0, + 16
----
39
16

query I rowsort
SELECT + ( + 33 ) + 22
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT DISTINCT - + CAST( + 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - + CAST ( + 87 AS INTEGER ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT 17 * + - 67 + + + CAST( 77 AS SIGNED ) + 59 + + - 45 + + 12 AS col0
----
-1036

skipif mysql # not compatible
query I rowsort label-8723
SELECT 17 * + - 67 + + + CAST ( 77 AS INTEGER ) + 59 + + - 45 + + 12 AS col0
----
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL COALESCE ( 68, + 53 + - SUM( - 51 ), 68 + - NULLIF ( NULLIF ( - 30, 1 - - 66 ), - 21 ), 89 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL COALESCE ( 68, + 53 + - SUM ( - 51 ), 68 + - NULLIF ( NULLIF ( - 30, 1 - - 66 ), - 21 ), 89 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT SUM( ALL + - 28 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-8725
SELECT SUM ( ALL + - 28 ) col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT ALL - 62 DIV + 81 * - ( 49 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - 62 / + 81 * - ( 49 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT - MIN( DISTINCT 82 ) + 56
----
-26

skipif mysql # not compatible
query I rowsort label-8727
SELECT - MIN ( DISTINCT 82 ) + 56
----
-26

query I rowsort
SELECT DISTINCT + + 68 * + + 9
----
612

query I rowsort
SELECT DISTINCT - 29 + + + 51
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL ( - - 89 ) + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL ( - - 89 ) + + COUNT ( * )
----
90

query I rowsort
SELECT NULLIF ( + - 81, 1 * 63 ) + ( - 23 ) AS col0
----
-104

query I rowsort
SELECT 18 + - 76 + - - 83
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8733
SELECT ( - 51 ) DIV + 5 + + 5 * + + MIN( + 81 ) + + + 89 AS col0, 39
----
484
39

skipif mysql # not compatible
query II rowsort label-8733
SELECT ( - 51 ) / + 5 + + 5 * + + MIN ( + 81 ) + + + 89 AS col0, 39
----
484
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT ALL CASE + 73 WHEN - 97 * COUNT( * ) * - + COUNT( ALL - 69 ) THEN NULL WHEN - 23 THEN + 75 WHEN - - NULLIF ( - 81, + + CAST( + COUNT( * ) AS SIGNED ) - + CASE + 73 WHEN 54 / + ( CAST( NULL AS SIGNED ) ) THEN 84 ELSE 2 * - 15 END ) * - 48 THEN NULL END + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL CASE + 73 WHEN - 97 * COUNT ( * ) * - + COUNT ( ALL - 69 ) THEN NULL WHEN - 23 THEN + 75 WHEN - - NULLIF ( - 81, + + CAST ( + COUNT ( * ) AS INTEGER ) - + CASE + 73 WHEN 54 / + ( CAST ( NULL AS INTEGER ) ) THEN 84 ELSE 2 * - 15 END ) * - 48 THEN NULL END + - 38
----
NULL

query I rowsort
SELECT DISTINCT 56 * + 4 AS col0
----
224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8736
SELECT DISTINCT + 61 DIV - SUM( ALL - + 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT + 61 / - SUM ( ALL - + 90 ) AS col1
----
0

query I rowsort
SELECT ALL - 6 + - 7 * - + 78 + + 31
----
571

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT COUNT( * ) + 35 + + 24 * 22
----
564

skipif mysql # not compatible
query I rowsort label-8738
SELECT COUNT ( * ) + 35 + + 24 * 22
----
564

query I rowsort
SELECT 53 + 45 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL COUNT( * ) - - 79 - + 14 + + 73 * + 30
----
2256

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL COUNT ( * ) - - 79 - + 14 + + 73 * + 30
----
2256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT COUNT( * ) * 84 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8741
SELECT COUNT ( * ) * 84 / 85 AS col2
----
0

query II rowsort
SELECT 72 + 52 AS col0, ( - 38 )
----
124
-38

query I rowsort
SELECT ALL + 43 - + ( + 8 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8744
SELECT MIN( ALL 23 ) AS col1, 88 * + + 64
----
23
5632

skipif mysql # not compatible
query II rowsort label-8744
SELECT MIN ( ALL 23 ) AS col1, 88 * + + 64
----
23
5632

query II rowsort
SELECT ALL + 71 * - - 27 AS col1, + 52
----
1917
52

query I rowsort
SELECT DISTINCT + 62 * - 59
----
-3658

query II rowsort
SELECT DISTINCT 42 * - - NULLIF ( - 44, - 34 / + 55 ) AS col1, + 55 * - 83 col1
----
-1848
-4565

query I rowsort
SELECT 78 * - - 1 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL + 72 * ( COUNT( * ) ) * - 48 + + + COALESCE ( + 84, - COALESCE ( - 53, + 18 ), + 29 )
----
-3372

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + 72 * ( COUNT ( * ) ) * - 48 + + + COALESCE ( + 84, - COALESCE ( - 53, + 18 ), + 29 )
----
-3372

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL - CASE - 0 WHEN + + 94 / - COUNT( * ) + 71 - 76 THEN - 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - CASE - 0 WHEN + + 94 / - COUNT ( * ) + 71 - 76 THEN - 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8751
SELECT + MIN( DISTINCT + + 93 ), MAX( ALL + 31 ) * + 80 * + CAST( NULL AS DECIMAL ) + 85 + + 38 + - ( ( + 19 ) ) + 18 + + 46 * 67 col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8751
SELECT + MIN ( DISTINCT + + 93 ), MAX ( ALL + 31 ) * + 80 * + CAST ( NULL AS REAL ) + 85 + + 38 + - ( ( + 19 ) ) + 18 + + 46 * 67 col1
----
93
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT + + 59 / COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT + + 59 / COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 86 / - 57 + CASE + 16 WHEN - + 13 * + 76 THEN - 5 WHEN - - 84 THEN NULL END + - 31 * 53 + 55 * 97 * - 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8754
SELECT + 53 * COUNT( * ), + CAST( - 72 AS SIGNED ) * - 1 + - - 4 AS col2
----
53
76

skipif mysql # not compatible
query II rowsort label-8754
SELECT + 53 * COUNT ( * ), + CAST ( - 72 AS INTEGER ) * - 1 + - - 4 AS col2
----
53
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8755
SELECT COALESCE ( + + 63, - 53, - - 89 * - - 20 + 58 + + 85 + - 29 DIV - ( + ( + COUNT( * ) ) ) * - - 20 * + 62 ) - 38 * 90
----
-3357

skipif mysql # not compatible
query I rowsort label-8755
SELECT COALESCE ( + + 63, - 53, - - 89 * - - 20 + 58 + + 85 + - 29 / - ( + ( + COUNT ( * ) ) ) * - - 20 * + 62 ) - 38 * 90
----
-3357

query I rowsort
SELECT 76 * - ( - 38 )
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + COUNT( * ) - + - 20 + - 65 * 85
----
-5504

skipif mysql # not compatible
query I rowsort label-8757
SELECT + COUNT ( * ) - + - 20 + - 65 * 85
----
-5504

query I rowsort
SELECT ALL + + 53 * + - 88
----
-4664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 73 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 73 + - + 66
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT DISTINCT - 33 + - + 1 DIV - ( 78 )
----
-33

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - 33 + - + 1 / - ( 78 )
----
-33

query II rowsort
SELECT + 61 - + + 65, - 61 AS col2
----
-4
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8763
SELECT - 0 * 5 + 30 + COUNT( * ) * CAST( - COUNT( + 51 ) AS SIGNED ), 59 * 47 AS col0
----
29
2773

skipif mysql # not compatible
query II rowsort label-8763
SELECT - 0 * 5 + 30 + COUNT ( * ) * CAST ( - COUNT ( + 51 ) AS INTEGER ), 59 * 47 AS col0
----
29
2773

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT + + COALESCE ( - COALESCE ( - 74, + 20 ), + NULLIF ( + 90, - - ( 63 ) * 34 * SUM( ALL + - 55 ) * COUNT( * ) * 46 ) + 68 ) * 99 AS col0
----
7326

skipif mysql # not compatible
query I rowsort label-8764
SELECT + + COALESCE ( - COALESCE ( - 74, + 20 ), + NULLIF ( + 90, - - ( 63 ) * 34 * SUM ( ALL + - 55 ) * COUNT ( * ) * 46 ) + 68 ) * 99 AS col0
----
7326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT ALL + - 49 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + - 49 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL SUM( ALL - 56 ) + 84 * 9 col1
----
700

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL SUM ( ALL - 56 ) + 84 * 9 col1
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT - SUM( DISTINCT - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8767
SELECT - SUM ( DISTINCT - 77 )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8768
SELECT + COUNT( * ) + - NULLIF ( 13, - + 30 ) AS col1, - 59 AS col2
----
-12
-59

skipif mysql # not compatible
query II rowsort label-8768
SELECT + COUNT ( * ) + - NULLIF ( 13, - + 30 ) AS col1, - 59 AS col2
----
-12
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT ALL 3 + + + 56 + 15 DIV + 95 * + 50
----
59

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL 3 + + + 56 + 15 / + 95 * + 50
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT COALESCE ( - COUNT( - + 47 ), 15 * - 31 + - - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT COALESCE ( - COUNT ( - + 47 ), 15 * - 31 + - - 72 )
----
-1

query II rowsort
SELECT - 32 + ( - 48 ), 16 AS col0
----
-80
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL CAST( NULL AS SIGNED ) - - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL CAST ( NULL AS INTEGER ) - - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT + COUNT( * ) * CASE + 27 WHEN + - CAST( 80 AS SIGNED ) - CASE - + 61 WHEN SUM( 45 ) / 47 / + - SUM( DISTINCT - 75 ) THEN NULL WHEN - 6 THEN 88 * - 36 END * - MAX( - 95 ) THEN NULL WHEN 80 - 65 THEN ( 61 ) ELSE 65 + 74 END
----
139

skipif mysql # not compatible
query I rowsort label-8773
SELECT + COUNT ( * ) * CASE + 27 WHEN + - CAST ( 80 AS INTEGER ) - CASE - + 61 WHEN SUM ( 45 ) / 47 / + - SUM ( DISTINCT - 75 ) THEN NULL WHEN - 6 THEN 88 * - 36 END * - MAX ( - 95 ) THEN NULL WHEN 80 - 65 THEN ( 61 ) ELSE 65 + 74 END
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8774
SELECT + CAST( - 86 AS SIGNED ) * + CASE - ( MIN( NULLIF ( - ( 41 ), - + 78 * 50 - + 8 ) ) ) WHEN - - CAST( 5 AS DECIMAL ) THEN 73 WHEN + 65 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT + CAST ( - 86 AS INTEGER ) * + CASE - ( MIN ( NULLIF ( - ( 41 ), - + 78 * 50 - + 8 ) ) ) WHEN - - CAST ( 5 AS REAL ) THEN 73 WHEN + 65 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT - CAST( NULL AS SIGNED ) / + 5 / CAST( - 91 AS SIGNED ) * - + 5 - - ( - COALESCE ( + 24, 11 - + 7 ) ) + + - CAST( NULL AS SIGNED ) + + + 77 * 11 * + 25 * ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT - CAST ( NULL AS INTEGER ) / + 5 / CAST ( - 91 AS INTEGER ) * - + 5 - - ( - COALESCE ( + 24, 11 - + 7 ) ) + + - CAST ( NULL AS INTEGER ) + + + 77 * 11 * + 25 * ( 9 )
----
NULL

query I rowsort
SELECT ALL 89 - 44 col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT ALL - 12 DIV 12
----
-1

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL - 12 / 12
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8778
SELECT + 71 DIV - + MAX( - 64 ) AS col2, 29 * + 61 AS col0
----
1
1769

skipif mysql # not compatible
query II rowsort label-8778
SELECT + 71 / - + MAX ( - 64 ) AS col2, 29 * + 61 AS col0
----
1
1769

query II rowsort
SELECT DISTINCT + 20 AS col0, - 97 * 3 AS col1
----
20
-291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT + MIN( DISTINCT + 90 ) * + + 81 * - CAST( NULL AS SIGNED ) / - COALESCE ( - + 92, 44 + + 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT + MIN ( DISTINCT + 90 ) * + + 81 * - CAST ( NULL AS INTEGER ) / - COALESCE ( - + 92, 44 + + 35 ) AS col2
----
NULL

query I rowsort
SELECT - + 53 + - CASE 68 WHEN 9 THEN - - 61 * + + 9 - - 98 / - ( + 29 ) * + 16 * 40 + - - 70 + 87 + 95 + + 68 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8782
SELECT ALL + MAX( ALL + 61 ) * - - 45 + 34 - + 88 + + 27 + COUNT( * ) * 45 AS col0, - CAST( NULL AS SIGNED ) * + + 18 + - 39 + + - 13 AS col2
----
2763
NULL

skipif mysql # not compatible
query II rowsort label-8782
SELECT ALL + MAX ( ALL + 61 ) * - - 45 + 34 - + 88 + + 27 + COUNT ( * ) * 45 AS col0, - CAST ( NULL AS INTEGER ) * + + 18 + - 39 + + - 13 AS col2
----
2763
NULL

query II rowsort
SELECT + 35 AS col0, - ( ( - COALESCE ( + 65, - 12 ) ) )
----
35
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT + + 17 + CAST( - + 81 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-8784
SELECT + + 17 + CAST ( - + 81 AS INTEGER )
----
-64

query I rowsort
SELECT ALL + + 26 * - - 29 AS col1
----
754

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT ALL + 83 * - - 68 + ( 34 ) + + 73 DIV 86
----
5678

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + 83 * - - 68 + ( 34 ) + + 73 / 86
----
5678

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL + - COUNT( * ) * + 38 + 43
----
5

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL + - COUNT ( * ) * + 38 + 43
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL + - 68 * + COUNT( + - 44 ) + 56 + + 3 + 94 + CASE SUM( ALL 47 ) WHEN + - 60 THEN 93 + - 32 WHEN + + 69 * 98 - - 78 THEN + 83 * 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + - 68 * + COUNT ( + - 44 ) + 56 + + 3 + 94 + CASE SUM ( ALL 47 ) WHEN + - 60 THEN 93 + - 32 WHEN + + 69 * 98 - - 78 THEN + 83 * 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - NULLIF ( + + 13, + COALESCE ( 66, + COUNT( * ) * + ( + - 8 ) * 44 * + - 93 ) * + - 44 + + COALESCE ( + - 76, - - 70 + 79 * 4, - 75 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8789
SELECT - NULLIF ( + + 13, + COALESCE ( 66, + COUNT ( * ) * + ( + - 8 ) * 44 * + - 93 ) * + - 44 + + COALESCE ( + - 76, - - 70 + 79 * 4, - 75 ) ) AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT - - 35 DIV + 70 * - ( + + 18 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8790
SELECT - - 35 / + 70 * - ( + + 18 ) AS col1
----
0

query I rowsort
SELECT - 58 + - 69 + - + 76 * - 82 AS col2
----
6105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT + + NULLIF ( 11, + + NULLIF ( - 78, - CAST( + - AVG ( ALL - 11 ) AS SIGNED ) + + - 6 + - 22 + + 27 ) )
----
11

skipif mysql # not compatible
query I rowsort label-8792
SELECT + + NULLIF ( 11, + + NULLIF ( - 78, - CAST ( + - AVG ( ALL - 11 ) AS INTEGER ) + + - 6 + - 22 + + 27 ) )
----
11

query I rowsort
SELECT ALL + + ( + + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - - COUNT( * ) * 35 * - + COUNT( * ) + + 58
----
23

skipif mysql # not compatible
query I rowsort label-8794
SELECT - - COUNT ( * ) * 35 * - + COUNT ( * ) + + 58
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT - + 18 * + 91 / 36 + - 67 * 46 + CASE - + 29 WHEN - 81 THEN - 77 * 28 * - 72 / - - 24 * 19 WHEN MAX( - 63 ) * 48 THEN 57 * - 29 + 98 * NULLIF ( - 92, 59 ) END + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT - + 18 * + 91 / 36 + - 67 * 46 + CASE - + 29 WHEN - 81 THEN - 77 * 28 * - 72 / - - 24 * 19 WHEN MAX ( - 63 ) * 48 THEN 57 * - 29 + 98 * NULLIF ( - 92, 59 ) END + - 98
----
NULL

query I rowsort
SELECT DISTINCT + 37 * + 71 - 38 AS col0
----
2589

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8797
SELECT + 38 + + - ( + CAST( - 40 AS DECIMAL ) ) * 41 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 38 + + - ( + CAST ( - 40 AS REAL ) ) * 41 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT - COUNT( * ) * + + 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8798
SELECT - COUNT ( * ) * + + 14 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT + ( + NULLIF ( + 70, - CAST( + 67 AS SIGNED ) / + 60 + + - 58 ) ) + + - 18 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8799
SELECT + ( + NULLIF ( + 70, - CAST ( + 67 AS INTEGER ) / + 60 + + - 58 ) ) + + - 18 AS col1
----
52

query I rowsort
SELECT ALL + ( 50 ) * 73 col1
----
3650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT + 48 + + CASE NULLIF ( + - 29, + + ( 96 ) * COALESCE ( + 0, 71 - + + NULLIF ( ( 37 ), 23 + ( - 58 ) ) ) ) WHEN 72 * - ( COUNT( * ) ) THEN NULL WHEN - 71 THEN CAST( 59 AS SIGNED ) END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 48 + + CASE NULLIF ( + - 29, + + ( 96 ) * COALESCE ( + 0, 71 - + + NULLIF ( ( 37 ), 23 + ( - 58 ) ) ) ) WHEN 72 * - ( COUNT ( * ) ) THEN NULL WHEN - 71 THEN CAST ( 59 AS INTEGER ) END * 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT ALL 54 DIV + 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL 54 / + 29 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT - SUM( + 20 ) col2, + 48 * + - 8 AS col0
----
-20
-384

skipif mysql # not compatible
query II rowsort label-8803
SELECT - SUM ( + 20 ) col2, + 48 * + - 8 AS col0
----
-20
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT - 94 DIV + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8804
SELECT - 94 / + COUNT ( * ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + + 7 * + COUNT( * ) + + 6 + + 11 * + 43
----
486

skipif mysql # not compatible
query I rowsort label-8805
SELECT + + 7 * + COUNT ( * ) + + 6 + + 11 * + 43
----
486

query I rowsort
SELECT ( ( - 10 ) )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8807
SELECT DISTINCT + 68 + - COUNT( * ), CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-8807
SELECT DISTINCT + 68 + - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT - + COUNT( * ) * + 45 + 86 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT - + COUNT ( * ) * + 45 + 86 AS col1
----
41

query I rowsort
SELECT - 93 * 80
----
-7440

query I rowsort
SELECT ALL 32 + 39 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL + 24 + - CAST( NULL AS SIGNED ) + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + 24 + - CAST ( NULL AS INTEGER ) + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL SUM( 16 ) + + + ( - + 9 ) + - + ( - - 28 )
----
-21

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL SUM ( 16 ) + + + ( - + 9 ) + - + ( - - 28 )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT DISTINCT - - 36 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - - 36 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - 86 + 52 + + 93 * - 63 + - - 34 + - COUNT( * )
----
-5860

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - 86 + 52 + + 93 * - 63 + - - 34 + - COUNT ( * )
----
-5860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT + CASE - - COUNT( * ) WHEN - 64 THEN NULL WHEN 38 THEN + 98 ELSE + - 90 / + + 61 + + 40 * - 60 * - 90 * - + COUNT( * ) * + + CAST( NULL AS SIGNED ) + 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT + CASE - - COUNT ( * ) WHEN - 64 THEN NULL WHEN 38 THEN + 98 ELSE + - 90 / + + 61 + + 40 * - 60 * - 90 * - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 86 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT 64 - 56 + - - 96 + - - ( - COUNT( - COALESCE ( 62, - 82 ) ) )
----
103

skipif mysql # not compatible
query I rowsort label-8816
SELECT 64 - 56 + - - 96 + - - ( - COUNT ( - COALESCE ( 62, - 82 ) ) )
----
103

query II rowsort
SELECT ALL 39 + - - 9, 66 AS col2
----
48
66

query I rowsort
SELECT - 9 - 66 + + 54 + + + ( 81 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT - - 28 * + 73 + COUNT( * ) AS col1
----
2045

skipif mysql # not compatible
query I rowsort label-8819
SELECT - - 28 * + 73 + COUNT ( * ) AS col1
----
2045

query I rowsort
SELECT 47 * 49 col2
----
2303

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8821
SELECT + 17 AS col0, 21 * - CAST( NULL AS SIGNED ) - + + 81 col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-8821
SELECT + 17 AS col0, 21 * - CAST ( NULL AS INTEGER ) - + + 81 col0
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL - MAX( 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - MAX ( 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8823
SELECT 66 - + COUNT( * ) DIV COUNT( * ) AS col0, + 98
----
65
98

skipif mysql # not compatible
query II rowsort label-8823
SELECT 66 - + COUNT ( * ) / COUNT ( * ) AS col0, + 98
----
65
98

query I rowsort
SELECT 37 * 20
----
740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT 72 * 88 * 94 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT 72 * 88 * 94 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8826
SELECT 56 + 85 * + COUNT( * ) * NULLIF ( + COUNT( * ), - 8 + - + 99 + + 58 ) AS col2, 88 + + - 95 AS col2
----
141
-7

skipif mysql # not compatible
query II rowsort label-8826
SELECT 56 + 85 * + COUNT ( * ) * NULLIF ( + COUNT ( * ), - 8 + - + 99 + + 58 ) AS col2, 88 + + - 95 AS col2
----
141
-7

query I rowsort
SELECT 62 * + - 30 col1
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - COUNT( * ) * - ( + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - COUNT ( * ) * - ( + 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT DISTINCT - 3 * - COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT - 3 * - COUNT ( * ) col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT DISTINCT - 30 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT - 30 / - 75 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT 81 DIV - 17
----
-4

skipif mysql # not compatible
query I rowsort label-8831
SELECT 81 / - 17
----
-4

query I rowsort
SELECT ALL - 58 * + - 45 AS col0
----
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8833
SELECT 61 + + + ( - 57 ) AS col0, + COUNT( DISTINCT 18 ) DIV 42
----
4
0

skipif mysql # not compatible
query II rowsort label-8833
SELECT 61 + + + ( - 57 ) AS col0, + COUNT ( DISTINCT 18 ) / 42
----
4
0

query I rowsort
SELECT 68 + 79 AS col1
----
147

query I rowsort
SELECT DISTINCT - 40 * - 31
----
1240

query I rowsort
SELECT ALL + 86 + + 35 col2
----
121

query I rowsort
SELECT 77 + 83 AS col0
----
160

query I rowsort
SELECT 16 * + + 52 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - 64 + + COUNT( * ) + - 1
----
-64

skipif mysql # not compatible
query I rowsort label-8839
SELECT - 64 + + COUNT ( * ) + - 1
----
-64

query I rowsort
SELECT DISTINCT - + 17 + + 33
----
16

query I rowsort
SELECT + 91 + + - 90 col1
----
1

query I rowsort
SELECT ALL - 95 + + + 83 AS col0
----
-12

query I rowsort
SELECT DISTINCT + 37 + + + 45
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT CAST( NULL AS SIGNED ) + - - 71 * + 18 + - NULLIF ( - ( + 76 ), 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT CAST ( NULL AS INTEGER ) + - - 71 * + 18 + - NULLIF ( - ( + 76 ), 80 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT - - 17 DIV 56 + - - MIN( ALL - - ( + 62 ) ) * ( 59 )
----
3658

skipif mysql # not compatible
query I rowsort label-8845
SELECT - - 17 / 56 + - - MIN ( ALL - - ( + 62 ) ) * ( 59 )
----
3658

query II rowsort
SELECT - 20, + 26 AS col0
----
-20
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT + COALESCE ( COUNT( * ), 44 * + - 52 + + - 98 + 77, - 62 DIV + - 84 + + - 40 - - - 53 + MAX( DISTINCT + 90 ) * + + 64 + - + 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8847
SELECT + COALESCE ( COUNT ( * ), 44 * + - 52 + + - 98 + 77, - 62 / + - 84 + + - 40 - - - 53 + MAX ( DISTINCT + 90 ) * + + 64 + - + 54 ) AS col1
----
1

query I rowsort
SELECT 0 + - + 38 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + 13 * 6 * COALESCE ( COUNT( * ), + + 89, - - 64 ) - + 87 * + + 10 + - 47 - - 23 col2
----
-816

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + 13 * 6 * COALESCE ( COUNT ( * ), + + 89, - - 64 ) - + 87 * + + 10 + - 47 - - 23 col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - COUNT( - 22 ) * + 8 + 94
----
86

skipif mysql # not compatible
query I rowsort label-8850
SELECT - COUNT ( - 22 ) * + 8 + 94
----
86

query I rowsort
SELECT 10 * 29 * + 43 + 7 AS col0
----
12477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8852
SELECT DISTINCT - MIN( DISTINCT 45 ) * + - COUNT( * ) * - NULLIF ( + 10, - - COUNT( DISTINCT - - ( 81 ) ) ), 86 * + 55 + SUM( CAST( NULL AS SIGNED ) ) + 53 AS col1, 2 + - 50 AS col1
----
-450
NULL
-48

skipif mysql # not compatible
query III rowsort label-8852
SELECT DISTINCT - MIN ( DISTINCT 45 ) * + - COUNT ( * ) * - NULLIF ( + 10, - - COUNT ( DISTINCT - - ( 81 ) ) ), 86 * + 55 + SUM ( CAST ( NULL AS INTEGER ) ) + 53 AS col1, 2 + - 50 AS col1
----
-450
NULL
-48

query I rowsort
SELECT ALL - + 46 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - 96 * + COUNT( 82 ) + - 38 AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-8854
SELECT - 96 * + COUNT ( 82 ) + - 38 AS col0
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT + COUNT( * ) AS col1, 36 * + 20 AS col1
----
1
720

skipif mysql # not compatible
query II rowsort label-8855
SELECT + COUNT ( * ) AS col1, 36 * + 20 AS col1
----
1
720

query I rowsort
SELECT ( + - 72 ) + + 75 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8857
SELECT 52 + - - 37 AS col1, + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-8857
SELECT 52 + - - 37 AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
89
NULL

query I rowsort
SELECT DISTINCT 14 * NULLIF ( + 42, - ( + - 85 ) )
----
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8859
SELECT ALL - COUNT( * ) col1, + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8859
SELECT ALL - COUNT ( * ) col1, + CAST ( NULL AS INTEGER )
----
-1
NULL

query II rowsort
SELECT ALL 81 AS col2, + 16 AS col1
----
81
16

query I rowsort
SELECT ALL - 26 * - 11
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT MIN( DISTINCT - + 1 ) * - 99 + + - MIN( ALL 90 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8862
SELECT MIN ( DISTINCT - + 1 ) * - 99 + + - MIN ( ALL 90 ) AS col1
----
9

query I rowsort
SELECT ALL + 53 + + + 83
----
136

query I rowsort
SELECT ALL 13 * 41 * + 99 AS col1
----
52767

query I rowsort
SELECT 97 + 49 + + - 61 * - 71
----
4477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8866
SELECT - COUNT( * ) AS col1, - 22 + - 30 * 9 + + COALESCE ( 29, + - 51 + 22, + COUNT( * ) ) + - 86 + - 41 + + 14 - - 64 * CAST( NULL AS SIGNED ) - + NULLIF ( + 16, 37 ) * + 12
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8866
SELECT - COUNT ( * ) AS col1, - 22 + - 30 * 9 + + COALESCE ( 29, + - 51 + 22, + COUNT ( * ) ) + - 86 + - 41 + + 14 - - 64 * CAST ( NULL AS INTEGER ) - + NULLIF ( + 16, 37 ) * + 12
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT 86, COUNT( * ) + - + 28 AS col0
----
86
-27

skipif mysql # not compatible
query II rowsort label-8867
SELECT 86, COUNT ( * ) + - + 28 AS col0
----
86
-27

query I rowsort
SELECT ALL - 54 + + - 51
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - CASE WHEN NOT - COUNT( * ) IS NULL THEN + 59 ELSE NULL END
----
-59

skipif mysql # not compatible
query I rowsort label-8869
SELECT - CASE WHEN NOT - COUNT ( * ) IS NULL THEN + 59 ELSE NULL END
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8870
SELECT + CASE + 88 WHEN + 98 * - + 7 + 7 THEN CAST( NULL AS DECIMAL ) WHEN + 48 * + - COUNT( * ) THEN 91 - + COUNT( * ) - + 24 / 10 END * - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT + CASE + 88 WHEN + 98 * - + 7 + 7 THEN CAST ( NULL AS REAL ) WHEN + 48 * + - COUNT ( * ) THEN 91 - + COUNT ( * ) - + 24 / 10 END * - 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - 65 * + CASE COUNT( * ) WHEN + 18 * + 96 THEN 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 65 * + CASE COUNT ( * ) WHEN + 18 * + 96 THEN 88 ELSE NULL END
----
NULL

query II rowsort
SELECT - + 30 col2, 11 + - 71 AS col2
----
-30
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT ALL + - 19 + 82 + - CAST( + 97 AS SIGNED ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + - 19 + 82 + - CAST ( + 97 AS INTEGER ) col1
----
-34

query I rowsort
SELECT - 84 * - 8 * - - 32 AS col0
----
21504

query I rowsort
SELECT ALL + 8 * - 60 AS col1
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT + COUNT( * ) * 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8876
SELECT + COUNT ( * ) * 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8877
SELECT - COUNT( * ) AS col1, 26 * - 66
----
-1
-1716

skipif mysql # not compatible
query II rowsort label-8877
SELECT - COUNT ( * ) AS col1, 26 * - 66
----
-1
-1716

onlyif mysql # aggregate syntax: 
query II rowsort label-8878
SELECT - - 14, + 65 + - 50 + MAX( DISTINCT - 2 ) AS col0
----
14
13

skipif mysql # not compatible
query II rowsort label-8878
SELECT - - 14, + 65 + - 50 + MAX ( DISTINCT - 2 ) AS col0
----
14
13

query I rowsort
SELECT - + 78 * 6
----
-468

query II rowsort
SELECT + 4 AS col1, 39 + - 72 AS col2
----
4
-33

query I rowsort
SELECT ALL + NULLIF ( + - 89, + 43 ) col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8882
SELECT ALL + + COUNT( * ), + 69 AS col2
----
1
69

skipif mysql # not compatible
query II rowsort label-8882
SELECT ALL + + COUNT ( * ), + 69 AS col2
----
1
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8883
SELECT + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT + - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + + MAX( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + + MAX ( + 16 )
----
16

query I rowsort
SELECT - 0 * - 25 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT - + CASE + 50 WHEN + ( - 52 ) THEN + CAST( 6 AS SIGNED ) ELSE NULL END * + 26 + + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT - + CASE + 50 WHEN + ( - 52 ) THEN + CAST ( 6 AS INTEGER ) ELSE NULL END * + 26 + + + 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8887
SELECT - 66 * - 27 AS col2, CASE + 15 WHEN - 14 * - 96 THEN NULL ELSE - 43 END * - - ( + 38 ) - + + COALESCE ( 85, 62 ) - + 42 + - + 80 * - 94 + - ( - CAST( + AVG ( ALL ( - 30 ) ) AS SIGNED ) ) + 92 * - 58
----
1782
393

skipif mysql # not compatible
query II rowsort label-8887
SELECT - 66 * - 27 AS col2, CASE + 15 WHEN - 14 * - 96 THEN NULL ELSE - 43 END * - - ( + 38 ) - + + COALESCE ( 85, 62 ) - + 42 + - + 80 * - 94 + - ( - CAST ( + AVG ( ALL ( - 30 ) ) AS INTEGER ) ) + 92 * - 58
----
1782
393

query I rowsort
SELECT + - 46 + - 96
----
-142

query I rowsort
SELECT ALL 79 * NULLIF ( + 94, + 66 + - 72 ) AS col1
----
7426

onlyif mysql # aggregate syntax: 
query II rowsort label-8890
SELECT - COUNT( ALL + + 66 ) - - + COUNT( * ) - - COUNT( * ) * + 1 AS col2, MIN( + + ( + + 2 ) ) AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-8890
SELECT - COUNT ( ALL + + 66 ) - - + COUNT ( * ) - - COUNT ( * ) * + 1 AS col2, MIN ( + + ( + + 2 ) ) AS col1
----
1
2

query I rowsort
SELECT + CASE 88 WHEN ( - 66 ) THEN - 16 WHEN 89 THEN NULL END / - + 66 * - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT COUNT( * ) * + + CASE + + COUNT( * ) WHEN - 65 THEN + COUNT( * ) * 12 * 79 END + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT COUNT ( * ) * + + CASE + + COUNT ( * ) WHEN - 65 THEN + COUNT ( * ) * 12 * 79 END + - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT ALL + 29 * + CAST( - CASE + CAST( NULL AS SIGNED ) WHEN ( - - 15 ) * - 77 + + 66 + - 19 THEN NULL WHEN + COUNT( * ) * 47 THEN + - 46 + + 63 END AS SIGNED ) + + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + 29 * + CAST ( - CASE + CAST ( NULL AS INTEGER ) WHEN ( - - 15 ) * - 77 + + 66 + - 19 THEN NULL WHEN + COUNT ( * ) * 47 THEN + - 46 + + 63 END AS INTEGER ) + + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL + 30 * - + SUM( - 34 ) * + 8
----
8160

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL + 30 * - + SUM ( - 34 ) * + 8
----
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL ( 48 ) * - - COUNT( * ) + COUNT( * ) + + 34 col0
----
83

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL ( 48 ) * - - COUNT ( * ) + COUNT ( * ) + + 34 col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT + CAST( NULL AS SIGNED ) - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT + CAST ( NULL AS INTEGER ) - + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT + SUM( + + 26 ), + COUNT( * ) + - 55 AS col1
----
26
-54

skipif mysql # not compatible
query II rowsort label-8897
SELECT + SUM ( + + 26 ), + COUNT ( * ) + - 55 AS col1
----
26
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COUNT( ALL + - 55 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( ALL + - 55 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT + COUNT( * ) * + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-8899
SELECT + COUNT ( * ) * + - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT COUNT( DISTINCT 20 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8900
SELECT COUNT ( DISTINCT 20 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT - CAST( 57 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8901
SELECT - CAST ( 57 AS INTEGER ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT 36 + 68 + 78 + - COUNT( * ) AS col0
----
181

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT 36 + 68 + 78 + - COUNT ( * ) AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL COUNT( DISTINCT 20 ) * - - COUNT( * ) - - + 25 + 17
----
43

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL COUNT ( DISTINCT 20 ) * - - COUNT ( * ) - - + 25 + 17
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8904
SELECT DISTINCT 18 + - + 24 + - COUNT( * ) + 8 DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT 18 + - + 24 + - COUNT ( * ) + 8 / COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT 30 + 25 * + - 6 AS col0
----
-120

query I rowsort
SELECT ALL - 48 + + 94 + + + ( - 50 ) * - 32
----
1646

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + 68 - - 52 + + 25 + + NULLIF ( - 58, + COUNT( * ) / + 84 )
----
87

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 68 - - 52 + + 25 + + NULLIF ( - 58, + COUNT ( * ) / + 84 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT + MAX( + + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT + MAX ( + + 61 ) AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT ALL 42 * - CAST( 15 AS SIGNED ) AS col2
----
-630

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL 42 * - CAST ( 15 AS INTEGER ) AS col2
----
-630

query I rowsort
SELECT + COALESCE ( 82, - + 23 ) + + 46
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8911
SELECT + - CAST( 74 AS SIGNED ) * - + 89 * + COUNT( * )
----
6586

skipif mysql # not compatible
query I rowsort label-8911
SELECT + - CAST ( 74 AS INTEGER ) * - + 89 * + COUNT ( * )
----
6586

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT + + 24 * COUNT( * ) + + 65
----
89

skipif mysql # not compatible
query I rowsort label-8912
SELECT + + 24 * COUNT ( * ) + + 65
----
89

query I rowsort
SELECT - 18 * 51 * - ( + 22 )
----
20196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8914
SELECT DISTINCT MIN( 62 ) AS col0, - 3 + - - COUNT( * ) + + 42 DIV + + ( 3 ) AS col1
----
62
12

skipif mysql # not compatible
query II rowsort label-8914
SELECT DISTINCT MIN ( 62 ) AS col0, - 3 + - - COUNT ( * ) + + 42 / + + ( 3 ) AS col1
----
62
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT ALL + 63 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + 63 / 83 AS col2
----
0

query I rowsort
SELECT - 75 + + 26 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8917
SELECT ALL - 72 * - 22 AS col1, + MAX( - - NULLIF ( + 64, 74 ) ) - + ( - - 92 ) AS col0
----
1584
-28

skipif mysql # not compatible
query II rowsort label-8917
SELECT ALL - 72 * - 22 AS col1, + MAX ( - - NULLIF ( + 64, 74 ) ) - + ( - - 92 ) AS col0
----
1584
-28

query I rowsort
SELECT + 42 * - 3
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT + - 79 / 47 + - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT + - 79 / 47 + - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT + + COUNT( ALL + + 56 ) DIV - 79 * 40
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT + + COUNT ( ALL + + 56 ) / - 79 * 40
----
0

query I rowsort
SELECT - - 75 * - 18
----
-1350

query I rowsort
SELECT - - 17 + - 66 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT ALL + CAST( NULL AS SIGNED ) * 97 + - 25 + - 21 / CASE CASE + 78 WHEN - 89 * + + 55 THEN 51 - + CAST( NULL AS SIGNED ) * - 20 WHEN - - COALESCE ( - + 69, - 65 + - 53, - CAST( NULL AS SIGNED ), 98 - 88 ) THEN NULL END WHEN + CAST( NULL AS SIGNED ) THEN - 68 END + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + CAST ( NULL AS INTEGER ) * 97 + - 25 + - 21 / CASE CASE + 78 WHEN - 89 * + + 55 THEN 51 - + CAST ( NULL AS INTEGER ) * - 20 WHEN - - COALESCE ( - + 69, - 65 + - 53, - CAST ( NULL AS INTEGER ), 98 - 88 ) THEN NULL END WHEN + CAST ( NULL AS INTEGER ) THEN - 68 END + 37 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8924
SELECT + 41 * - CAST( NULL AS DECIMAL ) + - + 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT + 41 * - CAST ( NULL AS REAL ) + - + 21 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8925
SELECT DISTINCT - 34 DIV - COUNT( DISTINCT + 16 ) + + 20
----
54

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT - 34 / - COUNT ( DISTINCT + 16 ) + + 20
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT 56 DIV - + 97 * + 63 + - + 21 * + 75
----
-1575

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT 56 / - + 97 * + 63 + - + 21 * + 75
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT + NULLIF ( + 33, - SUM( + 27 ) + - 76 + 55 + 11 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + NULLIF ( + 33, - SUM ( + 27 ) + - 76 + 55 + 11 ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT ALL 31 DIV + - 73 + - 32 col2
----
-32

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 31 / + - 73 + - 32 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + COUNT( - 25 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8929
SELECT + COUNT ( - 25 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8930
SELECT - ( + 23 ) * + 73, 79 * - CASE + - ( - 28 ) WHEN + 18 THEN COUNT( * ) DIV + 39 WHEN - COUNT( * ) THEN + COUNT( * ) + + - NULLIF ( - - 98, + - 25 * CAST( NULL AS SIGNED ) + 96 * COUNT( * ) DIV + 58 ) + 76 ELSE + 53 * 14 + - CAST( + CAST( 21 AS SIGNED ) + + ( - 55 ) AS SIGNED ) END AS col2
----
-1679
-61304

skipif mysql # not compatible
query II rowsort label-8930
SELECT - ( + 23 ) * + 73, 79 * - CASE + - ( - 28 ) WHEN + 18 THEN COUNT ( * ) / + 39 WHEN - COUNT ( * ) THEN + COUNT ( * ) + + - NULLIF ( - - 98, + - 25 * CAST ( NULL AS INTEGER ) + 96 * COUNT ( * ) / + 58 ) + 76 ELSE + 53 * 14 + - CAST ( + CAST ( 21 AS INTEGER ) + + ( - 55 ) AS INTEGER ) END AS col2
----
-1679
-61304

query I rowsort
SELECT ( - 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT ALL 99 * + 55 + + 76 AS col0, MIN( DISTINCT + - 82 ) - 47 - - 49 + - 0
----
5521
-80

skipif mysql # not compatible
query II rowsort label-8932
SELECT ALL 99 * + 55 + + 76 AS col0, MIN ( DISTINCT + - 82 ) - 47 - - 49 + - 0
----
5521
-80

query I rowsort
SELECT 77 + 18
----
95

query I rowsort
SELECT DISTINCT COALESCE ( 18, + 94 ) * - 20
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + 30 * 98 + - SUM( + 43 ) col0
----
2897

skipif mysql # not compatible
query I rowsort label-8935
SELECT + 30 * 98 + - SUM ( + 43 ) col0
----
2897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8936
SELECT DISTINCT - COUNT( ALL - + 75 ) * ( - CAST( - 93 AS SIGNED ) ) DIV 34 * - + 90 * MAX( ALL 57 ) * + 87 + - ( 46 ) - - COALESCE ( + + 66, + 15 ) + 45 AS col0, - 96 * - 63
----
892685
6048

skipif mysql # not compatible
query II rowsort label-8936
SELECT DISTINCT - COUNT ( ALL - + 75 ) * ( - CAST ( - 93 AS INTEGER ) ) / 34 * - + 90 * MAX ( ALL 57 ) * + 87 + - ( 46 ) - - COALESCE ( + + 66, + 15 ) + 45 AS col0, - 96 * - 63
----
892685
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT COUNT( * ) + - - 68 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8937
SELECT COUNT ( * ) + - - 68 AS col0
----
69

query I rowsort
SELECT 16 * - 38
----
-608

query I rowsort
SELECT - COALESCE ( - 44, + 63 )
----
44

query II rowsort
SELECT 79 AS col1, 45 * 35
----
79
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + MIN( ALL 96 ) + 54 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-8941
SELECT + MIN ( ALL 96 ) + 54 AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT - CAST( NULL AS SIGNED ) + + 91 * + COUNT( * ) * + + 28 + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT - CAST ( NULL AS INTEGER ) + + 91 * + COUNT ( * ) * + + 28 + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT - + 31 col0, COALESCE ( 94, + 59 + + - 24 * 86 * + 54 - 91 ) - + 77 * - COUNT( * ) * ( 32 )
----
-31
2558

skipif mysql # not compatible
query II rowsort label-8943
SELECT - + 31 col0, COALESCE ( 94, + 59 + + - 24 * 86 * + 54 - 91 ) - + 77 * - COUNT ( * ) * ( 32 )
----
-31
2558

query II rowsort
SELECT - + 62 AS col1, - 66 + + 67 + 95
----
-62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL MIN( ALL + - 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL MIN ( ALL + - 76 ) AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8946
SELECT DISTINCT + 59 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-8946
SELECT DISTINCT + 59 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT - CAST( 6 AS SIGNED ) * - ( - 55 )
----
-330

skipif mysql # not compatible
query I rowsort label-8947
SELECT - CAST ( 6 AS INTEGER ) * - ( - 55 )
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT - COUNT( DISTINCT + - 86 ) + - + 43 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - COUNT ( DISTINCT + - 86 ) + - + 43 AS col1
----
-44

query I rowsort
SELECT ALL + 30 + + + 61 * - 83 AS col1
----
-5033

query I rowsort
SELECT 81 - - 97
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT 97 + + 18 + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT 97 + + 18 + COUNT ( * )
----
116

query I rowsort
SELECT DISTINCT + 13 * + - 60 AS col1
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT NULLIF ( + - 50, - NULLIF ( + MIN( - 51 ), - + 34 ) * + 13 ) * COALESCE ( 22, + 26 ) + + 90
----
-1010

skipif mysql # not compatible
query I rowsort label-8953
SELECT NULLIF ( + - 50, - NULLIF ( + MIN ( - 51 ), - + 34 ) * + 13 ) * COALESCE ( 22, + 26 ) + + 90
----
-1010

query I rowsort
SELECT ALL 54 + - + 78
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL - CAST( - 4 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - CAST ( - 4 AS INTEGER ) col0
----
4

query II rowsort
SELECT ALL - ( + - 53 ) AS col2, 12 - + 47
----
53
-35

query I rowsort
SELECT ALL + 23 - - + 86
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8958
SELECT 96 * + 40 AS col1, 11 + + - COUNT( * ) DIV - 8 col0
----
3840
11

skipif mysql # not compatible
query II rowsort label-8958
SELECT 96 * + 40 AS col1, 11 + + - COUNT ( * ) / - 8 col0
----
3840
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT - 12 * - 82 + 13 * 51 + + + CAST( + CASE + 22 WHEN - CASE WHEN 17 <> 16 THEN NULL ELSE 80 - + 16 + - ( + 32 ) END THEN - 60 ELSE CAST( - + CASE - 75 WHEN 94 + 49 THEN NULL ELSE - COUNT( * ) + COUNT( * ) * 33 END AS SIGNED ) END AS SIGNED ) * + 65 - - 65
----
-368

skipif mysql # not compatible
query I rowsort label-8959
SELECT - 12 * - 82 + 13 * 51 + + + CAST ( + CASE + 22 WHEN - CASE WHEN 17 <> 16 THEN NULL ELSE 80 - + 16 + - ( + 32 ) END THEN - 60 ELSE CAST ( - + CASE - 75 WHEN 94 + 49 THEN NULL ELSE - COUNT ( * ) + COUNT ( * ) * 33 END AS INTEGER ) END AS INTEGER ) * + 65 - - 65
----
-368

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8960
SELECT 23 / + CAST( NULL AS SIGNED ) AS col1, + 25 * - 97 col1
----
NULL
-2425

skipif mysql # not compatible
query II rowsort label-8960
SELECT 23 / + CAST ( NULL AS INTEGER ) AS col1, + 25 * - 97 col1
----
NULL
-2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT ALL - - ( - + 46 ) * - 62 + + + COALESCE ( + - 76, + 61 DIV + MIN( DISTINCT 24 ), 63 DIV - 55 ) col2
----
2776

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL - - ( - + 46 ) * - 62 + + + COALESCE ( + - 76, + 61 / + MIN ( DISTINCT 24 ), 63 / - 55 ) col2
----
2776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT CAST( - + 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-8962
SELECT CAST ( - + 38 AS INTEGER )
----
-38

query I rowsort
SELECT ALL - 85 * - 14 col0
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT DISTINCT + + 4 * - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT + + 4 * - COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT ALL - 35 * + 75 AS col1
----
-2625

query I rowsort
SELECT + 66 - + - 22 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT SUM( DISTINCT - 57 ) * - ( + 73 )
----
4161

skipif mysql # not compatible
query I rowsort label-8967
SELECT SUM ( DISTINCT - 57 ) * - ( + 73 )
----
4161

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ( - + 46 ) + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8968
SELECT ( - + 46 ) + COUNT ( * )
----
-45

query I rowsort
SELECT + 24 + 59 + + - 41 + 78 - + 23 + - 17 * + 2 * + 67 * + 64
----
-145695

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT 69 * + - ( + + 71 ) * - 95 + 78 - - 73 + + 38 * - 91 * - 92 * + 61 * - + ( - 71 ) + - ( - - COUNT( * ) ) + + COUNT( * ) + - 77 * ( - + 3 ) + - 46 * + 89
----
1378308709

skipif mysql # not compatible
query I rowsort label-8970
SELECT 69 * + - ( + + 71 ) * - 95 + 78 - - 73 + + 38 * - 91 * - 92 * + 61 * - + ( - 71 ) + - ( - - COUNT ( * ) ) + + COUNT ( * ) + - 77 * ( - + 3 ) + - 46 * + 89
----
1378308709

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - COUNT( * ) + + 70
----
69

skipif mysql # not compatible
query I rowsort label-8971
SELECT - COUNT ( * ) + + 70
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT ALL 90 + + + 70 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL 90 + + + 70 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT 48 + - NULLIF ( + 0, + 95 * COUNT( DISTINCT - 26 ) )
----
48

skipif mysql # not compatible
query I rowsort label-8973
SELECT 48 + - NULLIF ( + 0, + 95 * COUNT ( DISTINCT - 26 ) )
----
48

query I rowsort
SELECT + 73 + 94
----
167

query I rowsort
SELECT 55 * ( - 96 )
----
-5280

onlyif mysql # DIV for integer division: 
query II rowsort label-8976
SELECT 35 DIV - 73 + 80 AS col2, + 20
----
80
20

skipif mysql # not compatible
query II rowsort label-8976
SELECT 35 / - 73 + 80 AS col2, + 20
----
80
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8977
SELECT ALL 16 * 97 * 63 + 67 + - 13 * - NULLIF ( + 24, + 67 ) DIV - - COUNT( * )
----
98155

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL 16 * 97 * 63 + 67 + - 13 * - NULLIF ( + 24, + 67 ) / - - COUNT ( * )
----
98155

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT CASE - AVG ( - 35 ) WHEN + 98 + + ( COUNT( * ) ) THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT CASE - AVG ( - 35 ) WHEN + 98 + + ( COUNT ( * ) ) THEN - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + COALESCE ( COUNT( * ), - 3 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8979
SELECT + COALESCE ( COUNT ( * ), - 3 ) col1
----
1

query I rowsort
SELECT + 85 + + 11
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT CASE 93 WHEN + 66 THEN NULL WHEN ( - 86 ) THEN COUNT( * ) + + + 20 + + COUNT( * ) WHEN - 46 * + 77 + ( - - ( + COUNT( * ) ) ) + 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT CASE 93 WHEN + 66 THEN NULL WHEN ( - 86 ) THEN COUNT ( * ) + + + 20 + + COUNT ( * ) WHEN - 46 * + 77 + ( - - ( + COUNT ( * ) ) ) + 53 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8982
SELECT + 73 * 3 DIV - ( ( - + 85 ) ) * - - COUNT( * ) + - + 50
----
-48

skipif mysql # not compatible
query I rowsort label-8982
SELECT + 73 * 3 / - ( ( - + 85 ) ) * - - COUNT ( * ) + - + 50
----
-48

query I rowsort
SELECT ALL 78 * + + 33 AS col2
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + MIN( + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + MIN ( + 13 ) AS col0
----
13

query II rowsort
SELECT ALL 60 * 19 - + - 78 col0, - 64
----
1218
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL - SUM( - 51 ) * + COUNT( - 53 ) - 12 + + 14 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - SUM ( - 51 ) * + COUNT ( - 53 ) - 12 + + 14 AS col0
----
53

query I rowsort
SELECT + 42 * 82 AS col1
----
3444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8988
SELECT ALL 48 DIV - + ( 63 ) * MIN( + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 48 / - + ( 63 ) * MIN ( + 54 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT + MIN( ALL - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT + MIN ( ALL - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL COUNT( * ) * + SUM( ALL + + ( 67 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL COUNT ( * ) * + SUM ( ALL + + ( 67 ) ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8991
SELECT + NULLIF ( + NULLIF ( + 87, + - 37 + - + 50 * MAX( + - 32 ) ), - 58 + + 3 ) * + 76 * COUNT( * ) col1, + 27 + 81 + + 4
----
6612
112

skipif mysql # not compatible
query II rowsort label-8991
SELECT + NULLIF ( + NULLIF ( + 87, + - 37 + - + 50 * MAX ( + - 32 ) ), - 58 + + 3 ) * + 76 * COUNT ( * ) col1, + 27 + 81 + + 4
----
6612
112

query I rowsort
SELECT - 12 * - + 71 * - 31 AS col0
----
-26412

query II rowsort
SELECT + 83 * + 30 * - - 29 AS col2, + ( + 1 ) + 41
----
72210
42

query I rowsort
SELECT + 0 + 70
----
70

query I rowsort
SELECT - - 45 * - 57
----
-2565

query II rowsort
SELECT DISTINCT - 86 AS col0, + 26
----
-86
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT - SUM( ALL - 0 ) + 91 AS col0, - 13 * 94 * + + ( 47 )
----
91
-57434

skipif mysql # not compatible
query II rowsort label-8997
SELECT - SUM ( ALL - 0 ) + 91 AS col0, - 13 * 94 * + + ( 47 )
----
91
-57434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), + + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), + + 57 )
----
NULL

query I rowsort
SELECT ALL - 24 + - + 63
----
-87

query I rowsort
SELECT - + 18 * - 89 - - ( - 99 )
----
1503

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9001
SELECT ALL - - 97 + + 64 + + 5 + + - 1 DIV - 22 AS col1, - CASE - 20 WHEN - 19 * + COUNT( * ) THEN NULL WHEN - - NULLIF ( + 66, COUNT( * ) ) THEN NULL ELSE + - ( - 35 ) END * + COUNT( * ) + + 78 DIV - + 97 AS col1
----
166
-35

skipif mysql # not compatible
query II rowsort label-9001
SELECT ALL - - 97 + + 64 + + 5 + + - 1 / - 22 AS col1, - CASE - 20 WHEN - 19 * + COUNT ( * ) THEN NULL WHEN - - NULLIF ( + 66, COUNT ( * ) ) THEN NULL ELSE + - ( - 35 ) END * + COUNT ( * ) + + 78 / - + 97 AS col1
----
166
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT ALL + NULLIF ( - COUNT( * ), SUM( ALL + 26 ) * - COUNT( * ) ), - COUNT( * ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9002
SELECT ALL + NULLIF ( - COUNT ( * ), SUM ( ALL + 26 ) * - COUNT ( * ) ), - COUNT ( * ) AS col0
----
-1
-1

query I rowsort
SELECT DISTINCT - ( + 94 ) + - 95 + + - 19 AS col2
----
-208

query I rowsort
SELECT DISTINCT - 79 * - 27 AS col2
----
2133

query I rowsort
SELECT ALL + - 22 + - 54 AS col2
----
-76

query I rowsort
SELECT ALL - 88 + + + 41
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT + COUNT( * ) + 53 + 61 * - SUM( DISTINCT + 68 )
----
-4094

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT + COUNT ( * ) + 53 + 61 * - SUM ( DISTINCT + 68 )
----
-4094

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9008
SELECT - CASE ( 3 ) WHEN + 23 * 9 * + 52 * - - 30 * - COUNT( * ) THEN + CAST( NULL AS DECIMAL ) WHEN - 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT - CASE ( 3 ) WHEN + 23 * 9 * + 52 * - - 30 * - COUNT ( * ) THEN + CAST ( NULL AS REAL ) WHEN - 13 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT - 61 AS col0, 58 AS col0
----
-61
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT ALL + 67 + + 18 + - + 15 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + 67 + + 18 + - + 15 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - COUNT( * ) * - 48
----
48

skipif mysql # not compatible
query I rowsort label-9011
SELECT - COUNT ( * ) * - 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - NULLIF ( 74, - SUM( 94 ) * + 13 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9012
SELECT - NULLIF ( 74, - SUM ( 94 ) * + 13 ) AS col1
----
-74

query I rowsort
SELECT - 97 - - 91 * 76
----
6819

query I rowsort
SELECT - NULLIF ( 57, - 23 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT 70 AS col2, - 95 * COUNT( * ) AS col1
----
70
-95

skipif mysql # not compatible
query II rowsort label-9015
SELECT 70 AS col2, - 95 * COUNT ( * ) AS col1
----
70
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT - ( - + COUNT( * ) ) - 86 col1
----
-85

skipif mysql # not compatible
query I rowsort label-9016
SELECT - ( - + COUNT ( * ) ) - 86 col1
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9017
SELECT CAST( NULL AS DECIMAL ) AS col1, 64 * + - 52 * 39
----
NULL
-129792

skipif mysql # not compatible
query II rowsort label-9017
SELECT CAST ( NULL AS REAL ) AS col1, 64 * + - 52 * 39
----
NULL
-129792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT DISTINCT - 71 DIV - + ( MIN( DISTINCT + 94 ) ) * + 51 * + - 45 - + + 37 + + 47 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - 71 / - + ( MIN ( DISTINCT + 94 ) ) * + 51 * + - 45 - + + 37 + + 47 AS col0
----
10

query I rowsort
SELECT ALL 61 * + 94
----
5734

query I rowsort
SELECT + COALESCE ( + - 39, - 4, 1 - - + 75 * 99, - 16 * 25 + + ( + 97 ) ) AS col1
----
-39

query II rowsort
SELECT ALL + 32 AS col0, 57
----
32
57

query II rowsort
SELECT ALL + 77 AS col2, + ( + + 98 ) + - 70
----
77
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 41 * - 10 + + - COUNT( * )
----
-411

skipif mysql # not compatible
query I rowsort label-9023
SELECT 41 * - 10 + + - COUNT ( * )
----
-411

query I rowsort
SELECT + 19 - - 27 AS col2
----
46

query I rowsort
SELECT + 36 + - 77 * + 1 + 76 AS col2
----
35

query I rowsort
SELECT + ( + 80 ) col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + COUNT( + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-9027
SELECT + COUNT ( + 23 )
----
1

query I rowsort
SELECT ( + + 81 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT + 83 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT + 83 / 86
----
0

query I rowsort
SELECT DISTINCT + 60 * 81 AS col2
----
4860

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT DISTINCT COUNT( * ) * - - 81
----
81

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT COUNT ( * ) * - - 81
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9032
SELECT - 73 * 97 / + 29 * - ( - 55 ) * COUNT( * ) * + 26 * - 38 * ( - CASE - COUNT( * ) WHEN + 92 * - 40 * 48 + 73 THEN NULL WHEN + 51 THEN 92 * + + COUNT( * ) ELSE NULL END ) + + + 45 AS col1, + 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-9032
SELECT - 73 * 97 / + 29 * - ( - 55 ) * COUNT ( * ) * + 26 * - 38 * ( - CASE - COUNT ( * ) WHEN + 92 * - 40 * 48 + 73 THEN NULL WHEN + 51 THEN 92 * + + COUNT ( * ) ELSE NULL END ) + + + 45 AS col1, + 47
----
NULL
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT ALL - SUM( 4 ) DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - SUM ( 4 ) / - 77 AS col1
----
0

query II rowsort
SELECT + 12 * + NULLIF ( - - 34, 77 ) AS col1, + 88
----
408
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + NULLIF ( - 20, - MAX( DISTINCT + - 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-9035
SELECT + NULLIF ( - 20, - MAX ( DISTINCT + - 20 ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT DISTINCT + + COUNT( * ) AS col0, + COUNT( * ) * - 26
----
1
-26

skipif mysql # not compatible
query II rowsort label-9036
SELECT DISTINCT + + COUNT ( * ) AS col0, + COUNT ( * ) * - 26
----
1
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9037
SELECT + 79 DIV - 26 AS col2, COALESCE ( + 1, - + 93 DIV - + MIN( DISTINCT - ( + 23 ) ) * - COUNT( - 83 ) * - MIN( ALL - CAST( - - 10 AS SIGNED ) ), - - SUM( DISTINCT - 43 ) ) + - - 83
----
-3
84

skipif mysql # not compatible
query II rowsort label-9037
SELECT + 79 / - 26 AS col2, COALESCE ( + 1, - + 93 / - + MIN ( DISTINCT - ( + 23 ) ) * - COUNT ( - 83 ) * - MIN ( ALL - CAST ( - - 10 AS INTEGER ) ), - - SUM ( DISTINCT - 43 ) ) + - - 83
----
-3
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9038
SELECT + + COUNT( * ) * + CAST( 20 AS SIGNED ) * + 78
----
1560

skipif mysql # not compatible
query I rowsort label-9038
SELECT + + COUNT ( * ) * + CAST ( 20 AS INTEGER ) * + 78
----
1560

query II rowsort
SELECT + - 62 AS col0, - 43 AS col1
----
-62
-43

query I rowsort
SELECT + + 22 - + 17
----
5

query I rowsort
SELECT - 65 * - 23 - - 67 AS col0
----
1562

query I rowsort
SELECT DISTINCT - - 62 * 51 + - 82 AS col2
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL + COUNT( * ) * - + COUNT( * ) + - 38 + + 80 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) + - 38 + + 80 AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT - 50 * - 58 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - 50 * - 58 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 6 - + 14 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + 8 + 63 * - COUNT( * ) - + 80 * + - ( 66 )
----
5225

skipif mysql # not compatible
query I rowsort label-9046
SELECT + 8 + 63 * - COUNT ( * ) - + 80 * + - ( 66 )
----
5225

query I rowsort
SELECT - - COALESCE ( - - 35, + 98 ) - + 58 + - 13 * - 59
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9048
SELECT - CAST( - + 87 AS SIGNED ), COALESCE ( - 75, - 73 + 4, + + 45 * - + 53 + - 86 * - 12 + - - 54 + + NULLIF ( + + 74, 33 * 52 + + - 39 * + COALESCE ( COUNT( * ), 81 * - 5 + + - ( + 92 ), 76 ) ) ) + 98 AS col2
----
87
23

skipif mysql # not compatible
query II rowsort label-9048
SELECT - CAST ( - + 87 AS INTEGER ), COALESCE ( - 75, - 73 + 4, + + 45 * - + 53 + - 86 * - 12 + - - 54 + + NULLIF ( + + 74, 33 * 52 + + - 39 * + COALESCE ( COUNT ( * ), 81 * - 5 + + - ( + 92 ), 76 ) ) ) + 98 AS col2
----
87
23

query I rowsort
SELECT ALL 79 - + 71 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT DISTINCT 38 DIV + 2
----
19

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT 38 / + 2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT 90 + ( + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-9051
SELECT 90 + ( + COUNT ( * ) )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL + COUNT( * ) * 24 / - 46 / + 80 * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + COUNT ( * ) * 24 / - 46 / + 80 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 97 * - + 40 AS col1
----
-3880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9054
SELECT DISTINCT - COUNT( ALL 58 ) * + CAST( NULL AS DECIMAL ) * - - 98 * - - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT - COUNT ( ALL 58 ) * + CAST ( NULL AS REAL ) * - - 98 * - - 76 AS col0
----
NULL

query I rowsort
SELECT 25 + - 15 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9056
SELECT ( + MIN( ALL - 85 ) ) / - CASE 38 WHEN + - 64 THEN NULL WHEN 84 + + 80 + - COUNT( * ) * + 58 THEN + CASE + 90 WHEN + + 58 * COALESCE ( - NULLIF ( - - 57, - 16 * - 38 * + CASE - CASE + 64 WHEN - - ( - 88 ) THEN - 52 * - 30 WHEN - CASE - 73 WHEN - 38 THEN NULL ELSE + 51 END * CAST( + 40 / + MAX( + 10 ) + 86 * - CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL ELSE - ( - ( + 23 ) ) - + 48 END WHEN - 39 THEN ( - 82 ) END + + 68 ), - 48 + 66, 64, - 92 ) + ( ( - 37 ) ) + 5 THEN CAST( - 87 AS DECIMAL ) WHEN + 18 * 94 THEN NULL ELSE NULL END * 75 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT ( + MIN ( ALL - 85 ) ) / - CASE 38 WHEN + - 64 THEN NULL WHEN 84 + + 80 + - COUNT ( * ) * + 58 THEN + CASE + 90 WHEN + + 58 * COALESCE ( - NULLIF ( - - 57, - 16 * - 38 * + CASE - CASE + 64 WHEN - - ( - 88 ) THEN - 52 * - 30 WHEN - CASE - 73 WHEN - 38 THEN NULL ELSE + 51 END * CAST ( + 40 / + MAX ( + 10 ) + 86 * - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL ELSE - ( - ( + 23 ) ) - + 48 END WHEN - 39 THEN ( - 82 ) END + + 68 ), - 48 + 66, 64, - 92 ) + ( ( - 37 ) ) + 5 THEN CAST ( - 87 AS REAL ) WHEN + 18 * 94 THEN NULL ELSE NULL END * 75 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL - SUM( ALL 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - SUM ( ALL 1 ) AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9058
SELECT 22 * - CAST( NULL AS DECIMAL ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT 22 * - CAST ( NULL AS REAL ) * + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT DISTINCT + CASE + + 56 WHEN + + CAST( + ( + 26 ) AS SIGNED ) + COALESCE ( + + 81, + + 5 ) + + 73 * - - COUNT( * ) * 92 THEN + COUNT( * ) + - + 4 WHEN + 53 THEN NULL ELSE - MIN( ALL - + 17 ) END + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + CASE + + 56 WHEN + + CAST ( + ( + 26 ) AS INTEGER ) + COALESCE ( + + 81, + + 5 ) + + 73 * - - COUNT ( * ) * 92 THEN + COUNT ( * ) + - + 4 WHEN + 53 THEN NULL ELSE - MIN ( ALL - + 17 ) END + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT + CAST( NULL AS SIGNED ) + 32 - + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT + CAST ( NULL AS INTEGER ) + 32 - + + 87
----
NULL

query I rowsort
SELECT DISTINCT + 6 + + 89 + - 44 * - - 84 AS col0
----
-3601

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT COUNT( * ) * 3 + - COUNT( * ) * 97
----
-94

skipif mysql # not compatible
query I rowsort label-9062
SELECT COUNT ( * ) * 3 + - COUNT ( * ) * 97
----
-94

query I rowsort
SELECT ( NULLIF ( + 59, 66 ) )
----
59

query I rowsort
SELECT ALL 16 + 97 AS col1
----
113

query I rowsort
SELECT - 86 + - 75 AS col2
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + - COUNT( DISTINCT - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-9066
SELECT + - COUNT ( DISTINCT - 49 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT 8 + + 58 DIV 37 DIV + + 41 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9067
SELECT 8 + + 58 / 37 / + + 41 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT ( + 69 ) + - + 26 + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT ( + 69 ) + - + 26 + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - NULLIF ( + - CASE - COUNT( * ) WHEN - - 26 + + - CASE + + 52 WHEN + - 71 + 44 THEN + MAX( - 73 ) ELSE - 33 END * 64 * + 81 THEN + 23 END, - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - NULLIF ( + - CASE - COUNT ( * ) WHEN - - 26 + + - CASE + + 52 WHEN + - 71 + 44 THEN + MAX ( - 73 ) ELSE - 33 END * 64 * + 81 THEN + 23 END, - 35 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT COUNT( * ) * 26 + + SUM( ALL 10 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-9070
SELECT COUNT ( * ) * 26 + + SUM ( ALL 10 ) col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL 46 * + CASE 67 WHEN + 14 + + 89 THEN + + 74 + + 1 WHEN 49 THEN NULL ELSE + - COUNT( * ) END
----
-46

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL 46 * + CASE 67 WHEN + 14 + + 89 THEN + + 74 + + 1 WHEN 49 THEN NULL ELSE + - COUNT ( * ) END
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9072
SELECT 56 DIV 81 + + 85 + 71 + - 9 * 68 * - - 79 AS col2, COUNT( * ) * 91
----
-48192
91

skipif mysql # not compatible
query II rowsort label-9072
SELECT 56 / 81 + + 85 + 71 + - 9 * 68 * - - 79 AS col2, COUNT ( * ) * 91
----
-48192
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9073
SELECT - 85 DIV - 99 AS col0, 39 * + COUNT( * ) * + 14 * + 50 * + + CASE - 49 WHEN - COALESCE ( - ( - ( + + 59 ) ), + 8 - CAST( + 36 AS SIGNED ) * CAST( 15 AS SIGNED ), - - 22 * - - COUNT( * ) + - 22 * ( - + 75 ) ) + + 24 * 25 THEN + 13 ELSE NULL END * - 28
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9073
SELECT - 85 / - 99 AS col0, 39 * + COUNT ( * ) * + 14 * + 50 * + + CASE - 49 WHEN - COALESCE ( - ( - ( + + 59 ) ), + 8 - CAST ( + 36 AS INTEGER ) * CAST ( 15 AS INTEGER ), - - 22 * - - COUNT ( * ) + - 22 * ( - + 75 ) ) + + 24 * 25 THEN + 13 ELSE NULL END * - 28
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9074
SELECT ALL SUM( 93 ) * 47, - 46 AS col0
----
4371
-46

skipif mysql # not compatible
query II rowsort label-9074
SELECT ALL SUM ( 93 ) * 47, - 46 AS col0
----
4371
-46

query I rowsort
SELECT DISTINCT 97 * + 82 AS col1
----
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL 32 * - + ( - COUNT( * ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL 32 * - + ( - COUNT ( * ) ) AS col2
----
32

query I rowsort
SELECT ( - + 55 ) * + 97 AS col2
----
-5335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT CAST( + 28 AS SIGNED ) * - ( - - 32 ) - - + NULLIF ( + 28, - 5 )
----
-868

skipif mysql # not compatible
query I rowsort label-9078
SELECT CAST ( + 28 AS INTEGER ) * - ( - - 32 ) - - + NULLIF ( + 28, - 5 )
----
-868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT 32 * + 96 * + COALESCE ( + + SUM( ALL - + 95 ), + - 21 DIV + 8 + 0 ) AS col2
----
-291840

skipif mysql # not compatible
query I rowsort label-9079
SELECT 32 * + 96 * + COALESCE ( + + SUM ( ALL - + 95 ), + - 21 / + 8 + 0 ) AS col2
----
-291840

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT 15 - + - NULLIF ( 98, + 53 ) * + ( - COUNT( * ) ) + - 84
----
-167

skipif mysql # not compatible
query I rowsort label-9080
SELECT 15 - + - NULLIF ( 98, + 53 ) * + ( - COUNT ( * ) ) + - 84
----
-167

query I rowsort
SELECT ALL + ( + ( + 28 ) ) * + + ( - 53 ) AS col1
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT 22 * + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9082
SELECT 22 * + COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL - COUNT( * ) * - 85 + + 67 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - COUNT ( * ) * - 85 + + 67 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9084
SELECT DISTINCT 90 * + - COUNT( * ) + - - 0 - CAST( NULL AS SIGNED ) * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT 90 * + - COUNT ( * ) + - - 0 - CAST ( NULL AS INTEGER ) * - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9085
SELECT 12 DIV COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9085
SELECT 12 / COUNT ( * ) AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT - 65 * - 50 + 17 DIV + 73 * - 99 AS col2
----
3250

skipif mysql # not compatible
query I rowsort label-9086
SELECT - 65 * - 50 + 17 / + 73 * - 99 AS col2
----
3250

query I rowsort
SELECT 50 - + 82 AS col1
----
-32

query I rowsort
SELECT DISTINCT + - 26 * - 6 + - 77 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT 8 * - ( - 12 ) * + 56 * CAST( - 80 AS SIGNED ) * + 94 + 54 - - AVG ( + CAST( NULL AS SIGNED ) ) * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT 8 * - ( - 12 ) * + 56 * CAST ( - 80 AS INTEGER ) * + 94 + 54 - - AVG ( + CAST ( NULL AS INTEGER ) ) * 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL 19 * + + 75 + + 9 * - + ( + COUNT( * ) ) + + COUNT( * ) AS col1
----
1417

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL 19 * + + 75 + + 9 * - + ( + COUNT ( * ) ) + + COUNT ( * ) AS col1
----
1417

query II rowsort
SELECT DISTINCT - + 49 AS col0, 16 - - 46 AS col1
----
-49
62

query II rowsort
SELECT 92 + - 28 * 39, 64 + - 64 AS col1
----
-1000
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL - MAX( - 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - MAX ( - 53 ) AS col0
----
53

query I rowsort
SELECT ALL - + 90 + 55
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9095
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + ( CAST ( NULL AS REAL ) ) + 56 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT ALL - CAST( + 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL - CAST ( + 20 AS INTEGER )
----
-20

query I rowsort
SELECT ALL + 1 * + 49
----
49

query II rowsort
SELECT + 49, 79 AS col2
----
49
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9099
SELECT 4 * - 9 DIV 69 DIV COUNT( * ) - + - 14
----
14

skipif mysql # not compatible
query I rowsort label-9099
SELECT 4 * - 9 / 69 / COUNT ( * ) - + - 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9100
SELECT DISTINCT 77 col2, NULLIF ( - - 18, + - 12 * 68 - + + NULLIF ( + + 57, 97 + 2 ) + COUNT( * ) / + ( + - 16 ) + + 16 ) * + CAST( NULL AS DECIMAL ) / + + 87
----
77
NULL

skipif mysql # not compatible
query II rowsort label-9100
SELECT DISTINCT 77 col2, NULLIF ( - - 18, + - 12 * 68 - + + NULLIF ( + + 57, 97 + 2 ) + COUNT ( * ) / + ( + - 16 ) + + 16 ) * + CAST ( NULL AS REAL ) / + + 87
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT - COUNT( * ) * + - 46 + - 27
----
19

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - COUNT ( * ) * + - 46 + - 27
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT DISTINCT NULLIF ( + CAST( 58 AS SIGNED ), 94 * - COUNT( * ) * - ( - COALESCE ( CAST( + COUNT( * ) AS SIGNED ), 88, + + 4 * + + 60 + - + 61, + - COUNT( * ) + - 98 + - - COUNT( * ) + MIN( DISTINCT - + 2 ) * + 87 ) ) + - 34 + - + 10 / - 31 + - 92 + + COUNT( * ) - NULLIF ( 43, + 98 - + 96 * + 51 ) - 64 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT NULLIF ( + CAST ( 58 AS INTEGER ), 94 * - COUNT ( * ) * - ( - COALESCE ( CAST ( + COUNT ( * ) AS INTEGER ), 88, + + 4 * + + 60 + - + 61, + - COUNT ( * ) + - 98 + - - COUNT ( * ) + MIN ( DISTINCT - + 2 ) * + 87 ) ) + - 34 + - + 10 / - 31 + - 92 + + COUNT ( * ) - NULLIF ( 43, + 98 - + 96 * + 51 ) - 64 ) AS col0
----
58

query I rowsort
SELECT + 26 * + 98
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL 38 / + MAX( DISTINCT 51 ) * + NULLIF ( - CASE + AVG ( 45 ) WHEN - 99 + COUNT( * ) * 74 * + + 45 * + + COUNT( * ) THEN - + ( COALESCE ( - COUNT( * ), - + 71, - 46 + + COALESCE ( CAST( NULL AS SIGNED ), + NULLIF ( + 94, + 18 ) ) - - 28 * - 17 * 70, - CAST( NULL AS SIGNED ) - 88 * + 50 ) ) + 98 * 98 ELSE NULL END, + 86 ) / 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL 38 / + MAX ( DISTINCT 51 ) * + NULLIF ( - CASE + AVG ( 45 ) WHEN - 99 + COUNT ( * ) * 74 * + + 45 * + + COUNT ( * ) THEN - + ( COALESCE ( - COUNT ( * ), - + 71, - 46 + + COALESCE ( CAST ( NULL AS INTEGER ), + NULLIF ( + 94, + 18 ) ) - - 28 * - 17 * 70, - CAST ( NULL AS INTEGER ) - 88 * + 50 ) ) + 98 * 98 ELSE NULL END, + 86 ) / 29 AS col0
----
NULL

query I rowsort
SELECT + 44 - 94 + - + 26
----
-76

query II rowsort
SELECT + 20 - - 77 + + + 84 * + 52 AS col1, 24
----
4465
24

query I rowsort
SELECT - ( 90 ) * 7
----
-630

query I rowsort
SELECT + 90 + + 88 AS col0
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT + 13 DIV - 11 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9109
SELECT + 13 / - 11 AS col0
----
-1

query I rowsort
SELECT ALL 48 + + 93 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT + 78 DIV - 96 * + 85
----
0

skipif mysql # not compatible
query I rowsort label-9111
SELECT + 78 / - 96 * + 85
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT DISTINCT 83 + - 97 AS col2, + 99 + COUNT( * ) AS col0
----
-14
100

skipif mysql # not compatible
query II rowsort label-9112
SELECT DISTINCT 83 + - 97 AS col2, + 99 + COUNT ( * ) AS col0
----
-14
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT + 12 + + ( + - COUNT( * ) ) + 78 AS col2, 86 - + + 45 - + 33 + - + 8
----
89
0

skipif mysql # not compatible
query II rowsort label-9113
SELECT + 12 + + ( + - COUNT ( * ) ) + 78 AS col2, 86 - + + 45 - + 33 + - + 8
----
89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL - 47 + + ( - 32 ) * COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - 47 + + ( - 32 ) * COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + 42 + + COALESCE ( - COUNT( * ), + 0 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9115
SELECT + 42 + + COALESCE ( - COUNT ( * ), + 0 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT + 0 * + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT + 0 * + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL + 86 * COUNT( * ) + + + 5 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + 86 * COUNT ( * ) + + + 5 AS col2
----
91

query I rowsort
SELECT 62 * + + 3 + - 0
----
186

query I rowsort
SELECT + 59 * + + 3 AS col0
----
177

query I rowsort
SELECT DISTINCT + 14 * + - 85 + + + 16
----
-1174

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT - - 2 DIV - 68 * - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT - - 2 / - 68 * - 30 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9122
SELECT - + SUM( DISTINCT 23 ) * 18 * - 0 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-9122
SELECT - + SUM ( DISTINCT 23 ) * 18 * - 0 / + 82
----
0

query I rowsort
SELECT ALL - 74 * - 9 AS col2
----
666

onlyif mysql # aggregate syntax: 
query II rowsort label-9124
SELECT - COALESCE ( - COUNT( * ), 75 + COUNT( * ) ) AS col2, 56 AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-9124
SELECT - COALESCE ( - COUNT ( * ), 75 + COUNT ( * ) ) AS col2, 56 AS col0
----
1
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT - 22 DIV - 59 + - 45 col1
----
-45

skipif mysql # not compatible
query I rowsort label-9125
SELECT - 22 / - 59 + - 45 col1
----
-45

query I rowsort
SELECT + 61 * + 29 * - 77 col0
----
-136213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT - + CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT - + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT - 88 DIV - 94 * - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT - 88 / - 94 * - 47 AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( - 92, ( + - 41 ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT + 91 * 98 + SUM( + 36 ) + + 28 + - CAST( + + 87 AS SIGNED ) AS col2
----
8895

skipif mysql # not compatible
query I rowsort label-9130
SELECT + 91 * 98 + SUM ( + 36 ) + + 28 + - CAST ( + + 87 AS INTEGER ) AS col2
----
8895

query I rowsort
SELECT DISTINCT + - 89 AS col2
----
-89

query I rowsort
SELECT - 44 + + + 57 AS col2
----
13

query I rowsort
SELECT - 3 * + 80
----
-240

query I rowsort
SELECT DISTINCT ( 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT - 68 * - - COUNT( * ) + + COUNT( ALL + 25 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT - 68 * - - COUNT ( * ) + + COUNT ( ALL + 25 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT - COUNT( * ) * 55
----
-55

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT - COUNT ( * ) * 55
----
-55

query I rowsort
SELECT - 67 * - 23
----
1541

onlyif mysql # aggregate syntax: 
query II rowsort label-9138
SELECT DISTINCT 26 AS col2, COUNT( * ) * + - 62
----
26
-62

skipif mysql # not compatible
query II rowsort label-9138
SELECT DISTINCT 26 AS col2, COUNT ( * ) * + - 62
----
26
-62

query I rowsort
SELECT DISTINCT - 32 + + + 1
----
-31

query I rowsort
SELECT + 37 * + 33
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL - 14 + 48 * - 27 * COUNT( * )
----
-1310

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - 14 + 48 * - 27 * COUNT ( * )
----
-1310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9142
SELECT DISTINCT 83 DIV + + 40 * + COUNT( * ) AS col1, 98
----
2
98

skipif mysql # not compatible
query II rowsort label-9142
SELECT DISTINCT 83 / + + 40 * + COUNT ( * ) AS col1, 98
----
2
98

query I rowsort
SELECT - 1 + + + 23 AS col2
----
22

query I rowsort
SELECT + 6 * 49
----
294

query I rowsort
SELECT DISTINCT COALESCE ( + 91, + + 41 + + + 51 ) + + 7 + 1 * - 32 * - 71 * 6
----
13730

query I rowsort
SELECT ALL 88 + 19 + - + 33
----
74

query I rowsort
SELECT - NULLIF ( - 25, ( - + 10 ) / 30 ) AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT - CAST( - - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-9148
SELECT - CAST ( - - 36 AS INTEGER )
----
-36

query I rowsort
SELECT + - 75 * - 23 AS col0
----
1725

query I rowsort
SELECT DISTINCT + 58 - 93 + - 42 * - 28 AS col2
----
1141

query I rowsort
SELECT ALL - ( - 53 ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9152
SELECT + + 74 DIV + 67 + - - 27 * + 26 * + + ( - 69 ) - + 39 + - + CASE 45 WHEN 69 + + 87 THEN NULL WHEN - ( ( - 52 ) ) THEN NULL ELSE + ( + CAST( - 72 AS SIGNED ) ) * + + 81 END * 2
----
-36812

skipif mysql # not compatible
query I rowsort label-9152
SELECT + + 74 / + 67 + - - 27 * + 26 * + + ( - 69 ) - + 39 + - + CASE 45 WHEN 69 + + 87 THEN NULL WHEN - ( ( - 52 ) ) THEN NULL ELSE + ( + CAST ( - 72 AS INTEGER ) ) * + + 81 END * 2
----
-36812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9153
SELECT 23 DIV 72 + + 42 - + COUNT( * ) - - 85 + - + 62 col0
----
64

skipif mysql # not compatible
query I rowsort label-9153
SELECT 23 / 72 + + 42 - + COUNT ( * ) - - 85 + - + 62 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + CASE + - COUNT( * ) WHEN + ( - 2 ) * - 75 * + 55 + - 40 THEN + + NULLIF ( + SUM( ALL - - 41 ), 4 + + 87 + + 35 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT + CASE + - COUNT ( * ) WHEN + ( - 2 ) * - 75 * + 55 + - 40 THEN + + NULLIF ( + SUM ( ALL - - 41 ), 4 + + 87 + + 35 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT - 69 * - + ( - COUNT( * ) ) - + 82 * - 64 AS col1, + 15 + - + COUNT( * )
----
5179
14

skipif mysql # not compatible
query II rowsort label-9155
SELECT - 69 * - + ( - COUNT ( * ) ) - + 82 * - 64 AS col1, + 15 + - + COUNT ( * )
----
5179
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL 89 - - COUNT( * ) * - 47 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL 89 - - COUNT ( * ) * - 47 AS col2
----
42

query II rowsort
SELECT 31 * + 42 + - - 62 AS col0, - 46 AS col0
----
1364
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT + 29 * - COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9158
SELECT + 29 * - COUNT ( * ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + - CASE ( + SUM( ( 77 ) ) ) WHEN + - ( + 58 ) * + ( - - AVG ( - + 2 ) ) * - - 77 * + 33 - - AVG ( - - 98 ) + + COUNT( 89 ) THEN - + COUNT( * ) WHEN - - COUNT( - 80 ) THEN - COUNT( * ) ELSE + 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-9159
SELECT + - CASE ( + SUM ( ( 77 ) ) ) WHEN + - ( + 58 ) * + ( - - AVG ( - + 2 ) ) * - - 77 * + 33 - - AVG ( - - 98 ) + + COUNT ( 89 ) THEN - + COUNT ( * ) WHEN - - COUNT ( - 80 ) THEN - COUNT ( * ) ELSE + 9 END
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL - - 35 * - 64 * + + CASE + COUNT( * ) WHEN + - COALESCE ( + 5, 68 ) THEN + + 14 * + ( - 57 ) WHEN + 17 * + 49 * + + 97 * - 71 * CASE 27 WHEN + - 21 THEN NULL WHEN AVG ( ALL 70 ) THEN + COUNT( * ) / + + 6 + - ( - + COUNT( DISTINCT - + 90 ) ) * + - 15 + - 54 / - COUNT( * ) + ( - 15 + - 65 * - AVG ( ALL + 65 ) ) * - 69 END THEN NULL END - + 55 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL - - 35 * - 64 * + + CASE + COUNT ( * ) WHEN + - COALESCE ( + 5, 68 ) THEN + + 14 * + ( - 57 ) WHEN + 17 * + 49 * + + 97 * - 71 * CASE 27 WHEN + - 21 THEN NULL WHEN AVG ( ALL 70 ) THEN + COUNT ( * ) / + + 6 + - ( - + COUNT ( DISTINCT - + 90 ) ) * + - 15 + - 54 / - COUNT ( * ) + ( - 15 + - 65 * - AVG ( ALL + 65 ) ) * - 69 END THEN NULL END - + 55 * + 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT + 90 DIV 11
----
8

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + 90 / 11
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL 78 + + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL 78 + + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT - 61 + - 44 + + 12 AS col1
----
-93

query I rowsort
SELECT 16 * + 92 * + 89
----
131008

query I rowsort
SELECT ALL + 9 * + 22
----
198

query II rowsort
SELECT 25, + 77 AS col1
----
25
77

query I rowsort
SELECT 96 - + + 95 AS col2
----
1

query I rowsort
SELECT ALL 66 + - + 2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9169
SELECT ALL 75 AS col2, COALESCE ( - 79, ( 67 ), + - COUNT( * ) DIV 94 * + 82 + COALESCE ( COUNT( * ), - MAX( DISTINCT + 89 ), - - 23 * 64, - COUNT( DISTINCT - ( 26 ) ) ) )
----
75
-79

skipif mysql # not compatible
query II rowsort label-9169
SELECT ALL 75 AS col2, COALESCE ( - 79, ( 67 ), + - COUNT ( * ) / 94 * + 82 + COALESCE ( COUNT ( * ), - MAX ( DISTINCT + 89 ), - - 23 * 64, - COUNT ( DISTINCT - ( 26 ) ) ) )
----
75
-79

query I rowsort
SELECT 25 + + 93 AS col0
----
118

query I rowsort
SELECT ALL - 19 + + 51 AS col1
----
32

query I rowsort
SELECT 41 - + + 7 AS col2
----
34

query I rowsort
SELECT 15 + - COALESCE ( 27, 45 )
----
-12

query II rowsort
SELECT 11 AS col0, + 24 + + 21
----
11
45

query I rowsort
SELECT 60 + + + 12
----
72

query I rowsort
SELECT 31 * - + 60 AS col2
----
-1860

query I rowsort
SELECT 50 + 67 AS col0
----
117

query II rowsort
SELECT DISTINCT 38 AS col1, - 19
----
38
-19

query I rowsort
SELECT - 54 + 37 + + 75 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL MAX( ALL + + ( 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL MAX ( ALL + + ( 80 ) )
----
80

query II rowsort
SELECT ALL 21, 56 AS col1
----
21
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT + 77 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-9182
SELECT + 77 / - 48
----
-1

query I rowsort
SELECT + 4 + - 12
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9184
SELECT ALL + COUNT( * ) DIV 31, - 16 AS col0
----
0
-16

skipif mysql # not compatible
query II rowsort label-9184
SELECT ALL + COUNT ( * ) / 31, - 16 AS col0
----
0
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT + 43 DIV - ( + COUNT( * ) ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-9185
SELECT + 43 / - ( + COUNT ( * ) ) col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT ALL CAST( + COALESCE ( - + 6, 30 + + + MIN( 30 ) ) AS SIGNED ) * - + 92 + + 29 AS col0
----
581

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL CAST ( + COALESCE ( - + 6, 30 + + + MIN ( 30 ) ) AS INTEGER ) * - + 92 + + 29 AS col0
----
581

query I rowsort
SELECT + 99 * + 20 + + + ( - 13 ) AS col1
----
1967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT DISTINCT - + COALESCE ( + 18, - + NULLIF ( - 83, - CAST( - 98 AS SIGNED ) ) * - - 73 )
----
-18

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - + COALESCE ( + 18, - + NULLIF ( - 83, - CAST ( - 98 AS INTEGER ) ) * - - 73 )
----
-18

query I rowsort
SELECT ALL + 61 + - + 93 + + - 0 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9190
SELECT DISTINCT 67 + - CAST( + 53 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT 67 + - CAST ( + 53 AS INTEGER ) AS col1
----
14

query I rowsort
SELECT ALL - COALESCE ( - 39, - ( + 51 ), + 55 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT 35 + 49 * + COUNT( * ) + - - 62 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-9192
SELECT 35 + 49 * + COUNT ( * ) + - - 62 AS col2
----
146

query I rowsort
SELECT 6 + 82
----
88

query II rowsort
SELECT DISTINCT 91 + + 51 AS col2, 79 * - 79
----
142
-6241

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT - COUNT( * ) * 98 + + 42 col2, COUNT( * )
----
-56
1

skipif mysql # not compatible
query II rowsort label-9195
SELECT - COUNT ( * ) * 98 + + 42 col2, COUNT ( * )
----
-56
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT ALL COALESCE ( 56, + CAST( NULL AS SIGNED ) * ( - NULLIF ( - + 9, - 27 ) ) ) * 63
----
3528

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL COALESCE ( 56, + CAST ( NULL AS INTEGER ) * ( - NULLIF ( - + 9, - 27 ) ) ) * 63
----
3528

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT DISTINCT 78 + - ( + 80 ), 72 + + 22 - - 2 - - SUM( DISTINCT 26 ) / 49 / - CASE 19 WHEN + - 12 + - - 42 * - 20 + + - NULLIF ( + - 82, + 55 ) THEN 63 WHEN 27 * - 98 - - 14 THEN NULL WHEN 91 * + 23 + - 20 + 49 - - 58 + - 18 + - 65 / 43 THEN 19 END AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9197
SELECT DISTINCT 78 + - ( + 80 ), 72 + + 22 - - 2 - - SUM ( DISTINCT 26 ) / 49 / - CASE 19 WHEN + - 12 + - - 42 * - 20 + + - NULLIF ( + - 82, + 55 ) THEN 63 WHEN 27 * - 98 - - 14 THEN NULL WHEN 91 * + 23 + - 20 + 49 - - 58 + - 18 + - 65 / 43 THEN 19 END AS col0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT ( + 70 ) - - COUNT( * ) * + 23 - + COUNT( * ) col2
----
92

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT ( + 70 ) - - COUNT ( * ) * + 23 - + COUNT ( * ) col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL COUNT( * ) - + CASE + 87 WHEN - 81 THEN NULL WHEN - 5 THEN + - 23 ELSE - COUNT( + 51 ) * + - 96 END
----
-95

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL COUNT ( * ) - + CASE + 87 WHEN - 81 THEN NULL WHEN - 5 THEN + - 23 ELSE - COUNT ( + 51 ) * + - 96 END
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL CAST( - 21 AS SIGNED ) * - NULLIF ( 80, + + 77 * + 1 + + 10 ) AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL CAST ( - 21 AS INTEGER ) * - NULLIF ( 80, + + 77 * + 1 + + 10 ) AS col1
----
1680

query I rowsort
SELECT 66 * - 63
----
-4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL + 25 / + 96 * CASE + 88 WHEN COUNT( * ) THEN 45 ELSE COUNT( DISTINCT + 9 ) / - + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + 25 / + 96 * CASE + 88 WHEN COUNT ( * ) THEN 45 ELSE COUNT ( DISTINCT + 9 ) / - + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT 56 * + 50 * 51
----
142800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL + 52 - + + CASE CAST( NULL AS SIGNED ) WHEN - + 44 * 42 + - 1 THEN + - 65 WHEN + - 84 THEN + + 47 - 33 END + - COUNT( - 19 ) * 71 * + + 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + 52 - + + CASE CAST ( NULL AS INTEGER ) WHEN - + 44 * 42 + - 1 THEN + - 65 WHEN + - 84 THEN + + 47 - 33 END + - COUNT ( - 19 ) * 71 * + + 54 col2
----
NULL

query II rowsort
SELECT ALL ( - 84 ) AS col2, 34 + - 45 AS col1
----
-84
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT + CAST( CASE ( 81 ) WHEN + 71 THEN + 99 WHEN - 82 THEN NULL WHEN - MIN( ALL ( - 53 ) ) THEN NULL ELSE 84 END AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-9206
SELECT + CAST ( CASE ( 81 ) WHEN + 71 THEN + 99 WHEN - 82 THEN NULL WHEN - MIN ( ALL ( - 53 ) ) THEN NULL ELSE 84 END AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - CASE 15 WHEN - ( + + 59 ) THEN NULL WHEN 24 * - COUNT( * ) THEN NULL ELSE - 38 END + - 65
----
-27

skipif mysql # not compatible
query I rowsort label-9207
SELECT - CASE 15 WHEN - ( + + 59 ) THEN NULL WHEN 24 * - COUNT ( * ) THEN NULL ELSE - 38 END + - 65
----
-27

query I rowsort
SELECT + + 73 * 30 * + + 63 AS col0
----
137970

query I rowsort
SELECT - 41 - - 94 * - 60 * - 15
----
84559

query I rowsort
SELECT - - 46 * + 92 AS col0
----
4232

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT - 55 - ( - 84 ) DIV - 84 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 55 - ( - 84 ) / - 84 AS col0
----
-56

query I rowsort
SELECT DISTINCT + - 26 * + + 61 * 85 + + + 99
----
-134711

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT ALL 64 * 16 + + 13 + 15 DIV - - 35 * - - 66 + - 80 * 93
----
-6403

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL 64 * 16 + + 13 + 15 / - - 35 * - - 66 + - 80 * 93
----
-6403

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL + 71 * - 58 + + - COUNT( * ) AS col2
----
-4119

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + 71 * - 58 + + - COUNT ( * ) AS col2
----
-4119

query I rowsort
SELECT 27 * 47 + 43
----
1312

query I rowsort
SELECT - 9 * + - 78 - - 27 * - - 32
----
1566

query I rowsort
SELECT ALL + + 56 * + 87 + + 88
----
4960

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL - 19 * - 30 / CASE - - 99 WHEN 95 * COUNT( * ) + + COUNT( * ) + - 60 * + 63 + 54 THEN - 81 / - - 85 ELSE NULL END + - 26 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL - 19 * - 30 / CASE - - 99 WHEN 95 * COUNT ( * ) + + COUNT ( * ) + - 60 * + 63 + 54 THEN - 81 / - - 85 ELSE NULL END + - 26 + - 10
----
NULL

query I rowsort
SELECT - 44 * - 62 AS col1
----
2728

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT ALL - 91 DIV NULLIF ( 14, - - CASE - 44 WHEN - ( - 98 ) THEN - 87 END )
----
-6

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - 91 / NULLIF ( 14, - - CASE - 44 WHEN - ( - 98 ) THEN - 87 END )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT + 61 DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT + 61 / + 65 AS col1
----
0

query I rowsort
SELECT ALL ( 82 ) * + + 40 * 63 + 30
----
206670

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT ALL - 25 * 21 DIV 37 + + 12 DIV + 24
----
-14

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - 25 * 21 / 37 + + 12 / + 24
----
-14

query I rowsort
SELECT + 14 * + 72 AS col1
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL 20 * + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL 20 * + COUNT ( * ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9226
SELECT CASE - ( 28 ) WHEN AVG ( - - COALESCE ( ( - 73 ), - CAST( + 26 AS SIGNED ) ) ) THEN - + 63 + - NULLIF ( 32, - COUNT( * ) + - + 25 * - AVG ( + 15 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT CASE - ( 28 ) WHEN AVG ( - - COALESCE ( ( - 73 ), - CAST ( + 26 AS INTEGER ) ) ) THEN - + 63 + - NULLIF ( 32, - COUNT ( * ) + - + 25 * - AVG ( + 15 ) ) END
----
NULL

query I rowsort
SELECT - 2 + 14 + 60 * + + 56 AS col0
----
3372

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT 92 * 17 * - 69 + + - 16 * 17 * - 32 + - COUNT( * )
----
-99213

skipif mysql # not compatible
query I rowsort label-9228
SELECT 92 * 17 * - 69 + + - 16 * 17 * - 32 + - COUNT ( * )
----
-99213

query I rowsort
SELECT + 95 - - - ( - 88 ) * + 22 * - 65 + - ( - + COALESCE ( + + 87, - + 55, - 58 ) )
----
-125658

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + MAX( - + NULLIF ( + 23, - 27 + 49 * + 66 ) ) * 36 col0
----
-828

skipif mysql # not compatible
query I rowsort label-9230
SELECT + MAX ( - + NULLIF ( + 23, - 27 + 49 * + 66 ) ) * 36 col0
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - 51 * + - COALESCE ( - ( - COUNT( * ) ), 66 + - + 58, + 0 ) + - - 6 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9231
SELECT - 51 * + - COALESCE ( - ( - COUNT ( * ) ), 66 + - + 58, + 0 ) + - - 6 AS col1
----
57

query II rowsort
SELECT ALL 39 AS col0, - ( + 94 )
----
39
-94

query I rowsort
SELECT + 48 + 50
----
98

query I rowsort
SELECT + ( 95 ) + 31 * - 23 AS col2
----
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT + COUNT( * ) - + - 52
----
53

skipif mysql # not compatible
query I rowsort label-9235
SELECT + COUNT ( * ) - + - 52
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT + ( + 22 ) + 92 + CAST( - 33 AS SIGNED ) * - 15 AS col0
----
609

skipif mysql # not compatible
query I rowsort label-9236
SELECT + ( + 22 ) + 92 + CAST ( - 33 AS INTEGER ) * - 15 AS col0
----
609

query I rowsort
SELECT - 59 + ( - + 53 )
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9238
SELECT ALL 29 * CAST( + - 47 AS SIGNED ) AS col2, - 93 * + 13
----
-1363
-1209

skipif mysql # not compatible
query II rowsort label-9238
SELECT ALL 29 * CAST ( + - 47 AS INTEGER ) AS col2, - 93 * + 13
----
-1363
-1209

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9239
SELECT + 98 DIV 35 * - + COUNT( * ), + 51 * + ( MIN( - ( + 8 ) ) ) AS col0
----
-2
-408

skipif mysql # not compatible
query II rowsort label-9239
SELECT + 98 / 35 * - + COUNT ( * ), + 51 * + ( MIN ( - ( + 8 ) ) ) AS col0
----
-2
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - SUM( - 25 ) + 29
----
54

skipif mysql # not compatible
query I rowsort label-9240
SELECT - SUM ( - 25 ) + 29
----
54

query I rowsort
SELECT - 86 + + 65
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT + - 91 + 1 - - + 45 * COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-9242
SELECT + - 91 + 1 - - + 45 * COUNT ( * )
----
-45

query I rowsort
SELECT ALL - 86 * + 25
----
-2150

query I rowsort
SELECT + + 16 + - 53 * - 87 * - 64
----
-295088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT DISTINCT - 47 + - ( - + 22 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT - 47 + - ( - + 22 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT - - COUNT( * ) + + 16 * - 45 * + - 20
----
14401

skipif mysql # not compatible
query I rowsort label-9246
SELECT - - COUNT ( * ) + + 16 * - 45 * + - 20
----
14401

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT - COUNT( DISTINCT + + 96 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT - COUNT ( DISTINCT + + 96 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT DISTINCT - + 28 + + + 41 + + ( + COUNT( * ) ) DIV - - 8 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - + 28 + + + 41 + + ( + COUNT ( * ) ) / - - 8 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT - COUNT( * ) + + + 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT - COUNT ( * ) + + + 52 AS col2
----
51

query I rowsort
SELECT + 14 + + 8
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT + MIN( - COALESCE ( - - 18, + - 61 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9251
SELECT + MIN ( - COALESCE ( - - 18, + - 61 ) ) AS col1
----
-18

query I rowsort
SELECT - + COALESCE ( + 95, - 84 - - + 47 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT ALL - + 78 DIV + 26 + - ( + COUNT( * ) ) + COUNT( * ) + - 2 - - - 44 * + + 10 * + 5 * - 74 + - 23 AS col0
----
162772

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL - + 78 / + 26 + - ( + COUNT ( * ) ) + COUNT ( * ) + - 2 - - - 44 * + + 10 * + 5 * - 74 + - 23 AS col0
----
162772

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9254
SELECT + + 32, 97 * - + 2 * 65 * CAST( NULL AS SIGNED ) AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-9254
SELECT + + 32, 97 * - + 2 * 65 * CAST ( NULL AS INTEGER ) AS col0
----
32
NULL

query I rowsort
SELECT ALL + - ( + 72 ) * - 72 - - + 34
----
5218

query I rowsort
SELECT DISTINCT - 51 * - 47 AS col0
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT + COUNT( ( + 72 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + COUNT ( ( + 72 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT DISTINCT + CASE 26 WHEN + + 97 THEN - 83 END, 6 * - COUNT( * ) / - + CASE - + 57 WHEN + 13 + - 59 THEN 58 END + - COUNT( DISTINCT - + 52 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9258
SELECT DISTINCT + CASE 26 WHEN + + 97 THEN - 83 END, 6 * - COUNT ( * ) / - + CASE - + 57 WHEN + 13 + - 59 THEN 58 END + - COUNT ( DISTINCT - + 52 ) AS col0
----
NULL
NULL

query I rowsort
SELECT - 31 + - 16 AS col1
----
-47

query I rowsort
SELECT DISTINCT + CASE 73 WHEN - 75 THEN NULL WHEN - 77 * - 31 THEN + 40 - + 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT ALL + ( - 91 ) col0, + 18 + COUNT( * ) - 12 * - 66 AS col0
----
-91
811

skipif mysql # not compatible
query II rowsort label-9261
SELECT ALL + ( - 91 ) col0, + 18 + COUNT ( * ) - 12 * - 66 AS col0
----
-91
811

query I rowsort
SELECT ( + - ( - + 96 ) )
----
96

query I rowsort
SELECT + 60 + - ( - 60 )
----
120

query I rowsort
SELECT ALL 66 * 31
----
2046

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT - 72 + + 59 + + - 67 - + COALESCE ( 95, - + 11 + 60 ) DIV 62 DIV 52 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9265
SELECT - 72 + + 59 + + - 67 - + COALESCE ( 95, - + 11 + 60 ) / 62 / 52 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9266
SELECT ALL + NULLIF ( + - CAST( - + CAST( - - 87 AS SIGNED ) AS SIGNED ), + + 80 ) * - COUNT( * ) + 78 - MIN( - 23 ) * - - 42 AS col0, 61 * + 6 AS col2, + - 8 - - COUNT( * ) + 58 + + 5 + - 7 * - 13 AS col2
----
957
366
147

skipif mysql # not compatible
query III rowsort label-9266
SELECT ALL + NULLIF ( + - CAST ( - + CAST ( - - 87 AS INTEGER ) AS INTEGER ), + + 80 ) * - COUNT ( * ) + 78 - MIN ( - 23 ) * - - 42 AS col0, 61 * + 6 AS col2, + - 8 - - COUNT ( * ) + 58 + + 5 + - 7 * - 13 AS col2
----
957
366
147

query I rowsort
SELECT DISTINCT 83 * + ( - 23 ) AS col2
----
-1909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9268
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + ( - CASE 63 WHEN - + 37 THEN - - 5 WHEN - CASE CAST( + 71 AS SIGNED ) WHEN + 53 THEN + - 10 ELSE NULL END + + COUNT( * ) / - 58 * 9 * - 97 THEN + AVG ( 31 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + ( - CASE 63 WHEN - + 37 THEN - - 5 WHEN - CASE CAST ( + 71 AS INTEGER ) WHEN + 53 THEN + - 10 ELSE NULL END + + COUNT ( * ) / - 58 * 9 * - 97 THEN + AVG ( 31 ) END )
----
NULL

query I rowsort
SELECT ALL 60 * - + 1
----
-60

query I rowsort
SELECT + 24 * + + 26 AS col0
----
624

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT ALL - COUNT( * ) * - 56 AS col0, - 2
----
56
-2

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL - COUNT ( * ) * - 56 AS col0, - 2
----
56
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT + CAST( + - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + CAST ( + - 49 AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT - 7 * - - COUNT( + NULLIF ( 69, 21 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - 7 * - - COUNT ( + NULLIF ( 69, 21 ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT COUNT( + - 35 ) + - SUM( 78 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9274
SELECT COUNT ( + - 35 ) + - SUM ( 78 ) AS col0
----
-77

query I rowsort
SELECT - 87 * 64 AS col2
----
-5568

query I rowsort
SELECT ALL - 1 + + 87 AS col2
----
86

query II rowsort
SELECT + ( + 87 ), 30 AS col1
----
87
30

query II rowsort
SELECT DISTINCT + 98 + + 78 AS col2, - 85 + + - 96 AS col0
----
176
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL CASE - + 69 WHEN - - COUNT( * ) THEN - 62 * COUNT( * ) END * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL CASE - + 69 WHEN - - COUNT ( * ) THEN - 62 * COUNT ( * ) END * + 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9280
SELECT DISTINCT 71 + CAST( NULL AS SIGNED ) AS col1, + 69 + + 49 * 14
----
NULL
755

skipif mysql # not compatible
query II rowsort label-9280
SELECT DISTINCT 71 + CAST ( NULL AS INTEGER ) AS col1, + 69 + + 49 * 14
----
NULL
755

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9281
SELECT ALL COALESCE ( - - 20, + + 70, + + MAX( ALL + - 24 ) DIV + 22 + 8 DIV + SUM( + 44 ) ) * - - 21 AS col1, 97 - 69 AS col1
----
420
28

skipif mysql # not compatible
query II rowsort label-9281
SELECT ALL COALESCE ( - - 20, + + 70, + + MAX ( ALL + - 24 ) / + 22 + 8 / + SUM ( + 44 ) ) * - - 21 AS col1, 97 - 69 AS col1
----
420
28

query I rowsort
SELECT NULLIF ( 56, - + 24 ) AS col0
----
56

query I rowsort
SELECT DISTINCT 47 * + 55
----
2585

query II rowsort
SELECT DISTINCT + 83 + 96 AS col0, 97 * - 7 + - 91 AS col0
----
179
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL + COUNT( * ) + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + COUNT ( * ) + - 10
----
-9

query I rowsort
SELECT ( 8 ) * - + 62
----
-496

query I rowsort
SELECT + 39 - 16 AS col2
----
23

query I rowsort
SELECT ALL + 39 * 29
----
1131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9289
SELECT DISTINCT + 80 * - NULLIF ( 55, + - 69 / 73 ) * + + COUNT( * ) * CAST( + 98 AS SIGNED ) + 72 col2
----
-431128

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + 80 * - NULLIF ( 55, + - 69 / 73 ) * + + COUNT ( * ) * CAST ( + 98 AS INTEGER ) + 72 col2
----
-431128

query I rowsort
SELECT - 62 * - + 83
----
5146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9291
SELECT - 19 * - ( 83 ) + + NULLIF ( - 45, - + 51 * - - COALESCE ( ( - COUNT( * ) ), - COUNT( * ) ) * - 43 ) + + 52 + 29 * - - 42 + + COALESCE ( - 20, + 39, + - 44 + + 89 ) DIV + COUNT( * ) AS col2
----
2782

skipif mysql # not compatible
query I rowsort label-9291
SELECT - 19 * - ( 83 ) + + NULLIF ( - 45, - + 51 * - - COALESCE ( ( - COUNT ( * ) ), - COUNT ( * ) ) * - 43 ) + + 52 + 29 * - - 42 + + COALESCE ( - 20, + 39, + - 44 + + 89 ) / + COUNT ( * ) AS col2
----
2782

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT 44 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT 44 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL - COUNT( + 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - COUNT ( + 73 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 38 * + 4 * - 48
----
7296

query I rowsort
SELECT DISTINCT - ( 78 ) AS col0
----
-78

query I rowsort
SELECT ALL - 29 * - + 29 AS col0
----
841

query I rowsort
SELECT ALL 54 * - 49 AS col1
----
-2646

query II rowsort
SELECT DISTINCT - NULLIF ( - + 28, + 90 ) AS col1, 32 - + + 62 * - ( 28 ) AS col2
----
28
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT COUNT( * ) + + 61
----
62

skipif mysql # not compatible
query I rowsort label-9299
SELECT COUNT ( * ) + + 61
----
62

query II rowsort
SELECT + 41 AS col1, - 71 AS col2
----
41
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT 49 + - SUM( 45 ) + + 41 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9301
SELECT 49 + - SUM ( 45 ) + + 41 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT SUM( ALL 7 ) * - + 62 + COUNT( * ) * COUNT( * ) AS col0
----
-433

skipif mysql # not compatible
query I rowsort label-9302
SELECT SUM ( ALL 7 ) * - + 62 + COUNT ( * ) * COUNT ( * ) AS col0
----
-433

query I rowsort
SELECT 94 * - 62 * + 91
----
-530348

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT ALL + 94 + - ( + 92 ) DIV 6
----
79

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + 94 + - ( + 92 ) / 6
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT 65 + + 51 * + - 76 / - CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT 65 + + 51 * + - 76 / - CAST ( NULL AS INTEGER ) * + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9306
SELECT 50 * + + 74 + - 99 * - COUNT( * ) + - 60 + - 78 * + - COALESCE ( - COUNT( * ), - CAST( - - 89 AS SIGNED ) + - 88 ) * + + 30 * + COUNT( * ), + COUNT( * ) + COUNT( * ) AS col1
----
1399
2

skipif mysql # not compatible
query II rowsort label-9306
SELECT 50 * + + 74 + - 99 * - COUNT ( * ) + - 60 + - 78 * + - COALESCE ( - COUNT ( * ), - CAST ( - - 89 AS INTEGER ) + - 88 ) * + + 30 * + COUNT ( * ), + COUNT ( * ) + COUNT ( * ) AS col1
----
1399
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT ALL + + ( COUNT( * ) ) DIV 74 + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + + ( COUNT ( * ) ) / 74 + 93 AS col1
----
93

query I rowsort
SELECT ALL 51 * 51
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - 21 + + ( - NULLIF ( 76, - ( NULLIF ( 70, - 99 ) ) + + + CASE 85 WHEN - MAX( - 5 ) * 16 + + 26 + - ( - 29 ) THEN NULL WHEN 95 THEN - - 45 ELSE - COALESCE ( - 75, - 51 * + + COALESCE ( - ( - 80 ), - 33, + 59 ) - + COALESCE ( 44, 37 * 88 + 75, 33, - 10 + - 45 ) + 71 * 46 ) + + 38 END + 83 ) ) + - 41 * - 88
----
3511

skipif mysql # not compatible
query I rowsort label-9309
SELECT - 21 + + ( - NULLIF ( 76, - ( NULLIF ( 70, - 99 ) ) + + + CASE 85 WHEN - MAX ( - 5 ) * 16 + + 26 + - ( - 29 ) THEN NULL WHEN 95 THEN - - 45 ELSE - COALESCE ( - 75, - 51 * + + COALESCE ( - ( - 80 ), - 33, + 59 ) - + COALESCE ( 44, 37 * 88 + 75, 33, - 10 + - 45 ) + 71 * 46 ) + + 38 END + 83 ) ) + - 41 * - 88
----
3511

onlyif mysql # aggregate syntax: 
query II rowsort label-9310
SELECT 59 + 53 + - 77 AS col0, + NULLIF ( - 44, + + ( 59 ) * COUNT( * ) + + + 24 + - MAX( + 6 ) - 93 * + - 74 + - - 61 ) AS col0
----
35
-44

skipif mysql # not compatible
query II rowsort label-9310
SELECT 59 + 53 + - 77 AS col0, + NULLIF ( - 44, + + ( 59 ) * COUNT ( * ) + + + 24 + - MAX ( + 6 ) - 93 * + - 74 + - - 61 ) AS col0
----
35
-44

query I rowsort
SELECT 46 + + 18 + - - 6
----
70

query I rowsort
SELECT + 43 + + 8 AS col2
----
51

query I rowsort
SELECT ALL - - 7 * - 21 AS col0
----
-147

query I rowsort
SELECT + 70 + + 73 AS col2
----
143

query I rowsort
SELECT ALL - 53 - - ( - - 43 )
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9316
SELECT ALL - - CAST( NULL AS DECIMAL ) * - NULLIF ( + 98, - 36 + + 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL - - CAST ( NULL AS REAL ) * - NULLIF ( + 98, - 36 + + 38 ) AS col2
----
NULL

query I rowsort
SELECT 15 + + 8 + - + 1 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - COUNT( * ) + - - 14
----
13

skipif mysql # not compatible
query I rowsort label-9318
SELECT - COUNT ( * ) + - - 14
----
13

query I rowsort
SELECT ALL + - 2 - - - 81 * - 81
----
6559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9320
SELECT 47 AS col2, + NULLIF ( CAST( NULL AS SIGNED ), + 49 * + 31 + + - SUM( + 33 ) + + 40 + + COUNT( * ) )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-9320
SELECT 47 AS col2, + NULLIF ( CAST ( NULL AS INTEGER ), + 49 * + 31 + + - SUM ( + 33 ) + + 40 + + COUNT ( * ) )
----
47
NULL

query I rowsort
SELECT 7 + 6 AS col0
----
13

query I rowsort
SELECT ALL 90 - 26 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT + 59 * 55 - - CAST( NULL AS SIGNED ) * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT + 59 * 55 - - CAST ( NULL AS INTEGER ) * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT COALESCE ( - 89, COUNT( DISTINCT - 3 ) * + 88 ) + - 88 col2
----
-177

skipif mysql # not compatible
query I rowsort label-9324
SELECT COALESCE ( - 89, COUNT ( DISTINCT - 3 ) * + 88 ) + - 88 col2
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT ALL 5 col2, COUNT( * ) AS col1
----
5
1

skipif mysql # not compatible
query II rowsort label-9325
SELECT ALL 5 col2, COUNT ( * ) AS col1
----
5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT COUNT( * ) * + 97 AS col2, 67
----
97
67

skipif mysql # not compatible
query II rowsort label-9326
SELECT COUNT ( * ) * + 97 AS col2, 67
----
97
67

query I rowsort
SELECT ALL ( - 47 ) * - - 57
----
-2679

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9328
SELECT ALL - 99, CAST( NULL AS SIGNED ) + + COALESCE ( - 63, + + 24 ) * + 27 * + 3 col2
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-9328
SELECT ALL - 99, CAST ( NULL AS INTEGER ) + + COALESCE ( - 63, + + 24 ) * + 27 * + 3 col2
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT NULLIF ( 91, + + COUNT( * ) * 25 * 82 - 13 ) * 53 + - 6 + - 12 + + COUNT( * ) col0
----
4806

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT NULLIF ( 91, + + COUNT ( * ) * 25 * 82 - 13 ) * 53 + - 6 + - 12 + + COUNT ( * ) col0
----
4806

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + MIN( - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-9330
SELECT + MIN ( - 28 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT + COUNT( * ) DIV - + 12 + 65 DIV + 27 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9331
SELECT + COUNT ( * ) / - + 12 + 65 / + 27 AS col1
----
2

query I rowsort
SELECT ALL ( 73 ) * 29 * 79
----
167243

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT 60 + + 86 + 30 * COUNT( * ) + - - 46 - + + COALESCE ( - 67, - 7, + 76 + + + 21 + 98 * 70, - - COUNT( * ) )
----
289

skipif mysql # not compatible
query I rowsort label-9333
SELECT 60 + + 86 + 30 * COUNT ( * ) + - - 46 - + + COALESCE ( - 67, - 7, + 76 + + + 21 + 98 * 70, - - COUNT ( * ) )
----
289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9334
SELECT + NULLIF ( 47, + - CAST( - CAST( - ( - CASE - 63 WHEN + + 26 THEN + 57 WHEN 42 * - 48 + + CASE 26 WHEN + + 49 * + COUNT( * ) + - CASE - 56 WHEN + - 46 * + NULLIF ( 65, - 24 ) + 50 + + 15 THEN COUNT( * ) WHEN - 45 THEN NULL WHEN - - 11 + - + 10 + - + 74 DIV 44 * + ( + - 24 ) + + COUNT( * ) THEN 86 + SUM( DISTINCT - 29 ) END THEN 61 ELSE COALESCE ( 16, - 97 * + 34 ) + 1 * CAST( NULL AS SIGNED ) END THEN NULL WHEN + ( 30 ) * ( COUNT( * ) ) + COALESCE ( - 30 + 46, 43, - 33 ) THEN NULL END ) AS DECIMAL ) AS SIGNED ) * 56 ) DIV ( 47 * 15 + 43 )
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT + NULLIF ( 47, + - CAST ( - CAST ( - ( - CASE - 63 WHEN + + 26 THEN + 57 WHEN 42 * - 48 + + CASE 26 WHEN + + 49 * + COUNT ( * ) + - CASE - 56 WHEN + - 46 * + NULLIF ( 65, - 24 ) + 50 + + 15 THEN COUNT ( * ) WHEN - 45 THEN NULL WHEN - - 11 + - + 10 + - + 74 / 44 * + ( + - 24 ) + + COUNT ( * ) THEN 86 + SUM ( DISTINCT - 29 ) END THEN 61 ELSE COALESCE ( 16, - 97 * + 34 ) + 1 * CAST ( NULL AS INTEGER ) END THEN NULL WHEN + ( 30 ) * ( COUNT ( * ) ) + COALESCE ( - 30 + 46, 43, - 33 ) THEN NULL END ) AS REAL ) AS INTEGER ) * 56 ) / ( 47 * 15 + 43 )
----
0

query I rowsort
SELECT ALL 64 * + 38 + - - NULLIF ( - NULLIF ( - 38, 34 + - + 83 ), + 87 ) + + 11 AS col1
----
2481

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT - ( - - COUNT( * ) ) + - 69 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9336
SELECT - ( - - COUNT ( * ) ) + - 69 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT COUNT( DISTINCT - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-9337
SELECT COUNT ( DISTINCT - 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL NULLIF ( CASE - 41 WHEN 73 THEN NULL WHEN + 79 - + SUM( + + 40 ) + 60 * - 60 THEN + 30 ELSE NULL END, MIN( DISTINCT 23 ) ) * + 95 + + 96 / - 25 + - - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL NULLIF ( CASE - 41 WHEN 73 THEN NULL WHEN + 79 - + SUM ( + + 40 ) + 60 * - 60 THEN + 30 ELSE NULL END, MIN ( DISTINCT 23 ) ) * + 95 + + 96 / - 25 + - - 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT COUNT( DISTINCT - 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9339
SELECT COUNT ( DISTINCT - 4 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9340
SELECT + COALESCE ( + 40, - - 63 DIV + CAST( NULL AS SIGNED ) + - 76 )
----
40

skipif mysql # not compatible
query I rowsort label-9340
SELECT + COALESCE ( + 40, - - 63 / + CAST ( NULL AS INTEGER ) + - 76 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT 76 * - + 58 + + COUNT( - 95 ) * 89 + + - 4 AS col2
----
-4323

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT 76 * - + 58 + + COUNT ( - 95 ) * 89 + + - 4 AS col2
----
-4323

query I rowsort
SELECT DISTINCT + COALESCE ( - 65, 73 ) * + 13 + 31 + + - 62 + - 68
----
-944

query I rowsort
SELECT DISTINCT ( - - 41 ) * ( - - 49 ) AS col2
----
2009

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9344
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 35 * - CAST( NULL AS SIGNED ) + - - CAST( NULL AS DECIMAL ) + - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 35 * - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS REAL ) + - 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9345
SELECT - - 63 / - - NULLIF ( CAST( NULL AS DECIMAL ), - COUNT( + + 21 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT - - 63 / - - NULLIF ( CAST ( NULL AS REAL ), - COUNT ( + + 21 ) )
----
NULL

query I rowsort
SELECT ALL + 57 - - - 81
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9347
SELECT - CASE + - COUNT( * ) WHEN + 93 - 4 + - ( - - COALESCE ( CAST( 49 AS DECIMAL ), 25 * + + 61 * CAST( + 69 AS SIGNED ), + MAX( - 14 ) / - 96 * - + CASE + 62 WHEN - 85 THEN - 39 END * - 59 ) ) - + 79 / - MAX( 84 ) - - COUNT( * ) * - ( 60 ) THEN NULL WHEN COUNT( + + 6 ) + 91 THEN NULL ELSE - 42 END * - 5 * 57 AS col1
----
-11970

skipif mysql # not compatible
query I rowsort label-9347
SELECT - CASE + - COUNT ( * ) WHEN + 93 - 4 + - ( - - COALESCE ( CAST ( 49 AS REAL ), 25 * + + 61 * CAST ( + 69 AS INTEGER ), + MAX ( - 14 ) / - 96 * - + CASE + 62 WHEN - 85 THEN - 39 END * - 59 ) ) - + 79 / - MAX ( 84 ) - - COUNT ( * ) * - ( 60 ) THEN NULL WHEN COUNT ( + + 6 ) + 91 THEN NULL ELSE - 42 END * - 5 * 57 AS col1
----
-11970

query I rowsort
SELECT + ( - - 65 ) col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT - NULLIF ( - 60, + - MAX( ALL 92 ) * - 0 + - 11 ) DIV - - 8
----
7

skipif mysql # not compatible
query I rowsort label-9349
SELECT - NULLIF ( - 60, + - MAX ( ALL 92 ) * - 0 + - 11 ) / - - 8
----
7

query II rowsort
SELECT ALL 93 AS col2, - 5 + + + 34 AS col1
----
93
29

query I rowsort
SELECT DISTINCT + 75 * 64
----
4800

query I rowsort
SELECT ALL + + 50 * - 67 AS col0
----
-3350

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL - 72 * - ( + 99 ) + + CASE 97 WHEN 82 / 21 - NULLIF ( + + 55, + + ( - + 41 ) * - CASE + 83 WHEN 42 + + 30 THEN NULL WHEN + + 62 + - 46 THEN + COUNT( * ) END * - 32 + + + 23 ) * + - 8 + + 79 - + 70 * + COUNT( * ) * + 42 THEN + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - 72 * - ( + 99 ) + + CASE 97 WHEN 82 / 21 - NULLIF ( + + 55, + + ( - + 41 ) * - CASE + 83 WHEN 42 + + 30 THEN NULL WHEN + + 62 + - 46 THEN + COUNT ( * ) END * - 32 + + + 23 ) * + - 8 + + 79 - + 70 * + COUNT ( * ) * + 42 THEN + 33 END
----
NULL

query I rowsort
SELECT - - 67 + + + 55 * - 68 AS col1
----
-3673

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT 86, - COUNT( * ) AS col0
----
86
-1

skipif mysql # not compatible
query II rowsort label-9355
SELECT 86, - COUNT ( * ) AS col0
----
86
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9356
SELECT - - CAST( + 35 AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) + + 64 * + ( COUNT( * ) ) AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9356
SELECT - - CAST ( + 35 AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) + + 64 * + ( COUNT ( * ) ) AS col0
----
35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT ALL ( 21 ), COUNT( DISTINCT 9 ) AS col2
----
21
1

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL ( 21 ), COUNT ( DISTINCT 9 ) AS col2
----
21
1

query I rowsort
SELECT DISTINCT COALESCE ( - - 22, 28, 71 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT 2 + + + 23 + - + 99 + + 50 * 41 * + NULLIF ( + - 18, + - 47 ) * - 34 + COUNT( * ) AS col1
----
1254527

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT 2 + + + 23 + - + 99 + + 50 * 41 * + NULLIF ( + - 18, + - 47 ) * - 34 + COUNT ( * ) AS col1
----
1254527

query II rowsort
SELECT ALL ( + 87 ), 15 AS col2
----
87
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT ALL 91 DIV - - 85 + 65 DIV 80 + 10 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL 91 / - - 85 + 65 / 80 + 10 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT CAST( - + ( - 85 ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-9362
SELECT CAST ( - + ( - 85 ) AS INTEGER )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT - SUM( + + 70 ) DIV 23 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9363
SELECT - SUM ( + + 70 ) / 23 AS col2
----
-3

query I rowsort
SELECT + ( + + 16 ) * 90
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT ALL 35 / CAST( NULL AS SIGNED ) * - - 40 + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL 35 / CAST ( NULL AS INTEGER ) * - - 40 + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT CASE 93 WHEN + + ( + 88 ) + 6 + - + COUNT( * ) * + 8 THEN NULL WHEN + 6 THEN NULL ELSE COUNT( * ) * - COUNT( * ) END * + MIN( DISTINCT - 74 ) - + + NULLIF ( 81, 25 )
----
-7

skipif mysql # not compatible
query I rowsort label-9366
SELECT CASE 93 WHEN + + ( + 88 ) + 6 + - + COUNT ( * ) * + 8 THEN NULL WHEN + 6 THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) END * + MIN ( DISTINCT - 74 ) - + + NULLIF ( 81, 25 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL COUNT( * ) * 58 + 48 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL COUNT ( * ) * 58 + 48 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + ( - - COUNT( * ) ) * + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9368
SELECT + ( - - COUNT ( * ) ) * + 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + COUNT( * ) * + + MIN( 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9369
SELECT + COUNT ( * ) * + + MIN ( 35 ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL - CASE - - 10 WHEN - ( - 40 ) THEN NULL WHEN - 90 * - 78 + + COUNT( ALL - 16 ) THEN - 43 * 38 + 22 ELSE ( - CASE - + AVG ( - - 3 ) WHEN + 6 * + NULLIF ( - - 74, CAST( NULL AS SIGNED ) ) THEN NULL WHEN + - 17 * + + 54 * - 83 THEN 25 END ) END * + 77 + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - CASE - - 10 WHEN - ( - 40 ) THEN NULL WHEN - 90 * - 78 + + COUNT ( ALL - 16 ) THEN - 43 * 38 + 22 ELSE ( - CASE - + AVG ( - - 3 ) WHEN + 6 * + NULLIF ( - - 74, CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + - 17 * + + 54 * - 83 THEN 25 END ) END * + 77 + - 53 AS col2
----
NULL

query I rowsort
SELECT + 42 + + 93 AS col1
----
135

query I rowsort
SELECT + 12 * + + 90 AS col0
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT + + 9 * 47 AS col2, - 96 - + COUNT( * )
----
423
-97

skipif mysql # not compatible
query II rowsort label-9373
SELECT + + 9 * 47 AS col2, - 96 - + COUNT ( * )
----
423
-97

query I rowsort
SELECT ALL + + 1 * - - 56 - + 1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT + COALESCE ( 64, - - 63 * - + ( - COUNT( * ) ), + CAST( + 91 AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-9375
SELECT + COALESCE ( 64, - - 63 * - + ( - COUNT ( * ) ), + CAST ( + 91 AS INTEGER ) )
----
64

query I rowsort
SELECT - 6 * + 2 + - 0 + - 0 AS col1
----
-12

query I rowsort
SELECT DISTINCT + + 90 * + ( + 71 ) + - - 22 AS col0
----
6412

query I rowsort
SELECT ALL + 62 * - ( + 96 )
----
-5952

query I rowsort
SELECT + + 57 + + + ( + 54 )
----
111

query I rowsort
SELECT - 14 * + 34 * - + NULLIF ( 45, - + NULLIF ( + - 66, 33 ) * 93 ) col2
----
21420

query I rowsort
SELECT DISTINCT 84 * + 59 AS col0
----
4956

query I rowsort
SELECT DISTINCT CASE + 45 WHEN + 29 THEN NULL ELSE + + 50 + 6 END AS col0
----
56

query II rowsort
SELECT + 81 * - - 76 col0, - 20 AS col1
----
6156
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT ALL - 97 DIV - 87 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - 97 / - 87 AS col1
----
1

query I rowsort
SELECT - 32 + - 37 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9386
SELECT ALL 96 + - 2 - 69 * - ( COUNT( * ) ) + + 92 AS col0, - 72
----
255
-72

skipif mysql # not compatible
query II rowsort label-9386
SELECT ALL 96 + - 2 - 69 * - ( COUNT ( * ) ) + + 92 AS col0, - 72
----
255
-72

query I rowsort
SELECT 40 + 59
----
99

query I rowsort
SELECT 43 * - ( + - 76 ) AS col1
----
3268

query I rowsort
SELECT 79 + - 58 col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9390
SELECT 85 DIV + + 98 * + NULLIF ( - 72, - - NULLIF ( + - ( + + 41 ), - 14 ) * - - SUM( DISTINCT + + 39 ) * - COUNT( * ) + - 48 + - 52 + + 66 + + 59 - 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT 85 / + + 98 * + NULLIF ( - 72, - - NULLIF ( + - ( + + 41 ), - 14 ) * - - SUM ( DISTINCT + + 39 ) * - COUNT ( * ) + - 48 + - 52 + + 66 + + 59 - 58 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT DISTINCT - 62 + - + COUNT( * ) - + - 11 * - 10 * + CAST( NULL AS SIGNED ) * - 55 * + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT - 62 + - + COUNT ( * ) - + - 11 * - 10 * + CAST ( NULL AS INTEGER ) * - 55 * + + 9 AS col1
----
NULL

query I rowsort
SELECT ALL + 7 * + 73
----
511

query II rowsort
SELECT - 80 AS col1, 20
----
-80
20

query II rowsort
SELECT ALL - 40 AS col2, 26 + - 17 col1
----
-40
9

query I rowsort
SELECT DISTINCT - 62 + - 77 col2
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT + 93 DIV + + COUNT( + 26 ) + + 63 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-9396
SELECT + 93 / + + COUNT ( + 26 ) + + 63 AS col0
----
156

query I rowsort
SELECT DISTINCT COALESCE ( - 91, + 93 ) + 77
----
-14

query II rowsort
SELECT + 82 AS col2, 25 + - + 70
----
82
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT DISTINCT - 90 - + - 50 * - - COUNT( * ) * + ( COALESCE ( + 95, + ( - 49 ) DIV + MAX( + 44 ) * + 78 ) )
----
4660

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - 90 - + - 50 * - - COUNT ( * ) * + ( COALESCE ( + 95, + ( - 49 ) / + MAX ( + 44 ) * + 78 ) )
----
4660

query II rowsort
SELECT + 32 AS col2, 17
----
32
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - 71 * - 96 + COUNT( * ) - + 44 * + - ( 43 ) AS col2
----
8709

skipif mysql # not compatible
query I rowsort label-9401
SELECT - 71 * - 96 + COUNT ( * ) - + 44 * + - ( 43 ) AS col2
----
8709

query II rowsort
SELECT ALL + ( + 92 ) - - - 49 AS col1, 18 AS col1
----
43
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9403
SELECT 75 DIV - + CASE + CAST( NULL AS SIGNED ) WHEN ( 47 ) + 40 + + 47 - + 77 THEN NULL WHEN + 95 * - 66 * 87 * + + 21 DIV - + NULLIF ( + COUNT( * ), + - 31 ) * - 56 + + COUNT( * ) THEN NULL WHEN + 94 * - 85 THEN + - NULLIF ( - 81, + - 10 ) ELSE + 40 * - ( - - 74 ) * + - 5 + - COUNT( * ) * 91 + 55 END col2
----
0

skipif mysql # not compatible
query I rowsort label-9403
SELECT 75 / - + CASE + CAST ( NULL AS INTEGER ) WHEN ( 47 ) + 40 + + 47 - + 77 THEN NULL WHEN + 95 * - 66 * 87 * + + 21 / - + NULLIF ( + COUNT ( * ), + - 31 ) * - 56 + + COUNT ( * ) THEN NULL WHEN + 94 * - 85 THEN + - NULLIF ( - 81, + - 10 ) ELSE + 40 * - ( - - 74 ) * + - 5 + - COUNT ( * ) * 91 + 55 END col2
----
0

query I rowsort
SELECT ALL - + COALESCE ( 19, - 71 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT + MAX( DISTINCT 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9405
SELECT + MAX ( DISTINCT 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT ALL - CAST( - 24 AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - CAST ( - 24 AS INTEGER ) AS col1
----
24

query I rowsort
SELECT ALL - + NULLIF ( + 16, + 18 ) * + 72 AS col2
----
-1152

query II rowsort
SELECT ALL - 80, 2 AS col0
----
-80
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9409
SELECT - - 23 AS col2, 16 + CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9409
SELECT - - 23 AS col2, 16 + CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9410
SELECT DISTINCT - 23 + - - 45 * - 18, + ( - SUM( DISTINCT - + 94 ) ) AS col0
----
-833
94

skipif mysql # not compatible
query II rowsort label-9410
SELECT DISTINCT - 23 + - - 45 * - 18, + ( - SUM ( DISTINCT - + 94 ) ) AS col0
----
-833
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9411
SELECT ( + 28 ) - ( - 54 ) DIV + CAST( - - 5 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-9411
SELECT ( + 28 ) - ( - 54 ) / + CAST ( - - 5 AS INTEGER )
----
38

query I rowsort
SELECT - ( + - 34 ) AS col2
----
34

query I rowsort
SELECT 50 * ( 71 )
----
3550

query I rowsort
SELECT DISTINCT - 93 + + 12 * + + 71
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL COALESCE ( - COUNT( * ), + 34 * - 2 + 21 ) + + + 56
----
55

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL COALESCE ( - COUNT ( * ), + 34 * - 2 + 21 ) + + + 56
----
55

query I rowsort
SELECT ALL 90 + + 45
----
135

query I rowsort
SELECT 40 * - ( - 32 )
----
1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT COALESCE ( ( - 29 ), - 58, - ( - ( CAST( NULL AS SIGNED ) ) ) ) + - 5 - + 69 * + + ( 87 ) * - 91 + CAST( NULL AS SIGNED ) + COALESCE ( 42, + - 49 / - 69 + 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT COALESCE ( ( - 29 ), - 58, - ( - ( CAST ( NULL AS INTEGER ) ) ) ) + - 5 - + 69 * + + ( 87 ) * - 91 + CAST ( NULL AS INTEGER ) + COALESCE ( 42, + - 49 / - 69 + 25 ) AS col1
----
NULL

query I rowsort
SELECT 88 * - - 10
----
880

query I rowsort
SELECT ALL - 75 + - + 47 * 65 + 69 AS col1
----
-3061

query I rowsort
SELECT DISTINCT 89 + 67 - - 50
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - 49 + COALESCE ( 97, - COUNT( * ) ) + - 44 * + 56 AS col2
----
-2416

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - 49 + COALESCE ( 97, - COUNT ( * ) ) + - 44 * + 56 AS col2
----
-2416

query I rowsort
SELECT 78 + + 64 col0
----
142

query I rowsort
SELECT 88 + - - 33 * - - 40 + + - 67 + + 16 + 43 * - 28
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL MIN( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL MIN ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT NULLIF ( 56, - 12 ) * + 84 + - - COALESCE ( - SUM( ALL 66 ), + 42 ) + - 54 * - + 81 * - 81 * 35 * - + ( + COUNT( * ) ) AS col1
----
12404928

skipif mysql # not compatible
query I rowsort label-9426
SELECT NULLIF ( 56, - 12 ) * + 84 + - - COALESCE ( - SUM ( ALL 66 ), + 42 ) + - 54 * - + 81 * - 81 * 35 * - + ( + COUNT ( * ) ) AS col1
----
12404928

query I rowsort
SELECT 4 * + 89 AS col0
----
356

query I rowsort
SELECT DISTINCT - ( - 56 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9429
SELECT DISTINCT 82 * - 66 - - ( + COALESCE ( + 4, + + 61 DIV - - COALESCE ( - 43, - 31 * + - 72 ) * ( + 39 ) - 58 + - - NULLIF ( - - CAST( NULL AS SIGNED ), + + CAST( 18 AS SIGNED ) ), - - 29 * 84 DIV 54 ) )
----
-5408

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT 82 * - 66 - - ( + COALESCE ( + 4, + + 61 / - - COALESCE ( - 43, - 31 * + - 72 ) * ( + 39 ) - 58 + - - NULLIF ( - - CAST ( NULL AS INTEGER ), + + CAST ( 18 AS INTEGER ) ), - - 29 * 84 / 54 ) )
----
-5408

query I rowsort
SELECT + 38 * + + 5
----
190

query I rowsort
SELECT ALL - ( + ( - 65 ) )
----
65

query I rowsort
SELECT - 87 * 87
----
-7569

query I rowsort
SELECT - 39 * - + 29 - + - 75 AS col2
----
1206

query I rowsort
SELECT - - 48 * 70 - - 79 AS col0
----
3439

query II rowsort
SELECT ALL - 85 * + - 82, - 33 * - 81 AS col2
----
6970
2673

query I rowsort
SELECT ALL - 94 + + 33 * + 96
----
3074

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9437
SELECT - ( - - 82 ) * + + 64 * - 45 * - CASE + 55 WHEN + 27 - - 17 THEN COUNT( * ) / + COUNT( * ) WHEN + 49 THEN NULL WHEN 75 THEN NULL ELSE NULL END * 48 + - 63 * - ( - + COUNT( * ) ) + + 14 + + + 71 * 3 AS col2, - CAST( NULL AS DECIMAL ) / + + 73 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9437
SELECT - ( - - 82 ) * + + 64 * - 45 * - CASE + 55 WHEN + 27 - - 17 THEN COUNT ( * ) / + COUNT ( * ) WHEN + 49 THEN NULL WHEN 75 THEN NULL ELSE NULL END * 48 + - 63 * - ( - + COUNT ( * ) ) + + 14 + + + 71 * 3 AS col2, - CAST ( NULL AS REAL ) / + + 73 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT ALL + 19 + - 96 * - 52 + + 42 AS col0, COUNT( * )
----
5053
1

skipif mysql # not compatible
query II rowsort label-9438
SELECT ALL + 19 + - 96 * - 52 + + 42 AS col0, COUNT ( * )
----
5053
1

query I rowsort
SELECT 84 + - - ( + 73 ) + + 15 * 85 * + ( 73 ) * - + 95 AS col2
----
-8841968

query I rowsort
SELECT ALL 43 + + + 89
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + COUNT( * ) * 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9441
SELECT + COUNT ( * ) * 60 AS col0
----
60

query I rowsort
SELECT - 73 * + - 29 * - - 89
----
188413

query I rowsort
SELECT + 78 + + + 90
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT DISTINCT 43 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT 43 / - 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - MIN( + 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9445
SELECT - MIN ( + 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + ( + MAX( 21 ) ) + - NULLIF ( - + 2, + - SUM( - + 88 ) )
----
23

skipif mysql # not compatible
query I rowsort label-9446
SELECT + ( + MAX ( 21 ) ) + - NULLIF ( - + 2, + - SUM ( - + 88 ) )
----
23

query I rowsort
SELECT DISTINCT 78 * + 59
----
4602

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT ALL 37 - - 46 DIV + 95 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL 37 - - 46 / + 95 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT + 42 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT + 42 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 72 - + 93 * + 80 + 76
----
-7292

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT SUM( DISTINCT - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT SUM ( DISTINCT - 61 ) AS col1
----
-61

query I rowsort
SELECT + ( + + 39 ) - - ( + 5 )
----
44

query I rowsort
SELECT + ( + + ( + 53 ) ) + 95 * - + 90 + + 6 AS col0
----
-8491

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT 15 AS col0, ( - - MIN( - 63 ) ) col0
----
15
-63

skipif mysql # not compatible
query II rowsort label-9454
SELECT 15 AS col0, ( - - MIN ( - 63 ) ) col0
----
15
-63

query II rowsort
SELECT DISTINCT + 56, 90 + - 87 AS col0
----
56
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT - - 88 * + + 69 + - + CASE + 11 WHEN - 90 * CAST( NULL AS SIGNED ) * - 95 * - 11 * 88 THEN + - 69 * - - 79 * + 96 + - 92 + + ( 22 ) WHEN 83 + - 4 + + - 50 * COUNT( * ) / 48 * + 47 THEN - + 73 ELSE NULL END - - 27 + + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT - - 88 * + + 69 + - + CASE + 11 WHEN - 90 * CAST ( NULL AS INTEGER ) * - 95 * - 11 * 88 THEN + - 69 * - - 79 * + 96 + - 92 + + ( 22 ) WHEN 83 + - 4 + + - 50 * COUNT ( * ) / 48 * + 47 THEN - + 73 ELSE NULL END - - 27 + + 33 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT DISTINCT + COUNT( * ) DIV + 21 col2
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT + COUNT ( * ) / + 21 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT - + MAX( DISTINCT - 75 ) DIV + 30 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9458
SELECT - + MAX ( DISTINCT - 75 ) / + 30 * + COUNT ( * )
----
2

query I rowsort
SELECT + - 58 * ( - 16 )
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT - - ( - CASE - 1 WHEN - + 12 THEN NULL WHEN CASE COALESCE ( + + 37, - COALESCE ( + - 11, CASE - 92 WHEN 12 THEN NULL WHEN - - COALESCE ( + 78, + + 32 ) THEN ( + 5 ) END + - 4 ), + 6, - - 45 + 20 + - + 32 ) WHEN COUNT( * ) THEN NULL ELSE 0 END THEN - 19 + MIN( ALL + 90 ) + + 68 + 36 END ) + - CASE + + 59 WHEN 35 THEN + - 48 + 9 - - + ( 52 ) ELSE NULL END * 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT - - ( - CASE - 1 WHEN - + 12 THEN NULL WHEN CASE COALESCE ( + + 37, - COALESCE ( + - 11, CASE - 92 WHEN 12 THEN NULL WHEN - - COALESCE ( + 78, + + 32 ) THEN ( + 5 ) END + - 4 ), + 6, - - 45 + 20 + - + 32 ) WHEN COUNT ( * ) THEN NULL ELSE 0 END THEN - 19 + MIN ( ALL + 90 ) + + 68 + 36 END ) + - CASE + + 59 WHEN 35 THEN + - 48 + 9 - - + ( 52 ) ELSE NULL END * 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 47 * - - 7
----
329

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + - CASE - 98 WHEN COALESCE ( MIN( DISTINCT - 15 ), - 86 ) THEN + 75 ELSE COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9462
SELECT + - CASE - 98 WHEN COALESCE ( MIN ( DISTINCT - 15 ), - 86 ) THEN + 75 ELSE COUNT ( * ) END AS col2
----
-1

query I rowsort
SELECT - + 78 + + 70 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9464
SELECT ALL + + 41 * 30 * 36 + + COUNT( * ) * 45 * + - 81 col0, - 6 * + ( - 45 )
----
40635
270

skipif mysql # not compatible
query II rowsort label-9464
SELECT ALL + + 41 * 30 * 36 + + COUNT ( * ) * 45 * + - 81 col0, - 6 * + ( - 45 )
----
40635
270

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT - - 9 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT - - 9 / 62
----
0

query I rowsort
SELECT + - 87 * ( NULLIF ( - 20, - 60 * 12 ) ) + - 51 AS col2
----
1689

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9467
SELECT ALL + - 23 * + + 69 + - - 4, 33 * CASE WHEN NOT - 52 IS NOT NULL THEN - 35 * CAST( 18 AS SIGNED ) + - AVG ( - 10 ) + - CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
-1583
NULL

skipif mysql # not compatible
query II rowsort label-9467
SELECT ALL + - 23 * + + 69 + - - 4, 33 * CASE WHEN NOT - 52 IS NOT NULL THEN - 35 * CAST ( 18 AS INTEGER ) + - AVG ( - 10 ) + - CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
-1583
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT DISTINCT + CASE + 50 WHEN - - 97 * - 84 + 98 * + 87 THEN - + CAST( + 87 AS SIGNED ) ELSE 88 END * - 1 * + 62 + CASE + - 80 WHEN COUNT( ALL - 20 ) THEN NULL ELSE - - 57 END
----
-5399

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT + CASE + 50 WHEN - - 97 * - 84 + 98 * + 87 THEN - + CAST ( + 87 AS INTEGER ) ELSE 88 END * - 1 * + 62 + CASE + - 80 WHEN COUNT ( ALL - 20 ) THEN NULL ELSE - - 57 END
----
-5399

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT 78 * + + 91 * 31 + - + 41 + - NULLIF ( + 93, - + COUNT( * ) - COUNT( - 55 ) + - 15 ) + 51 - CASE - 78 WHEN 22 * + - COALESCE ( - + 92, - + NULLIF ( - COUNT( * ), + COUNT( + 35 ) * + 7 ) + + + 58 ) * - - COUNT( * ) * + COUNT( + 33 ) - + ( + 44 ) - + - 21 THEN NULL WHEN NULLIF ( + + 70, 75 * + ( - NULLIF ( + 35, + COUNT( * ) + - 12 ) ) ) THEN - 11 ELSE NULL END * 1 + COUNT( * ) * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT 78 * + + 91 * 31 + - + 41 + - NULLIF ( + 93, - + COUNT ( * ) - COUNT ( - 55 ) + - 15 ) + 51 - CASE - 78 WHEN 22 * + - COALESCE ( - + 92, - + NULLIF ( - COUNT ( * ), + COUNT ( + 35 ) * + 7 ) + + + 58 ) * - - COUNT ( * ) * + COUNT ( + 33 ) - + ( + 44 ) - + - 21 THEN NULL WHEN NULLIF ( + + 70, 75 * + ( - NULLIF ( + 35, + COUNT ( * ) + - 12 ) ) ) THEN - 11 ELSE NULL END * 1 + COUNT ( * ) * - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL - + COUNT( * ) * + 74 - - 92 + - 23 * + ( - + 41 )
----
961

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL - + COUNT ( * ) * + 74 - - 92 + - 23 * + ( - + 41 )
----
961

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT + NULLIF ( + + 52, - 75 ) AS col0, - COUNT( * ) AS col2
----
52
-1

skipif mysql # not compatible
query II rowsort label-9471
SELECT + NULLIF ( + + 52, - 75 ) AS col0, - COUNT ( * ) AS col2
----
52
-1

query I rowsort
SELECT - + 82 - + - 22
----
-60

query I rowsort
SELECT - ( + 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + SUM( ALL - + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-9474
SELECT + SUM ( ALL - + 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + CASE + + 93 WHEN - + ( - 34 ) THEN - ( - 38 ) / - COUNT( * ) WHEN - COUNT( * ) + + 83 - + - 51 + - + 26 * 25 * - 72 THEN - COUNT( * ) ELSE NULL END * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT + CASE + + 93 WHEN - + ( - 34 ) THEN - ( - 38 ) / - COUNT ( * ) WHEN - COUNT ( * ) + + 83 - + - 51 + - + 26 * 25 * - 72 THEN - COUNT ( * ) ELSE NULL END * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT COUNT( * ), - 84 col1
----
1
-84

skipif mysql # not compatible
query II rowsort label-9476
SELECT COUNT ( * ), - 84 col1
----
1
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT - 10 col0, + COUNT( * ) AS col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-9477
SELECT - 10 col0, + COUNT ( * ) AS col0
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT SUM( ALL + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9478
SELECT SUM ( ALL + 49 ) AS col2
----
49

query II rowsort
SELECT ALL 19 * + 10 - - - 26 + + 51 col2, 1
----
215
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT - COUNT( * ) AS col1, ( + + 12 ) AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-9480
SELECT - COUNT ( * ) AS col1, ( + + 12 ) AS col1
----
-1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT MAX( ALL - + 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9481
SELECT MAX ( ALL - + 7 ) AS col1
----
-7

query I rowsort
SELECT ALL + 49 * + + 73 * - + 40 AS col1
----
-143080

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9483
SELECT + CAST( NULL AS DECIMAL ) * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT + CAST ( NULL AS REAL ) * - 17 AS col2
----
NULL

query II rowsort
SELECT ALL 32, - ( 76 ) * + 88 AS col2
----
32
-6688

query I rowsort
SELECT - ( - - 52 ) + + + 18 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT + 65 - - - 70 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT + 65 - - - 70 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT - CAST( - 7 AS SIGNED ) * 6 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9487
SELECT - CAST ( - 7 AS INTEGER ) * 6 AS col2
----
42

query I rowsort
SELECT + 82 + - 24 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9489
SELECT - CAST( NULL AS SIGNED ) AS col2, 93 * + ( - - 27 )
----
NULL
2511

skipif mysql # not compatible
query II rowsort label-9489
SELECT - CAST ( NULL AS INTEGER ) AS col2, 93 * + ( - - 27 )
----
NULL
2511

query I rowsort
SELECT ALL ( + - 54 ) * + 32 - + - 71 + - - 8 AS col1
----
-1649

onlyif mysql # aggregate syntax: 
query II rowsort label-9491
SELECT DISTINCT 49, COUNT( * ) + + COUNT( * ) AS col1
----
49
2

skipif mysql # not compatible
query II rowsort label-9491
SELECT DISTINCT 49, COUNT ( * ) + + COUNT ( * ) AS col1
----
49
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9492
SELECT + 33 + - 8 + - + COALESCE ( + 25, 42 ) DIV COUNT( * ) AS col2, 46
----
0
46

skipif mysql # not compatible
query II rowsort label-9492
SELECT + 33 + - 8 + - + COALESCE ( + 25, 42 ) / COUNT ( * ) AS col2, 46
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + + SUM( + 95 ) * 43 AS col1
----
4085

skipif mysql # not compatible
query I rowsort label-9493
SELECT + + SUM ( + 95 ) * 43 AS col1
----
4085

query II rowsort
SELECT - - 19 col0, 46
----
19
46

query II rowsort
SELECT + 95 + COALESCE ( + 12, + 61, - 19 * + 65 * + + 42 + + 21 ) * - - 59 AS col0, 18 AS col1
----
803
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT COUNT( DISTINCT + - 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9496
SELECT COUNT ( DISTINCT + - 58 ) AS col1
----
1

query II rowsort
SELECT + 79 * - 40 * 11 * - 75 AS col2, 52 AS col0
----
2607000
52

query II rowsort
SELECT + - 99, 59 * - ( - 2 ) AS col2
----
-99
118

query II rowsort
SELECT + 69, 49 * - 66 + 34 AS col2
----
69
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT ALL + - ( - 84 ) DIV - - 28 + - 49
----
-46

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + - ( - 84 ) / - - 28 + - 49
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT - 6 DIV + - NULLIF ( + - COUNT( * ), 37 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9501
SELECT - 6 / + - NULLIF ( + - COUNT ( * ), 37 ) AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT - - COUNT( * ) DIV 71 * - - COUNT( * ) - + + ( + 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9502
SELECT - - COUNT ( * ) / 71 * - - COUNT ( * ) - + + ( + 14 ) AS col2
----
-14

query I rowsort
SELECT ALL + 2 * 77
----
154

query II rowsort
SELECT - 42 col0, - 24
----
-42
-24

query I rowsort
SELECT ALL + 91 + - 16 * - 62
----
1083

query I rowsort
SELECT DISTINCT + 33 + - - 78 + 16
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT 11 DIV + 2 + 9 + + 40 * + ( - 34 )
----
-1346

skipif mysql # not compatible
query I rowsort label-9507
SELECT 11 / + 2 + 9 + + 40 * + ( - 34 )
----
-1346

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT COUNT( * ) * - 31 - + + 81
----
-112

skipif mysql # not compatible
query I rowsort label-9508
SELECT COUNT ( * ) * - 31 - + + 81
----
-112

query I rowsort
SELECT + 99 * 44 AS col1
----
4356

query I rowsort
SELECT + - 10 * 61 - + 98 AS col0
----
-708

query II rowsort
SELECT + 15 * - ( + 21 ) + - 46 + + 47 col0, + 18
----
-314
18

query I rowsort
SELECT ALL + 80 - + 53
----
27

query I rowsort
SELECT 62 * + 20 AS col0
----
1240

query II rowsort
SELECT ALL 8 * - 53 AS col2, 54 AS col2
----
-424
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT 78 + - + SUM( + 81 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9515
SELECT 78 + - + SUM ( + 81 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL - NULLIF ( - + MIN( ALL + 89 ), + COUNT( * ) * 4 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - NULLIF ( - + MIN ( ALL + 89 ), + COUNT ( * ) * 4 ) AS col0
----
89

query I rowsort
SELECT 4 * + 58 col2
----
232

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT 75 * - 36, + COUNT( * ) * 42 col0
----
-2700
42

skipif mysql # not compatible
query II rowsort label-9518
SELECT 75 * - 36, + COUNT ( * ) * 42 col0
----
-2700
42

query I rowsort
SELECT ALL + 18 * 73 AS col2
----
1314

onlyif mysql # DIV for integer division: 
query II rowsort label-9520
SELECT 94 DIV + - 41, 1 AS col1
----
-2
1

skipif mysql # not compatible
query II rowsort label-9520
SELECT 94 / + - 41, 1 AS col1
----
-2
1

query I rowsort
SELECT COALESCE ( - - 7, 17 ) * + - CASE - - 46 WHEN + 32 THEN 83 * + 55 ELSE + + 68 END
----
-476

query I rowsort
SELECT DISTINCT + ( + 12 ) * 55 + 52 + + + 30
----
742

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT + COUNT( * ) + - SUM( - + 20 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + COUNT ( * ) + - SUM ( - + 20 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9524
SELECT DISTINCT - 73 + SUM( DISTINCT 47 ) + + 31 + + 76 + ( + 81 ) + + 60 * + + 3 * - - 94 AS col1, 71 * - 18 AS col1
----
17082
-1278

skipif mysql # not compatible
query II rowsort label-9524
SELECT DISTINCT - 73 + SUM ( DISTINCT 47 ) + + 31 + + 76 + ( + 81 ) + + 60 * + + 3 * - - 94 AS col1, 71 * - 18 AS col1
----
17082
-1278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9525
SELECT NULLIF ( + 40, + 87 ) / - NULLIF ( - 84, - 29 ) * 58 + - CAST( NULL AS SIGNED ) col2, - 23 * - 63 AS col2, + + 33 col2
----
NULL
1449
33

skipif mysql # not compatible
query III rowsort label-9525
SELECT NULLIF ( + 40, + 87 ) / - NULLIF ( - 84, - 29 ) * 58 + - CAST ( NULL AS INTEGER ) col2, - 23 * - 63 AS col2, + + 33 col2
----
NULL
1449
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - 84 - - COUNT( * ) - + 86 * + 83
----
-7221

skipif mysql # not compatible
query I rowsort label-9526
SELECT - 84 - - COUNT ( * ) - + 86 * + 83
----
-7221

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT SUM( - 81 ) + - 91 AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-9527
SELECT SUM ( - 81 ) + - 91 AS col2
----
-172

query I rowsort
SELECT NULLIF ( + 88, - + 70 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT 11 + + COUNT( * ) * + - 5 * + 54
----
-259

skipif mysql # not compatible
query I rowsort label-9529
SELECT 11 + + COUNT ( * ) * + - 5 * + 54
----
-259

query I rowsort
SELECT ALL - 56 + - + 2 AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT ALL COUNT( DISTINCT + + 87 ) DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL COUNT ( DISTINCT + + 87 ) / 74 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT CAST( NULL AS SIGNED ) + - ( + COALESCE ( - COUNT( ALL - 18 ), + 7 * - 77 + - MIN( DISTINCT 98 ) + - CAST( - - ( - CAST( - 0 AS SIGNED ) ) AS SIGNED ) / - 17 ) ) - - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT CAST ( NULL AS INTEGER ) + - ( + COALESCE ( - COUNT ( ALL - 18 ), + 7 * - 77 + - MIN ( DISTINCT 98 ) + - CAST ( - - ( - CAST ( - 0 AS INTEGER ) ) AS INTEGER ) / - 17 ) ) - - 83 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 69 * - 98 col0
----
-6762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT ALL - CAST( 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL - CAST ( 21 AS INTEGER )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT - 65 DIV 55 + + 77 * + - 13 AS col0
----
-1002

skipif mysql # not compatible
query I rowsort label-9535
SELECT - 65 / 55 + + 77 * + - 13 AS col0
----
-1002

query II rowsort
SELECT ALL 96 + - 46 AS col1, - ( - - 5 )
----
50
-5

query I rowsort
SELECT + 77 * ( - + 97 ) * + 11 + 54 AS col1
----
-82105

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 93 * + 82 * - + 15 + 75 + COUNT( * )
----
-114314

skipif mysql # not compatible
query I rowsort label-9538
SELECT 93 * + 82 * - + 15 + 75 + COUNT ( * )
----
-114314

query II rowsort
SELECT 77 AS col1, 47 - + - 57
----
77
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL - COUNT( DISTINCT - NULLIF ( + 27, + + ( - - 41 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - COUNT ( DISTINCT - NULLIF ( + 27, + + ( - - 41 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + COUNT( ALL - 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9541
SELECT + COUNT ( ALL - 83 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT ALL - COUNT( * ) AS col2, 95 AS col0
----
-1
95

skipif mysql # not compatible
query II rowsort label-9542
SELECT ALL - COUNT ( * ) AS col2, 95 AS col0
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + SUM( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9543
SELECT + SUM ( ALL 14 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9544
SELECT 15 AS col2, - 85 * 48 * - COUNT( * ) - - 35 + + - 69 DIV COUNT( * ) * 87 - - 73 + COUNT( * ) + MIN( + + 46 ) DIV 74 * - + 17 * 3 * + - 27
----
15
-1814

skipif mysql # not compatible
query II rowsort label-9544
SELECT 15 AS col2, - 85 * 48 * - COUNT ( * ) - - 35 + + - 69 / COUNT ( * ) * 87 - - 73 + COUNT ( * ) + MIN ( + + 46 ) / 74 * - + 17 * 3 * + - 27
----
15
-1814

query II rowsort
SELECT ( - 55 ) * 39 * - ( 67 ) + + - 87 + - NULLIF ( + + 29, 19 - - + 35 ) * 12 AS col2, + 7
----
143280
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT 29 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-9546
SELECT 29 / - + 87
----
0

query I rowsort
SELECT ALL 18 + - 77 * + 63 - - 56
----
-4777

query I rowsort
SELECT 3 - - + 34
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL SUM( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL SUM ( - 70 )
----
-70

query I rowsort
SELECT 13 - + + 87 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9551
SELECT DISTINCT + ( - 80 ) + + - CAST( 71 AS SIGNED ), - 17 AS col2
----
-151
-17

skipif mysql # not compatible
query II rowsort label-9551
SELECT DISTINCT + ( - 80 ) + + - CAST ( 71 AS INTEGER ), - 17 AS col2
----
-151
-17

query I rowsort
SELECT 22 * + - COALESCE ( - 0, + 17 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL COUNT( DISTINCT ( 24 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL COUNT ( DISTINCT ( 24 ) ) AS col1
----
1

query I rowsort
SELECT + 47 + 58 + + 36 * - ( 77 )
----
-2667

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - COUNT( ALL + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-9555
SELECT - COUNT ( ALL + 42 )
----
-1

query I rowsort
SELECT ALL + 27 + 6 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT - MIN( ALL - - 20 ) + COUNT( * ) * + 16 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT - MIN ( ALL - - 20 ) + COUNT ( * ) * + 16 AS col0
----
-4

query I rowsort
SELECT - + 46 * 73 * + 32
----
-107456

query I rowsort
SELECT DISTINCT + 77 + 71 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - - 72 + + COUNT( * ) + - 48 * - 64 + + 82
----
3227

skipif mysql # not compatible
query I rowsort label-9560
SELECT - - 72 + + COUNT ( * ) + - 48 * - 64 + + 82
----
3227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + CAST( NULL AS SIGNED ) - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + CAST ( NULL AS INTEGER ) - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - - MAX( DISTINCT + 68 ) + + + 28 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9562
SELECT - - MAX ( DISTINCT + 68 ) + + + 28 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9563
SELECT + - CASE + 81 WHEN 8 THEN + 70 + 12 WHEN CAST( NULL AS SIGNED ) + + 19 THEN 82 WHEN + + ( 48 ) THEN - 81 END / + 89 + - 74 AS col0, - 91
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-9563
SELECT + - CASE + 81 WHEN 8 THEN + 70 + 12 WHEN CAST ( NULL AS INTEGER ) + + 19 THEN 82 WHEN + + ( 48 ) THEN - 81 END / + 89 + - 74 AS col0, - 91
----
NULL
-91

query II rowsort
SELECT + 54 AS col1, 72
----
54
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT - - SUM( - 16 ) * + 91 + 53 + - 36 * + + 79 AS col2
----
-4247

skipif mysql # not compatible
query I rowsort label-9565
SELECT - - SUM ( - 16 ) * + 91 + 53 + - 36 * + + 79 AS col2
----
-4247

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT ALL - 45 * + 53 - + COUNT( * )
----
-2386

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL - 45 * + 53 - + COUNT ( * )
----
-2386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9567
SELECT + COALESCE ( + 83, + - CASE - 96 WHEN - CAST( NULL AS DECIMAL ) THEN + + 26 END * ( - 12 ) ), + CAST( - + 49 AS SIGNED ) * 35 DIV MIN( ALL 88 ) + - 76 col2
----
83
-95

skipif mysql # not compatible
query II rowsort label-9567
SELECT + COALESCE ( + 83, + - CASE - 96 WHEN - CAST ( NULL AS REAL ) THEN + + 26 END * ( - 12 ) ), + CAST ( - + 49 AS INTEGER ) * 35 / MIN ( ALL 88 ) + - 76 col2
----
83
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT DISTINCT COUNT( + 10 ) DIV 26 * - + CASE + - 52 WHEN - 99 THEN NULL ELSE - 74 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT COUNT ( + 10 ) / 26 * - + CASE + - 52 WHEN - 99 THEN NULL ELSE - 74 END AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT - - 70 DIV - 7 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9569
SELECT - - 70 / - 7 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + COUNT( * ) + + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9570
SELECT + COUNT ( * ) + + 72 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9571
SELECT ALL + 17 DIV 13, + 97 DIV COUNT( * ) col1
----
1
97

skipif mysql # not compatible
query II rowsort label-9571
SELECT ALL + 17 / 13, + 97 / COUNT ( * ) col1
----
1
97

query I rowsort
SELECT ALL 8 * - 84 AS col2
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - MIN( DISTINCT 85 ) + 54 * + - ( - 91 ) + + MAX( DISTINCT + - 75 )
----
4754

skipif mysql # not compatible
query I rowsort label-9573
SELECT - MIN ( DISTINCT 85 ) + 54 * + - ( - 91 ) + + MAX ( DISTINCT + - 75 )
----
4754

query I rowsort
SELECT + 48 * - - 72
----
3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT 54 DIV - - COUNT( * ) - - + 49 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-9575
SELECT 54 / - - COUNT ( * ) - - + 49 AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT + 68 * - 83 + + 61 + - 78 DIV - + NULLIF ( - 52, + SUM( ALL ( - + 60 ) ) + + ( + 63 ) * - MIN( + + 98 ) )
----
-5584

skipif mysql # not compatible
query I rowsort label-9576
SELECT + 68 * - 83 + + 61 + - 78 / - + NULLIF ( - 52, + SUM ( ALL ( - + 60 ) ) + + ( + 63 ) * - MIN ( + + 98 ) )
----
-5584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL - 7 * CAST( NULL AS SIGNED ) / + + 85 * + 53 + - COALESCE ( + 37, 12 * - - 98 + - COUNT( * ) - + + 7 * 44 * - - NULLIF ( + 26, - MAX( DISTINCT 87 ) + - - COUNT( * ) ) * - 18 + COUNT( * ) - - 81 * + 23 * 15 ) + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - 7 * CAST ( NULL AS INTEGER ) / + + 85 * + 53 + - COALESCE ( + 37, 12 * - - 98 + - COUNT ( * ) - + + 7 * 44 * - - NULLIF ( + 26, - MAX ( DISTINCT 87 ) + - - COUNT ( * ) ) * - 18 + COUNT ( * ) - - 81 * + 23 * 15 ) + 90 AS col2
----
NULL

query I rowsort
SELECT ALL 30 * - 67 * + + 66 + - - 42
----
-132618

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT COUNT( + + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-9579
SELECT COUNT ( + + 2 )
----
1

query I rowsort
SELECT + 82 + + - 17
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT ALL 6 DIV + ( + + 60 ) * + + 30 - + + 47 + + 11 - - 9
----
-27

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL 6 / + ( + + 60 ) * + + 30 - + + 47 + + 11 - - 9
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT COUNT( - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-9582
SELECT COUNT ( - 12 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9583
SELECT + 46 / + COALESCE ( 93, + - 71, COALESCE ( - - 37, 11, - CASE - 65 WHEN MAX( ALL NULLIF ( - 96, - - 25 * - 69 + + - 97 ) ) THEN + + 49 + - COUNT( ALL - 4 ) END / 51 + + - 86 * 44 * + 9 ) ) * + CAST( NULL AS SIGNED ) - 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT + 46 / + COALESCE ( 93, + - 71, COALESCE ( - - 37, 11, - CASE - 65 WHEN MAX ( ALL NULLIF ( - 96, - - 25 * - 69 + + - 97 ) ) THEN + + 49 + - COUNT ( ALL - 4 ) END / 51 + + - 86 * 44 * + 9 ) ) * + CAST ( NULL AS INTEGER ) - 23 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL - 31 * + + ( + SUM( 3 ) ) + - 84 * COUNT( * ) col1
----
-177

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - 31 * + + ( + SUM ( 3 ) ) + - 84 * COUNT ( * ) col1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT + - 32 * - 60 * 30 - 73 + - CASE - 43 WHEN - 71 THEN NULL WHEN - 50 - + 97 THEN - - COUNT( * ) WHEN - - ( + 62 ) / + 62 * 5 + - + 66 + 5 / - 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + - 32 * - 60 * 30 - 73 + - CASE - 43 WHEN - 71 THEN NULL WHEN - 50 - + 97 THEN - - COUNT ( * ) WHEN - - ( + 62 ) / + 62 * 5 + - + 66 + 5 / - 87 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - - 69 * + 96 AS col2
----
6624

query I rowsort
SELECT - 11 + - + 69 * + 49 AS col1
----
-3392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT ALL CAST( - - 79 AS SIGNED ) * - 12
----
-948

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL CAST ( - - 79 AS INTEGER ) * - 12
----
-948

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT + MAX( 11 ) AS col1, COUNT( * )
----
11
1

skipif mysql # not compatible
query II rowsort label-9589
SELECT + MAX ( 11 ) AS col1, COUNT ( * )
----
11
1

query I rowsort
SELECT + + 98 + - + 85 + + + 5 - - 14 AS col1
----
32

query I rowsort
SELECT + + 40 - - 2 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - - COUNT( * ) * 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9592
SELECT - - COUNT ( * ) * 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT - - COUNT( + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-9593
SELECT - - COUNT ( + 42 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL CAST( - - 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL CAST ( - - 93 AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - 18 * - + 86 - - 34 - + 75 + 72 * + ( - + 75 ) + COUNT( * )
----
-3892

skipif mysql # not compatible
query I rowsort label-9595
SELECT - 18 * - + 86 - - 34 - + 75 + 72 * + ( - + 75 ) + COUNT ( * )
----
-3892

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL - - COUNT( * ) * + - 55 + MIN( ( + 11 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - - COUNT ( * ) * + - 55 + MIN ( ( + 11 ) )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9597
SELECT + COUNT( * ) DIV - CAST( - - COUNT( * ) AS SIGNED ) + 56 + + 60 DIV + COUNT( * ) col2
----
115

skipif mysql # not compatible
query I rowsort label-9597
SELECT + COUNT ( * ) / - CAST ( - - COUNT ( * ) AS INTEGER ) + 56 + + 60 / + COUNT ( * ) col2
----
115

query I rowsort
SELECT DISTINCT + + ( - 33 ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9599
SELECT ALL CASE - - 29 WHEN - - 2 / - 80 * - + CAST( 85 AS DECIMAL ) * - + 76 / + 17 THEN - COUNT( * ) WHEN 59 THEN + 56 / + + 71 - + - 69 WHEN - 59 * - 43 + - 64 + - 22 + MIN( ALL - + 11 ) THEN 35 END / - 68 + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL CASE - - 29 WHEN - - 2 / - 80 * - + CAST ( 85 AS REAL ) * - + 76 / + 17 THEN - COUNT ( * ) WHEN 59 THEN + 56 / + + 71 - + - 69 WHEN - 59 * - 43 + - 64 + - 22 + MIN ( ALL - + 11 ) THEN 35 END / - 68 + 8 col0
----
NULL

query I rowsort
SELECT DISTINCT + 3 * - 2
----
-6

query I rowsort
SELECT - 2 * 52 + + + 41 col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9602
SELECT ALL + COALESCE ( - 12, - SUM( + 83 ) DIV NULLIF ( - 42, - NULLIF ( - - 32, + 42 * - + 37 DIV - 47 * - - 68 * MAX( - ( + + 30 ) ) + - ( - 38 ) - - + 71 DIV 88 ) * - ( + - 77 ) + - + ( SUM( ALL - + ( 90 ) ) ) + 92 ) + NULLIF ( - 19, + 79 DIV - 18 * - - COUNT( * ) ) DIV - 99 * + ( CAST( NULL AS SIGNED ) ) + - 97 * + + CASE - CAST( NULL AS SIGNED ) WHEN + - 65 + - 33 + - 32 THEN NULL WHEN - 83 THEN + 34 END * 10 + - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + COALESCE ( - 12, - SUM ( + 83 ) / NULLIF ( - 42, - NULLIF ( - - 32, + 42 * - + 37 / - 47 * - - 68 * MAX ( - ( + + 30 ) ) + - ( - 38 ) - - + 71 / 88 ) * - ( + - 77 ) + - + ( SUM ( ALL - + ( 90 ) ) ) + 92 ) + NULLIF ( - 19, + 79 / - 18 * - - COUNT ( * ) ) / - 99 * + ( CAST ( NULL AS INTEGER ) ) + - 97 * + + CASE - CAST ( NULL AS INTEGER ) WHEN + - 65 + - 33 + - 32 THEN NULL WHEN - 83 THEN + 34 END * 10 + - 12 ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9603
SELECT CAST( NULL AS SIGNED ), 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-9603
SELECT CAST ( NULL AS INTEGER ), 86 AS col1
----
NULL
86

query II rowsort
SELECT 58 * 41 + + 39 AS col0, 84 * - 38 AS col2
----
2417
-3192

query I rowsort
SELECT ( 76 ) col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9606
SELECT ALL - 13 DIV 40 + - + 20 col1
----
-20

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - 13 / 40 + - + 20 col1
----
-20

query I rowsort
SELECT - 30 * - ( + 2 ) * 38 AS col1
----
2280

query I rowsort
SELECT - 6 * - 84 AS col0
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT ALL 18 * + ( 32 ), 63 + - COUNT( * ) * - + 24 AS col2
----
576
87

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL 18 * + ( 32 ), 63 + - COUNT ( * ) * - + 24 AS col2
----
576
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9610
SELECT ( - - COALESCE ( - - 86, + - CASE + + MIN( - + 65 ) WHEN + COUNT( * ) * NULLIF ( - 17, + COUNT( * ) - - + 44 + + - NULLIF ( + 76, - + 73 * - - 47 + 82 * + + CAST( - COUNT( * ) AS SIGNED ) ) * - 73 ) THEN CASE - 76 WHEN - 99 / + 18 - + CAST( NULL AS DECIMAL ) THEN NULL WHEN - ( + NULLIF ( + + ( + - 53 ), 4 / ( + 71 ) ) ) / 86 + - ( + - 47 ) THEN - - COUNT( * ) * + 81 * - 34 END ELSE NULL END + - 20 ) ) AS col1, COUNT( * ) + + 28 AS col1
----
86
29

skipif mysql # not compatible
query II rowsort label-9610
SELECT ( - - COALESCE ( - - 86, + - CASE + + MIN ( - + 65 ) WHEN + COUNT ( * ) * NULLIF ( - 17, + COUNT ( * ) - - + 44 + + - NULLIF ( + 76, - + 73 * - - 47 + 82 * + + CAST ( - COUNT ( * ) AS INTEGER ) ) * - 73 ) THEN CASE - 76 WHEN - 99 / + 18 - + CAST ( NULL AS REAL ) THEN NULL WHEN - ( + NULLIF ( + + ( + - 53 ), 4 / ( + 71 ) ) ) / 86 + - ( + - 47 ) THEN - - COUNT ( * ) * + 81 * - 34 END ELSE NULL END + - 20 ) ) AS col1, COUNT ( * ) + + 28 AS col1
----
86
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL + 47 * - 97 * + MAX( + 78 ) + - NULLIF ( + COUNT( * ), + 63 ) * - + 55 * - 75 AS col2
----
-359727

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + 47 * - 97 * + MAX ( + 78 ) + - NULLIF ( + COUNT ( * ), + 63 ) * - + 55 * - 75 AS col2
----
-359727

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ( + - MIN( + + 56 ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9612
SELECT ( + - MIN ( + + 56 ) ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT ALL + ( 4 ) * + 48 DIV - 3 + 58
----
-6

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + ( 4 ) * + 48 / - 3 + 58
----
-6

query I rowsort
SELECT 59 * + + 99 - + 4 * - + 47
----
6029

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + 76 * COUNT( - 8 )
----
76

skipif mysql # not compatible
query I rowsort label-9615
SELECT + 76 * COUNT ( - 8 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT NULLIF ( - 60, 79 / + - 96 + COUNT( - ( + 40 ) ) - + 7 ), COUNT( * ) AS col1
----
-60
1

skipif mysql # not compatible
query II rowsort label-9616
SELECT NULLIF ( - 60, 79 / + - 96 + COUNT ( - ( + 40 ) ) - + 7 ), COUNT ( * ) AS col1
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + CASE - 63 WHEN + 19 / - 78 / 76 * - 50 - - 95 * + ( CASE + 16 WHEN 60 * - 6 + - NULLIF ( + ( + + 75 ), + COUNT( * ) ) THEN NULL WHEN + COUNT( * ) THEN + 70 + - + COUNT( * ) ELSE + 36 END ) THEN - 56 + 20 WHEN + + 38 THEN - + 32 ELSE COUNT( * ) + 61 END + 67 * - 84 * - - 22
----
-123754

skipif mysql # not compatible
query I rowsort label-9617
SELECT + CASE - 63 WHEN + 19 / - 78 / 76 * - 50 - - 95 * + ( CASE + 16 WHEN 60 * - 6 + - NULLIF ( + ( + + 75 ), + COUNT ( * ) ) THEN NULL WHEN + COUNT ( * ) THEN + 70 + - + COUNT ( * ) ELSE + 36 END ) THEN - 56 + 20 WHEN + + 38 THEN - + 32 ELSE COUNT ( * ) + 61 END + 67 * - 84 * - - 22
----
-123754

query I rowsort
SELECT + 29 * - + 99
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT DISTINCT + + COUNT( * ) - + 85
----
-84

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + + COUNT ( * ) - + 85
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT 75, + COUNT( * ) AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-9620
SELECT 75, + COUNT ( * ) AS col0
----
75
1

query I rowsort
SELECT - 0 - + + 10
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT ALL + COUNT( * ) DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + COUNT ( * ) / - - 96
----
0

query I rowsort
SELECT NULLIF ( - 1, + + 93 ) AS col0
----
-1

query I rowsort
SELECT - 76 * + 17 * - 58 AS col1
----
74936

onlyif mysql # aggregate syntax: 
query II rowsort label-9625
SELECT + 99 AS col1, - MIN( DISTINCT + - 69 )
----
99
69

skipif mysql # not compatible
query II rowsort label-9625
SELECT + 99 AS col1, - MIN ( DISTINCT + - 69 )
----
99
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT - 25 * 42 + + 37 DIV 42
----
-1050

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT - 25 * 42 + + 37 / 42
----
-1050

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT - 3 DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9627
SELECT - 3 / 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL NULLIF ( COUNT( * ), + 64 + + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL NULLIF ( COUNT ( * ), + 64 + + 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT + 12 * + COUNT( * ) + ( - MAX( + + 33 ) ) - + 27 + COALESCE ( - NULLIF ( 16, + 29 ), 86, 92 ) * - - 19
----
-352

skipif mysql # not compatible
query I rowsort label-9629
SELECT + 12 * + COUNT ( * ) + ( - MAX ( + + 33 ) ) - + 27 + COALESCE ( - NULLIF ( 16, + 29 ), 86, 92 ) * - - 19
----
-352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9630
SELECT DISTINCT - CAST( 75 AS DECIMAL ) * - 2 * 17 + CASE + 27 WHEN COUNT( - 8 ) THEN 45 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT - CAST ( 75 AS REAL ) * - 2 * 17 + CASE + 27 WHEN COUNT ( - 8 ) THEN 45 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL - 31 + + 2 * + NULLIF ( 79, - COUNT( * ) )
----
127

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL - 31 + + 2 * + NULLIF ( 79, - COUNT ( * ) )
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT + CAST( - - 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-9632
SELECT + CAST ( - - 92 AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT COUNT( ALL - 55 ) + + + 89
----
90

skipif mysql # not compatible
query I rowsort label-9633
SELECT COUNT ( ALL - 55 ) + + + 89
----
90

query II rowsort
SELECT - 49, - 84 AS col0
----
-49
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT NULLIF ( - 38, + 45 ) * COUNT( ALL 89 ) / + - COUNT( * ) + + CASE - 45 WHEN - 24 THEN + + 29 WHEN + AVG ( DISTINCT + 54 ) THEN - + 16 END * + - 82 * + CASE - 17 WHEN 40 THEN - 34 * - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT NULLIF ( - 38, + 45 ) * COUNT ( ALL 89 ) / + - COUNT ( * ) + + CASE - 45 WHEN - 24 THEN + + 29 WHEN + AVG ( DISTINCT + 54 ) THEN - + 16 END * + - 82 * + CASE - 17 WHEN 40 THEN - 34 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 24 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL - MAX( ALL + 35 ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - MAX ( ALL + 35 ) col2
----
-35

query I rowsort
SELECT ALL 36 + 56 * 57
----
3228

query I rowsort
SELECT 13 + - + ( + 68 ) + 66 - 31 AS col2
----
-20

query I rowsort
SELECT ALL + 54 * + 19 AS col1
----
1026

query I rowsort
SELECT ALL - COALESCE ( - 8, - 51, 96 + 46 ) + - ( - + 11 )
----
19

query I rowsort
SELECT 3 + 2 + + 7 col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT - ( - 53 ) * - + 18 - - - SUM( - CAST( - + 91 AS SIGNED ) ) + + 79 - + + 87 AS col0
----
-1053

skipif mysql # not compatible
query I rowsort label-9642
SELECT - ( - 53 ) * - + 18 - - - SUM ( - CAST ( - + 91 AS INTEGER ) ) + + 79 - + + 87 AS col0
----
-1053

query II rowsort
SELECT ALL - ( + 63 ) AS col1, - 85
----
-63
-85

query I rowsort
SELECT 12 + 9 AS col2
----
21

query I rowsort
SELECT 48 - 76
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT - CAST( - 23 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT - CAST ( - 23 AS INTEGER ) AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9647
SELECT DISTINCT - SUM( DISTINCT 49 ) AS col0, + CASE CASE - 41 WHEN - 25 * - + 34 * 52 THEN + + ( + + 89 ) + - 69 WHEN - 63 / 93 + 42 + - ( + + 74 ) * - + ( 50 ) THEN + 67 + - 12 + ( - 5 ) + + ( + + 34 ) END WHEN + - 94 * + + 55 + - 72 THEN - - CASE + COUNT( * ) WHEN - 17 + 52 THEN NULL WHEN 20 * 83 THEN NULL ELSE + ( + 51 ) END WHEN - + 26 * + COALESCE ( + - 70, 42 + + 22 ) / - 20 * CAST( NULL AS SIGNED ) + 27 THEN 3 END AS col1
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-9647
SELECT DISTINCT - SUM ( DISTINCT 49 ) AS col0, + CASE CASE - 41 WHEN - 25 * - + 34 * 52 THEN + + ( + + 89 ) + - 69 WHEN - 63 / 93 + 42 + - ( + + 74 ) * - + ( 50 ) THEN + 67 + - 12 + ( - 5 ) + + ( + + 34 ) END WHEN + - 94 * + + 55 + - 72 THEN - - CASE + COUNT ( * ) WHEN - 17 + 52 THEN NULL WHEN 20 * 83 THEN NULL ELSE + ( + 51 ) END WHEN - + 26 * + COALESCE ( + - 70, 42 + + 22 ) / - 20 * CAST ( NULL AS INTEGER ) + 27 THEN 3 END AS col1
----
-49
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT DISTINCT - NULLIF ( - - 53, 74 ) - CAST( NULL AS SIGNED ) * - AVG ( ALL + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT - NULLIF ( - - 53, 74 ) - CAST ( NULL AS INTEGER ) * - AVG ( ALL + 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL - MAX( DISTINCT 81 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - MAX ( DISTINCT 81 ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT DISTINCT - MIN( ALL 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT - MIN ( ALL 13 ) AS col1
----
-13

query I rowsort
SELECT + ( - 52 ) + + 87
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL - 48 * - SUM( 77 ) + + 34 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL - 48 * - SUM ( 77 ) + + 34 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 93 * 13 AS col0
----
-1209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9654
SELECT DISTINCT - COUNT( * ) DIV + - 85 + - + 53 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - COUNT ( * ) / + - 85 + - + 53 / 62 AS col0
----
0

query I rowsort
SELECT 13 * - 72 * + 13
----
-12168

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT - COUNT( * ) * - + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9656
SELECT - COUNT ( * ) * - + 1 AS col2
----
1

query I rowsort
SELECT 3 + 15 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT CASE + 2 WHEN 86 THEN NULL WHEN - 2 THEN - - 95 ELSE NULL END * - 85 + + COUNT( * ) + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT CASE + 2 WHEN 86 THEN NULL WHEN - 2 THEN - - 95 ELSE NULL END * - 85 + + COUNT ( * ) + - 73 AS col0
----
NULL

query II rowsort
SELECT 14 AS col0, + 32 * + 64
----
14
2048

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9660
SELECT + AVG ( - + COALESCE ( + 66, ( ( - 88 ) ), + - 35, - 66 * - 96 + + CAST( NULL AS DECIMAL ) + 78 + - 48 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT + AVG ( - + COALESCE ( + 66, ( ( - 88 ) ), + - 35, - 66 * - 96 + + CAST ( NULL AS REAL ) + 78 + - 48 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 43 * + 52
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT DISTINCT + 85 * + + COUNT( * ) * 53 + - + 8 AS col2
----
4497

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT + 85 * + + COUNT ( * ) * 53 + - + 8 AS col2
----
4497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT CAST( NULL AS SIGNED ) + + ( - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT CAST ( NULL AS INTEGER ) + + ( - 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - CASE + 7 WHEN + + COUNT( * ) THEN NULL ELSE + 49 END
----
-49

skipif mysql # not compatible
query I rowsort label-9664
SELECT - CASE + 7 WHEN + + COUNT ( * ) THEN NULL ELSE + 49 END
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9665
SELECT ALL + CASE - + 35 WHEN 4 + - - 82 THEN NULL WHEN + - 9 THEN - 20 DIV 27 * NULLIF ( 43, - - 89 * + 92 * + ( - MIN( ALL + 7 ) ) * - ( - - 64 ) DIV + + 69 ) ELSE - 54 END * - - 69 AS col2
----
-3726

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + CASE - + 35 WHEN 4 + - - 82 THEN NULL WHEN + - 9 THEN - 20 / 27 * NULLIF ( 43, - - 89 * + 92 * + ( - MIN ( ALL + 7 ) ) * - ( - - 64 ) / + + 69 ) ELSE - 54 END * - - 69 AS col2
----
-3726

query I rowsort
SELECT - 23 + - 40 + + 51 * NULLIF ( - 92, 43 * - 36 * + 46 ) AS col1
----
-4755

query I rowsort
SELECT 93 + - - 56 * + 74
----
4237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT DISTINCT + 69 + + + CASE - 3 WHEN - COUNT( * ) THEN - - COUNT( * ) ELSE ( - + CAST( - + 29 AS SIGNED ) ) END - + - 29
----
127

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + 69 + + + CASE - 3 WHEN - COUNT ( * ) THEN - - COUNT ( * ) ELSE ( - + CAST ( - + 29 AS INTEGER ) ) END - + - 29
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9669
SELECT 23 + + - ( ( - CAST( NULL AS SIGNED ) ) ) * + COUNT( * ), 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-9669
SELECT 23 + + - ( ( - CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ), 83 AS col1
----
NULL
83

query I rowsort
SELECT 94 + + + 93 col1
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT 7 * - + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9671
SELECT 7 * - + COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT ALL 95 * + + 89 AS col0
----
8455

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL - SUM( DISTINCT 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - SUM ( DISTINCT 48 ) AS col2
----
-48

query I rowsort
SELECT ALL + 48 * 51 + + 11
----
2459

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9675
SELECT 38 + + 59 + - CASE - 7 WHEN 58 THEN + 8 * + 38 + 73 WHEN - ( 83 ) THEN NULL END * - 72 * COUNT( * ) * - CASE - NULLIF ( - MIN( DISTINCT + - 67 ), CAST( AVG ( ALL 72 ) AS DECIMAL ) ) WHEN + 32 * 82 THEN 73 ELSE NULL END * - 41 + 63 * - 76 * - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT 38 + + 59 + - CASE - 7 WHEN 58 THEN + 8 * + 38 + 73 WHEN - ( 83 ) THEN NULL END * - 72 * COUNT ( * ) * - CASE - NULLIF ( - MIN ( DISTINCT + - 67 ), CAST ( AVG ( ALL 72 ) AS REAL ) ) WHEN + 32 * 82 THEN 73 ELSE NULL END * - 41 + 63 * - 76 * - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - MIN( ALL - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - MIN ( ALL - 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT - CASE + COUNT( * ) WHEN - 28 THEN NULL WHEN - - 97 THEN + + 58 ELSE 56 END * - 65 + + - 77 + COUNT( * )
----
3564

skipif mysql # not compatible
query I rowsort label-9677
SELECT - CASE + COUNT ( * ) WHEN - 28 THEN NULL WHEN - - 97 THEN + + 58 ELSE 56 END * - 65 + + - 77 + COUNT ( * )
----
3564

onlyif mysql # aggregate syntax: 
query II rowsort label-9678
SELECT MAX( + 5 ), - 22 + 35 + + 82 AS col2
----
5
95

skipif mysql # not compatible
query II rowsort label-9678
SELECT MAX ( + 5 ), - 22 + 35 + + 82 AS col2
----
5
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT DISTINCT + 38 * - + 16 - - 56 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + 38 * - + 16 - - 56 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT + 0 * COUNT( * ) * - 43 * - - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9680
SELECT + 0 * COUNT ( * ) * - 43 * - - 87 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9681
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) AS col0, CASE + 16 WHEN + 16 THEN NULL WHEN + ( - 37 ) THEN NULL ELSE + COUNT( * ) - 49 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9681
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0, CASE + 16 WHEN + 16 THEN NULL WHEN + ( - 37 ) THEN NULL ELSE + COUNT ( * ) - 49 END
----
NULL
NULL

query I rowsort
SELECT ALL - 8 * + 42 - + + 75
----
-411

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT - 91 DIV + ( 28 ) + - 54
----
-57

skipif mysql # not compatible
query I rowsort label-9683
SELECT - 91 / + ( 28 ) + - 54
----
-57

query I rowsort
SELECT - 0 * 76 * - - CASE + - 11 WHEN - - 50 * + + COALESCE ( - ( - 74 ), 96 * - 48 + 77 + 31 ) THEN 68 END + + + ( - 75 ) - 44 * + + 68 + 74
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9685
SELECT - + 36 DIV - ( + 59 ), 22 + - 38 - - NULLIF ( + 98, + 8 * - + 87 ) DIV 48 AS col1
----
0
-14

skipif mysql # not compatible
query II rowsort label-9685
SELECT - + 36 / - ( + 59 ), 22 + - 38 - - NULLIF ( + 98, + 8 * - + 87 ) / 48 AS col1
----
0
-14

query I rowsort
SELECT ALL ( - + 46 ) AS col0
----
-46

query I rowsort
SELECT ALL - - 28 + + 94 - ( + - 55 ) - + - 66
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - ( ( 65 ) ) + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9688
SELECT - ( ( 65 ) ) + COUNT ( * )
----
-64

query I rowsort
SELECT + + 71 - 20 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL ( 79 ) + + COUNT( * ) col2
----
80

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL ( 79 ) + + COUNT ( * ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9691
SELECT DISTINCT + 45 + + CASE - 9 WHEN + 47 THEN - COALESCE ( - + CAST( NULL AS SIGNED ), + CASE + 57 WHEN - + COUNT( * ) - + COUNT( * ) THEN NULLIF ( 10, + CASE 93 WHEN + 54 + 42 THEN + 87 + + - 56 END ) ELSE + 98 * + 84 END + + + 86 * - 4 ) ELSE 75 + + 99 + - 95 + - 76 DIV - - ( + 61 ) END * - 12
----
-891

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT + 45 + + CASE - 9 WHEN + 47 THEN - COALESCE ( - + CAST ( NULL AS INTEGER ), + CASE + 57 WHEN - + COUNT ( * ) - + COUNT ( * ) THEN NULLIF ( 10, + CASE 93 WHEN + 54 + 42 THEN + 87 + + - 56 END ) ELSE + 98 * + 84 END + + + 86 * - 4 ) ELSE 75 + + 99 + - 95 + - 76 / - - ( + 61 ) END * - 12
----
-891

query I rowsort
SELECT + 90 + 14 * ( + - 76 ) AS col2
----
-974

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT - 82 * - + COUNT( * ) * - + 42 * - + 55 * - 81
----
-15343020

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - 82 * - + COUNT ( * ) * - + 42 * - + 55 * - 81
----
-15343020

query I rowsort
SELECT ALL + 27 + + + 98 AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT - NULLIF ( 72, - ( - CAST( NULL AS SIGNED ) ) + + + 66 * + 73 * + COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-9695
SELECT - NULLIF ( 72, - ( - CAST ( NULL AS INTEGER ) ) + + + 66 * + 73 * + COUNT ( * ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT - 95 + + CASE + 11 WHEN - 63 THEN NULL ELSE - 54 END + - COUNT( * ) col2
----
-150

skipif mysql # not compatible
query I rowsort label-9696
SELECT - 95 + + CASE + 11 WHEN - 63 THEN NULL ELSE - 54 END + - COUNT ( * ) col2
----
-150

query I rowsort
SELECT - CASE 67 WHEN + 60 * - 73 * - 30 THEN 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9698
SELECT + 36 * - - COALESCE ( + - 72, + 11, COUNT( * ) * + MIN( DISTINCT - 58 ) ) * COUNT( * ) AS col2, + ( + - 18 ) + - ( + ( - 7 ) ) + + - COUNT( * ) * - - 65 DIV 73
----
-2592
-11

skipif mysql # not compatible
query II rowsort label-9698
SELECT + 36 * - - COALESCE ( + - 72, + 11, COUNT ( * ) * + MIN ( DISTINCT - 58 ) ) * COUNT ( * ) AS col2, + ( + - 18 ) + - ( + ( - 7 ) ) + + - COUNT ( * ) * - - 65 / 73
----
-2592
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT ALL 42 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL 42 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT 0 * - + MIN( + 59 ) + - + CASE 90 WHEN 57 + + 41 THEN + + 42 END * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT 0 * - + MIN ( + 59 ) + - + CASE 90 WHEN 57 + + 41 THEN + + 42 END * 46
----
NULL

query I rowsort
SELECT + 65 * - 68
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + CASE + 37 WHEN - - 70 THEN 96 * 45 ELSE - SUM( - - 4 ) END
----
-4

skipif mysql # not compatible
query I rowsort label-9702
SELECT + CASE + 37 WHEN - - 70 THEN 96 * 45 ELSE - SUM ( - - 4 ) END
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT - 14 * - 14 + + + COUNT( * ), COUNT( * ) * - MIN( DISTINCT 69 ) AS col1
----
197
-69

skipif mysql # not compatible
query II rowsort label-9703
SELECT - 14 * - 14 + + + COUNT ( * ), COUNT ( * ) * - MIN ( DISTINCT 69 ) AS col1
----
197
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT ALL 6 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL 6 / 49
----
0

query I rowsort
SELECT + 18 + - 67 col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9707
SELECT ALL + COUNT( * ) AS col2, 38 AS col2
----
1
38

skipif mysql # not compatible
query II rowsort label-9707
SELECT ALL + COUNT ( * ) AS col2, 38 AS col2
----
1
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9708
SELECT + AVG ( - + 13 ) + + SUM( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT + AVG ( - + 13 ) + + SUM ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT + COALESCE ( 12, - 96, - CAST( NULL AS SIGNED ) ) * - 74
----
-888

skipif mysql # not compatible
query I rowsort label-9709
SELECT + COALESCE ( 12, - 96, - CAST ( NULL AS INTEGER ) ) * - 74
----
-888

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9710
SELECT + CAST( NULL AS DECIMAL ), + 89 col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-9710
SELECT + CAST ( NULL AS REAL ), + 89 col2
----
NULL
89

query I rowsort
SELECT + - 57 + 95 * 93
----
8778

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT MIN( 5 ) * - 10 - 59 / 57 * + NULLIF ( COUNT( * ), COUNT( * ) ), 48 + 57 AS col2
----
NULL
105

skipif mysql # not compatible
query II rowsort label-9712
SELECT MIN ( 5 ) * - 10 - 59 / 57 * + NULLIF ( COUNT ( * ), COUNT ( * ) ), 48 + 57 AS col2
----
NULL
105

query I rowsort
SELECT + 28 * 97
----
2716

query II rowsort
SELECT + 6 AS col1, 41 + - + 86 AS col2
----
6
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + - COUNT( * ) * - - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9715
SELECT + - COUNT ( * ) * - - 32 AS col1
----
-32

query II rowsort
SELECT ALL + 63, 72 AS col0
----
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL - 81 * 0 + - COUNT( 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - 81 * 0 + - COUNT ( 51 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT - 45 * - 83 * COUNT( * ) * + - 51 * - - 59 + - ( + COALESCE ( 75, + COALESCE ( + - 91, 16 ) ) ) AS col1
----
-11238690

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - 45 * - 83 * COUNT ( * ) * + - 51 * - - 59 + - ( + COALESCE ( 75, + COALESCE ( + - 91, 16 ) ) ) AS col1
----
-11238690

query I rowsort
SELECT + COALESCE ( 1, 40 )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( - 74, - - 2 ) * - 15 + - ( 22 ) * - 75 * 15 AS col1
----
25860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9721
SELECT ALL + 2 * - - 16 * - COUNT( * ) * - ( - 48 ) + 17 + 8 * - 9 + COALESCE ( + - 94, - - COUNT( * ) - + - 20 + CAST( - 87 AS SIGNED ) ) + - - NULLIF ( + 17, CAST( - - 85 AS DECIMAL ) ) - + - COUNT( * ) * + 3 DIV + 49 * + + 76 + MIN( 42 ) * - 97
----
-5742

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + 2 * - - 16 * - COUNT ( * ) * - ( - 48 ) + 17 + 8 * - 9 + COALESCE ( + - 94, - - COUNT ( * ) - + - 20 + CAST ( - 87 AS INTEGER ) ) + - - NULLIF ( + 17, CAST ( - - 85 AS REAL ) ) - + - COUNT ( * ) * + 3 / + 49 * + + 76 + MIN ( 42 ) * - 97
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT - 96 + 6 + 90 * - + 43 * - + COUNT( DISTINCT - + 92 ) * + COUNT( * ) * + 78 + + 69 * 59
----
305841

skipif mysql # not compatible
query I rowsort label-9722
SELECT - 96 + 6 + 90 * - + 43 * - + COUNT ( DISTINCT - + 92 ) * + COUNT ( * ) * + 78 + + 69 * 59
----
305841

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9723
SELECT - - 45, - COUNT( + 20 ) DIV COUNT( * ) AS col2
----
45
-1

skipif mysql # not compatible
query II rowsort label-9723
SELECT - - 45, - COUNT ( + 20 ) / COUNT ( * ) AS col2
----
45
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + - 66 * + 66 - + 55 + + - SUM( - 52 ) + - - ( COUNT( * ) )
----
-4358

skipif mysql # not compatible
query I rowsort label-9724
SELECT + - 66 * + 66 - + 55 + + - SUM ( - 52 ) + - - ( COUNT ( * ) )
----
-4358

query I rowsort
SELECT - 84 * + ( - 53 ) + - 82
----
4370

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT - 28 DIV + 17 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9726
SELECT - 28 / + 17 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9727
SELECT 18 AS col2, CAST( - + 93 AS SIGNED ) - ( + - 85 ) - + 85 * 11 AS col0
----
18
-943

skipif mysql # not compatible
query II rowsort label-9727
SELECT 18 AS col2, CAST ( - + 93 AS INTEGER ) - ( + - 85 ) - + 85 * 11 AS col0
----
18
-943

query I rowsort
SELECT ALL - 20 + - 90
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT - 85 * ( + - 50 ) + - CAST( + 69 AS SIGNED )
----
4181

skipif mysql # not compatible
query I rowsort label-9729
SELECT - 85 * ( + - 50 ) + - CAST ( + 69 AS INTEGER )
----
4181

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT DISTINCT - MIN( ALL - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - MIN ( ALL - 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT - 59 - + - COUNT( * ) * ( - 4 ) - + 66 * - 47
----
3039

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT - 59 - + - COUNT ( * ) * ( - 4 ) - + 66 * - 47
----
3039

query I rowsort
SELECT - 8 + + + 61
----
53

query I rowsort
SELECT ALL ( ( 76 ) ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL + COUNT( * ) - + + 43
----
-42

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + COUNT ( * ) - + + 43
----
-42

query I rowsort
SELECT - 84 * + + 15 AS col2
----
-1260

query I rowsort
SELECT - 54 * - 38 AS col0
----
2052

query I rowsort
SELECT - 78 + + 11 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT - CASE - + 20 WHEN NULLIF ( 13, + - 32 * + 84 * 23 / CAST( ( - 89 ) AS SIGNED ) * + 2 ) + 30 THEN NULL WHEN + + 36 * + 36 + + + COUNT( * ) + + 40 THEN + - ( - 36 ) * COUNT( * ) * 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT - CASE - + 20 WHEN NULLIF ( 13, + - 32 * + 84 * 23 / CAST ( ( - 89 ) AS INTEGER ) * + 2 ) + 30 THEN NULL WHEN + + 36 * + 36 + + + COUNT ( * ) + + 40 THEN + - ( - 36 ) * COUNT ( * ) * 12 END
----
NULL

query I rowsort
SELECT DISTINCT - 50 * + - 13
----
650

query I rowsort
SELECT 22 * 21 AS col0
----
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT DISTINCT - CAST( 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - CAST ( 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9742
SELECT 66 * 65 * - 46 * + - 44 AS col0, COUNT( * ) AS col1
----
8682960
1

skipif mysql # not compatible
query II rowsort label-9742
SELECT 66 * 65 * - 46 * + - 44 AS col0, COUNT ( * ) AS col1
----
8682960
1

query I rowsort
SELECT 37 * + - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9744
SELECT 57 DIV COUNT( * ), 48 DIV MIN( ALL + + 46 ) - + 24 AS col0
----
57
-23

skipif mysql # not compatible
query II rowsort label-9744
SELECT 57 / COUNT ( * ), 48 / MIN ( ALL + + 46 ) - + 24 AS col0
----
57
-23

query I rowsort
SELECT ALL + - 37 + - 4 AS col0
----
-41

query I rowsort
SELECT DISTINCT + + 87 + - 89 + - - 76 * - 27 * + - ( - + 90 ) + 43 AS col1
----
-184639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT ALL + 39 + + - 52 - + - CAST( NULL AS SIGNED ) - - AVG ( + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL + 39 + + - 52 - + - CAST ( NULL AS INTEGER ) - - AVG ( + 51 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9748
SELECT 80 DIV + - ( + COUNT( * ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9748
SELECT 80 / + - ( + COUNT ( * ) ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - 64 + + - 9 + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - 64 + + - 9 + COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT DISTINCT 41 * + 19 AS col1
----
779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT COUNT( * ) * + - CASE 61 WHEN ( + 50 ) + - 68 * 20 THEN NULL WHEN + COUNT( * ) THEN ( CASE 97 WHEN 51 * - 50 + - 75 + - 50 * 71 THEN + 17 + + CAST( NULL AS SIGNED ) ELSE - 95 END ) END * + + 20 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT COUNT ( * ) * + - CASE 61 WHEN ( + 50 ) + - 68 * 20 THEN NULL WHEN + COUNT ( * ) THEN ( CASE 97 WHEN 51 * - 50 + - 75 + - 50 * 71 THEN + 17 + + CAST ( NULL AS INTEGER ) ELSE - 95 END ) END * + + 20 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 20 - + + 9 + - 60 * - - ( + 8 ) col0, + 65 AS col1
----
-469
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + MIN( DISTINCT - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9753
SELECT + MIN ( DISTINCT - 90 ) AS col0
----
-90

query I rowsort
SELECT ALL - 15 + + - 76 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT CAST( NULL AS SIGNED ) + + 53 * + + 2 * + MAX( ALL 91 ) * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT CAST ( NULL AS INTEGER ) + + 53 * + + 2 * + MAX ( ALL 91 ) * + 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 21 - + 9
----
-30

query I rowsort
SELECT DISTINCT 31 * - ( 93 )
----
-2883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9758
SELECT MIN( + ( + + 17 ) ) + + CAST( NULL AS SIGNED ) + + AVG ( 37 ) - + CAST( NULL AS DECIMAL ) - - - 41 + + COUNT( ALL + + 15 ) * + CAST( - COUNT( - + 92 ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT MIN ( + ( + + 17 ) ) + + CAST ( NULL AS INTEGER ) + + AVG ( 37 ) - + CAST ( NULL AS REAL ) - - - 41 + + COUNT ( ALL + + 15 ) * + CAST ( - COUNT ( - + 92 ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 51 - + 61
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9760
SELECT ALL 73 AS col1, - COUNT( * ) - + ( + + COUNT( DISTINCT 16 ) )
----
73
-2

skipif mysql # not compatible
query II rowsort label-9760
SELECT ALL 73 AS col1, - COUNT ( * ) - + ( + + COUNT ( DISTINCT 16 ) )
----
73
-2

query I rowsort
SELECT 47 * - + ( + ( - 8 ) )
----
376

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT DISTINCT + 92 DIV 6
----
15

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT + 92 / 6
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT COUNT( * ) + + 73 - - 6 AS col1, - 78 AS col0
----
80
-78

skipif mysql # not compatible
query II rowsort label-9763
SELECT COUNT ( * ) + + 73 - - 6 AS col1, - 78 AS col0
----
80
-78

query I rowsort
SELECT 63 - + 56 + + 74 * + ( 34 ) + + 76
----
2599

query I rowsort
SELECT ALL + 74 + - 87
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT 37 + + NULLIF ( + COUNT( * ), 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT 37 + + NULLIF ( + COUNT ( * ), 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT SUM( + 46 ) * + COUNT( * ) + - 80 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9767
SELECT SUM ( + 46 ) * + COUNT ( * ) + - 80 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT 82 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT 82 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL - 2 + - NULLIF ( - COUNT( * ), + 57 * - ( + 22 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - 2 + - NULLIF ( - COUNT ( * ), + 57 * - ( + 22 ) ) AS col2
----
-1

query I rowsort
SELECT 3 + + + 40 AS col0
----
43

query I rowsort
SELECT ALL + 68 + - 43 + + + 21 + + + 60 col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL COUNT( ALL 24 ) + - 51 - 45 + - 10
----
-105

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL COUNT ( ALL 24 ) + - 51 - 45 + - 10
----
-105

query II rowsort
SELECT + 3 col2, ( 32 ) AS col1
----
3
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9774
SELECT DISTINCT - 23, COALESCE ( - 22, + COUNT( * ) ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) + - 16 AS col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT - 23, COALESCE ( - 22, + COUNT ( * ) ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 16 AS col1
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT 26 * - + COUNT( + 15 ) - - NULLIF ( + 52, + ( - COUNT( * ) ) ) + - 14 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9775
SELECT 26 * - + COUNT ( + 15 ) - - NULLIF ( + 52, + ( - COUNT ( * ) ) ) + - 14 AS col2
----
12

query I rowsort
SELECT - 17 + - 58
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ( - 18 ) * + COUNT( * ) + - - NULLIF ( 32, - + 74 * + - 59 + COUNT( * ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9777
SELECT ( - 18 ) * + COUNT ( * ) + - - NULLIF ( 32, - + 74 * + - 59 + COUNT ( * ) ) AS col0
----
14

query I rowsort
SELECT - 1 + + 26 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL MIN( - 19 ) - - + 2 + + - 86 + + ( + 33 ) - + + 34
----
-104

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL MIN ( - 19 ) - - + 2 + + - 86 + + ( + 33 ) - + + 34
----
-104

query I rowsort
SELECT ALL - + NULLIF ( + 27, - 63 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT + 25 - - 37 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL + NULLIF ( + 70, - 21 ) * + - CASE + - 38 WHEN + + 15 * + 77 + + 29 + + - 36 THEN - + 85 * CASE + 3 WHEN - ( + 69 ) * + 56 THEN COUNT( * ) WHEN - 4 / - - 10 * - - 54 THEN NULL ELSE + - COUNT( * ) / - 40 * + + 14 END + ( - 42 ) + - + 7 - 44 + 20 * + + ( + + COUNT( * ) ) * + 65 WHEN COUNT( * ) + + 8 THEN - + 53 / - CAST( - 16 AS SIGNED ) + + + ( + - 64 ) * - + 43 END / + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + NULLIF ( + 70, - 21 ) * + - CASE + - 38 WHEN + + 15 * + 77 + + 29 + + - 36 THEN - + 85 * CASE + 3 WHEN - ( + 69 ) * + 56 THEN COUNT ( * ) WHEN - 4 / - - 10 * - - 54 THEN NULL ELSE + - COUNT ( * ) / - 40 * + + 14 END + ( - 42 ) + - + 7 - 44 + 20 * + + ( + + COUNT ( * ) ) * + 65 WHEN COUNT ( * ) + + 8 THEN - + 53 / - CAST ( - 16 AS INTEGER ) + + + ( + - 64 ) * - + 43 END / + 22 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9783
SELECT + CAST( + 92 AS SIGNED ) + 41 AS col1, 20
----
133
20

skipif mysql # not compatible
query II rowsort label-9783
SELECT + CAST ( + 92 AS INTEGER ) + 41 AS col1, 20
----
133
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL + - COUNT( * ) * + - 79
----
79

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + - COUNT ( * ) * + - 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9785
SELECT 44 + + MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT 44 + + MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 59 * - 77 AS col1
----
-4543

query I rowsort
SELECT ALL 59 * 32 col1
----
1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9788
SELECT - 95 AS col0, - 97 + - - 86 + MIN( DISTINCT - + 32 ) + - - 93 + - + 49 * COUNT( * ) + - 61 + - 18 - - 27 * - 30 / AVG ( DISTINCT CASE - - 90 WHEN + 28 THEN NULL WHEN 49 THEN - NULLIF ( CAST( NULL AS SIGNED ), + 73 * - 27 ) WHEN 0 THEN NULL END ) * + 45
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-9788
SELECT - 95 AS col0, - 97 + - - 86 + MIN ( DISTINCT - + 32 ) + - - 93 + - + 49 * COUNT ( * ) + - 61 + - 18 - - 27 * - 30 / AVG ( DISTINCT CASE - - 90 WHEN + 28 THEN NULL WHEN 49 THEN - NULLIF ( CAST ( NULL AS INTEGER ), + 73 * - 27 ) WHEN 0 THEN NULL END ) * + 45
----
-95
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT CAST( NULL AS SIGNED ) / 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT CAST ( NULL AS INTEGER ) / 62 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 0 col2, 65
----
0
65

query I rowsort
SELECT + 49 * 26
----
1274

query I rowsort
SELECT - CASE + 65 WHEN 2 * - 48 + + 15 - - + 84 * - 27 THEN NULL WHEN - 83 * - 83 THEN 8 / + + 42 + + 78 + 96 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + 13 + MAX( DISTINCT 31 ) col1
----
44

skipif mysql # not compatible
query I rowsort label-9793
SELECT + 13 + MAX ( DISTINCT 31 ) col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT DISTINCT 57 AS col0, + COUNT( * )
----
57
1

skipif mysql # not compatible
query II rowsort label-9794
SELECT DISTINCT 57 AS col0, + COUNT ( * )
----
57
1

onlyif mysql # aggregate syntax: 
query III rowsort label-9795
SELECT DISTINCT 11 AS col0, - 57 * - - MIN( - 99 ) AS col2, 57 AS col1
----
11
5643
57

skipif mysql # not compatible
query III rowsort label-9795
SELECT DISTINCT 11 AS col0, - 57 * - - MIN ( - 99 ) AS col2, 57 AS col1
----
11
5643
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT + 18 + ( + 35 ) - + - MAX( - 27 ) - 9, 40 AS col1
----
17
40

skipif mysql # not compatible
query II rowsort label-9796
SELECT + 18 + ( + 35 ) - + - MAX ( - 27 ) - 9, 40 AS col1
----
17
40

query II rowsort
SELECT 82, + 82
----
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - MAX( DISTINCT + + 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-9798
SELECT - MAX ( DISTINCT + + 35 ) col0
----
-35

query I rowsort
SELECT ALL ( - + 50 ) + + 24
----
-26

query I rowsort
SELECT + 82 * - 54
----
-4428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9801
SELECT + 41 - + 24 + 72 + + CASE - 71 WHEN - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * 18 / - 0 - + ( 29 ) THEN - 49 - ( + + 93 ) ELSE - ( MAX( + 39 ) ) END - - 66 + ( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * 29 + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT + 41 - + 24 + 72 + + CASE - 71 WHEN - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * 18 / - 0 - + ( 29 ) THEN - 49 - ( + + 93 ) ELSE - ( MAX ( + 39 ) ) END - - 66 + ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * 29 + - 65
----
NULL

query I rowsort
SELECT - NULLIF ( - 97, 30 )
----
97

query I rowsort
SELECT - 65 + 72 * - 52 AS col1
----
-3809

query I rowsort
SELECT DISTINCT 70 + + ( + 17 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - ( + MIN( + 31 ) ) + - 53
----
-84

skipif mysql # not compatible
query I rowsort label-9805
SELECT - ( + MIN ( + 31 ) ) + - 53
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT MAX( DISTINCT + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT MAX ( DISTINCT + 34 ) AS col1
----
34

query II rowsort
SELECT ALL 43 AS col0, - 89 col2
----
43
-89

query I rowsort
SELECT ALL 91 + + COALESCE ( - COALESCE ( - 33, + - 75 ), - ( + 15 ) ) - + 78 * 20 * + 68 + + 60 AS col0
----
-105896

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT ALL - 31 AS col0, MIN( ALL - 10 ) + - 28 AS col1
----
-31
-38

skipif mysql # not compatible
query II rowsort label-9809
SELECT ALL - 31 AS col0, MIN ( ALL - 10 ) + - 28 AS col1
----
-31
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT DISTINCT + + 0 AS col0, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9810
SELECT DISTINCT + + 0 AS col0, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL + - COUNT( * ) * - 67 * + - NULLIF ( 57, + 8 / 47 + 38 ) * + + COUNT( * ) + - 10 + 83 / + 15 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL + - COUNT ( * ) * - 67 * + - NULLIF ( 57, + 8 / 47 + 38 ) * + + COUNT ( * ) + - 10 + 83 / + 15 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 79 * + - 69 AS col0
----
-5451

query II rowsort
SELECT + 75 AS col2, 37 * + 64 + - 38 AS col2
----
75
2330

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT ALL - - 69 DIV 2 * + 43 AS col2
----
1462

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL - - 69 / 2 * + 43 AS col2
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT - MIN( - + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9815
SELECT - MIN ( - + 62 )
----
62

query I rowsort
SELECT DISTINCT + 23 * + ( ( + 59 ) ) col0
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + - SUM( + 60 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + - SUM ( + 60 ) col2
----
-60

query I rowsort
SELECT ALL + + 65 * - 69 * + - 6 * - 91 - - 28 AS col0
----
-2448782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT + - 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + - 15 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 74 * - 35 * - + ( + - 14 ) - - 47 AS col1
----
36307

query I rowsort
SELECT - 18 + - - 40 * + + ( - - 77 ) - + 12 * + ( + + 91 ) + - 89
----
1881

query II rowsort
SELECT 49 col1, - 22
----
49
-22

query II rowsort
SELECT 74 AS col1, + NULLIF ( - 77, + ( AVG ( - 13 ) ) )
----
74
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - - 38 * + 89 + MAX( ALL - 8 ) col0
----
3374

skipif mysql # not compatible
query I rowsort label-9824
SELECT - - 38 * + 89 + MAX ( ALL - 8 ) col0
----
3374

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT ALL - 10 DIV + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - 10 / + 17 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT - 19 * - ( - 75 ) * + MAX( DISTINCT + - 20 ) * + 98 + + 64 + 91 AS col2
----
2793155

skipif mysql # not compatible
query I rowsort label-9826
SELECT - 19 * - ( - 75 ) * + MAX ( DISTINCT + - 20 ) * + 98 + + 64 + 91 AS col2
----
2793155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9827
SELECT + 77 + + - 25 / - MIN( ALL + CAST( NULL AS SIGNED ) ) - + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + 77 + + - 25 / - MIN ( ALL + CAST ( NULL AS INTEGER ) ) - + 65 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT DISTINCT - SUM( + - 56 ) * - ( + 99 ) * + + 67 * - - 35 * - + 7 - + MIN( + 55 )
----
91004705

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT - SUM ( + - 56 ) * - ( + 99 ) * + + 67 * - - 35 * - + 7 - + MIN ( + 55 )
----
91004705

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + 38 + ( - + COUNT( * ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 38 + ( - + COUNT ( * ) ) AS col1
----
37

query I rowsort
SELECT - COALESCE ( - ( - - 51 ), 0 )
----
51

query I rowsort
SELECT ALL 77 + + + 81 * - 54
----
-4297

query I rowsort
SELECT - 83 * CASE 49 WHEN - 38 THEN NULL ELSE + - 48 END AS col0
----
3984

query I rowsort
SELECT - ( - - 36 ) AS col2
----
-36

query I rowsort
SELECT - NULLIF ( + + 64, + 24 - - 98 )
----
-64

query I rowsort
SELECT ALL 23 + + + 46
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT MIN( ALL + NULLIF ( 16, + - 82 ) ) + - - ( - + 3 ) * + - 5 col0
----
31

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT MIN ( ALL + NULLIF ( 16, + - 82 ) ) + - - ( - + 3 ) * + - 5 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL 89 + + + COUNT( * ) col0
----
90

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 89 + + + COUNT ( * ) col0
----
90

query I rowsort
SELECT + + 72 + + - CASE 85 WHEN - 56 + + + 22 THEN - + 90 END
----
NULL

query I rowsort
SELECT + - ( + 98 ) + + + 77 * 95 AS col2
----
7217

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL COALESCE ( 50, + 59, + - 45 * - COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL COALESCE ( 50, + 59, + - 45 * - COUNT ( * ) )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT DISTINCT + COALESCE ( - - COUNT( * ), + 49 DIV - 49 - + 70 + + + 58 + - 99 * - 23 * + + 79 ) DIV 33 * - - 57 - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT + COALESCE ( - - COUNT ( * ), + 49 / - 49 - + 70 + + + 58 + - 99 * - 23 * + + 79 ) / 33 * - - 57 - 43 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT 31 DIV + 76 + + 82 + + COUNT( * ) - - ( 72 ) * 34 DIV + 66
----
120

skipif mysql # not compatible
query I rowsort label-9842
SELECT 31 / + 76 + + 82 + + COUNT ( * ) - - ( 72 ) * 34 / + 66
----
120

query I rowsort
SELECT ALL 92 * 54
----
4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9844
SELECT + COUNT( * ) + ( - CAST( + 10 AS SIGNED ) ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9844
SELECT + COUNT ( * ) + ( - CAST ( + 10 AS INTEGER ) ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT MIN( 12 ) * 70 + - 41 * - COUNT( * ) - + 39
----
842

skipif mysql # not compatible
query I rowsort label-9845
SELECT MIN ( 12 ) * 70 + - 41 * - COUNT ( * ) - + 39
----
842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9846
SELECT + + COUNT( ALL 80 ) AS col1, CAST( - CASE + ( - 67 ) WHEN - CAST( NULL AS SIGNED ) * - AVG ( - 64 ) THEN - 2 WHEN + 3 THEN 24 ELSE NULL END AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9846
SELECT + + COUNT ( ALL 80 ) AS col1, CAST ( - CASE + ( - 67 ) WHEN - CAST ( NULL AS INTEGER ) * - AVG ( - 64 ) THEN - 2 WHEN + 3 THEN 24 ELSE NULL END AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9847
SELECT - + 64 / CASE + 66 WHEN - 15 * CAST( - 36 AS DECIMAL ) THEN - 69 END * + 45 * - COUNT( * ) + - ( + - 83 ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT - + 64 / CASE + 66 WHEN - 15 * CAST ( - 36 AS REAL ) THEN - 69 END * + 45 * - COUNT ( * ) + - ( + - 83 ) + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT - COUNT( * ) / COUNT( * ) / + + ( 69 ) * + ( + + CASE + 80 WHEN - 31 + 86 THEN - 25 WHEN + 29 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) / + + ( 69 ) * + ( + + CASE + 80 WHEN - 31 + 86 THEN - 25 WHEN + 29 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT + COUNT( * ) * - MAX( + 42 ) + + COUNT( * ) * + - 19 DIV + + 71 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9849
SELECT + COUNT ( * ) * - MAX ( + 42 ) + + COUNT ( * ) * + - 19 / + + 71 AS col1
----
-42

query I rowsort
SELECT + 99 + 66
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT + COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + COUNT ( * ) + + 58
----
59

query I rowsort
SELECT DISTINCT - NULLIF ( - 82, - 55 ) + - 48
----
34

query II rowsort
SELECT DISTINCT + 33 + 33 * + 48 - - 26 AS col2, 62 AS col0
----
1643
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT - MIN( ALL + - 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT - MIN ( ALL + - 6 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL + CASE - + 7 WHEN - - 24 + + 52 THEN + 69 + - - NULLIF ( - 39, + AVG ( ALL + 80 ) ) + - 72 WHEN + CAST( + - 45 AS SIGNED ) THEN + 91 END + 89 - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + CASE - + 7 WHEN - - 24 + + 52 THEN + 69 + - - NULLIF ( - 39, + AVG ( ALL + 80 ) ) + - 72 WHEN + CAST ( + - 45 AS INTEGER ) THEN + 91 END + 89 - - 6
----
NULL

query I rowsort
SELECT 28 + + - 87 AS col0
----
-59

query I rowsort
SELECT 31 * 61 AS col1
----
1891

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9858
SELECT ALL 16, 78 - - + COUNT( * ) DIV + MAX( DISTINCT 71 ) AS col1
----
16
78

skipif mysql # not compatible
query II rowsort label-9858
SELECT ALL 16, 78 - - + COUNT ( * ) / + MAX ( DISTINCT 71 ) AS col1
----
16
78

query I rowsort
SELECT 73 * - + 82
----
-5986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT + 81 * - CAST( NULL AS SIGNED ) * - + 52 + - 8 * + 47 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT + 81 * - CAST ( NULL AS INTEGER ) * - + 52 + - 8 * + 47 + - 51
----
NULL

query II rowsort
SELECT DISTINCT 22, - 35 + + ( 53 ) + + + 23 col2
----
22
41

query I rowsort
SELECT ALL - 43 * + 14
----
-602

query I rowsort
SELECT 63 + - 45
----
18

query I rowsort
SELECT 76 * + 27
----
2052

query I rowsort
SELECT ALL 76 * + 64 AS col0
----
4864

query I rowsort
SELECT 82 + - - 0 - - 84 * + + 1 + - + 95 + - + 2
----
69

query II rowsort
SELECT - 91 AS col1, - 61 AS col2
----
-91
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9868
SELECT 58 col0, CAST( - - 68 AS SIGNED ) DIV - + 61 + + 37 + + + 7 + 27 * + - 76 + + - 96 + - COUNT( * ) AS col0
----
58
-2106

skipif mysql # not compatible
query II rowsort label-9868
SELECT 58 col0, CAST ( - - 68 AS INTEGER ) / - + 61 + + 37 + + + 7 + 27 * + - 76 + + - 96 + - COUNT ( * ) AS col0
----
58
-2106

query II rowsort
SELECT - - 88 AS col2, - 21 AS col0
----
88
-21

query I rowsort
SELECT 32 + - + 66 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT + CAST( - 46 AS SIGNED ) * 7 - + 90
----
-412

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + CAST ( - 46 AS INTEGER ) * 7 - + 90
----
-412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT - CAST( + - 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-9872
SELECT - CAST ( + - 90 AS INTEGER )
----
90

query I rowsort
SELECT 78 + - - 49 AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT + CAST( NULL AS SIGNED ) * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT + CAST ( NULL AS INTEGER ) * + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9875
SELECT ALL CASE + ( - CAST( NULL AS DECIMAL ) ) WHEN 5 THEN + MIN( - 20 ) WHEN - 61 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL CASE + ( - CAST ( NULL AS REAL ) ) WHEN 5 THEN + MIN ( - 20 ) WHEN - 61 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9876
SELECT - 10 AS col0, CAST( NULL AS SIGNED ) * + 4 * - + 16
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-9876
SELECT - 10 AS col0, CAST ( NULL AS INTEGER ) * + 4 * - + 16
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT - 53 + - COUNT( 13 ) * - - 48
----
-101

skipif mysql # not compatible
query I rowsort label-9877
SELECT - 53 + - COUNT ( 13 ) * - - 48
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT - + 73 * COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - + 73 * COUNT ( * ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9879
SELECT ALL + 16 AS col2, - COUNT( * ) - 49 AS col2
----
16
-50

skipif mysql # not compatible
query II rowsort label-9879
SELECT ALL + 16 AS col2, - COUNT ( * ) - 49 AS col2
----
16
-50

query I rowsort
SELECT ALL + CASE - - 99 WHEN + 52 THEN + 99 END * - 12 + - + 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT 37 - - 45 DIV - ( + 37 ) + - 34 * + + 45
----
-1494

skipif mysql # not compatible
query I rowsort label-9881
SELECT 37 - - 45 / - ( + 37 ) + - 34 * + + 45
----
-1494

query II rowsort
SELECT + - 80, 87 + + 13 AS col1
----
-80
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + NULLIF ( 28, + - 69 * + 46 - + COUNT( * ) + + - 41 * - ( 52 ) * 64 ) * 53 AS col0
----
1484

skipif mysql # not compatible
query I rowsort label-9883
SELECT + NULLIF ( 28, + - 69 * + 46 - + COUNT ( * ) + + - 41 * - ( 52 ) * 64 ) * 53 AS col0
----
1484

query I rowsort
SELECT + + ( 2 ) AS col0
----
2

query II rowsort
SELECT ALL - + 30 AS col1, + 88 + + 76
----
-30
164

query II rowsort
SELECT + 51 AS col0, 78 AS col2
----
51
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - COALESCE ( + 35, - 61, + COALESCE ( - NULLIF ( + - 8, - MAX( 80 ) * + 12 ), - + COUNT( * ) * - 90 + + + 41 + - ( + 42 ), 45 ) ) * - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-9887
SELECT - COALESCE ( + 35, - 61, + COALESCE ( - NULLIF ( + - 8, - MAX ( 80 ) * + 12 ), - + COUNT ( * ) * - 90 + + + 41 + - ( + 42 ), 45 ) ) * - COUNT ( * )
----
35

query I rowsort
SELECT 19 * + 60 AS col0
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT - 36 - 41 + - 15 * - - CAST( + 56 AS SIGNED ) col1
----
-917

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 36 - 41 + - 15 * - - CAST ( + 56 AS INTEGER ) col1
----
-917

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT DISTINCT COUNT( - + 34 ) + - + ( 86 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT COUNT ( - + 34 ) + - + ( 86 ) AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT ALL - 46 DIV - ( 62 )
----
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL - 46 / - ( 62 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + MIN( ALL 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9892
SELECT + MIN ( ALL 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT COUNT( * ) + 74
----
75

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT COUNT ( * ) + 74
----
75

query I rowsort
SELECT ALL 60 + + - ( 31 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9895
SELECT - 90 * CAST( AVG ( + 21 ) AS SIGNED ) + 3 DIV - 46 * COALESCE ( ( + ( 97 ) ), 63 ) * + - ( ( - 5 ) ) + + COUNT( ALL - 42 ) + + 26, - NULLIF ( + - 83, CAST( NULL AS SIGNED ) ) col2
----
-1863
83

skipif mysql # not compatible
query II rowsort label-9895
SELECT - 90 * CAST ( AVG ( + 21 ) AS INTEGER ) + 3 / - 46 * COALESCE ( ( + ( 97 ) ), 63 ) * + - ( ( - 5 ) ) + + COUNT ( ALL - 42 ) + + 26, - NULLIF ( + - 83, CAST ( NULL AS INTEGER ) ) col2
----
-1863
83

query I rowsort
SELECT 67 * - 67 AS col2
----
-4489

query I rowsort
SELECT DISTINCT + 29 * - + 45
----
-1305

query I rowsort
SELECT 66 + - 30
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT ALL 94 * + + 60, COUNT( * ) AS col2
----
5640
1

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL 94 * + + 60, COUNT ( * ) AS col2
----
5640
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT DISTINCT 12 - + 48 / - CAST( NULL AS SIGNED ) + - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT 12 - + 48 / - CAST ( NULL AS INTEGER ) + - 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL MIN( DISTINCT + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL MIN ( DISTINCT + 63 ) AS col2
----
63

query I rowsort
SELECT 92 * + 18
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT 66 + + - SUM( + + 31 ) + 73 * 21 * + + 83
----
127274

skipif mysql # not compatible
query I rowsort label-9903
SELECT 66 + + - SUM ( + + 31 ) + 73 * 21 * + + 83
----
127274

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL MAX( + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL MAX ( + + 82 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT - 29 + - 87 DIV + - 58
----
-28

skipif mysql # not compatible
query I rowsort label-9905
SELECT - 29 + - 87 / + - 58
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT - COUNT( DISTINCT 16 ) * - + 39 - 53 * + 10 * - NULLIF ( - + 55, - COUNT( DISTINCT - 40 ) * - 93 + - 9 - + 53 ) * + 3 + + + 29 + + + 33 * - ( + - 27 )
----
-86491

skipif mysql # not compatible
query I rowsort label-9906
SELECT - COUNT ( DISTINCT 16 ) * - + 39 - 53 * + 10 * - NULLIF ( - + 55, - COUNT ( DISTINCT - 40 ) * - 93 + - 9 - + 53 ) * + 3 + + + 29 + + + 33 * - ( + - 27 )
----
-86491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT ALL - - 50 DIV + NULLIF ( - + COUNT( * ), - - 49 ) - - 69 + + + 81 * + - 7 AS col2
----
-548

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - - 50 / + NULLIF ( - + COUNT ( * ), - - 49 ) - - 69 + + + 81 * + - 7 AS col2
----
-548

query I rowsort
SELECT 72 * + 5
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT ALL + 8 DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL + 8 / + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL - MIN( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - MIN ( + 14 )
----
-14

query I rowsort
SELECT - + NULLIF ( + + 26, + 68 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT 5 + + - SUM( + - 62 )
----
67

skipif mysql # not compatible
query I rowsort label-9912
SELECT 5 + + - SUM ( + - 62 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT - CASE + 72 WHEN - 68 THEN - - 99 * + 52 + + COUNT( * ) + + + 38 WHEN 1 THEN NULLIF ( - 70, + 5 * + 99 + + + 1 * - 28 + + 89 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT - CASE + 72 WHEN - 68 THEN - - 99 * + 52 + + COUNT ( * ) + + + 38 WHEN 1 THEN NULLIF ( - 70, + 5 * + 99 + + + 1 * - 28 + + 89 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9914
SELECT 64 DIV 67 * + + 23 * ( + + 17 ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9914
SELECT 64 / 67 * + + 23 * ( + + 17 ) + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 70 + 86 * - + 80
----
-6950

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + COUNT( * ) - + NULLIF ( + 54, - COUNT( 41 ) + COUNT( * ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9916
SELECT + COUNT ( * ) - + NULLIF ( + 54, - COUNT ( 41 ) + COUNT ( * ) ) AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT - 99 DIV + + 98 + + 89 * + - 11 * MAX( DISTINCT + + 44 ) AS col0
----
-43077

skipif mysql # not compatible
query I rowsort label-9918
SELECT - 99 / + + 98 + + 89 * + - 11 * MAX ( DISTINCT + + 44 ) AS col0
----
-43077

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT COALESCE ( - - 53, 21 + - 20 * - - 66, 4 * + 33 * - - 63 * - 77 + + 89 + + + 17 * COUNT( 94 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9919
SELECT COALESCE ( - - 53, 21 + - 20 * - - 66, 4 * + 33 * - - 63 * - 77 + + 89 + + + 17 * COUNT ( 94 ) ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9920
SELECT 12 DIV + SUM( - 59 ) * - 63 + 3 + - - 43 * 70 + + 18 * - + COALESCE ( - 81, + + CAST( + + 86 AS SIGNED ) )
----
4471

skipif mysql # not compatible
query I rowsort label-9920
SELECT 12 / + SUM ( - 59 ) * - 63 + 3 + - - 43 * 70 + + 18 * - + COALESCE ( - 81, + + CAST ( + + 86 AS INTEGER ) )
----
4471

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT - + COUNT( DISTINCT - NULLIF ( + - 54, - COALESCE ( - - 60, - 24 ) ) ) * 81 + 92
----
11

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - + COUNT ( DISTINCT - NULLIF ( + - 54, - COALESCE ( - - 60, - 24 ) ) ) * 81 + 92
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT 24 * - - 90 + COUNT( * ) + - 32 * - + 81 - - 15
----
4768

skipif mysql # not compatible
query I rowsort label-9922
SELECT 24 * - - 90 + COUNT ( * ) + - 32 * - + 81 - - 15
----
4768

onlyif mysql # aggregate syntax: 
query II rowsort label-9923
SELECT - 66 * - ( - - 38 ) * - 79 * 71 * + COUNT( * ) col1, + 2
----
-14067372
2

skipif mysql # not compatible
query II rowsort label-9923
SELECT - 66 * - ( - - 38 ) * - 79 * 71 * + COUNT ( * ) col1, + 2
----
-14067372
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT + 92 DIV + 43 + - 60 - + 25 * + 62 + COUNT( * )
----
-1607

skipif mysql # not compatible
query I rowsort label-9924
SELECT + 92 / + 43 + - 60 - + 25 * + 62 + COUNT ( * )
----
-1607

query I rowsort
SELECT ALL 13 * - 5
----
-65

query I rowsort
SELECT + 19 * 2 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT CASE + MIN( DISTINCT - ( - 78 ) ) WHEN + CASE + - 68 WHEN + 59 * - SUM( ALL - 51 ) THEN NULL WHEN COALESCE ( 94, + + 11 ) THEN 63 * 77 END + 0 THEN - COALESCE ( - SUM( DISTINCT - 60 ), - + MIN( ALL + 81 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT CASE + MIN ( DISTINCT - ( - 78 ) ) WHEN + CASE + - 68 WHEN + 59 * - SUM ( ALL - 51 ) THEN NULL WHEN COALESCE ( 94, + + 11 ) THEN 63 * 77 END + 0 THEN - COALESCE ( - SUM ( DISTINCT - 60 ), - + MIN ( ALL + 81 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT MAX( DISTINCT - + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-9929
SELECT MAX ( DISTINCT - + 96 )
----
-96

query I rowsort
SELECT ALL ( - 25 ) * 95 - + + 53 AS col1
----
-2428

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT MAX( DISTINCT + 59 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-9931
SELECT MAX ( DISTINCT + 59 ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + NULLIF ( + 97, - 89 + - 46 + 80 - - MIN( ALL - + 22 ) + 8 ) * + 43 + + MAX( DISTINCT + + 18 ) col0
----
4189

skipif mysql # not compatible
query I rowsort label-9932
SELECT + NULLIF ( + 97, - 89 + - 46 + 80 - - MIN ( ALL - + 22 ) + 8 ) * + 43 + + MAX ( DISTINCT + + 18 ) col0
----
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT MAX( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9933
SELECT MAX ( ALL 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - COALESCE ( 18, + ( + COUNT( * ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-9934
SELECT - COALESCE ( 18, + ( + COUNT ( * ) ) )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT + CAST( NULL AS SIGNED ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT + CAST ( NULL AS INTEGER ) * 12
----
NULL

query I rowsort
SELECT ALL + 81 * - 98
----
-7938

query I rowsort
SELECT DISTINCT + 8 * 14
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL COALESCE ( 15, 20, - COUNT( * ) * 5 )
----
15

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL COALESCE ( 15, 20, - COUNT ( * ) * 5 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT - 92 + - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9939
SELECT - 92 + - COUNT ( * ) AS col2
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9940
SELECT ALL 57 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL 57 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 69 + 68
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT - ( SUM( - 49 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9942
SELECT - ( SUM ( - 49 ) ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT ALL - MAX( DISTINCT 34 ) + COALESCE ( CAST( NULL AS SIGNED ), 17 - 13 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - MAX ( DISTINCT 34 ) + COALESCE ( CAST ( NULL AS INTEGER ), 17 - 13 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9944
SELECT - ( - NULLIF ( MAX( - 49 ), - CAST( - 66 AS DECIMAL ) / 17 + COUNT( * ) / 18 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9944
SELECT - ( - NULLIF ( MAX ( - 49 ), - CAST ( - 66 AS REAL ) / 17 + COUNT ( * ) / 18 ) ) AS col1
----
-49

query I rowsort
SELECT - 62 + 72 * + 56 col1
----
3970

query I rowsort
SELECT + 33 * + 68
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - COUNT( * ) + 2
----
1

skipif mysql # not compatible
query I rowsort label-9947
SELECT - COUNT ( * ) + 2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT ALL + CASE + CAST( + AVG ( 73 ) AS SIGNED ) WHEN - ( + COUNT( * ) ) THEN NULLIF ( 83, CASE 54 WHEN 97 THEN + 42 ELSE NULL END ) END + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL + CASE + CAST ( + AVG ( 73 ) AS INTEGER ) WHEN - ( + COUNT ( * ) ) THEN NULLIF ( 83, CASE 54 WHEN 97 THEN + 42 ELSE NULL END ) END + + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT - COUNT( * ) + ( 57 )
----
56

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - COUNT ( * ) + ( 57 )
----
56

query I rowsort
SELECT DISTINCT + 46 * ( 24 )
----
1104

query I rowsort
SELECT DISTINCT + 74 + + 6 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT ALL - ( + 72 ) + CASE CAST( NULL AS SIGNED ) WHEN 24 * - CASE - 41 WHEN 64 * - ( - COUNT( - 57 ) * 9 ) + 42 * - 36 THEN 20 * 27 + - 3 * 17 WHEN + 82 * - 31 THEN NULL END THEN + 98 / - CAST( NULL AS SIGNED ) WHEN + 85 + - NULLIF ( COUNT( * ), 85 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - ( + 72 ) + CASE CAST ( NULL AS INTEGER ) WHEN 24 * - CASE - 41 WHEN 64 * - ( - COUNT ( - 57 ) * 9 ) + 42 * - 36 THEN 20 * 27 + - 3 * 17 WHEN + 82 * - 31 THEN NULL END THEN + 98 / - CAST ( NULL AS INTEGER ) WHEN + 85 + - NULLIF ( COUNT ( * ), 85 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT - CASE 10 WHEN - COUNT( * ) / - 77 THEN 12 ELSE 43 END * - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9953
SELECT - CASE 10 WHEN - COUNT ( * ) / - 77 THEN 12 ELSE 43 END * - COUNT ( * )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL + MAX( ALL - 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + MAX ( ALL - 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT 56 * 84 - - COUNT( * )
----
4705

skipif mysql # not compatible
query I rowsort label-9956
SELECT 56 * 84 - - COUNT ( * )
----
4705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT DISTINCT COALESCE ( + 52, - COUNT( * ) ) DIV - 94 - 59
----
-59

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT COALESCE ( + 52, - COUNT ( * ) ) / - 94 - 59
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9958
SELECT ALL 75 DIV 20 - 22 * - SUM( ALL + 79 )
----
1741

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL 75 / 20 - 22 * - SUM ( ALL + 79 )
----
1741

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT ALL 81 DIV + 75 - + 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL 81 / + 75 - + 81 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - COUNT( * ) * ( + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-9960
SELECT - COUNT ( * ) * ( + 79 )
----
-79

query I rowsort
SELECT ALL + 84 * ( - 55 * + 58 ) AS col1
----
-267960

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + CASE WHEN ( + 28 ) IS NULL THEN + 39 WHEN NOT ( ( 3 ) ) BETWEEN NULL AND 81 THEN - 96 ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9962
SELECT + CASE WHEN ( + 28 ) IS NULL THEN + 39 WHEN NOT ( ( 3 ) ) BETWEEN NULL AND 81 THEN - 96 ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT - 53 + 5 col0
----
-48

query I rowsort
SELECT ( + 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT + 43 * - 0 + + COUNT( * ) * COUNT( ALL 37 )
----
1

skipif mysql # not compatible
query I rowsort label-9965
SELECT + 43 * - 0 + + COUNT ( * ) * COUNT ( ALL 37 )
----
1

query I rowsort
SELECT + 35 * + 84
----
2940

query I rowsort
SELECT - ( 97 ) * 66 col2
----
-6402

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT + COALESCE ( MIN( + 6 ), + SUM( 89 ) )
----
6

skipif mysql # not compatible
query I rowsort label-9968
SELECT + COALESCE ( MIN ( + 6 ), + SUM ( 89 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT CASE WHEN SUM( ALL 45 ) IN ( 63 * 5 + 82 / 60 ) THEN - COUNT( 6 ) * + 98 ELSE 24 END AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9969
SELECT CASE WHEN SUM ( ALL 45 ) IN ( 63 * 5 + 82 / 60 ) THEN - COUNT ( 6 ) * + 98 ELSE 24 END AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL + 22 * COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + 22 * COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT 29 * COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT 29 * COUNT ( * ) AS col2
----
29

query I rowsort
SELECT DISTINCT - 25 * + 19 + - 5
----
-480

query I rowsort
SELECT - 24 * - 76 + 63
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT COUNT( DISTINCT 67 )
----
1

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT COUNT ( DISTINCT 67 )
----
1

query I rowsort
SELECT - 83 * + 79 - 48 AS col1
----
-6605

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - COUNT( * ) + ( 35 + + 27 * COUNT( * ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - COUNT ( * ) + ( 35 + + 27 * COUNT ( * ) ) AS col0
----
61

query I rowsort
SELECT 4 * 39
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL 92 + + 85 AS col2
----
177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9980
SELECT ALL ( CAST( NULL AS DECIMAL ) ) / 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL ( CAST ( NULL AS REAL ) ) / 14
----
NULL

query I rowsort
SELECT ALL - 76 + - 5
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - 89 - + SUM( + NULLIF ( 67, 64 ) ) AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-9982
SELECT - 89 - + SUM ( + NULLIF ( 67, 64 ) ) AS col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL 58 + ( COUNT( DISTINCT + ( 34 ) ) ) * ( 42 + ( - 93 + 44 ) )
----
51

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL 58 + ( COUNT ( DISTINCT + ( 34 ) ) ) * ( 42 + ( - 93 + 44 ) )
----
51

query I rowsort
SELECT ALL + + 28 * 95
----
2660

query I rowsort
SELECT 4 * 74 AS col1
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL COUNT( 79 ) + 56
----
57

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL COUNT ( 79 ) + 56
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT DISTINCT - ( COUNT( * ) ) * + 51
----
-51

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - ( COUNT ( * ) ) * + 51
----
-51

query I rowsort
SELECT + 55 + - 97
----
-42

query I rowsort
SELECT - CASE - 45 WHEN + 69 - 87 * 55 THEN NULL WHEN 51 THEN 48 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL + COUNT( * ) * 58
----
58

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + COUNT ( * ) * 58
----
58

query I rowsort
SELECT ( 50 ) + + 8 col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT + 38 - - CAST( + 33 - 57 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-9992
SELECT + 38 - - CAST ( + 33 - 57 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT COUNT( * ) + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-9993
SELECT COUNT ( * ) + - 40
----
-39

query I rowsort
SELECT 76 - + + 55 + 50 * 68
----
3421

query I rowsort
SELECT ALL - 88 - 3
----
-91

query I rowsort
SELECT 88 * 36 + 17
----
3185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9997
SELECT DISTINCT - 16 DIV SUM( DISTINCT 60 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - 16 / SUM ( DISTINCT 60 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9998
SELECT + 27 DIV + 9 + + 94
----
97

skipif mysql # not compatible
query I rowsort label-9998
SELECT + 27 / + 9 + + 94
----
97

query I rowsort
SELECT ALL - 98 * - 56 AS col1
----
5488

