sqllogictest
Artifact Content
Not logged in

Artifact 4d4f156332792c6b3ad61eb41c044a81c79948ba:


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