sqllogictest
Artifact Content
Not logged in

Artifact c4929e861436a0b6ecea9aafe7623f79968bed4b:


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 + 76, 29 AS col0
----
76
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1
SELECT 60 * - 67 + + COUNT( * ) AS col2, 95
----
-4019
95

skipif mysql # not compatible
query II rowsort label-1
SELECT 60 * - 67 + + COUNT ( * ) AS col2, 95
----
-4019
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT + 0 + + + 33 DIV 43 - + + 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2
SELECT + 0 + + + 33 / 43 - + + 75 AS col0
----
-75

query II rowsort
SELECT + 76 + - 69 + + + 66 AS col1, - 77
----
73
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT ALL 82 DIV + 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL 82 / + 49 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT + 93 DIV - MAX( + 23 )
----
-4

skipif mysql # not compatible
query I rowsort label-5
SELECT + 93 / - MAX ( + 23 )
----
-4

query I rowsort
SELECT DISTINCT - 52 * - 88
----
4576

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT DISTINCT 17 DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT 17 / + - 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT CASE 43 WHEN 59 THEN 71 + - CAST( - + 62 AS SIGNED ) * - 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT CASE 43 WHEN 59 THEN 71 + - CAST ( - + 62 AS INTEGER ) * - 7 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT 98 * 92 + NULLIF ( + 37, 31 + - 14 + + 7 * - + COUNT( * ) * + + ( 50 ) ) * 76
----
11828

skipif mysql # not compatible
query I rowsort label-9
SELECT 98 * 92 + NULLIF ( + 37, 31 + - 14 + + 7 * - + COUNT ( * ) * + + ( 50 ) ) * 76
----
11828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL + 65 * + CASE WHEN ( NULL ) = - 84 THEN + 89 / - 78 * + CASE + - 76 WHEN - - 30 / MAX( DISTINCT 47 ) * CAST( + 6 AS SIGNED ) + - 72 THEN 66 * COUNT( * ) * - 91 + - 84 * - 20 + - 3 / + 77 ELSE NULL END ELSE NULL END * 0 - + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + 65 * + CASE WHEN ( NULL ) = - 84 THEN + 89 / - 78 * + CASE + - 76 WHEN - - 30 / MAX ( DISTINCT 47 ) * CAST ( + 6 AS INTEGER ) + - 72 THEN 66 * COUNT ( * ) * - 91 + - 84 * - 20 + - 3 / + 77 ELSE NULL END ELSE NULL END * 0 - + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-11
SELECT CASE 26 WHEN + COUNT( DISTINCT + + CAST( NULL AS DECIMAL ) ) * - 56 * 64 + - 16 + - - ( - 23 ) THEN - ( - 29 ) * - 2 + + 16 * + + 84 * + + 93 / + CASE 43 WHEN COUNT( * ) * + CASE - COUNT( * ) WHEN - 48 * + + COUNT( + 53 ) THEN NULL WHEN - 30 THEN MIN( - 82 ) END - ( 33 ) THEN 4 WHEN - + 33 THEN NULL ELSE NULL END ELSE NULL END AS col2, + 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-11
SELECT CASE 26 WHEN + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) * - 56 * 64 + - 16 + - - ( - 23 ) THEN - ( - 29 ) * - 2 + + 16 * + + 84 * + + 93 / + CASE 43 WHEN COUNT ( * ) * + CASE - COUNT ( * ) WHEN - 48 * + + COUNT ( + 53 ) THEN NULL WHEN - 30 THEN MIN ( - 82 ) END - ( 33 ) THEN 4 WHEN - + 33 THEN NULL ELSE NULL END ELSE NULL END AS col2, + 23 AS col1
----
NULL
23

query I rowsort
SELECT + 52 * 71 AS col2
----
3692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-13
SELECT ALL 40 * - NULLIF ( 80, + - ( 59 ) ) * - - COUNT( * ) * - 82 - - + 43 + - + COALESCE ( - + 84, NULLIF ( - 16, + - ( + 69 ) ) + 45 DIV 99 * 48 * - 1 )
----
262527

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL 40 * - NULLIF ( 80, + - ( 59 ) ) * - - COUNT ( * ) * - 82 - - + 43 + - + COALESCE ( - + 84, NULLIF ( - 16, + - ( + 69 ) ) + 45 / 99 * 48 * - 1 )
----
262527

query I rowsort
SELECT 70 * + 64 AS col2
----
4480

query I rowsort
SELECT 31 * 84 * - ( - + 56 )
----
145824

query I rowsort
SELECT ALL - ( + 12 ) + 21
----
9

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

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

query II rowsort
SELECT - 59 + - 41 + + 51 * - - 3 * 57 AS col2, 85 AS col0
----
8621
85

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT - COUNT( * ) * + 5 + 61 AS col1, + 2
----
56
2

skipif mysql # not compatible
query II rowsort label-19
SELECT - COUNT ( * ) * + 5 + 61 AS col1, + 2
----
56
2

query I rowsort
SELECT - ( - - 21 )
----
-21

query II rowsort
SELECT ALL + 93 + - ( - 50 ) AS col1, + 82 AS col1
----
143
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-22
SELECT 87 - 19 - + - 44 * + + 95 - - 52 * + + COUNT( * ) DIV - COUNT( * ) AS col2
----
4196

skipif mysql # not compatible
query I rowsort label-22
SELECT 87 - 19 - + - 44 * + + 95 - - 52 * + + COUNT ( * ) / - COUNT ( * ) AS col2
----
4196

query II rowsort
SELECT ALL 46, - 43 AS col0
----
46
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT DISTINCT - - 2 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - - 2 / + 70
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT COALESCE ( - 77, 29, - 62 * SUM( ALL - + 14 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT COALESCE ( - 77, 29, - 62 * SUM ( ALL - + 14 ) )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT ALL + 32 + + 90 DIV 70
----
33

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + 32 + + 90 / 70
----
33

query II rowsort
SELECT DISTINCT 34 AS col2, 67 AS col2
----
34
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT ALL ( - ( - COUNT( * ) ) ) + - 72 + - NULLIF ( - - 11, - + AVG ( - + 40 ) ) + + 94 * + CASE + + 31 WHEN ( CAST( NULL AS SIGNED ) ) THEN + - 39 WHEN - - 83 * - + COUNT( * ) / - 10 THEN NULL END + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL ( - ( - COUNT ( * ) ) ) + - 72 + - NULLIF ( - - 11, - + AVG ( - + 40 ) ) + + 94 * + CASE + + 31 WHEN ( CAST ( NULL AS INTEGER ) ) THEN + - 39 WHEN - - 83 * - + COUNT ( * ) / - 10 THEN NULL END + + 10
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 39 WHEN + 84 / + + 65 THEN - 71 END * ( - - 30 ) AS col1
----
NULL

query I rowsort
SELECT 28 * + + 26 + - 60 AS col1
----
668

query II rowsort
SELECT 36 AS col0, 82 + + 84 AS col2
----
36
166

query I rowsort
SELECT 14 * + 79 AS col2
----
1106

query II rowsort
SELECT ALL - 50 AS col0, 64 + 62
----
-50
126

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT - CASE 55 WHEN + + MIN( ALL + - 65 ) * - 24 + + 70 - - 84 THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT - CASE 55 WHEN + + MIN ( ALL + - 65 ) * - 24 + + 70 - - 84 THEN - 12 END
----
NULL

query I rowsort
SELECT DISTINCT 12 - 2 AS col0
----
10

query I rowsort
SELECT 40 * - 49 AS col0
----
-1960

query I rowsort
SELECT DISTINCT - ( - 62 ) AS col0
----
62

query I rowsort
SELECT DISTINCT 76 * + - 33 AS col0
----
-2508

query I rowsort
SELECT - 45 * - 43 + - 68
----
1867

query I rowsort
SELECT ALL 11 * - 95 * ( - + 44 ) * + 58 + 92
----
2666932

query I rowsort
SELECT 30 * 7 * 71
----
14910

query I rowsort
SELECT 65 * + 18 col1
----
1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-44
SELECT ALL - 1, 4 + - + CAST( - - 4 AS SIGNED ) * - 3 DIV - 96 * 94 * - COUNT( DISTINCT ( - + 24 ) ) AS col2
----
-1
4

skipif mysql # not compatible
query II rowsort label-44
SELECT ALL - 1, 4 + - + CAST ( - - 4 AS INTEGER ) * - 3 / - 96 * 94 * - COUNT ( DISTINCT ( - + 24 ) ) AS col2
----
-1
4

query I rowsort
SELECT + 50 - ( - - 52 ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT DISTINCT 29 + - - 43 + - 41 * - ( + 8 ) * CAST( NULL AS SIGNED ) * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT 29 + - - 43 + - 41 * - ( + 8 ) * CAST ( NULL AS INTEGER ) * + 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT ALL 3 / CAST( NULL AS SIGNED ) * - 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL 3 / CAST ( NULL AS INTEGER ) * - 97 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT DISTINCT + 79 DIV - 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + 79 / - 57 AS col2
----
-1

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

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

query I rowsort
SELECT ALL - 57 + + + ( + 62 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT + 0 - COUNT( * ) AS col0, 27 + + 49 - 63 * + + 10 * 7 * - 55
----
-1
242626

skipif mysql # not compatible
query II rowsort label-51
SELECT + 0 - COUNT ( * ) AS col0, 27 + + 49 - 63 * + + 10 * 7 * - 55
----
-1
242626

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL COUNT( + 95 ) + + 75 + - 0 * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL COUNT ( + 95 ) + + 75 + - 0 * + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-53
SELECT 33 + + MIN( 9 ) * + + 10 + + 25 * + + 53 AS col2, + COUNT( * )
----
1448
1

skipif mysql # not compatible
query II rowsort label-53
SELECT 33 + + MIN ( 9 ) * + + 10 + + 25 * + + 53 AS col2, + COUNT ( * )
----
1448
1

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

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

query I rowsort
SELECT + 57 + + 55 AS col2
----
112

query I rowsort
SELECT 23 + ( + + 41 )
----
64

query I rowsort
SELECT + NULLIF ( + 52, + 76 * - 57 - + 22 + + 65 ) * - 24 + 2
----
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL 49 * SUM( + 42 ) AS col0
----
2058

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 49 * SUM ( + 42 ) AS col0
----
2058

query II rowsort
SELECT DISTINCT - 15 AS col0, 90 + - + 72
----
-15
18

query I rowsort
SELECT DISTINCT 58 + - - 90 AS col0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-61
SELECT - COALESCE ( - - COUNT( * ), + 46 + - 22 + + 71 * - 27 DIV + 12 ) + - COUNT( * ) DIV - 15
----
-1

skipif mysql # not compatible
query I rowsort label-61
SELECT - COALESCE ( - - COUNT ( * ), + 46 + - 22 + + 71 * - 27 / + 12 ) + - COUNT ( * ) / - 15
----
-1

query I rowsort
SELECT ALL 77 + 92
----
169

onlyif mysql # DIV for integer division: 
query II rowsort label-63
SELECT ( - 18 ) + - 45 DIV 77 * - - 17 AS col1, + 62 AS col1
----
-18
62

skipif mysql # not compatible
query II rowsort label-63
SELECT ( - 18 ) + - 45 / 77 * - - 17 AS col1, + 62 AS col1
----
-18
62

query I rowsort
SELECT 24 + - 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT MAX( DISTINCT - COALESCE ( + - 30, - 93, 53 * + + 54 * - 52 * CASE - + 29 WHEN 1 THEN NULL ELSE - 68 END ) ) * - ( 58 ) + - 36
----
-1776

skipif mysql # not compatible
query I rowsort label-65
SELECT MAX ( DISTINCT - COALESCE ( + - 30, - 93, 53 * + + 54 * - 52 * CASE - + 29 WHEN 1 THEN NULL ELSE - 68 END ) ) * - ( 58 ) + - 36
----
-1776

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT ALL - 96 DIV ( ( - 61 ) )
----
1

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - 96 / ( ( - 61 ) )
----
1

query I rowsort
SELECT 11 + 31
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT 14 DIV - NULLIF ( + 39, - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-68
SELECT 14 / - NULLIF ( + 39, - 27 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-69
SELECT 21 + - COUNT( * ) - 76 + - - ( + + 27 ) + 9 * CASE WHEN - CAST( NULL AS SIGNED ) BETWEEN + 98 + + + 68 AND + 3 * + COUNT( * ) + - 64 * - 39 * - 32 DIV + COUNT( * ) THEN NULL ELSE 62 DIV 10 END + ( - 60 ) + + - 50
----
-85

skipif mysql # not compatible
query I rowsort label-69
SELECT 21 + - COUNT ( * ) - 76 + - - ( + + 27 ) + 9 * CASE WHEN - CAST ( NULL AS INTEGER ) BETWEEN + 98 + + + 68 AND + 3 * + COUNT ( * ) + - 64 * - 39 * - 32 / + COUNT ( * ) THEN NULL ELSE 62 / 10 END + ( - 60 ) + + - 50
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ALL COUNT( * ) * - 3 col1
----
-3

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL COUNT ( * ) * - 3 col1
----
-3

query I rowsort
SELECT 70 * + 18 + + + 41 * - 16 AS col2
----
604

onlyif mysql # DIV for integer division: 
query II rowsort label-72
SELECT DISTINCT - 24 * + - 42, + 39 + 87 DIV 84 AS col1
----
1008
40

skipif mysql # not compatible
query II rowsort label-72
SELECT DISTINCT - 24 * + - 42, + 39 + 87 / 84 AS col1
----
1008
40

query I rowsort
SELECT - ( + 65 ) * - + 84 + - 10 + 25
----
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL - COUNT( * ) * - 9 * 14
----
126

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - COUNT ( * ) * - 9 * 14
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT DISTINCT - CASE - 81 WHEN + 80 THEN + ( 45 ) - + COALESCE ( - 68, 40 ) WHEN + ( COUNT( + 41 ) ) * + + 95 THEN - - AVG ( - 54 ) * 69 * + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT - CASE - 81 WHEN + 80 THEN + ( 45 ) - + COALESCE ( - 68, 40 ) WHEN + ( COUNT ( + 41 ) ) * + + 95 THEN - - AVG ( - 54 ) * 69 * + 62 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - COUNT( * ) * - 86 * 70 + + COUNT( * )
----
6021

skipif mysql # not compatible
query I rowsort label-77
SELECT - COUNT ( * ) * - 86 * 70 + + COUNT ( * )
----
6021

query I rowsort
SELECT - 93 * CASE - 8 WHEN - 51 THEN + ( - 67 ) * 36 ELSE - + 66 END AS col2
----
6138

query I rowsort
SELECT ALL + 18 * 75 + - + 2
----
1348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL - NULLIF ( + - ( - + 26 ), 44 * - 86 / CAST( NULL AS SIGNED ) / + 43 + 2 ) * - COUNT( + 64 ) * + + 98 / CASE - ( CAST( NULL AS SIGNED ) ) WHEN - 28 / + 22 + - CAST( NULL AS SIGNED ) THEN - - ( - 80 ) + - 60 - + 63 + - MIN( - 10 ) - COUNT( * ) + ( - - 43 ) END * + 40 + - + COUNT( ALL 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - NULLIF ( + - ( - + 26 ), 44 * - 86 / CAST ( NULL AS INTEGER ) / + 43 + 2 ) * - COUNT ( + 64 ) * + + 98 / CASE - ( CAST ( NULL AS INTEGER ) ) WHEN - 28 / + 22 + - CAST ( NULL AS INTEGER ) THEN - - ( - 80 ) + - 60 - + 63 + - MIN ( - 10 ) - COUNT ( * ) + ( - - 43 ) END * + 40 + - + COUNT ( ALL 5 )
----
NULL

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

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

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

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

query I rowsort
SELECT - - 11 * - 45
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-84
SELECT COALESCE ( + - 83, + - 43 + - 32 + + CAST( NULL AS SIGNED ) * - COUNT( * ) * + 68 + + - CASE CASE - ( - MAX( ALL 42 ) ) WHEN MIN( + 5 ) * + COALESCE ( - COUNT( * ), - 47 + + 88, + 3 * + 63 + NULLIF ( + + 10, + + 17 + + 91 ) ) THEN - - 80 END WHEN - - 18 + - + CAST( NULL AS SIGNED ) THEN + - CASE 98 WHEN COUNT( - - 53 ) * 31 DIV + COUNT( * ) + + - 23 + 82 THEN 62 WHEN - 3 + 18 THEN NULL ELSE - SUM( + 91 ) END + - COUNT( * ) WHEN 21 THEN NULL ELSE NULL END, 10 + COUNT( * ), - 89 DIV - 10 ) * 26 + - 99
----
-2257

skipif mysql # not compatible
query I rowsort label-84
SELECT COALESCE ( + - 83, + - 43 + - 32 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 68 + + - CASE CASE - ( - MAX ( ALL 42 ) ) WHEN MIN ( + 5 ) * + COALESCE ( - COUNT ( * ), - 47 + + 88, + 3 * + 63 + NULLIF ( + + 10, + + 17 + + 91 ) ) THEN - - 80 END WHEN - - 18 + - + CAST ( NULL AS INTEGER ) THEN + - CASE 98 WHEN COUNT ( - - 53 ) * 31 / + COUNT ( * ) + + - 23 + 82 THEN 62 WHEN - 3 + 18 THEN NULL ELSE - SUM ( + 91 ) END + - COUNT ( * ) WHEN 21 THEN NULL ELSE NULL END, 10 + COUNT ( * ), - 89 / - 10 ) * 26 + - 99
----
-2257

onlyif mysql # aggregate syntax: 
query II rowsort label-85
SELECT + MIN( - - 69 ), 5 * - + NULLIF ( 23, - COUNT( DISTINCT + 35 ) ) col1
----
69
-115

skipif mysql # not compatible
query II rowsort label-85
SELECT + MIN ( - - 69 ), 5 * - + NULLIF ( 23, - COUNT ( DISTINCT + 35 ) ) col1
----
69
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL MAX( ALL + 37 ) + - 23 * - + 11 + + 93 + + + 62 AS col2
----
445

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL MAX ( ALL + 37 ) + - 23 * - + 11 + + 93 + + + 62 AS col2
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT DISTINCT + + 60 + - 13 - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT + + 60 + - 13 - COUNT ( * ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT ALL - 65 + - + ( + 35 ) DIV + + 11 col2
----
-68

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - 65 + - + ( + 35 ) / + + 11 col2
----
-68

query I rowsort
SELECT + + 79 * + - 48 AS col0
----
-3792

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

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + ( + COUNT ( * ) ) / - 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-91
SELECT - - 10 - + + 49, - 29 / - - CAST( NULL AS SIGNED ) col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-91
SELECT - - 10 - + + 49, - 29 / - - CAST ( NULL AS INTEGER ) col1
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + - 4 * CASE - - 51 WHEN + 25 THEN + 7 + - + ( - 89 ) / - 34 / 50 * COUNT( * ) * - COUNT( * ) * + - 17 * - - 10 - - MAX( ALL - 60 ) / - 66 * 22 WHEN 41 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT + - 4 * CASE - - 51 WHEN + 25 THEN + 7 + - + ( - 89 ) / - 34 / 50 * COUNT ( * ) * - COUNT ( * ) * + - 17 * - - 10 - - MAX ( ALL - 60 ) / - 66 * 22 WHEN 41 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - - 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + + NULLIF ( - 42, + NULLIF ( - MIN( NULLIF ( - + 6, - 78 ) ), - + ( + 53 ) ) * + COUNT( * ) ) + - + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-94
SELECT + + NULLIF ( - 42, + NULLIF ( - MIN ( NULLIF ( - + 6, - 78 ) ), - + ( + 53 ) ) * + COUNT ( * ) ) + - + COUNT ( * ) AS col0
----
-43

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

query I rowsort
SELECT ALL 1 - - 36 AS col0
----
37

query I rowsort
SELECT + 7 * - 36 * 8 AS col2
----
-2016

query I rowsort
SELECT - 13 * 12 AS col2
----
-156

query I rowsort
SELECT + 83 - 33 AS col2
----
50

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

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

query I rowsort
SELECT ALL 65 * - 82
----
-5330

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-103
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN + ( + COUNT( * ) ) * 51 THEN - + 21 * - 39 * + COALESCE ( + + 62, - + 98, + 44 * - 16 + + 73 * - 57 * - 58 + - - 86 + - 33 ) WHEN COUNT( * ) * + - 27 THEN NULL WHEN + - 10 THEN 5 + - - 66 - + 92 + 34 * + + 35 * + SUM( ALL + + 73 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN + ( + COUNT ( * ) ) * 51 THEN - + 21 * - 39 * + COALESCE ( + + 62, - + 98, + 44 * - 16 + + 73 * - 57 * - 58 + - - 86 + - 33 ) WHEN COUNT ( * ) * + - 27 THEN NULL WHEN + - 10 THEN 5 + - - 66 - + 92 + 34 * + + 35 * + SUM ( ALL + + 73 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-104
SELECT ALL 4 AS col2, - 54 DIV - + 32
----
4
1

skipif mysql # not compatible
query II rowsort label-104
SELECT ALL 4 AS col2, - 54 / - + 32
----
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + 23 + - COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-105
SELECT + 23 + - COUNT ( * ) AS col0
----
22

query II rowsort
SELECT ALL + 85, + 73 col1
----
85
73

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT + 41 * NULLIF ( NULLIF ( 53, 24 * MIN( ALL + - 67 ) ), - 14 ) * COUNT( * ) AS col2
----
2173

skipif mysql # not compatible
query I rowsort label-107
SELECT + 41 * NULLIF ( NULLIF ( 53, 24 * MIN ( ALL + - 67 ) ), - 14 ) * COUNT ( * ) AS col2
----
2173

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

skipif mysql # not compatible
query I rowsort label-108
SELECT - COUNT ( * ) * 62
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT + 14 AS col0, - ( + COUNT( + 90 ) )
----
14
-1

skipif mysql # not compatible
query II rowsort label-109
SELECT + 14 AS col0, - ( + COUNT ( + 90 ) )
----
14
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT ALL 31 DIV - + 30 + - 61 + - 10 + + ( ( - 51 ) )
----
-123

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 31 / - + 30 + - 61 + - 10 + + ( ( - 51 ) )
----
-123

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + 6 * - 1 + - + SUM( DISTINCT + + ( - 25 ) )
----
19

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + 6 * - 1 + - + SUM ( DISTINCT + + ( - 25 ) )
----
19

query I rowsort
SELECT - CASE 17 WHEN - 53 + 40 THEN + 99 * + 5 WHEN + 36 THEN NULL ELSE NULL END / 53 AS col1
----
NULL

query I rowsort
SELECT ALL + 99 * - ( - 17 ) + - 53
----
1630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-116
SELECT ALL - 49 * ( COUNT( * ) ) + + + 3 DIV + 37 + + - 5 + + + 70 * 26 * + 51 * - 75 AS col2
----
-6961554

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - 49 * ( COUNT ( * ) ) + + + 3 / + 37 + + - 5 + + + 70 * 26 * + 51 * - 75 AS col2
----
-6961554

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT ALL + NULLIF ( + + CAST( + 49 AS SIGNED ), + CASE - 13 WHEN AVG ( ALL + 79 ) * + 76 * COUNT( - 47 ) * + 43 THEN NULL WHEN - - 70 + + 78 THEN NULL WHEN - 97 * + 55 * + + 19 - - CASE WHEN + 50 <> - - 24 THEN - AVG ( 11 ) END * - 73 THEN - + 93 ELSE NULL END + - + 66 )
----
49

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + NULLIF ( + + CAST ( + 49 AS INTEGER ), + CASE - 13 WHEN AVG ( ALL + 79 ) * + 76 * COUNT ( - 47 ) * + 43 THEN NULL WHEN - - 70 + + 78 THEN NULL WHEN - 97 * + 55 * + + 19 - - CASE WHEN + 50 <> - - 24 THEN - AVG ( 11 ) END * - 73 THEN - + 93 ELSE NULL END + - + 66 )
----
49

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

skipif mysql # not compatible
query I rowsort label-119
SELECT - 82 / COUNT ( * )
----
-82

query II rowsort
SELECT - 26 + - 87 * - 65 col1, - 89
----
5629
-89

query I rowsort
SELECT - 95 * + 97
----
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL SUM( 78 ) * 40 * + 4 + 58 * + + 36 AS col0
----
14568

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL SUM ( 78 ) * 40 * + 4 + 58 * + + 36 AS col0
----
14568

query I rowsort
SELECT - 35 - 3 AS col0
----
-38

query I rowsort
SELECT DISTINCT + COALESCE ( + 0, + 33 + + - 20 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT 8 * + 44 - - + 29 * + COUNT( * ) * + 82 * - 27 + + - 3
----
-63857

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT 8 * + 44 - - + 29 * + COUNT ( * ) * + 82 * - 27 + + - 3
----
-63857

query I rowsort
SELECT ALL + + 88 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT + 66 * + ( - 84 ) + - + ( - AVG ( + 52 ) ) * ( MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) - 70 + - 42 / + COALESCE ( - COUNT( * ), 36, + ( - 97 ) - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT + 66 * + ( - 84 ) + - + ( - AVG ( + 52 ) ) * ( MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - 70 + - 42 / + COALESCE ( - COUNT ( * ), 36, + ( - 97 ) - 84 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-128
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, 9 + + 35
----
NULL
44

skipif mysql # not compatible
query II rowsort label-128
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, 9 + + 35
----
NULL
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT ( 72 ) * - SUM( ALL - - 13 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT ( 72 ) * - SUM ( ALL - - 13 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 66 AS col1, - 59 AS col0
----
66
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-131
SELECT ALL + + 83 * CAST( - + 47 AS SIGNED ) AS col0, + 89 + - - 56
----
-3901
145

skipif mysql # not compatible
query II rowsort label-131
SELECT ALL + + 83 * CAST ( - + 47 AS INTEGER ) AS col0, + 89 + - - 56
----
-3901
145

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT - + 39 + - + COUNT( * ) * + 49 + 35
----
-53

skipif mysql # not compatible
query I rowsort label-132
SELECT - + 39 + - + COUNT ( * ) * + 49 + 35
----
-53

query II rowsort
SELECT - - 64 + + + 99 * 1 AS col1, 26
----
163
26

query I rowsort
SELECT + 11 + 10 - - 18 * 98 + + 43
----
1828

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT - 60 AS col1, - MAX( DISTINCT - + 56 ) AS col0
----
-60
56

skipif mysql # not compatible
query II rowsort label-135
SELECT - 60 AS col1, - MAX ( DISTINCT - + 56 ) AS col0
----
-60
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-136
SELECT - 64 / + 74 * + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) + + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT - 64 / + 74 * + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + + - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT + 72 + + MIN( + 78 )
----
150

skipif mysql # not compatible
query I rowsort label-137
SELECT + 72 + + MIN ( + 78 )
----
150

query I rowsort
SELECT DISTINCT + 96 * + 58
----
5568

query I rowsort
SELECT + 60 + - 44
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT + 77 DIV ( + 35 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-140
SELECT + 77 / ( + 35 ) AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-141
SELECT + 53 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT 56 * - 59 / + CASE - COUNT( DISTINCT + 91 ) WHEN 26 THEN CAST( 59 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT 56 * - 59 / + CASE - COUNT ( DISTINCT + 91 ) WHEN 26 THEN CAST ( 59 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT COUNT( * ) * + CASE + 76 WHEN + + 78 THEN + - 80 END, 4 AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-144
SELECT COUNT ( * ) * + CASE + 76 WHEN + + 78 THEN + - 80 END, 4 AS col1
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT ALL 5 + - + MAX( 1 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL 5 + - + MAX ( 1 ) AS col1
----
4

query I rowsort
SELECT 46 + - + CASE - + 72 WHEN - 90 THEN - - ( - + COALESCE ( + 38, - + 32, + - 21 ) ) END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 17 + 20 col2, 72
----
37
72

query I rowsort
SELECT ALL 82 * 78 AS col1
----
6396

query I rowsort
SELECT ALL ( - 46 ) + - 59 * - 1 col1
----
13

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

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

query I rowsort
SELECT ALL - 71 + 65
----
-6

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

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - NULLIF ( - 90, - + COUNT ( * ) )
----
90

query I rowsort
SELECT COALESCE ( 90, - ( + CASE + 16 WHEN - 13 THEN 74 END ) ) * + + 25 AS col1
----
2250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT + COUNT( * ) * - 14 DIV + 59 + + + 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-154
SELECT + COUNT ( * ) * - 14 / + 59 + + + 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL - 59 + + MIN( ALL - - 77 )
----
18

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - 59 + + MIN ( ALL - - 77 )
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-156
SELECT + 19 * - 64 AS col1, 50 + 83 + - + 98 DIV - + 59
----
-1216
134

skipif mysql # not compatible
query II rowsort label-156
SELECT + 19 * - 64 AS col1, 50 + 83 + - + 98 / - + 59
----
-1216
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-157
SELECT + 14 * CAST( + 18 AS SIGNED ) * - - 78 + - + COUNT( * ) * - + 67
----
19723

skipif mysql # not compatible
query I rowsort label-157
SELECT + 14 * CAST ( + 18 AS INTEGER ) * - - 78 + - + COUNT ( * ) * - + 67
----
19723

query I rowsort
SELECT ALL + 98 - 33 + - 11 AS col0
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT DISTINCT NULLIF ( NULLIF ( CAST( NULL AS SIGNED ), 78 ), + + 59 ) * + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT NULLIF ( NULLIF ( CAST ( NULL AS INTEGER ), 78 ), + + 59 ) * + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL + - NULLIF ( 73, + + 66 * - 53 - 58 + - 57 ) - + NULLIF ( 83, - 31 + - 24 * NULLIF ( + 46, 12 * - + COUNT( * ) * 87 + - 58 ) * + 81 * + 73 + + 35 - - COUNT( * ) * 97 ) * 35 AS col1
----
-2978

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + - NULLIF ( 73, + + 66 * - 53 - 58 + - 57 ) - + NULLIF ( 83, - 31 + - 24 * NULLIF ( + 46, 12 * - + COUNT ( * ) * 87 + - 58 ) * + 81 * + 73 + + 35 - - COUNT ( * ) * 97 ) * 35 AS col1
----
-2978

query I rowsort
SELECT COALESCE ( - - 23, + 66 )
----
23

query I rowsort
SELECT + 35 * - + 43 AS col0
----
-1505

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT - 9 + 65 col0, COUNT( * ) + - + 37 + + COUNT( * ) * - 42
----
56
-78

skipif mysql # not compatible
query II rowsort label-164
SELECT - 9 + 65 col0, COUNT ( * ) + - + 37 + + COUNT ( * ) * - 42
----
56
-78

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

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

query I rowsort
SELECT DISTINCT + 65 * 6 AS col1
----
390

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

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

query I rowsort
SELECT ALL 48 * + NULLIF ( - + 72, 15 + - - 81 + + 52 )
----
-3456

query I rowsort
SELECT 11 * - - 13
----
143

query II rowsort
SELECT 14 + - 78 - 30, + 96 AS col0
----
-94
96

query I rowsort
SELECT 56 + - 50 AS col2
----
6

query I rowsort
SELECT ALL - 47 * + 75
----
-3525

query I rowsort
SELECT 65 + + 35
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT ALL 6 + + 95 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL 6 + + 95 / - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT 55 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT 55 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT MIN( + + 23 ) - + + 37 + + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-177
SELECT MIN ( + + 23 ) - + + 37 + + - COUNT ( * )
----
-15

query II rowsort
SELECT ALL + 76 + + COALESCE ( + 35, 70, + 40 ) AS col2, + 43
----
111
43

query II rowsort
SELECT ALL 34 * - 19 * + 17 AS col0, - 55 * - 69 AS col1
----
-10982
3795

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT 81 DIV - + 41
----
-1

skipif mysql # not compatible
query I rowsort label-180
SELECT 81 / - + 41
----
-1

query I rowsort
SELECT DISTINCT 63 + - 21 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL 78 * COUNT( * ) * + 34 - + + 87
----
2565

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL 78 * COUNT ( * ) * + 34 - + + 87
----
2565

query I rowsort
SELECT ALL 25 * 43
----
1075

query I rowsort
SELECT + + NULLIF ( + - 82, - - 4 ) AS col2
----
-82

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

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

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

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

query I rowsort
SELECT ALL 14 * + + 57 AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT 22 * + COUNT( * ) + - NULLIF ( + 20, + 92 * 22 / - 3 ) + - 66 + + - 99
----
-163

skipif mysql # not compatible
query I rowsort label-188
SELECT 22 * + COUNT ( * ) + - NULLIF ( + 20, + 92 * 22 / - 3 ) + - 66 + + - 99
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL - + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN + + 2 THEN CASE CASE 97 WHEN + 95 + + CAST( NULL AS SIGNED ) THEN NULL ELSE + 85 + SUM( DISTINCT - + 76 ) END WHEN + 77 THEN + 33 * - MIN( DISTINCT 29 ) * - + 68 + 57 * 75 / - - COALESCE ( - + 40, + 32 ) WHEN + 97 THEN - 63 ELSE + - 79 / 83 - - - 12 * 8 * + + CAST( 23 AS SIGNED ) * + - 28 * + 21 * + 14 * + COUNT( * ) + - - 2 * + + 52 END WHEN - 89 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL - + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN + + 2 THEN CASE CASE 97 WHEN + 95 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 85 + SUM ( DISTINCT - + 76 ) END WHEN + 77 THEN + 33 * - MIN ( DISTINCT 29 ) * - + 68 + 57 * 75 / - - COALESCE ( - + 40, + 32 ) WHEN + 97 THEN - 63 ELSE + - 79 / 83 - - - 12 * 8 * + + CAST ( 23 AS INTEGER ) * + - 28 * + 21 * + 14 * + COUNT ( * ) + - - 2 * + + 52 END WHEN - 89 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-190
SELECT + NULLIF ( 53, 16 - + - 45 ) + + + 98 AS col1, 58 * NULLIF ( + 81, 25 + 62 + - MIN( + - NULLIF ( - - 9, - 68 ) ) * - + 26 ) AS col2
----
151
4698

skipif mysql # not compatible
query II rowsort label-190
SELECT + NULLIF ( 53, 16 - + - 45 ) + + + 98 AS col1, 58 * NULLIF ( + 81, 25 + 62 + - MIN ( + - NULLIF ( - - 9, - 68 ) ) * - + 26 ) AS col2
----
151
4698

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

query I rowsort
SELECT + 33 + + 72
----
105

query II rowsort
SELECT DISTINCT - 66 AS col1, 13 AS col1
----
-66
13

query I rowsort
SELECT ALL - + NULLIF ( - 80, 34 ) * - - 66 col1
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT 25 + + NULLIF ( + NULLIF ( 67, 64 ), + - COUNT( * ) * + 7 * - - 30 + + 19 - 21 * + 62 ) + - 87
----
5

skipif mysql # not compatible
query I rowsort label-195
SELECT 25 + + NULLIF ( + NULLIF ( 67, 64 ), + - COUNT ( * ) * + 7 * - - 30 + + 19 - 21 * + 62 ) + - 87
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-197
SELECT ALL + ( + 40 ) * + 25 + + 66 + + 82 + + + 45 + - CASE 87 WHEN SUM( - + 94 ) * + - 85 + 78 THEN + ( - + 99 ) * + 68 * 32 + 77 * + CAST( - + CAST( 2 AS DECIMAL ) AS DECIMAL ) * 83 WHEN COUNT( * ) THEN - + 31 ELSE NULL END + 58 * 55 AS col2, 72 + 40 + 65 - - 82 + + 68
----
NULL
327

skipif mysql # not compatible
query II rowsort label-197
SELECT ALL + ( + 40 ) * + 25 + + 66 + + 82 + + + 45 + - CASE 87 WHEN SUM ( - + 94 ) * + - 85 + 78 THEN + ( - + 99 ) * + 68 * 32 + 77 * + CAST ( - + CAST ( 2 AS REAL ) AS REAL ) * 83 WHEN COUNT ( * ) THEN - + 31 ELSE NULL END + 58 * 55 AS col2, 72 + 40 + 65 - - 82 + + 68
----
NULL
327

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT 2 * + ( - MAX( DISTINCT + - 60 ) ) * - 62 - 33 AS col1
----
-7473

skipif mysql # not compatible
query I rowsort label-198
SELECT 2 * + ( - MAX ( DISTINCT + - 60 ) ) * - 62 - 33 AS col1
----
-7473

query I rowsort
SELECT DISTINCT + 59 + - ( 7 )
----
52

query I rowsort
SELECT ALL 42 + + - 7
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-201
SELECT - 33, 84 * - 65 + - CASE - 24 WHEN + COUNT( * ) + + + 63 + - + CAST( + CASE COUNT( * ) WHEN NULLIF ( COUNT( * ), + COALESCE ( + + 57, + 73 - 59, + 32 + + + 75 + - + 68 - + 18 ) - - AVG ( ALL 31 ) ) / 59 THEN NULL WHEN - + CAST( NULL AS SIGNED ) * - 84 THEN NULL WHEN - - 44 + + + 71 + - - AVG ( DISTINCT + 32 ) + + - COUNT( * ) + + CAST( - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) * + COUNT( * ) THEN + + 22 WHEN - + 39 THEN - 82 END AS SIGNED ) - - 59 THEN - 94 ELSE NULL END * - 87 + 51 * - 29 AS col2
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-201
SELECT - 33, 84 * - 65 + - CASE - 24 WHEN + COUNT ( * ) + + + 63 + - + CAST ( + CASE COUNT ( * ) WHEN NULLIF ( COUNT ( * ), + COALESCE ( + + 57, + 73 - 59, + 32 + + + 75 + - + 68 - + 18 ) - - AVG ( ALL 31 ) ) / 59 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) * - 84 THEN NULL WHEN - - 44 + + + 71 + - - AVG ( DISTINCT + 32 ) + + - COUNT ( * ) + + CAST ( - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + COUNT ( * ) THEN + + 22 WHEN - + 39 THEN - 82 END AS INTEGER ) - - 59 THEN - 94 ELSE NULL END * - 87 + 51 * - 29 AS col2
----
-33
NULL

query I rowsort
SELECT ALL ( - + ( - 14 ) ) + - - 80 AS col0
----
94

query I rowsort
SELECT + 24 + ( + 47 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT - NULLIF ( - 24, + COUNT( ALL + 16 ) ) + 43 - 64
----
3

skipif mysql # not compatible
query I rowsort label-204
SELECT - NULLIF ( - 24, + COUNT ( ALL + 16 ) ) + 43 - 64
----
3

query II rowsort
SELECT 85 AS col1, - 84
----
85
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT + 1 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-206
SELECT + 1 / + 97
----
0

query I rowsort
SELECT - 6 + + 9 AS col0
----
3

query I rowsort
SELECT ALL - 16 + + 39
----
23

query I rowsort
SELECT - NULLIF ( + 44, 29 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT - 7 + 12
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT( * ) * 89 END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-211
SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT ( * ) * 89 END AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-212
SELECT ALL + 89 + - COUNT( * ) + - 12 DIV - 74
----
88

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL + 89 + - COUNT ( * ) + - 12 / - 74
----
88

query I rowsort
SELECT - 70 + 66
----
-4

query II rowsort
SELECT ALL 54 AS col0, - 68 AS col2
----
54
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-215
SELECT DISTINCT 6 AS col2, CAST( NULL AS SIGNED ) * - 18 / - - ( - ( + + CAST( - 24 AS SIGNED ) ) )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-215
SELECT DISTINCT 6 AS col2, CAST ( NULL AS INTEGER ) * - 18 / - - ( - ( + + CAST ( - 24 AS INTEGER ) ) )
----
6
NULL

query I rowsort
SELECT - 47 + + 68
----
21

query I rowsort
SELECT ALL - 16 * 45
----
-720

query I rowsort
SELECT ALL + 89 + + + 8
----
97

query II rowsort
SELECT - 65 AS col1, 57 col0
----
-65
57

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT - MIN( DISTINCT + 44 ) + + COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-220
SELECT - MIN ( DISTINCT + 44 ) + + COUNT ( * ) col2
----
-43

query I rowsort
SELECT - 11 * - + 82 col1
----
902

query I rowsort
SELECT - 17 * + - 12 AS col1
----
204

query I rowsort
SELECT - ( 29 ) + - 57
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT - 99 * - COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT - 99 * - COUNT ( * ) col2
----
99

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

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

query I rowsort
SELECT - ( - + 88 ) + - ( ( 92 ) ) col2
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-228
SELECT + 60 * 15 * 70 + + COALESCE ( - + COUNT( * ), 63 ) + - ( - 23 ) DIV + COUNT( * )
----
63022

skipif mysql # not compatible
query I rowsort label-228
SELECT + 60 * 15 * 70 + + COALESCE ( - + COUNT ( * ), 63 ) + - ( - 23 ) / + COUNT ( * )
----
63022

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT ALL + - 76 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + - 76 / - 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT ALL + + 38 AS col1, - 21 * - + COUNT( * )
----
38
21

skipif mysql # not compatible
query II rowsort label-230
SELECT ALL + + 38 AS col1, - 21 * - + COUNT ( * )
----
38
21

query I rowsort
SELECT - - 77 * + 19 AS col2
----
1463

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-232
SELECT ALL + - 47 AS col0, CAST( - 76 AS SIGNED ) * + 45 + - + 47
----
-47
-3467

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL + - 47 AS col0, CAST ( - 76 AS INTEGER ) * + 45 + - + 47
----
-47
-3467

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

skipif mysql # not compatible
query II rowsort label-233
SELECT 35 col1, COUNT ( * ) AS col0
----
35
1

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT ALL + + COALESCE ( - 52, - 18, 68 DIV + - 36 ) * 41 + - 89 * + 73 AS col0
----
-8629

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL + + COALESCE ( - 52, - 18, 68 / + - 36 ) * 41 + - 89 * + 73 AS col0
----
-8629

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-235
SELECT + + 94, CAST( - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-235
SELECT + + 94, CAST ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
94
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-236
SELECT ALL + 81 AS col2, 99 * + COUNT( * ) - + 6 DIV - - COUNT( * ) + + + 0 AS col1
----
81
93

skipif mysql # not compatible
query II rowsort label-236
SELECT ALL + 81 AS col2, 99 * + COUNT ( * ) - + 6 / - - COUNT ( * ) + + + 0 AS col1
----
81
93

onlyif mysql # aggregate syntax: 
query II rowsort label-237
SELECT ALL + 27 AS col2, COUNT( ALL + + 15 ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-237
SELECT ALL + 27 AS col2, COUNT ( ALL + + 15 ) AS col2
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT + COUNT( * ) * + - CASE 12 WHEN - 13 THEN - + 75 * - 85 END + + 33 + - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + COUNT ( * ) * + - CASE 12 WHEN - 13 THEN - + 75 * - 85 END + + 33 + - + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-239
SELECT - 25 * + ( + 43 ) AS col1, - 74 + - CAST( NULL AS SIGNED )
----
-1075
NULL

skipif mysql # not compatible
query II rowsort label-239
SELECT - 25 * + ( + 43 ) AS col1, - 74 + - CAST ( NULL AS INTEGER )
----
-1075
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT COUNT( + 28 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-241
SELECT COUNT ( + 28 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT COUNT( ALL + 79 ) AS col0, - 58 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-242
SELECT COUNT ( ALL + 79 ) AS col0, - 58 AS col2
----
1
-58

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

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

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

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

query I rowsort
SELECT + 95 - + ( 8 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT ALL COUNT( * ) * - - 51 + - 81 - - NULLIF ( COUNT( 2 ), - + 61 ) + ( ( - - SUM( - 41 ) ) ) DIV - 55 * - 77 * - 25 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL COUNT ( * ) * - - 51 + - 81 - - NULLIF ( COUNT ( 2 ), - + 61 ) + ( ( - - SUM ( - 41 ) ) ) / - 55 * - 77 * - 25 AS col0
----
-29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ALL MAX( ALL + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL MAX ( ALL + 72 ) AS col1
----
72

query I rowsort
SELECT ALL + 85 * + - 72
----
-6120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-251
SELECT DISTINCT 88 * + ( + - COALESCE ( COUNT( * ), - + 6 DIV + - 53 - - 20 + - ( + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT 88 * + ( + - COALESCE ( COUNT ( * ), - + 6 / + - 53 - - 20 + - ( + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) ) )
----
-88

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

onlyif mysql # DIV for integer division: 
query II rowsort label-253
SELECT - NULLIF ( - ( 94 ), - + 88 ) DIV 58 AS col2, - 90
----
1
-90

skipif mysql # not compatible
query II rowsort label-253
SELECT - NULLIF ( - ( 94 ), - + 88 ) / 58 AS col2, - 90
----
1
-90

query I rowsort
SELECT ALL 23 * + 78 * + - 32
----
-57408

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT - 93 * + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-257
SELECT - 93 * + COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT ALL NULLIF ( - 32, - - ( 57 ) ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-259
SELECT - CAST( 84 AS SIGNED ) AS col2, + 8 AS col2
----
-84
8

skipif mysql # not compatible
query II rowsort label-259
SELECT - CAST ( 84 AS INTEGER ) AS col2, + 8 AS col2
----
-84
8

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

query I rowsort
SELECT - 57 - 64 - 15
----
-136

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

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

query II rowsort
SELECT + ( + 69 ) AS col0, 93 - + 5
----
69
88

query I rowsort
SELECT - + 66 * + ( + 30 ) * - - 75 * 71 + + 33 AS col2
----
-10543467

query I rowsort
SELECT DISTINCT - 44 * - - 98 * - 75 * + 82 col0
----
26518800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT DISTINCT - - 74 * - - CASE - CAST( + 42 AS SIGNED ) WHEN + 45 * + COUNT( 34 ) - COUNT( * ) THEN COUNT( * ) * 55 + + 77 / - 94 / + 8 / 25 + 27 + - 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT - - 74 * - - CASE - CAST ( + 42 AS INTEGER ) WHEN + 45 * + COUNT ( 34 ) - COUNT ( * ) THEN COUNT ( * ) * 55 + + 77 / - 94 / + 8 / 25 + 27 + - 35 ELSE NULL END
----
NULL

query I rowsort
SELECT - 62 * 39 * + 93
----
-224874

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT - - 89 - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-268
SELECT - - 89 - COUNT ( * ) AS col1
----
88

query II rowsort
SELECT - - 40 * + 58, 2 AS col2
----
2320
2

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL - MAX( - - 2 ) + - COUNT( ALL 33 ) + - 64 col1
----
-67

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - MAX ( - - 2 ) + - COUNT ( ALL 33 ) + - 64 col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT - + COUNT( * ) * - 40 * + - 86 * - 8 + + COALESCE ( 7, - COALESCE ( + - MIN( DISTINCT + 4 ), + - 59 + + + 78 ) )
----
27527

skipif mysql # not compatible
query I rowsort label-271
SELECT - + COUNT ( * ) * - 40 * + - 86 * - 8 + + COALESCE ( 7, - COALESCE ( + - MIN ( DISTINCT + 4 ), + - 59 + + + 78 ) )
----
27527

query II rowsort
SELECT - 65 * - - 6, + 4 + 62 AS col1
----
-390
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT ALL + + 32 DIV 24 DIV + 61 * 78 - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL + + 32 / 24 / + 61 * 78 - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-274
SELECT 4 DIV - CAST( - + ( - 46 ) AS SIGNED ) + - 21 + 80 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-274
SELECT 4 / - CAST ( - + ( - 46 ) AS INTEGER ) + - 21 + 80 AS col0
----
59

query I rowsort
SELECT 59 * + 10
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL 89 + + MIN( ALL 32 )
----
121

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL 89 + + MIN ( ALL 32 )
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT ALL + 16 DIV - + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL + 16 / - + 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT 49 + - - 79 * ( + - COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-278
SELECT 49 + - - 79 * ( + - COUNT ( * ) )
----
-30

query I rowsort
SELECT ALL 83 * ( - 97 ) * + 26
----
-209326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT ALL + CASE - 78 WHEN + 37 * + - 72 / - 86 * 45 + + 67 THEN NULL WHEN - - CAST( - - ( - - CAST( + 49 AS SIGNED ) ) AS SIGNED ) THEN - + COUNT( * ) * - 8 END - 10 * + + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL + CASE - 78 WHEN + 37 * + - 72 / - 86 * 45 + + 67 THEN NULL WHEN - - CAST ( - - ( - - CAST ( + 49 AS INTEGER ) ) AS INTEGER ) THEN - + COUNT ( * ) * - 8 END - 10 * + + 82 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT MAX( DISTINCT CAST( 22 AS SIGNED ) ) + + + MAX( ALL + 78 ) col0
----
100

skipif mysql # not compatible
query I rowsort label-281
SELECT MAX ( DISTINCT CAST ( 22 AS INTEGER ) ) + + + MAX ( ALL + 78 ) col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT ALL + 26 * + 86 * 10 DIV - + 1 AS col1
----
-22360

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL + 26 * + 86 * 10 / - + 1 AS col1
----
-22360

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT ALL 35 - 13 + + 41 DIV - 22
----
21

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL 35 - 13 + + 41 / - 22
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT MIN( ALL 54 ) * + 83 * 10 * - CAST( NULL AS SIGNED ) * - - ( MIN( DISTINCT + ( - 45 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT MIN ( ALL 54 ) * + 83 * 10 * - CAST ( NULL AS INTEGER ) * - - ( MIN ( DISTINCT + ( - 45 ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT CASE - + 31 WHEN + 79 THEN NULL WHEN - + 55 * - + 83 THEN NULL ELSE + MAX( ALL 21 ) + 1 END + - + 66 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-285
SELECT CASE - + 31 WHEN + 79 THEN NULL WHEN - + 55 * - + 83 THEN NULL ELSE + MAX ( ALL 21 ) + 1 END + - + 66 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ( ( + + CASE 37 WHEN - 21 THEN NULL WHEN + - 61 / + 48 * + - 19 + - + 73 + + 12 THEN - SUM( - ( + 69 ) ) ELSE NULL END ) ) * - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT ( ( + + CASE 37 WHEN - 21 THEN NULL WHEN + - 61 / + 48 * + - 19 + - + 73 + + 12 THEN - SUM ( - ( + 69 ) ) ELSE NULL END ) ) * - - 74
----
NULL

query II rowsort
SELECT 64, + 23 AS col0
----
64
23

query II rowsort
SELECT ALL 19, 53 AS col1
----
19
53

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT ( + COUNT( * ) ) * 94 AS col2, 59 AS col1
----
94
59

skipif mysql # not compatible
query II rowsort label-289
SELECT ( + COUNT ( * ) ) * 94 AS col2, 59 AS col1
----
94
59

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

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

query I rowsort
SELECT ALL 80 * + 36
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT 62 + + - 8 * COUNT( * ) * + 91
----
-666

skipif mysql # not compatible
query I rowsort label-292
SELECT 62 + + - 8 * COUNT ( * ) * + 91
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - 19 - + COUNT( * ) * COUNT( * ) - - COUNT( * ) * MAX( DISTINCT - ( - 70 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-293
SELECT - 19 - + COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) * MAX ( DISTINCT - ( - 70 ) ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL ( CASE + 21 WHEN + CAST( NULL AS SIGNED ) * - - 42 THEN - ( - 11 ) * 55 + + + 88 END ) * + 61 * + 52 * + 75 * 9 * + CAST( ( COUNT( * ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL ( CASE + 21 WHEN + CAST ( NULL AS INTEGER ) * - - 42 THEN - ( - 11 ) * 55 + + + 88 END ) * + 61 * + 52 * + 75 * 9 * + CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 63 * + 40 - + ( 14 ) * + NULLIF ( 86, + 98 ) * 40
----
-50680

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT - + 54 AS col2, COUNT( ALL + ( ( - 21 ) ) )
----
-54
1

skipif mysql # not compatible
query II rowsort label-296
SELECT - + 54 AS col2, COUNT ( ALL + ( ( - 21 ) ) )
----
-54
1

onlyif mysql # DIV for integer division: 
query I rowsort label-297
SELECT + ( 5 ) DIV + - 8 + 91 col1
----
91

skipif mysql # not compatible
query I rowsort label-297
SELECT + ( 5 ) / + - 8 + 91 col1
----
91

query I rowsort
SELECT ALL + - 84 + + 78 + - 41 * 81
----
-3327

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT DISTINCT - 7 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - 7 / + 46
----
0

query II rowsort
SELECT DISTINCT 64 + 47 * + 81 AS col1, + 15
----
3871
15

query I rowsort
SELECT + ( + 80 ) + + - 16 + - + 77 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL - COUNT( * ) + + + 51
----
50

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - COUNT ( * ) + + + 51
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT DISTINCT - ( + 24 ) + 53 DIV - 17 - + 93 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT - ( + 24 ) + 53 / - 17 - + 93 AS col0
----
-120

query I rowsort
SELECT - - ( 29 ) * + 38 + - - 85 * - + 64
----
-4338

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-305
SELECT 3 DIV + 97 + + COUNT( * ) + 96 + - 70 + + ( + - ( - - 41 ) ) DIV - COUNT( * ) AS col2, - 93
----
68
-93

skipif mysql # not compatible
query II rowsort label-305
SELECT 3 / + 97 + + COUNT ( * ) + 96 + - 70 + + ( + - ( - - 41 ) ) / - COUNT ( * ) AS col2, - 93
----
68
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - MAX( + - 18 ) + 58 + - 64 * NULLIF ( + - 70, + - 13 * + + 86 ) AS col2
----
4556

skipif mysql # not compatible
query I rowsort label-306
SELECT - MAX ( + - 18 ) + 58 + - 64 * NULLIF ( + - 70, + - 13 * + + 86 ) AS col2
----
4556

query I rowsort
SELECT ALL + + 4 + - 74
----
-70

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

skipif mysql # not compatible
query I rowsort label-308
SELECT + COUNT ( * ) * - 16 - - COUNT ( + + 42 ) AS col1
----
-15

query I rowsort
SELECT ( + 95 ) * - - 72 * - 80 + + 87 * + 24
----
-545112

query I rowsort
SELECT ALL - 57 + 71
----
14

query I rowsort
SELECT 43 * + - 40
----
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL ( + - 6 ) * + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL ( + - 6 ) * + COUNT ( * )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT 49 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-313
SELECT 49 / + - 42
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT DISTINCT - ( 28 ) AS col0, + NULLIF ( + MIN( ALL 2 ), 84 ) AS col0
----
-28
2

skipif mysql # not compatible
query II rowsort label-314
SELECT DISTINCT - ( 28 ) AS col0, + NULLIF ( + MIN ( ALL 2 ), 84 ) AS col0
----
-28
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT MIN( 62 ) DIV COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-315
SELECT MIN ( 62 ) / COUNT ( * ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT DISTINCT - 67 DIV 35 * - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - 67 / 35 * - 49 AS col0
----
49

query I rowsort
SELECT 58 * - + 92
----
-5336

onlyif mysql # DIV for integer division: 
query II rowsort label-318
SELECT 64 DIV 52 AS col1, + 12
----
1
12

skipif mysql # not compatible
query II rowsort label-318
SELECT 64 / 52 AS col1, + 12
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ALL MAX( DISTINCT + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL MAX ( DISTINCT + 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT + CASE - 32 WHEN - + 89 - 23 * + ( + + SUM( DISTINCT - NULLIF ( - + 99, 29 ) ) ) + + 46 THEN NULL WHEN - 95 THEN + 31 ELSE NULL END * CAST( - ( 71 ) AS SIGNED ) - - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT + CASE - 32 WHEN - + 89 - 23 * + ( + + SUM ( DISTINCT - NULLIF ( - + 99, 29 ) ) ) + + 46 THEN NULL WHEN - 95 THEN + 31 ELSE NULL END * CAST ( - ( 71 ) AS INTEGER ) - - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL COUNT( ALL 89 ) * - + ( 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL COUNT ( ALL 89 ) * - + ( 30 ) AS col0
----
-30

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

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

query I rowsort
SELECT ALL + 95 * - + 95
----
-9025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT DISTINCT CASE - 9 WHEN - 1 * - + 82 THEN - 7 WHEN COUNT( * ) THEN NULL ELSE - 73 END + + 43 - - 42 DIV ( 43 ) * - + 2
----
-30

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT CASE - 9 WHEN - 1 * - + 82 THEN - 7 WHEN COUNT ( * ) THEN NULL ELSE - 73 END + + 43 - - 42 / ( 43 ) * - + 2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT 73 + - 30, 83 + - - COALESCE ( - - 72, 42 ) + 72 + - - 92 - + COUNT( * ) + + 28 AS col0
----
43
346

skipif mysql # not compatible
query II rowsort label-325
SELECT 73 + - 30, 83 + - - COALESCE ( - - 72, 42 ) + 72 + - - 92 - + COUNT ( * ) + + 28 AS col0
----
43
346

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

query I rowsort
SELECT 46 + - 25
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT - COUNT( * ) - + 5 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-328
SELECT - COUNT ( * ) - + 5 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT + NULLIF ( - 47, + 25 + - ( 1 ) ) + - - 52 + + SUM( ALL 72 ) + + 18 + 87 * 28 + + - 62 DIV - - 67 + + ( 3 ) * + + 40 * - 8
----
1571

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + NULLIF ( - 47, + 25 + - ( 1 ) ) + - - 52 + + SUM ( ALL 72 ) + + 18 + 87 * 28 + + - 62 / - - 67 + + ( 3 ) * + + 40 * - 8
----
1571

query II rowsort
SELECT ALL + 95 + 87 * - - ( + 49 ) col1, 55 AS col2
----
4358
55

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT ALL + 78 + + - 11, COUNT( * ) col2
----
67
1

skipif mysql # not compatible
query II rowsort label-331
SELECT ALL + 78 + + - 11, COUNT ( * ) col2
----
67
1

query I rowsort
SELECT DISTINCT + 67 + - - 77 * - - 24
----
1915

query I rowsort
SELECT - - 46 col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT DISTINCT + ( - 94 ), COUNT( 69 ) + + 20 AS col0
----
-94
21

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT + ( - 94 ), COUNT ( 69 ) + + 20 AS col0
----
-94
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-335
SELECT ALL 50 + CAST( AVG ( DISTINCT + - 43 ) AS SIGNED ), 48 AS col2
----
7
48

skipif mysql # not compatible
query II rowsort label-335
SELECT ALL 50 + CAST ( AVG ( DISTINCT + - 43 ) AS INTEGER ), 48 AS col2
----
7
48

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT + MIN( DISTINCT - 22 ) + - 41 * - + 34
----
1372

skipif mysql # not compatible
query I rowsort label-336
SELECT + MIN ( DISTINCT - 22 ) + - 41 * - + 34
----
1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT DISTINCT CAST( AVG ( ALL - 76 ) AS SIGNED ) + - 78 + - 50 col0
----
-204

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT CAST ( AVG ( ALL - 76 ) AS INTEGER ) + - 78 + - 50 col0
----
-204

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-338
SELECT + CAST( NULL AS DECIMAL ) * 85 - - + COUNT( + 84 ) * - COUNT( * ) * + 98 + COUNT( * ) + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT + CAST ( NULL AS REAL ) * 85 - - + COUNT ( + 84 ) * - COUNT ( * ) * + 98 + COUNT ( * ) + + 37 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 12 * 64 AS col2
----
768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT - MAX( + 76 ) DIV + ( 10 ) - + COALESCE ( + 89, COUNT( * ) + 66 - - 63 + - + COALESCE ( - NULLIF ( + 52, + 78 + - COUNT( * ) ), + 32 + 33 + + COUNT( * ) DIV + + 57 + - + COUNT( * ), - 14 * + 75 * 32 - + ( + 33 ) ) * 94 + - 79 DIV ( - ( - ( + 27 ) ) ) ) * + - 54 AS col1
----
4799

skipif mysql # not compatible
query I rowsort label-340
SELECT - MAX ( + 76 ) / + ( 10 ) - + COALESCE ( + 89, COUNT ( * ) + 66 - - 63 + - + COALESCE ( - NULLIF ( + 52, + 78 + - COUNT ( * ) ), + 32 + 33 + + COUNT ( * ) / + + 57 + - + COUNT ( * ), - 14 * + 75 * 32 - + ( + 33 ) ) * 94 + - 79 / ( - ( - ( + 27 ) ) ) ) * + - 54 AS col1
----
4799

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT + + ( + + MAX( ALL - 58 ) ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-342
SELECT + + ( + + MAX ( ALL - 58 ) ) col1
----
-58

query I rowsort
SELECT + 0 - - 96 * - 85 AS col1
----
-8160

query I rowsort
SELECT + - 13 * 61 + + 58
----
-735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT ALL - 2 DIV + MAX( - 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - 2 / + MAX ( - 91 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT + NULLIF ( 4, + 96 * - 74 + CAST( NULL AS SIGNED ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-346
SELECT + NULLIF ( 4, + 96 * - 74 + CAST ( NULL AS INTEGER ) ) AS col2
----
4

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

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

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

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

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

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

query I rowsort
SELECT + 88 + - 83 * 26 AS col2
----
-2070

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

query I rowsort
SELECT + 64 * 19 AS col2
----
1216

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

query I rowsort
SELECT - 82 + - + 81
----
-163

query I rowsort
SELECT - 10 + + 96 + - 42 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT SUM( ALL - - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-356
SELECT SUM ( ALL - - 36 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-357
SELECT COUNT( * ) AS col1, - 23 + - - ( + CAST( + 58 AS SIGNED ) ) + + 48 col0
----
1
83

skipif mysql # not compatible
query II rowsort label-357
SELECT COUNT ( * ) AS col1, - 23 + - - ( + CAST ( + 58 AS INTEGER ) ) + + 48 col0
----
1
83

query I rowsort
SELECT DISTINCT + 82 + + + 67 col0
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT - 1 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-359
SELECT - 1 / - 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-360
SELECT ALL + - CAST( NULL AS SIGNED ) + COALESCE ( + - COUNT( * ), + 19 * - 61 + - CASE + + 32 WHEN - 98 THEN NULL ELSE - - SUM( - + 71 ) * - MAX( ALL 38 ) + + + MIN( + 56 ) + - - 5 + COUNT( * ) END, COUNT( * ) ) + MAX( DISTINCT - 31 ) * 59 * + 70 / + - SUM( 71 ), - 17 * + 40 * - 74 AS col1
----
NULL
50320

skipif mysql # not compatible
query II rowsort label-360
SELECT ALL + - CAST ( NULL AS INTEGER ) + COALESCE ( + - COUNT ( * ), + 19 * - 61 + - CASE + + 32 WHEN - 98 THEN NULL ELSE - - SUM ( - + 71 ) * - MAX ( ALL 38 ) + + + MIN ( + 56 ) + - - 5 + COUNT ( * ) END, COUNT ( * ) ) + MAX ( DISTINCT - 31 ) * 59 * + 70 / + - SUM ( 71 ), - 17 * + 40 * - 74 AS col1
----
NULL
50320

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT + 50 * + 5 + + 14 + COUNT( - 80 ) * + - ( + + 4 ) AS col2
----
260

skipif mysql # not compatible
query I rowsort label-361
SELECT + 50 * + 5 + + 14 + COUNT ( - 80 ) * + - ( + + 4 ) AS col2
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT - 59 * - SUM( ALL - + 19 ) col1
----
-1121

skipif mysql # not compatible
query I rowsort label-362
SELECT - 59 * - SUM ( ALL - + 19 ) col1
----
-1121

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

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

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - - COUNT ( * ) + 51 AS col1
----
52

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

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

query I rowsort
SELECT ALL ( 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT - ( + + CASE + 97 WHEN + 24 THEN + - 4 WHEN + ( ( + + ( + 95 ) ) ) THEN + COUNT( * ) * - 67 END ) - + NULLIF ( - - 93, - 64 - + 11 ) + + 4 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT - ( + + CASE + 97 WHEN + 24 THEN + - 4 WHEN + ( ( + + ( + 95 ) ) ) THEN + COUNT ( * ) * - 67 END ) - + NULLIF ( - - 93, - 64 - + 11 ) + + 4 / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-368
SELECT - - CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + 24 / 53 - SUM( - ( - + 27 ) ) + ( + CASE + 93 WHEN 92 THEN + 38 + - 23 ELSE CASE + + COALESCE ( + 26, 19, + 84 ) WHEN + COUNT( * ) * + 43 THEN NULL ELSE 79 END * 95 * - NULLIF ( - 45, - 43 + + 94 + - CAST( NULL AS SIGNED ) ) END ) + 68 + + NULLIF ( 53, 18 + COUNT( * ) / AVG ( DISTINCT - 73 ) ) * 49 / 54 * + COUNT( * ) THEN - 78 + + 63 - - MIN( - 43 ) END + - 2 * - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-368
SELECT - - CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + 24 / 53 - SUM ( - ( - + 27 ) ) + ( + CASE + 93 WHEN 92 THEN + 38 + - 23 ELSE CASE + + COALESCE ( + 26, 19, + 84 ) WHEN + COUNT ( * ) * + 43 THEN NULL ELSE 79 END * 95 * - NULLIF ( - 45, - 43 + + 94 + - CAST ( NULL AS INTEGER ) ) END ) + 68 + + NULLIF ( 53, 18 + COUNT ( * ) / AVG ( DISTINCT - 73 ) ) * 49 / 54 * + COUNT ( * ) THEN - 78 + + 63 - - MIN ( - 43 ) END + - 2 * - - 85 AS col1
----
NULL

query I rowsort
SELECT + - 61 + + 84
----
23

query I rowsort
SELECT DISTINCT - ( 40 ) - 58
----
-98

query II rowsort
SELECT - 86 AS col1, - 4
----
-86
-4

query I rowsort
SELECT ALL 1 - - 1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-373
SELECT DISTINCT CASE + 35 WHEN - 66 + - 92 THEN CAST( NULL AS SIGNED ) END AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-373
SELECT DISTINCT CASE + 35 WHEN - 66 + - 92 THEN CAST ( NULL AS INTEGER ) END AS col2, COUNT ( * )
----
NULL
1

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

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

query I rowsort
SELECT ALL 60 * + 38 col1
----
2280

onlyif mysql # DIV for integer division: 
query II rowsort label-376
SELECT DISTINCT 72 DIV + 73, - 50 + - 57 AS col2
----
0
-107

skipif mysql # not compatible
query II rowsort label-376
SELECT DISTINCT 72 / + 73, - 50 + - 57 AS col2
----
0
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + MAX( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-377
SELECT + MAX ( - 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT + 12 * 34 / - - 33 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT + 12 * 34 / - - 33 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 24 * - 80 AS col0
----
-1920

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

query II rowsort
SELECT 67 * + 34 + + 43 + + 96 AS col1, 20 - 43 + + + 72 col1
----
2417
49

query I rowsort
SELECT DISTINCT 29 * - 22
----
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-383
SELECT ALL COUNT( * ) DIV - - 72 DIV + ( ( - COUNT( * ) ) ) + + COUNT( * ) + + + COUNT( + ( + ( + + 14 ) ) ) * 56
----
57

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL COUNT ( * ) / - - 72 / + ( ( - COUNT ( * ) ) ) + + COUNT ( * ) + + + COUNT ( + ( + ( + + 14 ) ) ) * 56
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT DISTINCT 11 DIV - MIN( DISTINCT - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT 11 / - MIN ( DISTINCT - 78 )
----
0

query II rowsort
SELECT ( - 65 ), 90 AS col2
----
-65
90

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

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

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

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

query I rowsort
SELECT + 11 * 13 AS col2
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT ALL 60 * + + 74 * - + 99 * 48 + 19 DIV - 31 AS col1
----
-21098880

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL 60 * + + 74 * - + 99 * 48 + 19 / - 31 AS col1
----
-21098880

query II rowsort
SELECT + 15, + 56 * - 19 + 31 + - + 1 * 74 AS col1
----
15
-1107

query II rowsort
SELECT ( - + 6 ) AS col0, - 25 * 96 col1
----
-6
-2400

query I rowsort
SELECT + 75 * 93
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL + 13 * COUNT( - 41 ) * + COUNT( * ) + + - MIN( DISTINCT 52 ) + 71 - + 63 / CASE + + COALESCE ( - ( + COUNT( * ) ), CASE 12 WHEN 8 THEN NULL WHEN - + COUNT( * ) THEN - NULLIF ( + 90, - + COUNT( * ) ) ELSE NULL END ) WHEN - 59 + COUNT( * ) THEN + + 6 ELSE 6 * - + 25 + - 88 + - 88 + - 68 END * + - ( - 46 ) * - ( CASE + 8 WHEN - 74 THEN + 99 WHEN + 67 THEN + COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + 13 * COUNT ( - 41 ) * + COUNT ( * ) + + - MIN ( DISTINCT 52 ) + 71 - + 63 / CASE + + COALESCE ( - ( + COUNT ( * ) ), CASE 12 WHEN 8 THEN NULL WHEN - + COUNT ( * ) THEN - NULLIF ( + 90, - + COUNT ( * ) ) ELSE NULL END ) WHEN - 59 + COUNT ( * ) THEN + + 6 ELSE 6 * - + 25 + - 88 + - 88 + - 68 END * + - ( - 46 ) * - ( CASE + 8 WHEN - 74 THEN + 99 WHEN + 67 THEN + COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL - COUNT( * ) * - 33 col1
----
33

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - COUNT ( * ) * - 33 col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT ALL - + 74 * - 42 * 2 * - 16 * + - 75 + + CAST( 18 AS SIGNED )
----
7459218

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - + 74 * - 42 * 2 * - 16 * + - 75 + + CAST ( 18 AS INTEGER )
----
7459218

query I rowsort
SELECT - 57 * - + 36 AS col2
----
2052

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

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL 97 AS col0, - COUNT ( * )
----
97
-1

query I rowsort
SELECT - 15 + - 51
----
-66

query II rowsort
SELECT ALL + - NULLIF ( + 11, + 64 ) - - 47, + 69 AS col0
----
36
69

query I rowsort
SELECT 55 * - ( - 18 ) AS col2
----
990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - ( + - MAX( 78 ) )
----
78

skipif mysql # not compatible
query I rowsort label-403
SELECT - ( + - MAX ( 78 ) )
----
78

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

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - MAX ( DISTINCT - 79 )
----
79

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

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

query I rowsort
SELECT - 48 + + - 79
----
-127

query I rowsort
SELECT 58 * - 64
----
-3712

query I rowsort
SELECT 94 * + 53 AS col0
----
4982

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT ALL COUNT( 90 ) + CASE SUM( - 46 ) WHEN + + 41 THEN NULL ELSE + COUNT( * ) - - 29 * 73 END
----
2119

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL COUNT ( 90 ) + CASE SUM ( - 46 ) WHEN + + 41 THEN NULL ELSE + COUNT ( * ) - - 29 * 73 END
----
2119

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

skipif mysql # not compatible
query I rowsort label-410
SELECT COUNT ( DISTINCT - 25 ) - + 4 AS col1
----
-3

query I rowsort
SELECT ALL 53 + - 67 + 36
----
22

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-412
SELECT CASE - 75 WHEN 67 THEN NULL WHEN 48 THEN + - 54 END * + - 67 * 13 * 35 * + - ( - - 9 ) + + CAST( NULL AS DECIMAL ) + - 52 * - ( - 94 ) * + 64, 51 + - 25 + - 10 * + + 2 DIV - 77 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-412
SELECT CASE - 75 WHEN 67 THEN NULL WHEN 48 THEN + - 54 END * + - 67 * 13 * 35 * + - ( - - 9 ) + + CAST ( NULL AS REAL ) + - 52 * - ( - 94 ) * + 64, 51 + - 25 + - 10 * + + 2 / - 77 AS col0
----
NULL
26

query I rowsort
SELECT ALL 70 * - 73
----
-5110

query II rowsort
SELECT DISTINCT + 54 + + 95 + + 66, + 49 AS col1
----
215
49

query I rowsort
SELECT ALL 47 + + 0 * 25
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + 39 col2
----
39

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + 39 col2
----
39

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

skipif mysql # not compatible
query I rowsort label-417
SELECT COUNT ( * ) / 61
----
0

query II rowsort
SELECT ALL 17 + 71 AS col0, + ( - + 40 )
----
88
-40

query I rowsort
SELECT + 0 * 1 + - 51 col2
----
-51

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

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

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

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

query I rowsort
SELECT 19 - 51
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT SUM( ALL ( + - 95 ) ) + 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-423
SELECT SUM ( ALL ( + - 95 ) ) + 48 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-424
SELECT ALL 63 + 17, - CAST( 54 AS SIGNED ) * - COALESCE ( CAST( + + 75 AS SIGNED ), + 0 + 77 ) + - - 9 * 21 + + + 4 DIV + - 62 * - + COUNT( * ) + + - 54 AS col0
----
80
4185

skipif mysql # not compatible
query II rowsort label-424
SELECT ALL 63 + 17, - CAST ( 54 AS INTEGER ) * - COALESCE ( CAST ( + + 75 AS INTEGER ), + 0 + 77 ) + - - 9 * 21 + + + 4 / + - 62 * - + COUNT ( * ) + + - 54 AS col0
----
80
4185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT ALL 75 * + + 21 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL 75 * + + 21 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 67 * 98 - + 48 + 23 + - 2 * 19
----
-6629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT ALL - 91 / - CAST( NULL AS SIGNED ) * - 77 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - 91 / - CAST ( NULL AS INTEGER ) * - 77 * + 67
----
NULL

query I rowsort
SELECT 52 * + 46 AS col2
----
2392

query I rowsort
SELECT DISTINCT - - 19 AS col1
----
19

query I rowsort
SELECT DISTINCT - CASE WHEN NOT - 70 IS NOT NULL THEN + 72 ELSE - 88 END
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL - + NULLIF ( - - COUNT( * ), + COALESCE ( 87, + + COUNT( * ) * 77 * - + 94, + AVG ( ALL 38 ) + 91 ) / + ( + + 31 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - + NULLIF ( - - COUNT ( * ), + COALESCE ( 87, + + COUNT ( * ) * 77 * - + 94, + AVG ( ALL 38 ) + 91 ) / + ( + + 31 ) )
----
-1

query I rowsort
SELECT 90 + - 88 * - 44 * 52
----
201434

query I rowsort
SELECT - ( 2 ) * + + 30 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-434
SELECT DISTINCT MAX( + 42 ) * - 12 + - + SUM( DISTINCT 78 ) + + - CASE - ( 45 ) WHEN 98 THEN 25 WHEN + 22 * - 83 + + - 8 * + - CAST( NULL AS SIGNED ) + + COUNT( + 35 ) + - 37 * + 47 THEN NULL END * - 13 - + 98 AS col2, + 40 col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT MAX ( + 42 ) * - 12 + - + SUM ( DISTINCT 78 ) + + - CASE - ( 45 ) WHEN 98 THEN 25 WHEN + 22 * - 83 + + - 8 * + - CAST ( NULL AS INTEGER ) + + COUNT ( + 35 ) + - 37 * + 47 THEN NULL END * - 13 - + 98 AS col2, + 40 col1
----
NULL
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-435
SELECT ALL - COALESCE ( + - 54, + - 83 * + 1 DIV + 61, + 61 * - ( - 74 ) DIV + COALESCE ( - - 4, CAST( 42 AS SIGNED ), + - 92 + - 10 * + 23 * - - 99 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - COALESCE ( + - 54, + - 83 * + 1 / + 61, + 61 * - ( - 74 ) / + COALESCE ( - - 4, CAST ( 42 AS INTEGER ), + - 92 + - 10 * + 23 * - - 99 ) ) AS col1
----
54

query I rowsort
SELECT ALL + 95 * + - 51 AS col2
----
-4845

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT 92 * - - COUNT( * ), 9 * + 7 col2
----
92
63

skipif mysql # not compatible
query II rowsort label-437
SELECT 92 * - - COUNT ( * ), 9 * + 7 col2
----
92
63

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

skipif mysql # not compatible
query I rowsort label-438
SELECT + ( + COUNT ( * ) ) - + + 98 / COUNT ( * ) + + 47 * - COUNT ( * ) * 55
----
-2682

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT - 46 + + 39 * - SUM( + + 3 ) AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-439
SELECT - 46 + + 39 * - SUM ( + + 3 ) AS col1
----
-163

query I rowsort
SELECT 69 + + + 47 + - 50 AS col2
----
66

query II rowsort
SELECT ALL 77, + 46 AS col0
----
77
46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT 94 + + 76 * + ( - + COUNT( * ) ), + 49 * - - 33 AS col1
----
18
1617

skipif mysql # not compatible
query II rowsort label-443
SELECT 94 + + 76 * + ( - + COUNT ( * ) ), + 49 * - - 33 AS col1
----
18
1617

query I rowsort
SELECT 65 + + 90
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-445
SELECT ALL 37, - 14 + - COUNT( * ) + - ( + 43 ) - - 80 + + - 90 + + ( 72 ) * - 65 * - 10 * - - 44 * + MAX( 96 ) + - - 33 + + ( - 57 ) - CASE - 57 WHEN + CASE + ( - - NULLIF ( 40, 86 ) ) WHEN + 53 THEN NULL WHEN + - 1 * CAST( NULL AS SIGNED ) THEN NULL ELSE ( + MAX( + 14 ) ) - + - COUNT( * ) - - - CAST( NULL AS SIGNED ) END THEN 95 / 79 + + 50 END AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-445
SELECT ALL 37, - 14 + - COUNT ( * ) + - ( + 43 ) - - 80 + + - 90 + + ( 72 ) * - 65 * - 10 * - - 44 * + MAX ( 96 ) + - - 33 + + ( - 57 ) - CASE - 57 WHEN + CASE + ( - - NULLIF ( 40, 86 ) ) WHEN + 53 THEN NULL WHEN + - 1 * CAST ( NULL AS INTEGER ) THEN NULL ELSE ( + MAX ( + 14 ) ) - + - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) END THEN 95 / 79 + + 50 END AS col1
----
37
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL 47 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL 47 / 78 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT 84 + + COUNT( * ) * CAST( - 31 AS SIGNED ) + + 29
----
82

skipif mysql # not compatible
query I rowsort label-447
SELECT 84 + + COUNT ( * ) * CAST ( - 31 AS INTEGER ) + + 29
----
82

query I rowsort
SELECT ALL - 40 * - + 5 AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-449
SELECT COUNT( * ) * - 46 + CAST( - ( - + 47 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-449
SELECT COUNT ( * ) * - 46 + CAST ( - ( - + 47 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 8 * - ( - 80 ) + ( + 12 )
----
652

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT 83 * - - SUM( 14 ) col2
----
1162

skipif mysql # not compatible
query I rowsort label-451
SELECT 83 * - - SUM ( 14 ) col2
----
1162

onlyif mysql # aggregate syntax: 
query II rowsort label-452
SELECT COUNT( * ) AS col2, + 13 * + 3 + + 14 AS col0
----
1
53

skipif mysql # not compatible
query II rowsort label-452
SELECT COUNT ( * ) AS col2, + 13 * + 3 + + 14 AS col0
----
1
53

query II rowsort
SELECT + 13 AS col2, + 74 AS col0
----
13
74

query I rowsort
SELECT ALL + 75 * 18 + 25
----
1375

query I rowsort
SELECT 9 * + 7 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT + COUNT( * ) * + 29 - - ( - 42 ) * + 91
----
-3793

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + COUNT ( * ) * + 29 - - ( - 42 ) * + 91
----
-3793

query II rowsort
SELECT ALL + 89 AS col1, + 47 - - 71
----
89
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-458
SELECT 95 AS col1, COUNT( * ) DIV - - 35 * - COALESCE ( - 61, + 32 * - - ( - ( - 31 ) ) ) AS col0
----
95
0

skipif mysql # not compatible
query II rowsort label-458
SELECT 95 AS col1, COUNT ( * ) / - - 35 * - COALESCE ( - 61, + 32 * - - ( - ( - 31 ) ) ) AS col0
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 48 * + ( + - 94 ) * + ( - ( COUNT( * ) ) ) col2
----
4512

skipif mysql # not compatible
query I rowsort label-459
SELECT + 48 * + ( + - 94 ) * + ( - ( COUNT ( * ) ) ) col2
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - SUM( + + ( - ( - 10 ) ) ) - 43 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-460
SELECT - SUM ( + + ( - ( - 10 ) ) ) - 43 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT ALL + MAX( ALL - + NULLIF ( 14, + 83 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + MAX ( ALL - + NULLIF ( 14, + 83 ) )
----
-14

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

query II rowsort
SELECT + - 59 AS col2, - 33
----
-59
-33

query I rowsort
SELECT - - 79 * 36 + + 1 + 90 * 63 * - 42 AS col2
----
-235295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-465
SELECT + + 26 * + 99 * 48 + - - 78 + + CAST( COUNT( 29 ) AS SIGNED ) * - - 22 DIV - - COUNT( * ) - + 30
----
123622

skipif mysql # not compatible
query I rowsort label-465
SELECT + + 26 * + 99 * 48 + - - 78 + + CAST ( COUNT ( 29 ) AS INTEGER ) * - - 22 / - - COUNT ( * ) - + 30
----
123622

query I rowsort
SELECT DISTINCT + 68 * - 51 * ( 37 ) * - 6
----
769896

onlyif mysql # aggregate syntax: 
query II rowsort label-467
SELECT ALL + 94 AS col0, CASE COUNT( * ) WHEN + + 48 THEN NULL WHEN - - 7 * - - ( 41 ) + + 5 / - 11 * 57 + 27 / + 7 * - 96 + - 85 THEN + 59 END col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-467
SELECT ALL + 94 AS col0, CASE COUNT ( * ) WHEN + + 48 THEN NULL WHEN - - 7 * - - ( 41 ) + + 5 / - 11 * 57 + 27 / + 7 * - 96 + - 85 THEN + 59 END col2
----
94
NULL

query I rowsort
SELECT - 47 * + - 49 - + 93 AS col2
----
2210

query I rowsort
SELECT DISTINCT + + 76 * + + 42
----
3192

onlyif mysql # aggregate syntax: 
query II rowsort label-470
SELECT + + CASE - 73 WHEN + 67 / SUM( DISTINCT - 23 ) + + - 86 + + 69 - - + 37 THEN + ( 88 ) END - 3 * 32 + + - 43 AS col2, 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-470
SELECT + + CASE - 73 WHEN + 67 / SUM ( DISTINCT - 23 ) + + - 86 + + 69 - - + 37 THEN + ( 88 ) END - 3 * 32 + + - 43 AS col2, 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT + 64 * + MAX( - + 83 )
----
-5312

skipif mysql # not compatible
query I rowsort label-471
SELECT + 64 * + MAX ( - + 83 )
----
-5312

query I rowsort
SELECT + - 80 * + 28 AS col2
----
-2240

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - NULLIF ( - + COUNT( * ), 10 ), + 78 AS col2
----
1
78

skipif mysql # not compatible
query II rowsort label-473
SELECT - NULLIF ( - + COUNT ( * ), 10 ), + 78 AS col2
----
1
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT + 21 + - - COUNT( * ) * + - 84 / ( + + 2 ) - + + COALESCE ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + - 48 + - 63 * - + COUNT( * ) * + 71 * - 7 + + + COUNT( * ) ) + - 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + 21 + - - COUNT ( * ) * + - 84 / ( + + 2 ) - + + COALESCE ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + - 48 + - 63 * - + COUNT ( * ) * + 71 * - 7 + + + COUNT ( * ) ) + - 83 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT + + MIN( ALL + 52 ) * + - 22 * + + CASE WHEN NOT - COALESCE ( - 49, + + 99 * + 61 + - 31, + COUNT( * ) ) > + 75 THEN - COUNT( * ) END col2
----
1144

skipif mysql # not compatible
query I rowsort label-475
SELECT + + MIN ( ALL + 52 ) * + - 22 * + + CASE WHEN NOT - COALESCE ( - 49, + + 99 * + 61 + - 31, + COUNT ( * ) ) > + 75 THEN - COUNT ( * ) END col2
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + + 72 + - - ( + + 94 ) + - COUNT( * ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-476
SELECT + + 72 + - - ( + + 94 ) + - COUNT ( * ) AS col1
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-477
SELECT + COUNT( * ) - - - ( 66 ), 95 DIV - 53 AS col2
----
-65
-1

skipif mysql # not compatible
query II rowsort label-477
SELECT + COUNT ( * ) - - - ( 66 ), 95 / - 53 AS col2
----
-65
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + NULLIF ( + SUM( DISTINCT + - NULLIF ( - 37, + 6 ) ), + COUNT( * ) + COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-478
SELECT + NULLIF ( + SUM ( DISTINCT + - NULLIF ( - 37, + 6 ) ), + COUNT ( * ) + COUNT ( * ) )
----
37

query I rowsort
SELECT ALL - 92 + - 74 AS col1
----
-166

query I rowsort
SELECT - COALESCE ( + + 28, 63, + 49 + - 46 ) AS col0
----
-28

query I rowsort
SELECT DISTINCT 6 + + 45 + 57 + - 35 col2
----
73

query I rowsort
SELECT DISTINCT 0 + + 78 + - 2 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT + COUNT( * ) + - + ( - 25 ) + - 36 col1
----
-10

skipif mysql # not compatible
query I rowsort label-483
SELECT + COUNT ( * ) + - + ( - 25 ) + - 36 col1
----
-10

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-486
SELECT - 5 / + COUNT ( * ) AS col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-487
SELECT + 52 * COUNT ( * ) / + 18
----
2

query I rowsort
SELECT DISTINCT - ( - 24 ) * + + 27
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT DISTINCT 93 DIV + 21
----
4

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT 93 / + 21
----
4

query I rowsort
SELECT ALL + NULLIF ( - 69, - + 44 ) * - 98 AS col0
----
6762

query II rowsort
SELECT ( 58 ) AS col1, ( - 45 ) col0
----
58
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-492
SELECT ALL - 74 * 27 DIV + COALESCE ( - 37, 82 * 85 - MIN( ALL + 80 ), 36, + 55 + - 29 )
----
54

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - 74 * 27 / + COALESCE ( - 37, 82 * 85 - MIN ( ALL + 80 ), 36, + 55 + - 29 )
----
54

query I rowsort
SELECT DISTINCT + 70 * + 89 - + 46 + + - 25 + - + 8 * + 97
----
5383

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT - 95 * - COUNT( * ) * - COUNT( * ) + + + COUNT( ALL + + ( + - 23 ) ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-495
SELECT - 95 * - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( ALL + + ( + - 23 ) ) col0
----
-94

query I rowsort
SELECT ALL + 89 * + - 4
----
-356

query I rowsort
SELECT - 99 * - 1 - - + 79 AS col2
----
178

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

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

query I rowsort
SELECT ALL + - 87 * + - 34
----
2958

query II rowsort
SELECT - 25 + 58, - 41 + - 15 * - - 95 * 70 AS col2
----
33
-99791

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + - 7 * - ( + + 16 ) - - 98 + + - 70 + + 39 + + + COUNT( + - 64 )
----
180

skipif mysql # not compatible
query I rowsort label-501
SELECT + - 7 * - ( + + 16 ) - - 98 + + - 70 + + 39 + + + COUNT ( + - 64 )
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - + COUNT( 85 ) * + + 8
----
-8

skipif mysql # not compatible
query I rowsort label-502
SELECT - + COUNT ( 85 ) * + + 8
----
-8

query I rowsort
SELECT + + 0 * - 97 + - + 42 AS col0
----
-42

query I rowsort
SELECT - + 81 + - 81
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-505
SELECT ALL - - 11 * - MAX( ALL 78 ) DIV - - 3 + - + 66
----
-352

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL - - 11 * - MAX ( ALL 78 ) / - - 3 + - + 66
----
-352

query I rowsort
SELECT - - 7 + 92 + 13
----
112

query I rowsort
SELECT + - 43 + - + 62
----
-105

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

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

query I rowsort
SELECT ALL + 85 * + 81 + - + 16 + + 49 + 33 AS col1
----
6951

query I rowsort
SELECT ALL NULLIF ( + ( 4 ), 38 ) * - - ( + 16 ) + - ( - - 26 ) + + + 43 - + 92
----
-11

query I rowsort
SELECT ALL - 51 * + 58 * + 62 AS col2
----
-183396

query II rowsort
SELECT DISTINCT 25, 22 + - 7 * - + 41 AS col1
----
25
309

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-514
SELECT ALL 30 DIV - 9 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL 30 / - 9 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT SUM( ALL - + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT SUM ( ALL - + 38 ) AS col1
----
-38

query II rowsort
SELECT ALL 42, NULLIF ( - - 58, ( - 5 ) ) AS col1
----
42
58

query I rowsort
SELECT + 6 + - + 81
----
-75

query I rowsort
SELECT + 64 * + + 82 AS col1
----
5248

query I rowsort
SELECT + 82 + ( + 90 )
----
172

query I rowsort
SELECT ALL ( - 2 ) * 81 AS col2
----
-162

query I rowsort
SELECT + 93 + + 72 AS col1
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT + 70 + + 86 + + + MAX( ALL + - NULLIF ( - + 37, - 69 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT + 70 + + 86 + + + MAX ( ALL + - NULLIF ( - + 37, - 69 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT 12 * - MAX( - + 3 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-523
SELECT 12 * - MAX ( - + 3 ) col0
----
36

query I rowsort
SELECT 18 + NULLIF ( + 52, - + 75 )
----
70

query II rowsort
SELECT ALL 52 * 33 * + - 37 AS col1, + 35
----
-63492
35

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

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - MAX ( 19 )
----
-19

query I rowsort
SELECT 27 * - ( 88 )
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT 63 + COUNT( - 13 ) * + 88
----
151

skipif mysql # not compatible
query I rowsort label-528
SELECT 63 + COUNT ( - 13 ) * + 88
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT ALL - CAST( NULL AS SIGNED ) / - NULLIF ( 64 * + COUNT( * ), + 49 + 16 * + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL - CAST ( NULL AS INTEGER ) / - NULLIF ( 64 * + COUNT ( * ), + 49 + 16 * + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT - NULLIF ( 48, CAST( - 17 AS SIGNED ) * + 36 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - NULLIF ( 48, CAST ( - 17 AS INTEGER ) * + 36 ) AS col2
----
-48

query I rowsort
SELECT ALL - 16 + + 10
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT 59 DIV + MAX( DISTINCT 95 * 76 )
----
0

skipif mysql # not compatible
query I rowsort label-532
SELECT 59 / + MAX ( DISTINCT 95 * 76 )
----
0

query I rowsort
SELECT - 73 * + 76 - 74
----
-5622

query I rowsort
SELECT ALL - NULLIF ( 63, + 6 + - 64 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT COALESCE ( + 35, 17 * + COUNT( * ) - COUNT( * ), MAX( - 12 ) ) - + ( 52 )
----
-17

skipif mysql # not compatible
query I rowsort label-535
SELECT COALESCE ( + 35, 17 * + COUNT ( * ) - COUNT ( * ), MAX ( - 12 ) ) - + ( 52 )
----
-17

query I rowsort
SELECT 52 + + 77
----
129

query I rowsort
SELECT DISTINCT - 53 + - 45 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT MAX( - 55 ) * ( 85 + COUNT( * ) ) - 82
----
-4812

skipif mysql # not compatible
query I rowsort label-538
SELECT MAX ( - 55 ) * ( 85 + COUNT ( * ) ) - 82
----
-4812

query I rowsort
SELECT DISTINCT + 54 + + 80 col0
----
134

query I rowsort
SELECT 87 - 53
----
34

query I rowsort
SELECT ALL + 81 + 47 * 90
----
4311

query I rowsort
SELECT DISTINCT 89 * - 97 AS col2
----
-8633

query I rowsort
SELECT DISTINCT NULLIF ( - 77, 84 ) + - ( 98 )
----
-175

query I rowsort
SELECT 77 + + 76
----
153

query I rowsort
SELECT DISTINCT - 91 * - ( 13 )
----
1183

query I rowsort
SELECT 93 * - 72
----
-6696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT ALL ( - 19 ) - CAST( NULL AS SIGNED ) * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL ( - 19 ) - CAST ( NULL AS INTEGER ) * 64 AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + 73 * - 13 AS col2
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL - 19 * - MAX( 81 )
----
1539

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 19 * - MAX ( 81 )
----
1539

query I rowsort
SELECT 34 * 88 AS col2
----
2992

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

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

query I rowsort
SELECT 8 + 44 AS col1
----
52

query I rowsort
SELECT 47 * - NULLIF ( 84, + ( 47 ) )
----
-3948

query I rowsort
SELECT 18 + COALESCE ( 87, - 61 ) * + ( + 53 )
----
4629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT 13 * - SUM( ALL + CAST( 32 AS SIGNED ) + - ( + 81 ) )
----
637

skipif mysql # not compatible
query I rowsort label-557
SELECT 13 * - SUM ( ALL + CAST ( 32 AS INTEGER ) + - ( + 81 ) )
----
637

query I rowsort
SELECT ALL + 48 + 97 col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT DISTINCT + SUM( + 51 ) * 25 AS col2
----
1275

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT + SUM ( + 51 ) * 25 AS col2
----
1275

query I rowsort
SELECT + 21 + - 45 * 65
----
-2904

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

query I rowsort
SELECT ALL + 87 + 4 AS col0
----
91

query I rowsort
SELECT 13 - + 73 * - 43
----
3152

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT + 61 DIV - 57 + 92
----
91

skipif mysql # not compatible
query I rowsort label-564
SELECT + 61 / - 57 + 92
----
91

query I rowsort
SELECT + + 6 * + 48 - + 86 col0
----
202

query I rowsort
SELECT ALL 27 + - 63 * ( + 84 )
----
-5265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT - 65 * - CAST( NULL AS SIGNED ) + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT - 65 * - CAST ( NULL AS INTEGER ) + + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT DISTINCT + COUNT( 88 ) DIV 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT + COUNT ( 88 ) / 79 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL - MIN( ( 95 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - MIN ( ( 95 ) ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT DISTINCT COUNT( - 85 ) + + COALESCE ( 31 + 74 * - 60, 15 + 67 DIV - 7 ) * + 89 AS col0
----
-392400

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT COUNT ( - 85 ) + + COALESCE ( 31 + 74 * - 60, 15 + 67 / - 7 ) * + 89 AS col0
----
-392400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT SUM( DISTINCT 82 ) * + CAST( 35 AS SIGNED ) + + 1 * + 60 col1
----
2930

skipif mysql # not compatible
query I rowsort label-571
SELECT SUM ( DISTINCT 82 ) * + CAST ( 35 AS INTEGER ) + + 1 * + 60 col1
----
2930

query I rowsort
SELECT ALL - 60 + + 54 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT DISTINCT 11 DIV 4
----
2

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT 11 / 4
----
2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT 77 * + SUM( 72 )
----
5544

skipif mysql # not compatible
query I rowsort label-576
SELECT 77 * + SUM ( 72 )
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT 12 * + ( - COUNT( ALL - 27 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-577
SELECT 12 * + ( - COUNT ( ALL - 27 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT 83 + COUNT( * ) - + 8
----
76

skipif mysql # not compatible
query I rowsort label-578
SELECT 83 + COUNT ( * ) - + 8
----
76

query I rowsort
SELECT DISTINCT - 4 * + - 25 col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL MIN( DISTINCT - - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL MIN ( DISTINCT - - 99 )
----
99

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

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

query I rowsort
SELECT 2 * + - 29 * - 66 col2
----
3828

query I rowsort
SELECT DISTINCT 76 * 87 AS col1
----
6612

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT - 47 + - + COALESCE ( ( + 38 ), 69 ) + 53 DIV - 3 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-584
SELECT - 47 + - + COALESCE ( ( + 38 ), 69 ) + 53 / - 3 AS col2
----
-102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT + NULLIF ( + + 57, COUNT( * ) + + COALESCE ( - 27 + - ( 82 - 68 * 56 ) * 56, 28 ) ) + ( + CASE - 64 WHEN 80 THEN NULL ELSE 17 + - 80 * + 66 END ) AS col1
----
-5206

skipif mysql # not compatible
query I rowsort label-586
SELECT + NULLIF ( + + 57, COUNT ( * ) + + COALESCE ( - 27 + - ( 82 - 68 * 56 ) * 56, 28 ) ) + ( + CASE - 64 WHEN 80 THEN NULL ELSE 17 + - 80 * + 66 END ) AS col1
----
-5206

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT - SUM( ALL - - 79 ) + + CASE + 27 WHEN 4 * + 66 THEN NULL WHEN CASE 94 WHEN - 30 THEN NULL ELSE - 46 END THEN NULL ELSE 10 END * + 19
----
111

skipif mysql # not compatible
query I rowsort label-587
SELECT - SUM ( ALL - - 79 ) + + CASE + 27 WHEN 4 * + 66 THEN NULL WHEN CASE 94 WHEN - 30 THEN NULL ELSE - 46 END THEN NULL ELSE 10 END * + 19
----
111

query I rowsort
SELECT + 69 + + - 34 AS col2
----
35

query I rowsort
SELECT DISTINCT + 61 + - 26 col0
----
35

query I rowsort
SELECT DISTINCT ( 35 ) col0
----
35

query I rowsort
SELECT ALL 51 + + + 70 AS col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - + 46 + - ( 35 ) * MAX( ALL 25 ) AS col0
----
-921

skipif mysql # not compatible
query I rowsort label-592
SELECT - + 46 + - ( 35 ) * MAX ( ALL 25 ) AS col0
----
-921

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL + + 80 + MAX( 68 ) * NULLIF ( 87 * COUNT( * ) + + 0, - 34 ) AS col2
----
5996

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + + 80 + MAX ( 68 ) * NULLIF ( 87 * COUNT ( * ) + + 0, - 34 ) AS col2
----
5996

query I rowsort
SELECT ALL 31 + - + 39 * + 6 AS col1
----
-203

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-595
SELECT - CAST( NULL AS DECIMAL ) * + 59 * 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT - CAST ( NULL AS REAL ) * + 59 * 19 col1
----
NULL

query I rowsort
SELECT + 14 * + + ( - 78 ) AS col2
----
-1092

query I rowsort
SELECT ALL + 73 * - 63 + - 65
----
-4664

query I rowsort
SELECT + - 30 + 42 + + 97 AS col0
----
109

query I rowsort
SELECT ALL - 94 * - 14 * + 27 + 43
----
35575

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + COUNT( * ) * + 10 + - 65
----
-55

skipif mysql # not compatible
query I rowsort label-600
SELECT + COUNT ( * ) * + 10 + - 65
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT NULLIF ( - COUNT( CAST( NULL AS SIGNED ) ), 58 ) * - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT NULLIF ( - COUNT ( CAST ( NULL AS INTEGER ) ), 58 ) * - 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT 75 * 32 + ( 92 + - COUNT( * ) ) + + 53 * 26 AS col2
----
3869

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT 75 * 32 + ( 92 + - COUNT ( * ) ) + + 53 * 26 AS col2
----
3869

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-603
SELECT ALL COUNT( + CAST( NULL AS DECIMAL ) ) * 60
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL COUNT ( + CAST ( NULL AS REAL ) ) * 60
----
0

query I rowsort
SELECT ALL 0 * - 86 + - 91
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT ( + - 53 ) * 21 - - 77 * CAST( - 16 AS SIGNED ) AS col2
----
-2345

skipif mysql # not compatible
query I rowsort label-605
SELECT ( + - 53 ) * 21 - - 77 * CAST ( - 16 AS INTEGER ) AS col2
----
-2345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-606
SELECT ALL CAST( NULL AS SIGNED ) * + 97 * 3 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL CAST ( NULL AS INTEGER ) * + 97 * 3 - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 57 * - 54 AS col0
----
-3078

query I rowsort
SELECT + ( - 66 ) * - 42 AS col2
----
2772

query I rowsort
SELECT CASE + + COALESCE ( + - 82, ( - 43 ) ) WHEN 81 THEN 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL + 71 * - - 98 * 77 * 15 - - SUM( 76 )
----
8036566

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + 71 * - - 98 * 77 * 15 - - SUM ( 76 )
----
8036566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT CASE - ( + 13 ) WHEN 80 * CAST( 87 AS SIGNED ) - NULLIF ( - 3, 62 ) THEN COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT CASE - ( + 13 ) WHEN 80 * CAST ( 87 AS INTEGER ) - NULLIF ( - 3, 62 ) THEN COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 45 * + - 80 + + 45 AS col2
----
-3555

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT ALL 41 * + - 38 DIV - 19
----
82

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL 41 * + - 38 / - 19
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT + 53 DIV - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT + 53 / - 62 AS col2
----
0

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

query I rowsort
SELECT - ( 74 ) AS col2
----
-74

query I rowsort
SELECT ALL + 19 * 5
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT + 23 DIV - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT + 23 / - 72 AS col2
----
0

query I rowsort
SELECT 55 * + 15 + + COALESCE ( + 85, + 60 * 3, 29 ) AS col0
----
910

query I rowsort
SELECT - 99 * 24 AS col1
----
-2376

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-622
SELECT COUNT( * ) AS col0, - NULLIF ( + SUM( ALL CAST( NULL AS SIGNED ) ), 30 + + 11 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-622
SELECT COUNT ( * ) AS col0, - NULLIF ( + SUM ( ALL CAST ( NULL AS INTEGER ) ), 30 + + 11 )
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT COUNT ( * ) * + ( 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - COUNT( ALL - ( - - 61 ) ) - 55
----
-56

skipif mysql # not compatible
query I rowsort label-624
SELECT - COUNT ( ALL - ( - - 61 ) ) - 55
----
-56

query I rowsort
SELECT + 63 * + 19 AS col0
----
1197

query I rowsort
SELECT DISTINCT 28 + + 48 AS col2
----
76

query I rowsort
SELECT DISTINCT + 29 + + - 3
----
26

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT - 24 AS col2, COUNT( * ) * - - 69 AS col0
----
-24
69

skipif mysql # not compatible
query II rowsort label-630
SELECT - 24 AS col2, COUNT ( * ) * - - 69 AS col0
----
-24
69

query I rowsort
SELECT ALL - 20 + - - 78
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + - 14 + + COUNT( * ) * 45
----
31

skipif mysql # not compatible
query I rowsort label-632
SELECT + - 14 + + COUNT ( * ) * 45
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-633
SELECT - + 76, COUNT( * ) + - + 93 + - ( + 53 ) AS col1
----
-76
-145

skipif mysql # not compatible
query II rowsort label-633
SELECT - + 76, COUNT ( * ) + - + 93 + - ( + 53 ) AS col1
----
-76
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT + + 40 + - + 94 * + 16 DIV COUNT( * ) AS col0
----
-1464

skipif mysql # not compatible
query I rowsort label-634
SELECT + + 40 + - + 94 * + 16 / COUNT ( * ) AS col0
----
-1464

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - - COUNT( DISTINCT - + 59 ) + - 92 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-636
SELECT - - COUNT ( DISTINCT - + 59 ) + - 92 AS col0
----
-91

query I rowsort
SELECT DISTINCT + + 2 * 55 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT + COUNT( DISTINCT + 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-638
SELECT + COUNT ( DISTINCT + 7 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT ALL + 85 DIV + - 46
----
-1

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + 85 / + - 46
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-640
SELECT ALL + SUM( - + 37 ) / + CAST( NULL AS SIGNED ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + SUM ( - + 37 ) / + CAST ( NULL AS INTEGER ) * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL ( - COUNT( * ) ) / + - 17 - 62 * 67 - - CASE - 99 WHEN 86 + 4 * + 91 THEN - 70 WHEN - 49 THEN - 14 / - 60 ELSE NULL END / - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL ( - COUNT ( * ) ) / + - 17 - 62 * 67 - - CASE - 99 WHEN 86 + 4 * + 91 THEN - 70 WHEN - 49 THEN - 14 / - 60 ELSE NULL END / - 58 col1
----
NULL

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

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

query I rowsort
SELECT - + 7 * + 22 - - - 46
----
-200

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

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

query I rowsort
SELECT + - 33 * + 28 - + 70 * 55 AS col0
----
-4774

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT + + 58 - - 73 + - 52 DIV - 15 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-646
SELECT + + 58 - - 73 + - 52 / - 15 AS col0
----
134

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

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - + 85 / 91 + ( + ( + COUNT ( * ) ) ) AS col1
----
1

query I rowsort
SELECT - + 47 * + - 71
----
3337

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT - SUM( DISTINCT - + 97 ) * + COUNT( * ) - 7
----
90

skipif mysql # not compatible
query I rowsort label-649
SELECT - SUM ( DISTINCT - + 97 ) * + COUNT ( * ) - 7
----
90

query I rowsort
SELECT + 83 * + ( - 52 ) AS col2
----
-4316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL ( - MIN( ALL 66 ) ) * - 64
----
4224

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL ( - MIN ( ALL 66 ) ) * - 64
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - 15 * COUNT( ALL 76 ) + - + 42
----
-57

skipif mysql # not compatible
query I rowsort label-653
SELECT - 15 * COUNT ( ALL 76 ) + - + 42
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL ( ( COUNT( * ) ) ) * + 33 * 4
----
132

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL ( ( COUNT ( * ) ) ) * + 33 * 4
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-656
SELECT DISTINCT CAST( NULL AS SIGNED ) * 55 col1, + COUNT( + + 82 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-656
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 55 col1, + COUNT ( + + 82 )
----
NULL
1

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

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

query I rowsort
SELECT ALL 75 + 23 + 91 + ( 9 ) AS col2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT DISTINCT 87 + + ( CAST( + 78 AS SIGNED ) ) col1
----
165

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT 87 + + ( CAST ( + 78 AS INTEGER ) ) col1
----
165

query I rowsort
SELECT 46 * 5 * + 39 * 56
----
502320

query I rowsort
SELECT DISTINCT 65 col2
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT NULLIF ( + 29, 26 + - + 54 * - 5 ) * - COUNT( - 31 - 10 * - 97 )
----
-29

skipif mysql # not compatible
query I rowsort label-663
SELECT NULLIF ( + 29, 26 + - + 54 * - 5 ) * - COUNT ( - 31 - 10 * - 97 )
----
-29

query I rowsort
SELECT + 83 + + - 39
----
44

query I rowsort
SELECT 88 * + - ( + + 87 ) AS col1
----
-7656

query I rowsort
SELECT CASE 89 WHEN - 94 THEN NULL WHEN + ( - ( 66 ) ) * 36 THEN 34 / ( - 76 ) END
----
NULL

query I rowsort
SELECT 19 + - 46 * - 95 * 55
----
240369

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + COALESCE ( 24, - ( MAX( - 77 ) ) * 33 ) * 51 AS col2
----
1224

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + COALESCE ( 24, - ( MAX ( - 77 ) ) * 33 ) * 51 AS col2
----
1224

query II rowsort
SELECT - 10 + 23 AS col2, + 35 col2
----
13
35

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - 49 * - + SUM( ALL - ( + 79 ) ) col2
----
-3871

skipif mysql # not compatible
query I rowsort label-670
SELECT - 49 * - + SUM ( ALL - ( + 79 ) ) col2
----
-3871

query I rowsort
SELECT DISTINCT + 55 - - 94
----
149

query I rowsort
SELECT ALL 37 * ( - ( - - 3 ) )
----
-111

query I rowsort
SELECT DISTINCT - 75 - + 57
----
-132

query I rowsort
SELECT DISTINCT + 6 * + ( - 0 ) AS col1
----
0

query I rowsort
SELECT + CASE + 16 WHEN + 10 THEN - 73 WHEN 99 / 47 + COALESCE ( - 75 + 43, - 25 + + 79 ) * 43 THEN 77 * 57 ELSE 60 + + 82 END col1
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT - 54 DIV 71 + + 86 + 4 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-676
SELECT - 54 / 71 + + 86 + 4 AS col2
----
90

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

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

query I rowsort
SELECT COALESCE ( 49, 86 ) * - - 3 * - 29
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - NULLIF ( + + 40, + SUM( DISTINCT - 10 ) ) + 65 * 70 col1
----
4510

skipif mysql # not compatible
query I rowsort label-679
SELECT - NULLIF ( + + 40, + SUM ( DISTINCT - 10 ) ) + 65 * 70 col1
----
4510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-680
SELECT COUNT( * ) DIV - 89 DIV - SUM( ALL - CAST( + COALESCE ( 28, ( 10 ) * - 0 + ( - 31 ) ) AS SIGNED ) ) + MIN( DISTINCT 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-680
SELECT COUNT ( * ) / - 89 / - SUM ( ALL - CAST ( + COALESCE ( 28, ( 10 ) * - 0 + ( - 31 ) ) AS INTEGER ) ) + MIN ( DISTINCT 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - 90 * + COUNT( * ) + 48 + - 55 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - 90 * + COUNT ( * ) + 48 + - 55 AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT - 79 DIV 7 * - - 65 + - COUNT( * ) AS col0
----
-716

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - 79 / 7 * - - 65 + - COUNT ( * ) AS col0
----
-716

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL - 64 * 89 * - MAX( DISTINCT 47 ) AS col0
----
267712

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - 64 * 89 * - MAX ( DISTINCT 47 ) AS col0
----
267712

query I rowsort
SELECT DISTINCT - ( 40 ) AS col1
----
-40

query I rowsort
SELECT DISTINCT - CASE 46 WHEN - - 76 THEN - - 66 + 34 + 2 / - 25 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT DISTINCT - COUNT( * ) + + 73 * + + 88, - 6 AS col0
----
6423
-6

skipif mysql # not compatible
query II rowsort label-686
SELECT DISTINCT - COUNT ( * ) + + 73 * + + 88, - 6 AS col0
----
6423
-6

query I rowsort
SELECT 31 * + ( + - 95 )
----
-2945

query I rowsort
SELECT ALL - ( + + 61 ) + - 15 AS col2
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT - COUNT( * ) + - 21
----
-22

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - COUNT ( * ) + - 21
----
-22

query I rowsort
SELECT 65 * - ( + 57 ) + - + 12 AS col1
----
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT 57 * - + COUNT( * ) * - COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-692
SELECT 57 * - + COUNT ( * ) * - COUNT ( * ) AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-693
SELECT ALL CASE - + CAST( NULL AS SIGNED ) WHEN + 33 THEN + 10 END + AVG ( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL CASE - + CAST ( NULL AS INTEGER ) WHEN + 33 THEN + 10 END + AVG ( 90 )
----
NULL

query I rowsort
SELECT ALL 34 + - - 78 col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-695
SELECT 46 - MAX( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT 46 - MAX ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-696
SELECT DISTINCT COUNT( * ) AS col0, + 88 * 40 col0, 29 + - - 52
----
1
3520
81

skipif mysql # not compatible
query III rowsort label-696
SELECT DISTINCT COUNT ( * ) AS col0, + 88 * 40 col0, 29 + - - 52
----
1
3520
81

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL + COUNT( ALL - 43 ) + + - 65 + 16 + + 30 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + COUNT ( ALL - 43 ) + + - 65 + 16 + + 30 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT 33 * + 62 * + 9, - MAX( DISTINCT + + 70 ) * 39 AS col2
----
18414
-2730

skipif mysql # not compatible
query II rowsort label-698
SELECT 33 * + 62 * + 9, - MAX ( DISTINCT + + 70 ) * 39 AS col2
----
18414
-2730

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

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

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

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT SUM ( DISTINCT - 28 )
----
-28

query II rowsort
SELECT ALL - 23 AS col0, 86
----
-23
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT + COALESCE ( + 24, - 77 * - - 65, + - 36, - 46 DIV + MAX( 68 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-702
SELECT + COALESCE ( + 24, - 77 * - - 65, + - 36, - 46 / + MAX ( 68 ) ) AS col0
----
24

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

query I rowsort
SELECT - COALESCE ( 19, - 25 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT DISTINCT + 18 DIV 64 + + + 26
----
26

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + 18 / 64 + + + 26
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + 88 * 95 * ( ( - - 32 ) ) * COUNT( * )
----
267520

skipif mysql # not compatible
query I rowsort label-707
SELECT + 88 * 95 * ( ( - - 32 ) ) * COUNT ( * )
----
267520

query I rowsort
SELECT 92 + - 53
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT COUNT( ALL + 93 ) * + 55 + 48 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT COUNT ( ALL + 93 ) * + 55 + 48 AS col2
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - 54 + 53 + - + 71 * - - COALESCE ( - 55, + 2 * - 59 ) * + COUNT( * ) + + 61
----
3965

skipif mysql # not compatible
query I rowsort label-711
SELECT - 54 + 53 + - + 71 * - - COALESCE ( - 55, + 2 * - 59 ) * + COUNT ( * ) + + 61
----
3965

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

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + 61 * COUNT ( * ) AS col2
----
61

query I rowsort
SELECT ALL - 50 * 67
----
-3350

query I rowsort
SELECT ALL - 89 * 55 * - 99 + - 77 + 49 AS col2
----
484577

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT 96 DIV - 41 + - 49 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-715
SELECT 96 / - 41 + - 49 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL - COALESCE ( + + 38, - - COUNT( * ) ) * + - 66 * + 31 + + SUM( ALL - 51 ) + 30 col2
----
77727

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - COALESCE ( + + 38, - - COUNT ( * ) ) * + - 66 * + 31 + + SUM ( ALL - 51 ) + 30 col2
----
77727

query I rowsort
SELECT - 83 + - 98 AS col0
----
-181

query I rowsort
SELECT COALESCE ( - 57, + - 0 * - - COALESCE ( 19, + 65 ) + + 56 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT 96 * + 71 + - - 12 + + MIN( DISTINCT + CASE WHEN ( + 51 ) >= ( - ( - 32 ) ) THEN + 26 + + 11 ELSE NULL END ) * + 64 * MIN( - 35 ) col0
----
-76052

skipif mysql # not compatible
query I rowsort label-719
SELECT 96 * + 71 + - - 12 + + MIN ( DISTINCT + CASE WHEN ( + 51 ) >= ( - ( - 32 ) ) THEN + 26 + + 11 ELSE NULL END ) * + 64 * MIN ( - 35 ) col0
----
-76052

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT - 76 + 1 AS col1, COUNT( DISTINCT 42 ) + + 88 + + + 33 * - 23 AS col1
----
-75
-670

skipif mysql # not compatible
query II rowsort label-720
SELECT - 76 + 1 AS col1, COUNT ( DISTINCT 42 ) + + 88 + + + 33 * - 23 AS col1
----
-75
-670

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - 40 + - 10 + + COUNT( * ) * 54 * + - 52 AS col2
----
-2858

skipif mysql # not compatible
query I rowsort label-722
SELECT - 40 + - 10 + + COUNT ( * ) * 54 * + - 52 AS col2
----
-2858

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

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

query I rowsort
SELECT DISTINCT + 2 * 60 + NULLIF ( + ( - + 21 ), - 59 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + MIN( - + 88 ) * COUNT( * ) + - ( - + COUNT( * ) ) + - 45 + - 15
----
-147

skipif mysql # not compatible
query I rowsort label-725
SELECT + MIN ( - + 88 ) * COUNT ( * ) + - ( - + COUNT ( * ) ) + - 45 + - 15
----
-147

query I rowsort
SELECT + 4 * - + 63 AS col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - COUNT( * ) * SUM( + 35 ) * 14 * + 46 + - 2
----
-22542

skipif mysql # not compatible
query I rowsort label-727
SELECT - COUNT ( * ) * SUM ( + 35 ) * 14 * + 46 + - 2
----
-22542

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT COUNT( * ), - 48 * - 25 col1
----
1
1200

skipif mysql # not compatible
query II rowsort label-728
SELECT COUNT ( * ), - 48 * - 25 col1
----
1
1200

query I rowsort
SELECT - 98 + - 43 * + + 47 AS col2
----
-2119

query II rowsort
SELECT + 15 AS col1, - ( 5 ) AS col0
----
15
-5

query I rowsort
SELECT - CASE + 13 WHEN - 89 - - 9 THEN - - 69 END + + 71 / 53
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT ALL + 53 DIV - - MAX( DISTINCT - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + 53 / - - MAX ( DISTINCT - 96 )
----
0

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

query I rowsort
SELECT ALL - COALESCE ( + 30, + 97 - + 78 * - 51 )
----
-30

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

skipif mysql # not compatible
query I rowsort label-736
SELECT - 50 * - COUNT ( * ) + - 50 AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL COALESCE ( - - 94, 74 DIV - + 86 * + - 92 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL COALESCE ( - - 94, 74 / - + 86 * + - 92 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT - - SUM( + + COALESCE ( + - 8, + - 59 ) ) + - 88
----
-96

skipif mysql # not compatible
query I rowsort label-739
SELECT - - SUM ( + + COALESCE ( + - 8, + - 59 ) ) + - 88
----
-96

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

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

query I rowsort
SELECT - 58 + + + 54
----
-4

query II rowsort
SELECT ALL 10 AS col1, 27 * 90 AS col2
----
10
2430

query I rowsort
SELECT DISTINCT - 89 * - 82 + + - COALESCE ( - 71, + 31 ) AS col1
----
7369

query I rowsort
SELECT - 25 * + 22 + + 50
----
-500

query I rowsort
SELECT + - COALESCE ( 65, - + 86, 42 ) + - + 13 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT - + MAX( DISTINCT + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-746
SELECT - + MAX ( DISTINCT + 38 )
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - + COALESCE ( - 55, - MIN( ALL - - 14 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-748
SELECT - + COALESCE ( - 55, - MIN ( ALL - - 14 ) ) AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT DISTINCT + 62 + + COALESCE ( - 1, MIN( - 22 ) ) + + 54 DIV - 18
----
58

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + 62 + + COALESCE ( - 1, MIN ( - 22 ) ) + + 54 / - 18
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT ALL - 4 + - 11 + + - ( - CAST( + - ( + 87 ) AS SIGNED ) ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - 4 + - 11 + + - ( - CAST ( + - ( + 87 ) AS INTEGER ) ) AS col0
----
-102

query I rowsort
SELECT ALL - 40 + - 20 AS col0
----
-60

query I rowsort
SELECT + 88 * - 7 * + + 55 AS col2
----
-33880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN 83 * - AVG ( + NULLIF ( + 52, 29 * - 16 + - 35 * NULLIF ( + 62, + 61 ) ) ) THEN 59 END + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN 83 * - AVG ( + NULLIF ( + 52, 29 * - 16 + - 35 * NULLIF ( + 62, + 61 ) ) ) THEN 59 END + + 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-754
SELECT + ( - 2 ), - 25 + - CASE - ( MIN( CAST( NULL AS SIGNED ) ) ) WHEN 77 THEN NULL WHEN - 31 * 54 + MIN( ALL - 61 ) THEN 27 / 82 + 45 END AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-754
SELECT + ( - 2 ), - 25 + - CASE - ( MIN ( CAST ( NULL AS INTEGER ) ) ) WHEN 77 THEN NULL WHEN - 31 * 54 + MIN ( ALL - 61 ) THEN 27 / 82 + 45 END AS col2
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-755
SELECT + MAX( DISTINCT COALESCE ( 67, - 31 ) ) * 2 * - 73 + + ( + COALESCE ( + ( + 72 ), 79 + COUNT( * ) * 70 ) ) - - 74 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT + MAX ( DISTINCT COALESCE ( 67, - 31 ) ) * 2 * - 73 + + ( + COALESCE ( + ( + 72 ), 79 + COUNT ( * ) * 70 ) ) - - 74 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 47 * 28
----
1316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-757
SELECT + 53 * + CAST( NULL AS DECIMAL ) * + ( - 28 ) * 51 / - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT + 53 * + CAST ( NULL AS REAL ) * + ( - 28 ) * 51 / - 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT ALL + 52 DIV 8 + + ( + + MAX( - 27 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + 52 / 8 + + ( + + MAX ( - 27 ) )
----
-21

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

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT ALL ( - + 29 ) * - 81 * - 97 - - 31 AS col2, COUNT( ALL + - 92 )
----
-227822
1

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL ( - + 29 ) * - 81 * - 97 - - 31 AS col2, COUNT ( ALL + - 92 )
----
-227822
1

query II rowsort
SELECT + ( + 61 ) col0, - 11
----
61
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-762
SELECT ALL + COALESCE ( + + 59, COUNT( * ) ) AS col1, 31 * - MAX( DISTINCT - + 7 ) * - + MIN( ALL 38 ) + + 53 * 59 AS col0
----
59
-5119

skipif mysql # not compatible
query II rowsort label-762
SELECT ALL + COALESCE ( + + 59, COUNT ( * ) ) AS col1, 31 * - MAX ( DISTINCT - + 7 ) * - + MIN ( ALL 38 ) + + 53 * 59 AS col0
----
59
-5119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-763
SELECT DISTINCT + COUNT( DISTINCT - 55 ) DIV - COUNT( * ) + - 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + COUNT ( DISTINCT - 55 ) / - COUNT ( * ) + - 44 AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-764
SELECT ALL - 75 / - 2 + + 44 + - 74 + 77 * - - CAST( NULL AS SIGNED ) - - + AVG ( ALL 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL - 75 / - 2 + + 44 + - 74 + 77 * - - CAST ( NULL AS INTEGER ) - - + AVG ( ALL 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + NULLIF ( - + 67, - MIN( + 78 ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-765
SELECT + NULLIF ( - + 67, - MIN ( + 78 ) ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT - MAX( + + 78 ) * + + 40 * 98
----
-305760

skipif mysql # not compatible
query I rowsort label-766
SELECT - MAX ( + + 78 ) * + + 40 * 98
----
-305760

query I rowsort
SELECT + 57 + - ( 17 ) - - - 23 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT CAST( - 97 AS SIGNED ) * - 26 + + 53 AS col1
----
2575

skipif mysql # not compatible
query I rowsort label-768
SELECT CAST ( - 97 AS INTEGER ) * - 26 + + 53 AS col1
----
2575

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT COALESCE ( + - 71, - COUNT( * ), + + MIN( ALL + + 0 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-769
SELECT COALESCE ( + - 71, - COUNT ( * ), + + MIN ( ALL + + 0 ) ) AS col0
----
-71

query I rowsort
SELECT ALL + 97 col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT DISTINCT + + CASE + 18 WHEN - 60 * + CAST( NULL AS SIGNED ) + + 13 / 86 * + 1 * - SUM( - 76 ) + 21 THEN NULL WHEN CAST( NULL AS SIGNED ) * - 78 THEN 85 END * + AVG ( DISTINCT + 23 - - 85 * - ( 15 / 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT + + CASE + 18 WHEN - 60 * + CAST ( NULL AS INTEGER ) + + 13 / 86 * + 1 * - SUM ( - 76 ) + 21 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 78 THEN 85 END * + AVG ( DISTINCT + 23 - - 85 * - ( 15 / 16 ) ) AS col1
----
NULL

query I rowsort
SELECT - - 57 + - 17
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT ALL 3 * + + 74 DIV 24 * - 74 DIV 37
----
-18

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL 3 * + + 74 / 24 * - 74 / 37
----
-18

query II rowsort
SELECT + 68 * - 2 + 11 AS col0, + 3 * - + 35 + 76
----
-125
-29

query I rowsort
SELECT - + 80 * + 15 * 94
----
-112800

query I rowsort
SELECT - + 74 * 42 + 41 + + 39 * ( 37 ) * + ( 57 )
----
79184

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT COUNT( * ) * - + 70 - + 7 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-777
SELECT COUNT ( * ) * - + 70 - + 7 AS col2
----
-77

query I rowsort
SELECT 22 * ( + 79 ) AS col0
----
1738

query II rowsort
SELECT 53 - - 84 AS col0, - 99
----
137
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT - CASE - 15 WHEN - + ( + CASE + 34 WHEN - 62 THEN NULL WHEN 9 THEN NULL ELSE + 91 + - 97 * 1 END ) * 2 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT - CASE - 15 WHEN - + ( + CASE + 34 WHEN - 62 THEN NULL WHEN 9 THEN NULL ELSE + 91 + - 97 * 1 END ) * 2 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-781
SELECT ALL + - 59 + 7 * + + COALESCE ( 95, + NULLIF ( - CASE + 30 WHEN CAST( 46 AS DECIMAL ) + - COUNT( * ) / + 27 THEN NULL WHEN + 12 + + SUM( + 23 + + 35 ) * + COUNT( * ) THEN - 80 - ( - 45 ) END, + 14 * + 76 ) * 41 - 59 ) AS col1
----
606

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL + - 59 + 7 * + + COALESCE ( 95, + NULLIF ( - CASE + 30 WHEN CAST ( 46 AS REAL ) + - COUNT ( * ) / + 27 THEN NULL WHEN + 12 + + SUM ( + 23 + + 35 ) * + COUNT ( * ) THEN - 80 - ( - 45 ) END, + 14 * + 76 ) * 41 - 59 ) AS col1
----
606

query II rowsort
SELECT DISTINCT + 66 + 35, 18 AS col2
----
101
18

query I rowsort
SELECT ALL + + 47 + - - 15 * - 84 AS col2
----
-1213

query I rowsort
SELECT DISTINCT - 11 + + ( + 48 ) - 98
----
-61

query I rowsort
SELECT + 11 + 25 + + 99 + COALESCE ( 39, 11 )
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT DISTINCT ( - - COUNT( * ) ), 32 * + 88 - + + 34 - + 59 AS col2
----
1
2723

skipif mysql # not compatible
query II rowsort label-786
SELECT DISTINCT ( - - COUNT ( * ) ), 32 * + 88 - + + 34 - + 59 AS col2
----
1
2723

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-787
SELECT ALL + + CASE - + ( - - NULLIF ( + 61, + 65 ) ) WHEN + CAST( NULL AS DECIMAL ) THEN + AVG ( ALL 55 ) END + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + + CASE - + ( - - NULLIF ( + 61, + 65 ) ) WHEN + CAST ( NULL AS REAL ) THEN + AVG ( ALL 55 ) END + + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + 25 + + COUNT( * ) * + 82 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-788
SELECT + 25 + + COUNT ( * ) * + 82 AS col0
----
107

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

skipif mysql # not compatible
query I rowsort label-789
SELECT + ( + + 58 ) - + 13 + + - COUNT ( * ) AS col2
----
44

query I rowsort
SELECT 12 + - + 57 AS col1
----
-45

query I rowsort
SELECT 21 + - 73 * + 65
----
-4724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-792
SELECT ALL CAST( - ( - 48 ) AS SIGNED ) + - 16, - 16 + - COUNT( * ) AS col2
----
32
-17

skipif mysql # not compatible
query II rowsort label-792
SELECT ALL CAST ( - ( - 48 ) AS INTEGER ) + - 16, - 16 + - COUNT ( * ) AS col2
----
32
-17

query I rowsort
SELECT ALL + NULLIF ( 41, - 72 ) * + - NULLIF ( + 74, - 28 + + 11 )
----
-3034

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-797
SELECT CASE + COUNT( * ) WHEN - COUNT( 81 ) THEN NULL ELSE 57 END DIV - 89 + COUNT( * ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-797
SELECT CASE + COUNT ( * ) WHEN - COUNT ( 81 ) THEN NULL ELSE 57 END / - 89 + COUNT ( * ) + 39
----
40

query II rowsort
SELECT DISTINCT - 95 AS col2, - ( + 57 ) + + + 64
----
-95
7

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT ALL 75 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL 75 / - 94 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-800
SELECT CAST( 37 AS SIGNED ) DIV 21 DIV 15
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT CAST ( 37 AS INTEGER ) / 21 / 15
----
0

query I rowsort
SELECT 43 * - + ( - ( - 79 ) )
----
-3397

query I rowsort
SELECT 56 * + 3 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT COUNT( DISTINCT + 62 ) * 82 * + - COUNT( ALL - 40 ) + + 33
----
-49

skipif mysql # not compatible
query I rowsort label-803
SELECT COUNT ( DISTINCT + 62 ) * 82 * + - COUNT ( ALL - 40 ) + + 33
----
-49

query I rowsort
SELECT ALL 45 * 81
----
3645

query I rowsort
SELECT ALL - CASE - 96 WHEN + 27 THEN - + 53 + + 74 ELSE - + 96 END * - 48 - - - 91 AS col0
----
-4699

query I rowsort
SELECT DISTINCT 74 * + - 9
----
-666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-807
SELECT DISTINCT - 46 AS col1, ( CAST( - 22 AS SIGNED ) ) AS col1
----
-46
-22

skipif mysql # not compatible
query II rowsort label-807
SELECT DISTINCT - 46 AS col1, ( CAST ( - 22 AS INTEGER ) ) AS col1
----
-46
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT 92 * 44 DIV SUM( + + 35 ) * 86 + + CASE + + 82 WHEN + + 16 THEN + 28 ELSE + 67 END + + 3 * 36
----
10065

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT 92 * 44 / SUM ( + + 35 ) * 86 + + CASE + + 82 WHEN + + 16 THEN + 28 ELSE + 67 END + + 3 * 36
----
10065

query I rowsort
SELECT + 40 * - 39 + - + 85
----
-1645

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT ALL - + COUNT( * ) AS col0, + MAX( - 40 )
----
-1
-40

skipif mysql # not compatible
query II rowsort label-810
SELECT ALL - + COUNT ( * ) AS col0, + MAX ( - 40 )
----
-1
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT CAST( 43 AS SIGNED ) + + MAX( - - 27 ) - + 86 + - 63 * - MAX( 9 ) * - 56 col0
----
-31768

skipif mysql # not compatible
query I rowsort label-811
SELECT CAST ( 43 AS INTEGER ) + + MAX ( - - 27 ) - + 86 + - 63 * - MAX ( 9 ) * - 56 col0
----
-31768

query I rowsort
SELECT + 93 + - 92
----
1

query II rowsort
SELECT 9, NULLIF ( 56, - ( 25 ) ) col0
----
9
56

query I rowsort
SELECT 90 * ( + - 60 )
----
-5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT - MAX( CASE - ( + - CAST( NULL AS SIGNED ) ) WHEN + 89 THEN + 8 * 10 ELSE NULL END ) * + - CASE AVG ( + 10 ) WHEN + COUNT( * ) THEN MAX( ALL 31 ) END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT - MAX ( CASE - ( + - CAST ( NULL AS INTEGER ) ) WHEN + 89 THEN + 8 * 10 ELSE NULL END ) * + - CASE AVG ( + 10 ) WHEN + COUNT ( * ) THEN MAX ( ALL 31 ) END * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 7 * + - 96 + - 7
----
-679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT DISTINCT + 37 + - + 87 + - 55 + - COALESCE ( - ( - MIN( + 91 ) ), NULLIF ( - 38, 68 + + COALESCE ( CAST( NULL AS SIGNED ), - 87, + ( - 52 ) ) ) + 30 ) AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + 37 + - + 87 + - 55 + - COALESCE ( - ( - MIN ( + 91 ) ), NULLIF ( - 38, 68 + + COALESCE ( CAST ( NULL AS INTEGER ), - 87, + ( - 52 ) ) ) + 30 ) AS col0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT + 43 + + - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-818
SELECT + 43 + + - COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT NULLIF ( ( - COUNT( * ) ), + - 91 ) * + 9
----
-9

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT NULLIF ( ( - COUNT ( * ) ), + - 91 ) * + 9
----
-9

query I rowsort
SELECT ALL - 13 * 45 - + 37 AS col0
----
-622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT + COUNT( * ) DIV + 30 * - ( - + 19 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT + COUNT ( * ) / + 30 * - ( - + 19 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT 36 + - 23 + + 31 - 27 * + CAST( + 62 AS SIGNED ) * + ( - NULLIF ( 33, 0 ) ) - 16 AS col1
----
55270

skipif mysql # not compatible
query I rowsort label-822
SELECT 36 + - 23 + + 31 - 27 * + CAST ( + 62 AS INTEGER ) * + ( - NULLIF ( 33, 0 ) ) - 16 AS col1
----
55270

query I rowsort
SELECT CASE + 14 WHEN 14 THEN NULL ELSE CASE + + ( - 87 ) WHEN + 45 THEN NULL WHEN 3 / 77 THEN 26 ELSE 50 * + 83 END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-824
SELECT ALL + 22 + - CAST( + 67 AS SIGNED ) AS col2, - 27 + - - 1 AS col0
----
-45
-26

skipif mysql # not compatible
query II rowsort label-824
SELECT ALL + 22 + - CAST ( + 67 AS INTEGER ) AS col2, - 27 + - - 1 AS col0
----
-45
-26

query I rowsort
SELECT 28 * - 41 AS col0
----
-1148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT - CAST( 81 AS SIGNED ) / + CASE - 57 WHEN 31 THEN - ( + 90 ) END + + + ( COALESCE ( + COUNT( * ), ( 21 ), ( + 2 ) * 73 + - 20 ) ) + 69 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT - CAST ( 81 AS INTEGER ) / + CASE - 57 WHEN 31 THEN - ( + 90 ) END + + + ( COALESCE ( + COUNT ( * ), ( 21 ), ( + 2 ) * 73 + - 20 ) ) + 69 * 80
----
NULL

query I rowsort
SELECT DISTINCT + 83 - - + 29 + - + 24 AS col1
----
88

query I rowsort
SELECT 27 - - 34 col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT DISTINCT COUNT( - + 61 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-829
SELECT DISTINCT COUNT ( - + 61 ), COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + 84 * + ( + 17 ) * + + ( - - 83 ) AS col1
----
118524

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT 52 * - COUNT( DISTINCT + - 43 ) * 14
----
-728

skipif mysql # not compatible
query I rowsort label-832
SELECT 52 * - COUNT ( DISTINCT + - 43 ) * 14
----
-728

query I rowsort
SELECT 88 * + 81
----
7128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT ALL - MIN( - CAST( + 80 AS SIGNED ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - MIN ( - CAST ( + 80 AS INTEGER ) ) AS col1
----
80

query II rowsort
SELECT ALL - 76 * - 5 AS col2, + ( 80 )
----
380
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - NULLIF ( - ( - - 34 ), - + NULLIF ( - + MIN( DISTINCT - ( 29 ) ), - - ( - COUNT( * ) ) * 95 ) )
----
34

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - NULLIF ( - ( - - 34 ), - + NULLIF ( - + MIN ( DISTINCT - ( 29 ) ), - - ( - COUNT ( * ) ) * 95 ) )
----
34

query II rowsort
SELECT + ( + 75 ) AS col0, 82
----
75
82

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - 64 * 18 * + MIN( + + 71 ) * 92 AS col1
----
-7524864

skipif mysql # not compatible
query I rowsort label-839
SELECT - 64 * 18 * + MIN ( + + 71 ) * 92 AS col1
----
-7524864

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT CASE - ( - 40 ) WHEN CASE + 28 WHEN - SUM( ALL + 90 ) - - + 17 THEN + 50 ELSE + 24 END THEN - 94 - COALESCE ( 70, 37 ) * - 64 WHEN + 94 + 56 THEN 64 END + NULLIF ( 41, - 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-840
SELECT CASE - ( - 40 ) WHEN CASE + 28 WHEN - SUM ( ALL + 90 ) - - + 17 THEN + 50 ELSE + 24 END THEN - 94 - COALESCE ( 70, 37 ) * - 64 WHEN + 94 + 56 THEN 64 END + NULLIF ( 41, - 55 ) AS col2
----
NULL

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

query II rowsort
SELECT DISTINCT 47 * - + 44 * 88 + + + ( 36 ) * - 79 + - 74 AS col1, + 59 * 41 AS col1
----
-184902
2419

query I rowsort
SELECT ALL 21 * + + 50
----
1050

query I rowsort
SELECT DISTINCT - 11 + - 68
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL + - ( COALESCE ( + MAX( DISTINCT + 52 ), - 2, - - 19 ) ) + + - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + - ( COALESCE ( + MAX ( DISTINCT + 52 ), - 2, - - 19 ) ) + + - COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT + COUNT( * ) * NULLIF ( 47, 55 )
----
47

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT + COUNT ( * ) * NULLIF ( 47, 55 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-847
SELECT ALL - SUM( ALL - 29 ) + 22 * 72 * + ( 27 ) * - 89 + + - CAST( - CASE 93 WHEN - COUNT( DISTINCT ( - 75 ) ) THEN NULL WHEN 92 * + 23 THEN 63 + 61 / COUNT( * ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - SUM ( ALL - 29 ) + 22 * 72 * + ( 27 ) * - 89 + + - CAST ( - CASE 93 WHEN - COUNT ( DISTINCT ( - 75 ) ) THEN NULL WHEN 92 * + 23 THEN 63 + 61 / COUNT ( * ) END AS REAL )
----
NULL

query I rowsort
SELECT + - 72 * - ( - - 42 ) AS col2
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-849
SELECT DISTINCT + ( + 55 ) + - - 90 + CAST( - - 53 AS SIGNED ) * + NULLIF ( + 21, 70 )
----
1258

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + ( + 55 ) + - - 90 + CAST ( - - 53 AS INTEGER ) * + NULLIF ( + 21, 70 )
----
1258

query I rowsort
SELECT ALL - + 92 * - 60 AS col2
----
5520

query I rowsort
SELECT ALL - 33 * - 66 * - 24 * + ( 45 ) AS col2
----
-2352240

query I rowsort
SELECT - - COALESCE ( - 62, + - 21 ) AS col1
----
-62

query I rowsort
SELECT - - 61 AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT + - CAST( - 74 AS SIGNED ) + - 40
----
34

skipif mysql # not compatible
query I rowsort label-854
SELECT + - CAST ( - 74 AS INTEGER ) + - 40
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT + MIN( ALL + 49 ) * + 66 col1
----
3234

skipif mysql # not compatible
query I rowsort label-855
SELECT + MIN ( ALL + 49 ) * + 66 col1
----
3234

query I rowsort
SELECT ALL ( + - 86 ) - + + 92
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL 47 - - CAST( NULL AS SIGNED ) - - COUNT( - 99 ) * + + CAST( CASE WHEN NOT ( ( 58 ) NOT IN ( 83 ) ) THEN + 26 * 52 ELSE NULL END AS SIGNED ) / + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL 47 - - CAST ( NULL AS INTEGER ) - - COUNT ( - 99 ) * + + CAST ( CASE WHEN NOT ( ( 58 ) NOT IN ( 83 ) ) THEN + 26 * 52 ELSE NULL END AS INTEGER ) / + 18 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT 1, CASE SUM( - ( + + 7 ) ) WHEN + 13 THEN NULL WHEN - 62 THEN - ( - 1 ) + - 10 + 90 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-859
SELECT 1, CASE SUM ( - ( + + 7 ) ) WHEN + 13 THEN NULL WHEN - 62 THEN - ( - 1 ) + - 10 + 90 END AS col1
----
1
NULL

query I rowsort
SELECT ALL 0 * + 47 col0
----
0

query I rowsort
SELECT + 6 + - 76
----
-70

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

skipif mysql # not compatible
query I rowsort label-862
SELECT - 11 / - - SUM ( DISTINCT + 99 )
----
0

query I rowsort
SELECT - ( + 25 ) - + 54
----
-79

query I rowsort
SELECT + 58 + 95 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT + 76 DIV + 24 col1
----
3

skipif mysql # not compatible
query I rowsort label-865
SELECT + 76 / + 24 col1
----
3

query I rowsort
SELECT DISTINCT 47 col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT ALL + 7 DIV - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + 7 / - 25 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT 8 / + - 40 + + 21 + CASE - - CAST( NULL AS SIGNED ) WHEN + ( ( + - ( + 72 ) ) ) * 54 * 63 + 74 * 3 + 5 * + COUNT( * ) THEN - CAST( NULL AS SIGNED ) * 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT 8 / + - 40 + + 21 + CASE - - CAST ( NULL AS INTEGER ) WHEN + ( ( + - ( + 72 ) ) ) * 54 * 63 + 74 * 3 + 5 * + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * 42 END
----
NULL

query I rowsort
SELECT - 22 * - ( + - 27 )
----
-594

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL - MAX( 43 ) * + 3 + - ( - - 66 ) AS col0
----
-195

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - MAX ( 43 ) * + 3 + - ( - - 66 ) AS col0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-872
SELECT - 53 * + 91 + 45 + + ( + 28 ) + - COUNT( * ) DIV + MAX( + - NULLIF ( + 42, + 15 * - 69 ) ) * + COALESCE ( COUNT( * ), + MIN( ALL 47 ) * CAST( NULL AS SIGNED ), - 42 * 9 - + 65 ) + 66
----
-4684

skipif mysql # not compatible
query I rowsort label-872
SELECT - 53 * + 91 + 45 + + ( + 28 ) + - COUNT ( * ) / + MAX ( + - NULLIF ( + 42, + 15 * - 69 ) ) * + COALESCE ( COUNT ( * ), + MIN ( ALL 47 ) * CAST ( NULL AS INTEGER ), - 42 * 9 - + 65 ) + 66
----
-4684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-873
SELECT DISTINCT COUNT( * ) * - MIN( + CAST( NULL AS SIGNED ) ) + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT COUNT ( * ) * - MIN ( + CAST ( NULL AS INTEGER ) ) + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT ALL - COUNT( + 8 ) * + 70 + - 15 * + 76 + - - 63 * + + COUNT( * )
----
-1147

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - COUNT ( + 8 ) * + 70 + - 15 * + 76 + - - 63 * + + COUNT ( * )
----
-1147

query I rowsort
SELECT DISTINCT - ( - 67 ) * + + 3
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT - - 68 * - - COUNT( * ) * - COUNT( * ) - + 65
----
-133

skipif mysql # not compatible
query I rowsort label-876
SELECT - - 68 * - - COUNT ( * ) * - COUNT ( * ) - + 65
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-877
SELECT + CAST( + 54 AS SIGNED ) * + COUNT( * ), - 85 + - 92 col0
----
54
-177

skipif mysql # not compatible
query II rowsort label-877
SELECT + CAST ( + 54 AS INTEGER ) * + COUNT ( * ), - 85 + - 92 col0
----
54
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-878
SELECT ALL + - 65 DIV - + ( + 11 ) - + + COUNT( * ) DIV + CAST( + + 25 AS SIGNED ), 3 * - - COUNT( * ) AS col1, + + 66 AS col2
----
5
3
66

skipif mysql # not compatible
query III rowsort label-878
SELECT ALL + - 65 / - + ( + 11 ) - + + COUNT ( * ) / + CAST ( + + 25 AS INTEGER ), 3 * - - COUNT ( * ) AS col1, + + 66 AS col2
----
5
3
66

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT - - ( MAX( DISTINCT - 91 ) ) + - - ( - 39 ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-879
SELECT - - ( MAX ( DISTINCT - 91 ) ) + - - ( - 39 ) AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + - 85 + + COUNT( + + 58 )
----
-84

skipif mysql # not compatible
query I rowsort label-880
SELECT + - 85 + + COUNT ( + + 58 )
----
-84

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

query I rowsort
SELECT - + 99 + - 18 col0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-883
SELECT ALL COUNT( * ) AS col1, + 18 + - + 60 DIV - 94
----
1
18

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL COUNT ( * ) AS col1, + 18 + - + 60 / - 94
----
1
18

query I rowsort
SELECT - - 37 * + - 98 * - 79 + - 97 + 2 * - 62
----
286233

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT + + 23 * - COALESCE ( - MIN( DISTINCT ( + 27 ) ), + + 2 + 98, 47, + MIN( - 18 ) ) AS col2
----
621

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT + + 23 * - COALESCE ( - MIN ( DISTINCT ( + 27 ) ), + + 2 + 98, 47, + MIN ( - 18 ) ) AS col2
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL 30 * ( COUNT( * ) ) - + 70 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 30 * ( COUNT ( * ) ) - + 70 AS col0
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT + SUM( - 69 ) + + 23
----
-46

skipif mysql # not compatible
query I rowsort label-888
SELECT + SUM ( - 69 ) + + 23
----
-46

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

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

query I rowsort
SELECT + 71 * 91 AS col1
----
6461

query II rowsort
SELECT 48, - ( - - 17 ) col0
----
48
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT + 88 + - 83 + - ( - 38 ) + - - CAST( NULL AS SIGNED ) / + COUNT( + 76 ) + ( - 1 ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT + 88 + - 83 + - ( - 38 ) + - - CAST ( NULL AS INTEGER ) / + COUNT ( + 76 ) + ( - 1 ) + - 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-893
SELECT + ( - 42 ) + + CAST( NULL AS SIGNED ) * - + 19 AS col1, + 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-893
SELECT + ( - 42 ) + + CAST ( NULL AS INTEGER ) * - + 19 AS col1, + 23 AS col1
----
NULL
23

query II rowsort
SELECT 62 AS col1, - 34 + + 66
----
62
32

query I rowsort
SELECT + 35 * 71
----
2485

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-896
SELECT DISTINCT 90 AS col1, + SUM( + COALESCE ( + + 31, - 77 ) ) DIV + + 36
----
90
0

skipif mysql # not compatible
query II rowsort label-896
SELECT DISTINCT 90 AS col1, + SUM ( + COALESCE ( + + 31, - 77 ) ) / + + 36
----
90
0

query III rowsort
SELECT ALL 42 AS col0, 99 * - 84 + 49 AS col1, + 37 - - 16
----
42
-8267
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT - CAST( + AVG ( DISTINCT + + 39 ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-898
SELECT - CAST ( + AVG ( DISTINCT + + 39 ) AS INTEGER )
----
-39

query I rowsort
SELECT DISTINCT 52 + + 9 * 66 * 61 AS col1
----
36286

query I rowsort
SELECT ALL + 3 * + 91
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-901
SELECT 91 AS col2, 12 + 75 + - + 38 * + COUNT( * )
----
91
49

skipif mysql # not compatible
query II rowsort label-901
SELECT 91 AS col2, 12 + 75 + - + 38 * + COUNT ( * )
----
91
49

query II rowsort
SELECT DISTINCT 28 + - + 92 AS col1, - 25 * + ( - - 44 )
----
-64
-1100

query II rowsort
SELECT ALL 86 + 46 AS col1, - NULLIF ( + 61, - 23 ) AS col2
----
132
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-904
SELECT 99, 97 DIV COUNT( * ) AS col0
----
99
97

skipif mysql # not compatible
query II rowsort label-904
SELECT 99, 97 / COUNT ( * ) AS col0
----
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT - 57 DIV 43
----
-1

skipif mysql # not compatible
query I rowsort label-905
SELECT - 57 / 43
----
-1

query I rowsort
SELECT - 74 * 10
----
-740

query II rowsort
SELECT + 68, + 8 col1
----
68
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT ALL + 58 + - CAST( 97 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + 58 + - CAST ( 97 AS INTEGER )
----
-39

query I rowsort
SELECT ALL - 77 + - ( - 11 )
----
-66

query II rowsort
SELECT ALL - 32 AS col0, 29 * + ( + + 85 )
----
-32
2465

query I rowsort
SELECT ALL - - 38 - 41 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT + 29 * + 81 + + NULLIF ( 87, + COUNT( * ) * - 15 - SUM( ALL + 47 ) * ( - + 86 ) + - + 94 ) + - 83 DIV - SUM( ALL 15 + - 54 )
----
2434

skipif mysql # not compatible
query I rowsort label-912
SELECT + 29 * + 81 + + NULLIF ( 87, + COUNT ( * ) * - 15 - SUM ( ALL + 47 ) * ( - + 86 ) + - + 94 ) + - 83 / - SUM ( ALL 15 + - 54 )
----
2434

query I rowsort
SELECT + + 99 AS col2
----
99

query I rowsort
SELECT 14 + + 23 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT - - 62 * + + COUNT( - COALESCE ( - 36, 86 ) ) + - 49 - COUNT( * ) - 61 * - CAST( - 88 AS SIGNED ) * - 94 * 80
----
40367372

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - - 62 * + + COUNT ( - COALESCE ( - 36, 86 ) ) + - 49 - COUNT ( * ) - 61 * - CAST ( - 88 AS INTEGER ) * - 94 * 80
----
40367372

query I rowsort
SELECT COALESCE ( 80, + 26 ) - 16 * - 93
----
1568

query I rowsort
SELECT 91 * - - 82 AS col2
----
7462

query I rowsort
SELECT ALL + 34 * 71 * - + 80
----
-193120

query I rowsort
SELECT + ( - CASE WHEN - COALESCE ( - 75, 36 ) <= - - 82 + - 17 - + ( 35 ) THEN 33 + 38 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-920
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) DIV + 41
----
-1
0

skipif mysql # not compatible
query II rowsort label-920
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) / + 41
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL - - SUM( 2 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - - SUM ( 2 ) col1
----
2

query I rowsort
SELECT 37 + + + 16 - + + NULLIF ( + + 29, - 64 ) + - ( 54 )
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-923
SELECT DISTINCT + 34 DIV + 50, + 82 AS col2
----
0
82

skipif mysql # not compatible
query II rowsort label-923
SELECT DISTINCT + 34 / + 50, + 82 AS col2
----
0
82

query I rowsort
SELECT DISTINCT + 25 + 38 + + ( + - 50 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT 56 / - CAST( 46 AS SIGNED ) * + - CASE COUNT( * ) WHEN + + 92 THEN NULL WHEN + 99 THEN NULL WHEN + 37 + 88 THEN + CASE 0 WHEN + + 89 THEN 74 END * 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT 56 / - CAST ( 46 AS INTEGER ) * + - CASE COUNT ( * ) WHEN + + 92 THEN NULL WHEN + 99 THEN NULL WHEN + 37 + 88 THEN + CASE 0 WHEN + + 89 THEN 74 END * 82 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 47 + + 85 + - 11 + - + 73 + + - 41 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT DISTINCT + ( - 42 ) DIV 27 * 67
----
-67

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + ( - 42 ) / 27 * 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-928
SELECT 72 - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-928
SELECT 72 - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 * 96 * + + 31 AS col2
----
119040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT DISTINCT - 62 + - + NULLIF ( COUNT( * ), + COUNT( * ) + + ( - 84 ) + - 67 ) DIV - COALESCE ( 30, + + COUNT( * ) * - - 44, + + 81 * - 97 )
----
-62

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - 62 + - + NULLIF ( COUNT ( * ), + COUNT ( * ) + + ( - 84 ) + - 67 ) / - COALESCE ( 30, + + COUNT ( * ) * - - 44, + + 81 * - 97 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL + 8 + - COUNT( * ) + + COUNT( DISTINCT - 47 ) + - - 33 + + 88 + 37 * + 13 * + + CASE - 51 WHEN - + 36 THEN + 99 / 88 WHEN + 50 + 9 * COUNT( * ) THEN NULL ELSE NULL END * COUNT( * ) - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + 8 + - COUNT ( * ) + + COUNT ( DISTINCT - 47 ) + - - 33 + + 88 + 37 * + 13 * + + CASE - 51 WHEN - + 36 THEN + 99 / 88 WHEN + 50 + 9 * COUNT ( * ) THEN NULL ELSE NULL END * COUNT ( * ) - - 85 AS col2
----
NULL

query I rowsort
SELECT 62 + + 67
----
129

query II rowsort
SELECT DISTINCT 4 * 21 AS col0, + 32
----
84
32

query II rowsort
SELECT 71 + - 52 col2, + 15 * 35
----
19
525

query I rowsort
SELECT 7 - - - 53
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-936
SELECT COALESCE ( + 90, NULLIF ( CASE - 85 WHEN + 55 * + - 30 * + + NULLIF ( - COUNT( * ), + - 6 + + 91 ) * - 27 * 78 + 31 * + 43 THEN + 29 + 39 ELSE NULL END, - MAX( ALL 54 ) ), MIN( DISTINCT + COALESCE ( - 51, + 53 * 99 ) ) DIV 18 + ( + 8 ) ) - + 52
----
38

skipif mysql # not compatible
query I rowsort label-936
SELECT COALESCE ( + 90, NULLIF ( CASE - 85 WHEN + 55 * + - 30 * + + NULLIF ( - COUNT ( * ), + - 6 + + 91 ) * - 27 * 78 + 31 * + 43 THEN + 29 + 39 ELSE NULL END, - MAX ( ALL 54 ) ), MIN ( DISTINCT + COALESCE ( - 51, + 53 * 99 ) ) / 18 + ( + 8 ) ) - + 52
----
38

query I rowsort
SELECT 90 + - 31 + 74 AS col2
----
133

query II rowsort
SELECT 97 + - 13 AS col0, 0 - 5 AS col0
----
84
-5

query I rowsort
SELECT 57 + - + 81
----
-24

query I rowsort
SELECT ALL 68 * + 31 + + 68
----
2176

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

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

query I rowsort
SELECT ALL + 29 * + + 86
----
2494

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-943
SELECT ( + 3 ) + 28 col1, CAST( 40 AS SIGNED ) * - 99
----
31
-3960

skipif mysql # not compatible
query II rowsort label-943
SELECT ( + 3 ) + 28 col1, CAST ( 40 AS INTEGER ) * - 99
----
31
-3960

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

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

query I rowsort
SELECT + + 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT + - 22 * + - 0 * - - 29 * - COUNT( * ) + + - 52 col1
----
-52

skipif mysql # not compatible
query I rowsort label-946
SELECT + - 22 * + - 0 * - - 29 * - COUNT ( * ) + + - 52 col1
----
-52

query I rowsort
SELECT DISTINCT - 52 - + 41 * + 15 + - + 0 * - 62
----
-667

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-949
SELECT + CAST( NULL AS SIGNED ) + 0, 63 col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-949
SELECT + CAST ( NULL AS INTEGER ) + 0, 63 col2
----
NULL
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT 85 * - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-951
SELECT 85 * - COUNT ( * ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-952
SELECT CASE + - COALESCE ( 52, 21 * - 9 ) WHEN 51 - - + 8 + 83 * - CAST( NULL AS SIGNED ) THEN + 79 * + 70 + - 13 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-952
SELECT CASE + - COALESCE ( 52, 21 * - 9 ) WHEN 51 - - + 8 + 83 * - CAST ( NULL AS INTEGER ) THEN + 79 * + 70 + - 13 ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT + 76 + + 14 + 2 * + 26 * + + 62 + 30
----
3344

query I rowsort
SELECT ALL + 48 * + 36 AS col2
----
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT DISTINCT - 88 AS col0, COUNT( * ) + - 86
----
-88
-85

skipif mysql # not compatible
query II rowsort label-955
SELECT DISTINCT - 88 AS col0, COUNT ( * ) + - 86
----
-88
-85

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

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - 75 + COUNT ( * ) + - 87 col2
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT DISTINCT COUNT( * ), 91 * + - 19 / 68 + + 52 + CASE - 8 WHEN - - 54 + + 95 * COUNT( * ) THEN - 86 ELSE NULL END col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-957
SELECT DISTINCT COUNT ( * ), 91 * + - 19 / 68 + + 52 + CASE - 8 WHEN - - 54 + + 95 * COUNT ( * ) THEN - 86 ELSE NULL END col0
----
1
NULL

query I rowsort
SELECT 81 + + + 49 AS col1
----
130

query I rowsort
SELECT ALL - 76 + 11 * 2 + - 63
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT ALL MAX( ALL + ( - 58 ) ) AS col0, COALESCE ( 93, - 67 )
----
-58
93

skipif mysql # not compatible
query II rowsort label-960
SELECT ALL MAX ( ALL + ( - 58 ) ) AS col0, COALESCE ( 93, - 67 )
----
-58
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-961
SELECT 98 AS col2, 83 * + CAST( NULL AS SIGNED ) * + + 59
----
98
NULL

skipif mysql # not compatible
query II rowsort label-961
SELECT 98 AS col2, 83 * + CAST ( NULL AS INTEGER ) * + + 59
----
98
NULL

query I rowsort
SELECT 62 * + 66
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT COUNT( 56 ) * ( - + 54 ) * + 98
----
-5292

skipif mysql # not compatible
query I rowsort label-963
SELECT COUNT ( 56 ) * ( - + 54 ) * + 98
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT MAX( 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT MAX ( 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT + COALESCE ( - - 35, + COUNT( * ) ) + - 5 DIV + 3 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + COALESCE ( - - 35, + COUNT ( * ) ) + - 5 / + 3 AS col2
----
34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT - 57 AS col0, ( - MAX( DISTINCT - 48 ) ) col1
----
-57
48

skipif mysql # not compatible
query II rowsort label-967
SELECT - 57 AS col0, ( - MAX ( DISTINCT - 48 ) ) col1
----
-57
48

query I rowsort
SELECT DISTINCT 92 * - + 9 * 93 col1
----
-77004

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT DISTINCT MAX( ALL - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT MAX ( ALL - 41 ) AS col0
----
-41

query I rowsort
SELECT DISTINCT - 8 * 56 + + 99 * - COALESCE ( - 53, + 51 )
----
4799

query I rowsort
SELECT ALL + 50 - - 3 AS col2
----
53

query I rowsort
SELECT - - 44 * - 44 AS col1
----
-1936

query I rowsort
SELECT - + 70 - - 67 AS col1
----
-3

query I rowsort
SELECT - + 49 AS col2
----
-49

query I rowsort
SELECT - - 95 - 34 AS col0
----
61

query I rowsort
SELECT - ( + + 46 ) * + 33 * ( - + 70 )
----
106260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-977
SELECT ALL - - 98 * + 98 * + - 85 * + 71 - - CAST( - NULLIF ( + 97, 61 ) AS SIGNED ) + 31 + - + 95 + - 25 + + 78 * - + ( 2 ) * - 83 + COUNT( * ) col0
----
-57947377

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL - - 98 * + 98 * + - 85 * + 71 - - CAST ( - NULLIF ( + 97, 61 ) AS INTEGER ) + 31 + - + 95 + - 25 + + 78 * - + ( 2 ) * - 83 + COUNT ( * ) col0
----
-57947377

query II rowsort
SELECT ALL + 72, + 7 AS col0
----
72
7

query II rowsort
SELECT + 71 AS col1, + 73 AS col0
----
71
73

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL + 18 * + NULLIF ( - + COUNT( * ), 95 )
----
-18

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + 18 * + NULLIF ( - + COUNT ( * ), 95 )
----
-18

query I rowsort
SELECT + - 54 - + 63
----
-117

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

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

query I rowsort
SELECT + + ( 10 ) - + ( ( + 77 ) ) col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT ALL + 73 DIV + 27 + + + 98
----
100

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + 73 / + 27 + + + 98
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-985
SELECT + - CAST( ( - 76 ) AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-985
SELECT + - CAST ( ( - 76 ) AS INTEGER ) AS col2
----
76

query I rowsort
SELECT + - 62 * + 41 + 30 AS col2
----
-2512

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - CASE 70 WHEN - CASE - COUNT( * ) WHEN - 53 THEN - 80 + + COUNT( ALL + - 93 ) + 88 * - 78 + + COUNT( * ) - - COUNT( * ) * - COUNT( * ) * MIN( ALL ( - 59 ) ) ELSE NULL END THEN 94 END / - ( 56 ) + ( 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT - CASE 70 WHEN - CASE - COUNT ( * ) WHEN - 53 THEN - 80 + + COUNT ( ALL + - 93 ) + 88 * - 78 + + COUNT ( * ) - - COUNT ( * ) * - COUNT ( * ) * MIN ( ALL ( - 59 ) ) ELSE NULL END THEN 94 END / - ( 56 ) + ( 15 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-989
SELECT + + COUNT( * ) + - + 18 + + + CAST( NULL AS SIGNED ) / 24 + - - 66 * 57 - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT + + COUNT ( * ) + - + 18 + + + CAST ( NULL AS INTEGER ) / 24 + - - 66 * 57 - + 92
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT DISTINCT - NULLIF ( + - COUNT( * ), + - 58 ) * 5 + + - MAX( + - 74 )
----
79

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), + - 58 ) * 5 + + - MAX ( + - 74 )
----
79

query I rowsort
SELECT DISTINCT 83 * - 6 col2
----
-498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-993
SELECT ALL - SUM( ALL - 25 ) * 77 * + COUNT( - - ( + CAST( NULL AS SIGNED ) ) ) + ( COALESCE ( - 31, - 44, - 46 DIV - CAST( NULL AS SIGNED ) + + NULLIF ( + 66, - NULLIF ( + 80, 5 * - COUNT( * ) ) * COUNT( * ) ) ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL - SUM ( ALL - 25 ) * 77 * + COUNT ( - - ( + CAST ( NULL AS INTEGER ) ) ) + ( COALESCE ( - 31, - 44, - 46 / - CAST ( NULL AS INTEGER ) + + NULLIF ( + 66, - NULLIF ( + 80, 5 * - COUNT ( * ) ) * COUNT ( * ) ) ) ) AS col2
----
-31

query II rowsort
SELECT + ( 27 ) AS col0, + 60
----
27
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL 92 * - 9 * + 92 + + 6 + - 88 + - CASE - 14 WHEN - 20 * 18 / - 6 + 22 + - - 77 + + COUNT( * ) * + + 51 THEN COALESCE ( - 62, - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL 92 * - 9 * + 92 + + 6 + - 88 + - CASE - 14 WHEN - 20 * 18 / - 6 + 22 + - - 77 + + COUNT ( * ) * + + 51 THEN COALESCE ( - 62, - COUNT ( * ) ) END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + COALESCE ( + - COUNT( * ), + ( 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT + COALESCE ( + - COUNT ( * ), + ( 49 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT + 93 + + 53 + CASE + SUM( ALL 63 ) WHEN + 83 * - + 53 THEN + + COUNT( * ) - + COUNT( * ) END * - CAST( NULL AS SIGNED ) * + + 54 + - 51 * + MAX( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 93 + + 53 + CASE + SUM ( ALL 63 ) WHEN + 83 * - + 53 THEN + + COUNT ( * ) - + COUNT ( * ) END * - CAST ( NULL AS INTEGER ) * + + 54 + - 51 * + MAX ( 4 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT MIN ( ALL 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ALL - COUNT( * ) - - 6
----
5

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - COUNT ( * ) - - 6
----
5

query I rowsort
SELECT ALL + 90 * 32 col0
----
2880

query I rowsort
SELECT DISTINCT ( - 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT ALL 21 - ( - CAST( 61 AS SIGNED ) ) + 85 * + COALESCE ( 87, 73 - 77 ) * + + 14 + + 91 col0
----
103703

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL 21 - ( - CAST ( 61 AS INTEGER ) ) + 85 * + COALESCE ( 87, 73 - 77 ) * + + 14 + + 91 col0
----
103703

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1007
SELECT - 92 + - + 36 + + + COALESCE ( + + 85, + - COUNT( * ) - 77, + MAX( + - 32 ) ) + + 32 DIV 40 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1007
SELECT - 92 + - + 36 + + + COALESCE ( + + 85, + - COUNT ( * ) - 77, + MAX ( + - 32 ) ) + + 32 / 40 AS col1
----
-43

query I rowsort
SELECT + 3 + - 74 - + 12 - 5 col0
----
-88

query I rowsort
SELECT - 9 * 54 * + - 13 * - - 39
----
246402

query I rowsort
SELECT DISTINCT COALESCE ( + 23, 21, 60 ) AS col0
----
23

query I rowsort
SELECT - 89 - 25 AS col2
----
-114

query I rowsort
SELECT - - 7 * - + 89 * - 84
----
52332

query II rowsort
SELECT - 3 - + 37 AS col2, + 81 + 57 + + 45 + + 92 * + + 15
----
-40
1563

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL CASE 68 WHEN + 70 THEN - + 48 - ( - MAX( + - 23 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL CASE 68 WHEN + 70 THEN - + 48 - ( - MAX ( + - 23 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1015
SELECT - - 58 + CAST( + CASE 11 WHEN + + COUNT( * ) - + - 37 THEN NULL WHEN - 91 THEN 48 END AS SIGNED ) + - 95 + - 40, + 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1015
SELECT - - 58 + CAST ( + CASE 11 WHEN + + COUNT ( * ) - + - 37 THEN NULL WHEN - 91 THEN 48 END AS INTEGER ) + - 95 + - 40, + 72 AS col0
----
NULL
72

query I rowsort
SELECT - 78 * - 95
----
7410

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT COUNT ( * ) / - 6 + 55 AS col2
----
55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT ALL - + 70 DIV - 16 + 94 + 91 + - 63 * 54 AS col2
----
-3213

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - + 70 / - 16 + 94 + 91 + - 63 * 54 AS col2
----
-3213

query I rowsort
SELECT - - NULLIF ( + CASE - 56 WHEN - 57 THEN + + 12 END, 78 / 73 ) + + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1021
SELECT DISTINCT + 70 DIV COUNT( * ) + ( + ( - 87 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + 70 / COUNT ( * ) + ( + ( - 87 ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT + COALESCE ( + 39, COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-1022
SELECT + COALESCE ( + 39, COUNT ( * ) )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1023
SELECT CAST( - - 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1023
SELECT CAST ( - - 45 AS INTEGER ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1024
SELECT DISTINCT 51 DIV + COUNT( DISTINCT + 22 ) + - ( + 92 ) AS col1, COALESCE ( + 90, CAST( - 29 AS SIGNED ) - + + ( - 17 ) DIV ( + 4 ) ) * - 37 + + 84 AS col0
----
-41
-3246

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT 51 / + COUNT ( DISTINCT + 22 ) + - ( + 92 ) AS col1, COALESCE ( + 90, CAST ( - 29 AS INTEGER ) - + + ( - 17 ) / ( + 4 ) ) * - 37 + + 84 AS col0
----
-41
-3246

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1025
SELECT DISTINCT CAST( - 8 AS SIGNED ) DIV - 43 - ( - + 14 ) * - 99 + 56 * + 94 col2, - 16 + + 28 AS col1
----
3878
12

skipif mysql # not compatible
query II rowsort label-1025
SELECT DISTINCT CAST ( - 8 AS INTEGER ) / - 43 - ( - + 14 ) * - 99 + 56 * + 94 col2, - 16 + + 28 AS col1
----
3878
12

query I rowsort
SELECT + 88 * + + 2 AS col0
----
176

query I rowsort
SELECT + 6 + - 55
----
-49

query I rowsort
SELECT + 44 * - 8 + 64 AS col1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 0 * - NULLIF ( + COUNT( * ), + ( 48 ) * - 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT 0 * - NULLIF ( + COUNT ( * ), + ( 48 ) * - 56 ) AS col2
----
0

query I rowsort
SELECT ALL 64 * - - 93 AS col1
----
5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT CAST( NULL AS SIGNED ) + CASE - 65 WHEN + 29 THEN NULL WHEN 27 * - 51 * + 70 + - + 59 THEN NULL WHEN 47 * + 76 + + 5 THEN + 10 ELSE 73 / 46 END + - 41 / + 81 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT CAST ( NULL AS INTEGER ) + CASE - 65 WHEN + 29 THEN NULL WHEN 27 * - 51 * + 70 + - + 59 THEN NULL WHEN 47 * + 76 + + 5 THEN + 10 ELSE 73 / 46 END + - 41 / + 81 * + 39
----
NULL

query I rowsort
SELECT ALL 28 * + 66 * - 67 AS col0
----
-123816

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT DISTINCT 87 * 19 * - COUNT( * ) * + 22
----
-36366

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT 87 * 19 * - COUNT ( * ) * + 22
----
-36366

query I rowsort
SELECT 6 + + 80 + + 11 col0
----
97

query I rowsort
SELECT ALL 22 - - - 3 - - - ( - 74 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT COALESCE ( + CASE + 39 WHEN + ( - 71 ) * COUNT( * ) THEN ( 9 ) WHEN + - 64 + - 42 THEN NULL ELSE + + COUNT( * ) END, - 28, + 54 ) + + + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1036
SELECT COALESCE ( + CASE + 39 WHEN + ( - 71 ) * COUNT ( * ) THEN ( 9 ) WHEN + - 64 + - 42 THEN NULL ELSE + + COUNT ( * ) END, - 28, + 54 ) + + + 67 AS col2
----
68

query I rowsort
SELECT 90 * + 96
----
8640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1038
SELECT ALL 11 col0, + COALESCE ( + + 68, + 52 ) - - + 67 * + COALESCE ( - 99, - - CAST( NULL AS SIGNED ), + + 60 + - - MIN( + 43 ) * - + COUNT( * ) ) AS col1
----
11
-6565

skipif mysql # not compatible
query II rowsort label-1038
SELECT ALL 11 col0, + COALESCE ( + + 68, + 52 ) - - + 67 * + COALESCE ( - 99, - - CAST ( NULL AS INTEGER ), + + 60 + - - MIN ( + 43 ) * - + COUNT ( * ) ) AS col1
----
11
-6565

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT 32 + - - 17 + ( - + COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1039
SELECT 32 + - - 17 + ( - + COUNT ( * ) ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1040
SELECT NULLIF ( - + 91, - 25 * - COUNT( * ) + + 88 ) AS col0, 15 * - + CAST( 45 AS SIGNED )
----
-91
-675

skipif mysql # not compatible
query II rowsort label-1040
SELECT NULLIF ( - + 91, - 25 * - COUNT ( * ) + + 88 ) AS col0, 15 * - + CAST ( 45 AS INTEGER )
----
-91
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL - CASE - - 71 WHEN - 3 THEN + MAX( - 84 ) ELSE - + ( + ( + 69 ) ) END col2
----
69

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - CASE - - 71 WHEN - 3 THEN + MAX ( - 84 ) ELSE - + ( + ( + 69 ) ) END col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1042
SELECT ALL - 67 * - COALESCE ( - - 29, 31 DIV - + COUNT( * ) ) AS col0, - 16 * - 43 AS col0
----
1943
688

skipif mysql # not compatible
query II rowsort label-1042
SELECT ALL - 67 * - COALESCE ( - - 29, 31 / - + COUNT ( * ) ) AS col0, - 16 * - 43 AS col0
----
1943
688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT DISTINCT NULLIF ( - CAST( - 28 AS SIGNED ), 98 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT NULLIF ( - CAST ( - 28 AS INTEGER ), 98 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT COUNT( * ) * - 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT COUNT ( * ) * - 79 AS col1
----
-79

query I rowsort
SELECT ALL - 18 + + 75 AS col2
----
57

query II rowsort
SELECT DISTINCT + 29 AS col1, 23 + + + 17 * - - 90
----
29
1553

query II rowsort
SELECT DISTINCT + NULLIF ( + 89, - - 21 ) AS col2, + 67 * + 69 - 86
----
89
4537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT ALL + COUNT( * ) + + 91 + SUM( DISTINCT + NULLIF ( 6, - + 66 ) ) DIV - + 35
----
92

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + COUNT ( * ) + + 91 + SUM ( DISTINCT + NULLIF ( 6, - + 66 ) ) / - + 35
----
92

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

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

query I rowsort
SELECT 83 - + 16
----
67

query I rowsort
SELECT ALL - + 73 col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1052
SELECT + 82 DIV + ( 26 ) + - - SUM( ALL - 19 ) * - 28 + 10 * 78 + 22 + + + 70
----
1407

skipif mysql # not compatible
query I rowsort label-1052
SELECT + 82 / + ( 26 ) + - - SUM ( ALL - 19 ) * - 28 + 10 * 78 + 22 + + + 70
----
1407

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1053
SELECT ALL + - CAST( NULL AS DECIMAL ) + + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL + - CAST ( NULL AS REAL ) + + + 19 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1054
SELECT - CASE + 23 WHEN - 8 / - CAST( NULL AS SIGNED ) THEN - 74 * + 82 * + - 86 * - ( + 9 ) + - 4 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT - CASE + 23 WHEN - 8 / - CAST ( NULL AS INTEGER ) THEN - 74 * + 82 * + - 86 * - ( + 9 ) + - 4 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + CASE - 44 WHEN + 53 THEN NULL ELSE - 38 END + + 86
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT + 63 + + COUNT( * ) + + 58 + 80 + - 20 * - + 39 + + 85 * + + 60 AS col1
----
6082

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + 63 + + COUNT ( * ) + + 58 + 80 + - 20 * - + 39 + + 85 * + + 60 AS col1
----
6082

query II rowsort
SELECT ALL - 93, - 63 AS col1
----
-93
-63

query I rowsort
SELECT - 78 * + 29 AS col2
----
-2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1059
SELECT DISTINCT - + CASE + 5 WHEN - COUNT( * ) * + + CASE - COUNT( * ) WHEN + 28 * + 52 + 84 THEN + CAST( - 53 AS SIGNED ) WHEN - + 0 THEN NULL END THEN 89 END + 35 + - 58 + - - CAST( NULL AS DECIMAL ) - 89 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - + CASE + 5 WHEN - COUNT ( * ) * + + CASE - COUNT ( * ) WHEN + 28 * + 52 + 84 THEN + CAST ( - 53 AS INTEGER ) WHEN - + 0 THEN NULL END THEN 89 END + 35 + - 58 + - - CAST ( NULL AS REAL ) - 89 * - 90
----
NULL

query I rowsort
SELECT DISTINCT - - 73 + - 93
----
-20

query II rowsort
SELECT + 21 col1, 95 col2
----
21
95

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

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

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

query I rowsort
SELECT ALL + 62 - + + 35 + - 20
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1065
SELECT COUNT( * ) * + - 14 AS col2, + 90 col1
----
-14
90

skipif mysql # not compatible
query II rowsort label-1065
SELECT COUNT ( * ) * + - 14 AS col2, + 90 col1
----
-14
90

query II rowsort
SELECT + 79 AS col2, 28
----
79
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT - ( + 80 ) * COUNT( * ) + - + 35 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-1067
SELECT - ( + 80 ) * COUNT ( * ) + - + 35 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) + + + 37 * - - 11
----
407

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) + + + 37 * - - 11
----
407

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT - NULLIF ( + ( - - CASE - COUNT( * ) WHEN - ( - 79 ) * - + 65 * - - CASE + ( 56 ) WHEN + 70 + - 27 THEN 36 * - 57 WHEN - 27 THEN NULL ELSE NULL END THEN - 60 * 58 END ), ( - 51 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - NULLIF ( + ( - - CASE - COUNT ( * ) WHEN - ( - 79 ) * - + 65 * - - CASE + ( 56 ) WHEN + 70 + - 27 THEN 36 * - 57 WHEN - 27 THEN NULL ELSE NULL END THEN - 60 * 58 END ), ( - 51 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT 87 + - 40 + + 63 + - ( + 84 ) + 95 + - 10 + - 70 * - - CAST( + COUNT( * ) AS SIGNED ) col1
----
41

skipif mysql # not compatible
query I rowsort label-1072
SELECT 87 + - 40 + + 63 + - ( + 84 ) + 95 + - 10 + - 70 * - - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
41

query I rowsort
SELECT 90 * - 0 * 39 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT ALL MIN( ALL - + 22 ) * 10 * + - NULLIF ( - 77, CAST( - 81 AS SIGNED ) * + - 41 ) * - - 78
----
-1321320

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL MIN ( ALL - + 22 ) * 10 * + - NULLIF ( - 77, CAST ( - 81 AS INTEGER ) * + - 41 ) * - - 78
----
-1321320

query I rowsort
SELECT 96 + + + 29
----
125

query II rowsort
SELECT 70 AS col2, - 74
----
70
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) ) * + + COUNT( * ) / - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * + + COUNT ( * ) / - + 3
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL + - 47 * 39 + - MAX( - 12 ) + - + 63 col1
----
-1884

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL + - 47 * 39 + - MAX ( - 12 ) + - + 63 col1
----
-1884

onlyif mysql # aggregate syntax: 
query II rowsort label-1081
SELECT COUNT( * ) AS col2, MAX( 77 )
----
1
77

skipif mysql # not compatible
query II rowsort label-1081
SELECT COUNT ( * ) AS col2, MAX ( 77 )
----
1
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT ALL 54 + CAST( NULL AS SIGNED ) + 22 - + - COUNT( + 73 ) * - - 53 * - MIN( DISTINCT 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL 54 + CAST ( NULL AS INTEGER ) + 22 - + - COUNT ( + 73 ) * - - 53 * - MIN ( DISTINCT 75 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT 80 - 60 + - + 57 + + MIN( DISTINCT + 17 ) * - - CASE + + 68 WHEN - 96 + CAST( NULL AS SIGNED ) THEN + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT 80 - 60 + - + 57 + + MIN ( DISTINCT + 17 ) * - - CASE + + 68 WHEN - 96 + CAST ( NULL AS INTEGER ) THEN + - 38 END
----
NULL

query I rowsort
SELECT ALL 94 * - 45 * + 80
----
-338400

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL ( + + 53 ) + + + ( + 8 ) * + COUNT( 45 ) * + 45 * - + 50
----
-17947

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL ( + + 53 ) + + + ( + 8 ) * + COUNT ( 45 ) * + 45 * - + 50
----
-17947

query I rowsort
SELECT - 38 + + - 66
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT ALL - 30 DIV 12 * - + ( + + 4 )
----
8

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - 30 / 12 * - + ( + + 4 )
----
8

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - 19 + CAST ( NULL AS INTEGER ) + + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT COUNT( DISTINCT + ( - 63 ) ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-1089
SELECT COUNT ( DISTINCT + ( - 63 ) ) + 36
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT - + COALESCE ( + - 75, - 21 DIV - 35 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-1090
SELECT - + COALESCE ( + - 75, - 21 / - 35 ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT DISTINCT MIN( 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT MIN ( 23 ) col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT + 4 + + CAST( COUNT( * ) AS SIGNED ) * 14
----
18

skipif mysql # not compatible
query I rowsort label-1092
SELECT + 4 + + CAST ( COUNT ( * ) AS INTEGER ) * 14
----
18

query I rowsort
SELECT DISTINCT 52 + + + 78
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT 98 + - MIN( + 39 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1094
SELECT 98 + - MIN ( + 39 ) AS col0
----
59

query I rowsort
SELECT ALL - 25 + + + 73 + 9 * - 85
----
-717

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

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

query I rowsort
SELECT ALL 23 * 84 + - 73 AS col1
----
1859

query II rowsort
SELECT + ( + 18 ) col0, + 38
----
18
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT DISTINCT - CAST( - - 54 AS SIGNED ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - CAST ( - - 54 AS INTEGER ) col2
----
-54

query I rowsort
SELECT + - 79 * - 75
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + CASE - ( + - 57 ) WHEN - COUNT( * ) * 94 + + 50 + + MIN( - 74 ) THEN NULL ELSE + COUNT( ALL 68 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1101
SELECT + CASE - ( + - 57 ) WHEN - COUNT ( * ) * 94 + + 50 + + MIN ( - 74 ) THEN NULL ELSE + COUNT ( ALL 68 ) END AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT ALL + NULLIF ( - 8, + CASE 8 WHEN + + 70 * + MAX( - 67 ) + + 7 + 86 + 80 - - - 29 + - + SUM( ALL - + 15 ) THEN NULL WHEN + CAST( 25 AS SIGNED ) THEN + - 28 END ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL + NULLIF ( - 8, + CASE 8 WHEN + + 70 * + MAX ( - 67 ) + + 7 + 86 + 80 - - - 29 + - + SUM ( ALL - + 15 ) THEN NULL WHEN + CAST ( 25 AS INTEGER ) THEN + - 28 END ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1103
SELECT + ( - - COUNT( * ) ) * + 1 + - 63 + 35 * + CASE 15 WHEN - 90 THEN + 93 + + 26 / + 60 END * - CAST( NULL AS DECIMAL ) AS col0, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-1103
SELECT + ( - - COUNT ( * ) ) * + 1 + - 63 + 35 * + CASE 15 WHEN - 90 THEN + 93 + + 26 / + 60 END * - CAST ( NULL AS REAL ) AS col0, 57
----
NULL
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT NULLIF ( - CASE + + 52 WHEN - 27 * 59 THEN - CASE + 66 WHEN + ( COALESCE ( - 0, + 63 * 16 ) ) THEN + 28 END * + 29 * - - 31 + + - 6 + - - 25 - - 77 * - AVG ( + 81 * 7 ) + CAST( NULL AS SIGNED ) WHEN 83 THEN 48 ELSE - ( ( - CASE + 33 WHEN 95 THEN 15 ELSE NULL END ) ) END, 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT NULLIF ( - CASE + + 52 WHEN - 27 * 59 THEN - CASE + 66 WHEN + ( COALESCE ( - 0, + 63 * 16 ) ) THEN + 28 END * + 29 * - - 31 + + - 6 + - - 25 - - 77 * - AVG ( + 81 * 7 ) + CAST ( NULL AS INTEGER ) WHEN 83 THEN 48 ELSE - ( ( - CASE + 33 WHEN 95 THEN 15 ELSE NULL END ) ) END, 45 ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 73 ) * - - 15 AS col2
----
-1095

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1107
SELECT - 16 + - 71 + + COUNT( ALL 17 ) * - SUM( 16 ) * - CAST( NULL AS DECIMAL ) + - 45 + 69 * ( 16 ) + - 54 + - - 34 / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT - 16 + - 71 + + COUNT ( ALL 17 ) * - SUM ( 16 ) * - CAST ( NULL AS REAL ) + - 45 + 69 * ( 16 ) + - 54 + - - 34 / + 47
----
NULL

query I rowsort
SELECT ALL - ( - - 22 ) * - 90 AS col1
----
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT - 69 DIV + 49
----
-1

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 69 / + 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL + COALESCE ( - - 47, - + 54 ) * - 45 + - + 80 + - 83 * COUNT( * )
----
-2278

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + COALESCE ( - - 47, - + 54 ) * - 45 + - + 80 + - 83 * COUNT ( * )
----
-2278

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - 80 * + ( - 65 ) * COUNT( * )
----
5200

skipif mysql # not compatible
query I rowsort label-1111
SELECT - 80 * + ( - 65 ) * COUNT ( * )
----
5200

query II rowsort
SELECT - 45 * + 52, 10 AS col2
----
-2340
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1113
SELECT - COALESCE ( + ( - + 84 ), + 77 + + COALESCE ( 16, 73 ) + 5, + - CAST( + - 39 AS SIGNED ) * + 83 * + 96 * CAST( NULL AS SIGNED ) ) * + 62 + + 27 * - 20 AS col2
----
4668

skipif mysql # not compatible
query I rowsort label-1113
SELECT - COALESCE ( + ( - + 84 ), + 77 + + COALESCE ( 16, 73 ) + 5, + - CAST ( + - 39 AS INTEGER ) * + 83 * + 96 * CAST ( NULL AS INTEGER ) ) * + 62 + + 27 * - 20 AS col2
----
4668

query I rowsort
SELECT DISTINCT + 17 * - 58 + 50 AS col0
----
-936

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL + - 11 + - 98 DIV 3 + + - 51 * - 48 AS col0
----
2405

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + - 11 + - 98 / 3 + + - 51 * - 48 AS col0
----
2405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT - 3 * + 10 * - CASE - 63 WHEN CAST( + 57 AS SIGNED ) THEN NULL WHEN + COUNT( - 28 ) + 91 THEN + 51 END * - 32 * + + COUNT( * ) - + 87 + + CAST( + - 2 AS SIGNED ) * + 57 * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT - 3 * + 10 * - CASE - 63 WHEN CAST ( + 57 AS INTEGER ) THEN NULL WHEN + COUNT ( - 28 ) + 91 THEN + 51 END * - 32 * + + COUNT ( * ) - + 87 + + CAST ( + - 2 AS INTEGER ) * + 57 * + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1117
SELECT - - 70 + - CAST( NULL AS SIGNED ) AS col2, 20 + + 52 + - - COUNT( * ) * + + 45 * + COUNT( * ) col2
----
NULL
117

skipif mysql # not compatible
query II rowsort label-1117
SELECT - - 70 + - CAST ( NULL AS INTEGER ) AS col2, 20 + + 52 + - - COUNT ( * ) * + + 45 * + COUNT ( * ) col2
----
NULL
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL + ( + + 10 ) * - - 17 + + COUNT( * ) col0
----
171

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + ( + + 10 ) * - - 17 + + COUNT ( * ) col0
----
171

query I rowsort
SELECT + + 96 * - 80 AS col1
----
-7680

query I rowsort
SELECT ALL + 90 + + 64
----
154

query I rowsort
SELECT - - 84 * + 38
----
3192

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT - + MIN( 9 ) AS col2, + 88 AS col2
----
-9
88

skipif mysql # not compatible
query II rowsort label-1122
SELECT - + MIN ( 9 ) AS col2, + 88 AS col2
----
-9
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL - - 32 + 99 + COUNT( * ) * 76 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL - - 32 + 99 + COUNT ( * ) * 76 AS col2
----
207

query I rowsort
SELECT DISTINCT + - 69 + - + 88
----
-157

query II rowsort
SELECT + 71 + + 80 AS col2, + 8
----
151
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT ALL MAX( + + 5 ) AS col2, 95 + 76 AS col0
----
5
171

skipif mysql # not compatible
query II rowsort label-1126
SELECT ALL MAX ( + + 5 ) AS col2, 95 + 76 AS col0
----
5
171

query I rowsort
SELECT DISTINCT + 7 * - 44
----
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT ALL 68 - - 97 + 85 + - + 0 + 65 * - 16 + + 28 DIV 61 DIV - + 94 AS col0
----
-790

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL 68 - - 97 + 85 + - + 0 + 65 * - 16 + + 28 / 61 / - + 94 AS col0
----
-790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + - CASE - 22 WHEN - COUNT( * ) THEN + COUNT( * ) * - 51 + + 4 WHEN - COUNT( * ) THEN - 13 + + 68 END * + + 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT + - CASE - 22 WHEN - COUNT ( * ) THEN + COUNT ( * ) * - 51 + + 4 WHEN - COUNT ( * ) THEN - 13 + + 68 END * + + 18 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT - NULLIF ( + COALESCE ( + MIN( + CAST( NULL AS SIGNED ) ), - CAST( 75 AS SIGNED ) ), - NULLIF ( + 13, + 69 ) )
----
75

skipif mysql # not compatible
query I rowsort label-1131
SELECT - NULLIF ( + COALESCE ( + MIN ( + CAST ( NULL AS INTEGER ) ), - CAST ( 75 AS INTEGER ) ), - NULLIF ( + 13, + 69 ) )
----
75

query II rowsort
SELECT + ( - - 30 ) AS col0, 63
----
30
63

query II rowsort
SELECT ALL + 14 - - 87 AS col2, NULLIF ( - 26, 73 ) AS col2
----
101
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1134
SELECT - + 8 DIV 38 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-1134
SELECT - + 8 / 38 AS col2, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + 87 * MAX( ALL - 34 ) AS col1
----
-2958

skipif mysql # not compatible
query I rowsort label-1135
SELECT + 87 * MAX ( ALL - 34 ) AS col1
----
-2958

query I rowsort
SELECT + 29 + - 20 AS col0
----
9

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

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

query II rowsort
SELECT + ( + + 40 ) * + + 20 AS col1, ( 42 )
----
800
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL COALESCE ( - 52, MAX( DISTINCT - 9 ) ) * - 59
----
3068

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL COALESCE ( - 52, MAX ( DISTINCT - 9 ) ) * - 59
----
3068

query II rowsort
SELECT ALL + 65 AS col2, 4
----
65
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + 75 - + - COUNT( - 71 )
----
76

skipif mysql # not compatible
query I rowsort label-1141
SELECT + 75 - + - COUNT ( - 71 )
----
76

query I rowsort
SELECT + 93 * + + 26 AS col1
----
2418

query II rowsort
SELECT ALL + 55 AS col0, - ( - 92 ) - + 50 AS col1
----
55
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT + ( MAX( DISTINCT 43 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1144
SELECT + ( MAX ( DISTINCT 43 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL + CASE - - 25 WHEN 57 THEN NULL WHEN MAX( ALL + 53 ) + - 35 THEN 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + CASE - - 25 WHEN 57 THEN NULL WHEN MAX ( ALL + 53 ) + - 35 THEN 61 END
----
NULL

query I rowsort
SELECT + 57 * - + 56 AS col1
----
-3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1147
SELECT - MIN( + CAST( - 35 AS SIGNED ) ) * + + ( + 48 ) AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-1147
SELECT - MIN ( + CAST ( - 35 AS INTEGER ) ) * + + ( + 48 ) AS col1
----
1680

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

skipif mysql # not compatible
query I rowsort label-1148
SELECT - 12 / MAX ( + - 98 ) / + COUNT ( * ) - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1149
SELECT DISTINCT + 73 * - 22 + CASE - + COALESCE ( - 86, - CAST( NULL AS DECIMAL ) * - MIN( 93 ), + CAST( + 51 AS SIGNED ) - + 27 * + 15 * - - 46 ) WHEN - COUNT( * ) + - 77 THEN NULL WHEN - 72 THEN - COUNT( * ) / + 99 * 56 + 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT + 73 * - 22 + CASE - + COALESCE ( - 86, - CAST ( NULL AS REAL ) * - MIN ( 93 ), + CAST ( + 51 AS INTEGER ) - + 27 * + 15 * - - 46 ) WHEN - COUNT ( * ) + - 77 THEN NULL WHEN - 72 THEN - COUNT ( * ) / + 99 * 56 + 48 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 88 * + 48 AS col0
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL + - 93 * - + 14 * - COUNT( * ) + - + 63 AS col0
----
-1365

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL + - 93 * - + 14 * - COUNT ( * ) + - + 63 AS col0
----
-1365

query I rowsort
SELECT + 72 + - 48 AS col2
----
24

query II rowsort
SELECT + 35 AS col2, 3 * - + 7 AS col2
----
35
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + CASE - 44 WHEN + + 81 + + 90 THEN NULL WHEN + 31 * 51 + + MIN( ALL + 12 ) THEN COUNT( * ) * + 64 - + 19 ELSE - + 80 END * - + 52 + 48 * + 70 - + 61 AS col1
----
7459

skipif mysql # not compatible
query I rowsort label-1154
SELECT + CASE - 44 WHEN + + 81 + + 90 THEN NULL WHEN + 31 * 51 + + MIN ( ALL + 12 ) THEN COUNT ( * ) * + 64 - + 19 ELSE - + 80 END * - + 52 + 48 * + 70 - + 61 AS col1
----
7459

query I rowsort
SELECT - 0 + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - CASE + COUNT( * ) WHEN - 74 + - 67 THEN - - 85 WHEN + 35 THEN NULL ELSE NULL END - + - 54 + - 45 + + - 45 * + 22 * - + 14 * + 79 * + 7 * - + COUNT( DISTINCT - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - CASE + COUNT ( * ) WHEN - 74 + - 67 THEN - - 85 WHEN + 35 THEN NULL ELSE NULL END - + - 54 + - 45 + + - 45 * + 22 * - + 14 * + 79 * + 7 * - + COUNT ( DISTINCT - 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT - + 73 * + + COUNT( * ) * + 58 AS col2
----
-4234

skipif mysql # not compatible
query I rowsort label-1157
SELECT - + 73 * + + COUNT ( * ) * + 58 AS col2
----
-4234

query II rowsort
SELECT - + 23 + - 59 + + + 3 AS col0, - 15
----
-79
-15

query I rowsort
SELECT + 49 + 99
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1160
SELECT - MAX( + 70 ) + 69 + + NULLIF ( + CAST( + 95 AS SIGNED ), CAST( + 87 AS SIGNED ) ), 90 AS col1
----
94
90

skipif mysql # not compatible
query II rowsort label-1160
SELECT - MAX ( + 70 ) + 69 + + NULLIF ( + CAST ( + 95 AS INTEGER ), CAST ( + 87 AS INTEGER ) ), 90 AS col1
----
94
90

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT ( - CAST( 65 AS SIGNED ) ) + 40 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1162
SELECT ( - CAST ( 65 AS INTEGER ) ) + 40 AS col2
----
-25

query I rowsort
SELECT 38 + - 38 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT - CAST( + 62 AS SIGNED ) - - 14 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1164
SELECT - CAST ( + 62 AS INTEGER ) - - 14 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1165
SELECT ALL - 51 * + ( + CAST( NULL AS DECIMAL ) ), NULLIF ( + 79, + 96 * - + 63 + + COUNT( * ) - 55 + + 18 * + COUNT( * ) ) AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL - 51 * + ( + CAST ( NULL AS REAL ) ), NULLIF ( + 79, + 96 * - + 63 + + COUNT ( * ) - 55 + + 18 * + COUNT ( * ) ) AS col1
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - 16 + COUNT( * ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 16 + COUNT ( * ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT DISTINCT 0 * - 75 * 94 * - 36 * + - 98 * - + 28 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT 0 * - 75 * 94 * - 36 * + - 98 * - + 28 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 18 * 16
----
288

onlyif mysql # DIV for integer division: 
query II rowsort label-1169
SELECT 91 DIV 23, - 20 DIV - 29 AS col2
----
3
0

skipif mysql # not compatible
query II rowsort label-1169
SELECT 91 / 23, - 20 / - 29 AS col2
----
3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT COUNT( * ) + + 40, 51 + - 1 * 75 AS col1
----
41
-24

skipif mysql # not compatible
query II rowsort label-1170
SELECT COUNT ( * ) + + 40, 51 + - 1 * 75 AS col1
----
41
-24

query I rowsort
SELECT DISTINCT - 40 * + + 92 * + 6
----
-22080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1172
SELECT 80 DIV + 86, + NULLIF ( - - COUNT( * ), - - 68 * + - 74 ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-1172
SELECT 80 / + 86, + NULLIF ( - - COUNT ( * ), - - 68 * + - 74 ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1173
SELECT COUNT( 10 ) + SUM( - CAST( NULL AS SIGNED ) ) - - 5 + - - 11 * - - 39 * + - AVG ( + ( 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT COUNT ( 10 ) + SUM ( - CAST ( NULL AS INTEGER ) ) - - 5 + - - 11 * - - 39 * + - AVG ( + ( 89 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT 0 * COUNT( + 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1174
SELECT 0 * COUNT ( + 35 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT ALL COUNT( + + 22 ) DIV + COALESCE ( + 42, - + 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL COUNT ( + + 22 ) / + COALESCE ( + 42, - + 62 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT 59 * + 47 + - - ( - COUNT( * ) ) - COUNT( * ) DIV 85 col0
----
2772

skipif mysql # not compatible
query I rowsort label-1176
SELECT 59 * + 47 + - - ( - COUNT ( * ) ) - COUNT ( * ) / 85 col0
----
2772

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT DISTINCT SUM( - CAST( + - 38 AS SIGNED ) ) + + 10 + - - 1 + - COALESCE ( - - SUM( ALL - + 23 ), 78 ) * + + 42 AS col1
----
1015

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT SUM ( - CAST ( + - 38 AS INTEGER ) ) + + 10 + - - 1 + - COALESCE ( - - SUM ( ALL - + 23 ), 78 ) * + + 42 AS col1
----
1015

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1180
SELECT ALL COALESCE ( + + COUNT( * ), + - 64 ) + - - 50 + - + 42 + + 52 + - - 18 + - - 85 + + + 71 + - COUNT( * ) DIV + + 98 * + - 44 AS col0
----
235

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL COALESCE ( + + COUNT ( * ), + - 64 ) + - - 50 + - + 42 + + 52 + - - 18 + - - 85 + + + 71 + - COUNT ( * ) / + + 98 * + - 44 AS col0
----
235

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT - 8 DIV 7 + - + ( + 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-1181
SELECT - 8 / 7 + - + ( + 0 )
----
-1

query II rowsort
SELECT ALL 98 * - 91 AS col0, + 20 * + + 80 * + 33 * + + 4 + 39 + 11 * - - 69
----
-8918
211998

query II rowsort
SELECT 41 + 58 AS col1, 45 + + 60
----
99
105

query I rowsort
SELECT ALL 9 + + 50
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT ALL 78 + MAX( ALL 59 ) DIV + ( 7 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL 78 + MAX ( ALL 59 ) / + ( 7 ) AS col0
----
86

query II rowsort
SELECT + 57 * - + 1 col1, 53 col2
----
-57
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT + 36 * 53 + + 24 + - 40 * - - 81 * - 42 + - ( 54 ) + + - SUM( + 5 ) + - 68 + 54 + - + 88 col0
----
137851

skipif mysql # not compatible
query I rowsort label-1187
SELECT + 36 * 53 + + 24 + - 40 * - - 81 * - 42 + - ( 54 ) + + - SUM ( + 5 ) + - 68 + 54 + - + 88 col0
----
137851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT 17 * - CASE - MIN( DISTINCT - 64 ) WHEN + 10 + COUNT( * ) THEN NULL WHEN - 95 THEN NULL ELSE + ( - 28 ) * - 38 - 66 - - - COALESCE ( 14, - - CAST( - + 45 AS SIGNED ) ) END AS col0
----
-16728

skipif mysql # not compatible
query I rowsort label-1188
SELECT 17 * - CASE - MIN ( DISTINCT - 64 ) WHEN + 10 + COUNT ( * ) THEN NULL WHEN - 95 THEN NULL ELSE + ( - 28 ) * - 38 - 66 - - - COALESCE ( 14, - - CAST ( - + 45 AS INTEGER ) ) END AS col0
----
-16728

query I rowsort
SELECT ALL - 7 - - 76 + 31 AS col0
----
100

query I rowsort
SELECT 35 * - 80 * + 90 * 69 + + 59
----
-17387941

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT + COALESCE ( 15, - 30 - 39 + - 45 + SUM( ALL - - ( - 8 ) ) + - 38 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1191
SELECT + COALESCE ( 15, - 30 - 39 + - 45 + SUM ( ALL - - ( - 8 ) ) + - 38 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT - + COUNT( * ) - 64
----
-65

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT - + COUNT ( * ) - 64
----
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL - SUM( + 76 ) * + 84 + + - 0 + - + 83 AS col2
----
-6467

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - SUM ( + 76 ) * + 84 + + - 0 + - + 83 AS col2
----
-6467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT ALL 90 DIV COUNT( * ) * - 79
----
-7110

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL 90 / COUNT ( * ) * - 79
----
-7110

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT NULLIF ( - COUNT( * ), + + 63 ) * + + ( + 51 ) * - 66
----
3366

skipif mysql # not compatible
query I rowsort label-1198
SELECT NULLIF ( - COUNT ( * ), + + 63 ) * + + ( + 51 ) * - 66
----
3366

query I rowsort
SELECT + NULLIF ( + 35, 15 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL + + 60 * ( + + SUM( 43 ) ) + - + 84
----
2496

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + + 60 * ( + + SUM ( 43 ) ) + - + 84
----
2496

query I rowsort
SELECT ALL - - 97 * 69 - + 7 AS col2
----
6686

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT + COUNT( * ) * - MAX( - + 80 ) * - 22 * + 57 * + + COALESCE ( CASE + 10 WHEN 30 * - 5 * - 20 * - MAX( DISTINCT - + 90 ) / ( - COUNT( * ) ) + - - 52 - 9 THEN 4 ELSE NULL END, + + 80 + COUNT( * ) )
----
-8125920

skipif mysql # not compatible
query I rowsort label-1202
SELECT + COUNT ( * ) * - MAX ( - + 80 ) * - 22 * + 57 * + + COALESCE ( CASE + 10 WHEN 30 * - 5 * - 20 * - MAX ( DISTINCT - + 90 ) / ( - COUNT ( * ) ) + - - 52 - 9 THEN 4 ELSE NULL END, + + 80 + COUNT ( * ) )
----
-8125920

query I rowsort
SELECT - ( - - 3 )
----
-3

query I rowsort
SELECT ALL - 72 * - + 32 AS col0
----
2304

query I rowsort
SELECT 19 * + 1 * - 97 AS col2
----
-1843

query I rowsort
SELECT 90 - - 61
----
151

query I rowsort
SELECT ALL - COALESCE ( 35, + - 58 ) + + 22 AS col2
----
-13

query I rowsort
SELECT 0 + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL SUM( DISTINCT - - 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL SUM ( DISTINCT - - 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT - 9 + 43 AS col0
----
34

query I rowsort
SELECT 9 + - 32
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT - 1 * + + 49 + 1 - + - ( + 60 ) * - 69 + - CASE - COUNT( * ) WHEN - - COUNT( * ) * + 61 - - 24 + - 45 THEN - 63 END + + NULLIF ( - 13, - 41 ) + + 77 * + 1 * + + SUM( ALL - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT - 1 * + + 49 + 1 - + - ( + 60 ) * - 69 + - CASE - COUNT ( * ) WHEN - - COUNT ( * ) * + 61 - - 24 + - 45 THEN - 63 END + + NULLIF ( - 13, - 41 ) + + 77 * + 1 * + + SUM ( ALL - + 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1213
SELECT ALL - COUNT( * ) * + - 76 DIV + 56 + + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - COUNT ( * ) * + - 76 / + 56 + + + 96 AS col0
----
97

query II rowsort
SELECT DISTINCT - 93 AS col1, ( + - 27 ) * 7
----
-93
-189

query I rowsort
SELECT 24 * - 62 AS col1
----
-1488

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT MIN( - 34 ) * - 65 AS col2, - 50 * 60 AS col0
----
2210
-3000

skipif mysql # not compatible
query II rowsort label-1216
SELECT MIN ( - 34 ) * - 65 AS col2, - 50 * 60 AS col0
----
2210
-3000

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL 0 * COUNT( * ) - + 28 + + 30 * 85 + 73 + + + 55 - + 97 * + 85 + + - CAST( NULL AS SIGNED ) - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 0 * COUNT ( * ) - + 28 + + 30 * 85 + 73 + + + 55 - + 97 * + 85 + + - CAST ( NULL AS INTEGER ) - 59 col2
----
NULL

query I rowsort
SELECT - 77 - 14 - + 43 + 68
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT - CASE + 37 WHEN 49 THEN + - NULLIF ( + COUNT( * ), 80 * - 37 ) * + 95 + - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - CASE + 37 WHEN 49 THEN + - NULLIF ( + COUNT ( * ), 80 * - 37 ) * + 95 + - 12 END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 38, 94 + - + 50 )
----
38

query I rowsort
SELECT ALL CASE + 18 WHEN - 54 THEN NULL WHEN + 76 THEN + 48 + - 69 ELSE 61 END * + - 46 col1
----
-2806

query I rowsort
SELECT - 48 * 53 + - - 34 AS col2
----
-2510

query I rowsort
SELECT + - 96 + - 47 AS col1
----
-143

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1226
SELECT DISTINCT + 84 * ( - 52 ) + + + COALESCE ( 72, + - 23 * + 1 + 21 + 17 - - ( - 48 ) + - 37 * + - 17 * + - ( + COUNT( * ) ) ) col2, 62 AS col2
----
-4296
62

skipif mysql # not compatible
query II rowsort label-1226
SELECT DISTINCT + 84 * ( - 52 ) + + + COALESCE ( 72, + - 23 * + 1 + 21 + 17 - - ( - 48 ) + - 37 * + - 17 * + - ( + COUNT ( * ) ) ) col2, 62 AS col2
----
-4296
62

query I rowsort
SELECT + + NULLIF ( - - 52, + 85 ) + 81
----
133

query I rowsort
SELECT + - 15 - - 10 AS col0
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1230
SELECT DISTINCT CAST( - + ( + - NULLIF ( + - 58, - 36 ) ) AS SIGNED ) * - 89 DIV - - COUNT( * )
----
5162

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT CAST ( - + ( + - NULLIF ( + - 58, - 36 ) ) AS INTEGER ) * - 89 / - - COUNT ( * )
----
5162

query I rowsort
SELECT + 7 + 68 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT + 76 + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1232
SELECT + 76 + COUNT ( * ) AS col2
----
77

query I rowsort
SELECT ALL 82 + - 58 + - 63 * 25 AS col0
----
-1551

query II rowsort
SELECT - 18, 97 AS col1
----
-18
97

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

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

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

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

query I rowsort
SELECT ALL 35 + 7 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + 40 + + MAX( + - 55 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1238
SELECT + 40 + + MAX ( + - 55 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT - 46 + - + COALESCE ( + + CASE 64 WHEN - + 5 * + COUNT( - ( + - CAST( + - 8 AS SIGNED ) ) ) / + 20 THEN + COUNT( * ) END, - 91 * 77 ) * + + 62
----
434388

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 46 + - + COALESCE ( + + CASE 64 WHEN - + 5 * + COUNT ( - ( + - CAST ( + - 8 AS INTEGER ) ) ) / + 20 THEN + COUNT ( * ) END, - 91 * 77 ) * + + 62
----
434388

query I rowsort
SELECT - NULLIF ( 8, ( + + 80 ) )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT + 17 DIV + 3
----
5

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 17 / + 3
----
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL COALESCE ( MIN( ALL - 51 ), + ( 99 ) * - 74 ) * - ( 83 ) col2
----
4233

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL COALESCE ( MIN ( ALL - 51 ), + ( 99 ) * - 74 ) * - ( 83 ) col2
----
4233

query I rowsort
SELECT DISTINCT 34 + + 3
----
37

query I rowsort
SELECT - 63 + + 6
----
-57

query I rowsort
SELECT ALL - COALESCE ( + 31, + + 37 ) + - - 62 + + - 14 + - 55
----
-38

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

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

query I rowsort
SELECT ( + COALESCE ( - - 11, - 23 * - 20 + 89 ) ) AS col0
----
11

query I rowsort
SELECT - 68 + - + 85
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT - 27 * - COUNT( 93 )
----
27

skipif mysql # not compatible
query I rowsort label-1251
SELECT - 27 * - COUNT ( 93 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1252
SELECT - COUNT( * ) * + ( CASE - - 76 WHEN + 5 THEN NULL ELSE - 99 END ) AS col2, 71
----
99
71

skipif mysql # not compatible
query II rowsort label-1252
SELECT - COUNT ( * ) * + ( CASE - - 76 WHEN + 5 THEN NULL ELSE - 99 END ) AS col2, 71
----
99
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1253
SELECT - 12 * + 80 * 25 + - COALESCE ( - - 51, + 82 ) + - 90 + - - 93 + 53 / - COUNT( * ) * + + CAST( NULL AS SIGNED ) / - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 12 * + 80 * 25 + - COALESCE ( - - 51, + 82 ) + - 90 + - - 93 + 53 / - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / - 84 AS col1
----
NULL

query II rowsort
SELECT ALL + 97 col0, 72
----
97
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT + 92, 77 + - + MIN( DISTINCT - + 92 ) + 58 * 33 AS col2
----
92
2083

skipif mysql # not compatible
query II rowsort label-1255
SELECT + 92, 77 + - + MIN ( DISTINCT - + 92 ) + 58 * 33 AS col2
----
92
2083

query II rowsort
SELECT ALL + 85, - 56 * + 32 * + 67 col0
----
85
-120064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1257
SELECT ALL 10 * ( 23 ) - - - 7 AS col1, - CAST( ( - 7 ) AS SIGNED )
----
223
7

skipif mysql # not compatible
query II rowsort label-1257
SELECT ALL 10 * ( 23 ) - - - 7 AS col1, - CAST ( ( - 7 ) AS INTEGER )
----
223
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT - + 85 + - 24 - - 95 * + + COUNT( DISTINCT + + 4 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-1258
SELECT - + 85 + - 24 - - 95 * + + COUNT ( DISTINCT + + 4 ) col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT DISTINCT + + MAX( - - ( - - 66 ) ) * + 60 + + - 11
----
3949

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + + MAX ( - - ( - - 66 ) ) * + 60 + + - 11
----
3949

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT ALL + + 19, COUNT( * ) col0
----
19
1

skipif mysql # not compatible
query II rowsort label-1260
SELECT ALL + + 19, COUNT ( * ) col0
----
19
1

query I rowsort
SELECT + 2 * - - 67 + + + 70
----
204

query I rowsort
SELECT - - 66 * + 25
----
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT + 89 * + 96 - + 91 * + 5 + + + 21 * - MIN( DISTINCT - + 65 ) + + 8 + - 81 AS col1, + 17 + COUNT( * )
----
9381
18

skipif mysql # not compatible
query II rowsort label-1263
SELECT + 89 * + 96 - + 91 * + 5 + + + 21 * - MIN ( DISTINCT - + 65 ) + + 8 + - 81 AS col1, + 17 + COUNT ( * )
----
9381
18

query I rowsort
SELECT - 68 * - 26 col2
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT + 38 + + 83 - - + COUNT( * ) col1
----
122

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 38 + + 83 - - + COUNT ( * ) col1
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT ALL 8 DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL 8 / + 63 AS col2
----
0

query I rowsort
SELECT + + 34 * 60 + + + 90 * 8 * 62 AS col1
----
46680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1268
SELECT - - 46 AS col0, + 36 * COALESCE ( + COUNT( * ), - 68 * - 31 + - MIN( 77 ) * + CAST( - SUM( + + 11 ) AS SIGNED ) ) AS col1
----
46
36

skipif mysql # not compatible
query II rowsort label-1268
SELECT - - 46 AS col0, + 36 * COALESCE ( + COUNT ( * ), - 68 * - 31 + - MIN ( 77 ) * + CAST ( - SUM ( + + 11 ) AS INTEGER ) ) AS col1
----
46
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT - ( MIN( DISTINCT + + 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1269
SELECT - ( MIN ( DISTINCT + + 4 ) )
----
-4

query I rowsort
SELECT ( 23 ) * + 94 - - 0 AS col2
----
2162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT - CAST( - ( - 67 ) AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1271
SELECT - CAST ( - ( - 67 ) AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT ALL NULLIF ( - 11, - 40 ) + - - 33 * 88 AS col2
----
2893

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + 41 * - + 89 * - CASE - COUNT( * ) WHEN - - 63 / - 93 + - 89 THEN NULL WHEN ( 67 ) + + - 96 THEN + + COUNT( ALL - 50 ) * + 69 * + - 11 / + 94 + 36 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 41 * - + 89 * - CASE - COUNT ( * ) WHEN - - 63 / - 93 + - 89 THEN NULL WHEN ( 67 ) + + - 96 THEN + + COUNT ( ALL - 50 ) * + 69 * + - 11 / + 94 + 36 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1274
SELECT SUM( + CAST( + + 81 AS SIGNED ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1274
SELECT SUM ( + CAST ( + + 81 AS INTEGER ) ) AS col0
----
81

query I rowsort
SELECT ALL 29 + + 51 AS col2
----
80

query I rowsort
SELECT ALL CASE - 46 WHEN + - 70 * 88 THEN NULL WHEN - + 31 THEN NULL WHEN + 68 * - 40 THEN NULL WHEN + ( + 17 ) THEN + + 88 ELSE + + ( 87 ) + - 32 END + + 90 + - + 5
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + 11 * 26 AS col0, COUNT( * ) + - 51 AS col1
----
286
-50

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 11 * 26 AS col0, COUNT ( * ) + - 51 AS col1
----
286
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1278
SELECT ALL CAST( NULL AS DECIMAL ) / - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL CAST ( NULL AS REAL ) / - 5
----
NULL

query I rowsort
SELECT + 75 * 19 * - 39
----
-55575

query I rowsort
SELECT ALL 21 * 59 * 79 * + 9 * - ( + 74 ) col2
----
-65188746

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + 27 + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 27 + - COUNT ( * )
----
26

query II rowsort
SELECT + 45 * - 40 AS col1, + 67 col2
----
-1800
67

query I rowsort
SELECT - 50 + + 62 * + - 86 + - - 77 + - - 2 col1
----
-5303

query I rowsort
SELECT ALL + 75 * + ( 63 )
----
4725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1285
SELECT DISTINCT ( + 19 ), CAST( - 39 AS SIGNED ) - - 26 + + 95 + - 82 * 70 + + 37 + + + 89 col2
----
19
-5532

skipif mysql # not compatible
query II rowsort label-1285
SELECT DISTINCT ( + 19 ), CAST ( - 39 AS INTEGER ) - - 26 + + 95 + - 82 * 70 + + 37 + + + 89 col2
----
19
-5532

query I rowsort
SELECT ALL 85 * 99
----
8415

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

query I rowsort
SELECT DISTINCT - + 8 AS col2
----
-8

query I rowsort
SELECT - 0 * + 40 * + 49 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT - 66 DIV + 75 + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1290
SELECT - 66 / + 75 + 33 AS col0
----
33

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

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

query I rowsort
SELECT ALL - - 78 + - 92 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT + + 15 + + COUNT( * ) + + COUNT( 36 ) - - ( - COUNT( * ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + + 15 + + COUNT ( * ) + + COUNT ( 36 ) - - ( - COUNT ( * ) ) col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1294
SELECT COUNT( ALL - - 55 ), COALESCE ( - 34, - 76 ) + + CASE + NULLIF ( - - 74, 36 ) WHEN - + 72 THEN + - 64 WHEN - 66 * 22 THEN NULL ELSE NULL END + 91 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1294
SELECT COUNT ( ALL - - 55 ), COALESCE ( - 34, - 76 ) + + CASE + NULLIF ( - - 74, 36 ) WHEN - + 72 THEN + - 64 WHEN - 66 * 22 THEN NULL ELSE NULL END + 91 AS col0
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-1295
SELECT 61 + + + 90 * + - COUNT ( * ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT 88 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT 88 / - 96 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1297
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) * - 58 AS col0, 68 AS col2
----
58
68

skipif mysql # not compatible
query II rowsort label-1297
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) * - 58 AS col0, 68 AS col2
----
58
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1298
SELECT DISTINCT 38 AS col1, - COUNT( * ) AS col2
----
38
-1

skipif mysql # not compatible
query II rowsort label-1298
SELECT DISTINCT 38 AS col1, - COUNT ( * ) AS col2
----
38
-1

query I rowsort
SELECT ( + - ( - + 93 ) ) * 2
----
186

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1301
SELECT DISTINCT 48 AS col2, 75 / + COUNT( * ) / + AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1301
SELECT DISTINCT 48 AS col2, 75 / + COUNT ( * ) / + AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
48
NULL

query I rowsort
SELECT 50 * 54 AS col2
----
2700

query II rowsort
SELECT 68 col1, 36
----
68
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL 68 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 68 / - 62 AS col1
----
-1

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

query I rowsort
SELECT ALL 40 + 85 AS col2
----
125

query I rowsort
SELECT ALL 45 * 78 + + 6 + - - 0 * + ( + + 67 ) col0
----
3516

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT 25 * 90 * - - 8 * + COUNT( * ) - - NULLIF ( 70, - - 88 ) AS col0
----
18070

skipif mysql # not compatible
query I rowsort label-1308
SELECT 25 * 90 * - - 8 * + COUNT ( * ) - - NULLIF ( 70, - - 88 ) AS col0
----
18070

query II rowsort
SELECT - 39 AS col1, 95 + - 62 AS col0
----
-39
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1310
SELECT ALL - NULLIF ( + 93, - 7 - + + COALESCE ( 86, + 96 + 74 + - 71 + - 56 ) + - + SUM( ALL 83 ) * + + ( - 33 ) / + 65 ) * - - CASE ( + 7 ) WHEN + 88 * - CASE 40 WHEN - CASE - 48 WHEN - CAST( ( 99 ) AS DECIMAL ) THEN NULL WHEN ( + COUNT( * ) ) THEN - 63 - + ( - 31 + - 17 ) ELSE NULL END * CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN NULL WHEN CASE + 8 WHEN + 95 * - ( COUNT( * ) / + CAST( NULL AS SIGNED ) ) THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) + - 32 END THEN 84 ELSE - ( SUM( ALL + 21 ) ) + 39 END + 5 THEN NULL WHEN - 40 THEN NULL ELSE + COALESCE ( + 53, + ( 91 ) - + 5 ) END
----
-4929

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - NULLIF ( + 93, - 7 - + + COALESCE ( 86, + 96 + 74 + - 71 + - 56 ) + - + SUM ( ALL 83 ) * + + ( - 33 ) / + 65 ) * - - CASE ( + 7 ) WHEN + 88 * - CASE 40 WHEN - CASE - 48 WHEN - CAST ( ( 99 ) AS REAL ) THEN NULL WHEN ( + COUNT ( * ) ) THEN - 63 - + ( - 31 + - 17 ) ELSE NULL END * CAST ( NULL AS REAL ) + - COUNT ( * ) THEN NULL WHEN CASE + 8 WHEN + 95 * - ( COUNT ( * ) / + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) + - 32 END THEN 84 ELSE - ( SUM ( ALL + 21 ) ) + 39 END + 5 THEN NULL WHEN - 40 THEN NULL ELSE + COALESCE ( + 53, + ( 91 ) - + 5 ) END
----
-4929

query I rowsort
SELECT 27 * - 77 AS col1
----
-2079

query I rowsort
SELECT ALL - 28 + 12
----
-16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL - + NULLIF ( - + 98, 50 * - COUNT( * ) ) + - 90 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - + NULLIF ( - + 98, 50 * - COUNT ( * ) ) + - 90 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1315
SELECT DISTINCT 29 * NULLIF ( + 54, CAST( NULL AS SIGNED ) * - 94 - - 22 ), NULLIF ( MAX( DISTINCT - + ( 21 ) ), + 99 ) + + CAST( NULL AS SIGNED ) AS col1
----
1566
NULL

skipif mysql # not compatible
query II rowsort label-1315
SELECT DISTINCT 29 * NULLIF ( + 54, CAST ( NULL AS INTEGER ) * - 94 - - 22 ), NULLIF ( MAX ( DISTINCT - + ( 21 ) ), + 99 ) + + CAST ( NULL AS INTEGER ) AS col1
----
1566
NULL

query I rowsort
SELECT - 73 + + 48
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + - CASE + + 4 WHEN - 72 / - + 90 THEN + 87 ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT + - CASE + + 4 WHEN - 72 / - + 90 THEN + 87 ELSE + COUNT ( * ) END
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT 18 * - ( COUNT( * ) ) + - - 71 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1319
SELECT 18 * - ( COUNT ( * ) ) + - - 71 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL CASE - 14 WHEN COALESCE ( - 0, + COUNT( * ) + - 39 * COUNT( * ) * - 76 - - ( - - 76 ), + 85 / - + 48 ) THEN NULL WHEN 27 THEN - 82 * - 96 + - 19 * + COUNT( * ) * + SUM( - - NULLIF ( + 78, - 96 ) ) - + + MIN( - 38 ) END + + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL CASE - 14 WHEN COALESCE ( - 0, + COUNT ( * ) + - 39 * COUNT ( * ) * - 76 - - ( - - 76 ), + 85 / - + 48 ) THEN NULL WHEN 27 THEN - 82 * - 96 + - 19 * + COUNT ( * ) * + SUM ( - - NULLIF ( + 78, - 96 ) ) - + + MIN ( - 38 ) END + + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT DISTINCT + - MAX( 58 ) + - - 64, 63 AS col0
----
6
63

skipif mysql # not compatible
query II rowsort label-1321
SELECT DISTINCT + - MAX ( 58 ) + - - 64, 63 AS col0
----
6
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT ALL - COUNT( 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - COUNT ( 76 )
----
-1

query II rowsort
SELECT ALL 23 - + - 52 AS col1, + 73
----
75
73

query II rowsort
SELECT 16 * - 70, 99 AS col1
----
-1120
99

query I rowsort
SELECT DISTINCT + 92 - 12 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT 10 * - + CAST( + - 49 AS SIGNED ) - - 3 AS col2
----
493

skipif mysql # not compatible
query I rowsort label-1326
SELECT 10 * - + CAST ( + - 49 AS INTEGER ) - - 3 AS col2
----
493

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT 60 DIV + 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1327
SELECT 60 / + 42 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT ALL - 20 DIV - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 20 / - 25 AS col1
----
0

query I rowsort
SELECT 44 * + ( + 90 ) AS col2
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - MIN( - ( - ( - 47 ) ) ) - - 56
----
103

skipif mysql # not compatible
query I rowsort label-1330
SELECT - MIN ( - ( - ( - 47 ) ) ) - - 56
----
103

query I rowsort
SELECT DISTINCT NULLIF ( - 44, + - 52 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL + + 12 + - - 58 - ( + NULLIF ( - CASE 22 WHEN COALESCE ( + 40, - CASE - 63 WHEN + + 5 THEN + COUNT( * ) WHEN - COUNT( * ) + 27 * - - 1 / 1 + - SUM( + 36 ) THEN NULL END ) * - AVG ( ALL - 20 ) + + 46 * - + ( + ( + - 44 ) ) * + COUNT( * ) THEN NULL ELSE + 86 * 37 + - 16 END, + 62 * - 95 + MIN( ALL + 88 ) ) ) AS col0
----
3236

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + + 12 + - - 58 - ( + NULLIF ( - CASE 22 WHEN COALESCE ( + 40, - CASE - 63 WHEN + + 5 THEN + COUNT ( * ) WHEN - COUNT ( * ) + 27 * - - 1 / 1 + - SUM ( + 36 ) THEN NULL END ) * - AVG ( ALL - 20 ) + + 46 * - + ( + ( + - 44 ) ) * + COUNT ( * ) THEN NULL ELSE + 86 * 37 + - 16 END, + 62 * - 95 + MIN ( ALL + 88 ) ) ) AS col0
----
3236

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

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

query I rowsort
SELECT - - 79 + + 26
----
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL - - CASE AVG ( ALL - 68 ) WHEN - - AVG ( ALL + 36 ) + + ( - COUNT( * ) ) THEN - COUNT( * ) ELSE NULL END + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - - CASE AVG ( ALL - 68 ) WHEN - - AVG ( ALL + 36 ) + + ( - COUNT ( * ) ) THEN - COUNT ( * ) ELSE NULL END + + 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - + CASE WHEN NOT - 74 IN ( + COALESCE ( + 50, - 13, 76 * + - 63 * 21 ) * + 78 * - 21 + + ( + 15 ), 64, + - 81 ) THEN - 25 + - + 10 END * 54 + + COUNT( DISTINCT 56 ) * + COUNT( * ) * - - 29 * - + 56
----
266

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - + CASE WHEN NOT - 74 IN ( + COALESCE ( + 50, - 13, 76 * + - 63 * 21 ) * + 78 * - 21 + + ( + 15 ), 64, + - 81 ) THEN - 25 + - + 10 END * 54 + + COUNT ( DISTINCT 56 ) * + COUNT ( * ) * - - 29 * - + 56
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + 57 * + 83 + + + 43 * - 40 + 42 + 40 + - + MIN( + - 66 ) AS col1
----
3159

skipif mysql # not compatible
query I rowsort label-1338
SELECT + 57 * + 83 + + + 43 * - 40 + 42 + 40 + - + MIN ( + - 66 ) AS col1
----
3159

query II rowsort
SELECT + 62 + + 15 + - - ( - 5 ) AS col1, 92 AS col0
----
72
92

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

query I rowsort
SELECT ALL 94 * - 51 + 79
----
-4715

query I rowsort
SELECT - ( - 18 ) * - - ( + - 44 ) AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT 36 * + COUNT( * ) - + MIN( ALL + + 6 ) + + + 8 col1
----
38

skipif mysql # not compatible
query I rowsort label-1343
SELECT 36 * + COUNT ( * ) - + MIN ( ALL + + 6 ) + + + 8 col1
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + - 97 * - NULLIF ( - ( + 87 ), + + 60 * + + 69 * - COUNT( * ) + + 67 - ( + ( - + 13 ) ) )
----
-8439

skipif mysql # not compatible
query I rowsort label-1345
SELECT + - 97 * - NULLIF ( - ( + 87 ), + + 60 * + + 69 * - COUNT ( * ) + + 67 - ( + ( - + 13 ) ) )
----
-8439

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT 86 * + 26 + + 17 DIV 40 AS col0
----
2236

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT 86 * + 26 + + 17 / 40 AS col0
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT 52 * - 96 - + - COUNT( * ) AS col1
----
-4991

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT 52 * - 96 - + - COUNT ( * ) AS col1
----
-4991

query I rowsort
SELECT + 12 - 12 + - - 92 AS col1
----
92

query I rowsort
SELECT DISTINCT 17 * - 90 AS col2
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT MAX( - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1350
SELECT MAX ( - 45 ) AS col1
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + CASE + + 74 WHEN - 68 THEN + 2 * + CASE - 38 WHEN + ( + + 75 ) THEN NULL WHEN - - 11 + 90 + + 19 - - + AVG ( - - ( + + 7 ) ) THEN - + 63 ELSE NULL END - 39 WHEN COALESCE ( + 71, 51, + + 75 * - 77 / + 91 + + COUNT( * ) - + 1 ) / - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT + CASE + + 74 WHEN - 68 THEN + 2 * + CASE - 38 WHEN + ( + + 75 ) THEN NULL WHEN - - 11 + 90 + + 19 - - + AVG ( - - ( + + 7 ) ) THEN - + 63 ELSE NULL END - 39 WHEN COALESCE ( + 71, 51, + + 75 * - 77 / + 91 + + COUNT ( * ) - + 1 ) / - COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1353
SELECT COUNT( * ) AS col1, - 90 * 7 * - 42
----
1
26460

skipif mysql # not compatible
query II rowsort label-1353
SELECT COUNT ( * ) AS col1, - 90 * 7 * - 42
----
1
26460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT 15 * - + 38 * 3 * + - 63 + - - 2 + + ( - - 85 ) + - SUM( ALL + + 4 )
----
107813

skipif mysql # not compatible
query I rowsort label-1355
SELECT 15 * - + 38 * 3 * + - 63 + - - 2 + + ( - - 85 ) + - SUM ( ALL + + 4 )
----
107813

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT - 34 - 93 DIV - - 80 col1
----
-35

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 34 - 93 / - - 80 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + 45 * - COUNT( * ) * 47 col2
----
-2115

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 45 * - COUNT ( * ) * 47 col2
----
-2115

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT + COUNT( * ) + - 98 * - - 80
----
-7839

skipif mysql # not compatible
query I rowsort label-1358
SELECT + COUNT ( * ) + - 98 * - - 80
----
-7839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT - CAST( COUNT( ALL 97 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1359
SELECT - CAST ( COUNT ( ALL 97 ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT - 80 * + + 81 * + + 89 * + 66 AS col0
----
-38063520

query I rowsort
SELECT ALL - 16 * + 91
----
-1456

query I rowsort
SELECT - 98 + + 30 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT ALL NULLIF ( 47, - 52 ) * 94 DIV - + ( + 17 )
----
-259

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL NULLIF ( 47, - 52 ) * 94 / - + ( + 17 )
----
-259

query I rowsort
SELECT ALL ( 67 ) AS col1
----
67

query II rowsort
SELECT 20, 89 AS col1
----
20
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1366
SELECT ALL + 16 + + COALESCE ( - CASE + COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE 97 DIV - + COUNT( * ) + CAST( 55 AS SIGNED ) - 97 * - 49 - 77 * 67 DIV - + 47 DIV - 29 DIV - 42 END, - 78 - + 95 * - + 86 ) * - COUNT( * ) - 82
----
-8158

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + 16 + + COALESCE ( - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE 97 / - + COUNT ( * ) + CAST ( 55 AS INTEGER ) - 97 * - 49 - 77 * 67 / - + 47 / - 29 / - 42 END, - 78 - + 95 * - + 86 ) * - COUNT ( * ) - 82
----
-8158

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

query I rowsort
SELECT - 26 + + 32 - + 38 * - 53 * 21 * 76 AS col0
----
3214350

query I rowsort
SELECT DISTINCT + 98 + - - 21
----
119

query II rowsort
SELECT + 73, - NULLIF ( 3, 21 ) AS col2
----
73
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT - - COALESCE ( 23, - + 54 DIV + - 61, + 67 + + 80 ) + MIN( 82 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-1372
SELECT - - COALESCE ( 23, - + 54 / + - 61, + 67 + + 80 ) + MIN ( 82 ) AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT ALL - - 80 + 66 + + 66 * + - NULLIF ( + 49, 1 + + COUNT( DISTINCT + - 27 ) - + + 14 - + 98 / + CAST( NULL AS SIGNED ) * 92 / - 4 ) AS col1
----
-3088

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - - 80 + 66 + + 66 * + - NULLIF ( + 49, 1 + + COUNT ( DISTINCT + - 27 ) - + + 14 - + 98 / + CAST ( NULL AS INTEGER ) * 92 / - 4 ) AS col1
----
-3088

query I rowsort
SELECT DISTINCT + COALESCE ( - 54, 44 ) AS col1
----
-54

query I rowsort
SELECT ALL + 47 + - 27 + - - 73 * 29
----
2137

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT - 32 * 18 * - COUNT( * )
----
576

skipif mysql # not compatible
query I rowsort label-1376
SELECT - 32 * 18 * - COUNT ( * )
----
576

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL + 36 DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + 36 / + - 48
----
0

query I rowsort
SELECT - 46 * + ( - + 3 ) AS col2
----
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL - 45 + - + MAX( ALL 90 ) * - 8 * + 79 AS col1
----
56835

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - 45 + - + MAX ( ALL 90 ) * - 8 * + 79 AS col1
----
56835

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL + 87 - + 33 * - + MIN( - - 5 )
----
252

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + 87 - + 33 * - + MIN ( - - 5 )
----
252

query I rowsort
SELECT - 21 + + 56 * + 17 * + 5
----
4739

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT ALL 12 DIV 7 * - + 42 + + + 39 - - 23 + + 6
----
26

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL 12 / 7 * - + 42 + + + 39 - - 23 + + 6
----
26

query II rowsort
SELECT - 49 * - 1 - - 58 AS col1, - 43
----
107
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1385
SELECT - 71 DIV - MAX( DISTINCT + 18 ) + - 32 + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1385
SELECT - 71 / - MAX ( DISTINCT + 18 ) + - 32 + - COUNT ( * )
----
-30

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

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

query I rowsort
SELECT + 88 + 50 + 24 * + + 5
----
258

onlyif mysql # DIV for integer division: 
query II rowsort label-1388
SELECT - CASE 45 WHEN + 2 THEN + + 31 ELSE 87 * + 66 END * - 72 + - 16 DIV + - 98 AS col1, 2 + - ( - + 47 ) - 61 - + 52 * + 20 + - 17 * - + 30 col0
----
413424
-542

skipif mysql # not compatible
query II rowsort label-1388
SELECT - CASE 45 WHEN + 2 THEN + + 31 ELSE 87 * + 66 END * - 72 + - 16 / + - 98 AS col1, 2 + - ( - + 47 ) - 61 - + 52 * + 20 + - 17 * - + 30 col0
----
413424
-542

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT COUNT( * ) * - 96 + + 42 * + + 85 AS col0, - 8
----
3474
-8

skipif mysql # not compatible
query II rowsort label-1389
SELECT COUNT ( * ) * - 96 + + 42 * + + 85 AS col0, - 8
----
3474
-8

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

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

query I rowsort
SELECT + 28 * - ( 46 )
----
-1288

query I rowsort
SELECT + 24 * + - 57 + - ( 42 ) AS col1
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT 73 * - 17 * 99 * - CASE 17 WHEN + 82 - - + ( 81 ) + - 60 THEN - 9 END * - + ( 26 ) / 21 * 21 + COUNT( DISTINCT - 10 ) * - ( 23 ) * 13 + 89 + - CASE 46 WHEN + + 39 THEN - COALESCE ( 42, + COALESCE ( - 73, + ( + 82 ) ) + + 61 * - 33, + 13 * 57 ) END * + 75 + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 73 * - 17 * 99 * - CASE 17 WHEN + 82 - - + ( 81 ) + - 60 THEN - 9 END * - + ( 26 ) / 21 * 21 + COUNT ( DISTINCT - 10 ) * - ( 23 ) * 13 + 89 + - CASE 46 WHEN + + 39 THEN - COALESCE ( 42, + COALESCE ( - 73, + ( + 82 ) ) + + 61 * - 33, + 13 * 57 ) END * + 75 + 92 AS col0
----
NULL

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

query II rowsort
SELECT DISTINCT + 86, - COALESCE ( - 81, - + 89 ) col0
----
86
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT DISTINCT - COUNT( * ), - 96 * + 53 AS col0
----
-1
-5088

skipif mysql # not compatible
query II rowsort label-1396
SELECT DISTINCT - COUNT ( * ), - 96 * + 53 AS col0
----
-1
-5088

query I rowsort
SELECT DISTINCT 21 + - 35 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT NULLIF ( - 6, - COUNT( * ) * + + COUNT( * ) ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-1398
SELECT NULLIF ( - 6, - COUNT ( * ) * + + COUNT ( * ) ) / - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT 88 * CASE WHEN NULL IS NULL THEN - 26 ELSE NULL END * 99 * 2 + - COUNT( * ) AS col1
----
-453025

skipif mysql # not compatible
query I rowsort label-1399
SELECT 88 * CASE WHEN NULL IS NULL THEN - 26 ELSE NULL END * 99 * 2 + - COUNT ( * ) AS col1
----
-453025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT DISTINCT - ( + + CAST( + SUM( ALL - 79 ) AS SIGNED ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT - ( + + CAST ( + SUM ( ALL - 79 ) AS INTEGER ) ) AS col0
----
79

query I rowsort
SELECT ALL + 51 + - 15 col1
----
36

query I rowsort
SELECT + 17 - - - 79 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1403
SELECT ALL - 12 AS col1, - COALESCE ( - + 77, 43 ) * + 86 * + COUNT( * ) + 26
----
-12
6648

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL - 12 AS col1, - COALESCE ( - + 77, 43 ) * + 86 * + COUNT ( * ) + 26
----
-12
6648

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT 95 - 6 - - COUNT( * ) - - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 95 - 6 - - COUNT ( * ) - - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT 50 + 58 + - - 64 * 92 AS col2
----
5996

query II rowsort
SELECT - 87 AS col0, + 46 * + 28 * - 66 AS col0
----
-87
-85008

query I rowsort
SELECT + ( + - COALESCE ( + 79, + 63, - - 23 ) ) * + 28 + + + 56
----
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT DISTINCT - + 98 DIV 71 * + 5 + - + 35 * + 10 * + 38 - 85
----
-13390

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT - + 98 / 71 * + 5 + - + 35 * + 10 * + 38 - 85
----
-13390

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT + 99 DIV - 51 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1409
SELECT + 99 / - 51 AS col1
----
-1

query I rowsort
SELECT - 69 * + 57 * + 41 AS col2
----
-161253

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT 15 - - 6 + + ( - - 72 ) * + MIN( ALL + 89 ) * 82
----
525477

skipif mysql # not compatible
query I rowsort label-1411
SELECT 15 - - 6 + + ( - - 72 ) * + MIN ( ALL + 89 ) * 82
----
525477

query I rowsort
SELECT 18 * + 66 * - 86 AS col2
----
-102168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT - 32 * - 77 + + 86 + - MIN( ALL 48 ) + + + 41 * 89 DIV COUNT( * ) * + + 44 + + COUNT( - 44 ) + - - 82 col1
----
163141

skipif mysql # not compatible
query I rowsort label-1413
SELECT - 32 * - 77 + + 86 + - MIN ( ALL 48 ) + + + 41 * 89 / COUNT ( * ) * + + 44 + + COUNT ( - 44 ) + - - 82 col1
----
163141

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT 51 DIV - 41 + + 87
----
86

skipif mysql # not compatible
query I rowsort label-1414
SELECT 51 / - 41 + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL + ( + - 47 ) * COALESCE ( 54, + COUNT( - + 83 ) )
----
-2538

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + ( + - 47 ) * COALESCE ( 54, + COUNT ( - + 83 ) )
----
-2538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1416
SELECT 44 * NULLIF ( - 86, + COUNT( * ) * + - 81 * 34 * - 95 / 24 ) AS col2, + 21 * COUNT( * ) + + - 27 - + COUNT( * ) / - + COUNT( * ) * + MIN( DISTINCT - - 25 ) * - 70 + - CAST( NULL AS SIGNED )
----
-3784
NULL

skipif mysql # not compatible
query II rowsort label-1416
SELECT 44 * NULLIF ( - 86, + COUNT ( * ) * + - 81 * 34 * - 95 / 24 ) AS col2, + 21 * COUNT ( * ) + + - 27 - + COUNT ( * ) / - + COUNT ( * ) * + MIN ( DISTINCT - - 25 ) * - 70 + - CAST ( NULL AS INTEGER )
----
-3784
NULL

query I rowsort
SELECT ALL 16 + - ( + 64 ) AS col0
----
-48

query I rowsort
SELECT DISTINCT + 43 * - + 84 AS col0
----
-3612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT ALL - CAST( - + 42 AS SIGNED ) + + + 14 - - 4
----
60

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - CAST ( - + 42 AS INTEGER ) + + + 14 - - 4
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL COUNT( ALL + 39 ) + - 45 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL COUNT ( ALL + 39 ) + - 45 AS col2
----
-44

query I rowsort
SELECT 50 + - ( - 29 ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT MAX( ALL + + 23 ) + 35 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1422
SELECT MAX ( ALL + + 23 ) + 35 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT + 37 * - 35 * + + 84 + + 17 + 58 * - + 4 * + - MIN( - + COALESCE ( - + 12, - 44 ) ) + + NULLIF ( + - 8, + + ( + + COUNT( * ) ) ) * 42 + + 70
----
-106245

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 37 * - 35 * + + 84 + + 17 + 58 * - + 4 * + - MIN ( - + COALESCE ( - + 12, - 44 ) ) + + NULLIF ( + - 8, + + ( + + COUNT ( * ) ) ) * 42 + + 70
----
-106245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT 85 * - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - 32 + - - COUNT( * ) * + ( MIN( 21 ) ) + - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT 85 * - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 32 + - - COUNT ( * ) * + ( MIN ( 21 ) ) + - - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT + COUNT( * ) + 1
----
2

skipif mysql # not compatible
query I rowsort label-1425
SELECT + COUNT ( * ) + 1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT ALL CAST( - 41 AS SIGNED ) - + COUNT( * ) * - 28 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL CAST ( - 41 AS INTEGER ) - + COUNT ( * ) * - 28 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT 27 * - COUNT( * ) - 5 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1427
SELECT 27 * - COUNT ( * ) - 5 AS col2
----
-32

query II rowsort
SELECT - 24 * 61, + 41 AS col0
----
-1464
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT MAX( ALL - - 69 ) + + 84 * + - ( CASE 43 WHEN - + 59 THEN + CAST( - 17 AS SIGNED ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT MAX ( ALL - - 69 ) + + 84 * + - ( CASE 43 WHEN - + 59 THEN + CAST ( - 17 AS INTEGER ) ELSE NULL END )
----
NULL

query I rowsort
SELECT + 90 + 17 * - 76 col1
----
-1202

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

query I rowsort
SELECT ( + + 96 ) * 18 AS col2
----
1728

query I rowsort
SELECT ALL - NULLIF ( - + 58, + 56 - - 14 ) - 0 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT CASE - 83 WHEN - + 73 - + CAST( NULL AS SIGNED ) - + - 97 THEN NULL WHEN SUM( ALL + ( - - 88 ) ) * 79 THEN - + COALESCE ( + 93, COUNT( * ) ) WHEN - + 13 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT CASE - 83 WHEN - + 73 - + CAST ( NULL AS INTEGER ) - + - 97 THEN NULL WHEN SUM ( ALL + ( - - 88 ) ) * 79 THEN - + COALESCE ( + 93, COUNT ( * ) ) WHEN - + 13 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT DISTINCT + COALESCE ( + - 9, + COUNT( * ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + COALESCE ( + - 9, + COUNT ( * ) ) col0
----
-9

query II rowsort
SELECT - 40 + + - 7 AS col0, 84 * - 29
----
-47
-2436

query I rowsort
SELECT 65 + 92 + - 76
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT - 67 * - ( - 52 ) + - - 19 / + 91 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT - 67 * - ( - 52 ) + - - 19 / + 91 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 28 * - - 40 - ( + COUNT( * ) ) + - - 14 AS col2
----
-1107

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 28 * - - 40 - ( + COUNT ( * ) ) + - - 14 AS col2
----
-1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1440
SELECT - 66 * - 32 + + 45 AS col0, - COUNT( * ) + + ( - - 69 ) - + COALESCE ( - 70, - 62 ) + - 23 DIV - 21 AS col0
----
2157
139

skipif mysql # not compatible
query II rowsort label-1440
SELECT - 66 * - 32 + + 45 AS col0, - COUNT ( * ) + + ( - - 69 ) - + COALESCE ( - 70, - 62 ) + - 23 / - 21 AS col0
----
2157
139

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT 44 DIV 12 * 23 * + 49
----
3381

skipif mysql # not compatible
query I rowsort label-1441
SELECT 44 / 12 * 23 * + 49
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL - 62 * MIN( ALL 74 ) + + - 79 col0
----
-4667

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - 62 * MIN ( ALL 74 ) + + - 79 col0
----
-4667

query I rowsort
SELECT ALL + COALESCE ( - 48, - 57 * - + 38 * 4 ) AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1444
SELECT COALESCE ( 37, + + 83 - - ( - - 29 ) + + + COALESCE ( 45, + - COUNT( * ) ) DIV + - 91 ), COUNT( * ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-1444
SELECT COALESCE ( 37, + + 83 - - ( - - 29 ) + + + COALESCE ( 45, + - COUNT ( * ) ) / + - 91 ), COUNT ( * ) AS col0
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL + COALESCE ( - 54, 69 ) * + 80 + + 4 - - - MIN( ALL + 52 ) col0
----
-4368

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + COALESCE ( - 54, 69 ) * + 80 + + 4 - - - MIN ( ALL + 52 ) col0
----
-4368

query I rowsort
SELECT DISTINCT - 29 * - - 99 * + 47 + - + 89 * + 10 * 47 + + 84
----
-176683

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL COUNT( * ) * + 91 + - + COALESCE ( + 7, - 37 * 27 * - 34 + - - ( - 97 ) ) + + 14
----
98

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL COUNT ( * ) * + 91 + - + COALESCE ( + 7, - 37 * 27 * - 34 + - - ( - 97 ) ) + + 14
----
98

query I rowsort
SELECT - 75 + - 92
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT ALL + NULLIF ( + ( - NULLIF ( COUNT( * ), 39 ) ), - + 90 + + ( + + 97 ) ) col0, 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-1449
SELECT ALL + NULLIF ( + ( - NULLIF ( COUNT ( * ), 39 ) ), - + 90 + + ( + + 97 ) ) col0, 96
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + COUNT( * ) * - 44 + - 2 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1450
SELECT + COUNT ( * ) * - 44 + - 2 AS col0
----
-46

query I rowsort
SELECT ALL 46 * - + 87 * - 33 + - 58 * 11
----
131428

onlyif mysql # DIV for integer division: 
query II rowsort label-1452
SELECT ALL 89 * - - 97 + - 95 col1, + 57 + - 25 DIV + 62 AS col2
----
8538
57

skipif mysql # not compatible
query II rowsort label-1452
SELECT ALL 89 * - - 97 + - 95 col1, + 57 + - 25 / + 62 AS col2
----
8538
57

query I rowsort
SELECT DISTINCT + 12 * 38
----
456

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT DISTINCT 58 * + COUNT( * ) - - 42, + 55 * + 68 AS col1
----
100
3740

skipif mysql # not compatible
query II rowsort label-1455
SELECT DISTINCT 58 * + COUNT ( * ) - - 42, + 55 * + 68 AS col1
----
100
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL - 85 * COALESCE ( - - 89, - 30 * + 96, + SUM( ALL 78 ) )
----
-7565

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - 85 * COALESCE ( - - 89, - 30 * + 96, + SUM ( ALL 78 ) )
----
-7565

query I rowsort
SELECT ALL + - 29 col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + COUNT( 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1458
SELECT + COUNT ( 37 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT SUM( - - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-1459
SELECT SUM ( - - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT 69 * - 74 * + SUM( CASE + 71 WHEN + 1 THEN - 75 END ) - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT 69 * - 74 * + SUM ( CASE + 71 WHEN + 1 THEN - 75 END ) - - 34
----
NULL

query I rowsort
SELECT + - 63 * + 40 AS col0
----
-2520

query I rowsort
SELECT ALL - 8 * + 30
----
-240

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

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

query I rowsort
SELECT + 1 * 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT ALL - CASE + CAST( + - 97 AS SIGNED ) WHEN - SUM( DISTINCT 46 ) THEN 82 WHEN 59 THEN NULL END * + COALESCE ( + 55, COUNT( * ), 92 ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - CASE + CAST ( + - 97 AS INTEGER ) WHEN - SUM ( DISTINCT 46 ) THEN 82 WHEN 59 THEN NULL END * + COALESCE ( + 55, COUNT ( * ), 92 ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 28 - 1 col0
----
27

query I rowsort
SELECT - 68 * + - 91 - - 86 + - 85 col1
----
6189

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT + - 62 * - 48 + - COUNT( * ) + - 72
----
2903

skipif mysql # not compatible
query I rowsort label-1468
SELECT + - 62 * - 48 + - COUNT ( * ) + - 72
----
2903

query I rowsort
SELECT + 42 * + 58 AS col2
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1470
SELECT ALL + 81 + 83 + - COUNT( * ) * + CAST( NULL AS SIGNED ), + 15 * + 16 * - ( - - COUNT( * ) ) AS col2
----
NULL
-240

skipif mysql # not compatible
query II rowsort label-1470
SELECT ALL + 81 + 83 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ), + 15 * + 16 * - ( - - COUNT ( * ) ) AS col2
----
NULL
-240

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1473
SELECT + + 1 * - + 52 * 86 + CASE - 3 WHEN - CAST( + 97 AS SIGNED ) THEN - + 73 END * SUM( DISTINCT 18 ) / + 58 AS col2, + 78 - - 36 AS col2
----
NULL
114

skipif mysql # not compatible
query II rowsort label-1473
SELECT + + 1 * - + 52 * 86 + CASE - 3 WHEN - CAST ( + 97 AS INTEGER ) THEN - + 73 END * SUM ( DISTINCT 18 ) / + 58 AS col2, + 78 - - 36 AS col2
----
NULL
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT DISTINCT 41 + - - 69 + - 41 - - 64 DIV + 13 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT 41 + - - 69 + - 41 - - 64 / + 13 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT ALL COALESCE ( - 17, + + 30 ) + COUNT( * ) DIV + - 83
----
-17

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL COALESCE ( - 17, + + 30 ) + COUNT ( * ) / + - 83
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL 70 + NULLIF ( + 58, - 41 * - - COUNT( * ) )
----
128

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL 70 + NULLIF ( + 58, - 41 * - - COUNT ( * ) )
----
128

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

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

query I rowsort
SELECT ALL 93 + + 41 AS col0
----
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT + 63 - 53 - + 61 * COUNT( * ) * 71
----
-4321

skipif mysql # not compatible
query I rowsort label-1480
SELECT + 63 - 53 - + 61 * COUNT ( * ) * 71
----
-4321

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

query I rowsort
SELECT ( - 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - COUNT( * ) * + 52 * - 6
----
312

skipif mysql # not compatible
query I rowsort label-1483
SELECT - COUNT ( * ) * + 52 * - 6
----
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1484
SELECT 25 DIV - - MAX( ALL + 76 ) + + SUM( - - CAST( + 95 AS SIGNED ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1484
SELECT 25 / - - MAX ( ALL + 76 ) + + SUM ( - - CAST ( + 95 AS INTEGER ) ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT ALL 17 * + SUM( DISTINCT - + 66 ) - - - 94, SUM( + + 52 ) col0
----
-1216
52

skipif mysql # not compatible
query II rowsort label-1485
SELECT ALL 17 * + SUM ( DISTINCT - + 66 ) - - - 94, SUM ( + + 52 ) col0
----
-1216
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT ALL - NULLIF ( 55, - 39 * - 70 ) DIV - - 76 + 76
----
76

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL - NULLIF ( 55, - 39 * - 70 ) / - - 76 + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + 73 * + CASE - 81 WHEN + 54 + - 20 * - ( + 2 ) - - COUNT( + 67 ) THEN MAX( + - 16 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 73 * + CASE - 81 WHEN + 54 + - 20 * - ( + 2 ) - - COUNT ( + 67 ) THEN MAX ( + - 16 ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT - - 9 + + MAX( ALL 6 )
----
15

skipif mysql # not compatible
query I rowsort label-1489
SELECT - - 9 + + MAX ( ALL 6 )
----
15

query I rowsort
SELECT + + 98 + + 69 + 53 * - 85 * + 53 AS col2
----
-238598

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1491
SELECT - + 92 DIV - 32, MIN( DISTINCT - 17 ) AS col2
----
2
-17

skipif mysql # not compatible
query II rowsort label-1491
SELECT - + 92 / - 32, MIN ( DISTINCT - 17 ) AS col2
----
2
-17

query I rowsort
SELECT 23 * - 15 + + - 22 + - + 17
----
-384

query I rowsort
SELECT - - 18 - + 72
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - - SUM( + - 26 ) + 26 - - 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1494
SELECT - - SUM ( + - 26 ) + 26 - - 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT - MAX( + 31 ) + - 51 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - MAX ( + 31 ) + - 51 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT ALL - - 78 + + + CAST( - 7 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - - 78 + + + CAST ( - 7 AS INTEGER ) AS col2
----
71

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

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

query I rowsort
SELECT - 88 + + ( - + 75 )
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1499
SELECT DISTINCT + 25 + NULLIF ( - 54, - - 53 * + + 82 * + 94 + + CASE + 40 WHEN + ( + + 13 ) * + 53 + - COUNT( * ) THEN + + CASE 48 WHEN - 90 THEN + 88 + + + 82 WHEN + 59 THEN NULL END WHEN 69 THEN NULL ELSE 79 * + 21 END * - - 75 + + 1 * + CAST( + 50 AS SIGNED ) - - 96 + 37 ) * - 70 col1
----
3805

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + 25 + NULLIF ( - 54, - - 53 * + + 82 * + 94 + + CASE + 40 WHEN + ( + + 13 ) * + 53 + - COUNT ( * ) THEN + + CASE 48 WHEN - 90 THEN + 88 + + + 82 WHEN + 59 THEN NULL END WHEN 69 THEN NULL ELSE 79 * + 21 END * - - 75 + + 1 * + CAST ( + 50 AS INTEGER ) - - 96 + 37 ) * - 70 col1
----
3805

query I rowsort
SELECT DISTINCT + 3 * 55
----
165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL 94 + 22 + COUNT( * ) * 48 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL 94 + 22 + COUNT ( * ) * 48 AS col1
----
164

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

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

query I rowsort
SELECT DISTINCT + 75 * 45 AS col0
----
3375

query I rowsort
SELECT 43 * - 73
----
-3139

query I rowsort
SELECT 59 + - 89
----
-30

query I rowsort
SELECT DISTINCT 57 - ( 7 )
----
50

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

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL - COUNT ( DISTINCT - + 59 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1509
SELECT ALL MAX( ALL 24 ) - + 53 DIV - MIN( - 50 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL MAX ( ALL 24 ) - + 53 / - MIN ( - 50 ) col0
----
23

query I rowsort
SELECT 75 * - 91 AS col0
----
-6825

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1512
SELECT AVG ( CASE + - 67 WHEN + - 42 - + - 45 THEN + - 92 + 97 / - - 24 * - 51 * + + 67 END ) * + - COUNT( * ) * + 79 * CAST( + 18 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT AVG ( CASE + - 67 WHEN + - 42 - + - 45 THEN + - 92 + 97 / - - 24 * - 51 * + + 67 END ) * + - COUNT ( * ) * + 79 * CAST ( + 18 AS REAL )
----
NULL

query I rowsort
SELECT 23 * + 15
----
345

query I rowsort
SELECT DISTINCT - 30 * + 91 col1
----
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT - 61 * 36 DIV COALESCE ( 25, - 74 ) DIV - 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 61 * 36 / COALESCE ( 25, - 74 ) / - 72 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL - CASE - 23 WHEN 27 THEN - + COUNT( + 0 ) * - 96 * + ( - ( + - 47 ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - CASE - 23 WHEN 27 THEN - + COUNT ( + 0 ) * - 96 * + ( - ( + - 47 ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1518
SELECT 40 * - - COUNT( * ) * + 36 AS col2, 71 AS col2
----
1440
71

skipif mysql # not compatible
query II rowsort label-1518
SELECT 40 * - - COUNT ( * ) * + 36 AS col2, 71 AS col2
----
1440
71

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

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

query I rowsort
SELECT + COALESCE ( - - 89, 28, ( - + 90 ) + + 29 + - 49 + - 74 * - 76 ) * - + 17 * - 70
----
105910

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT 32 DIV 2 + - + 65 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1521
SELECT 32 / 2 + - + 65 AS col2
----
-49

query I rowsort
SELECT 19 - 78 * - - 17
----
-1307

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT + COUNT( + 80 ) + - SUM( + + 95 )
----
-94

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + COUNT ( + 80 ) + - SUM ( + + 95 )
----
-94

query I rowsort
SELECT ALL 47 + + 45
----
92

query I rowsort
SELECT DISTINCT + 73 + + + 5 + + 82
----
160

query I rowsort
SELECT ALL + ( ( - COALESCE ( + ( - ( 5 ) ), + + 56 ) ) ) AS col0
----
5

query I rowsort
SELECT ALL + 40 + 96
----
136

query I rowsort
SELECT DISTINCT + 88 + + 82 AS col0
----
170

query I rowsort
SELECT ALL + 70 - 4
----
66

query I rowsort
SELECT 53 * + 96 AS col0
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT MAX( ALL + + 46 ) * + ( + 28 ) + COUNT( * ) - 3
----
1286

skipif mysql # not compatible
query I rowsort label-1531
SELECT MAX ( ALL + + 46 ) * + ( + 28 ) + COUNT ( * ) - 3
----
1286

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT 63 + + CAST( NULL AS SIGNED ) - - 22 + - 32 + + + 15 / 98 / 48 / 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT 63 + + CAST ( NULL AS INTEGER ) - - 22 + - 32 + + + 15 / 98 / 48 / 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL COUNT( * ) * 10 * 98 * + 80
----
78400

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL COUNT ( * ) * 10 * 98 * + 80
----
78400

query II rowsort
SELECT + 37 AS col2, ( - 87 )
----
37
-87

query I rowsort
SELECT ALL + 35 * + + 70 * + 64 * + 73
----
11446400

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT 68 + + + 94 * - COUNT( ALL + + NULLIF ( - - 48, + 15 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-1537
SELECT 68 + + + 94 * - COUNT ( ALL + + NULLIF ( - - 48, + 15 ) )
----
-26

query I rowsort
SELECT ALL + 26 * 85
----
2210

query I rowsort
SELECT ALL - 63 * - 26 AS col2
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COUNT( * ) * 56 + 89 * + - 85 AS col0
----
-7509

skipif mysql # not compatible
query I rowsort label-1540
SELECT COUNT ( * ) * 56 + 89 * + - 85 AS col0
----
-7509

query I rowsort
SELECT 63 * - 41 + + - 7 + - - 53 col2
----
-2537

onlyif mysql # DIV for integer division: 
query II rowsort label-1542
SELECT ALL - 68 AS col2, 90 DIV 69 AS col2
----
-68
1

skipif mysql # not compatible
query II rowsort label-1542
SELECT ALL - 68 AS col2, 90 / 69 AS col2
----
-68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT COUNT( * ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1543
SELECT COUNT ( * ) + - COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL + + 62 * - + MAX( - + 82 ) * + ( - 9 )
----
-45756

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + + 62 * - + MAX ( - + 82 ) * + ( - 9 )
----
-45756

query II rowsort
SELECT DISTINCT - 99, - ( + 81 ) AS col1
----
-99
-81

query I rowsort
SELECT 86 + - - 57 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL + ( - 16 ) + + 20 + - + COALESCE ( COUNT( * ), 43, 49 * 72 )
----
3

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL + ( - 16 ) + + 20 + - + COALESCE ( COUNT ( * ), 43, 49 * 72 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT - - NULLIF ( - 33, - 63 * + 99 * - + 81 + + + 39 + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - - NULLIF ( - 33, - 63 * + 99 * - + 81 + + + 39 + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) col2
----
-33

query I rowsort
SELECT ALL + 51 + 59 * + 60
----
3591

query I rowsort
SELECT ALL 7 * ( + 70 )
----
490

query I rowsort
SELECT DISTINCT 46 + - 35
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT + + 39 AS col2, COALESCE ( + - 6, - + 87 * + + COUNT( * ) )
----
39
-6

skipif mysql # not compatible
query II rowsort label-1552
SELECT + + 39 AS col2, COALESCE ( + - 6, - + 87 * + + COUNT ( * ) )
----
39
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT - 34 + - 66 * - + ( - ( 57 ) ) + ( + 47 ), 47 + 16 * + - COUNT( * ) AS col0
----
-3749
31

skipif mysql # not compatible
query II rowsort label-1553
SELECT - 34 + - 66 * - + ( - ( 57 ) ) + ( + 47 ), 47 + 16 * + - COUNT ( * ) AS col0
----
-3749
31

query II rowsort
SELECT - 51 AS col2, + 31 - + 31
----
-51
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT + 90 * + ( ( + + CAST( 7 AS SIGNED ) ) ) + - 56 AS col0
----
574

skipif mysql # not compatible
query I rowsort label-1555
SELECT + 90 * + ( ( + + CAST ( 7 AS INTEGER ) ) ) + - 56 AS col0
----
574

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT + 17 - - ( + ( + 96 ) ) DIV + 2
----
65

skipif mysql # not compatible
query I rowsort label-1556
SELECT + 17 - - ( + ( + 96 ) ) / + 2
----
65

query II rowsort
SELECT ALL - 75 col0, - 97 AS col1
----
-75
-97

query II rowsort
SELECT + ( - 68 ) AS col0, 87
----
-68
87

query I rowsort
SELECT DISTINCT - 83 + 86 * 0
----
-83

query I rowsort
SELECT ALL + 25 + NULLIF ( - 88, + 81 * + 90 + + 62 ) * + 96 * 16 AS col0
----
-135143

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL - 44 + 43 DIV - - 61 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - 44 + 43 / - - 61 AS col0
----
-44

query II rowsort
SELECT ALL - 55 AS col2, - 72 - + 18 + - 8 - + 40
----
-55
-138

query II rowsort
SELECT 87, - 46 + ( + + 15 ) + - 17 * + 58 col0
----
87
-1017

query I rowsort
SELECT - - 89 + + 3
----
92

query I rowsort
SELECT ALL 80 - - 83 AS col1
----
163

query I rowsort
SELECT - 11 + - 6 AS col2
----
-17

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1568
SELECT + 23 DIV 19 AS col2, 30 AS col1
----
1
30

skipif mysql # not compatible
query II rowsort label-1568
SELECT + 23 / 19 AS col2, 30 AS col1
----
1
30

query I rowsort
SELECT - 29 * - 44
----
1276

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT + 40 + + - COUNT( * ) * + COALESCE ( + + 43, 9 ) AS col2, - COUNT( * ) AS col0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-1570
SELECT + 40 + + - COUNT ( * ) * + COALESCE ( + + 43, 9 ) AS col2, - COUNT ( * ) AS col0
----
-3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + MAX( - + 30 ) * 53 + + 86 AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-1571
SELECT + MAX ( - + 30 ) * 53 + + 86 AS col2
----
-1504

query I rowsort
SELECT ALL + 66 * + + 61 col2
----
4026

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + NULLIF ( - 9, + COUNT( * ) ) + + 79
----
70

skipif mysql # not compatible
query I rowsort label-1573
SELECT + NULLIF ( - 9, + COUNT ( * ) ) + + 79
----
70

query I rowsort
SELECT ALL NULLIF ( 26, + 49 )
----
26

query I rowsort
SELECT - 63 + + + 36 AS col2
----
-27

query I rowsort
SELECT + ( - + 77 ) * + 91 col2
----
-7007

query I rowsort
SELECT - 39 + 86 AS col2
----
47

query I rowsort
SELECT ALL COALESCE ( - 47, 55 - + + 33 * - 61 * + 18, - 45 )
----
-47

query I rowsort
SELECT DISTINCT CASE + + 35 WHEN - 79 THEN 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL COALESCE ( - 20, - - COUNT( * ), - MAX( DISTINCT 86 ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL COALESCE ( - 20, - - COUNT ( * ), - MAX ( DISTINCT 86 ) ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT 95 DIV - 62 + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-1581
SELECT 95 / - 62 + - 84
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1582
SELECT ( 7 ) AS col1, 34 * + CAST( NULL AS DECIMAL ) col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT ( 7 ) AS col1, 34 * + CAST ( NULL AS REAL ) col1
----
7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT ALL - ( + 79 ) DIV 42
----
-1

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - ( + 79 ) / 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL 85 * + 80 + 25 + + - COUNT( + 66 )
----
6824

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL 85 * + 80 + 25 + + - COUNT ( + 66 )
----
6824

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL + + 19 * + + 52 + - - COUNT( * ) * - 2 AS col2
----
986

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL + + 19 * + + 52 + - - COUNT ( * ) * - 2 AS col2
----
986

query I rowsort
SELECT - - 7 * 15 + 91 + - 32 AS col0
----
164

query I rowsort
SELECT DISTINCT - 79 * - 29 + + 2 AS col0
----
2293

query II rowsort
SELECT - 96 * 33 AS col1, + 49
----
-3168
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT - - 72 * 7 DIV + 29 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - - 72 * 7 / + 29 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1590
SELECT - + 9 * 92 DIV 33 + + + 10 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1590
SELECT - + 9 * 92 / 33 + + + 10 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT + 42 * 98 + + + COUNT( * ) - - 5 + 84 * - CAST( - 39 AS SIGNED ) * - - 60 + + - COUNT( * ) + ( 67 ) + - 86 - + + 6 col2
----
200656

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 42 * 98 + + + COUNT ( * ) - - 5 + 84 * - CAST ( - 39 AS INTEGER ) * - - 60 + + - COUNT ( * ) + ( 67 ) + - 86 - + + 6 col2
----
200656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL + COUNT( ALL - 49 ) * - 46 - - 9 - + + 41 * 33 + - 19 * + - 41
----
-611

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + COUNT ( ALL - 49 ) * - 46 - - 9 - + + 41 * 33 + - 19 * + - 41
----
-611

query I rowsort
SELECT + ( 25 ) * + 81 * + - ( - - 14 )
----
-28350

query I rowsort
SELECT ALL + - 38 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT - 49 * 11 + + + COALESCE ( - + 73, - - 27, 71 + + - COUNT( * ), - - COUNT( 16 ) ) - + 42
----
-654

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT - 49 * 11 + + + COALESCE ( - + 73, - - 27, 71 + + - COUNT ( * ), - - COUNT ( 16 ) ) - + 42
----
-654

query I rowsort
SELECT ALL 67 * 94 + 57 + - - 77 + - 74 - CASE + 76 WHEN + 32 + + + 80 * 83 * - 93 THEN - + 10 WHEN 42 THEN NULL END * - - 62 / 54 * - 51
----
NULL

query I rowsort
SELECT + - 2 * + 82 AS col2
----
-164

query I rowsort
SELECT + 71 * 33 - 5 * + + 4
----
2323

query I rowsort
SELECT - ( - 11 ) AS col1
----
11

query II rowsort
SELECT ALL 57, - 97 - - 16 * - 7 * + 38 - 61 * - 35 AS col2
----
57
-2218

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL 93 * + CASE 85 WHEN COUNT( * ) * + 42 + - + 90 THEN - - 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 93 * + CASE 85 WHEN COUNT ( * ) * + 42 + - + 90 THEN - - 66 END AS col0
----
NULL

query I rowsort
SELECT + 99 - 55 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT + 5 DIV + + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 5 / + + 85 AS col0
----
0

query I rowsort
SELECT + 17 * - + 45 col1
----
-765

query I rowsort
SELECT DISTINCT 40 * + 31 AS col2
----
1240

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL 68, 29 + - ( + 19 ) - 2 * - COUNT( * ) + - + 14 AS col1
----
68
-2

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL 68, 29 + - ( + 19 ) - 2 * - COUNT ( * ) + - + 14 AS col1
----
68
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT - CAST( - + 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1609
SELECT - CAST ( - + 34 AS INTEGER )
----
34

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 27 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT + 33 DIV + - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT + 33 / + - 47 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT DISTINCT 62 DIV - 48 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT 62 / - 48 AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL 91 / CAST( NULL AS SIGNED ) * - ( COUNT( * ) ) * + - 48 * - 1 * + 57 + + + SUM( ALL - ( - 81 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL 91 / CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) ) * + - 48 * - 1 * + 57 + + + SUM ( ALL - ( - 81 ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT + 3 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-1616
SELECT + 3 / + 21
----
0

query II rowsort
SELECT ALL - 63 + - + 87 + 26, 10 AS col1
----
-124
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1618
SELECT ALL 85 + + COUNT( * ) - + 74 col0, ( - 99 ) + + 45 DIV - 32 + + 92
----
12
-8

skipif mysql # not compatible
query II rowsort label-1618
SELECT ALL 85 + + COUNT ( * ) - + 74 col0, ( - 99 ) + + 45 / - 32 + + 92
----
12
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL + NULLIF ( + + 14, 63 - - + COALESCE ( - + COUNT( * ), 77 ) ) + 57 * 10 AS col0
----
584

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL + NULLIF ( + + 14, 63 - - + COALESCE ( - + COUNT ( * ), 77 ) ) + 57 * 10 AS col0
----
584

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL MIN( DISTINCT + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL MIN ( DISTINCT + 19 ) AS col1
----
19

query I rowsort
SELECT DISTINCT - 51 + + 64 AS col2
----
13

query I rowsort
SELECT + 80 + - - 91
----
171

query I rowsort
SELECT - + 24 * 30 AS col0
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1624
SELECT ALL + 81 DIV COUNT( * ) + - 61, + 92 + - 78 AS col0
----
20
14

skipif mysql # not compatible
query II rowsort label-1624
SELECT ALL + 81 / COUNT ( * ) + - 61, + 92 + - 78 AS col0
----
20
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT + - COUNT( * ) + + 62
----
61

skipif mysql # not compatible
query I rowsort label-1625
SELECT + - COUNT ( * ) + + 62
----
61

query II rowsort
SELECT + 18, + 45 col1
----
18
45

query I rowsort
SELECT - 86 * - 50
----
4300

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + COUNT( * ) + - 66 col2
----
-65

skipif mysql # not compatible
query I rowsort label-1628
SELECT + COUNT ( * ) + - 66 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT - NULLIF ( - 50, 68 * - 38 / + COUNT( - 96 ) + - - 64 + + 9 * 88 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - NULLIF ( - 50, 68 * - 38 / + COUNT ( - 96 ) + - - 64 + + 9 * 88 ) AS col2
----
50

query I rowsort
SELECT 48 + + - 4 * + 91 AS col2
----
-316

query I rowsort
SELECT ALL - ( + - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL - COUNT( * ) * 87 * 26 + COALESCE ( - - 69, - - 21 )
----
-2193

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - COUNT ( * ) * 87 * 26 + COALESCE ( - - 69, - - 21 )
----
-2193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 73 - - 28 ) / - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 73 - - 28 ) / - + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + CASE + 10 WHEN + COUNT( * ) * - 35 THEN + + 92 * + ( - - ( + - 33 ) ) - - - MIN( DISTINCT + ( - + 89 ) ) END * 40 * NULLIF ( + - NULLIF ( 49, - + 44 ), - 67 + - COUNT( * ) ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT + CASE + 10 WHEN + COUNT ( * ) * - 35 THEN + + 92 * + ( - - ( + - 33 ) ) - - - MIN ( DISTINCT + ( - + 89 ) ) END * 40 * NULLIF ( + - NULLIF ( 49, - + 44 ), - 67 + - COUNT ( * ) ) * - 56
----
NULL

query I rowsort
SELECT DISTINCT - - 2 * - + 0
----
0

query I rowsort
SELECT 17 * 61
----
1037

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT 33 + + - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1637
SELECT 33 + + - COUNT ( * ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1638
SELECT + COUNT( * ) * + 69 * - + 46 * + 45 * + + 51 * + 99 + + 5 - + CAST( + - 75 AS SIGNED ) / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT + COUNT ( * ) * + 69 * - + 46 * + 45 * + + 51 * + 99 + + 5 - + CAST ( + - 75 AS INTEGER ) / - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT 64 - - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1639
SELECT 64 - - COUNT ( * ) AS col1
----
65

query I rowsort
SELECT 72 + - 49 + + - 20 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT DISTINCT - NULLIF ( + 46, + + 79 - + 31 + - - CAST( 79 AS SIGNED ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - NULLIF ( + 46, + + 79 - + 31 + - - CAST ( 79 AS INTEGER ) ) AS col2
----
-46

query II rowsort
SELECT 68 * - 15 AS col0, 57 col0
----
-1020
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1643
SELECT 4 * + 4 AS col1, + ( - CAST( NULL AS SIGNED ) ) + + 76 AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-1643
SELECT 4 * + 4 AS col1, + ( - CAST ( NULL AS INTEGER ) ) + + 76 AS col0
----
16
NULL

query I rowsort
SELECT - 53 * - + NULLIF ( 15, - - 73 ) * 43 + - 57 * 39 AS col0
----
31962

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

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

query I rowsort
SELECT ALL 21 + + - 74
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT 94 + CAST( 63 AS SIGNED ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-1647
SELECT 94 + CAST ( 63 AS INTEGER ) AS col2
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT DISTINCT 39 + 57 * + CASE WHEN NOT NULL <= NULL THEN + 74 ELSE + + 26 DIV - 74 + 57 END AS col0
----
3288

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT 39 + 57 * + CASE WHEN NOT NULL <= NULL THEN + 74 ELSE + + 26 / - 74 + 57 END AS col0
----
3288

query I rowsort
SELECT DISTINCT - 22 * - - 35 AS col1
----
-770

query II rowsort
SELECT ALL 85 + NULLIF ( + 80, 36 ) AS col1, 49 * 7 AS col0
----
165
343

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT COUNT( * ) + + - 69 - - 93
----
25

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT COUNT ( * ) + + - 69 - - 93
----
25

query I rowsort
SELECT DISTINCT 79 + - ( - 15 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - 87 * + + COUNT( * ) * + 91 AS col1
----
-7917

skipif mysql # not compatible
query I rowsort label-1653
SELECT - 87 * + + COUNT ( * ) * + 91 AS col1
----
-7917

query I rowsort
SELECT 63 * - 81 * - - 35 * + + 58 * - 71
----
735495390

query I rowsort
SELECT ALL 31 * + 33 * - - 57 AS col1
----
58311

query I rowsort
SELECT DISTINCT ( - 49 ) * 88 + 8
----
-4304

query I rowsort
SELECT ALL - 6 - + 30
----
-36

query I rowsort
SELECT DISTINCT - + 93 AS col2
----
-93

query II rowsort
SELECT + + ( 39 ) AS col2, 96
----
39
96

query I rowsort
SELECT 32 * - 22
----
-704

query I rowsort
SELECT ALL + 46 - - - 26
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - - COALESCE ( - 93, 67, - 51 + SUM( 60 ) * + COUNT( * ) ) * - 83 * - 35 * 80 - - 85 AS col2
----
-21613115

skipif mysql # not compatible
query I rowsort label-1662
SELECT - - COALESCE ( - 93, 67, - 51 + SUM ( 60 ) * + COUNT ( * ) ) * - 83 * - 35 * 80 - - 85 AS col2
----
-21613115

query II rowsort
SELECT 12 * 81 AS col0, ( 89 ) AS col0
----
972
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - ( + COUNT( * ) ) * - 78 * - 81 - - 46 col1
----
-6272

skipif mysql # not compatible
query I rowsort label-1665
SELECT - ( + COUNT ( * ) ) * - 78 * - 81 - - 46 col1
----
-6272

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL 58 + - MAX( DISTINCT 94 ) * MAX( + - 14 ) * + 84 + - 11 + 41 + - + COUNT( * ) * - 64 * - 38 AS col2
----
108200

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 58 + - MAX ( DISTINCT 94 ) * MAX ( + - 14 ) * + 84 + - 11 + 41 + - + COUNT ( * ) * - 64 * - 38 AS col2
----
108200

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT DISTINCT + 26 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + 26 / - 32
----
0

query I rowsort
SELECT ALL + 8 * - - 28
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT + 20 AS col0, SUM( DISTINCT + 65 )
----
20
65

skipif mysql # not compatible
query II rowsort label-1670
SELECT + 20 AS col0, SUM ( DISTINCT + 65 )
----
20
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL - 35 + + + 21 - NULLIF ( + COUNT( * ), 92 * + + 13 ) * 29 * - 89 + - + 77 * - 37
----
5416

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - 35 + + + 21 - NULLIF ( + COUNT ( * ), 92 * + + 13 ) * 29 * - 89 + - + 77 * - 37
----
5416

query I rowsort
SELECT ALL + 81 + + 55
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - COUNT( * ) + 87 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - COUNT ( * ) + 87 AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT ALL COUNT( * ) AS col1, + 71 AS col2
----
1
71

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL COUNT ( * ) AS col1, + 71 AS col2
----
1
71

query I rowsort
SELECT ALL - 36 + - 34
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL MIN( DISTINCT 90 )
----
90

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL MIN ( DISTINCT 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1677
SELECT 29 * - - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT 29 * - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1678
SELECT 21 AS col0, 74 DIV 40 * - - 35
----
21
35

skipif mysql # not compatible
query II rowsort label-1678
SELECT 21 AS col0, 74 / 40 * - - 35
----
21
35

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

skipif mysql # not compatible
query I rowsort label-1679
SELECT COUNT ( * ) + - - 98 AS col1
----
99

query I rowsort
SELECT DISTINCT COALESCE ( + + 65, - 23 ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL + 73 * CASE + 80 WHEN + CAST( - 21 AS SIGNED ) THEN + 89 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL + 73 * CASE + 80 WHEN + CAST ( - 21 AS INTEGER ) THEN + 89 WHEN - COUNT ( * ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 19 * + NULLIF ( + 41, + + 83 * - 35 + + 55 ) AS col0
----
779

query I rowsort
SELECT ALL + 58 * - 82 AS col2
----
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ALL COUNT( * ) * + 51 + + + ( - - 92 ) * - 29
----
-2617

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL COUNT ( * ) * + 51 + + + ( - - 92 ) * - 29
----
-2617

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL + + 35 * + ( - NULLIF ( - NULLIF ( + 14, + - 1 * + ( + 40 ) * + 28 + - 11 ), ( COUNT( * ) ) ) )
----
490

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + + 35 * + ( - NULLIF ( - NULLIF ( + 14, + - 1 * + ( + 40 ) * + 28 + - 11 ), ( COUNT ( * ) ) ) )
----
490

query I rowsort
SELECT DISTINCT + 8 * + - 31
----
-248

query I rowsort
SELECT + + 97 * + + 1 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL - CAST( + + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - CAST ( + + 65 AS INTEGER )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1690
SELECT + ( + COUNT( * ) ) / - MAX( ALL - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT + ( + COUNT ( * ) ) / - MAX ( ALL - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT ALL 31 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 31 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + - COUNT( * ) - + 18
----
-19

skipif mysql # not compatible
query I rowsort label-1692
SELECT + - COUNT ( * ) - + 18
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1693
SELECT + 64 DIV - + ( + 53 ) + + 90 * - 34 AS col0, COUNT( * ) * - - 60 DIV - 87
----
-3061
0

skipif mysql # not compatible
query II rowsort label-1693
SELECT + 64 / - + ( + 53 ) + + 90 * - 34 AS col0, COUNT ( * ) * - - 60 / - 87
----
-3061
0

query I rowsort
SELECT ALL 58 * + 44
----
2552

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1695
SELECT + - 70 + + 96 * - - 18 * 85 * 97 + CAST( + 24 AS SIGNED ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT + - 70 + + 96 * - - 18 * 85 * 97 + CAST ( + 24 AS INTEGER ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + MAX( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-1696
SELECT + MAX ( - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + + MAX( DISTINCT - 98 ) * + 77 + 85 AS col1
----
-7461

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + + MAX ( DISTINCT - 98 ) * + 77 + 85 AS col1
----
-7461

query I rowsort
SELECT ALL 20 * + + 65 AS col0
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL - COALESCE ( + 99, - 19, + COUNT( * ) ) * - 8 * + 73 + 35 * ( + COALESCE ( 63, - - 77 * + 57 + - 10 ) ) AS col1
----
60021

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - COALESCE ( + 99, - 19, + COUNT ( * ) ) * - 8 * + 73 + 35 * ( + COALESCE ( 63, - - 77 * + 57 + - 10 ) ) AS col1
----
60021

query I rowsort
SELECT DISTINCT 11 * 5 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL - 68 * + + 78 + - COUNT( * ) AS col0
----
-5305

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL - 68 * + + 78 + - COUNT ( * ) AS col0
----
-5305

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + COALESCE ( - COUNT( * ), - 15 - - 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1702
SELECT + COALESCE ( - COUNT ( * ), - 15 - - 32 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT MAX( + - 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-1703
SELECT MAX ( + - 48 ) col2
----
-48

query I rowsort
SELECT DISTINCT + 59 * ( 86 )
----
5074

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL + MAX( 75 ) * + 74 + - 66 + - - 14
----
5498

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + MAX ( 75 ) * + 74 + - 66 + - - 14
----
5498

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1706
SELECT - 56 * - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 56 * 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT - 56 * - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) * + 56 * 13 AS col2
----
0

query I rowsort
SELECT - 33 + 34
----
1

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 41, ( 97 ) ) col1
----
-41

query I rowsort
SELECT + 20 * 13
----
260

query I rowsort
SELECT - COALESCE ( + 12, - 11 ) * + + 96
----
-1152

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT ALL + 41 * - COUNT( * ), - 68 * + COALESCE ( + 97, - COALESCE ( + 16, ( + 13 ) ), - 96 ) AS col0
----
-41
-6596

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL + 41 * - COUNT ( * ), - 68 * + COALESCE ( + 97, - COALESCE ( + 16, ( + 13 ) ), - 96 ) AS col0
----
-41
-6596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT - 38 + 40 + + - CAST( + + ( + + COUNT( * ) ) AS SIGNED ) * - - 76 + + 37 + + 60 * - MAX( DISTINCT - 54 )
----
3203

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 38 + 40 + + - CAST ( + + ( + + COUNT ( * ) ) AS INTEGER ) * - - 76 + + 37 + + 60 * - MAX ( DISTINCT - 54 )
----
3203

query II rowsort
SELECT - 49, 65 AS col2
----
-49
65

query I rowsort
SELECT DISTINCT + - 75 - - NULLIF ( - ( 27 ), + 27 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT + 29 * - + 18 * + + 55 * 80 * COUNT( * ) AS col1
----
-2296800

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + 29 * - + 18 * + + 55 * 80 * COUNT ( * ) AS col1
----
-2296800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL + 12 * SUM( 15 ) * - COUNT( * ) AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + 12 * SUM ( 15 ) * - COUNT ( * ) AS col1
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT - 5 + 62 DIV - - NULLIF ( 42, - 54 * + 12 ) + + 36
----
32

skipif mysql # not compatible
query I rowsort label-1719
SELECT - 5 + 62 / - - NULLIF ( 42, - 54 * + 12 ) + + 36
----
32

query II rowsort
SELECT DISTINCT + 98 col0, - 63 AS col0
----
98
-63

query I rowsort
SELECT - 19 + + 92 col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT ALL 82 AS col1, - MIN( DISTINCT - 33 ) + - 80 * - + 91
----
82
7313

skipif mysql # not compatible
query II rowsort label-1722
SELECT ALL 82 AS col1, - MIN ( DISTINCT - 33 ) + - 80 * - + 91
----
82
7313

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - 62 * COUNT( * ) * - - 50
----
-3100

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 62 * COUNT ( * ) * - - 50
----
-3100

query I rowsort
SELECT - 32 + + 74 AS col1
----
42

query II rowsort
SELECT ALL 16 AS col0, 29 * + - 34 + + 17 * + 2 + - - 78 AS col2
----
16
-874

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

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

query I rowsort
SELECT + + 43 + 12 col1
----
55

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

query I rowsort
SELECT - - 74 * + 79
----
5846

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL + 63 * + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL + 63 * + COUNT ( * ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL CAST( NULL AS SIGNED ) / ( - ( - COUNT( * ) ) ) + AVG ( DISTINCT + - 24 ) + + 8 * + 22 / 2 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL CAST ( NULL AS INTEGER ) / ( - ( - COUNT ( * ) ) ) + AVG ( DISTINCT + - 24 ) + + 8 * + 22 / 2 * - 57
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1734
SELECT ALL + - COUNT( * ) DIV 79 + + MIN( - 63 ) + - 24 + - 1 * - 25
----
-62

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + - COUNT ( * ) / 79 + + MIN ( - 63 ) + - 24 + - 1 * - 25
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT - CAST( 57 AS SIGNED ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-1735
SELECT - CAST ( 57 AS INTEGER ) col2
----
-57

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

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL 53 / - COUNT ( * ) + + + 99 col0
----
46

query II rowsort
SELECT ALL + - 22 AS col0, - 37
----
-22
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT - 17 DIV - 86 * - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 17 / - 86 * - 21 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1739
SELECT + 23 DIV - 90, - 18 * 78 - - - MIN( DISTINCT 94 ) col1
----
0
-1498

skipif mysql # not compatible
query II rowsort label-1739
SELECT + 23 / - 90, - 18 * 78 - - - MIN ( DISTINCT 94 ) col1
----
0
-1498

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT ALL 47 DIV + + ( - 94 ) + + 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL 47 / + + ( - 94 ) + + 21 AS col2
----
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT ALL - 24 / + 82 + - + CAST( NULL AS SIGNED ) * + 81 * + 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - 24 / + 82 + - + CAST ( NULL AS INTEGER ) * + 81 * + 68 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( - 19 ) col1, + 2
----
-19
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT DISTINCT 16 DIV - 42 + - - 73 * 77 * + 4 col2
----
22484

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT 16 / - 42 + - - 73 * 77 * + 4 col2
----
22484

query II rowsort
SELECT ( 35 ) AS col2, - 40 AS col0
----
35
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT DISTINCT 10 DIV - 2 col0
----
-5

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT 10 / - 2 col0
----
-5

query I rowsort
SELECT DISTINCT - 41 * 95 + + - 28 AS col1
----
-3923

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT 28 DIV + + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT 28 / + + 89 AS col0
----
0

query II rowsort
SELECT ( + + 97 ) AS col2, - 28 * + 86
----
97
-2408

query I rowsort
SELECT 82 * - 39 - + 93 * + 73 AS col1
----
-9987

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + 33 * + 52 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 33 * + 52 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT CASE + 22 WHEN - - 44 THEN NULL WHEN + + 4 THEN + 2 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 31 * + 59 - + 42
----
-1871

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

query II rowsort
SELECT NULLIF ( - - 6, 77 ), - 43 AS col2
----
6
-43

query I rowsort
SELECT 58 * ( + + 0 )
----
0

query I rowsort
SELECT DISTINCT ( + 39 ) * + + 94
----
3666

query I rowsort
SELECT - 80 * 3 + + - 22 AS col2
----
-262

query I rowsort
SELECT ALL - 19 * + + 2 * - + 66
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT - CASE + - AVG ( ALL + 87 ) WHEN - 60 * - + 20 THEN + - 59 - + + CASE + + 3 WHEN 78 THEN + 73 - + COUNT( * ) * 1 + 29 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - CASE + - AVG ( ALL + 87 ) WHEN - 60 * - + 20 THEN + - 59 - + + CASE + + 3 WHEN 78 THEN + 73 - + COUNT ( * ) * 1 + 29 END END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT DISTINCT 68 DIV - + 6 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT 68 / - + 6 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT - 7 + - + COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1763
SELECT - 7 + - + COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT COUNT( * ) * + 51 + + + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1764
SELECT COUNT ( * ) * + 51 + + + COUNT ( * ) AS col0
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + MAX( + 91 ) + - 16 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1766
SELECT + MAX ( + 91 ) + - 16 AS col0
----
75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT ALL COUNT( ALL + 78 ) + 44 + + 88 + - - 71 / - 39 * + 24 + - + 14 + - ( + 97 ) * + 42 * + 88 + 40 * 31 + - 57 * + + 17 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL COUNT ( ALL + 78 ) + 44 + + 88 + - - 71 / - 39 * + 24 + - + 14 + - ( + 97 ) * + 42 * + 88 + 40 * 31 + - 57 * + + 17 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 96 * 51 + + COALESCE ( - 87, + 71 )
----
-4983

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1770
SELECT DISTINCT + - 64 * CASE + 66 WHEN COUNT( * ) + - + 74 THEN 50 WHEN - + COUNT( * ) THEN + ( + - 54 ) WHEN 65 DIV 88 + + 50 THEN NULL END col1, 38 + - 83 + + - COUNT( * ) * - 4 DIV - 29 AS col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-1770
SELECT DISTINCT + - 64 * CASE + 66 WHEN COUNT ( * ) + - + 74 THEN 50 WHEN - + COUNT ( * ) THEN + ( + - 54 ) WHEN 65 / 88 + + 50 THEN NULL END col1, 38 + - 83 + + - COUNT ( * ) * - 4 / - 29 AS col0
----
NULL
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - COUNT( * ) + + COUNT( * ) + - + MAX( DISTINCT - + 44 ) + - 94
----
-50

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - COUNT ( * ) + + COUNT ( * ) + - + MAX ( DISTINCT - + 44 ) + - 94
----
-50

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1773
SELECT ALL - 82 + 15 AS col1, - 65 / CASE 23 WHEN - SUM( DISTINCT 69 ) THEN + COUNT( * ) / - + 95 + - 93 ELSE + 5 * - AVG ( ALL - + 44 ) + + 32 END - - 17 + - + CASE 45 WHEN + + 3 THEN + 50 WHEN + + 54 THEN NULL ELSE NULL END * - 10 + + - ( - COUNT( * ) )
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-1773
SELECT ALL - 82 + 15 AS col1, - 65 / CASE 23 WHEN - SUM ( DISTINCT 69 ) THEN + COUNT ( * ) / - + 95 + - 93 ELSE + 5 * - AVG ( ALL - + 44 ) + + 32 END - - 17 + - + CASE 45 WHEN + + 3 THEN + 50 WHEN + + 54 THEN NULL ELSE NULL END * - 10 + + - ( - COUNT ( * ) )
----
-67
NULL

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

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

query I rowsort
SELECT ALL - 76 * - 29 * + 88 * - 22
----
-4266944

query I rowsort
SELECT ALL - CASE - 69 WHEN 0 + - 29 + - 13 THEN - 44 - - 17 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1777
SELECT + CAST( + 66 AS SIGNED ) DIV - 48 + - - 84 + - + 95 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1777
SELECT + CAST ( + 66 AS INTEGER ) / - 48 + - - 84 + - + 95 AS col0
----
-12

query I rowsort
SELECT ALL 58 * + 47
----
2726

query I rowsort
SELECT 7 + 15 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1780
SELECT ALL 75 - NULLIF ( - CASE COUNT( * ) WHEN + 8 + 84 + CAST( 39 AS SIGNED ) THEN - ( CAST( NULL AS DECIMAL ) ) + COUNT( * ) * ( - 92 ) ELSE NULL END, - - 93 * + - 72 * 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL 75 - NULLIF ( - CASE COUNT ( * ) WHEN + 8 + 84 + CAST ( 39 AS INTEGER ) THEN - ( CAST ( NULL AS REAL ) ) + COUNT ( * ) * ( - 92 ) ELSE NULL END, - - 93 * + - 72 * 18 ) AS col0
----
NULL

query I rowsort
SELECT 13 * - 77
----
-1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1782
SELECT ALL - MIN( + + CAST( - 9 AS SIGNED ) ) * - 40, + 78 AS col1
----
-360
78

skipif mysql # not compatible
query II rowsort label-1782
SELECT ALL - MIN ( + + CAST ( - 9 AS INTEGER ) ) * - 40, + 78 AS col1
----
-360
78

query II rowsort
SELECT ALL - 87 AS col1, 29
----
-87
29

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

query II rowsort
SELECT ALL - 94 col2, 56 * + 36 AS col0
----
-94
2016

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

query I rowsort
SELECT 3 * 25 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT 39 * + - 56 * - COUNT( * ) AS col1
----
2184

skipif mysql # not compatible
query I rowsort label-1788
SELECT 39 * + - 56 * - COUNT ( * ) AS col1
----
2184

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

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - MIN ( - 43 )
----
43

query II rowsort
SELECT 37 AS col1, + 40
----
37
40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT 28 * 70 * SUM( DISTINCT - + 88 ) * ( - - 10 ) col1
----
-1724800

skipif mysql # not compatible
query I rowsort label-1793
SELECT 28 * 70 * SUM ( DISTINCT - + 88 ) * ( - - 10 ) col1
----
-1724800

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT - MAX( - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - MAX ( - 62 )
----
62

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

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

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

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

query I rowsort
SELECT ALL 61 * - 67 * 72
----
-294264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1798
SELECT COUNT( * ) DIV + 6 * + - 12, - 81 * + - 52 AS col2
----
0
4212

skipif mysql # not compatible
query II rowsort label-1798
SELECT COUNT ( * ) / + 6 * + - 12, - 81 * + - 52 AS col2
----
0
4212

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

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL 38 * + COUNT ( * ) AS col0
----
38

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

skipif mysql # not compatible
query II rowsort label-1800
SELECT - COUNT ( * ), + 7 col1
----
-1
7

onlyif mysql # DIV for integer division: 
query II rowsort label-1801
SELECT 41 AS col0, 62 + 26 DIV + NULLIF ( + - 37, - 86 )
----
41
62

skipif mysql # not compatible
query II rowsort label-1801
SELECT 41 AS col0, 62 + 26 / + NULLIF ( + - 37, - 86 )
----
41
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT - 16 AS col1, 35 * COUNT( * ) AS col0
----
-16
35

skipif mysql # not compatible
query II rowsort label-1802
SELECT - 16 AS col1, 35 * COUNT ( * ) AS col0
----
-16
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL - COUNT( * ) * - + 57
----
57

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - COUNT ( * ) * - + 57
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1804
SELECT 84 AS col0, COUNT( 14 )
----
84
1

skipif mysql # not compatible
query II rowsort label-1804
SELECT 84 AS col0, COUNT ( 14 )
----
84
1

query II rowsort
SELECT DISTINCT 11, 78 + 49 AS col0
----
11
127

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT 63 + + COUNT( ALL + + 31 ), COALESCE ( - MAX( - 18 ), + 58 ) AS col0
----
64
18

skipif mysql # not compatible
query II rowsort label-1806
SELECT 63 + + COUNT ( ALL + + 31 ), COALESCE ( - MAX ( - 18 ), + 58 ) AS col0
----
64
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL 41 + - + NULLIF ( COUNT( * ), - 29 * + COUNT( DISTINCT - 12 ) - - AVG ( DISTINCT - 16 ) ) * + 54 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL 41 + - + NULLIF ( COUNT ( * ), - 29 * + COUNT ( DISTINCT - 12 ) - - AVG ( DISTINCT - 16 ) ) * + 54 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT - 81 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 81 / + 55
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT + COUNT( * ) col2, + ( + 43 ) + - NULLIF ( + + COUNT( * ), + - COUNT( * ) / + 34 ) * 10
----
1
33

skipif mysql # not compatible
query II rowsort label-1809
SELECT + COUNT ( * ) col2, + ( + 43 ) + - NULLIF ( + + COUNT ( * ), + - COUNT ( * ) / + 34 ) * 10
----
1
33

query I rowsort
SELECT + ( - 99 ) + + 88
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1811
SELECT - COUNT( * ) AS col1, 68 * 49 DIV + - ( - + 3 )
----
-1
1110

skipif mysql # not compatible
query II rowsort label-1811
SELECT - COUNT ( * ) AS col1, 68 * 49 / + - ( - + 3 )
----
-1
1110

query I rowsort
SELECT 32 + - 90 col0
----
-58

query I rowsort
SELECT ALL 0 + - + 24 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT DISTINCT - 53 + - CAST( ( + 89 ) AS SIGNED ) AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - 53 + - CAST ( ( + 89 ) AS INTEGER ) AS col2
----
-142

query I rowsort
SELECT 81 * - 16 * - 63 * - 6 + + 44 + 78
----
-489766

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT 12 DIV - - 77 * 70 + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-1816
SELECT 12 / - - 77 * 70 + - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - MAX( ALL - 88 ) + COUNT( * ) + 45
----
134

skipif mysql # not compatible
query I rowsort label-1817
SELECT - MAX ( ALL - 88 ) + COUNT ( * ) + 45
----
134

query I rowsort
SELECT DISTINCT + + 48 * - + 2 * 30 AS col1
----
-2880

query I rowsort
SELECT DISTINCT + 36 - - 76 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT DISTINCT 52 * - + MIN( - 91 ) * - - CASE - 47 WHEN + 63 + 53 THEN 12 + + 39 + 90 * 42 * + 83 ELSE NULL END col0, ( 19 )
----
NULL
19

skipif mysql # not compatible
query II rowsort label-1820
SELECT DISTINCT 52 * - + MIN ( - 91 ) * - - CASE - 47 WHEN + 63 + 53 THEN 12 + + 39 + 90 * 42 * + 83 ELSE NULL END col0, ( 19 )
----
NULL
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT 13 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT 13 / + + 96
----
0

query I rowsort
SELECT NULLIF ( - - 55, - + 7 + - - 84 / 12 ) AS col1
----
55

query I rowsort
SELECT 23 * - + 99
----
-2277

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

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - MAX ( - 60 )
----
60

query I rowsort
SELECT - 27 * - - 81
----
-2187

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1827
SELECT ALL - ( - COUNT( * ) ) * - + MIN( DISTINCT - 24 ) AS col0, - COUNT( * )
----
24
-1

skipif mysql # not compatible
query II rowsort label-1827
SELECT ALL - ( - COUNT ( * ) ) * - + MIN ( DISTINCT - 24 ) AS col0, - COUNT ( * )
----
24
-1

query I rowsort
SELECT DISTINCT - 10 * - + 39 * - 17
----
-6630

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

skipif mysql # not compatible
query I rowsort label-1829
SELECT - 55 * - - COUNT ( * )
----
-55

query I rowsort
SELECT 29 * - ( + 57 ) + + 70
----
-1583

query I rowsort
SELECT + + ( - 53 ) * + 84 AS col1
----
-4452

query I rowsort
SELECT ALL 68 + 43
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - 42 + - MAX( - ( - 29 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-1833
SELECT - 42 + - MAX ( - ( - 29 ) )
----
-71

query I rowsort
SELECT - + 62 * + 53
----
-3286

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL + 98 + COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + 98 + COUNT ( * ) col2
----
99

query I rowsort
SELECT ALL + 76 + - ( + 38 ) AS col1
----
38

query I rowsort
SELECT ALL + 17 + + 92 + + + 31 * - 87 + - 74 * - 50 * - - 78 AS col1
----
286012

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT DISTINCT + COALESCE ( - + 54, - - 97, + ( + 94 ) - + MIN( ALL - 95 ) - + NULLIF ( COALESCE ( + + COUNT( * ), + 74 ), COUNT( + 62 ) * - + 47 - - + 21 ) ) + 68 + + + 29 + + NULLIF ( + - 45, + - 11 * - 62 * - 48 + - - CAST( NULL AS SIGNED ) * + 53 + + 18 ) + + 63 * + 70 * + 66
----
291058

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT + COALESCE ( - + 54, - - 97, + ( + 94 ) - + MIN ( ALL - 95 ) - + NULLIF ( COALESCE ( + + COUNT ( * ), + 74 ), COUNT ( + 62 ) * - + 47 - - + 21 ) ) + 68 + + + 29 + + NULLIF ( + - 45, + - 11 * - 62 * - 48 + - - CAST ( NULL AS INTEGER ) * + 53 + + 18 ) + + 63 * + 70 * + 66
----
291058

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1840
SELECT + - ( + 67 ) * CAST( 64 AS SIGNED ) AS col2, + CAST( NULL AS DECIMAL ) AS col0
----
-4288
NULL

skipif mysql # not compatible
query II rowsort label-1840
SELECT + - ( + 67 ) * CAST ( 64 AS INTEGER ) AS col2, + CAST ( NULL AS REAL ) AS col0
----
-4288
NULL

query I rowsort
SELECT DISTINCT + 73 * - - 59 * 76
----
327332

query I rowsort
SELECT + 54 - + 71
----
-17

query I rowsort
SELECT DISTINCT + 24 * - + 33 * + 81
----
-64152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT + 72 * CAST( COUNT( * ) AS SIGNED ) * 47 + - 39 + + - 0 + + 25 * CAST( NULL AS SIGNED ) / - - 44 + - 49 + - 94 + 3 / - 51 * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT + 72 * CAST ( COUNT ( * ) AS INTEGER ) * 47 + - 39 + + - 0 + + 25 * CAST ( NULL AS INTEGER ) / - - 44 + - 49 + - 94 + 3 / - 51 * - 95 AS col1
----
NULL

query I rowsort
SELECT ALL + 74 - 6
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + 81 - - COUNT( * ) * MAX( DISTINCT 24 ) + + 24
----
129

skipif mysql # not compatible
query I rowsort label-1846
SELECT + 81 - - COUNT ( * ) * MAX ( DISTINCT 24 ) + + 24
----
129

query II rowsort
SELECT + 40 * + - NULLIF ( + ( 25 ), - 39 + - - 53 ) AS col2, - 8 AS col1
----
-1000
-8

query II rowsort
SELECT DISTINCT 8 AS col1, 65 * - 49 AS col1
----
8
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - ( COALESCE ( 56, 36 * COUNT( * ) * 14 * - 85 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-1849
SELECT - ( COALESCE ( 56, 36 * COUNT ( * ) * 14 * - 85 ) )
----
-56

query I rowsort
SELECT + 34 - 96 AS col2
----
-62

query I rowsort
SELECT + 4 * - 12 * + 66 AS col0
----
-3168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - 40 * 41 + - COUNT( * ) + - 78 AS col1
----
-1719

skipif mysql # not compatible
query I rowsort label-1853
SELECT - 40 * 41 + - COUNT ( * ) + - 78 AS col1
----
-1719

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1854
SELECT - COUNT( * ) DIV + CASE + COUNT( * ) WHEN - 84 + CAST( + MIN( + + 84 ) AS DECIMAL ) THEN MAX( + + 84 ) ELSE + 15 * + - CASE - 75 WHEN - 8 THEN NULL ELSE + 71 END * + 74 * 7 + 74 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT - COUNT ( * ) / + CASE + COUNT ( * ) WHEN - 84 + CAST ( + MIN ( + + 84 ) AS REAL ) THEN MAX ( + + 84 ) ELSE + 15 * + - CASE - 75 WHEN - 8 THEN NULL ELSE + 71 END * + 74 * 7 + 74 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - 4 - + + 11 * + - COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 4 - + + 11 * + - COUNT ( * ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT - CASE - MIN( DISTINCT COALESCE ( 75, - + 96 ) ) WHEN CASE ( - COUNT( * ) ) WHEN + 87 THEN NULL WHEN - - 63 THEN + 36 + - 14 ELSE NULL END THEN - MIN( ( - + CAST( NULL AS SIGNED ) ) ) * - + 25 WHEN + 25 + + + 24 THEN NULL END / + 5 * + 0 + - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT - CASE - MIN ( DISTINCT COALESCE ( 75, - + 96 ) ) WHEN CASE ( - COUNT ( * ) ) WHEN + 87 THEN NULL WHEN - - 63 THEN + 36 + - 14 ELSE NULL END THEN - MIN ( ( - + CAST ( NULL AS INTEGER ) ) ) * - + 25 WHEN + 25 + + + 24 THEN NULL END / + 5 * + 0 + - 62 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL + COALESCE ( + 12, + - 71, - 98, + SUM( 76 ) )
----
12

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + COALESCE ( + 12, + - 71, - 98, + SUM ( 76 ) )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT + MIN( ALL - 22 ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-1858
SELECT + MIN ( ALL - 22 ) / - 50
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - NULLIF ( + MAX( ALL + 22 ), - 11 ) / CASE + COUNT( 16 ) WHEN 57 THEN + 54 WHEN + - 99 * + SUM( DISTINCT + + 56 ) + - - ( - - ( + - COUNT( * ) ) ) * - 37 THEN NULL ELSE NULL END * 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT - NULLIF ( + MAX ( ALL + 22 ), - 11 ) / CASE + COUNT ( 16 ) WHEN 57 THEN + 54 WHEN + - 99 * + SUM ( DISTINCT + + 56 ) + - - ( - - ( + - COUNT ( * ) ) ) * - 37 THEN NULL ELSE NULL END * 59 AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT 61 * - CASE - + 3 WHEN + 18 + + + 93 + + AVG ( DISTINCT + 56 ) - 58 + NULLIF ( COUNT( * ), - COUNT( * ) ) THEN + SUM( ALL - 18 ) ELSE NULL END * + + COUNT( * ) + - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT 61 * - CASE - + 3 WHEN + 18 + + + 93 + + AVG ( DISTINCT + 56 ) - 58 + NULLIF ( COUNT ( * ), - COUNT ( * ) ) THEN + SUM ( ALL - 18 ) ELSE NULL END * + + COUNT ( * ) + - + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL 21 * ( - CASE - + 95 WHEN + - ( 12 ) THEN + 61 WHEN + 98 * + + 87 THEN + 97 END ) * + 44 - 38 + - COUNT( * ) * - - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL 21 * ( - CASE - + 95 WHEN + - ( 12 ) THEN + 61 WHEN + 98 * + + 87 THEN + 97 END ) * + 44 - 38 + - COUNT ( * ) * - - 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1865
SELECT ( + COALESCE ( + + 28, + - COALESCE ( 4, - NULLIF ( + 47, + COUNT( * ) + - COALESCE ( - 58, - - 6 * + + CASE + - 43 WHEN - - CASE - + ( - + 9 ) WHEN - 79 THEN - - MAX( - + 75 ) - - 57 WHEN - + 12 THEN NULL ELSE - 67 DIV + + 97 + AVG ( ALL + 85 ) END + COUNT( * ) THEN NULL WHEN - ( + ( + 6 ) ) * - - 22 + - 69 + 58 * ( + - 67 ) THEN 57 * - + 97 ELSE + + 72 * CAST( NULL AS SIGNED ) END * 29 * + - COUNT( * ) DIV - ( + 65 * - COUNT( * ) ) ) ) DIV 54 ) + - ( - 90 ), 41 * 98 ) )
----
28

skipif mysql # not compatible
query I rowsort label-1865
SELECT ( + COALESCE ( + + 28, + - COALESCE ( 4, - NULLIF ( + 47, + COUNT ( * ) + - COALESCE ( - 58, - - 6 * + + CASE + - 43 WHEN - - CASE - + ( - + 9 ) WHEN - 79 THEN - - MAX ( - + 75 ) - - 57 WHEN - + 12 THEN NULL ELSE - 67 / + + 97 + AVG ( ALL + 85 ) END + COUNT ( * ) THEN NULL WHEN - ( + ( + 6 ) ) * - - 22 + - 69 + 58 * ( + - 67 ) THEN 57 * - + 97 ELSE + + 72 * CAST ( NULL AS INTEGER ) END * 29 * + - COUNT ( * ) / - ( + 65 * - COUNT ( * ) ) ) ) / 54 ) + - ( - 90 ), 41 * 98 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT - CAST( + AVG ( 83 ) AS SIGNED ) + - 47 + + 36 * - NULLIF ( + 2, + COUNT( * ) * 40 ) * - 10 * - + 3 * - 40 + + 2 / + COUNT( * ) + + CASE + 49 WHEN 0 THEN + 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT - CAST ( + AVG ( 83 ) AS INTEGER ) + - 47 + + 36 * - NULLIF ( + 2, + COUNT ( * ) * 40 ) * - 10 * - + 3 * - 40 + + 2 / + COUNT ( * ) + + CASE + 49 WHEN 0 THEN + 69 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 99 * - 21 * 35 + - - ( 63 )
----
-72702

query I rowsort
SELECT DISTINCT - 57 * + + 8 + - 8 + - - 94
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT - 85 + COUNT( * ) * SUM( 31 ) + - 99 + - 7 * + 2
----
-167

skipif mysql # not compatible
query I rowsort label-1869
SELECT - 85 + COUNT ( * ) * SUM ( 31 ) + - 99 + - 7 * + 2
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1870
SELECT - 36 AS col0, 64 + - CAST( CASE + 20 WHEN + 47 THEN NULL ELSE + 6 END AS SIGNED ) * + 31 + - - CASE + 58 WHEN + 5 * + AVG ( ALL + + 91 ) THEN NULL WHEN + - 66 THEN NULL ELSE + 61 END col2
----
-36
-61

skipif mysql # not compatible
query II rowsort label-1870
SELECT - 36 AS col0, 64 + - CAST ( CASE + 20 WHEN + 47 THEN NULL ELSE + 6 END AS INTEGER ) * + 31 + - - CASE + 58 WHEN + 5 * + AVG ( ALL + + 91 ) THEN NULL WHEN + - 66 THEN NULL ELSE + 61 END col2
----
-36
-61

query I rowsort
SELECT ALL NULLIF ( - - 98, - 89 * - 37 ) AS col1
----
98

query I rowsort
SELECT - CASE + + 84 WHEN + 39 + - 35 THEN + 73 + - 94 END - 6 + + 93 - - 61 * 24 * 84 / 86 + - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL + NULLIF ( - 70, - CAST( NULL AS SIGNED ) * 4 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + NULLIF ( - 70, - CAST ( NULL AS INTEGER ) * 4 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT - - ( + 54 ) + - 92 * - 13 * - SUM( ALL - 45 ) + + 8
----
53882

skipif mysql # not compatible
query I rowsort label-1874
SELECT - - ( + 54 ) + - 92 * - 13 * - SUM ( ALL - 45 ) + + 8
----
53882

query I rowsort
SELECT DISTINCT 4 - + 41 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT ALL + 70 * 51 DIV - 86 col2
----
-41

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL + 70 * 51 / - 86 col2
----
-41

query I rowsort
SELECT ALL 52 * - 89 AS col0
----
-4628

query I rowsort
SELECT + 58 + - 11
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT - COUNT( * ) - + CASE + 42 WHEN - - 81 * 46 / + 31 * ( - - 37 ) THEN + ( - 60 ) / + COALESCE ( + - 53, COUNT( * ), - - 38 ) * 41 WHEN - + 91 THEN 87 ELSE NULL END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - COUNT ( * ) - + CASE + 42 WHEN - - 81 * 46 / + 31 * ( - - 37 ) THEN + ( - 60 ) / + COALESCE ( + - 53, COUNT ( * ), - - 38 ) * 41 WHEN - + 91 THEN 87 ELSE NULL END + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT - COUNT( - - 72 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1880
SELECT - COUNT ( - - 72 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT + 34 + + NULLIF ( + 66, + 1 + - ( - COUNT( * ) ) + + COUNT( ALL - + 39 ) * - 69 / + 24 ) * 20 * - 75 AS col0
----
-98966

skipif mysql # not compatible
query I rowsort label-1881
SELECT + 34 + + NULLIF ( + 66, + 1 + - ( - COUNT ( * ) ) + + COUNT ( ALL - + 39 ) * - 69 / + 24 ) * 20 * - 75 AS col0
----
-98966

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL COUNT( * ) * - 64 * 66
----
-4224

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL COUNT ( * ) * - 64 * 66
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1883
SELECT DISTINCT 15 AS col2, + CAST( + COUNT( * ) AS SIGNED ) + - 26 * - + ( + 4 )
----
15
105

skipif mysql # not compatible
query II rowsort label-1883
SELECT DISTINCT 15 AS col2, + CAST ( + COUNT ( * ) AS INTEGER ) + - 26 * - + ( + 4 )
----
15
105

query II rowsort
SELECT DISTINCT - 74 AS col0, 80
----
-74
80

query II rowsort
SELECT + 79, + 76 AS col2
----
79
76

query I rowsort
SELECT DISTINCT 80 + - 15 * - + 30
----
530

query I rowsort
SELECT ALL 38 + + 1 + + 71
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT CAST( COUNT( * ) AS SIGNED ) * ( + 15 ) - 69 * + 76
----
-5229

skipif mysql # not compatible
query I rowsort label-1888
SELECT CAST ( COUNT ( * ) AS INTEGER ) * ( + 15 ) - 69 * + 76
----
-5229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL 26 + + CAST( NULL AS SIGNED ) * - - 49 + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL 26 + + CAST ( NULL AS INTEGER ) * - - 49 + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1890
SELECT 96 AS col0, - COUNT( * ) * - - 79 DIV - 50
----
96
1

skipif mysql # not compatible
query II rowsort label-1890
SELECT 96 AS col0, - COUNT ( * ) * - - 79 / - 50
----
96
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1891
SELECT DISTINCT 44 + + ( - + 94 ) DIV + 23
----
40

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT 44 + + ( - + 94 ) / + 23
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT 93 / - CASE - - MAX( 14 ) WHEN + ( - 23 ) + 55 * - 97 THEN - + 39 * - - 32 * + 52 + 52 + - 22 ELSE NULL END - - - 12 AS col2, + 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-1892
SELECT 93 / - CASE - - MAX ( 14 ) WHEN + ( - 23 ) + 55 * - 97 THEN - + 39 * - - 32 * + 52 + 52 + - 22 ELSE NULL END - - - 12 AS col2, + 38 AS col1
----
NULL
38

query II rowsort
SELECT + 97 AS col1, ( - 38 ) AS col2
----
97
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL 79 + - COUNT( * ) * - 73 * + 25 * + + 78 * - 18
----
-2562221

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL 79 + - COUNT ( * ) * - 73 * + 25 * + + 78 * - 18
----
-2562221

query II rowsort
SELECT + + 84, 42 + 50 AS col0
----
84
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1896
SELECT ALL - - MIN( + - CAST( NULL AS SIGNED ) ), COALESCE ( - + 12, + 93 ) AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-1896
SELECT ALL - - MIN ( + - CAST ( NULL AS INTEGER ) ), COALESCE ( - + 12, + 93 ) AS col0
----
NULL
-12

query II rowsort
SELECT + 74, - 6 * 13 + ( + - 76 ) AS col1
----
74
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL + 81 + - + COUNT( * ) - 73 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + 81 + - + COUNT ( * ) - 73 AS col0
----
7

query I rowsort
SELECT - 47 * + - 96 AS col2
----
4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT ALL - MAX( + + 42 ) DIV - 17
----
2

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - MAX ( + + 42 ) / - 17
----
2

query I rowsort
SELECT ALL + ( - 48 ) - + - 4 + 52 * - 27
----
-1448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1902
SELECT 7 - + 92 * + ( + - CAST( NULL AS SIGNED ) ) AS col0, 25 * + + CAST( NULL AS SIGNED ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1902
SELECT 7 - + 92 * + ( + - CAST ( NULL AS INTEGER ) ) AS col0, 25 * + + CAST ( NULL AS INTEGER ) col1
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1903
SELECT - COUNT ( - 23 )
----
-1

query I rowsort
SELECT - 74 - + 28 + + 65
----
-37

query I rowsort
SELECT + 13 * - 31
----
-403

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1906
SELECT ALL - COALESCE ( + 71, + 86, + - 19 ), 59 * - ( - - COUNT( * ) ) DIV 70 * - 93 col2
----
-71
0

skipif mysql # not compatible
query II rowsort label-1906
SELECT ALL - COALESCE ( + 71, + 86, + - 19 ), 59 * - ( - - COUNT ( * ) ) / 70 * - 93 col2
----
-71
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1907
SELECT CASE + 38 WHEN + + 52 * - COUNT( * ) THEN NULL WHEN - + 30 / + 21 THEN + + 15 ELSE - - 83 - 6 END * + COUNT( * ) * + 55 - + ( + + 9 ) - - 6 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT CASE + 38 WHEN + + 52 * - COUNT ( * ) THEN NULL WHEN - + 30 / + 21 THEN + + 15 ELSE - - 83 - 6 END * + COUNT ( * ) * + 55 - + ( + + 9 ) - - 6 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT + CAST( 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-1908
SELECT + CAST ( 54 AS INTEGER )
----
54

query I rowsort
SELECT + 40 + + 18 * + 80 AS col1
----
1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT DISTINCT COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ( + 32 ) + - - COUNT( * ) + + 62
----
95

skipif mysql # not compatible
query I rowsort label-1911
SELECT ( + 32 ) + - - COUNT ( * ) + + 62
----
95

query I rowsort
SELECT ALL + ( + 62 ) * + - 78
----
-4836

query I rowsort
SELECT - 63 * + - 44 AS col1
----
2772

query II rowsort
SELECT ALL + 53, - 38 * - + 24 + - - 31 col1
----
53
943

query I rowsort
SELECT DISTINCT + - 29 * 88 * - 71
----
181192

onlyif mysql # aggregate syntax: 
query III rowsort label-1916
SELECT ALL + COUNT( * ), 70 * - + 31 + 68 col0, - 26 AS col2
----
1
-2102
-26

skipif mysql # not compatible
query III rowsort label-1916
SELECT ALL + COUNT ( * ), 70 * - + 31 + 68 col0, - 26 AS col2
----
1
-2102
-26

query I rowsort
SELECT - - ( - - 41 ) col1
----
41

query I rowsort
SELECT ALL + 14 * - 34
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT + COUNT( * ) * - 24 + - - 81 col1
----
57

skipif mysql # not compatible
query I rowsort label-1919
SELECT + COUNT ( * ) * - 24 + - - 81 col1
----
57

query I rowsort
SELECT + 99 * + 53 AS col0
----
5247

query II rowsort
SELECT 36 + 40 AS col1, + 95 + + 91
----
76
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT 13 - - - 71 + - + COUNT( DISTINCT - 76 )
----
-59

skipif mysql # not compatible
query I rowsort label-1922
SELECT 13 - - - 71 + - + COUNT ( DISTINCT - 76 )
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-1923
SELECT 51 DIV - + 46, 5 * + 3 + 55 AS col0
----
-1
70

skipif mysql # not compatible
query II rowsort label-1923
SELECT 51 / - + 46, 5 * + 3 + 55 AS col0
----
-1
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT ALL - CAST( + - MIN( 74 ) AS SIGNED ) + - 79 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL - CAST ( + - MIN ( 74 ) AS INTEGER ) + - 79 AS col1
----
-5

query I rowsort
SELECT DISTINCT - 14 + - - NULLIF ( 48, - + 68 ) AS col0
----
34

query I rowsort
SELECT ALL 45 * - 21
----
-945

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1927
SELECT 41 DIV - - SUM( DISTINCT + + 23 ), 38 AS col0
----
1
38

skipif mysql # not compatible
query II rowsort label-1927
SELECT 41 / - - SUM ( DISTINCT + + 23 ), 38 AS col0
----
1
38

query II rowsort
SELECT DISTINCT + 42 + + - 61 AS col0, 32 + - - 18 * 65 * - 64
----
-19
-74848

query I rowsort
SELECT DISTINCT 80 * + + 28 AS col0
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL 39 + 59 * - - COUNT( * ) * + 89 AS col2
----
5290

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL 39 + 59 * - - COUNT ( * ) * + 89 AS col2
----
5290

query I rowsort
SELECT 31 + + 34 + - 21 + 6 * + 21 col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT 67 + - - COUNT( - 3 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-1932
SELECT 67 + - - COUNT ( - 3 ) col1
----
68

query I rowsort
SELECT 38 * - ( + + 81 )
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL 81 * - COUNT( * ) + - 74 AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL 81 * - COUNT ( * ) + - 74 AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT COUNT( ALL 76 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1935
SELECT COUNT ( ALL 76 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL 87 * 39 + - COUNT( * )
----
3392

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL 87 * 39 + - COUNT ( * )
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT + COALESCE ( - CASE - 51 WHEN - 29 THEN NULL WHEN - - MIN( DISTINCT 90 ) + - - 25 * - 55 * MIN( ALL - 28 ) + 96 THEN + - 92 ELSE + - 38 END, 93 * + 95 - 32 - - 43 + + COUNT( * ) ) * - 39 + - 27
----
-1509

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + COALESCE ( - CASE - 51 WHEN - 29 THEN NULL WHEN - - MIN ( DISTINCT 90 ) + - - 25 * - 55 * MIN ( ALL - 28 ) + 96 THEN + - 92 ELSE + - 38 END, 93 * + 95 - 32 - - 43 + + COUNT ( * ) ) * - 39 + - 27
----
-1509

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL SUM( - COALESCE ( ( 5 ), 50 ) ) + - + ( 77 ) - + CASE + 96 WHEN 7 * + COUNT( * ) THEN - 68 * - + 58 * - 16 ELSE 50 END * + COUNT( DISTINCT + + 96 ) * - - 46
----
-2382

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL SUM ( - COALESCE ( ( 5 ), 50 ) ) + - + ( 77 ) - + CASE + 96 WHEN 7 * + COUNT ( * ) THEN - 68 * - + 58 * - 16 ELSE 50 END * + COUNT ( DISTINCT + + 96 ) * - - 46
----
-2382

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT + CASE 7 WHEN + - 78 * - + 18 * + 4 * + 53 THEN - - 55 + - 42 + + - COUNT( * ) ELSE NULL END - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + CASE 7 WHEN + - 78 * - + 18 * + 4 * + 53 THEN - - 55 + - 42 + + - COUNT ( * ) ELSE NULL END - - 23
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - COUNT( * ) * + 51 + - SUM( ALL + 17 )
----
-68

skipif mysql # not compatible
query I rowsort label-1942
SELECT - COUNT ( * ) * + 51 + - SUM ( ALL + 17 )
----
-68

query I rowsort
SELECT DISTINCT - - 37
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1944
SELECT ALL - 69 * - CASE - - 61 WHEN + NULLIF ( 80, + 93 ) THEN - - COUNT( DISTINCT + 44 ) END * 69 + 79 AS col1, - NULLIF ( + + ( 24 ), 39 ) + - 17 - - 45
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1944
SELECT ALL - 69 * - CASE - - 61 WHEN + NULLIF ( 80, + 93 ) THEN - - COUNT ( DISTINCT + 44 ) END * 69 + 79 AS col1, - NULLIF ( + + ( 24 ), 39 ) + - 17 - - 45
----
NULL
4

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

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

query I rowsort
SELECT DISTINCT - - 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT - COALESCE ( + CASE COALESCE ( - COUNT( - 88 ), - + 30 + + 53 ) WHEN + + 29 THEN NULL ELSE + 91 + - 98 END, - 59, + 93 ) * - 76
----
-532

skipif mysql # not compatible
query I rowsort label-1947
SELECT - COALESCE ( + CASE COALESCE ( - COUNT ( - 88 ), - + 30 + + 53 ) WHEN + + 29 THEN NULL ELSE + 91 + - 98 END, - 59, + 93 ) * - 76
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT - 76 * - COUNT( ALL + 44 ) + - - 82 AS col2
----
158

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT - 76 * - COUNT ( ALL + 44 ) + - - 82 AS col2
----
158

query I rowsort
SELECT + NULLIF ( - - 64, AVG ( DISTINCT + ( 23 ) ) ) / 94 * 66 * - - CASE - 43 WHEN - 19 THEN 17 END * - 33 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1950
SELECT 1 + ( CAST( NULL AS SIGNED ) ) + + 83 + 44 AS col0, 14 - + 45 AS col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-1950
SELECT 1 + ( CAST ( NULL AS INTEGER ) ) + + 83 + 44 AS col0, 14 - + 45 AS col0
----
NULL
-31

query I rowsort
SELECT + - 62 * - 35
----
2170

query I rowsort
SELECT - + CASE + + 62 WHEN 75 * + 39 THEN NULL WHEN + 59 THEN + 78 END * + 84 + + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1953
SELECT ALL ( + - COUNT( * ) ) + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL ( + - COUNT ( * ) ) + - ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT 86 AS col1, + 16 + + ( 68 )
----
86
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT + 99 + + ( 31 ) + ( - CAST( 65 AS SIGNED ) ) - - + 45 * 48 + - COUNT( * ) AS col1
----
2224

skipif mysql # not compatible
query I rowsort label-1955
SELECT + 99 + + ( 31 ) + ( - CAST ( 65 AS INTEGER ) ) - - + 45 * 48 + - COUNT ( * ) AS col1
----
2224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT + 58 - - - COALESCE ( + 23, - + 87 * + COUNT( * ) * + ( - 15 ) ) DIV - ( + + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1956
SELECT + 58 - - - COALESCE ( + 23, - + 87 * + COUNT ( * ) * + ( - 15 ) ) / - ( + + COUNT ( * ) ) AS col2
----
81

query II rowsort
SELECT ALL - ( - 50 ) * + - 64 col2, + 78 AS col0
----
-3200
78

query I rowsort
SELECT ALL 81 + + - 13 AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT DISTINCT - 83 + - MAX( ALL - 24 ) * 25, + MIN( 39 ) AS col2
----
517
39

skipif mysql # not compatible
query II rowsort label-1959
SELECT DISTINCT - 83 + - MAX ( ALL - 24 ) * 25, + MIN ( 39 ) AS col2
----
517
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - COUNT( DISTINCT - 31 ) + 11 + + 85
----
95

skipif mysql # not compatible
query I rowsort label-1960
SELECT - COUNT ( DISTINCT - 31 ) + 11 + + 85
----
95

query II rowsort
SELECT DISTINCT 68 AS col2, + 24 col1
----
68
24

query I rowsort
SELECT ALL - 65 + - 23
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - 45 + - COUNT( * ) + - - 43 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 45 + - COUNT ( * ) + - - 43 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL COUNT( + - 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL COUNT ( + - 54 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1965
SELECT - CASE + + COUNT( ALL + 71 ) WHEN - + 80 THEN - 97 * + COALESCE ( - 51, + + CASE + MIN( ALL - 19 ) WHEN - - COUNT( * ) THEN COUNT( * ) + - AVG ( + ( 93 ) ) END - - CASE + ( + COUNT( * ) ) WHEN + - MIN( ALL + 26 ) + 19 THEN + + CAST( NULL AS DECIMAL ) WHEN - 65 THEN + + 52 ELSE NULL END, - 66, - 25 ) / + 33 + - 74 - - MAX( ALL 95 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT - CASE + + COUNT ( ALL + 71 ) WHEN - + 80 THEN - 97 * + COALESCE ( - 51, + + CASE + MIN ( ALL - 19 ) WHEN - - COUNT ( * ) THEN COUNT ( * ) + - AVG ( + ( 93 ) ) END - - CASE + ( + COUNT ( * ) ) WHEN + - MIN ( ALL + 26 ) + 19 THEN + + CAST ( NULL AS REAL ) WHEN - 65 THEN + + 52 ELSE NULL END, - 66, - 25 ) / + 33 + - 74 - - MAX ( ALL 95 ) END
----
NULL

query I rowsort
SELECT - COALESCE ( - - 65, + ( + 86 ), 32 ) + - 43
----
-108

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

query I rowsort
SELECT - 9 * + 16 AS col0
----
-144

query I rowsort
SELECT - 15 * - + 4
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1970
SELECT DISTINCT - 47 + 32 DIV + + 80 AS col2, + COUNT( * ) * + MAX( + - ( - 72 ) ) col2
----
-47
72

skipif mysql # not compatible
query II rowsort label-1970
SELECT DISTINCT - 47 + 32 / + + 80 AS col2, + COUNT ( * ) * + MAX ( + - ( - 72 ) ) col2
----
-47
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL - 38 DIV + 15
----
-2

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - 38 / + 15
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL - 66 - + + SUM( + + ( + 96 ) )
----
-162

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - 66 - + + SUM ( + + ( + 96 ) )
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-1973
SELECT + 95 AS col1, + COUNT( DISTINCT 64 ) - 3 AS col1
----
95
-2

skipif mysql # not compatible
query II rowsort label-1973
SELECT + 95 AS col1, + COUNT ( DISTINCT 64 ) - 3 AS col1
----
95
-2

query I rowsort
SELECT - 20 * - + 72
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + SUM( - - 4 ) * 59 + 14
----
250

skipif mysql # not compatible
query I rowsort label-1975
SELECT + SUM ( - - 4 ) * 59 + 14
----
250

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

skipif mysql # not compatible
query I rowsort label-1976
SELECT - + 54 / - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - MIN( ALL - + 3 ) * - + 91 + - 12 + 29 * 15
----
150

skipif mysql # not compatible
query I rowsort label-1977
SELECT - MIN ( ALL - + 3 ) * - + 91 + - 12 + 29 * 15
----
150

query I rowsort
SELECT + + 4 * + 21 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL + + 0 * MIN( - 7 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL + + 0 * MIN ( - 7 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - COUNT( * ) - + + 94 col0
----
-95

skipif mysql # not compatible
query I rowsort label-1980
SELECT - COUNT ( * ) - + + 94 col0
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT - + 2 * - COUNT( ALL - - 44 ) + + CASE - COUNT( * ) WHEN + 39 THEN NULL WHEN - 17 THEN - 6 END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT - + 2 * - COUNT ( ALL - - 44 ) + + CASE - COUNT ( * ) WHEN + 39 THEN NULL WHEN - 17 THEN - 6 END * - 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT DISTINCT - - CAST( 16 AS SIGNED ) * - - 10 * + + 51 AS col2
----
8160

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT - - CAST ( 16 AS INTEGER ) * - - 10 * + + 51 AS col2
----
8160

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT + 81 * - CASE + - 2 WHEN + 49 * 17 * - 45 THEN - 99 END * - - NULLIF ( - 3, COUNT( * ) ) / - - 58 AS col2, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1984
SELECT + 81 * - CASE + - 2 WHEN + 49 * 17 * - 45 THEN - 99 END * - - NULLIF ( - 3, COUNT ( * ) ) / - - 58 AS col2, 78
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL + - 40 * + + 7 * + 83 - - 99 * + 75 + COALESCE ( - COUNT( DISTINCT + - 10 ), + 51 ) + - COUNT( * ) * + + 90 AS col2
----
-15906

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL + - 40 * + + 7 * + 83 - - 99 * + 75 + COALESCE ( - COUNT ( DISTINCT + - 10 ), + 51 ) + - COUNT ( * ) * + + 90 AS col2
----
-15906

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + 58 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1986
SELECT + 58 + - COUNT ( * )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT ALL + CAST( NULL AS SIGNED ) * 30 + - 15 + + 42 + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + CAST ( NULL AS INTEGER ) * 30 + - 15 + + 42 + + - 21
----
NULL

query I rowsort
SELECT ALL + 42 + 35
----
77

query I rowsort
SELECT - ( - 35 ) AS col1
----
35

query I rowsort
SELECT + 39 + + + 87 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT + COUNT( * ) DIV - + 48 * - 83 * - 18 * 16
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT + COUNT ( * ) / - + 48 * - 83 * - 18 * 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + 4 + - MIN( + + 10 ) * ( 31 )
----
-306

skipif mysql # not compatible
query I rowsort label-1992
SELECT + 4 + - MIN ( + + 10 ) * ( 31 )
----
-306

query I rowsort
SELECT ALL 27 + 49 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) + + - 20 * 86 * + 26 + + COUNT( * )
----
-44718

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) + + - 20 * 86 * + 26 + + COUNT ( * )
----
-44718

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT + 85 + - CASE + - 40 WHEN - + 45 * 5 * - 20 THEN NULL WHEN - 54 * MAX( + + 85 ) + 18 THEN + 37 * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 85 + - CASE + - 40 WHEN - + 45 * 5 * - 20 THEN NULL WHEN - 54 * MAX ( + + 85 ) + 18 THEN + 37 * CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT NULLIF ( 15, + + NULLIF ( + - NULLIF ( - 52, - 83 ), + - 1 / + CASE 17 WHEN 58 + + 70 THEN - - NULLIF ( + + 86, - + ( - - 19 ) / - + 14 ) + + 63 * + ( + - 17 ) ELSE - - COUNT( * ) END - + 76 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT NULLIF ( 15, + + NULLIF ( + - NULLIF ( - 52, - 83 ), + - 1 / + CASE 17 WHEN 58 + + 70 THEN - - NULLIF ( + + 86, - + ( - - 19 ) / - + 14 ) + + 63 * + ( + - 17 ) ELSE - - COUNT ( * ) END - + 76 ) ) AS col1
----
15

query II rowsort
SELECT ALL CASE + 67 WHEN + 11 THEN NULL WHEN + 81 + - 26 - - 76 THEN - 28 END AS col2, - 25 AS col2
----
NULL
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT + CASE + 19 WHEN - AVG ( 41 ) THEN - 84 END + - CAST( NULL AS SIGNED ) * 87 - + - COUNT( * ) + + + NULLIF ( - + 14, + + ( + 2 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT + CASE + 19 WHEN - AVG ( 41 ) THEN - 84 END + - CAST ( NULL AS INTEGER ) * 87 - + - COUNT ( * ) + + + NULLIF ( - + 14, + + ( + 2 ) ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL - 34 * + 80, - ( + - 71 ) AS col1
----
-2720
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - COUNT( - 56 ) - - 87 col0
----
86

skipif mysql # not compatible
query I rowsort label-2002
SELECT - COUNT ( - 56 ) - - 87 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL 61 * - COUNT( * ) * - 14
----
854

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL 61 * - COUNT ( * ) * - 14
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL MAX( + + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL MAX ( + + 93 ) AS col1
----
93

query I rowsort
SELECT ALL + - 48 * - - 59
----
-2832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT CAST( NULL AS SIGNED ) * + - 95 * 68 + - COUNT( * ) + - 46 * - NULLIF ( + COUNT( * ), + + COUNT( DISTINCT - 56 ) ) - - 63 + + - 47 * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT CAST ( NULL AS INTEGER ) * + - 95 * 68 + - COUNT ( * ) + - 46 * - NULLIF ( + COUNT ( * ), + + COUNT ( DISTINCT - 56 ) ) - - 63 + + - 47 * + 12 AS col1
----
NULL

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

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

query I rowsort
SELECT - - 31 * - 99 + + + 84
----
-2985

query I rowsort
SELECT - - 73 + 84 + + 11 col0
----
168

query II rowsort
SELECT - + 98 * - - 22, 56 AS col2
----
-2156
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT ALL + 76 DIV + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + 76 / + 28 AS col0
----
2

query I rowsort
SELECT + NULLIF ( - 39, + ( - 75 ) ) * + + 70 + - - 71 AS col0
----
-2659

query I rowsort
SELECT DISTINCT - 84 + + 46
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT ALL + 26 + - - 63 + - - 1 * - - 68 - + - 59 DIV - 9
----
151

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + 26 + - - 63 + - - 1 * - - 68 - + - 59 / - 9
----
151

query II rowsort
SELECT 0 + + - 57 * 53 * + 15 AS col0, 38 AS col1
----
-45315
38

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

skipif mysql # not compatible
query I rowsort label-2017
SELECT ( - COUNT ( - - 39 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2018
SELECT ALL - COUNT( * ) * + COUNT( ALL - 21 ) * + CAST( NULL AS DECIMAL ) + + 79 + + 65 + + + COUNT( DISTINCT - - 37 ) / - 22 * - 2 + + - CAST( NULL AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - COUNT ( * ) * + COUNT ( ALL - 21 ) * + CAST ( NULL AS REAL ) + + 79 + + 65 + + + COUNT ( DISTINCT - - 37 ) / - 22 * - 2 + + - CAST ( NULL AS INTEGER ) * + 10
----
NULL

query I rowsort
SELECT + 18 + 85 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT - + 51 + - - COUNT( * ) + - - 57 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT - + 51 + - - COUNT ( * ) + - - 57 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT 79 * + SUM( ALL + - 4 ) * ( - 98 ) / NULLIF ( + - CAST( NULL AS SIGNED ), + 98 ) + 60 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT 79 * + SUM ( ALL + - 4 ) * ( - 98 ) / NULLIF ( + - CAST ( NULL AS INTEGER ), + 98 ) + 60 + - 16
----
NULL

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

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

query I rowsort
SELECT ALL 22 + - 38 AS col2
----
-16

query II rowsort
SELECT ALL 86 - 38 + 28 AS col1, 4 + NULLIF ( + 42, + 79 ) AS col2
----
76
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT SUM( + 26 ) * 55 * - 30
----
-42900

skipif mysql # not compatible
query I rowsort label-2025
SELECT SUM ( + 26 ) * 55 * - 30
----
-42900

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

skipif mysql # not compatible
query I rowsort label-2026
SELECT ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 15 * 17
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT ( 5 ) + - MAX( + 74 ) DIV - + 28 * + COALESCE ( + COUNT( * ), 57 ) + + 28 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2029
SELECT ( 5 ) + - MAX ( + 74 ) / - + 28 * + COALESCE ( + COUNT ( * ), 57 ) + + 28 AS col1
----
35

query I rowsort
SELECT ALL 20 * - 55
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT MAX( + 42 ) + 73 + + + 96 AS col1
----
211

skipif mysql # not compatible
query I rowsort label-2031
SELECT MAX ( + 42 ) + 73 + + + 96 AS col1
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT SUM( + 74 ) * + - 75 col2
----
-5550

skipif mysql # not compatible
query I rowsort label-2032
SELECT SUM ( + 74 ) * + - 75 col2
----
-5550

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

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

query I rowsort
SELECT ALL - ( - NULLIF ( + 6, - 84 ) )
----
6

query I rowsort
SELECT + 91 * + 2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL + 91 * - MAX( 64 ) * + 62 * + 15 - - + COUNT( * ) - - 12 + - + 67 AS col2
----
-5416374

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + 91 * - MAX ( 64 ) * + 62 * + 15 - - + COUNT ( * ) - - 12 + - + 67 AS col2
----
-5416374

query I rowsort
SELECT ALL - + 33 + - - 70 AS col1
----
37

query I rowsort
SELECT DISTINCT + - 70 * - 55
----
3850

query I rowsort
SELECT ALL 88 + - + 39 AS col0
----
49

query I rowsort
SELECT + 45 * + 10 + + 39
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - SUM( ALL - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-2041
SELECT - SUM ( ALL - - 37 )
----
-37

query I rowsort
SELECT ALL - 55 + - NULLIF ( - 99, + 46 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT 69 * + - 60 + ( 71 ) * NULLIF ( - 40, - 27 + - - 8 * + + 10 DIV - 63 ) DIV - - 41 + - 61 - MIN( ALL - + 39 )
----
-4231

skipif mysql # not compatible
query I rowsort label-2043
SELECT 69 * + - 60 + ( 71 ) * NULLIF ( - 40, - 27 + - - 8 * + + 10 / - 63 ) / - - 41 + - 61 - MIN ( ALL - + 39 )
----
-4231

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

query I rowsort
SELECT ALL - 6 + 26 + - 37 * - 70 * - 23 + + 23
----
-59527

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + 7 - 86 - - COUNT( ALL ( + + 39 ) ) + - 38 * - NULLIF ( + COUNT( * ), 97 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2046
SELECT + 7 - 86 - - COUNT ( ALL ( + + 39 ) ) + - 38 * - NULLIF ( + COUNT ( * ), 97 ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT ALL + - 53 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL + - 53 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + 24 * + + MAX( + 74 )
----
1776

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 24 * + + MAX ( + 74 )
----
1776

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

skipif mysql # not compatible
query II rowsort label-2049
SELECT 94 AS col2, COUNT ( * ) AS col0
----
94
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2050
SELECT 15 * - CAST( NULL AS DECIMAL ) * - - 58 + 94, ( - + COUNT( * ) ) + 39 * MIN( - + 55 ) * - COUNT( * ) col1
----
NULL
2144

skipif mysql # not compatible
query II rowsort label-2050
SELECT 15 * - CAST ( NULL AS REAL ) * - - 58 + 94, ( - + COUNT ( * ) ) + 39 * MIN ( - + 55 ) * - COUNT ( * ) col1
----
NULL
2144

query I rowsort
SELECT 61 - 94 - - 32
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2052
SELECT 31 * - 24, - 8 DIV + 70 AS col0
----
-744
0

skipif mysql # not compatible
query II rowsort label-2052
SELECT 31 * - 24, - 8 / + 70 AS col0
----
-744
0

query I rowsort
SELECT 70 - - 95
----
165

query I rowsort
SELECT ALL + 79 - - 9 + - 39
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2055
SELECT 45 col0, 45 + - CAST( - 4 AS SIGNED ) * + + 33
----
45
177

skipif mysql # not compatible
query II rowsort label-2055
SELECT 45 col0, 45 + - CAST ( - 4 AS INTEGER ) * + + 33
----
45
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT 51 + - 9 - + 0 + + - 63 - + SUM( ALL + 10 ) * 4 * + - 45 * + COUNT( * ) - + MIN( + 99 ) + + 70 col0
----
1750

skipif mysql # not compatible
query I rowsort label-2056
SELECT 51 + - 9 - + 0 + + - 63 - + SUM ( ALL + 10 ) * 4 * + - 45 * + COUNT ( * ) - + MIN ( + 99 ) + + 70 col0
----
1750

query II rowsort
SELECT + 17 col0, 5 * 47
----
17
235

onlyif mysql # DIV for integer division: 
query I rowsort label-2058
SELECT 60 + + - 30 + - 0 DIV - 39 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2058
SELECT 60 + + - 30 + - 0 / - 39 AS col1
----
30

query II rowsort
SELECT ALL 25, - ( - - 51 ) col2
----
25
-51

query II rowsort
SELECT - 26 AS col0, + 71 * + CASE - 50 WHEN - 16 THEN - ( 15 ) WHEN + - 52 + 43 THEN NULL END * - - 52 + - 49 AS col0
----
-26
NULL

query I rowsort
SELECT 56 + - 47 AS col1
----
9

query I rowsort
SELECT 66 + + 32
----
98

query I rowsort
SELECT 72 + - 22
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT SUM( DISTINCT + - ( ( - 21 ) ) ) * - MAX( ALL + 88 ) AS col2, 86
----
-1848
86

skipif mysql # not compatible
query II rowsort label-2064
SELECT SUM ( DISTINCT + - ( ( - 21 ) ) ) * - MAX ( ALL + 88 ) AS col2, 86
----
-1848
86

query II rowsort
SELECT ALL - 32 AS col2, 3
----
-32
3

query I rowsort
SELECT 76 + - - 27 AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT ALL - 42 DIV - MIN( ALL + + 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - 42 / - MIN ( ALL + + 55 ) AS col2
----
0

query I rowsort
SELECT 22 + - 14
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2069
SELECT 51 AS col0, + 17 + - - 27 + + 12 - + 62 - + - CAST( - ( + - 35 ) AS SIGNED ) col0
----
51
29

skipif mysql # not compatible
query II rowsort label-2069
SELECT 51 AS col0, + 17 + - - 27 + + 12 - + 62 - + - CAST ( - ( + - 35 ) AS INTEGER ) col0
----
51
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT DISTINCT - COALESCE ( + - 68, 68 + + ( + COUNT( - 48 ) ) * + COUNT( * ) + + MIN( + 38 ) - - 56 + - + 96 - 99, COUNT( + ( + 69 ) ) + + CAST( - - COUNT( * ) AS SIGNED ), - ( - 4 ) ) * + MAX( - 36 ) * + + 59 * - - CASE + 45 WHEN - COUNT( * ) / + 81 * 75 THEN 16 ELSE + - 25 * - + 12 END
----
-43329600

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - COALESCE ( + - 68, 68 + + ( + COUNT ( - 48 ) ) * + COUNT ( * ) + + MIN ( + 38 ) - - 56 + - + 96 - 99, COUNT ( + ( + 69 ) ) + + CAST ( - - COUNT ( * ) AS INTEGER ), - ( - 4 ) ) * + MAX ( - 36 ) * + + 59 * - - CASE + 45 WHEN - COUNT ( * ) / + 81 * 75 THEN 16 ELSE + - 25 * - + 12 END
----
-43329600

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL + 51 + NULLIF ( - 75, COUNT( * ) - - NULLIF ( + 9, - ( - 2 ) ) ) - - 62 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + 51 + NULLIF ( - 75, COUNT ( * ) - - NULLIF ( + 9, - ( - 2 ) ) ) - - 62 AS col1
----
38

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

query I rowsort
SELECT + + 65 + + 87
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL - CAST( - 42 AS SIGNED ) + COUNT( + 49 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - CAST ( - 42 AS INTEGER ) + COUNT ( + 49 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT + - 95 * 28 * + COUNT( * ) * 70 * CASE - MAX( - 23 ) WHEN + + 7 + + 46 - - 11 THEN - + 20 / 83 / + 40 - - + 79 WHEN - - CAST( NULL AS SIGNED ) * + 58 + - 26 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT + - 95 * 28 * + COUNT ( * ) * 70 * CASE - MAX ( - 23 ) WHEN + + 7 + + 46 - - 11 THEN - + 20 / 83 / + 40 - - + 79 WHEN - - CAST ( NULL AS INTEGER ) * + 58 + - 26 THEN NULL END
----
NULL

query I rowsort
SELECT + - 90 + 13 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT + COUNT( - + 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT + COUNT ( - + 45 ) AS col1
----
1

query I rowsort
SELECT + + 15 + - 0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 4 * + 72 * + 94 - 13 - - 47 + - - 71 - - COALESCE ( - + 93, + 54 ) * 73 + - ( - 42 ) * - 57 * 76 + COUNT( * )
----
-161555

skipif mysql # not compatible
query I rowsort label-2079
SELECT 4 * + 72 * + 94 - 13 - - 47 + - - 71 - - COALESCE ( - + 93, + 54 ) * 73 + - ( - 42 ) * - 57 * 76 + COUNT ( * )
----
-161555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT - + 88 DIV + COUNT( * ) + 6 col0
----
-82

skipif mysql # not compatible
query I rowsort label-2080
SELECT - + 88 / + COUNT ( * ) + 6 col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2081
SELECT ALL + - 87 * + 21 + 34 + + 36 AS col0, COUNT( * )
----
-1757
1

skipif mysql # not compatible
query II rowsort label-2081
SELECT ALL + - 87 * + 21 + 34 + + 36 AS col0, COUNT ( * )
----
-1757
1

query I rowsort
SELECT + 5 + + - 27
----
-22

query I rowsort
SELECT ALL 13 * + 1 + - - 25 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2084
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col2, 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2084
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col2, 55 AS col2
----
NULL
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2085
SELECT ALL + - 88 AS col2, + 80 * + + CASE - - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) + - - MIN( - NULLIF ( 43, + - ( - ( + - 43 ) ) ) ) + - COUNT( * ) THEN NULL WHEN - + SUM( DISTINCT 49 ) / - 31 + + 61 + - + 5 + - - 56 * + 1 - + 30 * - CAST( - 93 AS SIGNED ) * - 29 + - COUNT( * ) / - - 99 THEN - - ( 23 ) * + CAST( - ( + COALESCE ( + COUNT( * ), 76 ) ) AS SIGNED ) * - 77 ELSE - 12 END * 25 + - 69
----
-88
-24069

skipif mysql # not compatible
query II rowsort label-2085
SELECT ALL + - 88 AS col2, + 80 * + + CASE - - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) + - - MIN ( - NULLIF ( 43, + - ( - ( + - 43 ) ) ) ) + - COUNT ( * ) THEN NULL WHEN - + SUM ( DISTINCT 49 ) / - 31 + + 61 + - + 5 + - - 56 * + 1 - + 30 * - CAST ( - 93 AS INTEGER ) * - 29 + - COUNT ( * ) / - - 99 THEN - - ( 23 ) * + CAST ( - ( + COALESCE ( + COUNT ( * ), 76 ) ) AS INTEGER ) * - 77 ELSE - 12 END * 25 + - 69
----
-88
-24069

query I rowsort
SELECT - + 87 * - 23 * + 96 + - 38 AS col2
----
192058

query I rowsort
SELECT + NULLIF ( + + 76, - + 13 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT - 98 * - CAST( - - 71 AS SIGNED ) * 53
----
368774

skipif mysql # not compatible
query I rowsort label-2088
SELECT - 98 * - CAST ( - - 71 AS INTEGER ) * 53
----
368774

query II rowsort
SELECT + ( + 55 ) AS col2, - 86
----
55
-86

query I rowsort
SELECT ALL + 37 * 56 - - 48 AS col1
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT MIN( DISTINCT + 1 ) * + 31 + - + 67 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2091
SELECT MIN ( DISTINCT + 1 ) * + 31 + - + 67 AS col1
----
-36

query I rowsort
SELECT ALL + NULLIF ( - ( 73 ), - 56 * 66 * + - NULLIF ( - - ( - - 70 ), + - 3 + 71 ) ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT - 15 / - AVG ( ALL - ( + - ( + 50 ) ) ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT - 15 / - AVG ( ALL - ( + - ( + 50 ) ) ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT + 27 * + + 30 DIV + 10 col2
----
81

skipif mysql # not compatible
query I rowsort label-2094
SELECT + 27 * + + 30 / + 10 col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT ALL MAX( ALL - 47 ) col1, - 59
----
-47
-59

skipif mysql # not compatible
query II rowsort label-2096
SELECT ALL MAX ( ALL - 47 ) col1, - 59
----
-47
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT - 9 + + - 27 + + 3 + - 25 DIV ( + 26 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 9 + + - 27 + + 3 + - 25 / ( + 26 ) AS col2
----
-33

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

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT + COUNT ( * ) + 25 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT DISTINCT 8 + - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT 8 + - + COUNT ( * )
----
7

query I rowsort
SELECT DISTINCT + + 99 + - 53 * 8 * + 78 AS col0
----
-32973

query I rowsort
SELECT - + 94 + ( - + 15 ) + + 21 * + 45 * 44 AS col2
----
41471

query I rowsort
SELECT ALL + + ( - + 36 ) + - 15
----
-51

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

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

query I rowsort
SELECT + - 19 * + ( - + 75 ) AS col0
----
1425

query II rowsort
SELECT - 48 * - 3 AS col1, 2 + + 45
----
144
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + - COUNT( - 33 ) + - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + - COUNT ( - 33 ) + - 8 AS col0
----
-9

query I rowsort
SELECT - 76 / + CASE - + ( + - 31 ) WHEN + + 94 * - + 71 THEN 13 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 47 * - 69 - - 80, - 61 AS col1
----
3323
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2109
SELECT DISTINCT - - 44 DIV 69, COUNT( * ) + + + COUNT( * ) AS col1
----
0
2

skipif mysql # not compatible
query II rowsort label-2109
SELECT DISTINCT - - 44 / 69, COUNT ( * ) + + + COUNT ( * ) AS col1
----
0
2

query I rowsort
SELECT - - 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - COALESCE ( - MIN( DISTINCT + 30 ), + 3 ) * + - SUM( DISTINCT + + 86 ) * - + 33 + COUNT( * ) * + - 67 * - - ( + - 77 ) + + - ( ( + 30 ) ) AS col1
----
90269

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - COALESCE ( - MIN ( DISTINCT + 30 ), + 3 ) * + - SUM ( DISTINCT + + 86 ) * - + 33 + COUNT ( * ) * + - 67 * - - ( + - 77 ) + + - ( ( + 30 ) ) AS col1
----
90269

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - COUNT( ALL + 57 ) * 41 * + 7 AS col2
----
-287

skipif mysql # not compatible
query I rowsort label-2112
SELECT - COUNT ( ALL + 57 ) * 41 * + 7 AS col2
----
-287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT - + 97 * - 47 * COUNT( * ) * + NULLIF ( 88, - - 74 ) + + ( - ( COALESCE ( - 29, 71 * - - 95 DIV 4 ) ) )
----
401221

skipif mysql # not compatible
query I rowsort label-2113
SELECT - + 97 * - 47 * COUNT ( * ) * + NULLIF ( 88, - - 74 ) + + ( - ( COALESCE ( - 29, 71 * - - 95 / 4 ) ) )
----
401221

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT ALL - - ( 8 ) DIV - 61 * - - 15 * - 31 + 24 - - + 11 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - - ( 8 ) / - 61 * - - 15 * - 31 + 24 - - + 11 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT 48 DIV - 33 + - - 30 DIV 12 + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2115
SELECT 48 / - 33 + - - 30 / 12 + 88 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT - 93 DIV - - 36 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2116
SELECT - 93 / - - 36 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT + CAST( NULL AS SIGNED ) AS col0, 57 - - 38 * - ( + - 76 ) * - - MIN( ALL - 27 ) AS col2
----
NULL
-77919

skipif mysql # not compatible
query II rowsort label-2117
SELECT + CAST ( NULL AS INTEGER ) AS col0, 57 - - 38 * - ( + - 76 ) * - - MIN ( ALL - 27 ) AS col2
----
NULL
-77919

query I rowsort
SELECT + 69 - 65 - - - 17 * 0
----
4

query I rowsort
SELECT + COALESCE ( 48, + - 17 )
----
48

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

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

query I rowsort
SELECT ALL 57 * + + 67 col2
----
3819

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2123
SELECT 88 * CAST( NULL AS SIGNED ) + + COUNT( 71 ) + + + COUNT( * ) * 3 + - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT 88 * CAST ( NULL AS INTEGER ) + + COUNT ( 71 ) + + + COUNT ( * ) * 3 + - 51 AS col0
----
NULL

query I rowsort
SELECT + 39 * + - 82
----
-3198

query I rowsort
SELECT ALL 51 * 42 * 37
----
79254

query I rowsort
SELECT ALL 97 * 33 AS col0
----
3201

query I rowsort
SELECT + 3 * - 62
----
-186

query I rowsort
SELECT COALESCE ( + 3, + 33, + + 84, + 91 ) AS col1
----
3

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

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

query I rowsort
SELECT DISTINCT 69 * - ( - 10 ) * - 92 * - 89 + - 57 * + 75 AS col1
----
5645445

query I rowsort
SELECT ALL 61 * - 37
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + MIN( ALL + 66 ) * ( 78 ) + + 34 AS col1
----
5182

skipif mysql # not compatible
query I rowsort label-2132
SELECT + MIN ( ALL + 66 ) * ( 78 ) + + 34 AS col1
----
5182

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

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

query I rowsort
SELECT DISTINCT 96 * - + 93
----
-8928

query I rowsort
SELECT DISTINCT ( 9 ) AS col2
----
9

query II rowsort
SELECT 36 * + 64 * - 89, 32 * + 34 * + 94 AS col2
----
-205056
102272

query II rowsort
SELECT DISTINCT 68 AS col2, - 62 AS col2
----
68
-62

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

skipif mysql # not compatible
query I rowsort label-2138
SELECT - COUNT ( * ) + + + 99 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT ALL + 59 DIV 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + 59 / 60 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT COUNT( * ) + 53 + + 1 DIV - + COUNT( * ) + + 13 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2140
SELECT COUNT ( * ) + 53 + + 1 / - + COUNT ( * ) + + 13 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT 62 + - 83 + + - 59 - 37 * + + COUNT( * ) + + 16 * + 90 * + ( - 16 ) + - + 72 AS col0
----
-23229

skipif mysql # not compatible
query I rowsort label-2141
SELECT 62 + - 83 + + - 59 - 37 * + + COUNT ( * ) + + 16 * + 90 * + ( - 16 ) + - + 72 AS col0
----
-23229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2142
SELECT ALL 20 DIV + + MIN( 55 ) + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL 20 / + + MIN ( 55 ) + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT + 60 + - 66 * ( + 18 ) * + + 13 - + 17 + CASE - - COUNT( * ) WHEN 29 THEN NULL ELSE - COUNT( * ) * - 35 END + + COUNT( * ) - COUNT( + - ( - + NULLIF ( - ( + ( - 91 ) ), - 33 * + 67 ) ) ) * 29 * + - 21 / MAX( DISTINCT - ( + 72 ) ) * + CAST( NULL AS SIGNED ) + + 25 * - + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 60 + - 66 * ( + 18 ) * + + 13 - + 17 + CASE - - COUNT ( * ) WHEN 29 THEN NULL ELSE - COUNT ( * ) * - 35 END + + COUNT ( * ) - COUNT ( + - ( - + NULLIF ( - ( + ( - 91 ) ), - 33 * + 67 ) ) ) * 29 * + - 21 / MAX ( DISTINCT - ( + 72 ) ) * + CAST ( NULL AS INTEGER ) + + 25 * - + 57 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2144
SELECT DISTINCT + AVG ( ALL + 63 ) * CASE + - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * - SUM( + + 28 ) / + COALESCE ( COALESCE ( 3, 69 + - + COUNT( * ) + + 58 - - 90 + COUNT( DISTINCT 71 ) / 88 ), - 63, + 63 * 28 ) * + 0 THEN - 60 + - 60 ELSE NULL END + + + 12 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + AVG ( ALL + 63 ) * CASE + - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * - SUM ( + + 28 ) / + COALESCE ( COALESCE ( 3, 69 + - + COUNT ( * ) + + 58 - - 90 + COUNT ( DISTINCT 71 ) / 88 ), - 63, + 63 * 28 ) * + 0 THEN - 60 + - 60 ELSE NULL END + + + 12 * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL - COUNT( * ) * + 53 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL - COUNT ( * ) * + 53 AS col1
----
-53

query I rowsort
SELECT 85 * + 54
----
4590

query I rowsort
SELECT NULLIF ( 19, - 27 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - - MAX( ALL + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-2148
SELECT - - MAX ( ALL + 41 ) AS col1
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2150
SELECT DISTINCT - ( 60 ) AS col0, + CAST( - - COALESCE ( - 27, - + 92, + COUNT( * ) * - + 11, 97 ) AS SIGNED ) * 40 + + + 54 AS col0
----
-60
-1026

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT - ( 60 ) AS col0, + CAST ( - - COALESCE ( - 27, - + 92, + COUNT ( * ) * - + 11, 97 ) AS INTEGER ) * 40 + + + 54 AS col0
----
-60
-1026

query I rowsort
SELECT DISTINCT 16 * + + 52
----
832

onlyif mysql # DIV for integer division: 
query II rowsort label-2152
SELECT ALL + 20 DIV + + 14, + 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL + 20 / + + 14, + 32 AS col1
----
1
32

query I rowsort
SELECT DISTINCT + 2 * + 93
----
186

query I rowsort
SELECT 60 * + + 38
----
2280

query I rowsort
SELECT + 16 * 10 * + 62 + - + 13 col0
----
9907

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2156
SELECT ALL 15 + + 53 * - - 80 * + + NULLIF ( + - ( - 47 ), CASE + - 99 WHEN - MAX( + + 76 ) THEN + 24 - 45 ELSE NULL END + - SUM( - 83 ) ) / + CAST( NULL AS DECIMAL ) * COALESCE ( + + 64, + 70 * + - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 15 + + 53 * - - 80 * + + NULLIF ( + - ( - 47 ), CASE + - 99 WHEN - MAX ( + + 76 ) THEN + 24 - 45 ELSE NULL END + - SUM ( - 83 ) ) / + CAST ( NULL AS REAL ) * COALESCE ( + + 64, + 70 * + - 21 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT 82 + COUNT( + 15 ) DIV + 16 - - - 44 DIV + - 21 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2157
SELECT 82 + COUNT ( + 15 ) / + 16 - - - 44 / + - 21 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT MIN( - - 78 ) * - 12
----
-936

skipif mysql # not compatible
query I rowsort label-2158
SELECT MIN ( - - 78 ) * - 12
----
-936

query I rowsort
SELECT DISTINCT - 30 + + 34 + + 75 * + - 12
----
-896

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

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

query I rowsort
SELECT DISTINCT - 30 * - 52 AS col1
----
1560

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT ALL - 72 + 10 DIV + 25 * + - 89 + 77 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - 72 + 10 / + 25 * + - 89 + 77 AS col0
----
5

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

skipif mysql # not compatible
query I rowsort label-2163
SELECT - ( + CASE + COUNT ( * ) WHEN 17 THEN 29 ELSE NULL END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT 9 * + 11 * + MIN( - 48 ) * + 72
----
-342144

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT 9 * + 11 * + MIN ( - 48 ) * + 72
----
-342144

query I rowsort
SELECT DISTINCT - 78 - + - 50 AS col1
----
-28

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

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

query I rowsort
SELECT - 24 * - 72 + + 28 * - + 12 - 30 + - - 2 * 14 * 45 AS col1
----
2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT + 33 DIV + MAX( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-2169
SELECT + 33 / + MAX ( + 44 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT + 54 / - CAST( NULL AS SIGNED ) - 74 - - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + 54 / - CAST ( NULL AS INTEGER ) - 74 - - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ( 9 ) - + CASE - CASE - 6 WHEN 67 THEN NULL ELSE 42 + - - 53 + + 78 * + - 83 / + - 96 END WHEN - 40 THEN NULL WHEN 88 + - 86 THEN NULL ELSE 38 + - + COUNT( * ) * 6 * - COUNT( * ) END + - - SUM( + 51 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2171
SELECT ( 9 ) - + CASE - CASE - 6 WHEN 67 THEN NULL ELSE 42 + - - 53 + + 78 * + - 83 / + - 96 END WHEN - 40 THEN NULL WHEN 88 + - 86 THEN NULL ELSE 38 + - + COUNT ( * ) * 6 * - COUNT ( * ) END + - - SUM ( + 51 ) AS col1
----
16

query I rowsort
SELECT 38 * 71 AS col0
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + - 2 * + MIN( ALL - - 2 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + - 2 * + MIN ( ALL - - 2 ) AS col2
----
-4

query I rowsort
SELECT 67 * + 86 col1
----
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT 70 * + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2175
SELECT 70 * + COUNT ( * ) AS col1
----
70

query I rowsort
SELECT ALL 28 + + 45 + + 98 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT 87 * - COUNT( + 99 ) * + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT 87 * - COUNT ( + 99 ) * + COUNT ( * )
----
-87

query I rowsort
SELECT + 24 * + 70 + - 19 col1
----
1661

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2179
SELECT CASE - 70 WHEN - - 0 * - NULLIF ( + 96, + - 20 ) * - 46 + CASE + + 14 WHEN - - 16 THEN COUNT( 97 ) WHEN - CAST( 23 AS DECIMAL ) THEN + 27 END THEN + - COALESCE ( + + 88, + 53 / + - 77 ) ELSE - 80 + + - 92 + + - NULLIF ( 39, - + 39 * + + 79 ) END * - CASE + 18 WHEN - + 22 THEN 95 + - CASE + 28 WHEN + SUM( DISTINCT - + 67 ) THEN NULL ELSE - 35 END / - - AVG ( ALL 51 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT CASE - 70 WHEN - - 0 * - NULLIF ( + 96, + - 20 ) * - 46 + CASE + + 14 WHEN - - 16 THEN COUNT ( 97 ) WHEN - CAST ( 23 AS REAL ) THEN + 27 END THEN + - COALESCE ( + + 88, + 53 / + - 77 ) ELSE - 80 + + - 92 + + - NULLIF ( 39, - + 39 * + + 79 ) END * - CASE + 18 WHEN - + 22 THEN 95 + - CASE + 28 WHEN + SUM ( DISTINCT - + 67 ) THEN NULL ELSE - 35 END / - - AVG ( ALL 51 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT DISTINCT 93 * - COUNT( * ) + - 42
----
-135

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT 93 * - COUNT ( * ) + - 42
----
-135

query I rowsort
SELECT ALL ( - 2 ) * 15 + - + 40
----
-70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT DISTINCT COUNT( * ) * 84 + + 23, COUNT( * ) AS col0
----
107
1

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT COUNT ( * ) * 84 + + 23, COUNT ( * ) AS col0
----
107
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT - CAST( + 3 AS SIGNED ) + ( + - 41 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2184
SELECT - CAST ( + 3 AS INTEGER ) + ( + - 41 ) AS col2
----
-44

query I rowsort
SELECT - 2 * - 89 * - 75 AS col2
----
-13350

query I rowsort
SELECT ALL + 54 * - 40 AS col1
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT MIN( - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2187
SELECT MIN ( - - 59 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2188
SELECT ALL + CASE NULLIF ( MIN( ALL ( 77 ) ), - 2 ) WHEN 55 - COALESCE ( COUNT( * ), 72 + + COALESCE ( - 86, 25 ) ) THEN NULL ELSE - 26 + 54 DIV 97 END
----
-26

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + CASE NULLIF ( MIN ( ALL ( 77 ) ), - 2 ) WHEN 55 - COALESCE ( COUNT ( * ), 72 + + COALESCE ( - 86, 25 ) ) THEN NULL ELSE - 26 + 54 / 97 END
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL CAST( 32 AS SIGNED ) - 99 * 52 AS col0
----
-5116

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL CAST ( 32 AS INTEGER ) - 99 * 52 AS col0
----
-5116

query I rowsort
SELECT - 66 * + 6
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT + CASE - COUNT( ( - 18 ) ) WHEN COUNT( * ) THEN NULL WHEN + ( - 41 ) + MAX( 75 ) THEN NULL WHEN 16 THEN 64 ELSE 38 END * - 61
----
-2318

skipif mysql # not compatible
query I rowsort label-2191
SELECT + CASE - COUNT ( ( - 18 ) ) WHEN COUNT ( * ) THEN NULL WHEN + ( - 41 ) + MAX ( 75 ) THEN NULL WHEN 16 THEN 64 ELSE 38 END * - 61
----
-2318

query I rowsort
SELECT DISTINCT + 0 * - 73
----
0

query I rowsort
SELECT - 42 + - 84
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + COUNT( * ) * - COUNT( DISTINCT - CASE 17 WHEN + 35 THEN + 3 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2194
SELECT + COUNT ( * ) * - COUNT ( DISTINCT - CASE 17 WHEN + 35 THEN + 3 END ) AS col0
----
0

query I rowsort
SELECT - 53 * 85 + - 50
----
-4555

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

query I rowsort
SELECT + 76 * + 22
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL 88 * COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL 88 * COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT + COUNT( - 62 ) + 94 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT + COUNT ( - 62 ) + 94 / - 94 AS col0
----
0

query I rowsort
SELECT DISTINCT + 38 * + 97
----
3686

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

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT SUM ( ALL - 0 ) + + 26 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT - CASE + 51 WHEN - 42 THEN 91 WHEN NULLIF ( - 15, - 23 * CAST( + 93 AS SIGNED ) ) THEN - 94 * 30 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT - CASE + 51 WHEN - 42 THEN 91 WHEN NULLIF ( - 15, - 23 * CAST ( + 93 AS INTEGER ) ) THEN - 94 * 30 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + COUNT( * ) + ( - 29 )
----
-28

skipif mysql # not compatible
query I rowsort label-2203
SELECT + COUNT ( * ) + ( - 29 )
----
-28

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

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

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

skipif mysql # not compatible
query I rowsort label-2205
SELECT + CAST ( 43 AS INTEGER ) / + 16 col1
----
2

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

skipif mysql # not compatible
query I rowsort label-2206
SELECT + CAST ( NULL AS INTEGER ) + + 38 * + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT - COALESCE ( ( + 0 ), CASE 21 WHEN 32 THEN NULL WHEN 59 + + 69 * 52 THEN NULL ELSE MAX( DISTINCT 97 ) END DIV - 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT - COALESCE ( ( + 0 ), CASE 21 WHEN 32 THEN NULL WHEN 59 + + 69 * 52 THEN NULL ELSE MAX ( DISTINCT 97 ) END / - 46 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 39 + 81 AS col0
----
120

query I rowsort
SELECT - COALESCE ( + 24, 60 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT - 69 + 40 DIV 79
----
-69

skipif mysql # not compatible
query I rowsort label-2210
SELECT - 69 + 40 / 79
----
-69

query I rowsort
SELECT + 80 * 42 AS col0
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2212
SELECT DISTINCT 51 DIV - 66 + + COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT 51 / - 66 + + COUNT ( * ) * 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + MAX( DISTINCT 30 ) * + 12 AS col1
----
360

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + MAX ( DISTINCT 30 ) * + 12 AS col1
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2214
SELECT DISTINCT 57 DIV COUNT( * ) + - 23 DIV 90 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT 57 / COUNT ( * ) + - 23 / 90 AS col1
----
57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT ALL - 80 DIV - 90 + - 83 * 52
----
-4316

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 80 / - 90 + - 83 * 52
----
-4316

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL COUNT( * ) * + 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL COUNT ( * ) * + 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + 82 * CASE - 95 WHEN + 85 THEN 90 - - COUNT( * ) WHEN 27 * + 30 THEN CASE + 18 WHEN + 81 * 25 + + 28 THEN NULL WHEN + 61 * - 5 THEN - 10 / 23 END WHEN - 90 * 56 - 84 THEN NULL ELSE NULL END + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 82 * CASE - 95 WHEN + 85 THEN 90 - - COUNT ( * ) WHEN 27 * + 30 THEN CASE + 18 WHEN + 81 * 25 + + 28 THEN NULL WHEN + 61 * - 5 THEN - 10 / 23 END WHEN - 90 * 56 - 84 THEN NULL ELSE NULL END + - 69 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT - CAST( 85 AS SIGNED ) * - 94 + - COUNT( * )
----
7989

skipif mysql # not compatible
query I rowsort label-2220
SELECT - CAST ( 85 AS INTEGER ) * - 94 + - COUNT ( * )
----
7989

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

query I rowsort
SELECT - 55 + 77
----
22

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

query I rowsort
SELECT - 84 + + NULLIF ( 41, + 34 * + 65 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + MAX( ALL + 37 ) * 2
----
74

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + MAX ( ALL + 37 ) * 2
----
74

query I rowsort
SELECT - 19 * 6 + + 92
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL - - 35 * 95 - COUNT( * ) AS col0
----
3324

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - - 35 * 95 - COUNT ( * ) AS col0
----
3324

query I rowsort
SELECT - - 25 * 75 col0
----
1875

query I rowsort
SELECT ALL - - 35 * 7 AS col2
----
245

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

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

query I rowsort
SELECT DISTINCT - 87 * - 87 AS col2
----
7569

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT - + 65 DIV + 7 col1
----
-9

skipif mysql # not compatible
query I rowsort label-2233
SELECT - + 65 / + 7 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT - NULLIF ( 10, 26 ) * 4 + + COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2234
SELECT - NULLIF ( 10, 26 ) * 4 + + COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT CASE 37 WHEN + 8 THEN - 81 * - 41 WHEN - 51 + 29 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT - - ( + 30 ) * + ( 9 * + 48 + CAST( + 1 + 29 AS SIGNED ) ) + - 72
----
13788

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT - - ( + 30 ) * + ( 9 * + 48 + CAST ( + 1 + 29 AS INTEGER ) ) + - 72
----
13788

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL + - ( COUNT( * ) ) * - 86
----
86

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + - ( COUNT ( * ) ) * - 86
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT ALL ( - 52 ) DIV - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL ( - 52 ) / - COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - 42 * + COALESCE ( MAX( 74 ) - + COUNT( * ) * - COUNT( - 24 / + 10 + 94 ), + 89, COALESCE ( + 43, + COUNT( DISTINCT 94 ) * 32 ) ) AS col0
----
-3150

skipif mysql # not compatible
query I rowsort label-2239
SELECT - 42 * + COALESCE ( MAX ( 74 ) - + COUNT ( * ) * - COUNT ( - 24 / + 10 + 94 ), + 89, COALESCE ( + 43, + COUNT ( DISTINCT 94 ) * 32 ) ) AS col0
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + COUNT( * ) + 23 col2
----
24

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + COUNT ( * ) + 23 col2
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL - 43 + - NULLIF ( 19 + + MIN( - CAST( + 37 AS SIGNED ) ) * 60, 71 * + 4 ) AS col2
----
2158

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - 43 + - NULLIF ( 19 + + MIN ( - CAST ( + 37 AS INTEGER ) ) * 60, 71 * + 4 ) AS col2
----
2158

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT - ( + 5 ) * - MAX( 9 + + 81 ) AS col2
----
450

skipif mysql # not compatible
query I rowsort label-2243
SELECT - ( + 5 ) * - MAX ( 9 + + 81 ) AS col2
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL COUNT( + 33 ) + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL COUNT ( + 33 ) + COUNT ( * ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - SUM( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-2245
SELECT - SUM ( - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + COUNT( - 0 ) - - 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2246
SELECT + COUNT ( - 0 ) - - 93 AS col0
----
94

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

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + 44 + - + COUNT ( * ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL - 89 + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - 89 + COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - ( - 88 )
----
88

query I rowsort
SELECT DISTINCT 97 * - 56 AS col2
----
-5432

query I rowsort
SELECT ALL 21 - 75
----
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2254
SELECT + ( - 93 ) * COUNT( * ) + - MIN( DISTINCT 4 ) DIV - 27
----
-93

skipif mysql # not compatible
query I rowsort label-2254
SELECT + ( - 93 ) * COUNT ( * ) + - MIN ( DISTINCT 4 ) / - 27
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT 1 * + 36 * COALESCE ( 11 * 6, 27 DIV - 50, 25, 85 )
----
2376

skipif mysql # not compatible
query I rowsort label-2255
SELECT 1 * + 36 * COALESCE ( 11 * 6, 27 / - 50, 25, 85 )
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT 36 * + + COALESCE ( CAST( NULL AS SIGNED ), + CAST( 5 AS SIGNED ) * 85 ) AS col2
----
15300

skipif mysql # not compatible
query I rowsort label-2256
SELECT 36 * + + COALESCE ( CAST ( NULL AS INTEGER ), + CAST ( 5 AS INTEGER ) * 85 ) AS col2
----
15300

query I rowsort
SELECT DISTINCT 20 * 11 AS col2
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL - SUM( DISTINCT + 91 ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL - SUM ( DISTINCT + 91 ) col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT COUNT( * ) + - 24 + - 51 * - 81 AS col2
----
4108

skipif mysql # not compatible
query I rowsort label-2259
SELECT COUNT ( * ) + - 24 + - 51 * - 81 AS col2
----
4108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL 49 / + 54 * - CASE - 90 WHEN - 99 / + 55 THEN NULL WHEN 89 THEN NULL ELSE CAST( NULL AS SIGNED ) * - 81 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL 49 / + 54 * - CASE - 90 WHEN - 99 / + 55 THEN NULL WHEN 89 THEN NULL ELSE CAST ( NULL AS INTEGER ) * - 81 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT COUNT( * ) * + - CASE - 69 WHEN + 73 THEN 64 / + 31 END / SUM( ALL 87 * 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT COUNT ( * ) * + - CASE - 69 WHEN + 73 THEN 64 / + 31 END / SUM ( ALL 87 * 23 )
----
NULL

query I rowsort
SELECT ALL - + CASE + 61 WHEN AVG ( + 87 ) + + 87 * 62 THEN 12 + 15 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2263
SELECT 74 DIV + COUNT( ALL 52 )
----
74

skipif mysql # not compatible
query I rowsort label-2263
SELECT 74 / + COUNT ( ALL 52 )
----
74

query I rowsort
SELECT ALL - 49 * + 96 * + 51
----
-239904

query I rowsort
SELECT + 37 + 51
----
88

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

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

query I rowsort
SELECT DISTINCT - ( - - CASE 33 WHEN 24 THEN - 38 END )
----
NULL

query I rowsort
SELECT DISTINCT 78 + - 55 AS col2
----
23

query I rowsort
SELECT ALL - ( + 22 ) + CASE WHEN NOT NULL IS NULL THEN + 79 + 73 END / 63 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - - MAX ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT - - CASE - 60 WHEN 70 * + 6 + 66 THEN NULL WHEN ( COUNT( * ) ) THEN + 76 END + + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - - CASE - 60 WHEN 70 * + 6 + 66 THEN NULL WHEN ( COUNT ( * ) ) THEN + 76 END + + 44 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL + + 95 + CASE 31 WHEN 31 + 18 THEN - 5 - - 19 WHEN 64 THEN ( + CAST( NULL AS SIGNED ) ) + + 9 * 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + + 95 + CASE 31 WHEN 31 + 18 THEN - 5 - - 19 WHEN 64 THEN ( + CAST ( NULL AS INTEGER ) ) + + 9 * 3 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 47 + + 13
----
-34

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

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

query I rowsort
SELECT - + CASE - - 25 WHEN + 51 THEN - 95 END
----
NULL

query I rowsort
SELECT - 62 - - 0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT - 76 DIV - COALESCE ( - 34, 7 DIV + 19 + 90 * COUNT( * ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-2277
SELECT - 76 / - COALESCE ( - 34, 7 / + 19 + 90 * COUNT ( * ) ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - + COUNT( * ) + + 60 * NULLIF ( 5, + 87 ) AS col0
----
299

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - + COUNT ( * ) + + 60 * NULLIF ( 5, + 87 ) AS col0
----
299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2279
SELECT - 94 AS col0, - CAST( + + 78 AS SIGNED ) * 30 + COUNT( * ) AS col0
----
-94
-2339

skipif mysql # not compatible
query II rowsort label-2279
SELECT - 94 AS col0, - CAST ( + + 78 AS INTEGER ) * 30 + COUNT ( * ) AS col0
----
-94
-2339

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT 79 * + COUNT( * ) * + 50 * + 15
----
59250

skipif mysql # not compatible
query I rowsort label-2280
SELECT 79 * + COUNT ( * ) * + 50 * + 15
----
59250

query II rowsort
SELECT ALL 50 AS col1, - NULLIF ( + + 61, 48 * 57 ) * ( - 12 + + 15 )
----
50
-183

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

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

query I rowsort
SELECT ALL - 3 * - 60 col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT 95 + - - 15 + - 85 * - COUNT( * )
----
195

skipif mysql # not compatible
query I rowsort label-2284
SELECT 95 + - - 15 + - 85 * - COUNT ( * )
----
195

query I rowsort
SELECT ALL 45 - - + 31 * 43 + 70 AS col1
----
1448

query II rowsort
SELECT DISTINCT 10, + 93 AS col2
----
10
93

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

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

query II rowsort
SELECT - 20 AS col1, ( + 49 ) AS col1
----
-20
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT COALESCE ( + 96, COUNT( - 88 ), 75 ) + + 58 * - 42
----
-2340

skipif mysql # not compatible
query I rowsort label-2289
SELECT COALESCE ( + 96, COUNT ( - 88 ), 75 ) + + 58 * - 42
----
-2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT ALL CASE + - 20 WHEN + 4 THEN + CAST( NULL AS SIGNED ) + 0 ELSE - 10 * - 33 END - 35 * + 95
----
-2995

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL CASE + - 20 WHEN + 4 THEN + CAST ( NULL AS INTEGER ) + 0 ELSE - 10 * - 33 END - 35 * + 95
----
-2995

query I rowsort
SELECT DISTINCT 44 * 32
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT 39 + - + 28 * + 6 + COALESCE ( + MIN( 17 ) + + 39 * 65, 29 + CAST( - 97 AS SIGNED ), - COALESCE ( 44, - CASE - ( 72 ) WHEN COUNT( * ) * 89 THEN NULL ELSE CAST( NULL AS SIGNED ) END + - 12, + 54 * + 21 ) ) * + MAX( 66 + 38 ) AS col1
----
265279

skipif mysql # not compatible
query I rowsort label-2292
SELECT 39 + - + 28 * + 6 + COALESCE ( + MIN ( 17 ) + + 39 * 65, 29 + CAST ( - 97 AS INTEGER ), - COALESCE ( 44, - CASE - ( 72 ) WHEN COUNT ( * ) * 89 THEN NULL ELSE CAST ( NULL AS INTEGER ) END + - 12, + 54 * + 21 ) ) * + MAX ( 66 + 38 ) AS col1
----
265279

query I rowsort
SELECT 10 * + + 3 * + 67
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL 79 * + COUNT( * ) * - 34 AS col0
----
-2686

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL 79 * + COUNT ( * ) * - 34 AS col0
----
-2686

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT - CASE + NULLIF ( - NULLIF ( - 5, - 4 ), 86 * + 44 ) WHEN 65 + - COUNT( * ) THEN NULL WHEN + 47 - - 99 THEN 80 * - 84 END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - CASE + NULLIF ( - NULLIF ( - 5, - 4 ), 86 * + 44 ) WHEN 65 + - COUNT ( * ) THEN NULL WHEN + 47 - - 99 THEN 80 * - 84 END * + 32
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 41 * 7 * - 51 AS col1
----
14637

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT MAX( + - ( - 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-2298
SELECT MAX ( + - ( - 62 ) )
----
62

query II rowsort
SELECT ALL - 0, 46 * + 69 AS col2
----
0
3174

query I rowsort
SELECT 36 * + 58
----
2088

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

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

query II rowsort
SELECT 10 AS col2, + 37 + - 21 AS col1
----
10
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT - 61 DIV + 37
----
-1

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 61 / + 37
----
-1

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

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - 79
----
NULL

query I rowsort
SELECT ALL + 37 + 48
----
85

query I rowsort
SELECT ( 33 ) + + + 72 * - 40
----
-2847

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT MAX( ALL + + 46 ) + + - 65 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT MAX ( ALL + + 46 ) + + - 65 AS col2
----
-19

query I rowsort
SELECT ALL - ( 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT - 46 + + 32 + - COUNT( * ) * NULLIF ( 82 * + 59, + 24 ) col0
----
-4852

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - 46 + + 32 + - COUNT ( * ) * NULLIF ( 82 * + 59, + 24 ) col0
----
-4852

query I rowsort
SELECT ALL - COALESCE ( - 2, 82 * - 0 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT + NULLIF ( - 49, + + 93 ) + COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT + NULLIF ( - 49, + + 93 ) + COUNT ( * ) col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT 68 + + + 59 * - 97 + - CAST( 40 AS SIGNED )
----
-5695

skipif mysql # not compatible
query I rowsort label-2313
SELECT 68 + + + 59 * - 97 + - CAST ( 40 AS INTEGER )
----
-5695

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + 85 + + 25 + 64 * COUNT( * ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + 85 + + 25 + 64 * COUNT ( * ) AS col0
----
174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + 60 + + - MAX( + 53 ) - 0
----
7

skipif mysql # not compatible
query I rowsort label-2316
SELECT + 60 + + - MAX ( + 53 ) - 0
----
7

query I rowsort
SELECT DISTINCT - 44 - + + 75 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL + COUNT( * ) - + 62 + - 75
----
-136

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + COUNT ( * ) - + 62 + - 75
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT DISTINCT + COUNT( * ) - 44 * + 88
----
-3871

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + COUNT ( * ) - 44 * + 88
----
-3871

query I rowsort
SELECT - 86 * - 52 AS col2
----
4472

query I rowsort
SELECT + ( - 15 ) * + 73 AS col0
----
-1095

query I rowsort
SELECT - COALESCE ( - 1, 54 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT + COUNT( * ) * - 33 * - 55 * + COUNT( * ) AS col0
----
1815

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + COUNT ( * ) * - 33 * - 55 * + COUNT ( * ) AS col0
----
1815

query I rowsort
SELECT - 50 * - 94
----
4700

query I rowsort
SELECT - 56 * - 62
----
3472

query I rowsort
SELECT - 67 - - 35 * - 69
----
-2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL COALESCE ( + + ( + COUNT( - + ( + 91 ) ) ), 3 * CAST( ( + 33 ) AS SIGNED ), 2 )
----
1

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL COALESCE ( + + ( + COUNT ( - + ( + 91 ) ) ), 3 * CAST ( ( + 33 ) AS INTEGER ), 2 )
----
1

query I rowsort
SELECT DISTINCT + 9 * - 12
----
-108

query I rowsort
SELECT - 20 * 14
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT ALL + 64 DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + 64 / 39
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT - COUNT( * ) DIV 63 * ( - + NULLIF ( ( + 40 ), - 11 ) ) * + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT - COUNT ( * ) / 63 * ( - + NULLIF ( ( + 40 ), - 11 ) ) * + 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL - 37 + ( - MIN( ( - 58 ) ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - 37 + ( - MIN ( ( - 58 ) ) ) col1
----
21

query I rowsort
SELECT - 25 * + 45
----
-1125

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT MIN( DISTINCT + 19 ) DIV 55 + + 27
----
27

skipif mysql # not compatible
query I rowsort label-2335
SELECT MIN ( DISTINCT + 19 ) / 55 + + 27
----
27

query I rowsort
SELECT - + 77 + + 41 AS col0
----
-36

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

skipif mysql # not compatible
query I rowsort label-2337
SELECT - - CAST ( NULL AS REAL ) + ( + + 31 ) * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2338
SELECT ALL + - NULLIF ( + CAST( - 39 AS SIGNED ), - CAST( NULL AS SIGNED ) ) * - NULLIF ( 37 + + COUNT( * ), - AVG ( DISTINCT 77 ) ) AS col0
----
-1482

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL + - NULLIF ( + CAST ( - 39 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) * - NULLIF ( 37 + + COUNT ( * ), - AVG ( DISTINCT 77 ) ) AS col0
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL MAX( ALL - 99 ) * + 26 + + 52 AS col2
----
-2522

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL MAX ( ALL - 99 ) * + 26 + + 52 AS col2
----
-2522

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - MIN( DISTINCT - 71 ) * + + 13 + - + 25 col0
----
898

skipif mysql # not compatible
query I rowsort label-2340
SELECT - MIN ( DISTINCT - 71 ) * + + 13 + - + 25 col0
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT + - 20 * - SUM( 19 ) AS col2
----
380

skipif mysql # not compatible
query I rowsort label-2341
SELECT + - 20 * - SUM ( 19 ) AS col2
----
380

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

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

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

skipif mysql # not compatible
query I rowsort label-2343
SELECT + + CAST ( - + 26 AS INTEGER ) * 71
----
-1846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT ALL - 65 DIV + 72 + + + ( + - 61 ) * - COALESCE ( + SUM( DISTINCT 50 ) * + 42, + ( 57 ) * - 26 + 98 )
----
128100

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - 65 / + 72 + + + ( + - 61 ) * - COALESCE ( + SUM ( DISTINCT 50 ) * + 42, + ( 57 ) * - 26 + 98 )
----
128100

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + ( + ( - 76 ) ) * - SUM( DISTINCT 1 ) + 8 - + NULLIF ( + ( 92 ), COUNT( DISTINCT - 38 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-2345
SELECT + ( + ( - 76 ) ) * - SUM ( DISTINCT 1 ) + 8 - + NULLIF ( + ( 92 ), COUNT ( DISTINCT - 38 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL + CASE WHEN NOT - COUNT( * ) <> ( - 67 * - COALESCE ( - 98 * + 36, CASE 68 WHEN 35 * + 44 THEN NULL ELSE 53 END ) ) THEN NULL WHEN COALESCE ( + COUNT( * ), - 28 + - 5 * + COUNT( * ) ) - - 41 IS NOT NULL THEN 78 END AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + CASE WHEN NOT - COUNT ( * ) <> ( - 67 * - COALESCE ( - 98 * + 36, CASE 68 WHEN 35 * + 44 THEN NULL ELSE 53 END ) ) THEN NULL WHEN COALESCE ( + COUNT ( * ), - 28 + - 5 * + COUNT ( * ) ) - - 41 IS NOT NULL THEN 78 END AS col1
----
78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT ALL COUNT( * ) DIV ( + CASE + 76 WHEN + 57 THEN - COALESCE ( 72, - MIN( ALL - 50 ) * 62 + MIN( ALL + 72 ), - 59, 56 + + 34 ) * 43 ELSE 28 END ) * - 8
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL COUNT ( * ) / ( + CASE + 76 WHEN + 57 THEN - COALESCE ( 72, - MIN ( ALL - 50 ) * 62 + MIN ( ALL + 72 ), - 59, 56 + + 34 ) * 43 ELSE 28 END ) * - 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL COUNT( * ) * MIN( ALL - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL COUNT ( * ) * MIN ( ALL - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT SUM( DISTINCT - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT SUM ( DISTINCT - 93 ) AS col2
----
-93

query I rowsort
SELECT DISTINCT 75 * - 95
----
-7125

query I rowsort
SELECT DISTINCT 33 * + 96
----
3168

query I rowsort
SELECT + 4 - - - 70
----
-66

query II rowsort
SELECT ALL 6 AS col2, - 94
----
6
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + CASE + - CASE - COUNT( DISTINCT + 27 ) WHEN + - 87 THEN NULL WHEN COUNT( * ) THEN + 57 WHEN + 69 THEN NULL END WHEN + 88 * 69 THEN COUNT( * ) * 64 END + 60 * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT + CASE + - CASE - COUNT ( DISTINCT + 27 ) WHEN + - 87 THEN NULL WHEN COUNT ( * ) THEN + 57 WHEN + 69 THEN NULL END WHEN + 88 * 69 THEN COUNT ( * ) * 64 END + 60 * 93 AS col2
----
NULL

query II rowsort
SELECT - 59, 44 + 74 * 65 col2
----
-59
4854

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2358
SELECT ALL COUNT( * ) AS col2, - CASE - - 62 WHEN + 87 THEN 63 + CAST( NULL AS DECIMAL ) / COUNT( * ) END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL COUNT ( * ) AS col2, - CASE - - 62 WHEN + 87 THEN 63 + CAST ( NULL AS REAL ) / COUNT ( * ) END
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT + 68 + - ( ( - COUNT( * ) ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2359
SELECT + 68 + - ( ( - COUNT ( * ) ) ) AS col1
----
69

query II rowsort
SELECT ALL 17, 1 + 31 AS col2
----
17
32

query I rowsort
SELECT + 44 + - ( 34 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL CASE WHEN + ( COUNT( * ) ) = + + COUNT( DISTINCT ( + NULLIF ( 92, 25 ) ) ) + ( - 90 ) THEN NULL WHEN - 28 IS NULL THEN 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL CASE WHEN + ( COUNT ( * ) ) = + + COUNT ( DISTINCT ( + NULLIF ( 92, 25 ) ) ) + ( - 90 ) THEN NULL WHEN - 28 IS NULL THEN 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL ( + 96 ) + + 92 * COUNT( * )
----
188

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL ( + 96 ) + + 92 * COUNT ( * )
----
188

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

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

skipif mysql # not compatible
query I rowsort label-2365
SELECT - COUNT ( * ) + + MIN ( - + 40 ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2366
SELECT ALL ( + 70 ) DIV + 40 col0, CASE 22 WHEN - 0 * COUNT( DISTINCT - 78 ) THEN 13 WHEN 21 THEN NULL END DIV - 39 + SUM( DISTINCT + 44 ) * + COALESCE ( COUNT( * ) + COUNT( * ), CAST( NULL AS DECIMAL ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2366
SELECT ALL ( + 70 ) / + 40 col0, CASE 22 WHEN - 0 * COUNT ( DISTINCT - 78 ) THEN 13 WHEN 21 THEN NULL END / - 39 + SUM ( DISTINCT + 44 ) * + COALESCE ( COUNT ( * ) + COUNT ( * ), CAST ( NULL AS REAL ) ) AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT ALL COALESCE ( + - 80, 64 DIV + 38 )
----
-80

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL COALESCE ( + - 80, 64 / + 38 )
----
-80

query I rowsort
SELECT + 60 * - 29 AS col1
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - ( - ( - COUNT( * ) ) ) + 40 * + 80 + 98 AS col2
----
3297

skipif mysql # not compatible
query I rowsort label-2369
SELECT - ( - ( - COUNT ( * ) ) ) + 40 * + 80 + 98 AS col2
----
3297

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT DISTINCT + SUM( - + 1 ) + - 92 AS col0, - 14 col1
----
-93
-14

skipif mysql # not compatible
query II rowsort label-2370
SELECT DISTINCT + SUM ( - + 1 ) + - 92 AS col0, - 14 col1
----
-93
-14

query I rowsort
SELECT DISTINCT + 43 * - 66 AS col1
----
-2838

query I rowsort
SELECT DISTINCT + 68 * 92
----
6256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT ALL - + 78 DIV COUNT( * ) + + ( + COUNT( * ) ) + - 85 + 65 DIV 89
----
-162

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - + 78 / COUNT ( * ) + + ( + COUNT ( * ) ) + - 85 + 65 / 89
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT - - 51 DIV - - 62 + 3 * - 99
----
-297

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - - 51 / - - 62 + 3 * - 99
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL 88 DIV 50 + 56 + - COUNT( * ) * + COUNT( * ) - - 76
----
132

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL 88 / 50 + 56 + - COUNT ( * ) * + COUNT ( * ) - - 76
----
132

query I rowsort
SELECT 71 * 66 * 55 - 56 - + - 44 * + 66 * 43
----
382546

query I rowsort
SELECT - - 65 * + 72 col0
----
4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT ALL - 60 / 96 * ( + 95 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - 60 / 96 * ( + 95 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT - + 91 * - 72 * + - ( 52 ) * - + 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT - + 91 * - 72 * + - ( 52 ) * - + 43 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + ( + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT - 95 + 59
----
-36

query I rowsort
SELECT DISTINCT + - ( + 92 ) * + 47 - 21 AS col0
----
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL + MIN( 28 ) - + - 68
----
96

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + MIN ( 28 ) - + - 68
----
96

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

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

query I rowsort
SELECT DISTINCT + 26 * 75 AS col1
----
1950

query II rowsort
SELECT + 0, 47 AS col1
----
0
47

query I rowsort
SELECT 94 * + 89
----
8366

query II rowsort
SELECT 30 + - 8 + + 25 * + 47 AS col1, + 0
----
1197
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2390
SELECT ALL - 65 AS col2, + 2 * 1 + - COUNT( * ) + 63 - - - COALESCE ( + COALESCE ( 87, + CASE + 21 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 45 - AVG ( 12 + 85 ) * + COUNT( * ) THEN NULL WHEN 31 THEN + SUM( ( - 7 ) ) ELSE 44 END * - 33, + 58 ), 54 ) * 25 DIV 77 * - NULLIF ( 70 - 83, 50 * 61 ) AS col2
----
-65
-300

skipif mysql # not compatible
query II rowsort label-2390
SELECT ALL - 65 AS col2, + 2 * 1 + - COUNT ( * ) + 63 - - - COALESCE ( + COALESCE ( 87, + CASE + 21 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 - AVG ( 12 + 85 ) * + COUNT ( * ) THEN NULL WHEN 31 THEN + SUM ( ( - 7 ) ) ELSE 44 END * - 33, + 58 ), 54 ) * 25 / 77 * - NULLIF ( 70 - 83, 50 * 61 ) AS col2
----
-65
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT - 58, 82 - + 10 - - SUM( DISTINCT + - 50 ) + - 43 AS col2
----
-58
-21

skipif mysql # not compatible
query II rowsort label-2391
SELECT - 58, 82 - + 10 - - SUM ( DISTINCT + - 50 ) + - 43 AS col2
----
-58
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT DISTINCT 21 DIV + - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT 21 / + - 48 AS col0
----
0

query I rowsort
SELECT ALL 56 * + 92
----
5152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT DISTINCT 68 + ( + COUNT( * ) ) DIV 40 * - - ( 72 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT 68 + ( + COUNT ( * ) ) / 40 * - - ( 72 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL NULLIF ( 91, CAST( NULL AS SIGNED ) * 57 ) + - + 66 + - 98 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL NULLIF ( 91, CAST ( NULL AS INTEGER ) * 57 ) + - + 66 + - 98 AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT 85 DIV - - 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT 85 / - - 78 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT 39 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT 39 / - + 65
----
0

query I rowsort
SELECT 10 - - - 71 col0
----
-61

query I rowsort
SELECT 45 * + 28 AS col0
----
1260

query I rowsort
SELECT ALL 20 * - 35 col0
----
-700

query I rowsort
SELECT ALL ( 63 ) + + 82 AS col0
----
145

query I rowsort
SELECT COALESCE ( - 75, + 24, - ( + 52 ) + - + COALESCE ( + 97, - 15 * 58 ) ) * 28
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT 29 DIV - ( + + 32 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT 29 / - ( + + 32 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT 2, + ( + - NULLIF ( + COUNT( ALL 15 ), 94 ) ) + 36 AS col2
----
2
35

skipif mysql # not compatible
query II rowsort label-2404
SELECT 2, + ( + - NULLIF ( + COUNT ( ALL 15 ), 94 ) ) + 36 AS col2
----
2
35

onlyif mysql # DIV for integer division: 
query II rowsort label-2405
SELECT ALL 49 + - 29 AS col0, 49 DIV + ( NULLIF ( - 71, 7 ) )
----
20
0

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL 49 + - 29 AS col0, 49 / + ( NULLIF ( - 71, 7 ) )
----
20
0

query I rowsort
SELECT ( - 56 ) - - 16
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT ALL 11 * 64 DIV + 23 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL 11 * 64 / + 23 AS col1
----
30

query II rowsort
SELECT DISTINCT - 13 + + + 61 AS col0, 35 * - 90
----
48
-3150

query II rowsort
SELECT ALL 74, 30 + + + 34 AS col0
----
74
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL - 80 + 10 + COUNT( ALL + + 97 )
----
-69

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - 80 + 10 + COUNT ( ALL + + 97 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT DISTINCT - + 49 * + COUNT( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - + 33
----
-33

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT - + 49 * + COUNT ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - + 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - MIN( DISTINCT + 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2412
SELECT - MIN ( DISTINCT + 96 ) AS col0
----
-96

query II rowsort
SELECT ALL 97 col2, + 58
----
97
58

query II rowsort
SELECT - 8, 13 + 42 AS col2
----
-8
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT 77 * NULLIF ( - 29, - ( MIN( ALL + 3 ) ) ) * - SUM( 95 ) AS col2
----
212135

skipif mysql # not compatible
query I rowsort label-2415
SELECT 77 * NULLIF ( - 29, - ( MIN ( ALL + 3 ) ) ) * - SUM ( 95 ) AS col2
----
212135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT - + CAST( - 99 AS SIGNED ) * - - 44 AS col2
----
4356

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - + CAST ( - 99 AS INTEGER ) * - - 44 AS col2
----
4356

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

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + + MAX ( ALL - 82 ) - 15 + 46 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2418
SELECT ALL - 65 * MAX( + - ( + 9 ) ), 11 - ( - ( CASE WHEN ( - 71 ) <> NULL THEN + 17 ELSE NULL END ) ) AS col2
----
585
NULL

skipif mysql # not compatible
query II rowsort label-2418
SELECT ALL - 65 * MAX ( + - ( + 9 ) ), 11 - ( - ( CASE WHEN ( - 71 ) <> NULL THEN + 17 ELSE NULL END ) ) AS col2
----
585
NULL

query I rowsort
SELECT ALL 40 * + 99 col2
----
3960

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

query II rowsort
SELECT ALL - 2, 57 col2
----
-2
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL - + CASE - ( 39 ) WHEN - COUNT( DISTINCT 61 ) THEN - MAX( ALL 84 ) ELSE + 34 END
----
-34

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - + CASE - ( 39 ) WHEN - COUNT ( DISTINCT 61 ) THEN - MAX ( ALL 84 ) ELSE + 34 END
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT ALL - COUNT( * ) AS col2, + 94 * - 3 * + + 88 AS col1
----
-1
-24816

skipif mysql # not compatible
query II rowsort label-2423
SELECT ALL - COUNT ( * ) AS col2, + 94 * - 3 * + + 88 AS col1
----
-1
-24816

query II rowsort
SELECT DISTINCT - - 85 AS col2, 91
----
85
91

query I rowsort
SELECT 25 + + 50 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT 24 + + - COUNT( + + 1 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2426
SELECT 24 + + - COUNT ( + + 1 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT ALL - ( + 38 ) DIV - - 31 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - ( + 38 ) / - - 31 + COUNT ( * )
----
0

query I rowsort
SELECT 4 * + - 30 AS col1
----
-120

query II rowsort
SELECT 39 * - - 14 * 48 AS col0, 37 - 74 * - - 62
----
26208
-4551

query I rowsort
SELECT 68 * - 68 * + 67 - - - 78
----
-309886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2431
SELECT DISTINCT - ( 57 ) * + + 90 AS col1, + 81 * NULLIF ( + CAST( NULL AS SIGNED ), - 24 ) / 76
----
-5130
NULL

skipif mysql # not compatible
query II rowsort label-2431
SELECT DISTINCT - ( 57 ) * + + 90 AS col1, + 81 * NULLIF ( + CAST ( NULL AS INTEGER ), - 24 ) / 76
----
-5130
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 14, + + 12 ) + - - 97
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL + 68 + + - COUNT( * ) * + - 36 + - - 66 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + 68 + + - COUNT ( * ) * + - 36 + - - 66 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL 15 * + + 56 * + 59 * - COUNT( * ) AS col2
----
-49560

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 15 * + + 56 * + 59 * - COUNT ( * ) AS col2
----
-49560

query I rowsort
SELECT 29 * 57 AS col0
----
1653

query II rowsort
SELECT ALL - 4 + + 78 AS col1, 53
----
74
53

query I rowsort
SELECT ALL - ( 72 ) * - 36
----
2592

query I rowsort
SELECT 19 + + 88 * - 98 - - 1 AS col0
----
-8604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT DISTINCT - 60 + - 23 + - 92 + + ( - AVG ( - + 91 ) ) * + - 8 * CAST( NULL AS SIGNED ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - 60 + - 23 + - 92 + + ( - AVG ( - + 91 ) ) * + - 8 * CAST ( NULL AS INTEGER ) * + 84
----
NULL

query II rowsort
SELECT ALL 73 + + 80 AS col0, - 51
----
153
-51

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2443
SELECT ALL 66 DIV - 27 AS col1, 93 AS col2
----
-2
93

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL 66 / - 27 AS col1, 93 AS col2
----
-2
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL + COUNT( * ) - MIN( ALL - 35 )
----
36

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + COUNT ( * ) - MIN ( ALL - 35 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT + 52 + - CAST( - ( 84 ) AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-2445
SELECT + 52 + - CAST ( - ( 84 ) AS INTEGER )
----
136

query I rowsort
SELECT ALL - + 42 - - 37 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT + CASE - COUNT( * ) WHEN 29 + - 46 + 7 THEN - - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 29 + - 46 + 7 THEN - - 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL 31 * - 24 - - 16 + 50 * + - 24 * - 74 * 0 + + COUNT( * )
----
-727

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL 31 * - 24 - - 16 + 50 * + - 24 * - 74 * 0 + + COUNT ( * )
----
-727

query I rowsort
SELECT 12 + - 55
----
-43

query I rowsort
SELECT 99 + - ( + 71 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT + NULLIF ( - + 34, + 14 ) * + - 42 DIV + - 21 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + NULLIF ( - + 34, + 14 ) * + - 42 / + - 21 AS col1
----
-68

query I rowsort
SELECT - 28 * 93 * + 63 AS col1
----
-164052

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 2 + - 95 + - + ( - - 54 ) * + ( - - COUNT( * ) ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 2 + - 95 + - + ( - - 54 ) * + ( - - COUNT ( * ) ) col0
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2454
SELECT ALL 72 - + 7 + CAST( NULL AS SIGNED ) * - 35 + COUNT( * ), - 18 * - 97 AS col0
----
NULL
1746

skipif mysql # not compatible
query II rowsort label-2454
SELECT ALL 72 - + 7 + CAST ( NULL AS INTEGER ) * - 35 + COUNT ( * ), - 18 * - 97 AS col0
----
NULL
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - + NULLIF ( 39, - SUM( 68 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2455
SELECT - + NULLIF ( 39, - SUM ( 68 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT DISTINCT COUNT( * ) * 82 AS col1, - 24 AS col0
----
82
-24

skipif mysql # not compatible
query II rowsort label-2456
SELECT DISTINCT COUNT ( * ) * 82 AS col1, - 24 AS col0
----
82
-24

query I rowsort
SELECT + 77 * - 77 * - 89 AS col0
----
527681

query I rowsort
SELECT DISTINCT + - 17 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT + 79 DIV + + COUNT( * ) - + - 40 - + 85 + - 2 * 20
----
-6

skipif mysql # not compatible
query I rowsort label-2459
SELECT + 79 / + + COUNT ( * ) - + - 40 - + 85 + - 2 * 20
----
-6

query I rowsort
SELECT + 44 * 73 AS col2
----
3212

query I rowsort
SELECT - - 31 + + ( - 58 ) AS col2
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - - COUNT( * ) * + COUNT( * ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-2463
SELECT - - COUNT ( * ) * + COUNT ( * ) + + 27
----
28

query I rowsort
SELECT ALL + 94 * ( - 10 ) * 20 * 65 + 39 AS col2
----
-1221961

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT - 57 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT - 57 / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL - 95 * COUNT( * ) * 6 + COUNT( * ) - - + 73
----
-496

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - 95 * COUNT ( * ) * 6 + COUNT ( * ) - - + 73
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT 72 * - COUNT( * ) * 98 + - 97 AS col2
----
-7153

skipif mysql # not compatible
query I rowsort label-2468
SELECT 72 * - COUNT ( * ) * 98 + - 97 AS col2
----
-7153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT - 21 DIV 5
----
-4

skipif mysql # not compatible
query I rowsort label-2470
SELECT - 21 / 5
----
-4

query I rowsort
SELECT ALL 28 * + - 71 * - 66 + - + 41 AS col0
----
131167

query I rowsort
SELECT 37 * - 10 + ( 85 ) AS col1
----
-285

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

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

query I rowsort
SELECT ALL + 1 * - 73 * 19 * 86 + - 61 + + + 66 * - 77 col0
----
-124425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT - 67 + ( + CAST( NULL AS SIGNED ) ) + + 77 - 49 * + - NULLIF ( + COUNT( * ), - 73 ) + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 67 + ( + CAST ( NULL AS INTEGER ) ) + + 77 - 49 * + - NULLIF ( + COUNT ( * ), - 73 ) + - 71 AS col1
----
NULL

query I rowsort
SELECT ALL CASE - 86 WHEN ( - ( 69 ) ) / - - 98 THEN - + AVG ( - - 0 ) END * - 92 + ( 16 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 19 * 1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT - COUNT( * ) * + CASE ( + 93 ) WHEN ( 11 ) + + 5 * - 6 * - 68 + 31 THEN - 18 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT - COUNT ( * ) * + CASE ( + 93 ) WHEN ( 11 ) + + 5 * - 6 * - 68 + 31 THEN - 18 * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL SUM( - ( - 23 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL SUM ( - ( - 23 ) ) AS col1
----
23

query I rowsort
SELECT DISTINCT 2 + - 85 AS col1
----
-83

query I rowsort
SELECT ALL - 47 * + 81 col0
----
-3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT DISTINCT + 92 - - ( 39 ) * - CASE + + CAST( 49 AS SIGNED ) WHEN - - 74 + + + 58 * 41 THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT + 92 - - ( 39 ) * - CASE + + CAST ( 49 AS INTEGER ) WHEN - - 74 + + + 58 * 41 THEN - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT COUNT( ALL 84 )
----
1

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT COUNT ( ALL 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL COUNT( * ) - 54 - - 4 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL COUNT ( * ) - 54 - - 4 AS col0
----
-49

query I rowsort
SELECT ALL - + 15 * + 86 AS col1
----
-1290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT - MIN( 55 ) - - 75 + CAST( NULL AS SIGNED ) * + - CAST( + 76 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT - MIN ( 55 ) - - 75 + CAST ( NULL AS INTEGER ) * + - CAST ( + 76 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - COUNT( * ) + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2487
SELECT - COUNT ( * ) + 98 AS col0
----
97

query II rowsort
SELECT + 48, + 39 AS col0
----
48
39

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

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

query I rowsort
SELECT - - NULLIF ( - ( - 54 ), + + 57 ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT - MAX( - 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2491
SELECT - MAX ( - 73 ) AS col0
----
73

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

query II rowsort
SELECT DISTINCT - 47 col1, - 30 AS col0
----
-47
-30

query II rowsort
SELECT DISTINCT - 35, - 23 AS col0
----
-35
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT ALL - 93 AS col1, + MAX( DISTINCT + 10 ) + - 5
----
-93
5

skipif mysql # not compatible
query II rowsort label-2495
SELECT ALL - 93 AS col1, + MAX ( DISTINCT + 10 ) + - 5
----
-93
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2496
SELECT ALL - 48 DIV COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - 48 / COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT - - 43 - - 8
----
51

query II rowsort
SELECT ALL 32 AS col0, - 68
----
32
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT DISTINCT + COUNT( * ), 2 * + + 97 AS col1
----
1
194

skipif mysql # not compatible
query II rowsort label-2499
SELECT DISTINCT + COUNT ( * ), 2 * + + 97 AS col1
----
1
194

query I rowsort
SELECT DISTINCT + 15 * + ( - 90 ) + 60 AS col1
----
-1290

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT DISTINCT + + 73 DIV - + 7 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT + + 73 / - + 7 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2502
SELECT - - 75 AS col1, - 14 / - + CAST( NULL AS SIGNED ) * - 35 + 48
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2502
SELECT - - 75 AS col1, - 14 / - + CAST ( NULL AS INTEGER ) * - 35 + 48
----
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT - + 65 DIV 47 DIV 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT - + 65 / 47 / 72 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT + + 60 * + 62 + + 61 + + - COUNT( * ) + + + COUNT( * ) + NULLIF ( 57, + ( - 55 ) * 69 ) DIV 72 AS col1
----
3781

skipif mysql # not compatible
query I rowsort label-2504
SELECT + + 60 * + 62 + + 61 + + - COUNT ( * ) + + + COUNT ( * ) + NULLIF ( 57, + ( - 55 ) * 69 ) / 72 AS col1
----
3781

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT + - 85 * 41 DIV - 94 + 38 * - - 41
----
1595

skipif mysql # not compatible
query I rowsort label-2505
SELECT + - 85 * 41 / - 94 + 38 * - - 41
----
1595

query I rowsort
SELECT - - 49 * + 4 - + 99
----
97

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

query I rowsort
SELECT ALL + + 31 * - - 46 * + + 97 * + 52 + 80
----
7192824

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT + CASE - 1 WHEN 14 THEN + - COUNT( * ) ELSE NULL END AS col0, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2509
SELECT + CASE - 1 WHEN 14 THEN + - COUNT ( * ) ELSE NULL END AS col0, 84
----
NULL
84

query II rowsort
SELECT + 45 * 26 AS col2, + 77 AS col2
----
1170
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL + 73 DIV - + 8 + - 80
----
-89

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + 73 / - + 8 + - 80
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT ALL 56 DIV 85 + - + 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL 56 / 85 + - + 9 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT - 62 DIV - 79 + + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2513
SELECT - 62 / - 79 + + 57 AS col2
----
57

query I rowsort
SELECT + 15 * - ( NULLIF ( CASE + 18 WHEN - - 4 THEN 5 + 85 END, - + 86 ) )
----
NULL

query I rowsort
SELECT + 85 + + - 67 * + - 79 AS col2
----
5378

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL + 57 * + 37 + COUNT( * )
----
2110

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + 57 * + 37 + COUNT ( * )
----
2110

query II rowsort
SELECT ( + + 85 ) col2, COALESCE ( - 4, - 3 )
----
85
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + 79 - COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 79 - COUNT ( * ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT DISTINCT 91 * - 80 col2, - ( - CAST( NULL AS SIGNED ) ) col2
----
-7280
NULL

skipif mysql # not compatible
query II rowsort label-2519
SELECT DISTINCT 91 * - 80 col2, - ( - CAST ( NULL AS INTEGER ) ) col2
----
-7280
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT ALL + 80 * - 8 - - 36 + COUNT( * ) AS col1, 43 + - 69
----
-603
-26

skipif mysql # not compatible
query II rowsort label-2520
SELECT ALL + 80 * - 8 - - 36 + COUNT ( * ) AS col1, 43 + - 69
----
-603
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL + NULLIF ( + + 60, + - 86 + - 77 * + 91 * - COUNT( * ) * - 20 * - + CASE - 97 WHEN COUNT( * ) THEN ( 22 ) / - 7 ELSE NULL END )
----
60

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL + NULLIF ( + + 60, + - 86 + - 77 * + 91 * - COUNT ( * ) * - 20 * - + CASE - 97 WHEN COUNT ( * ) THEN ( 22 ) / - 7 ELSE NULL END )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2522
SELECT + COUNT( * ) + COUNT( * ) AS col2, - SUM( DISTINCT - - ( - - 49 ) ) * - 64 * + 77 * - + 74 + + 45 + + 92
----
2
-17868791

skipif mysql # not compatible
query II rowsort label-2522
SELECT + COUNT ( * ) + COUNT ( * ) AS col2, - SUM ( DISTINCT - - ( - - 49 ) ) * - 64 * + 77 * - + 74 + + 45 + + 92
----
2
-17868791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL - 31 * + + CAST( NULL AS SIGNED ) * - COUNT( + + 86 ) * COUNT( 86 ) + + - 80 * - + 71 + + 41 - - 91 * - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - 31 * + + CAST ( NULL AS INTEGER ) * - COUNT ( + + 86 ) * COUNT ( 86 ) + + - 80 * - + 71 + + 41 - - 91 * - 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT DISTINCT CAST( ( COUNT( + 12 ) ) AS SIGNED ) * - - 44
----
44

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT CAST ( ( COUNT ( + 12 ) ) AS INTEGER ) * - - 44
----
44

query I rowsort
SELECT ALL 54 * + + 18 - + 25 * + 76
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT NULLIF ( COALESCE ( 44, 56 ), - + MAX( + 52 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2526
SELECT NULLIF ( COALESCE ( 44, 56 ), - + MAX ( + 52 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT - CAST( + 6 AS SIGNED ) * - 64 + 83 + + - 44 AS col1
----
423

skipif mysql # not compatible
query I rowsort label-2527
SELECT - CAST ( + 6 AS INTEGER ) * - 64 + 83 + + - 44 AS col1
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2528
SELECT - ( + CASE - - 63 WHEN - 69 * - NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) ) THEN NULL ELSE CASE ( NULLIF ( 22, - 18 * 55 + + 17 * + 47 ) ) WHEN 63 * - 21 THEN NULL WHEN 9 THEN CAST( + ( - 43 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) END END ) - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - ( + CASE - - 63 WHEN - 69 * - NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) THEN NULL ELSE CASE ( NULLIF ( 22, - 18 * 55 + + 17 * + 47 ) ) WHEN 63 * - 21 THEN NULL WHEN 9 THEN CAST ( + ( - 43 ) AS INTEGER ) * CAST ( NULL AS REAL ) END END ) - 22
----
NULL

query I rowsort
SELECT + 96 * + + 76
----
7296

query I rowsort
SELECT + - 38 * + 70 AS col0
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - + COUNT( * ) + + + 67
----
66

skipif mysql # not compatible
query I rowsort label-2531
SELECT - + COUNT ( * ) + + + 67
----
66

query I rowsort
SELECT + 10 + 57
----
67

query I rowsort
SELECT - + 63 * 54 + - 57 AS col2
----
-3459

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL COALESCE ( - - 65, MIN( - 54 ) )
----
65

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL COALESCE ( - - 65, MIN ( - 54 ) )
----
65

query I rowsort
SELECT DISTINCT - 99 / CASE 99 WHEN - 95 * - AVG ( DISTINCT 69 ) THEN ( + 84 ) * 26 ELSE NULL END - 86
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT COALESCE ( + 90, + MIN( - - 96 ) - - 13 )
----
90

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT COALESCE ( + 90, + MIN ( - - 96 ) - - 13 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL CASE - COUNT( ALL - 66 ) WHEN + 85 THEN COALESCE ( 26, 99 * 5 + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL CASE - COUNT ( ALL - 66 ) WHEN + 85 THEN COALESCE ( 26, 99 * 5 + COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL + - 70 * + 77 + + COUNT( - 65 ) AS col1
----
-5389

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + - 70 * + 77 + + COUNT ( - 65 ) AS col1
----
-5389

query I rowsort
SELECT ALL - + 8 + + 40
----
32

query I rowsort
SELECT + 17 * + 39
----
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL + ( + + CAST( + 43 AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + ( + + CAST ( + 43 AS INTEGER ) )
----
43

query I rowsort
SELECT 21 * - + NULLIF ( - + COALESCE ( + 14, + 93 ), + - 92 * - 5 ) AS col2
----
294

query I rowsort
SELECT + 0 + - - 39
----
39

query I rowsort
SELECT ALL - - 82 + - 62 + + 59 * 39 + - + 91 * + + 69
----
-3958

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT 70 * + + COUNT( * ) * - + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT 70 * + + COUNT ( * ) * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT 0 + 85 * COUNT( * ) + + COUNT( * )
----
86

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2549
SELECT DISTINCT CAST( + CASE + + 31 WHEN - 67 THEN - + 96 WHEN + 4 THEN - + COUNT( * ) * - + CAST( NULL AS SIGNED ) ELSE + 54 END AS SIGNED ) + - 60 + 90
----
84

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT CAST ( + CASE + + 31 WHEN - 67 THEN - + 96 WHEN + 4 THEN - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) ELSE + 54 END AS INTEGER ) + - 60 + 90
----
84

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

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

query I rowsort
SELECT ALL 92 + 70 AS col1
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT ALL + 45 DIV - 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + 45 / - 30 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2553
SELECT - MIN( ALL - 65 ) DIV + 66 * + COUNT( * ) * - + 1 * - + 45 * + COUNT( * ) - - 64 AS col2, + ( COUNT( * ) ) * 98
----
64
98

skipif mysql # not compatible
query II rowsort label-2553
SELECT - MIN ( ALL - 65 ) / + 66 * + COUNT ( * ) * - + 1 * - + 45 * + COUNT ( * ) - - 64 AS col2, + ( COUNT ( * ) ) * 98
----
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT COUNT( - 81 ) + + CASE 49 WHEN - 37 THEN + 74 * - CASE ( - 5 ) WHEN COUNT( * ) THEN 96 * - 42 WHEN + COUNT( * ) THEN NULL END - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT COUNT ( - 81 ) + + CASE 49 WHEN - 37 THEN + 74 * - CASE ( - 5 ) WHEN COUNT ( * ) THEN 96 * - 42 WHEN + COUNT ( * ) THEN NULL END - 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT CASE - 73 WHEN + + COUNT( 21 ) THEN + - SUM( ALL - 73 ) WHEN - - 83 * 24 + + 75 THEN COUNT( ALL - 93 ) WHEN + SUM( 35 ) / + 86 THEN NULL END - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT CASE - 73 WHEN + + COUNT ( 21 ) THEN + - SUM ( ALL - 73 ) WHEN - - 83 * 24 + + 75 THEN COUNT ( ALL - 93 ) WHEN + SUM ( 35 ) / + 86 THEN NULL END - - 11 AS col1
----
NULL

query I rowsort
SELECT ALL 56 * 43 AS col2
----
2408

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT 29 * + - 87 * - MIN( - 64 ) * + 70 * - ( - + 63 ) + - 56, COUNT( * ) AS col1
----
-712091576
1

skipif mysql # not compatible
query II rowsort label-2557
SELECT 29 * + - 87 * - MIN ( - 64 ) * + 70 * - ( - + 63 ) + - 56, COUNT ( * ) AS col1
----
-712091576
1

query I rowsort
SELECT DISTINCT 9 - 71 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-2559
SELECT 55 * 92 DIV 27 * + - 28 - + - 31 AS col1, + 76
----
-5205
76

skipif mysql # not compatible
query II rowsort label-2559
SELECT 55 * 92 / 27 * + - 28 - + - 31 AS col1, + 76
----
-5205
76

query II rowsort
SELECT + 20 AS col1, + 0 AS col0
----
20
0

query II rowsort
SELECT DISTINCT 43 - + 71 * - 30 AS col0, + 56
----
2173
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT CAST( 9 AS SIGNED ) * 85 * + 32 + MAX( + - 52 ) AS col2
----
24428

skipif mysql # not compatible
query I rowsort label-2562
SELECT CAST ( 9 AS INTEGER ) * 85 * + 32 + MAX ( + - 52 ) AS col2
----
24428

query I rowsort
SELECT ALL 84 * 61
----
5124

query I rowsort
SELECT DISTINCT - 14 * + NULLIF ( + + 4, 52 * + 25 ) AS col0
----
-56

query I rowsort
SELECT ALL 38 * - - 99 AS col2
----
3762

query I rowsort
SELECT ALL + ( + 77 ) * - 15 AS col2
----
-1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT - COUNT( * ) + - CASE + COALESCE ( 21, - ( + 82 ), + 5 * - 22 * + CASE - 26 WHEN - 70 THEN CAST( NULL AS SIGNED ) WHEN - 89 * COUNT( - 15 * - 86 ) THEN + 61 WHEN 35 THEN NULL END * + 43 ) WHEN + COUNT( * ) THEN 3 * 66 WHEN 25 * + 47 THEN 9 DIV - 93 ELSE 6 END + 74 * + 99 AS col1
----
7319

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - COUNT ( * ) + - CASE + COALESCE ( 21, - ( + 82 ), + 5 * - 22 * + CASE - 26 WHEN - 70 THEN CAST ( NULL AS INTEGER ) WHEN - 89 * COUNT ( - 15 * - 86 ) THEN + 61 WHEN 35 THEN NULL END * + 43 ) WHEN + COUNT ( * ) THEN 3 * 66 WHEN 25 * + 47 THEN 9 / - 93 ELSE 6 END + 74 * + 99 AS col1
----
7319

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT MAX( ALL - 75 ) * + ( - - 11 ) * 79 * - - MAX( DISTINCT 48 )
----
-3128400

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT MAX ( ALL - 75 ) * + ( - - 11 ) * 79 * - - MAX ( DISTINCT 48 )
----
-3128400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT NULLIF ( - ( - 70 ), SUM( DISTINCT ( + 91 ) ) ) * 54
----
3780

skipif mysql # not compatible
query I rowsort label-2570
SELECT NULLIF ( - ( - 70 ), SUM ( DISTINCT ( + 91 ) ) ) * 54
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT + MIN( ALL + - 89 ) + - ( - 38 ) * + CAST( NULL AS SIGNED ) * - + 80 * + 44 * - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT + MIN ( ALL + - 89 ) + - ( - 38 ) * + CAST ( NULL AS INTEGER ) * - + 80 * + 44 * - 83 AS col2
----
NULL

query I rowsort
SELECT CASE 60 WHEN - + 68 THEN ( - 63 ) ELSE + 14 + - - 35 END
----
49

query I rowsort
SELECT 15 + - - 45
----
60

query I rowsort
SELECT - 71 * + - NULLIF ( + + 37, - - 1 ) AS col1
----
2627

query I rowsort
SELECT ALL 40 + - - 23 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + COUNT( * ) * + + 16 + + - CASE - 29 WHEN + 89 + + 18 / + - COUNT( * ) THEN - MAX( ALL - 44 ) ELSE NULL END * 78 * COUNT( * ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT + COUNT ( * ) * + + 16 + + - CASE - 29 WHEN + 89 + + 18 / + - COUNT ( * ) THEN - MAX ( ALL - 44 ) ELSE NULL END * 78 * COUNT ( * ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 5 * + - 71
----
-355

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - ( MAX( - - 2 ) ) + - + ( 63 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - ( MAX ( - - 2 ) ) + - + ( 63 ) AS col0
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2580
SELECT - 37 - + ( + 25 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 37 - + ( + 25 ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 94 / + CASE 76 WHEN + - 58 + + 34 / + 16 * + 32 THEN + 73 END * + 60 * + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT SUM( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2582
SELECT SUM ( ALL 84 )
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL - + 88 + - MIN( + - 71 ) + - ( + - 39 ) * - 32 * - MIN( + 90 )
----
112303

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL - + 88 + - MIN ( + - 71 ) + - ( + - 39 ) * - 32 * - MIN ( + 90 )
----
112303

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COUNT( * ) - - 92 + - 16 + - 25 * - 39 + - - 6 + - - 38 * 31
----
2236

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( * ) - - 92 + - 16 + - 25 * - 39 + - - 6 + - - 38 * 31
----
2236

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT ALL + ( + 11 ) * + 47 * COUNT( * ), + COUNT( * ) - + COUNT( * ) AS col2
----
517
0

skipif mysql # not compatible
query II rowsort label-2586
SELECT ALL + ( + 11 ) * + 47 * COUNT ( * ), + COUNT ( * ) - + COUNT ( * ) AS col2
----
517
0

query II rowsort
SELECT + 52, 17 * - 16 AS col1
----
52
-272

query I rowsort
SELECT ALL - COALESCE ( + - 82, + + 82, 34 ) AS col1
----
82

query II rowsort
SELECT ALL - 9 AS col2, 30 AS col1
----
-9
30

query I rowsort
SELECT 48 + COALESCE ( - + 21, 9 )
----
27

query II rowsort
SELECT DISTINCT - 87 AS col0, 99 - NULLIF ( 93, - 42 * - 65 + - 75 / + - 45 )
----
-87
6

query I rowsort
SELECT ALL 3 * + 46
----
138

query I rowsort
SELECT 64 * - 25
----
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT DISTINCT - COALESCE ( - SUM( + 84 ), - + CAST( + 40 AS SIGNED ) * - + 37 + - 92 )
----
84

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - COALESCE ( - SUM ( + 84 ), - + CAST ( + 40 AS INTEGER ) * - + 37 + - 92 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2595
SELECT - 15 DIV - 49 DIV - COUNT( * ) + + ( - + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-2595
SELECT - 15 / - 49 / - COUNT ( * ) + + ( - + 17 )
----
-17

query II rowsort
SELECT + 76 AS col0, 73 AS col2
----
76
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT 83 DIV - - 21
----
3

skipif mysql # not compatible
query I rowsort label-2597
SELECT 83 / - - 21
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL - 88 * ( + - 52 ) * + COALESCE ( 24, CAST( NULL AS SIGNED ) / 55 ) * + 76 / - 72 * COUNT( DISTINCT + - 64 ) + - 73 * + 70 + - 51 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - 88 * ( + - 52 ) * + COALESCE ( 24, CAST ( NULL AS INTEGER ) / 55 ) * + 76 / - 72 * COUNT ( DISTINCT + - 64 ) + - 73 * + 70 + - 51 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 54 + + + NULLIF ( - - ( - COALESCE ( - 28, - 78 * + + ( 43 ) * - 78 + 8 + 97 ) ), + 85 * - 55 ) * - 26 AS col2
----
-674

query I rowsort
SELECT 89 * - + 24
----
-2136

query I rowsort
SELECT ALL + 25 * 92 AS col1
----
2300

query II rowsort
SELECT 63 * + 7 AS col2, 0 AS col2
----
441
0

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

query II rowsort
SELECT ALL + - 45, + 27 AS col0
----
-45
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - 8 + - 52 * NULLIF ( 76, + SUM( DISTINCT - - 53 ) + 10 + + 98 * - ( - - COUNT( * ) ) ) AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - 8 + - 52 * NULLIF ( 76, + SUM ( DISTINCT - - 53 ) + 10 + + 98 * - ( - - COUNT ( * ) ) ) AS col0
----
-3960

query I rowsort
SELECT DISTINCT + ( - - 63 ) + - 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT 69 * 98 + - + 24 + + - CAST( - 49 AS SIGNED ) + + COUNT( * )
----
6788

skipif mysql # not compatible
query I rowsort label-2607
SELECT 69 * 98 + - + 24 + + - CAST ( - 49 AS INTEGER ) + + COUNT ( * )
----
6788

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2608
SELECT + CASE + 35 WHEN + 63 THEN 63 ELSE - 80 + - - NULLIF ( - 45, + MAX( + 41 ) * - 86 / COALESCE ( + 2, 44 ) + + 47 ) + 34 * + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT + CASE + 35 WHEN + 63 THEN 63 ELSE - 80 + - - NULLIF ( - 45, + MAX ( + 41 ) * - 86 / COALESCE ( + 2, 44 ) + + 47 ) + 34 * + CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - 9 + - 64 AS col1
----
-73

query II rowsort
SELECT + - 3 + 18, 29 + - 32 AS col2
----
15
-3

query I rowsort
SELECT ALL + COALESCE ( - 90, - - 30, - - 40 + - 87 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL + COUNT( * ) + 78 + 29 + + ( - 87 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL + COUNT ( * ) + 78 + 29 + + ( - 87 ) AS col2
----
21

query I rowsort
SELECT + + 28 + - 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT - ( - 42 ) * - COALESCE ( 19, + COALESCE ( - 55, - - CASE + ( - + ( - CASE - 4 WHEN - COUNT( * ) + + 63 THEN MIN( - 5 ) * 8 WHEN - 46 * - 12 THEN NULL ELSE + 2 + - 2 * 17 END ) ) WHEN + ( + ( 71 ) ) THEN 98 - + ( 40 ) WHEN - 46 + 57 / 78 THEN NULL ELSE NULL END, 6 ) ) + 48
----
-750

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT - ( - 42 ) * - COALESCE ( 19, + COALESCE ( - 55, - - CASE + ( - + ( - CASE - 4 WHEN - COUNT ( * ) + + 63 THEN MIN ( - 5 ) * 8 WHEN - 46 * - 12 THEN NULL ELSE + 2 + - 2 * 17 END ) ) WHEN + ( + ( 71 ) ) THEN 98 - + ( 40 ) WHEN - 46 + 57 / 78 THEN NULL ELSE NULL END, 6 ) ) + 48
----
-750

query I rowsort
SELECT + - 54 + 83
----
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT 14 * COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT 14 * COUNT ( * ) AS col1
----
14

query II rowsort
SELECT DISTINCT 2 AS col0, 40 * + 80
----
2
3200

query I rowsort
SELECT DISTINCT - 15 - 31 * + - 3
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT + 1 DIV + 5
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT + 1 / + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + 75 + + - COUNT( * ) + - 16
----
58

skipif mysql # not compatible
query I rowsort label-2621
SELECT + 75 + + - COUNT ( * ) + - 16
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + 86 * + CASE 78 WHEN + + COUNT( * ) * + 0 * - - 81 * 95 THEN + 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT + 86 * + CASE 78 WHEN + + COUNT ( * ) * + 0 * - - 81 * 95 THEN + 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT - CASE + - COALESCE ( - + 81, + 0 ) WHEN + + 6 THEN - 92 * - - 69 WHEN + MAX( ALL - 73 ) + 50 * 45 THEN - 11 * - 39 WHEN - 77 THEN NULL ELSE CASE + 54 WHEN + 77 + CASE - 36 WHEN - COALESCE ( - 64, 98 * - 9 + 20, 29 ) / 44 + + 42 THEN - COUNT( ALL + 37 ) * + 68 + + 15 WHEN 22 THEN - 1 ELSE NULL END / - 64 THEN NULLIF ( 71, COUNT( * ) * MIN( DISTINCT 64 ) + CAST( NULL AS SIGNED ) ) END END + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT - CASE + - COALESCE ( - + 81, + 0 ) WHEN + + 6 THEN - 92 * - - 69 WHEN + MAX ( ALL - 73 ) + 50 * 45 THEN - 11 * - 39 WHEN - 77 THEN NULL ELSE CASE + 54 WHEN + 77 + CASE - 36 WHEN - COALESCE ( - 64, 98 * - 9 + 20, 29 ) / 44 + + 42 THEN - COUNT ( ALL + 37 ) * + 68 + + 15 WHEN 22 THEN - 1 ELSE NULL END / - 64 THEN NULLIF ( 71, COUNT ( * ) * MIN ( DISTINCT 64 ) + CAST ( NULL AS INTEGER ) ) END END + 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT DISTINCT NULLIF ( + 80, + 30 ) DIV 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT NULLIF ( + 80, + 30 ) / 55 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT + 39 DIV + - ( - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 39 / + - ( - 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + 56 + + 78 * + MIN( - 40 ) AS col1
----
-3064

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 56 + + 78 * + MIN ( - 40 ) AS col1
----
-3064

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL NULLIF ( - NULLIF ( - 17, - CASE - CASE COUNT( * ) WHEN + ( - 91 ) THEN + 67 END WHEN 34 / + SUM( DISTINCT - 48 ) THEN NULL WHEN - 97 * + 11 THEN - COUNT( * ) * - 24 + SUM( 47 ) ELSE CASE 7 WHEN 65 THEN 85 WHEN - 99 * NULLIF ( - 48, + COUNT( * ) + 83 ) THEN NULL ELSE NULL END * 27 END ), - 82 / - 37 )
----
17

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL NULLIF ( - NULLIF ( - 17, - CASE - CASE COUNT ( * ) WHEN + ( - 91 ) THEN + 67 END WHEN 34 / + SUM ( DISTINCT - 48 ) THEN NULL WHEN - 97 * + 11 THEN - COUNT ( * ) * - 24 + SUM ( 47 ) ELSE CASE 7 WHEN 65 THEN 85 WHEN - 99 * NULLIF ( - 48, + COUNT ( * ) + 83 ) THEN NULL ELSE NULL END * 27 END ), - 82 / - 37 )
----
17

query I rowsort
SELECT + 32 + - ( - - 66 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT ALL + NULLIF ( + - 15, CAST( + + ( - + 1 ) AS SIGNED ) + + - NULLIF ( 31, + 35 * + + 42 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL + NULLIF ( + - 15, CAST ( + + ( - + 1 ) AS INTEGER ) + + - NULLIF ( 31, + 35 * + + 42 ) )
----
-15

query II rowsort
SELECT DISTINCT - 1 * - + 3, - 0 AS col1
----
3
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2632
SELECT ALL + NULLIF ( - - COUNT( * ), + CAST( - 70 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + NULLIF ( - - COUNT ( * ), + CAST ( - 70 AS REAL ) )
----
1

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

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

query I rowsort
SELECT - 2 + - 31 + - - 27 + + - 39 AS col2
----
-45

query I rowsort
SELECT DISTINCT - 11 * - 63
----
693

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

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

query I rowsort
SELECT + ( + ( - + 31 ) ) * + 78 + CASE + 37 WHEN - - 60 THEN - 64 ELSE NULL END
----
NULL

query I rowsort
SELECT - 49 * + - 73
----
3577

query II rowsort
SELECT ALL + ( 63 ), 11 * 58 AS col0
----
63
638

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

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

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

query I rowsort
SELECT ALL + + 33 col0
----
33

query I rowsort
SELECT DISTINCT - 48 * 78 - - 98 + + 94
----
-3552

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT - 56 DIV + + 72 * 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 56 / + + 72 * 80 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL + + CAST( - 92 AS SIGNED ) * - 77
----
7084

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + + CAST ( - 92 AS INTEGER ) * - 77
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT - 19 * 58 + + MAX( + CASE - + 5 WHEN + 78 THEN 92 END ) * - + 91 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT - 19 * 58 + + MAX ( + CASE - + 5 WHEN + 78 THEN 92 END ) * - + 91 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL - SUM( 9 ) * + - 56 * - + 6 + + + 21 - + 52 * COUNT( * ) AS col1
----
-3055

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - SUM ( 9 ) * + - 56 * - + 6 + + + 21 - + 52 * COUNT ( * ) AS col1
----
-3055

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - - 32 * - + MIN( - 54 )
----
1728

skipif mysql # not compatible
query I rowsort label-2648
SELECT - - 32 * - + MIN ( - 54 )
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL + COALESCE ( 62, + 34, - COUNT( * ) ) * - + 2 * + COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + COALESCE ( 62, + 34, - COUNT ( * ) ) * - + 2 * + COUNT ( * )
----
-124

query I rowsort
SELECT - + 58 * - 39
----
2262

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2651
SELECT + CAST( NULL AS DECIMAL ) * + 11 * AVG ( DISTINCT + 85 ) / - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + CAST ( NULL AS REAL ) * + 11 * AVG ( DISTINCT + 85 ) / - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL MIN( 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL MIN ( 19 ) col0
----
19

query II rowsort
SELECT - 86 + - - 95 AS col2, + 14
----
9
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT ALL + MAX( 57 ), 82 AS col0
----
57
82

skipif mysql # not compatible
query II rowsort label-2654
SELECT ALL + MAX ( 57 ), 82 AS col0
----
57
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT CASE - 14 WHEN 42 THEN - 39 WHEN + NULLIF ( 10, + 51 ) * - + 49 * MIN( DISTINCT ( - + 20 ) ) + + 51 / - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT CASE - 14 WHEN 42 THEN - 39 WHEN + NULLIF ( 10, + 51 ) * - + 49 * MIN ( DISTINCT ( - + 20 ) ) + + 51 / - 68 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT - 63 * + 57
----
-3591

query I rowsort
SELECT + 69 * + - 32 AS col2
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT 75 * ( - - CASE + 82 WHEN + COUNT( * ) * + 44 + - 78 THEN NULL ELSE - 99 + 62 * - CASE + 1 WHEN - + 18 THEN NULL ELSE - 36 + COUNT( * ) END END ) AS col1
----
155325

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT 75 * ( - - CASE + 82 WHEN + COUNT ( * ) * + 44 + - 78 THEN NULL ELSE - 99 + 62 * - CASE + 1 WHEN - + 18 THEN NULL ELSE - 36 + COUNT ( * ) END END ) AS col1
----
155325

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + COUNT( * ) - - NULLIF ( + + 53, + + 63 + COUNT( * ) + - 24 * + - 10 - + 17 * COUNT( * ) * - - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-2660
SELECT + COUNT ( * ) - - NULLIF ( + + 53, + + 63 + COUNT ( * ) + - 24 * + - 10 - + 17 * COUNT ( * ) * - - COUNT ( * ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2661
SELECT + 15 - + 22 * + COALESCE ( 28, 22 ) + + - 22, + 20 * + 87 + - CAST( - 63 AS SIGNED ) * + 25 col0
----
-623
3315

skipif mysql # not compatible
query II rowsort label-2661
SELECT + 15 - + 22 * + COALESCE ( 28, 22 ) + + - 22, + 20 * + 87 + - CAST ( - 63 AS INTEGER ) * + 25 col0
----
-623
3315

query I rowsort
SELECT + 33 * - 67 AS col2
----
-2211

query I rowsort
SELECT DISTINCT NULLIF ( + 84, + 44 ) * 46 * - 59
----
-227976

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT MAX( DISTINCT - - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT MAX ( DISTINCT - - 37 )
----
37

query I rowsort
SELECT ALL 74 * - 39 AS col2
----
-2886

query I rowsort
SELECT - 79 + + 7 AS col2
----
-72

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

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

query I rowsort
SELECT ALL 91 * + 42 AS col1
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + 97 * + COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2669
SELECT + 97 * + COUNT ( * ) AS col1
----
97

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

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

query I rowsort
SELECT DISTINCT 85 + - 62
----
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT 99 DIV + 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2673
SELECT 99 / + 41 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT ALL 61 + + 33 + - 68 DIV COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL 61 + + 33 + - 68 / COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT ALL 20 + + 20 DIV MAX( 33 )
----
20

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL 20 + + 20 / MAX ( 33 )
----
20

query I rowsort
SELECT ( + 46 ) + + 98
----
144

query I rowsort
SELECT ALL + 25 * 59 AS col1
----
1475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2678
SELECT CAST( + 77 AS DECIMAL ) / CASE + 2 WHEN - - 78 THEN NULL WHEN 76 * - COUNT( * ) / + 20 THEN NULL ELSE - 89 * ( 50 ) + 20 + CAST( NULL AS SIGNED ) * - COUNT( * ) END + AVG ( + NULLIF ( + 46, - 98 + 8 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT CAST ( + 77 AS REAL ) / CASE + 2 WHEN - - 78 THEN NULL WHEN 76 * - COUNT ( * ) / + 20 THEN NULL ELSE - 89 * ( 50 ) + 20 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END + AVG ( + NULLIF ( + 46, - 98 + 8 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 25 + 54
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT - NULLIF ( - + 10, - + 75 + + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT - NULLIF ( - + 10, - + 75 + + COUNT ( * ) )
----
10

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

skipif mysql # not compatible
query I rowsort label-2681
SELECT + MIN ( - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT CASE 99 WHEN - - 7 THEN 52 + + - 16 * - COUNT( * ) WHEN - COALESCE ( + CAST( 72 AS SIGNED ), + 50 / + - 96 + 33 * 32 ) THEN NULL WHEN 90 THEN NULL ELSE ( 99 ) * + 40 END
----
3960

skipif mysql # not compatible
query I rowsort label-2682
SELECT CASE 99 WHEN - - 7 THEN 52 + + - 16 * - COUNT ( * ) WHEN - COALESCE ( + CAST ( 72 AS INTEGER ), + 50 / + - 96 + 33 * 32 ) THEN NULL WHEN 90 THEN NULL ELSE ( 99 ) * + 40 END
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COALESCE ( + 31, - COUNT( * ), + 51 ) + - 20 * + 57 + + - 34 + - MAX( 92 )
----
-1235

skipif mysql # not compatible
query I rowsort label-2683
SELECT COALESCE ( + 31, - COUNT ( * ), + 51 ) + - 20 * + 57 + + - 34 + - MAX ( 92 )
----
-1235

query I rowsort
SELECT + NULLIF ( - - 75, + 69 * + 70 - COALESCE ( - 72, - 77 ) + 89 - - + 2 ) * + NULLIF ( + - 99, + + 88 ) * - 23 + 67 AS col2
----
170842

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL + - COUNT( * ) + 26 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + - COUNT ( * ) + 26 AS col1
----
25

query I rowsort
SELECT 52 * - + 6 * + ( + - 21 )
----
6552

query I rowsort
SELECT + COALESCE ( - - 95, + 64, - ( 57 ) )
----
95

query I rowsort
SELECT ALL - 67 + - - 44 AS col1
----
-23

query I rowsort
SELECT + 81 * 25
----
2025

onlyif mysql # aggregate syntax: 
query II rowsort label-2690
SELECT ALL + SUM( DISTINCT + 8 ) * + + 35 AS col0, 30
----
280
30

skipif mysql # not compatible
query II rowsort label-2690
SELECT ALL + SUM ( DISTINCT + 8 ) * + + 35 AS col0, 30
----
280
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2691
SELECT DISTINCT - 49 AS col1, + CAST( + 81 AS SIGNED ) AS col2
----
-49
81

skipif mysql # not compatible
query II rowsort label-2691
SELECT DISTINCT - 49 AS col1, + CAST ( + 81 AS INTEGER ) AS col2
----
-49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT - 17 + COUNT( * ) - 94 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-2692
SELECT - 17 + COUNT ( * ) - 94 AS col1
----
-110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + COUNT( * ) + - + COUNT( * ) + - 45 * - + 35 * - 26 + + 61 * 27
----
-39303

skipif mysql # not compatible
query I rowsort label-2694
SELECT + COUNT ( * ) + - + COUNT ( * ) + - 45 * - + 35 * - 26 + + 61 * 27
----
-39303

query II rowsort
SELECT ALL - + 0 col1, - 4
----
0
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT + 40 + - + 1 + - + COALESCE ( 1, + COUNT( * ), - 3 * + 58 + + 65 * - ( + 45 ) * - COUNT( * ) * + ( - 84 ) ) + 87 * + COUNT( - 78 ) DIV ( + MAX( DISTINCT - 99 ) * 91 )
----
38

skipif mysql # not compatible
query I rowsort label-2696
SELECT + 40 + - + 1 + - + COALESCE ( 1, + COUNT ( * ), - 3 * + 58 + + 65 * - ( + 45 ) * - COUNT ( * ) * + ( - 84 ) ) + 87 * + COUNT ( - 78 ) / ( + MAX ( DISTINCT - 99 ) * 91 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT + 83 * + - COALESCE ( - - 23, - - CAST( - 79 AS SIGNED ) - + 72 + - 55 + - 20 * - 44 + - ( - + 31 ) * NULLIF ( - - ( - 30 ), 75 * - 2 ) * - 30, MAX( ALL - 92 ) + 39 ) AS col1
----
-1909

skipif mysql # not compatible
query I rowsort label-2697
SELECT + 83 * + - COALESCE ( - - 23, - - CAST ( - 79 AS INTEGER ) - + 72 + - 55 + - 20 * - 44 + - ( - + 31 ) * NULLIF ( - - ( - 30 ), 75 * - 2 ) * - 30, MAX ( ALL - 92 ) + 39 ) AS col1
----
-1909

query I rowsort
SELECT ALL + - 69 * - - 57 + + 50 AS col0
----
-3883

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2699
SELECT - SUM( ALL - 40 ) DIV - 1 AS col1, COUNT( * )
----
-40
1

skipif mysql # not compatible
query II rowsort label-2699
SELECT - SUM ( ALL - 40 ) / - 1 AS col1, COUNT ( * )
----
-40
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2700
SELECT 90 * + + 12 + 23 - - MIN( ALL + 49 ) - - 96 AS col1, COALESCE ( + - 19, CASE - + CAST( NULL AS DECIMAL ) WHEN + 31 THEN - 50 END ) - + ( 17 ) AS col0
----
1248
-36

skipif mysql # not compatible
query II rowsort label-2700
SELECT 90 * + + 12 + 23 - - MIN ( ALL + 49 ) - - 96 AS col1, COALESCE ( + - 19, CASE - + CAST ( NULL AS REAL ) WHEN + 31 THEN - 50 END ) - + ( 17 ) AS col0
----
1248
-36

query I rowsort
SELECT ALL - 91 * + ( 7 ) AS col1
----
-637

query I rowsort
SELECT ALL + 1 * - 3
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2703
SELECT COUNT( * ) + - 63, + CAST( - - 48 AS SIGNED ) AS col0
----
-62
48

skipif mysql # not compatible
query II rowsort label-2703
SELECT COUNT ( * ) + - 63, + CAST ( - - 48 AS INTEGER ) AS col0
----
-62
48

query I rowsort
SELECT 58 + - - 39 + - + ( 34 ) * 35 AS col2
----
-1093

query I rowsort
SELECT 64 * 48 AS col1
----
3072

query I rowsort
SELECT 45 + - + 22 + - + 50
----
-27

query I rowsort
SELECT 54 * + + 92 col2
----
4968

query I rowsort
SELECT DISTINCT 85 + + - 8
----
77

query II rowsort
SELECT ALL 20 + - - 74 AS col1, CASE - + 34 WHEN + + 98 + 13 + - 81 * 22 THEN 31 / - - 2 * - 1 + 64 + - 58 * - 66 ELSE NULL END AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL COUNT( * ) * - - 57 / - 32 * - + CASE 98 WHEN 5 + - MIN( ALL 16 ) + + + 25 THEN - COUNT( * ) * - 78 * + - 45 ELSE NULL END / + 35 * + COALESCE ( + MAX( DISTINCT 43 ), 97 - + 55, - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COUNT ( * ) * - - 57 / - 32 * - + CASE 98 WHEN 5 + - MIN ( ALL 16 ) + + + 25 THEN - COUNT ( * ) * - 78 * + - 45 ELSE NULL END / + 35 * + COALESCE ( + MAX ( DISTINCT 43 ), 97 - + 55, - 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT MIN( - 94 ) + - MIN( ALL + 41 )
----
-135

skipif mysql # not compatible
query I rowsort label-2711
SELECT MIN ( - 94 ) + - MIN ( ALL + 41 )
----
-135

query I rowsort
SELECT 89 + + 92 + + + 24
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT CASE + 68 WHEN 21 DIV + 66 + + CASE - 94 WHEN + 74 * - 54 THEN - ( + 75 ) WHEN + COUNT( * ) THEN + - CASE 55 WHEN + 67 + 95 * 31 THEN - 11 + - 63 WHEN + 13 THEN NULL WHEN 75 THEN NULL ELSE NULL END ELSE NULL END + 1 + - 47 THEN NULL WHEN - 9 THEN 47 + 23 ELSE - 36 DIV + 67 + - NULLIF ( 92, - COUNT( * ) * + 79 ) END * - 72 AS col0
----
6624

skipif mysql # not compatible
query I rowsort label-2713
SELECT CASE + 68 WHEN 21 / + 66 + + CASE - 94 WHEN + 74 * - 54 THEN - ( + 75 ) WHEN + COUNT ( * ) THEN + - CASE 55 WHEN + 67 + 95 * 31 THEN - 11 + - 63 WHEN + 13 THEN NULL WHEN 75 THEN NULL ELSE NULL END ELSE NULL END + 1 + - 47 THEN NULL WHEN - 9 THEN 47 + 23 ELSE - 36 / + 67 + - NULLIF ( 92, - COUNT ( * ) * + 79 ) END * - 72 AS col0
----
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT MAX( + - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-2714
SELECT MAX ( + - 75 )
----
-75

query I rowsort
SELECT ALL - 43 col2
----
-43

query I rowsort
SELECT DISTINCT + 4 + + 19
----
23

query I rowsort
SELECT + 99 * - - 16
----
1584

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2718
SELECT - 5 * 4 * + 60 + + + 31 + - NULLIF ( + - 96, + ( + CAST( NULL AS SIGNED ) ) ) DIV + 17 AS col2
----
-1164

skipif mysql # not compatible
query I rowsort label-2718
SELECT - 5 * 4 * + 60 + + + 31 + - NULLIF ( + - 96, + ( + CAST ( NULL AS INTEGER ) ) ) / + 17 AS col2
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL SUM( DISTINCT + 58 ) - 33 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL SUM ( DISTINCT + 58 ) - 33 AS col2
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT - 65 * CAST( - - ( + ( + MIN( ALL - + 11 ) ) ) AS SIGNED )
----
715

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 65 * CAST ( - - ( + ( + MIN ( ALL - + 11 ) ) ) AS INTEGER )
----
715

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2722
SELECT ALL COUNT( * ) DIV + 95 AS col1, + COUNT( ALL - 12 ) + COUNT( * ) - - + 49 AS col1
----
0
51

skipif mysql # not compatible
query II rowsort label-2722
SELECT ALL COUNT ( * ) / + 95 AS col1, + COUNT ( ALL - 12 ) + COUNT ( * ) - - + 49 AS col1
----
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL + 30 - - SUM( + 0 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL + 30 - - SUM ( + 0 ) AS col2
----
30

query I rowsort
SELECT DISTINCT - - 80
----
80

query I rowsort
SELECT NULLIF ( + 21, + 93 * - COALESCE ( + - 28, + - 14 ) )
----
21

query I rowsort
SELECT DISTINCT + 36 * - 19 + - 90
----
-774

query II rowsort
SELECT - 81 * + 62 col0, - 97
----
-5022
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL MAX( DISTINCT ( - 67 ) ) * - 99 + 40 * 86
----
10073

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL MAX ( DISTINCT ( - 67 ) ) * - 99 + 40 * 86
----
10073

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 48, 24 )
----
-48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2731
SELECT ALL + 60 DIV + - ( + COUNT( * ) ) AS col0, 93 * - 50 * - - 75
----
-60
-348750

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL + 60 / + - ( + COUNT ( * ) ) AS col0, 93 * - 50 * - - 75
----
-60
-348750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2732
SELECT ALL - 70 + 21 - + 55 + - 70 DIV + - CASE - ( COUNT( * ) ) WHEN 63 - 34 * + 89 * + 56 DIV COUNT( * ) * + - 69 + - CAST( NULL AS DECIMAL ) THEN NULL ELSE + COALESCE ( 24, + 51 * + CAST( NULL AS SIGNED ) ) * + 48 END * - 96 col0
----
-104

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - 70 + 21 - + 55 + - 70 / + - CASE - ( COUNT ( * ) ) WHEN 63 - 34 * + 89 * + 56 / COUNT ( * ) * + - 69 + - CAST ( NULL AS REAL ) THEN NULL ELSE + COALESCE ( 24, + 51 * + CAST ( NULL AS INTEGER ) ) * + 48 END * - 96 col0
----
-104

query I rowsort
SELECT 48 + + 69 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT 57 + - + 26 - - 47 - + 56 + - COUNT( * ) + 85
----
106

skipif mysql # not compatible
query I rowsort label-2734
SELECT 57 + - + 26 - - 47 - + 56 + - COUNT ( * ) + 85
----
106

query I rowsort
SELECT ALL + 97 + - 63 AS col2
----
34

query I rowsort
SELECT DISTINCT - 43 * + 55 * - 89 AS col0
----
210485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT - 26 + - CAST( - 72 AS SIGNED ) * - 64 AS col2
----
-4634

skipif mysql # not compatible
query I rowsort label-2737
SELECT - 26 + - CAST ( - 72 AS INTEGER ) * - 64 AS col2
----
-4634

query I rowsort
SELECT ALL NULLIF ( - + 40, 2 ) AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT DISTINCT - 52 + + 77 DIV + 44
----
-51

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - 52 + + 77 / + 44
----
-51

query I rowsort
SELECT ALL + 98 * + 34 * - 54
----
-179928

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT COALESCE ( + + CASE 86 WHEN + ( - + COUNT( 97 ) ) * + + COUNT( - 70 ) THEN NULL ELSE + + 3 END, 4 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT COALESCE ( + + CASE 86 WHEN + ( - + COUNT ( 97 ) ) * + + COUNT ( - 70 ) THEN NULL ELSE + + 3 END, 4 ) col0
----
3

query II rowsort
SELECT - 27 AS col0, + 60
----
-27
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2743
SELECT - ( 44 ) + - CAST( - 74 AS SIGNED ) + - 2 DIV + 99 * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-2743
SELECT - ( 44 ) + - CAST ( - 74 AS INTEGER ) + - 2 / + 99 * + COUNT ( * )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT DISTINCT NULLIF ( - COALESCE ( - + 83, + CAST( NULL AS SIGNED ) * - + 69 * - 93 - - 68 ), - AVG ( + - 52 ) / + + 58 )
----
83

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT NULLIF ( - COALESCE ( - + 83, + CAST ( NULL AS INTEGER ) * - + 69 * - 93 - - 68 ), - AVG ( + - 52 ) / + + 58 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - 42 + 18 * - 63 + + SUM( - 0 ) * - + 41 * 26
----
-1176

skipif mysql # not compatible
query I rowsort label-2745
SELECT - 42 + 18 * - 63 + + SUM ( - 0 ) * - + 41 * 26
----
-1176

query II rowsort
SELECT 25, 85 + 44 AS col0
----
25
129

query I rowsort
SELECT + 96 + + 64 - 56 * 3 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2748
SELECT ALL 25 AS col2, CASE + 58 WHEN + + 32 + - - 79 * + 41 + + + COUNT( * ) - - - 42 THEN 99 * - COUNT( * ) * 24 + - MIN( ALL 83 ) * ( + 95 ) * + 68 ELSE NULL END * + 49
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2748
SELECT ALL 25 AS col2, CASE + 58 WHEN + + 32 + - - 79 * + 41 + + + COUNT ( * ) - - - 42 THEN 99 * - COUNT ( * ) * 24 + - MIN ( ALL 83 ) * ( + 95 ) * + 68 ELSE NULL END * + 49
----
25
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT ALL - 81 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - 81 / 90
----
0

query I rowsort
SELECT ALL 11 * + 64 col2
----
704

query II rowsort
SELECT DISTINCT - 48 * - 99 * 16, + 7 AS col2
----
76032
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - - ( + 94 ) * - - 36 + 25 + + MAX( ALL - 86 ) + - 11
----
3312

skipif mysql # not compatible
query I rowsort label-2752
SELECT - - ( + 94 ) * - - 36 + 25 + + MAX ( ALL - 86 ) + - 11
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + + 21 * CASE + + 52 WHEN + COUNT( * ) + - + 77 + + MIN( 76 ) THEN 10 + - 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT + + 21 * CASE + + 52 WHEN + COUNT ( * ) + - + 77 + + MIN ( 76 ) THEN 10 + - 54 END AS col2
----
NULL

query I rowsort
SELECT - 38 + - 59 col1
----
-97

query I rowsort
SELECT ALL + - 78 col2
----
-78

query I rowsort
SELECT - 52 + - 42
----
-94

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

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - 32 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2758
SELECT ALL 14 * + - 31 + + 78, 26 + COUNT( * ) * - NULLIF ( + 35, + - 13 ) AS col1
----
-356
-9

skipif mysql # not compatible
query II rowsort label-2758
SELECT ALL 14 * + - 31 + + 78, 26 + COUNT ( * ) * - NULLIF ( + 35, + - 13 ) AS col1
----
-356
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT ALL - 5 DIV CASE ( + 62 ) WHEN - - COALESCE ( - 46, 51 ) * 51 THEN - 18 ELSE + 67 + 91 END * 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - 5 / CASE ( + 62 ) WHEN - - COALESCE ( - 46, 51 ) * 51 THEN - 18 ELSE + 67 + 91 END * 23 AS col1
----
0

query I rowsort
SELECT + - 94 + - 94
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL 41 * - - 95 * 57 * MIN( - 58 ) + + + 60 + ( - - COUNT( * ) )
----
-12876809

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL 41 * - - 95 * 57 * MIN ( - 58 ) + + + 60 + ( - - COUNT ( * ) )
----
-12876809

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

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

query I rowsort
SELECT ALL 2 * - + 95 + + 74 AS col0
----
-116

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

skipif mysql # not compatible
query I rowsort label-2764
SELECT MIN ( - + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT CASE 65 WHEN - NULLIF ( + 33, 93 ) THEN NULL WHEN - 69 THEN + + 77 ELSE NULL END * + + 34 + + 70, - 82 + - 81 - 6 + + 7 * - COUNT( ALL + - 52 ) * + MIN( ALL + 88 ) * 40 AS col1
----
NULL
-24809

skipif mysql # not compatible
query II rowsort label-2765
SELECT CASE 65 WHEN - NULLIF ( + 33, 93 ) THEN NULL WHEN - 69 THEN + + 77 ELSE NULL END * + + 34 + + 70, - 82 + - 81 - 6 + + 7 * - COUNT ( ALL + - 52 ) * + MIN ( ALL + 88 ) * 40 AS col1
----
NULL
-24809

query I rowsort
SELECT + ( + 84 ) * - 97
----
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT - 38 + 66 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2767
SELECT - 38 + 66 + - COUNT ( * )
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2769
SELECT DISTINCT COUNT( * ), + CAST( NULL AS SIGNED ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2769
SELECT DISTINCT COUNT ( * ), + CAST ( NULL AS INTEGER ) col0
----
1
NULL

query I rowsort
SELECT DISTINCT 73 + + - 32 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT ALL CASE - + COALESCE ( - - 9, + 48 * 77 * 90 / - - 19 * + CASE + 14 WHEN - CAST( - + MIN( + - 0 ) AS SIGNED ) THEN NULL WHEN + 21 * - 22 THEN + 84 WHEN 29 THEN NULL ELSE 31 + - COUNT( * ) END + 94, + 79 + 54 ) WHEN + 88 THEN 38 ELSE 37 * + 57 - CAST( COUNT( * ) AS SIGNED ) END AS col0
----
2108

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL CASE - + COALESCE ( - - 9, + 48 * 77 * 90 / - - 19 * + CASE + 14 WHEN - CAST ( - + MIN ( + - 0 ) AS INTEGER ) THEN NULL WHEN + 21 * - 22 THEN + 84 WHEN 29 THEN NULL ELSE 31 + - COUNT ( * ) END + 94, + 79 + 54 ) WHEN + 88 THEN 38 ELSE 37 * + 57 - CAST ( COUNT ( * ) AS INTEGER ) END AS col0
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL - COALESCE ( + MIN( - - 14 ), - 15 ) + 83 + + - 34
----
35

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL - COALESCE ( + MIN ( - - 14 ), - 15 ) + 83 + + - 34
----
35

query I rowsort
SELECT + 3 * - 60
----
-180

query II rowsort
SELECT 3 col1, + 37 AS col0
----
3
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL ( - CASE 31 WHEN + 64 THEN 68 ELSE MIN( ALL + - 43 ) END )
----
43

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL ( - CASE 31 WHEN + 64 THEN 68 ELSE MIN ( ALL + - 43 ) END )
----
43

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

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

query I rowsort
SELECT + 67 * - 34 * 4
----
-9112

query I rowsort
SELECT - 72 * - 70 AS col2
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT + 84 + - COUNT( * ) * + COALESCE ( + 49, + 60 )
----
35

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 84 + - COUNT ( * ) * + COALESCE ( + 49, + 60 )
----
35

query I rowsort
SELECT DISTINCT - COALESCE ( - - 23, + 73, - 52 ) - - 82 col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT - CAST( - 65 AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2781
SELECT - CAST ( - 65 AS INTEGER ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT - 80, - 3 + COUNT( * ) * - ( + - 63 ) * + - 74 AS col2
----
-80
-4665

skipif mysql # not compatible
query II rowsort label-2782
SELECT - 80, - 3 + COUNT ( * ) * - ( + - 63 ) * + - 74 AS col2
----
-80
-4665

query I rowsort
SELECT - 25 + + 90 + - - 64
----
129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2784
SELECT ALL - 3 - + 20 * + 83 + 62 AS col2, - 51 * COUNT( * ) * - CAST( NULL AS DECIMAL ) * + ( NULLIF ( + SUM( 84 ), - 50 * - 93 - - + 25 ) ) * 76 / 20 - 12 * 48
----
-1601
NULL

skipif mysql # not compatible
query II rowsort label-2784
SELECT ALL - 3 - + 20 * + 83 + 62 AS col2, - 51 * COUNT ( * ) * - CAST ( NULL AS REAL ) * + ( NULLIF ( + SUM ( 84 ), - 50 * - 93 - - + 25 ) ) * 76 / 20 - 12 * 48
----
-1601
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - COUNT( * ) * + COALESCE ( 47, - 84 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2785
SELECT - COUNT ( * ) * + COALESCE ( 47, - 84 ) AS col0
----
-47

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

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

query I rowsort
SELECT DISTINCT 99 - - 79 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT - COUNT( * ) + - + 99
----
-100

skipif mysql # not compatible
query I rowsort label-2788
SELECT - COUNT ( * ) + - + 99
----
-100

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

query I rowsort
SELECT DISTINCT + 52 * 51 * - 27 + 64 - + 68
----
-71608

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - MAX( DISTINCT - + 34 ) * - 86
----
-2924

skipif mysql # not compatible
query I rowsort label-2791
SELECT - MAX ( DISTINCT - + 34 ) * - 86
----
-2924

query I rowsort
SELECT ALL - + 50 * 95
----
-4750

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT - 79 DIV 61 + + 93 - + 97
----
-5

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 79 / 61 + + 93 - + 97
----
-5

query I rowsort
SELECT - + 33 + 79 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT DISTINCT + + CASE - 28 WHEN 0 / 40 + - COUNT( ALL - 42 ) THEN NULL WHEN - CASE + 80 WHEN 58 THEN - + ( + CASE COUNT( * ) WHEN + CAST( - 46 AS SIGNED ) THEN NULL ELSE AVG ( ALL + 99 ) END ) * - 46 + 98 END THEN - COUNT( * ) - MAX( ALL + 36 ) ELSE - 88 + - 46 * + ( 16 - 52 * + ( 0 + - 23 * 43 ) ) END AS col2
----
-2366512

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + + CASE - 28 WHEN 0 / 40 + - COUNT ( ALL - 42 ) THEN NULL WHEN - CASE + 80 WHEN 58 THEN - + ( + CASE COUNT ( * ) WHEN + CAST ( - 46 AS INTEGER ) THEN NULL ELSE AVG ( ALL + 99 ) END ) * - 46 + 98 END THEN - COUNT ( * ) - MAX ( ALL + 36 ) ELSE - 88 + - 46 * + ( 16 - 52 * + ( 0 + - 23 * 43 ) ) END AS col2
----
-2366512

query I rowsort
SELECT - + 64 * + 85 AS col2
----
-5440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2797
SELECT 61, 60 * CAST( NULL AS SIGNED ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-2797
SELECT 61, 60 * CAST ( NULL AS INTEGER ) AS col0
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT COUNT( DISTINCT - 20 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2798
SELECT COUNT ( DISTINCT - 20 ) col1
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2800
SELECT ALL 74 DIV - 12 + + COUNT( * ) * + 32 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL 74 / - 12 + + COUNT ( * ) * + 32 AS col2
----
26

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

skipif mysql # not compatible
query I rowsort label-2801
SELECT - 72 * + + COUNT ( * ) + - COUNT ( * ) / 10
----
-72

query II rowsort
SELECT 4, 8 col1
----
4
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2803
SELECT ALL + COUNT( ALL + NULLIF ( - CAST( + 62 AS SIGNED ), - 89 ) ) DIV - + 30 + 75 * + - 51
----
-3825

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + COUNT ( ALL + NULLIF ( - CAST ( + 62 AS INTEGER ), - 89 ) ) / - + 30 + 75 * + - 51
----
-3825

query II rowsort
SELECT - 39 * - 63 AS col2, 28 col1
----
2457
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2805
SELECT + + 32 * + 87 * - 18 * CAST( NULL AS DECIMAL ) + - CAST( + - COALESCE ( COUNT( * ), + 0, + 48 * 60 + - 28 + - 52 + + + 82 / + - CAST( - - 99 AS SIGNED ) * 75 / 40 + 29 - 80 ) AS SIGNED ) + + 60 * + 37 * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + + 32 * + 87 * - 18 * CAST ( NULL AS REAL ) + - CAST ( + - COALESCE ( COUNT ( * ), + 0, + 48 * 60 + - 28 + - 52 + + + 82 / + - CAST ( - - 99 AS INTEGER ) * 75 / 40 + 29 - 80 ) AS INTEGER ) + + 60 * + 37 * 73 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT + MIN( DISTINCT - + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2807
SELECT + MIN ( DISTINCT - + 15 ) AS col1
----
-15

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

skipif mysql # not compatible
query I rowsort label-2808
SELECT ( - + CAST ( - 61 AS INTEGER ) ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT ALL 68 + + 31 DIV + COUNT( * ) + + + 34
----
133

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL 68 + + 31 / + COUNT ( * ) + + + 34
----
133

query I rowsort
SELECT 64 * + 25 * - ( + 74 )
----
-118400

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT ALL 97 DIV 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL 97 / 56 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT DISTINCT 26 DIV + 8
----
3

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT 26 / + 8
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL 91 - + COUNT( - + 58 )
----
90

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL 91 - + COUNT ( - + 58 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT ( - 33 ) DIV 13
----
-2

skipif mysql # not compatible
query I rowsort label-2814
SELECT ( - 33 ) / 13
----
-2

query I rowsort
SELECT 82 + 89 + 42
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT 18 * + 16 AS col0, - 70 * MAX( + ( 67 ) )
----
288
-4690

skipif mysql # not compatible
query II rowsort label-2816
SELECT 18 * + 16 AS col0, - 70 * MAX ( + ( 67 ) )
----
288
-4690

query I rowsort
SELECT ALL 55 * - 20 col0
----
-1100

query II rowsort
SELECT ALL 19 * 85 AS col1, - 59 AS col0
----
1615
-59

query II rowsort
SELECT 34 + 34 AS col0, 75 col1
----
68
75

query I rowsort
SELECT 80 + - 75 - - 43 AS col2
----
48

query I rowsort
SELECT 11 * + 49 AS col1
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL + 98 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + 98 / 54
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2823
SELECT CASE 17 WHEN - ( + - CAST( + 12 AS DECIMAL ) ) THEN 67 WHEN - + 99 + + 97 THEN + 14 * + 68 WHEN COALESCE ( + 96, - 13 ) THEN - ( - 58 ) / - + 29 + 91 * - 50 END / 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT CASE 17 WHEN - ( + - CAST ( + 12 AS REAL ) ) THEN 67 WHEN - + 99 + + 97 THEN + 14 * + 68 WHEN COALESCE ( + 96, - 13 ) THEN - ( - 58 ) / - + 29 + 91 * - 50 END / 64 AS col2
----
NULL

query I rowsort
SELECT ( 97 ) * 36
----
3492

query I rowsort
SELECT ALL - 7 + 65 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT COUNT( * ) * - 44 - 99 + + - 12 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-2826
SELECT COUNT ( * ) * - 44 - 99 + + - 12 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT DISTINCT 13 + - - 7, - COUNT( * ) AS col2
----
20
-1

skipif mysql # not compatible
query II rowsort label-2827
SELECT DISTINCT 13 + - - 7, - COUNT ( * ) AS col2
----
20
-1

query I rowsort
SELECT ALL 17 * - ( + 86 )
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT COUNT( * ) * - 11 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2829
SELECT COUNT ( * ) * - 11 AS col1
----
-11

query I rowsort
SELECT DISTINCT + 16 + + 71
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT DISTINCT + COUNT( * ) * + - 73 AS col2, - 9 * NULLIF ( 10, - 53 )
----
-73
-90

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT + COUNT ( * ) * + - 73 AS col2, - 9 * NULLIF ( 10, - 53 )
----
-73
-90

query I rowsort
SELECT ALL - - 30 + - 3 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT - - 82 / + + MIN( ALL - 97 ) / + + 40 + + ( - 47 ) + + - CASE + 20 WHEN 28 THEN NULL WHEN - 10 THEN 9 END + - CAST( + 50 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT - - 82 / + + MIN ( ALL - 97 ) / + + 40 + + ( - 47 ) + + - CASE + 20 WHEN 28 THEN NULL WHEN - 10 THEN 9 END + - CAST ( + 50 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + NULLIF ( 32, + 98 ) * CASE - 9 WHEN - 93 * - - COUNT( * ) THEN 16 - + 17 END / COUNT( * ) * - - COALESCE ( + 95, - - MIN( ALL - ( - 34 ) ) * - 81 ) + - + ( + COUNT( * ) ) + - 97 / 98 - 41 * 4 - - COALESCE ( 77, 87, + ( CASE COUNT( * ) WHEN 99 * - 24 THEN NULL WHEN - ( 25 ) - COUNT( * ) THEN NULL ELSE + 32 * - 55 END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT + NULLIF ( 32, + 98 ) * CASE - 9 WHEN - 93 * - - COUNT ( * ) THEN 16 - + 17 END / COUNT ( * ) * - - COALESCE ( + 95, - - MIN ( ALL - ( - 34 ) ) * - 81 ) + - + ( + COUNT ( * ) ) + - 97 / 98 - 41 * 4 - - COALESCE ( 77, 87, + ( CASE COUNT ( * ) WHEN 99 * - 24 THEN NULL WHEN - ( 25 ) - COUNT ( * ) THEN NULL ELSE + 32 * - 55 END ) ) col1
----
NULL

query I rowsort
SELECT + 81 * + 27 + - - 67
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT 64 + - 15 * - + SUM( + 82 ) - ( + 9 ) * + 5
----
1249

skipif mysql # not compatible
query I rowsort label-2836
SELECT 64 + - 15 * - + SUM ( + 82 ) - ( + 9 ) * + 5
----
1249

query I rowsort
SELECT 2 * ( + - 29 ) + + - 56 AS col0
----
-114

query II rowsort
SELECT ALL - 54, 34 AS col0
----
-54
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT 92 + - - COUNT( * ) + - 70 - 27 * + + 61 AS col0
----
-1624

skipif mysql # not compatible
query I rowsort label-2839
SELECT 92 + - - COUNT ( * ) + - 70 - 27 * + + 61 AS col0
----
-1624

query I rowsort
SELECT ALL + 39 * + 0 * + 3 AS col1
----
0

query I rowsort
SELECT 63 * - + 56
----
-3528

query I rowsort
SELECT 99 * + - 23 AS col0
----
-2277

query I rowsort
SELECT 8 + + - 40 col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2844
SELECT ALL - 44 col2, 59 DIV COUNT( * ) col1
----
-44
59

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL - 44 col2, 59 / COUNT ( * ) col1
----
-44
59

query I rowsort
SELECT - 86 * - 93 + + 85 + - - 1 AS col0
----
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT 89 * + - ( ( 59 ) ) * COUNT( * )
----
-5251

skipif mysql # not compatible
query I rowsort label-2846
SELECT 89 * + - ( ( 59 ) ) * COUNT ( * )
----
-5251

query II rowsort
SELECT DISTINCT 68 col1, + 54 col2
----
68
54

query I rowsort
SELECT DISTINCT + 21 * + 13 AS col2
----
273

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT CAST( 10 AS SIGNED ) * + 93 * + NULLIF ( - 20, MIN( - + 55 ) / + 56 * - + 88 ) * - 15 AS col2
----
279000

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT CAST ( 10 AS INTEGER ) * + 93 * + NULLIF ( - 20, MIN ( - + 55 ) / + 56 * - + 88 ) * - 15 AS col2
----
279000

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT COALESCE ( - COUNT( * ), - COUNT( * ) * - COALESCE ( + ( + 5 ), 58 ), + 22 + NULLIF ( + + 15, - 34 ) ) * - 48 + + 14
----
62

skipif mysql # not compatible
query I rowsort label-2852
SELECT COALESCE ( - COUNT ( * ), - COUNT ( * ) * - COALESCE ( + ( + 5 ), 58 ), + 22 + NULLIF ( + + 15, - 34 ) ) * - 48 + + 14
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT ALL ( + 28 ) DIV - 63 + 71
----
71

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL ( + 28 ) / - 63 + 71
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2854
SELECT COALESCE ( - 50, + + 26 * + 36 - + 1 + + NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) * - 98 / + 8 ) * + SUM( - - 65 ) ) - - 20, 26 col0
----
-30
26

skipif mysql # not compatible
query II rowsort label-2854
SELECT COALESCE ( - 50, + + 26 * + 36 - + 1 + + NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) * - 98 / + 8 ) * + SUM ( - - 65 ) ) - - 20, 26 col0
----
-30
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ( + 81 ) DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT ( + 81 ) / 90 AS col2
----
0

query I rowsort
SELECT DISTINCT 17 * - 75 AS col2
----
-1275

query I rowsort
SELECT - 91 * + + 90 * 88 + + - 4
----
-720724

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

query I rowsort
SELECT DISTINCT - 69 + 90 AS col2
----
21

query I rowsort
SELECT ALL 44 + - 17
----
27

query II rowsort
SELECT 16 AS col1, - 22
----
16
-22

query I rowsort
SELECT - 32 - + 13
----
-45

query II rowsort
SELECT ALL 23 AS col0, + 72 AS col0
----
23
72

query I rowsort
SELECT DISTINCT 6 + 51
----
57

query I rowsort
SELECT 97 * 68 AS col2
----
6596

query I rowsort
SELECT - - ( 50 ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT ALL - 76 + 29 DIV 99 - - 49
----
-27

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - 76 + 29 / 99 - - 49
----
-27

query I rowsort
SELECT 15 * + + ( - 33 )
----
-495

query II rowsort
SELECT - + 30 AS col2, + 20 + + + 51 AS col1
----
-30
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT 5 + + 59 + + 25 DIV - + NULLIF ( - 80, - 23 * - CASE - 10 WHEN - 59 * + 96 THEN NULL WHEN - COUNT( 31 ) THEN NULL ELSE 40 END ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2870
SELECT 5 + + 59 + + 25 / - + NULLIF ( - 80, - 23 * - CASE - 10 WHEN - 59 * + 96 THEN NULL WHEN - COUNT ( 31 ) THEN NULL ELSE 40 END ) AS col0
----
64

query I rowsort
SELECT - 90 + - 71 AS col0
----
-161

query I rowsort
SELECT DISTINCT + 93 * - + 52 * + 77 * 54
----
-20108088

query I rowsort
SELECT ALL 3 * + 38 - + 16 AS col1
----
98

query II rowsort
SELECT DISTINCT + + 13, - 31 AS col2
----
13
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + COALESCE ( + - MIN( 29 ), 97 )
----
-29

skipif mysql # not compatible
query I rowsort label-2875
SELECT + COALESCE ( + - MIN ( 29 ), 97 )
----
-29

query I rowsort
SELECT DISTINCT 51 * 46 AS col2
----
2346

onlyif mysql # aggregate syntax: 
query II rowsort label-2877
SELECT DISTINCT + MAX( - 89 ), - 39 AS col2
----
-89
-39

skipif mysql # not compatible
query II rowsort label-2877
SELECT DISTINCT + MAX ( - 89 ), - 39 AS col2
----
-89
-39

query I rowsort
SELECT + ( 25 ) - - 95
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT + AVG ( ALL - 41 ) - - CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + - COUNT( * ) END - COUNT( * ) / - 41 * - + 31 + - + 35 + 6 + - 63 + - + SUM( - 80 ) - + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT + AVG ( ALL - 41 ) - - CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + - COUNT ( * ) END - COUNT ( * ) / - 41 * - + 31 + - + 35 + 6 + - 63 + - + SUM ( - 80 ) - + 8 AS col1
----
NULL

query I rowsort
SELECT - 73 * - 5
----
365

onlyif mysql # DIV for integer division: 
query II rowsort label-2881
SELECT - 32 DIV + 7, + 21 AS col0
----
-4
21

skipif mysql # not compatible
query II rowsort label-2881
SELECT - 32 / + 7, + 21 AS col0
----
-4
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT + 44 * MIN( DISTINCT 48 )
----
2112

skipif mysql # not compatible
query I rowsort label-2882
SELECT + 44 * MIN ( DISTINCT 48 )
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT ALL + CASE ( 46 ) WHEN + ( + + 88 ) THEN 87 WHEN - 0 THEN NULL WHEN - 94 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 71 THEN + + 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + CASE ( 46 ) WHEN + ( + + 88 ) THEN 87 WHEN - 0 THEN NULL WHEN - 94 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 71 THEN + + 63 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 14 - 53
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CASE - - 84 WHEN 40 + + 45 THEN NULL ELSE + 42 - - 12 - 60 + - 25 * + CASE - NULLIF ( 92, 70 * - - COALESCE ( + 28, + + COUNT( * ) - + COUNT( * ), - 53 ) / - 5 + + 57 ) WHEN 85 + 18 THEN NULL WHEN - 21 THEN NULL ELSE 50 END + MIN( DISTINCT + 4 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CASE - - 84 WHEN 40 + + 45 THEN NULL ELSE + 42 - - 12 - 60 + - 25 * + CASE - NULLIF ( 92, 70 * - - COALESCE ( + 28, + + COUNT ( * ) - + COUNT ( * ), - 53 ) / - 5 + + 57 ) WHEN 85 + 18 THEN NULL WHEN - 21 THEN NULL ELSE 50 END + MIN ( DISTINCT + 4 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - AVG ( ALL 62 ) + + CASE NULLIF ( + 32, ( + 6 ) + - - 36 ) WHEN + SUM( 44 ) + - 20 / 33 THEN 73 + + - 25 WHEN 4 THEN NULL END - + 77 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT - AVG ( ALL 62 ) + + CASE NULLIF ( + 32, ( + 6 ) + - - 36 ) WHEN + SUM ( 44 ) + - 20 / 33 THEN 73 + + - 25 WHEN 4 THEN NULL END - + 77 * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT ALL + 32 * + 49, + COUNT( - - 83 ) col2
----
1568
1

skipif mysql # not compatible
query II rowsort label-2887
SELECT ALL + 32 * + 49, + COUNT ( - - 83 ) col2
----
1568
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2888
SELECT - SUM( DISTINCT + 18 ) + - 52 DIV + 37 AS col0, + 20 AS col1
----
-19
20

skipif mysql # not compatible
query II rowsort label-2888
SELECT - SUM ( DISTINCT + 18 ) + - 52 / + 37 AS col0, + 20 AS col1
----
-19
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + 50 - + 45 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2889
SELECT + 50 - + 45 * + COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL 33 + - CAST( NULL AS SIGNED ) * + ( - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL 33 + - CAST ( NULL AS INTEGER ) * + ( - 67 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL + 71 * - COUNT( * ) + 84 + - 48 * 14 AS col1
----
-659

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + 71 * - COUNT ( * ) + 84 + - 48 * 14 AS col1
----
-659

query I rowsort
SELECT - 16 + + + 54
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2893
SELECT ALL - COUNT( * ) DIV + MIN( + - COALESCE ( + + ( 57 ), + 42, + 60 DIV - 14 ) ) * + 7 + - MIN( ALL + CAST( - - 61 AS SIGNED ) ) AS col2, MIN( DISTINCT - CASE + 67 WHEN 21 + - CAST( NULL AS SIGNED ) THEN + - 43 * 8 ELSE NULL END ) AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-2893
SELECT ALL - COUNT ( * ) / + MIN ( + - COALESCE ( + + ( 57 ), + 42, + 60 / - 14 ) ) * + 7 + - MIN ( ALL + CAST ( - - 61 AS INTEGER ) ) AS col2, MIN ( DISTINCT - CASE + 67 WHEN 21 + - CAST ( NULL AS INTEGER ) THEN + - 43 * 8 ELSE NULL END ) AS col0
----
-61
NULL

query II rowsort
SELECT ALL + + 88 + - 18, + 68 AS col2
----
70
68

query I rowsort
SELECT - 91 + - + 52 AS col0
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT ALL 35 * + 36 DIV 4 AS col1
----
315

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL 35 * + 36 / 4 AS col1
----
315

query I rowsort
SELECT ALL - 64 * - + 74 AS col2
----
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL 62 - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL 62 - + COUNT ( * )
----
61

query I rowsort
SELECT ALL + NULLIF ( + 86, - 52 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT SUM( ALL + - 72 ) DIV - CASE - SUM( ALL 80 ) WHEN + COALESCE ( + NULLIF ( 45, - - NULLIF ( - COUNT( * ), AVG ( ALL + 59 ) + + 3 ) * - - 76 ), + ( 48 ), + 18 - + 35 ) * - 78 THEN NULL WHEN - COUNT( + 37 ) * 40 + 58 THEN - 71 ELSE 23 + - 47 END - - 81
----
78

skipif mysql # not compatible
query I rowsort label-2900
SELECT SUM ( ALL + - 72 ) / - CASE - SUM ( ALL 80 ) WHEN + COALESCE ( + NULLIF ( 45, - - NULLIF ( - COUNT ( * ), AVG ( ALL + 59 ) + + 3 ) * - - 76 ), + ( 48 ), + 18 - + 35 ) * - 78 THEN NULL WHEN - COUNT ( + 37 ) * 40 + 58 THEN - 71 ELSE 23 + - 47 END - - 81
----
78

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

skipif mysql # not compatible
query I rowsort label-2901
SELECT + 46 * COUNT ( * ) * + 3 AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT CAST( - COALESCE ( + 54, + 45 ) AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2902
SELECT CAST ( - COALESCE ( + 54, + 45 ) AS INTEGER ) AS col1
----
-54

query I rowsort
SELECT ALL 10 * 2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT ( CAST( NULL AS SIGNED ) ) * + 84 + - 85 + 95 + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT ( CAST ( NULL AS INTEGER ) ) * + 84 + - 85 + 95 + - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT ( + ( 98 ) ), + MAX( ALL - - 71 ) col1
----
98
71

skipif mysql # not compatible
query II rowsort label-2905
SELECT ( + ( 98 ) ), + MAX ( ALL - - 71 ) col1
----
98
71

query I rowsort
SELECT + 56 * - 81
----
-4536

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + COUNT( * ) + 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2909
SELECT + COUNT ( * ) + 83 AS col0
----
84

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

query I rowsort
SELECT + 20 * - 24 AS col2
----
-480

query I rowsort
SELECT - 26 * - ( + 41 )
----
1066

query I rowsort
SELECT + 38 + + 52 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2914
SELECT - 78 * + - 69 + + - 43 + - + ( + 76 ) + + NULLIF ( + - COUNT( * ), + SUM( DISTINCT - CAST( - + 99 AS SIGNED ) ) ) DIV + 56 + + MAX( - 9 ) + + 3 * ( + 47 )
----
5395

skipif mysql # not compatible
query I rowsort label-2914
SELECT - 78 * + - 69 + + - 43 + - + ( + 76 ) + + NULLIF ( + - COUNT ( * ), + SUM ( DISTINCT - CAST ( - + 99 AS INTEGER ) ) ) / + 56 + + MAX ( - 9 ) + + 3 * ( + 47 )
----
5395

query I rowsort
SELECT ALL + 3 * - 4
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL + COUNT( * ) * - + CASE + 27 WHEN + - SUM( - - 75 ) THEN - + 46 END + - - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL + COUNT ( * ) * - + CASE + 27 WHEN + - SUM ( - - 75 ) THEN - + 46 END + - - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT COALESCE ( 11, - + 30 * ( + 60 ) + - - COALESCE ( COUNT( * ), - + 69 + + 34 * + + MIN( DISTINCT - 11 ) ) ) AS col0, + 19
----
11
19

skipif mysql # not compatible
query II rowsort label-2917
SELECT COALESCE ( 11, - + 30 * ( + 60 ) + - - COALESCE ( COUNT ( * ), - + 69 + + 34 * + + MIN ( DISTINCT - 11 ) ) ) AS col0, + 19
----
11
19

query I rowsort
SELECT + 54 * - 76 AS col1
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT - 60 + + SUM( ALL + + ( - 13 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-2919
SELECT - 60 + + SUM ( ALL + + ( - 13 ) )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2920
SELECT ALL - 78 * - 28 + 18 DIV + - MIN( DISTINCT - - 49 ), 73 * - COUNT( ALL 40 ) * 31 * - 24 AS col1
----
2184
54312

skipif mysql # not compatible
query II rowsort label-2920
SELECT ALL - 78 * - 28 + 18 / + - MIN ( DISTINCT - - 49 ), 73 * - COUNT ( ALL 40 ) * 31 * - 24 AS col1
----
2184
54312

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + 30 * - COUNT( * ) * - + 59
----
1770

skipif mysql # not compatible
query I rowsort label-2921
SELECT + 30 * - COUNT ( * ) * - + 59
----
1770

query I rowsort
SELECT + 40 * 75 + - 87 AS col1
----
2913

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL + - 38 * - - 86 * 0 + + 15 + + + 18 * + + COUNT( * ) col1
----
33

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + - 38 * - - 86 * 0 + + 15 + + + 18 * + + COUNT ( * ) col1
----
33

query I rowsort
SELECT - - 31 * 30
----
930

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

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + COUNT ( * ) * 67 AS col2
----
67

query I rowsort
SELECT - 9 + + 87 - 69 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL + + 7 * - + 12 + COUNT( * ) + COUNT( * ) * - 49 * + 31
----
-1602

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + + 7 * - + 12 + COUNT ( * ) + COUNT ( * ) * - 49 * + 31
----
-1602

query I rowsort
SELECT DISTINCT - 87 * + 43 AS col2
----
-3741

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2930
SELECT + CAST( NULL AS SIGNED ) AS col0, + 58 * + ( - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2930
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 58 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + SUM( + + ( 21 ) ) - 48 + + 15 * - + COALESCE ( + 57, COUNT( * ) ) AS col2
----
-882

skipif mysql # not compatible
query I rowsort label-2931
SELECT + SUM ( + + ( 21 ) ) - 48 + + 15 * - + COALESCE ( + 57, COUNT ( * ) ) AS col2
----
-882

query I rowsort
SELECT ALL - + 24 * + + 48 + + + 71
----
-1081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2933
SELECT - + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2, SUM( DISTINCT + + CASE 45 WHEN 80 * + + 30 * 28 + + 17 THEN 91 + 72 WHEN - 16 - 66 THEN + 70 * 68 ELSE NULL END ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2933
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2, SUM ( DISTINCT + + CASE 45 WHEN 80 * + + 30 * 28 + + 17 THEN 91 + 72 WHEN - 16 - 66 THEN + 70 * 68 ELSE NULL END ) AS col1
----
0
NULL

query I rowsort
SELECT - 80 - 22 * COALESCE ( 18, - + 55, - + 30 + - 80 ) AS col1
----
-476

query I rowsort
SELECT - - 44 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2936
SELECT DISTINCT + - 11 - + ( - 12 ) * COALESCE ( SUM( ALL - 16 ), 14 * + - 46 - - COUNT( * ) - 23 + - - ( + - 78 ) * + - 7, 11 + 43 + + - 82 DIV NULLIF ( - + 43, + CAST( NULL AS SIGNED ) - - 11 + - COALESCE ( 55, - 77 + - COUNT( * ) ) * 80 ) ) + + 45 AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + - 11 - + ( - 12 ) * COALESCE ( SUM ( ALL - 16 ), 14 * + - 46 - - COUNT ( * ) - 23 + - - ( + - 78 ) * + - 7, 11 + 43 + + - 82 / NULLIF ( - + 43, + CAST ( NULL AS INTEGER ) - - 11 + - COALESCE ( 55, - 77 + - COUNT ( * ) ) * 80 ) ) + + 45 AS col0
----
-158

query I rowsort
SELECT DISTINCT + 9 col0
----
9

query I rowsort
SELECT DISTINCT - + ( 10 ) * - 45 AS col1
----
450

query II rowsort
SELECT 20 col0, - CASE WHEN + 83 IS NULL THEN NULL ELSE + 82 END AS col0
----
20
-82

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

skipif mysql # not compatible
query I rowsort label-2940
SELECT 2 / - + 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT ALL - 80 DIV - 58
----
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - 80 / - 58
----
1

query I rowsort
SELECT 73 * - - 95 AS col1
----
6935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT ( + - CAST( NULL AS SIGNED ) ) * 61 * + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT ( + - CAST ( NULL AS INTEGER ) ) * 61 * + + 83 AS col1
----
NULL

query II rowsort
SELECT + 94 AS col1, COALESCE ( COALESCE ( + CASE + 68 WHEN + + 56 THEN + + 0 + + 72 ELSE NULL END, - 60 ), 9 ) + 6
----
94
-54

query I rowsort
SELECT 1 * + + 6
----
6

query I rowsort
SELECT DISTINCT + 62 + - + 25 AS col0
----
37

query I rowsort
SELECT ALL CASE 26 WHEN - 59 THEN NULL WHEN + 21 + - 7 THEN 66 ELSE + 62 END + + - 33 + - COALESCE ( 73, - 31 ) + - + ( - 83 ) * - - 21 AS col1
----
1699

query II rowsort
SELECT + 61, 7 * 48 AS col2
----
61
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL MIN( + ( 53 ) ) + - NULLIF ( - + COUNT( * ), AVG ( - 61 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL MIN ( + ( 53 ) ) + - NULLIF ( - + COUNT ( * ), AVG ( - 61 ) ) AS col0
----
54

query I rowsort
SELECT 27 * - + 12 * - + 93
----
30132

query I rowsort
SELECT 98 - + 4 * + + COALESCE ( + 19, - 43 - - - 60 ) AS col0
----
22

query I rowsort
SELECT 17 * 52 AS col0
----
884

query I rowsort
SELECT 52 * + 65 * + 29 * - 67
----
-6567340

query II rowsort
SELECT 68 AS col1, - 36
----
68
-36

query I rowsort
SELECT - 80 * - 36 - 15 + - - ( - + 5 ) col1
----
2860

query I rowsort
SELECT 3 - - 52 + - 51 + CASE - 89 WHEN AVG ( - - 9 ) * 66 + + 38 THEN + 57 WHEN - 51 THEN NULL END / - CASE 60 WHEN 76 THEN - + 51 - - 61 ELSE - 39 END / + + 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2957
SELECT ALL 68 - - CAST( 49 AS SIGNED ) DIV - 6
----
60

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL 68 - - CAST ( 49 AS INTEGER ) / - 6
----
60

query I rowsort
SELECT - 51 + - 53 AS col2
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT ALL - 88 * - ( 96 ) DIV + COALESCE ( - COUNT( * ), + 68 * + - 94 ) + 40
----
-8408

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - 88 * - ( 96 ) / + COALESCE ( - COUNT ( * ), + 68 * + - 94 ) + 40
----
-8408

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT 82 + - NULLIF ( - 63, - NULLIF ( - 0, + 47 * 62 + + - 71 ) * + MIN( ALL - 93 ) * - - 70 / + 46 ) AS col1, 78 AS col0
----
145
78

skipif mysql # not compatible
query II rowsort label-2960
SELECT 82 + - NULLIF ( - 63, - NULLIF ( - 0, + 47 * 62 + + - 71 ) * + MIN ( ALL - 93 ) * - - 70 / + 46 ) AS col1, 78 AS col0
----
145
78

query I rowsort
SELECT + 34 - - 74 + 20 - - 64
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2962
SELECT 85 AS col0, CAST( NULL AS SIGNED ) AS col2
----
85
NULL

skipif mysql # not compatible
query II rowsort label-2962
SELECT 85 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
85
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT COUNT( - 30 ) * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2964
SELECT COUNT ( - 30 ) * + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT 51 + - 46 + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2965
SELECT 51 + - 46 + COUNT ( * ) AS col2
----
6

query II rowsort
SELECT - 70 AS col0, 76
----
-70
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT 28 * + CAST( + COUNT( * ) AS SIGNED ) * - - ( + + 7 )
----
196

skipif mysql # not compatible
query I rowsort label-2967
SELECT 28 * + CAST ( + COUNT ( * ) AS INTEGER ) * - - ( + + 7 )
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL - NULLIF ( MAX( + 41 ), - 51 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - NULLIF ( MAX ( + 41 ), - 51 ) AS col0
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT 18 * - - COUNT( * ) * + COUNT( * ) * 37 * + - 97
----
-64602

skipif mysql # not compatible
query I rowsort label-2970
SELECT 18 * - - COUNT ( * ) * + COUNT ( * ) * 37 * + - 97
----
-64602

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT ALL 27 + NULLIF ( - 89, - 8 ) - - 22 DIV ( + 57 ) + - 0
----
-62

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL 27 + NULLIF ( - 89, - 8 ) - - 22 / ( + 57 ) + - 0
----
-62

query I rowsort
SELECT 98 - 83
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2973
SELECT ALL - 67 * + 36 + + CASE 77 WHEN - 53 + 77 + 36 * + 15 - + - 88 THEN NULL ELSE - 62 DIV + 42 END + + COUNT( * ) * 36 + + 36 AS col1
----
-2341

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - 67 * + 36 + + CASE 77 WHEN - 53 + 77 + 36 * + 15 - + - 88 THEN NULL ELSE - 62 / + 42 END + + COUNT ( * ) * 36 + + 36 AS col1
----
-2341

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT - 33 DIV - 10 + + 88 * - 53
----
-4661

skipif mysql # not compatible
query I rowsort label-2974
SELECT - 33 / - 10 + + 88 * - 53
----
-4661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL 45 * + + 58 + - - MIN( - COALESCE ( + - 98, 91 ) ) + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 45 * + + 58 + - - MIN ( - COALESCE ( + - 98, 91 ) ) + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2976
SELECT 27 DIV + 12 AS col1, 8, + COUNT( * ) * - + 83 AS col1
----
2
8
-83

skipif mysql # not compatible
query III rowsort label-2976
SELECT 27 / + 12 AS col1, 8, + COUNT ( * ) * - + 83 AS col1
----
2
8
-83

query I rowsort
SELECT + 70 * 55 + ( - 35 )
----
3815

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT COUNT( * ) - + + 38 * + 74 AS col0
----
-2811

skipif mysql # not compatible
query I rowsort label-2978
SELECT COUNT ( * ) - + + 38 * + 74 AS col0
----
-2811

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2979
SELECT ALL - NULLIF ( - 21, + ( - ( CAST( + COUNT( * ) AS DECIMAL ) ) ) ) * - 82 - + 59 + + - 35 + - - COUNT( * ) AS col1
----
-1815

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - NULLIF ( - 21, + ( - ( CAST ( + COUNT ( * ) AS REAL ) ) ) ) * - 82 - + 59 + + - 35 + - - COUNT ( * ) AS col1
----
-1815

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT 7 + + COUNT( * ) AS col2, + 79
----
8
79

skipif mysql # not compatible
query II rowsort label-2980
SELECT 7 + + COUNT ( * ) AS col2, + 79
----
8
79

query I rowsort
SELECT 17 + - + 21
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT ALL - 24 * + COUNT( * ) * 25 + - 17 + 46 - + - 95 DIV - 22 AS col2
----
-575

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - 24 * + COUNT ( * ) * 25 + - 17 + 46 - + - 95 / - 22 AS col2
----
-575

query I rowsort
SELECT 23 * 26 AS col0
----
598

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

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT 36 * SUM( ALL 42 ) * 4 AS col1
----
6048

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT 36 * SUM ( ALL 42 ) * 4 AS col1
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT - SUM( + 79 ) + + 51 + - 20
----
-48

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - SUM ( + 79 ) + + 51 + - 20
----
-48

query I rowsort
SELECT ALL + 14 - - 10 + 98
----
122

query I rowsort
SELECT - ( + - 88 ) + - NULLIF ( - NULLIF ( 27, + 62 * - - 73 ), - ( 62 ) )
----
115

query I rowsort
SELECT 48 * - + 56 + - 14 AS col1
----
-2702

query I rowsort
SELECT ALL ( - 95 ) - + - 80 - + NULLIF ( 49, + + 43 ) * - + 8 * + 1 * + 14
----
5473

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT + 9 DIV + 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + 9 / + 25 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT + COUNT( DISTINCT - 46 ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT + COUNT ( DISTINCT - 46 ) / + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2993
SELECT + - 96 + - 52, - COUNT( DISTINCT ( 99 ) ) AS col2, + + NULLIF ( - + AVG ( + + CAST( NULL AS DECIMAL ) ), - + ( - + COUNT( * ) ) ) AS col2
----
-148
-1
NULL

skipif mysql # not compatible
query III rowsort label-2993
SELECT + - 96 + - 52, - COUNT ( DISTINCT ( 99 ) ) AS col2, + + NULLIF ( - + AVG ( + + CAST ( NULL AS REAL ) ), - + ( - + COUNT ( * ) ) ) AS col2
----
-148
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL + MIN( 14 ), - 95 + + + 97 AS col2
----
14
2

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL + MIN ( 14 ), - 95 + + + 97 AS col2
----
14
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2995
SELECT ALL + COUNT( * ) * - 15 + COALESCE ( - + 11, COUNT( * ) * + COUNT( * ), + + 39 ) DIV COUNT( * ) AS col0, 6 AS col2
----
-26
6

skipif mysql # not compatible
query II rowsort label-2995
SELECT ALL + COUNT ( * ) * - 15 + COALESCE ( - + 11, COUNT ( * ) * + COUNT ( * ), + + 39 ) / COUNT ( * ) AS col0, 6 AS col2
----
-26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + - 52 - + + 79 + + - COUNT( * ) * + COUNT( * ) * CASE - 91 WHEN 49 THEN + + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT + - 52 - + + 79 + + - COUNT ( * ) * + COUNT ( * ) * CASE - 91 WHEN 49 THEN + + 26 END
----
NULL

query I rowsort
SELECT + - 46 * + 70 AS col2
----
-3220

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

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + 83 + COUNT ( * ) AS col0
----
84

query I rowsort
SELECT - 51 + 84
----
33

query I rowsort
SELECT DISTINCT + COALESCE ( - 72, 83 ) / - 86 * + + CASE - - 38 WHEN - 73 * + - 44 THEN + 94 END AS col1
----
NULL

query I rowsort
SELECT ALL + 17 + + + 78
----
95

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

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

query I rowsort
SELECT DISTINCT + 44 + 67 AS col2
----
111

query II rowsort
SELECT 77, 18 * - 60 * 76 AS col2
----
77
-82080

query I rowsort
SELECT ALL 73 + 15
----
88

query II rowsort
SELECT - 85 + - ( + + 29 ) AS col1, 10 AS col1
----
-114
10

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

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

query I rowsort
SELECT + 55 * - 12
----
-660

query I rowsort
SELECT - 61 + + CASE 19 WHEN - + 85 THEN NULL ELSE - - 82 * + 22 END + - + 48
----
1695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL + 29 * - ( CAST( + + 88 AS SIGNED ) ) + + + 14 * 7 * - 53
----
-7746

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + 29 * - ( CAST ( + + 88 AS INTEGER ) ) + + + 14 * 7 * - 53
----
-7746

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT 18 * COUNT( * ) DIV + 76 * - 52 + MAX( ALL 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3012
SELECT 18 * COUNT ( * ) / + 76 * - 52 + MAX ( ALL 2 ) AS col0
----
2

query I rowsort
SELECT ALL + 27 * 52 col0
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3014
SELECT DISTINCT + 94 col0, CAST( + CAST( + + COUNT( * ) AS SIGNED ) AS SIGNED ) + + 32 * COUNT( * ) + ( - - 13 )
----
94
46

skipif mysql # not compatible
query II rowsort label-3014
SELECT DISTINCT + 94 col0, CAST ( + CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) + + 32 * COUNT ( * ) + ( - - 13 )
----
94
46

query I rowsort
SELECT DISTINCT + 35 * - - 62 - - - 13
----
2157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3016
SELECT ALL NULLIF ( - - 91, - CASE - 33 WHEN + + 40 + + COUNT( * ) * - CAST( NULL AS DECIMAL ) + + - 88 THEN + 23 WHEN + 96 + 60 + 97 + - 82 / - ( 38 ) THEN NULL END + - - 99 ) * + 73
----
6643

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL NULLIF ( - - 91, - CASE - 33 WHEN + + 40 + + COUNT ( * ) * - CAST ( NULL AS REAL ) + + - 88 THEN + 23 WHEN + 96 + 60 + 97 + - 82 / - ( 38 ) THEN NULL END + - - 99 ) * + 73
----
6643

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT ALL + 7 AS col2, COUNT( * ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL + 7 AS col2, COUNT ( * ) AS col1
----
7
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL - ( - 74 ) * 65 - ( COUNT( * ) )
----
4809

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - ( - 74 ) * 65 - ( COUNT ( * ) )
----
4809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * 30 - - NULLIF ( 84, - 87 ) col1
----
114

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * 30 - - NULLIF ( 84, - 87 ) col1
----
114

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

query I rowsort
SELECT - - 57 - + 18
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - 34 * 25 + - ( - + COUNT( * ) ) + + 81 AS col0
----
-768

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 34 * 25 + - ( - + COUNT ( * ) ) + + 81 AS col0
----
-768

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3024
SELECT - 76 AS col0, CAST( NULL AS SIGNED )
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-3024
SELECT - 76 AS col0, CAST ( NULL AS INTEGER )
----
-76
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3025
SELECT ALL + - NULLIF ( - COUNT( * ), - - 47 ) DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + - NULLIF ( - COUNT ( * ), - - 47 ) / + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT - 60 * 46 * - SUM( ALL - + 66 )
----
-182160

skipif mysql # not compatible
query I rowsort label-3026
SELECT - 60 * 46 * - SUM ( ALL - + 66 )
----
-182160

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL 13 * MAX( DISTINCT + + 65 ) + + ( + + 75 ) - - - 97 AS col0
----
823

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL 13 * MAX ( DISTINCT + + 65 ) + + ( + + 75 ) - - - 97 AS col0
----
823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT - - CAST( NULL AS SIGNED ) - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT - - CAST ( NULL AS INTEGER ) - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3029
SELECT ALL + - 37 * - ( - ( - + 4 ) ) + COUNT( * ) * - 3 + - - 36 + 66 col2, - CAST( NULL AS SIGNED ) + + 56 / - 36 * - 49 * 59 / + - COUNT( ALL + ( + + ( + - 44 ) ) )
----
247
NULL

skipif mysql # not compatible
query II rowsort label-3029
SELECT ALL + - 37 * - ( - ( - + 4 ) ) + COUNT ( * ) * - 3 + - - 36 + 66 col2, - CAST ( NULL AS INTEGER ) + + 56 / - 36 * - 49 * 59 / + - COUNT ( ALL + ( + + ( + - 44 ) ) )
----
247
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT DISTINCT + - SUM( ALL + - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + - SUM ( ALL + - 83 )
----
83

query II rowsort
SELECT ALL - 9 AS col2, 34
----
-9
34

query I rowsort
SELECT ALL ( + + 33 ) * + 85 + - + 19
----
2786

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - + MIN( ALL 20 ) + - + 48 * + + 50 * 30 + + NULLIF ( + - 9, COUNT( * ) )
----
-72029

skipif mysql # not compatible
query I rowsort label-3033
SELECT - + MIN ( ALL 20 ) + - + 48 * + + 50 * 30 + + NULLIF ( + - 9, COUNT ( * ) )
----
-72029

query I rowsort
SELECT - 58 * - - 19
----
-1102

query I rowsort
SELECT - 63 + - + 48 AS col2
----
-111

query I rowsort
SELECT + 32 - - 12
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - MIN( DISTINCT - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-3037
SELECT - MIN ( DISTINCT - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3038
SELECT - CASE + - CASE 30 WHEN + CAST( 14 AS DECIMAL ) THEN + CAST( NULL AS SIGNED ) WHEN + 15 - - 58 THEN NULL WHEN + 57 THEN NULL END WHEN - 19 - - COUNT( * ) + - COUNT( * ) - - 90 * COUNT( * ) THEN 72 END + - 97 + - COUNT( * ) * MAX( DISTINCT + + ( - 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT - CASE + - CASE 30 WHEN + CAST ( 14 AS REAL ) THEN + CAST ( NULL AS INTEGER ) WHEN + 15 - - 58 THEN NULL WHEN + 57 THEN NULL END WHEN - 19 - - COUNT ( * ) + - COUNT ( * ) - - 90 * COUNT ( * ) THEN 72 END + - 97 + - COUNT ( * ) * MAX ( DISTINCT + + ( - 85 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT + 46 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT + 46 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT ALL MIN( ALL - 95 ) DIV - + 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL MIN ( ALL - 95 ) / - + 62 AS col0
----
1

query I rowsort
SELECT + 38 * + + ( + - 12 )
----
-456

query I rowsort
SELECT + 44 * - + NULLIF ( 85, - 74 ) * 83 * + 30 * 19 col0
----
-176939400

onlyif mysql # DIV for integer division: 
query II rowsort label-3044
SELECT + 61 DIV + 58 AS col0, 26
----
1
26

skipif mysql # not compatible
query II rowsort label-3044
SELECT + 61 / + 58 AS col0, 26
----
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL COUNT( - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL COUNT ( - 16 ) AS col1
----
1

query I rowsort
SELECT + 32 + - 27
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + 8 * - + COUNT( + + 92 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3047
SELECT + 8 * - + COUNT ( + + 92 ) AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT - 86 DIV 76 * + 59 + 79 - ( - + 1 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3048
SELECT - 86 / 76 * + 59 + 79 - ( - + 1 ) AS col2
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3049
SELECT + 78 + - + 36 + CAST( NULL AS DECIMAL ) + 11 * - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 78 + - + 36 + CAST ( NULL AS REAL ) + 11 * - 21 AS col2
----
NULL

query I rowsort
SELECT + 48 * + 44
----
2112

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT - ( + 95 ) DIV + + NULLIF ( CASE + 87 WHEN COUNT( 96 ) THEN 3 + + COUNT( * ) ELSE ( 97 ) END, + - 12 ) + - 5 col0
----
-5

skipif mysql # not compatible
query I rowsort label-3052
SELECT - ( + 95 ) / + + NULLIF ( CASE + 87 WHEN COUNT ( 96 ) THEN 3 + + COUNT ( * ) ELSE ( 97 ) END, + - 12 ) + - 5 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT + COUNT( * ) * + - 8 - 50 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3053
SELECT + COUNT ( * ) * + - 8 - 50 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT 88 + + MIN( DISTINCT + - 57 ) + + SUM( + 95 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-3054
SELECT 88 + + MIN ( DISTINCT + - 57 ) + + SUM ( + 95 ) AS col0
----
126

query I rowsort
SELECT 6 * - + 27 - - 53
----
-109

query I rowsort
SELECT ALL + + 15 * 27
----
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT + 40 DIV - MAX( ALL 53 ) - - 85 + - + 56 * 63
----
-3443

skipif mysql # not compatible
query I rowsort label-3057
SELECT + 40 / - MAX ( ALL 53 ) - - 85 + - + 56 * 63
----
-3443

query I rowsort
SELECT DISTINCT 19 * - 48 AS col2
----
-912

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

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

query I rowsort
SELECT ALL - - 6 col1
----
6

query I rowsort
SELECT DISTINCT - 49 + 85 AS col1
----
36

query I rowsort
SELECT + 94 * - 10 * - 71
----
66740

query I rowsort
SELECT ALL - ( + 58 ) + + 88
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT 37 * COUNT( - 52 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3064
SELECT 37 * COUNT ( - 52 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT NULLIF ( MAX( + 46 ), + + COUNT( * ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3065
SELECT NULLIF ( MAX ( + 46 ), + + COUNT ( * ) ) AS col2
----
46

query II rowsort
SELECT 55 * 30 * 5 + + 27 AS col0, 56 AS col1
----
8277
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL + 75 + 98 + COUNT( * )
----
174

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + 75 + 98 + COUNT ( * )
----
174

query I rowsort
SELECT 37 + - - 31 * + + 58
----
1835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT ( + 67 ) + 16 * + + ( + 7 ) * - CAST( NULL AS SIGNED ) - - MAX( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT ( + 67 ) + 16 * + + ( + 7 ) * - CAST ( NULL AS INTEGER ) - - MAX ( + 79 )
----
NULL

query I rowsort
SELECT DISTINCT + 72 * + - 21
----
-1512

query I rowsort
SELECT ALL - NULLIF ( 49, + + 75 ) + + 70 + 57 * + - 42 * 56
----
-134043

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT 98 * - - MAX( - 86 ) AS col0
----
-8428

skipif mysql # not compatible
query I rowsort label-3072
SELECT 98 * - - MAX ( - 86 ) AS col0
----
-8428

query I rowsort
SELECT 1 - 66
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT COUNT( * ) + - - 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3074
SELECT COUNT ( * ) + - - 78 AS col2
----
79

query I rowsort
SELECT ( - 86 ) * - 28 + + 43 AS col2
----
2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3076
SELECT DISTINCT 51 col0, + NULLIF ( - 87, + - 68 / - - 97 + MAX( + - NULLIF ( + 16, - + 70 * - - CAST( NULL AS SIGNED ) ) ) ) * + 36 * ( + + 99 ) - - CAST( NULL AS DECIMAL ) + + - COUNT( * ) + 76 * + 22 AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-3076
SELECT DISTINCT 51 col0, + NULLIF ( - 87, + - 68 / - - 97 + MAX ( + - NULLIF ( + 16, - + 70 * - - CAST ( NULL AS INTEGER ) ) ) ) * + 36 * ( + + 99 ) - - CAST ( NULL AS REAL ) + + - COUNT ( * ) + 76 * + 22 AS col0
----
51
NULL

query I rowsort
SELECT ALL + NULLIF ( - 51, 15 ) - - + 48 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT COUNT( * ) + ( + - 98 ) + - 12
----
-109

skipif mysql # not compatible
query I rowsort label-3078
SELECT COUNT ( * ) + ( + - 98 ) + - 12
----
-109

query I rowsort
SELECT DISTINCT + 82 - 64 + - 33
----
-15

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

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

query I rowsort
SELECT 61 * - 32 AS col2
----
-1952

query I rowsort
SELECT 68 + - - 43 AS col0
----
111

query I rowsort
SELECT DISTINCT 77 * + 60
----
4620

query I rowsort
SELECT ( 96 ) + + + 73
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT 81 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3085
SELECT 81 / + 35 AS col1
----
2

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

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

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - + COUNT ( DISTINCT + 41 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 53 + 37
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT 72 * - - COUNT( + NULLIF ( - ( - 13 ), 52 ) ) * + + 55
----
3960

skipif mysql # not compatible
query I rowsort label-3089
SELECT 72 * - - COUNT ( + NULLIF ( - ( - 13 ), 52 ) ) * + + 55
----
3960

query I rowsort
SELECT ALL 34 + + + 47 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT - 18 + + 47 + - CASE + + 43 WHEN - 47 THEN - 67 * CAST( NULL AS SIGNED ) WHEN - + 66 * - - 38 - - CASE - + COUNT( DISTINCT + 39 ) WHEN - - 40 - + 27 THEN - 7 * + 63 + 55 + 54 WHEN 26 + + 99 THEN NULL END - 16 + + 3 * + - 25 + + - 60 + - 43 * + 11 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT - 18 + + 47 + - CASE + + 43 WHEN - 47 THEN - 67 * CAST ( NULL AS INTEGER ) WHEN - + 66 * - - 38 - - CASE - + COUNT ( DISTINCT + 39 ) WHEN - - 40 - + 27 THEN - 7 * + 63 + 55 + 54 WHEN 26 + + 99 THEN NULL END - 16 + + 3 * + - 25 + + - 60 + - 43 * + 11 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT + COALESCE ( + 93, - 3 ) * - - 33
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT - SUM( ALL - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - SUM ( ALL - 67 )
----
67

query I rowsort
SELECT ALL - - 95 + - 25 AS col1
----
70

query I rowsort
SELECT ALL 37 * + 93 AS col1
----
3441

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3098
SELECT ALL - COUNT( * ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 27 * + 3
----
81

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

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

query II rowsort
SELECT ALL 89 AS col2, - 26 * + 80 + 80 * + + 22 * 40
----
89
68320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3102
SELECT 98 AS col0, + 30 + + COUNT( DISTINCT + CASE - 70 WHEN + ( + + CAST( NULL AS SIGNED ) ) THEN + 43 ELSE - - 49 * - CAST( NULL AS DECIMAL ) END ) AS col0
----
98
30

skipif mysql # not compatible
query II rowsort label-3102
SELECT 98 AS col0, + 30 + + COUNT ( DISTINCT + CASE - 70 WHEN + ( + + CAST ( NULL AS INTEGER ) ) THEN + 43 ELSE - - 49 * - CAST ( NULL AS REAL ) END ) AS col0
----
98
30

query I rowsort
SELECT 46 - - - 32 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT 17 * + CAST( - 41 AS SIGNED )
----
-697

skipif mysql # not compatible
query I rowsort label-3104
SELECT 17 * + CAST ( - 41 AS INTEGER )
----
-697

query II rowsort
SELECT ALL 0 AS col0, 49 AS col2
----
0
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT ALL + ( - 79 ) DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + ( - 79 ) / 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3107
SELECT DISTINCT + 87 * + 78, + 8 / + SUM( + 5 ) * NULLIF ( + 32, 72 ) + + 38 + - COUNT( * ) + - + 52 + - - CASE + - COUNT( * ) WHEN COALESCE ( - + 65, + + NULLIF ( 42, - COUNT( * ) ) + - + 91 + + - CASE - 57 WHEN 80 THEN + - 17 ELSE NULL END ) THEN - 13 END * - 88 / - - 73 AS col1
----
6786
NULL

skipif mysql # not compatible
query II rowsort label-3107
SELECT DISTINCT + 87 * + 78, + 8 / + SUM ( + 5 ) * NULLIF ( + 32, 72 ) + + 38 + - COUNT ( * ) + - + 52 + - - CASE + - COUNT ( * ) WHEN COALESCE ( - + 65, + + NULLIF ( 42, - COUNT ( * ) ) + - + 91 + + - CASE - 57 WHEN 80 THEN + - 17 ELSE NULL END ) THEN - 13 END * - 88 / - - 73 AS col1
----
6786
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT 36, CASE + 56 WHEN - - 6 THEN COUNT( * ) ELSE + 33 * - 46 - + 30 + + - 18 END AS col2
----
36
-1566

skipif mysql # not compatible
query II rowsort label-3108
SELECT 36, CASE + 56 WHEN - - 6 THEN COUNT ( * ) ELSE + 33 * - 46 - + 30 + + - 18 END AS col2
----
36
-1566

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL COUNT( - 44 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL COUNT ( - 44 ) col2
----
1

query I rowsort
SELECT DISTINCT - 14 * + - 94
----
1316

query I rowsort
SELECT - 66 + + 46 AS col2
----
-20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3114
SELECT - COUNT( * ) + + 46 DIV - 4 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3114
SELECT - COUNT ( * ) + + 46 / - 4 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COALESCE ( + + ( COUNT( * ) ), - COUNT( * ) ) * - COALESCE ( - 80, 95, + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COALESCE ( + + ( COUNT ( * ) ), - COUNT ( * ) ) * - COALESCE ( - 80, 95, + 52 )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3117
SELECT ALL - NULLIF ( - + 54, - 52 + - 95 ) + - 99 + - 14 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - NULLIF ( - + 54, - 52 + - 95 ) + - 99 + - 14 + + CAST ( NULL AS REAL ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3118
SELECT - COUNT ( * ) + - - 12 AS col2
----
11

query I rowsort
SELECT DISTINCT + 93 * + + 13 + + + 80
----
1289

onlyif mysql # aggregate syntax: 
query II rowsort label-3120
SELECT DISTINCT 81 * - COUNT( * ) + - 38 + - 91 * 80 + 13 AS col1, + ( - 87 ) AS col0
----
-7386
-87

skipif mysql # not compatible
query II rowsort label-3120
SELECT DISTINCT 81 * - COUNT ( * ) + - 38 + - 91 * 80 + 13 AS col1, + ( - 87 ) AS col0
----
-7386
-87

query I rowsort
SELECT ALL + + 17 * + + 64 * 9 + 8 + - 5 * - + 4 AS col1
----
9820

query I rowsort
SELECT + 49 + - + ( - - 84 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT - COUNT( * ) * 38 + - 94 * COUNT( * ) + + COUNT( * ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-3123
SELECT - COUNT ( * ) * 38 + - 94 * COUNT ( * ) + + COUNT ( * ) AS col1
----
-131

query II rowsort
SELECT + 6, 19 AS col1
----
6
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT + - 36 DIV + 45 + COUNT( * ) + 61 - + 24 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3125
SELECT + - 36 / + 45 + COUNT ( * ) + 61 - + 24 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - COALESCE ( - 71, - 43 * - - COUNT( * ) * - 48 + - ( - 85 ) ) * - COUNT( * ) * + - 38 - CASE + + 29 WHEN - 88 THEN - 69 + + 56 END + - 33 * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - COALESCE ( - 71, - 43 * - - COUNT ( * ) * - 48 + - ( - 85 ) ) * - COUNT ( * ) * + - 38 - CASE + + 29 WHEN - 88 THEN - 69 + + 56 END + - 33 * + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + MAX( ALL - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3127
SELECT + MAX ( ALL - 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL + MIN( DISTINCT + + 43 ) * + COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) + 15 * + + COUNT( * ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + MIN ( DISTINCT + + 43 ) * + COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) + 15 * + + COUNT ( * ) * 97
----
NULL

query I rowsort
SELECT - + 94 + + + 61 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3130
SELECT - + SUM( - CAST( NULL AS DECIMAL ) ) * - 95 + + 10 + + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - + SUM ( - CAST ( NULL AS REAL ) ) * - 95 + + 10 + + + 17
----
NULL

query II rowsort
SELECT - 23 AS col0, + 61
----
-23
61

query I rowsort
SELECT DISTINCT + + 32 * - 2 + - 13 AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3133
SELECT - 74 AS col1, CASE - + 71 WHEN + 63 + + COUNT( * ) * + COALESCE ( 35, + NULLIF ( + 99, - + 80 ), MIN( ALL + 66 ) / 74 / + COALESCE ( - 20, COALESCE ( 31, 36 / + + 29 + 55 ) + - - 32 ) - + + 91 + + 78 - - 0 ) + + CAST( NULL AS SIGNED ) / - + 15 THEN 4 + - 52 * 31 WHEN 22 - - 15 THEN - CAST( - 32 AS SIGNED ) * 84 END * + NULLIF ( COUNT( DISTINCT - 69 ) * + 24, + 59 ) + + MIN( 99 + - 35 ) * 31 AS col0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-3133
SELECT - 74 AS col1, CASE - + 71 WHEN + 63 + + COUNT ( * ) * + COALESCE ( 35, + NULLIF ( + 99, - + 80 ), MIN ( ALL + 66 ) / 74 / + COALESCE ( - 20, COALESCE ( 31, 36 / + + 29 + 55 ) + - - 32 ) - + + 91 + + 78 - - 0 ) + + CAST ( NULL AS INTEGER ) / - + 15 THEN 4 + - 52 * 31 WHEN 22 - - 15 THEN - CAST ( - 32 AS INTEGER ) * 84 END * + NULLIF ( COUNT ( DISTINCT - 69 ) * + 24, + 59 ) + + MIN ( 99 + - 35 ) * 31 AS col0
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - - 26 * - COUNT( ALL + 4 )
----
-26

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - - 26 * - COUNT ( ALL + 4 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT ALL - 17 DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - 17 / 42 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT 13 * + SUM( DISTINCT 69 ) + NULLIF ( - 84, + 17 * + - ( 39 ) + ( - CAST( NULL AS SIGNED ) ) - + 49 ) - + - COALESCE ( COALESCE ( - 92, 72 - 95 * 63 ), + 26 ) AS col0
----
721

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT 13 * + SUM ( DISTINCT 69 ) + NULLIF ( - 84, + 17 * + - ( 39 ) + ( - CAST ( NULL AS INTEGER ) ) - + 49 ) - + - COALESCE ( COALESCE ( - 92, 72 - 95 * 63 ), + 26 ) AS col0
----
721

query I rowsort
SELECT ALL 51 * - 54 * ( + + ( + 0 ) ) * 55 - + + 46 AS col2
----
-46

query I rowsort
SELECT ALL + - 9 col2
----
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3140
SELECT 82 col1, - CASE + COUNT( * ) WHEN - + 13 + - 69 THEN - 5 WHEN - 41 * 25 THEN NULL ELSE NULL END * - COUNT( * ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3140
SELECT 82 col1, - CASE + COUNT ( * ) WHEN - + 13 + - 69 THEN - 5 WHEN - 41 * 25 THEN NULL ELSE NULL END * - COUNT ( * ) AS col1
----
82
NULL

query I rowsort
SELECT + 39 * + - 2 col2
----
-78

query II rowsort
SELECT + 45 * + - 32 AS col0, + 23
----
-1440
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 94 * + 35 + - - COUNT( DISTINCT 15 ) AS col0
----
-3289

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 94 * + 35 + - - COUNT ( DISTINCT 15 ) AS col0
----
-3289

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

skipif mysql # not compatible
query I rowsort label-3144
SELECT COUNT ( - - 27 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT - ( - 41 ) AS col1, 75 * - COUNT( * ) col2
----
41
-75

skipif mysql # not compatible
query II rowsort label-3146
SELECT - ( - 41 ) AS col1, 75 * - COUNT ( * ) col2
----
41
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3147
SELECT - MAX( DISTINCT - 35 ) + - NULLIF ( - 64, - COUNT( * ) * - - ( - + 44 ) ), CASE - - MAX( ALL 58 ) WHEN - NULLIF ( - ( - - CAST( + ( 35 ) AS SIGNED ) ), - 66 ) * + 61 / + 52 THEN - SUM( 86 ) ELSE NULL END - + + 63 * + CASE - 45 WHEN - + 57 + + - ( - CAST( - 10 AS DECIMAL ) ) THEN NULL WHEN 23 / CAST( NULL AS SIGNED ) THEN COUNT( * ) / - 21 ELSE NULL END AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3147
SELECT - MAX ( DISTINCT - 35 ) + - NULLIF ( - 64, - COUNT ( * ) * - - ( - + 44 ) ), CASE - - MAX ( ALL 58 ) WHEN - NULLIF ( - ( - - CAST ( + ( 35 ) AS INTEGER ) ), - 66 ) * + 61 / + 52 THEN - SUM ( 86 ) ELSE NULL END - + + 63 * + CASE - 45 WHEN - + 57 + + - ( - CAST ( - 10 AS REAL ) ) THEN NULL WHEN 23 / CAST ( NULL AS INTEGER ) THEN COUNT ( * ) / - 21 ELSE NULL END AS col2
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3148
SELECT ALL CASE 19 WHEN 25 * ( - - 90 ) THEN 67 WHEN CASE + 23 WHEN + 26 * - 36 THEN NULL WHEN - 16 * + 28 - - + 79 + COUNT( * ) - - 21 * + 11 + - + 34 THEN 11 * - NULLIF ( - 89, + CAST( - 75 AS DECIMAL ) ) + - - 89 + - 2 * + 34 * + 52 * + 81 + 32 ELSE NULL END / - 72 THEN + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL CASE 19 WHEN 25 * ( - - 90 ) THEN 67 WHEN CASE + 23 WHEN + 26 * - 36 THEN NULL WHEN - 16 * + 28 - - + 79 + COUNT ( * ) - - 21 * + 11 + - + 34 THEN 11 * - NULLIF ( - 89, + CAST ( - 75 AS REAL ) ) + - - 89 + - 2 * + 34 * + 52 * + 81 + 32 ELSE NULL END / - 72 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COALESCE ( - + COUNT( * ), + - 51 + - 74 + + + 2 ) + - + ( COUNT( * ) ) + 23 + - + 62 * + NULLIF ( 66, + + MIN( + 97 ) )
----
-4069

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COALESCE ( - + COUNT ( * ), + - 51 + - 74 + + + 2 ) + - + ( COUNT ( * ) ) + 23 + - + 62 * + NULLIF ( 66, + + MIN ( + 97 ) )
----
-4069

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT ALL + 38 * COUNT( * ) AS col1, 56
----
38
56

skipif mysql # not compatible
query II rowsort label-3150
SELECT ALL + 38 * COUNT ( * ) AS col1, 56
----
38
56

query II rowsort
SELECT DISTINCT + 20 * - 75, 34 AS col2
----
-1500
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT - + 58 * - MIN( ALL - 47 ), 33 - + 17 AS col0
----
-2726
16

skipif mysql # not compatible
query II rowsort label-3152
SELECT - + 58 * - MIN ( ALL - 47 ), 33 - + 17 AS col0
----
-2726
16

query II rowsort
SELECT ALL - + 3 + - - 66 col0, 82
----
63
82

query I rowsort
SELECT - + 86 col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT ALL - - 89 DIV + ( 78 ) + - COALESCE ( + 76, + 42 * - 69 + - 77, 40 * + 92 ) + + 47 + + - 27 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL - - 89 / + ( 78 ) + - COALESCE ( + 76, + 42 * - 69 + - 77, 40 * + 92 ) + + 47 + + - 27 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - - 31 * + - 99 + - COUNT( * )
----
-3070

skipif mysql # not compatible
query I rowsort label-3156
SELECT - - 31 * + - 99 + - COUNT ( * )
----
-3070

query II rowsort
SELECT - - 96 + + 96 AS col2, + 70 - + + 97
----
192
-27

query I rowsort
SELECT + + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ALL + NULLIF ( - - ( + 5 ), + COALESCE ( - - 52, - 3 + + 30 ) / + 50 / - CAST( NULL AS SIGNED ) * + - 45 ) * 49 + - - 20 + + MAX( DISTINCT + + 65 )
----
330

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + NULLIF ( - - ( + 5 ), + COALESCE ( - - 52, - 3 + + 30 ) / + 50 / - CAST ( NULL AS INTEGER ) * + - 45 ) * 49 + - - 20 + + MAX ( DISTINCT + + 65 )
----
330

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3160
SELECT - 16 + + 6, - CAST( NULL AS DECIMAL ) AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-3160
SELECT - 16 + + 6, - CAST ( NULL AS REAL ) AS col0
----
-10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT + CASE + 37 WHEN - 29 - + 32 THEN + + CAST( 12 AS SIGNED ) + - ( MIN( + 33 ) ) WHEN - 37 THEN NULL END / - COUNT( ALL 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT + CASE + 37 WHEN - 29 - + 32 THEN + + CAST ( 12 AS INTEGER ) + - ( MIN ( + 33 ) ) WHEN - 37 THEN NULL END / - COUNT ( ALL 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT + 9 DIV - 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 9 / - 12 col1
----
0

query I rowsort
SELECT ALL + 95 * + 83 AS col1
----
7885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL - NULLIF ( + + MAX( DISTINCT - + 33 ), + 98 ) * - CAST( 81 AS SIGNED ) * + 8
----
-21384

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - NULLIF ( + + MAX ( DISTINCT - + 33 ), + 98 ) * - CAST ( 81 AS INTEGER ) * + 8
----
-21384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3165
SELECT DISTINCT + 86 * - CAST( - 32 AS SIGNED ), ( - + 73 ) + 57 AS col0
----
2752
-16

skipif mysql # not compatible
query II rowsort label-3165
SELECT DISTINCT + 86 * - CAST ( - 32 AS INTEGER ), ( - + 73 ) + 57 AS col0
----
2752
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3166
SELECT ALL - 81 col2, - CASE + 23 WHEN 83 - + 1 THEN 25 * CASE - COALESCE ( - SUM( - + 98 ), - 39 ) WHEN - 29 * + 35 * + CASE + - COUNT( * ) WHEN 99 + 13 - + - 40 THEN - - AVG ( - 38 ) WHEN - 18 * - + 68 THEN NULL ELSE NULL END * + - 62 + + 80 + - 79 THEN - 59 + + - 16 END * 93 + + 4 WHEN + 39 * - 87 THEN - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * COUNT( * ) END * - 65
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-3166
SELECT ALL - 81 col2, - CASE + 23 WHEN 83 - + 1 THEN 25 * CASE - COALESCE ( - SUM ( - + 98 ), - 39 ) WHEN - 29 * + 35 * + CASE + - COUNT ( * ) WHEN 99 + 13 - + - 40 THEN - - AVG ( - 38 ) WHEN - 18 * - + 68 THEN NULL ELSE NULL END * + - 62 + + 80 + - 79 THEN - 59 + + - 16 END * 93 + + 4 WHEN + 39 * - 87 THEN - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) END * - 65
----
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT 41 * - 9 + CAST( NULL AS SIGNED ) * + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT 41 * - 9 + CAST ( NULL AS INTEGER ) * + + 2
----
NULL

query II rowsort
SELECT 48 AS col2, + 68
----
48
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3169
SELECT ALL 53 col0, 31 DIV + 67 * - 91 AS col2
----
53
0

skipif mysql # not compatible
query II rowsort label-3169
SELECT ALL 53 col0, 31 / + 67 * - 91 AS col2
----
53
0

query I rowsort
SELECT 36 + - 54
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT 96 + + NULLIF ( + - 47, + ( + + 44 ) + COUNT( * ) ) + + CAST( - 29 AS SIGNED ) DIV 10 * - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 96 + + NULLIF ( + - 47, + ( + + 44 ) + COUNT ( * ) ) + + CAST ( - 29 AS INTEGER ) / 10 * - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT COUNT( * ) + 55 + COALESCE ( + 48, - 25 ) * + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) + 55 + COALESCE ( + 48, - 25 ) * + - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT CASE + 22 WHEN - 37 - - 16 THEN + COALESCE ( + - 0, - - 29 + + ( 22 ) ) ELSE - + COUNT( * ) * + 76 - - 60 END * 3 * + 34
----
-1632

skipif mysql # not compatible
query I rowsort label-3173
SELECT CASE + 22 WHEN - 37 - - 16 THEN + COALESCE ( + - 0, - - 29 + + ( 22 ) ) ELSE - + COUNT ( * ) * + 76 - - 60 END * 3 * + 34
----
-1632

query I rowsort
SELECT ALL 89 + + 9 AS col2
----
98

query I rowsort
SELECT DISTINCT 48 * - 6 AS col2
----
-288

query I rowsort
SELECT DISTINCT 60 + - 60 AS col0
----
0

query I rowsort
SELECT DISTINCT 19 + - 19 + - ( - 70 ) AS col2
----
70

query I rowsort
SELECT ( + ( - + 38 ) ) * - 76
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT 12 * - 66 * COUNT( - - 7 )
----
-792

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT 12 * - 66 * COUNT ( - - 7 )
----
-792

query I rowsort
SELECT - 57 + + 38
----
-19

query II rowsort
SELECT ALL 40 AS col1, - 89 + 27
----
40
-62

query I rowsort
SELECT - 70 + - ( - + 58 ) AS col1
----
-12

query II rowsort
SELECT 57 + - 20 * 46, + 77 AS col0
----
-863
77

query I rowsort
SELECT - 97 + - 94 - + ( - 91 ) * ( + - 9 )
----
-1010

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + COUNT( * ) + 97 + - COUNT( * ) + + ( + 80 ) * 68
----
5537

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COUNT ( * ) + 97 + - COUNT ( * ) + + ( + 80 ) * 68
----
5537

query I rowsort
SELECT DISTINCT - 50 * - 95
----
4750

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT 85 DIV 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT 85 / 14 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT CAST( NULL AS SIGNED ) + NULLIF ( + ( + 44 ), + AVG ( ALL - + 25 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( + ( + 44 ), + AVG ( ALL - + 25 ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT ALL - + 71 - + 40 + 20 DIV + 82 * 86 * 60 * + 74
----
-111

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - + 71 - + 40 + 20 / + 82 * 86 * 60 * + 74
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - MAX( ALL 68 ) * - 69 + + + 90 * - NULLIF ( + 88, + 98 + AVG ( ALL - 22 ) )
----
-3228

skipif mysql # not compatible
query I rowsort label-3190
SELECT - MAX ( ALL 68 ) * - 69 + + + 90 * - NULLIF ( + 88, + 98 + AVG ( ALL - 22 ) )
----
-3228

query I rowsort
SELECT DISTINCT + - 59 * + - 44
----
2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL - - ( CASE - COUNT( * ) WHEN + SUM( - - 10 ) / + + 12 * + 77 THEN MAX( + 37 ) * 21 * + CASE + + MAX( 17 ) WHEN 2 - + 20 THEN NULL WHEN + + 40 - 9 * + 62 THEN MIN( ALL - 40 ) + 38 * - + COUNT( * ) / + - 35 * CAST( - 51 AS SIGNED ) END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - - ( CASE - COUNT ( * ) WHEN + SUM ( - - 10 ) / + + 12 * + 77 THEN MAX ( + 37 ) * 21 * + CASE + + MAX ( 17 ) WHEN 2 - + 20 THEN NULL WHEN + + 40 - 9 * + 62 THEN MIN ( ALL - 40 ) + 38 * - + COUNT ( * ) / + - 35 * CAST ( - 51 AS INTEGER ) END END )
----
NULL

query I rowsort
SELECT DISTINCT + 98 * 60 AS col1
----
5880

query II rowsort
SELECT DISTINCT - 54 * + 71 * 27 AS col1, + 67 AS col1
----
-103518
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3196
SELECT DISTINCT - CAST( - COUNT( + + 3 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT - CAST ( - COUNT ( + + 3 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - MAX( + - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - MAX ( + - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - COUNT( DISTINCT 75 ) * + 90 * 36 + - 56 + + 85 + + 7
----
-3204

skipif mysql # not compatible
query I rowsort label-3198
SELECT - COUNT ( DISTINCT 75 ) * + 90 * 36 + - 56 + + 85 + + 7
----
-3204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT 46 + + 86 * + NULLIF ( + + 69, - CAST( + + 90 AS SIGNED ) )
----
5980

skipif mysql # not compatible
query I rowsort label-3199
SELECT 46 + + 86 * + NULLIF ( + + 69, - CAST ( + + 90 AS INTEGER ) )
----
5980

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT ALL - SUM( 54 ) AS col2, + ( COUNT( ALL - 3 ) ) AS col1
----
-54
1

skipif mysql # not compatible
query II rowsort label-3200
SELECT ALL - SUM ( 54 ) AS col2, + ( COUNT ( ALL - 3 ) ) AS col1
----
-54
1

query I rowsort
SELECT DISTINCT - ( - - 28 ) AS col0
----
-28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3203
SELECT ALL + ( 75 ) * - ( + CAST( NULL AS SIGNED ) ) + + COALESCE ( - - 20, - 51 ) + - + COUNT( * ) + 94 * + 2 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + ( 75 ) * - ( + CAST ( NULL AS INTEGER ) ) + + COALESCE ( - - 20, - 51 ) + - + COUNT ( * ) + 94 * + 2 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 10 + + - 62
----
-72

query I rowsort
SELECT DISTINCT - 55 * + + 56 AS col0
----
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT ALL 14 * - 79 AS col2, 30 * + + COALESCE ( ( + 61 ), - COUNT( * ) * - COUNT( * ) ) * - 56 + + 54 col2
----
-1106
-102426

skipif mysql # not compatible
query II rowsort label-3206
SELECT ALL 14 * - 79 AS col2, 30 * + + COALESCE ( ( + 61 ), - COUNT ( * ) * - COUNT ( * ) ) * - 56 + + 54 col2
----
-1106
-102426

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

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - 65 + + + COUNT ( * ) * + + 32 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 7 + + NULLIF ( + COUNT( * ), + 63 )
----
8

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 7 + + NULLIF ( + COUNT ( * ), + 63 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT + 28 * + COUNT( * ) + - - MAX( - - 1 ), 85 * - 79 * - - 97 * + + 81 AS col0
----
29
-52759755

skipif mysql # not compatible
query II rowsort label-3209
SELECT + 28 * + COUNT ( * ) + - - MAX ( - - 1 ), 85 * - 79 * - - 97 * + + 81 AS col0
----
29
-52759755

query I rowsort
SELECT DISTINCT 89 + + 98
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT 95 - - ( - COUNT( * ) ) * - + ( - COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3211
SELECT 95 - - ( - COUNT ( * ) ) * - + ( - COUNT ( * ) ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT + COALESCE ( 86, + 75 * - 3 * + + 3 - 99 ) + + COUNT( * ) + 42 + + + CAST( - COUNT( * ) AS SIGNED ) * 16 + - 83
----
30

skipif mysql # not compatible
query I rowsort label-3212
SELECT + COALESCE ( 86, + 75 * - 3 * + + 3 - 99 ) + + COUNT ( * ) + 42 + + + CAST ( - COUNT ( * ) AS INTEGER ) * 16 + - 83
----
30

query I rowsort
SELECT DISTINCT + 70 - - 68 AS col0
----
138

query I rowsort
SELECT + 95 * - 43
----
-4085

query I rowsort
SELECT ALL 35 * 9 col2
----
315

query I rowsort
SELECT ( 98 )
----
98

query I rowsort
SELECT ALL 74 - + 44 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT ( + + COALESCE ( + CAST( + 50 AS SIGNED ), - 23 ) )
----
50

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT ( + + COALESCE ( + CAST ( + 50 AS INTEGER ), - 23 ) )
----
50

query II rowsort
SELECT ALL + + 23 - - 42, - 80 AS col0
----
65
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3220
SELECT - CAST( - 32 AS SIGNED ) * - + SUM( DISTINCT + 67 ), 27 AS col1
----
-2144
27

skipif mysql # not compatible
query II rowsort label-3220
SELECT - CAST ( - 32 AS INTEGER ) * - + SUM ( DISTINCT + 67 ), 27 AS col1
----
-2144
27

query I rowsort
SELECT ALL 1 * - + 8 * + 66 col2
----
-528

query I rowsort
SELECT + 71 - - ( 34 ) + - 33 + + 83 * + 67
----
5633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3223
SELECT 72 DIV 18 DIV + MIN( ALL + 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT 72 / 18 / + MIN ( ALL + 84 ) AS col2
----
0

query I rowsort
SELECT 21 * - - 64 AS col0
----
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT 51 DIV 19 * - + 86 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-3225
SELECT 51 / 19 * - + 86 AS col0
----
-172

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

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

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

query I rowsort
SELECT DISTINCT - + 85 AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT 13 DIV COUNT( * ) + + + 10 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3229
SELECT 13 / COUNT ( * ) + + + 10 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - 44 * - - 93 * - COUNT( * )
----
4092

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - 44 * - - 93 * - COUNT ( * )
----
4092

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL 92 DIV - + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL 92 / - + 49 AS col0
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3233
SELECT DISTINCT 75 * - 52 + + 39 AS col0, CASE + - 32 WHEN - CAST( NULL AS SIGNED ) THEN + 99 / - 8 WHEN + 53 * - NULLIF ( + SUM( ALL + 47 ), + 26 ) + - 21 THEN - - 76 ELSE NULL END
----
-3861
NULL

skipif mysql # not compatible
query II rowsort label-3233
SELECT DISTINCT 75 * - 52 + + 39 AS col0, CASE + - 32 WHEN - CAST ( NULL AS INTEGER ) THEN + 99 / - 8 WHEN + 53 * - NULLIF ( + SUM ( ALL + 47 ), + 26 ) + - 21 THEN - - 76 ELSE NULL END
----
-3861
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL + 68 * - 72 * CASE + - 82 WHEN - 97 * + - COUNT( * ) + COUNT( * ) * - NULLIF ( + 89, 17 ) * - AVG ( DISTINCT + 90 ) * - - COUNT( * ) * COALESCE ( 10, + 39 / ( 96 ) + NULLIF ( - 18, - COUNT( - 82 ) + 57 ), + - 98 + - 26 + - 76 ) THEN NULL ELSE + 1 * - ( - ( + 5 ) ) END AS col0
----
-24480

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + 68 * - 72 * CASE + - 82 WHEN - 97 * + - COUNT ( * ) + COUNT ( * ) * - NULLIF ( + 89, 17 ) * - AVG ( DISTINCT + 90 ) * - - COUNT ( * ) * COALESCE ( 10, + 39 / ( 96 ) + NULLIF ( - 18, - COUNT ( - 82 ) + 57 ), + - 98 + - 26 + - 76 ) THEN NULL ELSE + 1 * - ( - ( + 5 ) ) END AS col0
----
-24480

query I rowsort
SELECT DISTINCT + ( + 2 ) * - - 1 + + + 67 + + + 36
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - 61 * - + COUNT( * ) * 30 + + + 46 AS col2
----
1876

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - 61 * - + COUNT ( * ) * 30 + + + 46 AS col2
----
1876

query I rowsort
SELECT + 50 + - - 46 AS col0
----
96

query II rowsort
SELECT + 39 AS col1, 45 * 93 + + + 22 AS col1
----
39
4207

query I rowsort
SELECT ALL 43 * + 8 + - - 7
----
351

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

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

query I rowsort
SELECT ALL + 69 * - + 93 * + 28 AS col2
----
-179676

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT COUNT( * ) AS col0, 23 + - + 43 AS col2
----
1
-20

skipif mysql # not compatible
query II rowsort label-3242
SELECT COUNT ( * ) AS col0, 23 + - + 43 AS col2
----
1
-20

query I rowsort
SELECT - 78 + + 13 AS col2
----
-65

query I rowsort
SELECT DISTINCT - 51 * + 22 + - - 89 * - 44
----
-5038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3245
SELECT - MIN( ( + + 52 ) ) + + CAST( NULL AS DECIMAL ) + + - 54 * + - 40 * COALESCE ( AVG ( DISTINCT - 84 ), CAST( NULL AS SIGNED ) + + 45 ) * + 19 + + CAST( NULL AS DECIMAL ) + - + COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT - MIN ( ( + + 52 ) ) + + CAST ( NULL AS REAL ) + + - 54 * + - 40 * COALESCE ( AVG ( DISTINCT - 84 ), CAST ( NULL AS INTEGER ) + + 45 ) * + 19 + + CAST ( NULL AS REAL ) + - + COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT - 48 + + - 53 - + 22 * - 55
----
1109

query II rowsort
SELECT + 16 AS col1, 4 - - + ( - 81 ) AS col0
----
16
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT ALL + 79 - + ( - + COUNT( * ) ) AS col1, 62
----
80
62

skipif mysql # not compatible
query II rowsort label-3248
SELECT ALL + 79 - + ( - + COUNT ( * ) ) AS col1, 62
----
80
62

query I rowsort
SELECT DISTINCT - 16 * 11 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - 12 + + 25 * + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3250
SELECT - 12 + + 25 * + + COUNT ( * )
----
13

query I rowsort
SELECT + 18 * 99
----
1782

query I rowsort
SELECT ALL - 7 * - + 27 col0
----
189

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

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

query I rowsort
SELECT DISTINCT - - 46 * - 99 AS col2
----
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT - - COUNT( * ) * + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT - - COUNT ( * ) * + 69 AS col2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3256
SELECT - 80 * - 39 - - + 37 - + CAST( NULL AS DECIMAL ) + + ( - 74 ) / + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT - 80 * - 39 - - + 37 - + CAST ( NULL AS REAL ) + + ( - 74 ) / + + 22
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 58 - 47 col1
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT - 46 DIV - ( + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 46 / - ( + 33 ) AS col2
----
1

query I rowsort
SELECT + - 94 * 94 col1
----
-8836

query I rowsort
SELECT - 59 * + 58
----
-3422

onlyif mysql # aggregate syntax: 
query II rowsort label-3262
SELECT + + 20 * - NULLIF ( 38, 18 + - + 32 ) col0, + COUNT( * ) + + ( - 90 ) * + 33 * 31
----
-760
-92069

skipif mysql # not compatible
query II rowsort label-3262
SELECT + + 20 * - NULLIF ( 38, 18 + - + 32 ) col0, + COUNT ( * ) + + ( - 90 ) * + 33 * 31
----
-760
-92069

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT - - COUNT( * ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-3263
SELECT - - COUNT ( * ) + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + - COUNT( * ) - 97 col2
----
-98

skipif mysql # not compatible
query I rowsort label-3264
SELECT + - COUNT ( * ) - 97 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL MIN( - 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL MIN ( - 79 ) AS col1
----
-79

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

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

query I rowsort
SELECT ALL - 65 * - 32 AS col1
----
2080

query I rowsort
SELECT ALL 35 * + 14
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT + COUNT( * ) + 89 + CASE WHEN NOT ( - 87 ) IN ( + + COUNT( * ) / - + 28, + 8 * + 73 + COUNT( * ), 80, + 93 ) THEN + - CAST( NULL AS SIGNED ) * + CAST( - 54 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT + COUNT ( * ) + 89 + CASE WHEN NOT ( - 87 ) IN ( + + COUNT ( * ) / - + 28, + 8 * + 73 + COUNT ( * ), 80, + 93 ) THEN + - CAST ( NULL AS INTEGER ) * + CAST ( - 54 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL ( + - 82 ) + COUNT( DISTINCT - 38 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL ( + - 82 ) + COUNT ( DISTINCT - 38 ) col2
----
-81

query I rowsort
SELECT + 18 + + - 95
----
-77

query I rowsort
SELECT ALL 92 * 84 AS col2
----
7728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3273
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 11 + + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + CAST ( NULL AS REAL ) + 11 + + - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + MAX( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3274
SELECT + MAX ( + 62 ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT ALL - 17 DIV - 49 + 17 + + 5 * + 55 AS col2
----
292

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL - 17 / - 49 + 17 + + 5 * + 55 AS col2
----
292

query I rowsort
SELECT + CASE 42 WHEN - + 13 / 86 THEN + 5 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3277
SELECT + CAST( NULL AS SIGNED ) AS col1, + CASE 26 WHEN - - 43 THEN - 78 * - MIN( DISTINCT - + 25 ) * NULLIF ( + 18, + 38 * + ( + 19 ) * + + 75 ) * 34 * 11 + SUM( - 49 ) * - + 3 * + NULLIF ( + AVG ( ALL 80 ), - 71 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3277
SELECT + CAST ( NULL AS INTEGER ) AS col1, + CASE 26 WHEN - - 43 THEN - 78 * - MIN ( DISTINCT - + 25 ) * NULLIF ( + 18, + 38 * + ( + 19 ) * + + 75 ) * 34 * 11 + SUM ( - 49 ) * - + 3 * + NULLIF ( + AVG ( ALL 80 ), - 71 ) END
----
NULL
NULL

query I rowsort
SELECT + 26 * + 11 * - 98 AS col2
----
-28028

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT + 2 DIV + 64 + 50
----
50

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 2 / + 64 + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL 20 * 56 * - 68 * COUNT( * ) + COUNT( * ) AS col1
----
-76159

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL 20 * 56 * - 68 * COUNT ( * ) + COUNT ( * ) AS col1
----
-76159

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT DISTINCT 37 DIV ( - + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT 37 / ( - + 71 )
----
0

query I rowsort
SELECT DISTINCT + 13 col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3285
SELECT + SUM( ALL - CAST( NULL AS DECIMAL ) ) * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT + SUM ( ALL - CAST ( NULL AS REAL ) ) * + 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT - CASE - - 96 WHEN - - 81 THEN + + 67 END * - COUNT( * ) - + CAST( + 89 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT - CASE - - 96 WHEN - - 81 THEN + + 67 END * - COUNT ( * ) - + CAST ( + 89 AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 72 * - 85 AS col0
----
-6120

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT 11 * + 2 - + 68 + - COUNT( * ) + - ( + + 58 ) * ( 0 ) - - - COUNT( * ), 1 + + 97 + - + 23 AS col0
----
-48
75

skipif mysql # not compatible
query II rowsort label-3288
SELECT 11 * + 2 - + 68 + - COUNT ( * ) + - ( + + 58 ) * ( 0 ) - - - COUNT ( * ), 1 + + 97 + - + 23 AS col0
----
-48
75

query I rowsort
SELECT NULLIF ( 77, + 87 ) AS col1
----
77

query I rowsort
SELECT + 54 + + CASE - 84 WHEN + - 52 THEN + 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT + CAST( NULLIF ( + + 57, - CASE - - COUNT( DISTINCT + 44 ) WHEN 59 THEN NULL WHEN 78 THEN NULL WHEN - 94 THEN - 21 + + 79 WHEN - 27 + + + 0 THEN NULL END ) AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3291
SELECT + CAST ( NULLIF ( + + 57, - CASE - - COUNT ( DISTINCT + 44 ) WHEN 59 THEN NULL WHEN 78 THEN NULL WHEN - 94 THEN - 21 + + 79 WHEN - 27 + + + 0 THEN NULL END ) AS INTEGER ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT + CAST( - + 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-3292
SELECT + CAST ( - + 56 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT COALESCE ( - 80, 90 - + 14 ) col2, - COUNT( * ) + + - 1 + + 45 AS col1
----
-80
43

skipif mysql # not compatible
query II rowsort label-3293
SELECT COALESCE ( - 80, 90 - + 14 ) col2, - COUNT ( * ) + + - 1 + + 45 AS col1
----
-80
43

query II rowsort
SELECT - 95 * + 28, 44 AS col1
----
-2660
44

query I rowsort
SELECT - 6 * - + 63 AS col0
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT ALL + 96 AS col1, - CASE + 53 WHEN + - 60 * + COALESCE ( COUNT( * ), - 88, - 84 + + + 97 ) THEN - - 79 END * - + 74 + + 62
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3296
SELECT ALL + 96 AS col1, - CASE + 53 WHEN + - 60 * + COALESCE ( COUNT ( * ), - 88, - 84 + + + 97 ) THEN - - 79 END * - + 74 + + 62
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + MAX( DISTINCT + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + MAX ( DISTINCT + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - - ( - 69 ) + + ( - COALESCE ( + - CASE - 38 WHEN + - AVG ( - 55 ) / 81 + + - MAX( DISTINCT + - 48 ) THEN 1 WHEN 6 * - 44 * 88 + COUNT( * ) + - 14 THEN NULL WHEN + + 95 THEN + + ( 53 ) * 87 + - 73 + - 86 END, - 43 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-3298
SELECT - - ( - 69 ) + + ( - COALESCE ( + - CASE - 38 WHEN + - AVG ( - 55 ) / 81 + + - MAX ( DISTINCT + - 48 ) THEN 1 WHEN 6 * - 44 * 88 + COUNT ( * ) + - 14 THEN NULL WHEN + + 95 THEN + + ( 53 ) * 87 + - 73 + - 86 END, - 43 ) )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3299
SELECT DISTINCT COUNT( * ) AS col0, 70 DIV + - 83 * - 61
----
1
0

skipif mysql # not compatible
query II rowsort label-3299
SELECT DISTINCT COUNT ( * ) AS col0, 70 / + - 83 * - 61
----
1
0

query I rowsort
SELECT - + 98 + - 32 * 67 + + + ( 19 ) * 94 - + - 66 AS col1
----
-390

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT - NULLIF ( + + 1, + MIN( - 82 ) ) + 15 + - 70 * - CASE + + 10 WHEN - 76 + 7 THEN NULL WHEN MIN( DISTINCT + - 34 ) THEN - NULLIF ( 0, + 46 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT - NULLIF ( + + 1, + MIN ( - 82 ) ) + 15 + - 70 * - CASE + + 10 WHEN - 76 + 7 THEN NULL WHEN MIN ( DISTINCT + - 34 ) THEN - NULLIF ( 0, + 46 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 52 * 49
----
2548

query II rowsort
SELECT ALL 16, 89 + - - 26 AS col1
----
16
115

query I rowsort
SELECT DISTINCT + 10 + + 24
----
34

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

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL + - COUNT ( * ) / + 26 - + ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT - 80 DIV + COALESCE ( + 25, + COUNT( ALL + 5 ) DIV - + 99 DIV 87 + + 50 + - - 98, 67 DIV + 88 + - 76 + 30 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3308
SELECT - 80 / + COALESCE ( + 25, + COUNT ( ALL + 5 ) / - + 99 / 87 + + 50 + - - 98, 67 / + 88 + - 76 + 30 ) AS col0
----
-3

query II rowsort
SELECT ALL - 94 AS col1, 28 - - 40
----
-94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT SUM( ALL 54 )
----
54

skipif mysql # not compatible
query I rowsort label-3310
SELECT SUM ( ALL 54 )
----
54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3312
SELECT ALL + - 10 * - 25 + - 63 DIV - 12 col2, + ( + ( + MIN( + 63 ) ) )
----
255
63

skipif mysql # not compatible
query II rowsort label-3312
SELECT ALL + - 10 * - 25 + - 63 / - 12 col2, + ( + ( + MIN ( + 63 ) ) )
----
255
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT DISTINCT - CASE + COUNT( * ) WHEN 99 THEN - + 63 WHEN + - ( - 22 ) THEN NULL END + - 6 + + + 95 * 71 * + MIN( ALL - 4 ) * 59 * - 7 / - - 85, + 43 - + 73 AS col2
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-3313
SELECT DISTINCT - CASE + COUNT ( * ) WHEN 99 THEN - + 63 WHEN + - ( - 22 ) THEN NULL END + - 6 + + + 95 * 71 * + MIN ( ALL - 4 ) * 59 * - 7 / - - 85, + 43 - + 73 AS col2
----
NULL
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3314
SELECT ALL + ( 49 ) + + COUNT( * ) - CAST( NULL AS DECIMAL ) + 21 + + MAX( - 92 ) + 23 * + + 78 * 98 * - COUNT( * ) + - - 97 * + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + ( 49 ) + + COUNT ( * ) - CAST ( NULL AS REAL ) + 21 + + MAX ( - 92 ) + 23 * + + 78 * 98 * - COUNT ( * ) + - - 97 * + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT COUNT( * ) - - 58
----
59

skipif mysql # not compatible
query I rowsort label-3315
SELECT COUNT ( * ) - - 58
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL - - SUM( 84 ) + - 55 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - - SUM ( 84 ) + - 55 AS col1
----
29

query I rowsort
SELECT 60 - - + 85 AS col2
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT 45 * 80 * COUNT( * ), - 71 AS col2
----
3600
-71

skipif mysql # not compatible
query II rowsort label-3318
SELECT 45 * 80 * COUNT ( * ), - 71 AS col2
----
3600
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT 81 * COUNT( * ) DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-3319
SELECT 81 * COUNT ( * ) / 27
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT DISTINCT - ( 18 ) AS col0, COALESCE ( + COUNT( * ), - 90 + - 24 ) AS col1
----
-18
1

skipif mysql # not compatible
query II rowsort label-3320
SELECT DISTINCT - ( 18 ) AS col0, COALESCE ( + COUNT ( * ), - 90 + - 24 ) AS col1
----
-18
1

query I rowsort
SELECT DISTINCT 32 * + 17 AS col1
----
544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3322
SELECT ALL 91 + 19 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL 91 + 19 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 84 * + 74 * + 34 AS col1, 81 + - + 90
----
211344
-9

query I rowsort
SELECT DISTINCT 96 * + 60 col0
----
5760

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT ALL 55 - + 97 DIV 52
----
54

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL 55 - + 97 / 52
----
54

query I rowsort
SELECT ALL 31 * - 65 col1
----
-2015

query I rowsort
SELECT 61 + COALESCE ( - 94, - 41 )
----
-33

query I rowsort
SELECT 6 - 3
----
3

query I rowsort
SELECT + NULLIF ( - - ( 14 ), 16 + - 36 ) * 9 + + 54
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT ALL 95 * 93 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL 95 * 93 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT CASE + COUNT( * ) WHEN CAST( - 13 AS SIGNED ) * - COALESCE ( 14, + + ( + 97 ) ) + + NULLIF ( - 10, 91 ) THEN ( 21 ) WHEN + COUNT( * ) - + - 34 * + 95 * + COUNT( * ) THEN NULL END * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT CASE + COUNT ( * ) WHEN CAST ( - 13 AS INTEGER ) * - COALESCE ( 14, + + ( + 97 ) ) + + NULLIF ( - 10, 91 ) THEN ( 21 ) WHEN + COUNT ( * ) - + - 34 * + 95 * + COUNT ( * ) THEN NULL END * - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3332
SELECT 1 * - + NULLIF ( + + 46, 84 ) * COUNT( ALL - - 95 ) * - 76 * + 18 * 98 * + - ( - 77 ) * + NULLIF ( + 1, - - 39 * + ( - 19 ) ) + + 54 + CAST( NULL AS SIGNED ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3332
SELECT 1 * - + NULLIF ( + + 46, 84 ) * COUNT ( ALL - - 95 ) * - 76 * + 18 * 98 * + - ( - 77 ) * + NULLIF ( + 1, - - 39 * + ( - 19 ) ) + + 54 + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT 47 * + - 30 * + 95
----
-133950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3334
SELECT ALL + 89 * - 66, + ( 10 ) * COALESCE ( - COUNT( * ), + 56 ) * 68 + + 13 + + + 27 / + 28 + CAST( NULL AS SIGNED ) + - - 0 AS col1
----
-5874
NULL

skipif mysql # not compatible
query II rowsort label-3334
SELECT ALL + 89 * - 66, + ( 10 ) * COALESCE ( - COUNT ( * ), + 56 ) * 68 + + 13 + + + 27 / + 28 + CAST ( NULL AS INTEGER ) + - - 0 AS col1
----
-5874
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT - 31 * 70 + COUNT( * )
----
-2169

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - 31 * 70 + COUNT ( * )
----
-2169

query I rowsort
SELECT 80 * + 82 * + + 18
----
118080

query I rowsort
SELECT NULLIF ( 10, ( - ( + + 32 ) ) + - 85 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT ALL - + CAST( + + 82 AS SIGNED ) * + 74
----
-6068

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL - + CAST ( + + 82 AS INTEGER ) * + 74
----
-6068

query II rowsort
SELECT ALL - + 37 + - 85 AS col2, + 37 + + 56 * - - 72 AS col1
----
-122
4069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL + + 75 + 79 + - + 68 + + MAX( - 59 ) * + 59 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + + 75 + 79 + - + 68 + + MAX ( - 59 ) * + 59 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT - - COALESCE ( SUM( ALL - 93 ), + ( + 59 ), + CAST( + + 98 AS SIGNED ), 65 * + 37 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3341
SELECT - - COALESCE ( SUM ( ALL - 93 ), + ( + 59 ), + CAST ( + + 98 AS INTEGER ), 65 * + 37 ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT 52 + - COUNT( * ) DIV - - 29
----
52

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT 52 + - COUNT ( * ) / - - 29
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - - COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - - COUNT ( * ) + - 76
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT - CAST( NULL AS SIGNED ) + - COUNT( + - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( + - 74 )
----
NULL

query I rowsort
SELECT 29 + + 91 * + 11 * - 38 * + 13 * - 25
----
12362379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3346
SELECT - COUNT( * ) - + ( + - 31 ) AS col1, - CASE - - COUNT( * ) WHEN 92 / + - 20 - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + + ( - COUNT( * ) ) ELSE NULL END AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-3346
SELECT - COUNT ( * ) - + ( + - 31 ) AS col1, - CASE - - COUNT ( * ) WHEN 92 / + - 20 - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + + ( - COUNT ( * ) ) ELSE NULL END AS col2
----
30
NULL

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

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + - NULLIF ( - ( - 83 ), - + 21 ) / + ( - COUNT ( * ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT SUM( DISTINCT + 81 ) + - 69 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3348
SELECT SUM ( DISTINCT + 81 ) + - 69 AS col0
----
12

query I rowsort
SELECT - 41 * - 16 + - 71 + - 15 + + + 18 * + - 57 AS col1
----
-456

query I rowsort
SELECT 45 + - 91 col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + 10 + + 80 * + COUNT( * ) * 39
----
3130

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + 10 + + 80 * + COUNT ( * ) * 39
----
3130

query I rowsort
SELECT ALL - 46 - - - 86 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT 61 + - + NULLIF ( - COUNT( + + 91 ), 83 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-3353
SELECT 61 + - + NULLIF ( - COUNT ( + + 91 ), 83 ) col2
----
62

query I rowsort
SELECT 64 * + + 66 AS col2
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT SUM( + NULLIF ( 21, + 86 ) ) + - 67 * 29 AS col1
----
-1922

skipif mysql # not compatible
query I rowsort label-3355
SELECT SUM ( + NULLIF ( 21, + 86 ) ) + - 67 * 29 AS col1
----
-1922

query II rowsort
SELECT ALL 92, 12 AS col0
----
92
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3357
SELECT 80 + - 45 + - - 33 + + - CAST( NULL AS DECIMAL ) - + COUNT( * ) * + COUNT( * ) * + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT 80 + - 45 + - - 33 + + - CAST ( NULL AS REAL ) - + COUNT ( * ) * + COUNT ( * ) * + + 12 AS col1
----
NULL

query II rowsort
SELECT ALL 12 * 54 * + 93 - - - 72, + 92 * + - 97 AS col1
----
60192
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT 61 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-3359
SELECT 61 / + 77
----
0

query I rowsort
SELECT 96 / + CASE + 63 WHEN - - 49 THEN - + 16 END
----
NULL

query II rowsort
SELECT ALL - NULLIF ( 74, - 80 ) AS col1, - 18 * - - 89
----
-74
-1602

query I rowsort
SELECT - 49 * - - 65 * - 0 + - 0 AS col0
----
0

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

skipif mysql # not compatible
query II rowsort label-3363
SELECT COUNT ( * ), 18 AS col1
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT - COALESCE ( - ( - 0 ), - 54 * + + COUNT( * ) * 39, - - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - COALESCE ( - ( - 0 ), - 54 * + + COUNT ( * ) * 39, - - 52 )
----
0

query II rowsort
SELECT + 67 AS col2, + ( - + 47 ) + + 0
----
67
-47

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

query II rowsort
SELECT + 25, 53 + + - 40 AS col2
----
25
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + - 10 * - SUM( + - 97 )
----
-970

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + - 10 * - SUM ( + - 97 )
----
-970

query I rowsort
SELECT - 89 * 8 - - 1 + 74 AS col0
----
-637

query I rowsort
SELECT 64 * - 80
----
-5120

query I rowsort
SELECT + 4 + + - ( + 19 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + ( + - 93 ) + + COALESCE ( - ( + - 40 ), + + 62 + - COALESCE ( - CAST( NULL AS SIGNED ), 59 ) * - 63 DIV 93 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + ( + - 93 ) + + COALESCE ( - ( + - 40 ), + + 62 + - COALESCE ( - CAST ( NULL AS INTEGER ), 59 ) * - 63 / 93 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL - 41 + - + NULLIF ( ( + ( - + 17 ) ), + - MIN( + 81 ) * - + CASE - + 71 WHEN + 87 THEN NULL WHEN + 48 THEN 54 ELSE - NULLIF ( COUNT( * ), COUNT( * ) / + 74 + 83 ) / 56 END * - 54 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - 41 + - + NULLIF ( ( + ( - + 17 ) ), + - MIN ( + 81 ) * - + CASE - + 71 WHEN + 87 THEN NULL WHEN + 48 THEN 54 ELSE - NULLIF ( COUNT ( * ), COUNT ( * ) / + 74 + 83 ) / 56 END * - 54 ) AS col0
----
-24

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

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

query I rowsort
SELECT + 84 + + 94 + 5 * + + 87
----
613

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL 54 + + NULLIF ( - + 1, 77 * + MAX( ALL + - 78 ) + + 63 ) + 88 * 93
----
8237

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL 54 + + NULLIF ( - + 1, 77 * + MAX ( ALL + - 78 ) + + 63 ) + 88 * 93
----
8237

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL 59 + 97 + - 48 + + + COALESCE ( + 18, - + ( COUNT( * ) ) + + - 90 )
----
126

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 59 + 97 + - 48 + + + COALESCE ( + 18, - + ( COUNT ( * ) ) + + - 90 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT - ( + 77 ) * + - COUNT( + 93 )
----
77

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - ( + 77 ) * + - COUNT ( + 93 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - 25 * + SUM( ALL + 4 ) * - 68 AS col0
----
6800

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 25 * + SUM ( ALL + 4 ) * - 68 AS col0
----
6800

query I rowsort
SELECT DISTINCT 86 + + + 53 * - 63 * + 96 AS col2
----
-320458

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - 25 * + - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3381
SELECT - 25 * + - COUNT ( * ) AS col1
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL - 34 - - COUNT( - ( - - 97 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL - 34 - - COUNT ( - ( - - 97 ) ) AS col1
----
-33

query II rowsort
SELECT ALL - 92, - 87 AS col1
----
-92
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3385
SELECT - COALESCE ( + + NULLIF ( + - COALESCE ( - MIN( - - COALESCE ( - CASE + 30 WHEN + 66 THEN 53 ELSE - - ( - 64 ) END, - 36 * - 67 ) ), + + 40 DIV + 93 + - + 14 + + - CASE 54 WHEN + - COALESCE ( + - 3, + 54 * ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) THEN - 56 * 81 DIV - NULLIF ( - 97, + + COUNT( - ( + 50 ) ) ) + CASE - 20 WHEN + CAST( NULL AS SIGNED ) - - ( 46 ) * + 23 THEN + 94 ELSE NULL END END + ( + 58 ) * 47 ), + 77 * - 19 + + CAST( + ( + AVG ( DISTINCT - 97 ) ) + + 10 AS SIGNED ) ), 75 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3385
SELECT - COALESCE ( + + NULLIF ( + - COALESCE ( - MIN ( - - COALESCE ( - CASE + 30 WHEN + 66 THEN 53 ELSE - - ( - 64 ) END, - 36 * - 67 ) ), + + 40 / + 93 + - + 14 + + - CASE 54 WHEN + - COALESCE ( + - 3, + 54 * ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) THEN - 56 * 81 / - NULLIF ( - 97, + + COUNT ( - ( + 50 ) ) ) + CASE - 20 WHEN + CAST ( NULL AS INTEGER ) - - ( 46 ) * + 23 THEN + 94 ELSE NULL END END + ( + 58 ) * 47 ), + 77 * - 19 + + CAST ( + ( + AVG ( DISTINCT - 97 ) ) + + 10 AS INTEGER ) ), 75 ) AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT DISTINCT 20 * CAST( + 26 AS SIGNED )
----
520

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT 20 * CAST ( + 26 AS INTEGER )
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT DISTINCT MAX( ALL 50 ), + 59 AS col0
----
50
59

skipif mysql # not compatible
query II rowsort label-3387
SELECT DISTINCT MAX ( ALL 50 ), + 59 AS col0
----
50
59

query I rowsort
SELECT + 37 - + ( - + 31 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL + 88 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 88 / + 28
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT - SUM( DISTINCT 11 ) * 68 AS col0
----
-748

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - SUM ( DISTINCT 11 ) * 68 AS col0
----
-748

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

query I rowsort
SELECT - 83 - + 44 AS col2
----
-127

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

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + ( + CAST ( - 40 AS INTEGER ) ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT - COUNT( * ) * - COUNT( * ) * + 16 - + ( ( + + 53 ) ) * CAST( - + ( 88 ) AS SIGNED )
----
4680

skipif mysql # not compatible
query I rowsort label-3395
SELECT - COUNT ( * ) * - COUNT ( * ) * + 16 - + ( ( + + 53 ) ) * CAST ( - + ( 88 ) AS INTEGER )
----
4680

query I rowsort
SELECT ( - 95 ) AS col1
----
-95

query I rowsort
SELECT - 36 * - + 90
----
3240

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

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

query I rowsort
SELECT - - 25 * + + 53
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - 87 * - SUM( + + 25 ) + ( + ( - 10 ) )
----
2165

skipif mysql # not compatible
query I rowsort label-3400
SELECT - 87 * - SUM ( + + 25 ) + ( + ( - 10 ) )
----
2165

query I rowsort
SELECT + + ( + - 28 ) - + 35 * - COALESCE ( 50, - - 81 + - ( - CASE + - 78 WHEN - 39 THEN - - 28 * + ( + - 46 ) END ) ) AS col0
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + + MAX( - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + + MAX ( - + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT ALL + 66 * 92 * - 95 + + 42, - COUNT( * ) * 89 * - ( 24 ) + 3 + + 22 AS col2
----
-576798
2161

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL + 66 * 92 * - 95 + + 42, - COUNT ( * ) * 89 * - ( 24 ) + 3 + + 22 AS col2
----
-576798
2161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3404
SELECT DISTINCT - 48 * + COUNT( * ) + + + 6 + + - 50 + 78 - - 60 + + - 4, CAST( NULL AS SIGNED ) AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3404
SELECT DISTINCT - 48 * + COUNT ( * ) + + + 6 + + - 50 + 78 - - 60 + + - 4, CAST ( NULL AS INTEGER ) AS col1
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT - 58 * 13 + + 19 * COUNT( * )
----
-735

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT - 58 * 13 + + 19 * COUNT ( * )
----
-735

query I rowsort
SELECT ALL + 1 * + 14 + - 80 + 5
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT CASE + - 82 WHEN + + COUNT( * ) THEN + ( + 1 ) WHEN - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT CASE + - 82 WHEN + + COUNT ( * ) THEN + ( + 1 ) WHEN - 7 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 87 * 94 col1
----
-8178

query I rowsort
SELECT - - 51 * - + 42 * - - 80 + - 3 + + - 25 AS col1
----
-171388

query I rowsort
SELECT + + 60 * + - 94 - - - 23
----
-5663

query I rowsort
SELECT - - 49 + - + 98 * + 77 * - ( - 43 )
----
-324429

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT + 5 DIV 22 + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 5 / 22 + 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT ALL CASE 42 WHEN 92 THEN - - 53 WHEN - + 1 * 42 THEN + 48 ELSE NULL END * NULLIF ( - 91, 90 * - + 45 + + + 99 * - CAST( NULL AS SIGNED ) ) - - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL CASE 42 WHEN 92 THEN - - 53 WHEN - + 1 * 42 THEN + 48 ELSE NULL END * NULLIF ( - 91, 90 * - + 45 + + + 99 * - CAST ( NULL AS INTEGER ) ) - - 54 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3414
SELECT DISTINCT + 72 DIV - + CAST( - - 44 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT + 72 / - + CAST ( - - 44 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL MAX( ALL + 93 ) col2
----
93

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL MAX ( ALL + 93 ) col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3416
SELECT + 32 DIV 28 DIV NULLIF ( - 85, - SUM( - CASE CAST( + - COALESCE ( 11, - NULLIF ( 43, - 33 DIV CAST( NULL AS DECIMAL ) ) * + 16 ) AS SIGNED ) WHEN 69 THEN NULL ELSE 28 END ) DIV + 64 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 32 / 28 / NULLIF ( - 85, - SUM ( - CASE CAST ( + - COALESCE ( 11, - NULLIF ( 43, - 33 / CAST ( NULL AS REAL ) ) * + 16 ) AS INTEGER ) WHEN 69 THEN NULL ELSE 28 END ) / + 64 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT ALL 38 DIV - MIN( + 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 38 / - MIN ( + 59 ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT + COUNT( * ) DIV + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT + COUNT ( * ) / + 36 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - 20 - + COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3421
SELECT - 20 - + COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT ALL 26 * + 6
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT 37 * - + MIN( 80 )
----
-2960

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT 37 * - + MIN ( 80 )
----
-2960

query I rowsort
SELECT ALL COALESCE ( + 60, - 72 - + 76 * + ( - 98 ) ) * - 65
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT MIN( ALL 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT MIN ( ALL 55 ) AS col1
----
55

query I rowsort
SELECT DISTINCT 31 * 44 * + - 95 AS col1
----
-129580

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL - MAX( 12 ) + + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - MAX ( 12 ) + + 16 AS col2
----
4

query II rowsort
SELECT ALL 10, + 0 AS col2
----
10
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT + 39 DIV - - 47 * NULLIF ( + COUNT( * ), + 18 ) + 66 + - - 69
----
135

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + 39 / - - 47 * NULLIF ( + COUNT ( * ), + 18 ) + 66 + - - 69
----
135

query I rowsort
SELECT + 24 * + 6 * - 31
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - - CASE - - 8 WHEN - 69 - 38 THEN MAX( 88 ) - - SUM( 27 ) END + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - - CASE - - 8 WHEN - 69 - 38 THEN MAX ( 88 ) - - SUM ( 27 ) END + + 46
----
NULL

query I rowsort
SELECT ALL - 50 * - 7
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT + 57 * + NULLIF ( 97, - 13 * - COUNT( * ) ) + - 41 col0, 55 + + + 57 + + ( - - 38 ) * - COUNT( * ) * + - 87 + 24
----
5488
3442

skipif mysql # not compatible
query II rowsort label-3433
SELECT + 57 * + NULLIF ( 97, - 13 * - COUNT ( * ) ) + - 41 col0, 55 + + + 57 + + ( - - 38 ) * - COUNT ( * ) * + - 87 + 24
----
5488
3442

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL + 0 - + CASE 72 WHEN - COUNT( * ) THEN + 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + 0 - + CASE 72 WHEN - COUNT ( * ) THEN + 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT COUNT( DISTINCT - 87 ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-3436
SELECT COUNT ( DISTINCT - 87 ) * 59
----
59

query II rowsort
SELECT + 58 AS col1, 84 * - - 41
----
58
3444

onlyif mysql # aggregate syntax: 
query II rowsort label-3438
SELECT ALL - - 3 AS col2, + 60 + - - COUNT( * ) + + - 8 / - 93 - - CASE + - 78 WHEN - 27 * + 28 * 28 + - + 92 + - 61 * 82 THEN + 28 - + 46 * - - 57 / - 40 WHEN + 56 THEN ( - 52 ) * + AVG ( + 93 ) * 15 * 73 - - ( + 52 ) / - 27 * - 21 ELSE + 54 END - - 29 * CASE + + 27 WHEN - 5 THEN NULL WHEN + 47 THEN 10 ELSE NULL END
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3438
SELECT ALL - - 3 AS col2, + 60 + - - COUNT ( * ) + + - 8 / - 93 - - CASE + - 78 WHEN - 27 * + 28 * 28 + - + 92 + - 61 * 82 THEN + 28 - + 46 * - - 57 / - 40 WHEN + 56 THEN ( - 52 ) * + AVG ( + 93 ) * 15 * 73 - - ( + 52 ) / - 27 * - 21 ELSE + 54 END - - 29 * CASE + + 27 WHEN - 5 THEN NULL WHEN + 47 THEN 10 ELSE NULL END
----
3
NULL

query II rowsort
SELECT + 59 AS col2, 11 AS col1
----
59
11

query I rowsort
SELECT DISTINCT + 6 - + + 44
----
-38

query I rowsort
SELECT + 69 + + 12 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - CASE + 4 WHEN 41 THEN + 36 WHEN - COUNT( - 36 ) THEN - 75 + SUM( DISTINCT - 55 ) * + - 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - CASE + 4 WHEN 41 THEN + 36 WHEN - COUNT ( - 36 ) THEN - 75 + SUM ( DISTINCT - 55 ) * + - 45 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3443
SELECT DISTINCT 8 * + SUM( ALL - 36 ) AS col1, 14 + - CAST( NULL AS SIGNED )
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-3443
SELECT DISTINCT 8 * + SUM ( ALL - 36 ) AS col1, 14 + - CAST ( NULL AS INTEGER )
----
-288
NULL

query I rowsort
SELECT DISTINCT - 6 * 74
----
-444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT 55 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT 55 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 90 * + ( - 14 ) AS col2
----
-1260

query I rowsort
SELECT ALL - 88 * + 20 * - 42
----
73920

query II rowsort
SELECT - 83 col2, + 74 * + + 93 AS col2
----
-83
6882

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT 64 AS col1, 3 * + 55 * + MIN( ALL + - COALESCE ( - + 38, - - COALESCE ( + 70, - - 42 + + 47 - + - 31 ) ) ) * + 74 AS col2
----
64
463980

skipif mysql # not compatible
query II rowsort label-3449
SELECT 64 AS col1, 3 * + 55 * + MIN ( ALL + - COALESCE ( - + 38, - - COALESCE ( + 70, - - 42 + + 47 - + - 31 ) ) ) * + 74 AS col2
----
64
463980

query I rowsort
SELECT 80 * - COALESCE ( - 47, 8 ) AS col0
----
3760

query II rowsort
SELECT - 44 AS col1, 80 + 34 col0
----
-44
114

query I rowsort
SELECT ALL ( + 40 ) + + 57 - + 53 AS col0
----
44

query I rowsort
SELECT ALL + 53 + + 60 + + + 50
----
163

query I rowsort
SELECT 79 * 16
----
1264

query II rowsort
SELECT 45 AS col2, 50
----
45
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL COUNT( * ) + 72 - COUNT( + - 76 ) - - - 9
----
63

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL COUNT ( * ) + 72 - COUNT ( + - 76 ) - - - 9
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT 5 + - 7 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT 5 + - 7 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL 12 * - - SUM( + - 13 )
----
-156

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 12 * - - SUM ( + - 13 )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL MAX( + 18 ) + + 15 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL MAX ( + 18 ) + + 15 AS col2
----
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL + 65 + + CASE - MIN( ALL - 33 ) WHEN CASE + 39 WHEN + + ( - COUNT( * ) ) THEN NULL WHEN - - 99 THEN NULL WHEN - 22 + - COUNT( * ) THEN - 20 * 51 WHEN - - COUNT( * ) * + - CAST( - COALESCE ( COUNT( * ), + 4 ) AS SIGNED ) + - 43 THEN 19 END THEN NULL WHEN + - MIN( + + 73 ) THEN + 67 + + - NULLIF ( - 0, - 92 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + 65 + + CASE - MIN ( ALL - 33 ) WHEN CASE + 39 WHEN + + ( - COUNT ( * ) ) THEN NULL WHEN - - 99 THEN NULL WHEN - 22 + - COUNT ( * ) THEN - 20 * 51 WHEN - - COUNT ( * ) * + - CAST ( - COALESCE ( COUNT ( * ), + 4 ) AS INTEGER ) + - 43 THEN 19 END THEN NULL WHEN + - MIN ( + + 73 ) THEN + 67 + + - NULLIF ( - 0, - 92 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 15 - 89 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL - COUNT( DISTINCT - + 42 ) * - 17
----
17

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - COUNT ( DISTINCT - + 42 ) * - 17
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL - + CASE + CAST( ( + - 19 ) AS SIGNED ) WHEN + CAST( - 76 AS SIGNED ) THEN + COUNT( * ) + + + 65 WHEN + MIN( ALL - - CAST( NULL AS SIGNED ) ) * + - COALESCE ( 61, + NULLIF ( 96, - + 48 ), + 70 + - MIN( - + 30 ) + - 7 * 14 / - - 78 ) THEN 35 - + CAST( NULL AS SIGNED ) WHEN + - 64 * + COUNT( * ) THEN 93 * + 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - + CASE + CAST ( ( + - 19 ) AS INTEGER ) WHEN + CAST ( - 76 AS INTEGER ) THEN + COUNT ( * ) + + + 65 WHEN + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) * + - COALESCE ( 61, + NULLIF ( 96, - + 48 ), + 70 + - MIN ( - + 30 ) + - 7 * 14 / - - 78 ) THEN 35 - + CAST ( NULL AS INTEGER ) WHEN + - 64 * + COUNT ( * ) THEN 93 * + 82 END AS col0
----
NULL

query I rowsort
SELECT - 20 * 70 - 81 - + 40
----
-1521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3466
SELECT ALL + CAST( CASE + - 92 WHEN - + 11 THEN 42 WHEN + COUNT( * ) THEN + CAST( - COALESCE ( - + 89, + - 23 * - 18 + + 87 + 87 + ( 28 ) + - 44 * - - 79 ) AS SIGNED ) + + + 48 ELSE NULL END AS DECIMAL ) - + + ( + + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + CAST ( CASE + - 92 WHEN - + 11 THEN 42 WHEN + COUNT ( * ) THEN + CAST ( - COALESCE ( - + 89, + - 23 * - 18 + + 87 + 87 + ( 28 ) + - 44 * - - 79 ) AS INTEGER ) + + + 48 ELSE NULL END AS REAL ) - + + ( + + 61 )
----
NULL

query I rowsort
SELECT - 81 * - 6 * + + 99
----
48114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3468
SELECT ALL - 60, + 86 * + - 29 * COUNT( DISTINCT + 61 ) DIV COUNT( * ) * - 55 + + 30 col0
----
-60
137200

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL - 60, + 86 * + - 29 * COUNT ( DISTINCT + 61 ) / COUNT ( * ) * - 55 + + 30 col0
----
-60
137200

query I rowsort
SELECT ALL - + NULLIF ( 98, + 93 ) AS col1
----
-98

query I rowsort
SELECT 19 + ( - - 36 )
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3471
SELECT - - 99 * + + 89 + 48 * - + 68 + + 68 DIV + 53, + 23 AS col2
----
5548
23

skipif mysql # not compatible
query II rowsort label-3471
SELECT - - 99 * + + 89 + 48 * - + 68 + + 68 / + 53, + 23 AS col2
----
5548
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL + + 23 * - COUNT( * ) * 35 AS col1
----
-805

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL + + 23 * - COUNT ( * ) * 35 AS col1
----
-805

query I rowsort
SELECT + ( + - 29 ) * 8
----
-232

query I rowsort
SELECT ALL - COALESCE ( + ( COALESCE ( - 35, 25 ) ), - NULLIF ( + 74, - 75 ) + + 8, + 88 + + 87 ) AS col1
----
35

query I rowsort
SELECT DISTINCT + 5 * - 1 AS col2
----
-5

query I rowsort
SELECT ALL + - ( - - 89 ) * + 63 - + 45 AS col1
----
-5652

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

query I rowsort
SELECT + 58 + + 74 AS col2
----
132

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT - 80 DIV 65 DIV - 6 * - ( 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 80 / 65 / - 6 * - ( 38 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3482
SELECT ALL - NULLIF ( CAST( NULL AS DECIMAL ), + - SUM( ALL + 98 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - NULLIF ( CAST ( NULL AS REAL ), + - SUM ( ALL + 98 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT + 40 * 44 + 26 + - 37 * 66 * - 24 * + ( + CAST( - CASE - - 99 WHEN 40 THEN NULL WHEN COUNT( * ) * + + 66 + - + MAX( + - 19 ) THEN 7 * - COUNT( * ) * 20 ELSE - - 17 END AS SIGNED ) ) AS col2
----
-994550

skipif mysql # not compatible
query I rowsort label-3483
SELECT + 40 * 44 + 26 + - 37 * 66 * - 24 * + ( + CAST ( - CASE - - 99 WHEN 40 THEN NULL WHEN COUNT ( * ) * + + 66 + - + MAX ( + - 19 ) THEN 7 * - COUNT ( * ) * 20 ELSE - - 17 END AS INTEGER ) ) AS col2
----
-994550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3484
SELECT DISTINCT - COALESCE ( - + 81, - - 5 ) col1, + 63 - + 3 + + - 85 - 74 * ( 15 ) * NULLIF ( - + 8, + + ( + 29 ) + 32 ) * - AVG ( ALL + 10 ) - CAST( + 50 AS SIGNED ) * - CASE + SUM( - 96 ) WHEN - 39 THEN - + 72 WHEN AVG ( DISTINCT - + 80 ) THEN NULL ELSE NULL END + - 83
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3484
SELECT DISTINCT - COALESCE ( - + 81, - - 5 ) col1, + 63 - + 3 + + - 85 - 74 * ( 15 ) * NULLIF ( - + 8, + + ( + 29 ) + 32 ) * - AVG ( ALL + 10 ) - CAST ( + 50 AS INTEGER ) * - CASE + SUM ( - 96 ) WHEN - 39 THEN - + 72 WHEN AVG ( DISTINCT - + 80 ) THEN NULL ELSE NULL END + - 83
----
81
NULL

query I rowsort
SELECT 70 + 28
----
98

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

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 74 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT 80 DIV + + 99 * + 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT 80 / + + 99 * + 93 col1
----
0

query I rowsort
SELECT DISTINCT 55 + - - 46
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT DISTINCT MIN( - 44 ), COALESCE ( - COALESCE ( 92, NULLIF ( + 7, - 88 + 1 + - 75 * ( 33 ) + + 32 + + + NULLIF ( - 15, + + 97 - - + 94 * 16 * 6 * - 92 + + + 79 + + + 27 ) * - + 91 ) ), - 0 * 51 * + + NULLIF ( - 68, - + 34 + - 76 + + + 8 ) ) AS col0
----
-44
-92

skipif mysql # not compatible
query II rowsort label-3489
SELECT DISTINCT MIN ( - 44 ), COALESCE ( - COALESCE ( 92, NULLIF ( + 7, - 88 + 1 + - 75 * ( 33 ) + + 32 + + + NULLIF ( - 15, + + 97 - - + 94 * 16 * 6 * - 92 + + + 79 + + + 27 ) * - + 91 ) ), - 0 * 51 * + + NULLIF ( - 68, - + 34 + - 76 + + + 8 ) ) AS col0
----
-44
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT COUNT( * ) + - 73 - - 92 * + 55
----
4988

skipif mysql # not compatible
query I rowsort label-3490
SELECT COUNT ( * ) + - 73 - - 92 * + 55
----
4988

query I rowsort
SELECT DISTINCT 98 col0
----
98

query I rowsort
SELECT ALL + 57 + 59 AS col1
----
116

query I rowsort
SELECT 86 + 81
----
167

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

query I rowsort
SELECT 95 + 12 - 52 * 38
----
-1869

query II rowsort
SELECT 5 + + 91 AS col1, + 25 + 23
----
96
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3497
SELECT COUNT( * ) - - 21 AS col2, 67 + - 77 + + - ( + - 1 ) + - 73 * NULLIF ( + + 19, - 9 + - + CASE 68 WHEN + - 72 * + 43 THEN NULL WHEN + - 14 * - - 17 THEN 99 ELSE NULL END * 68 + + - 54 + + 21 + - 5 - + 32 + + 76 * + + 39 ) * + 96 + + ( + COUNT( * ) ) + - COUNT( * ) DIV - 21
----
22
-133160

skipif mysql # not compatible
query II rowsort label-3497
SELECT COUNT ( * ) - - 21 AS col2, 67 + - 77 + + - ( + - 1 ) + - 73 * NULLIF ( + + 19, - 9 + - + CASE 68 WHEN + - 72 * + 43 THEN NULL WHEN + - 14 * - - 17 THEN 99 ELSE NULL END * 68 + + - 54 + + 21 + - 5 - + 32 + + 76 * + + 39 ) * + 96 + + ( + COUNT ( * ) ) + - COUNT ( * ) / - 21
----
22
-133160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3498
SELECT DISTINCT + 40 + 68 col1, COUNT( * ) + - - 11 - + 79 - NULLIF ( + ( 72 ), + 7 + + ( - - ( + 98 ) ) ) DIV - ( + - 99 )
----
108
-67

skipif mysql # not compatible
query II rowsort label-3498
SELECT DISTINCT + 40 + 68 col1, COUNT ( * ) + - - 11 - + 79 - NULLIF ( + ( 72 ), + 7 + + ( - - ( + 98 ) ) ) / - ( + - 99 )
----
108
-67

query I rowsort
SELECT ALL ( 42 ) - - ( - + 52 ) + - ( - 81 ) * + 54 AS col1
----
4364

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - 71 + + 80 + + - 32 * - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3500
SELECT - 71 + + 80 + + - 32 * - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT ALL CASE - COUNT( * ) WHEN 44 + + 86 THEN 42 WHEN 10 THEN - + 39 END AS col0, 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-3501
SELECT ALL CASE - COUNT ( * ) WHEN 44 + + 86 THEN 42 WHEN 10 THEN - + 39 END AS col0, 76 AS col1
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT + 74 * NULLIF ( - 92, + 74 ) * 50 * + 42 * - CASE 20 WHEN + 79 THEN MAX( 30 ) + - CASE + + 9 WHEN ( - 65 ) THEN NULL WHEN 27 THEN + + 5 WHEN - 94 * + - 16 THEN NULL ELSE + 96 - - - 87 + + - 10 / + 50 + - ( 93 ) * - + ( + 74 ) END END - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + 74 * NULLIF ( - 92, + 74 ) * 50 * + 42 * - CASE 20 WHEN + 79 THEN MAX ( 30 ) + - CASE + + 9 WHEN ( - 65 ) THEN NULL WHEN 27 THEN + + 5 WHEN - 94 * + - 16 THEN NULL ELSE + 96 - - - 87 + + - 10 / + 50 + - ( 93 ) * - + ( + 74 ) END END - + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT - COUNT( 84 ) DIV + + 59 + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3503
SELECT - COUNT ( 84 ) / + + 59 + - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3504
SELECT ALL - 67 * - - 68 + + 93 DIV + MIN( - 49 ) + - SUM( + ( + 77 ) )
----
-4634

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL - 67 * - - 68 + + 93 / + MIN ( - 49 ) + - SUM ( + ( + 77 ) )
----
-4634

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - - COUNT( * ) * + 10 * 94
----
940

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - - COUNT ( * ) * + 10 * 94
----
940

query I rowsort
SELECT DISTINCT + - 63 AS col2
----
-63

query I rowsort
SELECT DISTINCT - 48 * - 80 + + + 60 AS col0
----
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT + CAST( - - 7 AS SIGNED ) * + + 18 * + + 26
----
3276

skipif mysql # not compatible
query I rowsort label-3509
SELECT + CAST ( - - 7 AS INTEGER ) * + + 18 * + + 26
----
3276

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + - 23 * 45 - - + COUNT( * ) + 74 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-3511
SELECT + - 23 * 45 - - + COUNT ( * ) + 74 AS col1
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT MAX( DISTINCT - 84 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-3512
SELECT MAX ( DISTINCT - 84 ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - 0 * - 79 + COUNT( - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - 0 * - 79 + COUNT ( - 5 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + 50 * + 54 + - COUNT( ALL + 27 )
----
2699

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + 50 * + 54 + - COUNT ( ALL + 27 )
----
2699

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - 98 * 61 - - 22 * - COUNT( * ) col0
----
-6000

skipif mysql # not compatible
query I rowsort label-3516
SELECT - 98 * 61 - - 22 * - COUNT ( * ) col0
----
-6000

query I rowsort
SELECT ALL NULLIF ( - 33, + 40 ) + + - NULLIF ( - 98, + + 22 ) + - NULLIF ( - + 65, 6 * - - 32 )
----
130

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

skipif mysql # not compatible
query I rowsort label-3518
SELECT + CAST ( NULL AS REAL ) * - 62 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3519
SELECT MIN ( ALL - 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT - 31 + 21 DIV 88 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3520
SELECT - 31 + 21 / 88 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL COALESCE ( + + COUNT( 1 ), + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL COALESCE ( + + COUNT ( 1 ), + 96 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3522
SELECT - CAST( NULL AS SIGNED ) col0, - 16 * + 19 * 4
----
NULL
-1216

skipif mysql # not compatible
query II rowsort label-3522
SELECT - CAST ( NULL AS INTEGER ) col0, - 16 * + 19 * 4
----
NULL
-1216

query I rowsort
SELECT - 7 + + 68 AS col1
----
61

query II rowsort
SELECT ALL CASE WHEN NOT - CASE + 67 WHEN + 60 THEN - 26 * 88 ELSE - - 1 END <> - 35 THEN + 5 * - + 8 ELSE NULL END, - 18 AS col0
----
NULL
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - 95 * - COUNT( * ) * - - 13 * - 85 AS col1
----
-104975

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 95 * - COUNT ( * ) * - - 13 * - 85 AS col1
----
-104975

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

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT MIN ( - 43 )
----
-43

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

query I rowsort
SELECT DISTINCT + 8 - - 97
----
105

query I rowsort
SELECT DISTINCT ( 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT + + 31 * NULLIF ( 45, AVG ( DISTINCT + 59 ) + - 78 + + COUNT( * ) * - 38 ) AS col0, 57 + COUNT( * ) AS col2
----
1395
58

skipif mysql # not compatible
query II rowsort label-3531
SELECT + + 31 * NULLIF ( 45, AVG ( DISTINCT + 59 ) + - 78 + + COUNT ( * ) * - 38 ) AS col0, 57 + COUNT ( * ) AS col2
----
1395
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT - - 7 + 60 - + CASE - 3 WHEN - + 77 THEN NULL ELSE + + 20 * + 73 END * - + CASE + - 70 WHEN 11 + + - SUM( 47 ) + + 15 - + - 19 THEN + + COUNT( * ) WHEN + - 74 * + - 57 THEN + 23 ELSE NULL END * + 1 - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT - - 7 + 60 - + CASE - 3 WHEN - + 77 THEN NULL ELSE + + 20 * + 73 END * - + CASE + - 70 WHEN 11 + + - SUM ( 47 ) + + 15 - + - 19 THEN + + COUNT ( * ) WHEN + - 74 * + - 57 THEN + 23 ELSE NULL END * + 1 - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) - + COUNT( * ) THEN + 26 ELSE - 54 * + 61 END
----
-3294

skipif mysql # not compatible
query I rowsort label-3533
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) - + COUNT ( * ) THEN + 26 ELSE - 54 * + 61 END
----
-3294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3534
SELECT DISTINCT 21, 37 * COALESCE ( CAST( NULL AS SIGNED ), + 70 - - + 47 * - - SUM( + - 5 ) ) AS col1
----
21
-6105

skipif mysql # not compatible
query II rowsort label-3534
SELECT DISTINCT 21, 37 * COALESCE ( CAST ( NULL AS INTEGER ), + 70 - - + 47 * - - SUM ( + - 5 ) ) AS col1
----
21
-6105

query I rowsort
SELECT ALL + 10 * 29
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - 13 - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 13 - COUNT ( * ) AS col0
----
-14

query II rowsort
SELECT + 49 AS col1, 80 col2
----
49
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT + COUNT( ALL - 83 ) DIV - 61 + - - COUNT( * ) - - - 42 * - - 67 * - + 32 - + - 60 * 61 DIV + - 40 AS col2
----
89958

skipif mysql # not compatible
query I rowsort label-3538
SELECT + COUNT ( ALL - 83 ) / - 61 + - - COUNT ( * ) - - - 42 * - - 67 * - + 32 - + - 60 * 61 / + - 40 AS col2
----
89958

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT - + COALESCE ( + - 36, 35 * 64 ) + - 40 + 33 + + 31 - 40, SUM( ALL - ( - + 28 ) ) - 15 col2
----
20
13

skipif mysql # not compatible
query II rowsort label-3539
SELECT - + COALESCE ( + - 36, 35 * 64 ) + - 40 + 33 + + 31 - 40, SUM ( ALL - ( - + 28 ) ) - 15 col2
----
20
13

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

skipif mysql # not compatible
query I rowsort label-3540
SELECT - ( - - 79 ) / COUNT ( * ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3541
SELECT + - MIN( ALL + - 85 ) * + + 64 + 39 AS col0, COUNT( * ) DIV + 71 + + + 3 AS col2
----
5479
3

skipif mysql # not compatible
query II rowsort label-3541
SELECT + - MIN ( ALL + - 85 ) * + + 64 + 39 AS col0, COUNT ( * ) / + 71 + + + 3 AS col2
----
5479
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT + 11 DIV - - 6 + + 45 + - COUNT( * ) * 61
----
-15

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + 11 / - - 6 + + 45 + - COUNT ( * ) * 61
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL + 73 * + 79 * COUNT( ALL 93 ) + + 60 AS col1
----
5827

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL + 73 * + 79 * COUNT ( ALL 93 ) + + 60 AS col1
----
5827

query I rowsort
SELECT ALL - 23 * + 9 + + 71
----
-136

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

skipif mysql # not compatible
query I rowsort label-3545
SELECT + CAST ( NULL AS INTEGER ) + 80 + + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT ALL + MIN( + + 53 ) AS col1, + 8 * 13 col0
----
53
104

skipif mysql # not compatible
query II rowsort label-3546
SELECT ALL + MIN ( + + 53 ) AS col1, + 8 * 13 col0
----
53
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT + 61 * + - CAST( + 29 AS SIGNED )
----
-1769

skipif mysql # not compatible
query I rowsort label-3547
SELECT + 61 * + - CAST ( + 29 AS INTEGER )
----
-1769

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

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

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

query I rowsort
SELECT ALL - 46 * - + 69 + + 53
----
3227

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

skipif mysql # not compatible
query I rowsort label-3551
SELECT + COUNT ( * ) * - - 85 / + 16
----
5

query I rowsort
SELECT ALL 66 - - - 51
----
15

query I rowsort
SELECT 21 - + - 60 * + 17
----
1041

query I rowsort
SELECT COALESCE ( 19, - ( 14 ) ) + - + 95 * 58
----
-5491

query I rowsort
SELECT 34 * + 70 AS col0
----
2380

query I rowsort
SELECT ALL - 68 * 91 AS col1
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT 40 + - - 79 + - - MIN( DISTINCT - 39 )
----
80

skipif mysql # not compatible
query I rowsort label-3557
SELECT 40 + - - 79 + - - MIN ( DISTINCT - 39 )
----
80

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

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

query I rowsort
SELECT 49 + + - ( + 85 ) - - 57
----
21

query I rowsort
SELECT 37 * + 99 AS col1
----
3663

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT NULLIF ( + 98, - 96 * + 76 + - COUNT( + - 33 ) ) + - ( - - CASE 81 WHEN 39 + - - 88 + 11 + + 7 THEN 45 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT NULLIF ( + 98, - 96 * + 76 + - COUNT ( + - 33 ) ) + - ( - - CASE 81 WHEN 39 + - - 88 + 11 + + 7 THEN 45 END ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 31 * + 23 AS col0
----
713

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT - 70 * NULLIF ( - 11, + 9 ) + + 16 DIV + 91 * - 8 AS col1
----
770

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 70 * NULLIF ( - 11, + 9 ) + + 16 / + 91 * - 8 AS col1
----
770

query I rowsort
SELECT 17 * + 68 AS col2
----
1156

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT ALL - - 17 DIV 93 + 97 - - - 24
----
73

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - - 17 / 93 + 97 - - - 24
----
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT ALL + CASE 93 WHEN - - COUNT( * ) THEN - 49 END AS col0, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL + CASE 93 WHEN - - COUNT ( * ) THEN - 49 END AS col0, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + MAX( ALL - 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + MAX ( ALL - 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - + 42 + + COUNT( * ) + - 45
----
-86

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - + 42 + + COUNT ( * ) + - 45
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + COUNT( * ) + + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3571
SELECT + COUNT ( * ) + + 80 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3572
SELECT CASE - COUNT( * ) WHEN - 88 THEN + - ( CAST( + 91 AS SIGNED ) ) * + 85 + - ( - - COUNT( * ) ) ELSE NULL END AS col2, 59 * + COUNT( DISTINCT + 29 ) - + COUNT( * ) + 49
----
NULL
107

skipif mysql # not compatible
query II rowsort label-3572
SELECT CASE - COUNT ( * ) WHEN - 88 THEN + - ( CAST ( + 91 AS INTEGER ) ) * + 85 + - ( - - COUNT ( * ) ) ELSE NULL END AS col2, 59 * + COUNT ( DISTINCT + 29 ) - + COUNT ( * ) + 49
----
NULL
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT 42 * - - 69 * COUNT( * ) * - 4 * - + COUNT( * ) + - - 69
----
11661

skipif mysql # not compatible
query I rowsort label-3573
SELECT 42 * - - 69 * COUNT ( * ) * - 4 * - + COUNT ( * ) + - - 69
----
11661

query I rowsort
SELECT ALL - + 12 + + - 59 AS col1
----
-71

query I rowsort
SELECT ALL 60 + + 83 col1
----
143

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

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - COUNT ( * ) + 23 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT DISTINCT - NULLIF ( COUNT( * ), 74 + - 39 ) AS col2, + 1 AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT - NULLIF ( COUNT ( * ), 74 + - 39 ) AS col2, + 1 AS col0
----
-1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3578
SELECT ALL 56 / + 14 * - CAST( NULL AS DECIMAL ) / + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL 56 / + 14 * - CAST ( NULL AS REAL ) / + 93
----
NULL

query II rowsort
SELECT 62 * - 47 + + - 56 col2, 86
----
-2970
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3580
SELECT DISTINCT - 25 + - + 8 - - COUNT( * ) - 7 * - CAST( NULL AS SIGNED ) / + - 62 + 9 * - + 40 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - 25 + - + 8 - - COUNT ( * ) - 7 * - CAST ( NULL AS INTEGER ) / + - 62 + 9 * - + 40 * - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL + 71 + + NULLIF ( + + 70, COUNT( * ) ) * + COUNT( DISTINCT + 56 ) + 90 - - - NULLIF ( 5, - - 80 - + MAX( DISTINCT NULLIF ( 70, - 74 ) ) ) * + ( - COUNT( ALL + 54 ) ) * 91 - ( + 98 ) AS col0
----
588

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + 71 + + NULLIF ( + + 70, COUNT ( * ) ) * + COUNT ( DISTINCT + 56 ) + 90 - - - NULLIF ( 5, - - 80 - + MAX ( DISTINCT NULLIF ( 70, - 74 ) ) ) * + ( - COUNT ( ALL + 54 ) ) * 91 - ( + 98 ) AS col0
----
588

query II rowsort
SELECT 89 * - ( - 45 ) AS col0, - 45 AS col1
----
4005
-45

query I rowsort
SELECT 25 * - 10 AS col1
----
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3584
SELECT ALL - 98 DIV CAST( - 22 AS SIGNED ) AS col0, + 19 + + COUNT( * )
----
4
20

skipif mysql # not compatible
query II rowsort label-3584
SELECT ALL - 98 / CAST ( - 22 AS INTEGER ) AS col0, + 19 + + COUNT ( * )
----
4
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3585
SELECT + 89 * - + 94 * - 93 * + 80 - - 55 / 55 - - + 18 * + ( CAST( NULL AS SIGNED ) ) * - - 74, + CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3585
SELECT + 89 * - + 94 * - 93 * + 80 - - 55 / 55 - - + 18 * + ( CAST ( NULL AS INTEGER ) ) * - - 74, + CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3586
SELECT + 91, - COUNT( * ) + 12 + + 70 AS col0
----
91
81

skipif mysql # not compatible
query II rowsort label-3586
SELECT + 91, - COUNT ( * ) + 12 + + 70 AS col0
----
91
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3587
SELECT DISTINCT CAST( NULL AS SIGNED ) - - ( - - 89 ) AS col0, + 62 + 18 * - + 91 col2
----
NULL
-1576

skipif mysql # not compatible
query II rowsort label-3587
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - ( - - 89 ) AS col0, + 62 + 18 * - + 91 col2
----
NULL
-1576

query I rowsort
SELECT 15 * - + 27
----
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3589
SELECT ALL SUM( DISTINCT + - 72 ) * + NULLIF ( 72, + ( + 69 ) / - - 25 * + + MIN( - - CAST( + COALESCE ( - + 60, CASE - 61 WHEN ( - 34 ) * 69 - 90 THEN 6 ELSE NULL END ) AS SIGNED ) ) ), + 56 + - COALESCE ( - - 27, 43, - 62 ) * + + COUNT( * ) col0
----
-5184
29

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL SUM ( DISTINCT + - 72 ) * + NULLIF ( 72, + ( + 69 ) / - - 25 * + + MIN ( - - CAST ( + COALESCE ( - + 60, CASE - 61 WHEN ( - 34 ) * 69 - 90 THEN 6 ELSE NULL END ) AS INTEGER ) ) ), + 56 + - COALESCE ( - - 27, 43, - 62 ) * + + COUNT ( * ) col0
----
-5184
29

query I rowsort
SELECT DISTINCT + 81 * 0 AS col0
----
0

query II rowsort
SELECT ALL 60 AS col2, 62 col0
----
60
62

query I rowsort
SELECT ALL 12 * 83
----
996

query I rowsort
SELECT 14 * 69 AS col2
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ( COUNT( * ) ) + + - MIN( ALL - 7 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3594
SELECT ( COUNT ( * ) ) + + - MIN ( ALL - 7 ) AS col1
----
8

query I rowsort
SELECT 52 * + 76 - 35 + 40 * - ( - + 67 ) AS col2
----
6597

query II rowsort
SELECT 39 * - 34 + - 0, 81 AS col1
----
-1326
81

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT 31 DIV - + 77 * - 75 * - + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT 31 / - + 77 * - 75 * - + 3 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL + COUNT( * ) + 62 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + COUNT ( * ) + 62 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 76 * + + 4 / - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 76 * + + 4 / - 97 AS col1
----
NULL

query I rowsort
SELECT ALL + 30 + - 40
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL + COUNT( * ) + COALESCE ( + COUNT( * ), - + ( - 89 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + COUNT ( * ) + COALESCE ( + COUNT ( * ), - + ( - 89 ) ) AS col1
----
2

query II rowsort
SELECT - 61 AS col2, 64 * + NULLIF ( + 28, + 71 ) AS col1
----
-61
1792

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT ( - 47 ) DIV - 19
----
2

skipif mysql # not compatible
query I rowsort label-3605
SELECT ( - 47 ) / - 19
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + COALESCE ( - 95, COUNT( * ) * - + 38 ) * + 39 + 58 - - 5 * + - 84 - 72 + + 18 + 20 + 72 AS col2
----
-4029

skipif mysql # not compatible
query I rowsort label-3606
SELECT + COALESCE ( - 95, COUNT ( * ) * - + 38 ) * + 39 + 58 - - 5 * + - 84 - 72 + + 18 + 20 + 72 AS col2
----
-4029

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT 42 - + - 20 + + MIN( - - 68 )
----
130

skipif mysql # not compatible
query I rowsort label-3607
SELECT 42 - + - 20 + + MIN ( - - 68 )
----
130

query I rowsort
SELECT ALL 92 + 53 col2
----
145

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

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 75 + + - COUNT ( * ) + 42 AS col1
----
-34

query I rowsort
SELECT - + 65 col2
----
-65

query I rowsort
SELECT 80 + 16 + 22 - 78
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL - + 10 + - + 49 + 45 - + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - + 10 + - + 49 + 45 - + COUNT ( * ) AS col2
----
-15

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

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

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

query I rowsort
SELECT ALL + - 97 * - + 28
----
2716

query II rowsort
SELECT 11 AS col0, + 17
----
11
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT 75 * + + 68 + - COUNT( * ) + + 95 * + 80 col0
----
12699

skipif mysql # not compatible
query I rowsort label-3617
SELECT 75 * + + 68 + - COUNT ( * ) + + 95 * + 80 col0
----
12699

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL 92 * 62 - + COUNT( * )
----
5703

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL 92 * 62 - + COUNT ( * )
----
5703

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT DISTINCT - COUNT( * ) col0, 48 + + - 59 - MIN( - 5 ) AS col2
----
-1
-6

skipif mysql # not compatible
query II rowsort label-3619
SELECT DISTINCT - COUNT ( * ) col0, 48 + + - 59 - MIN ( - 5 ) AS col2
----
-1
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT - 86 DIV + 20 + + 93 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3620
SELECT - 86 / + 20 + + 93 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT CAST( + - 43 AS SIGNED ) + + 54 * + 4 + - ( + 44 ) + - 32 * + 62 + - COUNT( * ) + - 14 * + + CAST( NULL AS SIGNED ) * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT CAST ( + - 43 AS INTEGER ) + + 54 * + 4 + - ( + 44 ) + - 32 * + 62 + - COUNT ( * ) + - 14 * + + CAST ( NULL AS INTEGER ) * 63 AS col2
----
NULL

query I rowsort
SELECT 34 * - - 67 AS col2
----
2278

query II rowsort
SELECT - 23 * - 26 + - 19 + + 9 * + 96 + - - 28 AS col0, + 67
----
1471
67

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

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

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

query I rowsort
SELECT - 54 * 15
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL + CASE + 16 WHEN - MIN( DISTINCT 92 ) THEN NULL ELSE - COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + CASE + 16 WHEN - MIN ( DISTINCT 92 ) THEN NULL ELSE - COUNT ( * ) END col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3628
SELECT DISTINCT - CASE + 59 WHEN 20 THEN + 69 * 32 * 7 ELSE 48 END * + 91 * + COUNT( * ) + - - 87 + - + 15 + + 16 + - - 45 * + 42 - - CAST( NULL AS DECIMAL ) * + 15 * - 61 * - 22 * - - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - CASE + 59 WHEN 20 THEN + 69 * 32 * 7 ELSE 48 END * + 91 * + COUNT ( * ) + - - 87 + - + 15 + + 16 + - - 45 * + 42 - - CAST ( NULL AS REAL ) * + 15 * - 61 * - 22 * - - 8 AS col0
----
NULL

query I rowsort
SELECT - 78 * + 86 + 99
----
-6609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3630
SELECT - COUNT( * ) * - COALESCE ( ( + - 53 ), 88 * 10 + - + COUNT( * ) + + CASE + CASE - - 86 WHEN - 36 THEN + - 1 END WHEN - - 42 DIV ( + 74 ) * - 32 * CAST( - COUNT( * ) AS SIGNED ) THEN NULL ELSE + 73 DIV + 2 END ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3630
SELECT - COUNT ( * ) * - COALESCE ( ( + - 53 ), 88 * 10 + - + COUNT ( * ) + + CASE + CASE - - 86 WHEN - 36 THEN + - 1 END WHEN - - 42 / ( + 74 ) * - 32 * CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL ELSE + 73 / + 2 END ) AS col2
----
-53

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

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 41 * COUNT ( * ) + - 39 AS col2
----
-80

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

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

query I rowsort
SELECT - 12 + + + 3 AS col1
----
-9

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

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

query II rowsort
SELECT ALL 21, + ( ( - 65 ) ) AS col0
----
21
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL - + 46 + 89 * + + COUNT( DISTINCT 40 ) * - 24 + - 14 + CAST( NULL AS SIGNED ) + + - COUNT( 94 ) + 73 * 82 * 29 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - + 46 + 89 * + + COUNT ( DISTINCT 40 ) * - 24 + - 14 + CAST ( NULL AS INTEGER ) + + - COUNT ( 94 ) + 73 * 82 * 29 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT - + NULLIF ( COALESCE ( + ( - + NULLIF ( - COUNT( * ), ( + COUNT( + + CAST( + 65 AS SIGNED ) ) ) * 10 + 87 * - - COUNT( * ) + COUNT( * ) ) ), 77 ), + 52 ) + - - 13 * - 35 AS col2
----
-456

skipif mysql # not compatible
query I rowsort label-3637
SELECT - + NULLIF ( COALESCE ( + ( - + NULLIF ( - COUNT ( * ), ( + COUNT ( + + CAST ( + 65 AS INTEGER ) ) ) * 10 + 87 * - - COUNT ( * ) + COUNT ( * ) ) ), 77 ), + 52 ) + - - 13 * - 35 AS col2
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT - NULLIF ( + - 61, CASE + + 36 WHEN COUNT( * ) THEN - - 84 / - 76 ELSE - 90 * - 99 END ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3638
SELECT - NULLIF ( + - 61, CASE + + 36 WHEN COUNT ( * ) THEN - - 84 / - 76 ELSE - 90 * - 99 END ) AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL - CAST( NULL AS SIGNED ) + NULLIF ( + 73, - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL - CAST ( NULL AS INTEGER ) + NULLIF ( + 73, - 31 )
----
NULL

query I rowsort
SELECT + 66 + 74 AS col1
----
140

query I rowsort
SELECT - + 59 * + 25 AS col0
----
-1475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT + CAST( + - 24 AS SIGNED ) + 80 * 22 col2
----
1736

skipif mysql # not compatible
query I rowsort label-3642
SELECT + CAST ( + - 24 AS INTEGER ) + 80 * 22 col2
----
1736

query II rowsort
SELECT DISTINCT - 36 col1, - 56
----
-36
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT - 34 AS col2, COUNT( * ) col1
----
-34
1

skipif mysql # not compatible
query II rowsort label-3644
SELECT - 34 AS col2, COUNT ( * ) col1
----
-34
1

query I rowsort
SELECT + 93 + - 30 * + - 47 + - 63 AS col0
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - 32 + + 47 * COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 32 + + 47 * COUNT ( * ) AS col1
----
15

query I rowsort
SELECT + ( - 17 ) + - 16
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL 76 + + 50 + - 83 DIV + + 79 + + 53
----
178

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL 76 + + 50 + - 83 / + + 79 + + 53
----
178

query I rowsort
SELECT - 46 + + 62 + - 9 * + 64 + + 75 AS col2
----
-485

query I rowsort
SELECT + - 87 + + 15
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3651
SELECT DISTINCT + 77, - COALESCE ( CAST( NULL AS SIGNED ), - 43 ) - 21 * + 94 AS col0
----
77
-1931

skipif mysql # not compatible
query II rowsort label-3651
SELECT DISTINCT + 77, - COALESCE ( CAST ( NULL AS INTEGER ), - 43 ) - 21 * + 94 AS col0
----
77
-1931

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

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

query I rowsort
SELECT + 18 * + - 70
----
-1260

query I rowsort
SELECT - COALESCE ( + - 74, - 91 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT CAST( 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3655
SELECT CAST ( 98 AS INTEGER ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3656
SELECT + 2 * COUNT( * ) DIV + 37 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT + 2 * COUNT ( * ) / + 37 * - 25
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3657
SELECT ( - + COUNT( * ) ) AS col2, COALESCE ( + + 81, - COUNT( * ) + - 76 ) AS col2
----
-1
81

skipif mysql # not compatible
query II rowsort label-3657
SELECT ( - + COUNT ( * ) ) AS col2, COALESCE ( + + 81, - COUNT ( * ) + - 76 ) AS col2
----
-1
81

query II rowsort
SELECT ( + - 31 ) col2, 76 * + - 83 * - 85
----
-31
536180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT ALL + ( + COUNT( * ) ) DIV 67 - - 77 + - - 27 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + ( + COUNT ( * ) ) / 67 - - 77 + - - 27 AS col0
----
104

query I rowsort
SELECT 36 * - 89 + 32 * - + 9
----
-3492

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ( COUNT( DISTINCT + ( - 11 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT ( COUNT ( DISTINCT + ( - 11 ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3662
SELECT + ( - 42 ) AS col1, CASE - 5 WHEN + - COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN 97 THEN NULL END AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-3662
SELECT + ( - 42 ) AS col1, CASE - 5 WHEN + - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL END AS col1
----
-42
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL + 46 * - CAST( - CASE + SUM( 92 ) WHEN CAST( + MIN( 30 ) AS SIGNED ) THEN NULL WHEN + 87 THEN - NULLIF ( 80, - COUNT( * ) * + 71 + - 62 ) WHEN COUNT( * ) + - 67 * + 58 * COUNT( * ) THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL + 46 * - CAST ( - CASE + SUM ( 92 ) WHEN CAST ( + MIN ( 30 ) AS INTEGER ) THEN NULL WHEN + 87 THEN - NULLIF ( 80, - COUNT ( * ) * + 71 + - 62 ) WHEN COUNT ( * ) + - 67 * + 58 * COUNT ( * ) THEN NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3665
SELECT DISTINCT - 44 * - 68 + SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) + CAST( 15 AS SIGNED ) + - 67 + + 13 + 27 + 4 / + 94 * + - SUM( ALL - CAST( NULL AS SIGNED ) ) * - + MAX( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - 44 * - 68 + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) + CAST ( 15 AS INTEGER ) + - 67 + + 13 + 27 + 4 / + 94 * + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - + MAX ( + 4 )
----
NULL

query I rowsort
SELECT NULLIF ( - 90, + 64 * + ( - ( - + AVG ( ALL - 84 ) ) ) + 75 / + + 77 + + 48 ) AS col2
----
-90

query I rowsort
SELECT DISTINCT + 10 * 45 + + 73 + + 35 AS col1
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT - 63 * - CASE - COUNT( * ) WHEN + COALESCE ( + COALESCE ( 64, + 29 ), - + 66 ) THEN + 73 ELSE NULL END + - + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 63 * - CASE - COUNT ( * ) WHEN + COALESCE ( + COALESCE ( 64, + 29 ), - + 66 ) THEN + 73 ELSE NULL END + - + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - 97 * - CASE + - 50 WHEN - MAX( ALL 97 ) * - 36 + - - 46 THEN NULL WHEN + + 25 - + 36 + - 92 + + - 90 THEN NULL ELSE 11 END * - 31 - 10
----
-33087

skipif mysql # not compatible
query I rowsort label-3669
SELECT - 97 * - CASE + - 50 WHEN - MAX ( ALL 97 ) * - 36 + - - 46 THEN NULL WHEN + + 25 - + 36 + - 92 + + - 90 THEN NULL ELSE 11 END * - 31 - 10
----
-33087

query I rowsort
SELECT ALL 18 * - 53 + + 8 AS col1
----
-946

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3671
SELECT - + 22 DIV 21 DIV + MIN( 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3671
SELECT - + 22 / 21 / + MIN ( 42 ) AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT ALL + - 5 DIV 23 AS col0, - 31 DIV + 92 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL + - 5 / 23 AS col0, - 31 / + 92 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL + + 39 / - - COALESCE ( + 26, 98 ) * 60 + - + 11 * - CASE - 31 WHEN - 10 THEN - SUM( + 93 ) WHEN + 21 THEN + - 36 WHEN 98 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + + 39 / - - COALESCE ( + 26, 98 ) * 60 + - + 11 * - CASE - 31 WHEN - 10 THEN - SUM ( + 93 ) WHEN + 21 THEN + - 36 WHEN 98 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT + 9 - - + 92 * - MAX( ALL - 0 ) * - - 75 + 34 * - 63
----
-2133

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + 9 - - + 92 * - MAX ( ALL - 0 ) * - - 75 + 34 * - 63
----
-2133

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT ALL - + 63 * - 16 + ( + 21 ) DIV + + 39 AS col2
----
1008

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL - + 63 * - 16 + ( + 21 ) / + + 39 AS col2
----
1008

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

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

query I rowsort
SELECT + + 15 * 44 + - 19 AS col0
----
641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT 20 + - + 23 + + + 3 + + - 64 * + - NULLIF ( - - 68, + COUNT( * ) * 48 / 82 + 33 - 65 * AVG ( DISTINCT - CAST( 47 AS SIGNED ) ) ) + - 2 - + 23 * + CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT 20 + - + 23 + + + 3 + + - 64 * + - NULLIF ( - - 68, + COUNT ( * ) * 48 / 82 + 33 - 65 * AVG ( DISTINCT - CAST ( 47 AS INTEGER ) ) ) + - 2 - + 23 * + CAST ( NULL AS INTEGER ) * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT COUNT( * ) + + - 44 + 42 * 40 + 77 col0
----
1714

skipif mysql # not compatible
query I rowsort label-3680
SELECT COUNT ( * ) + + - 44 + 42 * 40 + 77 col0
----
1714

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

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

query I rowsort
SELECT 18 + - ( - 29 )
----
47

query II rowsort
SELECT DISTINCT 82 AS col1, 15 AS col0
----
82
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3685
SELECT ALL ( + 61 ) DIV MAX( DISTINCT + - 36 ) AS col1, - ( - 30 ) * + - ( - 67 ) + COALESCE ( - 54, + 38 ) + + 9 * 92 * + 2 AS col1
----
-1
3612

skipif mysql # not compatible
query II rowsort label-3685
SELECT ALL ( + 61 ) / MAX ( DISTINCT + - 36 ) AS col1, - ( - 30 ) * + - ( - 67 ) + COALESCE ( - 54, + 38 ) + + 9 * 92 * + 2 AS col1
----
-1
3612

query I rowsort
SELECT ( ( 76 ) ) * + 44 AS col1
----
3344

query II rowsort
SELECT + 44 AS col2, + 27 col0
----
44
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT - COUNT( - 86 ) * ( - 63 ) + + COUNT( * ) * COUNT( * ) + - 2 * + + 12, ( + 12 ) col0
----
40
12

skipif mysql # not compatible
query II rowsort label-3689
SELECT - COUNT ( - 86 ) * ( - 63 ) + + COUNT ( * ) * COUNT ( * ) + - 2 * + + 12, ( + 12 ) col0
----
40
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT + 10, COUNT( - CASE - - 98 WHEN 81 THEN 39 ELSE + 39 END ) * - 41 AS col2
----
10
-41

skipif mysql # not compatible
query II rowsort label-3690
SELECT + 10, COUNT ( - CASE - - 98 WHEN 81 THEN 39 ELSE + 39 END ) * - 41 AS col2
----
10
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3691
SELECT ALL 77 + + 48 + - + NULLIF ( + + 73, - NULLIF ( + ( COUNT( * ) ), 95 * + CAST( NULL AS SIGNED ) ) ) AS col2, + ( - COUNT( * ) ) + - ( - 71 ) * + 84 AS col2
----
52
5963

skipif mysql # not compatible
query II rowsort label-3691
SELECT ALL 77 + + 48 + - + NULLIF ( + + 73, - NULLIF ( + ( COUNT ( * ) ), 95 * + CAST ( NULL AS INTEGER ) ) ) AS col2, + ( - COUNT ( * ) ) + - ( - 71 ) * + 84 AS col2
----
52
5963

query II rowsort
SELECT DISTINCT - 91 AS col0, + 44 + - + 91
----
-91
-47

query II rowsort
SELECT ALL + 42 + 7 + - + 27 AS col1, 38 AS col1
----
22
38

query I rowsort
SELECT ( - 37 ) * 54 * + 27 col1
----
-53946

query I rowsort
SELECT 68 + 57 + + - 29 AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT ALL 23 DIV COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 23 / COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT + SUM( ALL + CAST( 35 AS SIGNED ) )
----
35

skipif mysql # not compatible
query I rowsort label-3697
SELECT + SUM ( ALL + CAST ( 35 AS INTEGER ) )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT 14 DIV 11 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3698
SELECT 14 / 11 AS col0
----
1

query II rowsort
SELECT + 46, + 75 + - + 29 - + 14 col1
----
46
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT 94 + + COUNT( * ) + 31 DIV 41 + - + 17 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3700
SELECT 94 + + COUNT ( * ) + 31 / 41 + - + 17 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL + + NULLIF ( + + COUNT( * ), ( 24 ) ) * - + NULLIF ( - CAST( - AVG ( DISTINCT - 25 ) AS SIGNED ), - - 67 * - ( + + 24 ) )
----
25

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + + NULLIF ( + + COUNT ( * ), ( 24 ) ) * - + NULLIF ( - CAST ( - AVG ( DISTINCT - 25 ) AS INTEGER ), - - 67 * - ( + + 24 ) )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3702
SELECT - COUNT( * ) + + 73 DIV 12 - + 11 col0
----
-6

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COUNT ( * ) + + 73 / 12 - + 11 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT DISTINCT + 38 - - CAST( 8 AS SIGNED ) - - 74 * + + 93 AS col2
----
6928

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + 38 - - CAST ( 8 AS INTEGER ) - - 74 * + + 93 AS col2
----
6928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3704
SELECT + + 5 * AVG ( DISTINCT + - 54 ) + + + 10 / - - CAST( NULL AS SIGNED ) / - AVG ( ALL - 22 ) + COUNT( * ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3704
SELECT + + 5 * AVG ( DISTINCT + - 54 ) + + + 10 / - - CAST ( NULL AS INTEGER ) / - AVG ( ALL - 22 ) + COUNT ( * ) AS col2, 60
----
NULL
60

query I rowsort
SELECT + 21 * - 81
----
-1701

query I rowsort
SELECT ALL ( + 9 ) AS col2
----
9

query I rowsort
SELECT DISTINCT + 97 - 85 - - 91 * - 82
----
-7450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT + CAST( 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-3708
SELECT + CAST ( 77 AS INTEGER )
----
77

query I rowsort
SELECT 32 + + 13 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL - CAST( NULL AS SIGNED ) * 79 * - 66 + - + MAX( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - CAST ( NULL AS INTEGER ) * 79 * - 66 + - + MAX ( - 89 )
----
NULL

query I rowsort
SELECT 34 * - 2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT 15 DIV - + 37 * + + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT 15 / - + 37 * + + 45 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3713
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 92 * NULLIF ( + 91, + 90 * 75 * + - 33 * COUNT( * ) ) * - 17 + + COUNT( ALL 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 92 * NULLIF ( + 91, + 90 * 75 * + - 33 * COUNT ( * ) ) * - 17 + + COUNT ( ALL 65 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3714
SELECT 5 DIV MIN( + - ( + 32 ) ) * 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT 5 / MIN ( + - ( + 32 ) ) * 36 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT 40 DIV 3 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3715
SELECT 40 / 3 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT - COUNT( * ) + 44 col0
----
43

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - COUNT ( * ) + 44 col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT CASE + 80 WHEN + 25 THEN 55 END * CAST( + 70 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT CASE + 80 WHEN + 25 THEN 55 END * CAST ( + 70 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3718
SELECT ALL - CAST( NULL AS DECIMAL ) + - 30 / + COUNT( * ) * + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - CAST ( NULL AS REAL ) + - 30 / + COUNT ( * ) * + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT DISTINCT COUNT( + 31 ) AS col2, 29 * 81
----
1
2349

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT COUNT ( + 31 ) AS col2, 29 * 81
----
1
2349

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT + ( 22 ) DIV 89 + + - 13 AS col0, + 91 * 57
----
-13
5187

skipif mysql # not compatible
query II rowsort label-3720
SELECT + ( 22 ) / 89 + + - 13 AS col0, + 91 * 57
----
-13
5187

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT 42 + 99 DIV + 17 + + 16 + + 49 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT 42 + 99 / + 17 + + 16 + + 49 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + COUNT( * ) + + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + COUNT ( * ) + + - 8
----
-7

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

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

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL 41 + - + COUNT ( * ) AS col1
----
40

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

skipif mysql # not compatible
query I rowsort label-3725
SELECT MAX ( ALL - 44 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3726
SELECT - 85 DIV - + 55 + - - COUNT( * ) + COUNT( * ) * - - 87 + - + 74 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3726
SELECT - 85 / - + 55 + - - COUNT ( * ) + COUNT ( * ) * - - 87 + - + 74 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT + - COALESCE ( + CAST( NULL AS SIGNED ), + 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3727
SELECT + - COALESCE ( + CAST ( NULL AS INTEGER ), + 78 ) AS col2
----
-78

query I rowsort
SELECT - 68 + + ( - + 85 )
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT DISTINCT - MIN( ALL - + 22 ) AS col0, - MIN( DISTINCT 9 )
----
22
-9

skipif mysql # not compatible
query II rowsort label-3729
SELECT DISTINCT - MIN ( ALL - + 22 ) AS col0, - MIN ( DISTINCT 9 )
----
22
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT ALL + + MIN( + ( + 82 ) ) - 79 AS col0, 15
----
3
15

skipif mysql # not compatible
query II rowsort label-3730
SELECT ALL + + MIN ( + ( + 82 ) ) - 79 AS col0, 15
----
3
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT + COALESCE ( + + CASE ( + 50 ) WHEN - + 2 THEN - 59 DIV - 2 END, + 9 + + 37 * 46 )
----
1711

skipif mysql # not compatible
query I rowsort label-3732
SELECT + COALESCE ( + + CASE ( + 50 ) WHEN - + 2 THEN - 59 / - 2 END, + 9 + + 37 * 46 )
----
1711

query I rowsort
SELECT - 1 - ( + 32 )
----
-33

query I rowsort
SELECT + 75 * + - 64 * - - 12 col0
----
-57600

query I rowsort
SELECT - 89 * + 42 * + - 84
----
313992

query I rowsort
SELECT + 56 - + 92
----
-36

query I rowsort
SELECT - CASE + 88 WHEN + + 55 THEN NULL ELSE 43 END AS col1
----
-43

query I rowsort
SELECT + 2 + - 97
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT - NULLIF ( - 61, - - 73 * MAX( - CAST( NULL AS SIGNED ) ) + + 36 + + 89 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3739
SELECT - NULLIF ( - 61, - - 73 * MAX ( - CAST ( NULL AS INTEGER ) ) + + 36 + + 89 ) AS col0
----
61

query I rowsort
SELECT + 96 + - + 75
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL COUNT( + + ( - + NULLIF ( + 58, 32 * + + 74 + 56 * 16 + + - COALESCE ( + - 65, + ( + 40 ) - + 0 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL COUNT ( + + ( - + NULLIF ( + 58, 32 * + + 74 + 56 * 16 + + - COALESCE ( + - 65, + ( + 40 ) - + 0 ) ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - 72 + + ( MAX( + - 52 ) )
----
-124

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 72 + + ( MAX ( + - 52 ) )
----
-124

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT ALL CAST( CASE - + 2 WHEN + 29 THEN COUNT( * ) * + 39 + + 29 WHEN - 4 THEN - ( - 34 ) * - + 35 * COUNT( * ) END AS SIGNED ) + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL CAST ( CASE - + 2 WHEN + 29 THEN COUNT ( * ) * + 39 + + 29 WHEN - 4 THEN - ( - 34 ) * - + 35 * COUNT ( * ) END AS INTEGER ) + + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT DISTINCT COUNT( * ) DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT COUNT ( * ) / - 46 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - COUNT( * ) * + + 82 * + 95 * + + 89 * + ( + 8 ) * - + 62 AS col2
----
343881760

skipif mysql # not compatible
query I rowsort label-3747
SELECT - COUNT ( * ) * + + 82 * + 95 * + + 89 * + ( + 8 ) * - + 62 AS col2
----
343881760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL + COALESCE ( CAST( + MAX( DISTINCT 76 ) AS SIGNED ), + COUNT( * ) - + 51 * + 74 ) * - 9
----
-684

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + COALESCE ( CAST ( + MAX ( DISTINCT 76 ) AS INTEGER ), + COUNT ( * ) - + 51 * + 74 ) * - 9
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT 87 * + + MIN( - 38 ) + - 86 col2
----
-3392

skipif mysql # not compatible
query I rowsort label-3749
SELECT 87 * + + MIN ( - 38 ) + - 86 col2
----
-3392

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL 99 * COUNT( * ) - 76 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL 99 * COUNT ( * ) - 76 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) * - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3751
SELECT - COUNT ( * ) * - 26 AS col1
----
26

query I rowsort
SELECT - 82 + - 69
----
-151

query I rowsort
SELECT - NULLIF ( - 39, - 98 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT + COALESCE ( - 65, - 24 + + 4 + + + 41 + 15 * 32 * 47 * + 92 ) * 89 + + MIN( + - 7 )
----
-5792

skipif mysql # not compatible
query I rowsort label-3754
SELECT + COALESCE ( - 65, - 24 + + 4 + + + 41 + 15 * 32 * 47 * + 92 ) * 89 + + MIN ( + - 7 )
----
-5792

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT + - COALESCE ( - + 4, - SUM( DISTINCT - - 75 ), - - 36, - MIN( DISTINCT + 83 ) ) col0
----
4

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT + - COALESCE ( - + 4, - SUM ( DISTINCT - - 75 ), - - 36, - MIN ( DISTINCT + 83 ) ) col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3757
SELECT + 3 * 87 - + 18 + 89 * + 94 + 27 - - 11 + 17 * - + 77 / - + 46 * - + COUNT( * ) * + NULLIF ( + CAST( NULL AS DECIMAL ), COUNT( * ) ) * - 68 + - 3 - - - ( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT + 3 * 87 - + 18 + 89 * + 94 + 27 - - 11 + 17 * - + 77 / - + 46 * - + COUNT ( * ) * + NULLIF ( + CAST ( NULL AS REAL ), COUNT ( * ) ) * - 68 + - 3 - - - ( + 1 ) AS col0
----
NULL

query I rowsort
SELECT - ( - - ( 52 ) )
----
-52

query II rowsort
SELECT DISTINCT + + 97, - 6 * 30 AS col0
----
97
-180

query I rowsort
SELECT - 76 * - + 35 + + - 68 AS col0
----
2592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3761
SELECT ALL - + 19 * - CAST( + 89 AS SIGNED ), - 24 * + 21 - + 97 col2
----
1691
-601

skipif mysql # not compatible
query II rowsort label-3761
SELECT ALL - + 19 * - CAST ( + 89 AS INTEGER ), - 24 * + 21 - + 97 col2
----
1691
-601

query II rowsort
SELECT + + 49 AS col1, + 8 * + 99 AS col2
----
49
792

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + + 2 - COUNT( * ) + - 4 + + 52 col1
----
49

skipif mysql # not compatible
query I rowsort label-3763
SELECT + + 2 - COUNT ( * ) + - 4 + + 52 col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 68 ) / - 95 + COALESCE ( + - ( + + 80 ), 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 68 ) / - 95 + COALESCE ( + - ( + + 80 ), 92 ) AS col2
----
NULL

query I rowsort
SELECT - + 33 + + + 2 AS col0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3766
SELECT ALL + ( - 89 ) * - AVG ( CASE 71 WHEN 50 THEN CAST( NULL AS DECIMAL ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + ( - 89 ) * - AVG ( CASE 71 WHEN 50 THEN CAST ( NULL AS REAL ) ELSE NULL END )
----
NULL

query I rowsort
SELECT + - 58 + + - 89 AS col1
----
-147

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

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

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

query I rowsort
SELECT DISTINCT - - 15 * - 70 AS col0
----
-1050

query I rowsort
SELECT + 48 + - + 3
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT DISTINCT 88 DIV - - MAX( + 12 )
----
7

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT 88 / - - MAX ( + 12 )
----
7

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

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 3 / - - 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + COUNT( * ) + - 0
----
1

skipif mysql # not compatible
query I rowsort label-3774
SELECT + COUNT ( * ) + - 0
----
1

query I rowsort
SELECT + 20 * - 45
----
-900

onlyif mysql # DIV for integer division: 
query II rowsort label-3776
SELECT 89 AS col1, 19 DIV + + 67 AS col1
----
89
0

skipif mysql # not compatible
query II rowsort label-3776
SELECT 89 AS col1, 19 / + + 67 AS col1
----
89
0

query I rowsort
SELECT + 85 + + 30 + - 22
----
93

query I rowsort
SELECT - NULLIF ( COALESCE ( + 92, ( + - 68 ) ), 11 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3779
SELECT 70 AS col1, ( 65 ) * + CAST( NULL AS SIGNED ) + - - 9 * + - 56 * - - 13 AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3779
SELECT 70 AS col1, ( 65 ) * + CAST ( NULL AS INTEGER ) + - - 9 * + - 56 * - - 13 AS col2
----
70
NULL

query II rowsort
SELECT DISTINCT 35 AS col1, + 81 + + 97
----
35
178

onlyif mysql # aggregate syntax: 
query II rowsort label-3781
SELECT + 49 * + COUNT( ALL - 28 ) * + 35 col1, ( + - 26 )
----
1715
-26

skipif mysql # not compatible
query II rowsort label-3781
SELECT + 49 * + COUNT ( ALL - 28 ) * + 35 col1, ( + - 26 )
----
1715
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 60 + - 48 + COUNT( * ) + 50 + - - 0
----
63

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 60 + - 48 + COUNT ( * ) + 50 + - - 0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT - CAST( + 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-3783
SELECT - CAST ( + 45 AS INTEGER )
----
-45

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

query II rowsort
SELECT 7, - ( + 71 ) AS col0
----
7
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL 1 - 55 + - - 28 + - COALESCE ( + 44, + - COUNT( * ) * + 27 + + 64 ) * + + 18
----
-818

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL 1 - 55 + - - 28 + - COALESCE ( + 44, + - COUNT ( * ) * + 27 + + 64 ) * + + 18
----
-818

query I rowsort
SELECT - ( 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3788
SELECT ALL + COUNT( * ) col2, 76 + - - CAST( 64 AS DECIMAL ) * + CAST( NULL AS SIGNED ) + + + 33 + - 26
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3788
SELECT ALL + COUNT ( * ) col2, 76 + - - CAST ( 64 AS REAL ) * + CAST ( NULL AS INTEGER ) + + + 33 + - 26
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT + 82 DIV + 73 + + NULLIF ( + COALESCE ( + 17, - SUM( DISTINCT - 25 ) * + COUNT( * ) DIV - 32 ), - COUNT( * ) DIV 10 + + - 31 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 82 / + 73 + + NULLIF ( + COALESCE ( + 17, - SUM ( DISTINCT - 25 ) * + COUNT ( * ) / - 32 ), - COUNT ( * ) / 10 + + - 31 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT ALL MAX( ALL - - 22 ) DIV - - 78 - 61
----
-61

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL MAX ( ALL - - 22 ) / - - 78 - 61
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT + 33, - COUNT( * ) + - 11 - + 56 AS col1
----
33
-68

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT + 33, - COUNT ( * ) + - 11 - + 56 AS col1
----
33
-68

query I rowsort
SELECT ALL + - 96 * - - 27 + + 0 + + 18 * 42
----
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL 64 / + - 0 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 64 / + - 0 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - - 84 * - COALESCE ( - NULLIF ( 56, - + COUNT( * ) + + - COUNT( * ) - - 47 ), + + 24 ) + + + 92 * - COUNT( * )
----
4612

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - - 84 * - COALESCE ( - NULLIF ( 56, - + COUNT ( * ) + + - COUNT ( * ) - - 47 ), + + 24 ) + + + 92 * - COUNT ( * )
----
4612

query I rowsort
SELECT + 75 * + 64 + + - 98 AS col2
----
4702

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - 88 DIV 27 * - 59 + - 82
----
95

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 88 / 27 * - 59 + - 82
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL - + 17 * SUM( 78 ) AS col1
----
-1326

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - + 17 * SUM ( 78 ) AS col1
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - 74 * - CASE 38 WHEN - 93 THEN + 76 WHEN + 14 THEN 76 + - COUNT( * ) + - - 69 WHEN + + 32 * - - 72 THEN COUNT( * ) * - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT - 74 * - CASE 38 WHEN - 93 THEN + 76 WHEN + 14 THEN 76 + - COUNT ( * ) + - - 69 WHEN + + 32 * - - 72 THEN COUNT ( * ) * - 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT MIN( 86 ) * + 24 AS col0
----
2064

skipif mysql # not compatible
query I rowsort label-3799
SELECT MIN ( 86 ) * + 24 AS col0
----
2064

query II rowsort
SELECT + + 77 * - 58 * + + COALESCE ( - 32, + 79 ) + + 11 AS col1, 69 AS col0
----
142923
69

query I rowsort
SELECT ALL - + ( - 24 ) * - + 7 AS col0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3802
SELECT DISTINCT - SUM( + + 83 ) AS col2, 44 DIV COUNT( * ) + - SUM( + 95 )
----
-83
-51

skipif mysql # not compatible
query II rowsort label-3802
SELECT DISTINCT - SUM ( + + 83 ) AS col2, 44 / COUNT ( * ) + - SUM ( + 95 )
----
-83
-51

query I rowsort
SELECT DISTINCT - - 89 col1
----
89

query I rowsort
SELECT ALL - - 12 + - 11 AS col1
----
1

query I rowsort
SELECT - 46 * 87 * - 58
----
232116

query I rowsort
SELECT ALL + - 0 + + 12 + + + COALESCE ( 93, - + 26, + - 98 * - 92 * + - 7 * - 32 )
----
105

query I rowsort
SELECT 97 - - 64 * 43 + + 15 + - + 43 * - + ( - + 36 ) + 98 * - 77 AS col1
----
-6230

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT 24 - 57 DIV - 46
----
25

skipif mysql # not compatible
query I rowsort label-3808
SELECT 24 - 57 / - 46
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT CASE + 35 WHEN - CAST( + + 58 AS SIGNED ) THEN - MIN( ALL ( + + 5 ) ) WHEN + + 62 * 21 - COALESCE ( COUNT( * ), - + 40, - - COALESCE ( + COUNT( + + ( + - 92 ) ), 89 ) * + - 37 ) * 45 - + 96 THEN + 59 END * - 59 / + - 61 * - - NULLIF ( 26, - - 76 / + - ( + 53 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT CASE + 35 WHEN - CAST ( + + 58 AS INTEGER ) THEN - MIN ( ALL ( + + 5 ) ) WHEN + + 62 * 21 - COALESCE ( COUNT ( * ), - + 40, - - COALESCE ( + COUNT ( + + ( + - 92 ) ), 89 ) * + - 37 ) * 45 - + 96 THEN + 59 END * - 59 / + - 61 * - - NULLIF ( 26, - - 76 / + - ( + 53 ) ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT COALESCE ( - - 54, + + 66 ) * + 74 * ( 1 ) + + 56 + - ( COUNT( DISTINCT 67 ) )
----
4051

skipif mysql # not compatible
query I rowsort label-3811
SELECT COALESCE ( - - 54, + + 66 ) * + 74 * ( 1 ) + + 56 + - ( COUNT ( DISTINCT 67 ) )
----
4051

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

skipif mysql # not compatible
query I rowsort label-3812
SELECT 59 - 16 * + COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT COUNT( * ) + 77 AS col0, 3 + + - 4 * - COALESCE ( + COUNT( * ), - 78 )
----
78
7

skipif mysql # not compatible
query II rowsort label-3813
SELECT COUNT ( * ) + 77 AS col0, 3 + + - 4 * - COALESCE ( + COUNT ( * ), - 78 )
----
78
7

onlyif mysql # DIV for integer division: 
query II rowsort label-3814
SELECT ( + 84 ) DIV - 14 AS col0, 27 + + 74 + 95
----
-6
196

skipif mysql # not compatible
query II rowsort label-3814
SELECT ( + 84 ) / - 14 AS col0, 27 + + 74 + 95
----
-6
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT COUNT( * ) * 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-3815
SELECT COUNT ( * ) * 68 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT 49 * CASE + COUNT( * ) WHEN + - 1 THEN NULL WHEN - 70 THEN + 25 / - 53 END * + + 85 + - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT 49 * CASE + COUNT ( * ) WHEN + - 1 THEN NULL WHEN - 70 THEN + 25 / - 53 END * + + 85 + - 6 AS col1
----
NULL

query II rowsort
SELECT 87 * + + 52 AS col2, + 1 * - - 82 + - + 17 - 22 AS col0
----
4524
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT 58 + - + MIN( - 41 )
----
99

skipif mysql # not compatible
query I rowsort label-3818
SELECT 58 + - + MIN ( - 41 )
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3819
SELECT 94 DIV + - CAST( - 55 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3819
SELECT 94 / + - CAST ( - 55 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT SUM( ALL + - 71 ) * + ( COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-3820
SELECT SUM ( ALL + - 71 ) * + ( COUNT ( * ) )
----
-71

query I rowsort
SELECT 77 + + 3 * + 4 * + - 76 + + - 99 AS col0
----
-934

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

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT COUNT ( * ) * + + MAX ( + ( - 9 ) ) col1
----
-9

query II rowsort
SELECT ALL 52 * + 74 + - 9, - 79 AS col0
----
3839
-79

query I rowsort
SELECT 6 + - 84 * - 8 + + 72 AS col2
----
750

query I rowsort
SELECT DISTINCT - ( + 87 ) * - - 65 - - 6
----
-5649

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT ALL - SUM( DISTINCT + 55 ), + 3 + - SUM( DISTINCT 88 ) * + COUNT( * ) AS col1
----
-55
-85

skipif mysql # not compatible
query II rowsort label-3826
SELECT ALL - SUM ( DISTINCT + 55 ), + 3 + - SUM ( DISTINCT 88 ) * + COUNT ( * ) AS col1
----
-55
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT + CASE 56 WHEN + + 39 * + - ( - 61 ) + - 25 / 20 THEN + 98 * - 12 WHEN COALESCE ( + - MIN( DISTINCT + + CAST( + ( 23 ) AS SIGNED ) ), 5 ) * + 83 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT + CASE 56 WHEN + + 39 * + - ( - 61 ) + - 25 / 20 THEN + 98 * - 12 WHEN COALESCE ( + - MIN ( DISTINCT + + CAST ( + ( 23 ) AS INTEGER ) ), 5 ) * + 83 THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT + CASE + 94 WHEN 59 THEN + AVG ( + + 51 ) WHEN - NULLIF ( + 97, + 84 ) / - - 72 * - 72 + + ( + - 42 ) + 15 THEN + 81 + - NULLIF ( + 72, + 14 ) + 48 * COUNT( * ) * AVG ( + 75 ) * - 50 * - + 25 / - 95 * - 29 ELSE 25 + + + 61 END AS col1, + 43 + + - 29
----
86
14

skipif mysql # not compatible
query II rowsort label-3829
SELECT + CASE + 94 WHEN 59 THEN + AVG ( + + 51 ) WHEN - NULLIF ( + 97, + 84 ) / - - 72 * - 72 + + ( + - 42 ) + 15 THEN + 81 + - NULLIF ( + 72, + 14 ) + 48 * COUNT ( * ) * AVG ( + 75 ) * - 50 * - + 25 / - 95 * - 29 ELSE 25 + + + 61 END AS col1, + 43 + + - 29
----
86
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT - 94 DIV - 24
----
3

skipif mysql # not compatible
query I rowsort label-3830
SELECT - 94 / - 24
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT DISTINCT + 89 * COUNT( * ) AS col2, + 11 AS col0
----
89
11

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT + 89 * COUNT ( * ) AS col2, + 11 AS col0
----
89
11

query I rowsort
SELECT DISTINCT 82 + - 95 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + COUNT( * ) + - - COUNT( * ) + - - 91 * + + 28 + + 25
----
2575

skipif mysql # not compatible
query I rowsort label-3833
SELECT + COUNT ( * ) + - - COUNT ( * ) + - - 91 * + + 28 + + 25
----
2575

query I rowsort
SELECT ALL - 45 + - 28 + + - COALESCE ( - 70, 97 )
----
-3

query I rowsort
SELECT ALL - - 4 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + COUNT( * ) * + - 84 + + 68 - - + 5 + NULLIF ( + 45, - COUNT( * ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3836
SELECT + COUNT ( * ) * + - 84 + + 68 - - + 5 + NULLIF ( + 45, - COUNT ( * ) ) AS col0
----
34

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

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

query I rowsort
SELECT ALL - + 27 col1
----
-27

query I rowsort
SELECT 55 - 41 * - - 39
----
-1544

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT 33 + - 41 DIV - 94 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3840
SELECT 33 + - 41 / - 94 AS col0
----
33

query I rowsort
SELECT ALL + 18 + 13 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT ALL - 78 AS col0, 6 * - - 66 * COUNT( * )
----
-78
396

skipif mysql # not compatible
query II rowsort label-3842
SELECT ALL - 78 AS col0, 6 * - - 66 * COUNT ( * )
----
-78
396

query II rowsort
SELECT 22, - 33 col1
----
22
-33

query II rowsort
SELECT - 79 AS col0, 74 AS col0
----
-79
74

query II rowsort
SELECT ALL 80 AS col0, + 89 * - + ( + - 27 ) * + 44
----
80
105732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT - CAST( - AVG ( + - NULLIF ( - + 10, 66 ) ) AS SIGNED ) - CAST( 35 AS SIGNED ) * + 37
----
-1285

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - CAST ( - AVG ( + - NULLIF ( - + 10, 66 ) ) AS INTEGER ) - CAST ( 35 AS INTEGER ) * + 37
----
-1285

query I rowsort
SELECT 68 + + 3 AS col0
----
71

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

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

query I rowsort
SELECT DISTINCT + 83 * + 66 * + 93
----
509454

query II rowsort
SELECT - 48 col0, + 50 col0
----
-48
50

query I rowsort
SELECT ALL 71 * - ( + 34 )
----
-2414

query I rowsort
SELECT 74 * - NULLIF ( + 64, - 83 * 81 + + 6 ) * - 50 AS col2
----
236800

query I rowsort
SELECT DISTINCT - 83 * + + 32
----
-2656

query I rowsort
SELECT DISTINCT 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT MAX( ALL + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT MAX ( ALL + + 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT ALL NULLIF ( 86, - 70 * + 67 + - + ( + + NULLIF ( - + CAST( - - ( 4 ) AS SIGNED ), + ( - SUM( - - 66 ) ) * 74 + - 53 + COUNT( * ) - - 82 + - + ( 79 ) + - - 21 ) ) * 54 * + 60 )
----
86

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL NULLIF ( 86, - 70 * + 67 + - + ( + + NULLIF ( - + CAST ( - - ( 4 ) AS INTEGER ), + ( - SUM ( - - 66 ) ) * 74 + - 53 + COUNT ( * ) - - 82 + - + ( 79 ) + - - 21 ) ) * 54 * + 60 )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT 27 AS col1, - ( + 85 ) * - COUNT( * ) * + + MIN( ALL - - 2 ) AS col1
----
27
170

skipif mysql # not compatible
query II rowsort label-3857
SELECT 27 AS col1, - ( + 85 ) * - COUNT ( * ) * + + MIN ( ALL - - 2 ) AS col1
----
27
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + 29 * - NULLIF ( + COUNT( * ), 26 ) + + 69 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 29 * - NULLIF ( + COUNT ( * ), 26 ) + + 69 AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3859
SELECT + + 23 * 45 - - 43 AS col0, + COUNT( * ) * - + 70 * + + MIN( + 23 ) * - + 30
----
1078
48300

skipif mysql # not compatible
query II rowsort label-3859
SELECT + + 23 * 45 - - 43 AS col0, + COUNT ( * ) * - + 70 * + + MIN ( + 23 ) * - + 30
----
1078
48300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT - + CAST( 45 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3860
SELECT - + CAST ( 45 AS INTEGER ) AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT ALL - COALESCE ( - 98, + 24 * + 2 DIV NULLIF ( - 22, + COUNT( * ) ) ) + + + 8 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - COALESCE ( - 98, + 24 * + 2 / NULLIF ( - 22, + COUNT ( * ) ) ) + + + 8 AS col2
----
106

query I rowsort
SELECT - - 37 - - + 26 - - - NULLIF ( - 89, + 40 ) * 21 + 95 AS col0
----
2027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3863
SELECT + SUM( DISTINCT CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT + SUM ( DISTINCT CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) ) * - 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 44 col2
----
44

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

skipif mysql # not compatible
query II rowsort label-3865
SELECT COUNT ( * ) AS col2, 35 AS col2
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL + 69 * + COALESCE ( - 76, - 54 * 45 ) + - 99 * + COUNT( * )
----
-5343

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL + 69 * + COALESCE ( - 76, - 54 * 45 ) + - 99 * + COUNT ( * )
----
-5343

query I rowsort
SELECT DISTINCT + - 86 * 63 + 31 AS col1
----
-5387

query I rowsort
SELECT + + 21 * + + 83
----
1743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT ALL + COALESCE ( 2, + + 18 * SUM( + 87 ), MIN( 44 ) ) * - 3 DIV - 16 * + + 17 * - - ( + - 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + COALESCE ( 2, + + 18 * SUM ( + 87 ), MIN ( 44 ) ) * - 3 / - 16 * + + 17 * - - ( + - 94 ) AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3871
SELECT + 67 * - + 32 + + + NULLIF ( 84, + 1 * 20 + 9 ) + + + CAST( NULL AS SIGNED ), ( 25 ) + - 16 - + + 33 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-3871
SELECT + 67 * - + 32 + + + NULLIF ( 84, + 1 * 20 + 9 ) + + + CAST ( NULL AS INTEGER ), ( 25 ) + - 16 - + + 33 AS col1
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT + CASE - - AVG ( DISTINCT - ( + 68 ) ) WHEN - 65 * - + 67 THEN NULL ELSE - + 45 + + + 91 END * - 68 * - COUNT( * ) - - ( + 59 ) - - - 19
----
3168

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + CASE - - AVG ( DISTINCT - ( + 68 ) ) WHEN - 65 * - + 67 THEN NULL ELSE - + 45 + + + 91 END * - 68 * - COUNT ( * ) - - ( + 59 ) - - - 19
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT - 55 * + - 31 * + COALESCE ( + 95, - 26, CAST( - 88 AS SIGNED ) ) AS col2
----
161975

skipif mysql # not compatible
query I rowsort label-3873
SELECT - 55 * + - 31 * + COALESCE ( + 95, - 26, CAST ( - 88 AS INTEGER ) ) AS col2
----
161975

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT DISTINCT + + 60 AS col1, + MAX( - - 92 )
----
60
92

skipif mysql # not compatible
query II rowsort label-3874
SELECT DISTINCT + + 60 AS col1, + MAX ( - - 92 )
----
60
92

query I rowsort
SELECT ALL 32 * + + 59 - + 15 - ( - 38 )
----
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT - 2 * - 87 * + - 16 * CAST( NULL AS SIGNED ) - + CASE 0 WHEN - 39 - + 32 THEN NULL ELSE 92 + - + COALESCE ( 36, + 24 + + - 25 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * + - 56 * 74 * - + 21 / + 30 * - COUNT( * ) / ( + 85 ) + 6 ) END + - - ( + 41 ) * + ( 75 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - 2 * - 87 * + - 16 * CAST ( NULL AS INTEGER ) - + CASE 0 WHEN - 39 - + 32 THEN NULL ELSE 92 + - + COALESCE ( 36, + 24 + + - 25 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + - 56 * 74 * - + 21 / + 30 * - COUNT ( * ) / ( + 85 ) + 6 ) END + - - ( + 41 ) * + ( 75 ) col0
----
NULL

query I rowsort
SELECT ALL - 59 * - 76 * + - 74 AS col0
----
-331816

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT ALL 49 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL 49 / + 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT + 90 * 49 DIV + 16 col1
----
275

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 90 * 49 / + 16 col1
----
275

query I rowsort
SELECT - 96 * + + 79
----
-7584

query II rowsort
SELECT + 7 - - 28, 25 * - 33 AS col0
----
35
-825

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3882
SELECT - COUNT( * ) DIV - 8 AS col2, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-3882
SELECT - COUNT ( * ) / - 8 AS col2, 73
----
0
73

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

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + 96 * - COUNT ( 91 ) AS col2
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-3884
SELECT - COALESCE ( + 39, - 43 ) DIV - 79, + 20 + - 2 AS col1
----
0
18

skipif mysql # not compatible
query II rowsort label-3884
SELECT - COALESCE ( + 39, - 43 ) / - 79, + 20 + - 2 AS col1
----
0
18

query I rowsort
SELECT DISTINCT 7 * 45 * - + NULLIF ( 91, + 12 )
----
-28665

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL NULLIF ( + - MIN( DISTINCT 45 ), + 71 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL NULLIF ( + - MIN ( DISTINCT 45 ), + 71 ) AS col2
----
-45

query I rowsort
SELECT ALL 42 * + + 25 col1
----
1050

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT - COALESCE ( + + COUNT( * ), 33 * - MAX( + 33 ) + - 94 ) - - 71 AS col1, 41 + COUNT( * ) + - ( ( - 26 ) ) * + 24
----
70
666

skipif mysql # not compatible
query II rowsort label-3889
SELECT - COALESCE ( + + COUNT ( * ), 33 * - MAX ( + 33 ) + - 94 ) - - 71 AS col1, 41 + COUNT ( * ) + - ( ( - 26 ) ) * + 24
----
70
666

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3890
SELECT ALL CASE + 83 WHEN - - 36 THEN - ( + 76 ) + 61 WHEN - + ( + 99 ) THEN + - CAST( + - COALESCE ( + + 13, - 32 + + + COALESCE ( - 81, - - 69, + + 47 ) ) AS DECIMAL ) - SUM( DISTINCT + - 36 ) * + 93 - ( + 61 ) WHEN 83 THEN NULL WHEN - 87 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL CASE + 83 WHEN - - 36 THEN - ( + 76 ) + 61 WHEN - + ( + 99 ) THEN + - CAST ( + - COALESCE ( + + 13, - 32 + + + COALESCE ( - 81, - - 69, + + 47 ) ) AS REAL ) - SUM ( DISTINCT + - 36 ) * + 93 - ( + 61 ) WHEN 83 THEN NULL WHEN - 87 THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), - - 43, 19 + - + COUNT( * ) ) * 28 * + 93 - + 19 + CAST( NULL AS SIGNED ) / - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), - - 43, 19 + - + COUNT ( * ) ) * 28 * + 93 - + 19 + CAST ( NULL AS INTEGER ) / - - 16
----
NULL

query I rowsort
SELECT NULLIF ( + + 91, 91 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT - - 49 DIV - 32 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3894
SELECT - - 49 / - 32 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 44 + + 34 * - - 59
----
1962

query I rowsort
SELECT - - COALESCE ( + + 6, 82 * + 6 - + + 4, + 59 ) AS col1
----
6

query I rowsort
SELECT ALL + + 81 + + 3 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL - 11 + + SUM( ALL - 22 )
----
-33

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 11 + + SUM ( ALL - 22 )
----
-33

query I rowsort
SELECT ALL + 31 + + 18 AS col2
----
49

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

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

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

query I rowsort
SELECT 50 * 33 + + 75 - - + 87 * - 76 * 86 * + NULLIF ( - + 47, + 0 )
----
26727429

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + - MAX( DISTINCT + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + - MAX ( DISTINCT + 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - - COUNT( * ) + - ( + 67 ) + + + 22 + - 73 + - ( 36 ) * ( + + 23 ) AS col2
----
-945

skipif mysql # not compatible
query I rowsort label-3904
SELECT - - COUNT ( * ) + - ( + 67 ) + + + 22 + - 73 + - ( 36 ) * ( + + 23 ) AS col2
----
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT - COUNT( + 44 ) / - - 28 + - 18 + + 15 + + - CAST( NULL AS SIGNED ) * + + ( + 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT - COUNT ( + 44 ) / - - 28 + - 18 + + 15 + + - CAST ( NULL AS INTEGER ) * + + ( + 13 ) AS col0
----
NULL

query I rowsort
SELECT + 39 * - 53
----
-2067

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3907
SELECT ALL + - COUNT( * ) / + - CAST( NULL AS DECIMAL ) AS col0, 42 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-3907
SELECT ALL + - COUNT ( * ) / + - CAST ( NULL AS REAL ) AS col0, 42 AS col0
----
NULL
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + COUNT( * ) * CASE + 75 WHEN + 74 - NULLIF ( - 13, + 14 ) THEN NULL ELSE ( + COUNT( * ) ) END - - 10
----
11

skipif mysql # not compatible
query I rowsort label-3909
SELECT + COUNT ( * ) * CASE + 75 WHEN + 74 - NULLIF ( - 13, + 14 ) THEN NULL ELSE ( + COUNT ( * ) ) END - - 10
----
11

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

query I rowsort
SELECT + 20 + + + ( + + ( + 81 ) ) AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT + CASE - CASE + ( COALESCE ( NULLIF ( - COUNT( * ), + NULLIF ( - 9, + COUNT( * ) * - 25 * - - 92 ) ), - 54 * + - COUNT( * ), + 56 + - 55 ) ) WHEN + 48 THEN + + MAX( + - 13 ) END WHEN COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE 17 END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3912
SELECT + CASE - CASE + ( COALESCE ( NULLIF ( - COUNT ( * ), + NULLIF ( - 9, + COUNT ( * ) * - 25 * - - 92 ) ), - 54 * + - COUNT ( * ), + 56 + - 55 ) ) WHEN + 48 THEN + + MAX ( + - 13 ) END WHEN COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE 17 END AS col1
----
17

query I rowsort
SELECT ( 84 ) AS col2
----
84

query I rowsort
SELECT - 48 * + 31 + - 41
----
-1529

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + 66 * + NULLIF ( - - COUNT( * ), + 6 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3915
SELECT + 66 * + NULLIF ( - - COUNT ( * ), + 6 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT COALESCE ( + + 96, - + COUNT( * ) + - SUM( DISTINCT + 36 ) ) * + CAST( - COUNT( * ) AS SIGNED ) + - - 97
----
1

skipif mysql # not compatible
query I rowsort label-3916
SELECT COALESCE ( + + 96, - + COUNT ( * ) + - SUM ( DISTINCT + 36 ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) + - - 97
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT + COUNT( * ) * MAX( DISTINCT + 68 ), + COALESCE ( 41, 1 + + + 73 * + 50, - 44 ) AS col0
----
68
41

skipif mysql # not compatible
query II rowsort label-3917
SELECT + COUNT ( * ) * MAX ( DISTINCT + 68 ), + COALESCE ( 41, 1 + + + 73 * + 50, - 44 ) AS col0
----
68
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL 79 * + 89 + + COUNT( * ) + + - COUNT( * ) + + 16
----
7047

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL 79 * + 89 + + COUNT ( * ) + + - COUNT ( * ) + + 16
----
7047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT - CAST( - SUM( - + 47 ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-3919
SELECT - CAST ( - SUM ( - + 47 ) AS INTEGER )
----
-47

query I rowsort
SELECT 29 * 36 + - 98 + 68 AS col2
----
1014

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL 94 DIV + 5 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 94 / + 5 AS col1
----
18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT - 6 + NULLIF ( + + COUNT( * ), + 19 * - + 19 ) + + + 95 AS col0, 92 * - 0
----
90
0

skipif mysql # not compatible
query II rowsort label-3923
SELECT - 6 + NULLIF ( + + COUNT ( * ), + 19 * - + 19 ) + + + 95 AS col0, 92 * - 0
----
90
0

query I rowsort
SELECT 77 * - + 76
----
-5852

query I rowsort
SELECT 12 + + 31
----
43

query I rowsort
SELECT ALL 88 + - 48 col0
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-3927
SELECT - 12 AS col1, + 22 * - 11 + + + 24 + - 23 DIV 49 + - ( + 64 ) DIV - - 1
----
-12
-282

skipif mysql # not compatible
query II rowsort label-3927
SELECT - 12 AS col1, + 22 * - 11 + + + 24 + - 23 / 49 + - ( + 64 ) / - - 1
----
-12
-282

query I rowsort
SELECT ( 62 ) * - ( 63 - - 29 ) AS col2
----
-5704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT 28 + + CAST( ( - COUNT( * ) ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-3929
SELECT 28 + + CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
27

query I rowsort
SELECT ALL 68 col2
----
68

query I rowsort
SELECT DISTINCT 93 + - 29
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL 52 + 96 * + COALESCE ( + 55, MIN( 47 ) ) AS col1
----
5332

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL 52 + 96 * + COALESCE ( + 55, MIN ( 47 ) ) AS col1
----
5332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT DISTINCT - ( - COUNT( * ) ) + + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

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

query I rowsort
SELECT DISTINCT 87 + + 16 AS col2
----
103

query I rowsort
SELECT ALL - 3 + - COALESCE ( + ( ( 59 ) ) + 56, 29 + 77 )
----
-118

query I rowsort
SELECT 28 * 29
----
812

query I rowsort
SELECT 34 + 83
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT - 22 + 32 * - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT - 22 + 32 * - COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT ALL - ( + ( + 77 ) ) - + 47
----
-124

query I rowsort
SELECT 18 * + 86
----
1548

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

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

query I rowsort
SELECT 27 - - 19 AS col1
----
46

query I rowsort
SELECT ALL + 4 - ( CASE + 42 WHEN + 17 THEN NULL WHEN COALESCE ( + 37, - 73 ) / 89 THEN NULL ELSE 76 * + 43 + - ( + 78 ) END ) * + 10
----
-31896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT 43 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT 43 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 82 ) * 51 AS col2
----
4182

query I rowsort
SELECT 59 + ( + 21 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT 62 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT 62 / 87
----
0

query I rowsort
SELECT 33 * 9 AS col2
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT + 44 * 61 + + COUNT( * ) * - 86
----
2598

skipif mysql # not compatible
query I rowsort label-3949
SELECT + 44 * 61 + + COUNT ( * ) * - 86
----
2598

query I rowsort
SELECT ALL - NULLIF ( + 26, 91 ) AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT 52 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT 52 / - 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT 58 * + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3952
SELECT 58 * + COUNT ( * ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT DISTINCT 96 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT 96 / 99
----
0

query I rowsort
SELECT DISTINCT - ( + NULLIF ( - 6, COALESCE ( 4, 74 - 77 / 7, 27 ) ) ) AS col0
----
6

query I rowsort
SELECT ALL - 97 + 94 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT DISTINCT + 42 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT + 42 / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT CASE 8 WHEN COUNT( * ) + + 6 THEN + CASE 24 WHEN COUNT( * ) * COUNT( * ) + 78 THEN - 72 END * 99 END / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT CASE 8 WHEN COUNT ( * ) + + 6 THEN + CASE 24 WHEN COUNT ( * ) * COUNT ( * ) + 78 THEN - 72 END * 99 END / - 98
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 36, - 93 ) + + 9 AS col0
----
-27

query I rowsort
SELECT ALL - 70 + + 58 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT ( - MIN( 59 ) ) + - 7
----
-66

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT ( - MIN ( 59 ) ) + - 7
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT 53 + 14 * ( - MAX( + 40 ) * 67 )
----
-37467

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT 53 + 14 * ( - MAX ( + 40 ) * 67 )
----
-37467

query I rowsort
SELECT ALL 12 + 79 * ( - 35 * 48 + 44 * 83 ) AS col0
----
155800

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

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

query I rowsort
SELECT ALL 88 + 5
----
93

query I rowsort
SELECT 93 - - 24
----
117

query I rowsort
SELECT ALL + 35 + 18 * CASE - 57 WHEN ( 10 ) THEN 54 WHEN + 50 THEN + 21 + 93 * + 87 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT CASE - 38 WHEN 91 * - ( - COUNT( * ) ) - 53 * 89 THEN + 87 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT CASE - 38 WHEN 91 * - ( - COUNT ( * ) ) - 53 * 89 THEN + 87 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT DISTINCT 71 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT 71 / 74
----
0

query I rowsort
SELECT ALL 75 + - 10
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT MIN( ALL + 6 ) - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3970
SELECT MIN ( ALL + 6 ) - COUNT ( * ) AS col0
----
5

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

skipif mysql # not compatible
query I rowsort label-3971
SELECT + 98 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 78 + + 68
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT - 72 - CAST( + 47 AS SIGNED )
----
-119

skipif mysql # not compatible
query I rowsort label-3973
SELECT - 72 - CAST ( + 47 AS INTEGER )
----
-119

query I rowsort
SELECT ALL - 3 - - 3 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT - CASE - 50 WHEN + MIN( DISTINCT 35 ) * 76 THEN - 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT - CASE - 50 WHEN + MIN ( DISTINCT 35 ) * 76 THEN - 88 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - - COUNT( - 17 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3977
SELECT - - COUNT ( - 17 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT ALL + 28 * - COALESCE ( 16, 52 DIV - 58 )
----
-448

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + 28 * - COALESCE ( 16, 52 / - 58 )
----
-448

query I rowsort
SELECT + 94 * 68 col0
----
6392

query I rowsort
SELECT + 38 + + 22
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3981
SELECT ALL - + COUNT( * ) * + NULLIF ( COUNT( * ) DIV COUNT( * ), 59 + - CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - + COUNT ( * ) * + NULLIF ( COUNT ( * ) / COUNT ( * ), 59 + - CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT 47 + - 88 * + 84 AS col0
----
-7345

query I rowsort
SELECT ALL - 68 * - ( NULLIF ( 47, 0 - + 61 * 64 ) * 75 + - 82 ) col2
----
234124

query I rowsort
SELECT DISTINCT - 9 * + 39
----
-351

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

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - + 26 / - COUNT ( DISTINCT 46 ) AS col0
----
26

query I rowsort
SELECT 24 * + NULLIF ( 97, - 59 ) AS col2
----
2328

query I rowsort
SELECT ALL 44 * - 98
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - CASE + 53 WHEN 98 THEN COALESCE ( 79, + 44 * COUNT( * ) ) * - 77 WHEN - 10 THEN NULL ELSE 95 END AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3988
SELECT - CASE + 53 WHEN 98 THEN COALESCE ( 79, + 44 * COUNT ( * ) ) * - 77 WHEN - 10 THEN NULL ELSE 95 END AS col0
----
-95

query I rowsort
SELECT + 79 * + 34 + + 71
----
2757

query I rowsort
SELECT 3 * 62
----
186

query I rowsort
SELECT 78 * - 19
----
-1482

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT - 3 DIV + 36 + 69 * 55 col2
----
3795

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 3 / + 36 + 69 * 55 col2
----
3795

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

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

query I rowsort
SELECT 58 + + + ( - NULLIF ( + 11, + 79 ) ) * + 4
----
14

query I rowsort
SELECT ALL + 37 * - 51
----
-1887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT 68 + + CAST( ( 52 ) AS SIGNED ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-3996
SELECT 68 + + CAST ( ( 52 ) AS INTEGER ) AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL COALESCE ( + - 94, - 83, + COUNT( * ) * 87 ) * 15 + - COALESCE ( + ( + 20 ) + CASE - ( - 86 ) - + 3 * + 36 WHEN + 37 / 16 - - 90 THEN NULL WHEN 44 * + 71 THEN 17 WHEN 82 * 89 THEN 88 - - 66 ELSE + NULLIF ( COALESCE ( + 93, + MIN( + 23 ), - ( + CAST( + 24 AS SIGNED ) ) * - 56 ), 23 ) + 29 END, + 76 * 84 + 4 ) AS col2
----
-1552

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COALESCE ( + - 94, - 83, + COUNT ( * ) * 87 ) * 15 + - COALESCE ( + ( + 20 ) + CASE - ( - 86 ) - + 3 * + 36 WHEN + 37 / 16 - - 90 THEN NULL WHEN 44 * + 71 THEN 17 WHEN 82 * 89 THEN 88 - - 66 ELSE + NULLIF ( COALESCE ( + 93, + MIN ( + 23 ), - ( + CAST ( + 24 AS INTEGER ) ) * - 56 ), 23 ) + 29 END, + 76 * 84 + 4 ) AS col2
----
-1552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL COUNT( * ) * 44 * + 92 + 71 * - 82
----
-1774

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL COUNT ( * ) * 44 * + 92 + 71 * - 82
----
-1774

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT COALESCE ( + COUNT( * ), 33 * + 46, + 39 - - 53, COUNT( * ) ) * + 19 - 68 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4000
SELECT COALESCE ( + COUNT ( * ), 33 * + 46, + 39 - - 53, COUNT ( * ) ) * + 19 - 68 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT 14 * - MAX( ALL 32 ) + 55 * - 14
----
-1218

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT 14 * - MAX ( ALL 32 ) + 55 * - 14
----
-1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL 83 * AVG ( + 42 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL 83 * AVG ( + 42 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - COUNT( * ) + + 2 col1
----
1

skipif mysql # not compatible
query I rowsort label-4003
SELECT - COUNT ( * ) + + 2 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + ( + - 56 ) * + 70 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + ( + - 56 ) * + 70 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + 0 * 2 * - MIN( - 76 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT + 0 * 2 * - MIN ( - 76 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + MAX( DISTINCT + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4006
SELECT + MAX ( DISTINCT + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + CASE - + 53 WHEN + COALESCE ( + 98, - 81 + ( 12 + 46 * - 54 ) ) + + 92 / NULLIF ( 47, + COUNT( * ) / - 61 ) THEN NULL WHEN - 12 THEN ( COALESCE ( 12, 94, - ( CASE 50 WHEN 55 + - 87 THEN NULL ELSE 61 + - 19 END ) ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + CASE - + 53 WHEN + COALESCE ( + 98, - 81 + ( 12 + 46 * - 54 ) ) + + 92 / NULLIF ( 47, + COUNT ( * ) / - 61 ) THEN NULL WHEN - 12 THEN ( COALESCE ( 12, 94, - ( CASE 50 WHEN 55 + - 87 THEN NULL ELSE 61 + - 19 END ) ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4008
SELECT - CASE + - 88 WHEN COUNT( ALL + 14 ) THEN NULL WHEN 0 THEN + NULLIF ( - NULLIF ( COUNT( * ), 52 ), - COUNT( * ) ) / + 71 WHEN - ( 86 ) THEN 53 WHEN 13 THEN - AVG ( ALL 9 ) / - CAST( + 99 * + 25 - - 20 * 84 AS SIGNED ) - + 72 ELSE NULL END + CAST( - 61 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT - CASE + - 88 WHEN COUNT ( ALL + 14 ) THEN NULL WHEN 0 THEN + NULLIF ( - NULLIF ( COUNT ( * ), 52 ), - COUNT ( * ) ) / + 71 WHEN - ( 86 ) THEN 53 WHEN 13 THEN - AVG ( ALL 9 ) / - CAST ( + 99 * + 25 - - 20 * 84 AS INTEGER ) - + 72 ELSE NULL END + CAST ( - 61 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 66 + 7 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT ALL - 75 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - 75 / 76
----
0

query I rowsort
SELECT - 47 + 43 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL - 3 + + + COUNT( * ) + - 75 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - 3 + + + COUNT ( * ) + - 75 AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT - SUM( DISTINCT - 82 ) DIV MAX( ALL + 97 + - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - SUM ( DISTINCT - 82 ) / MAX ( ALL + 97 + - 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - + COUNT( ALL + 27 ) + 99 * + 37
----
3662

skipif mysql # not compatible
query I rowsort label-4014
SELECT - + COUNT ( ALL + 27 ) + 99 * + 37
----
3662

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

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + 65 - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - + COALESCE ( - 13, + 56, - 12 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + + NULLIF ( - 99, COUNT( * ) ) + 57 col0
----
-42

skipif mysql # not compatible
query I rowsort label-4017
SELECT + + NULLIF ( - 99, COUNT ( * ) ) + 57 col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT ALL + 32 - - 96 DIV COUNT( - 47 ) col2
----
128

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + 32 - - 96 / COUNT ( - 47 ) col2
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT + 65 * + 79 - CAST( + 58 AS SIGNED ) * 56 AS col0
----
1887

skipif mysql # not compatible
query I rowsort label-4019
SELECT + 65 * + 79 - CAST ( + 58 AS INTEGER ) * 56 AS col0
----
1887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT + - 63 + 22 + + CASE + 13 + + 57 * COUNT( - 46 ) WHEN + 33 THEN ( - CAST( - 84 AS SIGNED ) ) END * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT + - 63 + 22 + + CASE + 13 + + 57 * COUNT ( - 46 ) WHEN + 33 THEN ( - CAST ( - 84 AS INTEGER ) ) END * - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT + MIN( ALL - 8 ) * - 88 AS col2
----
704

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT + MIN ( ALL - 8 ) * - 88 AS col2
----
704

query I rowsort
SELECT + 32 + - 50 * - 94
----
4732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT DISTINCT + CASE + NULLIF ( - 28, ( 83 ) * - 37 ) WHEN - 45 THEN 84 ELSE - 61 * CASE 20 * - CASE 52 WHEN - 67 THEN NULL WHEN - 44 / 12 + COUNT( * ) THEN 45 * - 51 END WHEN CASE COUNT( * ) WHEN - MAX( DISTINCT 65 ) + + ( 86 ) * - ( 95 * + COUNT( * ) ) THEN 71 ELSE NULL END THEN 98 * COUNT( * ) WHEN 68 * 25 THEN NULL END + - CASE 16 WHEN + COALESCE ( COUNT( * ), 21 + 53 ) + 14 * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 56 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + CASE + NULLIF ( - 28, ( 83 ) * - 37 ) WHEN - 45 THEN 84 ELSE - 61 * CASE 20 * - CASE 52 WHEN - 67 THEN NULL WHEN - 44 / 12 + COUNT ( * ) THEN 45 * - 51 END WHEN CASE COUNT ( * ) WHEN - MAX ( DISTINCT 65 ) + + ( 86 ) * - ( 95 * + COUNT ( * ) ) THEN 71 ELSE NULL END THEN 98 * COUNT ( * ) WHEN 68 * 25 THEN NULL END + - CASE 16 WHEN + COALESCE ( COUNT ( * ), 21 + 53 ) + 14 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 56 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT ALL 89 DIV 66 * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL 89 / 66 * - 9
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4025
SELECT + - NULLIF ( - 20, 91 - + 3 * 32 ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT + - NULLIF ( - 20, 91 - + 3 * 32 ) / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL CASE COUNT( * ) WHEN 86 + - SUM( ALL 69 + - 25 ) THEN NULL ELSE 56 END
----
56

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL CASE COUNT ( * ) WHEN 86 + - SUM ( ALL 69 + - 25 ) THEN NULL ELSE 56 END
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + - ( + 58 ) + - MIN( DISTINCT 84 )
----
-142

skipif mysql # not compatible
query I rowsort label-4027
SELECT + - ( + 58 ) + - MIN ( DISTINCT 84 )
----
-142

query I rowsort
SELECT ALL + 56 * 30 + 31
----
1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT DISTINCT - ( - 89 ) * CASE 95 WHEN 96 / 23 + + 29 THEN COUNT( * ) WHEN 83 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 45 + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - ( - 89 ) * CASE 95 WHEN 96 / 23 + + 29 THEN COUNT ( * ) WHEN 83 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 45 + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 78 + - + 77 + + 41 * 0 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT ( 98 ) + - ( SUM( ALL 61 ) )
----
37

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT ( 98 ) + - ( SUM ( ALL 61 ) )
----
37

query I rowsort
SELECT ALL 49 * - 27
----
-1323

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4033
SELECT DISTINCT ( 5 ) DIV 67 + CAST( 65 AS SIGNED ) * - 85
----
-5525

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT ( 5 ) / 67 + CAST ( 65 AS INTEGER ) * - 85
----
-5525

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT ALL SUM( ALL + 88 ) DIV + - 53 + 27 * + CASE + 30 * 71 WHEN 40 + COUNT( * ) THEN NULL WHEN + 76 * - 42 THEN NULL ELSE 23 END
----
620

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL SUM ( ALL + 88 ) / + - 53 + 27 * + CASE + 30 * 71 WHEN 40 + COUNT ( * ) THEN NULL WHEN + 76 * - 42 THEN NULL ELSE 23 END
----
620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT DISTINCT + CASE - - COUNT( * ) WHEN + ( 37 ) * - 56 THEN + COUNT( * ) WHEN + NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) THEN COUNT( * ) + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN + ( 37 ) * - 56 THEN + COUNT ( * ) WHEN + NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) THEN COUNT ( * ) + 39 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT DISTINCT COUNT( * ) DIV 13 * + 15 + + 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT COUNT ( * ) / 13 * + 15 + + 61 AS col1
----
61

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

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

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

query I rowsort
SELECT - 7 * + 75
----
-525

query I rowsort
SELECT ALL 10 * + 4 + - 21 col1
----
19

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

query I rowsort
SELECT ( 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + COUNT( * ) * + NULLIF ( + 48, ( 19 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + COUNT ( * ) * + NULLIF ( + 48, ( 19 ) ) AS col2
----
48

query I rowsort
SELECT DISTINCT - 89 * + 98
----
-8722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT DISTINCT + 44 col0, 96 * - CAST( NULL AS SIGNED ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT + 44 col0, 96 * - CAST ( NULL AS INTEGER ) AS col1
----
44
NULL

query I rowsort
SELECT - 41 * 43
----
-1763

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT - MAX( ALL - - 81 ) * + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - MAX ( ALL - - 81 ) * + - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + - CASE - 18 WHEN + - 85 THEN + ( - 12 ) WHEN - 59 THEN - MAX( 69 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT + - CASE - 18 WHEN + - 85 THEN + ( - 12 ) WHEN - 59 THEN - MAX ( 69 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT - MIN( DISTINCT - 5 ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT - MIN ( DISTINCT - 5 ) / + 66
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT COUNT( * ) AS col2, 4 + - ( - MAX( DISTINCT - 3 ) ) * - COUNT( * ) col0
----
1
7

skipif mysql # not compatible
query II rowsort label-4052
SELECT COUNT ( * ) AS col2, 4 + - ( - MAX ( DISTINCT - 3 ) ) * - COUNT ( * ) col0
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - 93 - - ( + - 73 ) + COUNT( * ) * 47
----
-119

skipif mysql # not compatible
query I rowsort label-4053
SELECT - 93 - - ( + - 73 ) + COUNT ( * ) * 47
----
-119

query I rowsort
SELECT - 67 * 80 - 34
----
-5394

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT ALL - + 84 DIV - 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - + 84 / - 9 AS col1
----
9

query I rowsort
SELECT - 7 + - 94
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL + SUM( - 69 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL + SUM ( - 69 ) col1
----
-69

query II rowsort
SELECT DISTINCT 98 AS col0, 88 - + + 90
----
98
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - - 61 * - 84 * + - CASE + 47 WHEN 68 THEN 46 / - 58 WHEN - 41 / 73 + 1 THEN 40 - 49 END * + 0 - 42 / 44 + 10 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT - - 61 * - 84 * + - CASE + 47 WHEN 68 THEN 46 / - 58 WHEN - 41 / 73 + 1 THEN 40 - 49 END * + 0 - 42 / 44 + 10 * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - + 15 * + 91 * - 69 - - 93 * 48
----
98649

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT ALL - + 92 DIV - - 16
----
-5

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - + 92 / - - 16
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT - + 65 - + 86 + - CAST( NULL AS SIGNED ) * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT - + 65 - + 86 + - CAST ( NULL AS INTEGER ) * 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT - CAST( AVG ( DISTINCT - + 36 ) AS SIGNED ) * + 87 AS col0
----
3132

skipif mysql # not compatible
query I rowsort label-4065
SELECT - CAST ( AVG ( DISTINCT - + 36 ) AS INTEGER ) * + 87 AS col0
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + MIN( ALL - - 10 ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT + MIN ( ALL - - 10 ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT ALL - 97, - 46 * - 3 + 25 * COUNT( * ) AS col1
----
-97
163

skipif mysql # not compatible
query II rowsort label-4067
SELECT ALL - 97, - 46 * - 3 + 25 * COUNT ( * ) AS col1
----
-97
163

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

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

query I rowsort
SELECT - ( + 27 ) + - 11
----
-38

query II rowsort
SELECT ALL - 74 col0, 72 + 94 * 9 AS col0
----
-74
918

query I rowsort
SELECT DISTINCT - 83 + 73 col1
----
-10

query I rowsort
SELECT DISTINCT - 77 + + 48 col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - COALESCE ( - 42, MAX( - 34 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4073
SELECT - COALESCE ( - 42, MAX ( - 34 ) )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT ALL + 83 + - COUNT( * ) AS col1, + 16 AS col0
----
82
16

skipif mysql # not compatible
query II rowsort label-4074
SELECT ALL + 83 + - COUNT ( * ) AS col1, + 16 AS col0
----
82
16

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

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT 67 * - + CAST ( - COUNT ( * ) AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL MIN( + - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL MIN ( + - 73 )
----
-73

query I rowsort
SELECT 61 * + - 84 AS col1
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - CASE - - ( + + MIN( DISTINCT 30 ) ) WHEN 53 THEN NULL WHEN + ( 86 ) THEN 0 END / 16 + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT - CASE - - ( + + MIN ( DISTINCT 30 ) ) WHEN 53 THEN NULL WHEN + ( 86 ) THEN 0 END / 16 + - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL MIN( - 86 ) + + COALESCE ( COUNT( * ), + 55 - 26 )
----
-85

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL MIN ( - 86 ) + + COALESCE ( COUNT ( * ), + 55 - 26 )
----
-85

query I rowsort
SELECT DISTINCT 31 * + - 26 * - 8 AS col0
----
6448

query I rowsort
SELECT 87 * - 48 * + ( + 75 ) AS col0
----
-313200

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT COUNT( * ) * - 18 AS col0, + 48 + - ( - 48 )
----
-18
96

skipif mysql # not compatible
query II rowsort label-4082
SELECT COUNT ( * ) * - 18 AS col0, + 48 + - ( - 48 )
----
-18
96

query I rowsort
SELECT ALL 66 * + 29
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL - 2 - 31 - SUM( 60 ) * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - 2 - 31 - SUM ( 60 ) * COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT 83 - 75 * - + COUNT( ALL 14 ) + - 48
----
110

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT 83 - 75 * - + COUNT ( ALL 14 ) + - 48
----
110

query I rowsort
SELECT DISTINCT 95 * - + 97 * + 29 * - 40
----
10689400

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL 30 * + + 63 * + MAX( ALL + + 30 )
----
56700

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 30 * + + 63 * + MAX ( ALL + + 30 )
----
56700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT DISTINCT 88 * 34 * + + 13 DIV + COUNT( * ) AS col1
----
38896

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT 88 * 34 * + + 13 / + COUNT ( * ) AS col1
----
38896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT DISTINCT + NULLIF ( 8, + - COALESCE ( - SUM( - ( 48 ) ), ( + 70 ) + COUNT( 8 ) ) ) / CASE 17 WHEN 91 / ( - 75 ) THEN CASE + 63 WHEN 22 THEN NULL ELSE 20 END WHEN - CASE 94 WHEN ( 45 ) * 20 THEN NULL ELSE + 52 * + CAST( NULL AS SIGNED ) END + 27 THEN COUNT( ALL 52 ) * 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + NULLIF ( 8, + - COALESCE ( - SUM ( - ( 48 ) ), ( + 70 ) + COUNT ( 8 ) ) ) / CASE 17 WHEN 91 / ( - 75 ) THEN CASE + 63 WHEN 22 THEN NULL ELSE 20 END WHEN - CASE 94 WHEN ( 45 ) * 20 THEN NULL ELSE + 52 * + CAST ( NULL AS INTEGER ) END + 27 THEN COUNT ( ALL 52 ) * 84 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT 39 DIV COUNT( * ) + 65 * + + 76 + - 44 col2
----
4935

skipif mysql # not compatible
query I rowsort label-4090
SELECT 39 / COUNT ( * ) + 65 * + + 76 + - 44 col2
----
4935

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4091
SELECT ALL 23 - - 81 + - - CASE - CASE 99 WHEN 32 THEN COUNT( * ) + - CASE - 93 WHEN + 35 * 50 THEN COUNT( * ) WHEN COUNT( 33 ) + - 7 THEN NULL ELSE COUNT( * ) END WHEN 75 THEN 39 END WHEN + 53 THEN + 57 WHEN ( - CAST( NULL AS DECIMAL ) ) * CASE COUNT( * ) WHEN 74 + + 94 THEN 66 ELSE NULL END THEN - COUNT( * ) ELSE - 79 END AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL 23 - - 81 + - - CASE - CASE 99 WHEN 32 THEN COUNT ( * ) + - CASE - 93 WHEN + 35 * 50 THEN COUNT ( * ) WHEN COUNT ( 33 ) + - 7 THEN NULL ELSE COUNT ( * ) END WHEN 75 THEN 39 END WHEN + 53 THEN + 57 WHEN ( - CAST ( NULL AS REAL ) ) * CASE COUNT ( * ) WHEN 74 + + 94 THEN 66 ELSE NULL END THEN - COUNT ( * ) ELSE - 79 END AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT 37 + - 33 / CAST( NULL AS SIGNED ) * + COALESCE ( CAST( 84 AS SIGNED ), + 7 + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT 37 + - 33 / CAST ( NULL AS INTEGER ) * + COALESCE ( CAST ( 84 AS INTEGER ), + 7 + 24 )
----
NULL

query I rowsort
SELECT - 49 * 29 + - 33 + - 22 * - 48 AS col0
----
-398

query I rowsort
SELECT + 40 * + CASE - ( + 61 ) WHEN - 0 THEN + 29 / 47 ELSE NULL END * - 7 + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + 23 * 49 + - + 58 - + 11 * COUNT( * )
----
1058

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 23 * 49 + - + 58 - + 11 * COUNT ( * )
----
1058

query I rowsort
SELECT ( - 31 ) * - 65 AS col1
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4097
SELECT + 91 + CAST( NULL AS SIGNED ) AS col0, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4097
SELECT + 91 + CAST ( NULL AS INTEGER ) AS col0, 63
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL - MAX( + ( + + 88 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - MAX ( + ( + + 88 ) ) AS col2
----
-88

query I rowsort
SELECT ALL - - 31 * - + 35 + - 20
----
-1105

query I rowsort
SELECT DISTINCT 83 * 43
----
3569

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL - MIN( - 77 ) + - COUNT( * ) + - 70 * + 79 AS col1
----
-5454

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - MIN ( - 77 ) + - COUNT ( * ) + - 70 * + 79 AS col1
----
-5454

query I rowsort
SELECT 32 * - - 47 + - + 9 AS col2
----
1495

query I rowsort
SELECT ALL - 89 * + 87
----
-7743

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT 22 + - + COUNT( * ) AS col0, + COUNT( DISTINCT + - 1 ) col0
----
21
1

skipif mysql # not compatible
query II rowsort label-4104
SELECT 22 + - + COUNT ( * ) AS col0, + COUNT ( DISTINCT + - 1 ) col0
----
21
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + 46 + COUNT( * ) * 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 46 + COUNT ( * ) * 90 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT ALL - 39 + + COUNT( * ), 82 AS col0
----
-38
82

skipif mysql # not compatible
query II rowsort label-4106
SELECT ALL - 39 + + COUNT ( * ), 82 AS col0
----
-38
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL - + MIN( - ( - + 60 ) ) + 33 + 77 * + 99 AS col2
----
7596

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - + MIN ( - ( - + 60 ) ) + 33 + 77 * + 99 AS col2
----
7596

query I rowsort
SELECT DISTINCT + + 14 + - + 13 - + 40 col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( 40 AS SIGNED ) * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( 40 AS INTEGER ) * - + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL + - CASE WHEN CAST( + - 45 AS SIGNED ) IN ( 56 ) THEN 43 + COUNT( * ) ELSE NULL END + 92 / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + - CASE WHEN CAST ( + - 45 AS INTEGER ) IN ( 56 ) THEN 43 + COUNT ( * ) ELSE NULL END + 92 / 49
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - + 98 AS col0
----
-1

query I rowsort
SELECT 61 + + 1 * + - 91 + 22 + + 69 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4113
SELECT 6 * + CAST( + 62 AS SIGNED ) AS col1, + COUNT( * ) * - ( + CAST( NULL AS SIGNED ) ) + - ( + COUNT( * ) )
----
372
NULL

skipif mysql # not compatible
query II rowsort label-4113
SELECT 6 * + CAST ( + 62 AS INTEGER ) AS col1, + COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) ) + - ( + COUNT ( * ) )
----
372
NULL

query I rowsort
SELECT ALL - COALESCE ( - - ( + 8 ), + ( 23 ) * + 35 ) * - 94 AS col1
----
752

query I rowsort
SELECT ALL + 52 - 64 + + 75 * 17
----
1263

query I rowsort
SELECT 87 - + + 14
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT 96 - - - 48 + + ( + 77 ) * - COALESCE ( - 94, + 49 DIV - 76 ) * + COUNT( * )
----
7286

skipif mysql # not compatible
query I rowsort label-4117
SELECT 96 - - - 48 + + ( + 77 ) * - COALESCE ( - 94, + 49 / - 76 ) * + COUNT ( * )
----
7286

query II rowsort
SELECT ALL 38 AS col2, - 20 * + 89 * - 68 + + - 80 col2
----
38
120960

query I rowsort
SELECT ALL - 7 * - 44 AS col1
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT - COUNT( DISTINCT - - 96 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - COUNT ( DISTINCT - - 96 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT MIN( - + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4121
SELECT MIN ( - + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - CASE - - 32 WHEN - + ( - 22 ) * + COUNT( * ) + COUNT( * ) / + 45 THEN NULL WHEN MIN( ( 88 ) ) THEN 28 + - NULLIF ( - 84 + 0, COUNT( * ) + - MAX( ALL 84 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - CASE - - 32 WHEN - + ( - 22 ) * + COUNT ( * ) + COUNT ( * ) / + 45 THEN NULL WHEN MIN ( ( 88 ) ) THEN 28 + - NULLIF ( - 84 + 0, COUNT ( * ) + - MAX ( ALL 84 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT DISTINCT COUNT( * ) DIV + CASE + 32 WHEN - + 44 THEN NULL ELSE + + NULLIF ( + COUNT( * ), + 90 ) * - 47 END * + 68
----
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT COUNT ( * ) / + CASE + 32 WHEN - + 44 THEN NULL ELSE + + NULLIF ( + COUNT ( * ), + 90 ) * - 47 END * + 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT COALESCE ( - + 83, 65 * - + ( + + 88 ) * MAX( ALL + 47 * CAST( + 6 AS SIGNED ) ) + 19 ) * - 40
----
3320

skipif mysql # not compatible
query I rowsort label-4124
SELECT COALESCE ( - + 83, 65 * - + ( + + 88 ) * MAX ( ALL + 47 * CAST ( + 6 AS INTEGER ) ) + 19 ) * - 40
----
3320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4125
SELECT - 60 AS col0, COUNT( * ) DIV 27 AS col0
----
-60
0

skipif mysql # not compatible
query II rowsort label-4125
SELECT - 60 AS col0, COUNT ( * ) / 27 AS col0
----
-60
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT + - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-4126
SELECT + - CAST ( 14 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT + 89 * - 91 * + + CAST( NULL AS SIGNED ) / COUNT( * ) * - 46 + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT + 89 * - 91 * + + CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 46 + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT ALL COUNT( + CAST( 36 AS SIGNED ) ) + + 68 col1
----
69

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL COUNT ( + CAST ( 36 AS INTEGER ) ) + + 68 col1
----
69

query I rowsort
SELECT + + 52 col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT 68 * 85 * - SUM( - 95 )
----
549100

skipif mysql # not compatible
query I rowsort label-4130
SELECT 68 * 85 * - SUM ( - 95 )
----
549100

query I rowsort
SELECT ALL 72 + + - 84 AS col0
----
-12

query I rowsort
SELECT DISTINCT - 51 + - 31 - - ( - - ( - - 98 ) ) + - 10 * ( - 73 )
----
746

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT - 17 * 48 + - 38 DIV + 97 + + 43 + + 12
----
-761

skipif mysql # not compatible
query I rowsort label-4133
SELECT - 17 * 48 + - 38 / + 97 + + 43 + + 12
----
-761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 38 * 56
----
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4136
SELECT 75, COUNT( * ) DIV - 83 AS col0
----
75
0

skipif mysql # not compatible
query II rowsort label-4136
SELECT 75, COUNT ( * ) / - 83 AS col0
----
75
0

query I rowsort
SELECT + + NULLIF ( 1, - 87 ) AS col2
----
1

query I rowsort
SELECT ALL + 68 + 18 AS col1
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4139
SELECT CAST( NULL AS DECIMAL ) + - 2 + + AVG ( - - 54 ) - - 14 + - 11 * 98 * + NULLIF ( - 86 + - 22, - 43 * + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT CAST ( NULL AS REAL ) + - 2 + + AVG ( - - 54 ) - - 14 + - 11 * 98 * + NULLIF ( - 86 + - 22, - 43 * + 88 )
----
NULL

query I rowsort
SELECT + 5 + 49 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 88 + - + 21 + - + ( + COALESCE ( 49, 41, 69 + 91 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + 44 * + + ( - 98 ) * - + 78 * - - 40 * MIN( ALL 67 ) + - ( + 21 ) * - COUNT( * ) AS col0
----
901380501

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + 44 * + + ( - 98 ) * - + 78 * - - 40 * MIN ( ALL 67 ) + - ( + 21 ) * - COUNT ( * ) AS col0
----
901380501

query I rowsort
SELECT + COALESCE ( - 41, - 54, - + 92 * 84 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + + 37 + SUM( ALL 45 ) + + ( + + NULLIF ( - 74, 2 * 77 ) )
----
8

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + + 37 + SUM ( ALL 45 ) + + ( + + NULLIF ( - 74, 2 * 77 ) )
----
8

query II rowsort
SELECT + 85 + 65 - - + 19 * 5 AS col2, 94 AS col2
----
245
94

query I rowsort
SELECT - 90 - - - 8 * + 64 col1
----
-602

query II rowsort
SELECT ALL 15, + 11 AS col0
----
15
11

query I rowsort
SELECT DISTINCT 55 * - - 23 col1
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - 84 * - COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 84 * - COUNT ( * ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL MIN( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL MIN ( DISTINCT - 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT + 55 + COALESCE ( - CASE + 66 WHEN 72 + - AVG ( 56 ) THEN - 2 WHEN - 70 THEN NULL WHEN - CASE 79 WHEN + 41 DIV + 77 THEN - 26 END DIV + 69 THEN NULL ELSE 5 END, + 45 * - 43 + 17 * COUNT( * ) ) + 75 DIV 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 55 + COALESCE ( - CASE + 66 WHEN 72 + - AVG ( 56 ) THEN - 2 WHEN - 70 THEN NULL WHEN - CASE 79 WHEN + 41 / + 77 THEN - 26 END / + 69 THEN NULL ELSE 5 END, + 45 * - 43 + 17 * COUNT ( * ) ) + 75 / 52 AS col0
----
51

query I rowsort
SELECT DISTINCT 19 * + - 54 AS col1
----
-1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT - CAST( NULL AS SIGNED ) + - + 30 + + 43 * + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT - CAST ( NULL AS INTEGER ) + - + 30 + + 43 * + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL + COUNT( * ) / CASE WHEN NOT ( 2 NOT IN ( - 3 ) ) THEN + 56 * 5 + - 94 * + 39 WHEN - 21 > NULL THEN 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + COUNT ( * ) / CASE WHEN NOT ( 2 NOT IN ( - 3 ) ) THEN + 56 * 5 + - 94 * + 39 WHEN - 21 > NULL THEN 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4156
SELECT - 48 * 4 * + + 40 * + + 65 AS col2, 20 DIV - 5
----
-499200
-4

skipif mysql # not compatible
query II rowsort label-4156
SELECT - 48 * 4 * + + 40 * + + 65 AS col2, 20 / - 5
----
-499200
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + ( + + 10 ) * - 80 + + - CASE - ( + 88 ) WHEN 8 + + SUM( + 60 + - 75 * - 56 ) THEN + 66 - - MIN( DISTINCT 82 ) * AVG ( ( - 42 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + ( + + 10 ) * - 80 + + - CASE - ( + 88 ) WHEN 8 + + SUM ( + 60 + - 75 * - 56 ) THEN + 66 - - MIN ( DISTINCT 82 ) * AVG ( ( - 42 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL COALESCE ( - - CASE + 55 WHEN + 8 THEN - ( - ( 61 ) ) * 32 END, - 55 * - 54 + - MAX( 31 ), 85 ) AS col0
----
2939

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL COALESCE ( - - CASE + 55 WHEN + 8 THEN - ( - ( 61 ) ) * 32 END, - 55 * - 54 + - MAX ( 31 ), 85 ) AS col0
----
2939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT - 1 DIV - - SUM( 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 1 / - - SUM ( 86 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT ALL + 48 DIV + 5 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + 48 / + 5 AS col0
----
9

query I rowsort
SELECT - 18 * + 67 col2
----
-1206

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT ALL COUNT( * ) col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL COUNT ( * ) col1, - COUNT ( * )
----
1
-1

query I rowsort
SELECT - 88 * + 3
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT 40, COUNT( * ) * - SUM( + ( 91 ) ) AS col1
----
40
-91

skipif mysql # not compatible
query II rowsort label-4164
SELECT 40, COUNT ( * ) * - SUM ( + ( 91 ) ) AS col1
----
40
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL + 76 * - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + 76 * - - COUNT ( * )
----
76

query I rowsort
SELECT ( + - 82 ) AS col1
----
-82

query II rowsort
SELECT ALL + 83 AS col2, + 3
----
83
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT 76 DIV 10 + - - 54 DIV + - ( + 60 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4168
SELECT 76 / 10 + - - 54 / + - ( + 60 ) AS col1
----
7

query I rowsort
SELECT ( - - 35 )
----
35

query I rowsort
SELECT ALL + 85 * - 21
----
-1785

query I rowsort
SELECT DISTINCT + ( - 54 ) col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT + 69 * + - CAST( 13 AS SIGNED ) + 69
----
-828

skipif mysql # not compatible
query I rowsort label-4172
SELECT + 69 * + - CAST ( 13 AS INTEGER ) + 69
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL - 42 * + - 83 - - + COUNT( * ) + - 85 + - 91 * 2 + - 8 AS col0
----
3212

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - 42 * + - 83 - - + COUNT ( * ) + - 85 + - 91 * 2 + - 8 AS col0
----
3212

query I rowsort
SELECT DISTINCT + 55 * - - CASE - + 23 WHEN - 94 THEN + 6 + + - ( ( + ( 53 ) ) ) END * 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT - 87 DIV - 65 - - 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4175
SELECT - 87 / - 65 - - 59 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL 64 * + + 76 + - + CAST( - + NULLIF ( + + 32, + 75 / + 97 ) AS SIGNED ) + 61 AS col2
----
4957

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL 64 * + + 76 + - + CAST ( - + NULLIF ( + + 32, + 75 / + 97 ) AS INTEGER ) + 61 AS col2
----
4957

query I rowsort
SELECT + + 20 * - 63 * + 41 * + - 20 * 30 + 66 AS col0
----
30996066

query I rowsort
SELECT DISTINCT + ( + + 37 ) col1
----
37

query II rowsort
SELECT ALL + - 70 AS col2, 95 AS col1
----
-70
95

query I rowsort
SELECT + - 53 + - - 16
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT ALL + 72 col0, - COUNT( * ) + + 50 AS col1
----
72
49

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL + 72 col0, - COUNT ( * ) + + 50 AS col1
----
72
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT + + COUNT( * ) col1, + COUNT( * ) + - + MIN( - 83 )
----
1
84

skipif mysql # not compatible
query II rowsort label-4182
SELECT + + COUNT ( * ) col1, + COUNT ( * ) + - + MIN ( - 83 )
----
1
84

query I rowsort
SELECT 3 * + + 68 + + 93 + 30 * ( - 38 )
----
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL 85 * COUNT( * ) + - 75 + + - 12 + + - NULLIF ( 65, 90 * 56 ) * ( + COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL 85 * COUNT ( * ) + - 75 + + - 12 + + - NULLIF ( 65, 90 * 56 ) * ( + COUNT ( * ) )
----
-67

query II rowsort
SELECT DISTINCT + 80, + 80
----
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT ALL 29 * 99 + ( + 24 ) DIV - + NULLIF ( - - ( - 26 ), - 33 ) AS col2
----
2871

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 29 * 99 + ( + 24 ) / - + NULLIF ( - - ( - 26 ), - 33 ) AS col2
----
2871

query I rowsort
SELECT ALL 33 * - 1 AS col2
----
-33

query II rowsort
SELECT + 46 AS col0, 81 AS col0
----
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL 93 * 50 + + COUNT( * )
----
4651

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 93 * 50 + + COUNT ( * )
----
4651

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT 51 * + CASE - + 60 WHEN COALESCE ( - 9, - 61 ) + + 49 THEN NULL ELSE 49 END + + COUNT( * ) AS col1
----
2500

skipif mysql # not compatible
query I rowsort label-4190
SELECT 51 * + CASE - + 60 WHEN COALESCE ( - 9, - 61 ) + + 49 THEN NULL ELSE 49 END + + COUNT ( * ) AS col1
----
2500

query II rowsort
SELECT ALL + + 95, - 0 AS col1
----
95
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT + CASE - 76 WHEN + - 78 DIV 76 + - - COUNT( * ) * - 50 - COUNT( * ) + 49 THEN NULL ELSE - 31 DIV 76 - - 75 END
----
75

skipif mysql # not compatible
query I rowsort label-4192
SELECT + CASE - 76 WHEN + - 78 / 76 + - - COUNT ( * ) * - 50 - COUNT ( * ) + 49 THEN NULL ELSE - 31 / 76 - - 75 END
----
75

query II rowsort
SELECT - 13, + 4 - - 74 + 97 AS col1
----
-13
175

query II rowsort
SELECT DISTINCT 25 AS col2, + 36 AS col1
----
25
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT - COALESCE ( + ( - + CASE - - 88 WHEN - NULLIF ( + 97, 41 * COUNT( * ) ) THEN COUNT( * ) DIV - COUNT( * ) + + 44 * - ( - 30 ) WHEN 13 THEN ( 97 ) ELSE + 81 + - SUM( - 2 ) END ), - 36 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4195
SELECT - COALESCE ( + ( - + CASE - - 88 WHEN - NULLIF ( + 97, 41 * COUNT ( * ) ) THEN COUNT ( * ) / - COUNT ( * ) + + 44 * - ( - 30 ) WHEN 13 THEN ( 97 ) ELSE + 81 + - SUM ( - 2 ) END ), - 36 ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT - CAST( NULLIF ( + 57, CAST( NULL AS SIGNED ) ) AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-4196
SELECT - CAST ( NULLIF ( + 57, CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
-57

query I rowsort
SELECT - 61 * 86 AS col0
----
-5246

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT + ( 44 ) + + - 77 + - 13 DIV 28 DIV + - NULLIF ( - - 17, 5 DIV 82 ) * 64 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4198
SELECT + ( 44 ) + + - 77 + - 13 / 28 / + - NULLIF ( - - 17, 5 / 82 ) * 64 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT - ( MAX( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - ( MAX ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT + 25 * 66
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL + COUNT( * ) * + - 46 * + 11 * + 90 AS col0
----
-45540

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + COUNT ( * ) * + - 46 * + 11 * + 90 AS col0
----
-45540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT - 18 + CASE - 74 WHEN + - CAST( - 94 AS SIGNED ) THEN - 49 + 66 WHEN 34 + + 33 THEN - COUNT( * ) ELSE - 86 END + 42 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 18 + CASE - 74 WHEN + - CAST ( - 94 AS INTEGER ) THEN - 49 + 66 WHEN 34 + + 33 THEN - COUNT ( * ) ELSE - 86 END + 42 AS col2
----
-62

query I rowsort
SELECT + 89 * - 82
----
-7298

query I rowsort
SELECT ALL ( 86 ) * + 42
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - COUNT( * ) + + 95 + + COUNT( * ) * - 70 * - COUNT( * ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - COUNT ( * ) + + 95 + + COUNT ( * ) * - 70 * - COUNT ( * ) AS col1
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT + 41 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT + 41 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL COALESCE ( - 34, + + COUNT( * ), + COUNT( * ) + + - ( + COUNT( DISTINCT - 61 ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL COALESCE ( - 34, + + COUNT ( * ), + COUNT ( * ) + + - ( + COUNT ( DISTINCT - 61 ) ) )
----
-34

query I rowsort
SELECT + 59 * - 92 AS col1
----
-5428

query I rowsort
SELECT ALL 64 + - 40 AS col0
----
24

query I rowsort
SELECT ALL ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT - 35 * 56 * + - COUNT( * )
----
1960

skipif mysql # not compatible
query I rowsort label-4211
SELECT - 35 * 56 * + - COUNT ( * )
----
1960

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT ALL 74 DIV - - 92 + - 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL 74 / - - 92 + - 20 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL - 23 / - - 47 + - + CAST( NULL AS SIGNED ) - - 31 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 23 / - - 47 + - + CAST ( NULL AS INTEGER ) - - 31 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT + + 87 * + 16 * - MIN( - + CAST( NULL AS SIGNED ) ) * - 47 + + + 9 * - COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT + + 87 * + 16 * - MIN ( - + CAST ( NULL AS INTEGER ) ) * - 47 + + + 9 * - COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4215
SELECT - 46 - - 91 AS col2, - 18 + + 57 + - 9 * + + CASE + + 92 WHEN - CAST( NULL AS SIGNED ) THEN + 49 WHEN ( 5 ) + 86 / - 21 THEN - COUNT( - NULLIF ( - 20, 73 + + 67 ) ) * - COALESCE ( + MIN( DISTINCT 25 ), - 5, COUNT( * ) + CASE 24 WHEN NULLIF ( 23, - CASE WHEN NULL IS NOT NULL THEN 25 ELSE NULL END * + 47 + + 76 ) THEN NULL ELSE MAX( + 65 ) END ) ELSE NULL END col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4215
SELECT - 46 - - 91 AS col2, - 18 + + 57 + - 9 * + + CASE + + 92 WHEN - CAST ( NULL AS INTEGER ) THEN + 49 WHEN ( 5 ) + 86 / - 21 THEN - COUNT ( - NULLIF ( - 20, 73 + + 67 ) ) * - COALESCE ( + MIN ( DISTINCT 25 ), - 5, COUNT ( * ) + CASE 24 WHEN NULLIF ( 23, - CASE WHEN NULL IS NOT NULL THEN 25 ELSE NULL END * + 47 + + 76 ) THEN NULL ELSE MAX ( + 65 ) END ) ELSE NULL END col0
----
45
NULL

query I rowsort
SELECT - 60 * 80 AS col0
----
-4800

query II rowsort
SELECT - 30 * - 4 AS col1, ( + - 99 )
----
120
-99

query I rowsort
SELECT ALL + - 4 AS col2
----
-4

query I rowsort
SELECT ALL + - 17 col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + CASE ( 8 ) WHEN - - COUNT( * ) THEN 2 WHEN + CASE - - 88 WHEN 91 THEN + 63 WHEN + CASE 95 WHEN + 4 * 52 THEN NULL ELSE 24 END THEN NULL ELSE 14 * + 23 END THEN 33 + - 88 ELSE NULL END * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + CASE ( 8 ) WHEN - - COUNT ( * ) THEN 2 WHEN + CASE - - 88 WHEN 91 THEN + 63 WHEN + CASE 95 WHEN + 4 * 52 THEN NULL ELSE 24 END THEN NULL ELSE 14 * + 23 END THEN 33 + - 88 ELSE NULL END * + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4221
SELECT ALL 45 DIV + 23 + + MAX( 27 ) DIV - 84 - - + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL 45 / + 23 + + MAX ( 27 ) / - 84 - - + 25 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4222
SELECT - - CAST( + 95 AS SIGNED ) * - NULLIF ( COUNT( * ), + MIN( ALL ( + + 32 ) ) + + COALESCE ( + 94 + - ( COUNT( * ) ), 23 - + 3, - 74 * SUM( ALL 87 ) ) ) + CAST( + 61 + - COUNT( * ) * 60 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4222
SELECT - - CAST ( + 95 AS INTEGER ) * - NULLIF ( COUNT ( * ), + MIN ( ALL ( + + 32 ) ) + + COALESCE ( + 94 + - ( COUNT ( * ) ), 23 - + 3, - 74 * SUM ( ALL 87 ) ) ) + CAST ( + 61 + - COUNT ( * ) * 60 AS INTEGER ) AS col1
----
-94

query I rowsort
SELECT DISTINCT + 49 * ( - + 32 )
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL - ( MAX( - 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - ( MAX ( - 41 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT 11 * + - 95 * CASE + - 65 WHEN NULLIF ( + COUNT( * ), + + 99 ) THEN 11 ELSE NULL END + 55 * 22 + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT 11 * + - 95 * CASE + - 65 WHEN NULLIF ( + COUNT ( * ), + + 99 ) THEN 11 ELSE NULL END + 55 * 22 + + 21 AS col0
----
NULL

query I rowsort
SELECT 64 * + 42
----
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT + ( 46 ) + - 81 + + ( - 77 ) * + 49 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT + ( 46 ) + - 81 + + ( - 77 ) * + 49 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 50 * + 24 * 24
----
-28800

query I rowsort
SELECT ALL 67 * CASE - 37 WHEN ( + 86 ) - + ( + ( - 89 ) ) THEN - 34 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 2 * 33
----
66

query I rowsort
SELECT 6 + + 80
----
86

query I rowsort
SELECT ALL - 48 * - - 79 * 47 col2
----
-178224

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT NULLIF ( + 74, COUNT( * ) / 4 - 71 + + + 46 * + + COUNT( * ) * + 63 + 95 ) - 33 * + 21 AS col1
----
-619

skipif mysql # not compatible
query I rowsort label-4233
SELECT NULLIF ( + 74, COUNT ( * ) / 4 - 71 + + + 46 * + + COUNT ( * ) * + 63 + 95 ) - 33 * + 21 AS col1
----
-619

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL COALESCE ( - - SUM( DISTINCT + 28 ), + COUNT( * ) ) * - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL COALESCE ( - - SUM ( DISTINCT + 28 ), + COUNT ( * ) ) * - - COUNT ( * )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT 96 + 34 DIV + 42 * + - 2
----
96

skipif mysql # not compatible
query I rowsort label-4235
SELECT 96 + 34 / + 42 * + - 2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT 2 DIV + + 35 * 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT 2 / + + 35 * 34 AS col1
----
0

query I rowsort
SELECT DISTINCT 1 + - ( 25 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4238
SELECT DISTINCT 40 AS col2, SUM( - - 71 ) + + + 15
----
40
86

skipif mysql # not compatible
query II rowsort label-4238
SELECT DISTINCT 40 AS col2, SUM ( - - 71 ) + + + 15
----
40
86

query I rowsort
SELECT ( - + NULLIF ( 35, + - 69 + + - ( - + 72 ) ) ) + + 7 + - 83
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL 23 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL 23 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 88 + 64 - 44
----
108

query I rowsort
SELECT ALL 47 + - 96 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT ALL - 95 + + 41 DIV 57
----
-95

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - 95 + + 41 / 57
----
-95

query I rowsort
SELECT ALL 38 * 20 AS col2
----
760

query I rowsort
SELECT - 78 * 69
----
-5382

query I rowsort
SELECT ALL NULLIF ( + ( - - 61 ), + - 82 ) + + 57 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL MAX( ALL - + 81 ) + 48
----
-33

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL MAX ( ALL - + 81 ) + 48
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - 35 * - MIN( DISTINCT - 16 )
----
-560

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 35 * - MIN ( DISTINCT - 16 )
----
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT - 97 DIV + 8 + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4249
SELECT - 97 / + 8 + COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - MIN( 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4250
SELECT - MIN ( 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL - COALESCE ( + SUM( ALL 23 ), - 33 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - COALESCE ( + SUM ( ALL 23 ), - 33 ) AS col0
----
-23

query I rowsort
SELECT + 58 + + + 41
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT ALL - 70 - + MIN( DISTINCT CAST( - - 31 AS SIGNED ) )
----
-101

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - 70 - + MIN ( DISTINCT CAST ( - - 31 AS INTEGER ) )
----
-101

query I rowsort
SELECT - 22 * + + 47 + 60
----
-974

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL - - 5 - COUNT( * ) * + - MAX( ALL + - 58 ) + 54 + - 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - - 5 - COUNT ( * ) * + - MAX ( ALL + - 58 ) + 54 + - 81 AS col1
----
-80

query I rowsort
SELECT + ( 13 ) * + - 74 + + 38
----
-924

onlyif mysql # DIV for integer division: 
query II rowsort label-4257
SELECT + + 68 AS col1, 88 * 98 DIV - - 56 AS col1
----
68
154

skipif mysql # not compatible
query II rowsort label-4257
SELECT + + 68 AS col1, 88 * 98 / - - 56 AS col1
----
68
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL + COUNT( * ) / ( + 99 ) - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + COUNT ( * ) / ( + 99 ) - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL - ( - + 6 ) - - + COUNT( * ) * + CAST( - + 69 AS SIGNED ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - ( - + 6 ) - - + COUNT ( * ) * + CAST ( - + 69 AS INTEGER ) col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT 32 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT 32 / - 99
----
0

query II rowsort
SELECT + + 48 AS col0, + 37
----
48
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT 91 + 77 + NULLIF ( - 36, - - 48 ) + - 9 + - - COUNT( * ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4262
SELECT 91 + 77 + NULLIF ( - 36, - - 48 ) + - 9 + - - COUNT ( * ) AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT NULLIF ( 44, - + COUNT( * ) + + AVG ( + 26 ) + - MIN( DISTINCT - 57 ) / NULLIF ( - 91, 41 ) + + 76 * COALESCE ( + COUNT( * ), 41 ) ) * - 61 AS col1
----
-2684

skipif mysql # not compatible
query I rowsort label-4263
SELECT NULLIF ( 44, - + COUNT ( * ) + + AVG ( + 26 ) + - MIN ( DISTINCT - 57 ) / NULLIF ( - 91, 41 ) + + 76 * COALESCE ( + COUNT ( * ), 41 ) ) * - 61 AS col1
----
-2684

query I rowsort
SELECT DISTINCT - + 1 * - 52 * - ( + - 51 )
----
2652

query II rowsort
SELECT + + 25 AS col1, 51
----
25
51

query I rowsort
SELECT ALL - - 50 * + + 7
----
350

query I rowsort
SELECT 3 * + 11 col1
----
33

query I rowsort
SELECT 93 * - 91
----
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT - 44 + - + SUM( 12 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT - 44 + - + SUM ( 12 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL SUM( DISTINCT 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL SUM ( DISTINCT 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT 41 * + 16 * - COUNT( * ) * - 51
----
33456

skipif mysql # not compatible
query I rowsort label-4271
SELECT 41 * + 16 * - COUNT ( * ) * - 51
----
33456

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4272
SELECT ALL - NULLIF ( - CAST( - - 77 AS SIGNED ), + ( - 93 ) + - 90 ) + ( - 49 ) - - - NULLIF ( - 3, + ( ( NULLIF ( - CAST( NULL AS SIGNED ), + 51 ) ) ) ) DIV + 18 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL - NULLIF ( - CAST ( - - 77 AS INTEGER ), + ( - 93 ) + - 90 ) + ( - 49 ) - - - NULLIF ( - 3, + ( ( NULLIF ( - CAST ( NULL AS INTEGER ), + 51 ) ) ) ) / + 18 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT COUNT( * ) + - MIN( + 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-4273
SELECT COUNT ( * ) + - MIN ( + 27 )
----
-26

query I rowsort
SELECT 31 * 8 AS col2
----
248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT ALL - 26 + - CAST( - + 19 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - 26 + - CAST ( - + 19 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT SUM( DISTINCT NULLIF ( - 29, 43 ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT SUM ( DISTINCT NULLIF ( - 29, 43 ) ) AS col2
----
-29

query I rowsort
SELECT DISTINCT 47 + + + 62 + - NULLIF ( + ( 98 ), 29 ) AS col0
----
11

query I rowsort
SELECT ALL 6 + + + COALESCE ( - 52, - 82 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT - COALESCE ( + 66, + 63 + 16 + + 27, - + 58 * 34 ) * 67
----
-4422

query I rowsort
SELECT DISTINCT + 82 + - 91 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT + 76 + + + MAX( - 35 ) * + - 99 AS col2
----
3541

skipif mysql # not compatible
query I rowsort label-4281
SELECT + 76 + + + MAX ( - 35 ) * + - 99 AS col2
----
3541

query II rowsort
SELECT ALL 50 - + + 41 col0, - 47 AS col0
----
9
-47

query I rowsort
SELECT + ( - 74 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT DISTINCT + MIN( ALL + 45 ) - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT + MIN ( ALL + 45 ) - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL CAST ( 41 AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - CASE 73 WHEN + 46 + 2 / - - 40 - COUNT( * ) THEN 92 WHEN - - 71 * + COUNT( * ) THEN 92 - 24 ELSE 70 END
----
-70

skipif mysql # not compatible
query I rowsort label-4286
SELECT - CASE 73 WHEN + 46 + 2 / - - 40 - COUNT ( * ) THEN 92 WHEN - - 71 * + COUNT ( * ) THEN 92 - 24 ELSE 70 END
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT + 69 * + - CAST( - 90 AS SIGNED )
----
6210

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 69 * + - CAST ( - 90 AS INTEGER )
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL + - ( - MAX( DISTINCT 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + - ( - MAX ( DISTINCT 83 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT - 16 * + 80 * + - 6 * - 79 + + + CAST( + - 4 AS SIGNED ) AS col0
----
-606724

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - 16 * + 80 * + - 6 * - 79 + + + CAST ( + - 4 AS INTEGER ) AS col0
----
-606724

query I rowsort
SELECT ALL CASE - 14 WHEN + + 72 + - 49 THEN NULL WHEN - - 18 - - + 89 THEN NULL ELSE + - 37 END * 51 AS col0
----
-1887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT + - 78 - + 48 + 92 + + COALESCE ( 10, + - 44 ) + - + 66 DIV - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4291
SELECT + - 78 - + 48 + 92 + + COALESCE ( 10, + - 44 ) + - + 66 / - COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + - COUNT( * ) * 47 + + + 24 * 39 + + + 28 * 43
----
2093

skipif mysql # not compatible
query I rowsort label-4292
SELECT + - COUNT ( * ) * 47 + + + 24 * 39 + + + 28 * 43
----
2093

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT DISTINCT + MIN( ALL - 8 ) AS col2, - 69
----
-8
-69

skipif mysql # not compatible
query II rowsort label-4293
SELECT DISTINCT + MIN ( ALL - 8 ) AS col2, - 69
----
-8
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL + 33 * + ( - - 48 ) + + + SUM( ALL - 67 ) + + - 96 * 85 * 42 AS col1
----
-341203

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + 33 * + ( - - 48 ) + + + SUM ( ALL - 67 ) + + - 96 * 85 * 42 AS col1
----
-341203

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - 2 - + MIN( - - 18 )
----
-20

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 2 - + MIN ( - - 18 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + CASE + + ( + 23 ) WHEN + 24 THEN + ( - - 71 ) * - 54 / COUNT( * ) WHEN 32 / - - 34 * COUNT( * ) THEN NULL WHEN COUNT( * ) * - 77 - 31 * - 93 THEN 99 - 87 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT + CASE + + ( + 23 ) WHEN + 24 THEN + ( - - 71 ) * - 54 / COUNT ( * ) WHEN 32 / - - 34 * COUNT ( * ) THEN NULL WHEN COUNT ( * ) * - 77 - 31 * - 93 THEN 99 - 87 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + COUNT( * ) * + + COUNT( * ) + + NULLIF ( + 50, + - COUNT( ALL + 1 ) )
----
51

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + + NULLIF ( + 50, + - COUNT ( ALL + 1 ) )
----
51

query I rowsort
SELECT + NULLIF ( + - 54, ( 65 ) ) AS col1
----
-54

query I rowsort
SELECT + 48 + 77 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + 66 + - + COUNT( * ) * - 56
----
122

skipif mysql # not compatible
query I rowsort label-4300
SELECT + 66 + - + COUNT ( * ) * - 56
----
122

query I rowsort
SELECT ALL - 17 * 46 + 33 AS col0
----
-749

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4302
SELECT ALL + 67 + - - CAST( NULL AS DECIMAL ) * - - COUNT( 32 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + 67 + - - CAST ( NULL AS REAL ) * - - COUNT ( 32 ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT - 93 * - 99 + + 36 + + + COALESCE ( + CAST( + 87 AS SIGNED ), - 74, - 11 + - + 42 ) + - + CASE + 64 WHEN + ( 85 ) THEN NULL WHEN - 35 THEN + SUM( ALL 54 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - 93 * - 99 + + 36 + + + COALESCE ( + CAST ( + 87 AS INTEGER ), - 74, - 11 + - + 42 ) + - + CASE + 64 WHEN + ( 85 ) THEN NULL WHEN - 35 THEN + SUM ( ALL 54 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL SUM( - 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL SUM ( - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - 95 + + + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - 95 + + + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - ( ( - + MAX( ALL + - 83 ) ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4306
SELECT - ( ( - + MAX ( ALL + - 83 ) ) ) col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - ( + NULLIF ( COUNT( ALL - - 71 ), - ( 3 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT - ( + NULLIF ( COUNT ( ALL - - 71 ), - ( 3 ) ) )
----
-1

query I rowsort
SELECT DISTINCT - 50 - - 95 * - 29 AS col0
----
-2805

query II rowsort
SELECT 42 col0, + 87 * 11 AS col0
----
42
957

query I rowsort
SELECT - 41 + - - 86 * + 4
----
303

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT DISTINCT + 78 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + 78 / + 94 AS col0
----
0

query I rowsort
SELECT - + 50 + + 38 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - - 75 + + + MAX( ALL + + 26 )
----
101

skipif mysql # not compatible
query I rowsort label-4313
SELECT - - 75 + + + MAX ( ALL + + 26 )
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT + + 97 DIV 37 + 41
----
43

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT + + 97 / 37 + 41
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT + + 21 * + COUNT( * ) + 48 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + + 21 * + COUNT ( * ) + 48 AS col2
----
69

query I rowsort
SELECT - + 98 + 79
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4317
SELECT ALL - 87 * + COUNT( - - 88 ) * SUM( - + 69 ) AS col0, - 37 - + 69 DIV - 35
----
6003
-36

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL - 87 * + COUNT ( - - 88 ) * SUM ( - + 69 ) AS col0, - 37 - + 69 / - 35
----
6003
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT - - 23 DIV - - 62
----
0

skipif mysql # not compatible
query I rowsort label-4318
SELECT - - 23 / - - 62
----
0

query I rowsort
SELECT + + 18 * + 15
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT + 38 DIV + 88 + 76 + + 15 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4320
SELECT + 38 / + 88 + 76 + + 15 AS col2
----
91

query I rowsort
SELECT - + 49 * - 67
----
3283

query I rowsort
SELECT + - 43 * + + 30
----
-1290

query II rowsort
SELECT ALL + - 73, 69 AS col0
----
-73
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4324
SELECT - 42 + + 75 + 39, + MAX( 94 ) + + + NULLIF ( - 9, - + 89 + - + 50 ) DIV + 88 * 74 AS col1
----
72
94

skipif mysql # not compatible
query II rowsort label-4324
SELECT - 42 + + 75 + 39, + MAX ( 94 ) + + + NULLIF ( - 9, - + 89 + - + 50 ) / + 88 * 74 AS col1
----
72
94

query I rowsort
SELECT ALL - 27 * + ( 29 ) + 1
----
-782

query I rowsort
SELECT ALL + NULLIF ( - 3, + 93 ) col2
----
-3

query II rowsort
SELECT ALL + 10, 80 AS col0
----
10
80

query II rowsort
SELECT + - 0 AS col0, 14 AS col0
----
0
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT DISTINCT - - 14 DIV - 7 + + CAST( + 6 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - - 14 / - 7 + + CAST ( + 6 AS INTEGER )
----
4

query II rowsort
SELECT ALL + 57, + 85 + + 45 AS col0
----
57
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4331
SELECT + 78 + - COUNT( * ) * 11 * COALESCE ( + NULLIF ( 71, - CASE - + CAST( NULL AS DECIMAL ) WHEN 94 THEN - - 84 ELSE NULL END - - 38 + ( + ( - 78 ) - - ( - 45 ) * 81 ) ), 93 / 8 + COUNT( * ) / 69 ) * + 10 + + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT + 78 + - COUNT ( * ) * 11 * COALESCE ( + NULLIF ( 71, - CASE - + CAST ( NULL AS REAL ) WHEN 94 THEN - - 84 ELSE NULL END - - 38 + ( + ( - 78 ) - - ( - 45 ) * 81 ) ), 93 / 8 + COUNT ( * ) / 69 ) * + 10 + + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ( - MIN( - 73 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4332
SELECT ( - MIN ( - 73 ) ) AS col2
----
73

query I rowsort
SELECT + NULLIF ( + 83, + ( + ( + 9 ) ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT 99 * - + ( + ( + CASE - + COUNT( * ) WHEN 2 * + - ( - + 40 ) / 49 THEN - COUNT( * ) ELSE + + 71 END ) ) * 81 + MAX( + 18 - 77 ) col2
----
-569408

skipif mysql # not compatible
query I rowsort label-4334
SELECT 99 * - + ( + ( + CASE - + COUNT ( * ) WHEN 2 * + - ( - + 40 ) / 49 THEN - COUNT ( * ) ELSE + + 71 END ) ) * 81 + MAX ( + 18 - 77 ) col2
----
-569408

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + NULLIF ( - + CASE + 43 WHEN - 36 THEN - COUNT( * ) * - COALESCE ( 51, - 7, - 29 * 70 ) * 28 * 25 END, + CASE 45 WHEN NULLIF ( 44, 21 ) THEN NULL WHEN 93 + - 7 THEN 76 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT + NULLIF ( - + CASE + 43 WHEN - 36 THEN - COUNT ( * ) * - COALESCE ( 51, - 7, - 29 * 70 ) * 28 * 25 END, + CASE 45 WHEN NULLIF ( 44, 21 ) THEN NULL WHEN 93 + - 7 THEN 76 END ) col0
----
NULL

query II rowsort
SELECT DISTINCT + 83 AS col1, - 59
----
83
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL - 73 * 92 * + 68 + COUNT( * )
----
-456687

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - 73 * 92 * + 68 + COUNT ( * )
----
-456687

query I rowsort
SELECT + 42 * - 49 * - 87
----
179046

query I rowsort
SELECT ALL - 95 * + 68 * 78 + - 26 AS col0
----
-503906

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + COUNT( * ) * + 13
----
13

skipif mysql # not compatible
query I rowsort label-4340
SELECT + COUNT ( * ) * + 13
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL + 92 AS col2, MAX( + 1 )
----
92
1

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL + 92 AS col2, MAX ( + 1 )
----
92
1

query I rowsort
SELECT CASE - 18 WHEN + 14 THEN 68 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT - CAST( + 90 AS SIGNED ) * - 73 col0
----
6570

skipif mysql # not compatible
query I rowsort label-4343
SELECT - CAST ( + 90 AS INTEGER ) * - 73 col0
----
6570

query I rowsort
SELECT DISTINCT 88 * - + ( 1 )
----
-88

query I rowsort
SELECT ALL + 91 * + ( - - 86 ) AS col1
----
7826

query I rowsort
SELECT ALL - 37 * 96 AS col2
----
-3552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4347
SELECT ALL 8 AS col0, COALESCE ( 20, - - CAST( NULL AS SIGNED ) )
----
8
20

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL 8 AS col0, COALESCE ( 20, - - CAST ( NULL AS INTEGER ) )
----
8
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT COUNT( ALL 82 )
----
1

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT COUNT ( ALL 82 )
----
1

query II rowsort
SELECT - 92 AS col0, - ( - 4 )
----
-92
4

query I rowsort
SELECT ALL - ( 21 ) * 34 AS col0
----
-714

query II rowsort
SELECT ALL - 87 AS col0, - 31 AS col1
----
-87
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT - CAST( 32 AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4352
SELECT - CAST ( 32 AS INTEGER ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT - 47 + + 24 DIV + - 62
----
-47

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 47 + + 24 / + - 62
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + MAX( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + MAX ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - MAX( 51 ) + + + ( - 76 ) + 14 * 67
----
811

skipif mysql # not compatible
query I rowsort label-4355
SELECT - MAX ( 51 ) + + + ( - 76 ) + 14 * 67
----
811

query II rowsort
SELECT 75 AS col1, 69 AS col0
----
75
69

query II rowsort
SELECT 12, + ( 65 ) AS col2
----
12
65

query I rowsort
SELECT - 87 * - 58 AS col2
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL + + COUNT( * ) + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + + COUNT ( * ) + - 93 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT - 27 * - CAST( - 56 AS SIGNED )
----
-1512

skipif mysql # not compatible
query I rowsort label-4360
SELECT - 27 * - CAST ( - 56 AS INTEGER )
----
-1512

query I rowsort
SELECT 46 + + 38 col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT ALL 10 AS col1, - COUNT( * )
----
10
-1

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL 10 AS col1, - COUNT ( * )
----
10
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT DISTINCT + 39 + - + 39 * + 11 + - 78 * - SUM( - 30 ) + + COALESCE ( + 67, + ( - 68 ) ) DIV - 64 AS col2
----
-2731

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + 39 + - + 39 * + 11 + - 78 * - SUM ( - 30 ) + + COALESCE ( + 67, + ( - 68 ) ) / - 64 AS col2
----
-2731

query I rowsort
SELECT ALL - + ( + - 48 ) + 27 col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4365
SELECT + 54 DIV 12 AS col2, + COUNT( + + 26 )
----
4
1

skipif mysql # not compatible
query II rowsort label-4365
SELECT + 54 / 12 AS col2, + COUNT ( + + 26 )
----
4
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT DISTINCT - - 2 col1, - MIN( + 64 ) AS col2
----
2
-64

skipif mysql # not compatible
query II rowsort label-4366
SELECT DISTINCT - - 2 col1, - MIN ( + 64 ) AS col2
----
2
-64

query I rowsort
SELECT ALL + - 14 + 18 + 13 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - + COUNT( 79 ) * - 4
----
4

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - + COUNT ( 79 ) * - 4
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4369
SELECT 46 DIV - 5 AS col1, - 76 AS col1
----
-9
-76

skipif mysql # not compatible
query II rowsort label-4369
SELECT 46 / - 5 AS col1, - 76 AS col1
----
-9
-76

query I rowsort
SELECT 2 * + 60 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT COUNT( * ) * + - ( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4371
SELECT COUNT ( * ) * + - ( - 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4372
SELECT 12 - - - ( - - 76 ) * + + SUM( - 81 ) * + 31 + + 40 AS col2, 20 + + CASE MAX( + + 29 ) WHEN + COALESCE ( 68, - ( 72 ) ) THEN 74 WHEN + 8 THEN + 21 + - COUNT( * ) END + - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
190888
NULL

skipif mysql # not compatible
query II rowsort label-4372
SELECT 12 - - - ( - - 76 ) * + + SUM ( - 81 ) * + 31 + + 40 AS col2, 20 + + CASE MAX ( + + 29 ) WHEN + COALESCE ( 68, - ( 72 ) ) THEN 74 WHEN + 8 THEN + 21 + - COUNT ( * ) END + - CAST ( NULL AS REAL ) * - COUNT ( * )
----
190888
NULL

query I rowsort
SELECT 15 * 25 AS col1
----
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4374
SELECT 21 DIV + 63 AS col0, 94 * COUNT( * ) * + + 1 + - - 14
----
0
108

skipif mysql # not compatible
query II rowsort label-4374
SELECT 21 / + 63 AS col0, 94 * COUNT ( * ) * + + 1 + - - 14
----
0
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL - CASE + + 68 WHEN + 38 THEN NULL WHEN - ( + + COUNT( * ) ) THEN + 2 * - 73 * + - 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - CASE + + 68 WHEN + 38 THEN NULL WHEN - ( + + COUNT ( * ) ) THEN + 2 * - 73 * + - 58 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT ALL 31 + 0 + MAX( + - 37 ) DIV - NULLIF ( - 53, ( 69 ) * + 56 ) + - 72
----
-41

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL 31 + 0 + MAX ( + - 37 ) / - NULLIF ( - 53, ( 69 ) * + 56 ) + - 72
----
-41

query I rowsort
SELECT - CASE + 42 WHEN - 66 + - 16 THEN 11 + + + 53 ELSE NULL END * - 80 + + - 46 * - 13 + - 80 + 83
----
NULL

query I rowsort
SELECT ( - + 27 ) - + - 91 + + 88
----
152

query I rowsort
SELECT 30 + + 51 + + 75 AS col2
----
156

query I rowsort
SELECT NULLIF ( 22, - ( - 4 ) ) + + - 94 AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4381
SELECT ALL 47 * - + 79, CAST( - 82 AS SIGNED ) AS col0
----
-3713
-82

skipif mysql # not compatible
query II rowsort label-4381
SELECT ALL 47 * - + 79, CAST ( - 82 AS INTEGER ) AS col0
----
-3713
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT COALESCE ( + 85, CASE - + ( + CAST( ( - COUNT( * ) ) AS SIGNED ) ) WHEN + 81 THEN - 13 + - + 30 END, + - 55 ) + + 39 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4382
SELECT COALESCE ( + 85, CASE - + ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ) ) WHEN + 81 THEN - 13 + - + 30 END, + - 55 ) + + 39 AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT MAX( ALL + 77 ) + NULLIF ( + CASE - - ( ( 47 ) ) WHEN + - 17 THEN NULL ELSE + ( ( 74 ) ) END, 75 * 74 - - CAST( NULL AS SIGNED ) ) + - ( 72 ) * + 36 AS col0
----
-2441

skipif mysql # not compatible
query I rowsort label-4383
SELECT MAX ( ALL + 77 ) + NULLIF ( + CASE - - ( ( 47 ) ) WHEN + - 17 THEN NULL ELSE + ( ( 74 ) ) END, 75 * 74 - - CAST ( NULL AS INTEGER ) ) + - ( 72 ) * + 36 AS col0
----
-2441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT 5 * COUNT( * ) * - 26 + + NULLIF ( 67, - CAST( NULL AS SIGNED ) - - + 23 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4384
SELECT 5 * COUNT ( * ) * - 26 + + NULLIF ( 67, - CAST ( NULL AS INTEGER ) - - + 23 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT 72 * - MAX( ( - - 85 ) ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT 72 * - MAX ( ( - - 85 ) ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4386
SELECT + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4387
SELECT - 75 DIV + 6 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4387
SELECT - 75 / + 6 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - 44 * + ( - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-4388
SELECT - 44 * + ( - COUNT ( * ) )
----
44

query I rowsort
SELECT - - 22 col0
----
22

query II rowsort
SELECT ALL 32 * 53 AS col2, 48 + + + 7 AS col2
----
1696
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + COUNT( * ) + 95 * + ( + 84 ) * + COUNT( * ) * + 87 - + 85 + - NULLIF ( - 11, - + 72 ) * + - 14 - 75 - 10 col1
----
693937

skipif mysql # not compatible
query I rowsort label-4391
SELECT + COUNT ( * ) + 95 * + ( + 84 ) * + COUNT ( * ) * + 87 - + 85 + - NULLIF ( - 11, - + 72 ) * + - 14 - 75 - 10 col1
----
693937

query I rowsort
SELECT ALL + - 92 * - + 67 * 85
----
523940

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + COUNT( * ) * 10
----
10

skipif mysql # not compatible
query I rowsort label-4393
SELECT + COUNT ( * ) * 10
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT ALL - CAST( NULL AS SIGNED ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - CAST ( NULL AS INTEGER ) + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL NULLIF ( + 94, 64 + COUNT( * ) - ( + MAX( DISTINCT + 93 ) ) + 6 * + - SUM( DISTINCT 53 ) - 99 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL NULLIF ( + 94, 64 + COUNT ( * ) - ( + MAX ( DISTINCT + 93 ) ) + 6 * + - SUM ( DISTINCT 53 ) - 99 ) AS col0
----
94

query I rowsort
SELECT ALL - + 79 + 7 + + 6
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT - 91 + - 69 - + COUNT( NULLIF ( + 90, - 14 ) ) + - 10 - 9 * + + 27 AS col2
----
-414

skipif mysql # not compatible
query I rowsort label-4397
SELECT - 91 + - 69 - + COUNT ( NULLIF ( + 90, - 14 ) ) + - 10 - 9 * + + 27 AS col2
----
-414

query II rowsort
SELECT DISTINCT COALESCE ( - + 93, + 5 ) AS col2, 60 AS col0
----
-93
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT + 27 + - - 73 DIV - 49 + + + 23
----
49

skipif mysql # not compatible
query I rowsort label-4399
SELECT + 27 + - - 73 / - 49 + + + 23
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT - CASE + COUNT( * ) WHEN + 22 THEN ( - 65 ) ELSE 99 END AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + 22 THEN ( - 65 ) ELSE 99 END AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT ALL - ( - MAX( DISTINCT 87 ) ), - 73 * - COUNT( * ) AS col2
----
87
73

skipif mysql # not compatible
query II rowsort label-4401
SELECT ALL - ( - MAX ( DISTINCT 87 ) ), - 73 * - COUNT ( * ) AS col2
----
87
73

query I rowsort
SELECT ALL 6 * + 61 - 91
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - 19 * SUM( - 27 ) + + - 15 * - + 93
----
1908

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 19 * SUM ( - 27 ) + + - 15 * - + 93
----
1908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT NULLIF ( 93, MIN( DISTINCT ( - - 95 ) ) ) DIV 56 + COALESCE ( - + 43, 42 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-4404
SELECT NULLIF ( 93, MIN ( DISTINCT ( - - 95 ) ) ) / 56 + COALESCE ( - + 43, 42 ) col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT 27 * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT 27 * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 37 * + - 68 * + + ( - - 52 ) col0
----
-130832

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT COUNT( DISTINCT - + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT COUNT ( DISTINCT - + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT MAX( DISTINCT - + 31 ) * + COALESCE ( + 58, - 55 * - COUNT( - 86 ) ) * - - 83 + - 14 + + + NULLIF ( - 58, - + 32 ) AS col1
----
-149306

skipif mysql # not compatible
query I rowsort label-4408
SELECT MAX ( DISTINCT - + 31 ) * + COALESCE ( + 58, - 55 * - COUNT ( - 86 ) ) * - - 83 + - 14 + + + NULLIF ( - 58, - + 32 ) AS col1
----
-149306

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT 82 DIV + 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4409
SELECT 82 / + 25 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL + 9 * + COALESCE ( SUM( ALL + 23 ), + 36 * 62 - + - 25 )
----
207

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + 9 * + COALESCE ( SUM ( ALL + 23 ), + 36 * 62 - + - 25 )
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-4411
SELECT COUNT( * ) AS col1, ( - 0 )
----
1
0

skipif mysql # not compatible
query II rowsort label-4411
SELECT COUNT ( * ) AS col1, ( - 0 )
----
1
0

query II rowsort
SELECT ALL - 27, 74 AS col1
----
-27
74

query I rowsort
SELECT - ( - + 53 ) * + + 87 col1
----
4611

query I rowsort
SELECT ALL 93 * - 63
----
-5859

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + MIN( DISTINCT - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4415
SELECT + MIN ( DISTINCT - 10 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4416
SELECT + - 5 * - COALESCE ( 36, 2, COUNT( * ) * - CAST( NULL AS SIGNED ) DIV - 19 * + - 48 + + 73 ) - + 58 + - 15 AS col0, 96 * - - 61 AS col0
----
107
5856

skipif mysql # not compatible
query II rowsort label-4416
SELECT + - 5 * - COALESCE ( 36, 2, COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - 19 * + - 48 + + 73 ) - + 58 + - 15 AS col0, 96 * - - 61 AS col0
----
107
5856

query II rowsort
SELECT ALL 72 AS col1, 35 + + - 46
----
72
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT - + CASE 17 WHEN + 17 * - CAST( NULL AS SIGNED ) THEN MIN( ALL - 28 ) END + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - + CASE 17 WHEN + 17 * - CAST ( NULL AS INTEGER ) THEN MIN ( ALL - 28 ) END + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + - 61 - + 20 + + COUNT( * ) + - ( - + ( 3 ) ) + + 50 + 43 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4419
SELECT + - 61 - + 20 + + COUNT ( * ) + - ( - + ( 3 ) ) + + 50 + 43 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4420
SELECT ALL - + COUNT( * ) + + - 47 + + 39 + - - COUNT( * ) / - + CASE - - 62 WHEN + COUNT( * ) - COUNT( * ) * CAST( 54 AS DECIMAL ) + COUNT( * ) * + CAST( + 95 AS SIGNED ) * 18 + - COUNT( * ) THEN 54 - - ( - 17 ) WHEN COUNT( * ) * + 34 THEN SUM( DISTINCT + ( + 19 ) ) WHEN 25 THEN NULL END * 47 + 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - + COUNT ( * ) + + - 47 + + 39 + - - COUNT ( * ) / - + CASE - - 62 WHEN + COUNT ( * ) - COUNT ( * ) * CAST ( 54 AS REAL ) + COUNT ( * ) * + CAST ( + 95 AS INTEGER ) * 18 + - COUNT ( * ) THEN 54 - - ( - 17 ) WHEN COUNT ( * ) * + 34 THEN SUM ( DISTINCT + ( + 19 ) ) WHEN 25 THEN NULL END * 47 + 45 col0
----
NULL

query I rowsort
SELECT ALL + + ( 75 ) + 39 * + 59 AS col0
----
2376

query I rowsort
SELECT ALL 61 + + 40 AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4423
SELECT ALL - 50, - 14 DIV COUNT( * ) AS col2
----
-50
-14

skipif mysql # not compatible
query II rowsort label-4423
SELECT ALL - 50, - 14 / COUNT ( * ) AS col2
----
-50
-14

query I rowsort
SELECT + + 79 + + 98 * + ( - 63 ) - 54 AS col0
----
-6149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT + NULLIF ( - - CAST( 42 AS SIGNED ), 10 ) - - + 51 + - 57 + - 52 * + + NULLIF ( + 67, + + 49 ) AS col0
----
-3448

skipif mysql # not compatible
query I rowsort label-4425
SELECT + NULLIF ( - - CAST ( 42 AS INTEGER ), 10 ) - - + 51 + - 57 + - 52 * + + NULLIF ( + 67, + + 49 ) AS col0
----
-3448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT 23 DIV - - COUNT( * ) + 46 * - 45
----
-2047

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT 23 / - - COUNT ( * ) + 46 * - 45
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - 98 + COUNT( - - 30 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - 98 + COUNT ( - - 30 ) col0
----
-97

query I rowsort
SELECT + + 34 * - 88 AS col1
----
-2992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT + - 18 DIV + - NULLIF ( - COUNT( * ), + - 69 )
----
-18

skipif mysql # not compatible
query I rowsort label-4429
SELECT + - 18 / + - NULLIF ( - COUNT ( * ), + - 69 )
----
-18

query I rowsort
SELECT - NULLIF ( + ( - + 17 ), + 73 )
----
17

query I rowsort
SELECT ALL ( + - 7 ) * 98 * 6 AS col2
----
-4116

query I rowsort
SELECT DISTINCT 84 - 24 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + 13 * + COUNT( DISTINCT - 16 ) * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4433
SELECT + 13 * + COUNT ( DISTINCT - 16 ) * + COUNT ( * )
----
13

query I rowsort
SELECT DISTINCT 19 * + - 4 AS col2
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4435
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col0, 32
----
NULL
32

skipif mysql # not compatible
query II rowsort label-4435
SELECT ( - CAST ( NULL AS REAL ) ) AS col0, 32
----
NULL
32

query I rowsort
SELECT + 77 * 58 AS col1
----
4466

query I rowsort
SELECT ( - + 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT + COALESCE ( - SUM( 79 ), COUNT( * ) + + 67, - 12 )
----
-79

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT + COALESCE ( - SUM ( 79 ), COUNT ( * ) + + 67, - 12 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT + SUM( + - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + SUM ( + - 4 ) AS col1
----
-4

query II rowsort
SELECT ALL + ( + 24 ), 91 + - - 11 AS col2
----
24
102

query I rowsort
SELECT DISTINCT - 23 * + 26 AS col0
----
-598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4442
SELECT - SUM( + COALESCE ( CAST( + 17 AS SIGNED ), CAST( - + 99 AS DECIMAL ) + - + 59 ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT - SUM ( + COALESCE ( CAST ( + 17 AS INTEGER ), CAST ( - + 99 AS REAL ) + - + 59 ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT ALL + 33 * + + 88 DIV + 22 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + 33 * + + 88 / + 22 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT COUNT( * ) * COUNT( * ) + + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( * ) * COUNT ( * ) + + + 52 AS col2
----
53

query I rowsort
SELECT - 76 - - 35
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4446
SELECT - COUNT( * ) + ( - 66 ) * 63 DIV - + ( + 52 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4446
SELECT - COUNT ( * ) + ( - 66 ) * 63 / - + ( + 52 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL COUNT( * ) * - 61 * 97 + NULLIF ( - - 20, - 66 / + 22 + + 61 ) AS col0
----
-5897

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL COUNT ( * ) * - 61 * 97 + NULLIF ( - - 20, - 66 / + 22 + + 61 ) AS col0
----
-5897

query I rowsort
SELECT - - 65 + - 93 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT DISTINCT - 0 * + 72 * 63 + - - COUNT( + 99 ) * + - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - 0 * + 72 * 63 + - - COUNT ( + 99 ) * + - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT ALL + - 12 / + - 39 - + 22 * + COALESCE ( 98, - 56 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL + - 12 / + - 39 - + 22 * + COALESCE ( 98, - 56 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL 33 * - 36 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL 33 * - 36 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + SUM( DISTINCT - CASE - ( 97 ) WHEN 7 THEN - 84 / 23 WHEN - 56 * 97 THEN + - 52 * - 58 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + SUM ( DISTINCT - CASE - ( 97 ) WHEN 7 THEN - 84 / 23 WHEN - 56 * 97 THEN + - 52 * - 58 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT - - COUNT( * ) + - - CASE - MAX( 89 ) WHEN COUNT( * ) + + 66 THEN + + 24 - - 75 * + 3 * + - CAST( NULL AS SIGNED ) WHEN - + ( 40 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT - - COUNT ( * ) + - - CASE - MAX ( 89 ) WHEN COUNT ( * ) + + 66 THEN + + 24 - - 75 * + 3 * + - CAST ( NULL AS INTEGER ) WHEN - + ( 40 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - MIN( 59 ) * - + 82 * - COUNT( * ) * COALESCE ( - COUNT( * ), + 94, 43 + + ( 53 ) * - 91 + + + CASE + 86 WHEN + 72 * - 70 THEN + 51 END )
----
4838

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MIN ( 59 ) * - + 82 * - COUNT ( * ) * COALESCE ( - COUNT ( * ), + 94, 43 + + ( 53 ) * - 91 + + + CASE + 86 WHEN + 72 * - 70 THEN + 51 END )
----
4838

query I rowsort
SELECT - + COALESCE ( - 6, - - 47 ) AS col1
----
6

query I rowsort
SELECT ALL + 69 - - 52
----
121

query I rowsort
SELECT - + 89 * - 16 + - 91 AS col1
----
1333

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - 9 + - COUNT( - 48 ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 9 + - COUNT ( - 48 ) col1
----
-10

query I rowsort
SELECT ALL + ( - 1 ) * - + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + 96 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4460
SELECT + 96 * COUNT ( * )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT + COUNT( * ) - CASE + + 56 WHEN - 5 + + 90 THEN - + 17 + + 35 * - 96 * ( - 65 ) * + - 47 + - COUNT( * ) WHEN - 41 * 32 THEN - COALESCE ( - ( - 96 ), - 93 / 59, - CAST( NULL AS SIGNED ) + - 68 ) END / - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT + COUNT ( * ) - CASE + + 56 WHEN - 5 + + 90 THEN - + 17 + + 35 * - 96 * ( - 65 ) * + - 47 + - COUNT ( * ) WHEN - 41 * 32 THEN - COALESCE ( - ( - 96 ), - 93 / 59, - CAST ( NULL AS INTEGER ) + - 68 ) END / - 85
----
NULL

query I rowsort
SELECT + 90 + - 20
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4463
SELECT + COUNT( * ) DIV - 71 * + COUNT( * ) * + - 29 * + + NULLIF ( - - 65, - + AVG ( ALL + - CAST( NULL AS SIGNED ) ) ) AS col2, 55 + - 13 + + 82 * - - CASE - 18 WHEN + 88 THEN NULL ELSE - - 58 * - 95 END * + 90 - 42 * + 84
----
0
-40667286

skipif mysql # not compatible
query II rowsort label-4463
SELECT + COUNT ( * ) / - 71 * + COUNT ( * ) * + - 29 * + + NULLIF ( - - 65, - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) ) AS col2, 55 + - 13 + + 82 * - - CASE - 18 WHEN + 88 THEN NULL ELSE - - 58 * - 95 END * + 90 - 42 * + 84
----
0
-40667286

query I rowsort
SELECT - 60 * + 67
----
-4020

onlyif mysql # DIV for integer division: 
query II rowsort label-4465
SELECT ALL 72 DIV 65 * + 23 col0, 73 DIV - 91
----
23
0

skipif mysql # not compatible
query II rowsort label-4465
SELECT ALL 72 / 65 * + 23 col0, 73 / - 91
----
23
0

query I rowsort
SELECT + 78 + - + ( - 6 )
----
84

query I rowsort
SELECT - NULLIF ( + 95, 35 )
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4468
SELECT ALL 24 * 36 * - - 58 * - 43 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 24 * 36 * - - 58 * - 43 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT ALL CAST( NULL AS SIGNED ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 0 * 95
----
0

query I rowsort
SELECT ALL 18 * 11 * 98
----
19404

query I rowsort
SELECT DISTINCT 29 * + 51 AS col2
----
1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT + 72 * + 85 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + 72 * + 85 + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 93, + 98 * - 38 AS col0
----
93
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL 64 + + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL 64 + + COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT SUM( - 75 ) * - 82 + + 23 + + + 27 * + 2 + - 38 * - + 71 + 21
----
8946

skipif mysql # not compatible
query I rowsort label-4476
SELECT SUM ( - 75 ) * - 82 + + 23 + + + 27 * + 2 + - 38 * - + 71 + 21
----
8946

query II rowsort
SELECT + 1 AS col2, + 26 AS col2
----
1
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT ALL 58 + + 66 DIV - - ( 15 ) + - ( - 9 )
----
71

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL 58 + + 66 / - - ( 15 ) + - ( - 9 )
----
71

query I rowsort
SELECT - 90 * + - 27 * + + 46 + - 13
----
111767

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - COUNT( DISTINCT + - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - COUNT ( DISTINCT + - 85 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4481
SELECT ALL - CAST( NULL AS DECIMAL ) + + - 27 + - COALESCE ( + + 81, + 64 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - CAST ( NULL AS REAL ) + + - 27 + - COALESCE ( + + 81, + 64 ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 38 + - 88 col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT 66 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT 66 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL + + 85 + + MAX( 69 )
----
154

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + + 85 + + MAX ( 69 )
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT 65, + MIN( + - 98 ) AS col1
----
65
-98

skipif mysql # not compatible
query II rowsort label-4485
SELECT 65, + MIN ( + - 98 ) AS col1
----
65
-98

query I rowsort
SELECT 0 - - + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT + - ( - COUNT( * ) ) * COUNT( * ) + + 25 col0
----
26

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT + - ( - COUNT ( * ) ) * COUNT ( * ) + + 25 col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT ( 21 ) / - 45 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT ( 21 ) / - 45 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 89 * + 63
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT NULLIF ( - - 14, - SUM( + + ( 36 ) ) ) * - - 81 AS col2
----
1134

skipif mysql # not compatible
query I rowsort label-4490
SELECT NULLIF ( - - 14, - SUM ( + + ( 36 ) ) ) * - - 81 AS col2
----
1134

query II rowsort
SELECT - + 23 col0, - 98 * CASE + 15 WHEN - 13 + + 71 THEN NULL ELSE - 60 END AS col2
----
-23
5880

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT 20 AS col2, 98 / + 45 / - CASE - COUNT( * ) WHEN + 63 THEN + 20 END col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-4492
SELECT 20 AS col2, 98 / + 45 / - CASE - COUNT ( * ) WHEN + 63 THEN + 20 END col0
----
20
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4493
SELECT - + 8 * + + 45 - + MIN( DISTINCT 35 ) DIV - 98 * - - 49 col1, COALESCE ( 56, 71, - COUNT( * ) + 79 ) - - 30
----
-360
86

skipif mysql # not compatible
query II rowsort label-4493
SELECT - + 8 * + + 45 - + MIN ( DISTINCT 35 ) / - 98 * - - 49 col1, COALESCE ( 56, 71, - COUNT ( * ) + 79 ) - - 30
----
-360
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL - + 13 * + 40 + + + COUNT( * ) + + - 64 AS col2
----
-583

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - + 13 * + 40 + + + COUNT ( * ) + + - 64 AS col2
----
-583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4495
SELECT ALL - - COUNT( * ) DIV + + 81 * - COALESCE ( 20, - + 46 * - 99 + 71 DIV 86 * + 79 - 29 + - 53 * + CAST( - 73 AS SIGNED ), 22 * + + 23 * 19, - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - - COUNT ( * ) / + + 81 * - COALESCE ( 20, - + 46 * - 99 + 71 / 86 * + 79 - 29 + - 53 * + CAST ( - 73 AS INTEGER ), 22 * + + 23 * 19, - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-4496
SELECT CAST ( 99 AS INTEGER )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT 94 + - MAX( + 61 ) * + 51 AS col0
----
-3017

skipif mysql # not compatible
query I rowsort label-4497
SELECT 94 + - MAX ( + 61 ) * + 51 AS col0
----
-3017

query I rowsort
SELECT 38 * 10 AS col1
----
380

query I rowsort
SELECT 57 + 23 + - + ( - 70 ) * + 69 AS col2
----
4910

query I rowsort
SELECT 60 - + 84 + - 72
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL + 50 * - MAX( - 38 ) AS col1
----
1900

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + 50 * - MAX ( - 38 ) AS col1
----
1900

query I rowsort
SELECT 40 * 86
----
3440

query II rowsort
SELECT 30 AS col0, + 26
----
30
26

query I rowsort
SELECT DISTINCT 83 + - 49 + - - 8 - - + 94 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL COUNT( * ) + - + 35 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL COUNT ( * ) + - + 35 AS col2
----
-34

query II rowsort
SELECT ALL - 78 + - NULLIF ( - 1, - 81 ) AS col2, 51
----
-77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + CASE + 10 WHEN + 51 THEN + + 91 * 96 + - - 69 END / - COUNT( * ) + + - 26 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT + CASE + 10 WHEN + 51 THEN + + 91 * 96 + - - 69 END / - COUNT ( * ) + + - 26 + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ( + - 39 ) * + ( SUM( DISTINCT + 80 ) ) col2
----
-3120

skipif mysql # not compatible
query I rowsort label-4508
SELECT ( + - 39 ) * + ( SUM ( DISTINCT + 80 ) ) col2
----
-3120

query I rowsort
SELECT ALL 82 + + 41
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT COUNT( * ), + 57 AS col1
----
1
57

skipif mysql # not compatible
query II rowsort label-4510
SELECT COUNT ( * ), + 57 AS col1
----
1
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4511
SELECT + 46, ( - + CAST( NULL AS SIGNED ) ) col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4511
SELECT + 46, ( - + CAST ( NULL AS INTEGER ) ) col1
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT 71 - - NULLIF ( + SUM( - 80 ), 4 ) - - 28
----
19

skipif mysql # not compatible
query I rowsort label-4512
SELECT 71 - - NULLIF ( + SUM ( - 80 ), 4 ) - - 28
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT DISTINCT - 42 AS col0, + CASE + + 18 WHEN - 87 THEN - COUNT( * ) ELSE NULL END AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4513
SELECT DISTINCT - 42 AS col0, + CASE + + 18 WHEN - 87 THEN - COUNT ( * ) ELSE NULL END AS col1
----
-42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT DISTINCT + 61 + - + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) - 48 / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT + 61 + - + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - 48 / + 89
----
NULL

query I rowsort
SELECT ALL + - 41 + - 4
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT DISTINCT 27 DIV + - 60 - + 55
----
-55

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT 27 / + - 60 - + 55
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL + 63 + CAST( + 78 AS SIGNED ) + - + COUNT( * ) - + CASE - ( - CAST( 87 AS SIGNED ) ) WHEN + 19 THEN NULL ELSE - 46 END AS col1
----
186

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + 63 + CAST ( + 78 AS INTEGER ) + - + COUNT ( * ) - + CASE - ( - CAST ( 87 AS INTEGER ) ) WHEN + 19 THEN NULL ELSE - 46 END AS col1
----
186

query I rowsort
SELECT ( 76 ) * 59
----
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + - NULLIF ( - - 83, + CASE - + COUNT( * ) WHEN + + 86 + - 68 THEN + MAX( ALL 80 ) ELSE NULL END + 70 ) * - 9 + 49 * + 88
----
5059

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - NULLIF ( - - 83, + CASE - + COUNT ( * ) WHEN + + 86 + - 68 THEN + MAX ( ALL 80 ) ELSE NULL END + 70 ) * - 9 + 49 * + 88
----
5059

onlyif mysql # aggregate syntax: 
query II rowsort label-4520
SELECT - 70 * ( + 92 ) + - - NULLIF ( - + 74, + COUNT( - 51 ) + - - COUNT( * ) + - - COUNT( * ) ) * + 71 + - 29 + + + 94 AS col0, - 75 AS col1
----
-11629
-75

skipif mysql # not compatible
query II rowsort label-4520
SELECT - 70 * ( + 92 ) + - - NULLIF ( - + 74, + COUNT ( - 51 ) + - - COUNT ( * ) + - - COUNT ( * ) ) * + 71 + - 29 + + + 94 AS col0, - 75 AS col1
----
-11629
-75

query I rowsort
SELECT + 62 * - 81 * - - ( - - NULLIF ( 97, - 51 + + 85 ) ) * - 73 - - 46
----
35560828

query II rowsort
SELECT + - 45, - 72 col0
----
-45
-72

query I rowsort
SELECT + 46 + 75
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT 91 * - - ( CASE WHEN NOT 17 NOT IN ( - 17, 25 + - 34 + + - 91 + + 95 ) THEN NULL WHEN NOT NULL BETWEEN ( + 30 * + - 21 / - + NULLIF ( - - ( + + 12 ), + 69 ) + - COUNT( * ) * 37 ) AND ( NULL ) THEN + 65 * - 89 + 74 ELSE NULL END ) + + 16 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT 91 * - - ( CASE WHEN NOT 17 NOT IN ( - 17, 25 + - 34 + + - 91 + + 95 ) THEN NULL WHEN NOT NULL BETWEEN ( + 30 * + - 21 / - + NULLIF ( - - ( + + 12 ), + 69 ) + - COUNT ( * ) * 37 ) AND ( NULL ) THEN + 65 * - 89 + 74 ELSE NULL END ) + + 16 * COUNT ( * )
----
NULL

query I rowsort
SELECT 35 * 54 AS col2
----
1890

query I rowsort
SELECT DISTINCT + 0 * 71 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT ALL - 67 - - MIN( - 14 ) DIV + + 15 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - 67 - - MIN ( - 14 ) / + + 15 AS col2
----
-67

query I rowsort
SELECT ( + 62 ) * - - 57 AS col1
----
3534

query II rowsort
SELECT ALL + 17, + 11 AS col0
----
17
11

onlyif mysql # DIV for integer division: 
query II rowsort label-4530
SELECT ALL - 17 DIV + + 9 AS col1, 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-4530
SELECT ALL - 17 / + + 9 AS col1, 19 AS col1
----
-1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT + CAST( + + ( - ( + COUNT( * ) ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4531
SELECT + CAST ( + + ( - ( + COUNT ( * ) ) ) AS INTEGER )
----
-1

query I rowsort
SELECT 94 + - 89 * + 9
----
-707

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - 27 * + 35 + + 16 * + 42 * + - 22 * + MIN( + - 57 ) AS col2
----
841743

skipif mysql # not compatible
query I rowsort label-4533
SELECT - 27 * + 35 + + 16 * + 42 * + - 22 * + MIN ( + - 57 ) AS col2
----
841743

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - MAX( ALL - + 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4534
SELECT - MAX ( ALL - + 32 ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4535
SELECT 69 + + 23 - - CASE - - 1 WHEN - - 56 * 82 THEN NULL WHEN + - 52 THEN NULL ELSE + CAST( + COUNT( * ) AS SIGNED ) END + - 12 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4535
SELECT 69 + + 23 - - CASE - - 1 WHEN - - 56 * 82 THEN NULL WHEN + - 52 THEN NULL ELSE + CAST ( + COUNT ( * ) AS INTEGER ) END + - 12 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT ALL - 9 + - - 60, - COUNT( - + 24 ) + - - 28 + + CASE + 77 WHEN - 88 THEN NULL WHEN 21 * - 43 + - - 13 + + 70 THEN - 2 ELSE + - ( - - NULLIF ( + 54, 57 - NULLIF ( COUNT( * ), + 78 / 28 ) ) ) * 76 END + COUNT( * ) * 93 AS col0
----
51
-3984

skipif mysql # not compatible
query II rowsort label-4536
SELECT ALL - 9 + - - 60, - COUNT ( - + 24 ) + - - 28 + + CASE + 77 WHEN - 88 THEN NULL WHEN 21 * - 43 + - - 13 + + 70 THEN - 2 ELSE + - ( - - NULLIF ( + 54, 57 - NULLIF ( COUNT ( * ), + 78 / 28 ) ) ) * 76 END + COUNT ( * ) * 93 AS col0
----
51
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - COUNT( * ) + + 84
----
83

skipif mysql # not compatible
query I rowsort label-4537
SELECT - COUNT ( * ) + + 84
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4538
SELECT - 89 * - 36, 15 + - COUNT( * ) + + 57 * - 79 * + 24 + + 76 + + - 67 + + COUNT( * ) - + 71 / NULLIF ( + COUNT( * ), + 5 + - 54 ) / CAST( NULL AS SIGNED ) AS col2
----
3204
NULL

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 89 * - 36, 15 + - COUNT ( * ) + + 57 * - 79 * + 24 + + 76 + + - 67 + + COUNT ( * ) - + 71 / NULLIF ( + COUNT ( * ), + 5 + - 54 ) / CAST ( NULL AS INTEGER ) AS col2
----
3204
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT - 64 + - CAST( - 93 AS SIGNED ) + - + ( - - 59 ) * + - NULLIF ( COUNT( * ), 3 / + 12 + ( + + MAX( - + NULLIF ( - 61, - + 10 ) ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - 64 + - CAST ( - 93 AS INTEGER ) + - + ( - - 59 ) * + - NULLIF ( COUNT ( * ), 3 / + 12 + ( + + MAX ( - + NULLIF ( - 61, - + 10 ) ) ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - 74 + COUNT( * ) * - 90
----
-164

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - 74 + COUNT ( * ) * - 90
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL MAX( ( - 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL MAX ( ( - 6 ) )
----
-6

query II rowsort
SELECT - ( - 6 ) + - 10 + 43 * 17 * - + ( 81 ) AS col0, + 75 AS col0
----
-59215
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT DISTINCT + COUNT( * ) * + 98 AS col2, 95 * - ( - NULLIF ( - ( - COUNT( * ) ), - COUNT( * ) * - + 81 ) )
----
98
95

skipif mysql # not compatible
query II rowsort label-4543
SELECT DISTINCT + COUNT ( * ) * + 98 AS col2, 95 * - ( - NULLIF ( - ( - COUNT ( * ) ), - COUNT ( * ) * - + 81 ) )
----
98
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - 47 + - 6 - + MIN( DISTINCT 40 ) * + 21 + 99 * - 88
----
-9605

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - 47 + - 6 - + MIN ( DISTINCT 40 ) * + 21 + 99 * - 88
----
-9605

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT - COUNT( * ) + - + 79 AS col2, + COALESCE ( + + ( + 99 ), - 39 ) * + 52
----
-80
5148

skipif mysql # not compatible
query II rowsort label-4545
SELECT - COUNT ( * ) + - + 79 AS col2, + COALESCE ( + + ( + 99 ), - 39 ) * + 52
----
-80
5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT ALL - 74 + COUNT( * ) + + + 2 + - 29 * MIN( - 68 ) + + - 42 DIV - 39
----
1902

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - 74 + COUNT ( * ) + + + 2 + - 29 * MIN ( - 68 ) + + - 42 / - 39
----
1902

query I rowsort
SELECT ALL 29 * - - 76 * - 93 AS col2
----
-204972

query I rowsort
SELECT DISTINCT - 2 * + 29
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - COUNT( * ) * + 72 + - 44
----
-116

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - COUNT ( * ) * + 72 + - 44
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT 64 * + 51 - + COALESCE ( - 31, + + 74 * - - 79 * - COUNT( + + 99 ) + - ( - 83 ) + 63 ) AS col0
----
3295

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT 64 * + 51 - + COALESCE ( - 31, + + 74 * - - 79 * - COUNT ( + + 99 ) + - ( - 83 ) + 63 ) AS col0
----
3295

query II rowsort
SELECT + 86 + + 76 AS col0, 32 + + 76 AS col2
----
162
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL + - 40 * + COUNT( * ) - - 78 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + - 40 * + COUNT ( * ) - - 78 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT + NULLIF ( COUNT( * ), 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4553
SELECT + NULLIF ( COUNT ( * ), 37 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4554
SELECT - + 51 DIV COALESCE ( + COUNT( 88 ), CAST( NULL AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4554
SELECT - + 51 / COALESCE ( + COUNT ( 88 ), CAST ( NULL AS INTEGER ) )
----
-51

query I rowsort
SELECT + - 45 * 47 AS col0
----
-2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4556
SELECT DISTINCT - COUNT( * ) DIV 99 * 34, + 69 col0
----
0
69

skipif mysql # not compatible
query II rowsort label-4556
SELECT DISTINCT - COUNT ( * ) / 99 * 34, + 69 col0
----
0
69

query I rowsort
SELECT ALL + + 83 AS col1
----
83

query I rowsort
SELECT ALL + CASE + - 57 WHEN + 31 * - CASE - NULLIF ( 24, 46 - - 87 ) WHEN + 69 * + ( - 78 ) THEN NULL WHEN + 7 THEN + 38 WHEN - + 53 THEN + 27 END - 96 THEN + + 27 - 37 WHEN 55 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4559
SELECT + 75 DIV - - 96 * COALESCE ( COUNT( * ), + 80 + - 31, 66 + - + 4 + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 75 / - - 96 * COALESCE ( COUNT ( * ), + 80 + - 31, 66 + - + 4 + 62 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT DISTINCT - 79 DIV 34 + + 9 + + + 74 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - 79 / 34 + + 9 + + + 74 AS col1
----
81

query I rowsort
SELECT + 89 * NULLIF ( 43, + 79 ) AS col2
----
3827

query I rowsort
SELECT - 33 - - + 52 AS col2
----
19

query I rowsort
SELECT ALL ( ( + 9 ) ) * - 43 AS col0
----
-387

query I rowsort
SELECT + + 49 * 67 - + 68 + + - 38 AS col0
----
3177

query I rowsort
SELECT 44 * + 30 + + 12 * - + 68 + + 38
----
542

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL SUM( - 90 ) * - 56 + + NULLIF ( + + 24, 85 ) * - - 61
----
6504

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL SUM ( - 90 ) * - 56 + + NULLIF ( + + 24, 85 ) * - - 61
----
6504

query I rowsort
SELECT ALL 19 * + + ( + 2 ) * + 92 AS col0
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + MAX( DISTINCT - - 48 ) - + ( - + 31 )
----
79

skipif mysql # not compatible
query I rowsort label-4568
SELECT + MAX ( DISTINCT - - 48 ) - + ( - + 31 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT SUM( ALL 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4569
SELECT SUM ( ALL 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL 13 + - NULLIF ( - MAX( 63 ), MIN( 72 ) + + NULLIF ( 88, - + 96 ) + + 72 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL 13 + - NULLIF ( - MAX ( 63 ), MIN ( 72 ) + + NULLIF ( 88, - + 96 ) + + 72 ) AS col0
----
76

query II rowsort
SELECT 93, + 8 AS col0
----
93
8

query I rowsort
SELECT + 95 * - 55 AS col2
----
-5225

query I rowsort
SELECT + 1 + + 94 col2
----
95

query I rowsort
SELECT DISTINCT 7 + + 94 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4575
SELECT - CAST( - SUM( ALL - CAST( NULL AS DECIMAL ) ) AS SIGNED ) + - COUNT( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - CAST ( - SUM ( ALL - CAST ( NULL AS REAL ) ) AS INTEGER ) + - COUNT ( + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - COUNT( * ) - + 97 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4576
SELECT - COUNT ( * ) - + 97 AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL 41 * - - COALESCE ( - - CAST( + 82 AS SIGNED ), 59 ) AS col0
----
3362

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL 41 * - - COALESCE ( - - CAST ( + 82 AS INTEGER ), 59 ) AS col0
----
3362

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT MAX( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT MAX ( 52 )
----
52

query I rowsort
SELECT + 65 * - 65
----
-4225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT - CAST( 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-4580
SELECT - CAST ( 51 AS INTEGER )
----
-51

query I rowsort
SELECT ALL 47 - - 48 + 79 + + + 57
----
231

query I rowsort
SELECT ALL 6 * + + 39
----
234

query I rowsort
SELECT ALL ( 54 ) AS col0
----
54

query I rowsort
SELECT - 70 * - + 69
----
4830

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT + 90 DIV - 27 + - 52
----
-55

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 90 / - 27 + - 52
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT - + 55 * + ( CAST( - - 61 AS SIGNED ) )
----
-3355

skipif mysql # not compatible
query I rowsort label-4586
SELECT - + 55 * + ( CAST ( - - 61 AS INTEGER ) )
----
-3355

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT - COALESCE ( 76, + + 39 DIV - - 39 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4587
SELECT - COALESCE ( 76, + + 39 / - - 39 ) AS col2
----
-76

query I rowsort
SELECT - - 80 - - - 96 * - + ( + 23 ) + 53 * 84
----
6740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4589
SELECT + - 72 col2, 73 + + - CAST( NULL AS SIGNED ) - 98 + + 63 / - + MIN( - 64 )
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-4589
SELECT + - 72 col2, 73 + + - CAST ( NULL AS INTEGER ) - 98 + + 63 / - + MIN ( - 64 )
----
-72
NULL

query I rowsort
SELECT + 90 * 53 * 65 - - 99 AS col0
----
310149

query II rowsort
SELECT ALL + - 7, + 33 AS col2
----
-7
33

query I rowsort
SELECT - 3 * + 29 + 4 AS col0
----
-83

query I rowsort
SELECT ALL - 50 * 97 + + + 89
----
-4761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4594
SELECT - 11 * 25 + 24 + + CASE NULLIF ( COUNT( * ), MIN( CAST( 72 AS SIGNED ) ) ) WHEN + 53 * + - 0 - CASE ( - 78 ) WHEN + 51 * + CASE + - ( - 83 ) WHEN - SUM( ALL 7 ) * 0 THEN 80 WHEN 39 DIV COALESCE ( + 1, COUNT( CAST( 81 AS SIGNED ) ), ( COUNT( * ) ) + MAX( - 55 + + 90 ) ) THEN ( ( 35 ) ) END THEN - 18 WHEN + 77 THEN NULL ELSE NULL END THEN NULL ELSE NULLIF ( - COUNT( * ), + 67 ) * + 82 + - CAST( - 3 AS SIGNED ) END + 59 * + 33 * + SUM( ALL - 15 * - 57 + - 45 ) * NULLIF ( 38 * + NULLIF ( + 46 DIV + 52, + 91 DIV 71 ), - SUM( ALL - CAST( NULL AS SIGNED ) ) ) AS col0
----
-330

skipif mysql # not compatible
query I rowsort label-4594
SELECT - 11 * 25 + 24 + + CASE NULLIF ( COUNT ( * ), MIN ( CAST ( 72 AS INTEGER ) ) ) WHEN + 53 * + - 0 - CASE ( - 78 ) WHEN + 51 * + CASE + - ( - 83 ) WHEN - SUM ( ALL 7 ) * 0 THEN 80 WHEN 39 / COALESCE ( + 1, COUNT ( CAST ( 81 AS INTEGER ) ), ( COUNT ( * ) ) + MAX ( - 55 + + 90 ) ) THEN ( ( 35 ) ) END THEN - 18 WHEN + 77 THEN NULL ELSE NULL END THEN NULL ELSE NULLIF ( - COUNT ( * ), + 67 ) * + 82 + - CAST ( - 3 AS INTEGER ) END + 59 * + 33 * + SUM ( ALL - 15 * - 57 + - 45 ) * NULLIF ( 38 * + NULLIF ( + 46 / + 52, + 91 / 71 ), - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL + + CAST( - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + + CAST ( - 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT 95 / - 93 * - 82 + + 91 + CASE + COUNT( * ) WHEN 65 * - + 49 THEN + 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT 95 / - 93 * - 82 + + 91 + CASE + COUNT ( * ) WHEN 65 * - + 49 THEN + 65 END AS col0
----
NULL

query I rowsort
SELECT 90 * + 34 - - 58
----
3118

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + + CASE + - COUNT( ALL + 55 ) WHEN + 48 + - - ( - 53 ) THEN + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT + + CASE + - COUNT ( ALL + 55 ) WHEN + 48 + - - ( - 53 ) THEN + 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT DISTINCT + COALESCE ( + 88, + - 69, + - 98 ) * - 64 + + COUNT( * ) + + 80 * + + 79, + ( + 15 ) AS col0
----
689
15

skipif mysql # not compatible
query II rowsort label-4599
SELECT DISTINCT + COALESCE ( + 88, + - 69, + - 98 ) * - 64 + + COUNT ( * ) + + 80 * + + 79, + ( + 15 ) AS col0
----
689
15

query II rowsort
SELECT + 16 AS col0, 9
----
16
9

query I rowsort
SELECT ALL - 34 + - 19 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT DISTINCT 60 * + + 78 AS col2, COUNT( * )
----
4680
1

skipif mysql # not compatible
query II rowsort label-4602
SELECT DISTINCT 60 * + + 78 AS col2, COUNT ( * )
----
4680
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT ALL + 91 + NULLIF ( + + CASE + 33 WHEN - ( + 18 ) + + 88 + - + ( - - 21 ) * - COUNT( * ) * + + 40 * 0 + 91 + - + MIN( DISTINCT CAST( - 47 AS SIGNED ) ) * + 92 * - - 80 - - 31 THEN NULL WHEN - 53 / 17 THEN 51 ELSE NULL END, 73 / - 61 + - 60 ) + + 68 * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + 91 + NULLIF ( + + CASE + 33 WHEN - ( + 18 ) + + 88 + - + ( - - 21 ) * - COUNT ( * ) * + + 40 * 0 + 91 + - + MIN ( DISTINCT CAST ( - 47 AS INTEGER ) ) * + 92 * - - 80 - - 31 THEN NULL WHEN - 53 / 17 THEN 51 ELSE NULL END, 73 / - 61 + - 60 ) + + 68 * 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT 46 + - NULLIF ( 57, + + ( + 23 ) + + COUNT( * ) ) * - + 62 * COALESCE ( + 65, - - 72 + + + ( + - 18 ) * 91 * - + 76 + 10 + - - SUM( - 81 ) * - 86 + + + 92, 24 * - ( 82 * + 26 ), ( 49 ) )
----
229756

skipif mysql # not compatible
query I rowsort label-4604
SELECT 46 + - NULLIF ( 57, + + ( + 23 ) + + COUNT ( * ) ) * - + 62 * COALESCE ( + 65, - - 72 + + + ( + - 18 ) * 91 * - + 76 + 10 + - - SUM ( - 81 ) * - 86 + + + 92, 24 * - ( 82 * + 26 ), ( 49 ) )
----
229756

query I rowsort
SELECT 49 * + + 47 * - + 74
----
-170422

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT 91 * - - 5 AS col0, SUM( ALL - 76 ) * 32 * 56 + + + COALESCE ( 61, 62 - + 2 )
----
455
-136131

skipif mysql # not compatible
query II rowsort label-4606
SELECT 91 * - - 5 AS col0, SUM ( ALL - 76 ) * 32 * 56 + + + COALESCE ( 61, 62 - + 2 )
----
455
-136131

query I rowsort
SELECT DISTINCT 1 * 1 AS col2
----
1

query I rowsort
SELECT ALL 59 + - ( - 50 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT COUNT( * ) + MIN( - 56 ) + 98 + - 9
----
34

skipif mysql # not compatible
query I rowsort label-4609
SELECT COUNT ( * ) + MIN ( - 56 ) + 98 + - 9
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4610
SELECT DISTINCT MAX( 72 ) - COALESCE ( + 97, + - 19, - - 67 + - + 91 * - - 20 - + COUNT( * ) + - 11 DIV - 70, 61 ) + + MAX( + - 91 ) AS col0, - 85 AS col0
----
-116
-85

skipif mysql # not compatible
query II rowsort label-4610
SELECT DISTINCT MAX ( 72 ) - COALESCE ( + 97, + - 19, - - 67 + - + 91 * - - 20 - + COUNT ( * ) + - 11 / - 70, 61 ) + + MAX ( + - 91 ) AS col0, - 85 AS col0
----
-116
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT NULLIF ( 21, ( + + COUNT( - 98 ) ) ) * 12 AS col2
----
252

skipif mysql # not compatible
query I rowsort label-4611
SELECT NULLIF ( 21, ( + + COUNT ( - 98 ) ) ) * 12 AS col2
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT ALL MIN( ALL 77 ) DIV 54 * ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL MIN ( ALL 77 ) / 54 * ( - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT 25 + + + ( - 48 ) + - - 53 * - 50 col1
----
-2673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4614
SELECT CAST( NULL AS SIGNED ) + + + 47 AS col0, - 3 AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4614
SELECT CAST ( NULL AS INTEGER ) + + + 47 AS col0, - 3 AS col1
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + 12 DIV + + 29
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 12 / + + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL - COALESCE ( - 89, + COUNT( * ) * + 84 ) * 48
----
4272

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - COALESCE ( - 89, + COUNT ( * ) * + 84 ) * 48
----
4272

query I rowsort
SELECT - 21 + + + 87 AS col1
----
66

query I rowsort
SELECT ALL - - 95 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4619
SELECT DISTINCT + 12 * - 15 / + 90 * + CAST( NULL AS SIGNED ) AS col0, MIN( - + 53 )
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-4619
SELECT DISTINCT + 12 * - 15 / + 90 * + CAST ( NULL AS INTEGER ) AS col0, MIN ( - + 53 )
----
NULL
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT 20 * 16 AS col0, COUNT( - ( - 64 ) ) - 28 + + COUNT( * ) AS col1
----
320
-26

skipif mysql # not compatible
query II rowsort label-4620
SELECT 20 * 16 AS col0, COUNT ( - ( - 64 ) ) - 28 + + COUNT ( * ) AS col1
----
320
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - 48 * + - COUNT( * ) + - 4 col1
----
44

skipif mysql # not compatible
query I rowsort label-4621
SELECT - 48 * + - COUNT ( * ) + - 4 col1
----
44

query I rowsort
SELECT + - ( + 71 )
----
-71

query I rowsort
SELECT - 62 * - 30 + - 54 AS col2
----
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + CASE + - 89 WHEN - + 41 + + - 52 THEN NULL WHEN + MIN( DISTINCT + - 37 ) THEN + - 30 WHEN + 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT + CASE + - 89 WHEN - + 41 + + - 52 THEN NULL WHEN + MIN ( DISTINCT + - 37 ) THEN + - 30 WHEN + 68 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT CAST( - ( + 13 ) AS SIGNED ) + - 85 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4625
SELECT CAST ( - ( + 13 ) AS INTEGER ) + - 85 AS col1
----
-98

query I rowsort
SELECT + 28 * - 65 + 3
----
-1817

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT 44 * + 6 + + 1 * - 57 * - MIN( + + 63 ) * - COUNT( * ) AS col0
----
-3327

skipif mysql # not compatible
query I rowsort label-4627
SELECT 44 * + 6 + + 1 * - 57 * - MIN ( + + 63 ) * - COUNT ( * ) AS col0
----
-3327

query I rowsort
SELECT DISTINCT - 5 + - ( 64 ) + - - 96 AS col0
----
27

query I rowsort
SELECT + + 90 * + 82 + + 78 AS col1
----
7458

query I rowsort
SELECT DISTINCT - - 50 + 23 + - - 42 * - 51 + - 25
----
-2094

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT + 78 + - MAX( - ( + 25 ) ) col1
----
103

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + 78 + - MAX ( - ( + 25 ) ) col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + 5 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + 5 * COUNT ( * )
----
5

query I rowsort
SELECT 49 - + 44 AS col1
----
5

query I rowsort
SELECT 85 * - ( + 43 ) AS col2
----
-3655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT ALL - COALESCE ( COUNT( * ), + ( - 10 ), + 89 DIV - 16 + + + 91 + - - ( - 82 ) + - + ( - 85 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - COALESCE ( COUNT ( * ), + ( - 10 ), + 89 / - 16 + + + 91 + - - ( - 82 ) + - + ( - 85 ) ) col1
----
-1

query I rowsort
SELECT 51 * + ( 3 ) + 67 + - 37
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT 56 AS col2, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-4637
SELECT 56 AS col2, - COUNT ( * )
----
56
-1

query I rowsort
SELECT ALL + 60 - + 45 + + COALESCE ( + 72, 37 ) * 38 * - 61
----
-166881

query I rowsort
SELECT 75 * + 80
----
6000

query I rowsort
SELECT 61 * - 62 * + 76 - - 4
----
-287428

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4641
SELECT SUM( ALL 54 ) - + COUNT( * ) - + - ( - COUNT( * ) ) * 4 * - - 46 + ( + CAST( NULL AS DECIMAL ) ) * + MIN( + 34 ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT SUM ( ALL 54 ) - + COUNT ( * ) - + - ( - COUNT ( * ) ) * 4 * - - 46 + ( + CAST ( NULL AS REAL ) ) * + MIN ( + 34 ) * - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT COUNT( * ) * + - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4642
SELECT COUNT ( * ) * + - 34 AS col1
----
-34

query I rowsort
SELECT ALL ( - 8 ) * ( 43 )
----
-344

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT DISTINCT + 43 * 66 * + 60 col0, + COUNT( * ) + + MAX( + 36 )
----
170280
37

skipif mysql # not compatible
query II rowsort label-4644
SELECT DISTINCT + 43 * 66 * + 60 col0, + COUNT ( * ) + + MAX ( + 36 )
----
170280
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT ( - 68 ) DIV - - MIN( - + 18 )
----
3

skipif mysql # not compatible
query I rowsort label-4645
SELECT ( - 68 ) / - - MIN ( - + 18 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL + COUNT( * ) * + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + COUNT ( * ) * + - 69
----
-69

query I rowsort
SELECT 0 * + 31 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - MAX( 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4648
SELECT - MAX ( 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL COUNT( * ) * - 15
----
-15

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL COUNT ( * ) * - 15
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-4650
SELECT ALL 88, + 61 DIV + - 91 AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-4650
SELECT ALL 88, + 61 / + - 91 AS col2
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT ( COUNT( 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT ( COUNT ( 76 ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4652
SELECT ALL + - CAST( NULL AS DECIMAL ) + - 82 * ( 0 ) + + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + - CAST ( NULL AS REAL ) + - 82 * ( 0 ) + + - 86
----
NULL

query I rowsort
SELECT DISTINCT 67 + - 5 * - CASE + COALESCE ( - 99, - - 92 + - 40 * - 72 * - 32 * - + 57, - + 16 * - 46 ) WHEN + ( + 73 ) THEN - 53 * + - 88 * 36 + - 9 + - + 42 ELSE + 77 * 21 END + 69 * 79
----
13603

query II rowsort
SELECT DISTINCT 55 AS col0, - COALESCE ( - 78, - NULLIF ( - ( - 42 ), 56 * - ( - 40 ) + - + 20 ) )
----
55
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT - CAST( 63 AS SIGNED ) * + ( 84 )
----
-5292

skipif mysql # not compatible
query I rowsort label-4655
SELECT - CAST ( 63 AS INTEGER ) * + ( 84 )
----
-5292

query I rowsort
SELECT + + 27 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT - ( + 37 ) DIV 18 + 40
----
38

skipif mysql # not compatible
query I rowsort label-4657
SELECT - ( + 37 ) / 18 + 40
----
38

query I rowsort
SELECT + 21 - 56 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT ALL - 56 DIV COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - 56 / COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT ALL + ( - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT - 79 * + SUM( DISTINCT 77 ) + - + 60
----
-6143

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT - 79 * + SUM ( DISTINCT 77 ) + - + 60
----
-6143

query I rowsort
SELECT ALL + 43 * + 8 + + + 20 - - 76 col0
----
440

query I rowsort
SELECT DISTINCT 23 * 73
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - 79 * - 38 * - 20 + + 94 + ( 32 ) * - COUNT( * ) AS col1
----
-59978

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - 79 * - 38 * - 20 + + 94 + ( 32 ) * - COUNT ( * ) AS col1
----
-59978

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + NULLIF ( + + 94, COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4665
SELECT + NULLIF ( + + 94, COUNT ( * ) ) AS col2
----
94

query I rowsort
SELECT + 72 * 1 AS col0
----
72

query I rowsort
SELECT + 11 * - 15 * - + 18 + - 51 col1
----
2919

query I rowsort
SELECT 65 * - 35 + + - 92 AS col2
----
-2367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT ALL 30 * - 59 - - - COUNT( * ) DIV + COUNT( * )
----
-1771

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL 30 * - 59 - - - COUNT ( * ) / + COUNT ( * )
----
-1771

query I rowsort
SELECT ALL + 56 * - + 13
----
-728

onlyif mysql # aggregate syntax: 
query II rowsort label-4671
SELECT COUNT( * ) AS col0, 31 + 16
----
1
47

skipif mysql # not compatible
query II rowsort label-4671
SELECT COUNT ( * ) AS col0, 31 + 16
----
1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT + 74 * CAST( NULL AS SIGNED ) * - 30 * - 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + 74 * CAST ( NULL AS INTEGER ) * - 30 * - 55 col0
----
NULL

query I rowsort
SELECT - 70 * + + 41
----
-2870

query I rowsort
SELECT + ( - 25 ) + - 53
----
-78

query I rowsort
SELECT - 52 + + 19 + + 7 + + 91 * + 16 + + 28 + - + 61 * + 77 * + 33 + - 48 + + 13
----
-153578

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT - COUNT( * ) + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - COUNT ( * ) + - 56
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL MIN( + - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL MIN ( + - 28 )
----
-28

query I rowsort
SELECT ALL - 23 * - 51 AS col1
----
1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL - COALESCE ( COUNT( + - CAST( NULL AS SIGNED ) ), + 44 * + 95 ) + + COUNT( * ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - COALESCE ( COUNT ( + - CAST ( NULL AS INTEGER ) ), + 44 * + 95 ) + + COUNT ( * ) * + 44
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL CASE - + 77 WHEN + 60 THEN + 18 WHEN + 11 * - - 55 + + 41 + + + 72 * - 52 * + - 95 THEN - CAST( 41 AS SIGNED ) END + + + 19 - - - COUNT( * ) / - + 2 + + - 23 * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL CASE - + 77 WHEN + 60 THEN + 18 WHEN + 11 * - - 55 + + 41 + + + 72 * - 52 * + - 95 THEN - CAST ( 41 AS INTEGER ) END + + + 19 - - - COUNT ( * ) / - + 2 + + - 23 * + 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT - 26 + + + COUNT( * ), 27 + - 49 col0
----
-25
-22

skipif mysql # not compatible
query II rowsort label-4681
SELECT - 26 + + + COUNT ( * ), 27 + - 49 col0
----
-25
-22

query I rowsort
SELECT ALL - 63 + - ( - 94 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT - 70 DIV + 19 col2
----
-3

skipif mysql # not compatible
query I rowsort label-4683
SELECT - 70 / + 19 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - CASE + 8 WHEN + - COUNT( * ) THEN - 0 WHEN - 13 - + 55 / - 6 - + 3 + - 5 + + 21 THEN NULL WHEN + + 41 THEN + 73 * 47 ELSE - 98 + + - ( - 66 ) * + COALESCE ( + 19, + ( + - 23 ) + - 94 - ( + 8 ) * + 84 ) END * 16
----
-18496

skipif mysql # not compatible
query I rowsort label-4684
SELECT - CASE + 8 WHEN + - COUNT ( * ) THEN - 0 WHEN - 13 - + 55 / - 6 - + 3 + - 5 + + 21 THEN NULL WHEN + + 41 THEN + 73 * 47 ELSE - 98 + + - ( - 66 ) * + COALESCE ( + 19, + ( + - 23 ) + - 94 - ( + 8 ) * + 84 ) END * 16
----
-18496

query I rowsort
SELECT ALL + 71 + - 10 AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT CASE + 93 WHEN - 56 THEN CAST( NULL AS SIGNED ) WHEN + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT CASE + 93 WHEN - 56 THEN CAST ( NULL AS INTEGER ) WHEN + 13 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT + 66 + + - MAX( DISTINCT - - 93 ) + - 59 * + 96 AS col2
----
-5691

skipif mysql # not compatible
query I rowsort label-4687
SELECT + 66 + + - MAX ( DISTINCT - - 93 ) + - 59 * + 96 AS col2
----
-5691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT ( + ( + - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ( + ( + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT + CAST( - 86 AS SIGNED ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-4689
SELECT + CAST ( - 86 AS INTEGER ) col1
----
-86

query II rowsort
SELECT DISTINCT + 80, 68 AS col2
----
80
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4691
SELECT ALL + 25 DIV + 6 - MAX( ALL - CAST( - 69 AS SIGNED ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + 25 / + 6 - MAX ( ALL - CAST ( - 69 AS INTEGER ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - ( - COALESCE ( + 54, COUNT( * ) + + 50, 59 * - 9 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4692
SELECT - ( - COALESCE ( + 54, COUNT ( * ) + + 50, 59 * - 9 ) ) AS col0
----
54

query I rowsort
SELECT COALESCE ( + 13, - - 92 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT + COALESCE ( + 25, SUM( ALL - 30 ) + + - 65 ) DIV + COUNT( * ) + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COALESCE ( + 25, SUM ( ALL - 30 ) + + - 65 ) / + COUNT ( * ) + - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT ALL 51 DIV - 9 - 35 DIV 23 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL 51 / - 9 - 35 / 23 * - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT + 49 * - 77
----
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + CASE + 25 WHEN 80 THEN 92 + + 44 - COUNT( * ) * 26 * - 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT + CASE + 25 WHEN 80 THEN 92 + + 44 - COUNT ( * ) * 26 * - 42 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4698
SELECT DISTINCT 89 DIV + - 10, - 94 AS col2
----
-8
-94

skipif mysql # not compatible
query II rowsort label-4698
SELECT DISTINCT 89 / + - 10, - 94 AS col2
----
-8
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT 88 / CASE + ( + ( + 39 ) ) WHEN + 31 THEN MIN( - 97 ) * + CAST( NULL AS SIGNED ) + COUNT( * ) + - 91 + + + 0 + 81 / - + 76 * + ( - + 52 ) END + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT 88 / CASE + ( + ( + 39 ) ) WHEN + 31 THEN MIN ( - 97 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 91 + + + 0 + 81 / - + 76 * + ( - + 52 ) END + + 72
----
NULL

query II rowsort
SELECT ( - 56 ) AS col2, 18 * - + 90 * 56 AS col1
----
-56
-90720

query I rowsort
SELECT DISTINCT 42 * 51 AS col0
----
2142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL 0 * - CAST( - + 51 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 0 * - CAST ( - + 51 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT + 82 * + 29 AS col2, 25 * 18 col0
----
2378
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT + CAST( - - 42 AS SIGNED ) * + CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CAST ( - - 42 AS INTEGER ) * + CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4705
SELECT DISTINCT + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT CASE - - 29 WHEN 72 THEN NULL WHEN + COUNT( * ) * - COUNT( * ) THEN 68 / - - 48 * - 87 - 80 ELSE CAST( 56 AS SIGNED ) + - MAX( ALL + 8 ) * 48 END AS col1
----
-328

skipif mysql # not compatible
query I rowsort label-4706
SELECT CASE - - 29 WHEN 72 THEN NULL WHEN + COUNT ( * ) * - COUNT ( * ) THEN 68 / - - 48 * - 87 - 80 ELSE CAST ( 56 AS INTEGER ) + - MAX ( ALL + 8 ) * 48 END AS col1
----
-328

query I rowsort
SELECT - 41 + + 28 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4708
SELECT ALL - 11 * CAST( NULL AS SIGNED ) * ( COALESCE ( + 49, - 58 ) ) + + COUNT( * ), COUNT( * ) - - 41 + CASE - + 7 WHEN + + 19 + 27 THEN 82 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL - 11 * CAST ( NULL AS INTEGER ) * ( COALESCE ( + 49, - 58 ) ) + + COUNT ( * ), COUNT ( * ) - - 41 + CASE - + 7 WHEN + + 19 + 27 THEN 82 END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT - 33 * - COALESCE ( 55, + 55 ) + - - 63 + + MIN( DISTINCT + - 29 ) * ( + + 1 ) + + MIN( + - 27 )
----
1822

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - 33 * - COALESCE ( 55, + 55 ) + - - 63 + + MIN ( DISTINCT + - 29 ) * ( + + 1 ) + + MIN ( + - 27 )
----
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT + 78 * - + COUNT( * ) * 12 * + 28 * 73 + + COUNT( * )
----
-1913183

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + 78 * - + COUNT ( * ) * 12 * + 28 * 73 + + COUNT ( * )
----
-1913183

query I rowsort
SELECT DISTINCT COALESCE ( 25, + 39, + + 24 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - - CASE 97 WHEN + - 40 * NULLIF ( - 85, - 45 + - COUNT( * ) / - 10 ) + + 59 + 19 + - + 43 THEN NULL WHEN - + 64 THEN + 80 - - 74 WHEN - 98 + - 86 THEN COUNT( ALL - 67 ) * 95 + ( + AVG ( DISTINCT + 96 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT - - CASE 97 WHEN + - 40 * NULLIF ( - 85, - 45 + - COUNT ( * ) / - 10 ) + + 59 + 19 + - + 43 THEN NULL WHEN - + 64 THEN + 80 - - 74 WHEN - 98 + - 86 THEN COUNT ( ALL - 67 ) * 95 + ( + AVG ( DISTINCT + 96 ) ) END AS col2
----
NULL

query I rowsort
SELECT - + 6 * - - ( - + ( + ( + - 37 ) ) ) * 48 AS col0
----
-10656

query I rowsort
SELECT ALL - - 47 + - 71 - - 16 + 98 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT MAX( DISTINCT 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4715
SELECT MAX ( DISTINCT 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT COUNT( * ) * + COALESCE ( - 26, - + 10 + - 92 + 27 ) + - - 61 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4716
SELECT COUNT ( * ) * + COALESCE ( - 26, - + 10 + - 92 + 27 ) + - - 61 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT 44 DIV 2
----
22

skipif mysql # not compatible
query I rowsort label-4717
SELECT 44 / 2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT - COUNT( * ) * 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - COUNT ( * ) * 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL + + SUM( ALL + NULLIF ( + - ( - 5 ), - + 27 * - ( - 98 ) ) ) - + 78
----
-73

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + + SUM ( ALL + NULLIF ( + - ( - 5 ), - + 27 * - ( - 98 ) ) ) - + 78
----
-73

query I rowsort
SELECT 23 + - - 83 * - - 53 AS col0
----
4422

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT + 40 - + SUM( - - 44 ) * - 35 * - - COUNT( * ) * 52
----
80120

skipif mysql # not compatible
query I rowsort label-4721
SELECT + 40 - + SUM ( - - 44 ) * - 35 * - - COUNT ( * ) * 52
----
80120

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT COUNT( * ) * - 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4722
SELECT COUNT ( * ) * - 70 AS col0
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4723
SELECT - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT 15 + + 53 * - + 99 * + 43 + + - COUNT( + 42 ) - - 57
----
-225550

skipif mysql # not compatible
query I rowsort label-4724
SELECT 15 + + 53 * - + 99 * + 43 + + - COUNT ( + 42 ) - - 57
----
-225550

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT + COALESCE ( 10, 18 + - + COUNT( * ) + + ( + 5 ) * + - 35 * - 11 * - + 47 * 85 ), + ( - 55 ) col2
----
10
-55

skipif mysql # not compatible
query II rowsort label-4725
SELECT + COALESCE ( 10, 18 + - + COUNT ( * ) + + ( + 5 ) * + - 35 * - 11 * - + 47 * 85 ), + ( - 55 ) col2
----
10
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + 9 * + COUNT( * ) * + 16 + - 60 + + 30 * + 17 * + + COUNT( * ) + 92
----
686

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 9 * + COUNT ( * ) * + 16 + - 60 + + 30 * + 17 * + + COUNT ( * ) + 92
----
686

query II rowsort
SELECT ALL - 49 AS col0, ( 65 ) AS col2
----
-49
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT + 3 * + 99 / CAST( NULL AS SIGNED ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT + 3 * + 99 / CAST ( NULL AS INTEGER ) + 0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 56, 68 * - - 86 * - ( - ( + 30 ) ) * 61 )
----
-56

query I rowsort
SELECT DISTINCT - 74 * + + 69
----
-5106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT CAST( NULL AS SIGNED ) / - - 59 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT CAST ( NULL AS INTEGER ) / - - 59 + 83
----
NULL

query II rowsort
SELECT ALL - 65 AS col0, + 85 AS col1
----
-65
85

query I rowsort
SELECT 0 * + + 69
----
0

query II rowsort
SELECT ALL - 36, 73 col1
----
-36
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT + COALESCE ( - CASE - - 82 WHEN ( + + COUNT( * ) ) * + 86 + - + ( + 83 ) THEN + 52 + - 84 * 43 * + 43 - - - 41 WHEN - - 8 + 36 * - AVG ( - - 12 ) THEN 81 END, - 89, + 88 * + 46 - - 90 ) * - CAST( 43 AS SIGNED ) + 85
----
3912

skipif mysql # not compatible
query I rowsort label-4735
SELECT + COALESCE ( - CASE - - 82 WHEN ( + + COUNT ( * ) ) * + 86 + - + ( + 83 ) THEN + 52 + - 84 * 43 * + 43 - - - 41 WHEN - - 8 + 36 * - AVG ( - - 12 ) THEN 81 END, - 89, + 88 * + 46 - - 90 ) * - CAST ( 43 AS INTEGER ) + 85
----
3912

query II rowsort
SELECT 64 AS col0, - 92 AS col0
----
64
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4737
SELECT 34 col1, 95 - CAST( NULL AS SIGNED ) + - + 42
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4737
SELECT 34 col1, 95 - CAST ( NULL AS INTEGER ) + - + 42
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT COUNT( * ) * 9 + + 18 * 69
----
1251

skipif mysql # not compatible
query I rowsort label-4738
SELECT COUNT ( * ) * 9 + + 18 * 69
----
1251

query I rowsort
SELECT 19 + - - 77 AS col2
----
96

query II rowsort
SELECT 90 * + ( + 17 ) AS col2, ( - ( 93 ) ) + + 86 AS col0
----
1530
-7

query I rowsort
SELECT 26 * + ( + 7 ) * + ( - 84 )
----
-15288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT - 64 * + CAST( NULL AS SIGNED ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT - 64 * + CAST ( NULL AS INTEGER ) + 99
----
NULL

query II rowsort
SELECT ALL - 64, 30 AS col2
----
-64
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT 88 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT 88 * + COUNT ( * )
----
88

query I rowsort
SELECT DISTINCT + 84 + + 0 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4746
SELECT 16 * + ( + + 44 ) AS col1, + CASE COALESCE ( - + 68, NULLIF ( - + 29, 35 ) / - 34 ) WHEN 45 THEN + + 94 WHEN - - 63 / - 47 THEN NULL END + + + COUNT( * )
----
704
NULL

skipif mysql # not compatible
query II rowsort label-4746
SELECT 16 * + ( + + 44 ) AS col1, + CASE COALESCE ( - + 68, NULLIF ( - + 29, 35 ) / - 34 ) WHEN 45 THEN + + 94 WHEN - - 63 / - 47 THEN NULL END + + + COUNT ( * )
----
704
NULL

query I rowsort
SELECT DISTINCT 52 * 48 * + 64 * - + 48 AS col0
----
-7667712

query I rowsort
SELECT 39 * 26 + - 21
----
993

query I rowsort
SELECT DISTINCT 78 + + 11 AS col0
----
89

query II rowsort
SELECT ALL 40 col1, 0 col0
----
40
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4751
SELECT DISTINCT 0 DIV - 62 DIV + + COUNT( * ) + + 68
----
68

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT 0 / - 62 / + + COUNT ( * ) + + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT + COUNT( * ) - - + 78
----
79

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + COUNT ( * ) - - + 78
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4753
SELECT 94, 89 DIV + 54 AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-4753
SELECT 94, 89 / + 54 AS col0
----
94
1

query I rowsort
SELECT - 88 + + 44
----
-44

query I rowsort
SELECT ALL 57 - - - 5
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT AVG ( - - 68 ) + - - MAX( ALL - 53 ) * - CAST( NULL AS SIGNED ) + - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT AVG ( - - 68 ) + - - MAX ( ALL - 53 ) * - CAST ( NULL AS INTEGER ) + - + 79
----
NULL

query I rowsort
SELECT DISTINCT - 78 * 66 * - - NULLIF ( - - 41, + - 21 + - 24 ) AS col2
----
-211068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT SUM( ALL - 68 ) - - - 51 + - - 26 / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT SUM ( ALL - 68 ) - - - 51 + - - 26 / - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + 37 + + 5 + - 82 * - COUNT( * ) col1
----
124

skipif mysql # not compatible
query I rowsort label-4759
SELECT + 37 + + 5 + - 82 * - COUNT ( * ) col1
----
124

query I rowsort
SELECT ALL - 28 - + 58 + 81
----
-5

query I rowsort
SELECT ( + - 92 ) + ( + 77 ) AS col0
----
-15

query II rowsort
SELECT - 92, - 99 AS col2
----
-92
-99

query I rowsort
SELECT + 65 + - 79 * - 91 AS col0
----
7254

query I rowsort
SELECT ALL 74 * - 67 + - 36 AS col2
----
-4994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4765
SELECT DISTINCT + COUNT( * ) DIV + 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + COUNT ( * ) / + 16 AS col2
----
0

query I rowsort
SELECT 94 * + 73
----
6862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT ALL + ( + 88 ) * - CAST( NULL AS SIGNED ) - + 22 * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + ( + 88 ) * - CAST ( NULL AS INTEGER ) - + 22 * - 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT + 24 DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + 24 / + - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT COUNT( * ) * - 97 * - COUNT( * ) * - 20 AS col1
----
-1940

skipif mysql # not compatible
query I rowsort label-4769
SELECT COUNT ( * ) * - 97 * - COUNT ( * ) * - 20 AS col1
----
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL + COUNT( ALL + 76 ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + COUNT ( ALL + 76 ) * - 52
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT 93 * CAST( 34 AS SIGNED )
----
3162

skipif mysql # not compatible
query I rowsort label-4771
SELECT 93 * CAST ( 34 AS INTEGER )
----
3162

query I rowsort
SELECT DISTINCT - ( + 50 ) col1
----
-50

query I rowsort
SELECT ALL - NULLIF ( + + 15, + 49 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + 39 * + COUNT( * ) + + 70
----
109

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + 39 * + COUNT ( * ) + + 70
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT 19 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT 19 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL - NULLIF ( CASE + 2 WHEN - 50 + + + ( + 3 ) * COUNT( * ) THEN + COUNT( * ) WHEN + 37 THEN - 63 ELSE NULL END, 75 ) * - ( 59 ) + ( + MIN( + - 56 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - NULLIF ( CASE + 2 WHEN - 50 + + + ( + 3 ) * COUNT ( * ) THEN + COUNT ( * ) WHEN + 37 THEN - 63 ELSE NULL END, 75 ) * - ( 59 ) + ( + MIN ( + - 56 ) ) col1
----
NULL

query II rowsort
SELECT DISTINCT - ( - - 49 ), + NULLIF ( 28, 87 ) AS col0
----
-49
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT DISTINCT - 26 + 36 DIV - MIN( + + 43 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - 26 + 36 / - MIN ( + + 43 ) col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT SUM( - - 61 ) + + + 88 + 51 DIV + 16 + + ( 38 ) * + 60 + + ( 25 ) * - 14
----
2082

skipif mysql # not compatible
query I rowsort label-4779
SELECT SUM ( - - 61 ) + + + 88 + 51 / + 16 + + ( 38 ) * + 60 + + ( 25 ) * - 14
----
2082

query I rowsort
SELECT DISTINCT + ( - 48 ) + + 60 + - 65 + - - 76 * + + 71
----
5343

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - 50 * + 34 * + + ( + COUNT( * ) ) + 74
----
-1626

skipif mysql # not compatible
query I rowsort label-4781
SELECT - 50 * + 34 * + + ( + COUNT ( * ) ) + 74
----
-1626

query I rowsort
SELECT ALL 89 * + 11 * 96 AS col2
----
93984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT - - 79 / + 76 * + 94 * - ( + 12 ) * + 90 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT - - 79 / + 76 * + 94 * - ( + 12 ) * + 90 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 64 - + 67 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT - COUNT( ALL + 68 ) AS col0, 65
----
-1
65

skipif mysql # not compatible
query II rowsort label-4785
SELECT - COUNT ( ALL + 68 ) AS col0, 65
----
-1
65

query I rowsort
SELECT + 77 - + - 24 + - 90
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + COUNT( * ) * - 46 * 2 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + COUNT ( * ) * - 46 * 2 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - 49 * COUNT( + + 86 )
----
-49

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 49 * COUNT ( + + 86 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - - MAX( - 37 ) + - 46 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4789
SELECT - - MAX ( - 37 ) + - 46 AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT + - 79 DIV + 43
----
-1

skipif mysql # not compatible
query I rowsort label-4790
SELECT + - 79 / + 43
----
-1

query I rowsort
SELECT + 52 * - + ( + - 34 ) AS col2
----
1768

query I rowsort
SELECT + + 5 * 43
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + SUM( DISTINCT - + 81 ) - - + 81 * + - MIN( DISTINCT - 94 )
----
7533

skipif mysql # not compatible
query I rowsort label-4793
SELECT + SUM ( DISTINCT - + 81 ) - - + 81 * + - MIN ( DISTINCT - 94 )
----
7533

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - COUNT( * ) * + 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4794
SELECT - COUNT ( * ) * + 81 AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + 93 * - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4796
SELECT + 93 * - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - + 0 * ( - COUNT( * ) ) + - - 19 - - 68
----
87

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - + 0 * ( - COUNT ( * ) ) + - - 19 - - 68
----
87

query I rowsort
SELECT ALL - NULLIF ( - 15, + 30 ) + + - 97 AS col2
----
-82

query I rowsort
SELECT - ( + 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT ALL 60 + - 58 - + - CASE - - ( + 51 ) WHEN - 53 THEN NULL WHEN + 85 THEN - 86 WHEN MAX( + ( + 20 ) ) THEN NULL ELSE + 66 + - COUNT( * ) END - - 4 - - 7 * + - 77 * - COALESCE ( 5, 0 * - - COUNT( * ) * - COALESCE ( COUNT( ALL + 69 ), + 11, + + NULLIF ( 1, - COUNT( * ) * 6 + 3 ) * + SUM( + COALESCE ( + 50, + COALESCE ( ( 96 ), - 48 ) ) ) + CASE - ( + 81 ) + - COUNT( * ) WHEN AVG ( ALL - ( 2 ) ) THEN NULL ELSE - SUM( - 3 ) + + 95 END DIV 13 ) * 65 + - ( 29 - 52 ), + 54 DIV 99, + 47 + 2 )
----
2766

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL 60 + - 58 - + - CASE - - ( + 51 ) WHEN - 53 THEN NULL WHEN + 85 THEN - 86 WHEN MAX ( + ( + 20 ) ) THEN NULL ELSE + 66 + - COUNT ( * ) END - - 4 - - 7 * + - 77 * - COALESCE ( 5, 0 * - - COUNT ( * ) * - COALESCE ( COUNT ( ALL + 69 ), + 11, + + NULLIF ( 1, - COUNT ( * ) * 6 + 3 ) * + SUM ( + COALESCE ( + 50, + COALESCE ( ( 96 ), - 48 ) ) ) + CASE - ( + 81 ) + - COUNT ( * ) WHEN AVG ( ALL - ( 2 ) ) THEN NULL ELSE - SUM ( - 3 ) + + 95 END / 13 ) * 65 + - ( 29 - 52 ), + 54 / 99, + 47 + 2 )
----
2766

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4801
SELECT + CASE + 35 WHEN + AVG ( DISTINCT ( + + 60 ) ) / + + 80 / - COUNT( * ) + - + 18 THEN COALESCE ( - - 32, + 9 * + 81 ) + + + 64 ELSE NULL END + + CAST( + - 85 AS DECIMAL ) + - ( + 41 ) / - + 41 + - 2 + + 50 * + 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT + CASE + 35 WHEN + AVG ( DISTINCT ( + + 60 ) ) / + + 80 / - COUNT ( * ) + - + 18 THEN COALESCE ( - - 32, + 9 * + 81 ) + + + 64 ELSE NULL END + + CAST ( + - 85 AS REAL ) + - ( + 41 ) / - + 41 + - 2 + + 50 * + 37 col2
----
NULL

query I rowsort
SELECT - 72 - + - 13
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4803
SELECT + 42 + CASE + + CAST( - 25 AS DECIMAL ) WHEN + + SUM( + 85 ) THEN + NULLIF ( 82, - 64 ) DIV 68 * + 90 + 59 + 1 * 79 + + COUNT( * ) ELSE - + 73 END AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4803
SELECT + 42 + CASE + + CAST ( - 25 AS REAL ) WHEN + + SUM ( + 85 ) THEN + NULLIF ( 82, - 64 ) / 68 * + 90 + 59 + 1 * 79 + + COUNT ( * ) ELSE - + 73 END AS col1
----
-31

query I rowsort
SELECT - 24 * + 35 * - - 69
----
-57960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT DISTINCT - ( 55 ) * - CASE 53 WHEN 62 * 96 * + 83 THEN 13 * - ( + 47 ) * - + CASE - 43 WHEN - - 75 + 28 THEN - 49 + + - NULLIF ( - CAST( NULL AS SIGNED ), - + 28 * + 74 + - - CASE 47 WHEN + COUNT( * ) THEN + 3 ELSE + 66 / + NULLIF ( - 62, 67 ) END ) + CAST( ( ( + 85 ) ) AS SIGNED ) / + ( - AVG ( ALL + 73 ) * + 60 ) WHEN + COUNT( * ) * 41 THEN 13 * 23 ELSE COUNT( * ) END + + ( CAST( NULL AS SIGNED ) ) END * - 47 + ( MAX( 80 ) ) / - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT - ( 55 ) * - CASE 53 WHEN 62 * 96 * + 83 THEN 13 * - ( + 47 ) * - + CASE - 43 WHEN - - 75 + 28 THEN - 49 + + - NULLIF ( - CAST ( NULL AS INTEGER ), - + 28 * + 74 + - - CASE 47 WHEN + COUNT ( * ) THEN + 3 ELSE + 66 / + NULLIF ( - 62, 67 ) END ) + CAST ( ( ( + 85 ) ) AS INTEGER ) / + ( - AVG ( ALL + 73 ) * + 60 ) WHEN + COUNT ( * ) * 41 THEN 13 * 23 ELSE COUNT ( * ) END + + ( CAST ( NULL AS INTEGER ) ) END * - 47 + ( MAX ( 80 ) ) / - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL - 45 * - + 48 * + 11 + + + COUNT( * )
----
23761

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 45 * - + 48 * + 11 + + + COUNT ( * )
----
23761

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 3 * + COUNT( * ) + - + 14 * ( + 40 ) + - 87 + - 38
----
-682

skipif mysql # not compatible
query I rowsort label-4807
SELECT 3 * + COUNT ( * ) + - + 14 * ( + 40 ) + - 87 + - 38
----
-682

query II rowsort
SELECT DISTINCT + 48 AS col2, 49
----
48
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT ALL + 66 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + 66 / - 63
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4810
SELECT ALL - ( - COUNT( ALL - 72 ) ) * 0 - - + NULLIF ( + 0, + - NULLIF ( - 11, - 85 * + COUNT( * ) + 15 ) / MAX( - - 34 ) ) * - 49 + - ( + COUNT( * ) ) + + 78 + - + 18 * - ( + CAST( NULL AS SIGNED ) ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - ( - COUNT ( ALL - 72 ) ) * 0 - - + NULLIF ( + 0, + - NULLIF ( - 11, - 85 * + COUNT ( * ) + 15 ) / MAX ( - - 34 ) ) * - 49 + - ( + COUNT ( * ) ) + + 78 + - + 18 * - ( + CAST ( NULL AS INTEGER ) ) - - 88 AS col0
----
NULL

query I rowsort
SELECT + 28 * + + 19
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL + MIN( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + MIN ( + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - CASE + - MIN( + + 78 ) WHEN 97 THEN + + 10 + + 61 + - 59 * - - 90 * + - 13 * + + ( - 19 ) END * + 24 * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - CASE + - MIN ( + + 78 ) WHEN 97 THEN + + 10 + + 61 + - 59 * - - 90 * + - 13 * + + ( - 19 ) END * + 24 * 49 AS col2
----
NULL

query I rowsort
SELECT - 22 * 97
----
-2134

query I rowsort
SELECT - + 19 * + ( + 45 ) * - 55 + - + 71 - + + COALESCE ( + 82, - 13, - + CASE + + 91 WHEN - + 4 THEN - 84 WHEN - 64 THEN + 53 + - - 94 + - - 80 + 83 * - 93 ELSE + 6 END ) AS col0
----
46872

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + ( + SUM( + + 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + ( + SUM ( + + 58 ) )
----
58

query I rowsort
SELECT - 47 * 6 * - 21
----
5922

query I rowsort
SELECT ALL + 44 * + - 44
----
-1936

query I rowsort
SELECT ALL + ( + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL + 94 * - CASE ( - 37 ) WHEN + - CAST( NULL AS SIGNED ) THEN - + COALESCE ( COUNT( + - 50 ), + 50 ) ELSE + 84 + - - 58 END AS col2
----
-13348

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + 94 * - CASE ( - 37 ) WHEN + - CAST ( NULL AS INTEGER ) THEN - + COALESCE ( COUNT ( + - 50 ), + 50 ) ELSE + 84 + - - 58 END AS col2
----
-13348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT - - SUM( ( - + 41 ) ) * - 59 * CAST( 10 AS SIGNED ) AS col1
----
24190

skipif mysql # not compatible
query I rowsort label-4821
SELECT - - SUM ( ( - + 41 ) ) * - 59 * CAST ( 10 AS INTEGER ) AS col1
----
24190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT - CAST( + - ( NULLIF ( - + 2, - 77 * + NULLIF ( + + COUNT( ALL + 32 ), - COALESCE ( + 42, + - 18 ) / - 75 + + + 52 + - + 48 ) ) ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4822
SELECT - CAST ( + - ( NULLIF ( - + 2, - 77 * + NULLIF ( + + COUNT ( ALL + 32 ), - COALESCE ( + 42, + - 18 ) / - 75 + + + 52 + - + 48 ) ) ) AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - 36 + + - 47 * COALESCE ( + 22, 64, COALESCE ( - + 9, 13, + 33 - 86 - 4 + COALESCE ( 52, 37 * + 91 * + 88 + - MIN( ALL - 8 ) + - 89 ) ) ) + + 43 + - + 72 - - - 10 * + 7 AS col0
----
-1169

skipif mysql # not compatible
query I rowsort label-4823
SELECT - 36 + + - 47 * COALESCE ( + 22, 64, COALESCE ( - + 9, 13, + 33 - 86 - 4 + COALESCE ( 52, 37 * + 91 * + 88 + - MIN ( ALL - 8 ) + - 89 ) ) ) + + 43 + - + 72 - - - 10 * + 7 AS col0
----
-1169

query I rowsort
SELECT + 10 + - 20 + - 69
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT ALL + - 61 DIV - 85 col0
----
0

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + - 61 / - 85 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL COALESCE ( 77, 22 * - - 77 + COALESCE ( - + 43, + + 51 ) * + COUNT( * ), + 26 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL COALESCE ( 77, 22 * - - 77 + COALESCE ( - + 43, + + 51 ) * + COUNT ( * ), + 26 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - + 32 + - + 5 * 24 + MIN( + 27 ) * - 79 + 43
----
-2242

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - + 32 + - + 5 * 24 + MIN ( + 27 ) * - 79 + 43
----
-2242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4828
SELECT DISTINCT 25 * - COALESCE ( + + 25, + CASE 6 WHEN 58 THEN - - CAST( NULL AS SIGNED ) * 23 WHEN + 43 - CAST( - 44 AS DECIMAL ) + + - 15 - - + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) + + - COUNT( * ) AS col1
----
-626

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT 25 * - COALESCE ( + + 25, + CASE 6 WHEN 58 THEN - - CAST ( NULL AS INTEGER ) * 23 WHEN + 43 - CAST ( - 44 AS REAL ) + + - 15 - - + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) + + - COUNT ( * ) AS col1
----
-626

query I rowsort
SELECT DISTINCT + - 19 * - 30
----
570

query I rowsort
SELECT - 52 * + 70 - 96 + + 11 col2
----
-3725

query II rowsort
SELECT ALL 37 + - 85, + 80 * 7 AS col2
----
-48
560

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + 48 + - - ( + COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-4832
SELECT + 48 + - - ( + COUNT ( * ) )
----
49

query I rowsort
SELECT + 24 + 63
----
87

query I rowsort
SELECT ALL 30 + 34 + - + 50 * 48 * 19 AS col0
----
-45536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT + 36 * + 39 * MIN( ALL + - 99 ) / COUNT( * ) / + ( - + CASE - + CAST( NULL AS SIGNED ) WHEN - NULLIF ( + - 57, + 61 ) THEN + CAST( NULL AS SIGNED ) + + 78 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 36 * + 39 * MIN ( ALL + - 99 ) / COUNT ( * ) / + ( - + CASE - + CAST ( NULL AS INTEGER ) WHEN - NULLIF ( + - 57, + 61 ) THEN + CAST ( NULL AS INTEGER ) + + 78 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT 61 AS col2, - COUNT( * ) AS col2
----
61
-1

skipif mysql # not compatible
query II rowsort label-4836
SELECT 61 AS col2, - COUNT ( * ) AS col2
----
61
-1

query I rowsort
SELECT - ( + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT COUNT( * ) + + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT COUNT ( * ) + + 94 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT ALL COALESCE ( + - 54, + ( + 73 ) DIV + ( - 9 ), - 73 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL COALESCE ( + - 54, + ( + 73 ) / + ( - 9 ), - 73 ) AS col2
----
-54

query I rowsort
SELECT ALL ( - 89 ) * - 39 AS col2
----
3471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT + CAST( - + ( - - AVG ( ALL + - ( - 72 ) ) ) AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4841
SELECT + CAST ( - + ( - - AVG ( ALL + - ( - 72 ) ) ) AS INTEGER ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT ALL + 24 DIV - 32 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + 24 / - 32 + - + COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT + 67, 24 * 73 * - - 36 AS col0
----
67
63072

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT DISTINCT - ( + - 68 ) DIV + 83 - - ( 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - ( + - 68 ) / + 83 - - ( 29 ) AS col0
----
29

query I rowsort
SELECT + ( - 52 ) col1
----
-52

query I rowsort
SELECT 54 * - 41 AS col0
----
-2214

query I rowsort
SELECT ( - 25 ) * + ( - 85 )
----
2125

query II rowsort
SELECT + 91 col2, 80 AS col0
----
91
80

query I rowsort
SELECT ALL NULLIF ( - 87, - + 25 ) - 94
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL - COALESCE ( - 2, - CASE - + 35 WHEN + - 21 + 58 + 46 * + 36 THEN + - 97 WHEN - 19 + - 15 THEN + CAST( + 18 AS SIGNED ) - COUNT( * ) + COUNT( * ) ELSE NULL END ) col1
----
2

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - COALESCE ( - 2, - CASE - + 35 WHEN + - 21 + 58 + 46 * + 36 THEN + - 97 WHEN - 19 + - 15 THEN + CAST ( + 18 AS INTEGER ) - COUNT ( * ) + COUNT ( * ) ELSE NULL END ) col1
----
2

query I rowsort
SELECT ALL 4 * + 82
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT - NULLIF ( + COUNT( * ), 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 90 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - - 10 AS col2, 98 - + 46 - 97 * - 86 * + + 51
----
10
425494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4854
SELECT + 53 AS col0, - CASE + - 41 WHEN + 38 - + 42 + + 70 * + 88 + + CAST( NULL AS SIGNED ) THEN - 28 WHEN + - 83 THEN - - 44 WHEN + + ( - NULLIF ( - 20, 29 ) ) * - 18 + + - 64 / - + 21 * + CAST( NULL AS DECIMAL ) * CAST( - COALESCE ( + 95, + 85 - 38 ) AS DECIMAL ) THEN + 68 WHEN - 97 * + 22 - ( COUNT( * ) - - 22 ) THEN NULL END
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4854
SELECT + 53 AS col0, - CASE + - 41 WHEN + 38 - + 42 + + 70 * + 88 + + CAST ( NULL AS INTEGER ) THEN - 28 WHEN + - 83 THEN - - 44 WHEN + + ( - NULLIF ( - 20, 29 ) ) * - 18 + + - 64 / - + 21 * + CAST ( NULL AS REAL ) * CAST ( - COALESCE ( + 95, + 85 - 38 ) AS REAL ) THEN + 68 WHEN - 97 * + 22 - ( COUNT ( * ) - - 22 ) THEN NULL END
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + + ( + MIN( ALL + 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-4855
SELECT + + ( + MIN ( ALL + 19 ) )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT DISTINCT - + COUNT( * ) AS col1, COUNT( * ) * - + COALESCE ( COUNT( * ), - - 30 * - 71 + - 68 - + 43 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4856
SELECT DISTINCT - + COUNT ( * ) AS col1, COUNT ( * ) * - + COALESCE ( COUNT ( * ), - - 30 * - 71 + - 68 - + 43 )
----
-1
-1

query I rowsort
SELECT 98 * 77 * + 98
----
739508

query I rowsort
SELECT 13 + - 96
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + - NULLIF ( + + ( MIN( + + 37 ) ), - 96 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4859
SELECT + - NULLIF ( + + ( MIN ( + + 37 ) ), - 96 ) AS col2
----
-37

query I rowsort
SELECT + + 90 * - - 84 + + 55 * 76
----
11740

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT 3 - - 77 * - COUNT( * ) + COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4861
SELECT 3 - - 77 * - COUNT ( * ) + COUNT ( * ) AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT + 34 DIV - 50 * + MIN( ALL + 98 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT + 34 / - 50 * + MIN ( ALL + 98 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4863
SELECT 46 * + COUNT( * ) + + 52 + - COUNT( * ), CAST( COUNT( DISTINCT 66 ) AS SIGNED ) - - + 12 AS col2
----
97
13

skipif mysql # not compatible
query II rowsort label-4863
SELECT 46 * + COUNT ( * ) + + 52 + - COUNT ( * ), CAST ( COUNT ( DISTINCT 66 ) AS INTEGER ) - - + 12 AS col2
----
97
13

query I rowsort
SELECT ALL + + ( + 35 ) * 9 AS col2
----
315

query I rowsort
SELECT ALL - + ( 54 ) AS col2
----
-54

query II rowsort
SELECT DISTINCT - + 91, + 29 AS col1
----
-91
29

query III rowsort
SELECT - - 82 AS col0, 73, + + 19 AS col2
----
82
73
19

query I rowsort
SELECT ALL - 97 * + + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 92 + 53 + + 98 * - 5
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL - + COUNT( * ) + - 70
----
-71

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - + COUNT ( * ) + - 70
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 5 + 10 + + - 81 + + + COUNT( * ) * - 56 + - 77 + + + 73
----
-126

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 5 + 10 + + - 81 + + + COUNT ( * ) * - 56 + - 77 + + + 73
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT - 47 + COALESCE ( COUNT( * ), + 67 + + 27, - - 40 ) * + 35
----
-12

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - 47 + COALESCE ( COUNT ( * ), + 67 + + 27, - - 40 ) * + 35
----
-12

query II rowsort
SELECT 62 AS col0, + CASE 61 WHEN + + 84 THEN - - 64 WHEN + 66 THEN NULL END AS col2
----
62
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4874
SELECT DISTINCT + 79 AS col0, - COUNT( * )
----
79
-1

skipif mysql # not compatible
query II rowsort label-4874
SELECT DISTINCT + 79 AS col0, - COUNT ( * )
----
79
-1

query I rowsort
SELECT + 50 * + + 12 AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT MAX( - - 15 ) * COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4876
SELECT MAX ( - - 15 ) * COUNT ( * ) AS col1
----
15

query I rowsort
SELECT 0 - - 14
----
14

query I rowsort
SELECT DISTINCT 24 * - 68 AS col0
----
-1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4879
SELECT DISTINCT - 94 DIV - 19 AS col1, + COUNT( * ) + - + 68 AS col0
----
4
-67

skipif mysql # not compatible
query II rowsort label-4879
SELECT DISTINCT - 94 / - 19 AS col1, + COUNT ( * ) + - + 68 AS col0
----
4
-67

query I rowsort
SELECT ALL 59 * ( COALESCE ( - COALESCE ( - 45, + ( + 36 ), 55 ), + 25 ) ) AS col2
----
2655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL - CASE - MAX( + - 37 ) WHEN NULLIF ( + - COUNT( * ), - ( 55 ) ) THEN NULL WHEN + 34 THEN NULL ELSE - 71 END - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - CASE - MAX ( + - 37 ) WHEN NULLIF ( + - COUNT ( * ), - ( 55 ) ) THEN NULL WHEN + 34 THEN NULL ELSE - 71 END - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 35 * - 61
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT - ( - NULLIF ( 47, + NULLIF ( + + 90, - 10 ) * - - COUNT( * ) - - + ( - + 37 ) ) ) * + + 69 + + 31 * - CASE - 14 WHEN - COUNT( * ) - + COUNT( * ) + + 93 * - - 40 THEN - + 3 WHEN + - ( - 21 ) THEN 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - ( - NULLIF ( 47, + NULLIF ( + + 90, - 10 ) * - - COUNT ( * ) - - + ( - + 37 ) ) ) * + + 69 + + 31 * - CASE - 14 WHEN - COUNT ( * ) - + COUNT ( * ) + + 93 * - - 40 THEN - + 3 WHEN + - ( - 21 ) THEN 86 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT 9 + + - MAX( + CAST( NULL AS SIGNED ) ) + 40 + SUM( DISTINCT + 98 ) + 33 * + - 9 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT 9 + + - MAX ( + CAST ( NULL AS INTEGER ) ) + 40 + SUM ( DISTINCT + 98 ) + 33 * + - 9 * 48
----
NULL

query I rowsort
SELECT 18 + + + 6
----
24

query I rowsort
SELECT 25 * + 42 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) + - + NULLIF ( + - 39, 70 ) - + 76 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( * ) + - + NULLIF ( + - 39, 70 ) - + 76 AS col1
----
-36

query I rowsort
SELECT ALL + 4 * 61 * - NULLIF ( - - 36, + + 49 - 90 )
----
-8784

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL - COUNT( 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL - COUNT ( 15 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT CASE NULLIF ( + COUNT( * ), 79 * - 76 ) WHEN - + 47 THEN - ( - 61 ) END * + 63 + - - 90 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT CASE NULLIF ( + COUNT ( * ), 79 * - 76 ) WHEN - + 47 THEN - ( - 61 ) END * + 63 + - - 90 + + 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL 11 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL 11 / + 28
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT 60 * - 12 AS col2, MAX( + 68 )
----
-720
68

skipif mysql # not compatible
query II rowsort label-4892
SELECT 60 * - 12 AS col2, MAX ( + 68 )
----
-720
68

query I rowsort
SELECT - 43 + - - COALESCE ( 55, - 77 ) AS col0
----
12

query I rowsort
SELECT DISTINCT - + 17 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL - NULLIF ( - 63, + CAST( ( 58 ) AS SIGNED ) * + 67 - 24 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - NULLIF ( - 63, + CAST ( ( 58 ) AS INTEGER ) * + 67 - 24 ) AS col0
----
63

query I rowsort
SELECT - NULLIF ( - 86, - 23 - - 89 )
----
86

query II rowsort
SELECT ALL - 61 * + 46, - 1 AS col2
----
-2806
-1

query I rowsort
SELECT + 74 * + - 4 AS col0
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT NULLIF ( + 45, + 72 * - - 93 + + 44 * - 45 ) * - 48 * + - MIN( DISTINCT 84 ) + 65 + + 56 AS col1
----
181561

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT NULLIF ( + 45, + 72 * - - 93 + + 44 * - 45 ) * - 48 * + - MIN ( DISTINCT 84 ) + 65 + + 56 AS col1
----
181561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT + MIN( - - CAST( - 53 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4900
SELECT + MIN ( - - CAST ( - 53 AS INTEGER ) )
----
-53

query I rowsort
SELECT ALL 58 + - 6 * - ( + 19 )
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL - COUNT( * ) * + 7 col1
----
-7

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - COUNT ( * ) * + 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT - + MIN( ALL 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT - + MIN ( ALL 44 )
----
-44

query I rowsort
SELECT DISTINCT - + 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + COUNT( * ) + + + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + COUNT ( * ) + + + 80 AS col2
----
81

query I rowsort
SELECT 81 + + - 88 + - 99
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL - - 94 + + COUNT( * ) * + - 81 + + 82 - + 88 * + 56
----
-4833

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - - 94 + + COUNT ( * ) * + - 81 + + 82 - + 88 * + 56
----
-4833

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT 51 + + COUNT( * ), + 97 AS col1
----
52
97

skipif mysql # not compatible
query II rowsort label-4908
SELECT 51 + + COUNT ( * ), + 97 AS col1
----
52
97

query II rowsort
SELECT - ( - + 48 ) AS col2, + 71
----
48
71

query I rowsort
SELECT - ( COALESCE ( - 53, + - ( + 59 ) ) ) + - 48 * + 73
----
-3451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT ALL 1 DIV - MAX( ALL 50 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL 1 / - MAX ( ALL 50 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 60 + + 47
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT COUNT( ( - - 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT COUNT ( ( - - 8 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT DISTINCT COUNT( * ) * + + 93 * COALESCE ( - ( + CAST( + + 90 AS SIGNED ) ), + 18 + AVG ( ALL - 53 ) ) * + MAX( - + CAST( NULL AS SIGNED ) ) * + 83 * + ( + 9 ) * + - CAST( + 68 AS SIGNED ) * - 48 + + 1 + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT COUNT ( * ) * + + 93 * COALESCE ( - ( + CAST ( + + 90 AS INTEGER ) ), + 18 + AVG ( ALL - 53 ) ) * + MAX ( - + CAST ( NULL AS INTEGER ) ) * + 83 * + ( + 9 ) * + - CAST ( + 68 AS INTEGER ) * - 48 + + 1 + - 68 AS col2
----
NULL

query I rowsort
SELECT ALL 95 - - 51 col1
----
146

onlyif mysql # DIV for integer division: 
query II rowsort label-4916
SELECT 26 AS col2, 16 DIV + 14 AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-4916
SELECT 26 AS col2, 16 / + 14 AS col1
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT SUM( ALL 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT SUM ( ALL 34 )
----
34

query I rowsort
SELECT - 59 + + 57 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL COUNT( - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL COUNT ( - 44 )
----
1

query II rowsort
SELECT 7 AS col2, + 97 AS col1
----
7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL + COUNT( * ) - - + 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + COUNT ( * ) - - + 46 AS col2
----
47

query I rowsort
SELECT + 11 + 5 + - 70 * - + 4
----
296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4923
SELECT 23 AS col1, 9 * - 14 * 57 * + 5 + - 40 + + CAST( - 12 AS SIGNED ) col1
----
23
-35962

skipif mysql # not compatible
query II rowsort label-4923
SELECT 23 AS col1, 9 * - 14 * 57 * + 5 + - 40 + + CAST ( - 12 AS INTEGER ) col1
----
23
-35962

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL SUM( ALL + - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL SUM ( ALL + - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT COUNT( * ) AS col2, + 73
----
1
73

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT COUNT ( * ) AS col2, + 73
----
1
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL 70 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL 70 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL - CAST( NULL AS SIGNED ) / + 83 * - - ( + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - CAST ( NULL AS INTEGER ) / + 83 * - - ( + 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT COUNT( + 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT COUNT ( + 11 ) AS col2
----
1

query I rowsort
SELECT ALL 80 * + + 87 * - + 22 + 36 * 38
----
-151752

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT + COUNT( DISTINCT - 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4930
SELECT + COUNT ( DISTINCT - 81 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4931
SELECT - CAST( + 55 AS SIGNED ) DIV + - 79
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT - CAST ( + 55 AS INTEGER ) / + - 79
----
0

query I rowsort
SELECT DISTINCT - 24 * + - 45 + - 29
----
1051

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4933
SELECT DISTINCT 37 * + COUNT( * ) + 21 + ( MAX( + 66 ) ) - - - CAST( NULL AS DECIMAL ) - NULLIF ( 37, + ( - 15 ) ) / - + COUNT( * ) + + 49 + + - 79 - 92 * 51 + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT 37 * + COUNT ( * ) + 21 + ( MAX ( + 66 ) ) - - - CAST ( NULL AS REAL ) - NULLIF ( 37, + ( - 15 ) ) / - + COUNT ( * ) + + 49 + + - 79 - 92 * 51 + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT ALL + COUNT( * ) AS col0, + 0
----
1
0

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL + COUNT ( * ) AS col0, + 0
----
1
0

query I rowsort
SELECT + + 44 * - 95
----
-4180

query II rowsort
SELECT DISTINCT - - 64 * + - 87 * 13 * - - 98 + 84 * 8, + 44 AS col2
----
-7092960
44

query II rowsort
SELECT + 23 AS col2, - 85 col1
----
23
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT + + 65 * - ( - - 99 ) + - + CAST( + 37 AS SIGNED )
----
-6472

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + + 65 * - ( - - 99 ) + - + CAST ( + 37 AS INTEGER )
----
-6472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - COUNT( * ) * + 25
----
-25

skipif mysql # not compatible
query I rowsort label-4940
SELECT - COUNT ( * ) * + 25
----
-25

query I rowsort
SELECT DISTINCT + 56 * 17 AS col1
----
952

query I rowsort
SELECT ALL ( - 70 ) * + 70 AS col1
----
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL + + 81 * 31 + COUNT( * ) - 72 + - 27 AS col1
----
2413

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + + 81 * 31 + COUNT ( * ) - 72 + - 27 AS col1
----
2413

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL + COUNT( - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL + COUNT ( - 45 )
----
1

query I rowsort
SELECT DISTINCT 70 * - - COALESCE ( + + 36, - - 25 ) - 90 * + 70 * - + 31
----
197820

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL COUNT( ALL + 94 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL COUNT ( ALL + 94 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL SUM( ALL - 23 ) * + - 80
----
1840

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL SUM ( ALL - 23 ) * + - 80
----
1840

query I rowsort
SELECT ALL COALESCE ( 84, - - 77 )
----
84

query I rowsort
SELECT + 36 * 51
----
1836

query I rowsort
SELECT + 42 * + 1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 53 + - MIN( ALL - + 57 )
----
110

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 53 + - MIN ( ALL - + 57 )
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT ( + COUNT( * ) ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT ( + COUNT ( * ) ) / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - NULLIF ( + COUNT( * ), + 48 / - 42 ) * + ( 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-4953
SELECT - NULLIF ( + COUNT ( * ), + 48 / - 42 ) * + ( 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT + 23 - - + CAST( NULL AS SIGNED ) * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT + 23 - - + CAST ( NULL AS INTEGER ) * + 96 AS col2
----
NULL

query I rowsort
SELECT + 82 * - 17 * + 38
----
-52972

query I rowsort
SELECT ALL - 49 * 82
----
-4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT + 0 - - 48 - - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT + 0 - - 48 - - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT ALL ( + CAST( 49 AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL ( + CAST ( 49 AS INTEGER ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL ( + CAST( - 4 AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL ( + CAST ( - 4 AS INTEGER ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT DISTINCT COUNT( ALL + - NULLIF ( + 41, 67 * - + CAST( NULL AS SIGNED ) + - 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT COUNT ( ALL + - NULLIF ( + 41, 67 * - + CAST ( NULL AS INTEGER ) + - 22 ) )
----
1

query I rowsort
SELECT + 64 + + + 36
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL - 41 * 26 DIV + - 72 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - 41 * 26 / + - 72 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4963
SELECT ALL + 86 + SUM( - 11 ) DIV + - 37 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + 86 + SUM ( - 11 ) / + - 37 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT + COUNT( * ) + + CASE + 11 WHEN - CASE - + 70 WHEN 92 * - 86 THEN + - 87 END THEN NULL ELSE COALESCE ( 12, 2 ) END
----
13

skipif mysql # not compatible
query I rowsort label-4964
SELECT + COUNT ( * ) + + CASE + 11 WHEN - CASE - + 70 WHEN 92 * - 86 THEN + - 87 END THEN NULL ELSE COALESCE ( 12, 2 ) END
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - MIN( - 58 ) + + + 64 * 47
----
3066

skipif mysql # not compatible
query I rowsort label-4965
SELECT - MIN ( - 58 ) + + + 64 * 47
----
3066

query I rowsort
SELECT - 48 - + + 71 + - 50
----
-169

query I rowsort
SELECT ALL + + 27 + 37
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - COUNT( ALL + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COUNT ( ALL + 48 )
----
-1

query I rowsort
SELECT ALL + NULLIF ( + 2, - ( + 87 ) )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4970
SELECT ALL MAX( ALL - + ( 0 ) ) DIV 26 + + - 43 * 39 * 42 + + COUNT( DISTINCT 68 ) AS col0, COUNT( * ) AS col2
----
-70433
1

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL MAX ( ALL - + ( 0 ) ) / 26 + + - 43 * 39 * 42 + + COUNT ( DISTINCT 68 ) AS col0, COUNT ( * ) AS col2
----
-70433
1

query I rowsort
SELECT DISTINCT + + 85 * + 16
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT - + COUNT( * ) + - - 74 * + 85 AS col0
----
6289

skipif mysql # not compatible
query I rowsort label-4972
SELECT - + COUNT ( * ) + - - 74 * + 85 AS col0
----
6289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4973
SELECT ALL + 18 * COUNT( * ) DIV + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + 18 * COUNT ( * ) / + 33 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT DISTINCT - 48 / + MIN( - - 31 ) * + ( - 2 ) + - CAST( NULL AS SIGNED ) - - NULLIF ( + 57, - - 40 ) + + 50 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - 48 / + MIN ( - - 31 ) * + ( - 2 ) + - CAST ( NULL AS INTEGER ) - - NULLIF ( + 57, - - 40 ) + + 50 + - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT - 7 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4975
SELECT - 7 / + 66 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT + CASE + 88 WHEN - - 87 * + 80 + 94 * - + 25 THEN NULL ELSE - - 15 DIV - 90 * + 44 * - 20 END
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT + CASE + 88 WHEN - - 87 * + 80 + 94 * - + 25 THEN NULL ELSE - - 15 / - 90 * + 44 * - 20 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT NULLIF ( + 23, MAX( 1 ) * + 95 + + - 50 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4977
SELECT NULLIF ( + 23, MAX ( 1 ) * + 95 + + - 50 ) AS col0
----
23

query I rowsort
SELECT - - 71 + + - 17
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT DISTINCT 30 * COUNT( ALL + ( 89 ) ) - COUNT( * ), COUNT( * ) col1
----
29
1

skipif mysql # not compatible
query II rowsort label-4979
SELECT DISTINCT 30 * COUNT ( ALL + ( 89 ) ) - COUNT ( * ), COUNT ( * ) col1
----
29
1

query I rowsort
SELECT + + 97 + + 0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT - + 39 * + 20 - - CAST( + - 37 AS SIGNED ) - 49 * ( - + COUNT( * ) )
----
-768

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - + 39 * + 20 - - CAST ( + - 37 AS INTEGER ) - 49 * ( - + COUNT ( * ) )
----
-768

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT DISTINCT - 35 DIV 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - 35 / 42 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - COUNT( * ) * - 9 + 62 * + NULLIF ( + ( 81 ), + + 28 ) * 45 AS col2
----
225999

skipif mysql # not compatible
query I rowsort label-4983
SELECT - COUNT ( * ) * - 9 + 62 * + NULLIF ( + ( 81 ), + + 28 ) * 45 AS col2
----
225999

query I rowsort
SELECT 9 + - COALESCE ( 62, 9 ) * - ( - - COALESCE ( - + 72, + 70 - - 98 ) ) AS col1
----
-4455

query I rowsort
SELECT ALL ( + 62 ) * + - 80 + - 88 + + + 17 + + + 0 * 11 AS col0
----
-5031

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT DISTINCT 23 AS col0, - MAX( - 49 ) * COUNT( * ) * + COUNT( * ) * + + 77 * - COUNT( * ) + 69 + - + 64 * + COUNT( * ) AS col0
----
23
-3768

skipif mysql # not compatible
query II rowsort label-4986
SELECT DISTINCT 23 AS col0, - MAX ( - 49 ) * COUNT ( * ) * + COUNT ( * ) * + + 77 * - COUNT ( * ) + 69 + - + 64 * + COUNT ( * ) AS col0
----
23
-3768

query I rowsort
SELECT 53 + - 17 AS col0
----
36

query II rowsort
SELECT - 84, ( + + 91 ) AS col2
----
-84
91

query I rowsort
SELECT DISTINCT 93 + + 30
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT 88 + - MAX( - - 12 )
----
76

skipif mysql # not compatible
query I rowsort label-4990
SELECT 88 + - MAX ( - - 12 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL 28 + COUNT( * ) + + 85 * - 69 AS col2
----
-5836

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL 28 + COUNT ( * ) + + 85 * - 69 AS col2
----
-5836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT + 45 + 20 + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - 94 + + + NULLIF ( - 8, + CAST( NULL AS SIGNED ) ) + - 97 - - 57 + + 96 * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT + 45 + 20 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 94 + + + NULLIF ( - 8, + CAST ( NULL AS INTEGER ) ) + - 97 - - 57 + + 96 * - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT MIN( + NULLIF ( 91, + 9 - 76 ) ) + - 91 - + + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT MIN ( + NULLIF ( 91, + 9 - 76 ) ) + - 91 - + + 42
----
-42

query I rowsort
SELECT DISTINCT + 82 * - + 72 * 56 col1
----
-330624

query I rowsort
SELECT ALL + 13 * + 19
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT - COALESCE ( 13, COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT - COALESCE ( 13, COUNT ( * ) )
----
-13

query II rowsort
SELECT + 12 * - 38 * + 60 AS col2, + 26 + + 36 AS col0
----
-27360
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4998
SELECT ALL ( + - 37 ) + + 4 + + + ( - 8 ) * - - ( + 58 ) * NULLIF ( + - NULLIF ( + CAST( - 7 AS SIGNED ), - - 6 ), + + 59 ), + 97 * 39 AS col0
----
-3281
3783

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL ( + - 37 ) + + 4 + + + ( - 8 ) * - - ( + 58 ) * NULLIF ( + - NULLIF ( + CAST ( - 7 AS INTEGER ), - - 6 ), + + 59 ), + 97 * 39 AS col0
----
-3281
3783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT - COUNT( * ) DIV - - 67 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COUNT ( * ) / - - 67 - + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + + MAX( ALL 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5000
SELECT + + MAX ( ALL 97 ) AS col1
----
97

query II rowsort
SELECT ALL - - 8 AS col1, 50 - - 46 AS col2
----
8
96

query I rowsort
SELECT - 78 - - 74 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + MAX( ALL - - NULLIF ( - 85, + 30 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-5003
SELECT + MAX ( ALL - - NULLIF ( - 85, + 30 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT ALL - NULLIF ( + 40, MIN( - + 59 ) + + - 53 + + 37 ), 72 AS col2
----
-40
72

skipif mysql # not compatible
query II rowsort label-5004
SELECT ALL - NULLIF ( + 40, MIN ( - + 59 ) + + - 53 + + 37 ), 72 AS col2
----
-40
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5005
SELECT ALL - COUNT( * ), - 39 DIV 61 + + - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5005
SELECT ALL - COUNT ( * ), - 39 / 61 + + - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT 79 - SUM( + 13 ) * - NULLIF ( 73, - + COUNT( - 19 ) * - COUNT( * ) )
----
1028

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT 79 - SUM ( + 13 ) * - NULLIF ( 73, - + COUNT ( - 19 ) * - COUNT ( * ) )
----
1028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL + + 7 * + + ( + + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + + 7 * + + ( + + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - 99 * 71 * COUNT( ALL + 85 ) + + 86 * 86 + - CASE + - 47 WHEN + 62 THEN NULL WHEN - 75 * 59 THEN + 14 END + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 99 * 71 * COUNT ( ALL + 85 ) + + 86 * 86 + - CASE + - 47 WHEN + 62 THEN NULL WHEN - 75 * 59 THEN + 14 END + - 4
----
NULL

query I rowsort
SELECT DISTINCT - - 93 col2
----
93

query I rowsort
SELECT DISTINCT - + 2 col1
----
-2

query II rowsort
SELECT + ( - + ( + 54 ) ) - - + 80 - + 35, 81 AS col1
----
-9
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL + + COALESCE ( - 21, - 95 ) * + CAST( NULL AS SIGNED ) + - - 62 - - NULLIF ( - COALESCE ( - COUNT( * ), + 54 - - + ( - 16 ) * - COUNT( * ) + 56 ), - 22 + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + + COALESCE ( - 21, - 95 ) * + CAST ( NULL AS INTEGER ) + - - 62 - - NULLIF ( - COALESCE ( - COUNT ( * ), + 54 - - + ( - 16 ) * - COUNT ( * ) + 56 ), - 22 + 2 ) AS col1
----
NULL

query I rowsort
SELECT - 50 * - 54 AS col0
----
2700

query I rowsort
SELECT ALL + 45 * 72
----
3240

onlyif mysql # DIV for integer division: 
query II rowsort label-5015
SELECT + 31, 91 - 83 DIV + 18 AS col2
----
31
87

skipif mysql # not compatible
query II rowsort label-5015
SELECT + 31, 91 - 83 / + 18 AS col2
----
31
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT 45 + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5016
SELECT 45 + + COUNT ( * ) AS col2
----
46

query I rowsort
SELECT ALL - 21 * - 0 * - ( - ( - + 28 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT COUNT( ALL + - 60 ) - + ( 82 ) DIV 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-5018
SELECT COUNT ( ALL + - 60 ) - + ( 82 ) / 57 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL - CASE - - 47 WHEN + SUM( CAST( NULL AS SIGNED ) ) THEN 46 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - CASE - - 47 WHEN + SUM ( CAST ( NULL AS INTEGER ) ) THEN 46 END col2
----
NULL

query II rowsort
SELECT 58 AS col2, + ( 34 )
----
58
34

query I rowsort
SELECT ALL - ( 71 ) col1
----
-71

query I rowsort
SELECT DISTINCT + 76 * 71 col0
----
5396

query I rowsort
SELECT 44 * - 35
----
-1540

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5024
SELECT ALL 69 AS col2, ( - - CAST( NULL AS DECIMAL ) ) * - 87 * - 16 + + 12 + + - COUNT( * )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-5024
SELECT ALL 69 AS col2, ( - - CAST ( NULL AS REAL ) ) * - 87 * - 16 + + 12 + + - COUNT ( * )
----
69
NULL

query I rowsort
SELECT ALL 47 * - - 63
----
2961

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT 63 DIV - + 14 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5026
SELECT 63 / - + 14 AS col2
----
-4

query I rowsort
SELECT ALL - ( - 58 ) + - 46 AS col0
----
12

query I rowsort
SELECT 34 - + - 30 AS col2
----
64

query II rowsort
SELECT 58, 31 + - + 17 AS col1
----
58
14

query I rowsort
SELECT 53 + + 23
----
76

query I rowsort
SELECT ALL + 14 * 31
----
434

query I rowsort
SELECT ALL 81 + + + 83
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL + COUNT( * ) + 77 * 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + COUNT ( * ) + 77 * 1 AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT 71 + + + 89 + - 88 - - 30 + 13 DIV 61 + - 90 * + 87 * + ( - + 7 ) * 48 + - 42 + - 72 AS col2
----
2630868

skipif mysql # not compatible
query I rowsort label-5034
SELECT 71 + + + 89 + - 88 - - 30 + 13 / 61 + - 90 * + 87 * + ( - + 7 ) * 48 + - 42 + - 72 AS col2
----
2630868

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL + MAX( DISTINCT + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + MAX ( DISTINCT + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query III rowsort label-5036
SELECT ALL 18 col2, SUM( ALL + - 83 ) * - 18 col2, 33
----
18
1494
33

skipif mysql # not compatible
query III rowsort label-5036
SELECT ALL 18 col2, SUM ( ALL + - 83 ) * - 18 col2, 33
----
18
1494
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - 49 + - 59 * + - 59 * + 83 * + COUNT( DISTINCT - 8 ) + - COUNT( * ) * + 10 - 3
----
288861

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 49 + - 59 * + - 59 * + 83 * + COUNT ( DISTINCT - 8 ) + - COUNT ( * ) * + 10 - 3
----
288861

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT MIN( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5038
SELECT MIN ( - 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT 81 * + - COUNT( * ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-5039
SELECT 81 * + - COUNT ( * ) col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT COUNT( * ) - + ( - - ( - 27 ) ) + 45 + - + MAX( DISTINCT - 52 ) + 46 * + 65
----
3115

skipif mysql # not compatible
query I rowsort label-5040
SELECT COUNT ( * ) - + ( - - ( - 27 ) ) + 45 + - + MAX ( DISTINCT - 52 ) + 46 * + 65
----
3115

query I rowsort
SELECT ALL - 52 * + - 44
----
2288

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT - 99 DIV - 65
----
1

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 99 / - 65
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL 68 DIV + NULLIF ( 15, + + 95 ) + - - 7
----
11

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 68 / + NULLIF ( 15, + + 95 ) + - - 7
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + + COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + + COUNT ( * ) * + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - 97 * - 12 + - COUNT( * ) AS col2
----
1163

skipif mysql # not compatible
query I rowsort label-5045
SELECT - 97 * - 12 + - COUNT ( * ) AS col2
----
1163

query II rowsort
SELECT 48 AS col1, ( + + 72 ) AS col0
----
48
72

query II rowsort
SELECT ALL - - 65 AS col0, 15 AS col0
----
65
15

query I rowsort
SELECT ALL + 75 * + 6
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5049
SELECT ALL NULLIF ( - - 50, + CAST( NULL AS SIGNED ) * 84 / 17 ) * 0 AS col0, - COUNT( * ) * - - 66 AS col2
----
0
-66

skipif mysql # not compatible
query II rowsort label-5049
SELECT ALL NULLIF ( - - 50, + CAST ( NULL AS INTEGER ) * 84 / 17 ) * 0 AS col0, - COUNT ( * ) * - - 66 AS col2
----
0
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5050
SELECT DISTINCT + 71, + CAST( NULL AS SIGNED ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5050
SELECT DISTINCT + 71, + CAST ( NULL AS INTEGER ) AS col1
----
71
NULL

query II rowsort
SELECT 66, + 88 * 25 * 38 AS col0
----
66
83600

query I rowsort
SELECT - 0 + - 21 + - 87
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT + NULLIF ( - NULLIF ( - ( + COALESCE ( - ( + 98 ), + 47 DIV + 62 * 25 + + + 94 * - - 74 + COUNT( * ) ) ), 55 ), - COUNT( * ) + + 6 )
----
-98

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + NULLIF ( - NULLIF ( - ( + COALESCE ( - ( + 98 ), + 47 / + 62 * 25 + + + 94 * - - 74 + COUNT ( * ) ) ), 55 ), - COUNT ( * ) + + 6 )
----
-98

query I rowsort
SELECT - 77 + - + 88 + - + 15 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL + COUNT( * ) * 33 + + 20 * 24
----
513

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + COUNT ( * ) * 33 + + 20 * 24
----
513

query I rowsort
SELECT - 41 + 2 * + 66 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COUNT( * ) * + 59 + - 16 * + 35
----
-501

skipif mysql # not compatible
query I rowsort label-5057
SELECT COUNT ( * ) * + 59 + - 16 * + 35
----
-501

query I rowsort
SELECT DISTINCT - 82 + ( - 95 ) AS col2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT - 73 + + 81 + + 93 * + + 71 * - + MIN( + - 97 )
----
640499

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT - 73 + + 81 + + 93 * + + 71 * - + MIN ( + - 97 )
----
640499

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - 82 * NULLIF ( 55, COUNT( * ) ) col0
----
-4510

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - 82 * NULLIF ( 55, COUNT ( * ) ) col0
----
-4510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT - CAST( - 92 AS SIGNED ) + - + 80 col1
----
12

skipif mysql # not compatible
query I rowsort label-5061
SELECT - CAST ( - 92 AS INTEGER ) + - + 80 col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT ALL 57 DIV 21 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL 57 / 21 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - COUNT( - + 16 ) + - COUNT( * ) * - 21 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5063
SELECT - COUNT ( - + 16 ) + - COUNT ( * ) * - 21 AS col0
----
20

query I rowsort
SELECT - - ( + + 12 ) * - 51 * 65 - - + 11
----
-39769

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + - 36 + + - MIN( + - 79 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5065
SELECT + - 36 + + - MIN ( + - 79 ) AS col1
----
43

query II rowsort
SELECT ALL - - ( + + 20 ) * - 75 AS col2, + 31 + - 19 - 84 * - 1 col0
----
-1500
96

query I rowsort
SELECT + 30 + + ( - 69 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - 69 * - - COUNT( * ) + + 4 + + 16 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5068
SELECT - 69 * - - COUNT ( * ) + + 4 + + 16 AS col2
----
-49

query I rowsort
SELECT + 39 * + ( - - 47 )
----
1833

query I rowsort
SELECT DISTINCT - 39 * - 98 AS col2
----
3822

query I rowsort
SELECT DISTINCT + 23 * + 85
----
1955

query I rowsort
SELECT ( + + 47 )
----
47

query I rowsort
SELECT + + 84 + - 3 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT - + ( - + ( 68 ) ) * - CAST( 39 AS SIGNED ) + - + COUNT( * )
----
-2653

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - + ( - + ( 68 ) ) * - CAST ( 39 AS INTEGER ) + - + COUNT ( * )
----
-2653

query I rowsort
SELECT + - 51 * + 62
----
-3162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5076
SELECT ALL + ( 52 ) AS col2, ( - COALESCE ( 39, - - COUNT( - + 80 ), - 6 * - 75 - + 20 + - 43 + - NULLIF ( - CASE - 38 WHEN + - 22 + - - 8 * - - 35 - + CASE + - CASE + + 93 WHEN + 90 THEN NULL WHEN - - MAX( ALL + 11 ) * - 79 * - CAST( COUNT( * ) AS DECIMAL ) + - MIN( ALL - + 14 ) + 22 THEN + + ( 23 ) + - CAST( NULL AS DECIMAL ) + - 24 WHEN 87 DIV + 82 THEN NULL END WHEN + 80 THEN NULL ELSE 67 + COALESCE ( COALESCE ( - 83, 46 * + 96 ), - 95 + 90 ) END THEN - 93 ELSE NULL END, 40 ) DIV - 84 * 79 DIV 43, 31 + 89 * 50 ) )
----
52
-39

skipif mysql # not compatible
query II rowsort label-5076
SELECT ALL + ( 52 ) AS col2, ( - COALESCE ( 39, - - COUNT ( - + 80 ), - 6 * - 75 - + 20 + - 43 + - NULLIF ( - CASE - 38 WHEN + - 22 + - - 8 * - - 35 - + CASE + - CASE + + 93 WHEN + 90 THEN NULL WHEN - - MAX ( ALL + 11 ) * - 79 * - CAST ( COUNT ( * ) AS REAL ) + - MIN ( ALL - + 14 ) + 22 THEN + + ( 23 ) + - CAST ( NULL AS REAL ) + - 24 WHEN 87 / + 82 THEN NULL END WHEN + 80 THEN NULL ELSE 67 + COALESCE ( COALESCE ( - 83, 46 * + 96 ), - 95 + 90 ) END THEN - 93 ELSE NULL END, 40 ) / - 84 * 79 / 43, 31 + 89 * 50 ) )
----
52
-39

query I rowsort
SELECT - + 65 - 65 AS col0
----
-130

query I rowsort
SELECT + + 85 * + - 31 * + 41 * 98
----
-10587430

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL 18 DIV 83 + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL 18 / 83 + + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5080
SELECT ALL + 73 AS col1, COUNT( * ) AS col1
----
73
1

skipif mysql # not compatible
query II rowsort label-5080
SELECT ALL + 73 AS col1, COUNT ( * ) AS col1
----
73
1

query I rowsort
SELECT + 59 - + ( + 8 ) col1
----
51

query II rowsort
SELECT ALL + 18 AS col0, - 87
----
18
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5083
SELECT + MAX( ALL + 27 ) DIV + 94, 68 + + 81 + - 99 AS col0, + COUNT( * ) * + ( COUNT( * ) ) * CAST( - - 39 AS SIGNED ) AS col2
----
0
50
39

skipif mysql # not compatible
query III rowsort label-5083
SELECT + MAX ( ALL + 27 ) / + 94, 68 + + 81 + - 99 AS col0, + COUNT ( * ) * + ( COUNT ( * ) ) * CAST ( - - 39 AS INTEGER ) AS col2
----
0
50
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT ALL + CAST( NULL AS SIGNED ) * CASE 72 WHEN - 28 * 62 * - 80 + COUNT( * ) / - 6 THEN - 45 ELSE NULL END + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + CAST ( NULL AS INTEGER ) * CASE 72 WHEN - 28 * 62 * - 80 + COUNT ( * ) / - 6 THEN - 45 ELSE NULL END + 79
----
NULL

query I rowsort
SELECT ALL - 39 * - 47 + - ( 10 ) AS col1
----
1823

query I rowsort
SELECT + 65 * - - 34
----
2210

onlyif mysql # DIV for integer division: 
query II rowsort label-5087
SELECT ALL + 8, + 2 DIV + 48 AS col2
----
8
0

skipif mysql # not compatible
query II rowsort label-5087
SELECT ALL + 8, + 2 / + 48 AS col2
----
8
0

query I rowsort
SELECT + ( 19 ) AS col0
----
19

query I rowsort
SELECT ALL 42 * 62 * 90 + - 2 AS col2
----
234358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 63 THEN - + 82 * + + COUNT( * ) * + 85 * 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 63 THEN - + 82 * + + COUNT ( * ) * + 85 * 3 END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 55, - + 77 )
----
-55

query I rowsort
SELECT + 70 * 65
----
4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT - CASE 31 WHEN 58 THEN - 95 / + 79 / - - 56 END * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - CASE 31 WHEN 58 THEN - 95 / + 79 / - - 56 END * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + 0 ) col0
----
0

query I rowsort
SELECT DISTINCT - - 76 * + 67 AS col2
----
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + ( 78 ) * - 70 AS col0, 60
----
-5460
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - 44 + - COUNT( DISTINCT 35 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5098
SELECT - 44 + - COUNT ( DISTINCT 35 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5099
SELECT DISTINCT + 74 * + + 19 * - COUNT( * ) * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + 74 * + + 19 * - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - - 4 - + 60 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT DISTINCT 71 AS col2, COUNT( * ) col1
----
71
1

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT 71 AS col2, COUNT ( * ) col1
----
71
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT ALL + - 1 DIV 81 * ( 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + - 1 / 81 * ( 56 ) AS col0
----
0

query II rowsort
SELECT ALL 15 AS col1, 49 * + + 21 AS col2
----
15
1029

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT ALL + COUNT( * ) AS col1, - 74 AS col2
----
1
-74

skipif mysql # not compatible
query II rowsort label-5104
SELECT ALL + COUNT ( * ) AS col1, - 74 AS col2
----
1
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5105
SELECT - 3 * + 20 * - 86 AS col2, - 98 * + 46 + + - 84 + + + NULLIF ( + + 86, - SUM( ALL + CAST( - 39 AS DECIMAL ) ) + + - 4 )
----
5160
-4506

skipif mysql # not compatible
query II rowsort label-5105
SELECT - 3 * + 20 * - 86 AS col2, - 98 * + 46 + + - 84 + + + NULLIF ( + + 86, - SUM ( ALL + CAST ( - 39 AS REAL ) ) + + - 4 )
----
5160
-4506

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ( + + COUNT( 49 ) ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-5106
SELECT ( + + COUNT ( 49 ) ) + - 83
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - COUNT( * ) + + 17 col1
----
16

skipif mysql # not compatible
query I rowsort label-5107
SELECT - COUNT ( * ) + + 17 col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT ALL + 58 DIV - COUNT( - ( 73 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + 58 / - COUNT ( - ( 73 ) ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL - COUNT( * ) + + + 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - COUNT ( * ) + + + 54 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - COUNT( + - 95 ) + - MAX( DISTINCT 53 ) + 38 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5110
SELECT - COUNT ( + - 95 ) + - MAX ( DISTINCT 53 ) + 38 AS col2
----
-16

query I rowsort
SELECT 29 + + 73 AS col0
----
102

query I rowsort
SELECT ALL ( - NULLIF ( + + ( 49 ), - - 3 ) )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT ALL NULLIF ( 53, - 61 * - ( + - MAX( - ( - 12 ) ) ) ) + + 37 AS col0, 40 * - 34 - - COUNT( * ) AS col0
----
90
-1359

skipif mysql # not compatible
query II rowsort label-5113
SELECT ALL NULLIF ( 53, - 61 * - ( + - MAX ( - ( - 12 ) ) ) ) + + 37 AS col0, 40 * - 34 - - COUNT ( * ) AS col0
----
90
-1359

query I rowsort
SELECT - 37 * - - 84 + + - 47 AS col2
----
-3155

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT ALL 95 * + 75 AS col0, 56 * - 59 * + + COUNT( * )
----
7125
-3304

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL 95 * + 75 AS col0, 56 * - 59 * + + COUNT ( * )
----
7125
-3304

query I rowsort
SELECT DISTINCT - 17 + + 45 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT 34 + 6 + COALESCE ( - 2, + 36 * 66 ) + 36 + - SUM( ALL 13 ) * + 67 + - - SUM( - - 73 ) AS col1
----
-724

skipif mysql # not compatible
query I rowsort label-5117
SELECT 34 + 6 + COALESCE ( - 2, + 36 * 66 ) + 36 + - SUM ( ALL 13 ) * + 67 + - - SUM ( - - 73 ) AS col1
----
-724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT 44 + + - 65 * - NULLIF ( COALESCE ( - + 2, AVG ( - + 67 ) DIV - + COUNT( * ) ), + COUNT( * ) ) - + 40 * + + 56
----
-2326

skipif mysql # not compatible
query I rowsort label-5118
SELECT 44 + + - 65 * - NULLIF ( COALESCE ( - + 2, AVG ( - + 67 ) / - + COUNT ( * ) ), + COUNT ( * ) ) - + 40 * + + 56
----
-2326

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT 47 * - COUNT( * ) AS col0, + MIN( ( + 98 ) )
----
-47
98

skipif mysql # not compatible
query II rowsort label-5119
SELECT 47 * - COUNT ( * ) AS col0, + MIN ( ( + 98 ) )
----
-47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT + 19 * - 43 + 51 * + 98 * + + ( + 86 ) * + 18 + COUNT( * ) - + 75
----
7736013

skipif mysql # not compatible
query I rowsort label-5120
SELECT + 19 * - 43 + 51 * + 98 * + + ( + 86 ) * + 18 + COUNT ( * ) - + 75
----
7736013

query I rowsort
SELECT DISTINCT - ( + - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL MAX( DISTINCT - 21 ) * 39 + 95 col2
----
-724

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL MAX ( DISTINCT - 21 ) * 39 + 95 col2
----
-724

query I rowsort
SELECT ALL 93 - + ( - 30 )
----
123

query I rowsort
SELECT ALL 58 * + - 49 * - 7 col2
----
19894

query I rowsort
SELECT 88 + + 40
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5126
SELECT ALL 75 - 32 + - COALESCE ( - - 53, - 73, 85 * - COALESCE ( - COUNT( * ), 40 - + 27 * ( - - CAST( - 65 AS SIGNED ) ) * + 32 * + 23 * 24 - - 41 * 76 * - 47 - + + CASE - 23 WHEN + 56 - - - 75 - - 45 * - - 91 THEN 56 * - - 42 + - 5 + - 85 ELSE + 18 END DIV - ( - COUNT( * ) ) + + 29