sqllogictest
Artifact Content
Not logged in

Artifact 14bcdfd7270f3b0d8c38cae634b5d11dff1ea6d5:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1
SELECT ( + CAST( NULL AS DECIMAL ) ), + ( - - 9 ) AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1
SELECT ( + CAST ( NULL AS REAL ) ), + ( - - 9 ) AS col2
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL - SUM( + + 92 ) * 66 + + COUNT( ALL 3 )
----
-6071

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - SUM ( + + 92 ) * 66 + + COUNT ( ALL 3 )
----
-6071

query I rowsort
SELECT ALL + - 50 * - 23 + + + 43 AS col0
----
1193

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT NULLIF ( - 85, - 18 ) * - - 51 * - 25 + - SUM( 51 ) * - 64 + - 15 AS col2
----
111624

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT NULLIF ( - 85, - 18 ) * - - 51 * - 25 + - SUM ( 51 ) * - 64 + - 15 AS col2
----
111624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL COUNT( + - CAST( NULL AS SIGNED ) ) * CASE + - 70 WHEN 18 THEN 85 WHEN - COUNT( * ) * - 67 + - 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL COUNT ( + - CAST ( NULL AS INTEGER ) ) * CASE + - 70 WHEN 18 THEN 85 WHEN - COUNT ( * ) * - 67 + - 13 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT DISTINCT 10 * + 14 DIV - - CASE - - 27 WHEN + 26 + + 13 THEN NULL ELSE - - 0 + 99 * + 26 END
----
0

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 10 * + 14 / - - CASE - - 27 WHEN + 26 + + 13 THEN NULL ELSE - - 0 + 99 * + 26 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7
SELECT + - 87 + - CAST( + 55 AS SIGNED ) * + 14
----
-857

skipif mysql # not compatible
query I rowsort label-7
SELECT + - 87 + - CAST ( + 55 AS INTEGER ) * + 14
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - + NULLIF ( - - COUNT( * ), 27 - + 36 + + 16 ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-8
SELECT - + NULLIF ( - - COUNT ( * ), 27 - + 36 + + 16 ) * - 69
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT + CASE - 64 WHEN - 66 THEN 14 / + SUM( + + 2 ) ELSE NULL END * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT + CASE - 64 WHEN - 66 THEN 14 / + SUM ( + + 2 ) ELSE NULL END * + 91 AS col2
----
NULL

query II rowsort
SELECT 91, 61 col1
----
91
61

query I rowsort
SELECT + ( + 93 ) * + 55
----
5115

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

skipif mysql # not compatible
query I rowsort label-13
SELECT - CAST ( NULL AS INTEGER ) + - ( 27 ) + + 1 AS col1
----
NULL

query I rowsort
SELECT ALL 43 - 83 col0
----
-40

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

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + COUNT ( * ) / 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT DISTINCT COALESCE ( 38, + 1 * + 19 ), - CASE - - ( - - 57 ) WHEN + 57 + 92 THEN NULL WHEN + 85 + - + ( + 57 ) - 12 THEN + + COUNT( ALL + 41 ) END AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT COALESCE ( 38, + 1 * + 19 ), - CASE - - ( - - 57 ) WHEN + 57 + 92 THEN NULL WHEN + 85 + - + ( + 57 ) - 12 THEN + + COUNT ( ALL + 41 ) END AS col1
----
38
NULL

query I rowsort
SELECT ALL + 89 * - 84 AS col2
----
-7476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-18
SELECT ALL COALESCE ( 4, - 3 DIV 67 DIV - 36 + - COALESCE ( + + 48, 86 * + + 21 DIV + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * + MIN( + 23 ) )
----
4

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL COALESCE ( 4, - 3 / 67 / - 36 + - COALESCE ( + + 48, 86 * + + 21 / + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + MIN ( + 23 ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT - 83 + - - 99 DIV 38 * + 30 * 60 AS col1
----
3517

skipif mysql # not compatible
query I rowsort label-19
SELECT - 83 + - - 99 / 38 * + 30 * 60 AS col1
----
3517

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

query II rowsort
SELECT - 99, 44 AS col0
----
-99
44

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT - NULLIF ( + CASE - ( + 99 ) WHEN 32 + + NULLIF ( + - 78, COUNT( * ) + + 90 ) THEN + MIN( DISTINCT + 20 ) - - 99 END, - COALESCE ( 85, - + 30 - 39 + COALESCE ( 31, - 23 + AVG ( ALL - 10 ) ) ) + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT - NULLIF ( + CASE - ( + 99 ) WHEN 32 + + NULLIF ( + - 78, COUNT ( * ) + + 90 ) THEN + MIN ( DISTINCT + 20 ) - - 99 END, - COALESCE ( 85, - + 30 - 39 + COALESCE ( 31, - 23 + AVG ( ALL - 10 ) ) ) + - 70 )
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT - 42 DIV 46 * 14 + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-25
SELECT - 42 / 46 * 14 + - 34 AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-26
SELECT ALL - 31 / - 83 * + CAST( NULL AS SIGNED ) + - - ( + + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - 31 / - 83 * + CAST ( NULL AS INTEGER ) + - - ( + + 10 )
----
NULL

query II rowsort
SELECT DISTINCT + 81 AS col1, + 33
----
81
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-28
SELECT ALL - + 23 DIV 38 + + NULLIF ( - ( + ( - 20 ) ), 61 * + 59 + - + COALESCE ( 20, + 27 ) + + COUNT( * ) DIV AVG ( ALL - 32 ) ) + 75 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL - + 23 / 38 + + NULLIF ( - ( + ( - 20 ) ), 61 * + 59 + - + COALESCE ( 20, + 27 ) + + COUNT ( * ) / AVG ( ALL - 32 ) ) + 75 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-29
SELECT ALL - 98 DIV MAX( + 29 ) + - 26 col2
----
-29

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - 98 / MAX ( + 29 ) + - 26 col2
----
-29

query I rowsort
SELECT - - 34 * + - 18 + 84
----
-528

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

skipif mysql # not compatible
query I rowsort label-31
SELECT + CAST ( NULL AS INTEGER ) / - - 65 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-32
SELECT DISTINCT 10 DIV ( + 99 ) + + 8
----
8

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT 10 / ( + 99 ) + + 8
----
8

query I rowsort
SELECT ALL + 57 * 59 - + 0
----
3363

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT 60 + + MIN( - + 20 ) * 29 + - + 2
----
-522

skipif mysql # not compatible
query I rowsort label-34
SELECT 60 + + MIN ( - + 20 ) * 29 + - + 2
----
-522

query I rowsort
SELECT DISTINCT + 46 - + + 50
----
-4

query II rowsort
SELECT + 2 + 98 - - 90 AS col1, 0 AS col2
----
190
0

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT DISTINCT + MAX( + + 22 ) - + + 83 + - 59 * + - 9
----
470

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + MAX ( + + 22 ) - + + 83 + - 59 * + - 9
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT - ( + - COUNT( - 34 ) ) * + + 45 + - + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - ( + - COUNT ( - 34 ) ) * + + 45 + - + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-39
SELECT ALL - + 85 AS col2, 66 * + COUNT( ALL 3 )
----
-85
66

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL - + 85 AS col2, 66 * + COUNT ( ALL 3 )
----
-85
66

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + - CASE + 58 WHEN - 6 / - 66 THEN + SUM( + NULLIF ( ( + 16 ), 44 ) ) WHEN - + 70 THEN - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT + - CASE + 58 WHEN - 6 / - 66 THEN + SUM ( + NULLIF ( ( + 16 ), 44 ) ) WHEN - + 70 THEN - 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL - + MAX( DISTINCT 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - + MAX ( DISTINCT 96 ) AS col2
----
-96

query I rowsort
SELECT DISTINCT 7 - - 35 + + 93 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT + CASE WHEN + 60 IS NOT NULL THEN + MAX( 53 ) ELSE NULL END col1
----
53

skipif mysql # not compatible
query I rowsort label-43
SELECT + CASE WHEN + 60 IS NOT NULL THEN + MAX ( 53 ) ELSE NULL END col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-44
SELECT 78 * + CAST( NULL AS SIGNED ) + - - 19 col2, 32 - - 10 + 39 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-44
SELECT 78 * + CAST ( NULL AS INTEGER ) + - - 19 col2, 32 - - 10 + 39 AS col2
----
NULL
81

query I rowsort
SELECT - 65 + 95 * + 3
----
220

query I rowsort
SELECT ALL + 21 * - + 33 * 62 col1
----
-42966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT ( 10 ) * CAST( + ( 51 ) AS SIGNED ) + 96 * - 66 AS col0
----
-5826

skipif mysql # not compatible
query I rowsort label-47
SELECT ( 10 ) * CAST ( + ( 51 ) AS INTEGER ) + 96 * - 66 AS col0
----
-5826

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

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT COUNT ( * ) * - ( + + 85 ) AS col2
----
-85

query I rowsort
SELECT ALL ( 51 ) * - 70 AS col1
----
-3570

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT ( + 12 ) DIV 46 + - + 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-50
SELECT ( + 12 ) / 46 + - + 29 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-51
SELECT CAST( NULL AS SIGNED ) / 0
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT CAST ( NULL AS INTEGER ) / 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-52
SELECT 42 DIV ( - 38 ) DIV 86 * + CAST( - 54 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT 42 / ( - 38 ) / 86 * + CAST ( - 54 AS INTEGER )
----
0

query I rowsort
SELECT ALL - 58 * + + 27
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-54
SELECT ALL 24 DIV - - COUNT( * ), 85 * + 41 AS col1
----
24
3485

skipif mysql # not compatible
query II rowsort label-54
SELECT ALL 24 / - - COUNT ( * ), 85 * + 41 AS col1
----
24
3485

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT + SUM( 82 ) col1, - COUNT( * ) - 57 + - COUNT( * )
----
82
-59

skipif mysql # not compatible
query II rowsort label-55
SELECT + SUM ( 82 ) col1, - COUNT ( * ) - 57 + - COUNT ( * )
----
82
-59

query I rowsort
SELECT 75 + 97
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT 41 * - 37 + 19 * COUNT( * ) + 81 * - ( + 80 ) AS col2
----
-7978

skipif mysql # not compatible
query I rowsort label-57
SELECT 41 * - 37 + 19 * COUNT ( * ) + 81 * - ( + 80 ) AS col2
----
-7978

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + - ( + - 67 ) + + 96 + COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + - ( + - 67 ) + + 96 + COUNT ( * )
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT COUNT( DISTINCT + 21 ) AS col1, - 70 AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-59
SELECT COUNT ( DISTINCT + 21 ) AS col1, - 70 AS col0
----
1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT + + ( MAX( DISTINCT - - 5 ) )
----
5

skipif mysql # not compatible
query I rowsort label-60
SELECT + + ( MAX ( DISTINCT - - 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT - + MAX( ALL + + 62 ) - - COUNT( * ) + 82 + + 16 - - 62
----
99

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - + MAX ( ALL + + 62 ) - - COUNT ( * ) + 82 + + 16 - - 62
----
99

query I rowsort
SELECT ALL + + 16 * - + 40 * 72
----
-46080

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

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

query I rowsort
SELECT - 13 * - - 98
----
-1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-65
SELECT + CASE + 27 WHEN + 56 THEN + + COUNT( * ) WHEN - 50 THEN + CAST( 13 AS SIGNED ) + + 39 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT + CASE + 27 WHEN + 56 THEN + + COUNT ( * ) WHEN - 50 THEN + CAST ( 13 AS INTEGER ) + + 39 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT DISTINCT + - MAX( ALL - 23 ) - + CAST( NULL AS SIGNED ) + + MAX( ALL + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + - MAX ( ALL - 23 ) - + CAST ( NULL AS INTEGER ) + + MAX ( ALL + 64 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-67
SELECT - 79 * - NULLIF ( - 8, - CAST( NULL AS DECIMAL ) )
----
-632

skipif mysql # not compatible
query I rowsort label-67
SELECT - 79 * - NULLIF ( - 8, - CAST ( NULL AS REAL ) )
----
-632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT + COALESCE ( 54, - 9 + - 24 + ( + - 23 ) DIV - 14, + + ( + + 17 ) * + + COUNT( * ) ) * - 60 AS col2
----
-3240

skipif mysql # not compatible
query I rowsort label-68
SELECT + COALESCE ( 54, - 9 + - 24 + ( + - 23 ) / - 14, + + ( + + 17 ) * + + COUNT ( * ) ) * - 60 AS col2
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT + ( - 44 ) - + + ( - - 18 ) + + - MIN( + 55 )
----
-117

skipif mysql # not compatible
query I rowsort label-69
SELECT + ( - 44 ) - + + ( - - 18 ) + + - MIN ( + 55 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT MIN( DISTINCT - + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT MIN ( DISTINCT - + 40 ) AS col0
----
-40

query I rowsort
SELECT DISTINCT - 16 * - 39
----
624

query I rowsort
SELECT 88 + 67 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT NULLIF ( + ( - COUNT( * ) ), - 21 / 32 * 64 * 96 + - + ( - 94 ) / + - COUNT( * ) + 39 ) - + - 37 * + + SUM( ALL - 57 ) * + 99 + + - 79 col1
----
-208871

skipif mysql # not compatible
query I rowsort label-73
SELECT NULLIF ( + ( - COUNT ( * ) ), - 21 / 32 * 64 * 96 + - + ( - 94 ) / + - COUNT ( * ) + 39 ) - + - 37 * + + SUM ( ALL - 57 ) * + 99 + + - 79 col1
----
-208871

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT 27 DIV - + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT 27 / - + 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-75
SELECT 98 + - 42 + - - 29 + 1 * + 81 AS col0, NULLIF ( + + 41, SUM( DISTINCT + - ( - 4 ) ) ) + - 4
----
166
37

skipif mysql # not compatible
query II rowsort label-75
SELECT 98 + - 42 + - - 29 + 1 * + 81 AS col0, NULLIF ( + + 41, SUM ( DISTINCT + - ( - 4 ) ) ) + - 4
----
166
37

query I rowsort
SELECT 33 - 38 AS col1
----
-5

query II rowsort
SELECT - 87, 25 AS col2
----
-87
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-78
SELECT DISTINCT CAST( - + 10 AS SIGNED ) + - 51 * COUNT( * ) + + 91 AS col1, ( 54 ) AS col2
----
30
54

skipif mysql # not compatible
query II rowsort label-78
SELECT DISTINCT CAST ( - + 10 AS INTEGER ) + - 51 * COUNT ( * ) + + 91 AS col1, ( 54 ) AS col2
----
30
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT ( CAST( + + 7 AS SIGNED ) ) + + + 19
----
26

skipif mysql # not compatible
query I rowsort label-79
SELECT ( CAST ( + + 7 AS INTEGER ) ) + + + 19
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL 12 + + SUM( DISTINCT + + 16 ) + - 28
----
0

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL 12 + + SUM ( DISTINCT + + 16 ) + - 28
----
0

query I rowsort
SELECT ALL 83 + + ( - - 7 ) col2
----
90

query I rowsort
SELECT 58 * - + 94 AS col1
----
-5452

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

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

query I rowsort
SELECT ( + - 17 ) + 30 + 98
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT - MAX( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-86
SELECT - MAX ( DISTINCT 83 )
----
-83

query I rowsort
SELECT 33 + - + 6 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - + 38 + - 75 AS col1
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT DISTINCT CAST( NULL AS SIGNED ) - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT ALL - ( 48 ) DIV + - 13 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - ( 48 ) / + - 13 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT + - 52 DIV + 96 * + 38
----
0

skipif mysql # not compatible
query I rowsort label-92
SELECT + - 52 / + 96 * + 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT - 8 * COALESCE ( 39, 54 * - + 54 + 18 + + 30 + - 49 * - SUM( ALL + 42 ) + - - 6, 0 - + - ( - AVG ( ALL 77 ) ) ) DIV + 71
----
-4

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - 8 * COALESCE ( 39, 54 * - + 54 + 18 + + 30 + - 49 * - SUM ( ALL + 42 ) + - - 6, 0 - + - ( - AVG ( ALL 77 ) ) ) / + 71
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT - 97 DIV + COUNT( DISTINCT 68 )
----
-97

skipif mysql # not compatible
query I rowsort label-94
SELECT - 97 / + COUNT ( DISTINCT 68 )
----
-97

query I rowsort
SELECT DISTINCT - 64 * + 5
----
-320

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

skipif mysql # not compatible
query I rowsort label-96
SELECT + - MIN ( + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL + COALESCE ( + 43, + 77 + + 26 - + + ( - 28 ) * + - 40 * + 28 * 85 * + MAX( DISTINCT - 58 ) * - 84 + ( + 25 ), - 85 + 46 ) * - 49 + 67 AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + COALESCE ( + 43, + 77 + + 26 - + + ( - 28 ) * + - 40 * + 28 * 85 * + MAX ( DISTINCT - 58 ) * - 84 + ( + 25 ), - 85 + 46 ) * - 49 + 67 AS col0
----
-2040

query I rowsort
SELECT - 91 * - ( - + 26 ) AS col2
----
-2366

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT COUNT( * ) col0, SUM( ALL + 38 ) * + - 80 + - 47 + + 53 AS col1
----
1
-3034

skipif mysql # not compatible
query II rowsort label-99
SELECT COUNT ( * ) col0, SUM ( ALL + 38 ) * + - 80 + - 47 + + 53 AS col1
----
1
-3034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 49 + - ( - - 38 ) + 5 + + - 44 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 49 + - ( - - 38 ) + 5 + + - 44 * - COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - COUNT ( * ) / + ( 87 ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-102
SELECT - 55 DIV + MAX( ALL ( - + 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-102
SELECT - 55 / + MAX ( ALL ( - + 39 ) )
----
1

query I rowsort
SELECT + 61 + + 73 AS col2
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT - CAST( + 1 AS SIGNED ) * - 54
----
54

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - CAST ( + 1 AS INTEGER ) * - 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ALL + COUNT( * ) + - + 37 col1
----
-36

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + COUNT ( * ) + - + 37 col1
----
-36

query II rowsort
SELECT - 85, - 27 col0
----
-85
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL CASE 86 WHEN 83 THEN NULL WHEN 93 * + 5 THEN NULL WHEN 40 - - + COUNT( * ) THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL CASE 86 WHEN 83 THEN NULL WHEN 93 * + 5 THEN NULL WHEN 40 - - + COUNT ( * ) THEN 24 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT ALL - 3 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL - 3 / - + 78
----
0

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

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

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

query I rowsort
SELECT ALL + 31 + - 76 * 6 AS col0
----
-425

query II rowsort
SELECT ALL 47, 27 AS col0
----
47
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT - 89 - + SUM( 74 ) - - NULLIF ( + 48, + 62 + - - 51 ) + + 64 + + 90 * + COALESCE ( - COALESCE ( - - 31, 93 ), - COUNT( * ) ) * + NULLIF ( - CAST( NULL AS SIGNED ), + - 40 + + 33 ) + 24 + + COALESCE ( 42, + 98 / + 12 ) * + + NULLIF ( - - ( - - 6 ), CASE + - 66 WHEN 33 + + 51 * - - 59 * - 16 THEN 76 WHEN 35 + 9 THEN - 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT - 89 - + SUM ( 74 ) - - NULLIF ( + 48, + 62 + - - 51 ) + + 64 + + 90 * + COALESCE ( - COALESCE ( - - 31, 93 ), - COUNT ( * ) ) * + NULLIF ( - CAST ( NULL AS INTEGER ), + - 40 + + 33 ) + 24 + + COALESCE ( 42, + 98 / + 12 ) * + + NULLIF ( - - ( - - 6 ), CASE + - 66 WHEN 33 + + 51 * - - 59 * - 16 THEN 76 WHEN 35 + 9 THEN - 76 END )
----
NULL

query I rowsort
SELECT ALL ( + - ( 83 ) ) AS col2
----
-83

query I rowsort
SELECT + 71 * - 38 * + + 26 * + 68
----
-4770064

query II rowsort
SELECT 36, COALESCE ( + 51, - 98, + 67 - - - 56 + 83 ) AS col1
----
36
51

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT - MIN( + 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-118
SELECT - MIN ( + 41 ) AS col2
----
-41

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

skipif mysql # not compatible
query II rowsort label-119
SELECT 74 AS col2, - COUNT ( * ) AS col0
----
74
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + 32 - COUNT( + 90 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-121
SELECT + 32 - COUNT ( + 90 ) AS col1
----
31

query II rowsort
SELECT ALL 56 AS col0, - 92 * + + 16 col2
----
56
-1472

query II rowsort
SELECT DISTINCT - ( - 16 ) AS col0, 80 + + 99 + + 13 * 93 + - 84 - + ( - 74 ) * - - 69
----
16
6410

query II rowsort
SELECT - 95 AS col1, 83
----
-95
83

query I rowsort
SELECT - - 20 + + + 73
----
93

query II rowsort
SELECT ALL + + 51, - ( + - 67 ) AS col1
----
51
67

query I rowsort
SELECT + + 45 + + + ( + 59 ) * - + 44
----
-2551

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT + - 29 * 50 * + MAX( + 79 )
----
-114550

skipif mysql # not compatible
query I rowsort label-128
SELECT + - 29 * 50 * + MAX ( + 79 )
----
-114550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT 23 DIV 35 * + COUNT( - 66 ) + 85 * + 62
----
5270

skipif mysql # not compatible
query I rowsort label-129
SELECT 23 / 35 * + COUNT ( - 66 ) + 85 * + 62
----
5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-130
SELECT ALL + - CASE + 72 WHEN + 63 THEN + NULLIF ( - CAST( - SUM( DISTINCT + 24 ) AS SIGNED ), - 75 * - 79 + + CASE - 65 WHEN COUNT( * ) THEN NULL WHEN 12 / - + 53 + - 87 THEN + - MIN( + - 36 ) END + + - 91 * + 41 / + NULLIF ( - 57, + 50 ) * + AVG ( DISTINCT - + 42 ) + - + 47 * 46 * 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + - CASE + 72 WHEN + 63 THEN + NULLIF ( - CAST ( - SUM ( DISTINCT + 24 ) AS INTEGER ), - 75 * - 79 + + CASE - 65 WHEN COUNT ( * ) THEN NULL WHEN 12 / - + 53 + - 87 THEN + - MIN ( + - 36 ) END + + - 91 * + 41 / + NULLIF ( - 57, + 50 ) * + AVG ( DISTINCT - + 42 ) + - + 47 * 46 * 77 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-131
SELECT + AVG ( ALL - + 29 ) + - - ( - - CASE + 69 WHEN + NULLIF ( - + 4, + 23 + - - 94 - - - MAX( ALL 39 ) ) + 65 THEN - - ( + CAST( + MIN( ALL ( - 23 ) ) AS DECIMAL ) ) + - ( 78 ) WHEN 21 * SUM( ALL - 49 ) * + - ( - + 14 ) + NULLIF ( - SUM( DISTINCT 74 ), + 11 * + - 72 + + 37 * - 53 / - 76 + 16 ) * - 68 + CAST( - 92 + + COUNT( * ) AS SIGNED ) THEN - 96 END ) * ( NULLIF ( + COUNT( ALL ( - 85 ) ), + ( COUNT( * ) ) + + COUNT( * ) * ( 3 * COALESCE ( + 77, 51, - 11 ) + 62 ) ) + COALESCE ( + 16, 59 * 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT + AVG ( ALL - + 29 ) + - - ( - - CASE + 69 WHEN + NULLIF ( - + 4, + 23 + - - 94 - - - MAX ( ALL 39 ) ) + 65 THEN - - ( + CAST ( + MIN ( ALL ( - 23 ) ) AS REAL ) ) + - ( 78 ) WHEN 21 * SUM ( ALL - 49 ) * + - ( - + 14 ) + NULLIF ( - SUM ( DISTINCT 74 ), + 11 * + - 72 + + 37 * - 53 / - 76 + 16 ) * - 68 + CAST ( - 92 + + COUNT ( * ) AS INTEGER ) THEN - 96 END ) * ( NULLIF ( + COUNT ( ALL ( - 85 ) ), + ( COUNT ( * ) ) + + COUNT ( * ) * ( 3 * COALESCE ( + 77, 51, - 11 ) + 62 ) ) + COALESCE ( + 16, 59 * 25 ) )
----
NULL

query I rowsort
SELECT + CASE 71 WHEN + COALESCE ( - - 19, - 48 * + 52 * AVG ( - - 13 ) * - - NULLIF ( - - COALESCE ( 28, 49 ), 96 + 77 ) ) * + 26 THEN NULL ELSE 6 END AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-133
SELECT ALL + 40 DIV - NULLIF ( - 42, 96 + + 27 ) + - MAX( + - 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + 40 / - NULLIF ( - 42, 96 + + 27 ) + - MAX ( + - 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT + 48 * 86 + + + 19 + + ( + 50 ) + + 45 * - + NULLIF ( 91, + 76 - - CASE + + 91 WHEN + 52 THEN NULL WHEN 71 THEN COUNT( * ) ELSE NULL END * - - ( - 63 ) * + + COUNT( * ) * 72 + - 50 )
----
102

skipif mysql # not compatible
query I rowsort label-134
SELECT + 48 * 86 + + + 19 + + ( + 50 ) + + 45 * - + NULLIF ( 91, + 76 - - CASE + + 91 WHEN + 52 THEN NULL WHEN 71 THEN COUNT ( * ) ELSE NULL END * - - ( - 63 ) * + + COUNT ( * ) * 72 + - 50 )
----
102

query I rowsort
SELECT + 79 * + - 30
----
-2370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT ( - CAST( - + 1 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-136
SELECT ( - CAST ( - + 1 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL COALESCE ( + COUNT( * ), + 4, - + 9 ) * NULLIF ( - + 37, - + 94 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL COALESCE ( + COUNT ( * ), + 4, - + 9 ) * NULLIF ( - + 37, - + 94 ) AS col2
----
-37

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

skipif mysql # not compatible
query II rowsort label-138
SELECT ( + + 75 ) col1, + COUNT ( * )
----
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT - COUNT( - 56 ) / - ( CASE - 74 WHEN - ( - 86 ) * + 48 + ( + 16 ) THEN - ( - - COUNT( * ) ) / + 29 + - 44 + 64 * - + 17 + - + COUNT( * ) + - + 33 + - 34 * + 50 / + 79 / + COALESCE ( - ( - 23 ), + COALESCE ( SUM( 95 ), - + 69 * - 27 + - 91 ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT - COUNT ( - 56 ) / - ( CASE - 74 WHEN - ( - 86 ) * + 48 + ( + 16 ) THEN - ( - - COUNT ( * ) ) / + 29 + - 44 + 64 * - + 17 + - + COUNT ( * ) + - + 33 + - 34 * + 50 / + 79 / + COALESCE ( - ( - 23 ), + COALESCE ( SUM ( 95 ), - + 69 * - 27 + - 91 ) ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-140
SELECT NULLIF ( - 30, + + COUNT( 68 ) + 49 ) AS col1, - 22 AS col0
----
-30
-22

skipif mysql # not compatible
query II rowsort label-140
SELECT NULLIF ( - 30, + + COUNT ( 68 ) + 49 ) AS col1, - 22 AS col0
----
-30
-22

query I rowsort
SELECT + 49 - 91
----
-42

query I rowsort
SELECT ALL + 54 * + 13 + 44 - - 55 AS col1
----
801

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT + MIN( DISTINCT - + 69 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT + MIN ( DISTINCT - + 69 ) col1
----
-69

query I rowsort
SELECT ALL - ( + 59 ) * - 98 + - 58 - + 61
----
5663

query II rowsort
SELECT - 83 * 5 AS col1, 44 * - 80
----
-415
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT - COALESCE ( + 92, + + 59, - ( + - COUNT( * ) ) + - 57 )
----
-92

skipif mysql # not compatible
query I rowsort label-146
SELECT - COALESCE ( + 92, + + 59, - ( + - COUNT ( * ) ) + - 57 )
----
-92

query II rowsort
SELECT ALL - 0 - 94 AS col1, 36
----
-94
36

query II rowsort
SELECT 51 * 95 * - + 56, 61 AS col1
----
-271320
61

query I rowsort
SELECT ALL + 37 * 47 * 82
----
142598

query I rowsort
SELECT 58 + + 53
----
111

query I rowsort
SELECT ALL CASE - + 76 WHEN + 62 THEN + 36 ELSE - - 23 * 46 END
----
1058

onlyif mysql # aggregate syntax: 
query II rowsort label-152
SELECT ALL - SUM( + 94 ) col1, + 38
----
-94
38

skipif mysql # not compatible
query II rowsort label-152
SELECT ALL - SUM ( + 94 ) col1, + 38
----
-94
38

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL + 30 * MAX( 77 ) * - + ( - + 27 ) + + 40 AS col0
----
62410

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + 30 * MAX ( 77 ) * - + ( - + 27 ) + + 40 AS col0
----
62410

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - - ( - - COALESCE ( - 1, 80, COUNT( * ), SUM( DISTINCT + + 4 ) + + COUNT( * ) * + 60, 43 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-154
SELECT - - ( - - COALESCE ( - 1, 80, COUNT ( * ), SUM ( DISTINCT + + 4 ) + + COUNT ( * ) * + 60, 43 ) ) AS col2
----
-1

query I rowsort
SELECT + 10 * - + 98 + ( 50 ) AS col1
----
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT - 19 DIV - - 68 + - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-156
SELECT - 19 / - - 68 + - 54 AS col1
----
-54

query I rowsort
SELECT - 2 * - 32
----
64

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

query I rowsort
SELECT DISTINCT - + 55 + + 27 * - - 3 AS col0
----
26

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

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

query II rowsort
SELECT ALL + - 4 + + 5 AS col2, 35 AS col1
----
1
35

query I rowsort
SELECT ALL - - 42 + + + 6 * 37
----
264

query I rowsort
SELECT + 46 * 71 - - 73 + + 81
----
3420

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT ALL 65 * - - 28 * + COUNT( * ), 29 * 79 * + COUNT( * ) AS col0
----
1820
2291

skipif mysql # not compatible
query II rowsort label-164
SELECT ALL 65 * - - 28 * + COUNT ( * ), 29 * 79 * + COUNT ( * ) AS col0
----
1820
2291

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT - COUNT( * ) * - ( - + CASE - COUNT( * ) WHEN + COUNT( * ) THEN + 65 * + + 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT - COUNT ( * ) * - ( - + CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + 65 * + + 4 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT DISTINCT COALESCE ( + - 48, + 20, - COUNT( * ) * - 14, - + 14 - 84 - - 34 * 71 DIV + + 11 + + COUNT( * ) - - 12 + - 21 DIV + 75 DIV + 45 ) * + NULLIF ( COUNT( DISTINCT - 7 ), COUNT( * ) * + 2 * + 45 )
----
-48

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT COALESCE ( + - 48, + 20, - COUNT ( * ) * - 14, - + 14 - 84 - - 34 * 71 / + + 11 + + COUNT ( * ) - - 12 + - 21 / + 75 / + 45 ) * + NULLIF ( COUNT ( DISTINCT - 7 ), COUNT ( * ) * + 2 * + 45 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT ALL + 3 * CAST( + AVG ( DISTINCT 84 ) AS SIGNED ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + 3 * CAST ( + AVG ( DISTINCT 84 ) AS INTEGER ) AS col0
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT ALL 96 DIV 91 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL 96 / 91 AS col0
----
1

query II rowsort
SELECT ALL - 78, - 38 * + + 40 col1
----
-78
-1520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-170
SELECT DISTINCT 66 - - CAST( - 14 AS SIGNED ) AS col1, - ( - 66 ) DIV + 74 - + 7 - + + ( + + 34 ) AS col0
----
52
-41

skipif mysql # not compatible
query II rowsort label-170
SELECT DISTINCT 66 - - CAST ( - 14 AS INTEGER ) AS col1, - ( - 66 ) / + 74 - + 7 - + + ( + + 34 ) AS col0
----
52
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-171
SELECT NULLIF ( - 46, NULLIF ( + 52, + + CASE - 92 WHEN + 89 THEN + 87 + - 1 END - - 18 ) * - NULLIF ( + 84, MIN( + + 29 ) ) + + 54 * - 43 * 15 * CASE + 88 WHEN + CASE + ( - 20 ) WHEN - CAST( NULL AS SIGNED ) + - - COUNT( DISTINCT + - 2 ) THEN 71 ELSE + 12 / - ( + 85 ) * - 4 END THEN 26 * + + 64 + - 81 WHEN + 35 THEN - 36 * 43 END * 60 ) * 94 + 76
----
-4248

skipif mysql # not compatible
query I rowsort label-171
SELECT NULLIF ( - 46, NULLIF ( + 52, + + CASE - 92 WHEN + 89 THEN + 87 + - 1 END - - 18 ) * - NULLIF ( + 84, MIN ( + + 29 ) ) + + 54 * - 43 * 15 * CASE + 88 WHEN + CASE + ( - 20 ) WHEN - CAST ( NULL AS INTEGER ) + - - COUNT ( DISTINCT + - 2 ) THEN 71 ELSE + 12 / - ( + 85 ) * - 4 END THEN 26 * + + 64 + - 81 WHEN + 35 THEN - 36 * 43 END * 60 ) * 94 + 76
----
-4248

query I rowsort
SELECT DISTINCT 95 * - 4
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT COUNT( * ) * - - 72 col2
----
72

skipif mysql # not compatible
query I rowsort label-173
SELECT COUNT ( * ) * - - 72 col2
----
72

query I rowsort
SELECT 51 * - 62 AS col2
----
-3162

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT - 4 AS col1, MIN( - 75 )
----
-4
-75

skipif mysql # not compatible
query II rowsort label-175
SELECT - 4 AS col1, MIN ( - 75 )
----
-4
-75

query II rowsort
SELECT DISTINCT 6, 4 AS col2
----
6
4

query I rowsort
SELECT ALL 17 * + + 59
----
1003

query II rowsort
SELECT 7, 55 + + 27 AS col0
----
7
82

query I rowsort
SELECT ALL - ( 15 ) AS col0
----
-15

query II rowsort
SELECT DISTINCT + 1 * ( - 38 ) col2, - 14
----
-38
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT 98 - - COUNT( * ) * 98 * 23
----
2352

skipif mysql # not compatible
query I rowsort label-181
SELECT 98 - - COUNT ( * ) * 98 * 23
----
2352

query I rowsort
SELECT - - 88 col1
----
88

query I rowsort
SELECT 34 * - - 8
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL + + 82 DIV + - 14 + 83 - + 31 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + + 82 / + - 14 + 83 - + 31 AS col1
----
47

query I rowsort
SELECT 67 - - 63 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT ALL COUNT( * ) AS col2, 6 * 2 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-186
SELECT ALL COUNT ( * ) AS col2, 6 * 2 AS col2
----
1
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT ALL + + COALESCE ( + 0, + 73 * + COUNT( * ) + + 5, 61 + 60 * + NULLIF ( - 74, - 40 DIV - 82 ) DIV 91 + - 97 ) + 52
----
52

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + + COALESCE ( + 0, + 73 * + COUNT ( * ) + + 5, 61 + 60 * + NULLIF ( - 74, - 40 / - 82 ) / 91 + - 97 ) + 52
----
52

query I rowsort
SELECT DISTINCT - 93 + + + 82 + 21 AS col1
----
10

query I rowsort
SELECT ALL - 82 + - 85 AS col2
----
-167

query I rowsort
SELECT DISTINCT + 24 * 37
----
888

query I rowsort
SELECT - COALESCE ( + 57, + - 82 + + - 99, + + 7 * + 98 ) * + 83 AS col0
----
-4731

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT 93 + - 49 + - 36 + + + CASE + 67 WHEN - ( - NULLIF ( + - 26, COUNT( * ) ) ) THEN + 28 + + 76 + + 46 - + ( + + AVG ( 70 ) ) / COUNT( ALL - 11 ) + 16 END * - ( + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT 93 + - 49 + - 36 + + + CASE + 67 WHEN - ( - NULLIF ( + - 26, COUNT ( * ) ) ) THEN + 28 + + 76 + + 46 - + ( + + AVG ( 70 ) ) / COUNT ( ALL - 11 ) + 16 END * - ( + + 68 )
----
NULL

query I rowsort
SELECT 36 * + - 29 AS col2
----
-1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT + + NULLIF ( NULLIF ( ( - 57 ), - COUNT( * ) ), - 66 + - NULLIF ( - MIN( ALL ( + 24 ) ), - 74 * + - COUNT( * ) ) + - - 31 ) * - - ( 36 ) + - 91 * + - ( 70 ) DIV 14
----
-1597

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT + + NULLIF ( NULLIF ( ( - 57 ), - COUNT ( * ) ), - 66 + - NULLIF ( - MIN ( ALL ( + 24 ) ), - 74 * + - COUNT ( * ) ) + - - 31 ) * - - ( 36 ) + - 91 * + - ( 70 ) / 14
----
-1597

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT + - NULLIF ( - 76, + COALESCE ( ( 77 ), + ( - 1 ), - - 55 / + 76 / + - ( COALESCE ( + 20, + 96 + - 78 ) ) ) + - NULLIF ( - + SUM( ALL 32 ), + 23 ) / + + CAST( 88 AS SIGNED ) + - 35 )
----
76

skipif mysql # not compatible
query I rowsort label-196
SELECT + - NULLIF ( - 76, + COALESCE ( ( 77 ), + ( - 1 ), - - 55 / + 76 / + - ( COALESCE ( + 20, + 96 + - 78 ) ) ) + - NULLIF ( - + SUM ( ALL 32 ), + 23 ) / + + CAST ( 88 AS INTEGER ) + - 35 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL - - 44 * SUM( ALL - 49 ) + - 45 AS col0
----
-2201

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL - - 44 * SUM ( ALL - 49 ) + - 45 AS col0
----
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT - 63 / + ( CASE 86 WHEN - MAX( + - 4 ) + COUNT( * ) - - 36 THEN NULL WHEN - + 29 THEN 21 END ) + + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT - 63 / + ( CASE 86 WHEN - MAX ( + - 4 ) + COUNT ( * ) - - 36 THEN NULL WHEN - + 29 THEN 21 END ) + + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-199
SELECT ALL - 16 * + 86 * 78 - + - 21 + - 40 - - + 74 DIV COUNT( * ) * 81 DIV + + 19 AS col1, 0 + - 74 + + 3 DIV + COUNT( * ) AS col0
----
-107032
-71

skipif mysql # not compatible
query II rowsort label-199
SELECT ALL - 16 * + 86 * 78 - + - 21 + - 40 - - + 74 / COUNT ( * ) * 81 / + + 19 AS col1, 0 + - 74 + + 3 / + COUNT ( * ) AS col0
----
-107032
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT MAX( + 55 ) AS col0, + 54
----
55
54

skipif mysql # not compatible
query II rowsort label-200
SELECT MAX ( + 55 ) AS col0, + 54
----
55
54

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

skipif mysql # not compatible
query I rowsort label-201
SELECT SUM ( DISTINCT - - 39 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-202
SELECT ALL + CAST( + 68 AS SIGNED ) * - + 52 * COUNT( * )
----
-3536

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL + CAST ( + 68 AS INTEGER ) * - + 52 * COUNT ( * )
----
-3536

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT DISTINCT 19 * - MAX( DISTINCT + 41 ) * + + 68
----
-52972

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT 19 * - MAX ( DISTINCT + 41 ) * + + 68
----
-52972

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

skipif mysql # not compatible
query I rowsort label-204
SELECT + 25 * - 98 + - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL 54 * 62 AS col2
----
3348

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT + ( + 3 ) DIV - - 28
----
0

skipif mysql # not compatible
query I rowsort label-208
SELECT + ( + 3 ) / - - 28
----
0

query I rowsort
SELECT ALL 70 + - 11
----
59

query II rowsort
SELECT + ( - 53 ) + + 20 + - 37, - 80 * - + 16 AS col2
----
-70
1280

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + - 27 - 48 + COUNT( * ) + - - 8 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-212
SELECT + - 27 - 48 + COUNT ( * ) + - - 8 AS col1
----
-66

query I rowsort
SELECT - - COALESCE ( + 79, - + 8 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-214
SELECT + CASE - NULLIF ( + ( - - COUNT( * ) ), + 69 ) WHEN - 19 THEN COUNT( * ) * - + 47 ELSE + 95 DIV COUNT( * ) END DIV + 31 - - 93 * - 27
----
-2508

skipif mysql # not compatible
query I rowsort label-214
SELECT + CASE - NULLIF ( + ( - - COUNT ( * ) ), + 69 ) WHEN - 19 THEN COUNT ( * ) * - + 47 ELSE + 95 / COUNT ( * ) END / + 31 - - 93 * - 27
----
-2508

query I rowsort
SELECT - + 52 * + + 68
----
-3536

query II rowsort
SELECT ALL - 47 + COALESCE ( 61, - 7 ) + 82 AS col0, 95
----
96
95

query I rowsort
SELECT + - 41 + NULLIF ( + + 98, - 98 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-218
SELECT ALL + - COUNT( * ) * - ( - ( 86 ) ) + + - 84, + 91 - + CAST( 88 AS SIGNED ) AS col0
----
-170
3

skipif mysql # not compatible
query II rowsort label-218
SELECT ALL + - COUNT ( * ) * - ( - ( 86 ) ) + + - 84, + 91 - + CAST ( 88 AS INTEGER ) AS col0
----
-170
3

query I rowsort
SELECT ALL - 97 + 18 AS col0
----
-79

query I rowsort
SELECT + - 92 + - 56
----
-148

query I rowsort
SELECT DISTINCT - 28 * + ( - COALESCE ( + + 91, - 79, + 0 ) ) AS col2
----
2548

query I rowsort
SELECT - 41 + 15 AS col1
----
-26

query II rowsort
SELECT - 64 + + + 40, + 10 col1
----
-24
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-224
SELECT + + 15 + + - COALESCE ( - 99, - - 90 * - 96 * + 88 - - 35 + 75 + 14 * 73 + + - COUNT( * ), - NULLIF ( ( - AVG ( DISTINCT - 1 ) ), 8 + + + 64 + + + 15 * COALESCE ( - COUNT( * ), 43 * NULLIF ( - 13, 93 DIV + 51 + 41 ) + - - 2 * + 74 DIV - - 42 - - 50 * MIN( DISTINCT 36 ), + 56, 17 ) + 28 * + 33 ) DIV CAST( COUNT( * ) AS SIGNED ) )
----
114

skipif mysql # not compatible
query I rowsort label-224
SELECT + + 15 + + - COALESCE ( - 99, - - 90 * - 96 * + 88 - - 35 + 75 + 14 * 73 + + - COUNT ( * ), - NULLIF ( ( - AVG ( DISTINCT - 1 ) ), 8 + + + 64 + + + 15 * COALESCE ( - COUNT ( * ), 43 * NULLIF ( - 13, 93 / + 51 + 41 ) + - - 2 * + 74 / - - 42 - - 50 * MIN ( DISTINCT 36 ), + 56, 17 ) + 28 * + 33 ) / CAST ( COUNT ( * ) AS INTEGER ) )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT + 8 * + - 89 * SUM( DISTINCT - 54 ) AS col0
----
38448

skipif mysql # not compatible
query I rowsort label-225
SELECT + 8 * + - 89 * SUM ( DISTINCT - 54 ) AS col0
----
38448

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT - + 12 * + NULLIF ( + 35, - + 80 * 83 + + MAX( DISTINCT 42 ) ) AS col0
----
-420

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT - + 12 * + NULLIF ( + 35, - + 80 * 83 + + MAX ( DISTINCT 42 ) ) AS col0
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT - 26 + + 52 + 58 DIV 79 * + 60 * - 22
----
26

skipif mysql # not compatible
query I rowsort label-227
SELECT - 26 + + 52 + 58 / 79 * + 60 * - 22
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT DISTINCT 32 DIV - 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT 32 / - 44 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT 53 DIV - 92 - 77
----
-77

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT 53 / - 92 - 77
----
-77

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

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

query I rowsort
SELECT - 78 * - - 18 AS col1
----
-1404

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

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

query I rowsort
SELECT - 90 + - 97 AS col2
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + ( + - NULLIF ( COUNT( * ), COUNT( * ) + + - 58 * + COUNT( * ) * + + 39 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + ( + - NULLIF ( COUNT ( * ), COUNT ( * ) + + - 58 * + COUNT ( * ) * + + 39 ) )
----
-1

query I rowsort
SELECT - 42 * + - 49
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL + CASE - - MIN( ALL 53 ) WHEN 82 + - 63 * - COALESCE ( - + 76, + 27 ) + - + 50 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + CASE - - MIN ( ALL 53 ) WHEN 82 + - 63 * - COALESCE ( - + 76, + 27 ) + - + 50 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-237
SELECT + 20 DIV - - 95 + + MIN( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-237
SELECT + 20 / - - 95 + + MIN ( DISTINCT 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT - COUNT( * ) + 69 + - - 33 + 36 + 87 + + COUNT( ALL 27 ) + - 24 + - SUM( - 88 ) DIV 4 + - 96
----
127

skipif mysql # not compatible
query I rowsort label-238
SELECT - COUNT ( * ) + 69 + - - 33 + 36 + 87 + + COUNT ( ALL 27 ) + - 24 + - SUM ( - 88 ) / 4 + - 96
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT ALL 0 * CAST( CAST( 38 AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL 0 * CAST ( CAST ( 38 AS INTEGER ) AS INTEGER )
----
0

query I rowsort
SELECT CASE COALESCE ( + 34, - + ( - - ( + 7 ) ) ) WHEN 11 THEN NULL WHEN 24 THEN NULL ELSE - 28 END AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT COALESCE ( + 40, - 27 + 85 - 33, - + 43 + COUNT( * ) DIV - NULLIF ( + - ( - 29 ), + 79 + 41 - 98 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-241
SELECT COALESCE ( + 40, - 27 + 85 - 33, - + 43 + COUNT ( * ) / - NULLIF ( + - ( - 29 ), + 79 + 41 - 98 ) ) AS col1
----
40

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

skipif mysql # not compatible
query I rowsort label-242
SELECT + 76 * + COUNT ( * ) + + 54 AS col1
----
130

query I rowsort
SELECT - 52 * + + 15 * + 49
----
-38220

query I rowsort
SELECT DISTINCT + NULLIF ( + 74, - 73 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - SUM( ALL + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-245
SELECT - SUM ( ALL + 15 ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + COALESCE ( + 83, + - 56 ) * 29 + - 44
----
2363

query I rowsort
SELECT + + 30 * + 93 AS col1
----
2790

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - + 60 - + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-249
SELECT - + 60 - + COUNT ( * )
----
-61

query II rowsort
SELECT + 32 AS col0, 67 col0
----
32
67

query II rowsort
SELECT 68, 56 * 21 AS col2
----
68
1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-252
SELECT + + 80 DIV + 81 - COALESCE ( - SUM( ALL - - 42 ), + + 63 * + 40 ) - - 68 * + ( - 64 )
----
-4310

skipif mysql # not compatible
query I rowsort label-252
SELECT + + 80 / + 81 - COALESCE ( - SUM ( ALL - - 42 ), + + 63 * + 40 ) - - 68 * + ( - 64 )
----
-4310

query II rowsort
SELECT ALL + 75 - + 64 + - + 3 AS col2, 20 AS col1
----
8
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT + 1 * - 53 * - + MAX( - + CAST( + 69 AS SIGNED ) ) * + 74 + + - 11
----
-270629

skipif mysql # not compatible
query I rowsort label-254
SELECT + 1 * - 53 * - + MAX ( - + CAST ( + 69 AS INTEGER ) ) * + 74 + + - 11
----
-270629

query II rowsort
SELECT ALL + 2 AS col0, + 98
----
2
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL COUNT( * ) - 83
----
-82

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL COUNT ( * ) - 83
----
-82

query II rowsort
SELECT ALL - 32 AS col1, 60 + - ( + 52 ) AS col0
----
-32
8

query I rowsort
SELECT ALL 8 * + 27 AS col2
----
216

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

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

query I rowsort
SELECT - ( - ( - - 54 ) )
----
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT - 55 * + + COALESCE ( + - 19, + ( 98 ) DIV + - 8 ) * + 93 * - 77 * - 29 AS col0
----
217014105

skipif mysql # not compatible
query I rowsort label-263
SELECT - 55 * + + COALESCE ( + - 19, + ( 98 ) / + - 8 ) * + 93 * - 77 * - 29 AS col0
----
217014105

query I rowsort
SELECT + 66 * - 2 AS col1
----
-132

query I rowsort
SELECT - 67 * 49 + - 38 AS col2
----
-3321

query I rowsort
SELECT 71 - - + COALESCE ( 86, + 33 )
----
157

onlyif mysql # DIV for integer division: 
query II rowsort label-267
SELECT DISTINCT - 10 AS col1, - 96 + 19 DIV + 10
----
-10
-95

skipif mysql # not compatible
query II rowsort label-267
SELECT DISTINCT - 10 AS col1, - 96 + 19 / + 10
----
-10
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT AVG ( ALL + 15 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT AVG ( ALL + 15 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 9 * 44 col0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT MAX( ALL + 70 ) * - + 71
----
-4970

skipif mysql # not compatible
query I rowsort label-270
SELECT MAX ( ALL + 70 ) * - + 71
----
-4970

query I rowsort
SELECT ALL - 10 + + 69 AS col0
----
59

query II rowsort
SELECT + 97 AS col1, 87 AS col1
----
97
87

query II rowsort
SELECT 23 col2, 81 + 9
----
23
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-274
SELECT ALL + 46 + + CAST( NULL AS DECIMAL ) - - + 73 / 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + 46 + + CAST ( NULL AS REAL ) - - + 73 / 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-275
SELECT COALESCE ( 8, 81 * - 34 + 65 + + - MIN( 8 ) + + + COUNT( * ) ) * + - 94 + + 76 + - 86 + 71 + + 64 + - 34 + - COUNT( * ) * - 42 DIV - 62 + 24 * - - 0 col1, 22 * - 81 AS col1
----
-661
-1782

skipif mysql # not compatible
query II rowsort label-275
SELECT COALESCE ( 8, 81 * - 34 + 65 + + - MIN ( 8 ) + + + COUNT ( * ) ) * + - 94 + + 76 + - 86 + 71 + + 64 + - 34 + - COUNT ( * ) * - 42 / - 62 + 24 * - - 0 col1, 22 * - 81 AS col1
----
-661
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT DISTINCT - 37 * + 26 * NULLIF ( + 70, - CAST( NULL AS SIGNED ) - + 41 ) AS col0
----
-67340

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - 37 * + 26 * NULLIF ( + 70, - CAST ( NULL AS INTEGER ) - + 41 ) AS col0
----
-67340

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT 2 * - + NULLIF ( + 84, COUNT( * ) ) col2
----
-168

skipif mysql # not compatible
query I rowsort label-277
SELECT 2 * - + NULLIF ( + 84, COUNT ( * ) ) col2
----
-168

query I rowsort
SELECT DISTINCT - 52 + - ( - 88 )
----
36

query II rowsort
SELECT + 48, + 66 + - + 2 AS col0
----
48
64

query I rowsort
SELECT ALL + - 75 + - + 52 * + - 25
----
1225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT COUNT( - CAST( NULL AS SIGNED ) ) + MIN( ALL + + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-281
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) + MIN ( ALL + + 95 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-282
SELECT ALL + - 58 + + + COUNT( * ) * + 92 DIV + 38 AS col0, 67 - - - COUNT( ALL - 62 )
----
-56
66

skipif mysql # not compatible
query II rowsort label-282
SELECT ALL + - 58 + + + COUNT ( * ) * + 92 / + 38 AS col0, 67 - - - COUNT ( ALL - 62 )
----
-56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL + 39 + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + 39 + COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-284
SELECT ( - - CAST( - ( + 6 ) AS SIGNED ) ) AS col0, - 6 + + 63 + - 74 + + 69
----
-6
52

skipif mysql # not compatible
query II rowsort label-284
SELECT ( - - CAST ( - ( + 6 ) AS INTEGER ) ) AS col0, - 6 + + 63 + - 74 + + 69
----
-6
52

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

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

query I rowsort
SELECT 42 - - 65 AS col1
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT ALL - + 70 * - - CAST( - 59 AS SIGNED )
----
4130

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - + 70 * - - CAST ( - 59 AS INTEGER )
----
4130

query I rowsort
SELECT 88 + - - 76
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT ALL + 4 - + 73 + 52 - + 98 + 44 DIV - 26 + + - 48 DIV + - 44 + - 89 + - + 44 AS col2
----
-248

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + 4 - + 73 + 52 - + 98 + 44 / - 26 + + - 48 / + - 44 + - 89 + - + 44 AS col2
----
-248

query I rowsort
SELECT - + 76 col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT - MAX( DISTINCT CAST( 80 AS SIGNED ) )
----
-80

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT - MAX ( DISTINCT CAST ( 80 AS INTEGER ) )
----
-80

query I rowsort
SELECT 68 + - + 12
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT + 26 + COALESCE ( - 60, COUNT( * ) * ( MIN( DISTINCT + 53 ) ) * - 48 * 23 - + + 9 + - 60 + + - 44 - - + 36 * 0 + 28 - COUNT( * ) - + 6, + 31 + 28 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-294
SELECT + 26 + COALESCE ( - 60, COUNT ( * ) * ( MIN ( DISTINCT + 53 ) ) * - 48 * 23 - + + 9 + - 60 + + - 44 - - + 36 * 0 + 28 - COUNT ( * ) - + 6, + 31 + 28 ) AS col0
----
-34

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT ALL 34 AS col2, + 18 + MAX( DISTINCT - + 72 ) AS col0
----
34
-54

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL 34 AS col2, + 18 + MAX ( DISTINCT - + 72 ) AS col0
----
34
-54

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-299
SELECT ALL ( 30 ) DIV - - 36 * CAST( - - 27 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL ( 30 ) / - - 36 * CAST ( - - 27 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-300
SELECT CASE - - CASE - 49 WHEN + COUNT( * ) THEN NULL WHEN + 26 * + + 69 * + + 9 THEN + 12 ELSE + + 9 END WHEN + + CAST( + ( + 60 ) AS SIGNED ) * - 12 THEN NULL WHEN - 45 + + 8 + + 29 THEN NULL ELSE - + NULLIF ( - 21, CAST( 36 AS SIGNED ) + 18 - COUNT( - 97 ) ) END * - COUNT( * ) + 60 AS col2, ( + COUNT( * ) ) * - 72 + - 25
----
39
-97

skipif mysql # not compatible
query II rowsort label-300
SELECT CASE - - CASE - 49 WHEN + COUNT ( * ) THEN NULL WHEN + 26 * + + 69 * + + 9 THEN + 12 ELSE + + 9 END WHEN + + CAST ( + ( + 60 ) AS INTEGER ) * - 12 THEN NULL WHEN - 45 + + 8 + + 29 THEN NULL ELSE - + NULLIF ( - 21, CAST ( 36 AS INTEGER ) + 18 - COUNT ( - 97 ) ) END * - COUNT ( * ) + 60 AS col2, ( + COUNT ( * ) ) * - 72 + - 25
----
39
-97

query I rowsort
SELECT 71 + - 43 + + - 98 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT 42 * CASE - 12 WHEN + 45 THEN + CASE - 55 WHEN + - 22 THEN + COUNT( * ) WHEN - - ( MIN( + - 19 ) ) * + 20 THEN NULL END * 7 + + 97 + 24 WHEN - 37 THEN NULL END / + 7 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT 42 * CASE - 12 WHEN + 45 THEN + CASE - 55 WHEN + - 22 THEN + COUNT ( * ) WHEN - - ( MIN ( + - 19 ) ) * + 20 THEN NULL END * 7 + + 97 + 24 WHEN - 37 THEN NULL END / + 7 + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ( + COUNT( * ) ) + 63 * + 70 AS col0
----
4411

skipif mysql # not compatible
query I rowsort label-303
SELECT ( + COUNT ( * ) ) + 63 * + 70 AS col0
----
4411

query I rowsort
SELECT DISTINCT 36 * ( - 10 )
----
-360

query I rowsort
SELECT DISTINCT - 96 + 71 * - 81 AS col2
----
-5847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-306
SELECT - 12 DIV - 68 + + COUNT( * ) * + ( 82 ) col0, 85
----
82
85

skipif mysql # not compatible
query II rowsort label-306
SELECT - 12 / - 68 + + COUNT ( * ) * + ( 82 ) col0, 85
----
82
85

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT MIN( DISTINCT 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-307
SELECT MIN ( DISTINCT 45 ) AS col2
----
45

query I rowsort
SELECT 58 * + - 36
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-309
SELECT CAST( NULL AS SIGNED ) / - 29 + 67, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-309
SELECT CAST ( NULL AS INTEGER ) / - 29 + 67, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT 2 + - 3 * 8 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-311
SELECT 6 * MAX( 98 ) AS col1, + 63 * + 30 + 5 col1
----
588
1895

skipif mysql # not compatible
query II rowsort label-311
SELECT 6 * MAX ( 98 ) AS col1, + 63 * + 30 + 5 col1
----
588
1895

query I rowsort
SELECT ALL 41 + - - AVG ( DISTINCT 62 ) * - + CASE - 44 WHEN 82 + + 36 THEN - - 95 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + 68 * + - 0 + + MAX( ALL + + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-313
SELECT + 68 * + - 0 + + MAX ( ALL + + 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT 92 + - + SUM( DISTINCT + ( + - 95 ) )
----
187

skipif mysql # not compatible
query I rowsort label-314
SELECT 92 + - + SUM ( DISTINCT + ( + - 95 ) )
----
187

query I rowsort
SELECT ALL + 68 + + + ( - 96 ) AS col2
----
-28

query I rowsort
SELECT DISTINCT + 52 * + + 34
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-317
SELECT + CAST( NULL AS SIGNED ) * + + COALESCE ( 57, + + 4 * - - 71 + + 84 ) * 2 + + 52 + + CAST( NULL AS DECIMAL ) - + CASE + 19 WHEN - + MIN( DISTINCT ( - 83 ) ) - 83 * - 90 THEN + + 13 * - - 27 + - COUNT( * ) + - 94 END + CAST( NULL AS SIGNED ) * - + 54 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT + CAST ( NULL AS INTEGER ) * + + COALESCE ( 57, + + 4 * - - 71 + + 84 ) * 2 + + 52 + + CAST ( NULL AS REAL ) - + CASE + 19 WHEN - + MIN ( DISTINCT ( - 83 ) ) - 83 * - 90 THEN + + 13 * - - 27 + - COUNT ( * ) + - 94 END + CAST ( NULL AS INTEGER ) * - + 54 / + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 82 col2
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT ALL + NULLIF ( 44, + + 74 + - ( ( COUNT( * ) ) ) ) * 38, - 4 * - 19 AS col1
----
1672
76

skipif mysql # not compatible
query II rowsort label-319
SELECT ALL + NULLIF ( 44, + + 74 + - ( ( COUNT ( * ) ) ) ) * 38, - 4 * - 19 AS col1
----
1672
76

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

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

query I rowsort
SELECT - 74 * + 99 AS col2
----
-7326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-322
SELECT - 44 + + CASE CAST( + 53 AS SIGNED ) WHEN - COUNT( * ) + + 70 * - - COUNT( * ) THEN - 11 WHEN - + CAST( NULL AS DECIMAL ) - - COUNT( * ) THEN + + 93 END * - COUNT( * ) * COUNT( * ) * + + NULLIF ( - 43, 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT - 44 + + CASE CAST ( + 53 AS INTEGER ) WHEN - COUNT ( * ) + + 70 * - - COUNT ( * ) THEN - 11 WHEN - + CAST ( NULL AS REAL ) - - COUNT ( * ) THEN + + 93 END * - COUNT ( * ) * COUNT ( * ) * + + NULLIF ( - 43, 49 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 48 * 11 * 70 * + 24 AS col2
----
887040

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT ALL MAX( ALL 84 ) AS col2, 13 / - COUNT( * ) * - 41 + - 29 + + MAX( + + 4 ) * - - 97 + + - SUM( - + 8 ) * NULLIF ( - ( - CASE + 44 WHEN COUNT( * ) * + - 6 + - 97 THEN - 57 END ), COUNT( * ) ) - 6 + - - 47 + + + 30 * + - COUNT( * )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-324
SELECT ALL MAX ( ALL 84 ) AS col2, 13 / - COUNT ( * ) * - 41 + - 29 + + MAX ( + + 4 ) * - - 97 + + - SUM ( - + 8 ) * NULLIF ( - ( - CASE + 44 WHEN COUNT ( * ) * + - 6 + - 97 THEN - 57 END ), COUNT ( * ) ) - 6 + - - 47 + + + 30 * + - COUNT ( * )
----
84
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-325
SELECT DISTINCT + 25 DIV 89 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + 25 / 89 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL NULLIF ( - 97, AVG ( DISTINCT + + 39 ) + - ( + 32 ) ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-327
SELECT + COUNT( * ) * 37 + - + 59 + - - 96 + - MIN( + - 17 ) * - ( COUNT( * ) ) * CAST( NULL AS DECIMAL ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT + COUNT ( * ) * 37 + - + 59 + - - 96 + - MIN ( + - 17 ) * - ( COUNT ( * ) ) * CAST ( NULL AS REAL ) * + 93
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT DISTINCT + 9 + - COUNT( ALL + 68 ) * 57 * + 41
----
-2328

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + 9 + - COUNT ( ALL + 68 ) * 57 * + 41
----
-2328

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-330
SELECT ALL - 54 + + 0 - 25 * 86 + - CASE CAST( + SUM( DISTINCT 96 ) AS DECIMAL ) WHEN + ( - 60 ) + + 84 THEN + CASE 67 WHEN + - 20 * + 27 THEN + COUNT( * ) ELSE - 98 END END - + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL - 54 + + 0 - 25 * 86 + - CASE CAST ( + SUM ( DISTINCT 96 ) AS REAL ) WHEN + ( - 60 ) + + 84 THEN + CASE 67 WHEN + - 20 * + 27 THEN + COUNT ( * ) ELSE - 98 END END - + - 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-331
SELECT ALL 90 + - - 4 * + - 98 AS col1, + 73 * 90 - - CAST( NULL AS SIGNED ) + - 70
----
-302
NULL

skipif mysql # not compatible
query II rowsort label-331
SELECT ALL 90 + - - 4 * + - 98 AS col1, + 73 * 90 - - CAST ( NULL AS INTEGER ) + - 70
----
-302
NULL

query I rowsort
SELECT DISTINCT + 9 + 18
----
27

query I rowsort
SELECT ALL - 46 + - ( - ( + 77 ) ) AS col1
----
31

query I rowsort
SELECT ALL + 91 + - ( - 84 ) * - + 96 * - NULLIF ( + 39, + 46 ) * ( 39 ) AS col1
----
12265435

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT - COUNT( ALL - 33 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-335
SELECT - COUNT ( ALL - 33 ) AS col0
----
-1

query I rowsort
SELECT - 36 + + 74
----
38

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

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT COUNT ( * ) / - + 37 * + + 65 / 58 AS col1
----
0

query I rowsort
SELECT + 18 - - 47 - + 72 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT ALL 83 * - 44 * - - CAST( NULL AS SIGNED ) * 36 + - 26 + - + 18 * - 65 * + 27 * - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 83 * - 44 * - - CAST ( NULL AS INTEGER ) * 36 + - 26 + - + 18 * - 65 * + 27 * - + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-340
SELECT ALL + NULLIF ( - - COUNT( ALL - + 97 ), 89 + - - 1 * - 34 ) AS col1, + CAST( NULL AS SIGNED ) + + 59
----
1
NULL

skipif mysql # not compatible
query II rowsort label-340
SELECT ALL + NULLIF ( - - COUNT ( ALL - + 97 ), 89 + - - 1 * - 34 ) AS col1, + CAST ( NULL AS INTEGER ) + + 59
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-341
SELECT + NULLIF ( - 19, CAST( - 63 AS SIGNED ) + - CAST( - - MAX( + 91 ) AS SIGNED ) ) * + 29 * + 48, 0 AS col1
----
-26448
0

skipif mysql # not compatible
query II rowsort label-341
SELECT + NULLIF ( - 19, CAST ( - 63 AS INTEGER ) + - CAST ( - - MAX ( + 91 ) AS INTEGER ) ) * + 29 * + 48, 0 AS col1
----
-26448
0

query I rowsort
SELECT + 82 + - - 9 * 10 AS col2
----
172

query I rowsort
SELECT + NULLIF ( - 89, 2 ) AS col1
----
-89

query I rowsort
SELECT ALL 20 * - - 82 * + 32 - + - 41 + - 94
----
52427

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-345
SELECT ALL + - NULLIF ( - 10, + CAST( CAST( - 13 AS DECIMAL ) AS SIGNED ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + - NULLIF ( - 10, + CAST ( CAST ( - 13 AS REAL ) AS INTEGER ) ) AS col2
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT - 8 * + 4 * ( - 60 ) * MAX( + 63 ) + 81 + + - 5 * + + COUNT( * ) AS col2
----
121036

skipif mysql # not compatible
query I rowsort label-347
SELECT - 8 * + 4 * ( - 60 ) * MAX ( + 63 ) + 81 + + - 5 * + + COUNT ( * ) AS col2
----
121036

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

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

query I rowsort
SELECT + 81 + - 7 + - + 99 - 37 + ( - + ( - COALESCE ( NULLIF ( - - 45, + 36 ), + + 89 ) ) ) AS col1
----
-17

query I rowsort
SELECT ALL + + 3 * - - 24
----
72

query I rowsort
SELECT ALL + 63 * - - 62 AS col0
----
3906

query I rowsort
SELECT ALL 78 * - 50
----
-3900

query I rowsort
SELECT + ( + 97 ) + - 65
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT - COALESCE ( + 35, 68 ) * - + 39 DIV + - COUNT( * ) + - 53 AS col2
----
-1418

skipif mysql # not compatible
query I rowsort label-354
SELECT - COALESCE ( + 35, 68 ) * - + 39 / + - COUNT ( * ) + - 53 AS col2
----
-1418

query I rowsort
SELECT - - CASE - 44 WHEN + 16 THEN + 0 END
----
NULL

query I rowsort
SELECT - NULLIF ( - 96, - - 30 ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT - - 75 DIV NULLIF ( + COUNT( ALL - 20 ), 79 + 42 * - 63 )
----
75

skipif mysql # not compatible
query I rowsort label-357
SELECT - - 75 / NULLIF ( + COUNT ( ALL - 20 ), 79 + 42 * - 63 )
----
75

query I rowsort
SELECT DISTINCT - 77 + - + 21
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-359
SELECT - COUNT( * ) + - + 71 DIV - 73 * + - 73, - 84 * + + COUNT( * ) AS col1
----
-1
-84

skipif mysql # not compatible
query II rowsort label-359
SELECT - COUNT ( * ) + - + 71 / - 73 * + - 73, - 84 * + + COUNT ( * ) AS col1
----
-1
-84

query I rowsort
SELECT ALL COALESCE ( - NULLIF ( + 39, - - 31 ), 7 ) * 28
----
-1092

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT - 96 + - COUNT( * ), + 68 AS col1
----
-97
68

skipif mysql # not compatible
query II rowsort label-361
SELECT - 96 + - COUNT ( * ), + 68 AS col1
----
-97
68

query I rowsort
SELECT ALL + 96 + + + 27 * 5 * - 37 + - - 37 AS col2
----
-4862

query I rowsort
SELECT ALL + 23 + + ( + - 40 )
----
-17

query I rowsort
SELECT ALL - 60 + - 51
----
-111

query I rowsort
SELECT - 77 + - 33 + - - 23 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - COALESCE ( - - COUNT( * ), + 42 ) * + 17 * - + 14 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-366
SELECT - COALESCE ( - - COUNT ( * ), + 42 ) * + 17 * - + 14 AS col2
----
238

query I rowsort
SELECT DISTINCT + 78 + 80 AS col0
----
158

query II rowsort
SELECT ALL + 60 - - 58 AS col1, 51 AS col0
----
118
51

query I rowsort
SELECT DISTINCT NULLIF ( + 24, + - 51 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT ALL COUNT( * ) / + 57 * CAST( NULL AS SIGNED ) - - - COUNT( * ), 26 + - + 84 AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-370
SELECT ALL COUNT ( * ) / + 57 * CAST ( NULL AS INTEGER ) - - - COUNT ( * ), 26 + - + 84 AS col1
----
NULL
-58

query I rowsort
SELECT - 76 * - 91 * - 61
----
-421876

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT + + ( + 41 ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-372
SELECT + + ( + 41 ) / + 53
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL - + 97 DIV + NULLIF ( - - 41, + 88 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - + 97 / + NULLIF ( - - 41, + 88 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL COUNT( * ) * - - 0 * - MAX( + + 45 ) - - + 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL COUNT ( * ) * - - 0 * - MAX ( + + 45 ) - - + 25 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-376
SELECT 70 * + + 38 + + 73 + + - ( - + CAST( + 6 AS SIGNED ) ) / - CAST( NULL AS SIGNED ) / + 68 * + 50 AS col1, + 88 + 56 col1
----
NULL
144

skipif mysql # not compatible
query II rowsort label-376
SELECT 70 * + + 38 + + 73 + + - ( - + CAST ( + 6 AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) / + 68 * + 50 AS col1, + 88 + 56 col1
----
NULL
144

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL + COUNT( * ) + - - 79 + COUNT( * ) * 10 * + - 41
----
-330

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + COUNT ( * ) + - - 79 + COUNT ( * ) * 10 * + - 41
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT DISTINCT 93 + + + MIN( ALL CAST( NULL AS SIGNED ) ) * + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT 93 + + + MIN ( ALL CAST ( NULL AS INTEGER ) ) * + - 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL 98 + - + 50 + - MAX( - 58 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL 98 + - + 50 + - MAX ( - 58 ) AS col1
----
106

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

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

query I rowsort
SELECT DISTINCT 43 + + + 75 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL - 64 * 73 * COUNT( * )
----
-4672

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - 64 * 73 * COUNT ( * )
----
-4672

query I rowsort
SELECT 71 * - - 31 col0
----
2201

query I rowsort
SELECT ALL 78 + + + 85 * - ( + 74 )
----
-6212

query I rowsort
SELECT ALL 31 * + 6 col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT 61 + - + SUM( DISTINCT - + 57 ) - + 36
----
82

skipif mysql # not compatible
query I rowsort label-386
SELECT 61 + - + SUM ( DISTINCT - + 57 ) - + 36
----
82

query I rowsort
SELECT 96 * 26 AS col2
----
2496

query I rowsort
SELECT 3 + + 95 * - + 50 - ( ( + - 5 ) ) - 62 - - - 82 col0
----
-4886

query I rowsort
SELECT ALL + 92 - - 47 AS col0
----
139

query I rowsort
SELECT ALL - 28 - - 22
----
-6

query II rowsort
SELECT 96 - ( + 24 ) AS col0, NULLIF ( - 41, + 35 * + 25 ) AS col2
----
72
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT DISTINCT - COUNT( * ) DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - COUNT ( * ) / - 88 AS col1
----
0

query I rowsort
SELECT 12 * + - 93
----
-1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-394
SELECT 86 + - COUNT( * ) + 78 DIV + 93 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-394
SELECT 86 + - COUNT ( * ) + 78 / + 93 AS col2
----
85

query II rowsort
SELECT - 6 AS col2, - 27
----
-6
-27

query I rowsort
SELECT 31 - - - 99 col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT - CASE - - 71 WHEN - + SUM( ALL - 25 ) THEN + 93 ELSE NULL END * - - COALESCE ( + 77, 78 * - 26 * + 20, + + 56 / + - 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT - CASE - - 71 WHEN - + SUM ( ALL - 25 ) THEN + 93 ELSE NULL END * - - COALESCE ( + 77, 78 * - 26 * + 20, + + 56 / + - 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + CASE - 79 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) + - 42 THEN + 69 WHEN - 79 THEN NULL END - + - 0 + - COUNT( - - 91 ) + + 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT + CASE - 79 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - 42 THEN + 69 WHEN - 79 THEN NULL END - + - 0 + - COUNT ( - - 91 ) + + 48 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL - - MAX( - + 84 ) * - 55 AS col2
----
4620

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - - MAX ( - + 84 ) * - 55 AS col2
----
4620

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + 63 * + COUNT( * ) * 91 - + 48 * - ( 61 ) + 82 AS col0
----
8743

skipif mysql # not compatible
query I rowsort label-402
SELECT + 63 * + COUNT ( * ) * 91 - + 48 * - ( 61 ) + 82 AS col0
----
8743

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - 48 * + - COALESCE ( - COUNT( DISTINCT 42 ), - NULLIF ( 50, - 83 ) * + + 29, - 22 ) + - 51 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-403
SELECT - 48 * + - COALESCE ( - COUNT ( DISTINCT 42 ), - NULLIF ( 50, - 83 ) * + + 29, - 22 ) + - 51 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - ( + + MAX( ALL + 60 ) ) - + 56
----
-116

skipif mysql # not compatible
query I rowsort label-404
SELECT - ( + + MAX ( ALL + 60 ) ) - + 56
----
-116

query II rowsort
SELECT + 14 AS col2, - 55 col1
----
14
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT ALL - 35 + - + 65 + - 71 DIV 53 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 35 + - + 65 + - 71 / 53 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 30 * + - 77 * - 25 - + 12 + + 58 * + COUNT( ALL + 19 ) AS col0
----
57796

skipif mysql # not compatible
query I rowsort label-407
SELECT 30 * + - 77 * - 25 - + 12 + + 58 * + COUNT ( ALL + 19 ) AS col0
----
57796

query I rowsort
SELECT 11 * - 59 * + + 58 * - ( + 70 ) AS col0
----
2634940

query I rowsort
SELECT - 43 + - 24 * 69 AS col1
----
-1699

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

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

query I rowsort
SELECT ALL + 44 + - 33
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT SUM( DISTINCT - 69 ) + MAX( DISTINCT + 1 )
----
-68

skipif mysql # not compatible
query I rowsort label-412
SELECT SUM ( DISTINCT - 69 ) + MAX ( DISTINCT + 1 )
----
-68

query I rowsort
SELECT DISTINCT + 52 * - ( - + 75 )
----
3900

query II rowsort
SELECT + + 58 * 9 * - - 64 + + 71 - 83 AS col0, 40
----
33396
40

query I rowsort
SELECT ALL 84 + + 78 AS col2
----
162

query II rowsort
SELECT 51 + NULLIF ( - 16, + + 38 ) * - - 39 * 78, - 39 AS col1
----
-48621
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT + COUNT( DISTINCT + - 79 ) * 95 + + - 85 + - + MAX( + 71 ) AS col0, - 38
----
-61
-38

skipif mysql # not compatible
query II rowsort label-417
SELECT + COUNT ( DISTINCT + - 79 ) * 95 + + - 85 + - + MAX ( + 71 ) AS col0, - 38
----
-61
-38

query I rowsort
SELECT ALL 25 - + 37
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT 77 * + MIN( ALL 78 ) AS col1
----
6006

skipif mysql # not compatible
query I rowsort label-419
SELECT 77 * + MIN ( ALL 78 ) AS col1
----
6006

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT CASE - 6 WHEN - 96 THEN NULL WHEN + 56 + + - 38 + + COUNT( * ) THEN NULL WHEN 18 THEN NULL ELSE - 30 END + + 67 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-421
SELECT CASE - 6 WHEN - 96 THEN NULL WHEN + 56 + + - 38 + + COUNT ( * ) THEN NULL WHEN 18 THEN NULL ELSE - 30 END + + 67 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-422
SELECT ALL 83 AS col2, + MAX( 48 ) DIV - COALESCE ( 61, + 98, + + 21 ) * - 54
----
83
0

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL 83 AS col2, + MAX ( 48 ) / - COALESCE ( 61, + 98, + + 21 ) * - 54
----
83
0

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

skipif mysql # not compatible
query I rowsort label-423
SELECT COUNT ( * ) * CAST ( + 57 AS INTEGER )
----
57

query II rowsort
SELECT ALL 92 AS col2, + 20
----
92
20

onlyif mysql # aggregate syntax: 
query II rowsort label-425
SELECT - COUNT( * ) AS col2, 17 AS col1
----
-1
17

skipif mysql # not compatible
query II rowsort label-425
SELECT - COUNT ( * ) AS col2, 17 AS col1
----
-1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 31 + SUM( 13 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-426
SELECT 31 + SUM ( 13 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT 40 + 83 AS col0, 51 * + COUNT( * ) * 33 + - + 46 AS col2
----
123
1637

skipif mysql # not compatible
query II rowsort label-427
SELECT 40 + 83 AS col0, 51 * + COUNT ( * ) * 33 + - + 46 AS col2
----
123
1637

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT - 11 DIV - - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-428
SELECT - 11 / - - 54 AS col1
----
0

query II rowsort
SELECT DISTINCT + 93 AS col0, 46 + - 64 AS col2
----
93
-18

query II rowsort
SELECT DISTINCT 91 AS col2, + 20
----
91
20

query II rowsort
SELECT ALL 8 AS col0, - COALESCE ( + - 48, - 78 ) col1
----
8
48

query I rowsort
SELECT + 34 + + 88
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-433
SELECT DISTINCT - 89 + + ( + + COUNT( * ) ) DIV + - 65, MAX( - 43 ) + ( + - 32 ) + + 71 + + ( COUNT( * ) ) * - 99 AS col1
----
-89
-103

skipif mysql # not compatible
query II rowsort label-433
SELECT DISTINCT - 89 + + ( + + COUNT ( * ) ) / + - 65, MAX ( - 43 ) + ( + - 32 ) + + 71 + + ( COUNT ( * ) ) * - 99 AS col1
----
-89
-103

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

skipif mysql # not compatible
query I rowsort label-434
SELECT - - 34 * 73 * - 47 + + - COUNT ( * ) AS col0
----
-116655

query I rowsort
SELECT + 61 * - 25 AS col1
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT - 46 * - SUM( 90 ) - - 77 * 45 * ( - 4 )
----
-9720

skipif mysql # not compatible
query I rowsort label-436
SELECT - 46 * - SUM ( 90 ) - - 77 * 45 * ( - 4 )
----
-9720

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT - 26 * + COUNT( * ) + + + 31 - 48 * + 56 AS col2
----
-2683

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT - 26 * + COUNT ( * ) + + + 31 - 48 * + 56 AS col2
----
-2683

query I rowsort
SELECT ALL + - 76 * + 14 * + 20 + + 27 + - 58
----
-21311

query I rowsort
SELECT - 97 + 10 + 45 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL + 83 * - + MAX( + 32 ) + + - 13 col0
----
-2669

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + 83 * - + MAX ( + 32 ) + + - 13 col0
----
-2669

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-441
SELECT DISTINCT - - CASE + 88 WHEN + 7 DIV 22 THEN + - 35 * - MAX( DISTINCT - CASE + 68 WHEN + + 62 DIV 57 THEN - 35 * + 62 END ) ELSE NULL END * - ( - - ( - 49 ) ) * 24 + - - 92 AS col2, + COUNT( * ) DIV + 38 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-441
SELECT DISTINCT - - CASE + 88 WHEN + 7 / 22 THEN + - 35 * - MAX ( DISTINCT - CASE + 68 WHEN + + 62 / 57 THEN - 35 * + 62 END ) ELSE NULL END * - ( - - ( - 49 ) ) * 24 + - - 92 AS col2, + COUNT ( * ) / + 38 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT + MAX( 98 ) * 19 + COALESCE ( - 30, 69 * + + 39 ) * + SUM( ALL + 84 ) * - 82 AS col1
----
208502

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + MAX ( 98 ) * 19 + COALESCE ( - 30, 69 * + + 39 ) * + SUM ( ALL + 84 ) * - 82 AS col1
----
208502

query I rowsort
SELECT ALL - + 42 * + 23 AS col1
----
-966

query I rowsort
SELECT - + 18 * - 37 * - 60
----
-39960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-445
SELECT ALL + 64, 1 DIV - CAST( - - 41 AS SIGNED ) + 17 AS col1
----
64
17

skipif mysql # not compatible
query II rowsort label-445
SELECT ALL + 64, 1 / - CAST ( - - 41 AS INTEGER ) + 17 AS col1
----
64
17

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

skipif mysql # not compatible
query I rowsort label-446
SELECT + COALESCE ( - COUNT ( * ), 12 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-447
SELECT 80 AS col2, + CAST( NULL AS DECIMAL )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-447
SELECT 80 AS col2, + CAST ( NULL AS REAL )
----
80
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT + 77 col1, COUNT( * ) col2
----
77
1

skipif mysql # not compatible
query II rowsort label-448
SELECT + 77 col1, COUNT ( * ) col2
----
77
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - COALESCE ( 67, - COUNT( * ) * 21 ) * COUNT( ALL - 47 )
----
-67

skipif mysql # not compatible
query I rowsort label-450
SELECT - COALESCE ( 67, - COUNT ( * ) * 21 ) * COUNT ( ALL - 47 )
----
-67

query I rowsort
SELECT DISTINCT + 19 * + + 41 AS col2
----
779

query I rowsort
SELECT DISTINCT 36 * - 78 AS col0
----
-2808

onlyif mysql # aggregate syntax: 
query II rowsort label-453
SELECT DISTINCT NULLIF ( + SUM( + NULLIF ( + 16, - 28 ) ), - 62 / - COUNT( * ) ) AS col1, - 15 AS col2
----
16
-15

skipif mysql # not compatible
query II rowsort label-453
SELECT DISTINCT NULLIF ( + SUM ( + NULLIF ( + 16, - 28 ) ), - 62 / - COUNT ( * ) ) AS col1, - 15 AS col2
----
16
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - MAX( - + NULLIF ( + + 90, ( + 46 ) * 53 ) ) * + 41
----
3690

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - MAX ( - + NULLIF ( + + 90, ( + 46 ) * 53 ) ) * + 41
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - MAX( ALL + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-455
SELECT - MAX ( ALL + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - NULLIF ( - 78, + COUNT( * ) - + 40 + + ( + + 15 ) ) + - 26 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-456
SELECT - NULLIF ( - 78, + COUNT ( * ) - + 40 + + ( + + 15 ) ) + - 26 AS col0
----
52

query I rowsort
SELECT - NULLIF ( + 99, + 77 * - 79 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL 29 + COUNT( * ) * + + 14
----
43

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL 29 + COUNT ( * ) * + + 14
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 93 - COUNT( * ) + + - 80 * - - 37 + - 8 AS col0
----
-2876

skipif mysql # not compatible
query I rowsort label-459
SELECT + 93 - COUNT ( * ) + + - 80 * - - 37 + - 8 AS col0
----
-2876

query I rowsort
SELECT + ( - 12 ) * - 98
----
1176

query I rowsort
SELECT + + 65 + + + 73 * - 54
----
-3877

query I rowsort
SELECT + 89 + 25 AS col1
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-463
SELECT - - CAST( NULL AS DECIMAL ) / + 44 AS col0, 64 AS col0, - 89 AS col0
----
NULL
64
-89

skipif mysql # not compatible
query III rowsort label-463
SELECT - - CAST ( NULL AS REAL ) / + 44 AS col0, 64 AS col0, - 89 AS col0
----
NULL
64
-89

query I rowsort
SELECT + COALESCE ( + - ( + - 34 ), - - 2 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT ALL + 22 DIV 80 * + 46 + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + 22 / 80 * + 46 + 24 AS col2
----
24

query I rowsort
SELECT + 0 + + 37 - 24 * + 40
----
-923

query I rowsort
SELECT + 5 * - 23 AS col1
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT ALL 44 DIV - + COUNT( * ) - - NULLIF ( 91, + 45 * MIN( 93 ) + + 86 DIV + + 80 * + 27 ) * 70 AS col1
----
6326

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL 44 / - + COUNT ( * ) - - NULLIF ( 91, + 45 * MIN ( 93 ) + + 86 / + + 80 * + 27 ) * 70 AS col1
----
6326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-469
SELECT + 2 * + CASE WHEN ( NULL ) NOT IN ( 53, - SUM( 2 ) + - 98 + - 25, - 37 ) THEN - COUNT( * ) END + COUNT( * ) + - + COALESCE ( 81, - CAST( 52 AS DECIMAL ) - - SUM( + 14 ) * 7, - 67 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT + 2 * + CASE WHEN ( NULL ) NOT IN ( 53, - SUM ( 2 ) + - 98 + - 25, - 37 ) THEN - COUNT ( * ) END + COUNT ( * ) + - + COALESCE ( 81, - CAST ( 52 AS REAL ) - - SUM ( + 14 ) * 7, - 67 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 14 + 16 * 97
----
1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL + 33 * - + CASE + - 61 WHEN + 14 THEN + + NULLIF ( + 96, + ( - 80 ) * - + CAST( + ( 94 ) AS SIGNED ) ) WHEN 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + 33 * - + CASE + - 61 WHEN + 14 THEN + + NULLIF ( + 96, + ( - 80 ) * - + CAST ( + ( 94 ) AS INTEGER ) ) WHEN 37 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - ( - ( + + 42 ) ) + + + SUM( DISTINCT 28 ) * 31
----
910

skipif mysql # not compatible
query I rowsort label-472
SELECT - ( - ( + + 42 ) ) + + + SUM ( DISTINCT 28 ) * 31
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-473
SELECT CAST( NULL AS SIGNED ) * + 48 + + 15 + - 39 + - - SUM( 25 ) + + - 90 * + 95 * COALESCE ( - ( - CAST( NULL AS SIGNED ) ), - 52 + - + COUNT( * ), - ( + COUNT( * ) ) * + 24 ) * - + NULLIF ( CAST( - 62 AS SIGNED ), + 89 ) + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-473
SELECT CAST ( NULL AS INTEGER ) * + 48 + + 15 + - 39 + - - SUM ( 25 ) + + - 90 * + 95 * COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - 52 + - + COUNT ( * ), - ( + COUNT ( * ) ) * + 24 ) * - + NULLIF ( CAST ( - 62 AS INTEGER ), + 89 ) + + 33
----
NULL

query I rowsort
SELECT DISTINCT 48 * 66 AS col0
----
3168

query I rowsort
SELECT - 77 * + 29 AS col1
----
-2233

query I rowsort
SELECT - 36 + + 53 AS col0
----
17

query II rowsort
SELECT DISTINCT ( ( - + 30 ) ), 36 AS col0
----
-30
36

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

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

query I rowsort
SELECT - 30 + - 7 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT - 41 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-480
SELECT - 41 / + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT 71 * - 35 + 1 + + 45 + + + CAST( NULL AS SIGNED ) * AVG ( - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT 71 * - 35 + 1 + + 45 + + + CAST ( NULL AS INTEGER ) * AVG ( - + 30 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT - 11 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-482
SELECT - 11 / - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - 70 + + CASE + 40 WHEN - - 42 + COUNT( * ) + + 36 THEN 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT - 70 + + CASE + 40 WHEN - - 42 + COUNT ( * ) + + 36 THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL 81 * - - 22 * COUNT( * )
----
1782

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 81 * - - 22 * COUNT ( * )
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-485
SELECT ALL + - ( - 9 ) + 46 + + 61 DIV + COUNT( * ) + + 90
----
206

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + - ( - 9 ) + 46 + + 61 / + COUNT ( * ) + + 90
----
206

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-486
SELECT 97 * - + 38 + - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
-3686

skipif mysql # not compatible
query I rowsort label-486
SELECT 97 * - + 38 + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT COUNT( * ) + - 9 * 33 + + - 90
----
-386

skipif mysql # not compatible
query I rowsort label-487
SELECT COUNT ( * ) + - 9 * 33 + + - 90
----
-386

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

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

query I rowsort
SELECT + 82 + - 76
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-490
SELECT - 21 col2, - COUNT( * ) col1
----
-21
-1

skipif mysql # not compatible
query II rowsort label-490
SELECT - 21 col2, - COUNT ( * ) col1
----
-21
-1

query I rowsort
SELECT + 56 + - 86 * 54
----
-4588

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

query I rowsort
SELECT 97 + + 52 AS col1
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT - COUNT( * ) + 5 * - 18, + 91 - 78 + 90 AS col0
----
-91
103

skipif mysql # not compatible
query II rowsort label-494
SELECT - COUNT ( * ) + 5 * - 18, + 91 - 78 + 90 AS col0
----
-91
103

query I rowsort
SELECT 58 * 52 AS col0
----
3016

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT + - 96 * 61 + + + COUNT( * ) AS col0, 53 * + + 78 + + 70
----
-5855
4204

skipif mysql # not compatible
query II rowsort label-496
SELECT + - 96 * 61 + + + COUNT ( * ) AS col0, 53 * + + 78 + + 70
----
-5855
4204

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT COUNT( * ) col0, + COUNT( * ) * - NULLIF ( + + 17, 2 * + 90 )
----
1
-17

skipif mysql # not compatible
query II rowsort label-498
SELECT COUNT ( * ) col0, + COUNT ( * ) * - NULLIF ( + + 17, 2 * + 90 )
----
1
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT + NULLIF ( + - COUNT( * ), - CAST( NULL AS SIGNED ) / 14 + - 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-499
SELECT + NULLIF ( + - COUNT ( * ), - CAST ( NULL AS INTEGER ) / 14 + - 92 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT COALESCE ( + 20, - + 51 ) DIV - NULLIF ( - - 28, + - 40 * - - 97 ) + + - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-500
SELECT COALESCE ( + 20, - + 51 ) / - NULLIF ( - - 28, + - 40 * - - 97 ) + + - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + MIN( DISTINCT + 79 ) * 57 - 49
----
4454

skipif mysql # not compatible
query I rowsort label-501
SELECT + MIN ( DISTINCT + 79 ) * 57 - 49
----
4454

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT - 61 AS col2, COUNT( + - 95 )
----
-61
1

skipif mysql # not compatible
query II rowsort label-502
SELECT - 61 AS col2, COUNT ( + - 95 )
----
-61
1

query I rowsort
SELECT DISTINCT 60 * + 83 AS col0
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT DISTINCT - 46 * - - MAX( ALL 36 ) AS col1
----
-1656

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT - 46 * - - MAX ( ALL 36 ) AS col1
----
-1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT ALL 72 * - CAST( 40 AS SIGNED ) col1
----
-2880

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL 72 * - CAST ( 40 AS INTEGER ) col1
----
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT ALL - COUNT( + 19 ) AS col1, + 90 AS col2
----
-1
90

skipif mysql # not compatible
query II rowsort label-506
SELECT ALL - COUNT ( + 19 ) AS col1, + 90 AS col2
----
-1
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL - MAX( ALL - CAST( NULL AS SIGNED ) ) / + 79 * + - MAX( 49 ) * 34 - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - MAX ( ALL - CAST ( NULL AS INTEGER ) ) / + 79 * + - MAX ( 49 ) * 34 - + 28
----
NULL

query I rowsort
SELECT 5 * - + 3 * - - 22 AS col2
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT DISTINCT 1 DIV - + 13 * - + 84
----
0

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT 1 / - + 13 * - + 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT ALL - SUM( - 38 ), 94 + - + 14 AS col2
----
38
80

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL - SUM ( - 38 ), 94 + - + 14 AS col2
----
38
80

query I rowsort
SELECT 95 * 37
----
3515

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

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

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

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

query I rowsort
SELECT DISTINCT 65 + 84 * - - ( + 65 ) * + + 56 * + 7
----
2140385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT 3 * COUNT( * ) DIV + SUM( ALL + - 78 ) - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-515
SELECT 3 * COUNT ( * ) / + SUM ( ALL + - 78 ) - + 73
----
-73

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

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

query II rowsort
SELECT 30 * - 18 AS col1, 8 * - 29
----
-540
-232

query I rowsort
SELECT ALL - 8 - + 26 - + 16
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT - MIN( NULLIF ( 49, + ( - 76 ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT - MIN ( NULLIF ( 49, + ( - 76 ) ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT DISTINCT - SUM( - - 66 ) / - - ( - 36 ) + + ( + - ( + - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - SUM ( - - 66 ) / - - ( - 36 ) + + ( + - ( + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 84, - - 84 ) * + + 71 * + - 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL - 25 * 82 * COUNT( * ) * - 72
----
147600

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL - 25 * 82 * COUNT ( * ) * - 72
----
147600

query I rowsort
SELECT ALL + 67 - + - 85 AS col1
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-524
SELECT 60 * + COUNT( DISTINCT - 17 ) + - 43 DIV - - 10 * + + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-524
SELECT 60 * + COUNT ( DISTINCT - 17 ) + - 43 / - - 10 * + + COUNT ( * ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-525
SELECT CAST( + MIN( ALL 35 ) AS SIGNED ) DIV COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-525
SELECT CAST ( + MIN ( ALL 35 ) AS INTEGER ) / COUNT ( * ) col0
----
35

query I rowsort
SELECT - 96 * - + 23
----
2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT 83 * 5 + + 17 - 11 + 10 + 11 DIV COUNT( ALL + 40 ) DIV 88 * - 67 * - 35 DIV + 4 DIV COALESCE ( - COUNT( * ), - 65 + - + 25 )
----
431

skipif mysql # not compatible
query I rowsort label-527
SELECT 83 * 5 + + 17 - 11 + 10 + 11 / COUNT ( ALL + 40 ) / 88 * - 67 * - 35 / + 4 / COALESCE ( - COUNT ( * ), - 65 + - + 25 )
----
431

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL - MIN( ALL + 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - MIN ( ALL + 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT - 19 - + COUNT( * ) + - ( 97 ) + + 99 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-529
SELECT - 19 - + COUNT ( * ) + - ( 97 ) + + 99 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-530
SELECT ALL - 67 col0, + COUNT( * )
----
-67
1

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL - 67 col0, + COUNT ( * )
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT 76 + + 72 + + COUNT( * ) - 44 + - ( + + 99 )
----
6

skipif mysql # not compatible
query I rowsort label-531
SELECT 76 + + 72 + + COUNT ( * ) - 44 + - ( + + 99 )
----
6

query I rowsort
SELECT 15 * + 91 AS col0
----
1365

query I rowsort
SELECT 21 - 89
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL 60 * - SUM( DISTINCT + 16 ) col0
----
-960

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL 60 * - SUM ( DISTINCT + 16 ) col0
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT + MAX( + ( - - CAST( + - 69 AS SIGNED ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-535
SELECT + MAX ( + ( - - CAST ( + - 69 AS INTEGER ) ) )
----
-69

query I rowsort
SELECT 5 + + 86 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL 12 + - 57 + MIN( - 44 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL 12 + - 57 + MIN ( - 44 ) AS col2
----
-89

query I rowsort
SELECT 11 + - 76 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ( + 53 ) + NULLIF ( 98, + - COUNT( * ) ) + + CASE + ( + 49 ) WHEN 68 THEN + 39 ELSE NULL END / + 95 / - 13 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT ( + 53 ) + NULLIF ( 98, + - COUNT ( * ) ) + + CASE + ( + 49 ) WHEN 68 THEN + 39 ELSE NULL END / + 95 / - 13 col0
----
NULL

query I rowsort
SELECT DISTINCT ( 97 ) + 92
----
189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT + COUNT( * ) + 2 + - 96 - + + 71 * 94 AS col2
----
-6767

skipif mysql # not compatible
query I rowsort label-542
SELECT + COUNT ( * ) + 2 + - 96 - + + 71 * 94 AS col2
----
-6767

query I rowsort
SELECT + NULLIF ( + 34, - 57 + - - 61 )
----
34

query I rowsort
SELECT + 23 + 77 * 4 AS col0
----
331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT + 35 DIV - ( - 18 ) * + COUNT( * ) * + COUNT( * ) + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-545
SELECT + 35 / - ( - 18 ) * + COUNT ( * ) * + COUNT ( * ) + 23 AS col0
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-547
SELECT - MAX( DISTINCT + - ( - CAST( 39 AS SIGNED ) ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-547
SELECT - MAX ( DISTINCT + - ( - CAST ( 39 AS INTEGER ) ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT MIN( 72 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT MIN ( 72 ) col0
----
72

query I rowsort
SELECT ALL 8 - - 26
----
34

query II rowsort
SELECT + 0 AS col2, + 0 + - 65 + + + 20 col2
----
0
-45

query I rowsort
SELECT DISTINCT 70 * 20 AS col0
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL + MIN( DISTINCT 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + MIN ( DISTINCT 57 ) col2
----
57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL + CAST( 29 AS SIGNED ) * + - ( + - ( + 98 ) )
----
2842

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + CAST ( 29 AS INTEGER ) * + - ( + - ( + 98 ) )
----
2842

query I rowsort
SELECT + + 90 * ( 84 )
----
7560

query I rowsort
SELECT - 27 * + 14 + 60
----
-318

query I rowsort
SELECT + 67 + - 45 * + + 20 AS col1
----
-833

query I rowsort
SELECT - COALESCE ( - 7, - 30, - 17 )
----
7

query II rowsort
SELECT - 73, 15 AS col1
----
-73
15

query I rowsort
SELECT + 94 * 84
----
7896

query I rowsort
SELECT - - 74 - - 51 + + ( - + 43 ) AS col1
----
82

query I rowsort
SELECT ALL + 63 * - 40 * 52 * - 40 AS col2
----
5241600

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

skipif mysql # not compatible
query I rowsort label-563
SELECT - + 58 + ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * + + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL + - 99 + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + - 99 + + COUNT ( * )
----
-98

query I rowsort
SELECT - NULLIF ( - 62, + 37 ) * ( ( 63 ) ) + + 70 AS col2
----
3976

query I rowsort
SELECT ALL - 11 * 37 AS col2
----
-407

query I rowsort
SELECT - 25 * - 4 AS col0
----
100

query I rowsort
SELECT ALL - 4 * - 81 + - - 78 + + 73 + 0 + - 29 + + 43 * 71 AS col1
----
3499

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

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

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

query II rowsort
SELECT DISTINCT + 63, ( ( ( - 46 ) ) ) AS col0
----
63
-46

query I rowsort
SELECT ALL 41 * CASE WHEN - 41 IS NULL THEN - 91 * - 45 * 73 + + + 57 END
----
NULL

query I rowsort
SELECT + 64 * - 29 * + 70 AS col0
----
-129920

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT COALESCE ( SUM( + + 1 ), + 40 + 90, - 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-574
SELECT COALESCE ( SUM ( + + 1 ), + 40 + 90, - 8 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + CASE + 62 WHEN 39 + + 7 THEN NULL WHEN + 30 + - ( - 29 ) * + 70 - + - 53 THEN 73 / - - COUNT( * ) + - - 76 * 44 + + - 36 WHEN + 86 * 24 THEN 54 + + - 35 ELSE 69 * + 86 END AS col1
----
5934

skipif mysql # not compatible
query I rowsort label-575
SELECT + CASE + 62 WHEN 39 + + 7 THEN NULL WHEN + 30 + - ( - 29 ) * + 70 - + - 53 THEN 73 / - - COUNT ( * ) + - - 76 * 44 + + - 36 WHEN + 86 * 24 THEN 54 + + - 35 ELSE 69 * + 86 END AS col1
----
5934

query I rowsort
SELECT COALESCE ( - + 87, - 90 ) AS col2
----
-87

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

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

query I rowsort
SELECT - 28 * 12 AS col0
----
-336

query II rowsort
SELECT + - 41 col2, + 67
----
-41
67

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

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

query I rowsort
SELECT ALL + 91 * - 61 AS col1
----
-5551

query I rowsort
SELECT + 85 * - - 8 + + + 58 AS col2
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT + + COUNT( * ) * + - 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + + COUNT ( * ) * + - 65 AS col2
----
-65

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

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

query II rowsort
SELECT + 6 col1, + 85 AS col1
----
6
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT + - 30 * + CAST( 9 AS SIGNED ) * + COUNT( * )
----
-270

skipif mysql # not compatible
query I rowsort label-586
SELECT + - 30 * + CAST ( 9 AS INTEGER ) * + COUNT ( * )
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT - - 83 * - 64 + + NULLIF ( + 7, CASE + + 22 WHEN 76 THEN MAX( ALL - ( + + 71 ) ) - - 17 WHEN + 95 * 22 * + 75 THEN NULL END + + 33 + - - 85 * - COUNT( * ) * - COUNT( * ) ) AS col2
----
-5305

skipif mysql # not compatible
query I rowsort label-587
SELECT - - 83 * - 64 + + NULLIF ( + 7, CASE + + 22 WHEN 76 THEN MAX ( ALL - ( + + 71 ) ) - - 17 WHEN + 95 * 22 * + 75 THEN NULL END + + 33 + - - 85 * - COUNT ( * ) * - COUNT ( * ) ) AS col2
----
-5305

query I rowsort
SELECT + + 3 * 2
----
6

query I rowsort
SELECT + 39 - - 29 * - - 57 AS col0
----
1692

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT + + 53 DIV + - ( + + 9 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-590
SELECT + + 53 / + - ( + + 9 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-591
SELECT ALL - COUNT( * ) col0, 20 * + 24 col2
----
-1
480

skipif mysql # not compatible
query II rowsort label-591
SELECT ALL - COUNT ( * ) col0, 20 * + 24 col2
----
-1
480

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

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

query I rowsort
SELECT ALL - 23 * - - 18
----
-414

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

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

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

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

query II rowsort
SELECT - ( - 64 ) AS col2, 94 AS col1
----
64
94

query I rowsort
SELECT ALL 43 + 66 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-598
SELECT + 49 + - CAST( - + COUNT( * ) AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-598
SELECT + 49 + - CAST ( - + COUNT ( * ) AS INTEGER )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT + ( + - MAX( - 81 ) ) DIV + 44 + + 7
----
8

skipif mysql # not compatible
query I rowsort label-599
SELECT + ( + - MAX ( - 81 ) ) / + 44 + + 7
----
8

query II rowsort
SELECT - 31 * 4 AS col0, ( - 65 )
----
-124
-65

query I rowsort
SELECT ALL + 70 + - 71
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT ALL 7 + + + MIN( ALL + 61 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL 7 + + + MIN ( ALL + 61 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL ( + 27 ) DIV ( - 87 ) + 91 * ( - 32 )
----
-2912

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL ( + 27 ) / ( - 87 ) + 91 * ( - 32 )
----
-2912

query I rowsort
SELECT ( - 69 ) * - - 26 AS col2
----
-1794

query I rowsort
SELECT 46 * + 54
----
2484

query I rowsort
SELECT DISTINCT + ( 74 ) * 51
----
3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-608
SELECT 56 - - CAST( - COALESCE ( COUNT( * ), - 16 / + AVG ( ALL - 5 ) ) AS DECIMAL ) + - - CAST( NULL AS SIGNED ) col1, - 73 * ( + + 94 ) AS col1
----
NULL
-6862

skipif mysql # not compatible
query II rowsort label-608
SELECT 56 - - CAST ( - COALESCE ( COUNT ( * ), - 16 / + AVG ( ALL - 5 ) ) AS REAL ) + - - CAST ( NULL AS INTEGER ) col1, - 73 * ( + + 94 ) AS col1
----
NULL
-6862

query I rowsort
SELECT DISTINCT - ( 7 ) * - - 75 + - 88 + - 30 AS col1
----
-643

query I rowsort
SELECT ALL + 8 - - 93 * 97 AS col1
----
9029

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

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT ALL COUNT( ALL - + 79 ) * COUNT( * ) DIV + + ( 31 ) + + 5
----
5

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL COUNT ( ALL - + 79 ) * COUNT ( * ) / + + ( 31 ) + + 5
----
5

query I rowsort
SELECT DISTINCT - NULLIF ( + + 88, 58 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT + - 74 * - 28 * - ( - COUNT( * ) )
----
2072

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + - 74 * - 28 * - ( - COUNT ( * ) )
----
2072

query I rowsort
SELECT DISTINCT - + COALESCE ( + 35, - + 38, + 4 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT 79 + - COALESCE ( + + ( 21 ), + 89, - 78 + - + 58 ) + - ( - COUNT( * ) ) * - 57 * - + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-616
SELECT 79 + - COALESCE ( + + ( 21 ), + 89, - 78 + - + 58 ) + - ( - COUNT ( * ) ) * - 57 * - + COUNT ( * )
----
115

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

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

query I rowsort
SELECT ALL + - 57 + - 42 AS col2
----
-99

query I rowsort
SELECT ALL 15 + 16 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + + SUM( DISTINCT 15 ) + 86 + - 77 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + + SUM ( DISTINCT 15 ) + 86 + - 77 AS col0
----
24

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

skipif mysql # not compatible
query I rowsort label-621
SELECT - SUM ( DISTINCT + 84 ) - + COUNT ( * )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT + CAST( + + 24 AS SIGNED ) + 92
----
116

skipif mysql # not compatible
query I rowsort label-622
SELECT + CAST ( + + 24 AS INTEGER ) + 92
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT 25 * ( + CASE 84 WHEN - 47 + - 65 + + - 29 * 19 THEN NULL WHEN - CAST( NULL AS SIGNED ) / - 7 * - AVG ( DISTINCT - - 39 ) THEN NULL ELSE - + COUNT( * ) END )
----
-25

skipif mysql # not compatible
query I rowsort label-623
SELECT 25 * ( + CASE 84 WHEN - 47 + - 65 + + - 29 * 19 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / - 7 * - AVG ( DISTINCT - - 39 ) THEN NULL ELSE - + COUNT ( * ) END )
----
-25

query I rowsort
SELECT 31 + + 73 + - 85 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT 37 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT 37 + - COUNT ( * )
----
36

query II rowsort
SELECT DISTINCT 68 AS col2, + 12
----
68
12

query I rowsort
SELECT ALL 1 - - - 5
----
-4

query I rowsort
SELECT ( 80 ) + 7 + 58 * 65 AS col1
----
3857

query I rowsort
SELECT ALL + 39 - + 40 * 50 col1
----
-1961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT CAST( + + ( - 21 ) AS SIGNED ) * - 63 AS col2
----
1323

skipif mysql # not compatible
query I rowsort label-630
SELECT CAST ( + + ( - 21 ) AS INTEGER ) * - 63 AS col2
----
1323

query I rowsort
SELECT ALL ( - 18 ) * - 91 AS col1
----
1638

query II rowsort
SELECT 67 AS col0, + 73 + 68
----
67
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-633
SELECT 65 + - + 27 + + 86 AS col0, CASE - 23 WHEN + 45 * - 59 + 68 THEN NULL WHEN + 98 THEN 60 WHEN + MAX( DISTINCT - CAST( - 67 AS SIGNED ) ) + 75 * + 19 * 78 THEN 59 END col0
----
124
NULL

skipif mysql # not compatible
query II rowsort label-633
SELECT 65 + - + 27 + + 86 AS col0, CASE - 23 WHEN + 45 * - 59 + 68 THEN NULL WHEN + 98 THEN 60 WHEN + MAX ( DISTINCT - CAST ( - 67 AS INTEGER ) ) + 75 * + 19 * 78 THEN 59 END col0
----
124
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT DISTINCT - ( + + SUM( DISTINCT - + 28 ) ), + 43 AS col0
----
28
43

skipif mysql # not compatible
query II rowsort label-635
SELECT DISTINCT - ( + + SUM ( DISTINCT - + 28 ) ), + 43 AS col0
----
28
43

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT 32 DIV - - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT 32 / - - 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT - 88 * - 99 * NULLIF ( 50, + COUNT( * ) ) - + ( - + 15 ) AS col2
----
435615

skipif mysql # not compatible
query I rowsort label-637
SELECT - 88 * - 99 * NULLIF ( 50, + COUNT ( * ) ) - + ( - + 15 ) AS col2
----
435615

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT CASE 9 WHEN 75 - + + COUNT( * ) THEN NULL WHEN 27 * - 78 THEN + 91 * - - COALESCE ( - NULLIF ( - - COUNT( * ), + + 5 ), + ( CAST( NULL AS SIGNED ) ) / - + CAST( NULL AS SIGNED ) ) + COUNT( * ) ELSE NULL END / - 78 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT CASE 9 WHEN 75 - + + COUNT ( * ) THEN NULL WHEN 27 * - 78 THEN + 91 * - - COALESCE ( - NULLIF ( - - COUNT ( * ), + + 5 ), + ( CAST ( NULL AS INTEGER ) ) / - + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ELSE NULL END / - 78 * - 16
----
NULL

query I rowsort
SELECT ALL - - 9 + + 78
----
87

query I rowsort
SELECT + 24 - - 17
----
41

query I rowsort
SELECT ALL + - 96 * 40 col1
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT - + MIN( + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT - + MIN ( + 85 ) AS col1
----
-85

query I rowsort
SELECT ALL 21 + - + ( COALESCE ( - 33, + 45 + + 33 * + 40 ) )
----
54

query I rowsort
SELECT ALL + - 21 + - 64 AS col2
----
-85

query I rowsort
SELECT DISTINCT + 34 + 97 + + 82 + - 20 * + 92 * - 14
----
25973

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - - MAX( ALL + 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-647
SELECT - - MAX ( ALL + 37 ) col0
----
37

query I rowsort
SELECT CASE - + 99 WHEN + 92 THEN NULL ELSE + 95 END AS col0
----
95

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

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - CAST ( + 92 AS INTEGER )
----
-92

query II rowsort
SELECT - 48 AS col2, 87
----
-48
87

query I rowsort
SELECT 50 + 51
----
101

query I rowsort
SELECT + 37 - + + 26
----
11

query I rowsort
SELECT ALL - 41 * + 68 AS col2
----
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT DISTINCT + COUNT( * ) - - 61 + 65 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT + COUNT ( * ) - - 61 + 65 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-655
SELECT DISTINCT 48 - ( ( - 92 ) ), + 96 * NULLIF ( 88, - - 56 / 81 - - SUM( 43 ) * + 35 + + 60 * - + 66 * - CAST( NULL AS SIGNED ) ) AS col0
----
140
8448

skipif mysql # not compatible
query II rowsort label-655
SELECT DISTINCT 48 - ( ( - 92 ) ), + 96 * NULLIF ( 88, - - 56 / 81 - - SUM ( 43 ) * + 35 + + 60 * - + 66 * - CAST ( NULL AS INTEGER ) ) AS col0
----
140
8448

query I rowsort
SELECT - 54 + - + 0 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL - MIN( DISTINCT + 43 ) * - 25
----
1075

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - MIN ( DISTINCT + 43 ) * - 25
----
1075

query I rowsort
SELECT DISTINCT 83 - - ( - + 86 )
----
-3

query I rowsort
SELECT DISTINCT - ( 30 ) * - 60 * - 89
----
-160200

query I rowsort
SELECT + 24 * + 61 AS col1
----
1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-661
SELECT - 36 + - NULLIF ( + 54, - 15 + + COALESCE ( 50, 22 + + - 62 ) * + + ( COUNT( * ) ) + + 59 ) + + - 63 + + 81 * COALESCE ( - CAST( NULL AS SIGNED ), 60 * 5 * COUNT( * ) ) * + 63 * + 72 + + - MIN( - 52 )
----
110224699

skipif mysql # not compatible
query I rowsort label-661
SELECT - 36 + - NULLIF ( + 54, - 15 + + COALESCE ( 50, 22 + + - 62 ) * + + ( COUNT ( * ) ) + + 59 ) + + - 63 + + 81 * COALESCE ( - CAST ( NULL AS INTEGER ), 60 * 5 * COUNT ( * ) ) * + 63 * + 72 + + - MIN ( - 52 )
----
110224699

query I rowsort
SELECT DISTINCT 47 - 99 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-663
SELECT - CASE - CAST( NULL AS DECIMAL ) WHEN - + AVG ( ALL + - 58 ) - - COUNT( * ) THEN - MIN( DISTINCT - ( + 19 ) ) WHEN - 66 THEN - + 75 / + 67 + COUNT( * ) * + 14 WHEN - - NULLIF ( 52, - COUNT( * ) ) * - - 27 + 85 / - - CAST( NULL AS DECIMAL ) THEN - 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT - CASE - CAST ( NULL AS REAL ) WHEN - + AVG ( ALL + - 58 ) - - COUNT ( * ) THEN - MIN ( DISTINCT - ( + 19 ) ) WHEN - 66 THEN - + 75 / + 67 + COUNT ( * ) * + 14 WHEN - - NULLIF ( 52, - COUNT ( * ) ) * - - 27 + 85 / - - CAST ( NULL AS REAL ) THEN - 20 END AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-666
SELECT ALL COALESCE ( + ( 45 ), CAST( NULL AS SIGNED ) * + - 12 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL COALESCE ( + ( 45 ), CAST ( NULL AS INTEGER ) * + - 12 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-667
SELECT DISTINCT + CAST( + 31 AS SIGNED ), + COUNT( * ) AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-667
SELECT DISTINCT + CAST ( + 31 AS INTEGER ), + COUNT ( * ) AS col0
----
31
1

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT - 8 DIV + COALESCE ( + - 99, + + 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT - 8 / + COALESCE ( + - 99, + + 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL 76 * MIN( ALL - - 47 ) * - 20 AS col2
----
-71440

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL 76 * MIN ( ALL - - 47 ) * - 20 AS col2
----
-71440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-670
SELECT COUNT( * ) DIV - 34 * 89 + + + 63 AS col2, 35 AS col1
----
63
35

skipif mysql # not compatible
query II rowsort label-670
SELECT COUNT ( * ) / - 34 * 89 + + + 63 AS col2, 35 AS col1
----
63
35

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 70 + + 62 * - 61 + + 52 - 96 * COUNT( * ) * - - 8 - + SUM( DISTINCT 92 )
----
-4660

skipif mysql # not compatible
query I rowsort label-671
SELECT - 70 + + 62 * - 61 + + 52 - 96 * COUNT ( * ) * - - 8 - + SUM ( DISTINCT 92 )
----
-4660

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT - 28 * + + COALESCE ( - 20, - 1 DIV - 30 + + 85 ) col0
----
560

skipif mysql # not compatible
query I rowsort label-672
SELECT - 28 * + + COALESCE ( - 20, - 1 / - 30 + + 85 ) col0
----
560

query I rowsort
SELECT + 34 * + - 55 AS col0
----
-1870

query I rowsort
SELECT 7 * - 12 + - + 57 + 13 * + 45 AS col1
----
444

query I rowsort
SELECT + ( 30 ) - + 47 AS col1
----
-17

query I rowsort
SELECT DISTINCT 32 * + 60 + - - ( 37 )
----
1957

query I rowsort
SELECT DISTINCT 15 * 79 * - + 23 + + 82 AS col0
----
-27173

query I rowsort
SELECT 91 * - 21 + + 33 + + + 11 * - + 68 + - 73 * - 42
----
440

onlyif mysql # aggregate syntax: 
query II rowsort label-679
SELECT ALL - CASE - + 0 WHEN SUM( - 24 ) THEN 12 END * + - 0 * - - 85 + + 27 * + 79 / 12 + - 68 + COUNT( * ) AS col1, NULLIF ( - 64, + SUM( - 61 ) - + + 44 ) * 66
----
NULL
-4224

skipif mysql # not compatible
query II rowsort label-679
SELECT ALL - CASE - + 0 WHEN SUM ( - 24 ) THEN 12 END * + - 0 * - - 85 + + 27 * + 79 / 12 + - 68 + COUNT ( * ) AS col1, NULLIF ( - 64, + SUM ( - 61 ) - + + 44 ) * 66
----
NULL
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT + + 13 * - 70 + + 91 * - - 41 * + 54 * - CAST( NULL AS SIGNED ) / - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT + + 13 * - 70 + + 91 * - - 41 * + 54 * - CAST ( NULL AS INTEGER ) / - - 5
----
NULL

query I rowsort
SELECT - - 41 + + 76 AS col1
----
117

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-683
SELECT - MAX( ALL + ( CASE + - 17 WHEN + ( 5 ) THEN + - 30 * 78 * - - 93 WHEN + - 73 THEN NULL END ) ) * + COUNT( * ) * + COALESCE ( 24, - - COUNT( * ) * 18 ) * - + COUNT( * ) * 31 + + COUNT( * ) * 11, - 78 col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-683
SELECT - MAX ( ALL + ( CASE + - 17 WHEN + ( 5 ) THEN + - 30 * 78 * - - 93 WHEN + - 73 THEN NULL END ) ) * + COUNT ( * ) * + COALESCE ( 24, - - COUNT ( * ) * 18 ) * - + COUNT ( * ) * 31 + + COUNT ( * ) * 11, - 78 col2
----
NULL
-78

query I rowsort
SELECT + 33 + + 46 AS col2
----
79

query I rowsort
SELECT DISTINCT + - 61 * 75 + + 86
----
-4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-686
SELECT + 60 * + - CASE - 9 WHEN - - 42 + - - 77 * + 68 - + - 83 + ( - CAST( NULL AS SIGNED ) ) + - 71 + + COUNT( * ) + 24 THEN NULL ELSE + ( 32 ) END AS col1, SUM( + ( + 89 ) ) + - + MIN( + + 92 )
----
-1920
-3

skipif mysql # not compatible
query II rowsort label-686
SELECT + 60 * + - CASE - 9 WHEN - - 42 + - - 77 * + 68 - + - 83 + ( - CAST ( NULL AS INTEGER ) ) + - 71 + + COUNT ( * ) + 24 THEN NULL ELSE + ( 32 ) END AS col1, SUM ( + ( + 89 ) ) + - + MIN ( + + 92 )
----
-1920
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-687
SELECT DISTINCT + COUNT( * ) - + NULLIF ( 74, - ( + - CAST( - 45 AS SIGNED ) ) * 40 ) + - 43 + + 65 * + + 23
----
1379

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT + COUNT ( * ) - + NULLIF ( 74, - ( + - CAST ( - 45 AS INTEGER ) ) * 40 ) + - 43 + + 65 * + + 23
----
1379

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-688
SELECT ALL 84 * + + 50 * - + COUNT( - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 84 * + + 50 * - + COUNT ( - CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - 96 + + 30 + - - 6 * + COUNT( * ) + - 67 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-689
SELECT - 96 + + 30 + - - 6 * + COUNT ( * ) + - 67 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT - 39 - - + MAX( + - 92 )
----
-131

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - 39 - - + MAX ( + - 92 )
----
-131

query I rowsort
SELECT DISTINCT - 66 * 98
----
-6468

query I rowsort
SELECT + 42 * 66 AS col1
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL COALESCE ( - SUM( + + 49 ), + 68, 91 * - + COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL COALESCE ( - SUM ( + + 49 ), + 68, 91 * - + COUNT ( * ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + 60 + - 98 + + COALESCE ( + 61, - COUNT( * ), 28 + + 14 + - 61 ) * + ( + - ( - 95 ) )
----
5757

skipif mysql # not compatible
query I rowsort label-694
SELECT + 60 + - 98 + + COALESCE ( + 61, - COUNT ( * ), 28 + + 14 + - 61 ) * + ( + - ( - 95 ) )
----
5757

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-696
SELECT - 1 * - COALESCE ( + CAST( NULL AS DECIMAL ), + - 90 * + 15 * + 90 / - - CASE - 57 WHEN + 45 * + 16 THEN NULL WHEN + NULLIF ( - 57, + COALESCE ( - 30, + 58 ) * MIN( 52 ) + + 28 ) + - - 59 * 80 THEN 9 + 12 WHEN + 1 * COUNT( * ) + 17 - - - COUNT( * ) + - 14 * + 43 THEN - 24 / - + 85 + 23 + - - MIN( + 4 ) * - - 58 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT - 1 * - COALESCE ( + CAST ( NULL AS REAL ), + - 90 * + 15 * + 90 / - - CASE - 57 WHEN + 45 * + 16 THEN NULL WHEN + NULLIF ( - 57, + COALESCE ( - 30, + 58 ) * MIN ( 52 ) + + 28 ) + - - 59 * 80 THEN 9 + 12 WHEN + 1 * COUNT ( * ) + 17 - - - COUNT ( * ) + - 14 * + 43 THEN - 24 / - + 85 + 23 + - - MIN ( + 4 ) * - - 58 END ) AS col1
----
NULL

query I rowsort
SELECT - 12 * - 45 * - - 72 * 56 AS col2
----
2177280

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL SUM( DISTINCT - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL SUM ( DISTINCT - 59 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT - 4 * + 65
----
-260

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT ALL - ( 62 ) * MIN( 48 )
----
-2976

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - ( 62 ) * MIN ( 48 )
----
-2976

query I rowsort
SELECT - 82 + + 11 * + 56 + + 97 AS col0
----
631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-703
SELECT + COUNT( * ) DIV - CASE + 22 WHEN - 31 THEN NULL WHEN 12 * ( CASE - 42 WHEN + AVG ( DISTINCT - 39 ) * 72 + - MAX( 2 ) - 96 + - - 83 DIV + ( - ( + - 99 ) ) + + + 73 THEN - 73 ELSE NULL END ) + 58 THEN 68 WHEN 0 * - 97 THEN NULL ELSE - 12 END * - - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT + COUNT ( * ) / - CASE + 22 WHEN - 31 THEN NULL WHEN 12 * ( CASE - 42 WHEN + AVG ( DISTINCT - 39 ) * 72 + - MAX ( 2 ) - 96 + - - 83 / + ( - ( + - 99 ) ) + + + 73 THEN - 73 ELSE NULL END ) + 58 THEN 68 WHEN 0 * - 97 THEN NULL ELSE - 12 END * - - 41 AS col2
----
0

query II rowsort
SELECT - 46 * - ( - 74 ) col2, + 55
----
-3404
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-705
SELECT COUNT( * ) * 98 + - + 41, CAST( NULL AS SIGNED ) / 35 AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-705
SELECT COUNT ( * ) * 98 + - + 41, CAST ( NULL AS INTEGER ) / 35 AS col1
----
57
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT 50 DIV 62 + 21
----
21

skipif mysql # not compatible
query I rowsort label-706
SELECT 50 / 62 + 21
----
21

query I rowsort
SELECT + 4 + + 77 * 5
----
389

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT DISTINCT 19 DIV - 63 + 96
----
96

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT 19 / - 63 + 96
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT DISTINCT 28 DIV 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT 28 / 82 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-710
SELECT ALL CAST( NULLIF ( 36, COUNT( * ) DIV 37 ) AS SIGNED ) DIV - 1 + 44 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL CAST ( NULLIF ( 36, COUNT ( * ) / 37 ) AS INTEGER ) / - 1 + 44 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT ALL + 60 DIV + 31 col0
----
1

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + 60 / + 31 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT + ( 66 ) DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT + ( 66 ) / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + 45 * COALESCE ( 53, - 17 * - 99, - SUM( + 18 ) )
----
2385

skipif mysql # not compatible
query I rowsort label-713
SELECT + 45 * COALESCE ( 53, - 17 * - 99, - SUM ( + 18 ) )
----
2385

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL COALESCE ( 22, + 34 ) DIV + 34 + - 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL COALESCE ( 22, + 34 ) / + 34 + - 3 AS col0
----
-3

query I rowsort
SELECT ( CASE 80 WHEN 3 THEN NULL ELSE 27 END )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - ( 37 ) - COUNT( * ) * 43
----
-80

skipif mysql # not compatible
query I rowsort label-716
SELECT - ( 37 ) - COUNT ( * ) * 43
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT + CAST( COALESCE ( + 82, - NULLIF ( 19, + 98 ) / NULLIF ( - 32, 29 * - 17 + 59 / + 6 ) ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-717
SELECT + CAST ( COALESCE ( + 82, - NULLIF ( 19, + 98 ) / NULLIF ( - 32, 29 * - 17 + 59 / + 6 ) ) AS INTEGER )
----
82

query I rowsort
SELECT + 15 * - CASE - 94 WHEN + 65 THEN 7 WHEN - 82 * 39 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 20 * + 61 AS col0
----
1220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-720
SELECT ALL 49 * 4 - + 40 * CAST( + 11 DIV 2 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL 49 * 4 - + 40 * CAST ( + 11 / 2 AS INTEGER )
----
-4

query I rowsort
SELECT DISTINCT 49 * - 10
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT 24 * 71 - + COUNT( * ) AS col2
----
1703

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT 24 * 71 - + COUNT ( * ) AS col2
----
1703

query I rowsort
SELECT 24 - + ( + 41 )
----
-17

query I rowsort
SELECT NULLIF ( + 12, 74 ) - 64
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT 26 * COALESCE ( + 60, COUNT( * ) + + 16 ) + 29 AS col2
----
1589

skipif mysql # not compatible
query I rowsort label-725
SELECT 26 * COALESCE ( + 60, COUNT ( * ) + + 16 ) + 29 AS col2
----
1589

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT COALESCE ( 91, COUNT( * ) ) + CASE + COUNT( * ) WHEN 10 THEN NULL WHEN + 93 THEN 73 * + 23 - - 11 ELSE 25 * 86 END
----
2241

skipif mysql # not compatible
query I rowsort label-726
SELECT COALESCE ( 91, COUNT ( * ) ) + CASE + COUNT ( * ) WHEN 10 THEN NULL WHEN + 93 THEN 73 * + 23 - - 11 ELSE 25 * 86 END
----
2241

query I rowsort
SELECT + 42 * 3 - 27 * 11 AS col0
----
-171

query I rowsort
SELECT ALL ( + ( + 68 ) ) * - 83 col2
----
-5644

query I rowsort
SELECT ( CASE - 89 WHEN + 4 / - 91 THEN NULL WHEN 9 THEN NULL ELSE + 18 END ) * - 80
----
-1440

query I rowsort
SELECT 66 * 79 AS col1
----
5214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT DISTINCT NULLIF ( 27, - CAST( NULL AS SIGNED ) * + 36 ) * - 26 AS col1
----
-702

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT NULLIF ( 27, - CAST ( NULL AS INTEGER ) * + 36 ) * - 26 AS col1
----
-702

query I rowsort
SELECT DISTINCT 12 * 58 AS col2
----
696

query I rowsort
SELECT ALL ( - CASE ( 71 ) WHEN - 79 + 71 THEN NULL WHEN - 71 + 34 * + 70 THEN + 67 + 41 WHEN 92 THEN 69 ELSE NULL END ) * + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT 29 + + NULLIF ( 63, 85 * - MIN( ALL ( 77 ) ) )
----
92

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT 29 + + NULLIF ( 63, 85 * - MIN ( ALL ( 77 ) ) )
----
92

query I rowsort
SELECT 59 + - 67 AS col2
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL 64 + + SUM( ( 90 ) )
----
154

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL 64 + + SUM ( ( 90 ) )
----
154

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

skipif mysql # not compatible
query I rowsort label-738
SELECT COUNT ( * ) + + 20 * 8 AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT CASE - 82 WHEN + 54 + COUNT( * ) THEN 76 WHEN + 28 - - 2 * COUNT( * ) THEN NULL WHEN 81 THEN + 41 ELSE 29 + - 66 END + + ( + 48 + - 81 )
----
-70

skipif mysql # not compatible
query I rowsort label-739
SELECT CASE - 82 WHEN + 54 + COUNT ( * ) THEN 76 WHEN + 28 - - 2 * COUNT ( * ) THEN NULL WHEN 81 THEN + 41 ELSE 29 + - 66 END + + ( + 48 + - 81 )
----
-70

query I rowsort
SELECT DISTINCT + 73 + 40
----
113

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

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + + 90 + 85 / + COUNT ( * )
----
175

query I rowsort
SELECT + 81 * 42 - - 26 AS col2
----
3428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-743
SELECT ALL + COALESCE ( 52, - 40 * COUNT( * ) + + 16 * 61, - 38 + 93 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL + COALESCE ( 52, - 40 * COUNT ( * ) + + 16 * 61, - 38 + 93 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL - COUNT( ALL 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - COUNT ( ALL 46 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + + 48 + + 88 AS col1
----
136

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

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

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

skipif mysql # not compatible
query I rowsort label-747
SELECT + COUNT ( * ) / 13 + ( ( 24 ) ) AS col2
----
24

query I rowsort
SELECT + 49 * + 33
----
1617

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-749
SELECT - CAST( NULL AS DECIMAL ) * + 19 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT - CAST ( NULL AS REAL ) * + 19 + + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-750
SELECT ( - ( COUNT ( * ) ) ) - + 10 * 89 AS col2
----
-891

query I rowsort
SELECT ALL - + 32 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT - 6 * 74 - COUNT( * )
----
-445

skipif mysql # not compatible
query I rowsort label-752
SELECT - 6 * 74 - COUNT ( * )
----
-445

query I rowsort
SELECT + 15 * + 75
----
1125

query I rowsort
SELECT ALL - + ( COALESCE ( + 95, 37 ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT ALL + CASE 79 WHEN + 99 / - MAX( ALL ( + 87 ) ) THEN NULL ELSE - 23 * AVG ( DISTINCT + 77 ) END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + CASE 79 WHEN + 99 / - MAX ( ALL ( + 87 ) ) THEN NULL ELSE - 23 * AVG ( DISTINCT + 77 ) END / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 42 + - 38
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL + - 6 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + - 6 / 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL - + ( - ( - CASE + COUNT( * ) WHEN COUNT( - 99 ) * 99 THEN + 44 WHEN 83 / 6 THEN 28 + - MIN( ALL ( + 95 ) ) * - 45 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - + ( - ( - CASE + COUNT ( * ) WHEN COUNT ( - 99 ) * 99 THEN + 44 WHEN 83 / 6 THEN 28 + - MIN ( ALL ( + 95 ) ) * - 45 END ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 95 * - 21 AS col2
----
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT - + MAX( DISTINCT 73 ) * 49 + 29 AS col1
----
-3548

skipif mysql # not compatible
query I rowsort label-760
SELECT - + MAX ( DISTINCT 73 ) * 49 + 29 AS col1
----
-3548

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT COUNT( * ) + + COUNT( - 87 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-761
SELECT COUNT ( * ) + + COUNT ( - 87 ) AS col0
----
2

query I rowsort
SELECT ALL NULLIF ( + 9, 43 ) * - 3
----
-27

query I rowsort
SELECT 21 + + + 98
----
119

query I rowsort
SELECT 59 + - - 49 col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT ( + - COALESCE ( COUNT( * ), + 74, - COUNT( DISTINCT - 52 ) ) ) * 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT ( + - COALESCE ( COUNT ( * ), + 74, - COUNT ( DISTINCT - 52 ) ) ) * 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL + COALESCE ( - 32, + 73 + COUNT( * ), 64, + 15 ) * + CASE 19 WHEN + 34 / - COUNT( * ) - + 49 THEN NULL ELSE + ( 82 ) + + 7 END col2
----
-2848

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + COALESCE ( - 32, + 73 + COUNT ( * ), 64, + 15 ) * + CASE 19 WHEN + 34 / - COUNT ( * ) - + 49 THEN NULL ELSE + ( 82 ) + + 7 END col2
----
-2848

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

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

query I rowsort
SELECT DISTINCT ( 21 ) + ( 67 + + 97 )
----
185

query I rowsort
SELECT DISTINCT 89 + + 58
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL 53 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL 53 / - 81
----
0

query I rowsort
SELECT ( + 26 ) + 1
----
27

query I rowsort
SELECT ALL 65 + + - 32 * - 18
----
641

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT NULLIF ( - 60, ( - 43 ) * + COUNT( * ) ) - ( COUNT( * ) ) * COALESCE ( COUNT( * ), + 13 )
----
-61

skipif mysql # not compatible
query I rowsort label-774
SELECT NULLIF ( - 60, ( - 43 ) * + COUNT ( * ) ) - ( COUNT ( * ) ) * COALESCE ( COUNT ( * ), + 13 )
----
-61

query I rowsort
SELECT ALL 17 * + - 42
----
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT ( + + 55 ) DIV COUNT( - 97 )
----
55

skipif mysql # not compatible
query I rowsort label-776
SELECT ( + + 55 ) / COUNT ( - 97 )
----
55

query I rowsort
SELECT 90 + - - 16 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT DISTINCT MIN( + - 61 ) * SUM( - 71 * - 87 )
----
-376797

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT MIN ( + - 61 ) * SUM ( - 71 * - 87 )
----
-376797

query I rowsort
SELECT ALL 11 + 17 col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL 81 * - NULLIF ( + 0, - CAST( - ( 6 ) AS SIGNED ) ) * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL 81 * - NULLIF ( + 0, - CAST ( - ( 6 ) AS INTEGER ) ) * - COUNT ( * ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT 80 + + 28 DIV 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-781
SELECT 80 + + 28 / 79 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL COUNT( DISTINCT + NULLIF ( + 78, COALESCE ( + 23, + 76 / 29, + 43 + - 59 * 86 ) ) ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL COUNT ( DISTINCT + NULLIF ( + 78, COALESCE ( + 23, + 76 / 29, + 43 + - 59 * 86 ) ) ) * - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT - COUNT( * ) * 19 * - 17 AS col1
----
323

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - COUNT ( * ) * 19 * - 17 AS col1
----
323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-784
SELECT ALL - - 75 DIV COUNT( * ) AS col2
----
75

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

query I rowsort
SELECT ALL - COALESCE ( 72, 58 * - ( + 94 ), 39 - - 89 ) AS col1
----
-72

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

query I rowsort
SELECT - NULLIF ( + 51, 17 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT - 54 DIV + 81 + - 36 * - 29
----
1044

skipif mysql # not compatible
query I rowsort label-788
SELECT - 54 / + 81 + - 36 * - 29
----
1044

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

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

query I rowsort
SELECT 93 + + 24 AS col2
----
117

query I rowsort
SELECT ALL + + 70 * 20 + + CASE + 23 WHEN + 45 / 64 THEN - 56 + + 95 * 77 WHEN + 97 * - ( - 67 ) THEN NULL WHEN 61 + - 34 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 13 * + - 62
----
806

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

query I rowsort
SELECT DISTINCT - - 98 * + 7 - + CASE 69 WHEN + 31 THEN + 64 WHEN - ( 69 ) / 99 THEN 98 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL + - 3 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + - 3 / 65
----
0

query I rowsort
SELECT ALL + + 78 * - 67
----
-5226

query I rowsort
SELECT + COALESCE ( + ( - 6 ), + 63 * 93 )
----
-6

query I rowsort
SELECT - + 52 * ( - 33 ) * 10
----
17160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT - + 41 - 31 DIV - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-799
SELECT - + 41 - 31 / - COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT - 37 * - - 1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT - 96 + NULLIF ( - 69, - 88 + - 66 ) DIV - COALESCE ( - 17, + 83 * 76 )
----
-100

skipif mysql # not compatible
query I rowsort label-801
SELECT - 96 + NULLIF ( - 69, - 88 + - 66 ) / - COALESCE ( - 17, + 83 * 76 )
----
-100

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

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

query I rowsort
SELECT - 13 * - - 86 col1
----
-1118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT 35 * + - 4 + - 70 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT 35 * + - 4 + - 70 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT ALL - 62 DIV 5 * - COUNT( 94 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL - 62 / 5 * - COUNT ( 94 ) col0
----
12

query I rowsort
SELECT ALL + 58 * - + 62 + + - 25
----
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT - COUNT( * ) * + 58 - 45
----
-103

skipif mysql # not compatible
query I rowsort label-807
SELECT - COUNT ( * ) * + 58 - 45
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL 77 + + + 90 - 18 + 87 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL 77 + + + 90 - 18 + 87 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + - 74 ) + NULLIF ( + COUNT ( * ), - 0 * - 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT ALL - CASE + CAST( + CASE 22 WHEN + COUNT( ALL - 14 ) THEN COUNT( * ) END AS SIGNED ) WHEN 27 THEN SUM( - CAST( 4 AS SIGNED ) ) ELSE 88 + 29 END / CASE WHEN ( 31 / 40 ) < + 12 THEN NULL WHEN NULL NOT BETWEEN 0 * - 91 + - 5 AND COUNT( * ) THEN MIN( ALL + 20 ) ELSE AVG ( ALL 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - CASE + CAST ( + CASE 22 WHEN + COUNT ( ALL - 14 ) THEN COUNT ( * ) END AS INTEGER ) WHEN 27 THEN SUM ( - CAST ( 4 AS INTEGER ) ) ELSE 88 + 29 END / CASE WHEN ( 31 / 40 ) < + 12 THEN NULL WHEN NULL NOT BETWEEN 0 * - 91 + - 5 AND COUNT ( * ) THEN MIN ( ALL + 20 ) ELSE AVG ( ALL 63 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT + NULLIF ( + 32, + COUNT( * ) ) + + 14
----
46

skipif mysql # not compatible
query I rowsort label-811
SELECT + NULLIF ( + 32, + COUNT ( * ) ) + + 14
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + 0 + + 90 * + - COUNT( * ) - - 32 * ( - 61 )
----
-2042

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + 0 + + 90 * + - COUNT ( * ) - - 32 * ( - 61 )
----
-2042

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 27, - 82 - 55 ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - COUNT( * ) * - - SUM( DISTINCT 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-814
SELECT - COUNT ( * ) * - - SUM ( DISTINCT 17 ) AS col1
----
-17

query I rowsort
SELECT - 6 + + + 77
----
71

query I rowsort
SELECT - COALESCE ( 38, + 9, - 81 )
----
-38

query I rowsort
SELECT DISTINCT 76 + + ( + - 34 ) * - 68 AS col2
----
2388

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL COUNT( * ) + + COUNT( * ) + 36 * - 75
----
-2698

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL COUNT ( * ) + + COUNT ( * ) + 36 * - 75
----
-2698

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

query I rowsort
SELECT - 48 + - + 21
----
-69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT + + 58 * - COUNT( * ) DIV + + 66 * - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-822
SELECT + + 58 * - COUNT ( * ) / + + 66 * - 36 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL + 52 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + 52 / + 77
----
0

query I rowsort
SELECT + ( 28 ) + 93 + 24 * 40 AS col1
----
1081

onlyif mysql # aggregate syntax: 
query II rowsort label-825
SELECT - - 31, 32 * - - 32 * + 58 + - ( + COUNT( * ) + - 79 ) AS col2
----
31
59470

skipif mysql # not compatible
query II rowsort label-825
SELECT - - 31, 32 * - - 32 * + 58 + - ( + COUNT ( * ) + - 79 ) AS col2
----
31
59470

query I rowsort
SELECT + 75 + - - 34 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-827
SELECT - + COUNT( * ) DIV + - 52 * + COALESCE ( ( - 59 ), + COUNT( ALL 20 ) + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT - + COUNT ( * ) / + - 52 * + COALESCE ( ( - 59 ), + COUNT ( ALL 20 ) + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT DISTINCT CASE WHEN NOT CAST( - 60 AS SIGNED ) <> ( NULL ) THEN 36 WHEN 87 <= ( ( 15 ) * 35 ) THEN 64 ELSE 63 END
----
64

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT CASE WHEN NOT CAST ( - 60 AS INTEGER ) <> ( NULL ) THEN 36 WHEN 87 <= ( ( 15 ) * 35 ) THEN 64 ELSE 63 END
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT ALL 28 * - 67 + - - CAST( NULL AS SIGNED ) * CAST( ( CAST( + 19 AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL 28 * - 67 + - - CAST ( NULL AS INTEGER ) * CAST ( ( CAST ( + 19 AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT - 75 / - CASE + - 78 WHEN + MAX( ALL 37 ) - COUNT( * ) THEN 74 + - 99 * 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT - 75 / - CASE + - 78 WHEN + MAX ( ALL 37 ) - COUNT ( * ) THEN 74 + - 99 * 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + + 56 + - 45 * + COUNT( * ) + MIN( - 7 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-831
SELECT + + 56 + - 45 * + COUNT ( * ) + MIN ( - 7 ) AS col2
----
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT + 13 AS col1, COUNT( * ) * 5 + 10 AS col2
----
13
15

skipif mysql # not compatible
query II rowsort label-833
SELECT + 13 AS col1, COUNT ( * ) * 5 + 10 AS col2
----
13
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT + ( + NULLIF ( - - ( - 37 ), + 80 + - CAST( NULL AS SIGNED ) ) ) * SUM( ALL 17 * 10 ) + 59 * COUNT( * ) AS col1
----
-6231

skipif mysql # not compatible
query I rowsort label-834
SELECT + ( + NULLIF ( - - ( - 37 ), + 80 + - CAST ( NULL AS INTEGER ) ) ) * SUM ( ALL 17 * 10 ) + 59 * COUNT ( * ) AS col1
----
-6231

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT - 61 - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-835
SELECT - 61 - - COUNT ( * )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-836
SELECT - 67 / 56 * - CASE 53 WHEN 45 * + 73 THEN - ( 2 ) + + COALESCE ( 71 - 51, 87 - CAST( 83 AS SIGNED ), ( + CAST( + COUNT( * ) AS SIGNED ) ) + 26 ) / 59 ELSE NULL END * 14 + + 14 + 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT - 67 / 56 * - CASE 53 WHEN 45 * + 73 THEN - ( 2 ) + + COALESCE ( 71 - 51, 87 - CAST ( 83 AS INTEGER ), ( + CAST ( + COUNT ( * ) AS INTEGER ) ) + 26 ) / 59 ELSE NULL END * 14 + + 14 + 33 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL 43 * - 8 + + 43 * 60 * CASE 22 WHEN 96 + + 30 * - 97 THEN - 49 WHEN ( + COUNT( * ) ) * COALESCE ( - 59, - 52 * 87 ) THEN - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL 43 * - 8 + + 43 * 60 * CASE 22 WHEN 96 + + 30 * - 97 THEN - 49 WHEN ( + COUNT ( * ) ) * COALESCE ( - 59, - 52 * 87 ) THEN - 80 END AS col0
----
NULL

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

query I rowsort
SELECT ALL + 14 * + 1 * + 23 + + + 25 col2
----
347

query I rowsort
SELECT ALL - 58 * + 7 AS col2
----
-406

query I rowsort
SELECT ALL 55 * - 13 + 84
----
-631

query I rowsort
SELECT ALL - 98 * - 39 * - - 80 + + 36 + 59
----
305855

query II rowsort
SELECT DISTINCT - 77 * 72 AS col1, - 83 AS col2
----
-5544
-83

query I rowsort
SELECT - 18 + 17 AS col0
----
-1

query I rowsort
SELECT + 30 * + 42 AS col1
----
1260

query I rowsort
SELECT ALL - 59 * - ( - 47 ) AS col0
----
-2773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT COALESCE ( - 2, NULLIF ( + 58, + CAST( 65 AS SIGNED ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-847
SELECT COALESCE ( - 2, NULLIF ( + 58, + CAST ( 65 AS INTEGER ) ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-848
SELECT - COALESCE ( - NULLIF ( 99, - 30 * - CASE + COUNT( * ) WHEN AVG ( ALL + 82 ) THEN NULL WHEN - 70 THEN 85 ELSE NULL END ), - 16 * + ( CASE CASE - 59 WHEN - 15 - 12 / + 57 THEN COUNT( * ) + ( + 14 ) / 79 ELSE CAST( NULL AS SIGNED ) + - COUNT( ALL 19 + NULLIF ( 2, 68 ) * + 26 ) END WHEN - 17 * + SUM( 38 ) + 33 * + COUNT( * ) THEN 9 END * + MAX( DISTINCT ( + 18 ) + 94 * - 90 ) ), + COUNT( * ) + 8 ) + - 2
----
97

skipif mysql # not compatible
query I rowsort label-848
SELECT - COALESCE ( - NULLIF ( 99, - 30 * - CASE + COUNT ( * ) WHEN AVG ( ALL + 82 ) THEN NULL WHEN - 70 THEN 85 ELSE NULL END ), - 16 * + ( CASE CASE - 59 WHEN - 15 - 12 / + 57 THEN COUNT ( * ) + ( + 14 ) / 79 ELSE CAST ( NULL AS INTEGER ) + - COUNT ( ALL 19 + NULLIF ( 2, 68 ) * + 26 ) END WHEN - 17 * + SUM ( 38 ) + 33 * + COUNT ( * ) THEN 9 END * + MAX ( DISTINCT ( + 18 ) + 94 * - 90 ) ), + COUNT ( * ) + 8 ) + - 2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-849
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 24 AS col1, COUNT( * ) * + MIN( 93 ) - - COUNT( * ) AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-849
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 24 AS col1, COUNT ( * ) * + MIN ( 93 ) - - COUNT ( * ) AS col1
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL NULLIF ( + 1, + - COUNT( * ) ) * + 89 - + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL NULLIF ( + 1, + - COUNT ( * ) ) * + 89 - + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT NULLIF ( COUNT( * ), - - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT NULLIF ( COUNT ( * ), - - 68 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT DISTINCT - 23 DIV + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - 23 / + 29 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-854
SELECT DISTINCT - COUNT( * ) DIV 32, - AVG ( + CAST( NULL AS SIGNED ) ) * 80 - 66 * + 79 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - COUNT ( * ) / 32, - AVG ( + CAST ( NULL AS INTEGER ) ) * 80 - 66 * + 79 AS col1
----
0
NULL

query I rowsort
SELECT + 20 * - 79 * + 69
----
-109020

query I rowsort
SELECT + - 96 + 16 * - 41
----
-752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL - CAST( 35 AS SIGNED ) * - - 38
----
-1330

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL - CAST ( 35 AS INTEGER ) * - - 38
----
-1330

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

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

query I rowsort
SELECT + 86 * - 28
----
-2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-860
SELECT ALL - COUNT( * ) * + - 6 * 79 DIV COUNT( * ) - 21 * + 78 AS col2
----
-1164

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - COUNT ( * ) * + - 6 * 79 / COUNT ( * ) - 21 * + 78 AS col2
----
-1164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-861
SELECT ALL - ( - COALESCE ( - 60, + COUNT( * ) DIV CAST( + 34 * 11 + - 38 * - 36 AS SIGNED ), 37 * + 11 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - ( - COALESCE ( - 60, + COUNT ( * ) / CAST ( + 34 * 11 + - 38 * - 36 AS INTEGER ), 37 * + 11 ) ) AS col0
----
-60

query I rowsort
SELECT + 53 * - + 58 AS col2
----
-3074

onlyif mysql # aggregate syntax: 
query II rowsort label-863
SELECT 2 * 57 AS col1, - COUNT( * ) - 95
----
114
-96

skipif mysql # not compatible
query II rowsort label-863
SELECT 2 * 57 AS col1, - COUNT ( * ) - 95
----
114
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT DISTINCT - 47 + - 25 + 19 DIV - 50 * 65 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT - 47 + - 25 + 19 / - 50 * 65 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT 82 * - 6 * + + COUNT( * )
----
-492

skipif mysql # not compatible
query I rowsort label-865
SELECT 82 * - 6 * + + COUNT ( * )
----
-492

query II rowsort
SELECT ALL + 14 + - + 87 col1, + 85 col0
----
-73
85

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT MAX( DISTINCT - 57 ) * - - 42 AS col2
----
-2394

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT MAX ( DISTINCT - 57 ) * - - 42 AS col2
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT 13 + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 13 + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT 59 * MIN( ALL + + 24 ) AS col1
----
1416

skipif mysql # not compatible
query I rowsort label-869
SELECT 59 * MIN ( ALL + + 24 ) AS col1
----
1416

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

query I rowsort
SELECT DISTINCT 66 * - 52
----
-3432

query I rowsort
SELECT - 26 * COALESCE ( - 52, - 23 * 88 ) * 67 - - 74 AS col1
----
90658

query I rowsort
SELECT ALL 1 + + 22
----
23

query I rowsort
SELECT 49 + 24 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT COUNT( * ) * - 24 + - - 86
----
62

skipif mysql # not compatible
query I rowsort label-875
SELECT COUNT ( * ) * - 24 + - - 86
----
62

query I rowsort
SELECT 74 * - - 34
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL - COUNT( * ) * + 59 * - + COUNT( - 16 )
----
59

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - COUNT ( * ) * + 59 * - + COUNT ( - 16 )
----
59

query I rowsort
SELECT DISTINCT 0 - 34
----
-34

query I rowsort
SELECT DISTINCT - 10 * + 54
----
-540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL 35 - 47 + - - 3 + + 86 + - COUNT( * ) + ( 35 ) * - 38 * 15
----
-19874

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL 35 - 47 + - - 3 + + 86 + - COUNT ( * ) + ( 35 ) * - 38 * 15
----
-19874

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT MIN( - 21 ) * - 57 AS col0
----
1197

skipif mysql # not compatible
query I rowsort label-882
SELECT MIN ( - 21 ) * - 57 AS col0
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT 0 * + MIN( ALL - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-883
SELECT 0 * + MIN ( ALL - 86 )
----
0

query I rowsort
SELECT ALL 52 * - 12
----
-624

onlyif mysql # DIV for integer division: 
query II rowsort label-885
SELECT - 95 AS col0, + 47 DIV 22 AS col2
----
-95
2

skipif mysql # not compatible
query II rowsort label-885
SELECT - 95 AS col0, + 47 / 22 AS col2
----
-95
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT 68 DIV 57 * COALESCE ( - 51, - CASE 83 WHEN + 82 THEN 32 WHEN - 15 THEN + 6 ELSE NULL END * - COALESCE ( 31, + 0, + 37 ) + - COUNT( * ), - 81, + 77 )
----
-51

skipif mysql # not compatible
query I rowsort label-886
SELECT 68 / 57 * COALESCE ( - 51, - CASE 83 WHEN + 82 THEN 32 WHEN - 15 THEN + 6 ELSE NULL END * - COALESCE ( 31, + 0, + 37 ) + - COUNT ( * ), - 81, + 77 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT + COUNT( * ) * 69 * - 97 AS col1
----
-6693

skipif mysql # not compatible
query I rowsort label-887
SELECT + COUNT ( * ) * 69 * - 97 AS col1
----
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - 18 - - - COUNT( * ) - + 87 * + 37
----
-3238

skipif mysql # not compatible
query I rowsort label-888
SELECT - 18 - - - COUNT ( * ) - + 87 * + 37
----
-3238

query II rowsort
SELECT DISTINCT 12 AS col0, 75
----
12
75

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

skipif mysql # not compatible
query I rowsort label-890
SELECT COALESCE ( - - 41, + 55 ) / - 9 * - + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-891
SELECT ALL + - 63 / CAST( CASE + - SUM( CAST( 61 AS SIGNED ) ) WHEN COUNT( 5 ) THEN NULL WHEN 5 / 22 + - 63 THEN + 90 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + - 63 / CAST ( CASE + - SUM ( CAST ( 61 AS INTEGER ) ) WHEN COUNT ( 5 ) THEN NULL WHEN 5 / 22 + - 63 THEN + 90 END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 78 * + - 5 + + 76 AS col0, + 56 * - 76
----
-314
-4256

query I rowsort
SELECT DISTINCT + 37 + - 71 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL + + 97 DIV - 90 + + 8 + 75
----
82

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + + 97 / - 90 + + 8 + 75
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 27 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-895
SELECT 27 / 59 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT 71 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-896
SELECT 71 / 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL + 9 + COUNT( * ) + + 55 col2
----
65

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + 9 + COUNT ( * ) + + 55 col2
----
65

query I rowsort
SELECT 58 + - 36
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL - + COUNT( + - ( - + 62 ) ) + - 78 * - 89 AS col2
----
6941

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - + COUNT ( + - ( - + 62 ) ) + - 78 * - 89 AS col2
----
6941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - - 91 + 68 * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - - 91 + 68 * - + 28
----
NULL

query I rowsort
SELECT DISTINCT - + 59 * ( - + 33 ) + 8 + 8
----
1963

query I rowsort
SELECT 50 + + 26 * - 79 AS col2
----
-2004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - + ( + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-903
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - + ( + 63 ) )
----
63

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

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

query I rowsort
SELECT ALL - + 9 * - 3 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL - - SUM( ALL + CAST( 90 AS SIGNED ) ) + + 88 * ( + ( 19 ) ) col0
----
1762

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - - SUM ( ALL + CAST ( 90 AS INTEGER ) ) + + 88 * ( + ( 19 ) ) col0
----
1762

query I rowsort
SELECT DISTINCT + + 29 + 72 + + 16 + 39 + 33
----
189

query I rowsort
SELECT - ( 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-909
SELECT - COUNT( * ) + - 95 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT - COUNT ( * ) + - 95 / - 56 AS col1
----
0

query I rowsort
SELECT ALL - - 17 * + - 2 AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT + 22 DIV - + 98 + 33 - 97 * - 70 AS col1
----
6823

skipif mysql # not compatible
query I rowsort label-911
SELECT + 22 / - + 98 + 33 - 97 * - 70 AS col1
----
6823

query I rowsort
SELECT 30 * - 54 AS col0
----
-1620

query I rowsort
SELECT DISTINCT - COALESCE ( + 55, 0 ) AS col0
----
-55

query I rowsort
SELECT ALL 40 * - - 33 + 78 + + 43 AS col0
----
1441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT + CAST( NULL AS SIGNED ) * + SUM( + + 64 ) * - 11 * 18 + COALESCE ( NULLIF ( + 39, 80 ), 90 ) + COALESCE ( CAST( - CASE 88 WHEN - 96 * + 12 THEN 99 * 40 ELSE NULL END AS SIGNED ) + - 29 / + 91, - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( + + 64 ) * - 11 * 18 + COALESCE ( NULLIF ( + 39, 80 ), 90 ) + COALESCE ( CAST ( - CASE 88 WHEN - 96 * + 12 THEN 99 * 40 ELSE NULL END AS INTEGER ) + - 29 / + 91, - 17 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT - 59 * 43 + + 78 + - CAST( - 79 AS SIGNED ) AS col2
----
-2380

skipif mysql # not compatible
query I rowsort label-916
SELECT - 59 * 43 + + 78 + - CAST ( - 79 AS INTEGER ) AS col2
----
-2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-917
SELECT ALL 18 / CAST( NULL AS SIGNED ), - MAX( DISTINCT - CASE + 38 WHEN + 41 THEN 12 ELSE NULL END ) / + 30 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-917
SELECT ALL 18 / CAST ( NULL AS INTEGER ), - MAX ( DISTINCT - CASE + 38 WHEN + 41 THEN 12 ELSE NULL END ) / + 30 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT + 16 AS col1, SUM( - 6 ) col2
----
16
-6

skipif mysql # not compatible
query II rowsort label-918
SELECT + 16 AS col1, SUM ( - 6 ) col2
----
16
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-919
SELECT CAST( NULL AS DECIMAL ) * + + 97 + + - 72 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT CAST ( NULL AS REAL ) * + + 97 + + - 72 * - 59
----
NULL

query I rowsort
SELECT ALL 95 - ( + - 62 ) * - - COALESCE ( 66, 3 )
----
4187

query I rowsort
SELECT DISTINCT 53 * 69
----
3657

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

skipif mysql # not compatible
query I rowsort label-922
SELECT SUM ( DISTINCT 33 )
----
33

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

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

query I rowsort
SELECT DISTINCT - 87 - + - ( 38 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL COUNT( 51 ) * + 98 * - 9 + 21 AS col0
----
-861

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL COUNT ( 51 ) * + 98 * - 9 + 21 AS col0
----
-861

query II rowsort
SELECT ALL 47 * 37, + 99 * 75 AS col0
----
1739
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT NULLIF ( + ( + 20 ), + 57 ) * - 80 * - - 49 + 38 * - COUNT( * ) AS col2
----
-78438

skipif mysql # not compatible
query I rowsort label-927
SELECT NULLIF ( + ( + 20 ), + 57 ) * - 80 * - - 49 + 38 * - COUNT ( * ) AS col2
----
-78438

query I rowsort
SELECT DISTINCT 17 * 49 AS col0
----
833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-929
SELECT + 21 * - 37 + + CASE + MAX( ALL + 37 ) WHEN - + 75 THEN 33 + CAST( NULL AS SIGNED ) * 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT + 21 * - 37 + + CASE + MAX ( ALL + 37 ) WHEN - + 75 THEN 33 + CAST ( NULL AS INTEGER ) * 82 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT MIN( ALL - - 53 ) DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-930
SELECT MIN ( ALL - - 53 ) / - - 84
----
0

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

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

query I rowsort
SELECT ALL 11 * - 91 col0
----
-1001

query I rowsort
SELECT 80 + - - 8 * + 77
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + COUNT( ALL 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-934
SELECT + COUNT ( ALL 70 ) AS col1
----
1

query II rowsort
SELECT 99 AS col0, 81
----
99
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-936
SELECT + COALESCE ( + COUNT( - 31 ), - 99, + MAX( ALL 33 ) ) * - CAST( 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-936
SELECT + COALESCE ( + COUNT ( - 31 ), - 99, + MAX ( ALL 33 ) ) * - CAST ( 3 AS INTEGER ) AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT ALL - 99 + - CASE 76 WHEN 69 - 4 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 77 + + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL - 99 + - CASE 76 WHEN 69 - 4 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 77 + + 30 END
----
NULL

query I rowsort
SELECT + 64 + 21 + - 92 AS col0
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT + 71 + + + 27 + + COUNT( * ) + + ( - - 59 ) + + 67 * 59 * 85 DIV - 64
----
-5092

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + 71 + + + 27 + + COUNT ( * ) + + ( - - 59 ) + + 67 * 59 * 85 / - 64
----
-5092

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - 14, + COUNT( * ) + COUNT( * ) AS col1
----
-14
2

skipif mysql # not compatible
query II rowsort label-941
SELECT - 14, + COUNT ( * ) + COUNT ( * ) AS col1
----
-14
2

onlyif mysql # aggregate syntax: 
query II rowsort label-942
SELECT - 36 AS col1, - MAX( - 45 ) * 18 AS col0
----
-36
810

skipif mysql # not compatible
query II rowsort label-942
SELECT - 36 AS col1, - MAX ( - 45 ) * 18 AS col0
----
-36
810

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL + NULLIF ( - COUNT( ( 6 ) ), - 90 ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + NULLIF ( - COUNT ( ( 6 ) ), - 90 ) + - COUNT ( * ) AS col2
----
-2

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

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

query II rowsort
SELECT 50 AS col2, - 12
----
50
-12

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

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

query I rowsort
SELECT - 13 + 37
----
24

query II rowsort
SELECT - + ( 41 ) AS col0, + 77 + 9 AS col2
----
-41
86

query I rowsort
SELECT ALL + 97 + - 81
----
16

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

query I rowsort
SELECT ALL - NULLIF ( 79, 32 ) + + - 38 - 58
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT ALL 32, SUM( + 2 ) AS col0
----
32
2

skipif mysql # not compatible
query II rowsort label-953
SELECT ALL 32, SUM ( + 2 ) AS col0
----
32
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-954
SELECT DISTINCT + COALESCE ( - COUNT( * ), + 18 * 35 + + CAST( + - 32 AS SIGNED ) DIV 46, 36 + 18, - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + 18 * 35 + + CAST ( + - 32 AS INTEGER ) / 46, 36 + 18, - 98 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT + + COUNT( * ) * - 64 + - CASE 82 WHEN NULLIF ( 63, 34 ) THEN NULL ELSE 65 + 46 END
----
-175

skipif mysql # not compatible
query I rowsort label-955
SELECT + + COUNT ( * ) * - 64 + - CASE 82 WHEN NULLIF ( 63, 34 ) THEN NULL ELSE 65 + 46 END
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT 43 AS col2, - COUNT( * ) * - 97 * - - 81 + + + 7 col2
----
43
7864

skipif mysql # not compatible
query II rowsort label-956
SELECT 43 AS col2, - COUNT ( * ) * - 97 * - - 81 + + + 7 col2
----
43
7864

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - 31 * + CASE - - 6 WHEN - - AVG ( ALL 9 ) + ( 2 ) * - 14 THEN + 24 + + 25 WHEN CASE 95 WHEN + ( - 67 ) * COUNT( * ) + 75 THEN 37 WHEN - 53 THEN NULL ELSE - 28 / - 43 END + 49 THEN NULL WHEN + MIN( 28 ) THEN + COUNT( * ) + - 81 * - 16 ELSE 74 END
----
-2294

skipif mysql # not compatible
query I rowsort label-957
SELECT - 31 * + CASE - - 6 WHEN - - AVG ( ALL 9 ) + ( 2 ) * - 14 THEN + 24 + + 25 WHEN CASE 95 WHEN + ( - 67 ) * COUNT ( * ) + 75 THEN 37 WHEN - 53 THEN NULL ELSE - 28 / - 43 END + 49 THEN NULL WHEN + MIN ( 28 ) THEN + COUNT ( * ) + - 81 * - 16 ELSE 74 END
----
-2294

query I rowsort
SELECT DISTINCT + 54 - + 23 * - 97 AS col1
----
2285

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT ALL + 45 * - 89 AS col2, + NULLIF ( COUNT( * ), - + 18 )
----
-4005
1

skipif mysql # not compatible
query II rowsort label-959
SELECT ALL + 45 * - 89 AS col2, + NULLIF ( COUNT ( * ), - + 18 )
----
-4005
1

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

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + COUNT ( ALL + - 41 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT - COUNT( * ) * - 83 * - COALESCE ( - 74, + 91 ) AS col0
----
6142

skipif mysql # not compatible
query I rowsort label-961
SELECT - COUNT ( * ) * - 83 * - COALESCE ( - 74, + 91 ) AS col0
----
6142

query I rowsort
SELECT DISTINCT 80 * 29 - 46 AS col0
----
2274

query II rowsort
SELECT ALL + 37 * + 10 AS col1, - 77
----
370
-77

query I rowsort
SELECT DISTINCT + 28 * - 0 AS col2
----
0

query I rowsort
SELECT + 6 * - 2 col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT + 79 DIV - 94 + 11
----
11

skipif mysql # not compatible
query I rowsort label-966
SELECT + 79 / - 94 + 11
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT + 23 DIV - 95 * - - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-967
SELECT + 23 / - 95 * - - 39 AS col1
----
0

query I rowsort
SELECT + NULLIF ( - 77, 32 * - 2 - - 97 ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT NULLIF ( - MAX( DISTINCT - 41 ), + - 49 + - 22 * - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-969
SELECT NULLIF ( - MAX ( DISTINCT - 41 ), + - 49 + - 22 * - COUNT ( * ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT + COUNT( - 49 ) * CAST( NULL AS SIGNED ) + - CASE + 54 WHEN - 5 * - MAX( ALL 41 ) + 31 THEN NULL WHEN ( - 21 ) THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT + COUNT ( - 49 ) * CAST ( NULL AS INTEGER ) + - CASE + 54 WHEN - 5 * - MAX ( ALL 41 ) + 31 THEN NULL WHEN ( - 21 ) THEN 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT + COUNT( * ) * + 64 + - + 0 - + - 66 * + - 87 AS col0
----
-5678

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + COUNT ( * ) * + 64 + - + 0 - + - 66 * + - 87 AS col0
----
-5678

query II rowsort
SELECT + 53 - - 3 AS col2, + 39
----
56
39

query I rowsort
SELECT ALL - 59 * 88 + 8
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT DISTINCT - 36 * 15 + ( + MAX( ALL 60 ) )
----
-480

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT - 36 * 15 + ( + MAX ( ALL 60 ) )
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL + 57 * - + COUNT( * ) + CASE - 85 WHEN + COUNT( * ) THEN + 40 + + - 33 WHEN - 61 THEN + MIN( 3 ) WHEN 76 THEN 46 + 70 * - 96 ELSE NULL END * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL + 57 * - + COUNT ( * ) + CASE - 85 WHEN + COUNT ( * ) THEN + 40 + + - 33 WHEN - 61 THEN + MIN ( 3 ) WHEN 76 THEN 46 + 70 * - 96 ELSE NULL END * + 60
----
NULL

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

skipif mysql # not compatible
query I rowsort label-976
SELECT + COUNT ( * ) / + 59 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-977
SELECT ALL 16 + - CAST( NULL AS SIGNED ) + - 18 / - 3 + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL 16 + - CAST ( NULL AS INTEGER ) + - 18 / - 3 + - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT COALESCE ( - COUNT( * ), - 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-978
SELECT COALESCE ( - COUNT ( * ), - 37 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT + - COUNT( * ) - 61 * 7 AS col0
----
-428

skipif mysql # not compatible
query I rowsort label-979
SELECT + - COUNT ( * ) - 61 * 7 AS col0
----
-428

query II rowsort
SELECT + + 46 * + 28 AS col0, 40 - + 53 - - 43 AS col2
----
1288
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT DISTINCT + + 92 * + ( - + 11 ) * - 84 + + 36 * - CAST( + 15 AS SIGNED ) + - 50 * 42 AS col1
----
82368

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT + + 92 * + ( - + 11 ) * - 84 + + 36 * - CAST ( + 15 AS INTEGER ) + - 50 * 42 AS col1
----
82368

query I rowsort
SELECT ALL - 66 - + 42
----
-108

query II rowsort
SELECT + + 2 * - 60 AS col1, 19
----
-120
19

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL + MAX( ALL 30 ) * 33 AS col0
----
990

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + MAX ( ALL 30 ) * 33 AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT + COALESCE ( - - COUNT( 92 ), - 0 ) - + NULLIF ( - ( + ( 58 ) ), + COALESCE ( COUNT( * ), 99 + ( + 60 ) / + 23 ) )
----
59

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT + COALESCE ( - - COUNT ( 92 ), - 0 ) - + NULLIF ( - ( + ( 58 ) ), + COALESCE ( COUNT ( * ), 99 + ( + 60 ) / + 23 ) )
----
59

query I rowsort
SELECT DISTINCT 83 * - 55 * - 90 - - NULLIF ( 97, - 23 )
----
410947

query I rowsort
SELECT + 7 + - 31 AS col0
----
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-989
SELECT ALL CASE - 82 WHEN - MAX( DISTINCT 30 ) THEN NULL WHEN + 17 THEN NULL ELSE - CAST( + 59 AS SIGNED ) END col0
----
-59

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL CASE - 82 WHEN - MAX ( DISTINCT 30 ) THEN NULL WHEN + 17 THEN NULL ELSE - CAST ( + 59 AS INTEGER ) END col0
----
-59

query I rowsort
SELECT ALL - 13 * 96 AS col1
----
-1248

query I rowsort
SELECT + 84 + + 84 AS col0
----
168

query I rowsort
SELECT ALL 89 * 91
----
8099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), + 71 + - + 53 - - 25 + 67 ) - - 28
----
138

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), + 71 + - + 53 - - 25 + 67 ) - - 28
----
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL + CASE + 8 WHEN + ( - 2 ) THEN NULL WHEN + 56 THEN - - MIN( - 67 ) WHEN - + 72 - 52 THEN + 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + CASE + 8 WHEN + ( - 2 ) THEN NULL WHEN + 56 THEN - - MIN ( - 67 ) WHEN - + 72 - 52 THEN + 10 END
----
NULL

query I rowsort
SELECT - 47 * - 80
----
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL - 69 DIV 51 col2
----
-1

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL - 69 / 51 col2
----
-1

query I rowsort
SELECT - 99 + - 34 + - + 73 * + 10
----
-863

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT CAST( + 43 AS SIGNED ) + + 81 + + 53 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT CAST ( + 43 AS INTEGER ) + + 81 + + 53 AS col1
----
177

query I rowsort
SELECT DISTINCT + 71 + - 53
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-1004
SELECT + 59 AS col1, 49 DIV - - 90 * + - 61 AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-1004
SELECT + 59 AS col1, 49 / - - 90 * + - 61 AS col2
----
59
0

query I rowsort
SELECT ALL + - 90 + ( - 93 )
----
-183

query II rowsort
SELECT 5 AS col0, 52 col1
----
5
52

query II rowsort
SELECT - 12 + + - 73 + + 22 col2, - 41 AS col1
----
-63
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - MIN( DISTINCT + 0 ) * + + 68 * - 17 * - 52 * + + 0 * - 68
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT - MIN ( DISTINCT + 0 ) * + + 68 * - 17 * - 52 * + + 0 * - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT ALL - - 77 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - - 77 / 42
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - COUNT( * ) + - - 12 - SUM( DISTINCT - - 40 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - COUNT ( * ) + - - 12 - SUM ( DISTINCT - - 40 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT + - 2, MAX( ALL - 72 ) col2
----
-2
-72

skipif mysql # not compatible
query II rowsort label-1012
SELECT + - 2, MAX ( ALL - 72 ) col2
----
-2
-72

query I rowsort
SELECT ALL 83 - + 91 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT + COUNT( DISTINCT - - 97 ) * ( 20 ) col1, 96 + - 69 AS col1
----
20
27

skipif mysql # not compatible
query II rowsort label-1014
SELECT + COUNT ( DISTINCT - - 97 ) * ( 20 ) col1, 96 + - 69 AS col1
----
20
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1015
SELECT + 62 + + 75 * - 17 * - + COUNT( * ) col0, ( + 23 )
----
1337
23

skipif mysql # not compatible
query II rowsort label-1015
SELECT + 62 + + 75 * - 17 * - + COUNT ( * ) col0, ( + 23 )
----
1337
23

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

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

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT 25 + + - 61 + - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT ALL + COUNT( * ) * 32 * - + 65 * 44 * + + 85 + - 5 + - ( + 34 )
----
-7779239

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + COUNT ( * ) * 32 * - + 65 * 44 * + + 85 + - 5 + - ( + 34 )
----
-7779239

query I rowsort
SELECT + 19 * 53
----
1007

query I rowsort
SELECT DISTINCT - 62 - + 18
----
-80

query I rowsort
SELECT 74 * 77
----
5698

query II rowsort
SELECT 41 AS col1, 14 * 46
----
41
644

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT 63 / COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT + CASE - 45 WHEN - + MAX( - 5 ) THEN ( - 83 ) END * - - 54 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + CASE - 45 WHEN - + MAX ( - 5 ) THEN ( - 83 ) END * - - 54 * 21
----
NULL

query II rowsort
SELECT 93 * 43 AS col1, - 36
----
3999
-36

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT CASE 80 WHEN 62 * + + 3 + + COUNT( * ) * 67 + - + 18 * 59 + + + 53 / + 58 THEN NULL ELSE - 98 * - NULLIF ( + 60, CAST( 53 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 90 ) + + 22 END - - COALESCE ( - 74, 24 + SUM( 29 ) * - 56, 22 * + 5 )
----
5828

skipif mysql # not compatible
query I rowsort label-1027
SELECT CASE 80 WHEN 62 * + + 3 + + COUNT ( * ) * 67 + - + 18 * 59 + + + 53 / + 58 THEN NULL ELSE - 98 * - NULLIF ( + 60, CAST ( 53 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 90 ) + + 22 END - - COALESCE ( - 74, 24 + SUM ( 29 ) * - 56, 22 * + 5 )
----
5828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT ALL CASE + 68 WHEN - ( 21 ) THEN NULL WHEN 51 * 28 + - 19 THEN NULL WHEN + - ( + + 29 ) THEN CAST( + 7 AS SIGNED ) WHEN 10 THEN NULL ELSE COUNT( * ) + + 1 END + - 27 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL CASE + 68 WHEN - ( 21 ) THEN NULL WHEN 51 * 28 + - 19 THEN NULL WHEN + - ( + + 29 ) THEN CAST ( + 7 AS INTEGER ) WHEN 10 THEN NULL ELSE COUNT ( * ) + + 1 END + - 27 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 20 * + + MAX( ALL - + 24 ) + + + MIN( 58 ) AS col2
----
-422

skipif mysql # not compatible
query I rowsort label-1029
SELECT 20 * + + MAX ( ALL - + 24 ) + + + MIN ( 58 ) AS col2
----
-422

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT 28 DIV 13
----
2

skipif mysql # not compatible
query I rowsort label-1030
SELECT 28 / 13
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL COUNT( * ) + + MIN( - 57 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL COUNT ( * ) + + MIN ( - 57 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT MAX( - 14 ) * + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1032
SELECT MAX ( - 14 ) * + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT - 1 + - + COUNT( * ) + 87 + COUNT( * ) + + 14 * + - COUNT( * ) * + + 45
----
-544

skipif mysql # not compatible
query I rowsort label-1033
SELECT - 1 + - + COUNT ( * ) + 87 + COUNT ( * ) + + 14 * + - COUNT ( * ) * + + 45
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL - - 50 * - COUNT( * ) * + + COUNT( 68 ) - - - CASE - CASE - - 95 WHEN - COUNT( ALL + 94 ) + 2 THEN COUNT( DISTINCT 58 ) WHEN COUNT( * ) + 5 THEN NULL WHEN + 33 - - COUNT( * ) THEN + 64 * - 46 ELSE + ( - 11 ) END WHEN + 87 THEN ( - 34 ) + - COUNT( * ) * - 72 WHEN 0 THEN + 80 WHEN + ( 47 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - - 50 * - COUNT ( * ) * + + COUNT ( 68 ) - - - CASE - CASE - - 95 WHEN - COUNT ( ALL + 94 ) + 2 THEN COUNT ( DISTINCT 58 ) WHEN COUNT ( * ) + 5 THEN NULL WHEN + 33 - - COUNT ( * ) THEN + 64 * - 46 ELSE + ( - 11 ) END WHEN + 87 THEN ( - 34 ) + - COUNT ( * ) * - 72 WHEN 0 THEN + 80 WHEN + ( 47 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT - ( - + MIN( ALL + ( + 2 ) ) ) * - - 6 * + + ( + + 87 )
----
1044

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - ( - + MIN ( ALL + ( + 2 ) ) ) * - - 6 * + + ( + + 87 )
----
1044

query I rowsort
SELECT DISTINCT - + 83 * 46
----
-3818

query I rowsort
SELECT DISTINCT + + 20 - - 36 * + 25
----
920

query I rowsort
SELECT ALL - 24 * 34 + ( - 68 )
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT - CASE + 30 WHEN 43 THEN + 8 + + MAX( + 78 ) ELSE 13 END AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - CASE + 30 WHEN 43 THEN + 8 + + MAX ( + 78 ) ELSE 13 END AS col1
----
-13

query I rowsort
SELECT - 17 * + + 9 + + - 38 * + + 94 AS col1
----
-3725

onlyif mysql # aggregate syntax: 
query II rowsort label-1041
SELECT 86 * + ( + COUNT( * ) ) * + 82 col2, 47 col0
----
7052
47

skipif mysql # not compatible
query II rowsort label-1041
SELECT 86 * + ( + COUNT ( * ) ) * + 82 col2, 47 col0
----
7052
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1042
SELECT DISTINCT - ( - 10 ) DIV + + MIN( - 99 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - ( - 10 ) / + + MIN ( - 99 ) col1
----
0

query I rowsort
SELECT ALL - 25 * - - 44 + 12 + + + 28
----
-1060

query II rowsort
SELECT ALL - NULLIF ( 60, - + 57 + - - 35 ), - 43 AS col1
----
-60
-43

query II rowsort
SELECT 74 - 44 - + 84, 48 + 94 + - 40 * + 96 AS col0
----
-54
-3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT DISTINCT 89 * - CAST( - CASE - - 38 WHEN + 54 THEN NULL ELSE - - ( + 8 ) + + 92 + - COUNT( ALL - - ( - 6 ) ) END AS SIGNED ) AS col0
----
8811

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT 89 * - CAST ( - CASE - - 38 WHEN + 54 THEN NULL ELSE - - ( + 8 ) + + 92 + - COUNT ( ALL - - ( - 6 ) ) END AS INTEGER ) AS col0
----
8811

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

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + 96 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT 58 DIV NULLIF ( + - 63, 36 )
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT 58 / NULLIF ( + - 63, 36 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT 64 + - + ( - CASE - - 60 WHEN + 2 + - CAST( + NULLIF ( - COUNT( * ), + + 71 ) AS SIGNED ) THEN - 28 * 7 + + COUNT( * ) * 71 ELSE + 6 + - ( + 14 ) END ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1049
SELECT 64 + - + ( - CASE - - 60 WHEN + 2 + - CAST ( + NULLIF ( - COUNT ( * ), + + 71 ) AS INTEGER ) THEN - 28 * 7 + + COUNT ( * ) * 71 ELSE + 6 + - ( + 14 ) END ) AS col0
----
56

query I rowsort
SELECT DISTINCT + 69 * - + 51
----
-3519

query I rowsort
SELECT 74 + + + ( - 54 ) col1
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL MIN( DISTINCT 20 ) + 40 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL MIN ( DISTINCT 20 ) + 40 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + 70 + - + 88 + + + 82 * CASE - COUNT( * ) WHEN - 96 + + ( + 94 ) + 48 + - 15 THEN NULL WHEN - 53 * + 53 THEN - SUM( - 31 ) + 18 ELSE 95 END AS col0
----
7772

skipif mysql # not compatible
query I rowsort label-1054
SELECT + 70 + - + 88 + + + 82 * CASE - COUNT ( * ) WHEN - 96 + + ( + 94 ) + 48 + - 15 THEN NULL WHEN - 53 * + 53 THEN - SUM ( - 31 ) + 18 ELSE 95 END AS col0
----
7772

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT ALL 82 + 72 DIV 74
----
82

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 82 + 72 / 74
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL + 52 + + SUM( ALL - - 56 )
----
108

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL + 52 + + SUM ( ALL - - 56 )
----
108

query I rowsort
SELECT ALL 35 + + - 21 AS col0
----
14

query I rowsort
SELECT + 40 + - + 82 col0
----
-42

query I rowsort
SELECT ALL 46 + + 3 + + 28
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + CASE + - 34 WHEN + CASE - - 8 WHEN - 75 + + 5 / CASE + COUNT( * ) WHEN + COUNT( * ) THEN + 29 END / 62 THEN NULL WHEN - 64 THEN CASE 55 WHEN 70 * 32 THEN MIN( 56 ) ELSE + 13 * CASE - 45 WHEN 71 THEN NULL WHEN 34 * 11 THEN - 56 ELSE NULL END END END THEN COUNT( * ) + 4 WHEN - 37 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT + CASE + - 34 WHEN + CASE - - 8 WHEN - 75 + + 5 / CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN + 29 END / 62 THEN NULL WHEN - 64 THEN CASE 55 WHEN 70 * 32 THEN MIN ( 56 ) ELSE + 13 * CASE - 45 WHEN 71 THEN NULL WHEN 34 * 11 THEN - 56 ELSE NULL END END END THEN COUNT ( * ) + 4 WHEN - 37 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 93 + - + 31 AS col2
----
62

query I rowsort
SELECT + 4 * - 33
----
-132

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1064
SELECT - 6 * - - 25 * 91 + - MIN( ALL + 3 ) AS col1, + ( - - CAST( + 21 AS SIGNED ) )
----
-13653
21

skipif mysql # not compatible
query II rowsort label-1064
SELECT - 6 * - - 25 * 91 + - MIN ( ALL + 3 ) AS col1, + ( - - CAST ( + 21 AS INTEGER ) )
----
-13653
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT CASE - 91 WHEN 48 * 86 - 98 THEN - 26 * COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT CASE - 91 WHEN 48 * 86 - 98 THEN - 26 * COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL + 8 * COUNT( * ) + 78 - 90 - 81 * 94 * - 22 + + 96 AS col0
----
167600

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + 8 * COUNT ( * ) + 78 - 90 - 81 * 94 * - 22 + + 96 AS col0
----
167600

query I rowsort
SELECT + 8 * 40
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1068
SELECT ALL + + CAST( + CAST( + + 41 AS SIGNED ) AS SIGNED ) col0, + 78 AS col2
----
41
78

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL + + CAST ( + CAST ( + + 41 AS INTEGER ) AS INTEGER ) col0, + 78 AS col2
----
41
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT ALL + 73 AS col0, 72 + + - COUNT( + - 9 )
----
73
71

skipif mysql # not compatible
query II rowsort label-1069
SELECT ALL + 73 AS col0, 72 + + - COUNT ( + - 9 )
----
73
71

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

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

query I rowsort
SELECT + 74 * - 18 AS col0
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - + 59 * COUNT( 53 ) + - 13
----
-72

skipif mysql # not compatible
query I rowsort label-1072
SELECT - + 59 * COUNT ( 53 ) + - 13
----
-72

query II rowsort
SELECT 52, - 34 AS col1
----
52
-34

query II rowsort
SELECT + NULLIF ( + + 39, + 46 ) AS col0, + 83
----
39
83

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

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

query I rowsort
SELECT + + 15 - 65
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT ALL + + 18 DIV + - 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + + 18 / + - 57 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + - 98 + + 87 + + MIN( - + 28 )
----
-39

skipif mysql # not compatible
query I rowsort label-1078
SELECT + - 98 + + 87 + + MIN ( - + 28 )
----
-39

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + 87 * - COUNT ( 72 ) AS col0
----
-87

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT 89 / + COUNT ( * )
----
89

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

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

query I rowsort
SELECT DISTINCT - 96 * - + 27
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT + - 50 * + 98 + + + COUNT( DISTINCT + + 48 ) + 26 * 67 + 29
----
-3128

skipif mysql # not compatible
query I rowsort label-1083
SELECT + - 50 * + 98 + + + COUNT ( DISTINCT + + 48 ) + 26 * 67 + 29
----
-3128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL - + ( - CASE - + COUNT( * ) WHEN 40 THEN - - 72 WHEN - - 86 * + 54 * + 47 THEN - + 5 - + 42 ELSE NULL END ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - + ( - CASE - + COUNT ( * ) WHEN 40 THEN - - 72 WHEN - - 86 * + 54 * + 47 THEN - + 5 - + 42 ELSE NULL END ) + 87
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT - ( + CASE - AVG ( + - 4 ) WHEN - 65 * + - 31 * + 21 THEN NULL WHEN + 25 * - 49 THEN 52 * - + 19 DIV - 73 ELSE - 10 * - 9 END )
----
-90

skipif mysql # not compatible
query I rowsort label-1087
SELECT - ( + CASE - AVG ( + - 4 ) WHEN - 65 * + - 31 * + 21 THEN NULL WHEN + 25 * - 49 THEN 52 * - + 19 / - 73 ELSE - 10 * - 9 END )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT - 31 + + COUNT( * ) * 94 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 31 + + COUNT ( * ) * 94 AS col1
----
63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT 97 AS col1, SUM( + 59 ) * - 88 AS col0
----
97
-5192

skipif mysql # not compatible
query II rowsort label-1090
SELECT 97 AS col1, SUM ( + 59 ) * - 88 AS col0
----
97
-5192

query I rowsort
SELECT - 7 * 42
----
-294

query I rowsort
SELECT - 24 + - 6
----
-30

query I rowsort
SELECT ALL - COALESCE ( - - 81, - 47 ) + - 19 + - 69 * 89
----
-6241

query II rowsort
SELECT 11, 55 AS col2
----
11
55

query I rowsort
SELECT - 0 + + 59
----
59

query I rowsort
SELECT ALL - 10 + 59 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT - ( - 43 ) DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-1097
SELECT - ( - 43 ) / + 41
----
1

query II rowsort
SELECT - ( - 16 ) * + 61 * 77 AS col0, + 39 * - - 47 + - ( + + 83 ) * - 95 + - ( + - 94 ) AS col2
----
75152
9812

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL NULLIF ( COUNT( * ), - - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL NULLIF ( COUNT ( * ), - - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL ( 85 ) * 47 * - COUNT( * ) * + 42
----
-167790

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL ( 85 ) * 47 * - COUNT ( * ) * + 42
----
-167790

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - COUNT( * ) - - 97 + - 2 * - ( - + 59 ) * COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-1101
SELECT - COUNT ( * ) - - 97 + - 2 * - ( - + 59 ) * COUNT ( * )
----
-22

query I rowsort
SELECT - 87 * + + 44
----
-3828

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1103
SELECT - CASE - CASE ( - 16 ) WHEN - COUNT( * ) * CASE + 42 WHEN + - 21 THEN + 89 WHEN - CAST( NULL AS DECIMAL ) / + 43 THEN + 93 + 73 / 68 ELSE NULL END * 87 THEN - 10 END WHEN + 60 THEN NULL ELSE 80 END AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-1103
SELECT - CASE - CASE ( - 16 ) WHEN - COUNT ( * ) * CASE + 42 WHEN + - 21 THEN + 89 WHEN - CAST ( NULL AS REAL ) / + 43 THEN + 93 + 73 / 68 ELSE NULL END * 87 THEN - 10 END WHEN + 60 THEN NULL ELSE 80 END AS col1
----
-80

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT CAST( NULL AS SIGNED ) - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 21
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1108
SELECT ALL + MIN( DISTINCT 29 ) DIV + COALESCE ( 94, + ( 4 ), - 6 ) * + 55 * + - 51 + + 9 - 33 * 7 - + ( + 46 ) * + COUNT( * )
----
-268

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + MIN ( DISTINCT 29 ) / + COALESCE ( 94, + ( 4 ), - 6 ) * + 55 * + - 51 + + 9 - 33 * 7 - + ( + 46 ) * + COUNT ( * )
----
-268

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT - 92 DIV + - 38 + - 99 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 92 / + - 38 + - 99 AS col2
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-1110
SELECT + 17, - 4 DIV - 81 AS col1
----
17
0

skipif mysql # not compatible
query II rowsort label-1110
SELECT + 17, - 4 / - 81 AS col1
----
17
0

query I rowsort
SELECT ALL + NULLIF ( + 56, + + ( + 29 ) + + 5 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT ALL + - NULLIF ( + 1, + MIN( DISTINCT + NULLIF ( + + 39, + 79 * - 43 + + 41 * - 56 ) ) / - COUNT( * ) * - + CAST( NULL AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + - NULLIF ( + 1, + MIN ( DISTINCT + NULLIF ( + + 39, + 79 * - 43 + + 41 * - 56 ) ) / - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT + 19 - - 64 AS col0
----
83

query II rowsort
SELECT ALL + + 89 AS col1, 26 AS col2
----
89
26

query I rowsort
SELECT - + 19 * + - 17 AS col2
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + + COUNT( * ) * - + 28 * - - 95
----
-2660

skipif mysql # not compatible
query I rowsort label-1116
SELECT + + COUNT ( * ) * - + 28 * - - 95
----
-2660

query I rowsort
SELECT ALL 11 * + 68 col1
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT + - ( - 47 ) + - CAST( NULL AS SIGNED ) * + + NULLIF ( 18, 41 * - 22 * + + 41 * + ( - + 58 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT + - ( - 47 ) + - CAST ( NULL AS INTEGER ) * + + NULLIF ( 18, 41 * - 22 * + + 41 * + ( - + 58 ) ) AS col2
----
NULL

query II rowsort
SELECT + 57, + 31 - 64 AS col1
----
57
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT + + ( 21 ) DIV - 81 - 88 * - 12 * - - 78 + 98 - - 36 AS col1
----
82502

skipif mysql # not compatible
query I rowsort label-1120
SELECT + + ( 21 ) / - 81 - 88 * - 12 * - - 78 + 98 - - 36 AS col1
----
82502

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

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL 38 * + + COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT + 8 * + COUNT( * ) - - 71
----
79

skipif mysql # not compatible
query I rowsort label-1122
SELECT + 8 * + COUNT ( * ) - - 71
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL + - 82 * 78 * - + 62 + ( + 32 ) * - ( COUNT( * ) )
----
396520

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + - 82 * 78 * - + 62 + ( + 32 ) * - ( COUNT ( * ) )
----
396520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1124
SELECT + + 3, - 50 + CAST( NULL AS SIGNED ) AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1124
SELECT + + 3, - 50 + CAST ( NULL AS INTEGER ) AS col1
----
3
NULL

query I rowsort
SELECT ALL ( + 84 ) * 47 - - 81 + ( + - 13 ) AS col2
----
4016

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT + - COUNT( DISTINCT - - 24 ) * + 80 + COUNT( * ) AS col0, 26 + 75 + + 66 * 65
----
-79
4391

skipif mysql # not compatible
query II rowsort label-1126
SELECT + - COUNT ( DISTINCT - - 24 ) * + 80 + COUNT ( * ) AS col0, 26 + 75 + + 66 * 65
----
-79
4391

query I rowsort
SELECT - ( - 55 ) col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - CASE 4 WHEN - + MIN( 88 ) + 70 + 7 * 8 THEN - + 34 WHEN + + 81 * + + 20 * + 88 * + 13 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT - CASE 4 WHEN - + MIN ( 88 ) + 70 + 7 * 8 THEN - + 34 WHEN + + 81 * + + 20 * + 88 * + 13 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT + 19 + + 8, 68 AS col0
----
27
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT CASE COUNT( * ) WHEN - - 25 * 58 + - 16 - + 60 * - + ( COUNT( * ) ) / + 47 * - CAST( + 90 AS SIGNED ) * 50 + CAST( NULL AS SIGNED ) * 97 THEN + COUNT( * ) + - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT CASE COUNT ( * ) WHEN - - 25 * 58 + - 16 - + 60 * - + ( COUNT ( * ) ) / + 47 * - CAST ( + 90 AS INTEGER ) * 50 + CAST ( NULL AS INTEGER ) * 97 THEN + COUNT ( * ) + - 37 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1131
SELECT CASE - 21 WHEN + - CASE 30 WHEN - CASE WHEN + MIN( 60 ) IN ( + COALESCE ( - - 30, - 62 ) ) THEN + 1 WHEN NULL IN ( - 81 * - 38 ) THEN NULL ELSE NULL END THEN NULL WHEN + ( MAX( DISTINCT + 84 ) ) * + COUNT( * ) THEN 67 + + MAX( CAST( + 99 AS SIGNED ) ) ELSE NULL END + 5 * 12 THEN 11 DIV 80 + 67 WHEN + 56 * 75 THEN 20 ELSE - 26 - 83 END * + 92
----
-10028

skipif mysql # not compatible
query I rowsort label-1131
SELECT CASE - 21 WHEN + - CASE 30 WHEN - CASE WHEN + MIN ( 60 ) IN ( + COALESCE ( - - 30, - 62 ) ) THEN + 1 WHEN NULL IN ( - 81 * - 38 ) THEN NULL ELSE NULL END THEN NULL WHEN + ( MAX ( DISTINCT + 84 ) ) * + COUNT ( * ) THEN 67 + + MAX ( CAST ( + 99 AS INTEGER ) ) ELSE NULL END + 5 * 12 THEN 11 / 80 + 67 WHEN + 56 * 75 THEN 20 ELSE - 26 - 83 END * + 92
----
-10028

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL - COUNT( * ) * + 16 * - 40 AS col0
----
640

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - COUNT ( * ) * + 16 * - 40 AS col0
----
640

query I rowsort
SELECT ALL 77 + + 14
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT ALL + 60 * CASE WHEN ( ( + COALESCE ( + ( + - COALESCE ( ( COUNT( - - 17 ) ), + 80 * - 68, 56 - - 7 ) ), - 11 * 73 ) ) IS NULL ) THEN CAST( 86 AS SIGNED ) WHEN NOT NULL BETWEEN 28 + - COUNT( * ) AND - 64 THEN 67 * - 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL + 60 * CASE WHEN ( ( + COALESCE ( + ( + - COALESCE ( ( COUNT ( - - 17 ) ), + 80 * - 68, 56 - - 7 ) ), - 11 * 73 ) ) IS NULL ) THEN CAST ( 86 AS INTEGER ) WHEN NOT NULL BETWEEN 28 + - COUNT ( * ) AND - 64 THEN 67 * - 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT ALL COALESCE ( + 72, 77 ) * + + 74 * + COUNT( * ) AS col0, - 52
----
5328
-52

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL COALESCE ( + 72, 77 ) * + + 74 * + COUNT ( * ) AS col0, - 52
----
5328
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT ( + COUNT( * ) ) + - - 22 - CASE WHEN ( NULL ) IS NOT NULL THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT ( + COUNT ( * ) ) + - - 22 - CASE WHEN ( NULL ) IS NOT NULL THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1137
SELECT DISTINCT + 98 DIV + 50 AS col2, - 68 + - 79 + - COALESCE ( + COUNT( * ), COUNT( * ) + 86 + - COUNT( + 41 ), + COUNT( * ) + NULLIF ( 73, - 59 ) + COUNT( * ) * 1 * - 98 ) + 73 * - 76 * + COUNT( * ) * 5 col0
----
1
-27888

skipif mysql # not compatible
query II rowsort label-1137
SELECT DISTINCT + 98 / + 50 AS col2, - 68 + - 79 + - COALESCE ( + COUNT ( * ), COUNT ( * ) + 86 + - COUNT ( + 41 ), + COUNT ( * ) + NULLIF ( 73, - 59 ) + COUNT ( * ) * 1 * - 98 ) + 73 * - 76 * + COUNT ( * ) * 5 col0
----
1
-27888

onlyif mysql # DIV for integer division: 
query II rowsort label-1138
SELECT 37 * - 80 DIV - 5, - 9 * - - 60 AS col2
----
592
-540

skipif mysql # not compatible
query II rowsort label-1138
SELECT 37 * - 80 / - 5, - 9 * - - 60 AS col2
----
592
-540

query I rowsort
SELECT ALL + + 43 * + - 22
----
-946

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1141
SELECT + COUNT( * ) + + COUNT( * ) AS col2, - COUNT( * ) + 5 - - 65 + CAST( NULL AS DECIMAL ) AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1141
SELECT + COUNT ( * ) + + COUNT ( * ) AS col2, - COUNT ( * ) + 5 - - 65 + CAST ( NULL AS REAL ) AS col1
----
2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT DISTINCT - - CASE - COALESCE ( COUNT( * ), 39 ) WHEN - MAX( + 67 ) THEN NULL WHEN + 16 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - + 31 * + - 67 * + - COALESCE ( - + 62, + 50 + ( - 40 ) * + 79, 16 ) * SUM( - 66 ) END * ( + 11 * + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT - - CASE - COALESCE ( COUNT ( * ), 39 ) WHEN - MAX ( + 67 ) THEN NULL WHEN + 16 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - + 31 * + - 67 * + - COALESCE ( - + 62, + 50 + ( - 40 ) * + 79, 16 ) * SUM ( - 66 ) END * ( + 11 * + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT + ( COUNT( * ) ) * 15 * - ( + - 10 )
----
150

skipif mysql # not compatible
query I rowsort label-1143
SELECT + ( COUNT ( * ) ) * 15 * - ( + - 10 )
----
150

query I rowsort
SELECT 15 + - 58 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1145
SELECT ALL - + COUNT( * ) * - - 3 + 55 AS col0, + 32 AS col1
----
52
32

skipif mysql # not compatible
query II rowsort label-1145
SELECT ALL - + COUNT ( * ) * - - 3 + 55 AS col0, + 32 AS col1
----
52
32

query I rowsort
SELECT ALL + - 64 * + + 91 + - - 89 + - 32
----
-5767

query I rowsort
SELECT DISTINCT - - 1 * + ( 21 ) - - 49
----
70

query I rowsort
SELECT 93 * - - 3 + ( 33 )
----
312

query I rowsort
SELECT ALL - - COALESCE ( - 19, 19 )
----
-19

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

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

query I rowsort
SELECT ALL + + 72 + + 63 + + 92 + + 14 col0
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - ( NULLIF ( + + MAX( + 51 ), - 50 + COUNT( * ) + COUNT( * ) + + + 35 * 23 ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1152
SELECT - ( NULLIF ( + + MAX ( + 51 ), - 50 + COUNT ( * ) + COUNT ( * ) + + + 35 * 23 ) ) AS col2
----
-51

query I rowsort
SELECT - NULLIF ( + 82, 31 ) + - 39
----
-121

query I rowsort
SELECT 94 * - COALESCE ( - 41, - 41 * + 21 )
----
3854

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ALL + - 46 + + SUM( - 2 ) * + + 14 * + + 36 AS col0, + 38 + + 90 AS col2
----
-1054
128

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL + - 46 + + SUM ( - 2 ) * + + 14 * + + 36 AS col0, + 38 + + 90 AS col2
----
-1054
128

query I rowsort
SELECT - 95 + - 28
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1157
SELECT 49 col0, + CAST( NULL AS SIGNED ) + - 72
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1157
SELECT 49 col0, + CAST ( NULL AS INTEGER ) + - 72
----
49
NULL

query I rowsort
SELECT DISTINCT 7 + ( 25 ) * - - 13
----
332

query II rowsort
SELECT ALL - 74 AS col2, + 33 * 49 AS col0
----
-74
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 83 * - 99 + - 7 / + CASE 61 WHEN - CASE + 32 WHEN - AVG ( DISTINCT + 95 ) THEN - + ( 41 ) WHEN 14 THEN + - ( - 27 ) / + 95 END THEN + 98 * 62 WHEN + 85 + 92 * COUNT( DISTINCT NULLIF ( ( 14 ), + 7 ) ) THEN NULL END * 94 + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT 83 * - 99 + - 7 / + CASE 61 WHEN - CASE + 32 WHEN - AVG ( DISTINCT + 95 ) THEN - + ( 41 ) WHEN 14 THEN + - ( - 27 ) / + 95 END THEN + 98 * 62 WHEN + 85 + 92 * COUNT ( DISTINCT NULLIF ( ( 14 ), + 7 ) ) THEN NULL END * 94 + - 46
----
NULL

query I rowsort
SELECT DISTINCT 71 - - 71 AS col2
----
142

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

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

query I rowsort
SELECT 28 + + 69 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT - MAX( DISTINCT 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-1164
SELECT - MAX ( DISTINCT 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1165
SELECT ALL 75 col0, - CAST( - COUNT( + + 21 ) AS SIGNED )
----
75
1

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL 75 col0, - CAST ( - COUNT ( + + 21 ) AS INTEGER )
----
75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT 58 DIV + 79 * + + 66
----
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT 58 / + 79 * + + 66
----
0

query II rowsort
SELECT ALL 84 AS col1, - 36 AS col1
----
84
-36

query II rowsort
SELECT ALL 86 AS col2, 64 col2
----
86
64

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

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

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

skipif mysql # not compatible
query I rowsort label-1170
SELECT COUNT ( * ) / + 21 col2
----
0

query II rowsort
SELECT ALL 95 AS col2, - 38
----
95
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - - NULLIF ( 48, MAX( + 89 ) )
----
48

skipif mysql # not compatible
query I rowsort label-1172
SELECT - - NULLIF ( 48, MAX ( + 89 ) )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1173
SELECT - 63 AS col0, COUNT( * ) - - 23 - + 95 * 39 AS col2
----
-63
-3681

skipif mysql # not compatible
query II rowsort label-1173
SELECT - 63 AS col0, COUNT ( * ) - - 23 - + 95 * 39 AS col2
----
-63
-3681

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT 30 * COUNT( * ) * - ( + 62 ) AS col1, - 90
----
-1860
-90

skipif mysql # not compatible
query II rowsort label-1174
SELECT 30 * COUNT ( * ) * - ( + 62 ) AS col1, - 90
----
-1860
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT ALL - ( + NULLIF ( 24, + + COUNT( * ) ) ) + + - 66 DIV 74 + - ( + 47 )
----
-71

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - ( + NULLIF ( 24, + + COUNT ( * ) ) ) + + - 66 / 74 + - ( + 47 )
----
-71

query I rowsort
SELECT 9 * + 21
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT ALL + - 62 * 8 * 68 + + 81 DIV + - 65 + - - 14
----
-33715

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + - 62 * 8 * 68 + + 81 / + - 65 + - - 14
----
-33715

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT 98 * ( 39 ) * - + 63 + - - 25 + + 85 + + - COUNT( * )
----
-240677

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT 98 * ( 39 ) * - + 63 + - - 25 + + 85 + + - COUNT ( * )
----
-240677

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1179
SELECT + - 52 / + 37 - + 43 - + CAST( NULL AS SIGNED ) * + + COALESCE ( CAST( NULL AS DECIMAL ), + 28 ) * - + 11 + - 12 + - - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + - 52 / + 37 - + 43 - + CAST ( NULL AS INTEGER ) * + + COALESCE ( CAST ( NULL AS REAL ), + 28 ) * - + 11 + - 12 + - - 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT - 17 - + 32 * - CASE - + 63 WHEN + 86 THEN NULL WHEN + COUNT( * ) + + + ( + CASE + 45 WHEN + ( - MAX( 41 ) ) THEN + - 64 END ) * 15 THEN + 34 * 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT - 17 - + 32 * - CASE - + 63 WHEN + 86 THEN NULL WHEN + COUNT ( * ) + + + ( + CASE + 45 WHEN + ( - MAX ( 41 ) ) THEN + - 64 END ) * 15 THEN + 34 * 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT DISTINCT ( - + 61 ) * - 25 + - 22 AS col2, CASE 12 WHEN - 21 THEN + 20 WHEN + 55 THEN + 40 + 93 END + 50 + + COUNT( * ) * ( + COUNT( * ) ) AS col0
----
1503
NULL

skipif mysql # not compatible
query II rowsort label-1181
SELECT DISTINCT ( - + 61 ) * - 25 + - 22 AS col2, CASE 12 WHEN - 21 THEN + 20 WHEN + 55 THEN + 40 + 93 END + 50 + + COUNT ( * ) * ( + COUNT ( * ) ) AS col0
----
1503
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL 44 * - + 6 + + - 81 + CASE COALESCE ( - + 16, 5 ) WHEN + - 94 THEN NULL WHEN - 33 * - 67 THEN NULL ELSE + SUM( - 90 ) + + + COUNT( * ) * 4 END + 2 * 56
----
-319

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL 44 * - + 6 + + - 81 + CASE COALESCE ( - + 16, 5 ) WHEN + - 94 THEN NULL WHEN - 33 * - 67 THEN NULL ELSE + SUM ( - 90 ) + + + COUNT ( * ) * 4 END + 2 * 56
----
-319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT ALL - 72 * - 69 * + 78 + CAST( - + 87 AS SIGNED )
----
387417

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - 72 * - 69 * + 78 + CAST ( - + 87 AS INTEGER )
----
387417

query I rowsort
SELECT - 84 + COALESCE ( 61, - + 75 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - - COUNT( * ) * MAX( + + 43 ) * + 5
----
215

skipif mysql # not compatible
query I rowsort label-1185
SELECT - - COUNT ( * ) * MAX ( + + 43 ) * + 5
----
215

query II rowsort
SELECT + + 42 AS col1, 36 AS col0
----
42
36

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT DISTINCT + CASE + 48 WHEN + 84 THEN CAST( NULL AS SIGNED ) * - 9 + 27 * - - 43 + - MAX( DISTINCT + - 8 ) + + 77 WHEN - 93 / - 90 + 81 + - ( 19 ) * - 71 THEN + COALESCE ( - SUM( + 80 ), SUM( - 18 ) ) * - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + CASE + 48 WHEN + 84 THEN CAST ( NULL AS INTEGER ) * - 9 + 27 * - - 43 + - MAX ( DISTINCT + - 8 ) + + 77 WHEN - 93 / - 90 + 81 + - ( 19 ) * - 71 THEN + COALESCE ( - SUM ( + 80 ), SUM ( - 18 ) ) * - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1189
SELECT DISTINCT + 99 * - 27 - MIN( + + 61 ) + 49 + - 48 * 55 + - NULLIF ( + 79, 75 / - - 94 + + NULLIF ( - 52, - 18 + 44 ) + + ( COALESCE ( - 79, - 55 * COUNT( * ), ( NULLIF ( ( CAST( NULL AS SIGNED ) ), 90 * + CAST( + 44 AS SIGNED ) ) ) ) ) ) - 61 * - 16
----
-4428

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT + 99 * - 27 - MIN ( + + 61 ) + 49 + - 48 * 55 + - NULLIF ( + 79, 75 / - - 94 + + NULLIF ( - 52, - 18 + 44 ) + + ( COALESCE ( - 79, - 55 * COUNT ( * ), ( NULLIF ( ( CAST ( NULL AS INTEGER ) ), 90 * + CAST ( + 44 AS INTEGER ) ) ) ) ) ) - 61 * - 16
----
-4428

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL COUNT ( 22 ) / + 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL - 66 * - 46 * - 65 * - 77 - MIN( DISTINCT + 70 )
----
15195110

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL - 66 * - 46 * - 65 * - 77 - MIN ( DISTINCT + 70 )
----
15195110

query I rowsort
SELECT - 24 * + - 84
----
2016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1193
SELECT DISTINCT + CASE - 68 WHEN - 72 THEN - SUM( + + 48 ) * + + 66 * + + 10 WHEN + COALESCE ( + CASE - 89 WHEN - 94 THEN NULL WHEN 99 - - + COUNT( * ) THEN + 75 END, 28 + CAST( - 62 AS DECIMAL ), - ( - COUNT( * ) ) * - 85 ) + - 54 THEN 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT + CASE - 68 WHEN - 72 THEN - SUM ( + + 48 ) * + + 66 * + + 10 WHEN + COALESCE ( + CASE - 89 WHEN - 94 THEN NULL WHEN 99 - - + COUNT ( * ) THEN + 75 END, 28 + CAST ( - 62 AS REAL ), - ( - COUNT ( * ) ) * - 85 ) + - 54 THEN 85 END AS col0
----
NULL

query I rowsort
SELECT + 0 + 69 AS col1
----
69

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

skipif mysql # not compatible
query I rowsort label-1195
SELECT SUM ( + + 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT ALL + ( + CAST( NULLIF ( + 25, NULLIF ( + 31, 50 ) + 95 ) AS SIGNED ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL + ( + CAST ( NULLIF ( + 25, NULLIF ( + 31, 50 ) + 95 ) AS INTEGER ) ) col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - ( + 18 ) - CASE + + 78 WHEN 54 * SUM( DISTINCT - 42 ) THEN - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT - ( + 18 ) - CASE + + 78 WHEN 54 * SUM ( DISTINCT - 42 ) THEN - 40 END
----
NULL

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

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

query I rowsort
SELECT + 94 * - - 45
----
4230

query I rowsort
SELECT 89 * - 5 + - + 27 + + 12
----
-460

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT MAX( - 2 ), - 98 AS col0
----
-2
-98

skipif mysql # not compatible
query II rowsort label-1201
SELECT MAX ( - 2 ), - 98 AS col0
----
-2
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT 17 * 65 * + COUNT( * ) AS col1
----
1105

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 17 * 65 * + COUNT ( * ) AS col1
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT - 75 * - CASE + - COUNT( + 33 ) WHEN + 27 THEN + COUNT( * ) WHEN + 28 THEN COUNT( * ) WHEN 6 THEN + 20 * - - 74 * + 78 - COUNT( * ) / - 85 ELSE NULL END + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT - 75 * - CASE + - COUNT ( + 33 ) WHEN + 27 THEN + COUNT ( * ) WHEN + 28 THEN COUNT ( * ) WHEN 6 THEN + 20 * - - 74 * + 78 - COUNT ( * ) / - 85 ELSE NULL END + + 87 AS col1
----
NULL

query I rowsort
SELECT ALL 52 * + + 96 * + 17 AS col0
----
84864

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT ALL COUNT( - 20 ) * - ( - 57 ), + 20 col0
----
57
20

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL COUNT ( - 20 ) * - ( - 57 ), + 20 col0
----
57
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT - ( - 59 ) * + 30 * - 13 * + + COUNT( * ) * - - 33 - - 51 + - 15 * 14
----
-759489

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - ( - 59 ) * + 30 * - 13 * + + COUNT ( * ) * - - 33 - - 51 + - 15 * 14
----
-759489

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + COUNT( 80 ) - - 13 + + 2 + + 34 * + 35
----
1206

skipif mysql # not compatible
query I rowsort label-1208
SELECT + COUNT ( 80 ) - - 13 + + 2 + + 34 * + 35
----
1206

query I rowsort
SELECT - NULLIF ( - 17, + - 99 * + + 39 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1210
SELECT - COUNT( ALL - 65 ) col0, 88 AS col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-1210
SELECT - COUNT ( ALL - 65 ) col0, 88 AS col2
----
-1
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT + - 56 + - + 65 DIV MIN( ALL + - 39 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1212
SELECT + - 56 + - + 65 / MIN ( ALL + - 39 ) AS col1
----
-55

query I rowsort
SELECT ALL + 51 + + ( - ( - ( - 88 ) ) ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT + + CASE + - 87 WHEN 31 THEN + - 97 + - NULLIF ( + 61, - SUM( + - 33 ) * + 20 + + NULLIF ( 86, - + 33 ) * + - 23 / 81 * 62 ) * + 71 END + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT + + CASE + - 87 WHEN 31 THEN + - 97 + - NULLIF ( + 61, - SUM ( + - 33 ) * + 20 + + NULLIF ( 86, - + 33 ) * + - 23 / 81 * 62 ) * + 71 END + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1215
SELECT ALL 5 + 66 + 72 + - 91 DIV + 9 + 17 * 17 * + COALESCE ( - ( 49 ), 22 DIV - 83, - + 45 ) - COUNT( * ) + - NULLIF ( 96 - + 38, 38 + CAST( NULL AS SIGNED ) ) * - 73
----
-9795

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 5 + 66 + 72 + - 91 / + 9 + 17 * 17 * + COALESCE ( - ( 49 ), 22 / - 83, - + 45 ) - COUNT ( * ) + - NULLIF ( 96 - + 38, 38 + CAST ( NULL AS INTEGER ) ) * - 73
----
-9795

query I rowsort
SELECT ALL - - 96 + 30 * 98
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT + COUNT( DISTINCT - 49 ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-1217
SELECT + COUNT ( DISTINCT - 49 ) + - 73
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL - - 71 * - + CAST( NULL AS SIGNED ) + - COALESCE ( + 50, - - 98, + - SUM( DISTINCT - + 0 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - - 71 * - + CAST ( NULL AS INTEGER ) + - COALESCE ( + 50, - - 98, + - SUM ( DISTINCT - + 0 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT - 68 + COALESCE ( - - 73, - + 53 * COUNT( * ), - - 95 + - 72 ) * - 24
----
-1820

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - 68 + COALESCE ( - - 73, - + 53 * COUNT ( * ), - - 95 + - 72 ) * - 24
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1220
SELECT - COUNT( * ) + + CASE + COALESCE ( 0, - 61, - - 76 - - - CAST( - + 44 AS DECIMAL ) ) WHEN - + 4 * - + 97 + - 48 + - 68 * + - 45 + + + 22 THEN NULL WHEN - ( 17 ) + + 75 / + COUNT( * ) THEN 6 WHEN ( - COUNT( * ) ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT - COUNT ( * ) + + CASE + COALESCE ( 0, - 61, - - 76 - - - CAST ( - + 44 AS REAL ) ) WHEN - + 4 * - + 97 + - 48 + - 68 * + - 45 + + + 22 THEN NULL WHEN - ( 17 ) + + 75 / + COUNT ( * ) THEN 6 WHEN ( - COUNT ( * ) ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1221
SELECT ALL + 26 DIV + - 41 * - 5 * + 67 + - COUNT( * ) * + 59 * 65
----
-3835

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL + 26 / + - 41 * - 5 * + 67 + - COUNT ( * ) * + 59 * 65
----
-3835

query I rowsort
SELECT - - 75 * - + 85 + + 47 + + 33
----
-6295

query I rowsort
SELECT ALL + + NULLIF ( - NULLIF ( + 54, + 18 ), - COALESCE ( + 96, - + 35 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + COUNT( - ( 78 ) ) * + 25 + 81 * COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-1224
SELECT + COUNT ( - ( 78 ) ) * + 25 + 81 * COUNT ( * )
----
106

query II rowsort
SELECT + + 80 * 75 AS col1, 31 AS col1
----
6000
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT ALL + 97 DIV 94 - + 49 + + + COUNT( * ) * + + CASE + 82 WHEN + ( + 49 ) THEN NULL WHEN + + 88 THEN - 94 ELSE + - 52 END AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + 97 / 94 - + 49 + + + COUNT ( * ) * + + CASE + 82 WHEN + ( + 49 ) THEN NULL WHEN + + 88 THEN - 94 ELSE + - 52 END AS col1
----
-100

query I rowsort
SELECT ALL - 32 * 39 * - 48 * + COALESCE ( - 72, + 18, + 42, + + 46 * + - ( 3 ) ) - - 29
----
-4313059

query I rowsort
SELECT ALL - 1 * 13
----
-13

query I rowsort
SELECT - 24 * - 80 AS col2
----
1920

query I rowsort
SELECT - 42 + 50 - + 29 * - - 24
----
-688

query I rowsort
SELECT ALL + NULLIF ( - 79, - 44 ) * COALESCE ( + 32, - 84 + + 48 - - 0, + 34 )
----
-2528

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT + 88 DIV + - 89 * + + 69 col2
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT + 88 / + - 89 * + + 69 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT - 94 * + COUNT( * ) * + - 82 * + + 43 col0
----
331444

skipif mysql # not compatible
query I rowsort label-1233
SELECT - 94 * + COUNT ( * ) * + - 82 * + + 43 col0
----
331444

query II rowsort
SELECT - 6 + - - 51 * + 71 AS col0, 20 AS col2
----
3615
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1235
SELECT NULLIF ( + 24, + CAST( - + 47 AS DECIMAL ) + 49 + - 39 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1235
SELECT NULLIF ( + 24, + CAST ( - + 47 AS REAL ) + 49 + - 39 ) AS col0
----
24

query I rowsort
SELECT ALL - ( - + 94 ) * - 56
----
-5264

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL + 3 * + - COUNT( * ) * - + 36
----
108

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + 3 * + - COUNT ( * ) * - + 36
----
108

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT - 52 + - CAST( + 2 AS SIGNED ) + - 42 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 52 + - CAST ( + 2 AS INTEGER ) + - 42 AS col1
----
-96

query I rowsort
SELECT - COALESCE ( 36, - ( - 94 ) ) + 40
----
4

query I rowsort
SELECT - 99 * + 79 col2
----
-7821

query I rowsort
SELECT + 4 * 36
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT DISTINCT CAST( - 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT CAST ( - 79 AS INTEGER ) AS col2
----
-79

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1245
SELECT + 75, - CAST( - + 1 AS SIGNED ) col0
----
75
1

skipif mysql # not compatible
query II rowsort label-1245
SELECT + 75, - CAST ( - + 1 AS INTEGER ) col0
----
75
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1246
SELECT ALL + MIN( ALL - 91 ) * + CAST( NULL AS SIGNED ) / + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL + MIN ( ALL - 91 ) * + CAST ( NULL AS INTEGER ) / + - 47 AS col1
----
NULL

query I rowsort
SELECT - 36 * - - 21 * + + 2 AS col1
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + 80 + - 47 + - - NULLIF ( COUNT( * ), + NULLIF ( - 27, - - 92 ) * - 55 ) + 75 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + 80 + - 47 + - - NULLIF ( COUNT ( * ), + NULLIF ( - 27, - - 92 ) * - 55 ) + 75 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL 89 + + MIN( - - 7 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL 89 + + MIN ( - - 7 ) AS col2
----
96

query I rowsort
SELECT ALL + 30 * + 41 col2
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + - 19 * - COALESCE ( SUM( - NULLIF ( + 3, - 45 ) ), + COUNT( * ) ) + - - 28 + + 72
----
43

skipif mysql # not compatible
query I rowsort label-1251
SELECT + - 19 * - COALESCE ( SUM ( - NULLIF ( + 3, - 45 ) ), + COUNT ( * ) ) + - - 28 + + 72
----
43

query I rowsort
SELECT ALL + 39 + + 92 + + + 10 * 36 AS col0
----
491

query II rowsort
SELECT + 21 AS col2, + 1 * - 3 col0
----
21
-3

query I rowsort
SELECT - + 15 col0
----
-15

query I rowsort
SELECT + 39 - 32 * + - 48 AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - COUNT( * ) * - MIN( DISTINCT + + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-1256
SELECT - COUNT ( * ) * - MIN ( DISTINCT + + 32 )
----
32

query I rowsort
SELECT - - ( - - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT 49 - - ( + 32 ) * COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1258
SELECT 49 - - ( + 32 ) * COUNT ( * ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT ALL - COALESCE ( - - 21, + 12 * - - 22 * 30 ) DIV + - 7 + + + 8
----
11

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - COALESCE ( - - 21, + 12 * - - 22 * 30 ) / + - 7 + + + 8
----
11

query I rowsort
SELECT ALL + - 73 - 2 col2
----
-75

query I rowsort
SELECT DISTINCT - 81 * + 30 * + 85 AS col2
----
-206550

query I rowsort
SELECT ALL 19 - - ( + 12 ) + - 3
----
28

query I rowsort
SELECT - 88 * + 43
----
-3784

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT ALL 62 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL 62 / + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - CASE + 86 WHEN + ( - 44 ) THEN - - 7 WHEN - + 54 * MAX( ALL + - 73 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - CASE + 86 WHEN + ( - 44 ) THEN - - 7 WHEN - + 54 * MAX ( ALL + - 73 ) THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1266
SELECT 95 AS col1, - CASE - + 21 WHEN - COUNT( * ) * - CAST( NULL AS SIGNED ) * CAST( + + 21 AS SIGNED ) + + 41 THEN 26 END + - - 39
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1266
SELECT 95 AS col1, - CASE - + 21 WHEN - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * CAST ( + + 21 AS INTEGER ) + + 41 THEN 26 END + - - 39
----
95
NULL

query I rowsort
SELECT 6 * + - 35 + + 66
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT COALESCE ( + - COUNT( * ), + 40 ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-1268
SELECT COALESCE ( + - COUNT ( * ), + 40 ) * - 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1269
SELECT DISTINCT COUNT( * ) * - CAST( + 86 AS SIGNED ) * 87 * + - 50
----
374100

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT COUNT ( * ) * - CAST ( + 86 AS INTEGER ) * 87 * + - 50
----
374100

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL - ( 62 ) + + COUNT( * ) * - 5 - - 48 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - ( 62 ) + + COUNT ( * ) * - 5 - - 48 AS col2
----
-19

query II rowsort
SELECT ALL - 73, + ( - 99 ) AS col1
----
-73
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT DISTINCT 99 + - NULLIF ( 28, - + ( 58 ) * - 76 / COUNT( * ) ) AS col1, MIN( + 43 )
----
71
43

skipif mysql # not compatible
query II rowsort label-1272
SELECT DISTINCT 99 + - NULLIF ( 28, - + ( 58 ) * - 76 / COUNT ( * ) ) AS col1, MIN ( + 43 )
----
71
43

query I rowsort
SELECT DISTINCT + 53 * - 92 col0
----
-4876

query II rowsort
SELECT + 28 AS col2, 6 AS col0
----
28
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL 34 + + SUM( - 4 )
----
30

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL 34 + + SUM ( - 4 )
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1276
SELECT ALL CAST( - 13 AS SIGNED ) DIV 89 col2
----
0

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL CAST ( - 13 AS INTEGER ) / 89 col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1277
SELECT + 81, 31 * - + CAST( NULL AS DECIMAL ) / 79 + - 56 AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 81, 31 * - + CAST ( NULL AS REAL ) / 79 + - 56 AS col0
----
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT 63 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-1278
SELECT 63 / + 59
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT + 36, - 75 * + 57 - + 38 * 36 - + - COUNT( * ) * + - 38 * + + ( - 47 ) * 19 - + 50 - - + 51 AS col2
----
36
28292

skipif mysql # not compatible
query II rowsort label-1279
SELECT + 36, - 75 * + 57 - + 38 * 36 - + - COUNT ( * ) * + - 38 * + + ( - 47 ) * 19 - + 50 - - + 51 AS col2
----
36
28292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1280
SELECT 27, ( COALESCE ( CAST( NULL AS SIGNED ), - 95 + - COUNT( * ), - 57 ) ) AS col1
----
27
-96

skipif mysql # not compatible
query II rowsort label-1280
SELECT 27, ( COALESCE ( CAST ( NULL AS INTEGER ), - 95 + - COUNT ( * ), - 57 ) ) AS col1
----
27
-96

query I rowsort
SELECT ALL - 99 + - - 50 AS col2
----
-49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT 53 + - - 35 DIV - 52
----
53

skipif mysql # not compatible
query I rowsort label-1283
SELECT 53 + - - 35 / - 52
----
53

query II rowsort
SELECT ALL + + 92 + - 42 col1, - 93
----
50
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT DISTINCT + CASE + COALESCE ( + CAST( + 2 AS SIGNED ), + CASE - 37 WHEN + + 66 * - + 84 THEN NULL WHEN 37 * 30 THEN - - 14 ELSE NULL END + - - 16 * - + 55 * + 20 ) WHEN + 91 THEN 44 END * - CAST( - 12 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + CASE + COALESCE ( + CAST ( + 2 AS INTEGER ), + CASE - 37 WHEN + + 66 * - + 84 THEN NULL WHEN 37 * 30 THEN - - 14 ELSE NULL END + - - 16 * - + 55 * + 20 ) WHEN + 91 THEN 44 END * - CAST ( - 12 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 29 + ( + 55 )
----
26

query I rowsort
SELECT 46 - + ( 34 ) col0
----
12

query I rowsort
SELECT DISTINCT + ( - COALESCE ( - 53, - NULLIF ( + 59, + AVG ( DISTINCT + + 85 ) ) ) ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT + - 63 + + + 86 + 88 * - + 22 + - + 96 * SUM( - + 22 )
----
199

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + - 63 + + + 86 + 88 * - + 22 + - + 96 * SUM ( - + 22 )
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1290
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT COUNT( * ) + + 58 + + - 60 * 65 col0
----
-3841

skipif mysql # not compatible
query I rowsort label-1291
SELECT COUNT ( * ) + + 58 + + - 60 * 65 col0
----
-3841

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1294
SELECT - NULLIF ( - 94, - 58 * 17 ) - 13 - - + 52 - - ( + COALESCE ( + + 86, - 88, - + COUNT( * ) ) ) + CAST( NULL AS DECIMAL ) / 77 * + CASE - - 58 WHEN - 96 / + 79 THEN - NULLIF ( + 91, 31 + - 21 ) END / 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT - NULLIF ( - 94, - 58 * 17 ) - 13 - - + 52 - - ( + COALESCE ( + + 86, - 88, - + COUNT ( * ) ) ) + CAST ( NULL AS REAL ) / 77 * + CASE - - 58 WHEN - 96 / + 79 THEN - NULLIF ( + 91, 31 + - 21 ) END / 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT 63 + 79 + + + 93 DIV 73 * COUNT( * ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-1295
SELECT 63 + 79 + + + 93 / 73 * COUNT ( * ) AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - NULLIF ( - 61, - 27 ) - - 62 + - SUM( ALL - 68 ) + COUNT( * ) * + - COUNT( * )
----
190

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - NULLIF ( - 61, - 27 ) - - 62 + - SUM ( ALL - 68 ) + COUNT ( * ) * + - COUNT ( * )
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT - - MIN( 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1297
SELECT - - MIN ( 8 ) AS col2
----
8

query I rowsort
SELECT DISTINCT + NULLIF ( - 0, + 68 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1299
SELECT ALL + 52 * - 9, COUNT( * ) AS col1
----
-468
1

skipif mysql # not compatible
query II rowsort label-1299
SELECT ALL + 52 * - 9, COUNT ( * ) AS col1
----
-468
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + MIN( - 20 ) * - 86 * + - 92 AS col1
----
-158240

skipif mysql # not compatible
query I rowsort label-1300
SELECT + MIN ( - 20 ) * - 86 * + - 92 AS col1
----
-158240

onlyif mysql # aggregate syntax: 
query II rowsort label-1301
SELECT ALL COUNT( * ) AS col1, - SUM( - 22 )
----
1
22

skipif mysql # not compatible
query II rowsort label-1301
SELECT ALL COUNT ( * ) AS col1, - SUM ( - 22 )
----
1
22

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT - 39 DIV - - 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 39 / - - 57 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT 30 * + - CASE - + 33 WHEN + 44 + - - 13 + + COUNT( * ) / - + 2 + + - 63 THEN + + SUM( ALL 99 ) * + + 34 ELSE NULL END + 0 * - 19 - + ( 85 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT 30 * + - CASE - + 33 WHEN + 44 + - - 13 + + COUNT ( * ) / - + 2 + + - 63 THEN + + SUM ( ALL 99 ) * + + 34 ELSE NULL END + 0 * - 19 - + ( 85 ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL + COUNT( * ) + NULLIF ( - + 93, + 75 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + COUNT ( * ) + NULLIF ( - + 93, + 75 ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1308
SELECT DISTINCT 58 + - - 34 + + SUM( DISTINCT + 58 ) * 14 DIV - 70 col1
----
81

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT 58 + - - 34 + + SUM ( DISTINCT + 58 ) * 14 / - 70 col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT ( - 80 ) + + 10 * + - ( + CAST( NULL AS SIGNED ) ) * - - ( - - 42 ) * - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT ( - 80 ) + + 10 * + - ( + CAST ( NULL AS INTEGER ) ) * - - ( - - 42 ) * - 31 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1310
SELECT 67 * + 93 + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 87 * - + COALESCE ( + 99, + - 31 ) AS col0
----
-8613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT ALL 81 + + 41 / + 6 + + NULLIF ( - - CASE 19 WHEN 67 * CASE - CASE 83 WHEN - - 71 THEN - - 73 * 96 WHEN + 29 THEN NULL END WHEN - + ( - 14 ) THEN - 39 * - CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) END / - 73 THEN + 17 / 10 WHEN 39 THEN - 41 END, 67 ) * - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL 81 + + 41 / + 6 + + NULLIF ( - - CASE 19 WHEN 67 * CASE - CASE 83 WHEN - - 71 THEN - - 73 * 96 WHEN + 29 THEN NULL END WHEN - + ( - 14 ) THEN - 39 * - CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) END / - 73 THEN + 17 / 10 WHEN 39 THEN - 41 END, 67 ) * - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - NULLIF ( + - 85, - + COUNT( * ) * 93 + + ( - - 5 ) )
----
85

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - NULLIF ( + - 85, - + COUNT ( * ) * 93 + + ( - - 5 ) )
----
85

query I rowsort
SELECT + 56 * 67 * + 95 * + + 93 + - 13
----
33148907

query I rowsort
SELECT ALL - + 71 col1
----
-71

query I rowsort
SELECT 60 + - + 14 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT ALL 10 - 31 * - 60 - + CAST( NULL AS SIGNED ) + + 20 - - + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 10 - 31 * - 60 - + CAST ( NULL AS INTEGER ) + + 20 - - + 51 AS col0
----
NULL

query II rowsort
SELECT - 94 * + + 20 col2, - 37
----
-1880
-37

query I rowsort
SELECT ALL - 48 * + + 19 * - 88
----
80256

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

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

query I rowsort
SELECT + 10 * + 5 + - + 54 AS col2
----
-4

query I rowsort
SELECT + - 32 + + + 92
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1323
SELECT - 84 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT - 84 * CAST ( NULL AS REAL )
----
NULL

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

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

query II rowsort
SELECT - 37 - + 4 + + 43 + 11 - 93, 18 AS col1
----
-80
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT DISTINCT MIN( - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT MIN ( - 17 )
----
-17

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

query I rowsort
SELECT DISTINCT 88 * + - 87 AS col0
----
-7656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1330
SELECT ALL NULLIF ( 43, - + COUNT( + 84 ) ) * - - COUNT( * ) DIV 93 + + MIN( ALL 4 ) * - + 21 * 15
----
-1260

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL NULLIF ( 43, - + COUNT ( + 84 ) ) * - - COUNT ( * ) / 93 + + MIN ( ALL 4 ) * - + 21 * 15
----
-1260

query I rowsort
SELECT - 12 - + 54 AS col1
----
-66

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

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

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

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

query I rowsort
SELECT ALL - ( - 78 ) * + 59 + + 98 + - 36
----
4664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT 8 DIV 60 * 68 * + + COUNT( * ) + + MAX( DISTINCT + - 35 ) * - + 30
----
1050

skipif mysql # not compatible
query I rowsort label-1335
SELECT 8 / 60 * 68 * + + COUNT ( * ) + + MAX ( DISTINCT + - 35 ) * - + 30
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT ALL 40 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL 40 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL + MIN( - 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + MIN ( - 35 ) col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT + CASE - 77 WHEN + COALESCE ( - CASE + - 16 WHEN - 87 + - 21 + CAST( - 97 AS SIGNED ) + + 56 * - 11 THEN NULL WHEN - - 44 - - 16 THEN - - 30 / ( - - NULLIF ( NULLIF ( - + 14, 71 ), + COUNT( * ) ) ) * + NULLIF ( 35, - ( COUNT( - 48 ) ) ) + + 87 END, COUNT( 78 ) ) + - COALESCE ( 12, 29 ) THEN + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT + CASE - 77 WHEN + COALESCE ( - CASE + - 16 WHEN - 87 + - 21 + CAST ( - 97 AS INTEGER ) + + 56 * - 11 THEN NULL WHEN - - 44 - - 16 THEN - - 30 / ( - - NULLIF ( NULLIF ( - + 14, 71 ), + COUNT ( * ) ) ) * + NULLIF ( 35, - ( COUNT ( - 48 ) ) ) + + 87 END, COUNT ( 78 ) ) + - COALESCE ( 12, 29 ) THEN + 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT + CASE - 32 WHEN - 33 + + 22 THEN NULL WHEN 93 * + + ( - 51 ) THEN - MIN( + - 53 ) + + 84 / 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT + CASE - 32 WHEN - 33 + + 22 THEN NULL WHEN 93 * + + ( - 51 ) THEN - MIN ( + - 53 ) + + 84 / 81 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT DISTINCT + 24 * + 65 - + 71 - + 82 + - + 11 + + ( + 94 ) * + MIN( ALL + + ( + CAST( NULL AS SIGNED ) ) ) * NULLIF ( - + 86, + 55 - + 95 ) * 49 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT + 24 * + 65 - + 71 - + 82 + - + 11 + + ( + 94 ) * + MIN ( ALL + + ( + CAST ( NULL AS INTEGER ) ) ) * NULLIF ( - + 86, + 55 - + 95 ) * 49 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - 69 + - 55 + - + COUNT( 94 )
----
-125

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 69 + - 55 + - + COUNT ( 94 )
----
-125

query II rowsort
SELECT + 50 AS col1, 15 - + 10 AS col1
----
50
5

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

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

query I rowsort
SELECT ALL - 52 * 15 col1
----
-780

query II rowsort
SELECT + - 24 col0, 50 - - COALESCE ( + - 14, 61 ) + 88 - - - 75
----
-24
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1346
SELECT + - COUNT( * ) * + 41 - NULLIF ( 71, - 63 ) + + 27 DIV - + 57 * - 10 + + - 26
----
-138

skipif mysql # not compatible
query I rowsort label-1346
SELECT + - COUNT ( * ) * + 41 - NULLIF ( 71, - 63 ) + + 27 / - + 57 * - 10 + + - 26
----
-138

query II rowsort
SELECT 88 col1, 98 AS col2
----
88
98

query II rowsort
SELECT DISTINCT 17, + 87 + - 81 AS col1
----
17
6

query I rowsort
SELECT + + 22 + 28 + + + 8 * + 61 * - 15 col2
----
-7270

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT ALL - ( + 16 ) DIV + COALESCE ( - - 42, + + 52 * + 31, - + 13 ) - + - 6 * 9 * 69 - + + 87 AS col2
----
3639

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL - ( + 16 ) / + COALESCE ( - - 42, + + 52 * + 31, - + 13 ) - + - 6 * 9 * 69 - + + 87 AS col2
----
3639

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT + 68 + - 17 + - COUNT( * ) * - 78 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 68 + - 17 + - COUNT ( * ) * - 78 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL + SUM( DISTINCT 87 ) + + 6
----
93

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + SUM ( DISTINCT 87 ) + + 6
----
93

query I rowsort
SELECT + + 70 + - 58
----
12

query I rowsort
SELECT + - 95 + - + 55 + + ( - 55 ) AS col1
----
-205

query I rowsort
SELECT ALL - COALESCE ( + 66, + - 43 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT DISTINCT CASE - + 92 WHEN - 45 THEN NULL ELSE + COUNT( * ) + - 34 * - 26 END + + + 20 AS col2, - 76 AS col2
----
905
-76

skipif mysql # not compatible
query II rowsort label-1356
SELECT DISTINCT CASE - + 92 WHEN - 45 THEN NULL ELSE + COUNT ( * ) + - 34 * - 26 END + + + 20 AS col2, - 76 AS col2
----
905
-76

query I rowsort
SELECT DISTINCT - ( + + 27 ) + + + 52 * - 60
----
-3147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL + 12 + - + COUNT( + 59 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + 12 + - + COUNT ( + 59 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT - 12 + MIN( + 85 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1360
SELECT - 12 + MIN ( + 85 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL CASE NULLIF ( - COUNT( ALL + 71 ), - 66 / 19 * - ( - + 22 ) ) WHEN - 72 * + - 8 + + 80 + COUNT( * ) THEN COUNT( * ) + 9 + 0 WHEN 85 * - COUNT( * ) * - 49 + - 0 / 51 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL CASE NULLIF ( - COUNT ( ALL + 71 ), - 66 / 19 * - ( - + 22 ) ) WHEN - 72 * + - 8 + + 80 + COUNT ( * ) THEN COUNT ( * ) + 9 + 0 WHEN 85 * - COUNT ( * ) * - 49 + - 0 / 51 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1362
SELECT + 82 * - CASE - MIN( ALL 52 ) WHEN + MAX( + CAST( - + 86 AS SIGNED ) ) - - 87 THEN 81 * - COUNT( * ) + + - MAX( + 51 ) + - NULLIF ( 19, - + COALESCE ( COUNT( * ), 29 ) * - 89 + - CAST( MIN( - 39 ) AS SIGNED ) + CASE - 44 + 92 WHEN 19 * 69 THEN + 75 END * 3 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 82 * - CASE - MIN ( ALL 52 ) WHEN + MAX ( + CAST ( - + 86 AS INTEGER ) ) - - 87 THEN 81 * - COUNT ( * ) + + - MAX ( + 51 ) + - NULLIF ( 19, - + COALESCE ( COUNT ( * ), 29 ) * - 89 + - CAST ( MIN ( - 39 ) AS INTEGER ) + CASE - 44 + 92 WHEN 19 * 69 THEN + 75 END * 3 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT ALL 54 DIV 99 + + + ( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL 54 / 99 + + + ( 10 )
----
10

query I rowsort
SELECT - 52 * 40
----
-2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT + COUNT( ALL + CAST( 47 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1365
SELECT + COUNT ( ALL + CAST ( 47 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT - 23 * + MAX( + ( - 97 ) )
----
2231

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - 23 * + MAX ( + ( - 97 ) )
----
2231

query I rowsort
SELECT + 67 * - - ( + - 76 ) + + - 76 AS col0
----
-5168

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT + COUNT( * ) * 26 + - - ( - 82 ) AS col1, ( + - 76 ) AS col1
----
-56
-76

skipif mysql # not compatible
query II rowsort label-1368
SELECT + COUNT ( * ) * 26 + - - ( - 82 ) AS col1, ( + - 76 ) AS col1
----
-56
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1369
SELECT DISTINCT - + CAST( - 45 AS SIGNED ) AS col2, - 6 + - CASE - COUNT( * ) WHEN 75 THEN - 42 * + CAST( NULL AS SIGNED ) + - AVG ( + + 26 ) / 46 WHEN + 3 THEN NULL WHEN - 90 + - 91 THEN NULL END * - 29
----
45
NULL

skipif mysql # not compatible
query II rowsort label-1369
SELECT DISTINCT - + CAST ( - 45 AS INTEGER ) AS col2, - 6 + - CASE - COUNT ( * ) WHEN 75 THEN - 42 * + CAST ( NULL AS INTEGER ) + - AVG ( + + 26 ) / 46 WHEN + 3 THEN NULL WHEN - 90 + - 91 THEN NULL END * - 29
----
45
NULL

query I rowsort
SELECT 92 * - 82
----
-7544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT + CASE - 62 WHEN - 54 * + - 94 THEN NULL WHEN 40 THEN 50 ELSE - - 91 / - - 21 END * + + CAST( NULL AS SIGNED ) + + MAX( + - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT + CASE - 62 WHEN - 54 * + - 94 THEN NULL WHEN 40 THEN 50 ELSE - - 91 / - - 21 END * + + CAST ( NULL AS INTEGER ) + + MAX ( + - 33 )
----
NULL

query I rowsort
SELECT + 92 - - + 86 AS col0
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT 41 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-1373
SELECT 41 / - - 96
----
0

query I rowsort
SELECT ALL - 4 + 55
----
51

query I rowsort
SELECT 18 * 82
----
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL + 44 + + + COUNT( * ) * 43 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + 44 + + + COUNT ( * ) * 43 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT - + MIN( - + 90 ) AS col1, - 52 AS col1
----
90
-52

skipif mysql # not compatible
query II rowsort label-1377
SELECT - + MIN ( - + 90 ) AS col1, - 52 AS col1
----
90
-52

query I rowsort
SELECT ALL 30 + + 80 - - + 13
----
123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT COUNT( * ) * COALESCE ( + 18, - 64 * + 16 + 30, + + 42 )
----
18

skipif mysql # not compatible
query I rowsort label-1380
SELECT COUNT ( * ) * COALESCE ( + 18, - 64 * + 16 + 30, + + 42 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1381
SELECT - 8 AS col2, CAST( NULL AS SIGNED ) * + - NULLIF ( 72, - - 44 ) + 27
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-1381
SELECT - 8 AS col2, CAST ( NULL AS INTEGER ) * + - NULLIF ( 72, - - 44 ) + 27
----
-8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT 37 - - - COUNT( * ) * + MAX( - 84 )
----
121

skipif mysql # not compatible
query I rowsort label-1382
SELECT 37 - - - COUNT ( * ) * + MAX ( - 84 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT COALESCE ( 92, 68 ) + - 32 + - 53 * - 53 + + COUNT( * )
----
2870

skipif mysql # not compatible
query I rowsort label-1383
SELECT COALESCE ( 92, 68 ) + - 32 + - 53 * - 53 + + COUNT ( * )
----
2870

query I rowsort
SELECT ALL 64 * 41
----
2624

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT DISTINCT ( 78 ) DIV + ( NULLIF ( + 52, 94 * - - 87 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT ( 78 ) / + ( NULLIF ( + 52, 94 * - - 87 ) ) AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL + 81 - - 21 - - 68 - 51 * + 50 + - COUNT( * ) * + 17
----
-2397

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + 81 - - 21 - - 68 - 51 * + 50 + - COUNT ( * ) * + 17
----
-2397

query II rowsort
SELECT ALL 28 * - NULLIF ( 56, - + 48 * - 8 ) * + 67, - 64 AS col2
----
-105056
-64

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT 81 - + + COUNT ( * ) / 37
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT 97 * - COALESCE ( 36, - COUNT( * ) + - ( - 25 ), + - 92 + - 61 + 46 )
----
-3492

skipif mysql # not compatible
query I rowsort label-1390
SELECT 97 * - COALESCE ( 36, - COUNT ( * ) + - ( - 25 ), + - 92 + - 61 + 46 )
----
-3492

query I rowsort
SELECT 5 * + 97 + 81 * + + 74 AS col0
----
6479

query II rowsort
SELECT ALL - 94, 35 col2
----
-94
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT 63 * - COUNT( * ) * + 78 * 61 * 92 * 18 AS col2
----
-496392624

skipif mysql # not compatible
query I rowsort label-1393
SELECT 63 * - COUNT ( * ) * + 78 * 61 * 92 * 18 AS col2
----
-496392624

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1395
SELECT ALL + 8 + + 20 + + 35 DIV - - ( + - MAX( 53 ) ) + + 13
----
41

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + 8 + + 20 + + 35 / - - ( + - MAX ( 53 ) ) + + 13
----
41

query I rowsort
SELECT 94 + - - 93
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + + COALESCE ( - COUNT( * ), + COUNT( * ) * + 89 + 88 * 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1397
SELECT + + COALESCE ( - COUNT ( * ), + COUNT ( * ) * + 89 + 88 * 22 ) AS col0
----
-1

query I rowsort
SELECT 84 - + 32 col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1399
SELECT - - 6 * + COALESCE ( - + 78, COUNT( DISTINCT + 76 ), + - ( + + 96 ) DIV - 76 ) + + 23 + 51 AS col2
----
-394

skipif mysql # not compatible
query I rowsort label-1399
SELECT - - 6 * + COALESCE ( - + 78, COUNT ( DISTINCT + 76 ), + - ( + + 96 ) / - 76 ) + + 23 + 51 AS col2
----
-394

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT ALL + - MIN( - 12 ) + 15 - + - 84 * + 36, + 48 AS col0
----
3051
48

skipif mysql # not compatible
query II rowsort label-1400
SELECT ALL + - MIN ( - 12 ) + 15 - + - 84 * + 36, + 48 AS col0
----
3051
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT COUNT( * ) + COUNT( * ) + - 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1401
SELECT COUNT ( * ) + COUNT ( * ) + - 9 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT ALL - ( - ( - + CASE + 64 WHEN 30 + + 86 + + 54 THEN - MIN( ALL + 44 ) ELSE NULL END ) ) + + CAST( + COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL - ( - ( - + CASE + 64 WHEN 30 + + 86 + + 54 THEN - MIN ( ALL + 44 ) ELSE NULL END ) ) + + CAST ( + COUNT ( * ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + CASE + COALESCE ( + 50, + 31 ) WHEN - 14 + + 32 THEN ( - + 97 ) END + + 54 col1
----
NULL

query I rowsort
SELECT + 39 + + 78
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1405
SELECT ALL COALESCE ( - + 37, + COUNT( * ) ), - 7 AS col2
----
-37
-7

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL COALESCE ( - + 37, + COUNT ( * ) ), - 7 AS col2
----
-37
-7

query I rowsort
SELECT 47 + - 79 AS col2
----
-32

query II rowsort
SELECT 25 AS col2, 65 AS col1
----
25
65

query I rowsort
SELECT ( 15 ) + 88 + - ( + 29 ) AS col1
----
74

query I rowsort
SELECT 63 * - 73
----
-4599

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

skipif mysql # not compatible
query I rowsort label-1410
SELECT 37 * - - CAST ( + ( - 12 ) AS INTEGER ) col1
----
-444

query I rowsort
SELECT ALL 88 * 63 AS col1
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT - 8, + COALESCE ( 98, + SUM( - 94 ), + - 93 ) col2
----
-8
98

skipif mysql # not compatible
query II rowsort label-1412
SELECT - 8, + COALESCE ( 98, + SUM ( - 94 ), + - 93 ) col2
----
-8
98

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

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

query II rowsort
SELECT 41 AS col2, 43 AS col2
----
41
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + ( - 3 ) + - - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-1415
SELECT + ( - 3 ) + - - COUNT ( * ) col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT + ( - CAST( NULLIF ( CASE + 42 WHEN + - COUNT( ALL + 58 ) - - 47 - MAX( + 56 ) THEN NULL WHEN - + 63 THEN - 92 WHEN + 44 THEN - 19 END, + + 96 + 15 + + + 94 * 19 * - 0 * + 69 * - - 28 * - 50 ) AS SIGNED ) ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT + ( - CAST ( NULLIF ( CASE + 42 WHEN + - COUNT ( ALL + 58 ) - - 47 - MAX ( + 56 ) THEN NULL WHEN - + 63 THEN - 92 WHEN + 44 THEN - 19 END, + + 96 + 15 + + + 94 * 19 * - 0 * + 69 * - - 28 * - 50 ) AS INTEGER ) ) * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL SUM( - 87 ) * - + 95 * + 45 * 28 + - 3 * - COUNT( * ) + - 59 + - + 29 * ( - COUNT( * ) ) * COALESCE ( + + 86, 54 - + 55 * 2 ) * + 96 col0
----
10653268

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL SUM ( - 87 ) * - + 95 * + 45 * 28 + - 3 * - COUNT ( * ) + - 59 + - + 29 * ( - COUNT ( * ) ) * COALESCE ( + + 86, 54 - + 55 * 2 ) * + 96 col0
----
10653268

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + MIN( DISTINCT + - 10 ) * + 79 + 32 * + 60 * + 76 AS col2
----
145130

skipif mysql # not compatible
query I rowsort label-1418
SELECT + MIN ( DISTINCT + - 10 ) * + 79 + 32 * + 60 * + 76 AS col2
----
145130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + + NULLIF ( 48, - - COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + + NULLIF ( 48, - - COUNT ( * ) ) AS col2
----
48

query II rowsort
SELECT 76 col1, + 94
----
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL - COUNT( * ) * - - 2 - + 38 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - COUNT ( * ) * - - 2 - + 38 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT - - 59 * + + 3 AS col1, - COUNT( * ) AS col2
----
177
-1

skipif mysql # not compatible
query II rowsort label-1423
SELECT - - 59 * + + 3 AS col1, - COUNT ( * ) AS col2
----
177
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT + 55 * + + COUNT( * ) + - - CAST( + ( + 26 ) AS SIGNED ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 55 * + + COUNT ( * ) + - - CAST ( + ( + 26 ) AS INTEGER ) AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1425
SELECT ALL + + CAST( - 95 AS SIGNED ) * + 21 * + 73 * + - 3 * + 46 + + 4 AS col2, 22 * 74 * + COUNT( * ) * + 81 AS col0
----
20097634
131868

skipif mysql # not compatible
query II rowsort label-1425
SELECT ALL + + CAST ( - 95 AS INTEGER ) * + 21 * + 73 * + - 3 * + 46 + + 4 AS col2, 22 * 74 * + COUNT ( * ) * + 81 AS col0
----
20097634
131868

onlyif mysql # aggregate syntax: 
query II rowsort label-1426
SELECT + 14 AS col2, + 19 * + COUNT( DISTINCT 67 ) * + - 92 AS col2
----
14
-1748

skipif mysql # not compatible
query II rowsort label-1426
SELECT + 14 AS col2, + 19 * + COUNT ( DISTINCT 67 ) * + - 92 AS col2
----
14
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT MIN( - - 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1427
SELECT MIN ( - - 27 ) AS col0
----
27

query I rowsort
SELECT + 78 * + 40 AS col2
----
3120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT + 66 * 18 + + COUNT( * )
----
1189

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + 66 * 18 + + COUNT ( * )
----
1189

query II rowsort
SELECT 68 AS col0, - CASE + ( + 91 ) WHEN - - 83 THEN - 6 WHEN + 42 THEN NULL END
----
68
NULL

query I rowsort
SELECT 44 * 19 * + 66 - + + 28 AS col0
----
55148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1433
SELECT - COUNT( - 32 ) DIV + - 54 * - 68 + - - 38 + - + COUNT( * ) + 56 * 25 DIV 62 + + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1433
SELECT - COUNT ( - 32 ) / + - 54 * - 68 + - - 38 + - + COUNT ( * ) + 56 * 25 / 62 + + + COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT - CAST( + - 52 AS SIGNED ) * + + 38
----
1976

skipif mysql # not compatible
query I rowsort label-1434
SELECT - CAST ( + - 52 AS INTEGER ) * + + 38
----
1976

query I rowsort
SELECT DISTINCT - 26 * 75 * - 27
----
52650

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1437
SELECT - 47 DIV MIN( DISTINCT + 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 47 / MIN ( DISTINCT + 28 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1438
SELECT ALL - 91 DIV - 71 AS col1, 61
----
1
61

skipif mysql # not compatible
query II rowsort label-1438
SELECT ALL - 91 / - 71 AS col1, 61
----
1
61

query I rowsort
SELECT - 93 + + 36 * - 81 AS col2
----
-3009

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT - 11 DIV + 85 col0
----
0

skipif mysql # not compatible
query I rowsort label-1440
SELECT - 11 / + 85 col0
----
0

query I rowsort
SELECT + 17 * - 85 * - - 55 * - 45
----
3576375

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT ALL ( + 36 ), COUNT( * ) * + - 65 AS col2
----
36
-65

skipif mysql # not compatible
query II rowsort label-1443
SELECT ALL ( + 36 ), COUNT ( * ) * + - 65 AS col2
----
36
-65

query I rowsort
SELECT DISTINCT - 64 * - 41 AS col0
----
2624

query I rowsort
SELECT + 52 * - 57
----
-2964

query I rowsort
SELECT - 63 + + + NULLIF ( 89, + 22 )
----
26

query I rowsort
SELECT ALL 75 * - 90 * + + ( - 34 )
----
229500

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT - 81 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT - 81 / + 95 AS col0
----
0

query I rowsort
SELECT DISTINCT - 73 + - + 67 - + ( - 56 ) * 77
----
4172

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL ( MIN( ALL - 37 ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL ( MIN ( ALL - 37 ) ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1451
SELECT DISTINCT ( + CASE - - 50 WHEN + 53 - COUNT( * ) THEN NULL WHEN + 57 / COUNT( * ) * + NULLIF ( + CAST( - + 16 AS DECIMAL ), + 77 + 56 * + 12 / + 81 ) * + COUNT( 87 ) + 64 THEN - 40 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT ( + CASE - - 50 WHEN + 53 - COUNT ( * ) THEN NULL WHEN + 57 / COUNT ( * ) * + NULLIF ( + CAST ( - + 16 AS REAL ), + 77 + 56 * + 12 / + 81 ) * + COUNT ( 87 ) + 64 THEN - 40 END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 33 + 42 + + 58 + 41
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT ALL - 92 DIV 37 * + + COUNT( * ) + + + 67
----
65

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - 92 / 37 * + + COUNT ( * ) + + + 67
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT + - CASE 61 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + - 47 - 43 END * - 80
----
-7200

skipif mysql # not compatible
query I rowsort label-1454
SELECT + - CASE 61 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 47 - 43 END * - 80
----
-7200

query I rowsort
SELECT + 63 + - CASE + - 19 WHEN + 27 THEN NULL WHEN 97 THEN 75 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT + - COALESCE ( - 27, COUNT ( * ) * + 99 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL - 41 DIV - 59 + + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - 41 / - 59 + + 32 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ALL + 77 DIV + - 79 + + + 15 DIV NULLIF ( - 10, - COUNT( * ) + + 18 + + + 73 + - - 48 ) + 47 + - 70 - - + 66
----
42

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + 77 / + - 79 + + + 15 / NULLIF ( - 10, - COUNT ( * ) + + 18 + + + 73 + - - 48 ) + 47 + - 70 - - + 66
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT 64 * ( COALESCE ( + COUNT( * ), - - 55 * - ( 38 ) * - 5 ) ) col0
----
64

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT 64 * ( COALESCE ( + COUNT ( * ), - - 55 * - ( 38 ) * - 5 ) ) col0
----
64

query I rowsort
SELECT + 12 * + 83 * + 82 + - 54
----
81618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1461
SELECT + 52 + COUNT( * ) * CASE 88 WHEN - MIN( ALL 61 ) / 97 / + 56 - - + ( + 17 ) + + 8 / 94 THEN NULL WHEN - 68 THEN NULL ELSE + ( + - CAST( + AVG ( ALL 28 ) AS SIGNED ) ) * - - COALESCE ( - 46, + 29 ) END, 26 AS col2
----
1340
26

skipif mysql # not compatible
query II rowsort label-1461
SELECT + 52 + COUNT ( * ) * CASE 88 WHEN - MIN ( ALL 61 ) / 97 / + 56 - - + ( + 17 ) + + 8 / 94 THEN NULL WHEN - 68 THEN NULL ELSE + ( + - CAST ( + AVG ( ALL 28 ) AS INTEGER ) ) * - - COALESCE ( - 46, + 29 ) END, 26 AS col2
----
1340
26

query I rowsort
SELECT + - 85 + 84
----
-1

query I rowsort
SELECT + 79 * COALESCE ( 47, - + 16 ) AS col0
----
3713

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1465
SELECT DISTINCT 99 AS col0, + 89 DIV - + 83 AS col1
----
99
-1

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT 99 AS col0, + 89 / - + 83 AS col1
----
99
-1

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

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

query I rowsort
SELECT DISTINCT - 77 * + + ( + 35 )
----
-2695

query I rowsort
SELECT DISTINCT 47 * 57 AS col0
----
2679

query I rowsort
SELECT 91 + + 7
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-1470
SELECT ALL 46 + 16 + 98 DIV + 86, - 26 col2
----
63
-26

skipif mysql # not compatible
query II rowsort label-1470
SELECT ALL 46 + 16 + 98 / + 86, - 26 col2
----
63
-26

query I rowsort
SELECT DISTINCT - 78 + - 21
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL + 87 + + COUNT( * ) + + - 79 + 47 + - 84 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL + 87 + + COUNT ( * ) + + - 79 + 47 + - 84 AS col0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT DISTINCT - COALESCE ( + 50, - 67 ) DIV + - 42
----
1

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - COALESCE ( + 50, - 67 ) / + - 42
----
1

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT - 70 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL + 21 * - - ( + - COALESCE ( - - 34, 95 - 26 ) ) * + COUNT( * ) AS col0
----
-714

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + 21 * - - ( + - COALESCE ( - - 34, 95 - 26 ) ) * + COUNT ( * ) AS col0
----
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-1476
SELECT + - CASE 87 WHEN + + 75 THEN 95 WHEN + - ( + 52 ) THEN - COUNT( * ) * 64 - + 57 + 74 * - - COALESCE ( + NULLIF ( + 78, - COUNT( * ) * - 38 + 85 * ( 48 ) ), 72, 68 * - 28 ) END, SUM( ALL 38 ) * + 71 + 81 AS col0
----
NULL
2779

skipif mysql # not compatible
query II rowsort label-1476
SELECT + - CASE 87 WHEN + + 75 THEN 95 WHEN + - ( + 52 ) THEN - COUNT ( * ) * 64 - + 57 + 74 * - - COALESCE ( + NULLIF ( + 78, - COUNT ( * ) * - 38 + 85 * ( 48 ) ), 72, 68 * - 28 ) END, SUM ( ALL 38 ) * + 71 + 81 AS col0
----
NULL
2779

query I rowsort
SELECT ALL + 77 + - ( 75 )
----
2

query I rowsort
SELECT DISTINCT - + 50 * - 4 AS col1
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - 85 * - 6 - - CASE + 2 WHEN - 29 * + + 77 * AVG ( + 1 ) + + + COUNT( * ) - 34 * + - 99 THEN - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - 85 * - 6 - - CASE + 2 WHEN - 29 * + + 77 * AVG ( + 1 ) + + + COUNT ( * ) - 34 * + - 99 THEN - 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ( - + 35 ) + + NULLIF ( + COUNT( * ), - 57 * - + 95 / - + 5 )
----
-34

skipif mysql # not compatible
query I rowsort label-1480
SELECT ( - + 35 ) + + NULLIF ( + COUNT ( * ), - 57 * - + 95 / - + 5 )
----
-34

query I rowsort
SELECT 25 * 41 + - 14 * - 55 AS col2
----
1795

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1483
SELECT + - MIN( ALL - 93 ) * + NULLIF ( + 89, + 94 ) * + + 64 + + COUNT( * ) + - CAST( 55 AS SIGNED ) + CASE - CASE + 81 WHEN + + ( - - CASE - 60 WHEN - 55 THEN 44 + - CASE + COUNT( * ) WHEN 67 THEN - 89 * 46 + + 51 * 57 WHEN + 84 THEN NULL WHEN + 39 * 25 + CAST( NULL AS SIGNED ) * 68 THEN NULL END WHEN + 38 * + CASE - 76 WHEN CAST( NULL AS DECIMAL ) * COUNT( * ) - - 22 * 80 THEN NULL ELSE + 75 + + 84 END THEN NULL END ) + 1 THEN 96 ELSE - 89 END WHEN COUNT( * ) * - 22 THEN + 90 + + CASE 57 WHEN - 55 / + MAX( ALL 38 ) THEN COUNT( * ) * - 77 WHEN ( COUNT( * ) ) THEN NULL END / 14 END + - CAST( NULL AS SIGNED ) * + ( 26 ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT + - MIN ( ALL - 93 ) * + NULLIF ( + 89, + 94 ) * + + 64 + + COUNT ( * ) + - CAST ( 55 AS INTEGER ) + CASE - CASE + 81 WHEN + + ( - - CASE - 60 WHEN - 55 THEN 44 + - CASE + COUNT ( * ) WHEN 67 THEN - 89 * 46 + + 51 * 57 WHEN + 84 THEN NULL WHEN + 39 * 25 + CAST ( NULL AS INTEGER ) * 68 THEN NULL END WHEN + 38 * + CASE - 76 WHEN CAST ( NULL AS REAL ) * COUNT ( * ) - - 22 * 80 THEN NULL ELSE + 75 + + 84 END THEN NULL END ) + 1 THEN 96 ELSE - 89 END WHEN COUNT ( * ) * - 22 THEN + 90 + + CASE 57 WHEN - 55 / + MAX ( ALL 38 ) THEN COUNT ( * ) * - 77 WHEN ( COUNT ( * ) ) THEN NULL END / 14 END + - CAST ( NULL AS INTEGER ) * + ( 26 ) * - 26
----
NULL

query I rowsort
SELECT ALL 65 * - - 26
----
1690

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT - ( - 16 ) DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT - ( - 16 ) / 61 AS col1
----
0

query I rowsort
SELECT ALL 12 * - 68 AS col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL 29 * + COUNT( * ) / - CASE - + 51 WHEN - + COUNT( * ) * + 0 * + + CASE - 84 WHEN 60 * - + COUNT( * ) THEN 37 + + 51 WHEN 98 THEN NULL WHEN 89 THEN 58 ELSE NULL END THEN + 18 - - + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL 29 * + COUNT ( * ) / - CASE - + 51 WHEN - + COUNT ( * ) * + 0 * + + CASE - 84 WHEN 60 * - + COUNT ( * ) THEN 37 + + 51 WHEN 98 THEN NULL WHEN 89 THEN 58 ELSE NULL END THEN + 18 - - + 16 END
----
NULL

query I rowsort
SELECT ALL 6 * 14 AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT + 96 * - 43 - 80 DIV COUNT( * ) AS col2
----
-4208

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 96 * - 43 - 80 / COUNT ( * ) AS col2
----
-4208

query I rowsort
SELECT 1 * - + 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT 63 + + COUNT( * ) + 15 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT 63 + + COUNT ( * ) + 15 AS col0
----
79

query I rowsort
SELECT ALL 22 + + - 76 AS col2
----
-54

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

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

query I rowsort
SELECT DISTINCT 57 + - 4
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT 16 * + + NULLIF ( - + MAX( DISTINCT + 63 ), - 5 * 57 * + + CASE + 68 WHEN + 98 / + - 67 THEN - - CASE - 66 WHEN COUNT( * ) * + 97 + + 31 THEN 93 END END * - MAX( DISTINCT + 33 ) - - + COUNT( * ) + - + ( CAST( + + COUNT( - - 46 ) AS SIGNED ) ) + - 6 * - 16 ) * 35
----
-35280

skipif mysql # not compatible
query I rowsort label-1495
SELECT 16 * + + NULLIF ( - + MAX ( DISTINCT + 63 ), - 5 * 57 * + + CASE + 68 WHEN + 98 / + - 67 THEN - - CASE - 66 WHEN COUNT ( * ) * + 97 + + 31 THEN 93 END END * - MAX ( DISTINCT + 33 ) - - + COUNT ( * ) + - + ( CAST ( + + COUNT ( - - 46 ) AS INTEGER ) ) + - 6 * - 16 ) * 35
----
-35280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT - + CAST( + ( - + 52 ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-1496
SELECT - + CAST ( + ( - + 52 ) AS INTEGER )
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-1497
SELECT ( 88 ), 65 DIV + 16 col1
----
88
4

skipif mysql # not compatible
query II rowsort label-1497
SELECT ( 88 ), 65 / + 16 col1
----
88
4

query II rowsort
SELECT 76 + + + 26, 77 * + - 2 col0
----
102
-154

query II rowsort
SELECT DISTINCT - 48 * + 98 + 92 + - 87 AS col1, 27
----
-4699
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL COUNT( * ) - - - CASE ( 56 ) WHEN 31 THEN + COUNT( * ) / 48 - + + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL COUNT ( * ) - - - CASE ( 56 ) WHEN 31 THEN + COUNT ( * ) / 48 - + + 41 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT + MAX( DISTINCT 71 ) * - CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1502
SELECT ALL + - 52 DIV - + 97 AS col1, 0
----
0
0

skipif mysql # not compatible
query II rowsort label-1502
SELECT ALL + - 52 / - + 97 AS col1, 0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT 76 * 72 + + 83 * + COUNT( * ) - - 79
----
5634

skipif mysql # not compatible
query I rowsort label-1503
SELECT 76 * 72 + + 83 * + COUNT ( * ) - - 79
----
5634

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL + 4 DIV + 80 + 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + 4 / + 80 + 18 AS col2
----
18

query I rowsort
SELECT ALL - + 97 * - 17
----
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 83 * + 25 * + 66 + + MIN( ALL + 34 )
----
-136916

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 83 * + 25 * + 66 + + MIN ( ALL + 34 )
----
-136916

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1508
SELECT + 46 AS col1, + 68 DIV + 6 AS col1
----
46
11

skipif mysql # not compatible
query II rowsort label-1508
SELECT + 46 AS col1, + 68 / + 6 AS col1
----
46
11

query I rowsort
SELECT ALL - 95 * + + 91
----
-8645

query I rowsort
SELECT - 94 + + + 58 * - - 23
----
1240

onlyif mysql # aggregate syntax: 
query II rowsort label-1511
SELECT ALL + 20 AS col1, 35 + - - 7 / CASE COALESCE ( - SUM( ALL 85 ), + 27 + + - 49 + + - 67 ) WHEN + ( + 40 ) THEN + 58 ELSE NULL END
----
20
NULL

skipif mysql # not compatible
query II rowsort label-1511
SELECT ALL + 20 AS col1, 35 + - - 7 / CASE COALESCE ( - SUM ( ALL 85 ), + 27 + + - 49 + + - 67 ) WHEN + ( + 40 ) THEN + 58 ELSE NULL END
----
20
NULL

query I rowsort
SELECT DISTINCT + 77 + + - 32
----
45

query I rowsort
SELECT + 53 * - 93 AS col1
----
-4929

query I rowsort
SELECT ALL 58 + - 97 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT + 30 * COUNT( * ) / 87 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT + 30 * COUNT ( * ) / 87 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1516
SELECT + 70 - + - COALESCE ( 51, 65 * 69 * COUNT( * ) + - + 69 + - 90 ) - 67 + - - 98 * + + CASE 42 WHEN NULLIF ( CAST( NULL AS SIGNED ), - 28 ) / 35 THEN - 24 + 63 END * 81 + 58 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT + 70 - + - COALESCE ( 51, 65 * 69 * COUNT ( * ) + - + 69 + - 90 ) - 67 + - - 98 * + + CASE 42 WHEN NULLIF ( CAST ( NULL AS INTEGER ), - 28 ) / 35 THEN - 24 + 63 END * 81 + 58 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 52 + + 11 * + - 46
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL COUNT( * ) * 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL COUNT ( * ) * 41 AS col0
----
41

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

query I rowsort
SELECT ALL + 60 + 4
----
64

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT - CAST( - 99 AS SIGNED ) * - 6 AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-1523
SELECT - CAST ( - 99 AS INTEGER ) * - 6 AS col2
----
-594

query I rowsort
SELECT + 76 + - 9
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1525
SELECT ALL 77 AS col1, CAST( - 52 AS SIGNED )
----
77
-52

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL 77 AS col1, CAST ( - 52 AS INTEGER )
----
77
-52

query I rowsort
SELECT DISTINCT 90 * + - 76 AS col1
----
-6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT DISTINCT SUM( DISTINCT - - 66 ) DIV + + COUNT( - - 27 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT SUM ( DISTINCT - - 66 ) / + + COUNT ( - - 27 ) AS col1
----
66

query II rowsort
SELECT 40 AS col1, 47 AS col0
----
40
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + + CASE - 5 WHEN 16 * + COUNT( * ) THEN - 81 ELSE + 47 END * - + 74 + + + 31
----
-3447

skipif mysql # not compatible
query I rowsort label-1529
SELECT + + CASE - 5 WHEN 16 * + COUNT ( * ) THEN - 81 ELSE + 47 END * - + 74 + + + 31
----
-3447

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT + COALESCE ( - 49, COUNT( * ), 3 ) * + 65 AS col0
----
-3185

skipif mysql # not compatible
query I rowsort label-1530
SELECT + COALESCE ( - 49, COUNT ( * ), 3 ) * + 65 AS col0
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT - SUM( ALL - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1531
SELECT - SUM ( ALL - 37 ) AS col2
----
37

query I rowsort
SELECT - 1 * 30 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT + - MAX( - 97 ) + + 31 + - 4 + - COALESCE ( - - 87, 72 DIV - - CASE + + 83 WHEN + + ( - 90 ) THEN NULL WHEN - COALESCE ( - 25, 14, 54 ) DIV 61 * + 80 * - 60 + 14 + 74 + + 18 DIV 55 THEN NULL ELSE - 13 END + - 94 + 82 + 93, - 41 ) + - 12 * + 94 AS col2
----
-1091

skipif mysql # not compatible
query I rowsort label-1533
SELECT + - MAX ( - 97 ) + + 31 + - 4 + - COALESCE ( - - 87, 72 / - - CASE + + 83 WHEN + + ( - 90 ) THEN NULL WHEN - COALESCE ( - 25, 14, 54 ) / 61 * + 80 * - 60 + 14 + 74 + + 18 / 55 THEN NULL ELSE - 13 END + - 94 + 82 + 93, - 41 ) + - 12 * + 94 AS col2
----
-1091

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1534
SELECT DISTINCT COUNT( * ) * + 11 DIV + 60 + + 50 + 48
----
98

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT COUNT ( * ) * + 11 / + 60 + + 50 + 48
----
98

query I rowsort
SELECT - - NULLIF ( + - 48, 51 ) * 9 AS col0
----
-432

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT ALL - 41 DIV - NULLIF ( 53, - 24 DIV + 28 + + + 26 ) + + 10 + - - 16 - 23 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL - 41 / - NULLIF ( 53, - 24 / + 28 + + + 26 ) + + 10 + - - 16 - 23 AS col1
----
3

query I rowsort
SELECT - CASE 39 WHEN + 53 + 88 THEN 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - 90 + 12 + - - 60 * + 97 + + 6 + - COALESCE ( + - ( + 34 ), - ( + - MAX( ALL - 14 ) ) + - 48 ) + - NULLIF ( ( 58 ), + MAX( DISTINCT + + 94 ) ) AS col1
----
5724

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 90 + 12 + - - 60 * + 97 + + 6 + - COALESCE ( + - ( + 34 ), - ( + - MAX ( ALL - 14 ) ) + - 48 ) + - NULLIF ( ( 58 ), + MAX ( DISTINCT + + 94 ) ) AS col1
----
5724

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT - CAST( NULL AS SIGNED ) + - 97 * - + COUNT( * ) * + 45 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT - CAST ( NULL AS INTEGER ) + - 97 * - + COUNT ( * ) * + 45 * 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT 70 * - 97 + - + 26 * + 57 * + 73 + - - 12 DIV 83 AS col2
----
-114976

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT 70 * - 97 + - + 26 * + 57 * + 73 + - - 12 / 83 AS col2
----
-114976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1542
SELECT ALL CAST( NULL AS SIGNED ) * - 76 + - MIN( - 99 ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL CAST ( NULL AS INTEGER ) * - 76 + - MIN ( - 99 ) + 56
----
NULL

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

query II rowsort
SELECT - 64 * + + 23, + 58 + 54 - + ( - - 0 ) + - ( + 56 ) AS col0
----
-1472
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1545
SELECT 55 * + AVG ( DISTINCT - ( + 10 ) ) + + + CASE + - 4 WHEN 58 THEN + CAST( - 43 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT 55 * + AVG ( DISTINCT - ( + 10 ) ) + + + CASE + - 4 WHEN 58 THEN + CAST ( - 43 AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT - 46 DIV COUNT( * ) * + 13
----
-598

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - 46 / COUNT ( * ) * + 13
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL CASE - 36 WHEN + SUM( DISTINCT - 67 ) / + - COUNT( * ) + 6 * - - 26 THEN NULL WHEN + + 26 THEN MIN( DISTINCT + + COALESCE ( 82, 29 ) ) ELSE NULL END * - 68 + 81 + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL CASE - 36 WHEN + SUM ( DISTINCT - 67 ) / + - COUNT ( * ) + 6 * - - 26 THEN NULL WHEN + + 26 THEN MIN ( DISTINCT + + COALESCE ( 82, 29 ) ) ELSE NULL END * - 68 + 81 + 27 AS col0
----
NULL

query II rowsort
SELECT + 12 AS col2, ( - 26 ) + - - 41
----
12
15

query I rowsort
SELECT ALL 82 * - 6 + - 20 AS col1
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT ( + 0 ) * + 79 + + 69 + + 55 - + COUNT( * ) - - 72 * COUNT( * ) + ( - - 91 ) - SUM( ALL - 21 ) AS col2
----
307

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT ( + 0 ) * + 79 + + 69 + + 55 - + COUNT ( * ) - - 72 * COUNT ( * ) + ( - - 91 ) - SUM ( ALL - 21 ) AS col2
----
307

query I rowsort
SELECT COALESCE ( - NULLIF ( 31, - - 34 ), 56 )
----
-31

query I rowsort
SELECT ALL - 60 * + - 89 + - 31 col2
----
5309

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1555
SELECT + ( + + 31 ) * - + COUNT( * ) * + CASE + 64 WHEN - + 27 * + 17 THEN NULL ELSE + - 55 * + CAST( NULL AS SIGNED ) END - - - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT + ( + + 31 ) * - + COUNT ( * ) * + CASE + 64 WHEN - + 27 * + 17 THEN NULL ELSE + - 55 * + CAST ( NULL AS INTEGER ) END - - - 12 AS col1
----
NULL

query I rowsort
SELECT + 80 * + - 30 AS col0
----
-2400

onlyif mysql # aggregate syntax: 
query II rowsort label-1557
SELECT - 51 - - NULLIF ( 64, + + COUNT( DISTINCT + - 63 ) + 28 ), - 45 AS col1
----
13
-45

skipif mysql # not compatible
query II rowsort label-1557
SELECT - 51 - - NULLIF ( 64, + + COUNT ( DISTINCT + - 63 ) + 28 ), - 45 AS col1
----
13
-45

query II rowsort
SELECT ALL 37 AS col2, 91
----
37
91

query I rowsort
SELECT DISTINCT 62 * 70 + + 58 AS col2
----
4398

query I rowsort
SELECT DISTINCT + - 43 - + 47 + + + 92
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1561
SELECT ALL - CAST( NULL AS SIGNED ) * - 70 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - CAST ( NULL AS INTEGER ) * - 70 * - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 49 - + + 58 AS col0
----
-9

query I rowsort
SELECT - 89 * + + 31 AS col1
----
-2759

query I rowsort
SELECT - 93 + - 15
----
-108

query II rowsort
SELECT + 79 AS col0, + 4 * + + 4
----
79
16

query I rowsort
SELECT - 16 + ( + 19 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT + + NULLIF ( + + 82, + 1 - - + 19 ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT + + NULLIF ( + + 82, + 1 - - + 19 ) / 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT + - 68 + - + MAX( + - 75 )
----
7

skipif mysql # not compatible
query I rowsort label-1568
SELECT + - 68 + - + MAX ( + - 75 )
----
7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT + + 77 DIV + 40 col2
----
1

skipif mysql # not compatible
query I rowsort label-1570
SELECT + + 77 / + 40 col2
----
1

query I rowsort
SELECT - 79 + ( 39 ) AS col2
----
-40

query I rowsort
SELECT ALL - 5 + - - 85 AS col1
----
80

query II rowsort
SELECT 91 * + 94, 17 * - 22 AS col2
----
8554
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT COUNT( * ) * - - 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT COUNT ( * ) * - - 88 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1575
SELECT CAST( + 5 AS SIGNED ) * - + 75 AS col2
----
-375

skipif mysql # not compatible
query I rowsort label-1575
SELECT CAST ( + 5 AS INTEGER ) * - + 75 AS col2
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL 6 + NULLIF ( - + 16, - 70 * + 13 + ( - COUNT( * ) ) + + 35 + + - 24 * - + 61 )
----
-10

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL 6 + NULLIF ( - + 16, - 70 * + 13 + ( - COUNT ( * ) ) + + 35 + + - 24 * - + 61 )
----
-10

query I rowsort
SELECT ALL + 60 + - 28 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT 97 - ( + 36 ) + + - COUNT( * ) + + 63 DIV + 80 col1
----
60

skipif mysql # not compatible
query I rowsort label-1578
SELECT 97 - ( + 36 ) + + - COUNT ( * ) + + 63 / + 80 col1
----
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT ALL - SUM( 82 ) DIV - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - SUM ( 82 ) / - COUNT ( * ) AS col1
----
82

query I rowsort
SELECT 96 + + ( - + 74 ) * 90 AS col0
----
-6564

query I rowsort
SELECT 32 * - 14
----
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT ALL - 70 * - COUNT( * ) AS col2, 18 AS col2
----
70
18

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL - 70 * - COUNT ( * ) AS col2, 18 AS col2
----
70
18

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

skipif mysql # not compatible
query I rowsort label-1584
SELECT 22 / COUNT ( * ) AS col2
----
22

query I rowsort
SELECT ALL + 69 * - + ( 63 ) AS col1
----
-4347

query I rowsort
SELECT NULLIF ( + 42, ( + 24 ) ) AS col1
----
42

query I rowsort
SELECT 58 * + 99 + + 68 + + 98
----
5908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT CASE + 90 WHEN + COUNT( * ) THEN NULL WHEN + COUNT( * ) * COUNT( * ) + - + 89 - - 90 * + + 46 THEN - 54 * + 79 + 75 + + 2 + CAST( NULL AS SIGNED ) END * 26 + + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT CASE + 90 WHEN + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) + - + 89 - - 90 * + + 46 THEN - 54 * + 79 + 75 + + 2 + CAST ( NULL AS INTEGER ) END * 26 + + - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT + CAST( + 25 AS SIGNED ) + CAST( + + 56 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-1589
SELECT + CAST ( + 25 AS INTEGER ) + CAST ( + + 56 AS INTEGER )
----
81

query II rowsort
SELECT ALL - ( - 62 ) AS col1, 76 AS col0
----
62
76

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

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

query I rowsort
SELECT 61 * 66 + - + 75 AS col0
----
3951

query I rowsort
SELECT DISTINCT - 75 + - 41 + + 88
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT DISTINCT + CAST( - 9 AS SIGNED ) + - 33 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) + - 33 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL 80 + 53 * + SUM( - 33 ) AS col2
----
-1669

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 80 + 53 * + SUM ( - 33 ) AS col2
----
-1669

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1597
SELECT ALL - 26 DIV - + 75 AS col1, 57
----
0
57

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL - 26 / - + 75 AS col1, 57
----
0
57

query I rowsort
SELECT DISTINCT + 67 + + - 62 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT COALESCE ( - 15, - 57, + ( 17 ) + + 66 ) + + - COUNT( - + 65 ) + 39
----
23

skipif mysql # not compatible
query I rowsort label-1599
SELECT COALESCE ( - 15, - 57, + ( 17 ) + + 66 ) + + - COUNT ( - + 65 ) + 39
----
23

query I rowsort
SELECT DISTINCT + + 61 + - 11
----
50

query I rowsort
SELECT ALL + 1 + - CASE + + 65 WHEN 87 THEN ( 47 ) END - + 35
----
NULL

query II rowsort
SELECT 42 AS col1, - 3
----
42
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-1603
SELECT 77 AS col0, 34 - - 17 + - 86 - - 97 + - + 38 DIV 23 * 65 AS col0
----
77
-3

skipif mysql # not compatible
query II rowsort label-1603
SELECT 77 AS col0, 34 - - 17 + - 86 - - 97 + - + 38 / 23 * 65 AS col0
----
77
-3

query I rowsort
SELECT DISTINCT + 91 + - 88 + - 53
----
-50

query I rowsort
SELECT ALL - 28 + - 56 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - COALESCE ( + - 95, COUNT( * ) + - - 80 + + - 18 + + 6 * - 54 * + 43 * - 20 )
----
95

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - COALESCE ( + - 95, COUNT ( * ) + - - 80 + + - 18 + + 6 * - 54 * + 43 * - 20 )
----
95

query I rowsort
SELECT ALL 29 - 35
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL SUM( - 26 ) - - 77 * - COUNT( * ) * 73 * + 8 AS col0
----
-44994

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL SUM ( - 26 ) - - 77 * - COUNT ( * ) * 73 * + 8 AS col0
----
-44994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT NULLIF ( + 72, 48 / + AVG ( DISTINCT - - CAST( - - 2 AS SIGNED ) ) ) + + SUM( 78 ) * + COUNT( * ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-1609
SELECT NULLIF ( + 72, 48 / + AVG ( DISTINCT - - CAST ( - - 2 AS INTEGER ) ) ) + + SUM ( 78 ) * + COUNT ( * ) AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT 65 * - + COUNT( * ) + - 39
----
-104

skipif mysql # not compatible
query I rowsort label-1610
SELECT 65 * - + COUNT ( * ) + - 39
----
-104

query II rowsort
SELECT ALL - 52 AS col1, 73
----
-52
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1612
SELECT ALL - 55 AS col1, 36 * CAST( NULL AS SIGNED ) - - CASE - 6 WHEN - CAST( COUNT( * ) AS SIGNED ) THEN + 63 + + ( + 25 ) * + 6 * + - 50 * - 94 WHEN + 16 + + 18 - - 11 + + 81 THEN NULL WHEN - 55 THEN NULL ELSE NULL END + - 28 * 36
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-1612
SELECT ALL - 55 AS col1, 36 * CAST ( NULL AS INTEGER ) - - CASE - 6 WHEN - CAST ( COUNT ( * ) AS INTEGER ) THEN + 63 + + ( + 25 ) * + 6 * + - 50 * - 94 WHEN + 16 + + 18 - - 11 + + 81 THEN NULL WHEN - 55 THEN NULL ELSE NULL END + - 28 * 36
----
-55
NULL

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

skipif mysql # not compatible
query I rowsort label-1613
SELECT SUM ( DISTINCT - - 60 )
----
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 0 * - 81
----
0

query I rowsort
SELECT 35 * 60 AS col0
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL 46 * COUNT( * ) * NULLIF ( - SUM( DISTINCT - 33 ), - 1 ) * + - 83 AS col2
----
-125994

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL 46 * COUNT ( * ) * NULLIF ( - SUM ( DISTINCT - 33 ), - 1 ) * + - 83 AS col2
----
-125994

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

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

query I rowsort
SELECT 25 * 31 * + 95 AS col1
----
73625

query I rowsort
SELECT DISTINCT - CASE + 40 WHEN 48 THEN - - 19 - - + 85 END
----
NULL

query II rowsort
SELECT ALL - 70 AS col0, + 98
----
-70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ( - 33 ) * COUNT( * ) + COALESCE ( 3, - - ( + - 28 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1623
SELECT ( - 33 ) * COUNT ( * ) + COALESCE ( 3, - - ( + - 28 ) ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1624
SELECT + - 7 AS col0, CASE - + MAX( 85 ) WHEN + 83 THEN - 73 - + 99 WHEN + + 60 + 37 THEN + - 3 / - 13 ELSE NULL END / + + CAST( NULL AS DECIMAL ) AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-1624
SELECT + - 7 AS col0, CASE - + MAX ( 85 ) WHEN + 83 THEN - 73 - + 99 WHEN + + 60 + 37 THEN + - 3 / - 13 ELSE NULL END / + + CAST ( NULL AS REAL ) AS col1
----
-7
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1625
SELECT - 40 DIV - 25 + + + 94 AS col1, 50
----
95
50

skipif mysql # not compatible
query II rowsort label-1625
SELECT - 40 / - 25 + + + 94 AS col1, 50
----
95
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT - - MIN( - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1626
SELECT - - MIN ( - 94 ) AS col1
----
-94

query II rowsort
SELECT - - 97 AS col1, 37
----
97
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT + 58 DIV - 6 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1628
SELECT + 58 / - 6 AS col0
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT - 7 DIV 42 * - 87
----
0

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 7 / 42 * - 87
----
0

query I rowsort
SELECT DISTINCT + - NULLIF ( - - 83, 59 + 32 ) + 78 AS col0
----
-5

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

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

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

query I rowsort
SELECT ALL + + 34 * + + 1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1635
SELECT ALL - + 71 + MIN( - 92 ) * - COUNT( - CAST( 43 AS SIGNED ) ) DIV - COUNT( * )
----
-163

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - + 71 + MIN ( - 92 ) * - COUNT ( - CAST ( 43 AS INTEGER ) ) / - COUNT ( * )
----
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT - + MIN( - + 17 ) - + 5, - 47 AS col2
----
12
-47

skipif mysql # not compatible
query II rowsort label-1636
SELECT - + MIN ( - + 17 ) - + 5, - 47 AS col2
----
12
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT MAX( DISTINCT COALESCE ( + 52, + 42 ) )
----
52

skipif mysql # not compatible
query I rowsort label-1637
SELECT MAX ( DISTINCT COALESCE ( + 52, + 42 ) )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1638
SELECT - - 11 - - ( CAST( + COUNT( ALL 25 ) AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1638
SELECT - - 11 - - ( CAST ( + COUNT ( ALL 25 ) AS INTEGER ) ) AS col2
----
12

query I rowsort
SELECT ALL + + 59 + + 77 + + 35 * + 23
----
941

query I rowsort
SELECT - + ( - - NULLIF ( + - 35, - 94 + + + 71 ) ) AS col0
----
35

query II rowsort
SELECT + 82, - NULLIF ( 35, + 94 ) AS col1
----
82
-35

query I rowsort
SELECT - 14 + + - 77 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + + MIN( DISTINCT - - 80 ) + 45 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + + MIN ( DISTINCT - - 80 ) + 45 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT - NULLIF ( + COUNT( * ), + + COUNT( * ) ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) * + 26
----
NULL

query I rowsort
SELECT DISTINCT + 59 - + 81
----
-22

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

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

query II rowsort
SELECT - 6 + - 68, 15 - + 74 AS col1
----
-74
-59

query I rowsort
SELECT DISTINCT + 88 * - - 23
----
2024

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT - 34 DIV ( - 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 34 / ( - 25 ) AS col2
----
1

query II rowsort
SELECT + 40 * 93 AS col0, 90 + 64 AS col2
----
3720
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT - 38 DIV + 27 + - - 4
----
3

skipif mysql # not compatible
query I rowsort label-1651
SELECT - 38 / + 27 + - - 4
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL + 97 * - MAX( ALL + 83 )
----
-8051

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL + 97 * - MAX ( ALL + 83 )
----
-8051

query I rowsort
SELECT ALL - 43 * + ( - ( ( + 74 ) ) ) col2
----
3182

query I rowsort
SELECT ALL + ( + 46 ) AS col2
----
46

query I rowsort
SELECT + 80 * 74
----
5920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1656
SELECT COUNT( * ) * + 43 DIV + NULLIF ( - 98, + COUNT( ALL 42 ) ) * + 17 + + 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1656
SELECT COUNT ( * ) * + 43 / + NULLIF ( - 98, + COUNT ( ALL 42 ) ) * + 17 + + 29 AS col1
----
29

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

query I rowsort
SELECT + - 90 * 5 + + + 37 * + + 45 + 3 * + 48 + 55
----
1414

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL + - COUNT( * ) * - 36 * - 8 + + ( + 68 )
----
-220

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL + - COUNT ( * ) * - 36 * - 8 + + ( + 68 )
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT + + NULLIF ( 68, + 78 * + + MAX( + + 25 ) * + AVG ( ALL 30 ) * - + 63 * - 75 - 93 ) * - 76
----
-5168

skipif mysql # not compatible
query I rowsort label-1660
SELECT + + NULLIF ( 68, + 78 * + + MAX ( + + 25 ) * + AVG ( ALL 30 ) * - + 63 * - 75 - 93 ) * - 76
----
-5168

query I rowsort
SELECT + 68 + - ( 72 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT - 19 * + 2 DIV + + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - 19 * + 2 / + + 61 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1663
SELECT ALL 11 * - 37 * - 34 + 13 AS col1, + 32 DIV - + 24 + - 59 AS col2
----
13851
-60

skipif mysql # not compatible
query II rowsort label-1663
SELECT ALL 11 * - 37 * - 34 + 13 AS col1, + 32 / - + 24 + - 59 AS col2
----
13851
-60

query I rowsort
SELECT ALL - + 12 * + 54 + - + 23 AS col1
----
-671

query I rowsort
SELECT DISTINCT 56 * - - 69 AS col0
----
3864

query I rowsort
SELECT + 96 + - + 1
----
95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1668
SELECT DISTINCT + ( 65 ) * + - 52 DIV + ( + ( + COUNT( ALL - + 55 ) ) )
----
-3380

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + ( 65 ) * + - 52 / + ( + ( + COUNT ( ALL - + 55 ) ) )
----
-3380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1669
SELECT + - ( 23 ) * 28 + - + COUNT( * ) + + + ( + 65 ) + + 14 * + 56 * + 38 * - - 90 + 17 * - NULLIF ( + + 15, - 86 ) * + NULLIF ( - ( NULLIF ( + - 1, - ( + 46 ) ) ), - + MAX( 92 ) ) * - 4 * + CAST( - - 21 AS SIGNED ) AS col2
----
2702120

skipif mysql # not compatible
query I rowsort label-1669
SELECT + - ( 23 ) * 28 + - + COUNT ( * ) + + + ( + 65 ) + + 14 * + 56 * + 38 * - - 90 + 17 * - NULLIF ( + + 15, - 86 ) * + NULLIF ( - ( NULLIF ( + - 1, - ( + 46 ) ) ), - + MAX ( 92 ) ) * - 4 * + CAST ( - - 21 AS INTEGER ) AS col2
----
2702120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1670
SELECT COUNT( * ) * - 75 * 64 + + + 79 * 9 + + 46 + 14 + - COUNT( * ) * ( 54 ) * CAST( NULL AS SIGNED ) - - CASE + 80 WHEN + 40 THEN NULL ELSE + + AVG ( ALL 45 ) * + + 4 * + 55 END - - 8 col1, + COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1670
SELECT COUNT ( * ) * - 75 * 64 + + + 79 * 9 + + 46 + 14 + - COUNT ( * ) * ( 54 ) * CAST ( NULL AS INTEGER ) - - CASE + 80 WHEN + 40 THEN NULL ELSE + + AVG ( ALL 45 ) * + + 4 * + 55 END - - 8 col1, + COUNT ( * ) col1
----
NULL
1

query I rowsort
SELECT - 59 + + - 97
----
-156

query I rowsort
SELECT + 98 * - 77 AS col0
----
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT ALL + - 6 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + - 6 / + 49
----
0

query I rowsort
SELECT ALL 81 - + 46 AS col2
----
35

query I rowsort
SELECT ALL + ( 12 ) * 30 col2
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT - CAST( NULL AS SIGNED ) * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT - CAST ( NULL AS INTEGER ) * - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1677
SELECT ALL 24 * - COUNT( - 99 ) AS col0, COUNT( * ) AS col2
----
-24
1

skipif mysql # not compatible
query II rowsort label-1677
SELECT ALL 24 * - COUNT ( - 99 ) AS col0, COUNT ( * ) AS col2
----
-24
1

query I rowsort
SELECT - 94 * + 32
----
-3008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT - 88 + 29 + - - CASE + 21 WHEN - + COUNT( + - 6 ) THEN NULL WHEN + - 78 + - + CAST( NULL AS SIGNED ) - - 66 + + - 60 + - - ( - 17 ) * + 93 * - 17 THEN NULL ELSE + 80 * + + 48 END
----
3781

skipif mysql # not compatible
query I rowsort label-1679
SELECT - 88 + 29 + - - CASE + 21 WHEN - + COUNT ( + - 6 ) THEN NULL WHEN + - 78 + - + CAST ( NULL AS INTEGER ) - - 66 + + - 60 + - - ( - 17 ) * + 93 * - 17 THEN NULL ELSE + 80 * + + 48 END
----
3781

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT + CASE COUNT( * ) WHEN - 79 * + + SUM( DISTINCT - 73 ) THEN NULL WHEN ( 67 ) THEN + 1 + + - 53 + + - 77 END * + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT + CASE COUNT ( * ) WHEN - 79 * + + SUM ( DISTINCT - 73 ) THEN NULL WHEN ( 67 ) THEN + 1 + + - 53 + + - 77 END * + + 63
----
NULL

query I rowsort
SELECT - 64 * 14
----
-896

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1684
SELECT - 34 DIV + COUNT( ALL - 16 ) - - 27 + - 37 * - 52 + - 59 AS col1
----
1858

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 34 / + COUNT ( ALL - 16 ) - - 27 + - 37 * - 52 + - 59 AS col1
----
1858

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1685
SELECT - 28 * CAST( NULL AS DECIMAL ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT - 28 * CAST ( NULL AS REAL ) * - 76
----
NULL

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

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

query I rowsort
SELECT - 92 * 75
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT COUNT( * ) * - ( 15 ) + 95 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1688
SELECT COUNT ( * ) * - ( 15 ) + 95 AS col2
----
80

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + COUNT ( DISTINCT ( - + 52 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1690
SELECT + 42 * - + CAST( NULL AS SIGNED ) * 14 + + - 27 + + + 15 * - 23 * 75 * + - 63 * + ( - CAST( NULL AS SIGNED ) ) - - ( + - 59 ) + COALESCE ( + 99, AVG ( + - 88 ) ) - + 87 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 42 * - + CAST ( NULL AS INTEGER ) * 14 + + - 27 + + + 15 * - 23 * 75 * + - 63 * + ( - CAST ( NULL AS INTEGER ) ) - - ( + - 59 ) + COALESCE ( + 99, AVG ( + - 88 ) ) - + 87 * - 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT ALL + ( - + 16 ) DIV + 64 + + ( + 3 ) * 88 + + 0
----
264

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + ( - + 16 ) / + 64 + + ( + 3 ) * 88 + + 0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT 9 DIV 7 - - 4 + - - 5 DIV - 50 + - 38 * + 79
----
-2997

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT 9 / 7 - - 4 + - - 5 / - 50 + - 38 * + 79
----
-2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT DISTINCT - - COUNT( * ) * - - 49 * - + COALESCE ( COUNT( * ), + 5 DIV - + 37 * 46 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - - COUNT ( * ) * - - 49 * - + COALESCE ( COUNT ( * ), + 5 / - + 37 * 46 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + 99 + - COUNT( * ) * - COALESCE ( 46, + - 0 * + 42 + 19 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + 99 + - COUNT ( * ) * - COALESCE ( 46, + - 0 * + 42 + 19 ) AS col1
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT - 89 * + - 6 * - CASE - COUNT( + + 28 ) WHEN - 3 + + 31 / + CAST( NULL AS SIGNED ) * COUNT( * ) * - + 38 * - - 48 * + 16 * + 28 THEN - 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 89 * + - 6 * - CASE - COUNT ( + + 28 ) WHEN - 3 + + 31 / + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + 38 * - - 48 * + 16 * + 28 THEN - 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + 84 * - + MIN( ALL - 86 ) + - COUNT( * )
----
7223

skipif mysql # not compatible
query I rowsort label-1696
SELECT + 84 * - + MIN ( ALL - 86 ) + - COUNT ( * )
----
7223

onlyif mysql # aggregate syntax: 
query II rowsort label-1697
SELECT ALL - COUNT( * ) + - + 67 * - 90 col0, 59 + 45 AS col1
----
6029
104

skipif mysql # not compatible
query II rowsort label-1697
SELECT ALL - COUNT ( * ) + - + 67 * - 90 col0, 59 + 45 AS col1
----
6029
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT COUNT( * ) * + - 31 + - + 17 col1
----
-48

skipif mysql # not compatible
query I rowsort label-1699
SELECT COUNT ( * ) * + - 31 + - + 17 col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT + CASE 69 WHEN - CAST( - - COUNT( * ) AS SIGNED ) * - + COUNT( * ) THEN NULL WHEN - ( + 73 ) * + 7 + - 43 THEN - COUNT( * ) + + ( 25 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT + CASE 69 WHEN - CAST ( - - COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) THEN NULL WHEN - ( + 73 ) * + 7 + - 43 THEN - COUNT ( * ) + + ( 25 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1701
SELECT 85 - + 46 / - ( COUNT( ALL - 35 ) ) + + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT 85 - + 46 / - ( COUNT ( ALL - 35 ) ) + + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 97 * + 24 AS col0
----
-2328

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + ( + 42 ) * + MAX( DISTINCT - 33 ) AS col0
----
-1386

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + ( + 42 ) * + MAX ( DISTINCT - 33 ) AS col0
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT CASE + + MIN( ALL + + 58 ) WHEN - - AVG ( 82 ) / 98 + + - 84 * - 93 * + 25 * CAST( COUNT( * ) AS SIGNED ) THEN + COUNT( * ) / 28 + + ( + COUNT( * ) ) + + 27 + - - NULLIF ( + 62, 41 + + 28 ) ELSE NULL END * + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT CASE + + MIN ( ALL + + 58 ) WHEN - - AVG ( 82 ) / 98 + + - 84 * - 93 * + 25 * CAST ( COUNT ( * ) AS INTEGER ) THEN + COUNT ( * ) / 28 + + ( + COUNT ( * ) ) + + 27 + - - NULLIF ( + 62, 41 + + 28 ) ELSE NULL END * + + 18
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT COUNT( * ) - - 10 * + + 93
----
931

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( * ) - - 10 * + + 93
----
931

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT ALL 41, NULLIF ( - 57, + COUNT( * ) * - - 2 + 90 - + 44 * + 56 ) AS col1
----
41
-57

skipif mysql # not compatible
query II rowsort label-1710
SELECT ALL 41, NULLIF ( - 57, + COUNT ( * ) * - - 2 + 90 - + 44 * + 56 ) AS col1
----
41
-57

query I rowsort
SELECT 26 * - 92 * + 50 AS col2
----
-119600

query II rowsort
SELECT ALL 49 AS col1, 85 * - + 46 * - 90 * 45 AS col2
----
49
15835500

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT COUNT( * ) + + - 31 col0
----
-30

skipif mysql # not compatible
query I rowsort label-1713
SELECT COUNT ( * ) + + - 31 col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT 9 + - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1714
SELECT 9 + - COUNT ( * ) AS col2
----
8

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

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL 17 / + COUNT ( * ) AS col1
----
17

query I rowsort
SELECT ALL - 43 * + 92 col0
----
-3956

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT 16 DIV 63 * + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1717
SELECT 16 / 63 * + 40 AS col0
----
0

query I rowsort
SELECT ALL 34 + - 86
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ( 38 ) * 42 * - COUNT( * )
----
-1596

skipif mysql # not compatible
query I rowsort label-1719
SELECT ( 38 ) * 42 * - COUNT ( * )
----
-1596

onlyif mysql # aggregate syntax: 
query II rowsort label-1720
SELECT DISTINCT 69 + + SUM( + - 82 ) + 83 * + + NULLIF ( - - 87, 93 ) + - - COUNT( * ) * - 82, - 16 AS col1
----
7126
-16

skipif mysql # not compatible
query II rowsort label-1720
SELECT DISTINCT 69 + + SUM ( + - 82 ) + 83 * + + NULLIF ( - - 87, 93 ) + - - COUNT ( * ) * - 82, - 16 AS col1
----
7126
-16

query II rowsort
SELECT DISTINCT 66 AS col1, 48 col2
----
66
48

query I rowsort
SELECT 6 + - COALESCE ( - + 73, ( + - 14 ) ) + + + 5 AS col0
----
84

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

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT 4 + COUNT ( * ) AS col2
----
5

query I rowsort
SELECT ALL ( 23 ) * + ( + 41 )
----
943

query II rowsort
SELECT + 28, 23 AS col2
----
28
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT 71 * - + 98 + - - NULLIF ( - CAST( - 3 AS SIGNED ), 13 ) col0
----
-6955

skipif mysql # not compatible
query I rowsort label-1726
SELECT 71 * - + 98 + - - NULLIF ( - CAST ( - 3 AS INTEGER ), 13 ) col0
----
-6955

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1728
SELECT - 91 DIV - - NULLIF ( + 87, + - CAST( 48 AS SIGNED ) + - 64 + - NULLIF ( - 51, 55 * 57 + - 2 ) + - 73 * - 37 - 60 * + + 87 * + - 85 ) + + + 42 AS col2, - 9 * 48 + 1
----
41
-431

skipif mysql # not compatible
query II rowsort label-1728
SELECT - 91 / - - NULLIF ( + 87, + - CAST ( 48 AS INTEGER ) + - 64 + - NULLIF ( - 51, 55 * 57 + - 2 ) + - 73 * - 37 - 60 * + + 87 * + - 85 ) + + + 42 AS col2, - 9 * 48 + 1
----
41
-431

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT SUM( + ( 26 ) ) + 60 + + CASE 77 WHEN + 48 * - COUNT( * ) - 99 * + COUNT( * ) / + - 66 + + 93 - 69 + - 44 * SUM( ALL 35 ) * - - 37 * - CAST( NULL AS SIGNED ) + + - 20 / - + 48 * MIN( - + 92 ) * + 97 * - 61 - 8 * + - 4 * + 93 * + 6 THEN - SUM( ALL - + 93 ) * + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT SUM ( + ( 26 ) ) + 60 + + CASE 77 WHEN + 48 * - COUNT ( * ) - 99 * + COUNT ( * ) / + - 66 + + 93 - 69 + - 44 * SUM ( ALL 35 ) * - - 37 * - CAST ( NULL AS INTEGER ) + + - 20 / - + 48 * MIN ( - + 92 ) * + 97 * - 61 - 8 * + - 4 * + 93 * + 6 THEN - SUM ( ALL - + 93 ) * + 77 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL + + 57 * + CASE - 8 WHEN - CASE CAST( + 14 AS SIGNED ) WHEN + 57 THEN 9 ELSE - - NULLIF ( + - 5, - 9 ) END THEN 10 / + COUNT( * ) * 56 + 30 / + COALESCE ( + - 18, + + 92 * + 15 - + + 49 * + + 96 * - + 63 / + + 49, + COUNT( * ) ) + + MIN( + 48 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + + 57 * + CASE - 8 WHEN - CASE CAST ( + 14 AS INTEGER ) WHEN + 57 THEN 9 ELSE - - NULLIF ( + - 5, - 9 ) END THEN 10 / + COUNT ( * ) * 56 + 30 / + COALESCE ( + - 18, + + 92 * + 15 - + + 49 * + + 96 * - + 63 / + + 49, + COUNT ( * ) ) + + MIN ( + 48 ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + ( - - 40 ) AS col1
----
-40

query I rowsort
SELECT ALL + 53 + - 90 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT - 87 - - NULLIF ( - COALESCE ( + 54, - - 89 * - CAST( - COUNT( * ) AS SIGNED ) ), - 33 - - 35 - - CAST( - AVG ( 37 ) AS SIGNED ) + + ( - 65 ) )
----
-141

skipif mysql # not compatible
query I rowsort label-1735
SELECT - 87 - - NULLIF ( - COALESCE ( + 54, - - 89 * - CAST ( - COUNT ( * ) AS INTEGER ) ), - 33 - - 35 - - CAST ( - AVG ( 37 ) AS INTEGER ) + + ( - 65 ) )
----
-141

query II rowsort
SELECT DISTINCT - 72 AS col0, 12 AS col1
----
-72
12

query I rowsort
SELECT 31 + 19
----
50

query I rowsort
SELECT ALL - - 65 * + - 64 * + - 13 * + ( - - 71 ) col1
----
3839680

query I rowsort
SELECT 20 + + 38 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT + 53 + SUM( DISTINCT + + 49 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 53 + SUM ( DISTINCT + + 49 ) AS col1
----
102

query I rowsort
SELECT DISTINCT - + ( - - 66 ) * - 50 + 67 * + 90
----
9330

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL - COALESCE ( 66, + 53, - COALESCE ( - + 30, 28 - - COUNT( * ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - COALESCE ( 66, + 53, - COALESCE ( - + 30, 28 - - COUNT ( * ) ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT + + 30 * - ( + MIN( + 62 ) ) + - 34 + - + 56 + - NULLIF ( + + ( - CASE + 68 WHEN + - 48 THEN NULL ELSE + 23 END ), + 24 / - 3 + + + 84 / + 98 + 86 + 16 + - - 43 * 70 / 34 + + - 11 + + + CAST( - - 98 AS SIGNED ) ) + + 60 AS col2
----
-1867

skipif mysql # not compatible
query I rowsort label-1743
SELECT + + 30 * - ( + MIN ( + 62 ) ) + - 34 + - + 56 + - NULLIF ( + + ( - CASE + 68 WHEN + - 48 THEN NULL ELSE + 23 END ), + 24 / - 3 + + + 84 / + 98 + 86 + 16 + - - 43 * 70 / 34 + + - 11 + + + CAST ( - - 98 AS INTEGER ) ) + + 60 AS col2
----
-1867

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1744
SELECT 37 * - 86 * + ( + CAST( NULL AS SIGNED ) ) / - - 69 + + NULLIF ( CAST( + - 80 AS SIGNED ), - CAST( - - NULLIF ( + + 61, + 6 ) AS DECIMAL ) ) * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT 37 * - 86 * + ( + CAST ( NULL AS INTEGER ) ) / - - 69 + + NULLIF ( CAST ( + - 80 AS INTEGER ), - CAST ( - - NULLIF ( + + 61, + 6 ) AS REAL ) ) * - - 63
----
NULL

query I rowsort
SELECT ALL + ( - + 4 ) * 17 * + ( 52 )
----
-3536

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT 92 * - 19 - ( - COUNT( 82 ) ) / - CASE ( + + COUNT( * ) ) WHEN COUNT( 79 ) * + - COUNT( * ) THEN + COUNT( * ) * + 79 WHEN + NULLIF ( - 65, + 54 + COALESCE ( - 50, + 53 ) ) THEN + - 53 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT 92 * - 19 - ( - COUNT ( 82 ) ) / - CASE ( + + COUNT ( * ) ) WHEN COUNT ( 79 ) * + - COUNT ( * ) THEN + COUNT ( * ) * + 79 WHEN + NULLIF ( - 65, + 54 + COALESCE ( - 50, + 53 ) ) THEN + - 53 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT ALL COALESCE ( - SUM( DISTINCT - - 34 ), 10 * - COUNT( * ) + ( - 25 ), - 11 ) DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL COALESCE ( - SUM ( DISTINCT - - 34 ), 10 * - COUNT ( * ) + ( - 25 ), - 11 ) / + 67 AS col2
----
0

query I rowsort
SELECT ( - + 76 ) * + 89 * + 85
----
-574940

query II rowsort
SELECT ALL - 12 col2, 17 AS col1
----
-12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT MIN( ALL 97 )
----
97

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT MIN ( ALL 97 )
----
97

query I rowsort
SELECT ( + 23 ) + - + 32 * 39 - - 61
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT - SUM( - - 95 ) * + 56 * - - 31 AS col2
----
-164920

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - SUM ( - - 95 ) * + 56 * - - 31 AS col2
----
-164920

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT 82 + + - 71 * - COUNT( * ) col1
----
153

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT 82 + + - 71 * - COUNT ( * ) col1
----
153

query I rowsort
SELECT 19 * - - ( + + 39 ) AS col1
----
741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT ALL 17 + + COUNT( - 81 ) + - 87 DIV + MIN( - 49 )
----
19

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL 17 + + COUNT ( - 81 ) + - 87 / + MIN ( - 49 )
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1757
SELECT COALESCE ( + - COUNT( * ), + CAST( - 78 AS SIGNED ) DIV CAST( 45 AS SIGNED ), + 34 * 14 ) + - - ( - CAST( 42 AS SIGNED ) ) + - 29 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1757
SELECT COALESCE ( + - COUNT ( * ), + CAST ( - 78 AS INTEGER ) / CAST ( 45 AS INTEGER ), + 34 * 14 ) + - - ( - CAST ( 42 AS INTEGER ) ) + - 29 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT 44 * + - COUNT( * ) * 43
----
-1892

skipif mysql # not compatible
query I rowsort label-1758
SELECT 44 * + - COUNT ( * ) * 43
----
-1892

query I rowsort
SELECT 51 + + + 1 * - + 63
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL 81 + 83 - NULLIF ( - 13, + COALESCE ( - COUNT( * ), - 49 * + + COUNT( * ) ) * - 22 ) * - + MAX( 49 ) col0
----
-473

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL 81 + 83 - NULLIF ( - 13, + COALESCE ( - COUNT ( * ), - 49 * + + COUNT ( * ) ) * - 22 ) * - + MAX ( 49 ) col0
----
-473

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1761
SELECT ALL 16 + + + 93 + + 96 + - - 12 * + + AVG ( + - 93 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL 16 + + + 93 + + 96 + - - 12 * + + AVG ( + - 93 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT 41 DIV COUNT( DISTINCT - 43 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1762
SELECT 41 / COUNT ( DISTINCT - 43 ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1763
SELECT DISTINCT 62 DIV COUNT( * ) AS col0, 87 AS col0
----
62
87

skipif mysql # not compatible
query II rowsort label-1763
SELECT DISTINCT 62 / COUNT ( * ) AS col0, 87 AS col0
----
62
87

query II rowsort
SELECT DISTINCT 68 * + 35, + 59 + 37 AS col0
----
2380
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1765
SELECT + 62 * - - 10 - - ( CAST( + + ( 96 ) AS SIGNED ) ) + - 47 DIV + 76 AS col0, + NULLIF ( COUNT( * ), - + 38 * + - 19 ) DIV - CAST( + COUNT( * ) AS SIGNED ) + - COALESCE ( + 45, - - 76, 36 + - 66 )
----
716
-46

skipif mysql # not compatible
query II rowsort label-1765
SELECT + 62 * - - 10 - - ( CAST ( + + ( 96 ) AS INTEGER ) ) + - 47 / + 76 AS col0, + NULLIF ( COUNT ( * ), - + 38 * + - 19 ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( + 45, - - 76, 36 + - 66 )
----
716
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL + CASE + COUNT( * ) WHEN COUNT( * ) THEN 67 ELSE NULL END
----
67

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN 67 ELSE NULL END
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT - - COUNT( * ) + - - NULLIF ( - 73, - + 66 )
----
-72

skipif mysql # not compatible
query I rowsort label-1767
SELECT - - COUNT ( * ) + - - NULLIF ( - 73, - + 66 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + - ( - - COUNT( ALL - ( - + 17 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1768
SELECT + - ( - - COUNT ( ALL - ( - + 17 ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1769
SELECT + NULLIF ( 0, + 57 * 12 * - + 75 + + 45 + 81 ), - COUNT( * ) * - NULLIF ( - 97, + CAST( - ( + 38 ) AS DECIMAL ) - - 60 ) + - + 75 AS col1
----
0
-172

skipif mysql # not compatible
query II rowsort label-1769
SELECT + NULLIF ( 0, + 57 * 12 * - + 75 + + 45 + 81 ), - COUNT ( * ) * - NULLIF ( - 97, + CAST ( - ( + 38 ) AS REAL ) - - 60 ) + - + 75 AS col1
----
0
-172

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

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + COUNT ( * ) * - MAX ( - 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT - 64 * + NULLIF ( - - COUNT( * ), + - 67 + + 3 + + - 43 * 20 * 9 * - 78 ) - - 3
----
-61

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT - 64 * + NULLIF ( - - COUNT ( * ), + - 67 + + 3 + + - 43 * 20 * 9 * - 78 ) - - 3
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1772
SELECT ALL + - MAX( + 52 ), 0 * - 33 DIV + 43 AS col2
----
-52
0

skipif mysql # not compatible
query II rowsort label-1772
SELECT ALL + - MAX ( + 52 ), 0 * - 33 / + 43 AS col2
----
-52
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT + COUNT( * ) * 60 * - 93 + - + CAST( - 64 AS SIGNED )
----
-5516

skipif mysql # not compatible
query I rowsort label-1773
SELECT + COUNT ( * ) * 60 * - 93 + - + CAST ( - 64 AS INTEGER )
----
-5516

query I rowsort
SELECT - 24 * + + 67
----
-1608

query I rowsort
SELECT - 35 - 28
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT ALL COALESCE ( COUNT( * ), 56 + + 53 + + + 3 + + + COUNT( * ) ), - 5 AS col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-1776
SELECT ALL COALESCE ( COUNT ( * ), 56 + + 53 + + + 3 + + + COUNT ( * ) ), - 5 AS col1
----
1
-5

query I rowsort
SELECT DISTINCT - 70 + + - 71
----
-141

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

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

query II rowsort
SELECT 26 AS col1, + 64 * + 67 AS col2
----
26
4288

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT + 6 + - - 93 * + ( + 35 ) + - - MAX( - 53 ) * 87 * + - 36
----
169257

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT + 6 + - - 93 * + ( + 35 ) + - - MAX ( - 53 ) * 87 * + - 36
----
169257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1781
SELECT DISTINCT + SUM( - 29 ) + - - 14 + 8 DIV + + CAST( 94 AS SIGNED ) + - ( - 24 ) DIV - - 28
----
-15

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + SUM ( - 29 ) + - - 14 + 8 / + + CAST ( 94 AS INTEGER ) + - ( - 24 ) / - - 28
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT DISTINCT CASE + - 80 WHEN 35 THEN - + 38 WHEN 77 / - MIN( ALL 57 ) THEN 83 * - 94 + + - 2 * ( + AVG ( ALL + 6 ) ) + + 22 + + + CAST( NULL AS SIGNED ) ELSE + - CASE WHEN NOT ( NULL ) IS NULL THEN + - COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT CASE + - 80 WHEN 35 THEN - + 38 WHEN 77 / - MIN ( ALL 57 ) THEN 83 * - 94 + + - 2 * ( + AVG ( ALL + 6 ) ) + + 22 + + + CAST ( NULL AS INTEGER ) ELSE + - CASE WHEN NOT ( NULL ) IS NULL THEN + - COUNT ( * ) END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1783
SELECT ALL COALESCE ( - CAST( 92 AS SIGNED ), - - 30 DIV - COUNT( * ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL COALESCE ( - CAST ( 92 AS INTEGER ), - - 30 / - COUNT ( * ) ) AS col1
----
-92

query I rowsort
SELECT - 52 + + 61 * 48
----
2876

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT + ( + 14 ) + + + CASE - COALESCE ( - MIN( DISTINCT + 97 ), ( + COUNT( * ) ) + - + 47 ) WHEN + 9 * - 28 + + 93 + 62 * COUNT( * ) THEN + - 4 WHEN - CAST( NULL AS SIGNED ) + 70 * + SUM( + 42 ) THEN NULL ELSE + - 25 * + COUNT( * ) * + 16 + 15 * - 10 * 58 + COUNT( - 29 ) END + 51 / + 74 - - 45 + 62 - + CASE 14 WHEN 46 THEN ( + 87 ) + - 82 WHEN + 34 THEN NULL WHEN - 56 + + 2 THEN + 48 / - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + ( + 14 ) + + + CASE - COALESCE ( - MIN ( DISTINCT + 97 ), ( + COUNT ( * ) ) + - + 47 ) WHEN + 9 * - 28 + + 93 + 62 * COUNT ( * ) THEN + - 4 WHEN - CAST ( NULL AS INTEGER ) + 70 * + SUM ( + 42 ) THEN NULL ELSE + - 25 * + COUNT ( * ) * + 16 + 15 * - 10 * 58 + COUNT ( - 29 ) END + 51 / + 74 - - 45 + 62 - + CASE 14 WHEN 46 THEN ( + 87 ) + - 82 WHEN + 34 THEN NULL WHEN - 56 + + 2 THEN + 48 / - 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT ALL - COUNT( ALL 97 ) + + COUNT( * ) col2, + ( - 17 ) + + + 87
----
0
70

skipif mysql # not compatible
query II rowsort label-1787
SELECT ALL - COUNT ( ALL 97 ) + + COUNT ( * ) col2, + ( - 17 ) + + + 87
----
0
70

query I rowsort
SELECT - 63 * 13 AS col2
----
-819

query I rowsort
SELECT - 22 + - ( ( + 27 ) ) AS col2
----
-49

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

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL + COUNT ( * ) + + 4 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT ALL 10 * ( + - COUNT( * ) ), ( 12 ) AS col1
----
-10
12

skipif mysql # not compatible
query II rowsort label-1791
SELECT ALL 10 * ( + - COUNT ( * ) ), ( 12 ) AS col1
----
-10
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT - COUNT( * ) * 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - COUNT ( * ) * 50 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT + 0 - + + CASE 89 WHEN + 11 THEN - ( - - 26 ) ELSE + COUNT( * ) * - 27 + - - NULLIF ( - - 11, + CASE WHEN NOT 52 IS NOT NULL THEN + 98 * + 9 ELSE NULL END ) - + 91 END + - 88 * - 77 * + 96 AS col2
----
650603

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT + 0 - + + CASE 89 WHEN + 11 THEN - ( - - 26 ) ELSE + COUNT ( * ) * - 27 + - - NULLIF ( - - 11, + CASE WHEN NOT 52 IS NOT NULL THEN + 98 * + 9 ELSE NULL END ) - + 91 END + - 88 * - 77 * + 96 AS col2
----
650603

query I rowsort
SELECT ALL + 42 * + 82
----
3444

query I rowsort
SELECT - + ( - + 99 ) + + - 77 AS col2
----
22

query II rowsort
SELECT - - 11 AS col1, 38 + 46
----
11
84

query I rowsort
SELECT + + 73 + - 57 AS col1
----
16

query II rowsort
SELECT + 28 AS col2, 68 * - 22 AS col0
----
28
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + 52 * COUNT( * ) * 20 + + - 10 * - + COUNT( * ) col2
----
1050

skipif mysql # not compatible
query I rowsort label-1799
SELECT + 52 * COUNT ( * ) * 20 + + - 10 * - + COUNT ( * ) col2
----
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1800
SELECT + - COALESCE ( + 56, - 34, + CAST( NULL AS SIGNED ) ) * 70 * COUNT( ALL 71 ) + - + 63 + - 32 * - 15 * + 63, 6 AS col1
----
26257
6

skipif mysql # not compatible
query II rowsort label-1800
SELECT + - COALESCE ( + 56, - 34, + CAST ( NULL AS INTEGER ) ) * 70 * COUNT ( ALL 71 ) + - + 63 + - 32 * - 15 * + 63, 6 AS col1
----
26257
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT - ( COALESCE ( - + 90, - - 97 ) ) DIV + 38 DIV COALESCE ( COUNT( * ), 50, 29 + + NULLIF ( + COALESCE ( + + 34, 7 + + - 68 * + 99 ), + 97 * - - 46 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - ( COALESCE ( - + 90, - - 97 ) ) / + 38 / COALESCE ( COUNT ( * ), 50, 29 + + NULLIF ( + COALESCE ( + + 34, 7 + + - 68 * + 99 ), + 97 * - - 46 ) ) AS col1
----
2

query II rowsort
SELECT ALL + 93 AS col2, 39 AS col1
----
93
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT + - COALESCE ( + ( + + 13 ), + 71 * COALESCE ( 12, - + 56 + + 66 ) ) + + 38 + - - NULLIF ( 81, - 96 * - CAST( - 61 AS SIGNED ) + - 34 )
----
106

skipif mysql # not compatible
query I rowsort label-1803
SELECT + - COALESCE ( + ( + + 13 ), + 71 * COALESCE ( 12, - + 56 + + 66 ) ) + + 38 + - - NULLIF ( 81, - 96 * - CAST ( - 61 AS INTEGER ) + - 34 )
----
106

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1804
SELECT ALL - 15 DIV + CAST( - - 23 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - 15 / + CAST ( - - 23 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT DISTINCT 41 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT 41 / + 39
----
1

query I rowsort
SELECT + 76 * 88 + - 64 AS col2
----
6624

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

skipif mysql # not compatible
query I rowsort label-1807
SELECT + - ( - + 75 ) / - - 18 * - COUNT ( * ) + - 52
----
-56

query I rowsort
SELECT ALL - 66 * 49
----
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT - CASE + 13 WHEN + + COALESCE ( + 69, + + NULLIF ( - 84, 21 ) ) THEN 89 END * + 98 + - 13 + + + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 49 + - ( - + NULLIF ( + + COUNT( * ), + COUNT( + 15 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CASE + 13 WHEN + + COALESCE ( + 69, + + NULLIF ( - 84, 21 ) ) THEN 89 END * + 98 + - 13 + + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 49 + - ( - + NULLIF ( + + COUNT ( * ), + COUNT ( + 15 ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT ALL + + NULLIF ( + + 90, + 50 ) * - - 98 + 22 / + 29 * + ( - - CASE + - NULLIF ( 54, COUNT( * ) + 56 * + - 58 ) WHEN - + NULLIF ( + + 42, - CAST( + CAST( + 49 AS SIGNED ) AS SIGNED ) ) THEN - 21 ELSE NULL END ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + + NULLIF ( + + 90, + 50 ) * - - 98 + 22 / + 29 * + ( - - CASE + - NULLIF ( 54, COUNT ( * ) + 56 * + - 58 ) WHEN - + NULLIF ( + + 42, - CAST ( + CAST ( + 49 AS INTEGER ) AS INTEGER ) ) THEN - 21 ELSE NULL END ) * 23
----
NULL

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

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

query I rowsort
SELECT ALL - 97 * - ( 20 ) + + ( - 63 ) + 85 AS col0
----
1962

query I rowsort
SELECT 20 * 96 + - 67 + + 95 - + 44 * + 28 * 0 AS col1
----
1948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT ALL 56 * 33 + CAST( NULL AS SIGNED ) - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL 56 * 33 + CAST ( NULL AS INTEGER ) - - 13
----
NULL

query I rowsort
SELECT ALL - ( + + 99 ) * - 10 / + - CASE - 29 WHEN 13 THEN 47 + 25 + - 67 END + 19 + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1816
SELECT COALESCE ( - COUNT( * ), + 67 + + 48 DIV - + 99, - COUNT( * ), - CAST( NULL AS SIGNED ) + - ( COUNT( DISTINCT + - 12 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1816
SELECT COALESCE ( - COUNT ( * ), + 67 + + 48 / - + 99, - COUNT ( * ), - CAST ( NULL AS INTEGER ) + - ( COUNT ( DISTINCT + - 12 ) ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT - 82 + ( + 23 ) DIV + 27
----
-82

skipif mysql # not compatible
query I rowsort label-1817
SELECT - 82 + ( + 23 ) / + 27
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT ALL COALESCE ( - - 7, 81 + + + 76, + 0 * - 37 + + - 19 + + 51 DIV - - 12 DIV - 13 * - - COALESCE ( 51, 89, 30 * - + 59 + - - 69, 40 ) + - 3 + - 79 * + 51 * - + 80 )
----
7

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL COALESCE ( - - 7, 81 + + + 76, + 0 * - 37 + + - 19 + + 51 / - - 12 / - 13 * - - COALESCE ( 51, 89, 30 * - + 59 + - - 69, 40 ) + - 3 + - 79 * + 51 * - + 80 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1819
SELECT - CAST( - 1 AS SIGNED ) AS col2, 7 * - - 97
----
1
679

skipif mysql # not compatible
query II rowsort label-1819
SELECT - CAST ( - 1 AS INTEGER ) AS col2, 7 * - - 97
----
1
679

query I rowsort
SELECT 20 * + + 52 + + 76
----
1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1821
SELECT ALL - 54 * - + 28 + - + 16 + - + MAX( - - 87 ) + - - COUNT( * ) * - + COUNT( * ) * - + MIN( + 81 ) DIV 24
----
1412

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - 54 * - + 28 + - + 16 + - + MAX ( - - 87 ) + - - COUNT ( * ) * - + COUNT ( * ) * - + MIN ( + 81 ) / 24
----
1412

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT - SUM( ALL 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1822
SELECT - SUM ( ALL 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1823
SELECT DISTINCT + 3 + - COUNT( 91 ) + 90 AS col1, 51 * - CAST( NULL AS SIGNED ) AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1823
SELECT DISTINCT + 3 + - COUNT ( 91 ) + 90 AS col1, 51 * - CAST ( NULL AS INTEGER ) AS col1
----
92
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1824
SELECT 44 DIV + 70 AS col2, + 31
----
0
31

skipif mysql # not compatible
query II rowsort label-1824
SELECT 44 / + 70 AS col2, + 31
----
0
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT 50 * MIN( + - 43 ) * - COUNT( * ), - 96 * - + COUNT( * ) AS col2
----
2150
96

skipif mysql # not compatible
query II rowsort label-1825
SELECT 50 * MIN ( + - 43 ) * - COUNT ( * ), - 96 * - + COUNT ( * ) AS col2
----
2150
96

query I rowsort
SELECT ALL - 21 - + - ( - 8 )
----
-29

query I rowsort
SELECT 40 * - - 1 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - CASE - 66 WHEN + SUM( DISTINCT + - 90 ) * - + 19 * + 67 THEN + + 12 WHEN + + 4 THEN + COUNT( * ) + 62 + + CAST( + 96 AS SIGNED ) / + COALESCE ( 79, + + COUNT( * ), + - 84 * + CASE - 11 WHEN + MIN( + 39 ) THEN NULL WHEN 85 THEN - MIN( - - 26 ) WHEN - AVG ( DISTINCT ( + 33 ) ) * + + 30 * + - 42 / - COUNT( * ) + - + 50 + + 64 + + + MIN( - 16 ) THEN + 69 ELSE - 33 END / 76 + - COUNT( * ) * COUNT( * ), 51 * COALESCE ( + 82, 62 ) ) + 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - CASE - 66 WHEN + SUM ( DISTINCT + - 90 ) * - + 19 * + 67 THEN + + 12 WHEN + + 4 THEN + COUNT ( * ) + 62 + + CAST ( + 96 AS INTEGER ) / + COALESCE ( 79, + + COUNT ( * ), + - 84 * + CASE - 11 WHEN + MIN ( + 39 ) THEN NULL WHEN 85 THEN - MIN ( - - 26 ) WHEN - AVG ( DISTINCT ( + 33 ) ) * + + 30 * + - 42 / - COUNT ( * ) + - + 50 + + 64 + + + MIN ( - 16 ) THEN + 69 ELSE - 33 END / 76 + - COUNT ( * ) * COUNT ( * ), 51 * COALESCE ( + 82, 62 ) ) + 47 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1830
SELECT 29 DIV 1, 62 DIV CASE + COUNT( * ) WHEN - 43 DIV 75 DIV - AVG ( DISTINCT + + 53 ) + 95 THEN - 66 END DIV + + 44 AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1830
SELECT 29 / 1, 62 / CASE + COUNT ( * ) WHEN - 43 / 75 / - AVG ( DISTINCT + + 53 ) + 95 THEN - 66 END / + + 44 AS col0
----
29
NULL

query II rowsort
SELECT - NULLIF ( + 54, 10 ) - + + 81 AS col2, 78 col0
----
-135
78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1833
SELECT ALL - + CASE WHEN COUNT( * ) NOT BETWEEN + 64 AND + 93 THEN - 48 + - CASE - CAST( 29 AS SIGNED ) WHEN + NULLIF ( - 57, + 7 - - 65 ) * COUNT( * ) + - 6 * + + 92 - + + 51 / - AVG ( - ( + - 69 ) ) + + 42 + + 81 THEN NULL ELSE - 56 + + CAST( - COUNT( * ) AS SIGNED ) + NULLIF ( - + 21, - - 46 + - CASE - 2 WHEN - + 30 THEN + SUM( ALL 16 ) + + + 51 * 97 ELSE - 73 END * CAST( ( CASE + 3 WHEN AVG ( + 11 ) / ( 72 ) THEN NULL WHEN 68 THEN + SUM( DISTINCT 28 ) * CAST( NULL AS DECIMAL ) END ) * COUNT( * ) AS SIGNED ) ) END - + 50 ELSE + 33 * - 47 END col0
----
20

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - + CASE WHEN COUNT ( * ) NOT BETWEEN + 64 AND + 93 THEN - 48 + - CASE - CAST ( 29 AS INTEGER ) WHEN + NULLIF ( - 57, + 7 - - 65 ) * COUNT ( * ) + - 6 * + + 92 - + + 51 / - AVG ( - ( + - 69 ) ) + + 42 + + 81 THEN NULL ELSE - 56 + + CAST ( - COUNT ( * ) AS INTEGER ) + NULLIF ( - + 21, - - 46 + - CASE - 2 WHEN - + 30 THEN + SUM ( ALL 16 ) + + + 51 * 97 ELSE - 73 END * CAST ( ( CASE + 3 WHEN AVG ( + 11 ) / ( 72 ) THEN NULL WHEN 68 THEN + SUM ( DISTINCT 28 ) * CAST ( NULL AS REAL ) END ) * COUNT ( * ) AS INTEGER ) ) END - + 50 ELSE + 33 * - 47 END col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1834
SELECT ALL + 70 * + - COALESCE ( + COUNT( * ), 40, 54 ) - 58 DIV CASE - - 75 WHEN + ( + + 77 ) * + + 49 THEN - + 87 WHEN - ( - CAST( + 98 AS DECIMAL ) ) - + + COUNT( * ) THEN NULL ELSE + 57 * + COUNT( * ) + + - 47 END * 24 - + 3 AS col2
----
-193

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL + 70 * + - COALESCE ( + COUNT ( * ), 40, 54 ) - 58 / CASE - - 75 WHEN + ( + + 77 ) * + + 49 THEN - + 87 WHEN - ( - CAST ( + 98 AS REAL ) ) - + + COUNT ( * ) THEN NULL ELSE + 57 * + COUNT ( * ) + + - 47 END * 24 - + 3 AS col2
----
-193

query I rowsort
SELECT - 99 * - 73 * 20 AS col1
----
144540

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT MIN( + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1836
SELECT MIN ( + 1 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + - 3 + - + 38 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT - 96 * - 13 * + ( + 58 ) * + - NULLIF ( 59, - - 75 * - 14 ) + + + 45 + - - 0 * - 21 + - + 60 * - - ( CAST( - 77 AS SIGNED ) ) + + 84 AS col2
----
-4265907

skipif mysql # not compatible
query I rowsort label-1838
SELECT - 96 * - 13 * + ( + 58 ) * + - NULLIF ( 59, - - 75 * - 14 ) + + + 45 + - - 0 * - 21 + - + 60 * - - ( CAST ( - 77 AS INTEGER ) ) + + 84 AS col2
----
-4265907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT DISTINCT - - CASE + + CAST( - COUNT( * ) AS SIGNED ) WHEN 9 THEN - 11 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - - CASE + + CAST ( - COUNT ( * ) AS INTEGER ) WHEN 9 THEN - 11 END col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT + 76 + - 49 + + + MIN( ALL + + 90 ) + 27 + + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + 76 + - 49 + + + MIN ( ALL + + 90 ) + 27 + + COUNT ( * )
----
145

query I rowsort
SELECT + 62 * + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1843
SELECT DISTINCT CAST( NULL AS SIGNED ) + COALESCE ( + COUNT( * ), - 61 + + 93 ), 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1843
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COALESCE ( + COUNT ( * ), - 61 + + 93 ), 53 AS col1
----
NULL
53

query I rowsort
SELECT ALL ( + - 83 ) + + 73
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT SUM( ALL - 93 ) + + 77 * + 42 * + 6 + - 24
----
19287

skipif mysql # not compatible
query I rowsort label-1845
SELECT SUM ( ALL - 93 ) + + 77 * + 42 * + 6 + - 24
----
19287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1846
SELECT CAST( NULL AS SIGNED ) * NULLIF ( 10, - ( + ( CAST( + - 40 AS DECIMAL ) ) ) ) / - COUNT( * ) * + ( + 27 ) + - NULLIF ( COUNT( * ), - - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( 10, - ( + ( CAST ( + - 40 AS REAL ) ) ) ) / - COUNT ( * ) * + ( + 27 ) + - NULLIF ( COUNT ( * ), - - 95 )
----
NULL

query I rowsort
SELECT 25 * + 9 + + - 92 + 27 + + - 24 + + - 57 * + - 71 AS col2
----
4183

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT ALL MIN( - 46 ) + + + 42 * + - 53 * - ( 63 ) AS col2, - 66 * - - NULLIF ( + + 24, AVG ( - 29 ) / NULLIF ( - - ( 26 ), + - 27 ) * - 34 )
----
140192
-1584

skipif mysql # not compatible
query II rowsort label-1848
SELECT ALL MIN ( - 46 ) + + + 42 * + - 53 * - ( 63 ) AS col2, - 66 * - - NULLIF ( + + 24, AVG ( - 29 ) / NULLIF ( - - ( 26 ), + - 27 ) * - 34 )
----
140192
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ( + 30 ) + MAX( DISTINCT - 45 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1849
SELECT ( + 30 ) + MAX ( DISTINCT - 45 ) AS col2
----
-15

query I rowsort
SELECT 52 * - 85 - - 40
----
-4380

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

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

query I rowsort
SELECT DISTINCT 70 - + 11 AS col1
----
59

query II rowsort
SELECT 44 + - 62 - + + 97 AS col2, 3 * + - 17
----
-115
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL + 90 - COUNT( * ) + - 88 + - 70 + - - COALESCE ( - 41, 80, + - 59 + + CASE - - CAST( NULL AS SIGNED ) WHEN + + 24 THEN + - 23 END + - 49 ) - - - 40 * ( - 49 ) * - 57 * 91
----
-10166630

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 90 - COUNT ( * ) + - 88 + - 70 + - - COALESCE ( - 41, 80, + - 59 + + CASE - - CAST ( NULL AS INTEGER ) WHEN + + 24 THEN + - 23 END + - 49 ) - - - 40 * ( - 49 ) * - 57 * 91
----
-10166630

query I rowsort
SELECT ( - 20 ) * - + 50
----
1000

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT 34 + + 33 + + 97 DIV - 40 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1856
SELECT 34 + + 33 + + 97 / - 40 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 69 - - 94 * + COUNT( * ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-1857
SELECT 69 - - 94 * + COUNT ( * ) AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ( + COALESCE ( + ( - 17 ), - - 55 + 92 + + COUNT( * ) * 72, + - 60 + + NULLIF ( + 0, COALESCE ( - - CASE + AVG ( 94 ) WHEN 52 + 56 + 95 THEN + SUM( 1 ) END, - - 15 * + 28 ) * - 34 ) + + 58 * + ( + + 30 ) ) ) + 93 * - + SUM( - 14 ) * + + 23 * 27 * - 36 + - 59 + + 34 AS col0
----
-29107554

skipif mysql # not compatible
query I rowsort label-1858
SELECT ( + COALESCE ( + ( - 17 ), - - 55 + 92 + + COUNT ( * ) * 72, + - 60 + + NULLIF ( + 0, COALESCE ( - - CASE + AVG ( 94 ) WHEN 52 + 56 + 95 THEN + SUM ( 1 ) END, - - 15 * + 28 ) * - 34 ) + + 58 * + ( + + 30 ) ) ) + 93 * - + SUM ( - 14 ) * + + 23 * 27 * - 36 + - 59 + + 34 AS col0
----
-29107554

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

query I rowsort
SELECT ALL 51 * - 15
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ( + + ( - - COUNT( ALL - 80 ) ) ) * - - 98
----
98

skipif mysql # not compatible
query I rowsort label-1861
SELECT ( + + ( - - COUNT ( ALL - 80 ) ) ) * - - 98
----
98

query I rowsort
SELECT 88 + 51 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - MIN( ALL 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1863
SELECT - MIN ( ALL 56 ) AS col1
----
-56

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

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT 69 / - COUNT ( * ) + 31 AS col0
----
-38

query I rowsort
SELECT 43 + + 53 + + 44 + + - 20 * + 20 AS col0
----
-260

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

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

query I rowsort
SELECT ( 72 ) * 49 AS col0
----
3528

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

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

query I rowsort
SELECT DISTINCT 96 * 52 * NULLIF ( + ( + 99 ), 43 ) + - 99
----
494109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT CASE - - 97 WHEN - 59 THEN NULL ELSE - + 37 - + 0 + CAST( - COUNT( * ) AS SIGNED ) * + - 66 * - 24 END
----
-1621

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT CASE - - 97 WHEN - 59 THEN NULL ELSE - + 37 - + 0 + CAST ( - COUNT ( * ) AS INTEGER ) * + - 66 * - 24 END
----
-1621

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT COUNT( ALL + - 51 ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-1871
SELECT COUNT ( ALL + - 51 ) + + 76
----
77

query I rowsort
SELECT - 97 + + - 57
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL + + 1 + + SUM( - - COALESCE ( CAST( - 47 AS SIGNED ), + 68 ) ) * + - 18
----
847

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + + 1 + + SUM ( - - COALESCE ( CAST ( - 47 AS INTEGER ), + 68 ) ) * + - 18
----
847

onlyif mysql # DIV for integer division: 
query II rowsort label-1874
SELECT + 36 AS col1, - 60 DIV + 16
----
36
-3

skipif mysql # not compatible
query II rowsort label-1874
SELECT + 36 AS col1, - 60 / + 16
----
36
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1875
SELECT - 17 DIV + - 81 + 89 + + COUNT( * ) + 93 + + - 83 + 79 * - 31 + + 29
----
-2320

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 17 / + - 81 + 89 + + COUNT ( * ) + 93 + + - 83 + 79 * - 31 + + 29
----
-2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1876
SELECT + 47 + + + 44 + CAST( - CASE + 75 WHEN - - 4 THEN + MIN( - - 87 ) ELSE - 77 END AS SIGNED ) + + + ( 73 ) / MIN( - 78 ) * + CASE - - 91 WHEN - - COUNT( * ) THEN + ( - + 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 47 + + + 44 + CAST ( - CASE + 75 WHEN - - 4 THEN + MIN ( - - 87 ) ELSE - 77 END AS INTEGER ) + + + ( 73 ) / MIN ( - 78 ) * + CASE - - 91 WHEN - - COUNT ( * ) THEN + ( - + 30 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL - 55 * - 92 * - - ( 18 ) + MAX( 15 ) + - 37
----
91058

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - 55 * - 92 * - - ( 18 ) + MAX ( 15 ) + - 37
----
91058

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

skipif mysql # not compatible
query II rowsort label-1879
SELECT COUNT ( * ) AS col2, - 34
----
1
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL + 16 * + COUNT( * ) - - COUNT( * ) * - 64 * 44
----
-2800

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + 16 * + COUNT ( * ) - - COUNT ( * ) * - 64 * 44
----
-2800

query II rowsort
SELECT 15 * + 13, 0 * + 43 AS col2
----
195
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT MAX( DISTINCT - 79 ) + - 40 AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-1882
SELECT MAX ( DISTINCT - 79 ) + - 40 AS col1
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1883
SELECT DISTINCT - 96 AS col2, ( - 17 ) + 31 * + + COUNT( * ) - 67 + - COALESCE ( - 15, + SUM( DISTINCT - 48 ) ) DIV + 19 AS col1
----
-96
-53

skipif mysql # not compatible
query II rowsort label-1883
SELECT DISTINCT - 96 AS col2, ( - 17 ) + 31 * + + COUNT ( * ) - 67 + - COALESCE ( - 15, + SUM ( DISTINCT - 48 ) ) / + 19 AS col1
----
-96
-53

query II rowsort
SELECT ALL + 99, ( - ( 88 ) ) - + + 56 AS col0
----
99
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT - 23 DIV + 64 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT - 23 / + 64 * - 83
----
0

query I rowsort
SELECT ALL - 21 - - + 52 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT MIN( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-1887
SELECT MIN ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT ALL + 98 AS col2, 64 * SUM( + - 12 )
----
98
-768

skipif mysql # not compatible
query II rowsort label-1888
SELECT ALL + 98 AS col2, 64 * SUM ( + - 12 )
----
98
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT MIN( ALL 60 ) * + - 37 * 71 * + COUNT( * ) + - COUNT( ALL 55 )
----
-157621

skipif mysql # not compatible
query I rowsort label-1889
SELECT MIN ( ALL 60 ) * + - 37 * 71 * + COUNT ( * ) + - COUNT ( ALL 55 )
----
-157621

query I rowsort
SELECT ALL 51 * + + 93 * - 22
----
-104346

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1891
SELECT + 57 DIV 65 AS col1, + 78 - - SUM( + 68 )
----
0
146

skipif mysql # not compatible
query II rowsort label-1891
SELECT + 57 / 65 AS col1, + 78 - - SUM ( + 68 )
----
0
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT 61 AS col1, 38 + + COUNT( * )
----
61
39

skipif mysql # not compatible
query II rowsort label-1892
SELECT 61 AS col1, 38 + + COUNT ( * )
----
61
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT + CAST( NULL AS SIGNED ) * 90 * + - NULLIF ( - MIN( - - 67 ), + 65 ) * - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT + CAST ( NULL AS INTEGER ) * 90 * + - NULLIF ( - MIN ( - - 67 ), + 65 ) * - 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1894
SELECT ALL 79, COUNT( ALL + ( - 39 ) ) * + 53 AS col1
----
79
53

skipif mysql # not compatible
query II rowsort label-1894
SELECT ALL 79, COUNT ( ALL + ( - 39 ) ) * + 53 AS col1
----
79
53

query I rowsort
SELECT DISTINCT 56 * - 35 AS col1
----
-1960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1896
SELECT ALL 96 col2, NULLIF ( 39, + CAST( NULL AS SIGNED ) ) + + 4 AS col0
----
96
43

skipif mysql # not compatible
query II rowsort label-1896
SELECT ALL 96 col2, NULLIF ( 39, + CAST ( NULL AS INTEGER ) ) + + 4 AS col0
----
96
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1897
SELECT DISTINCT 41, CASE 79 WHEN COUNT( * ) THEN NULL WHEN - - 75 THEN - ( - COUNT( * ) ) * + + COUNT( ALL + - 6 ) + MIN( - - 43 ) - - CAST( NULL AS SIGNED ) + 37 * + 98 * 81 / - 78 * - 19 * - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) END * - + MAX( ALL 22 ) * - - 71 + + 50 AS col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-1897
SELECT DISTINCT 41, CASE 79 WHEN COUNT ( * ) THEN NULL WHEN - - 75 THEN - ( - COUNT ( * ) ) * + + COUNT ( ALL + - 6 ) + MIN ( - - 43 ) - - CAST ( NULL AS INTEGER ) + 37 * + 98 * 81 / - 78 * - 19 * - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) END * - + MAX ( ALL 22 ) * - - 71 + + 50 AS col2
----
41
NULL

query I rowsort
SELECT ALL 85 + - + 21 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + NULLIF ( - MIN( - - 92 ), + 47 * - 67 )
----
-92

skipif mysql # not compatible
query I rowsort label-1899
SELECT + NULLIF ( - MIN ( - - 92 ), + 47 * - 67 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1900
SELECT + + 17 + + COUNT( * ) * CAST( NULL AS SIGNED ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT + + 17 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 3
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1902
SELECT + + COALESCE ( + 0, + MAX( + 71 ) * - 86 + + COUNT( * ) * 14 - + 80 ) * + + CASE - AVG ( ALL CAST( NULL AS SIGNED ) ) WHEN 41 THEN NULL ELSE - 60 * - 61 * 87 * 89 DIV - + 55 END col0
----
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT + + COALESCE ( + 0, + MAX ( + 71 ) * - 86 + + COUNT ( * ) * 14 - + 80 ) * + + CASE - AVG ( ALL CAST ( NULL AS INTEGER ) ) WHEN 41 THEN NULL ELSE - 60 * - 61 * 87 * 89 / - + 55 END col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT - - 42 + - COUNT( * ) * + - 82 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1903
SELECT - - 42 + - COUNT ( * ) * + - 82 AS col0
----
124

query I rowsort
SELECT - NULLIF ( 98, - - NULLIF ( 60, + 50 ) * - - ( - 41 ) )
----
-98

query I rowsort
SELECT + 17 * + 79 AS col2
----
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL 87 + - - 9 * + COUNT( * ) * + 84 - + - 39 AS col0
----
882

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL 87 + - - 9 * + COUNT ( * ) * + 84 - + - 39 AS col0
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL + - ( + CASE - 42 WHEN COUNT( * ) * - 59 THEN - + NULLIF ( AVG ( ALL 63 ), + 27 ) + + 8 WHEN - 86 * + - MAX( 18 ) THEN + + ( 10 ) - + 96 / + - 74 ELSE CAST( NULL AS SIGNED ) END ) + - 12 - - - ( - 38 ) * + - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + - ( + CASE - 42 WHEN COUNT ( * ) * - 59 THEN - + NULLIF ( AVG ( ALL 63 ), + 27 ) + + 8 WHEN - 86 * + - MAX ( 18 ) THEN + + ( 10 ) - + 96 / + - 74 ELSE CAST ( NULL AS INTEGER ) END ) + - 12 - - - ( - 38 ) * + - 12 col2
----
NULL

query I rowsort
SELECT - + 15 * - + 66 AS col1
----
990

query II rowsort
SELECT 62 AS col1, + 47 AS col2
----
62
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1910
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 0 + - ( + + 37 )
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-1910
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 0 + - ( + + 37 )
----
NULL
-37

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1913
SELECT ALL + CAST( 16 AS SIGNED ) * + 72 + - 71 - + 75 + - + COUNT( 4 ) AS col0, + 48 + COALESCE ( 52, 42 + COUNT( * ) + - 79 ) + - - 92 * - NULLIF ( + + 44, + COUNT( * ) * + - 83 + - - 43 ) * 91 * ( - 0 ) col1
----
1005
100

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL + CAST ( 16 AS INTEGER ) * + 72 + - 71 - + 75 + - + COUNT ( 4 ) AS col0, + 48 + COALESCE ( 52, 42 + COUNT ( * ) + - 79 ) + - - 92 * - NULLIF ( + + 44, + COUNT ( * ) * + - 83 + - - 43 ) * 91 * ( - 0 ) col1
----
1005
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 71 * - - SUM( DISTINCT - 21 )
----
-1491

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 71 * - - SUM ( DISTINCT - 21 )
----
-1491

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

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

query III rowsort
SELECT ALL - 62 * 20, 61 * + 1 + - - 88 AS col0, + + 38 AS col1
----
-1240
149
38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT DISTINCT + COALESCE ( + - 35, + 62 DIV - 53 )
----
-35

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + COALESCE ( + - 35, + 62 / - 53 )
----
-35

query I rowsort
SELECT ALL 49 * - 20 - - - 97
----
-1077

query I rowsort
SELECT - 17 * + - 26
----
442

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1923
SELECT NULLIF ( + 22, + MIN( DISTINCT - + 24 ) * - CAST( 3 AS SIGNED ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1923
SELECT NULLIF ( + 22, + MIN ( DISTINCT - + 24 ) * - CAST ( 3 AS INTEGER ) ) AS col0
----
22

query I rowsort
SELECT ALL - 90 * + ( 67 )
----
-6030

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT DISTINCT + ( + - MAX( - 98 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + ( + - MAX ( - 98 ) ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT 27 * ( - + 91 ) + - - COUNT( ALL + - 94 ) + + + 83
----
-2373

skipif mysql # not compatible
query I rowsort label-1926
SELECT 27 * ( - + 91 ) + - - COUNT ( ALL + - 94 ) + + + 83
----
-2373

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL 4 * 83 + - ( - - SUM( + + 58 ) ) AS col0
----
274

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 4 * 83 + - ( - - SUM ( + + 58 ) ) AS col0
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - COALESCE ( + COUNT( * ), + - 9 ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-1928
SELECT - COALESCE ( + COUNT ( * ), + - 9 ) + - 61
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - 86 + - - 34 + + ( CASE + COUNT( DISTINCT + - 77 ) WHEN - 34 THEN NULL WHEN + 66 - NULLIF ( COUNT( * ), + 61 ) + + 17 THEN 88 END ) / + 89 * 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT - 86 + - - 34 + + ( CASE + COUNT ( DISTINCT + - 77 ) WHEN - 34 THEN NULL WHEN + 66 - NULLIF ( COUNT ( * ), + 61 ) + + 17 THEN 88 END ) / + 89 * 13 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + - 39, - 40, - + 67 ) col0
----
39

query I rowsort
SELECT ALL 22 * - 10 + 87
----
-133

query I rowsort
SELECT - - NULLIF ( + 2, - - 8 + 39 )
----
2

query I rowsort
SELECT - - 93 + + 55 AS col1
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT + - 88 + - - NULLIF ( - - COUNT( * ), + 0 * + COUNT( * ) * 12 ) * 84, + 38 * + 41 col0
----
-4
1558

skipif mysql # not compatible
query II rowsort label-1934
SELECT + - 88 + - - NULLIF ( - - COUNT ( * ), + 0 * + COUNT ( * ) * 12 ) * 84, + 38 * + 41 col0
----
-4
1558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT + COALESCE ( 42, + COUNT( * ) * + 64 * + 29 DIV - 33 ) DIV - 81 + - COUNT( * ) + + 23 * + 78 * - + 15 - + + ( 20 )
----
-26931

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COALESCE ( 42, + COUNT ( * ) * + 64 * + 29 / - 33 ) / - 81 + - COUNT ( * ) + + 23 * + 78 * - + 15 - + + ( 20 )
----
-26931

query II rowsort
SELECT ALL ( 56 ) col0, - 98
----
56
-98

query I rowsort
SELECT ALL 19 + + 13
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL - 47 * + + CASE - MAX( ALL 4 ) WHEN + + COUNT( * ) THEN - 37 WHEN 98 + COUNT( * ) + - 41 THEN 50 * + 71 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - 47 * + + CASE - MAX ( ALL 4 ) WHEN + + COUNT ( * ) THEN - 37 WHEN 98 + COUNT ( * ) + - 41 THEN 50 * + 71 END col1
----
NULL

query II rowsort
SELECT DISTINCT + NULLIF ( 76, + - 56 / + 79 ) + - - 5 AS col0, 27 AS col0
----
81
27

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT ALL CASE + + COALESCE ( - 65, + 31 * - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + 62 + - - 40 + 64 - 36, - 29 * + - COUNT( * ) ) WHEN + AVG ( + 2 ) THEN NULL ELSE - 4 + 64 END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL CASE + + COALESCE ( - 65, + 31 * - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 62 + - - 40 + 64 - 36, - 29 * + - COUNT ( * ) ) WHEN + AVG ( + 2 ) THEN NULL ELSE - 4 + 64 END AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT + NULLIF ( + 1, - 61 - + 98 + 58 ) * + CAST( NULL AS SIGNED ) + - - 19 + + + 74 + + 24 + - + SUM( DISTINCT - 62 ) * - + 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT + NULLIF ( + 1, - 61 - + 98 + 58 ) * + CAST ( NULL AS INTEGER ) + - - 19 + + + 74 + + 24 + - + SUM ( DISTINCT - 62 ) * - + 97 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1945
SELECT - 45 DIV COUNT( * ) + - + 31 * + 64 AS col2
----
-2029

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 45 / COUNT ( * ) + - + 31 * + 64 AS col2
----
-2029

query I rowsort
SELECT DISTINCT - NULLIF ( 92, 90 * - ( + 92 ) + 79 + 70 * 45 * + + 63 )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT ALL - 15, - COUNT( * ) + + - 83 AS col2
----
-15
-84

skipif mysql # not compatible
query II rowsort label-1947
SELECT ALL - 15, - COUNT ( * ) + + - 83 AS col2
----
-15
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL - COUNT( + + ( - 20 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - COUNT ( + + ( - 20 ) ) col1
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT + ( + + 5 ) * - 80 + - - 60 + - CAST( NULL AS SIGNED ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT + ( + + 5 ) * - 80 + - - 60 + - CAST ( NULL AS INTEGER ) * - 46
----
NULL

query II rowsort
SELECT ALL - 5 AS col1, 17
----
-5
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1952
SELECT COALESCE ( + 35, + ( - - 12 ) ) DIV - 48 * 32 - + SUM( DISTINCT + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-1952
SELECT COALESCE ( + 35, + ( - - 12 ) ) / - 48 * 32 - + SUM ( DISTINCT + 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1953
SELECT DISTINCT - 86 + + 54 - + - 89, + CAST( NULL AS SIGNED ) + - + 10 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-1953
SELECT DISTINCT - 86 + + 54 - + - 89, + CAST ( NULL AS INTEGER ) + - + 10 AS col2
----
57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1954
SELECT ALL - 68 + + 64 + - 91 + - 10 DIV + SUM( 79 ) + + 62 + - 80 DIV - CAST( + - 99 AS SIGNED ) * + - 30 * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL - 68 + + 64 + - 91 + - 10 / + SUM ( 79 ) + + 62 + - 80 / - CAST ( + - 99 AS INTEGER ) * + - 30 * COUNT ( * )
----
-33

query II rowsort
SELECT + 19 AS col1, 24 AS col1
----
19
24

query II rowsort
SELECT ALL - 40, + CASE 36 WHEN - + ( - + 50 ) / + 5 * - 63 THEN 93 WHEN ( + 18 ) THEN NULL ELSE NULL END col1
----
-40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT 33 + - ( - + 66 ) / + 79 * - ( + CASE - 93 WHEN 18 - - 78 THEN + NULLIF ( - - COALESCE ( + 30, + 73 / SUM( ALL + - 21 ) + 24 ), + 95 ) END ) + + CASE + 55 WHEN - ( - 14 ) THEN COUNT( * ) WHEN - COALESCE ( 30, + + COUNT( - - 68 ) ) * ( 82 ) * + + 60 THEN NULL ELSE + - 69 + + - NULLIF ( - MIN( ALL - 70 ), + NULLIF ( - 79, + COUNT( * ) ) ) * - + 50 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT 33 + - ( - + 66 ) / + 79 * - ( + CASE - 93 WHEN 18 - - 78 THEN + NULLIF ( - - COALESCE ( + 30, + 73 / SUM ( ALL + - 21 ) + 24 ), + 95 ) END ) + + CASE + 55 WHEN - ( - 14 ) THEN COUNT ( * ) WHEN - COALESCE ( 30, + + COUNT ( - - 68 ) ) * ( 82 ) * + + 60 THEN NULL ELSE + - 69 + + - NULLIF ( - MIN ( ALL - 70 ), + NULLIF ( - 79, + COUNT ( * ) ) ) * - + 50 END AS col2
----
NULL

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

query I rowsort
SELECT ALL - 68 + + 41 AS col2
----
-27

query I rowsort
SELECT DISTINCT + 14 + 44
----
58

query I rowsort
SELECT 59 * + 16 - 38 AS col1
----
906

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

query II rowsort
SELECT - + 6 AS col0, + 29 AS col2
----
-6
29

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

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

query II rowsort
SELECT - 4 AS col0, + 34 * + - 17
----
-4
-578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT 29 + 22 + - + 92 + 14 + - + 35 * + 1 / - CAST( NULL AS SIGNED ) + - 87 * MIN( - 46 ) * + 91 + CASE - + 85 WHEN - 49 * - + CAST( NULL AS SIGNED ) THEN + 46 * + 11 * + 5 * - 42 + - ( - 84 ) END / ( - + AVG ( - ( + 71 ) ) ) + 15 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT 29 + 22 + - + 92 + 14 + - + 35 * + 1 / - CAST ( NULL AS INTEGER ) + - 87 * MIN ( - 46 ) * + 91 + CASE - + 85 WHEN - 49 * - + CAST ( NULL AS INTEGER ) THEN + 46 * + 11 * + 5 * - 42 + - ( - 84 ) END / ( - + AVG ( - ( + 71 ) ) ) + 15 - COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT ALL 99, 54 AS col1
----
99
54

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

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

query II rowsort
SELECT ALL 60, + 52 AS col0
----
60
52

query I rowsort
SELECT 98 + - 34 * + 8 + - + 92
----
-266

query II rowsort
SELECT 46 * + - ( + 32 ), - ( 87 ) AS col2
----
-1472
-87

query I rowsort
SELECT - 63 + 34 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL - 44 * 69 + - + 13 - - SUM( DISTINCT - + 21 ) AS col1
----
-3070

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - 44 * 69 + - + 13 - - SUM ( DISTINCT - + 21 ) AS col1
----
-3070

query I rowsort
SELECT DISTINCT 37 * + + 57 AS col1
----
2109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT DISTINCT - COUNT( * ) * 75 * + COUNT( * ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - COUNT ( * ) * 75 * + COUNT ( * ) / - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT 54 * - CASE 28 WHEN + 45 * + 38 * - + 50 + + - 71 - - - 1 * + 26 * + COUNT( * ) * - + 1 / + - 53 + - 9 / 42 * COALESCE ( + - 64, - + CAST( - 35 AS SIGNED ) * 97 + - 75 - + + 45 ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) - + 2 - - 7 + - 93 * - 17 THEN NULL WHEN + - COALESCE ( - 80, - 97 + 1 ) THEN - 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT 54 * - CASE 28 WHEN + 45 * + 38 * - + 50 + + - 71 - - - 1 * + 26 * + COUNT ( * ) * - + 1 / + - 53 + - 9 / 42 * COALESCE ( + - 64, - + CAST ( - 35 AS INTEGER ) * 97 + - 75 - + + 45 ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) - + 2 - - 7 + - 93 * - 17 THEN NULL WHEN + - COALESCE ( - 80, - 97 + 1 ) THEN - 15 ELSE NULL END
----
NULL

query I rowsort
SELECT CASE + 82 WHEN + - 29 THEN - ( - - ( + 59 ) ) WHEN + 0 THEN NULL END * + 14 * + ( - 85 ) + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL 28 + + - ( 82 ) * - MIN( DISTINCT + 73 ) * - 9 + - + 77 - - + 75 * - - 11 AS col0
----
-53098

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL 28 + + - ( 82 ) * - MIN ( DISTINCT + 73 ) * - 9 + - + 77 - - + 75 * - - 11 AS col0
----
-53098

query I rowsort
SELECT 59 - - - 38
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT CASE + + 58 WHEN - COUNT( * ) THEN 59 WHEN - + 52 THEN + 92 END * - + 68 AS col0, COUNT( * ) + - 18
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-1981
SELECT CASE + + 58 WHEN - COUNT ( * ) THEN 59 WHEN - + 52 THEN + 92 END * - + 68 AS col0, COUNT ( * ) + - 18
----
NULL
-17

query I rowsort
SELECT ALL 22 * - 39 AS col0
----
-858

query I rowsort
SELECT ALL 92 + - 43
----
49

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

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

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

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

query I rowsort
SELECT ALL + NULLIF ( + 93, 0 ) + + + 65 * + 52
----
3473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT CAST( - + 33 AS SIGNED ) * - 88
----
2904

skipif mysql # not compatible
query I rowsort label-1987
SELECT CAST ( - + 33 AS INTEGER ) * - 88
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT COUNT( * ) * - 9 + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1988
SELECT COUNT ( * ) * - 9 + COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT 4 - + 39 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1990
SELECT + - CAST( NULL AS SIGNED ) * - 98 * + - 95 + - - 4 + - + 49 + - - MIN( DISTINCT - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT + - CAST ( NULL AS INTEGER ) * - 98 * + - 95 + - - 4 + - + 49 + - - MIN ( DISTINCT - 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + 48 * + 14 + + 14 + + 58 * - - 38 * NULLIF ( - - 71, - 22 + 15 + + + 58 * - 61 * 80 ) * - + COUNT( * ) + + COUNT( * ) + COUNT( * ) AS col0
----
-155796

skipif mysql # not compatible
query I rowsort label-1991
SELECT + 48 * + 14 + + 14 + + 58 * - - 38 * NULLIF ( - - 71, - 22 + 15 + + + 58 * - 61 * 80 ) * - + COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) AS col0
----
-155796

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT ALL - 91 - 15 DIV - 23
----
-91

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - 91 - 15 / - 23
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + 99 * - NULLIF ( - 28, + 25 ) + 35 * + + MIN( 74 ) AS col1
----
5362

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + 99 * - NULLIF ( - 28, + 25 ) + 35 * + + MIN ( 74 ) AS col1
----
5362

query I rowsort
SELECT 43 * + 16 + 23 AS col0
----
711

query I rowsort
SELECT ALL + 30 - - 69 + - - 3
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT ALL + COUNT( * ) * - + 39 * 60 * + 20, 15 * - 59 - - 31 + - COUNT( * ) AS col2
----
-46800
-855

skipif mysql # not compatible
query II rowsort label-1996
SELECT ALL + COUNT ( * ) * - + 39 * 60 * + 20, 15 * - 59 - - 31 + - COUNT ( * ) AS col2
----
-46800
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - + CASE + MIN( - 29 ) WHEN - 84 THEN + 47 + + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT - + CASE + MIN ( - 29 ) WHEN - 84 THEN + 47 + + 82 END
----
NULL

query I rowsort
SELECT + 64 * + + 16 AS col1
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - - SUM( + 45 ) - + + 82
----
-37

skipif mysql # not compatible
query I rowsort label-1999
SELECT - - SUM ( + 45 ) - + + 82
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2000
SELECT - - NULLIF ( CAST( NULL AS DECIMAL ), ( + 84 ) ) * + 70 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT - - NULLIF ( CAST ( NULL AS REAL ), ( + 84 ) ) * + 70 * - 79
----
NULL

query I rowsort
SELECT ALL + 3 * 2 * + 5 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT ( CASE - COUNT( * ) WHEN - - 71 THEN 43 * + + 37 * + - 19 * - 83 + - 96 + - 65 * + - 43 * + 76 * + COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) ) + + + 8 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ( CASE - COUNT ( * ) WHEN - - 71 THEN 43 * + + 37 * + - 19 * - 83 + - 96 + - 65 * + - 43 * + 76 * + COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) + + + 8 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT ALL - CAST( + MAX( 2 ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL - CAST ( + MAX ( 2 ) AS INTEGER ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL COUNT( DISTINCT - 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL COUNT ( DISTINCT - 67 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT - CASE + 38 WHEN - 8 * + 37 - + + 35 THEN SUM( DISTINCT 37 ) - + + 98 ELSE - - 4 * + NULLIF ( NULLIF ( - COALESCE ( 83, + 4 + - 81 DIV - + 62 ), - 53 ), + - COUNT( * ) * - - ( + - 10 ) + + 35 ) + 50 * - + 90 END * + 0
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT - CASE + 38 WHEN - 8 * + 37 - + + 35 THEN SUM ( DISTINCT 37 ) - + + 98 ELSE - - 4 * + NULLIF ( NULLIF ( - COALESCE ( 83, + 4 + - 81 / - + 62 ), - 53 ), + - COUNT ( * ) * - - ( + - 10 ) + + 35 ) + 50 * - + 90 END * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT DISTINCT CASE 76 WHEN - SUM( ALL + - 94 ) THEN + + 82 - + MIN( + 88 ) * - 97 WHEN 17 * NULLIF ( - 6, 65 * - + 74 * 87 ) THEN + + 59 + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT CASE 76 WHEN - SUM ( ALL + - 94 ) THEN + + 82 - + MIN ( + 88 ) * - 97 WHEN 17 * NULLIF ( - 6, 65 * - + 74 * 87 ) THEN + + 59 + + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( 91, - 59 * + + 40 ) AS col0
----
91

query I rowsort
SELECT - 64 + ( + 17 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + MAX( ALL - + ( - 40 ) ) - - 9 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2009
SELECT + MAX ( ALL - + ( - 40 ) ) - - 9 AS col1
----
49

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

skipif mysql # not compatible
query I rowsort label-2010
SELECT - COUNT ( * ) / + 86 * 18
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT + CAST( NULL AS SIGNED ) * - - CASE 79 WHEN - 52 THEN + 35 * - ( - 91 ) + + 48 + + - 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT + CAST ( NULL AS INTEGER ) * - - CASE 79 WHEN - 52 THEN + 35 * - ( - 91 ) + + 48 + + - 77 ELSE NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( 25, - - ( 47 ) * - 30 ) * + + 95 * - - 56
----
133000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT ( + + CAST( + MIN( ALL 26 ) AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-2013
SELECT ( + + CAST ( + MIN ( ALL 26 ) AS INTEGER ) )
----
26

query I rowsort
SELECT ALL + 31 * + 29 + 91 AS col0
----
990

query I rowsort
SELECT + 80 + 45
----
125

query I rowsort
SELECT + CASE + + 34 WHEN - 96 + + + ( + 17 ) THEN NULL WHEN - - 20 THEN - 82 * + 20 - + 57 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - COUNT( DISTINCT 60 ) * + 88 * COUNT( * ) + - - 98 - - - 57 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2017
SELECT - COUNT ( DISTINCT 60 ) * + 88 * COUNT ( * ) + - - 98 - - - 57 AS col0
----
-47

query I rowsort
SELECT + 33 + 15
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL 73 * - COUNT( * ) - 80 AS col1, - 74 AS col0
----
-153
-74

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL 73 * - COUNT ( * ) - 80 AS col1, - 74 AS col0
----
-153
-74

query I rowsort
SELECT + + 25 + + 2 * - - 14 - + 57 AS col0
----
-4

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT ALL + 68 AS col1, - COALESCE ( 5, - - COUNT( * ) + + 10 - + + 81 * 4, - 39 ) * + COUNT( * ) + + - 89
----
68
-94

skipif mysql # not compatible
query II rowsort label-2023
SELECT ALL + 68 AS col1, - COALESCE ( 5, - - COUNT ( * ) + + 10 - + + 81 * 4, - 39 ) * + COUNT ( * ) + + - 89
----
68
-94

query I rowsort
SELECT ALL 42 * + - 30 AS col0
----
-1260

query I rowsort
SELECT NULLIF ( + + 36, ( - 83 ) )
----
36

query II rowsort
SELECT - 51 AS col2, 23
----
-51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + + 88 * + - NULLIF ( - 42, + - 96 * + 33 ) + - NULLIF ( + NULLIF ( - CASE + 98 WHEN + COUNT( ALL - - 96 ) THEN + 22 END, + COUNT( * ) ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT + + 88 * + - NULLIF ( - 42, + - 96 * + 33 ) + - NULLIF ( + NULLIF ( - CASE + 98 WHEN + COUNT ( ALL - - 96 ) THEN + 22 END, + COUNT ( * ) ), + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT + - COALESCE ( - COUNT( * ), - 90 * + 2 DIV + 45 * - COUNT( * ) + - 36 + + CASE + 2 WHEN + ( - 70 ) THEN 55 END + - 80 ) * + 81 * + - 87 AS col2
----
-7047

skipif mysql # not compatible
query I rowsort label-2028
SELECT + - COALESCE ( - COUNT ( * ), - 90 * + 2 / + 45 * - COUNT ( * ) + - 36 + + CASE + 2 WHEN + ( - 70 ) THEN 55 END + - 80 ) * + 81 * + - 87 AS col2
----
-7047

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + + 38 - - 88 - COUNT( * ) * - + 75 + + 63
----
264

skipif mysql # not compatible
query I rowsort label-2029
SELECT + + 38 - - 88 - COUNT ( * ) * - + 75 + + 63
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT + 84 + - NULLIF ( 34, + - 90 + - 36 + 47 + - 26 + MAX( 18 ) + COUNT( * ) + - COUNT( ALL - 79 ) * - + 15 ) col0, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-2030
SELECT + 84 + - NULLIF ( 34, + - 90 + - 36 + 47 + - 26 + MAX ( 18 ) + COUNT ( * ) + - COUNT ( ALL - 79 ) * - + 15 ) col0, COUNT ( * )
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT COUNT( - + 34 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT COUNT ( - + 34 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL - 61 + + MAX( - + NULLIF ( + 35, 20 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - 61 + + MAX ( - + NULLIF ( + 35, 20 ) )
----
-96

query I rowsort
SELECT + 47 + 38
----
85

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

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

query I rowsort
SELECT - 29 - - 88 AS col2
----
59

query I rowsort
SELECT ALL - 99 + + ( - 47 ) col0
----
-146

query I rowsort
SELECT ALL + 44 * + - ( 98 ) AS col1
----
-4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2038
SELECT 2 AS col0, - 81 * - + COUNT( * ) / 54 + CAST( NULL AS SIGNED ) + + 62 / 16
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2038
SELECT 2 AS col0, - 81 * - + COUNT ( * ) / 54 + CAST ( NULL AS INTEGER ) + + 62 / 16
----
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT - COUNT( 89 ) AS col1, + ( + - 38 ) * + 28
----
-1
-1064

skipif mysql # not compatible
query II rowsort label-2039
SELECT - COUNT ( 89 ) AS col1, + ( + - 38 ) * + 28
----
-1
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - ( + 38 ) * - - SUM( ALL + + COALESCE ( + 63, + + 19 * + + 38 * - - 48 ) )
----
-2394

skipif mysql # not compatible
query I rowsort label-2040
SELECT - ( + 38 ) * - - SUM ( ALL + + COALESCE ( + 63, + + 19 * + + 38 * - - 48 ) )
----
-2394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT DISTINCT ( NULLIF ( - + CAST( + 80 AS SIGNED ), - 2 + + 22 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT ( NULLIF ( - + CAST ( + 80 AS INTEGER ), - 2 + + 22 ) ) AS col0
----
-80

query I rowsort
SELECT ALL + 99 + + 83
----
182

query I rowsort
SELECT DISTINCT + 54 + + - 20 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT NULLIF ( COUNT( * ), - - 34 * + ( + 85 ) + - COUNT( + - 75 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT NULLIF ( COUNT ( * ), - - 34 * + ( + 85 ) + - COUNT ( + - 75 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - 39 * ( COUNT( * ) ) * - 30 - 33
----
1137

skipif mysql # not compatible
query I rowsort label-2045
SELECT - 39 * ( COUNT ( * ) ) * - 30 - 33
----
1137

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT ALL - 9 DIV - + 54
----
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - 9 / - + 54
----
0

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

query I rowsort
SELECT - 68 * - - 80 col0
----
-5440

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT ALL 0 DIV - 8 - - 4
----
4

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 0 / - 8 - - 4
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2050
SELECT DISTINCT - CASE - 48 WHEN 75 * + COUNT( * ) * + + CAST( + CASE 85 WHEN - COUNT( * ) * + - 60 THEN + - 6 WHEN + - 34 THEN - - 32 * - + 40 * - 28 ELSE + + 66 END AS SIGNED ) * + 78 + + + 4 + 1 * - + 93 THEN - CAST( 57 AS DECIMAL ) / - COUNT( * ) END * 80 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - CASE - 48 WHEN 75 * + COUNT ( * ) * + + CAST ( + CASE 85 WHEN - COUNT ( * ) * + - 60 THEN + - 6 WHEN + - 34 THEN - - 32 * - + 40 * - 28 ELSE + + 66 END AS INTEGER ) * + 78 + + + 4 + 1 * - + 93 THEN - CAST ( 57 AS REAL ) / - COUNT ( * ) END * 80 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 3 * - 15 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2052
SELECT - 21 - - 61 AS col0, COALESCE ( + + 86, - - CAST( 73 AS SIGNED ), + + 42 * + CAST( NULL AS SIGNED ) )
----
40
86

skipif mysql # not compatible
query II rowsort label-2052
SELECT - 21 - - 61 AS col0, COALESCE ( + + 86, - - CAST ( 73 AS INTEGER ), + + 42 * + CAST ( NULL AS INTEGER ) )
----
40
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - - 24 * + 82 - CASE - - 6 WHEN + 91 / - 7 THEN NULL WHEN - + 84 + + - 64 THEN + 33 ELSE NULL END + + 82 * COUNT( * ) + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT - - 24 * + 82 - CASE - - 6 WHEN + 91 / - 7 THEN NULL WHEN - + 84 + + - 64 THEN + 33 ELSE NULL END + + 82 * COUNT ( * ) + + 55
----
NULL

query II rowsort
SELECT 62 AS col1, 53 col1
----
62
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT + + CASE - 0 WHEN + - COUNT( * ) * + - 52 THEN NULL WHEN + 22 THEN + 76 * - 6 * + COUNT( * ) * - 18 / - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT + + CASE - 0 WHEN + - COUNT ( * ) * + - 52 THEN NULL WHEN + 22 THEN + 76 * - 6 * + COUNT ( * ) * - 18 / - 88 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2056
SELECT ALL + + 12 / + 37 + ( ( - COUNT( * ) ) ) - - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + + 12 / + 37 + ( ( - COUNT ( * ) ) ) - - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT + - 77 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT + - 77 / - 79 AS col0
----
0

query II rowsort
SELECT ALL + + 36 col2, 62 AS col1
----
36
62

query I rowsort
SELECT + + ( - + COALESCE ( - 7, - - 38 ) ) * - 95
----
-665

query II rowsort
SELECT - + 92 * 40 * + - 57 * + 49 AS col1, 33 AS col2
----
10278240
33

query I rowsort
SELECT + 37 * - 41 + - + 79 + - ( - 40 )
----
-1556

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT 59 * ( - 94 ) + 57 + 90 * 40 + + 32 * + 26 DIV + COUNT( * ) col1
----
-1057

skipif mysql # not compatible
query I rowsort label-2063
SELECT 59 * ( - 94 ) + 57 + 90 * 40 + + 32 * + 26 / + COUNT ( * ) col1
----
-1057

query I rowsort
SELECT 96 * 1 * + 96 * + 14 * - 12
----
-1548288

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + MAX( DISTINCT - + 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2065
SELECT + MAX ( DISTINCT - + 29 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT DISTINCT + + 3 + 27 AS col0, COUNT( * ) AS col2
----
30
1

skipif mysql # not compatible
query II rowsort label-2066
SELECT DISTINCT + + 3 + 27 AS col0, COUNT ( * ) AS col2
----
30
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT 75 * + 27 * ( + ( - MAX( 81 ) ) )
----
-164025

skipif mysql # not compatible
query I rowsort label-2068
SELECT 75 * + 27 * ( + ( - MAX ( 81 ) ) )
----
-164025

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL + MAX( - 39 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + MAX ( - 39 ) col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT - COUNT( * ) * 66 + - 85 DIV + 93 DIV - 50 DIV - 27
----
-66

skipif mysql # not compatible
query I rowsort label-2070
SELECT - COUNT ( * ) * 66 + - 85 / + 93 / - 50 / - 27
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT 24 * COUNT( * ) * - ( + 14 ) * ( + ( ( 36 ) ) ) + + COALESCE ( - 59, SUM( + 56 ) + 77 ) * 31 AS col2
----
-13925

skipif mysql # not compatible
query I rowsort label-2071
SELECT 24 * COUNT ( * ) * - ( + 14 ) * ( + ( ( 36 ) ) ) + + COALESCE ( - 59, SUM ( + 56 ) + 77 ) * 31 AS col2
----
-13925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2072
SELECT MIN( - 33 ) DIV - 63 - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2072
SELECT MIN ( - 33 ) / - 63 - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 76 + - NULLIF ( + - 15, 68 ) AS col0
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL 11 + MIN( DISTINCT 91 )
----
102

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL 11 + MIN ( DISTINCT 91 )
----
102

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

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2077
SELECT 95 - + 18 * - NULLIF ( + ( - 30 ), - COUNT( * ) / + 36 + - - 8 * MAX( - 10 ) ) * ( - 86 ) AS col2, COALESCE ( + 51, - COUNT( * ) )
----
46535
51

skipif mysql # not compatible
query II rowsort label-2077
SELECT 95 - + 18 * - NULLIF ( + ( - 30 ), - COUNT ( * ) / + 36 + - - 8 * MAX ( - 10 ) ) * ( - 86 ) AS col2, COALESCE ( + 51, - COUNT ( * ) )
----
46535
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT CASE + CAST( + 49 AS SIGNED ) WHEN - CASE 93 WHEN - CAST( NULL AS SIGNED ) THEN + 29 WHEN + CASE - + 90 WHEN - 49 + + 57 + + 66 * + - 99 * - - MIN( - 76 ) THEN NULL WHEN + CAST( - - 92 AS SIGNED ) THEN ( 70 ) WHEN 79 THEN NULL ELSE NULL END THEN NULL WHEN + - 89 + + SUM( 19 ) * - 13 + ( - + 84 ) THEN NULL ELSE + 15 - + 46 END THEN - 39 WHEN - 41 THEN - 26 - + + 26 - + 66 + + COUNT( * ) + COUNT( * ) ELSE NULL END + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT CASE + CAST ( + 49 AS INTEGER ) WHEN - CASE 93 WHEN - CAST ( NULL AS INTEGER ) THEN + 29 WHEN + CASE - + 90 WHEN - 49 + + 57 + + 66 * + - 99 * - - MIN ( - 76 ) THEN NULL WHEN + CAST ( - - 92 AS INTEGER ) THEN ( 70 ) WHEN 79 THEN NULL ELSE NULL END THEN NULL WHEN + - 89 + + SUM ( 19 ) * - 13 + ( - + 84 ) THEN NULL ELSE + 15 - + 46 END THEN - 39 WHEN - 41 THEN - 26 - + + 26 - + 66 + + COUNT ( * ) + COUNT ( * ) ELSE NULL END + + 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 4 - - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2079
SELECT 4 - - COUNT ( * ) AS col0
----
5

query I rowsort
SELECT ALL 63 - 41 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT 84 + + CASE + CASE + 3 WHEN 31 * 5 / + 75 * + - 21 - - 21 * 90 * + NULLIF ( + 42, 55 ) + + 50 THEN NULL ELSE - + ( NULLIF ( + COALESCE ( 22, + 55 * - - COUNT( * ) ), + + 23 ) ) * + 29 + - 66 - 56 END WHEN + 4 * + 30 THEN + - 66 + 39 * + 22 / - 83 / + - 73 - + SUM( ALL 21 ) WHEN + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) THEN - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT 84 + + CASE + CASE + 3 WHEN 31 * 5 / + 75 * + - 21 - - 21 * 90 * + NULLIF ( + 42, 55 ) + + 50 THEN NULL ELSE - + ( NULLIF ( + COALESCE ( 22, + 55 * - - COUNT ( * ) ), + + 23 ) ) * + 29 + - 66 - 56 END WHEN + 4 * + 30 THEN + - 66 + 39 * + 22 / - 83 / + - 73 - + SUM ( ALL 21 ) WHEN + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN - 3 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT - SUM( + 17 ) * 19 * - - COUNT( * ) + - 53 col1
----
-376

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - SUM ( + 17 ) * 19 * - - COUNT ( * ) + - 53 col1
----
-376

query I rowsort
SELECT DISTINCT 68 * 10 AS col0
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT 42 / + 38 / - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT 42 / + 38 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL 3 * AVG ( DISTINCT 44 ) * - + 59 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 3 * AVG ( DISTINCT 44 ) * - + 59 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2088
SELECT ALL - + NULLIF ( ( - COUNT( + - 53 ) ), - 36 * - CAST( + + ( - 10 ) AS DECIMAL ) / 4 - + NULLIF ( 86, 90 ) ) AS col2, 43 * + COUNT( * ) * - - 98 * - + ( + + 21 ) col0
----
1
-88494

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL - + NULLIF ( ( - COUNT ( + - 53 ) ), - 36 * - CAST ( + + ( - 10 ) AS REAL ) / 4 - + NULLIF ( 86, 90 ) ) AS col2, 43 * + COUNT ( * ) * - - 98 * - + ( + + 21 ) col0
----
1
-88494

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT MIN( - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2089
SELECT MIN ( - 67 ) AS col2
----
-67

query I rowsort
SELECT - 91 + - + 13 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT + - MIN( DISTINCT + 88 ) * - 23
----
2024

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT + - MIN ( DISTINCT + 88 ) * - 23
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL + ( - MAX( ALL + 21 ) ) + - + 3 + 39 * + - 1 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + ( - MAX ( ALL + 21 ) ) + - + 3 + 39 * + - 1 AS col2
----
-63

query I rowsort
SELECT + 57 * - 78
----
-4446

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT DISTINCT - - COALESCE ( - 74, + - 22 DIV - + 15 * + - 16 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - - COALESCE ( - 74, + - 22 / - + 15 * + - 16 ) AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2095
SELECT DISTINCT - 77 DIV 25 col0, NULLIF ( - 3, + - 65 + - COUNT( * ) ) * + 76 AS col0
----
-3
-228

skipif mysql # not compatible
query II rowsort label-2095
SELECT DISTINCT - 77 / 25 col0, NULLIF ( - 3, + - 65 + - COUNT ( * ) ) * + 76 AS col0
----
-3
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL + 66 + - - COUNT( + + 26 ) + + 61 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + 66 + - - COUNT ( + + 26 ) + + 61 AS col2
----
128

query I rowsort
SELECT DISTINCT + 33 + ( + ( 36 ) ) col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2098
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + + 48 AS col0, + 2 AS col0
----
49
2

skipif mysql # not compatible
query II rowsort label-2098
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + 48 AS col0, + 2 AS col0
----
49
2

query I rowsort
SELECT 69 + + 50 - + + 71
----
48

query I rowsort
SELECT + 49 * - - 41 - - 91
----
2100

query I rowsort
SELECT ALL 69 * 17 AS col1
----
1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2102
SELECT 40, NULLIF ( 21, + 59 * + 10 ) - - ( - CAST( NULLIF ( AVG ( 65 ), + - 51 + - 17 ) AS SIGNED ) ) * - + 58 * + MIN( - + 28 ) AS col0
----
40
-105539

skipif mysql # not compatible
query II rowsort label-2102
SELECT 40, NULLIF ( 21, + 59 * + 10 ) - - ( - CAST ( NULLIF ( AVG ( 65 ), + - 51 + - 17 ) AS INTEGER ) ) * - + 58 * + MIN ( - + 28 ) AS col0
----
40
-105539

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( 57 ) + 11
----
12

skipif mysql # not compatible
query I rowsort label-2103
SELECT COUNT ( 57 ) + 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT 4 + - 56 * - - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-2104
SELECT 4 + - 56 * - - COUNT ( * )
----
-52

query I rowsort
SELECT ALL 63 - - - 17 AS col2
----
46

query I rowsort
SELECT NULLIF ( - 22, - 22 ) + - 31 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 62 AS col2, 24 AS col1
----
62
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT ALL NULLIF ( 60, + COUNT( * ) + COUNT( DISTINCT - 36 ) + - 51 ) DIV + 9 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL NULLIF ( 60, + COUNT ( * ) + COUNT ( DISTINCT - 36 ) + - 51 ) / + 9 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT CAST( NULL AS SIGNED ) / - + 14 * + ( - COUNT( * ) ) / 19 * + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT CAST ( NULL AS INTEGER ) / - + 14 * + ( - COUNT ( * ) ) / 19 * + 36 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT ALL 9 DIV + 6 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL 9 / + 6 AS col2
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT CAST( NULL AS SIGNED ) * + - CASE + 56 WHEN - + 63 THEN + + 29 END - NULLIF ( - 62, + ( - ( ( + 18 ) ) ) + - - 6 ) + - COUNT( 84 ) / - 80 + 61 / - 29 * + 91 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT CAST ( NULL AS INTEGER ) * + - CASE + 56 WHEN - + 63 THEN + + 29 END - NULLIF ( - 62, + ( - ( ( + 18 ) ) ) + - - 6 ) + - COUNT ( 84 ) / - 80 + 61 / - 29 * + 91 * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL 31 * - - 98 * COUNT( * ) AS col1
----
3038

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL 31 * - - 98 * COUNT ( * ) AS col1
----
3038

query II rowsort
SELECT 28 AS col0, + 81 AS col1
----
28
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT DISTINCT - + 7 * + COUNT( * ) + + 81, + ( + 44 ) AS col0
----
74
44

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT - + 7 * + COUNT ( * ) + + 81, + ( + 44 ) AS col0
----
74
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL - - COUNT( * ) * + 84 + - + 15 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - - COUNT ( * ) * + 84 + - + 15 AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT + - 25 - + + SUM( DISTINCT - 1 ) * 45 DIV - 49
----
-25

skipif mysql # not compatible
query I rowsort label-2117
SELECT + - 25 - + + SUM ( DISTINCT - 1 ) * 45 / - 49
----
-25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT + 70 * - - 74 - - 33 + + 10 + - 33 DIV - 55 * 6
----
5223

skipif mysql # not compatible
query I rowsort label-2119
SELECT + 70 * - - 74 - - 33 + + 10 + - 33 / - 55 * 6
----
5223

query II rowsort
SELECT ALL + - 81, 88 AS col0
----
-81
88

query I rowsort
SELECT DISTINCT - 57 * - - 79 + + + 12 + 99 + + 48 + 10 * 15 * 93 * + 36 + - 3
----
497853

query II rowsort
SELECT + + 59 AS col0, - 87 * - 92 AS col1
----
59
8004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT ALL - CAST( NULL AS SIGNED ) * - - 54 + - 17 * + - 55 * + ( - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 54 + - 17 * + - 55 * + ( - 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2124
SELECT 85 / + + 61 - + CAST( NULL AS SIGNED ) * - - 48 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT 85 / + + 61 - + CAST ( NULL AS INTEGER ) * - - 48 * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL + + 73 DIV 21 * + - 19 * + 12 AS col1
----
-684

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + + 73 / 21 * + - 19 * + 12 AS col1
----
-684

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

skipif mysql # not compatible
query I rowsort label-2126
SELECT 35 * + CAST ( NULL AS INTEGER ) - + 30 + 5
----
NULL

query II rowsort
SELECT + 48 AS col2, + ( + 1 )
----
48
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT - CASE + - CASE - 31 WHEN + 66 + + + COUNT( + 77 ) THEN NULL WHEN + 87 THEN + 30 * 88 * + - 27 + - 47 + - 29 + + COUNT( * ) / + MAX( + 73 ) + - ( ( 31 ) ) - - AVG ( - 77 ) + + + 64 * - + 5 * 51 * + 3 * COUNT( * ) / 96 ELSE NULL END WHEN + ( + - CAST( - 89 AS SIGNED ) ) THEN NULL ELSE - 76 END + + + 26
----
102

skipif mysql # not compatible
query I rowsort label-2129
SELECT - CASE + - CASE - 31 WHEN + 66 + + + COUNT ( + 77 ) THEN NULL WHEN + 87 THEN + 30 * 88 * + - 27 + - 47 + - 29 + + COUNT ( * ) / + MAX ( + 73 ) + - ( ( 31 ) ) - - AVG ( - 77 ) + + + 64 * - + 5 * 51 * + 3 * COUNT ( * ) / 96 ELSE NULL END WHEN + ( + - CAST ( - 89 AS INTEGER ) ) THEN NULL ELSE - 76 END + + + 26
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT ALL + 13 DIV - + 22 * + 2
----
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + 13 / - + 22 * + 2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT - 70 + + 58 * + + 29 + - 93 + + 74 - - COUNT( * ) DIV 68 DIV + 16 + + MAX( ALL 32 ) + 64
----
1689

skipif mysql # not compatible
query I rowsort label-2131
SELECT - 70 + + 58 * + + 29 + - 93 + + 74 - - COUNT ( * ) / 68 / + 16 + + MAX ( ALL 32 ) + 64
----
1689

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

query I rowsort
SELECT ALL - 40 * - 61 AS col2
----
2440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT - CAST( + ( - + NULLIF ( 37, + 5 * - + 93 * + 49 + - 91 ) ) AS SIGNED ) * + MIN( + - 30 )
----
-1110

skipif mysql # not compatible
query I rowsort label-2134
SELECT - CAST ( + ( - + NULLIF ( 37, + 5 * - + 93 * + 49 + - 91 ) ) AS INTEGER ) * + MIN ( + - 30 )
----
-1110

query II rowsort
SELECT - 34 * - 41 AS col0, - 37
----
1394
-37

query I rowsort
SELECT + 16 + + 15
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT - COALESCE ( - 18, + + ( - 58 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT - COALESCE ( - 18, + + ( - 58 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 74 * - 60 AS col0
----
-4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT ALL + MAX( ALL + 38 ) DIV 36 * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + MAX ( ALL + 38 ) / 36 * 76 AS col1
----
76

query I rowsort
SELECT - NULLIF ( + 72, ( + - 72 ) )
----
-72

query I rowsort
SELECT - 62 + + 21 * - + 2 AS col2
----
-104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2142
SELECT + 68 - + COALESCE ( CAST( NULL AS SIGNED ), + - 16 DIV + 80 + - - ( + + 97 ) + + 75 ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 68 - + COALESCE ( CAST ( NULL AS INTEGER ), + - 16 / + 80 + - - ( + + 97 ) + + 75 ) AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - CASE + COUNT( * ) WHEN - + 35 / - 9 + - 59 THEN 64 * - 49 + - 98 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT - CASE + COUNT ( * ) WHEN - + 35 / - 9 + - 59 THEN 64 * - 49 + - 98 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + + 15 + + + 20 + + - 16 AS col0
----
19

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

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

query I rowsort
SELECT + 26 + 14 AS col1
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + + 45 * COUNT( - 4 ) + + 91 + + 48
----
184

skipif mysql # not compatible
query I rowsort label-2148
SELECT + + 45 * COUNT ( - 4 ) + + 91 + + 48
----
184

query II rowsort
SELECT - + ( 78 ) + + 20 * 13, ( + 98 ) * - - 70 + + 85 AS col2
----
182
6945

query I rowsort
SELECT + - 53 * + 19 * - - 27
----
-27189

query I rowsort
SELECT + - CASE 13 WHEN 47 THEN 46 + + 77 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT + 14 * - + 52 * + 32 * + CAST( 10 AS SIGNED ) AS col2
----
-232960

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + 14 * - + 52 * + 32 * + CAST ( 10 AS INTEGER ) AS col2
----
-232960

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL + COALESCE ( - + COUNT( * ), + + 77 * - 55, - 94 + - 93 * + + ( - ( + 90 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + COALESCE ( - + COUNT ( * ), + + 77 * - 55, - 94 + - 93 * + + ( - ( + 90 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - ( + COUNT( + 22 ) ) * 32 + + ( + COALESCE ( - + 16, - CASE - 95 WHEN 67 + - 57 - + 92 + - + 98 / - 59 * + MIN( ALL - + 89 ) * + 11 / 64 * + 46 - + 15 * - + 55 THEN + - COUNT( ALL + + 45 ) + - - 65 ELSE NULL END ) ) + + 70 * + - 41
----
-2918

skipif mysql # not compatible
query I rowsort label-2154
SELECT - ( + COUNT ( + 22 ) ) * 32 + + ( + COALESCE ( - + 16, - CASE - 95 WHEN 67 + - 57 - + 92 + - + 98 / - 59 * + MIN ( ALL - + 89 ) * + 11 / 64 * + 46 - + 15 * - + 55 THEN + - COUNT ( ALL + + 45 ) + - - 65 ELSE NULL END ) ) + + 70 * + - 41
----
-2918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2155
SELECT ALL 94 * - COALESCE ( 14, + 54 * - - 99 ) col0, CAST( NULL AS SIGNED )
----
-1316
NULL

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL 94 * - COALESCE ( 14, + 54 * - - 99 ) col0, CAST ( NULL AS INTEGER )
----
-1316
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT CASE 48 WHEN - - 7 / + - COUNT( * ) THEN + 5 * + + COUNT( - + 76 ) WHEN - + COUNT( 41 ) * + COUNT( * ) * + 19 + - 7 + + NULLIF ( - 8, - 84 * CASE + - 85 WHEN - + 35 THEN COUNT( * ) WHEN + + SUM( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN( ALL - - 32 ) ) ), - 36, - 26 ) END + - + 51 / + 74 THEN - MIN( DISTINCT 53 ) WHEN - NULLIF ( + 13, - 2 ) + - 96 THEN NULL ELSE 78 END - 53 ) - 3 * + 16 THEN - 25 * + 62 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT CASE 48 WHEN - - 7 / + - COUNT ( * ) THEN + 5 * + + COUNT ( - + 76 ) WHEN - + COUNT ( 41 ) * + COUNT ( * ) * + 19 + - 7 + + NULLIF ( - 8, - 84 * CASE + - 85 WHEN - + 35 THEN COUNT ( * ) WHEN + + SUM ( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT ( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN ( ALL - - 32 ) ) ), - 36, - 26 ) END + - + 51 / + 74 THEN - MIN ( DISTINCT 53 ) WHEN - NULLIF ( + 13, - 2 ) + - 96 THEN NULL ELSE 78 END - 53 ) - 3 * + 16 THEN - 25 * + 62 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + NULLIF ( COUNT( * ), + + 5 * 30 + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + NULLIF ( COUNT ( * ), + + 5 * 30 + 14 )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT CASE 97 WHEN + CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN NULL WHEN - 66 / + 57 * 73 + - 7 + + + SUM( DISTINCT + - 11 ) THEN + COALESCE ( - + 96, - 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT CASE 97 WHEN + CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL WHEN - 66 / + 57 * 73 + - 7 + + + SUM ( DISTINCT + - 11 ) THEN + COALESCE ( - + 96, - 88 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( - ( 30 ) ) AS col0
----
-30

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

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT 45 / + ( - - 82 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT - 74 DIV - - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 74 / - - 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL - COUNT( * ) + 79 col2
----
78

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - COUNT ( * ) + 79 col2
----
78

query I rowsort
SELECT DISTINCT + 92 * - 8
----
-736

query I rowsort
SELECT - 68 + - - 61
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2167
SELECT 3 DIV + COALESCE ( - COUNT( * ), - 15 + - 10 + + 48 + + + 48 * + + 89 + - 8, + ( - COUNT( * ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2167
SELECT 3 / + COALESCE ( - COUNT ( * ), - 15 + - 10 + + 48 + + + 48 * + + 89 + - 8, + ( - COUNT ( * ) ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL + + 74 + + ( - - 75 ) + - 51 * - + COUNT( * ) * - - 82 AS col1
----
4331

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + + 74 + + ( - - 75 ) + - 51 * - + COUNT ( * ) * - - 82 AS col1
----
4331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT CASE + NULLIF ( - 73, + + 9 + - + 51 * + COUNT( * ) + 21 + COALESCE ( - NULLIF ( + COUNT( CASE - + 70 WHEN + + 29 THEN 66 ELSE NULL END ), + CAST( - 95 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 52 + + AVG ( - + 95 ) ), + COUNT( * ) ) + - 94 ) WHEN + COALESCE ( + 14, + 67 / - + 50 + 28 ) THEN 2 - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT CASE + NULLIF ( - 73, + + 9 + - + 51 * + COUNT ( * ) + 21 + COALESCE ( - NULLIF ( + COUNT ( CASE - + 70 WHEN + + 29 THEN 66 ELSE NULL END ), + CAST ( - 95 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 52 + + AVG ( - + 95 ) ), + COUNT ( * ) ) + - 94 ) WHEN + COALESCE ( + 14, + 67 / - + 50 + 28 ) THEN 2 - - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2170
SELECT ALL - 86 col2, 76 - - + CAST( NULL AS SIGNED ) / 36 / + + 28 + - NULLIF ( - COUNT( * ), - + 88 ) * + 33 + 88 * + + CASE - COUNT( * ) WHEN - 14 THEN 94 + - + 83 WHEN - 49 + 99 THEN + + 70 END * 13 + 55 - + - 55
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-2170
SELECT ALL - 86 col2, 76 - - + CAST ( NULL AS INTEGER ) / 36 / + + 28 + - NULLIF ( - COUNT ( * ), - + 88 ) * + 33 + 88 * + + CASE - COUNT ( * ) WHEN - 14 THEN 94 + - + 83 WHEN - 49 + 99 THEN + + 70 END * 13 + 55 - + - 55
----
-86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT 26 col2, 7 - 27 + + + SUM( + 74 )
----
26
54

skipif mysql # not compatible
query II rowsort label-2171
SELECT 26 col2, 7 - 27 + + + SUM ( + 74 )
----
26
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT DISTINCT - - COALESCE ( + CAST( NULL AS SIGNED ), + SUM( 54 ) ) + + + 64 * 23
----
1526

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT - - COALESCE ( + CAST ( NULL AS INTEGER ), + SUM ( 54 ) ) + + + 64 * 23
----
1526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT ALL + COALESCE ( - 3, - COUNT( * ) ) + - - 63 + + CAST( + 5 AS SIGNED ) * - 6 - 5 * + CAST( NULL AS SIGNED ) / - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + COALESCE ( - 3, - COUNT ( * ) ) + - - 63 + + CAST ( + 5 AS INTEGER ) * - 6 - 5 * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - + COALESCE ( - 51, + MAX( 90 ), - 29 ) * - ( - + 51 ) + + 58
----
2659

skipif mysql # not compatible
query I rowsort label-2174
SELECT - + COALESCE ( - 51, + MAX ( 90 ), - 29 ) * - ( - + 51 ) + + 58
----
2659

query I rowsort
SELECT ALL - 37 * - - 16 AS col1
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL COUNT( * ) - 43 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL COUNT ( * ) - 43 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT - 98 / - + 85 * - CAST( NULL AS SIGNED ) - + + 76 * + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 98 / - + 85 * - CAST ( NULL AS INTEGER ) - + + 76 * + - 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT ALL - + ( - 1 ) * 8 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - + ( - 1 ) * 8 / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - 26 - - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2179
SELECT - 26 - - COUNT ( * ) AS col1
----
-25

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

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

query I rowsort
SELECT ( + 37 ) * ( - 25 ) + - 17 AS col2
----
-942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT - 5 * + + 64 * - 47 - 78 * - CAST( NULL AS SIGNED ) * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - 5 * + + 64 * - 47 - 78 * - CAST ( NULL AS INTEGER ) * 59 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT 12 DIV - - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT 12 / - - 32 AS col2
----
0

query I rowsort
SELECT 62 + + 52 AS col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT ALL 47 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL 47 / + 33
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT 69 * - - COUNT( * ), + 79 col0
----
69
79

skipif mysql # not compatible
query II rowsort label-2186
SELECT 69 * - - COUNT ( * ), + 79 col0
----
69
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2187
SELECT + 74 * 78 * + CASE - 8 WHEN - ( - CAST( NULL AS SIGNED ) ) DIV - 43 + - 65 + + ( - NULLIF ( + 88, CAST( NULL AS SIGNED ) ) ) + + - 14 + - - 55 THEN - COUNT( * ) WHEN - + 0 * - 81 THEN + ( - + 79 ) ELSE COUNT( * ) DIV + 73 * + - 77 * - - ( 3 ) * + + 76 END * - + ( - - 76 ) + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 74 * 78 * + CASE - 8 WHEN - ( - CAST ( NULL AS INTEGER ) ) / - 43 + - 65 + + ( - NULLIF ( + 88, CAST ( NULL AS INTEGER ) ) ) + + - 14 + - - 55 THEN - COUNT ( * ) WHEN - + 0 * - 81 THEN + ( - + 79 ) ELSE COUNT ( * ) / + 73 * + - 77 * - - ( 3 ) * + + 76 END * - + ( - - 76 ) + + 23 AS col0
----
23

query I rowsort
SELECT ALL COALESCE ( 33, ( + - 98 ) ) * - 28 AS col0
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL - CASE 97 WHEN CASE - - 84 WHEN NULLIF ( - 9, - + 71 * + 78 + - NULLIF ( 64, 2 ) - - NULLIF ( - 7, + COUNT( - ( - - 87 ) ) * 15 / + 1 ) + - + 43 / - MAX( ALL - 64 ) + - 97 ) * 34 THEN - - CAST( NULL AS SIGNED ) * - 6 - + 67 END + - + 63 THEN - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - CASE 97 WHEN CASE - - 84 WHEN NULLIF ( - 9, - + 71 * + 78 + - NULLIF ( 64, 2 ) - - NULLIF ( - 7, + COUNT ( - ( - - 87 ) ) * 15 / + 1 ) + - + 43 / - MAX ( ALL - 64 ) + - 97 ) * 34 THEN - - CAST ( NULL AS INTEGER ) * - 6 - + 67 END + - + 63 THEN - 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT 4 * - - 28 * + + COUNT( * ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-2190
SELECT 4 * - - 28 * + + COUNT ( * ) AS col2
----
112

query I rowsort
SELECT ALL 4 + - 92 * + 43 AS col1
----
-3952

query II rowsort
SELECT 67, 63 * - - 61 + + - ( + - 15 ) AS col1
----
67
3858

query I rowsort
SELECT ( - 17 ) * + - 20 - ( + 65 ) + + - 34 col2
----
241

query I rowsort
SELECT 29 * + 16
----
464

onlyif mysql # aggregate syntax: 
query II rowsort label-2195
SELECT 10 AS col0, - COUNT( * ) + + 94 * - 54 - - 87 AS col2
----
10
-4990

skipif mysql # not compatible
query II rowsort label-2195
SELECT 10 AS col0, - COUNT ( * ) + + 94 * - 54 - - 87 AS col2
----
10
-4990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT NULLIF ( - - 68, CAST( 70 AS SIGNED ) + + ( + - 44 ) ) + 18 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2196
SELECT NULLIF ( - - 68, CAST ( 70 AS INTEGER ) + + ( + - 44 ) ) + 18 AS col2
----
86

query I rowsort
SELECT 42 + - 29
----
13

query I rowsort
SELECT ALL - 15 + + - 5
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2199
SELECT DISTINCT 24 AS col1, 54 AS col0, + CAST( NULL AS SIGNED ) * - 33 AS col1
----
24
54
NULL

skipif mysql # not compatible
query III rowsort label-2199
SELECT DISTINCT 24 AS col1, 54 AS col0, + CAST ( NULL AS INTEGER ) * - 33 AS col1
----
24
54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT ALL 75 col0, COALESCE ( 72, + 32 * COUNT( * ) - + 29 )
----
75
72

skipif mysql # not compatible
query II rowsort label-2200
SELECT ALL 75 col0, COALESCE ( 72, + 32 * COUNT ( * ) - + 29 )
----
75
72

query I rowsort
SELECT - 85 * + - 6 * + 88 AS col2
----
44880

query I rowsort
SELECT ALL - 44 * + - ( - 57 ) AS col0
----
-2508

onlyif mysql # aggregate syntax: 
query II rowsort label-2203
SELECT + 8 + - - MIN( ALL 39 ) * - + COUNT( * ) col1, ( + ( - - 43 ) ) * - + 83 * - 52 AS col0
----
-31
185588

skipif mysql # not compatible
query II rowsort label-2203
SELECT + 8 + - - MIN ( ALL 39 ) * - + COUNT ( * ) col1, ( + ( - - 43 ) ) * - + 83 * - 52 AS col0
----
-31
185588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2204
SELECT - 17 - CASE - + 31 WHEN + 42 THEN - - ( - COUNT( * ) ) WHEN - NULLIF ( + 98, + - 5 ) + + 79 THEN NULL ELSE - 24 * + ( + 77 ) END + - - 65 * + + SUM( DISTINCT + 58 ) + - COUNT( * ) DIV 89
----
5601

skipif mysql # not compatible
query I rowsort label-2204
SELECT - 17 - CASE - + 31 WHEN + 42 THEN - - ( - COUNT ( * ) ) WHEN - NULLIF ( + 98, + - 5 ) + + 79 THEN NULL ELSE - 24 * + ( + 77 ) END + - - 65 * + + SUM ( DISTINCT + 58 ) + - COUNT ( * ) / 89
----
5601

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + - COUNT( * ) * + CASE + 58 WHEN + 10 THEN - ( + 3 ) / - 15 * - 93 + - + SUM( ALL + - 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + - COUNT ( * ) * + CASE + 58 WHEN + 10 THEN - ( + 3 ) / - 15 * - 93 + - + SUM ( ALL + - 50 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT 10 + - MIN( - 41 ) + + 92 * + CASE - 63 WHEN - 14 * ( 50 ) * + 24 THEN + 62 WHEN 49 - ( NULLIF ( + 53, + + 47 ) ) THEN NULL ELSE NULL END * COUNT( * ) * + NULLIF ( CASE + + 99 WHEN - + CAST( - 39 AS SIGNED ) THEN NULL WHEN + 83 THEN - 94 ELSE 17 END, - - CAST( - SUM( ALL + + ( 57 ) ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT 10 + - MIN ( - 41 ) + + 92 * + CASE - 63 WHEN - 14 * ( 50 ) * + 24 THEN + 62 WHEN 49 - ( NULLIF ( + 53, + + 47 ) ) THEN NULL ELSE NULL END * COUNT ( * ) * + NULLIF ( CASE + + 99 WHEN - + CAST ( - 39 AS INTEGER ) THEN NULL WHEN + 83 THEN - 94 ELSE 17 END, - - CAST ( - SUM ( ALL + + ( 57 ) ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT - 44 + + COUNT( * ) * + + 60 DIV + 29 + + 8
----
-34

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 44 + + COUNT ( * ) * + + 60 / + 29 + + 8
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT - COUNT( + + 18 ) * - + 13 + - CAST( 80 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-2208
SELECT - COUNT ( + + 18 ) * - + 13 + - CAST ( 80 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2209
SELECT - 83 AS col2, MIN( + 19 ) * - COUNT( * ) + + 14
----
-83
-5

skipif mysql # not compatible
query II rowsort label-2209
SELECT - 83 AS col2, MIN ( + 19 ) * - COUNT ( * ) + + 14
----
-83
-5

query I rowsort
SELECT - 57 + - 31 + + 51
----
-37

query I rowsort
SELECT 90 + - 64
----
26

query II rowsort
SELECT ALL - 49 AS col0, 39 * + 97
----
-49
3783

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

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

query II rowsort
SELECT ALL - + 50, 8 AS col2
----
-50
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT + 24 + - 21 * MIN( ALL - - 16 ) / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT + 24 + - 21 * MIN ( ALL - - 16 ) / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 20
----
NULL

query I rowsort
SELECT + + NULLIF ( 46, 56 * + 50 ) AS col2
----
46

query II rowsort
SELECT DISTINCT - 64 * + 98, + 4 AS col2
----
-6272
4

query I rowsort
SELECT 72 * 57
----
4104

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT 91 DIV + 58 + + + 97 + + 53 AS col0
----
151

skipif mysql # not compatible
query I rowsort label-2219
SELECT 91 / + 58 + + + 97 + + 53 AS col0
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT 78 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT 78 / 85
----
0

query I rowsort
SELECT DISTINCT - 64 + 28 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT + 10 + - - COUNT( 63 )
----
11

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + 10 + - - COUNT ( 63 )
----
11

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

query I rowsort
SELECT DISTINCT 87 + - 85 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT + MIN( + 88 ) * 70 * CAST( NULL AS SIGNED ) - + COUNT( * ) - - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT + MIN ( + 88 ) * 70 * CAST ( NULL AS INTEGER ) - + COUNT ( * ) - - + 13
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2226
SELECT MIN ( + 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL AVG ( + 11 ) / - CASE - + 7 WHEN - COALESCE ( COUNT( * ), + + ( CAST( NULL AS SIGNED ) ) ) THEN + COUNT( * ) WHEN - + 77 THEN NULL WHEN - NULLIF ( COUNT( * ), - 39 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL AVG ( + 11 ) / - CASE - + 7 WHEN - COALESCE ( COUNT ( * ), + + ( CAST ( NULL AS INTEGER ) ) ) THEN + COUNT ( * ) WHEN - + 77 THEN NULL WHEN - NULLIF ( COUNT ( * ), - 39 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2228
SELECT - CASE + - CAST( NULL AS SIGNED ) WHEN + 1 * - COUNT( * ) * + COALESCE ( - + 84, - 47 - + ( 78 ) ) DIV 14 + - 3 THEN + 41 - MIN( 0 ) ELSE + - 3 END DIV - 16 * + ( 18 ) + - - COALESCE ( - + 16, - - 79 )
----
-16

skipif mysql # not compatible
query I rowsort label-2228
SELECT - CASE + - CAST ( NULL AS INTEGER ) WHEN + 1 * - COUNT ( * ) * + COALESCE ( - + 84, - 47 - + ( 78 ) ) / 14 + - 3 THEN + 41 - MIN ( 0 ) ELSE + - 3 END / - 16 * + ( 18 ) + - - COALESCE ( - + 16, - - 79 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT 29 * + COUNT( * ) - + 97 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2229
SELECT 29 * + COUNT ( * ) - + 97 AS col0
----
-68

query I rowsort
SELECT DISTINCT 51 + + + 67 - 53
----
65

query I rowsort
SELECT - 50 * + 43 + 35 AS col2
----
-2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2232
SELECT ALL 86 + COALESCE ( + - 49, 78 DIV COUNT( 98 ) + 28 + + - NULLIF ( - 6, - + ( - 17 ) * 34 ) + - 69 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL 86 + COALESCE ( + - 49, 78 / COUNT ( 98 ) + 28 + + - NULLIF ( - 6, - + ( - 17 ) * 34 ) + - 69 ) AS col1
----
37

query I rowsort
SELECT + 9 * + + 55 AS col1
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT DISTINCT 15 + + COALESCE ( NULLIF ( - 77, - - COUNT( * ) + - CAST( - 91 AS SIGNED ) ), 92 + ( + + 62 ) * + + 48 ) + - - ( 67 ) * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT 15 + + COALESCE ( NULLIF ( - 77, - - COUNT ( * ) + - CAST ( - 91 AS INTEGER ) ), 92 + ( + + 62 ) * + + 48 ) + - - ( 67 ) * + COUNT ( * )
----
5

query I rowsort
SELECT ALL - 3 + 94
----
91

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

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

query I rowsort
SELECT - ( + 46 ) * - 42
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT DISTINCT - CAST( 23 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - CAST ( 23 AS INTEGER ) AS col1
----
-23

query I rowsort
SELECT DISTINCT - - 64 - - 28 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + ( - COUNT( * ) ) * 33 + - 64 + - 34
----
-131

skipif mysql # not compatible
query I rowsort label-2240
SELECT + ( - COUNT ( * ) ) * 33 + - 64 + - 34
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2241
SELECT ALL + NULLIF ( + SUM( ALL - + 20 ), CAST( + - 25 AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + NULLIF ( + SUM ( ALL - + 20 ), CAST ( + - 25 AS INTEGER ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL - CAST( - CAST( + - 72 AS SIGNED ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - CAST ( - CAST ( + - 72 AS INTEGER ) AS INTEGER )
----
-72

query I rowsort
SELECT DISTINCT - 27 * - - 18 - - + 58 + - 12 AS col2
----
-440

query I rowsort
SELECT - - 16 * - 97 AS col1
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - 51 * 35 + SUM( - 76 )
----
-1861

skipif mysql # not compatible
query I rowsort label-2245
SELECT - 51 * 35 + SUM ( - 76 )
----
-1861

query I rowsort
SELECT + - NULLIF ( NULLIF ( + 59, - 57 ), 69 ) * + 65 * - 41 AS col1
----
157235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT + + COUNT( * ) DIV + 68 + + + 38 + - - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2247
SELECT + + COUNT ( * ) / + 68 + + + 38 + - - COUNT ( * )
----
39

query I rowsort
SELECT - 58 * + 21
----
-1218

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT - 35 DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-2250
SELECT - 35 / + 28
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT + COUNT( * ), 41 + 78 AS col0
----
1
119

skipif mysql # not compatible
query II rowsort label-2251
SELECT + COUNT ( * ), 41 + 78 AS col0
----
1
119

query I rowsort
SELECT - 5 - 93 AS col1
----
-98

query II rowsort
SELECT ALL + 59, 81 col1
----
59
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT 22 * - - 7 + + SUM( DISTINCT + ( + 33 ) ) + + COUNT( * )
----
188

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT 22 * - - 7 + + SUM ( DISTINCT + ( + 33 ) ) + + COUNT ( * )
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + COALESCE ( + COUNT( * ), - 2, + 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + COALESCE ( + COUNT ( * ), - 2, + 46 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2256
SELECT 96 * - 64 + - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
-6145
NULL

skipif mysql # not compatible
query II rowsort label-2256
SELECT 96 * - 64 + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
-6145
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL COUNT( * ) * - + SUM( DISTINCT 30 ) * + ( - 78 ) * 28 + + 71 col1
----
65591

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL COUNT ( * ) * - + SUM ( DISTINCT 30 ) * + ( - 78 ) * 28 + + 71 col1
----
65591

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT COALESCE ( - 91, - + MIN( - + 51 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2259
SELECT COALESCE ( - 91, - + MIN ( - + 51 ) ) AS col1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT - 28 - + MAX( ALL - 88 ) + + + 78 - + + 36 + - - ( + 47 )
----
149

skipif mysql # not compatible
query I rowsort label-2261
SELECT - 28 - + MAX ( ALL - 88 ) + + + 78 - + + 36 + - - ( + 47 )
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2262
SELECT + 45 DIV + + COALESCE ( - 70, - - ( - AVG ( + + 99 ) ) + SUM( + 65 ) ) AS col2, 23
----
0
23

skipif mysql # not compatible
query II rowsort label-2262
SELECT + 45 / + + COALESCE ( - 70, - - ( - AVG ( + + 99 ) ) + SUM ( + 65 ) ) AS col2, 23
----
0
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2263
SELECT DISTINCT + 9 * CAST( + ( 76 ) AS SIGNED ) * 72 + + 26 DIV + + 13 AS col0
----
49250

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + 9 * CAST ( + ( 76 ) AS INTEGER ) * 72 + + 26 / + + 13 AS col0
----
49250

onlyif mysql # aggregate syntax: 
query II rowsort label-2264
SELECT ALL - COUNT( * ) * + COUNT( * ) * - 48 + + 75, 5 col1
----
123
5

skipif mysql # not compatible
query II rowsort label-2264
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - 48 + + 75, 5 col1
----
123
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + COUNT( * ) + - - 64 col1
----
65

skipif mysql # not compatible
query I rowsort label-2267
SELECT + COUNT ( * ) + - - 64 col1
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT - - 93 * - 35 * - - 9 * - 51 + + + COALESCE ( - COUNT( * ), 49 ) + - + MIN( ALL 86 ) * - 3 + - - 22 * ( 86 ) AS col1
----
1496194

skipif mysql # not compatible
query I rowsort label-2269
SELECT - - 93 * - 35 * - - 9 * - 51 + + + COALESCE ( - COUNT ( * ), 49 ) + - + MIN ( ALL 86 ) * - 3 + - - 22 * ( 86 ) AS col1
----
1496194

query II rowsort
SELECT - 72, 40 col0
----
-72
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT - + 36 + + + 95 DIV MIN( - 78 ) + + - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-2271
SELECT - + 36 + + + 95 / MIN ( - 78 ) + + - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL + SUM( ALL - + 94 ) * - 12 AS col2
----
1128

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + SUM ( ALL - + 94 ) * - 12 AS col2
----
1128

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

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

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

query II rowsort
SELECT ALL - ( - ( - 61 ) ), 55 AS col1
----
-61
55

query II rowsort
SELECT ALL 90, + 95 + + 64 AS col0
----
90
159

query I rowsort
SELECT ALL - 31 * - 49 AS col1
----
1519

query II rowsort
SELECT + 92 + + 74 - + 27 AS col2, - 88
----
139
-88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * + AVG ( - - 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * + AVG ( - - 18 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT - + 53, + SUM( ALL + 68 ) AS col1
----
-53
68

skipif mysql # not compatible
query II rowsort label-2282
SELECT - + 53, + SUM ( ALL + 68 ) AS col1
----
-53
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + - 29 + + + SUM( DISTINCT - - 3 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2283
SELECT + - 29 + + + SUM ( DISTINCT - - 3 ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2284
SELECT + 19 * - - COUNT( * ) * - - CAST( NULL AS DECIMAL ) * - 88 - - 87 * + COUNT( * ) * - + 84 - - - 95 AS col1, 91 * + 86
----
NULL
7826

skipif mysql # not compatible
query II rowsort label-2284
SELECT + 19 * - - COUNT ( * ) * - - CAST ( NULL AS REAL ) * - 88 - - 87 * + COUNT ( * ) * - + 84 - - - 95 AS col1, 91 * + 86
----
NULL
7826

query I rowsort
SELECT + + 54 + - + 9 + + - 9 + + COALESCE ( - 18, + 44 - + 47 ) col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2286
SELECT ALL CAST( NULL AS SIGNED ) AS col1, CASE - 78 WHEN + + 51 + + 64 + - + ( + - 32 ) THEN - 67 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2286
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, CASE - 78 WHEN + + 51 + + 64 + - + ( + - 32 ) THEN - 67 END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT + + CAST( NULL AS SIGNED ) / - 59 - AVG ( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT + + CAST ( NULL AS INTEGER ) / - 59 - AVG ( + 78 )
----
NULL

query I rowsort
SELECT ALL + 4 + - 65
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT MIN( ALL 43 ) + - 96 + + 46 * + - 89 AS col2
----
-4147

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT MIN ( ALL 43 ) + - 96 + + 46 * + - 89 AS col2
----
-4147

query I rowsort
SELECT DISTINCT + 19 * + 44 AS col0
----
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2291
SELECT ALL + ( 26 ) DIV - + 86 DIV - 13 * + 61 * - CAST( NULL AS SIGNED ) + 84 + + 61 * + MAX( ALL + 23 ) - - + COUNT( * ) + + + 14 + + 88 * - 81 DIV + 76 AS col1, 29 DIV + COUNT( * ) col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2291
SELECT ALL + ( 26 ) / - + 86 / - 13 * + 61 * - CAST ( NULL AS INTEGER ) + 84 + + 61 * + MAX ( ALL + 23 ) - - + COUNT ( * ) + + + 14 + + 88 * - 81 / + 76 AS col1, 29 / + COUNT ( * ) col2
----
NULL
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2292
SELECT CAST( NULL AS SIGNED ) / - 1 + + CASE MIN( ALL - 63 ) WHEN - - 17 * - 63 THEN NULL WHEN - COUNT( * ) * - 88 + - - 14 * 94 + - - 4 / + ( ( + 85 ) ) THEN 78 + COUNT( * ) + - - 14 ELSE NULL END * + + COALESCE ( - - 43, COUNT( * ) + MIN( ALL + ( + 8 ) ) + + 86 * + ( - 67 ), 19 * + 59 + - 95 * + - 28 ) * + - 19, 40 col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2292
SELECT CAST ( NULL AS INTEGER ) / - 1 + + CASE MIN ( ALL - 63 ) WHEN - - 17 * - 63 THEN NULL WHEN - COUNT ( * ) * - 88 + - - 14 * 94 + - - 4 / + ( ( + 85 ) ) THEN 78 + COUNT ( * ) + - - 14 ELSE NULL END * + + COALESCE ( - - 43, COUNT ( * ) + MIN ( ALL + ( + 8 ) ) + + 86 * + ( - 67 ), 19 * + 59 + - 95 * + - 28 ) * + - 19, 40 col2
----
NULL
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT ALL CAST( NULL AS SIGNED ) / - - ( - - 53 ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL CAST ( NULL AS INTEGER ) / - - ( - - 53 ) + - 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT DISTINCT COUNT( * ) DIV + COALESCE ( + NULLIF ( + - 79, - CASE + 84 WHEN - + 50 * 62 - - 30 THEN NULL WHEN CASE 8 WHEN + AVG ( - 51 ) THEN NULL WHEN 67 * COALESCE ( - 47, 62, - - 41 + - NULLIF ( + + 82, - 51 - 12 * + COALESCE ( + 96, 40 * - 86 + - 39, + COUNT( * ) * COUNT( DISTINCT + - 41 ) ) + - 12 ) ) * + CASE 43 WHEN 84 + + + NULLIF ( + 79, - - ( COUNT( * ) ) - + ( - 73 ) ) + - - 85 * 45 THEN NULL WHEN - - ( ( 90 ) ) + - COUNT( * ) * + ( 32 ) THEN + + 60 ELSE + 81 * 61 END + 52 * - COUNT( * ) THEN COUNT( * ) + - 99 * 55 ELSE NULL END DIV 91 THEN ( + 83 ) DIV 36 END ), - MAX( ALL + 25 ), 71 DIV + 14 - + CASE + SUM( ALL + 44 ) WHEN 70 * + 94 THEN 58 - 83 END * - 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT COUNT ( * ) / + COALESCE ( + NULLIF ( + - 79, - CASE + 84 WHEN - + 50 * 62 - - 30 THEN NULL WHEN CASE 8 WHEN + AVG ( - 51 ) THEN NULL WHEN 67 * COALESCE ( - 47, 62, - - 41 + - NULLIF ( + + 82, - 51 - 12 * + COALESCE ( + 96, 40 * - 86 + - 39, + COUNT ( * ) * COUNT ( DISTINCT + - 41 ) ) + - 12 ) ) * + CASE 43 WHEN 84 + + + NULLIF ( + 79, - - ( COUNT ( * ) ) - + ( - 73 ) ) + - - 85 * 45 THEN NULL WHEN - - ( ( 90 ) ) + - COUNT ( * ) * + ( 32 ) THEN + + 60 ELSE + 81 * 61 END + 52 * - COUNT ( * ) THEN COUNT ( * ) + - 99 * 55 ELSE NULL END / 91 THEN ( + 83 ) / 36 END ), - MAX ( ALL + 25 ), 71 / + 14 - + CASE + SUM ( ALL + 44 ) WHEN 70 * + 94 THEN 58 - 83 END * - 41 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2295
SELECT + 58 + - 88 AS col1, - 99 * COUNT( * ) DIV - - ( + + 59 )
----
-30
-1

skipif mysql # not compatible
query II rowsort label-2295
SELECT + 58 + - 88 AS col1, - 99 * COUNT ( * ) / - - ( + + 59 )
----
-30
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2296
SELECT CAST( + + COALESCE ( + + COUNT( * ), + ( + 53 ), - SUM( DISTINCT - ( - - 46 ) ) DIV 61 - 38 ) AS SIGNED ) DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT CAST ( + + COALESCE ( + + COUNT ( * ), + ( + 53 ), - SUM ( DISTINCT - ( - - 46 ) ) / 61 - 38 ) AS INTEGER ) / + 71 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2297
SELECT - 61 * - 95 + + CASE - 32 WHEN + + 72 * - 80 * + 91 * COUNT( * ) / - 5 - CAST( NULL AS SIGNED ) + - - 5 + + 73 - - + 60 * + 38 * - + 50 THEN NULL ELSE - CAST( NULL AS DECIMAL ) END + + MIN( + COALESCE ( - 11, + - 27, 35 + - 41 + - - 36 * 49 + + 26 ) ) * - 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 61 * - 95 + + CASE - 32 WHEN + + 72 * - 80 * + 91 * COUNT ( * ) / - 5 - CAST ( NULL AS INTEGER ) + - - 5 + + 73 - - + 60 * + 38 * - + 50 THEN NULL ELSE - CAST ( NULL AS REAL ) END + + MIN ( + COALESCE ( - 11, + - 27, 35 + - 41 + - - 36 * 49 + + 26 ) ) * - 89 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL + 29 + - 56 * - + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + 29 + - 56 * - + COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT COUNT( * ) - + 27 + - ( - 58 ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT COUNT ( * ) - + 27 + - ( - 58 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT 29 + - 61 + + 66 + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2300
SELECT 29 + - 61 + + 66 + + COUNT ( * )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2301
SELECT - NULLIF ( - + COUNT( * ), + - 49 + - + 49 + - COUNT( - - ( - ( + 35 ) ) ) + 19 * - + 69 ) * ( - + 57 ) * - - COALESCE ( - + COUNT( * ), - ( + 29 ) + - 30 DIV + 76, - COALESCE ( + + COALESCE ( + + MIN( DISTINCT 56 ), - - 38 * + 12 * - 73 + + + 28, + + NULLIF ( - - 65, 45 + - 26 ) ), - 74 ), - COUNT( * ), + - 36 + + CASE 1 WHEN - 34 THEN NULL ELSE + 19 * - - CAST( 48 AS SIGNED ) * COUNT( ALL - - 75 ) * - 41 DIV + + COUNT( * ) + - 93 + - MAX( DISTINCT 43 ) END ) + SUM( ALL ( + 46 ) ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-2301
SELECT - NULLIF ( - + COUNT ( * ), + - 49 + - + 49 + - COUNT ( - - ( - ( + 35 ) ) ) + 19 * - + 69 ) * ( - + 57 ) * - - COALESCE ( - + COUNT ( * ), - ( + 29 ) + - 30 / + 76, - COALESCE ( + + COALESCE ( + + MIN ( DISTINCT 56 ), - - 38 * + 12 * - 73 + + + 28, + + NULLIF ( - - 65, 45 + - 26 ) ), - 74 ), - COUNT ( * ), + - 36 + + CASE 1 WHEN - 34 THEN NULL ELSE + 19 * - - CAST ( 48 AS INTEGER ) * COUNT ( ALL - - 75 ) * - 41 / + + COUNT ( * ) + - 93 + - MAX ( DISTINCT 43 ) END ) + SUM ( ALL ( + 46 ) ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - 42 * COUNT( * ) * 51 - - - 8 AS col0
----
-2150

skipif mysql # not compatible
query I rowsort label-2302
SELECT - 42 * COUNT ( * ) * 51 - - - 8 AS col0
----
-2150

query II rowsort
SELECT 57 * + 69, 35 AS col0
----
3933
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT MIN( + 19 ) + + + 59 * 54 AS col1
----
3205

skipif mysql # not compatible
query I rowsort label-2304
SELECT MIN ( + 19 ) + + + 59 * 54 AS col1
----
3205

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

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

query I rowsort
SELECT + 56 * - ( 8 ) + 58
----
-390

query I rowsort
SELECT DISTINCT - ( - COALESCE ( - 41, + 34 ) ) AS col0
----
-41

query I rowsort
SELECT DISTINCT + - 31 * - 92
----
2852

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2309
SELECT ALL + - 81 * + 2 col0, CASE + 19 WHEN - COUNT( * ) THEN NULL ELSE 0 DIV 21 + COALESCE ( - 37, - - 16 ) END
----
-162
-37

skipif mysql # not compatible
query II rowsort label-2309
SELECT ALL + - 81 * + 2 col0, CASE + 19 WHEN - COUNT ( * ) THEN NULL ELSE 0 / 21 + COALESCE ( - 37, - - 16 ) END
----
-162
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT - CAST( + - 44 AS SIGNED ) * 49 + + ( COALESCE ( + 70, - ( + 85 ), MAX( - 0 ) ) ) col0
----
2226

skipif mysql # not compatible
query I rowsort label-2310
SELECT - CAST ( + - 44 AS INTEGER ) * 49 + + ( COALESCE ( + 70, - ( + 85 ), MAX ( - 0 ) ) ) col0
----
2226

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT ALL - 38 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - 38 / - 57
----
0

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

skipif mysql # not compatible
query I rowsort label-2312
SELECT + MAX ( 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - COUNT( + 84 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2313
SELECT - COUNT ( + 84 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL COALESCE ( 79, - COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL COALESCE ( 79, - COUNT ( * ) )
----
79

query I rowsort
SELECT COALESCE ( - - 39, + - 75 + - 26 ) * 71 AS col2
----
2769

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT ALL + 44 * - 50 AS col0, + COUNT( * ) AS col2
----
-2200
1

skipif mysql # not compatible
query II rowsort label-2316
SELECT ALL + 44 * - 50 AS col0, + COUNT ( * ) AS col2
----
-2200
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2318
SELECT ALL - 33 + + - 73 AS col0, COUNT( * ) DIV - 77
----
-106
0

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL - 33 + + - 73 AS col0, COUNT ( * ) / - 77
----
-106
0

query I rowsort
SELECT DISTINCT + 75 + 86
----
161

query I rowsort
SELECT ALL + COALESCE ( + 35, + 89 + + + 88, + - 81 ) + + 57
----
92

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

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT + 51 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 79 AS col1, - 91 * - + 81 AS col0
----
79
7371

query I rowsort
SELECT ( - 97 ) * - 22
----
2134

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT - ( 51 ) DIV 51 + + 13
----
12

skipif mysql # not compatible
query I rowsort label-2324
SELECT - ( 51 ) / 51 + + 13
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ( SUM( ALL + 32 ) ) * - 75
----
-2400

skipif mysql # not compatible
query I rowsort label-2325
SELECT ( SUM ( ALL + 32 ) ) * - 75
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL 63 * - 56 * + - COUNT( * ) * - 30 AS col0
----
-105840

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL 63 * - 56 * + - COUNT ( * ) * - 30 AS col0
----
-105840

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT 34 * 85 + MAX( ALL + - 41 )
----
2849

skipif mysql # not compatible
query I rowsort label-2327
SELECT 34 * 85 + MAX ( ALL + - 41 )
----
2849

query I rowsort
SELECT ALL 74 - + + 89 * 68
----
-5978

query I rowsort
SELECT 38 * - + 88
----
-3344

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT 92 DIV + - COALESCE ( + 58, + 73 * 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT 92 / + - COALESCE ( + 58, + 73 * 44 ) AS col0
----
-1

query I rowsort
SELECT ALL 27 * + 60
----
1620

query I rowsort
SELECT 22 + + 52 col2
----
74

query I rowsort
SELECT 28 * - + 64 * - + ( + + 62 )
----
111104

query I rowsort
SELECT - 75 * 37 + - 63 + - - 39 AS col1
----
-2799

query II rowsort
SELECT 67 - - + ( 58 ), 56 AS col2
----
125
56

query I rowsort
SELECT ALL 20 * - 66 AS col2
----
-1320

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT 47 DIV 6
----
7

skipif mysql # not compatible
query I rowsort label-2337
SELECT 47 / 6
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT ALL CAST( - ( + 23 ) AS SIGNED ) * ( + 72 ) col1
----
-1656

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL CAST ( - ( + 23 ) AS INTEGER ) * ( + 72 ) col1
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT 66 + NULLIF ( COUNT( * ) + + ( - COUNT( * ) ), + 38 * 4 ) * + 52
----
66

skipif mysql # not compatible
query I rowsort label-2339
SELECT 66 + NULLIF ( COUNT ( * ) + + ( - COUNT ( * ) ), + 38 * 4 ) * + 52
----
66

query I rowsort
SELECT ALL 78 + - 16
----
62

query I rowsort
SELECT ALL + 36 * + 9
----
324

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

skipif mysql # not compatible
query I rowsort label-2342
SELECT 82 * CAST ( COUNT ( * ) AS INTEGER ) col1
----
82

query I rowsort
SELECT ALL + 63 + NULLIF ( 75, 26 )
----
138

query I rowsort
SELECT + 99 * 92 + 29
----
9137

query I rowsort
SELECT DISTINCT + 91 + 16
----
107

query I rowsort
SELECT ALL - 36 * - 48 AS col0
----
1728

query I rowsort
SELECT 72 + 41
----
113

query I rowsort
SELECT 8 * 25
----
200

query I rowsort
SELECT DISTINCT - 18 * + 15
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT ALL + 64 + - 33 * CAST( 74 AS SIGNED )
----
-2378

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + 64 + - 33 * CAST ( 74 AS INTEGER )
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT 88 + + MAX( DISTINCT - 19 + 79 )
----
148

skipif mysql # not compatible
query I rowsort label-2351
SELECT 88 + + MAX ( DISTINCT - 19 + 79 )
----
148

query I rowsort
SELECT ALL - 37 * 38 AS col0
----
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT 98 + ( - 54 + - 25 ) * COUNT( * ) col0
----
19

skipif mysql # not compatible
query I rowsort label-2353
SELECT 98 + ( - 54 + - 25 ) * COUNT ( * ) col0
----
19

query I rowsort
SELECT ALL COALESCE ( 40, - 54 ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL 29 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL 29 / + 34
----
0

query I rowsort
SELECT - 35 + 27 AS col0
----
-8

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

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

query I rowsort
SELECT - 52 + - 44 AS col0
----
-96

query I rowsort
SELECT ALL COALESCE ( - 51, + 38, 98 ) AS col2
----
-51

query I rowsort
SELECT + 29 + 36 AS col0
----
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT ALL - ( + ( + 59 ) ) DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - ( + ( + 59 ) ) / 59
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT DISTINCT CASE 20 WHEN 55 / 18 THEN CASE COUNT( * ) WHEN + SUM( ALL - 31 ) * + 30 THEN 96 WHEN 53 THEN NULL END - + 16 * CAST( NULL AS SIGNED ) ELSE 12 * ( 91 ) END AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT CASE 20 WHEN 55 / 18 THEN CASE COUNT ( * ) WHEN + SUM ( ALL - 31 ) * + 30 THEN 96 WHEN 53 THEN NULL END - + 16 * CAST ( NULL AS INTEGER ) ELSE 12 * ( 91 ) END AS col0
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT - 16 DIV 8 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 16 / 8 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT DISTINCT - 83 DIV + NULLIF ( 93 * 97, + MAX( 63 ) + 61 * 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - 83 / + NULLIF ( 93 * 97, + MAX ( 63 ) + 61 * 74 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 22 * - 41
----
-902

query I rowsort
SELECT DISTINCT + 11 * 81
----
891

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2369
SELECT NULLIF ( CASE + 43 WHEN 99 * - 73 + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * SUM( + NULLIF ( - 47, + 60 ) ) THEN - ( + 17 ) - 48 ELSE - 99 END, + 22 * NULLIF ( COALESCE ( - 46, + 31, + ( - CASE + 14 WHEN + 98 THEN + 70 * - 19 ELSE - COALESCE ( CASE NULLIF ( 18, + 35 ) WHEN + 32 THEN NULL ELSE - 38 END, COUNT( * ) / 82 ) + 63 END ) / + 38 + 65 * - COALESCE ( 56, - MIN( DISTINCT 19 ) - 13 * + CASE 34 WHEN 64 * 50 - + COUNT( * ) THEN + 58 WHEN + 60 THEN NULL ELSE + COUNT( * ) END ) ) * - CAST( NULL AS SIGNED ), - 45 ) + 50 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2369
SELECT NULLIF ( CASE + 43 WHEN 99 * - 73 + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * SUM ( + NULLIF ( - 47, + 60 ) ) THEN - ( + 17 ) - 48 ELSE - 99 END, + 22 * NULLIF ( COALESCE ( - 46, + 31, + ( - CASE + 14 WHEN + 98 THEN + 70 * - 19 ELSE - COALESCE ( CASE NULLIF ( 18, + 35 ) WHEN + 32 THEN NULL ELSE - 38 END, COUNT ( * ) / 82 ) + 63 END ) / + 38 + 65 * - COALESCE ( 56, - MIN ( DISTINCT 19 ) - 13 * + CASE 34 WHEN 64 * 50 - + COUNT ( * ) THEN + 58 WHEN + 60 THEN NULL ELSE + COUNT ( * ) END ) ) * - CAST ( NULL AS INTEGER ), - 45 ) + 50 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT 3 * ( + 18 ) + + COUNT( ALL + 37 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2370
SELECT 3 * ( + 18 ) + + COUNT ( ALL + 37 ) AS col1
----
55

query I rowsort
SELECT + 27 * 56 AS col0
----
1512

query I rowsort
SELECT + 32 * + 65
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + CASE 43 WHEN 76 + 85 * COUNT( * ) THEN NULL WHEN 4 THEN 10 ELSE NULL END + - ( 40 ) * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT + CASE 43 WHEN 76 + 85 * COUNT ( * ) THEN NULL WHEN 4 THEN 10 ELSE NULL END + - ( 40 ) * 51 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT ALL 73 DIV 5 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL 73 / 5 AS col1
----
14

query I rowsort
SELECT DISTINCT - - 19 * - 97 + 69 AS col2
----
-1774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT ALL - 65 * + CAST( - 29 AS SIGNED ) + NULLIF ( - 60, - 21 ) AS col0
----
1825

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - 65 * + CAST ( - 29 AS INTEGER ) + NULLIF ( - 60, - 21 ) AS col0
----
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL - 30 * + 68 + COUNT( * )
----
-2039

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - 30 * + 68 + COUNT ( * )
----
-2039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2378
SELECT + MAX( ALL 95 ) * + CAST( 1 * - 98 AS SIGNED )
----
-9310

skipif mysql # not compatible
query I rowsort label-2378
SELECT + MAX ( ALL 95 ) * + CAST ( 1 * - 98 AS INTEGER )
----
-9310

query I rowsort
SELECT + - 65 * + 3 - 19 AS col0
----
-214

query I rowsort
SELECT - 81 + 47 * 63 AS col2
----
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT 51 * 45 + 85 DIV 48
----
2296

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT 51 * 45 + 85 / 48
----
2296

query I rowsort
SELECT ALL - + 25 * 57 + 34 col0
----
-1391

query I rowsort
SELECT + + 81 * - 55 AS col1
----
-4455

query I rowsort
SELECT - + COALESCE ( ( 10 ), + 93 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT + MIN( 76 ) + COUNT( * ) DIV + 22
----
76

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT + MIN ( 76 ) + COUNT ( * ) / + 22
----
76

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

query I rowsort
SELECT - 29 * - 96 AS col2
----
2784

query I rowsort
SELECT ALL CASE WHEN NOT + 10 IS NOT NULL THEN + 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - COUNT( - 7 ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - COUNT ( - 7 ) * 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL CASE - - MIN( - 3 ) WHEN - 63 THEN - 2 / + 7 + CAST( 45 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL CASE - - MIN ( - 3 ) WHEN - 63 THEN - 2 / + 7 + CAST ( 45 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT - 17 - + COALESCE ( 30, - 71 * 69 + + 86 ) DIV + 84 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2391
SELECT - 17 - + COALESCE ( 30, - 71 * 69 + + 86 ) / + 84 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT MIN( - + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT MIN ( - + 25 )
----
-25

query I rowsort
SELECT - 93 - + 9 AS col2
----
-102

query I rowsort
SELECT ALL 99 * + - 31 * + 62
----
-190278

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL SUM( ALL + ( 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL SUM ( ALL + ( 16 ) ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 88 * 12 * 93 AS col1
----
-98208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT ALL CAST( - + SUM( - 80 ) AS SIGNED )
----
80

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

query I rowsort
SELECT ALL COALESCE ( - 7, 62 + + 39 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT DISTINCT CASE + + ( + 49 ) WHEN + 90 / + CAST( NULLIF ( COUNT( DISTINCT 73 ), - 80 * + 89 ) AS SIGNED ) THEN + 93 WHEN 28 * + AVG ( ALL - 35 * + 75 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT CASE + + ( + 49 ) WHEN + 90 / + CAST ( NULLIF ( COUNT ( DISTINCT 73 ), - 80 * + 89 ) AS INTEGER ) THEN + 93 WHEN 28 * + AVG ( ALL - 35 * + 75 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - 39 - + SUM( - 87 )
----
48

skipif mysql # not compatible
query I rowsort label-2400
SELECT - 39 - + SUM ( - 87 )
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT - 9 + - 51 - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2402
SELECT - 9 + - 51 - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT COUNT( * ) DIV - COALESCE ( + 76, 97 DIV 44 ) + - 49 DIV + 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2403
SELECT COUNT ( * ) / - COALESCE ( + 76, 97 / 44 ) + - 49 / + 46 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - SUM( DISTINCT 40 ) + 32
----
-8

skipif mysql # not compatible
query I rowsort label-2404
SELECT - SUM ( DISTINCT 40 ) + 32
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2405
SELECT ALL + CAST( NULL AS DECIMAL ) / + - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL + CAST ( NULL AS REAL ) / + - 69 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT DISTINCT - 13 DIV + + 42 + + 58
----
58

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - 13 / + + 42 + + 58
----
58

query I rowsort
SELECT + NULLIF ( + NULLIF ( 86, 96 ), + COALESCE ( - 89, 66 - + 64 ) ) * 33 AS col2
----
2838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT ALL - CASE + 95 WHEN 51 THEN NULL WHEN + 24 THEN - 37 + 7 ELSE + 27 END DIV COUNT( * ) + + 48
----
21

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - CASE + 95 WHEN 51 THEN NULL WHEN + 24 THEN - 37 + 7 ELSE + 27 END / COUNT ( * ) + + 48
----
21

query I rowsort
SELECT DISTINCT - + 11 * 34 * 63 col0
----
-23562

query I rowsort
SELECT + 70 + 14
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT ALL 86 * + CAST( NULL AS SIGNED ) * 11 + 3 * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL 86 * + CAST ( NULL AS INTEGER ) * 11 + 3 * 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT COUNT( * ) * + - 69 * + COUNT( * ) - + 8 * + 40
----
-389

skipif mysql # not compatible
query I rowsort label-2412
SELECT COUNT ( * ) * + - 69 * + COUNT ( * ) - + 8 * + 40
----
-389

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT DISTINCT 71 DIV - - 98
----
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT 71 / - - 98
----
0

query I rowsort
SELECT ALL 33 - + 11
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT - 73 * COALESCE ( 70, + 80 + 57, - COUNT( * ) DIV + 93 ) + 59
----
-5051

skipif mysql # not compatible
query I rowsort label-2415
SELECT - 73 * COALESCE ( 70, + 80 + 57, - COUNT ( * ) / + 93 ) + 59
----
-5051

query I rowsort
SELECT + ( + - 46 ) - 73 AS col1
----
-119

query I rowsort
SELECT 81 * - - ( 88 )
----
7128

query I rowsort
SELECT ALL 56 * 91 + 68 * - 46
----
1968

query I rowsort
SELECT 68 + - 20
----
48

query I rowsort
SELECT 27 + + 42
----
69

query I rowsort
SELECT 13 + - 22 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL SUM( ALL - 26 ) * - 48
----
1248

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL SUM ( ALL - 26 ) * - 48
----
1248

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

query I rowsort
SELECT 26 * - - 18
----
468

query I rowsort
SELECT ALL 58 * - 86
----
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT COUNT( * ) + - 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2426
SELECT COUNT ( * ) + - 92 AS col1
----
-91

query II rowsort
SELECT DISTINCT 41 AS col0, 51 AS col1
----
41
51

query I rowsort
SELECT 51 * 1 AS col2
----
51

query I rowsort
SELECT 57 + + 53 AS col2
----
110

query II rowsort
SELECT 84 AS col2, 47 * 42 * 4
----
84
7896

query I rowsort
SELECT 67 + - 38
----
29

query I rowsort
SELECT ALL + 39 + + 66 * - 95
----
-6231

query I rowsort
SELECT ALL 68 + 63 + - 77 AS col2
----
54

query I rowsort
SELECT DISTINCT + 21 * - 34 AS col2
----
-714

query I rowsort
SELECT ALL + 12 + - + 48 + - 97
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT 66 * + - MIN( DISTINCT - 73 )
----
4818

skipif mysql # not compatible
query I rowsort label-2436
SELECT 66 * + - MIN ( DISTINCT - 73 )
----
4818

query I rowsort
SELECT ALL 62 + + + 68 + 50 AS col0
----
180

query I rowsort
SELECT DISTINCT - 49 + - 73 AS col1
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT DISTINCT + SUM( - 54 ) + - 6 + ( 30 ) DIV - ( ( - COUNT( 90 ) ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + SUM ( - 54 ) + - 6 + ( 30 ) / - ( ( - COUNT ( 90 ) ) ) AS col1
----
-30

query I rowsort
SELECT + 71 * + 51 col2
----
3621

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT - 82 AS col0, + ( + COUNT( ALL 91 ) ) + 56
----
-82
57

skipif mysql # not compatible
query II rowsort label-2441
SELECT - 82 AS col0, + ( + COUNT ( ALL 91 ) ) + 56
----
-82
57

query I rowsort
SELECT DISTINCT - 19 + + 87
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL + MIN( + 14 ) + 39 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + MIN ( + 14 ) + 39 AS col2
----
53

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

skipif mysql # not compatible
query I rowsort label-2444
SELECT COUNT ( * ) * + 44 * - 24 AS col2
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT - + CASE WHEN NOT 23 NOT BETWEEN ( - 2 + 39 ) AND - 63 THEN NULL ELSE ( - 73 ) DIV + 32 END col1
----
2

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - + CASE WHEN NOT 23 NOT BETWEEN ( - 2 + 39 ) AND - 63 THEN NULL ELSE ( - 73 ) / + 32 END col1
----
2

query I rowsort
SELECT + 50 * + + 86 - + + 13 AS col1
----
4287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL 60 * - CAST( 49 AS SIGNED ) + - 19 * CASE + 7 + - CASE AVG ( + 67 ) WHEN + 82 THEN - MIN( 35 ) + - ( - 80 + 81 ) * - 70 WHEN - 55 THEN NULL ELSE NULL END WHEN - 52 THEN NULL WHEN + 25 THEN 16 * 67 WHEN - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) THEN 80 + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL 60 * - CAST ( 49 AS INTEGER ) + - 19 * CASE + 7 + - CASE AVG ( + 67 ) WHEN + 82 THEN - MIN ( 35 ) + - ( - 80 + 81 ) * - 70 WHEN - 55 THEN NULL ELSE NULL END WHEN - 52 THEN NULL WHEN + 25 THEN 16 * 67 WHEN - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN 80 + 41 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT 64 * - 57 + + + 80 - + 39 * 45 * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT 64 * - 57 + + + 80 - + 39 * 45 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT DISTINCT - CASE - - 31 WHEN - COUNT( * ) + 12 THEN NULL WHEN CAST( NULL AS SIGNED ) - - COUNT( * ) THEN - ( CAST( NULLIF ( + COUNT( * ), + 83 ) AS SIGNED ) ) END - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - CASE - - 31 WHEN - COUNT ( * ) + 12 THEN NULL WHEN CAST ( NULL AS INTEGER ) - - COUNT ( * ) THEN - ( CAST ( NULLIF ( + COUNT ( * ), + 83 ) AS INTEGER ) ) END - + 66
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT + - MIN( ALL - - CAST( - - 87 AS SIGNED ) )
----
-87

skipif mysql # not compatible
query I rowsort label-2451
SELECT + - MIN ( ALL - - CAST ( - - 87 AS INTEGER ) )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2452
SELECT ALL + - 67 - - - 1 DIV + CASE 3 WHEN 4 THEN 66 + COUNT( * ) ELSE - 36 END + - 96 * + 85
----
-8227

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + - 67 - - - 1 / + CASE 3 WHEN 4 THEN 66 + COUNT ( * ) ELSE - 36 END + - 96 * + 85
----
-8227

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 87 * COUNT( * ) * + 26 col1
----
-2262

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 87 * COUNT ( * ) * + 26 col1
----
-2262

query I rowsort
SELECT ALL + 9 * - 2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT - COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - SUM( ALL 90 ) * + CASE + 42 WHEN 54 THEN 86 WHEN - 35 THEN NULL WHEN NULLIF ( - CAST( NULL AS SIGNED ), - 74 ) THEN - 79 + + 6 * + 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - SUM ( ALL 90 ) * + CASE + 42 WHEN 54 THEN 86 WHEN - 35 THEN NULL WHEN NULLIF ( - CAST ( NULL AS INTEGER ), - 74 ) THEN - 79 + + 6 * + 55 END )
----
NULL

query I rowsort
SELECT - 71 * 19 + + - 90 + 74 * - 29 col0
----
-3585

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL - ( - + SUM( - 11 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - ( - + SUM ( - 11 ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT MAX( DISTINCT - 86 ) * - 65 - - 39 * - COUNT( * )
----
5551

skipif mysql # not compatible
query I rowsort label-2459
SELECT MAX ( DISTINCT - 86 ) * - 65 - - 39 * - COUNT ( * )
----
5551

query I rowsort
SELECT - CASE - + 83 WHEN - ( 19 ) + 99 THEN - 99 END * 78 + + 54 * 60
----
NULL

query I rowsort
SELECT ALL + ( - - 27 ) - + + 47 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2462
SELECT ALL CAST( + - 11 AS SIGNED ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL CAST ( + - 11 AS INTEGER ) / - 45
----
0

query I rowsort
SELECT 13 - - 68 * 31
----
2121

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

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

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

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

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

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

query I rowsort
SELECT ALL 22 * - - ( + - 15 ) AS col0
----
-330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT 47 - - COUNT( ALL ( 83 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2469
SELECT 47 - - COUNT ( ALL ( 83 ) ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT 15 + - CAST( NULL AS SIGNED ) * - 20 * - COUNT( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT 15 + - CAST ( NULL AS INTEGER ) * - 20 * - COUNT ( 9 )
----
NULL

query II rowsort
SELECT DISTINCT 27 + + 83, 91 AS col1
----
110
91

query I rowsort
SELECT ALL 50 + + 85 col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT 67 DIV - MIN( - 14 )
----
4

skipif mysql # not compatible
query I rowsort label-2473
SELECT 67 / - MIN ( - 14 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2474
SELECT ALL 62 + + 86 AS col2, - 29 * - + COUNT( * ) * CAST( NULL AS SIGNED )
----
148
NULL

skipif mysql # not compatible
query II rowsort label-2474
SELECT ALL 62 + + 86 AS col2, - 29 * - + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
148
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ( + 98 ) * + COUNT( * ) + - 87 - 25 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2475
SELECT ( + 98 ) * + COUNT ( * ) + - 87 - 25 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2476
SELECT ALL 14 + + SUM( ALL 90 ) * - ( + CAST( NULL AS SIGNED ) ) * AVG ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL 14 + + SUM ( ALL 90 ) * - ( + CAST ( NULL AS INTEGER ) ) * AVG ( 89 )
----
NULL

query I rowsort
SELECT 92 - + 5 AS col0
----
87

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

query I rowsort
SELECT + 69 + - NULLIF ( + 32, + - 76 )
----
37

query I rowsort
SELECT DISTINCT + + 44 * - 91 AS col0
----
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2481
SELECT ALL 66 * + CAST( NULL AS SIGNED ), COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2481
SELECT ALL 66 * + CAST ( NULL AS INTEGER ), COUNT ( * ) col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT DISTINCT + 88 * + - COUNT( * ) + - 75
----
-163

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT + 88 * + - COUNT ( * ) + - 75
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT + + 62 * + 43 * - + ( + MIN( DISTINCT 55 ) ) * 46 - - 5 AS col2
----
-6744975

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + + 62 * + 43 * - + ( + MIN ( DISTINCT 55 ) ) * 46 - - 5 AS col2
----
-6744975

query I rowsort
SELECT DISTINCT 93 * + - 19
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + + 49 * MIN( + 66 ) * 92 - - 71 * + 91
----
303989

skipif mysql # not compatible
query I rowsort label-2485
SELECT + + 49 * MIN ( + 66 ) * 92 - - 71 * + 91
----
303989

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT + 94 / 26 * - 86 + + CAST( NULL AS SIGNED ) * 70 + - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT + 94 / 26 * - 86 + + CAST ( NULL AS INTEGER ) * 70 + - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - + CASE + - 74 WHEN + - 96 THEN NULLIF ( - 65, - 53 * + 16 ) / 67 - 18 / + 91 WHEN 61 THEN AVG ( DISTINCT 85 ) * - 37 ELSE NULL END + SUM( + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT - + CASE + - 74 WHEN + - 96 THEN NULLIF ( - 65, - 53 * + 16 ) / 67 - 18 / + 91 WHEN 61 THEN AVG ( DISTINCT 85 ) * - 37 ELSE NULL END + SUM ( + 88 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - COALESCE ( - SUM( DISTINCT 27 ), - 37, - 66 + ( - 87 - SUM( ALL 10 ) ) * - 29 ) * + 33
----
891

skipif mysql # not compatible
query I rowsort label-2490
SELECT - COALESCE ( - SUM ( DISTINCT 27 ), - 37, - 66 + ( - 87 - SUM ( ALL 10 ) ) * - 29 ) * + 33
----
891

query II rowsort
SELECT - 77 * - + 12 col1, 68 AS col0
----
924
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2492
SELECT - NULLIF ( - 25, CAST( - COALESCE ( 60, 41, + 89 ) AS DECIMAL ) / + 79 ) * 79 AS col0
----
1975

skipif mysql # not compatible
query I rowsort label-2492
SELECT - NULLIF ( - 25, CAST ( - COALESCE ( 60, 41, + 89 ) AS REAL ) / + 79 ) * 79 AS col0
----
1975

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

query I rowsort
SELECT - 6 * - 25 + + 79 AS col2
----
229

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT ALL - 22 * + 2, COUNT( * ) + - 64 AS col0
----
-44
-63

skipif mysql # not compatible
query II rowsort label-2495
SELECT ALL - 22 * + 2, COUNT ( * ) + - 64 AS col0
----
-44
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT - - COUNT( * ) * - 15 * + 46 * 47
----
-32430

skipif mysql # not compatible
query I rowsort label-2496
SELECT - - COUNT ( * ) * - 15 * + 46 * 47
----
-32430

query I rowsort
SELECT DISTINCT - 2 * + - 72 AS col2
----
144

query I rowsort
SELECT - 0 * - 24 + 17 + - 25
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT DISTINCT + ( - MAX( 81 ) ) * - 23
----
1863

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT + ( - MAX ( 81 ) ) * - 23
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL - 11 + - - 21 * + 74 * 81 + + - MIN( 32 )
----
125831

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - 11 + - - 21 * + 74 * 81 + + - MIN ( 32 )
----
125831

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT 75 * 20 + COUNT( DISTINCT - + 12 ) AS col0
----
1501

skipif mysql # not compatible
query I rowsort label-2501
SELECT 75 * 20 + COUNT ( DISTINCT - + 12 ) AS col0
----
1501

query I rowsort
SELECT - 10 + - 29 AS col0
----
-39

query I rowsort
SELECT ALL + 39 + + - 73
----
-34

query I rowsort
SELECT ALL ( 44 ) col2
----
44

query I rowsort
SELECT - 4 + + + 46 + - + 11 * + 1
----
31

query I rowsort
SELECT ALL 74 + - 93 - + 12
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT + 33 + + - COUNT( * ) + + 95 * + 6 + - CASE WHEN ( NULL ) IN ( 35 ) THEN 74 END + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT + 33 + + - COUNT ( * ) + + 95 * + 6 + - CASE WHEN ( NULL ) IN ( 35 ) THEN 74 END + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - 44 * + COUNT( - + 25 )
----
-44

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 44 * + COUNT ( - + 25 )
----
-44

query II rowsort
SELECT + 50 * + 43 * 15 AS col1, - 78 AS col1
----
32250
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT 73 + - COUNT( * ) * 29 * - + 41
----
1262

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT 73 + - COUNT ( * ) * 29 * - + 41
----
1262

query II rowsort
SELECT 47, + 33 + - 9 AS col1
----
47
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2512
SELECT - + 41 AS col1, CAST( NULL AS SIGNED )
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-2512
SELECT - + 41 AS col1, CAST ( NULL AS INTEGER )
----
-41
NULL

query I rowsort
SELECT ALL - - 88 * + + COALESCE ( - + 3, + 2 ) AS col2
----
-264

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

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

query I rowsort
SELECT ALL NULLIF ( + 89, NULLIF ( - + 96, - 23 + - 34 ) )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT DISTINCT 38 DIV + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT 38 / + 6 AS col1
----
6

query II rowsort
SELECT ALL + 84 AS col0, 33 * 11 * 51 AS col0
----
84
18513

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL + + CASE COALESCE ( 13, + 44 + - - 73 ) WHEN + MIN( 65 ) THEN - 64 ELSE + 75 END AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + + CASE COALESCE ( 13, + 44 + - - 73 ) WHEN + MIN ( 65 ) THEN - 64 ELSE + 75 END AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + ( 45 ) * - - COALESCE ( + 11, + 94 * - COUNT( * ) )
----
495

skipif mysql # not compatible
query I rowsort label-2519
SELECT + ( 45 ) * - - COALESCE ( + 11, + 94 * - COUNT ( * ) )
----
495

query I rowsort
SELECT 81 * + - 25 + - 83 AS col0
----
-2108

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT DISTINCT + + 17 AS col2, 23 + + MIN( ALL 5 ) AS col0
----
17
28

skipif mysql # not compatible
query II rowsort label-2521
SELECT DISTINCT + + 17 AS col2, 23 + + MIN ( ALL 5 ) AS col0
----
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT COALESCE ( - CASE + 90 WHEN 84 THEN - 32 ELSE NULLIF ( + 36, AVG ( 39 ) - COUNT( * ) ) - COALESCE ( - 90 + 23, 96, + COUNT( DISTINCT + 38 ) + ( + ( COALESCE ( COALESCE ( + 59, 42 ), 81 + - COUNT( * ), - SUM( ALL - 26 ) ) ) ) ) END, + 34 + 76, COUNT( * ) ) * + 34 col0
----
-3502

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT COALESCE ( - CASE + 90 WHEN 84 THEN - 32 ELSE NULLIF ( + 36, AVG ( 39 ) - COUNT ( * ) ) - COALESCE ( - 90 + 23, 96, + COUNT ( DISTINCT + 38 ) + ( + ( COALESCE ( COALESCE ( + 59, 42 ), 81 + - COUNT ( * ), - SUM ( ALL - 26 ) ) ) ) ) END, + 34 + 76, COUNT ( * ) ) * + 34 col0
----
-3502

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

query I rowsort
SELECT + - 21 + - - 49 * - 38
----
-1883

query I rowsort
SELECT DISTINCT 84 * 18 AS col0
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2526
SELECT - 78 * + 98 + - - 54 + 67 * - 36 + COALESCE ( - 5, - 63 * - 1 + - ( - 61 ), MAX( 15 ) DIV + CAST( NULL AS SIGNED ) + + 61 ) AS col2
----
-10007

skipif mysql # not compatible
query I rowsort label-2526
SELECT - 78 * + 98 + - - 54 + 67 * - 36 + COALESCE ( - 5, - 63 * - 1 + - ( - 61 ), MAX ( 15 ) / + CAST ( NULL AS INTEGER ) + + 61 ) AS col2
----
-10007

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2527
SELECT ALL + 45 col0, CAST( - 32 AS SIGNED ) AS col1
----
45
-32

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL + 45 col0, CAST ( - 32 AS INTEGER ) AS col1
----
45
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + 58 * COUNT( * ) * COUNT( * ) * - 72
----
-4176

skipif mysql # not compatible
query I rowsort label-2528
SELECT + 58 * COUNT ( * ) * COUNT ( * ) * - 72
----
-4176

query I rowsort
SELECT COALESCE ( + 48, + 89 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL - 97 * - - COUNT( * ) * - 73 + + 3 * - 5 * - 79 + COUNT( ALL COALESCE ( CAST( NULL AS SIGNED ), 99 ) ) * ( 84 )
----
8350

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - 97 * - - COUNT ( * ) * - 73 + + 3 * - 5 * - 79 + COUNT ( ALL COALESCE ( CAST ( NULL AS INTEGER ), 99 ) ) * ( 84 )
----
8350

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - COUNT( * ) * 81 + + 83 * + COUNT( DISTINCT - 67 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - COUNT ( * ) * 81 + + 83 * + COUNT ( DISTINCT - 67 ) AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT + 11 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 11 / - - 80
----
0

query I rowsort
SELECT - 16 + - 33
----
-49

query I rowsort
SELECT ALL 64 * + 33 + + 17 AS col0
----
2129

query I rowsort
SELECT COALESCE ( 85, + 76 * + 90 )
----
85

query I rowsort
SELECT ALL + COALESCE ( + 70, 46, + 63 - - 16 ) * + + 76 + + 74 * 13
----
6282

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT + 36 * + + 53 + + + COUNT( * ) AS col0
----
1909

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + 36 * + + 53 + + + COUNT ( * ) AS col0
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT NULLIF ( - 93, MIN( DISTINCT + 39 ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2538
SELECT NULLIF ( - 93, MIN ( DISTINCT + 39 ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL ( 41 ) * - COUNT( * ) * - 70 + 62 col2
----
2932

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL ( 41 ) * - COUNT ( * ) * - 70 + 62 col2
----
2932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT - 80 DIV 40 * + SUM( + 32 ) * + 12 AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-2540
SELECT - 80 / 40 * + SUM ( + 32 ) * + 12 AS col2
----
-768

query I rowsort
SELECT - ( + NULLIF ( 46, - ( - 76 ) ) ) * + + 18 col1
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT ( - + CASE + - 62 WHEN - 37 * + + COALESCE ( - + 67, ( - 24 ) ) + COUNT( * ) THEN - COUNT( * ) * + 5 WHEN + ( 21 ) / + 72 + + MIN( - 54 - - 75 / 86 ) THEN + 99 * - 2 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT ( - + CASE + - 62 WHEN - 37 * + + COALESCE ( - + 67, ( - 24 ) ) + COUNT ( * ) THEN - COUNT ( * ) * + 5 WHEN + ( 21 ) / + 72 + + MIN ( - 54 - - 75 / 86 ) THEN + 99 * - 2 END ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT - 45 - CASE + - 94 WHEN - 17 * COALESCE ( - COALESCE ( ( + ( - SUM( + 31 ) ) ), 78 ), - NULLIF ( CAST( 57 AS SIGNED ), + COUNT( * ) ) ) + 79 THEN COALESCE ( 43, - 65 + + 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 45 - CASE + - 94 WHEN - 17 * COALESCE ( - COALESCE ( ( + ( - SUM ( + 31 ) ) ), 78 ), - NULLIF ( CAST ( 57 AS INTEGER ), + COUNT ( * ) ) ) + 79 THEN COALESCE ( 43, - 65 + + 30 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - COUNT( ALL - NULLIF ( - 59, 1 / + 62 - ( + 70 ) - - 16 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2545
SELECT - COUNT ( ALL - NULLIF ( - 59, 1 / + 62 - ( + 70 ) - - 16 ) ) AS col2
----
-1

query II rowsort
SELECT ALL - 17 * 91, - 66 AS col2
----
-1547
-66

query I rowsort
SELECT - 21 + - + NULLIF ( + 11, + 12 + - 6 ) AS col1
----
-32

query I rowsort
SELECT ALL - 8 * + + 99
----
-792

query II rowsort
SELECT ALL + 45 - + - 12 AS col0, 53
----
57
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2550
SELECT - 65 AS col2, - COUNT( * ) * + + 56 * + CAST( NULL AS SIGNED )
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-2550
SELECT - 65 AS col2, - COUNT ( * ) * + + 56 * + CAST ( NULL AS INTEGER )
----
-65
NULL

query I rowsort
SELECT ALL - 18 * + 57
----
-1026

query I rowsort
SELECT DISTINCT + 63 - - - 53 - + + 34 AS col1
----
-24

query II rowsort
SELECT DISTINCT 22, - 89 AS col0
----
22
-89

query I rowsort
SELECT ALL 26 * - 65
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - CASE + - 65 WHEN - CASE + 95 WHEN + ( + COALESCE ( + 89, + 3 * + 11 + 61 ) ) + MAX( + 55 ) THEN NULL WHEN + 32 * + SUM( ALL - 39 ) THEN 19 - + 63 END THEN NULL WHEN + 13 * + 38 THEN NULL WHEN + 82 - 46 THEN NULL ELSE 56 * COUNT( * ) END
----
-56

skipif mysql # not compatible
query I rowsort label-2555
SELECT - CASE + - 65 WHEN - CASE + 95 WHEN + ( + COALESCE ( + 89, + 3 * + 11 + 61 ) ) + MAX ( + 55 ) THEN NULL WHEN + 32 * + SUM ( ALL - 39 ) THEN 19 - + 63 END THEN NULL WHEN + 13 * + 38 THEN NULL WHEN + 82 - 46 THEN NULL ELSE 56 * COUNT ( * ) END
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - NULLIF ( + 90, - - 65 + + 58 + - CASE + ( + 57 ) WHEN 59 THEN - ( COUNT( * ) ) ELSE NULL END - + 43 * 86 * 43 * - 70 ) + + CASE COUNT( * ) WHEN - 39 THEN NULL ELSE - MAX( ALL - 75 ) END
----
-15

skipif mysql # not compatible
query I rowsort label-2556
SELECT - NULLIF ( + 90, - - 65 + + 58 + - CASE + ( + 57 ) WHEN 59 THEN - ( COUNT ( * ) ) ELSE NULL END - + 43 * 86 * 43 * - 70 ) + + CASE COUNT ( * ) WHEN - 39 THEN NULL ELSE - MAX ( ALL - 75 ) END
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2557
SELECT ALL - ( - 94 ) DIV NULLIF ( COUNT( * ), + 22 * - + 51 + - 68 ) + - 28
----
66

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - ( - 94 ) / NULLIF ( COUNT ( * ), + 22 * - + 51 + - 68 ) + - 28
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT 12 + + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-2558
SELECT 12 + + + COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2559
SELECT - CASE 3 WHEN NULLIF ( 4, + CAST( - 24 AS SIGNED ) + - 40 * 52 ) + 3 THEN + 49 WHEN - 31 * 91 THEN 58 END + ( 19 ) * + CASE + 16 + - 67 / 96 WHEN 92 * + 6 THEN NULL WHEN - SUM( DISTINCT 35 ) THEN - 94 WHEN - 69 * + 2 + 64 * 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT - CASE 3 WHEN NULLIF ( 4, + CAST ( - 24 AS INTEGER ) + - 40 * 52 ) + 3 THEN + 49 WHEN - 31 * 91 THEN 58 END + ( 19 ) * + CASE + 16 + - 67 / 96 WHEN 92 * + 6 THEN NULL WHEN - SUM ( DISTINCT 35 ) THEN - 94 WHEN - 69 * + 2 + 64 * 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT COUNT( * ) - - 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2560
SELECT COUNT ( * ) - - 8 AS col1
----
9

query II rowsort
SELECT ALL - + NULLIF ( + 28, + 17 * - 11 ) AS col0, - ( - + 71 )
----
-28
71

query I rowsort
SELECT DISTINCT 11 * + + 78 * - - ( - 17 )
----
-14586

query I rowsort
SELECT ALL - 77 * + - 70 AS col2
----
5390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2564
SELECT DISTINCT - 63 AS col1, + CAST( NULL AS SIGNED ) * - - 5 * 65
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-2564
SELECT DISTINCT - 63 AS col1, + CAST ( NULL AS INTEGER ) * - - 5 * 65
----
-63
NULL

query I rowsort
SELECT ALL + 97 + 38 col1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-2566
SELECT 81 + + - 23, + 33 - - - 56 * + + CASE WHEN NOT + ( COUNT( * ) ) IS NULL THEN + 71 WHEN NOT ( 80 ) <= + COUNT( + 77 ) THEN - COUNT( + 66 ) END AS col0
----
58
-3943

skipif mysql # not compatible
query II rowsort label-2566
SELECT 81 + + - 23, + 33 - - - 56 * + + CASE WHEN NOT + ( COUNT ( * ) ) IS NULL THEN + 71 WHEN NOT ( 80 ) <= + COUNT ( + 77 ) THEN - COUNT ( + 66 ) END AS col0
----
58
-3943

query I rowsort
SELECT - 76 * - - 19 + - 35
----
-1479

query I rowsort
SELECT ALL 95 + - 19 * + + 18 * + 61
----
-20767

query I rowsort
SELECT ALL 0 + - - 82 col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT SUM( - 29 ) + 87 * + + CAST( NULL AS SIGNED ) + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT SUM ( - 29 ) + 87 * + + CAST ( NULL AS INTEGER ) + + 47 AS col2
----
NULL

query I rowsort
SELECT 70 + + + 36 - + 26 * + ( - + 74 ) AS col0
----
2030

query II rowsort
SELECT ALL 99 + + 89, + 30 * - - 43 AS col2
----
188
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + 16 * - 33 * + 74 + + CASE - MAX( DISTINCT + + 99 ) WHEN + 34 + 97 THEN NULL WHEN - CASE - 95 WHEN + 5 * + COUNT( * ) THEN 96 ELSE NULL END * + 97 THEN 39 END + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT + 16 * - 33 * + 74 + + CASE - MAX ( DISTINCT + + 99 ) WHEN + 34 + 97 THEN NULL WHEN - CASE - 95 WHEN + 5 * + COUNT ( * ) THEN 96 ELSE NULL END * + 97 THEN 39 END + + 54
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - 76 - + - 0 + 41
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT 80 * - MAX( DISTINCT 79 ) col1
----
-6320

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT 80 * - MAX ( DISTINCT 79 ) col1
----
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - 53 * - 48 + + + COUNT( + 78 )
----
2545

skipif mysql # not compatible
query I rowsort label-2578
SELECT - 53 * - 48 + + + COUNT ( + 78 )
----
2545

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

skipif mysql # not compatible
query I rowsort label-2579
SELECT 86 * + 86 / + ( COUNT ( * ) ) AS col1
----
7396

query II rowsort
SELECT 92 - - - 1, - 5 * - 52 - 43 * 41 - + 99 AS col0
----
91
-1602

onlyif mysql # DIV for integer division: 
query II rowsort label-2581
SELECT 66 + 53 DIV - - 97 AS col2, - 78
----
66
-78

skipif mysql # not compatible
query II rowsort label-2581
SELECT 66 + 53 / - - 97 AS col2, - 78
----
66
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT 49 * + COUNT( * ) * - 25 + + 89 AS col1
----
-1136

skipif mysql # not compatible
query I rowsort label-2582
SELECT 49 * + COUNT ( * ) * - 25 + + 89 AS col1
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT CASE COUNT( * ) WHEN 38 THEN - - COUNT( * ) ELSE NULL END * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT CASE COUNT ( * ) WHEN 38 THEN - - COUNT ( * ) ELSE NULL END * 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ( - 18 ) + COUNT( * ) + - - 40 * ( - ( 40 ) ) * 30 AS col1
----
-48017

skipif mysql # not compatible
query I rowsort label-2584
SELECT ( - 18 ) + COUNT ( * ) + - - 40 * ( - ( 40 ) ) * 30 AS col1
----
-48017

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT ALL - 33 DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - 33 / 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL + + 87 * - COUNT( - 69 ) + - 68 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + + 87 * - COUNT ( - 69 ) + - 68 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT + 84 * SUM( + ( + 12 ) ) AS col2
----
1008

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + 84 * SUM ( + ( + 12 ) ) AS col2
----
1008

query I rowsort
SELECT + 7 + + + 14
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + COUNT( * ) + + 35 + - - 61 - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2589
SELECT + COUNT ( * ) + + 35 + - - 61 - COUNT ( * ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT - + CASE 49 WHEN - COALESCE ( - COALESCE ( - 15, - - 51 * + + 13 / - 54 + + 76, CAST( + 10 AS SIGNED ) / - 9 ), 52, + COUNT( * ) + 0, + 40 + - 49 ) * + 12 + 63 THEN 30 / 73 WHEN + 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT - + CASE 49 WHEN - COALESCE ( - COALESCE ( - 15, - - 51 * + + 13 / - 54 + + 76, CAST ( + 10 AS INTEGER ) / - 9 ), 52, + COUNT ( * ) + 0, + 40 + - 49 ) * + 12 + 63 THEN 30 / 73 WHEN + 60 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 1 + 90 AS col2, 64
----
91
64

query I rowsort
SELECT ALL - - 32 + + - 19 * - 78
----
1514

query I rowsort
SELECT DISTINCT - - 70 + + 80 AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2594
SELECT + CAST( 50 AS DECIMAL ) + - COUNT( * ) + CAST( NULL AS SIGNED ) + - + 29 * 46 + - COUNT( * ) * MAX( DISTINCT - 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + CAST ( 50 AS REAL ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - + 29 * 46 + - COUNT ( * ) * MAX ( DISTINCT - 69 ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 94 * + ( + + 47 ) + + - 63 + - + 3
----
-4484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2596
SELECT ALL - + 28 * + 65 + + 20 + - + COALESCE ( - 68, + 23 DIV CASE + 77 WHEN - 68 THEN - COUNT( * ) END * - 60 + - COUNT( * ) ) * - 66
----
-6288

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - + 28 * + 65 + + 20 + - + COALESCE ( - 68, + 23 / CASE + 77 WHEN - 68 THEN - COUNT ( * ) END * - 60 + - COUNT ( * ) ) * - 66
----
-6288

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT - SUM( + 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2597
SELECT - SUM ( + 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT + 63 DIV - 48 * COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2598
SELECT + 63 / - 48 * COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT 75 - ( + - 12 ) + - MIN( DISTINCT - 83 ) * - 47 * - + ( + 24 )
----
93711

skipif mysql # not compatible
query I rowsort label-2599
SELECT 75 - ( + - 12 ) + - MIN ( DISTINCT - 83 ) * - 47 * - + ( + 24 )
----
93711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2600
SELECT ALL CAST( NULL AS SIGNED ) * + 43 * + 9 * 24 + + ( 78 ) AS col2, - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2600
SELECT ALL CAST ( NULL AS INTEGER ) * + 43 * + 9 * 24 + + ( 78 ) AS col2, - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 58 + + + 60 AS col0
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + 26 col0, 66 + + 18 * 32 * - COUNT( * ) col0
----
26
-510

skipif mysql # not compatible
query II rowsort label-2602
SELECT + 26 col0, 66 + + 18 * 32 * - COUNT ( * ) col0
----
26
-510

query I rowsort
SELECT 57 + + 4 * - 79 AS col0
----
-259

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT 98 - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT 98 - COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT CAST( + - 24 AS SIGNED ) + - 65
----
-89

skipif mysql # not compatible
query I rowsort label-2606
SELECT CAST ( + - 24 AS INTEGER ) + - 65
----
-89

query I rowsort
SELECT DISTINCT 33 - - COALESCE ( 37, + 1 )
----
70

query II rowsort
SELECT 68, 26 AS col0
----
68
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT MIN( + + COALESCE ( - 66, + 88, - 59 ) ) * + COUNT( * ) - + + 55
----
-121

skipif mysql # not compatible
query I rowsort label-2609
SELECT MIN ( + + COALESCE ( - 66, + 88, - 59 ) ) * + COUNT ( * ) - + + 55
----
-121

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2611
SELECT DISTINCT MIN( DISTINCT + 72 ) * - 10 AS col0, - 23 DIV + - 74
----
-720
0

skipif mysql # not compatible
query II rowsort label-2611
SELECT DISTINCT MIN ( DISTINCT + 72 ) * - 10 AS col0, - 23 / + - 74
----
-720
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT + NULLIF ( - COUNT( * ), + + 66 ) * + - 64 DIV - 82 * 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT + NULLIF ( - COUNT ( * ), + + 66 ) * + - 64 / - 82 * 29 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT + + 77 * + - 63 * + MIN( 4 ) AS col1
----
-19404

skipif mysql # not compatible
query I rowsort label-2613
SELECT + + 77 * + - 63 * + MIN ( 4 ) AS col1
----
-19404

query I rowsort
SELECT ALL + 71 * - + 71 * 45 * 72
----
-16332840

query I rowsort
SELECT + + 66 - 80 * + - 48 AS col0
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT 48 * - - SUM( DISTINCT + CASE + 40 WHEN - 62 THEN 94 * + + 34 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT 48 * - - SUM ( DISTINCT + CASE + 40 WHEN - 62 THEN 94 * + + 34 END )
----
NULL

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

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

query II rowsort
SELECT ALL 57, 39 AS col1
----
57
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2619
SELECT - 19, 68 + CAST( - NULLIF ( + 54, CAST( COUNT( ALL - 99 ) AS SIGNED ) ) AS SIGNED ) DIV 81 AS col1
----
-19
68

skipif mysql # not compatible
query II rowsort label-2619
SELECT - 19, 68 + CAST ( - NULLIF ( + 54, CAST ( COUNT ( ALL - 99 ) AS INTEGER ) ) AS INTEGER ) / 81 AS col1
----
-19
68

query I rowsort
SELECT ALL - - 80 + - 57 AS col0
----
23

query I rowsort
SELECT ALL + 39 * - 67 col0
----
-2613

query I rowsort
SELECT ALL - - 5 + + 31 col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2623
SELECT ALL + 69 + - - MIN( + 47 ) DIV CASE + 27 WHEN + - 73 THEN + - CAST( - 3 AS SIGNED ) WHEN + 18 + COALESCE ( - AVG ( ALL 77 ), - AVG ( - 93 ) * - 41 + + ( + 5 ) DIV ( 54 ) ) THEN NULL ELSE - 47 * - 44 END
----
69

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL + 69 + - - MIN ( + 47 ) / CASE + 27 WHEN + - 73 THEN + - CAST ( - 3 AS INTEGER ) WHEN + 18 + COALESCE ( - AVG ( ALL 77 ), - AVG ( - 93 ) * - 41 + + ( + 5 ) / ( 54 ) ) THEN NULL ELSE - 47 * - 44 END
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + - COUNT( 12 ) + + NULLIF ( - 81, + 3 * - 20 + 63 * - - 22 * NULLIF ( - 66 * ( COUNT( * ) * - ( MIN( DISTINCT 61 ) ) ), COUNT( ALL + 97 ) * + ( - 83 ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-2624
SELECT + - COUNT ( 12 ) + + NULLIF ( - 81, + 3 * - 20 + 63 * - - 22 * NULLIF ( - 66 * ( COUNT ( * ) * - ( MIN ( DISTINCT 61 ) ) ), COUNT ( ALL + 97 ) * + ( - 83 ) ) )
----
-82

query I rowsort
SELECT - + 84 * + 57
----
-4788

query I rowsort
SELECT + + 14 + + 14
----
28

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

skipif mysql # not compatible
query I rowsort label-2627
SELECT - - 9 - - + COUNT ( * ) / - 29 AS col0
----
9

query I rowsort
SELECT ALL + 3 * - - 81
----
243

query II rowsort
SELECT 21, 32 col1
----
21
32

query I rowsort
SELECT - - ( + 63 ) + + + 13 * + ( + + 19 )
----
310

query I rowsort
SELECT - 35 - - + 78
----
43

query I rowsort
SELECT DISTINCT + 76 * NULLIF ( + - 25, 4 * + + 25 - 15 )
----
-1900

query I rowsort
SELECT ALL + NULLIF ( + 23, - 81 + - 89 )
----
23

query I rowsort
SELECT 94 * 49 + - 65 col1
----
4541

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ( - + NULLIF ( MIN( ALL - 35 ), 60 * - 36 * - - 57 ) )
----
35

skipif mysql # not compatible
query I rowsort label-2635
SELECT ( - + NULLIF ( MIN ( ALL - 35 ), 60 * - 36 * - - 57 ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT ALL 58 * - 51 - - NULLIF ( CAST( NULL AS SIGNED ), + 11 * 2 / - 26 * 83 - NULLIF ( + 37, 98 ) + + CAST( NULL AS SIGNED ) ) + + 77 * AVG ( DISTINCT 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL 58 * - 51 - - NULLIF ( CAST ( NULL AS INTEGER ), + 11 * 2 / - 26 * 83 - NULLIF ( + 37, 98 ) + + CAST ( NULL AS INTEGER ) ) + + 77 * AVG ( DISTINCT 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - COUNT( * ) * + + 56 * 8
----
-448

skipif mysql # not compatible
query I rowsort label-2637
SELECT - COUNT ( * ) * + + 56 * 8
----
-448

query I rowsort
SELECT - ( + 68 ) * 71 AS col1
----
-4828

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - 8 * + 17 * + COUNT( * ) * 33 * + - 97 + + - COUNT( * )
----
435335

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 8 * + 17 * + COUNT ( * ) * 33 * + - 97 + + - COUNT ( * )
----
435335

query I rowsort
SELECT - 22 + NULLIF ( - 87, + 64 * - - 15 )
----
-109

query I rowsort
SELECT - ( - NULLIF ( - - 37, - + 95 ) ) + - ( + 67 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT CASE - MAX( DISTINCT 55 ) WHEN 33 * - 42 THEN NULL WHEN - 66 + + 4 * + COUNT( * ) * 38 * 15 THEN NULL ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2642
SELECT CASE - MAX ( DISTINCT 55 ) WHEN 33 * - 42 THEN NULL WHEN - 66 + + 4 * + COUNT ( * ) * 38 * 15 THEN NULL ELSE COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2643
SELECT ALL + 49 * - 73 AS col1, COALESCE ( + 66, + COALESCE ( - COUNT( * ), + + 48 ), + 22 DIV + ( + 72 ) + + 61, COUNT( * ) ) AS col2
----
-3577
66

skipif mysql # not compatible
query II rowsort label-2643
SELECT ALL + 49 * - 73 AS col1, COALESCE ( + 66, + COALESCE ( - COUNT ( * ), + + 48 ), + 22 / + ( + 72 ) + + 61, COUNT ( * ) ) AS col2
----
-3577
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2644
SELECT - 50 DIV - 5 AS col1, + 71 + 19 - + COUNT( * )
----
10
89

skipif mysql # not compatible
query II rowsort label-2644
SELECT - 50 / - 5 AS col1, + 71 + 19 - + COUNT ( * )
----
10
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2645
SELECT DISTINCT + NULLIF ( 68, MIN( ALL + 19 ) ) col1, + 66 * - COUNT( * ) AS col1
----
68
-66

skipif mysql # not compatible
query II rowsort label-2645
SELECT DISTINCT + NULLIF ( 68, MIN ( ALL + 19 ) ) col1, + 66 * - COUNT ( * ) AS col1
----
68
-66

query I rowsort
SELECT COALESCE ( - 11, 89, - 83 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2647
SELECT + 44 + - 18 AS col1, + COUNT( * ) + CAST( NULL AS DECIMAL )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-2647
SELECT + 44 + - 18 AS col1, + COUNT ( * ) + CAST ( NULL AS REAL )
----
26
NULL

query I rowsort
SELECT ALL + 87 * + - ( + + 3 ) AS col1
----
-261

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT 87 * 72 DIV + 31 + - 20 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-2650
SELECT 87 * 72 / + 31 + - 20 AS col1
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT + 38 - - COUNT( * ) + 74
----
113

skipif mysql # not compatible
query I rowsort label-2651
SELECT + 38 - - COUNT ( * ) + 74
----
113

query I rowsort
SELECT + 96 * + 19
----
1824

query I rowsort
SELECT ALL - 59 * 85 + - 11 + + - 2 * - 49 AS col0
----
-4928

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT - 6 + + 25, - COUNT( * ) * 53 * - + 59 * - 18 AS col2
----
19
-56286

skipif mysql # not compatible
query II rowsort label-2654
SELECT - 6 + + 25, - COUNT ( * ) * 53 * - + 59 * - 18 AS col2
----
19
-56286

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT NULLIF ( 8, + + COALESCE ( + 69, - 19 * + 32 * + MAX( DISTINCT 93 ) ) * + 96 * 49 + + COALESCE ( 86, - 59 * 99 ) )
----
8

skipif mysql # not compatible
query I rowsort label-2655
SELECT NULLIF ( 8, + + COALESCE ( + 69, - 19 * + 32 * + MAX ( DISTINCT 93 ) ) * + 96 * 49 + + COALESCE ( 86, - 59 * 99 ) )
----
8

query II rowsort
SELECT + 89 + 82 col1, 13
----
171
13

query I rowsort
SELECT ALL 73 + + 61 AS col1
----
134

query I rowsort
SELECT DISTINCT 21 + - 86
----
-65

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

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - 10 * + - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) AS col0
----
10

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

query I rowsort
SELECT - - 93 * 81 + 62
----
7595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT - CAST( + + 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-2662
SELECT - CAST ( + + 53 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - 66 + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - 66 + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT + COUNT( * ) + 6 + 19 + + 90 DIV - 11
----
18

skipif mysql # not compatible
query I rowsort label-2664
SELECT + COUNT ( * ) + 6 + 19 + + 90 / - 11
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT - 19 + + CASE 40 WHEN 21 THEN NULL WHEN + ( 94 ) * + 78 * - COUNT( * ) * + CAST( - 23 AS SIGNED ) THEN NULL ELSE CAST( - 33 AS SIGNED ) END + ( - 39 ) * 78
----
-3094

skipif mysql # not compatible
query I rowsort label-2666
SELECT - 19 + + CASE 40 WHEN 21 THEN NULL WHEN + ( 94 ) * + 78 * - COUNT ( * ) * + CAST ( - 23 AS INTEGER ) THEN NULL ELSE CAST ( - 33 AS INTEGER ) END + ( - 39 ) * 78
----
-3094

query II rowsort
SELECT ALL 89 - + ( 0 ) * - - 61 * - 59, 26 AS col1
----
89
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL - + 73 - + - 97 + + 18 + + COUNT( + 77 ) / 20 * + COUNT( ALL - - 13 ) + ( CAST( NULL AS SIGNED ) ) - MAX( 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - + 73 - + - 97 + + 18 + + COUNT ( + 77 ) / 20 * + COUNT ( ALL - - 13 ) + ( CAST ( NULL AS INTEGER ) ) - MAX ( 29 )
----
NULL

query II rowsort
SELECT + + 77 * + 48 AS col1, + 77
----
3696
77

query I rowsort
SELECT + - ( - 2 ) * 78
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT + 4 DIV + 61 * COUNT( * ) - 3 * + 3 AS col1
----
-9

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

query I rowsort
SELECT - ( 55 ) * - - 43 + + + 10
----
-2355

query I rowsort
SELECT DISTINCT - 35 * + 83 AS col2
----
-2905

query I rowsort
SELECT + 81 - 13 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT 54 * + COUNT( * ) + - COALESCE ( - 11, 10 + + - CAST( + - 79 AS SIGNED ) * - 34, - + 38 )
----
65

skipif mysql # not compatible
query I rowsort label-2675
SELECT 54 * + COUNT ( * ) + - COALESCE ( - 11, 10 + + - CAST ( + - 79 AS INTEGER ) * - 34, - + 38 )
----
65

query I rowsort
SELECT ALL + 63 * - 58
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - ( + - 32 ) * - - MIN( + 84 ) col0
----
2688

skipif mysql # not compatible
query I rowsort label-2677
SELECT - ( + - 32 ) * - - MIN ( + 84 ) col0
----
2688

query I rowsort
SELECT ALL 80 * + - 87 * + 74 col1
----
-515040

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

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

query I rowsort
SELECT DISTINCT 15 * - 53 AS col0
----
-795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT 0 / + CAST( + - 15 AS SIGNED ) - - CASE - - ( COUNT( * ) ) WHEN 39 THEN + 46 + - + 23 * - + 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT 0 / + CAST ( + - 15 AS INTEGER ) - - CASE - - ( COUNT ( * ) ) WHEN 39 THEN + 46 + - + 23 * - + 12 END AS col1
----
NULL

query I rowsort
SELECT 1 * 77 AS col0
----
77

query II rowsort
SELECT 96 AS col1, 71 AS col0
----
96
71

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

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

query I rowsort
SELECT 27 + + - 27 AS col2
----
0

query I rowsort
SELECT + - NULLIF ( + 94, + 84 ) col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT - + ( - CASE + 61 WHEN + CAST( NULL AS SIGNED ) + - 52 THEN - CASE + + 2 WHEN COUNT( * ) THEN + COUNT( * ) END WHEN + 41 + + ( - 49 ) THEN NULL END ) * 82 + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT - + ( - CASE + 61 WHEN + CAST ( NULL AS INTEGER ) + - 52 THEN - CASE + + 2 WHEN COUNT ( * ) THEN + COUNT ( * ) END WHEN + 41 + + ( - 49 ) THEN NULL END ) * 82 + 20 AS col1
----
NULL

query I rowsort
SELECT ALL + 63 + 13 AS col2
----
76

query I rowsort
SELECT ALL - 5 * 41 + + - 68 AS col1
----
-273

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

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

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

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

query I rowsort
SELECT + 26 * + 73
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT CASE + COUNT( * ) WHEN - + 69 * + COALESCE ( + + 42, + 66 ) THEN 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT CASE + COUNT ( * ) WHEN - + 69 * + COALESCE ( + + 42, + 66 ) THEN 44 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT ALL + 3 + + 59 - COUNT( * ) * + 65 DIV 54 + 3
----
64

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + 3 + + 59 - COUNT ( * ) * + 65 / 54 + 3
----
64

query I rowsort
SELECT ALL ( 43 ) col2
----
43

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

skipif mysql # not compatible
query I rowsort label-2696
SELECT 1 / - 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT 32 * - - NULLIF ( 74, + + 97 ) - - COUNT( * ) + + - 49 * - 34 + 80 - - + 51 + 40 * 57 * + 81 * SUM( ALL - ( 3 ) + - 73 )
----
-14031514

skipif mysql # not compatible
query I rowsort label-2697
SELECT 32 * - - NULLIF ( 74, + + 97 ) - - COUNT ( * ) + + - 49 * - 34 + 80 - - + 51 + 40 * 57 * + 81 * SUM ( ALL - ( 3 ) + - 73 )
----
-14031514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT - 6 + - CAST( - 46 AS SIGNED ) - + + 70
----
-30

skipif mysql # not compatible
query I rowsort label-2698
SELECT - 6 + - CAST ( - 46 AS INTEGER ) - + + 70
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT - 65 AS col0, COUNT( 50 ) * - 39 + + 63 + - 86 * - 21
----
-65
1830

skipif mysql # not compatible
query II rowsort label-2699
SELECT - 65 AS col0, COUNT ( 50 ) * - 39 + + 63 + - 86 * - 21
----
-65
1830

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2701
SELECT 81 + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT 81 + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT + 90 DIV - 66 + - 8 * - 36
----
287

skipif mysql # not compatible
query I rowsort label-2702
SELECT + 90 / - 66 + - 8 * - 36
----
287

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT COUNT( * ) * - COUNT( ALL - - 66 ) AS col2, + COALESCE ( + 12, + + ( + COALESCE ( - + 83, - + 43 - - + NULLIF ( + 90, 10 * 67 ) * 97, 93 ) ) * - 50 + - 60 )
----
-1
12

skipif mysql # not compatible
query II rowsort label-2703
SELECT COUNT ( * ) * - COUNT ( ALL - - 66 ) AS col2, + COALESCE ( + 12, + + ( + COALESCE ( - + 83, - + 43 - - + NULLIF ( + 90, 10 * 67 ) * 97, 93 ) ) * - 50 + - 60 )
----
-1
12

query I rowsort
SELECT + COALESCE ( - + 96, 11, - + 76 ) * - + 62 AS col0
----
5952

query I rowsort
SELECT + 56 - NULLIF ( 5, + 50 ) AS col0
----
51

query I rowsort
SELECT ALL + 37 * 99 + - 68 + 33
----
3628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2707
SELECT CAST( 73 AS SIGNED ) - + COUNT( * ) - - - COUNT( * ) * + ( + + 67 ) * + COUNT( * ) * - 21 + 63 col1
----
1542

skipif mysql # not compatible
query I rowsort label-2707
SELECT CAST ( 73 AS INTEGER ) - + COUNT ( * ) - - - COUNT ( * ) * + ( + + 67 ) * + COUNT ( * ) * - 21 + 63 col1
----
1542

query I rowsort
SELECT 81 * - - 96
----
7776

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT - MIN( ALL - 70 ) + - 88 AS col0, COUNT( * )
----
-18
1

skipif mysql # not compatible
query II rowsort label-2709
SELECT - MIN ( ALL - 70 ) + - 88 AS col0, COUNT ( * )
----
-18
1

query I rowsort
SELECT DISTINCT 81 * + + 14 * - 97 * - + 31
----
3409938

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2711
SELECT 79, - 36 + + + ( CAST( + 40 AS SIGNED ) ) + - - 18 * + 10 * - 24 AS col2
----
79
-4316

skipif mysql # not compatible
query II rowsort label-2711
SELECT 79, - 36 + + + ( CAST ( + 40 AS INTEGER ) ) + - - 18 * + 10 * - 24 AS col2
----
79
-4316

query I rowsort
SELECT 57 * 24
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2713
SELECT CAST( 93 AS SIGNED ) - 31 * 18, + ( MAX( 58 ) ) AS col1
----
-465
58

skipif mysql # not compatible
query II rowsort label-2713
SELECT CAST ( 93 AS INTEGER ) - 31 * 18, + ( MAX ( 58 ) ) AS col1
----
-465
58

query I rowsort
SELECT ALL 80 * + - 51 * - NULLIF ( 88, ( - + NULLIF ( 90, + 27 ) ) )
----
359040

query I rowsort
SELECT ALL - 4 + 21 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2716
SELECT ALL 27 + COUNT( ALL + 10 ) + - - COALESCE ( - 5, - COUNT( + CAST( NULL AS SIGNED ) ) * + 18, + + 78 ) DIV COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 27 + COUNT ( ALL + 10 ) + - - COALESCE ( - 5, - COUNT ( + CAST ( NULL AS INTEGER ) ) * + 18, + + 78 ) / COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT 23 DIV + 85 + - 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2717
SELECT 23 / + 85 + - 4 AS col2
----
-4

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT DISTINCT COUNT( * ) + 14 DIV + 85
----
1

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT COUNT ( * ) + 14 / + 85
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT 96 * + + 82 + - SUM( DISTINCT 83 )
----
7789

skipif mysql # not compatible
query I rowsort label-2721
SELECT 96 * + + 82 + - SUM ( DISTINCT 83 )
----
7789

query II rowsort
SELECT 36 * + + 82 AS col1, - ( - 61 ) AS col0
----
2952
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - MIN( DISTINCT + 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - MIN ( DISTINCT + 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT ALL - 46 col0, COUNT( * ) * - - COUNT( * ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL - 46 col0, COUNT ( * ) * - - COUNT ( * ) col2
----
-46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT - 65 + + + ( 60 ) + + - 34 / + CAST( NULL AS SIGNED ) * 49 * + + 79 * - 4 + + - COUNT( * ) + - 16 / + + 36 - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - 65 + + + ( 60 ) + + - 34 / + CAST ( NULL AS INTEGER ) * 49 * + + 79 * - 4 + + - COUNT ( * ) + - 16 / + + 36 - + 91
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT - 38 + + CAST( NULL AS SIGNED ) * - 24 / - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 38 + + CAST ( NULL AS INTEGER ) * - 24 / - 85 AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT + + CAST( NULL AS SIGNED ) * - 0 + + COUNT( * ) * - 93 + - COALESCE ( + 98, - 59 + - 41 - - + 62 * - 57 ) * + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT + + CAST ( NULL AS INTEGER ) * - 0 + + COUNT ( * ) * - 93 + - COALESCE ( + 98, - 59 + - 41 - - + 62 * - 57 ) * + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL + - MIN( ALL 91 ) - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + - MIN ( ALL 91 ) - COUNT ( * )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL - COALESCE ( 58, - + COALESCE ( - 20, + + 6, + 88 ) DIV + AVG ( ALL 1 ) + - 68 ) - 84 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - COALESCE ( 58, - + COALESCE ( - 20, + + 6, + 88 ) / + AVG ( ALL 1 ) + - 68 ) - 84 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - CASE 83 WHEN + 75 * - 21 + - + 4 + - + 33 THEN - COUNT( * ) + - 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT - CASE 83 WHEN + 75 * - 21 + - + 4 + - + 33 THEN - COUNT ( * ) + - 57 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT DISTINCT + - 40 DIV - + ( - SUM( DISTINCT + 52 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + - 40 / - + ( - SUM ( DISTINCT + 52 ) ) AS col2
----
0

query II rowsort
SELECT ALL 33 col0, + ( + - 97 ) * - - 29
----
33
-2813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2738
SELECT + SUM( DISTINCT - CAST( + 31 AS SIGNED ) ) * 9 + 75 + - 43
----
-247

skipif mysql # not compatible
query I rowsort label-2738
SELECT + SUM ( DISTINCT - CAST ( + 31 AS INTEGER ) ) * 9 + 75 + - 43
----
-247

query II rowsort
SELECT 65 + + 38 + - 35 * + + 6, + 12 AS col2
----
-107
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2741
SELECT - 81 * - 85 DIV COUNT( * ) DIV + COUNT( * ) AS col2, 92 * - COALESCE ( + 14, + 82 ) + - 59 AS col1
----
6885
-1347

skipif mysql # not compatible
query II rowsort label-2741
SELECT - 81 * - 85 / COUNT ( * ) / + COUNT ( * ) AS col2, 92 * - COALESCE ( + 14, + 82 ) + - 59 AS col1
----
6885
-1347

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT - ( ( + CAST( + 1 AS SIGNED ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2743
SELECT - ( ( + CAST ( + 1 AS INTEGER ) ) ) col2
----
-1

query I rowsort
SELECT ALL NULLIF ( - + 93, 29 ) col0
----
-93

query I rowsort
SELECT 66 * - ( - 2 )
----
132

query I rowsort
SELECT 70 * + 79 * - 44 * + 18
----
-4379760

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL COUNT( - 45 ) + + MAX( 64 )
----
65

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL COUNT ( - 45 ) + + MAX ( 64 )
----
65

query I rowsort
SELECT ALL 63 * 9 AS col1
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + COUNT( DISTINCT - 95 ) + + + 21
----
22

skipif mysql # not compatible
query I rowsort label-2749
SELECT + COUNT ( DISTINCT - 95 ) + + + 21
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2750
SELECT DISTINCT 80 + + 75, + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
155
1

skipif mysql # not compatible
query II rowsort label-2750
SELECT DISTINCT 80 + + 75, + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
155
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT NULLIF ( - + 4, COUNT( DISTINCT ( - - 29 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT NULLIF ( - + 4, COUNT ( DISTINCT ( - - 29 ) ) )
----
-4

query II rowsort
SELECT + 4 * - 48, - 1 AS col0
----
-192
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL 76 * - - COUNT( * ) + 21 + - + 34
----
63

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL 76 * - - COUNT ( * ) + 21 + - + 34
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2754
SELECT + MAX( DISTINCT - + 23 ) DIV + 20 + - 87 - + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-2754
SELECT + MAX ( DISTINCT - + 23 ) / + 20 + - 87 - + COUNT ( * )
----
-89

query I rowsort
SELECT CASE - 83 WHEN 75 THEN - + 59 WHEN - 93 THEN NULL WHEN 37 * + 94 THEN NULL ELSE + - 82 * + - 94 END AS col0
----
7708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2756
SELECT - 13 * + CASE - + 46 WHEN MIN( DISTINCT + 31 ) THEN - 76 DIV 27 + - + 74 + 29 WHEN - COUNT( * ) THEN 55 ELSE - ( - COUNT( * ) ) END + 25
----
12

skipif mysql # not compatible
query I rowsort label-2756
SELECT - 13 * + CASE - + 46 WHEN MIN ( DISTINCT + 31 ) THEN - 76 / 27 + - + 74 + 29 WHEN - COUNT ( * ) THEN 55 ELSE - ( - COUNT ( * ) ) END + 25
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT CASE + 51 WHEN 6 THEN - + 41 WHEN + 34 + + + AVG ( DISTINCT CAST( - 40 AS SIGNED ) ) THEN - + AVG ( ALL - 37 ) ELSE 45 END col0
----
45

skipif mysql # not compatible
query I rowsort label-2757
SELECT CASE + 51 WHEN 6 THEN - + 41 WHEN + 34 + + + AVG ( DISTINCT CAST ( - 40 AS INTEGER ) ) THEN - + AVG ( ALL - 37 ) ELSE 45 END col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT 88 * + MIN( ALL + 63 ) + + + 57 AS col2
----
5601

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT 88 * + MIN ( ALL + 63 ) + + + 57 AS col2
----
5601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2759
SELECT DISTINCT + COUNT( * ) * + 53 * 33 DIV - ( 16 ) + 38 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + COUNT ( * ) * + 53 * 33 / - ( 16 ) + 38 AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2760
SELECT ALL ( ( + - COALESCE ( - + 81, - - 49 + - COUNT( * ) ) ) ) DIV 68 + 41 DIV + COUNT( - + 37 ) + 39 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL ( ( + - COALESCE ( - + 81, - - 49 + - COUNT ( * ) ) ) ) / 68 + 41 / + COUNT ( - + 37 ) + 39 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - 63 / + MIN( 70 ) - - 80 - - MAX( - - CASE - 73 WHEN + CASE + 57 WHEN + 27 THEN 99 END THEN NULL WHEN + + 89 THEN + 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT - 63 / + MIN ( 70 ) - - 80 - - MAX ( - - CASE - 73 WHEN + CASE + 57 WHEN + 27 THEN 99 END THEN NULL WHEN + + 89 THEN + 12 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT + - 22 * + - 23 * 0 * COALESCE ( + + 24, - COUNT( * ), + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT + - 22 * + - 23 * 0 * COALESCE ( + + 24, - COUNT ( * ), + 0 )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2764
SELECT ALL + 11 DIV + 65 AS col2, - 59 * + 34 * + + COUNT( * ) col2
----
0
-2006

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL + 11 / + 65 AS col2, - 59 * + 34 * + + COUNT ( * ) col2
----
0
-2006

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT + COUNT( * ) * + 24 - + 60 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + COUNT ( * ) * + 24 - + 60 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL - 96 * 52 - - 6 - 22 + - + COALESCE ( - 3, + CAST( NULL AS SIGNED ) ) + + MIN( 73 ) - - 94 * - 2 + - 63 - 77 * - ( + NULLIF ( 78, 27 - + 20 ) )
----
823

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - 96 * 52 - - 6 - 22 + - + COALESCE ( - 3, + CAST ( NULL AS INTEGER ) ) + + MIN ( 73 ) - - 94 * - 2 + - 63 - 77 * - ( + NULLIF ( 78, 27 - + 20 ) )
----
823

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL + 62 * + - 14 + - 79 + COALESCE ( + 86, + 72 + 31 * + + COUNT( * ) + + + 58, - COALESCE ( + NULLIF ( - 30, 92 ), - 17 ), COUNT( * ) ) * 12 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + 62 * + - 14 + - 79 + COALESCE ( + 86, + 72 + 31 * + + COUNT ( * ) + + + 58, - COALESCE ( + NULLIF ( - 30, 92 ), - 17 ), COUNT ( * ) ) * 12 AS col1
----
85

query I rowsort
SELECT + + 56 * - + COALESCE ( 95, 6 )
----
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - SUM( ALL + 28 ) * - NULLIF ( 95, - + 35 / + - 90 ) AS col0
----
2660

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - SUM ( ALL + 28 ) * - NULLIF ( 95, - + 35 / + - 90 ) AS col0
----
2660

query I rowsort
SELECT + 16 * + 17 * - - 66
----
17952

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

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

query I rowsort
SELECT ALL 12 * + NULLIF ( 25, - 57 ) AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT DISTINCT - CASE + COUNT( * ) WHEN 76 THEN NULL WHEN - 0 * - ( 50 ) + ( 96 ) * - COALESCE ( - + ( - - 24 ), + 97 / + COUNT( * ) + - 71 ) THEN - 44 ELSE - 15 * NULLIF ( - COUNT( * ), + MAX( DISTINCT + 39 ) ) END AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT - CASE + COUNT ( * ) WHEN 76 THEN NULL WHEN - 0 * - ( 50 ) + ( 96 ) * - COALESCE ( - + ( - - 24 ), + 97 / + COUNT ( * ) + - 71 ) THEN - 44 ELSE - 15 * NULLIF ( - COUNT ( * ), + MAX ( DISTINCT + 39 ) ) END AS col1
----
-15

query I rowsort
SELECT + + 4 + 24 * + + 37 AS col2
----
892

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT - + MIN( - + 10 ) * 65, 31 AS col0
----
650
31

skipif mysql # not compatible
query II rowsort label-2775
SELECT - + MIN ( - + 10 ) * 65, 31 AS col0
----
650
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT ALL + - 62 DIV + - 69 * + ( + + 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + - 62 / + - 69 * + ( + + 60 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - 58 + 70 - + MAX( - 84 ) * 36 + - ( - - 33 ) * - 52 * - 41
----
-67320

skipif mysql # not compatible
query I rowsort label-2777
SELECT - 58 + 70 - + MAX ( - 84 ) * 36 + - ( - - 33 ) * - 52 * - 41
----
-67320

query I rowsort
SELECT ALL 64 + ( 54 ) col0
----
118

query II rowsort
SELECT - 22 AS col1, - 25 AS col0
----
-22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL + 4 + + - NULLIF ( + SUM( 80 ), + - 50 * + - 57 ) - - - 85 + - + 3
----
-164

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + 4 + + - NULLIF ( + SUM ( 80 ), + - 50 * + - 57 ) - - - 85 + - + 3
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - ( + ( + COUNT( * ) ) ) - + SUM( ALL - 7 ) + 32 * - 28 AS col0
----
-890

skipif mysql # not compatible
query I rowsort label-2781
SELECT - ( + ( + COUNT ( * ) ) ) - + SUM ( ALL - 7 ) + 32 * - 28 AS col0
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL + 31 * - + COUNT( * ) * - 67
----
2077

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + 31 * - + COUNT ( * ) * - 67
----
2077

query I rowsort
SELECT ALL - 41 + + 5
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT - COUNT( * ) + + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-2784
SELECT - COUNT ( * ) + + - 66
----
-67

query I rowsort
SELECT DISTINCT - 59 + - 63 + - + 71
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL - COALESCE ( + 26, - COUNT( * ) + - + COUNT( * ), 16 + + ( + 98 ) * - 15 ) + - ( + 1 ) * MAX( - 79 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - COALESCE ( + 26, - COUNT ( * ) + - + COUNT ( * ), 16 + + ( + 98 ) * - 15 ) + - ( + 1 ) * MAX ( - 79 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL + CASE 64 WHEN ( - + 88 ) + - 7 THEN + 24 / + 14 WHEN - 75 THEN + + 22 / + 60 + - - COUNT( * ) + 19 + + 75 + 20 END / - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + CASE 64 WHEN ( - + 88 ) + - 7 THEN + 24 / + 14 WHEN - 75 THEN + + 22 / + 60 + - - COUNT ( * ) + 19 + + 75 + 20 END / - COUNT ( * ) col2
----
NULL

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

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

query I rowsort
SELECT ALL + 42 + - 47 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2790
SELECT ALL - 54 DIV - CAST( - - ( COUNT( * ) ) AS SIGNED ) - + 58 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - 54 / - CAST ( - - ( COUNT ( * ) ) AS INTEGER ) - + 58 AS col2
----
-4

query I rowsort
SELECT - 38 + - 93
----
-131

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2793
SELECT CAST( NULL AS SIGNED ) col2, MIN( ALL + - 5 ) - COUNT( * ) + + 43 - + 47
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2793
SELECT CAST ( NULL AS INTEGER ) col2, MIN ( ALL + - 5 ) - COUNT ( * ) + + 43 - + 47
----
NULL
-10

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

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL 26 * + COUNT ( * ) AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT CAST( + ( + + 41 ) AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2795
SELECT CAST ( + ( + + 41 ) AS INTEGER ) AS col2
----
41

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT 35 DIV + - COUNT( * ) + + 79 * + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2797
SELECT 35 / + - COUNT ( * ) + + 79 * + COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - - MAX( + 22 ) * ( 29 ) + + 48
----
686

skipif mysql # not compatible
query I rowsort label-2798
SELECT - - MAX ( + 22 ) * ( 29 ) + + 48
----
686

query I rowsort
SELECT + 47 + - + 60 * + + 4 col2
----
-193

query II rowsort
SELECT ALL + 76 AS col2, - 17
----
76
-17

query I rowsort
SELECT DISTINCT + + 48 * + + 24 * + 41 * + 2 * + 81 col0
----
7651584

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL + CASE - CASE 51 WHEN - - 23 THEN NULL WHEN ( - 5 ) * + 47 + - ( ( 21 ) ) * + 50 + - - 62 - 19 THEN 43 * COUNT( * ) END WHEN - 63 THEN NULL WHEN + 26 * + 87 THEN + 91 * + 9 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + CASE - CASE 51 WHEN - - 23 THEN NULL WHEN ( - 5 ) * + 47 + - ( ( 21 ) ) * + 50 + - - 62 - 19 THEN 43 * COUNT ( * ) END WHEN - 63 THEN NULL WHEN + 26 * + 87 THEN + 91 * + 9 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL + MAX( + 65 ) * + + ( - - 37 ) * - 51
----
-122655

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + MAX ( + 65 ) * + + ( - - 37 ) * - 51
----
-122655

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL - 39 DIV - 4 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 39 / - 4 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT MIN( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2806
SELECT MIN ( + 13 ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2807
SELECT DISTINCT + 6 / + CASE + CAST( - 72 AS DECIMAL ) WHEN - 18 THEN COUNT( * ) + - 27 + ( - 76 ) * 81 WHEN 61 THEN - 60 * 23 * COUNT( * ) END * + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + 6 / + CASE + CAST ( - 72 AS REAL ) WHEN - 18 THEN COUNT ( * ) + - 27 + ( - 76 ) * 81 WHEN 61 THEN - 60 * 23 * COUNT ( * ) END * + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + 2 * - - 9 * - MAX( ALL - + 17 ) AS col0
----
306

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 2 * - - 9 * - MAX ( ALL - + 17 ) AS col0
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT 78 * ( + 26 ) * - + 62 * 61 - 61 - + 68 + - 37 DIV + 63
----
-7670025

skipif mysql # not compatible
query I rowsort label-2809
SELECT 78 * ( + 26 ) * - + 62 * 61 - 61 - + 68 + - 37 / + 63
----
-7670025

query I rowsort
SELECT 27 * + 12
----
324

query I rowsort
SELECT ALL - 72 + + 94
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2812
SELECT DISTINCT + 18 + + 47 + + MIN( DISTINCT - ( + - 67 ) ) AS col0, + 87 * + COALESCE ( - 53, 79 * + COUNT( * ) - - + ( + 2 ) ) + 93 AS col1
----
132
-4518

skipif mysql # not compatible
query II rowsort label-2812
SELECT DISTINCT + 18 + + 47 + + MIN ( DISTINCT - ( + - 67 ) ) AS col0, + 87 * + COALESCE ( - 53, 79 * + COUNT ( * ) - - + ( + 2 ) ) + 93 AS col1
----
132
-4518

query I rowsort
SELECT ALL 16 * + CASE + - 94 WHEN + CASE + 12 WHEN - 92 THEN - - 2 * 44 - 39 ELSE 99 END THEN + + ( - 58 ) / 75 * 86 * + 68 + 86 WHEN 19 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ( + 30 ) + + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2814
SELECT ( + 30 ) + + COUNT ( * ) AS col1
----
31

query I rowsort
SELECT ( - 1 ) * - + 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT 30 + 90 * + MAX( DISTINCT COALESCE ( + 23, - 4 ) ) AS col1
----
2100

skipif mysql # not compatible
query I rowsort label-2816
SELECT 30 + 90 * + MAX ( DISTINCT COALESCE ( + 23, - 4 ) ) AS col1
----
2100

query I rowsort
SELECT DISTINCT + 82 * - ( - + 39 )
----
3198

onlyif mysql # DIV for integer division: 
query III rowsort label-2818
SELECT DISTINCT 9 - + - NULLIF ( 56, 41 ) col1, 16 AS col2, 93 DIV 23 DIV - 65 AS col2
----
65
16
0

skipif mysql # not compatible
query III rowsort label-2818
SELECT DISTINCT 9 - + - NULLIF ( 56, 41 ) col1, 16 AS col2, 93 / 23 / - 65 AS col2
----
65
16
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2819
SELECT ALL + 10 - + - 41 + - + 1 * 58 AS col0, 73 + - ( 14 ) * - - SUM( DISTINCT - - 89 ) col2
----
-7
-1173

skipif mysql # not compatible
query II rowsort label-2819
SELECT ALL + 10 - + - 41 + - + 1 * 58 AS col0, 73 + - ( 14 ) * - - SUM ( DISTINCT - - 89 ) col2
----
-7
-1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * - ( MAX( - + 81 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * - ( MAX ( - + 81 ) ) AS col2
----
-81

query I rowsort
SELECT DISTINCT 3 * - 27
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT 29 DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT 29 / + 30 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2823
SELECT 36 * + 97 AS col1, + 5 - - 37 * + CASE - + ( - 37 ) WHEN ( + - 80 ) THEN NULL WHEN + - 74 + - + 77 + + 74 + 35 * - ( - NULLIF ( 63, ( 45 ) ) ) * 7 THEN NULL ELSE COUNT( * ) * 25 END + ( - CAST( 70 AS SIGNED ) )
----
3492
860

skipif mysql # not compatible
query II rowsort label-2823
SELECT 36 * + 97 AS col1, + 5 - - 37 * + CASE - + ( - 37 ) WHEN ( + - 80 ) THEN NULL WHEN + - 74 + - + 77 + + 74 + 35 * - ( - NULLIF ( 63, ( 45 ) ) ) * 7 THEN NULL ELSE COUNT ( * ) * 25 END + ( - CAST ( 70 AS INTEGER ) )
----
3492
860

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2825
SELECT - 92 DIV - - COALESCE ( + 25, + + 86 - + 16, 89 + - 54 + - CASE CAST( + COALESCE ( - + 44, 82 ) AS SIGNED ) WHEN + - COUNT( * ) THEN + 67 * + COUNT( * ) ELSE NULL END * + 15 ) - - 24
----
21

skipif mysql # not compatible
query I rowsort label-2825
SELECT - 92 / - - COALESCE ( + 25, + + 86 - + 16, 89 + - 54 + - CASE CAST ( + COALESCE ( - + 44, 82 ) AS INTEGER ) WHEN + - COUNT ( * ) THEN + 67 * + COUNT ( * ) ELSE NULL END * + 15 ) - - 24
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT - 18 DIV 99 DIV - + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2826
SELECT - 18 / 99 / - + 99 AS col0
----
0

query I rowsort
SELECT 55 * + 28 AS col0
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT 84 * - CAST( NULL AS SIGNED ) * + 2 + 31 + + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT 84 * - CAST ( NULL AS INTEGER ) * + 2 + 31 + + + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT DISTINCT - + 25 DIV 2
----
-12

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - + 25 / 2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2830
SELECT + 84 DIV 33 * - 32 DIV 80 - + - MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 84 / 33 * - 32 / 80 - + - MAX ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT DISTINCT - MAX( ALL + 78 ) AS col0, + 0 / 85 * CASE + COUNT( + - 69 ) WHEN + 64 - - + 79 - COUNT( * ) THEN ( + + 35 ) ELSE NULL END + - 84 AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT - MAX ( ALL + 78 ) AS col0, + 0 / 85 * CASE + COUNT ( + - 69 ) WHEN + 64 - - + 79 - COUNT ( * ) THEN ( + + 35 ) ELSE NULL END + - 84 AS col0
----
-78
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT DISTINCT 46 * - 95 + + 80 + + COUNT( * ), 59 * - + 24 col0
----
-4289
-1416

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT 46 * - 95 + + 80 + + COUNT ( * ), 59 * - + 24 col0
----
-4289
-1416

query I rowsort
SELECT ALL - - ( + + 71 ) + - 68
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT - 34 * - 90 + NULLIF ( CASE CAST( NULL AS SIGNED ) WHEN + NULLIF ( - + 40, + + 37 + - - CASE + 15 WHEN - ( + 95 ) + + 50 + + 10 + 80 / AVG ( 29 ) THEN 10 + + 92 WHEN COALESCE ( - 0, + COALESCE ( COUNT( * ), + 76 ) ) + + 14 THEN NULL ELSE + 93 END + 57 / 48 * + 54 ) * 80 - + 3 THEN NULL WHEN - 16 THEN 62 + - COUNT( * ) END, 2 ) + 24 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 34 * - 90 + NULLIF ( CASE CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - + 40, + + 37 + - - CASE + 15 WHEN - ( + 95 ) + + 50 + + 10 + 80 / AVG ( 29 ) THEN 10 + + 92 WHEN COALESCE ( - 0, + COALESCE ( COUNT ( * ), + 76 ) ) + + 14 THEN NULL ELSE + 93 END + 57 / 48 * + 54 ) * 80 - + 3 THEN NULL WHEN - 16 THEN 62 + - COUNT ( * ) END, 2 ) + 24 / 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 4 * + COUNT( * ) - + + 88
----
-84

skipif mysql # not compatible
query I rowsort label-2835
SELECT 4 * + COUNT ( * ) - + + 88
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT + COUNT( * ) DIV - COALESCE ( + 2, + NULLIF ( + 97, - 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT + COUNT ( * ) / - COALESCE ( + 2, + NULLIF ( + 97, - 47 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + COUNT( * ) + ( + 44 ) * + 99 AS col2
----
4357

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + COUNT ( * ) + ( + 44 ) * + 99 AS col2
----
4357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2838
SELECT - 86 * + CASE + 79 WHEN - MAX( - CAST( NULL AS SIGNED ) ) + - - 52 THEN - - 9 WHEN 40 THEN NULL ELSE + 26 END - + - 60 * 85 * COUNT( * )
----
2864

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 86 * + CASE + 79 WHEN - MAX ( - CAST ( NULL AS INTEGER ) ) + - - 52 THEN - - 9 WHEN 40 THEN NULL ELSE + 26 END - + - 60 * 85 * COUNT ( * )
----
2864

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL COUNT( * ) + COALESCE ( - - 43, + COUNT( - + 60 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL COUNT ( * ) + COALESCE ( - - 43, + COUNT ( - + 60 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT 85 + - 64 * - 2 * + COUNT( * ) AS col1
----
213

skipif mysql # not compatible
query I rowsort label-2840
SELECT 85 + - 64 * - 2 * + COUNT ( * ) AS col1
----
213

query I rowsort
SELECT 20 * - 70 AS col0
----
-1400

query I rowsort
SELECT ALL 4 * + 58
----
232

query I rowsort
SELECT 4 + + 12
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL MIN( ALL + + 17 ) - + 10 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL MIN ( ALL + + 17 ) - + 10 AS col1
----
7

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

query I rowsort
SELECT 39 + - 20 + 84 AS col2
----
103

query I rowsort
SELECT 10 + 79
----
89

query II rowsort
SELECT ALL 63 AS col1, + 75
----
63
75

query II rowsort
SELECT 80 AS col2, + ( 25 )
----
80
25

query II rowsort
SELECT - 65 AS col2, - 42 * 99
----
-65
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + 15 + - - COALESCE ( + 0, COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 15 + - - COALESCE ( + 0, COUNT ( * ) ) AS col2
----
15

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

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - + COUNT ( * ) * + 10 AS col0
----
-10

query II rowsort
SELECT + - 47 AS col1, - 70
----
-47
-70

query I rowsort
SELECT ALL - - 47 * 48 col0
----
2256

query I rowsort
SELECT - ( - + 19 ) * 92
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - + SUM( ALL + 56 ) * - + 5 + + - 25 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - + SUM ( ALL + 56 ) * - + 5 + + - 25 AS col1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT - COUNT( * ) * 65 * - CASE + COUNT( - 76 ) WHEN + 94 / 13 * - CAST( + - COUNT( * ) AS SIGNED ) - 52 THEN NULL WHEN - - 74 / - 72 THEN - COUNT( + 92 ) END + - + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT - COUNT ( * ) * 65 * - CASE + COUNT ( - 76 ) WHEN + 94 / 13 * - CAST ( + - COUNT ( * ) AS INTEGER ) - 52 THEN NULL WHEN - - 74 / - 72 THEN - COUNT ( + 92 ) END + - + 40 AS col0
----
NULL

query I rowsort
SELECT + ( + ( + 81 ) ) + - 94 col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT COUNT( * ) + - + ( + + 77 ), - 80 AS col1
----
-76
-80

skipif mysql # not compatible
query II rowsort label-2859
SELECT COUNT ( * ) + - + ( + + 77 ), - 80 AS col1
----
-76
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - + COUNT( - + 8 ) + - COUNT( * ) + - 75 + - COUNT( * ) * 11
----
-88

skipif mysql # not compatible
query I rowsort label-2860
SELECT - + COUNT ( - + 8 ) + - COUNT ( * ) + - 75 + - COUNT ( * ) * 11
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT + + 39 * 16 + COUNT( * ) - NULLIF ( 51, COALESCE ( 94, 16 ) - 82 + - SUM( 73 ) + + - 46 ) + + 60 + + 83 DIV - COUNT( * ) - COUNT( * ) * + 1 DIV 49 * COUNT( ALL + 93 + - ( + 26 ) )
----
551

skipif mysql # not compatible
query I rowsort label-2861
SELECT + + 39 * 16 + COUNT ( * ) - NULLIF ( 51, COALESCE ( 94, 16 ) - 82 + - SUM ( 73 ) + + - 46 ) + + 60 + + 83 / - COUNT ( * ) - COUNT ( * ) * + 1 / 49 * COUNT ( ALL + 93 + - ( + 26 ) )
----
551

query I rowsort
SELECT - 59 * + 98 + - + 64 * - 78 AS col2
----
-790

query II rowsort
SELECT - 92 AS col2, 38 AS col1
----
-92
38

query I rowsort
SELECT - 21 + - 81 AS col0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2865
SELECT + 15 col0, NULLIF ( + - 53, CAST( NULL AS DECIMAL ) + + COUNT( * ) ) * + 21 + + 36 + - + 65 * - 13 - 5
----
15
-237

skipif mysql # not compatible
query II rowsort label-2865
SELECT + 15 col0, NULLIF ( + - 53, CAST ( NULL AS REAL ) + + COUNT ( * ) ) * + 21 + + 36 + - + 65 * - 13 - 5
----
15
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT - 5 + - CASE + 90 WHEN - 19 / + 3 * + 19 + + 1 + ( + 33 ) THEN NULL WHEN CAST( + + 37 AS SIGNED ) THEN NULL ELSE 34 * + 7 + + - 12 * - COUNT( ALL - + 5 ) * - COUNT( 55 ) + 12 * - 51 END AS col1
----
381

skipif mysql # not compatible
query I rowsort label-2866
SELECT - 5 + - CASE + 90 WHEN - 19 / + 3 * + 19 + + 1 + ( + 33 ) THEN NULL WHEN CAST ( + + 37 AS INTEGER ) THEN NULL ELSE 34 * + 7 + + - 12 * - COUNT ( ALL - + 5 ) * - COUNT ( 55 ) + 12 * - 51 END AS col1
----
381

query I rowsort
SELECT - 16 * + - 46 AS col0
----
736

query I rowsort
SELECT - 22 * 91 col0
----
-2002

query I rowsort
SELECT DISTINCT - 0 * - + 91 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT - CAST( - 1 AS SIGNED ) * + 45 * + 16 + 37 + + 50 AS col0
----
807

skipif mysql # not compatible
query I rowsort label-2871
SELECT - CAST ( - 1 AS INTEGER ) * + 45 * + 16 + 37 + + 50 AS col0
----
807

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2873
SELECT 10 * - - ( + 58 ) * - - CAST( - + ( 72 ) AS SIGNED ) + + 70 + 85 DIV - + 91
----
-41690

skipif mysql # not compatible
query I rowsort label-2873
SELECT 10 * - - ( + 58 ) * - - CAST ( - + ( 72 ) AS INTEGER ) + + 70 + 85 / - + 91
----
-41690

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT DISTINCT MAX( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT MAX ( 60 )
----
60

query II rowsort
SELECT - 81, - 48 AS col2
----
-81
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2876
SELECT ALL 83 AS col0, + MAX( + 68 ) + 38 * + ( - + 9 ) AS col2
----
83
-274

skipif mysql # not compatible
query II rowsort label-2876
SELECT ALL 83 AS col0, + MAX ( + 68 ) + 38 * + ( - + 9 ) AS col2
----
83
-274

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

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

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

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL 92 AS col0, COUNT ( * ) * - 12
----
92
-12

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

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

query II rowsort
SELECT + 91 * - ( - - ( + + 28 ) ) AS col2, - 51 + - - 39 - - 88
----
-2548
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT ALL COUNT( * ) DIV COALESCE ( COALESCE ( + 58, + + 15 ), + 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL COUNT ( * ) / COALESCE ( COALESCE ( + 58, + + 15 ), + 65 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT - COUNT( * ), + ( - MIN( ALL - 43 ) ) AS col2
----
-1
43

skipif mysql # not compatible
query II rowsort label-2882
SELECT - COUNT ( * ), + ( - MIN ( ALL - 43 ) ) AS col2
----
-1
43

query I rowsort
SELECT - COALESCE ( + 95, - 93, + 84 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + 55 * + SUM( + 41 )
----
2255

skipif mysql # not compatible
query I rowsort label-2884
SELECT + 55 * + SUM ( + 41 )
----
2255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2885
SELECT + - COALESCE ( + 94, 92 ) + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT + - COALESCE ( + 94, 92 ) + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 1 + - - 25 * - 44 + - 40 AS col2
----
-1141

query I rowsort
SELECT ALL 49 * + 73 AS col2
----
3577

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT ALL + 28 DIV + 49 + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + 28 / + 49 + 11 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT + 85 DIV - 91 + 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + 85 / - 91 + 1 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT + 49 DIV + 26 + + 95 + 74 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT + 49 / + 26 + + 95 + 74 AS col1
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2891
SELECT ALL 53 / - ( + 83 ) + - + MAX( - 89 ) * + 20 + - 79 + 58 - + - 71 * + 69 * + COUNT( * ) * + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 53 / - ( + 83 ) + - + MAX ( - 89 ) * + 20 + - 79 + 58 - + - 71 * + 69 * + COUNT ( * ) * + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query II rowsort
SELECT - 98 AS col1, NULLIF ( 52, + 8 ) + + - 24
----
-98
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT ALL + 23 AS col2, - 3 * + COUNT( * ) AS col2
----
23
-3

skipif mysql # not compatible
query II rowsort label-2893
SELECT ALL + 23 AS col2, - 3 * + COUNT ( * ) AS col2
----
23
-3

query II rowsort
SELECT + 48, 9 AS col0
----
48
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + CASE - 96 WHEN - - ( 7 ) THEN 82 + + + 95 * - COALESCE ( COUNT( DISTINCT + 1 ), - COUNT( ALL 82 ) - COUNT( * ) + - - 30 * + + 95 ) * 27 + + 6 + + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT + CASE - 96 WHEN - - ( 7 ) THEN 82 + + + 95 * - COALESCE ( COUNT ( DISTINCT + 1 ), - COUNT ( ALL 82 ) - COUNT ( * ) + - - 30 * + + 95 ) * 27 + + 6 + + 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL 23 * - 1 - + 14 * + + ( + COUNT( * ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL 23 * - 1 - + 14 * + + ( + COUNT ( * ) ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT + + NULLIF ( AVG ( ALL - 39 ), - 84 ) - - + CASE + - 19 WHEN - 23 / - NULLIF ( - + CASE - 58 WHEN - 75 + - 99 / CAST( NULL AS SIGNED ) THEN NULL WHEN - + COALESCE ( - + 46, + - 28 ) * - COUNT( * ) THEN 74 ELSE NULL END, - 30 * + 32 + + 99 ) THEN + MIN( DISTINCT - 87 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT + + NULLIF ( AVG ( ALL - 39 ), - 84 ) - - + CASE + - 19 WHEN - 23 / - NULLIF ( - + CASE - 58 WHEN - 75 + - 99 / CAST ( NULL AS INTEGER ) THEN NULL WHEN - + COALESCE ( - + 46, + - 28 ) * - COUNT ( * ) THEN 74 ELSE NULL END, - 30 * + 32 + + 99 ) THEN + MIN ( DISTINCT - 87 ) END
----
NULL

query I rowsort
SELECT - 27 * + 50 AS col0
----
-1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT + + COUNT( * ) * + 9 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT + + COUNT ( * ) * + 9 / + 19
----
0

query I rowsort
SELECT NULLIF ( - 53, + 95 )
----
-53

query I rowsort
SELECT - 58 * + - 47 AS col1
----
2726

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

skipif mysql # not compatible
query I rowsort label-2902
SELECT + CAST ( + - ( + 61 ) AS INTEGER ) AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2903
SELECT COALESCE ( 98, 26 DIV + ( - + COUNT( * ) ) ), - 91 AS col2
----
98
-91

skipif mysql # not compatible
query II rowsort label-2903
SELECT COALESCE ( 98, 26 / + ( - + COUNT ( * ) ) ), - 91 AS col2
----
98
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + 77 * - ( + 62 ) - NULLIF ( + COUNT( * ), - 52 )
----
-4775

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + 77 * - ( + 62 ) - NULLIF ( + COUNT ( * ), - 52 )
----
-4775

query I rowsort
SELECT - 22 * - - 78
----
-1716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT DISTINCT + CAST( - 22 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT + CAST ( - 22 AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT + 27 * 76
----
2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT - 33 * + 59 * - + 23 DIV + COALESCE ( + + COUNT( * ), - 30 ) AS col2
----
44781

skipif mysql # not compatible
query I rowsort label-2908
SELECT - 33 * + 59 * - + 23 / + COALESCE ( + + COUNT ( * ), - 30 ) AS col2
----
44781

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - MAX( DISTINCT - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2909
SELECT - MAX ( DISTINCT - 5 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT - 3 + + - COALESCE ( + ( + 83 ), + ( 91 ) ) DIV + 34 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2910
SELECT - 3 + + - COALESCE ( + ( + 83 ), + ( 91 ) ) / + 34 AS col1
----
-5

query I rowsort
SELECT ALL - ( + + 15 ) * + - 25 AS col1
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - 79 + - - NULLIF ( - 87, 14 + + 68 * - - COUNT( * ) + + 35 - + 1 * + + ( SUM( ALL + 92 ) ) ) AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-2912
SELECT - 79 + - - NULLIF ( - 87, 14 + + 68 * - - COUNT ( * ) + + 35 - + 1 * + + ( SUM ( ALL + 92 ) ) ) AS col2
----
-166

query I rowsort
SELECT - 85 - + 53 + - 22 AS col1
----
-160

query I rowsort
SELECT - 97 * - 42 AS col0
----
4074

query II rowsort
SELECT - 55 + 18 * + 12, 62 AS col0
----
161
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT ALL ( + 18 ) AS col1, - 54 * COUNT( * ) + 73 + - ( - - COUNT( * ) )
----
18
18

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL ( + 18 ) AS col1, - 54 * COUNT ( * ) + 73 + - ( - - COUNT ( * ) )
----
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2917
SELECT ALL 61 + 5 col1, 9, + - CAST( - 1 AS SIGNED ) AS col1
----
66
9
1

skipif mysql # not compatible
query III rowsort label-2917
SELECT ALL 61 + 5 col1, 9, + - CAST ( - 1 AS INTEGER ) AS col1
----
66
9
1

query I rowsort
SELECT DISTINCT + ( + 94 ) + + 47 AS col1
----
141

query I rowsort
SELECT ALL 94 + + ( + 5 ) - - 18 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + + COUNT( 10 ) + + 71
----
72

skipif mysql # not compatible
query I rowsort label-2920
SELECT + + COUNT ( 10 ) + + 71
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT ALL + COUNT( ALL - 67 ) + 73 DIV + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL + COUNT ( ALL - 67 ) + 73 / + + COUNT ( * )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2922
SELECT + - CAST( NULL AS SIGNED ) + 2, 41 col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2922
SELECT + - CAST ( NULL AS INTEGER ) + 2, 41 col1
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - - 17 * ( + COUNT( * ) ) * 10 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-2923
SELECT - - 17 * ( + COUNT ( * ) ) * 10 AS col2
----
170

query II rowsort
SELECT + 0 * + 5, 58 AS col2
----
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT 99 DIV NULLIF ( 41, - 57 ) * - - 43 * - 73 * + 0 - + - 15
----
15

skipif mysql # not compatible
query I rowsort label-2925
SELECT 99 / NULLIF ( 41, - 57 ) * - - 43 * - 73 * + 0 - + - 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT DISTINCT + SUM( DISTINCT - 94 ) + + 52 * - ( + - 85 ) + CAST( - + COUNT( * ) AS SIGNED )
----
4325

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + SUM ( DISTINCT - 94 ) + + 52 * - ( + - 85 ) + CAST ( - + COUNT ( * ) AS INTEGER )
----
4325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2927
SELECT DISTINCT + - 47 DIV + + NULLIF ( - COUNT( ALL - - 58 ), - 15 ) + - 94 * 60
----
-5593

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + - 47 / + + NULLIF ( - COUNT ( ALL - - 58 ), - 15 ) + - 94 * 60
----
-5593

query I rowsort
SELECT 48 * + 3
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL - NULLIF ( + + 30, + 10 + - COUNT( * ) - 13 )
----
-30

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - NULLIF ( + + 30, + 10 + - COUNT ( * ) - 13 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT DISTINCT CAST( ( + MAX( ALL + + 17 ) ) AS SIGNED ) * + 71
----
1207

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT CAST ( ( + MAX ( ALL + + 17 ) ) AS INTEGER ) * + 71
----
1207

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT 73 DIV + - 4 + + 58
----
40

skipif mysql # not compatible
query I rowsort label-2931
SELECT 73 / + - 4 + + 58
----
40

query II rowsort
SELECT 4 + 87 * - + 99 col1, + 76
----
-8609
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT - 92 * 36 - + COUNT( ALL + 43 ) AS col1
----
-3313

skipif mysql # not compatible
query I rowsort label-2933
SELECT - 92 * 36 - + COUNT ( ALL + 43 ) AS col1
----
-3313

query I rowsort
SELECT 95 + + + 65 * + 43 + - ( 37 ) AS col1
----
2853

query I rowsort
SELECT NULLIF ( + 10, + 71 + 14 ) * - 36 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT DISTINCT + ( 47 ) * 25 AS col2, + COUNT( * ) AS col1
----
1175
1

skipif mysql # not compatible
query II rowsort label-2936
SELECT DISTINCT + ( 47 ) * 25 AS col2, + COUNT ( * ) AS col1
----
1175
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT 46 * - - COUNT( * ) + + - ( + COUNT( * ) ) * 4 + - ( - 92 ) + - + 45 * - COALESCE ( - 95, ( + + 28 ) )
----
-4141

skipif mysql # not compatible
query I rowsort label-2937
SELECT 46 * - - COUNT ( * ) + + - ( + COUNT ( * ) ) * 4 + - ( - 92 ) + - + 45 * - COALESCE ( - 95, ( + + 28 ) )
----
-4141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2938
SELECT CAST( NULL AS SIGNED ) + - - 16 / + - 91 + - NULLIF ( - CASE - 26 WHEN + 10 + CAST( NULL AS SIGNED ) THEN + COUNT( * ) END, + CAST( + 0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT CAST ( NULL AS INTEGER ) + - - 16 / + - 91 + - NULLIF ( - CASE - 26 WHEN + 10 + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END, + CAST ( + 0 AS INTEGER ) )
----
NULL

query I rowsort
SELECT 39 + - - 13
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL CAST( AVG ( - - 29 ) AS SIGNED ) + + 28 + - - 15 - - 44 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL CAST ( AVG ( - - 29 ) AS INTEGER ) + + 28 + - - 15 - - 44 AS col0
----
116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2942
SELECT CAST( NULL AS DECIMAL ) * 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT CAST ( NULL AS REAL ) * 18 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) + + 51 + + - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 51 + + - 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT DISTINCT SUM( ALL + - 89 ) * + ( + 58 ) AS col0, 21 * - 17 * SUM( + 15 ) AS col1
----
-5162
-5355

skipif mysql # not compatible
query II rowsort label-2944
SELECT DISTINCT SUM ( ALL + - 89 ) * + ( + 58 ) AS col0, 21 * - 17 * SUM ( + 15 ) AS col1
----
-5162
-5355

query I rowsort
SELECT ALL 38 + + ( + 19 )
----
57

query I rowsort
SELECT ALL + 21 + + 15 * 16
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT - CASE 95 WHEN + 36 + + + 81 + - 93 / - - COUNT( * ) - + 37 THEN NULL ELSE 31 * - 22 * - 41 * + ( + - MAX( ( - 44 ) ) ) - + COUNT( * ) + + 18 END col1
----
-1230345

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - CASE 95 WHEN + 36 + + + 81 + - 93 / - - COUNT ( * ) - + 37 THEN NULL ELSE 31 * - 22 * - 41 * + ( + - MAX ( ( - 44 ) ) ) - + COUNT ( * ) + + 18 END col1
----
-1230345

query I rowsort
SELECT + 62 * + 76 + + 89 AS col0
----
4801

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

query I rowsort
SELECT ALL + 60 * - + 81
----
-4860

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL + - 44 * - CASE 17 WHEN - 39 * + COUNT( * ) / - 57 + + COUNT( * ) + COUNT( * ) - 68 + + 85 * COUNT( * ) + 27 + 86 * - + 42 THEN NULL WHEN - 74 * 34 / + ( - 45 ) THEN + 75 + 65 ELSE 58 - 70 * 42 END AS col0
----
-126808

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + - 44 * - CASE 17 WHEN - 39 * + COUNT ( * ) / - 57 + + COUNT ( * ) + COUNT ( * ) - 68 + + 85 * COUNT ( * ) + 27 + 86 * - + 42 THEN NULL WHEN - 74 * 34 / + ( - 45 ) THEN + 75 + 65 ELSE 58 - 70 * 42 END AS col0
----
-126808

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

query II rowsort
SELECT ALL 32, + 47 * - 47 AS col0
----
32
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + - SUM( + 89 ) * - - MAX( 83 ) + - - 29 AS col0
----
-7358

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + - SUM ( + 89 ) * - - MAX ( 83 ) + - - 29 AS col0
----
-7358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2956
SELECT ALL 55 AS col1, 21 * 45 - - + 63 + CAST( NULL AS SIGNED ) * + MIN( DISTINCT + - 62 )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-2956
SELECT ALL 55 AS col1, 21 * 45 - - + 63 + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + - 62 )
----
55
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2958
SELECT - CAST ( NULL AS INTEGER ) * - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT DISTINCT - - 75 AS col0, - 33 * + + COUNT( * )
----
75
-33

skipif mysql # not compatible
query II rowsort label-2959
SELECT DISTINCT - - 75 AS col0, - 33 * + + COUNT ( * )
----
75
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL 97 * + - 53 + + 17 + - + COUNT( * ) + + 43 AS col1
----
-5082

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL 97 * + - 53 + + 17 + - + COUNT ( * ) + + 43 AS col1
----
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT + 67 * + + COUNT( - 28 )
----
67

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 67 * + + COUNT ( - 28 )
----
67

query II rowsort
SELECT DISTINCT - NULLIF ( - 87, - + 44 / - 32 ) AS col0, + 64
----
87
64

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

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

query I rowsort
SELECT ALL ( - 91 ) * + 60
----
-5460

query I rowsort
SELECT ALL - 24 * - 74 AS col0
----
1776

query I rowsort
SELECT 30 * - 34 * - - 20 col0
----
-20400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT ( 15 ) * - - CASE - + CAST( + 13 AS SIGNED ) WHEN - 1 * 48 * 80 THEN - 16 ELSE NULL END / 89 + + 63 + 94 * 22 * 3 + + COALESCE ( + 46, - + 56 ) * + - 36 / - 48 + + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT ( 15 ) * - - CASE - + CAST ( + 13 AS INTEGER ) WHEN - 1 * 48 * 80 THEN - 16 ELSE NULL END / 89 + + 63 + 94 * 22 * 3 + + COALESCE ( + 46, - + 56 ) * + - 36 / - 48 + + 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT COUNT( * ) - - 79, + 49 AS col0
----
80
49

skipif mysql # not compatible
query II rowsort label-2968
SELECT COUNT ( * ) - - 79, + 49 AS col0
----
80
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + MIN( 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2969
SELECT + MIN ( 8 ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT CAST( NULL AS SIGNED ) + 72 + 47 / - 74 / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 72 + 47 / - 74 / + 37
----
NULL

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

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

query I rowsort
SELECT DISTINCT 85 + - - 51
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2973
SELECT ALL 20 + 17 DIV - 48 * - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL 20 + 17 / - 48 * - + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT 55 - 10
----
45

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

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

query I rowsort
SELECT - CASE + 2 WHEN CASE 38 WHEN 49 THEN 55 ELSE NULL END THEN NULL WHEN - 97 * 63 THEN - 12 / 65 * - + 97 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 84 + + + 88
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT - - 69 - - 54 + + CAST( 8 AS SIGNED ) * + 70
----
683

skipif mysql # not compatible
query I rowsort label-2978
SELECT - - 69 - - 54 + + CAST ( 8 AS INTEGER ) * + 70
----
683

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + CASE - ( - + 19 ) WHEN - + 3 THEN NULL ELSE - 34 - - MIN( + 44 ) END - - 57 * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + CASE - ( - + 19 ) WHEN - + 3 THEN NULL ELSE - 34 - - MIN ( + 44 ) END - - 57 * + COUNT ( * )
----
67

query I rowsort
SELECT DISTINCT 0 - - 3 * + 22 + + 75
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT - 49 + - + 29 + - COUNT( DISTINCT - 6 ) + ( - ( + - 57 ) ) AS col0, + 25
----
-22
25

skipif mysql # not compatible
query II rowsort label-2981
SELECT - 49 + - + 29 + - COUNT ( DISTINCT - 6 ) + ( - ( + - 57 ) ) AS col0, + 25
----
-22
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2982
SELECT DISTINCT + MAX( DISTINCT + 97 ) col0, - 97
----
97
-97

skipif mysql # not compatible
query II rowsort label-2982
SELECT DISTINCT + MAX ( DISTINCT + 97 ) col0, - 97
----
97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2983
SELECT - CASE SUM( DISTINCT - 43 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + + 98 / - 67 * - 44 THEN - 42 * - 26 END + + SUM( ALL + 24 ) * - 6 + 58 * 42 + - 22 + - 76 * + 85 AS col1, + COUNT( ALL + - 5 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2983
SELECT - CASE SUM ( DISTINCT - 43 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 98 / - 67 * - 44 THEN - 42 * - 26 END + + SUM ( ALL + 24 ) * - 6 + 58 * 42 + - 22 + - 76 * + 85 AS col1, + COUNT ( ALL + - 5 )
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - MIN ( + + 5 ) * + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - - MAX( DISTINCT + - 87 ) * + COUNT( * ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-2985
SELECT - - MAX ( DISTINCT + - 87 ) * + COUNT ( * ) col2
----
-87

query I rowsort
SELECT DISTINCT - 43 * + + 35
----
-1505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT ALL - 27 * + + 28 - - 47 DIV 67 + MIN( + 6 ) AS col2
----
-750

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - 27 * + + 28 - - 47 / 67 + MIN ( + 6 ) AS col2
----
-750

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

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

query II rowsort
SELECT + 21, + 69 * + 62 AS col0
----
21
4278

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT - 92 DIV - + 10
----
9

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 92 / - + 10
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL + 69 * - 0 + SUM( ALL + - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + 69 * - 0 + SUM ( ALL + - 72 )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT 83 DIV + - COALESCE ( COUNT( * ), 26 ) + - - 65 + 23 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2992
SELECT 83 / + - COALESCE ( COUNT ( * ), 26 ) + - - 65 + 23 AS col2
----
5

query I rowsort
SELECT 47 * + - 20 - 66 + 5 + - 0 - + + 70 AS col2
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - 80 + SUM( - 88 ) AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-2994
SELECT - 80 + SUM ( - 88 ) AS col2
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT + CAST( - 63 AS SIGNED ) * 64 - + 57 + + 52 * + CAST( 54 AS SIGNED ) * + 32 + + 55 - - 65 AS col2
----
85887

skipif mysql # not compatible
query I rowsort label-2995
SELECT + CAST ( - 63 AS INTEGER ) * 64 - + 57 + + 52 * + CAST ( 54 AS INTEGER ) * + 32 + + 55 - - 65 AS col2
----
85887

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL + CASE - 41 WHEN 43 THEN - NULLIF ( + + 9, - + 33 ) - - COUNT( 35 ) ELSE + NULLIF ( ( + + 22 ), 29 ) END * + - 39 + + + 99 * 63 * + + 18
----
111408

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + CASE - 41 WHEN 43 THEN - NULLIF ( + + 9, - + 33 ) - - COUNT ( 35 ) ELSE + NULLIF ( ( + + 22 ), 29 ) END * + - 39 + + + 99 * 63 * + + 18
----
111408

onlyif mysql # aggregate syntax: 
query III rowsort label-2997
SELECT ALL + 92 * - ( 6 ) * - 63 + - 16, 71 AS col0, + 65 * + COUNT( * ) AS col1
----
34760
71
65

skipif mysql # not compatible
query III rowsort label-2997
SELECT ALL + 92 * - ( 6 ) * - 63 + - 16, 71 AS col0, + 65 * + COUNT ( * ) AS col1
----
34760
71
65

query I rowsort
SELECT ALL 11 * - 78 + - 81 AS col0
----
-939

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

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

query I rowsort
SELECT ALL - 93 * + 41
----
-3813

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3002
SELECT + CAST( NULL AS SIGNED ) * + SUM( - 90 ) + + 33 * 4 AS col2, - 31 * CASE 17 WHEN + 84 THEN 3 + + COALESCE ( + - 90, - 59, + 31 + 59 * - 27 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3002
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( - 90 ) + + 33 * 4 AS col2, - 31 * CASE 17 WHEN + 84 THEN 3 + + COALESCE ( + - 90, - 59, + 31 + 59 * - 27 ) END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL CASE - 89 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) + 90 THEN NULL WHEN - + 47 THEN + + 48 ELSE NULL END * - - COUNT( + 0 ) * - 2 + - COUNT( * ) + - ( 35 ) + + + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL CASE - 89 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) + 90 THEN NULL WHEN - + 47 THEN + + 48 ELSE NULL END * - - COUNT ( + 0 ) * - 2 + - COUNT ( * ) + - ( 35 ) + + + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3004
SELECT DISTINCT 23 * 97 - + 6 * CAST( - 0 AS SIGNED ) AS col1, 38 * 90 * - 13 * 52 AS col0
----
2231
-2311920

skipif mysql # not compatible
query II rowsort label-3004
SELECT DISTINCT 23 * 97 - + 6 * CAST ( - 0 AS INTEGER ) AS col1, 38 * 90 * - 13 * 52 AS col0
----
2231
-2311920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3005
SELECT + COALESCE ( CASE - + AVG ( 32 ) WHEN 2 THEN NULL WHEN + CASE - 82 WHEN - 11 + - + COUNT( * ) + - - 13 + + - 94 - + 37 * - ( - CAST( NULL AS SIGNED ) ) * + 72 * + 75 DIV SUM( ( COALESCE ( 88, - 1 ) ) ) * - 45 THEN 79 ELSE - ( 10 ) DIV 95 + NULLIF ( 57, + COUNT( DISTINCT 15 ) ) END + + 24 THEN 90 DIV 56 ELSE NULL END, 28 * - COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3005
SELECT + COALESCE ( CASE - + AVG ( 32 ) WHEN 2 THEN NULL WHEN + CASE - 82 WHEN - 11 + - + COUNT ( * ) + - - 13 + + - 94 - + 37 * - ( - CAST ( NULL AS INTEGER ) ) * + 72 * + 75 / SUM ( ( COALESCE ( 88, - 1 ) ) ) * - 45 THEN 79 ELSE - ( 10 ) / 95 + NULLIF ( 57, + COUNT ( DISTINCT 15 ) ) END + + 24 THEN 90 / 56 ELSE NULL END, 28 * - COUNT ( * ) ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT - MIN( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - MIN ( 22 )
----
-22

query II rowsort
SELECT ALL 50, + 32 AS col2
----
50
32

query I rowsort
SELECT DISTINCT + NULLIF ( 25, + 74 + - + 6 + + 74 + 72 ) - + 50 col1
----
-25

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3010
SELECT + - COUNT( - 47 ) DIV 37 AS col2, 73 DIV - 50
----
0
-1

skipif mysql # not compatible
query II rowsort label-3010
SELECT + - COUNT ( - 47 ) / 37 AS col2, 73 / - 50
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL + NULLIF ( + - NULLIF ( 36, + 98 - + + ( - 94 ) * + 14 ), CAST( NULL AS SIGNED ) * 70 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + NULLIF ( + - NULLIF ( 36, + 98 - + + ( - 94 ) * + 14 ), CAST ( NULL AS INTEGER ) * 70 ) col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT + + CAST( NULL AS SIGNED ) - - + COUNT( * ) - - 9 * + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT + + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) - - 9 * + 79 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL 91 * + MAX( ALL + 49 ) + - 33 col2
----
4426

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 91 * + MAX ( ALL + 49 ) + - 33 col2
----
4426

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT - 89 * + + 5 + + 15 - + COUNT( * )
----
-431

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT - 89 * + + 5 + + 15 - + COUNT ( * )
----
-431

query II rowsort
SELECT ALL 68, 93 AS col1
----
68
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT 23 + + COUNT( * ) * + 38 - ( COALESCE ( 73, - 2 + + + 68 ) ) * + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT 23 + + COUNT ( * ) * + 38 - ( COALESCE ( 73, - 2 + + + 68 ) ) * + COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT + 62 - - 23 AS col0
----
85

query I rowsort
SELECT + + 76 * - ( + 10 ) * + + 6 AS col0
----
-4560

query I rowsort
SELECT - + 70 * - 90 AS col2
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL 22 + + 19 + + 93 + + 58 + + - COUNT( * ) * ( + - 44 )
----
236

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL 22 + + 19 + + 93 + + 58 + + - COUNT ( * ) * ( + - 44 )
----
236

query II rowsort
SELECT 82 AS col1, + 0
----
82
0

query I rowsort
SELECT + 63 + + 86 * - + 85 AS col0
----
-7247

query II rowsort
SELECT 20, 19 col0
----
20
19

query I rowsort
SELECT + 81 * - ( + 82 ) col2
----
-6642

query I rowsort
SELECT - 86 + - - ( - ( - 27 ) )
----
-59

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

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

query I rowsort
SELECT - 50 * + 64
----
-3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT + 65 / ( + - CAST( NULL AS SIGNED ) ) * CAST( - 5 AS SIGNED ) + - 90 * + 18 + - COALESCE ( 44, + + 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + 65 / ( + - CAST ( NULL AS INTEGER ) ) * CAST ( - 5 AS INTEGER ) + - 90 * + 18 + - COALESCE ( 44, + + 62 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 54 WHEN 68 THEN - - 55 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT 45 - + 76 DIV - - 97
----
45

skipif mysql # not compatible
query I rowsort label-3030
SELECT 45 - + 76 / - - 97
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT 90 DIV + 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3031
SELECT 90 / + 10 AS col0
----
9

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

skipif mysql # not compatible
query II rowsort label-3032
SELECT ALL - 28, COUNT ( * ) col2
----
-28
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3033
SELECT DISTINCT + 72 - CAST( NULL AS SIGNED ) + + 31 - CASE 78 WHEN 56 * + - ( - 58 ) * 84 THEN - - 7 WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + 72 - CAST ( NULL AS INTEGER ) + + 31 - CASE 78 WHEN 56 * + - ( - 58 ) * 84 THEN - - 7 WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 20 AS col0, 3 - + 30 AS col2
----
-20
-27

query II rowsort
SELECT + 4 - + 54 AS col1, 32
----
-50
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 42 - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 42 - 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + CASE - + COUNT( * ) WHEN + 50 THEN NULL ELSE 88 * - - 6 * - 50 END + 42 * + 56 * 43 * - 25 - + 89 + + - 70 + 30
----
-2554929

skipif mysql # not compatible
query I rowsort label-3037
SELECT + CASE - + COUNT ( * ) WHEN + 50 THEN NULL ELSE 88 * - - 6 * - 50 END + 42 * + 56 * 43 * - 25 - + 89 + + - 70 + 30
----
-2554929

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT 68, 2 + - MAX( DISTINCT - 4 ) AS col0
----
68
6

skipif mysql # not compatible
query II rowsort label-3038
SELECT 68, 2 + - MAX ( DISTINCT - 4 ) AS col0
----
68
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT COALESCE ( + - 43, 65 ) + - + COUNT( * ) AS col1, SUM( - + 38 )
----
-44
-38

skipif mysql # not compatible
query II rowsort label-3039
SELECT COALESCE ( + - 43, 65 ) + - + COUNT ( * ) AS col1, SUM ( - + 38 )
----
-44
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT 79 * - + 69 AS col0, SUM( DISTINCT + ( + 65 ) ) * + 0 * 84 AS col1
----
-5451
0

skipif mysql # not compatible
query II rowsort label-3040
SELECT 79 * - + 69 AS col0, SUM ( DISTINCT + ( + 65 ) ) * + 0 * 84 AS col1
----
-5451
0

query I rowsort
SELECT + 97 + + + 76 * + 55 * + 23 AS col2
----
96237

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT 38 - - COUNT( ALL 56 ) * - NULLIF ( - 61, + 2 + + 96 )
----
99

skipif mysql # not compatible
query I rowsort label-3042
SELECT 38 - - COUNT ( ALL 56 ) * - NULLIF ( - 61, + 2 + + 96 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT DISTINCT COUNT( * ) AS col0, + 57 * - NULLIF ( + 46, - ( CASE - 41 WHEN - + ( - - 38 ) + - COUNT( * ) + - 90 * 24 THEN NULL ELSE 25 END ) ) * + 13 * - - COUNT( * )
----
1
-34086

skipif mysql # not compatible
query II rowsort label-3043
SELECT DISTINCT COUNT ( * ) AS col0, + 57 * - NULLIF ( + 46, - ( CASE - 41 WHEN - + ( - - 38 ) + - COUNT ( * ) + - 90 * 24 THEN NULL ELSE 25 END ) ) * + 13 * - - COUNT ( * )
----
1
-34086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT - 91 * 39 * - + 49 + - - CAST( NULL AS SIGNED ) + + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT - 91 * 39 * - + 49 + - - CAST ( NULL AS INTEGER ) + + - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT - SUM( 85 ), 0 * + - COUNT( * ) AS col0
----
-85
0

skipif mysql # not compatible
query II rowsort label-3045
SELECT - SUM ( 85 ), 0 * + - COUNT ( * ) AS col0
----
-85
0

query I rowsort
SELECT ALL + COALESCE ( + + 6, + 1 * + - 32 ) col2
----
6

query I rowsort
SELECT 17 + - 20 + + - 59 + - + ( - 6 ) * - 67 AS col1
----
-464

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3048
SELECT ALL COALESCE ( + CASE - + 42 WHEN - 74 * - 7 THEN NULL WHEN AVG ( - 25 ) THEN + 66 * - 21 ELSE + COALESCE ( NULLIF ( 14, 62 DIV + 4 ), ( - - 32 ), - 63 * - 37 DIV - 61 * + 76 + - 52 + 61 * CAST( NULL AS SIGNED ) ) END, + 27 * 19 )
----
14

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL COALESCE ( + CASE - + 42 WHEN - 74 * - 7 THEN NULL WHEN AVG ( - 25 ) THEN + 66 * - 21 ELSE + COALESCE ( NULLIF ( 14, 62 / + 4 ), ( - - 32 ), - 63 * - 37 / - 61 * + 76 + - 52 + 61 * CAST ( NULL AS INTEGER ) ) END, + 27 * 19 )
----
14

query I rowsort
SELECT DISTINCT + 69 + + - 5
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT ALL - 36 + 55 DIV + - 64 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - 36 + 55 / + - 64 AS col2
----
-36

query I rowsort
SELECT DISTINCT COALESCE ( - 94, 49 ) * - 19 AS col0
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT COUNT( * ) + - 63 * - 92 AS col2
----
5797

skipif mysql # not compatible
query I rowsort label-3052
SELECT COUNT ( * ) + - 63 * - 92 AS col2
----
5797

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ( - NULLIF ( + 48, - 54 ) ) * + + COUNT( * ) * + + 90
----
-4320

skipif mysql # not compatible
query I rowsort label-3053
SELECT ( - NULLIF ( + 48, - 54 ) ) * + + COUNT ( * ) * + + 90
----
-4320

query I rowsort
SELECT 58 + 1 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL 69 + CASE + - 81 WHEN - + COUNT( ALL - ( - 41 ) ) * 25 THEN NULL ELSE - - 97 END AS col1
----
166

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL 69 + CASE + - 81 WHEN - + COUNT ( ALL - ( - 41 ) ) * 25 THEN NULL ELSE - - 97 END AS col1
----
166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT + 48 / CASE NULLIF ( + 87, + COUNT( * ) ) WHEN - 54 THEN NULL WHEN - ( 26 ) + + 54 THEN - 56 ELSE NULL END * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + 48 / CASE NULLIF ( + 87, + COUNT ( * ) ) WHEN - 54 THEN NULL WHEN - ( 26 ) + + 54 THEN - 56 ELSE NULL END * 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3058
SELECT MAX( DISTINCT + 51 ) + + 8 + + 57 + 40 * - ( CAST( - + 54 AS SIGNED ) )
----
2276

skipif mysql # not compatible
query I rowsort label-3058
SELECT MAX ( DISTINCT + 51 ) + + 8 + + 57 + 40 * - ( CAST ( - + 54 AS INTEGER ) )
----
2276

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT ALL 9 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL 9 / - + 97 AS col1
----
0

query I rowsort
SELECT - 16 * + 91 + 75 * 37 col0
----
1319

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT DISTINCT 26 DIV 87 * + 95, - 16 AS col1
----
0
-16

skipif mysql # not compatible
query II rowsort label-3061
SELECT DISTINCT 26 / 87 * + 95, - 16 AS col1
----
0
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT CAST( NULL AS SIGNED ) * - - 63 - + 69 + - MIN( ALL - 75 ) - + 13 + + - COUNT( * ) + + 11 + - + NULLIF ( 19, COUNT( * ) ) + CAST( NULL AS SIGNED ) + - 75 - + - COUNT( * ) * 89 * - 78 + 42 * + AVG ( ALL 62 ) * + 94 + - + 25 + - + COUNT( * ) * 36 * + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT CAST ( NULL AS INTEGER ) * - - 63 - + 69 + - MIN ( ALL - 75 ) - + 13 + + - COUNT ( * ) + + 11 + - + NULLIF ( 19, COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + - 75 - + - COUNT ( * ) * 89 * - 78 + 42 * + AVG ( ALL 62 ) * + 94 + - + 25 + - + COUNT ( * ) * 36 * + 55 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT CAST( + + 41 AS SIGNED ) + + - 29 - + - 41 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3063
SELECT CAST ( + + 41 AS INTEGER ) + + - 29 - + - 41 AS col1
----
53

query I rowsort
SELECT ALL + 58 * + - 49
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3065
SELECT DISTINCT - - COALESCE ( - MIN( ALL - 1 ), - 44 + 84 - + 90 - + COUNT( * ) + 61 + + COUNT( * ) + + + 81 * 39 - ( 78 ) DIV AVG ( ALL + ( 64 ) ) * - - COUNT( * ) * - 97 * CAST( - 77 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - - COALESCE ( - MIN ( ALL - 1 ), - 44 + 84 - + 90 - + COUNT ( * ) + 61 + + COUNT ( * ) + + + 81 * 39 - ( 78 ) / AVG ( ALL + ( 64 ) ) * - - COUNT ( * ) * - 97 * CAST ( - 77 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT + COUNT( * ) + 57 AS col1, 72
----
58
72

skipif mysql # not compatible
query II rowsort label-3066
SELECT + COUNT ( * ) + 57 AS col1, 72
----
58
72

query I rowsort
SELECT ALL + ( + + 3 ) * 29 AS col2
----
87

query I rowsort
SELECT 24 * 43
----
1032

query I rowsort
SELECT DISTINCT - COALESCE ( + - ( - - 38 ), - - ( 6 ) + + 75 ) AS col1
----
38

query I rowsort
SELECT - 37 + - 93
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - COUNT( * ) * 86 + + 84
----
-2

skipif mysql # not compatible
query I rowsort label-3071
SELECT - COUNT ( * ) * 86 + + 84
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - 95 * 37 + COUNT( * ) * - - 70 AS col1
----
-3445

skipif mysql # not compatible
query I rowsort label-3072
SELECT - 95 * 37 + COUNT ( * ) * - - 70 AS col1
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL + COUNT( * ) * - 59 * + 88 + - 12 - + + 97 AS col1
----
-5301

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + COUNT ( * ) * - 59 * + 88 + - 12 - + + 97 AS col1
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT MIN( - 12 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-3074
SELECT MIN ( - 12 ) col2
----
-12

query II rowsort
SELECT ALL - + 56 + 40 AS col2, NULLIF ( - - 56, + + 97 ) + - ( - 38 ) AS col1
----
-16
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL - COUNT( * ) * CASE - 14 WHEN + + ( + - 49 ) + - 3 THEN + - 61 * + 65 + 57 + - 50 WHEN - 81 + + 23 + - ( + COUNT( * ) ) + - + 97 * + 70 + 90 THEN + 28 + + 86 - + - ( ( - 40 ) ) + MIN( 71 ) END + + 14 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - COUNT ( * ) * CASE - 14 WHEN + + ( + - 49 ) + - 3 THEN + - 61 * + 65 + 57 + - 50 WHEN - 81 + + 23 + - ( + COUNT ( * ) ) + - + 97 * + 70 + 90 THEN + 28 + + 86 - + - ( ( - 40 ) ) + MIN ( 71 ) END + + 14 * 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT - ( COUNT( * ) ) + + - 89 DIV + COUNT( * ) + - + SUM( ALL + 83 )
----
-173

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - ( COUNT ( * ) ) + + - 89 / + COUNT ( * ) + - + SUM ( ALL + 83 )
----
-173

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL + 48 * CAST( - - ( + + 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + 48 * CAST ( - - ( + + 0 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT 11 - 28 DIV + 15 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3080
SELECT 11 - 28 / + 15 AS col1
----
10

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

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

query I rowsort
SELECT - - NULLIF ( + 65, 87 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT MIN( + + 96 ) * + - 13 + COUNT( * )
----
-1247

skipif mysql # not compatible
query I rowsort label-3083
SELECT MIN ( + + 96 ) * + - 13 + COUNT ( * )
----
-1247

onlyif mysql # DIV for integer division: 
query I rowsort label-3084
SELECT DISTINCT 69 + + - 5 DIV 53 col0
----
69

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT 69 + + - 5 / 53 col0
----
69

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

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

query I rowsort
SELECT ALL 21 * - + NULLIF ( + 65, - 56 + + 48 * + - 29 * - - 80 ) AS col1
----
-1365

query I rowsort
SELECT CASE 88 WHEN + 60 * 16 * 46 THEN NULL WHEN - 71 * 55 / - - 53 THEN NULL ELSE + 42 * 71 * 48 END + 32
----
143168

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT DISTINCT + MAX( DISTINCT - 95 ) - - - 3, 95 + - 70 AS col2
----
-98
25

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT + MAX ( DISTINCT - 95 ) - - - 3, 95 + - 70 AS col2
----
-98
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3089
SELECT ALL 68 - ( + 5 ) - CAST( NULL AS SIGNED ) / + 55 + 72, + 85 * - ( - - 12 ) AS col1
----
NULL
-1020

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL 68 - ( + 5 ) - CAST ( NULL AS INTEGER ) / + 55 + 72, + 85 * - ( - - 12 ) AS col1
----
NULL
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - MAX( 52 ) * - + COUNT( * ) + 43 col1
----
95

skipif mysql # not compatible
query I rowsort label-3090
SELECT - MAX ( 52 ) * - + COUNT ( * ) + 43 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3091
SELECT + ( + COUNT( * ) ) * + 53 * + 25 * CASE - + 38 WHEN + CAST( NULL AS DECIMAL ) THEN + 1 + + 10 END * - 48 + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT + ( + COUNT ( * ) ) * + 53 * + 25 * CASE - + 38 WHEN + CAST ( NULL AS REAL ) THEN + 1 + + 10 END * - 48 + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3092
SELECT ALL 85 * - + COUNT( * ) * + - 55 AS col1, - 7 AS col0
----
4675
-7

skipif mysql # not compatible
query II rowsort label-3092
SELECT ALL 85 * - + COUNT ( * ) * + - 55 AS col1, - 7 AS col0
----
4675
-7

query I rowsort
SELECT - 50 + ( 93 ) AS col0
----
43

query I rowsort
SELECT - COALESCE ( - NULLIF ( 53, + 19 ), + 84, - 66, 12 ) AS col0
----
53

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

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

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

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

query I rowsort
SELECT DISTINCT 67 * - 44 col0
----
-2948

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

skipif mysql # not compatible
query I rowsort label-3098
SELECT + 96 / + + 1 * COUNT ( * )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT ALL 8 DIV + - 4 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL 8 / + - 4 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + 14 * - COUNT( + 80 ) * 20 + - + 12
----
-292

skipif mysql # not compatible
query I rowsort label-3100
SELECT + 14 * - COUNT ( + 80 ) * 20 + - + 12
----
-292

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3102
SELECT + + 52 col1, 15 DIV 13 * + 33 + - COUNT( * ) + - 24
----
52
8

skipif mysql # not compatible
query II rowsort label-3102
SELECT + + 52 col1, 15 / 13 * + 33 + - COUNT ( * ) + - 24
----
52
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT + 38 - + CASE NULLIF ( 25, - ( + - 50 ) ) WHEN 26 / + 75 * - ( - - 33 ) THEN + 69 * - 72 ELSE MAX( DISTINCT 18 ) * + 50 END * - 97
----
87338

skipif mysql # not compatible
query I rowsort label-3103
SELECT + 38 - + CASE NULLIF ( 25, - ( + - 50 ) ) WHEN 26 / + 75 * - ( - - 33 ) THEN + 69 * - 72 ELSE MAX ( DISTINCT 18 ) * + 50 END * - 97
----
87338

query I rowsort
SELECT + COALESCE ( - 61, 43 - + 82 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3105
SELECT + COUNT( * ) DIV 9 * + 60 AS col2, + 63
----
0
63

skipif mysql # not compatible
query II rowsort label-3105
SELECT + COUNT ( * ) / 9 * + 60 AS col2, + 63
----
0
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT ALL CAST( + 88 AS SIGNED ) * 54 * 64 + + COUNT( * ) + - 15 AS col1
----
304114

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL CAST ( + 88 AS INTEGER ) * 54 * 64 + + COUNT ( * ) + - 15 AS col1
----
304114

onlyif mysql # DIV for integer division: 
query II rowsort label-3107
SELECT 60 AS col2, 55 DIV CASE + 39 WHEN + 39 THEN 4 END + - 53
----
60
-40

skipif mysql # not compatible
query II rowsort label-3107
SELECT 60 AS col2, 55 / CASE + 39 WHEN + 39 THEN 4 END + - 53
----
60
-40

query I rowsort
SELECT ALL - - 30 * - 18 + + 79 + 96
----
-365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT + 99 * 48 + CAST( ( - COALESCE ( - + COALESCE ( 39, + 13 ), 14 ) ) AS SIGNED ) + - COUNT( * ) - - + 67 * - 79 AS col2
----
-503

skipif mysql # not compatible
query I rowsort label-3109
SELECT + 99 * 48 + CAST ( ( - COALESCE ( - + COALESCE ( 39, + 13 ), 14 ) ) AS INTEGER ) + - COUNT ( * ) - - + 67 * - 79 AS col2
----
-503

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

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

query I rowsort
SELECT DISTINCT + 71 * 6 * + - 95 col0
----
-40470

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL + 90 * 4 + 48 + 48 + - MIN( + - 28 ) + - 9 - + SUM( + + 98 ) + NULLIF ( - - 57, 98 ) AS col2
----
434

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + 90 * 4 + 48 + 48 + - MIN ( + - 28 ) + - 9 - + SUM ( + + 98 ) + NULLIF ( - - 57, 98 ) AS col2
----
434

query II rowsort
SELECT - 15 - + 12 + - 43, 73 - - 91 AS col0
----
-70
164

query I rowsort
SELECT ALL - + 79 * - 20 + 37 AS col0
----
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT DISTINCT - NULLIF ( - + 53, - CASE 38 WHEN - - 77 THEN NULL WHEN 29 THEN 5 * - COUNT( DISTINCT + - 81 ) ELSE - 10 + COUNT( * ) END * + - NULLIF ( COALESCE ( 33, + ( 89 ) + + + 0 + - 71 * - + 59 ), 89 * - 96 + + + COUNT( * ) + + NULLIF ( 42, CASE 94 WHEN - 16 THEN NULL WHEN CAST( COUNT( * ) AS SIGNED ) THEN 54 + + COALESCE ( + 50, - 36 + 9 * 52 ) ELSE CAST( NULL AS SIGNED ) * - 63 END - - 63 * 96 ) + COUNT( * ) ) - ( 97 ) ) * - CASE 89 WHEN + 44 THEN 24 * + 84 ELSE 76 + - 91 END AS col2
----
795

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - NULLIF ( - + 53, - CASE 38 WHEN - - 77 THEN NULL WHEN 29 THEN 5 * - COUNT ( DISTINCT + - 81 ) ELSE - 10 + COUNT ( * ) END * + - NULLIF ( COALESCE ( 33, + ( 89 ) + + + 0 + - 71 * - + 59 ), 89 * - 96 + + + COUNT ( * ) + + NULLIF ( 42, CASE 94 WHEN - 16 THEN NULL WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN 54 + + COALESCE ( + 50, - 36 + 9 * 52 ) ELSE CAST ( NULL AS INTEGER ) * - 63 END - - 63 * 96 ) + COUNT ( * ) ) - ( 97 ) ) * - CASE 89 WHEN + 44 THEN 24 * + 84 ELSE 76 + - 91 END AS col2
----
795

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT - - CASE + 72 WHEN COUNT( * ) THEN - - 19 ELSE NULL END AS col2, - 67 * + 21
----
NULL
-1407

skipif mysql # not compatible
query II rowsort label-3116
SELECT - - CASE + 72 WHEN COUNT ( * ) THEN - - 19 ELSE NULL END AS col2, - 67 * + 21
----
NULL
-1407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT ALL - 19 + - + COUNT( * ) - + - 47 * - CAST( 97 AS SIGNED )
----
-4579

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - 19 + - + COUNT ( * ) - + - 47 * - CAST ( 97 AS INTEGER )
----
-4579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT + 82 + + 3 + 34 + + + 55 DIV + - COUNT( * ) col1
----
64

skipif mysql # not compatible
query I rowsort label-3118
SELECT + 82 + + 3 + 34 + + + 55 / + - COUNT ( * ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT CASE + COUNT( * ) WHEN 84 * + + 83 THEN NULL ELSE + + 45 * + 98 + + - ( - - 74 ) * - - 14 * 21 + + COUNT( * ) END AS col1
----
-17345

skipif mysql # not compatible
query I rowsort label-3119
SELECT CASE + COUNT ( * ) WHEN 84 * + + 83 THEN NULL ELSE + + 45 * + 98 + + - ( - - 74 ) * - - 14 * 21 + + COUNT ( * ) END AS col1
----
-17345

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - + 39 + + COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-3121
SELECT - + 39 + + COUNT ( * ) col0
----
-38

query II rowsort
SELECT - - 64 + + + 42 + 40 + + 20 * + ( + + ( + ( 71 ) ) ) + + - 1 AS col2, - ( - 75 )
----
1565
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL + 2 - - 99 + + - COUNT( * ) + ( CASE 92 WHEN - + 40 THEN + COUNT( * ) + - 98 + - + NULLIF ( 12, - 13 ) WHEN - 52 + + - 4 THEN 97 END ) + + 8 - + 62 + + 71 + ( + + 63 ) * + 36 * - 47 * 18 * - - 6 * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL + 2 - - 99 + + - COUNT ( * ) + ( CASE 92 WHEN - + 40 THEN + COUNT ( * ) + - 98 + - + NULLIF ( 12, - 13 ) WHEN - 52 + + - 4 THEN 97 END ) + + 8 - + 62 + + 71 + ( + + 63 ) * + 36 * - 47 * 18 * - - 6 * 64 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 47 * + 70 * - ( - 15 )
----
-49350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL - CAST( ( + ( - 22 ) ) AS SIGNED ) / 67 * - - CASE 94 WHEN - 36 THEN 58 ELSE NULL END * 22 * - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - CAST ( ( + ( - 22 ) ) AS INTEGER ) / 67 * - - CASE 94 WHEN - 36 THEN 58 ELSE NULL END * 22 * - 53 AS col0
----
NULL

query I rowsort
SELECT ALL - 29 * 42 * 48 AS col1
----
-58464

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - MAX( + 49 ) + + - 35 - - 11 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3128
SELECT - MAX ( + 49 ) + + - 35 - - 11 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT DISTINCT + 84 * - + 43 * - + ( - COUNT( * ) ), ( - 89 ) AS col1
----
-3612
-89

skipif mysql # not compatible
query II rowsort label-3129
SELECT DISTINCT + 84 * - + 43 * - + ( - COUNT ( * ) ), ( - 89 ) AS col1
----
-3612
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3130
SELECT - 92 + CASE + + 85 WHEN + 0 * + + COUNT( * ) * 56 + - - 99 THEN - NULLIF ( + 44, + + 0 / + 61 + - 88 ) / - NULLIF ( - - 13, + MAX( + + 28 ) * + 80 ) - 21 + + ( + 78 ) ELSE NULL END / - AVG ( DISTINCT - - CAST( + + 6 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 92 + CASE + + 85 WHEN + 0 * + + COUNT ( * ) * 56 + - - 99 THEN - NULLIF ( + 44, + + 0 / + 61 + - 88 ) / - NULLIF ( - - 13, + MAX ( + + 28 ) * + 80 ) - 21 + + ( + 78 ) ELSE NULL END / - AVG ( DISTINCT - - CAST ( + + 6 AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT + ( - 65 ) * + CASE COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN + ( + - COUNT( DISTINCT + - COALESCE ( + + 5, - 10 * 77 / + 41, + 61 + + - 19 + CAST( NULL AS SIGNED ) ) ) ) + 65 + + 52 THEN + - 91 * + 2 END * + - 82 + - 46 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + ( - 65 ) * + CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN + ( + - COUNT ( DISTINCT + - COALESCE ( + + 5, - 10 * 77 / + 41, + 61 + + - 19 + CAST ( NULL AS INTEGER ) ) ) ) + 65 + + 52 THEN + - 91 * + 2 END * + - 82 + - 46 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( - 34 ) * + 22 * - 64
----
-47872

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + NULLIF ( - 40, + SUM( DISTINCT - 37 ) ) + + - 28 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3134
SELECT + NULLIF ( - 40, + SUM ( DISTINCT - 37 ) ) + + - 28 AS col1
----
-68

query I rowsort
SELECT ALL + NULLIF ( - - 69, + 0 + + + 16 + 13 + - 94 )
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT 95 * + 45 * - - 32 + - + 1 + - 57 + - 97 - 39 + CAST( + 87 AS SIGNED ) * - - 47 * 11 * + COUNT( * ) * CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END - + - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT 95 * + 45 * - - 32 + - + 1 + - 57 + - 97 - 39 + CAST ( + 87 AS INTEGER ) * - - 47 * 11 * + COUNT ( * ) * CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM ( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END - + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT DISTINCT 13 * - 15 * - - MIN( - 81 ) AS col0, 9
----
15795
9

skipif mysql # not compatible
query II rowsort label-3138
SELECT DISTINCT 13 * - 15 * - - MIN ( - 81 ) AS col0, 9
----
15795
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3139
SELECT ALL 56 DIV - 93 + - 39 * - COALESCE ( - - 77, + 82 + + CAST( + 89 AS SIGNED ) * + 8 )
----
3003

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL 56 / - 93 + - 39 * - COALESCE ( - - 77, + 82 + + CAST ( + 89 AS INTEGER ) * + 8 )
----
3003

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

skipif mysql # not compatible
query I rowsort label-3140
SELECT + - 80 / 78 + COUNT ( * )
----
0

query I rowsort
SELECT - - 22 * + ( + ( - 66 ) ) + + 0 * 70 - + - 63
----
-1389

query I rowsort
SELECT - + 44 + 53 * + + 55
----
2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT DISTINCT - 22 * + 67 + - + 35 * + 84 - + NULLIF ( + 10, CAST( 96 AS SIGNED ) + + COALESCE ( MIN( + 79 ), + NULLIF ( + + 25, + - 2 ) ) * 23 ) + - + 91 + ( - + 62 ) * - + 2 + - 59
----
-4450

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - 22 * + 67 + - + 35 * + 84 - + NULLIF ( + 10, CAST ( 96 AS INTEGER ) + + COALESCE ( MIN ( + 79 ), + NULLIF ( + + 25, + - 2 ) ) * 23 ) + - + 91 + ( - + 62 ) * - + 2 + - 59
----
-4450

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3144
SELECT ALL - COUNT( * ) DIV 25 DIV - COUNT( * ) * + 94 * 17 * - + 6 + - COUNT( DISTINCT 72 ) + + - 11 AS col0, + SUM( - 45 ) * + 35 - 70 AS col0
----
-12
-1645

skipif mysql # not compatible
query II rowsort label-3144
SELECT ALL - COUNT ( * ) / 25 / - COUNT ( * ) * + 94 * 17 * - + 6 + - COUNT ( DISTINCT 72 ) + + - 11 AS col0, + SUM ( - 45 ) * + 35 - 70 AS col0
----
-12
-1645

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3145
SELECT - + 93 * 65 * + 95 + + - SUM( ALL - 51 ) + + - 64 * - + COUNT( * ) + 36 DIV 20 col2, - 21
----
-574159
-21

skipif mysql # not compatible
query II rowsort label-3145
SELECT - + 93 * 65 * + 95 + + - SUM ( ALL - 51 ) + + - 64 * - + COUNT ( * ) + 36 / 20 col2, - 21
----
-574159
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + COUNT( DISTINCT 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3146
SELECT + COUNT ( DISTINCT 11 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT DISTINCT + 65 DIV + 44 + + 5 + 36 DIV - 27
----
5

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + 65 / + 44 + + 5 + 36 / - 27
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT ALL + 36 * SUM( 86 ) + - + 51 - - - 87 + + 85 DIV + 53 col1
----
2959

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + 36 * SUM ( 86 ) + - + 51 - - - 87 + + 85 / + 53 col1
----
2959

query I rowsort
SELECT ALL - + 1 * - 52 * - - 29 * - - 11 + - + ( 25 ) + 41 + + + 42
----
16646

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

skipif mysql # not compatible
query I rowsort label-3150
SELECT + - MIN ( + 7 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3151
SELECT + - 12 * - + 1, - 58 / - 88 * - CAST( NULL AS SIGNED ) AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3151
SELECT + - 12 * - + 1, - 58 / - 88 * - CAST ( NULL AS INTEGER ) AS col2
----
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + + COUNT( * ) * + + COALESCE ( 9, ( + - 53 ) + + 30 ) + - + COUNT( * ) * - - 30
----
-21

skipif mysql # not compatible
query I rowsort label-3152
SELECT + + COUNT ( * ) * + + COALESCE ( 9, ( + - 53 ) + + 30 ) + - + COUNT ( * ) * - - 30
----
-21

query I rowsort
SELECT - - 93 * - - 14 + + - 47 + 19 AS col0
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + 64 * 70 DIV COALESCE ( + ( - 64 ), CAST( + 89 AS SIGNED ) DIV 36 ) - + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + 64 * 70 / COALESCE ( + ( - 64 ), CAST ( + 89 AS INTEGER ) / 36 ) - + COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT + MIN( + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + MIN ( + + 19 )
----
19

query I rowsort
SELECT ALL + - CASE + 45 WHEN + ( + 90 ) THEN NULL WHEN + ( + 50 ) THEN 58 ELSE 64 * 86 * - 63 END
----
346752

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + 2 * + 19 + + - NULLIF ( + COUNT( * ), - SUM( 33 ) + 72 * - + COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 2 * + 19 + + - NULLIF ( + COUNT ( * ), - SUM ( 33 ) + 72 * - + COUNT ( * ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3158
SELECT ALL - 65 * - CAST( 38 AS SIGNED ) * + - COUNT( * ) AS col0, 7 + CASE - + 9 WHEN 87 THEN NULL WHEN + 32 / - 57 + - + ( + 40 ) THEN + CAST( NULL AS SIGNED ) - COUNT( * ) ELSE NULL END * 25
----
-2470
NULL

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL - 65 * - CAST ( 38 AS INTEGER ) * + - COUNT ( * ) AS col0, 7 + CASE - + 9 WHEN 87 THEN NULL WHEN + 32 / - 57 + - + ( + 40 ) THEN + CAST ( NULL AS INTEGER ) - COUNT ( * ) ELSE NULL END * 25
----
-2470
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3159
SELECT + COUNT( * ) + 50 + - MAX( - + 12 ) * 99 + - 83 DIV + 1 + - SUM( DISTINCT - 27 ) AS col1
----
1183

skipif mysql # not compatible
query I rowsort label-3159
SELECT + COUNT ( * ) + 50 + - MAX ( - + 12 ) * 99 + - 83 / + 1 + - SUM ( DISTINCT - 27 ) AS col1
----
1183

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

skipif mysql # not compatible
query II rowsort label-3160
SELECT COUNT ( * ), MIN ( DISTINCT 88 ) AS col0
----
1
88

query II rowsort
SELECT + 98 * 8 * + - ( - ( + - 42 ) ), - 19 AS col1
----
-32928
-19

query I rowsort
SELECT 64 * + 38 * - - 65 * - - 84 AS col1
----
13278720

query I rowsort
SELECT ALL 10 * + - 68 AS col1
----
-680

query II rowsort
SELECT 13 col1, - 63
----
13
-63

query II rowsort
SELECT ALL 73, 54 col1
----
73
54

query I rowsort
SELECT 54 * + + 28 AS col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT 90 + - ( + + SUM( ALL - ( + 24 ) ) ) + - + 6 * - 5
----
144

skipif mysql # not compatible
query I rowsort label-3167
SELECT 90 + - ( + + SUM ( ALL - ( + 24 ) ) ) + - + 6 * - 5
----
144

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

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - COUNT ( * ) / - + 7
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT 73 DIV 35 * + 9 DIV + - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT 73 / 35 * + 9 / + - 52 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT ALL - 99 * + 77 * CAST( + 39 AS SIGNED ) AS col0
----
-297297

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - 99 * + 77 * CAST ( + 39 AS INTEGER ) AS col0
----
-297297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT 80 + - 38 + 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT 80 + - 38 + 98 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT DISTINCT 44 DIV + 5 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT 44 / + 5 AS col2
----
8

query II rowsort
SELECT 94, + 25 + + + 34 - 87 + - 12 * - + 41 * - - 66 AS col2
----
94
32444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL + COUNT( - 4 ) + ( + - CAST( - ( - 85 ) AS SIGNED ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + COUNT ( - 4 ) + ( + - CAST ( - ( - 85 ) AS INTEGER ) ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL - COUNT( * ) + - - 10 + - COUNT( DISTINCT + 97 ) + 9 * - 85 * - + 58 AS col2
----
44378

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - COUNT ( * ) + - - 10 + - COUNT ( DISTINCT + 97 ) + 9 * - 85 * - + 58 AS col2
----
44378

query II rowsort
SELECT DISTINCT + 81 + + 47 * + 52 AS col1, 15 + - 64
----
2525
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT 82 + + + COUNT( * ) col1
----
83

skipif mysql # not compatible
query I rowsort label-3177
SELECT 82 + + + COUNT ( * ) col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT 68 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-3178
SELECT 68 / - 53
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3179
SELECT DISTINCT + + MAX( - 10 ) + - COUNT( * ) - + + 97 + - - NULLIF ( - CASE + - 63 WHEN + ( - + ( - 21 ) ) THEN NULL ELSE - 39 DIV - 63 END, + 95 + + 55 DIV + CAST( NULL AS DECIMAL ) ) DIV - 28 * + 90 + 94 * + + 67
----
6190

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT + + MAX ( - 10 ) + - COUNT ( * ) - + + 97 + - - NULLIF ( - CASE + - 63 WHEN + ( - + ( - 21 ) ) THEN NULL ELSE - 39 / - 63 END, + 95 + + 55 / + CAST ( NULL AS REAL ) ) / - 28 * + 90 + 94 * + + 67
----
6190

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT + 35 + + MAX( ALL + 26 )
----
61

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT + 35 + + MAX ( ALL + 26 )
----
61

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

query I rowsort
SELECT ALL + - 11 + - 86
----
-97

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

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - MIN ( - 24 )
----
24

query I rowsort
SELECT 38 * - + 22 col1
----
-836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT + 23 * CAST( + - 75 AS SIGNED ) AS col0
----
-1725

skipif mysql # not compatible
query I rowsort label-3185
SELECT + 23 * CAST ( + - 75 AS INTEGER ) AS col0
----
-1725

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT ALL + - COUNT( * ) + + 18 + 26, + NULLIF ( + 77, 90 ) * + 85 AS col0
----
43
6545

skipif mysql # not compatible
query II rowsort label-3186
SELECT ALL + - COUNT ( * ) + + 18 + 26, + NULLIF ( + 77, 90 ) * + 85 AS col0
----
43
6545

query I rowsort
SELECT 72 * - 78 + + - 64
----
-5680

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL 89 * - 72 * - + 55 * - COUNT( * ) - + 97 AS col2
----
-352537

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL 89 * - 72 * - + 55 * - COUNT ( * ) - + 97 AS col2
----
-352537

query I rowsort
SELECT ALL 3 - + 59 + + 35
----
-21

query I rowsort
SELECT DISTINCT 8 * 70 AS col1
----
560

query I rowsort
SELECT ALL - 17 * - 68 AS col0
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT + + COUNT( 94 ) - + + 83
----
-82

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT + + COUNT ( 94 ) - + + 83
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 89 + + + 20 - - + COUNT( DISTINCT 99 ) + + 69 + + + 51
----
230

skipif mysql # not compatible
query I rowsort label-3194
SELECT 89 + + + 20 - - + COUNT ( DISTINCT 99 ) + + 69 + + + 51
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT 29 DIV - COUNT( ALL 84 )
----
-29

skipif mysql # not compatible
query I rowsort label-3195
SELECT 29 / - COUNT ( ALL 84 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT COALESCE ( + ( + + 99 ), + ( + 69 ) DIV - + 42 * + 37 * + 67, + COUNT( * ), - 11 ) * + 16 + + 84
----
1668

skipif mysql # not compatible
query I rowsort label-3196
SELECT COALESCE ( + ( + + 99 ), + ( + 69 ) / - + 42 * + 37 * + 67, + COUNT ( * ), - 11 ) * + 16 + + 84
----
1668

query I rowsort
SELECT 74 * - + 67
----
-4958

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL 45 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL 45 / 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT ALL 63 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL 63 / + 39
----
1

query II rowsort
SELECT DISTINCT 73 AS col1, - 83
----
73
-83

query II rowsort
SELECT ALL 28 AS col1, + 65
----
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT 56 + + COUNT( * ) + - SUM( ALL 42 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT 56 + + COUNT ( * ) + - SUM ( ALL 42 ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3203
SELECT DISTINCT 31, + 90 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3203
SELECT DISTINCT 31, + 90 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL COUNT( * ) + - ( + 30 ) + - 94 * + 27 + - - 70 AS col1
----
-2497

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL COUNT ( * ) + - ( + 30 ) + - 94 * + 27 + - - 70 AS col1
----
-2497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), + + 71 ) + 14 + - 81 / + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), + + 71 ) + 14 + - 81 / + 53
----
NULL

query I rowsort
SELECT ALL 3 * 27 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT 62 + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT 62 + + COUNT ( * )
----
63

query I rowsort
SELECT DISTINCT 38 * 62 AS col0
----
2356

onlyif mysql # DIV for integer division: 
query II rowsort label-3209
SELECT - 47, NULLIF ( + 23, 8 * 39 ) DIV + + 56 * + ( + 58 ) AS col2
----
-47
0

skipif mysql # not compatible
query II rowsort label-3209
SELECT - 47, NULLIF ( + 23, 8 * 39 ) / + + 56 * + ( + 58 ) AS col2
----
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT SUM( ALL + + 1 ) + - + 36
----
-35

skipif mysql # not compatible
query I rowsort label-3210
SELECT SUM ( ALL + + 1 ) + - + 36
----
-35

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

skipif mysql # not compatible
query II rowsort label-3211
SELECT ALL 3 AS col0, + COUNT ( * ) / + + 49 col0
----
3
0

query I rowsort
SELECT 89 + + ( 41 ) AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL 61 + + - MIN( + + 5 ) * - 60 * 42 AS col2
----
12661

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL 61 + + - MIN ( + + 5 ) * - 60 * 42 AS col2
----
12661

query I rowsort
SELECT ALL + + 76 + - 9 + - - CASE + 4 WHEN - 93 THEN NULL WHEN + 89 + - 82 THEN - 50 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT NULLIF ( + + 22, + COUNT( * ) ) + + + 93 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-3215
SELECT NULLIF ( + + 22, + COUNT ( * ) ) + + + 93 AS col2
----
115

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + 54 + + + 59 + - NULLIF ( - 59, 63 + 79 + 70 + + + ( - COUNT( * ) ) ) - 76 - - NULLIF ( - COUNT( * ), + - 34 * - 12 ) + + 75 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 54 + + + 59 + - NULLIF ( - 59, 63 + 79 + 70 + + + ( - COUNT ( * ) ) ) - 76 - - NULLIF ( - COUNT ( * ), + - 34 * - 12 ) + + 75 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ( + + MAX( + - 61 ) ) + - 71 * 9 AS col0
----
-700

skipif mysql # not compatible
query I rowsort label-3218
SELECT ( + + MAX ( + - 61 ) ) + - 71 * 9 AS col0
----
-700

query I rowsort
SELECT - ( - 65 ) * - - 12 AS col2
----
780

query I rowsort
SELECT 86 + + 70 AS col1
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT - 92 * - + CAST( NULL AS SIGNED ) * 75 / - 47 + - - 1 + - COUNT( * ) + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 92 * - + CAST ( NULL AS INTEGER ) * 75 / - 47 + - - 1 + - COUNT ( * ) + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL - ( - + 17 ) * COALESCE ( + + COUNT( * ), - SUM( DISTINCT + - 37 ), 64 ) * + 37
----
629

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - ( - + 17 ) * COALESCE ( + + COUNT ( * ), - SUM ( DISTINCT + - 37 ), 64 ) * + 37
----
629

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT ALL COUNT( * ) * 17 AS col2, + 43 + 72
----
17
115

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL COUNT ( * ) * 17 AS col2, + 43 + 72
----
17
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - 88 * - + 26 + - 0 + + ( - CASE + 39 WHEN - MAX( ALL NULLIF ( + + 66, - 19 ) ) / 92 THEN - - 75 WHEN + 66 * 50 + - 80 + - 37 * - - 48 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - 88 * - + 26 + - 0 + + ( - CASE + 39 WHEN - MAX ( ALL NULLIF ( + + 66, - 19 ) ) / 92 THEN - - 75 WHEN + 66 * 50 + - 80 + - 37 * - - 48 THEN NULL ELSE NULL END )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL - NULLIF ( + COUNT ( * ), + 24 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT + NULLIF ( + CAST( 83 AS SIGNED ), - 84 ) * - ( + + 85 ) + 93 AS col1
----
-6962

skipif mysql # not compatible
query I rowsort label-3227
SELECT + NULLIF ( + CAST ( 83 AS INTEGER ), - 84 ) * - ( + + 85 ) + 93 AS col1
----
-6962

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

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

query I rowsort
SELECT - + 16 * - 70 * 51 * 70
----
3998400

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3231
SELECT + - 34 AS col0, - 82 + NULLIF ( + 42, - 37 / + 27 ) + - MAX( - + 92 ) * - 85 AS col0
----
-34
-7860

skipif mysql # not compatible
query II rowsort label-3231
SELECT + - 34 AS col0, - 82 + NULLIF ( + 42, - 37 / + 27 ) + - MAX ( - + 92 ) * - 85 AS col0
----
-34
-7860

query I rowsort
SELECT DISTINCT + 25 * + 81 * + + 47 AS col2
----
95175

query II rowsort
SELECT ALL + 16 * + 15 AS col0, 38
----
240
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - COUNT( * ) * - + 25 * - 34 AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-3234
SELECT - COUNT ( * ) * - + 25 * - 34 AS col1
----
-850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3235
SELECT DISTINCT 57 + ( - 52 ) DIV - + 3 * - - ( + COUNT( * ) ) + 73 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 57 + ( - 52 ) / - + 3 * - - ( + COUNT ( * ) ) + 73 AS col2
----
147

query II rowsort
SELECT ALL 15 + + - 21 AS col0, ( - 6 )
----
-6
-6

query I rowsort
SELECT ALL NULLIF ( + - 79, - 17 - - 15 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL COUNT( ALL - 81 ) + + - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL COUNT ( ALL - 81 ) + + - 58 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3239
SELECT + ( - MIN( + - 17 ) ) * - - 74 * CAST( - - ( - 45 ) AS SIGNED ), - 94 DIV - 94 AS col2
----
-56610
1

skipif mysql # not compatible
query II rowsort label-3239
SELECT + ( - MIN ( + - 17 ) ) * - - 74 * CAST ( - - ( - 45 ) AS INTEGER ), - 94 / - 94 AS col2
----
-56610
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT ALL + 8 * - + 68, - 8 * + - COUNT( * ) + 64 AS col1
----
-544
72

skipif mysql # not compatible
query II rowsort label-3240
SELECT ALL + 8 * - + 68, - 8 * + - COUNT ( * ) + 64 AS col1
----
-544
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - 54 + 78 * - MIN( + - 52 )
----
4002

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - 54 + 78 * - MIN ( + - 52 )
----
4002

query I rowsort
SELECT - 68 + + - 70
----
-138

query I rowsort
SELECT ALL 97 + - 22 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT ALL COUNT( - 43 ) + - CASE + ( - - 75 ) WHEN 44 * + 79 * + 8 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE 37 END
----
-36

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL COUNT ( - 43 ) + - CASE + ( - - 75 ) WHEN 44 * + 79 * + 8 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE 37 END
----
-36

query I rowsort
SELECT - ( - 36 ) - + 23 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3246
SELECT - CAST( 9 AS SIGNED ) DIV - - COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3246
SELECT - CAST ( 9 AS INTEGER ) / - - COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT - COUNT( * ) - 2 - + 91 col2, 30 AS col1
----
-94
30

skipif mysql # not compatible
query II rowsort label-3247
SELECT - COUNT ( * ) - 2 - + 91 col2, 30 AS col1
----
-94
30

query I rowsort
SELECT - NULLIF ( - - 45, - + 71 ) col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT - CASE + COUNT( * ) WHEN + 89 THEN NULL ELSE - 13 + - + CAST( + 68 AS SIGNED ) - 85 + + - 81 * + 31 * 80 + - 38 - COALESCE ( - ( + ( + COUNT( * ) ) ), - 99 + - 54 * CASE + COUNT( * ) WHEN 75 THEN ( + 58 ) + + 96 * + COUNT( * ) END ) END AS col1
----
201083

skipif mysql # not compatible
query I rowsort label-3249
SELECT - CASE + COUNT ( * ) WHEN + 89 THEN NULL ELSE - 13 + - + CAST ( + 68 AS INTEGER ) - 85 + + - 81 * + 31 * 80 + - 38 - COALESCE ( - ( + ( + COUNT ( * ) ) ), - 99 + - 54 * CASE + COUNT ( * ) WHEN 75 THEN ( + 58 ) + + 96 * + COUNT ( * ) END ) END AS col1
----
201083

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT + + 7 - + ( - 35 ) DIV 73
----
7

skipif mysql # not compatible
query I rowsort label-3250
SELECT + + 7 - + ( - 35 ) / 73
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT - CASE - - CAST( NULL AS SIGNED ) WHEN COUNT( * ) + + 61 * - - COUNT( + 14 ) * 67 - 97 * - 78 THEN NULL WHEN 69 THEN - 23 WHEN - + 82 THEN NULL END * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT - CASE - - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + + 61 * - - COUNT ( + 14 ) * 67 - 97 * - 78 THEN NULL WHEN 69 THEN - 23 WHEN - + 82 THEN NULL END * - - 80
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT + 26 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 26 / + 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT - 95 * SUM( DISTINCT + 76 ) - + CASE 32 WHEN + + CAST( + 47 AS SIGNED ) - + NULLIF ( + 64, - 22 ) * 12 * - 83 THEN + 51 * - MIN( - 81 ) / + 86 WHEN + 47 / + - 76 + + ( + 91 ) * - 72 + COUNT( - 83 ) THEN - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT - 95 * SUM ( DISTINCT + 76 ) - + CASE 32 WHEN + + CAST ( + 47 AS INTEGER ) - + NULLIF ( + 64, - 22 ) * 12 * - 83 THEN + 51 * - MIN ( - 81 ) / + 86 WHEN + 47 / + - 76 + + ( + 91 ) * - 72 + COUNT ( - 83 ) THEN - 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL - COUNT( * ) * - + CASE + 14 WHEN - 47 THEN NULL ELSE + + 17 - + + 55 END
----
-38

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL - COUNT ( * ) * - + CASE + 14 WHEN - 47 THEN NULL ELSE + + 17 - + + 55 END
----
-38

query I rowsort
SELECT - 93 * - + 82 + + - 70 AS col1
----
7556

query II rowsort
SELECT + COALESCE ( - 79, - - ( - 80 ) + - 14 ) AS col1, ( 38 )
----
-79
38

query I rowsort
SELECT DISTINCT ( 41 ) * 65
----
2665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT COALESCE ( + - 65, + - 3 DIV + + 13 * + MIN( 18 ) + - 75 + - 63 )
----
-65

skipif mysql # not compatible
query I rowsort label-3259
SELECT COALESCE ( + - 65, + - 3 / + + 13 * + MIN ( 18 ) + - 75 + - 63 )
----
-65

query I rowsort
SELECT ALL + 40 * - 7 * - 12
----
3360

query II rowsort
SELECT ALL 29 * + 24 + - - 76 + + - 28 AS col1, 57
----
744
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT - 50 + - + CASE - 48 WHEN + 65 + - 71 THEN 3 * + COUNT( * ) / 20 END col1, + 17 * COUNT( * ) AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-3263
SELECT - 50 + - + CASE - 48 WHEN + 65 + - 71 THEN 3 * + COUNT ( * ) / 20 END col1, + 17 * COUNT ( * ) AS col1
----
NULL
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT ALL 35 * + - CAST( NULL AS SIGNED ) + NULLIF ( - - 24, - - 46 ) + - 2 * + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL 35 * + - CAST ( NULL AS INTEGER ) + NULLIF ( - - 24, - - 46 ) + - 2 * + + 1 AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3265
SELECT COUNT ( * ), + 17 col0
----
1
17

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

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

query I rowsort
SELECT ALL + 77 * + 72
----
5544

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

skipif mysql # not compatible
query II rowsort label-3268
SELECT COUNT ( * ) AS col1, 49
----
1
49

query I rowsort
SELECT DISTINCT + 15 * - + 75 + + + ( + 41 )
----
-1084

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

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

query II rowsort
SELECT DISTINCT 51 col1, 30 + + 5
----
51
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT ( ( + - MIN( ALL 99 ) ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT ( ( + - MIN ( ALL 99 ) ) ) AS col1
----
-99

query I rowsort
SELECT - 84 + 58 AS col1
----
-26

query I rowsort
SELECT ALL - 56 - + 59
----
-115

query I rowsort
SELECT - 80 * - 79 AS col0
----
6320

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT - - 59 + + COUNT( * ) - - + CAST( - - 98 AS SIGNED ) * + 59 AS col1
----
5842

skipif mysql # not compatible
query I rowsort label-3277
SELECT - - 59 + + COUNT ( * ) - - + CAST ( - - 98 AS INTEGER ) * + 59 AS col1
----
5842

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT + - ( + 86 ) DIV - + 32 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3278
SELECT + - ( + 86 ) / - + 32 AS col2
----
2

query I rowsort
SELECT - + 84 + + - 22 AS col0
----
-106

query II rowsort
SELECT ALL 61, 57 + - 18 col1
----
61
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL SUM( 26 ) * + 4
----
104

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL SUM ( 26 ) * + 4
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3282
SELECT DISTINCT - - ( - 51 ) DIV 27, + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3282
SELECT DISTINCT - - ( - 51 ) / 27, + COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT + 39 + 77 + - + NULLIF ( 0, - 31 + - + 14 )
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3284
SELECT + CAST( - 73 AS SIGNED ) + - CAST( NULL AS SIGNED ) + - + MIN( - 7 ) - - + 0 * - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT + CAST ( - 73 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - + MIN ( - 7 ) - - + 0 * - + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT 94 * - COUNT( * ) + - ( - 11 ) + + ( 32 ) * - CAST( - 68 AS SIGNED ) - - - 27
----
2066

skipif mysql # not compatible
query I rowsort label-3285
SELECT 94 * - COUNT ( * ) + - ( - 11 ) + + ( 32 ) * - CAST ( - 68 AS INTEGER ) - - - 27
----
2066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT - 66 + 90 + + 51 + + CAST( NULL AS SIGNED ) + + 78 * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT - 66 + 90 + + 51 + + CAST ( NULL AS INTEGER ) + + 78 * - 15 col0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3290
SELECT DISTINCT 54 * 64 * 72 DIV + COUNT( * ) AS col1
----
248832

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT 54 * 64 * 72 / + COUNT ( * ) AS col1
----
248832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT ALL - CASE + SUM( 12 ) WHEN + - COALESCE ( + CAST( NULL AS SIGNED ), - 23, - + 60 * COUNT( * ) * - 68 ) THEN + 44 - - COUNT( * ) + - 22 * - CASE 32 WHEN + 62 THEN - 41 * + + 4 - - CAST( + 47 AS SIGNED ) + - 7 * 18 * + - 51 / - CASE COUNT( * ) WHEN - - 47 THEN - - COALESCE ( - 33, - 40, 77 - 83 ) * 18 WHEN + AVG ( ALL + 39 ) * 73 THEN NULL ELSE NULL END / - 27 + 83 END WHEN 43 + - COUNT( * ) / 27 THEN NULL ELSE NULL END + 51 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - CASE + SUM ( 12 ) WHEN + - COALESCE ( + CAST ( NULL AS INTEGER ), - 23, - + 60 * COUNT ( * ) * - 68 ) THEN + 44 - - COUNT ( * ) + - 22 * - CASE 32 WHEN + 62 THEN - 41 * + + 4 - - CAST ( + 47 AS INTEGER ) + - 7 * 18 * + - 51 / - CASE COUNT ( * ) WHEN - - 47 THEN - - COALESCE ( - 33, - 40, 77 - 83 ) * 18 WHEN + AVG ( ALL + 39 ) * 73 THEN NULL ELSE NULL END / - 27 + 83 END WHEN 43 + - COUNT ( * ) / 27 THEN NULL ELSE NULL END + 51 * 39
----
NULL

query I rowsort
SELECT + 32 * + 2 AS col2
----
64

query II rowsort
SELECT - 8 AS col1, 2 + + 4
----
-8
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT 67 DIV - ( + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-3294
SELECT 67 / - ( + 42 )
----
-1

query I rowsort
SELECT ALL - 80 + + + 98
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT DISTINCT - 71 DIV - ( + 25 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - 71 / - ( + 25 ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT DISTINCT 45 + 54 DIV 14 + - 40 - 17 * 12
----
-196

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 45 + 54 / 14 + - 40 - 17 * 12
----
-196

query I rowsort
SELECT DISTINCT 21 + + - 28 AS col0
----
-7

query I rowsort
SELECT ALL 80 + + 67 * 85 * + 4 AS col0
----
22860

query I rowsort
SELECT DISTINCT 15 + - 30 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - 54 * - MAX( DISTINCT - 18 )
----
-972

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - 54 * - MAX ( DISTINCT - 18 )
----
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT 83 DIV - ( + 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT 83 / - ( + 85 ) AS col1
----
0

query I rowsort
SELECT 81 * - NULLIF ( + - 10, 31 ) + - 5
----
805

onlyif mysql # aggregate syntax: 
query II rowsort label-3304
SELECT DISTINCT + 91 * + 57 AS col1, - 94 + ( 39 ) + - ( COUNT( * ) ) + + - 94 * + 56
----
5187
-5320

skipif mysql # not compatible
query II rowsort label-3304
SELECT DISTINCT + 91 * + 57 AS col1, - 94 + ( 39 ) + - ( COUNT ( * ) ) + + - 94 * + 56
----
5187
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT - COUNT( * ) - 35
----
-36

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT - COUNT ( * ) - 35
----
-36

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT 10 * - COUNT( * ) * - ( 64 ) + CASE + 11 WHEN - 97 THEN 96 * 51 ELSE + 47 * - + MIN( - 95 ) * 25 + - SUM( DISTINCT + 74 ) + + 44 * 59 * - + MAX( DISTINCT + 89 ) * - 44 * + + 26 - - - 64 END AS col2
----
264426463

skipif mysql # not compatible
query I rowsort label-3309
SELECT 10 * - COUNT ( * ) * - ( 64 ) + CASE + 11 WHEN - 97 THEN 96 * 51 ELSE + 47 * - + MIN ( - 95 ) * 25 + - SUM ( DISTINCT + 74 ) + + 44 * 59 * - + MAX ( DISTINCT + 89 ) * - 44 * + + 26 - - - 64 END AS col2
----
264426463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL + COUNT( * ) - - MIN( DISTINCT + 50 ) * + CASE - 75 WHEN + 33 * - COALESCE ( + 50, 19 * NULLIF ( - 15, + - 65 ) * - 89 ) * + 87 - - + 10 + - 74 * + + 51 - + 80 - 50 THEN + 5 ELSE - 24 * + 47 * - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + COUNT ( * ) - - MIN ( DISTINCT + 50 ) * + CASE - 75 WHEN + 33 * - COALESCE ( + 50, 19 * NULLIF ( - 15, + - 65 ) * - 89 ) * + 87 - - + 10 + - 74 * + + 51 - + 80 - 50 THEN + 5 ELSE - 24 * + 47 * - - CAST ( NULL AS INTEGER ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL - NULLIF ( ( COUNT( ALL + 31 ) ), 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - NULLIF ( ( COUNT ( ALL + 31 ) ), 28 )
----
-1

query I rowsort
SELECT - - 91 col2
----
91

query I rowsort
SELECT + 92 - + 2 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT - 61 * COUNT( * ) + + 16 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - 61 * COUNT ( * ) + + 16 AS col1
----
-45

query I rowsort
SELECT ALL - 44 * 94 AS col0
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - NULLIF ( 70, - 20 + 12 - + COUNT( DISTINCT + 71 ) + + 39 * 33 + 64 * MIN( - + 46 ) ) * SUM( - 15 ) * - 54 * 25 * 5
----
-7087500

skipif mysql # not compatible
query I rowsort label-3317
SELECT - NULLIF ( 70, - 20 + 12 - + COUNT ( DISTINCT + 71 ) + + 39 * 33 + 64 * MIN ( - + 46 ) ) * SUM ( - 15 ) * - 54 * 25 * 5
----
-7087500

query II rowsort
SELECT ALL - - 98 * 34, 91 AS col2
----
3332
91

query II rowsort
SELECT DISTINCT - 0 + - 39 AS col0, + 83 col0
----
-39
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + CASE - ( - 31 ) WHEN + SUM( + ( + 43 ) ) + - 38 THEN NULL WHEN 29 THEN + ( - - 34 ) ELSE NULL END / 99 * AVG ( 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT + CASE - ( - 31 ) WHEN + SUM ( + ( + 43 ) ) + - 38 THEN NULL WHEN 29 THEN + ( - - 34 ) ELSE NULL END / 99 * AVG ( 12 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT ALL - 67 + - + COUNT( * ) AS col1, COUNT( * )
----
-68
1

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL - 67 + - + COUNT ( * ) AS col1, COUNT ( * )
----
-68
1

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

query I rowsort
SELECT ALL - 17 + + 94
----
77

query I rowsort
SELECT 86 * 41 AS col2
----
3526

query I rowsort
SELECT 30 * - 1 * - + 55 AS col2
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL NULLIF ( + - SUM( ALL - ( - 68 ) ), NULLIF ( COUNT( * ), 77 + MAX( 95 ) + + - 32 + - + 84 + 44 - + + COUNT( * ) * 30 * + + 57 * 4 * - 19 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL NULLIF ( + - SUM ( ALL - ( - 68 ) ), NULLIF ( COUNT ( * ), 77 + MAX ( 95 ) + + - 32 + - + 84 + 44 - + + COUNT ( * ) * 30 * + + 57 * 4 * - 19 ) )
----
-68

query I rowsort
SELECT ALL 70 + NULLIF ( + 55, 1 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT + SUM( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3330
SELECT + SUM ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL + 57 + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + 57 + + COUNT ( * )
----
58

query I rowsort
SELECT ALL 92 + + ( - 60 ) * 10 AS col1
----
-508

query I rowsort
SELECT ALL - 12 + - - 65 AS col2
----
53

query I rowsort
SELECT 57 + - 32
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL 80 + + - 36 * CASE NULLIF ( + - 75, - 24 * - MAX( DISTINCT + - 55 ) ) WHEN - 8 * + ( + 8 ) THEN - - 68 ELSE 38 * - 24 - 32 + 67 * - - 79 * + NULLIF ( - 47, 59 ) END AS col2
----
8989820

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL 80 + + - 36 * CASE NULLIF ( + - 75, - 24 * - MAX ( DISTINCT + - 55 ) ) WHEN - 8 * + ( + 8 ) THEN - - 68 ELSE 38 * - 24 - 32 + 67 * - - 79 * + NULLIF ( - 47, 59 ) END AS col2
----
8989820

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

query I rowsort
SELECT 73 + 74
----
147

query I rowsort
SELECT ALL + 50 - 35 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT - 95 * + 46 * + COUNT( * ) * + 6
----
-26220

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - 95 * + 46 * + COUNT ( * ) * + 6
----
-26220

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT 22 DIV ( + + 26 ) * - 6 * COALESCE ( - 96, 27 ) + ( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-3340
SELECT 22 / ( + + 26 ) * - 6 * COALESCE ( - 96, 27 ) + ( - 95 )
----
-95

query I rowsort
SELECT ALL 26 - + 89 AS col1
----
-63

query I rowsort
SELECT 98 * - 79 col1
----
-7742

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT ( + 25 ) + - MAX( ALL - - ( 80 ) ) AS col2, - 69 AS col2
----
-55
-69

skipif mysql # not compatible
query II rowsort label-3343
SELECT ( + 25 ) + - MAX ( ALL - - ( 80 ) ) AS col2, - 69 AS col2
----
-55
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3344
SELECT ALL - ( AVG ( CAST( NULL AS DECIMAL ) ) ) * + - 65 * 23 * 75 * - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - ( AVG ( CAST ( NULL AS REAL ) ) ) * + - 65 * 23 * 75 * - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT COUNT( * ) + + - 29 + + + MIN( + 55 ) DIV - ( 32 )
----
-29

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( * ) + + - 29 + + + MIN ( + 55 ) / - ( 32 )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT ALL - 53 AS col2, - 84 * + 14 * + 69 + + SUM( DISTINCT 91 )
----
-53
-81053

skipif mysql # not compatible
query II rowsort label-3346
SELECT ALL - 53 AS col2, - 84 * + 14 * + 69 + + SUM ( DISTINCT 91 )
----
-53
-81053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3347
SELECT COUNT( * ) * 94 DIV ( - 65 ) DIV - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3347
SELECT COUNT ( * ) * 94 / ( - 65 ) / - COUNT ( * ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3349
SELECT DISTINCT COUNT( * ) DIV 49 * - - 97 AS col0, + 74 * + 6
----
0
444

skipif mysql # not compatible
query II rowsort label-3349
SELECT DISTINCT COUNT ( * ) / 49 * - - 97 AS col0, + 74 * + 6
----
0
444

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT COUNT( * ) + - 70 * - 16 * - 84 * + - 52 AS col2
----
4892161

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( * ) + - 70 * - 16 * - 84 * + - 52 AS col2
----
4892161

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT 43 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT 43 / + 51
----
0

query I rowsort
SELECT ALL CASE - 25 WHEN - 79 THEN + 49 WHEN 52 THEN NULL END * - + ( 43 ) + + 92 + - - 13 / 79 / 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT + 95 * + 90 - - - ( + COUNT( * ) )
----
8549

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + 95 * + 90 - - - ( + COUNT ( * ) )
----
8549

query I rowsort
SELECT DISTINCT - ( + CASE - 79 WHEN + 13 * - 85 + 41 THEN NULL ELSE 13 + + 3 END )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT + 98 DIV + 43 col1
----
2

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 98 / + 43 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - ( - - ( - 62 ) ) * - 36 * COUNT( * )
----
-2232

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - ( - - ( - 62 ) ) * - 36 * COUNT ( * )
----
-2232

query I rowsort
SELECT DISTINCT 73 + + 88 AS col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT CAST( - 58 AS SIGNED ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3358
SELECT CAST ( - 58 AS INTEGER ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - + COUNT( - 37 ) + 64 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - + COUNT ( - 37 ) + 64 AS col0
----
63

query I rowsort
SELECT DISTINCT + 24 + 27 + 36 AS col1
----
87

query I rowsort
SELECT - 48 * + 45
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL - 21 + COUNT( * ) + ( + 85 ) + + 1 * + 56 * - 81 * COUNT( * ) * + 10 * - 65 * 95 + + 93 + + 68 + + 24 + - COUNT( * ) + - COUNT( * ) * - COUNT( * ) col0
----
280098250

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - 21 + COUNT ( * ) + ( + 85 ) + + 1 * + 56 * - 81 * COUNT ( * ) * + 10 * - 65 * 95 + + 93 + + 68 + + 24 + - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) col0
----
280098250

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + 87 + + MIN( DISTINCT 35 ) - - 90
----
212

skipif mysql # not compatible
query I rowsort label-3363
SELECT + 87 + + MIN ( DISTINCT 35 ) - - 90
----
212

query I rowsort
SELECT DISTINCT + - 57 + ( + 1 ) * + - 34
----
-91

query I rowsort
SELECT - 15 + 91 * 8 + + NULLIF ( 53, 66 )
----
766

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL COUNT( DISTINCT + 43 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL COUNT ( DISTINCT + 43 ) col2
----
1

query I rowsort
SELECT DISTINCT - - 28 + - 95
----
-67

query II rowsort
SELECT + 20 AS col0, 11
----
20
11

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

query II rowsort
SELECT - 7 col2, 33
----
-7
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT - 75 + - + COUNT( * ) - + 6 * + 8
----
-124

skipif mysql # not compatible
query I rowsort label-3371
SELECT - 75 + - + COUNT ( * ) - + 6 * + 8
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - COALESCE ( - CASE - 57 WHEN - + 78 * - 12 + + 63 + + - COUNT( * ) + + + 72 THEN NULL WHEN 82 / COUNT( * ) + - - 30 THEN + - COUNT( * ) ELSE - 59 - - + ( + 31 ) END, + + 49 ) * 38 + - 19 * 99
----
-2945

skipif mysql # not compatible
query I rowsort label-3372
SELECT - COALESCE ( - CASE - 57 WHEN - + 78 * - 12 + + 63 + + - COUNT ( * ) + + + 72 THEN NULL WHEN 82 / COUNT ( * ) + - - 30 THEN + - COUNT ( * ) ELSE - 59 - - + ( + 31 ) END, + + 49 ) * 38 + - 19 * 99
----
-2945

query I rowsort
SELECT - CASE - + 2 WHEN - + 92 THEN - ( + 49 ) WHEN + - 55 THEN NULL WHEN 89 THEN 65 END / - 6 + - 47 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3374
SELECT ALL + 54 AS col1, + 22 * MIN( - - CAST( NULL AS SIGNED ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL + 54 AS col1, + 22 * MIN ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
54
NULL

query II rowsort
SELECT + 74 AS col1, + 33 AS col0
----
74
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3376
SELECT - CAST( NULL AS DECIMAL ) / + 60 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( NULL AS REAL ) / + 60 / + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT DISTINCT + 36 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + 36 / + 79 AS col1
----
0

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

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

query I rowsort
SELECT + 79 * - ( + 31 ) AS col0
----
-2449

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL MIN( - 77 ) * + 2 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL MIN ( - 77 ) * + 2 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT CASE + 72 WHEN - 20 - + 50 * - + 69 * - COUNT( - 91 ) THEN - - 39 * COUNT( * ) WHEN 68 * + - 13 + - 98 THEN - 9 + - - CASE + 6 WHEN 79 * + + COUNT( * ) THEN - 82 + + 97 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT CASE + 72 WHEN - 20 - + 50 * - + 69 * - COUNT ( - 91 ) THEN - - 39 * COUNT ( * ) WHEN 68 * + - 13 + - 98 THEN - 9 + - - CASE + 6 WHEN 79 * + + COUNT ( * ) THEN - 82 + + 97 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT - SUM( 96 ) * - 10 + + 21
----
981

skipif mysql # not compatible
query I rowsort label-3382
SELECT - SUM ( 96 ) * - 10 + + 21
----
981

query I rowsort
SELECT + 43 * + - 92 * + + 37
----
-146372

query II rowsort
SELECT DISTINCT + - 61 AS col0, 64 AS col1
----
-61
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT ALL - 35 * CAST( 99 AS SIGNED ) * + 53 + + 87 * - 62 + - + 98 * - - 34 + 57
----
-192314

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - 35 * CAST ( 99 AS INTEGER ) * + 53 + + 87 * - 62 + - + 98 * - - 34 + 57
----
-192314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT DISTINCT - - 12 * - 21 + - CASE - + 95 WHEN + + 71 THEN 72 / - - CAST( NULL AS SIGNED ) + - + 89 / + 28 ELSE NULL END + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - - 12 * - 21 + - CASE - + 95 WHEN + + 71 THEN 72 / - - CAST ( NULL AS INTEGER ) + - + 89 / + 28 ELSE NULL END + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT - + COUNT( - - 94 ) * - - ( - 66 ) + - - COUNT( * ) AS col0
----
67

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

query I rowsort
SELECT + - 73 * - 28 * 32
----
65408

query I rowsort
SELECT ALL 2 + 45 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3390
SELECT - 3, COUNT( CAST( + 25 AS SIGNED ) ) AS col1, + 27 + COUNT( * ) col0
----
-3
1
28

skipif mysql # not compatible
query III rowsort label-3390
SELECT - 3, COUNT ( CAST ( + 25 AS INTEGER ) ) AS col1, + 27 + COUNT ( * ) col0
----
-3
1
28

query I rowsort
SELECT + - 70 * 95 AS col2
----
-6650

query I rowsort
SELECT + 90 + + 93 AS col0
----
183

query I rowsort
SELECT ALL + 90 + - + 72
----
18

query I rowsort
SELECT - NULLIF ( + 51, 46 ) col0
----
-51

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

query I rowsort
SELECT + 21 * 2 * - 53
----
-2226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT DISTINCT ( - CASE - - 12 WHEN - 89 THEN + + 26 + - 82 ELSE 87 * COALESCE ( ( + - 25 ), + + ( + 81 ) ) DIV COUNT( DISTINCT 22 ) + ( + 31 ) END ) * - MIN( + - 83 )
----
177952

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT ( - CASE - - 12 WHEN - 89 THEN + + 26 + - 82 ELSE 87 * COALESCE ( ( + - 25 ), + + ( + 81 ) ) / COUNT ( DISTINCT 22 ) + ( + 31 ) END ) * - MIN ( + - 83 )
----
177952

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT ALL + - 55 DIV 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL + - 55 / 54 AS col0
----
-1

query I rowsort
SELECT + + 43 - - 30 col1
----
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3400
SELECT ALL NULLIF ( + CAST( NULL AS DECIMAL ), 5 + + + 1 * - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL NULLIF ( + CAST ( NULL AS REAL ), 5 + + + 1 * - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT + 67 - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + 67 - COUNT ( * ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT + NULLIF ( + 96, - CAST( NULL AS SIGNED ) ) * ( ( - 91 ) ) * - 87 + 78 + 75 AS col0
----
760185

skipif mysql # not compatible
query I rowsort label-3402
SELECT + NULLIF ( + 96, - CAST ( NULL AS INTEGER ) ) * ( ( - 91 ) ) * - 87 + 78 + 75 AS col0
----
760185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3403
SELECT ALL + 50 - 33 + + - 70 + - CAST( NULL AS SIGNED ) * - 24 - COUNT( ALL 47 ) DIV + COUNT( * ) AS col1, - 98 - + - ( - NULLIF ( - 68, - 20 ) ) + - COUNT( + 19 ) DIV - COALESCE ( + 75, - CASE + - 82 WHEN - 54 THEN 72 ELSE NULL END DIV + 46 )
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL + 50 - 33 + + - 70 + - CAST ( NULL AS INTEGER ) * - 24 - COUNT ( ALL 47 ) / + COUNT ( * ) AS col1, - 98 - + - ( - NULLIF ( - 68, - 20 ) ) + - COUNT ( + 19 ) / - COALESCE ( + 75, - CASE + - 82 WHEN - 54 THEN 72 ELSE NULL END / + 46 )
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT + ( - 28 ) * COUNT( * ) - + MAX( ALL - 1 ) + ( + 72 ) * - + 94 + - 62 * + - MIN( ALL - 93 ) - ( + 88 ) AS col0
----
-12649

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + ( - 28 ) * COUNT ( * ) - + MAX ( ALL - 1 ) + ( + 72 ) * - + 94 + - 62 * + - MIN ( ALL - 93 ) - ( + 88 ) AS col0
----
-12649

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT - 9 - 34, - COUNT( * ) AS col0
----
-43
-1

skipif mysql # not compatible
query II rowsort label-3405
SELECT - 9 - 34, - COUNT ( * ) AS col0
----
-43
-1

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

query I rowsort
SELECT DISTINCT + 32 * + 44 AS col0
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT + CAST( - - COUNT( ALL + + 90 ) AS SIGNED ) + + - 35 * + 53 * - 74 col2
----
137271

skipif mysql # not compatible
query I rowsort label-3408
SELECT + CAST ( - - COUNT ( ALL + + 90 ) AS INTEGER ) + + - 35 * + 53 * - 74 col2
----
137271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT - CAST( + - 50 AS SIGNED ) + - + 50 + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-3409
SELECT - CAST ( + - 50 AS INTEGER ) + - + 50 + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL + MIN( ALL NULLIF ( + 35, + 75 ) )
----
35

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + MIN ( ALL NULLIF ( + 35, + 75 ) )
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT DISTINCT - 85 / - - 27 * 17 + - + 18 - + CASE - 87 WHEN - 85 THEN + 85 WHEN + 61 THEN NULL ELSE NULL END * SUM( ALL CAST( NULL AS SIGNED ) ) * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - 85 / - - 27 * 17 + - + 18 - + CASE - 87 WHEN - 85 THEN + 85 WHEN + 61 THEN NULL ELSE NULL END * SUM ( ALL CAST ( NULL AS INTEGER ) ) * 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT + MAX( 99 ), + 73 AS col2
----
99
73

skipif mysql # not compatible
query II rowsort label-3413
SELECT + MAX ( 99 ), + 73 AS col2
----
99
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT - 24 * - + 99 + 3 AS col1, - MAX( ALL + 18 ) * 66 * + + 76 - - MIN( ALL 45 ) col0
----
2379
-90243

skipif mysql # not compatible
query II rowsort label-3414
SELECT - 24 * - + 99 + 3 AS col1, - MAX ( ALL + 18 ) * 66 * + + 76 - - MIN ( ALL 45 ) col0
----
2379
-90243

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT - 94 + + 11 AS col0, + ( + COUNT( * ) )
----
-83
1

skipif mysql # not compatible
query II rowsort label-3415
SELECT - 94 + + 11 AS col0, + ( + COUNT ( * ) )
----
-83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT + + MIN( + 8 ) + - 0 + + 30 col1
----
38

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT + + MIN ( + 8 ) + - 0 + + 30 col1
----
38

query I rowsort
SELECT ALL 91 + - 70 + 2
----
23

query II rowsort
SELECT - ( + 29 ) col0, - 68
----
-29
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL + + COUNT( * ) + + 76 * 33
----
2509

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + + COUNT ( * ) + + 76 * 33
----
2509

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - ( - - COUNT( * ) ) + + 41 + + - 32 + - 64
----
-56

skipif mysql # not compatible
query I rowsort label-3420
SELECT - ( - - COUNT ( * ) ) + + 41 + + - 32 + - 64
----
-56

query I rowsort
SELECT 64 * + 49 AS col2
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT SUM( ALL + 56 ) + + 30 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3422
SELECT SUM ( ALL + 56 ) + + 30 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT - AVG ( ALL - CASE 0 WHEN 29 * - + 1 THEN - CAST( - 32 AS SIGNED ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - AVG ( ALL - CASE 0 WHEN 29 * - + 1 THEN - CAST ( - 32 AS INTEGER ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT - - MIN( + + 65 ) AS col0, COALESCE ( + 28, + - COUNT( * ), - ( CASE - 0 WHEN - 32 THEN NULL WHEN - 0 THEN NULL WHEN + COUNT( * ) * + 29 THEN 6 + - 45 WHEN + COUNT( * ) THEN NULL END ) ) + + - 56
----
65
-28

skipif mysql # not compatible
query II rowsort label-3424
SELECT - - MIN ( + + 65 ) AS col0, COALESCE ( + 28, + - COUNT ( * ), - ( CASE - 0 WHEN - 32 THEN NULL WHEN - 0 THEN NULL WHEN + COUNT ( * ) * + 29 THEN 6 + - 45 WHEN + COUNT ( * ) THEN NULL END ) ) + + - 56
----
65
-28

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

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

query I rowsort
SELECT 84 - + 28 * + 85
----
-2296

query I rowsort
SELECT 83 + + 85 * - 49
----
-4082

query I rowsort
SELECT ALL 51 - + - 6 AS col2
----
57

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

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

query II rowsort
SELECT ALL 17 AS col0, - 57 * - 13 AS col2
----
17
741

query I rowsort
SELECT ( - 91 ) + + 37 AS col0
----
-54

query II rowsort
SELECT - 26 AS col1, 54 * - 54 AS col1
----
-26
-2916

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT 27 + + + SUM( DISTINCT + 64 ) AS col1, - 68 * + ( + COUNT( ALL 20 ) )
----
91
-68

skipif mysql # not compatible
query II rowsort label-3433
SELECT 27 + + + SUM ( DISTINCT + 64 ) AS col1, - 68 * + ( + COUNT ( ALL 20 ) )
----
91
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-3434
SELECT ALL 28 col1, 12 + - 67 + - 74 + 56 DIV - 85 AS col2
----
28
-129

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL 28 col1, 12 + - 67 + - 74 + 56 / - 85 AS col2
----
28
-129

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ( + 79 ) * + COALESCE ( COUNT( * ), 0 )
----
79

skipif mysql # not compatible
query I rowsort label-3436
SELECT ( + 79 ) * + COALESCE ( COUNT ( * ), 0 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT - 57 DIV 80 + 27 + + + 5
----
32

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 57 / 80 + 27 + + + 5
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT SUM( DISTINCT - 99 ) + + 15 col1
----
-84

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT SUM ( DISTINCT - 99 ) + + 15 col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT DISTINCT + 83 + - 72 + + 90, + COUNT( * ) * + 40 AS col2
----
101
40

skipif mysql # not compatible
query II rowsort label-3439
SELECT DISTINCT + 83 + - 72 + + 90, + COUNT ( * ) * + 40 AS col2
----
101
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT 52 * - 71 * 41 AS col2, - 86 * + 3 - + + 39 + - + COUNT( * ) col1
----
-151372
-298

skipif mysql # not compatible
query II rowsort label-3440
SELECT 52 * - 71 * 41 AS col2, - 86 * + 3 - + + 39 + - + COUNT ( * ) col1
----
-151372
-298

query II rowsort
SELECT + - 81 AS col1, 17
----
-81
17

query I rowsort
SELECT DISTINCT - 84 + + - 47
----
-131

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

skipif mysql # not compatible
query I rowsort label-3443
SELECT + + MAX ( - 80 )
----
-80

query I rowsort
SELECT + CASE + 81 WHEN + 10 * + 3 * - - 38 * - 97 THEN NULL WHEN - + 11 * - 72 THEN 12 + + 2 END AS col2
----
NULL

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

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

query I rowsort
SELECT 45 * - 50 - 31 AS col1
----
-2281

query I rowsort
SELECT + 14 * + 66 + 47 AS col2
----
971

query I rowsort
SELECT DISTINCT 23 + - NULLIF ( 54, - 72 ) AS col0
----
-31

query I rowsort
SELECT ALL - 90 - - - 87 AS col2
----
-177

query I rowsort
SELECT - 81 * + 22 AS col0
----
-1782

query I rowsort
SELECT ALL + + 1 - + 45 + 1 * 73
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT COUNT( - 44 ) * + 50 AS col1, 96 + - 98 AS col2
----
50
-2

skipif mysql # not compatible
query II rowsort label-3452
SELECT COUNT ( - 44 ) * + 50 AS col1, 96 + - 98 AS col2
----
50
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT 30 + - MAX( ALL 41 ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-3454
SELECT 30 + - MAX ( ALL 41 ) col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3455
SELECT - 8 DIV COUNT( DISTINCT + + 31 ) AS col1, ( + - ( + 45 ) ) AS col0
----
-8
-45

skipif mysql # not compatible
query II rowsort label-3455
SELECT - 8 / COUNT ( DISTINCT + + 31 ) AS col1, ( + - ( + 45 ) ) AS col0
----
-8
-45

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT - COALESCE ( + 6, 67, - + 27 * + CAST( NULL AS SIGNED ), + - 28 ) * + - COUNT( * ) + - 41 * - 67 AS col0
----
2753

skipif mysql # not compatible
query I rowsort label-3458
SELECT - COALESCE ( + 6, 67, - + 27 * + CAST ( NULL AS INTEGER ), + - 28 ) * + - COUNT ( * ) + - 41 * - 67 AS col0
----
2753

query II rowsort
SELECT DISTINCT + + 42 * + 38 + CASE + + 44 WHEN + 30 - 77 THEN + 95 + + 19 + - 48 WHEN - 85 THEN NULL END * + - 51 * 16 + + 29 + - + 72 AS col0, 18 * + 41
----
NULL
738

query II rowsort
SELECT ALL 6 AS col2, - 61 AS col2
----
6
-61

query I rowsort
SELECT - 97 * - - 18 * - 72 col2
----
125712

query I rowsort
SELECT DISTINCT - 50 * + + 57 * + - 99
----
282150

query I rowsort
SELECT 82 * + + 5 * - + 64 * + 68
----
-1784320

query I rowsort
SELECT 18 * + 72
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - MAX( DISTINCT - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-3465
SELECT - MAX ( DISTINCT - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT SUM( + + 13 ) - + 23 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3466
SELECT SUM ( + + 13 ) - + 23 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT 37 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT 37 / + 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3468
SELECT 8 - NULLIF ( - - 13, - - 40 / + MAX( + 31 ) + + - 47 + + CAST( + - 44 AS DECIMAL ) / + - 64 )
----
-5

skipif mysql # not compatible
query I rowsort label-3468
SELECT 8 - NULLIF ( - - 13, - - 40 / + MAX ( + 31 ) + + - 47 + + CAST ( + - 44 AS REAL ) / + - 64 )
----
-5

query II rowsort
SELECT DISTINCT 61 * - + 91, 54 AS col2
----
-5551
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL SUM( 45 ) * + + 65
----
2925

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL SUM ( 45 ) * + + 65
----
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT 27 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT 27 / 66 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT 26 * + - 21
----
-546

query I rowsort
SELECT DISTINCT + NULLIF ( - + 0, - - 24 * 46 )
----
0

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

skipif mysql # not compatible
query I rowsort label-3475
SELECT 33 / - COUNT ( * ) + ( - - ( + 73 ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT + 72 DIV + 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3476
SELECT + 72 / + 65 AS col1
----
1

query I rowsort
SELECT + 84 * 3
----
252

query I rowsort
SELECT COALESCE ( - - 56, + + 65 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL + 21 * + + 60 * + + COUNT( + 91 ) - - + 21 + + 15 * - 20
----
981

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + 21 * + + 60 * + + COUNT ( + 91 ) - - + 21 + + 15 * - 20
----
981

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT ALL - 39 * - 85 + 22 + 71 - 45 DIV - 63 + 1 + - ( - + COUNT( * ) ) - 12 * + 32 AS col1
----
3026

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - 39 * - 85 + 22 + 71 - 45 / - 63 + 1 + - ( - + COUNT ( * ) ) - 12 * + 32 AS col1
----
3026

query I rowsort
SELECT + + 22 * 89 * - 69 AS col2
----
-135102

query I rowsort
SELECT 84 * - 31 + + 86 + + 42 * + 91 AS col0
----
1304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3484
SELECT + COUNT( * ) DIV + SUM( - 73 ) * + + 81 AS col1, CAST( NULL AS SIGNED ) * - 53
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3484
SELECT + COUNT ( * ) / + SUM ( - 73 ) * + + 81 AS col1, CAST ( NULL AS INTEGER ) * - 53
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3485
SELECT ALL + - COUNT( ALL 6 ), + ( COUNT( ALL CAST( NULL AS SIGNED ) ) ) col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL + - COUNT ( ALL 6 ), + ( COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL CASE + - 74 WHEN - CASE - 20 WHEN - + 31 THEN - 22 / - + 27 * - - 66 END THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL CASE + - 74 WHEN - CASE - 20 WHEN - + 31 THEN - 22 / - + 27 * - - 66 END THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT ALL ( 38 ) * + 72 * 39 - + 43 + + 49 + 86
----
106796

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT ALL + 95 DIV 93 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + 95 / 93 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL + CASE - 87 WHEN + 61 * + - SUM( ALL - 97 ) THEN 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + CASE - 87 WHEN + 61 * + - SUM ( ALL - 97 ) THEN 45 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT - 10 - - 51 DIV - ( - 53 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3490
SELECT - 10 - - 51 / - ( - 53 ) AS col2
----
-10

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

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

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

query I rowsort
SELECT - 56 * 46 * - 90 * 73
----
16924320

query I rowsort
SELECT - 74 + 36 AS col2
----
-38

query I rowsort
SELECT DISTINCT - ( + 32 ) * - - 3 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + COUNT( DISTINCT + - 3 ) - - - CASE + 45 WHEN - 8 THEN NULL WHEN + COUNT( * ) * + 82 - 79 THEN NULL ELSE 57 END AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3496
SELECT + COUNT ( DISTINCT + - 3 ) - - - CASE + 45 WHEN - 8 THEN NULL WHEN + COUNT ( * ) * + 82 - 79 THEN NULL ELSE 57 END AS col1
----
-56

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

query I rowsort
SELECT - 26 + 6 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT COUNT( + 38 ) + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT COUNT ( + 38 ) + - 3
----
-2

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

query I rowsort
SELECT - 96 + 67 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3502
SELECT DISTINCT - 83 + + 53 * CAST( 46 AS SIGNED ) * - 70 + + COUNT( * ) + - 49 * - CAST( NULL AS SIGNED ), 19 - + + MIN( ALL 27 ) AS col0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT - 83 + + 53 * CAST ( 46 AS INTEGER ) * - 70 + + COUNT ( * ) + - 49 * - CAST ( NULL AS INTEGER ), 19 - + + MIN ( ALL 27 ) AS col0
----
NULL
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + COUNT( * ) + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3504
SELECT + COUNT ( * ) + 37 AS col1
----
38

query I rowsort
SELECT - 60 * + 82 col0
----
-4920

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT DISTINCT 72 DIV + + 58 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT 72 / + + 58 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT COUNT( * ) * 33 DIV 21 + + + NULLIF ( - - COUNT( * ), - 58 - + + ( 10 ) + - 64 * 53 )
----
2

skipif mysql # not compatible
query I rowsort label-3507
SELECT COUNT ( * ) * 33 / 21 + + + NULLIF ( - - COUNT ( * ), - 58 - + + ( 10 ) + - 64 * 53 )
----
2

query I rowsort
SELECT ALL + + 53 col0
----
53

query I rowsort
SELECT DISTINCT 75 * 42
----
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT + - 62 DIV - 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3510
SELECT + - 62 / - 61 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT + 50 col0, - COUNT( * ) * + 32 AS col0
----
50
-32

skipif mysql # not compatible
query II rowsort label-3511
SELECT + 50 col0, - COUNT ( * ) * + 32 AS col0
----
50
-32

query I rowsort
SELECT ALL 46 * - - 47 * + 20 + 1 AS col1
----
43241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT + 90 * 89 DIV 89 + + 24 + - 64 - - ( + MIN( + NULLIF ( - 17, 32 ) ) ) - + 69 * 94 - + 65
----
-6518

skipif mysql # not compatible
query I rowsort label-3513
SELECT + 90 * 89 / 89 + + 24 + - 64 - - ( + MIN ( + NULLIF ( - 17, 32 ) ) ) - + 69 * 94 - + 65
----
-6518

query II rowsort
SELECT 41, + 9 AS col2
----
41
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT + NULLIF ( + 10, - 95 - - 53 + 59 * - CASE + 0 WHEN - ( - 48 ) * + 77 + - 75 + - COUNT( * ) * + 50 THEN NULL WHEN - 98 THEN NULL ELSE - CAST( ( 73 ) AS SIGNED ) END ) - 93 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3515
SELECT + NULLIF ( + 10, - 95 - - 53 + 59 * - CASE + 0 WHEN - ( - 48 ) * + 77 + - 75 + - COUNT ( * ) * + 50 THEN NULL WHEN - 98 THEN NULL ELSE - CAST ( ( 73 ) AS INTEGER ) END ) - 93 AS col1
----
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT - CAST( NULL AS SIGNED ) * + - 8 * + - 50 - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT - CAST ( NULL AS INTEGER ) * + - 8 * + - 50 - 85 AS col1
----
NULL

query I rowsort
SELECT 96 * 62 + + 59
----
6011

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3519
SELECT - 63 DIV - 66 AS col0, + CASE 69 WHEN 71 THEN - 85 + - COUNT( * ) - + + SUM( + 90 ) END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3519
SELECT - 63 / - 66 AS col0, + CASE 69 WHEN 71 THEN - 85 + - COUNT ( * ) - + + SUM ( + 90 ) END AS col0
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT + ( + - 73 ) * - + MAX( + CAST( + ( - 71 ) AS SIGNED ) ) * - 11 - + COUNT( * ) AS col0
----
57012

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + ( + - 73 ) * - + MAX ( + CAST ( + ( - 71 ) AS INTEGER ) ) * - 11 - + COUNT ( * ) AS col0
----
57012

query I rowsort
SELECT ALL - 3 * + 92 + + - 25 AS col2
----
-301

query I rowsort
SELECT - 56 + - 61 * 69
----
-4265

query I rowsort
SELECT ALL ( - 70 ) col1
----
-70

query I rowsort
SELECT ALL - 97 + - 24
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT - 35 AS col0, COALESCE ( + 6, 70 * 1, + - COALESCE ( - 41, + + COALESCE ( + COUNT( * ), 69 * + - 17 ) * - - 82 ) ) + + 79 * + 89 * COALESCE ( + 68, + COUNT( * ) ) * - - 55 AS col0
----
-35
26295946

skipif mysql # not compatible
query II rowsort label-3525
SELECT - 35 AS col0, COALESCE ( + 6, 70 * 1, + - COALESCE ( - 41, + + COALESCE ( + COUNT ( * ), 69 * + - 17 ) * - - 82 ) ) + + 79 * + 89 * COALESCE ( + 68, + COUNT ( * ) ) * - - 55 AS col0
----
-35
26295946

query II rowsort
SELECT - 37, - 30 AS col1
----
-37
-30

query I rowsort
SELECT 33 - + + 58 * - 73
----
4267

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT 42 - + + 18 + - - 60 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3528
SELECT 42 - + + 18 + - - 60 + COUNT ( * )
----
85

query I rowsort
SELECT 78 * + 3 * + NULLIF ( + + 56, + - 58 ) col0
----
13104

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT + 52 * NULLIF ( + ( - 61 ), - MAX( DISTINCT + 70 ) * - 3 + + 68 )
----
-3172

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + 52 * NULLIF ( + ( - 61 ), - MAX ( DISTINCT + 70 ) * - 3 + + 68 )
----
-3172

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT ALL - 98 - 27 * - COUNT( * ) * 60 AS col0, - 88
----
1522
-88

skipif mysql # not compatible
query II rowsort label-3531
SELECT ALL - 98 - 27 * - COUNT ( * ) * 60 AS col0, - 88
----
1522
-88

query I rowsort
SELECT - 34 * + 14 AS col2
----
-476

query I rowsort
SELECT DISTINCT + - 27 * + 15 + + 10 AS col2
----
-395

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

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

query I rowsort
SELECT 7 + + 4 AS col2
----
11

query I rowsort
SELECT + + 41 * 56 * + 99 * 80 - - 14
----
18184334

query II rowsort
SELECT + 0 * - 16 AS col2, 57 + 60 - + ( + 7 ) + + 56 * - - 70 * - 13 * 62 * - 75 + 72 + + 61 * - 46 AS col2
----
0
236961376

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

query I rowsort
SELECT 43 * + + 44 AS col0
----
1892

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3541
SELECT + COUNT( * ) DIV COUNT( * ) + + + 77 * 94
----
7239

skipif mysql # not compatible
query I rowsort label-3541
SELECT + COUNT ( * ) / COUNT ( * ) + + + 77 * 94
----
7239

query II rowsort
SELECT ALL - 64 col2, + 77 AS col2
----
-64
77

query I rowsort
SELECT ALL - 59 + 67 * + 48 * + 19 * 63 AS col1
----
3849493

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL + 95 * + MAX( - + 67 ) - + COUNT( * ) * + - 93
----
-6272

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + 95 * + MAX ( - + 67 ) - + COUNT ( * ) * + - 93
----
-6272

query I rowsort
SELECT DISTINCT - COALESCE ( - - 52, + 67 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL COUNT( * ) + + + 89 * + - MIN( ALL + 12 ) * + ( 61 )
----
-65147

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL COUNT ( * ) + + + 89 * + - MIN ( ALL + 12 ) * + ( 61 )
----
-65147

query I rowsort
SELECT + 86 * + 38 AS col1
----
3268

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

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

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

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

query I rowsort
SELECT DISTINCT 64 * - 11 AS col2
----
-704

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3551
SELECT DISTINCT 4 + + + 49 - + COUNT( - CAST( - - 22 AS DECIMAL ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT 4 + + + 49 - + COUNT ( - CAST ( - - 22 AS REAL ) ) AS col0
----
52

query I rowsort
SELECT DISTINCT 39 + - 74
----
-35

query II rowsort
SELECT ALL 73 + - 77 AS col2, 6 col0
----
-4
6

query I rowsort
SELECT DISTINCT + 56 * - 71 * - 73
----
290248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3555
SELECT MIN( DISTINCT - 33 ) * - COALESCE ( CAST( 64 AS SIGNED ), + + 46 ) + + 74 DIV - + 13 + - COUNT( * )
----
2106

skipif mysql # not compatible
query I rowsort label-3555
SELECT MIN ( DISTINCT - 33 ) * - COALESCE ( CAST ( 64 AS INTEGER ), + + 46 ) + + 74 / - + 13 + - COUNT ( * )
----
2106

query I rowsort
SELECT DISTINCT 3 - - + ( - 61 ) + - 45 col1
----
-103

query I rowsort
SELECT 33 + + ( + 97 ) * 62
----
6047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT ( + 86 ) * CAST( + CAST( - + 41 AS SIGNED ) AS SIGNED ) * COUNT( * )
----
-3526

skipif mysql # not compatible
query I rowsort label-3558
SELECT ( + 86 ) * CAST ( + CAST ( - + 41 AS INTEGER ) AS INTEGER ) * COUNT ( * )
----
-3526

query I rowsort
SELECT 71 * 2 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL 31 * - MAX( - - ( - 70 ) ) AS col2
----
2170

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL 31 * - MAX ( - - ( - 70 ) ) AS col2
----
2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( + 14, - 21 ) + - - 47 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( + 14, - 21 ) + - - 47 * + 76
----
NULL

query I rowsort
SELECT ALL ( + - 44 ) - 5
----
-49

query I rowsort
SELECT 68 + 53
----
121

query I rowsort
SELECT 73 + 25 + - 9 * + - 44 col0
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3565
SELECT 22 * + - NULLIF ( + 71, - SUM( DISTINCT - - 23 ) ) * - - MIN( DISTINCT - 47 ) AS col1, - CAST( NULL AS SIGNED ) + COUNT( * )
----
73414
NULL

skipif mysql # not compatible
query II rowsort label-3565
SELECT 22 * + - NULLIF ( + 71, - SUM ( DISTINCT - - 23 ) ) * - - MIN ( DISTINCT - 47 ) AS col1, - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
73414
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT + 25 * - 25 + + - COUNT( * ) * + 57
----
-682

skipif mysql # not compatible
query I rowsort label-3566
SELECT + 25 * - 25 + + - COUNT ( * ) * + 57
----
-682

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT ALL + - 58 * 25 - + CAST( + 25 AS SIGNED ) * 0
----
-1450

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + - 58 * 25 - + CAST ( + 25 AS INTEGER ) * 0
----
-1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3569
SELECT + CASE 75 WHEN COALESCE ( + 69, - MIN( ALL 1 ) ) THEN - 42 * - - ( COUNT( * ) ) * - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) / + - 82 + - - 2 * - 63 WHEN - 21 THEN 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT + CASE 75 WHEN COALESCE ( + 69, - MIN ( ALL 1 ) ) THEN - 42 * - - ( COUNT ( * ) ) * - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) / + - 82 + - - 2 * - 63 WHEN - 21 THEN 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT CASE - MIN( ALL 12 ) WHEN + 48 + - 81 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT CASE - MIN ( ALL 12 ) WHEN + 48 + - 81 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT - 74 * + 26 / 11 + - 18 - - 78 - + CAST( NULL AS SIGNED ) * + - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT - 74 * + 26 / 11 + - 18 - - 78 - + CAST ( NULL AS INTEGER ) * + - 50 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT - 86 DIV 78 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT - 86 / 78 AS col1
----
-1

query I rowsort
SELECT ALL + NULLIF ( + + 71, 69 ) - - - 44
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT + MAX( ALL 39 ) + 55 - 45 + COUNT( * ) * - ( 97 ) + - - ( - NULLIF ( - - ( 85 ), 1 ) ) * + + 4 + + NULLIF ( CAST( NULL AS SIGNED ), + + 32 ) * - - MAX( - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT + MAX ( ALL 39 ) + 55 - 45 + COUNT ( * ) * - ( 97 ) + - - ( - NULLIF ( - - ( 85 ), 1 ) ) * + + 4 + + NULLIF ( CAST ( NULL AS INTEGER ), + + 32 ) * - - MAX ( - 67 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 97 - + ( 70 ) AS col0
----
27

query I rowsort
SELECT - 67 * + 12 AS col1
----
-804

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

skipif mysql # not compatible
query I rowsort label-3577
SELECT + COUNT ( * ) - - 86 AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT 38 AS col1, + 39 - - COUNT( * ) - - 15 - - 55
----
38
110

skipif mysql # not compatible
query II rowsort label-3578
SELECT 38 AS col1, + 39 - - COUNT ( * ) - - 15 - - 55
----
38
110

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT - 20 DIV + 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3579
SELECT - 20 / + 19 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + 26 * COALESCE ( COUNT( * ), - 90 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3580
SELECT + 26 * COALESCE ( COUNT ( * ), - 90 ) AS col2
----
26

query II rowsort
SELECT DISTINCT 84, - 92 col2
----
84
-92

query I rowsort
SELECT ALL + 79 * - 79 AS col0
----
-6241

query II rowsort
SELECT ALL 41, - ( - ( 57 ) ) col2
----
41
57

query II rowsort
SELECT + ( 56 ) * - 95 AS col0, + 20
----
-5320
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT + COUNT( * ), NULLIF ( + 11, - 94 * 94 ) + + + ( - MIN( - + 34 ) ) AS col0
----
1
45

skipif mysql # not compatible
query II rowsort label-3585
SELECT + COUNT ( * ), NULLIF ( + 11, - 94 * 94 ) + + + ( - MIN ( - + 34 ) ) AS col0
----
1
45

query I rowsort
SELECT + + 0 * 23 AS col2
----
0

query I rowsort
SELECT ALL + 95 + - 49
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT + 82 - + 13 + - 74 + CAST( 86 AS SIGNED ) col0
----
81

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 82 - + 13 + - 74 + CAST ( 86 AS INTEGER ) col0
----
81

query I rowsort
SELECT + 96 + 12 + - + 76 AS col0
----
32

query I rowsort
SELECT DISTINCT + 50 * 88 AS col2
----
4400

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT DISTINCT + COUNT( ALL 23 ) + + 57, + ( - 55 ) AS col1
----
58
-55

skipif mysql # not compatible
query II rowsort label-3591
SELECT DISTINCT + COUNT ( ALL 23 ) + + 57, + ( - 55 ) AS col1
----
58
-55

query II rowsort
SELECT + 41 AS col1, - 1 AS col2
----
41
-1

query I rowsort
SELECT ALL 92 + + 28 col2
----
120

query I rowsort
SELECT DISTINCT 97 + + 56
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT ( CASE + - 28 WHEN + 5 THEN CASE - 56 WHEN CAST( - 17 AS SIGNED ) THEN + 19 END + 70 * + 99 WHEN + - CAST( NULL AS SIGNED ) + - 4 / 72 THEN ( + 66 ) - 40 / + - 46 END ) / - - 96 + - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT ( CASE + - 28 WHEN + 5 THEN CASE - 56 WHEN CAST ( - 17 AS INTEGER ) THEN + 19 END + 70 * + 99 WHEN + - CAST ( NULL AS INTEGER ) + - 4 / 72 THEN ( + 66 ) - 40 / + - 46 END ) / - - 96 + - - 93 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3596
SELECT ALL + + COUNT( * ) AS col0, - CASE - + MIN( DISTINCT + + 86 ) WHEN - + 68 / + 7 * - 84 + ( + COUNT( DISTINCT - 94 ) ) THEN + - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) END * 89 + + CAST( NULL AS SIGNED ) - AVG ( + - CASE 45 WHEN 81 / - - 22 THEN NULL WHEN - + 78 THEN 70 END ) AS col2, + - 49 + + 86 AS col0
----
1
NULL
37

skipif mysql # not compatible
query III rowsort label-3596
SELECT ALL + + COUNT ( * ) AS col0, - CASE - + MIN ( DISTINCT + + 86 ) WHEN - + 68 / + 7 * - 84 + ( + COUNT ( DISTINCT - 94 ) ) THEN + - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) END * 89 + + CAST ( NULL AS INTEGER ) - AVG ( + - CASE 45 WHEN 81 / - - 22 THEN NULL WHEN - + 78 THEN 70 END ) AS col2, + - 49 + + 86 AS col0
----
1
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + + COUNT( * ) + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3597
SELECT + + COUNT ( * ) + 78 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - + COUNT( * ) / 72 + + + COUNT( ALL + - 13 ) + + CASE 98 WHEN - 56 + MAX( + 44 ) THEN - + 26 + - 37 + - 1 / - - 22 * - 30 + + 14 + - - CASE WHEN ( NOT ( NOT 84 IS NOT NULL ) ) THEN NULL ELSE + SUM( ALL 28 ) + 44 END / - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT - + COUNT ( * ) / 72 + + + COUNT ( ALL + - 13 ) + + CASE 98 WHEN - 56 + MAX ( + 44 ) THEN - + 26 + - 37 + - 1 / - - 22 * - 30 + + 14 + - - CASE WHEN ( NOT ( NOT 84 IS NOT NULL ) ) THEN NULL ELSE + SUM ( ALL 28 ) + 44 END / - 28 END
----
NULL

query II rowsort
SELECT + + 70 AS col2, + 54 - - - 8 AS col0
----
70
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3600
SELECT ALL - 38 * - CASE - 97 WHEN - COUNT( * ) + + COUNT( - 17 ) * - + SUM( + 3 ) THEN NULL WHEN + 41 / + - 34 THEN - 5 END + 72 + - 77 + + - CAST( NULL AS DECIMAL ) + + 32 - - 90 * ( + 7 ) * - CAST( - + COUNT( * ) AS SIGNED ) + + - COUNT( * ) + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - 38 * - CASE - 97 WHEN - COUNT ( * ) + + COUNT ( - 17 ) * - + SUM ( + 3 ) THEN NULL WHEN + 41 / + - 34 THEN - 5 END + 72 + - 77 + + - CAST ( NULL AS REAL ) + + 32 - - 90 * ( + 7 ) * - CAST ( - + COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) + - 43
----
NULL

query I rowsort
SELECT + 12 + + - 52 + - 43
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT - 59 DIV - - COUNT( * ) + + 58 * + 38 AS col2
----
2145

skipif mysql # not compatible
query I rowsort label-3602
SELECT - 59 / - - COUNT ( * ) + + 58 * + 38 AS col2
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT + CASE 3 WHEN + + 63 * - - COUNT( * ) + + 55 - - + 96 * + 81 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE - - ( - 44 ) + - - 72 END
----
28

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + CASE 3 WHEN + + 63 * - - COUNT ( * ) + + 55 - - + 96 * + 81 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE - - ( - 44 ) + - - 72 END
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3604
SELECT DISTINCT - 27 * 34 - 46 + + - 78 DIV - + 51 + + ( - - COUNT( * ) ) AS col2, + 10 * - + 20
----
-962
-200

skipif mysql # not compatible
query II rowsort label-3604
SELECT DISTINCT - 27 * 34 - 46 + + - 78 / - + 51 + + ( - - COUNT ( * ) ) AS col2, + 10 * - + 20
----
-962
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - MIN( DISTINCT + 25 ) + + + 62 * 26
----
1587

skipif mysql # not compatible
query I rowsort label-3605
SELECT - MIN ( DISTINCT + 25 ) + + + 62 * 26
----
1587

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

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

query I rowsort
SELECT 83 * - + 89 + 98 + - + 48 * + + 25
----
-8489

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - 44 * COUNT( DISTINCT 60 )
----
-44

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 44 * COUNT ( DISTINCT 60 )
----
-44

query II rowsort
SELECT - 50 * - 61 AS col2, + 19 * + - 43 * - - 93 AS col1
----
3050
-75981

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT COALESCE ( + 13, + 73 * + MAX( - + 36 ) )
----
13

skipif mysql # not compatible
query I rowsort label-3610
SELECT COALESCE ( + 13, + 73 * + MAX ( - + 36 ) )
----
13

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3612
SELECT ALL - 11 * 96 * 56 * + 70 AS col0, + COUNT( * )
----
-4139520
1

skipif mysql # not compatible
query II rowsort label-3612
SELECT ALL - 11 * 96 * 56 * + 70 AS col0, + COUNT ( * )
----
-4139520
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT - SUM( ALL + 59 ) AS col2, SUM( + 40 ) col2
----
-59
40

skipif mysql # not compatible
query II rowsort label-3613
SELECT - SUM ( ALL + 59 ) AS col2, SUM ( + 40 ) col2
----
-59
40

query I rowsort
SELECT - ( + 85 ) + 89 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT - MIN( DISTINCT - 42 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT - MIN ( DISTINCT - 42 ) / + 72
----
0

query I rowsort
SELECT - 78 * + - 60
----
4680

query I rowsort
SELECT ( + 90 ) * - 66 + 6
----
-5934

query I rowsort
SELECT DISTINCT - 94 + - 63 * 70
----
-4504

query I rowsort
SELECT - 72 + - ( + 93 ) + 49 AS col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT + 27 + + + NULLIF ( - 87, + CASE - - 92 WHEN 48 THEN NULL ELSE - 22 * + + COUNT( * ) * + 94 + - CAST( - + 12 AS SIGNED ) END * - MAX( 32 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 27 + + + NULLIF ( - 87, + CASE - - 92 WHEN 48 THEN NULL ELSE - 22 * + + COUNT ( * ) * + 94 + - CAST ( - + 12 AS INTEGER ) END * - MAX ( 32 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL 97 + - COUNT( * ) - SUM( - 58 ) * + - COALESCE ( + 29, 44, - - 69 )
----
-1586

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 97 + - COUNT ( * ) - SUM ( - 58 ) * + - COALESCE ( + 29, 44, - - 69 )
----
-1586

query I rowsort
SELECT + + 13 - - 97
----
110

query I rowsort
SELECT DISTINCT - 21 + - 74 AS col0
----
-95

query I rowsort
SELECT - - NULLIF ( + + 65, - 43 ) AS col0
----
65

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

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

query I rowsort
SELECT + + 2 + - 77 * + - 60
----
4622

query I rowsort
SELECT - NULLIF ( 86, 18 ) AS col0
----
-86

query I rowsort
SELECT + 82 * + 95 AS col0
----
7790

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL COUNT( * ) + - + COUNT( * ) col0, + 6 * + + 28 + - - 57 * ( + 34 ) col1
----
0
2106

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL COUNT ( * ) + - + COUNT ( * ) col0, + 6 * + + 28 + - - 57 * ( + 34 ) col1
----
0
2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT - 89 - + - NULLIF ( 39, - 37 ) + + 84 * + CAST( + + SUM( + 48 ) AS SIGNED ) * - 18 AS col2
----
-72626

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - 89 - + - NULLIF ( 39, - 37 ) + + 84 * + CAST ( + + SUM ( + 48 ) AS INTEGER ) * - 18 AS col2
----
-72626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3631
SELECT + 10 DIV - - MAX( DISTINCT 4 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 10 / - - MAX ( DISTINCT 4 ) col1
----
2

query I rowsort
SELECT ALL - NULLIF ( 5, 57 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL - - COUNT( 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - - COUNT ( 98 ) AS col0
----
1

query I rowsort
SELECT NULLIF ( 17, - 61 ) AS col1
----
17

query I rowsort
SELECT ALL - 87 - - 7 - - 48 - NULLIF ( - - ( 81 ), + 38 ) AS col1
----
-113

query I rowsort
SELECT DISTINCT - - ( - - 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT 11 + - + 83 + - - 62 AS col0, - 28 * + + COALESCE ( - - 66, COUNT( * ) - - 4 + + ( + 60 ) ) AS col1
----
-10
-1848

skipif mysql # not compatible
query II rowsort label-3637
SELECT 11 + - + 83 + - - 62 AS col0, - 28 * + + COALESCE ( - - 66, COUNT ( * ) - - 4 + + ( + 60 ) ) AS col1
----
-10
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT NULLIF ( + 81, - 59 * - + 75 - + 15 - + 19 ) DIV + 91 * - 28 - + 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3638
SELECT NULLIF ( + 81, - 59 * - + 75 - + 15 - + 19 ) / + 91 * - 28 - + 42 AS col2
----
-42

query I rowsort
SELECT 62 * - 89 * + + 89 * + 97 AS col2
----
-47636894

query I rowsort
SELECT ALL + 79 * - + 99 col1
----
-7821

query I rowsort
SELECT DISTINCT - 25 * - 85 AS col0
----
2125

query I rowsort
SELECT 61 * + - 86
----
-5246

query I rowsort
SELECT DISTINCT 14 * + 56
----
784

query II rowsort
SELECT + 87 AS col0, - 20
----
87
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3645
SELECT MIN( ALL - ( + 40 ) ) * + - 87 + + 37 + - 0 AS col2, 63 AS col2
----
3517
63

skipif mysql # not compatible
query II rowsort label-3645
SELECT MIN ( ALL - ( + 40 ) ) * + - 87 + + 37 + - 0 AS col2, 63 AS col2
----
3517
63

query I rowsort
SELECT 87 * - 13 AS col1
----
-1131

query I rowsort
SELECT ALL - 8 + + + 86
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT DISTINCT - 90 + + 31 - - + COUNT( * ) - + + 40 * - CASE + 58 WHEN - + 43 THEN 66 WHEN - CAST( NULL AS SIGNED ) THEN NULL END + + + 74 * + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - 90 + + 31 - - + COUNT ( * ) - + + 40 * - CASE + 58 WHEN - + 43 THEN 66 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END + + + 74 * + - 17
----
NULL

query I rowsort
SELECT DISTINCT 29 + - + 2 AS col1
----
27

query I rowsort
SELECT ALL + 67 + - 38 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3651
SELECT - ( + + MAX( - 81 ) ) AS col2, 8 col1
----
81
8

skipif mysql # not compatible
query II rowsort label-3651
SELECT - ( + + MAX ( - 81 ) ) AS col2, 8 col1
----
81
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT + 53 AS col1, - COUNT( * ) + - 40 AS col2
----
53
-41

skipif mysql # not compatible
query II rowsort label-3652
SELECT + 53 AS col1, - COUNT ( * ) + - 40 AS col2
----
53
-41

query I rowsort
SELECT ALL ( - 43 ) + + 79 * 98
----
7699

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

query I rowsort
SELECT - 44 + + + 14
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT 76 + + 85 - - 56 * - 77 * - 89 * - 14 + - 46 - - - 24 * + 54 * - COUNT( * ) - 16
----
-5371357

skipif mysql # not compatible
query I rowsort label-3656
SELECT 76 + + 85 - - 56 * - 77 * - 89 * - 14 + - 46 - - - 24 * + 54 * - COUNT ( * ) - 16
----
-5371357

query I rowsort
SELECT 7 - - 91 + + 1 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT COUNT( DISTINCT + 82 ) + + COUNT( + 60 )
----
2

skipif mysql # not compatible
query I rowsort label-3658
SELECT COUNT ( DISTINCT + 82 ) + + COUNT ( + 60 )
----
2

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

query I rowsort
SELECT DISTINCT - 49 * + 25 * + 75 * - 85 AS col2
----
7809375

query I rowsort
SELECT ALL + 91 - + 80 + - 64 AS col2
----
-53

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

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

query I rowsort
SELECT NULLIF ( 2, - ( 77 ) ) + - 2 + - 33 * - 97 + + 43
----
3244

query I rowsort
SELECT DISTINCT - COALESCE ( + - 27, + 97, - 68 )
----
27

query I rowsort
SELECT 22 - + - 90 AS col2
----
112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT 17 * - + COUNT( * ) * - 3
----
51

skipif mysql # not compatible
query I rowsort label-3667
SELECT 17 * - + COUNT ( * ) * - 3
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3668
SELECT + 8 AS col2, 71 DIV - 95 * + + 51 + 43 AS col1
----
8
43

skipif mysql # not compatible
query II rowsort label-3668
SELECT + 8 AS col2, 71 / - 95 * + + 51 + 43 AS col1
----
8
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT COUNT( * ) + - NULLIF ( + 77, + 12 / - 84 + COUNT( * ) + + 38 )
----
-76

skipif mysql # not compatible
query I rowsort label-3669
SELECT COUNT ( * ) + - NULLIF ( + 77, + 12 / - 84 + COUNT ( * ) + + 38 )
----
-76

query I rowsort
SELECT ALL 32 * + 90 AS col2
----
2880

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT COUNT( * ) * + COUNT( * ) * - 41 * + + COUNT( * ), + 90 AS col2
----
-41
90

skipif mysql # not compatible
query II rowsort label-3671
SELECT COUNT ( * ) * + COUNT ( * ) * - 41 * + + COUNT ( * ), + 90 AS col2
----
-41
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT DISTINCT + COUNT( * ) * - 85 * 88 AS col2
----
-7480

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + COUNT ( * ) * - 85 * 88 AS col2
----
-7480

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT DISTINCT - 20 col0, 88 DIV + ( 51 ) AS col0
----
-20
1

skipif mysql # not compatible
query II rowsort label-3673
SELECT DISTINCT - 20 col0, 88 / + ( 51 ) AS col0
----
-20
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT 83, COUNT( 63 ) AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-3674
SELECT 83, COUNT ( 63 ) AS col1
----
83
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT DISTINCT 31 + 0 DIV - 88
----
31

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT 31 + 0 / - 88
----
31

query II rowsort
SELECT + 84 AS col1, 95
----
84
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3677
SELECT CAST( + + 34 AS SIGNED ) DIV + 21 + - ( - + ( + 61 ) ), 34 col1
----
62
34

skipif mysql # not compatible
query II rowsort label-3677
SELECT CAST ( + + 34 AS INTEGER ) / + 21 + - ( - + ( + 61 ) ), 34 col1
----
62
34

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

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL 25 + + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT COUNT( ALL - 92 ) * - CASE WHEN 89 <> - 22 THEN - 12 END + - 15 - - 42 + - + ( - + 91 ) * 17 + - 86 * + 41 AS col0
----
-1940

skipif mysql # not compatible
query I rowsort label-3679
SELECT COUNT ( ALL - 92 ) * - CASE WHEN 89 <> - 22 THEN - 12 END + - 15 - - 42 + - + ( - + 91 ) * 17 + - 86 * + 41 AS col0
----
-1940

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT CAST( ( 75 ) AS SIGNED ) + NULLIF ( - COUNT( * ), ( 33 ) ) * - 90 AS col1
----
165

skipif mysql # not compatible
query I rowsort label-3681
SELECT CAST ( ( 75 ) AS INTEGER ) + NULLIF ( - COUNT ( * ), ( 33 ) ) * - 90 AS col1
----
165

query I rowsort
SELECT ALL 30 + - 68
----
-38

query I rowsort
SELECT 19 + 18 AS col1
----
37

query I rowsort
SELECT ALL + - 91 + - 82
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL SUM( + 88 ) * 4
----
352

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL SUM ( + 88 ) * 4
----
352

onlyif mysql # aggregate syntax: 
query II rowsort label-3686
SELECT DISTINCT SUM( ALL + 25 ), COUNT( * ) AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-3686
SELECT DISTINCT SUM ( ALL + 25 ), COUNT ( * ) AS col2
----
25
1

query I rowsort
SELECT ALL - - ( - + 14 ) - 92
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + CASE + + 78 WHEN ( - 95 ) * - - 50 * + + 71 * + 97 + 19 THEN NULLIF ( - COALESCE ( - SUM( - 72 ), + 3 + 53 + + 69 * + - 19 * - COUNT( * ) ), + + 71 ) * - + ( + 35 ) + - 95 + 13 ELSE NULL END + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT + CASE + + 78 WHEN ( - 95 ) * - - 50 * + + 71 * + 97 + 19 THEN NULLIF ( - COALESCE ( - SUM ( - 72 ), + 3 + 53 + + 69 * + - 19 * - COUNT ( * ) ), + + 71 ) * - + ( + 35 ) + - 95 + 13 ELSE NULL END + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3689
SELECT + COUNT( * ) + NULLIF ( - 31, 49 ) + COUNT( * ) + - - 46, NULLIF ( - 51, - 89 ) AS col2, - - 53 AS col1
----
17
-51
53

skipif mysql # not compatible
query III rowsort label-3689
SELECT + COUNT ( * ) + NULLIF ( - 31, 49 ) + COUNT ( * ) + - - 46, NULLIF ( - 51, - 89 ) AS col2, - - 53 AS col1
----
17
-51
53

query I rowsort
SELECT 22 + 39 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3691
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 56 + + 45 + - COUNT( * ) * + - 52 + 11 DIV + 16 * + - 24
----
NULL
153

skipif mysql # not compatible
query II rowsort label-3691
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 56 + + 45 + - COUNT ( * ) * + - 52 + 11 / + 16 * + - 24
----
NULL
153

query II rowsort
SELECT - + 14 AS col0, - 82
----
-14
-82

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3694
SELECT - - 60, + 51 DIV 1 AS col2
----
60
51

skipif mysql # not compatible
query II rowsort label-3694
SELECT - - 60, + 51 / 1 AS col2
----
60
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - 14 + 22 + + + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 14 + 22 + + + COUNT ( * ) col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL + CASE + 35 WHEN - + CASE COUNT( * ) WHEN 0 THEN + 0 * + - 31 + + - 53 + + + 49 * 19 WHEN - + 68 THEN NULL ELSE NULL END THEN NULL WHEN + - 99 THEN 17 * + 26 ELSE - + 72 END * + - 42 + + 77
----
3101

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL + CASE + 35 WHEN - + CASE COUNT ( * ) WHEN 0 THEN + 0 * + - 31 + + - 53 + + + 49 * 19 WHEN - + 68 THEN NULL ELSE NULL END THEN NULL WHEN + - 99 THEN 17 * + 26 ELSE - + 72 END * + - 42 + + 77
----
3101

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

skipif mysql # not compatible
query I rowsort label-3697
SELECT - COUNT ( + 43 ) * - + 19 - 49 / 71 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - + 84 + - 90 - + 0 - - CASE WHEN NOT 28 = 90 - 74 THEN - ( + 33 ) * 47 - COUNT( * ) END
----
-1726

skipif mysql # not compatible
query I rowsort label-3698
SELECT - + 84 + - 90 - + 0 - - CASE WHEN NOT 28 = 90 - 74 THEN - ( + 33 ) * 47 - COUNT ( * ) END
----
-1726

query I rowsort
SELECT ALL - 4 * + 75 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT + 9 * 41 AS col2, - COUNT( * )
----
369
-1

skipif mysql # not compatible
query II rowsort label-3700
SELECT + 9 * 41 AS col2, - COUNT ( * )
----
369
-1

query I rowsort
SELECT ALL NULLIF ( + 40, + 59 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT + CASE 36 WHEN COUNT( * ) THEN NULL WHEN - 38 THEN COUNT( * ) ELSE - 12 END
----
-12

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + CASE 36 WHEN COUNT ( * ) THEN NULL WHEN - 38 THEN COUNT ( * ) ELSE - 12 END
----
-12

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

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

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

skipif mysql # not compatible
query I rowsort label-3704
SELECT - COUNT ( DISTINCT + + 20 ) * - 57 AS col1
----
57

query I rowsort
SELECT 25 * - 27 + + 57 AS col1
----
-618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3706
SELECT NULLIF ( + 7, + 37 * 88 * + COUNT( * ) ) AS col0, CAST( - 73 AS SIGNED )
----
7
-73

skipif mysql # not compatible
query II rowsort label-3706
SELECT NULLIF ( + 7, + 37 * 88 * + COUNT ( * ) ) AS col0, CAST ( - 73 AS INTEGER )
----
7
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT CASE + + 15 WHEN + 13 THEN + 48 + 95 ELSE NULL END / + + 85 + - CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT CASE + + 15 WHEN + 13 THEN + 48 + 95 ELSE NULL END / + + 85 + - CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT + CAST( NULL AS SIGNED ) * + 64 / + 60 / 45 * + NULLIF ( - CASE + 55 WHEN MIN( ALL - ( - ( + + 98 ) ) ) THEN NULL ELSE + ( - + 98 ) END, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT + CAST ( NULL AS INTEGER ) * + 64 / + 60 / 45 * + NULLIF ( - CASE + 55 WHEN MIN ( ALL - ( - ( + + 98 ) ) ) THEN NULL ELSE + ( - + 98 ) END, + COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT ALL 70 * - - 21 + 55 AS col2, 53 + NULLIF ( 36, 66 ) AS col1
----
1525
89

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

skipif mysql # not compatible
query I rowsort label-3710
SELECT + CAST ( + 94 AS INTEGER ) - - 61 * - - NULLIF ( + COUNT ( * ), COUNT ( - + 75 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - 37 * + 36 + - 2 + + - CAST( - 30 AS SIGNED ) * + - 94
----
-4154

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - 37 * + 36 + - 2 + + - CAST ( - 30 AS INTEGER ) * + - 94
----
-4154

query I rowsort
SELECT DISTINCT 24 * + CASE - - 60 WHEN 49 THEN + + 1 * 2 + 23 ELSE 51 * - + 87 END
----
-106488

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3714
SELECT - COUNT( * ) DIV - CAST( - + 44 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT - COUNT ( * ) / - CAST ( - + 44 AS INTEGER ) col2
----
0

query I rowsort
SELECT DISTINCT - 2 * 61 AS col0
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + - 63 DIV + + COUNT( - ( - 2 ) ) + - 71 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-3716
SELECT + - 63 / + + COUNT ( - ( - 2 ) ) + - 71 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT ( + 76 ) AS col1, 98 * - + MIN( DISTINCT - ( - - ( - 95 ) ) )
----
76
-9310

skipif mysql # not compatible
query II rowsort label-3717
SELECT ( + 76 ) AS col1, 98 * - + MIN ( DISTINCT - ( - - ( - 95 ) ) )
----
76
-9310

query I rowsort
SELECT + + 19 + - 6
----
13

query I rowsort
SELECT - + 39 * 25 + + 82 + - 65
----
-958

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + MAX( ALL + - 54 ) + + - 69 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-3720
SELECT + MAX ( ALL + - 54 ) + + - 69 AS col0
----
-123

query I rowsort
SELECT + 78 + - CASE + + 66 WHEN + 20 THEN NULL ELSE + 23 END col0
----
55

query I rowsort
SELECT ALL - 93 + - 82 AS col2
----
-175

query I rowsort
SELECT - 98 + - 9 - + + 38 AS col2
----
-145

query I rowsort
SELECT ALL 3 + + 33 + 57 * - + 4 * + 85 + + 47 * - 95 AS col0
----
-23809

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT DISTINCT COUNT( DISTINCT - - ( + 23 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT COUNT ( DISTINCT - - ( + 23 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 21 + - 9 AS col2
----
12

query I rowsort
SELECT ALL + 20 + - - 18 AS col0
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-3728
SELECT ALL - 93 + 53 * 44, + 16 + + + 46 DIV - 67 * - ( + 84 ) AS col2
----
2239
16

skipif mysql # not compatible
query II rowsort label-3728
SELECT ALL - 93 + 53 * 44, + 16 + + + 46 / - 67 * - ( + 84 ) AS col2
----
2239
16

query I rowsort
SELECT - 67 - 62
----
-129

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT - MIN( DISTINCT + 76 ) DIV - COALESCE ( 42, + CASE + 27 WHEN + 52 - + - 84 THEN 47 + - COALESCE ( - 23, + 64 + 8, 79 * - 19 + - 65 ) END ) + 3 DIV - 96 + - 23 - + - 54 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3731
SELECT - MIN ( DISTINCT + 76 ) / - COALESCE ( 42, + CASE + 27 WHEN + 52 - + - 84 THEN 47 + - COALESCE ( - 23, + 64 + 8, 79 * - 19 + - 65 ) END ) + 3 / - 96 + - 23 - + - 54 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + 79 * - 66 + - 61 + COUNT( * ) + 32 col1
----
-5242

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 79 * - 66 + - 61 + COUNT ( * ) + 32 col1
----
-5242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3733
SELECT ALL 91 DIV - CAST( - 69 AS SIGNED ) + + - COUNT( * ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 91 / - CAST ( - 69 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT + 71 AS col0, - COUNT( * ) * + 88 AS col0
----
71
-88

skipif mysql # not compatible
query II rowsort label-3734
SELECT + 71 AS col0, - COUNT ( * ) * + 88 AS col0
----
71
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-3735
SELECT 94 DIV - 32 + 66 AS col0, + 24 AS col2
----
64
24

skipif mysql # not compatible
query II rowsort label-3735
SELECT 94 / - 32 + 66 AS col0, + 24 AS col2
----
64
24

query I rowsort
SELECT - 32 * - 68 AS col2
----
2176

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

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

query I rowsort
SELECT ALL - 49 * ( + 27 )
----
-1323

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

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

query II rowsort
SELECT ALL + 22, - 38 AS col0
----
22
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT DISTINCT 31 DIV 3 * + COALESCE ( + 65, + + 63, + 67 )
----
650

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT 31 / 3 * + COALESCE ( + 65, + + 63, + 67 )
----
650

query I rowsort
SELECT ( + NULLIF ( + 71, - 22 + 73 + + 72 ) )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3743
SELECT - COUNT( * ) * - + COUNT( * ) + - - 81 + - + COUNT( * ) * + 71 DIV + 39
----
81

skipif mysql # not compatible
query I rowsort label-3743
SELECT - COUNT ( * ) * - + COUNT ( * ) + - - 81 + - + COUNT ( * ) * + 71 / + 39
----
81

query I rowsort
SELECT DISTINCT - 22 * - 16 AS col1
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - COUNT( * ) * 36 * - 97 + 7 * - 52
----
3128

skipif mysql # not compatible
query I rowsort label-3745
SELECT - COUNT ( * ) * 36 * - 97 + 7 * - 52
----
3128

query II rowsort
SELECT ALL - - 7 AS col1, + 64 AS col0
----
7
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT + 47 + - 95 * + 4 AS col0, 9 * - MAX( ALL 41 ) * + COUNT( * ) AS col0
----
-333
-369

skipif mysql # not compatible
query II rowsort label-3747
SELECT + 47 + - 95 * + 4 AS col0, 9 * - MAX ( ALL 41 ) * + COUNT ( * ) AS col0
----
-333
-369

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3748
SELECT DISTINCT - CAST( + 22 AS DECIMAL ) * 38 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT - CAST ( + 22 AS REAL ) * 38 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3749
SELECT + CAST ( - 23 AS INTEGER ) * + 32
----
-736

query I rowsort
SELECT ALL - - 65 * - 25 AS col0
----
-1625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT 52 * NULLIF ( - - 29, - + COALESCE ( + - 57, + 78, + - 44 + - 3 * + - 21 / + 26 * ( - + COUNT( * ) ) ) )
----
1508

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT 52 * NULLIF ( - - 29, - + COALESCE ( + - 57, + 78, + - 44 + - 3 * + - 21 / + 26 * ( - + COUNT ( * ) ) ) )
----
1508

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT - 40 DIV + - 46 + + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3753
SELECT - 40 / + - 46 + + 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3754
SELECT 7 AS col2, CASE 38 WHEN + + 48 + 18 THEN NULL WHEN - ( + - COUNT( + 57 ) ) * ( - ( + COUNT( * ) ) ) / - 45 THEN + - 46 WHEN COUNT( ALL 12 ) THEN NULL ELSE NULL END AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-3754
SELECT 7 AS col2, CASE 38 WHEN + + 48 + 18 THEN NULL WHEN - ( + - COUNT ( + 57 ) ) * ( - ( + COUNT ( * ) ) ) / - 45 THEN + - 46 WHEN COUNT ( ALL 12 ) THEN NULL ELSE NULL END AS col1
----
7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3755
SELECT ALL 93 + MAX( 51 ) + - 36 + - 52 DIV + - 81 AS col0, + 67 AS col0
----
108
67

skipif mysql # not compatible
query II rowsort label-3755
SELECT ALL 93 + MAX ( 51 ) + - 36 + - 52 / + - 81 AS col0, + 67 AS col0
----
108
67

query I rowsort
SELECT ALL + 96 * + 6 AS col0
----
576

query II rowsort
SELECT ALL 80 + + + 42 AS col1, - 61 + - 4 AS col0
----
122
-65

query I rowsort
SELECT DISTINCT - 80 * + 27 AS col1
----
-2160

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

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT 15 + + + 80 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 * + 47
----
2115

query I rowsort
SELECT 81 * ( 5 ) AS col2
----
405

query I rowsort
SELECT ALL 50 + 67 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - 62 + MAX( DISTINCT - 95 )
----
-157

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - 62 + MAX ( DISTINCT - 95 )
----
-157

query II rowsort
SELECT 71 * - 17 col2, + 64
----
-1207
64

query I rowsort
SELECT ALL 14 * + + 98 AS col2
----
1372

query I rowsort
SELECT DISTINCT - 44 - - + 40 + + + 23
----
19

query II rowsort
SELECT 96 * + 86 AS col0, 50
----
8256
50

query I rowsort
SELECT ALL - ( + 29 ) * NULLIF ( 70, - 12 ) AS col0
----
-2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3769
SELECT ALL - COALESCE ( - MIN( - + 19 ), - 97 * - 10 + + 11 * - + 69 DIV - 27 )
----
-19

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - COALESCE ( - MIN ( - + 19 ), - 97 * - 10 + + 11 * - + 69 / - 27 )
----
-19

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

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - 27 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT - + ( + - MAX( + 86 ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - + ( + - MAX ( + 86 ) ) AS col1
----
86

query I rowsort
SELECT + 31 * 43
----
1333

query I rowsort
SELECT 89 + 41
----
130

query I rowsort
SELECT ALL - + 12 * - 78
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3775
SELECT MIN( ALL + + ( - 41 ) ) / CAST( NULL AS SIGNED ) * - 3 + + COALESCE ( 76, 71, - + 20 ) * - - 99 / + ( - 50 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT MIN ( ALL + + ( - 41 ) ) / CAST ( NULL AS INTEGER ) * - 3 + + COALESCE ( 76, 71, - + 20 ) * - - 99 / + ( - 50 ) col2
----
NULL

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

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

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

query I rowsort
SELECT + ( 52 ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT - 11 * - + ( - CASE - 28 WHEN - + ( CASE - 48 WHEN - - 30 THEN - - 82 WHEN COUNT( * ) THEN NULL ELSE - NULLIF ( 92, + 28 ) END ) THEN - 30 WHEN + 34 + + - 11 + + 79 THEN + 74 + + CAST( NULL AS SIGNED ) + - 48 + + + ( - 84 ) WHEN COUNT( * ) THEN + MAX( DISTINCT 30 ) / CAST( NULL AS SIGNED ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT - 11 * - + ( - CASE - 28 WHEN - + ( CASE - 48 WHEN - - 30 THEN - - 82 WHEN COUNT ( * ) THEN NULL ELSE - NULLIF ( 92, + 28 ) END ) THEN - 30 WHEN + 34 + + - 11 + + 79 THEN + 74 + + CAST ( NULL AS INTEGER ) + - 48 + + + ( - 84 ) WHEN COUNT ( * ) THEN + MAX ( DISTINCT 30 ) / CAST ( NULL AS INTEGER ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT 58 - - COUNT( * ), - 50 * + 28 AS col1
----
59
-1400

skipif mysql # not compatible
query II rowsort label-3780
SELECT 58 - - COUNT ( * ), - 50 * + 28 AS col1
----
59
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT - - MAX( DISTINCT + 30 ) + - 72 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - - MAX ( DISTINCT + 30 ) + - 72 AS col0
----
-42

query I rowsort
SELECT 35 * 74
----
2590

query I rowsort
SELECT ALL - ( + - 15 ) + - 72
----
-57

query I rowsort
SELECT + 47 * + 48 * + 29 AS col2
----
65424

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - + 20 + + 40 * + 45 * + 52 * - + 83 * - COUNT( * ) + 80
----
7768860

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - + 20 + + 40 * + 45 * + 52 * - + 83 * - COUNT ( * ) + 80
----
7768860

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

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

query I rowsort
SELECT ALL - 67 * + + ( - 21 ) AS col0
----
1407

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL - + 45 + - 53 * - + SUM( - 67 )
----
-3596

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - + 45 + - 53 * - + SUM ( - 67 )
----
-3596

query II rowsort
SELECT 55 AS col1, 96 * + 89 * 8 + + - 21
----
55
68331

query I rowsort
SELECT ALL 62 + + 18
----
80

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

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

query I rowsort
SELECT 52 * - - 21 col0
----
1092

query I rowsort
SELECT 55 + + 83
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT 61 + - 73 + - COUNT( * ) + + + COALESCE ( - + ( + 70 ), - 8 ) + 90 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3794
SELECT 61 + - 73 + - COUNT ( * ) + + + COALESCE ( - + ( + 70 ), - 8 ) + 90 AS col0
----
7

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

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL 3 / SUM ( - - 16 )
----
0

query I rowsort
SELECT ALL + 58 - - + 71
----
129

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

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

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

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL 67 / 59 * + - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT DISTINCT 25 - - - COUNT( * ) * - 52 * - + 5 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT 25 - - - COUNT ( * ) * - 52 * - + 5 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT COUNT( * ) + - NULLIF ( + - 66, + 78 ) - - 37 * + 32 AS col2
----
1251

skipif mysql # not compatible
query I rowsort label-3800
SELECT COUNT ( * ) + - NULLIF ( + - 66, + 78 ) - - 37 * + 32 AS col2
----
1251

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT ALL 60 * - - 15 DIV - 5
----
-180

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL 60 * - - 15 / - 5
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - 32 * - MAX( DISTINCT - 75 ) + + + 83 AS col1
----
-2317

skipif mysql # not compatible
query I rowsort label-3802
SELECT - 32 * - MAX ( DISTINCT - 75 ) + + + 83 AS col1
----
-2317

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + COUNT( + 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3803
SELECT + COUNT ( + 25 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT + CASE + 43 WHEN - + CAST( + - 69 AS SIGNED ) THEN NULL WHEN - + 82 * + - 93 * 26 * 95 / - CAST( NULL AS SIGNED ) THEN + - 41 * + + 65 + - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT + CASE + 43 WHEN - + CAST ( + - 69 AS INTEGER ) THEN NULL WHEN - + 82 * + - 93 * 26 * 95 / - CAST ( NULL AS INTEGER ) THEN + - 41 * + + 65 + - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT - MIN( DISTINCT + + 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - MIN ( DISTINCT + + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - 24 * + - MIN( DISTINCT + ( - 36 ) )
----
-864

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 24 * + - MIN ( DISTINCT + ( - 36 ) )
----
-864

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

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

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

skipif mysql # not compatible
query I rowsort label-3808
SELECT + COUNT ( * ) * + - 82 + 60 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT ALL + + 49 * - 37 * - ( - CAST( - COUNT( * ) AS SIGNED ) ) + - + COUNT( * ) - 80 col2
----
1732

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + + 49 * - 37 * - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) + - + COUNT ( * ) - 80 col2
----
1732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT + CASE - 75 WHEN + 93 THEN - - CAST( NULL AS SIGNED ) + - 66 + - COALESCE ( + + COUNT( + - 92 ), 51 ) * + - 0 WHEN - - 48 + - - ( 34 ) THEN NULL ELSE - 5 END
----
-5

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT + CASE - 75 WHEN + 93 THEN - - CAST ( NULL AS INTEGER ) + - 66 + - COALESCE ( + + COUNT ( + - 92 ), 51 ) * + - 0 WHEN - - 48 + - - ( 34 ) THEN NULL ELSE - 5 END
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT SUM( + - 68 ) * + - SUM( ALL - - ( - 55 ) ) - - - 70 DIV + COUNT( DISTINCT + + 10 ) AS col1
----
-3810

skipif mysql # not compatible
query I rowsort label-3811
SELECT SUM ( + - 68 ) * + - SUM ( ALL - - ( - 55 ) ) - - - 70 / + COUNT ( DISTINCT + + 10 ) AS col1
----
-3810

onlyif mysql # DIV for integer division: 
query II rowsort label-3812
SELECT + + ( 25 ) DIV + NULLIF ( 61, - 28 ) col2, 59 + - 63 + - ( + 10 ) AS col2
----
0
-14

skipif mysql # not compatible
query II rowsort label-3812
SELECT + + ( 25 ) / + NULLIF ( 61, - 28 ) col2, 59 + - 63 + - ( + 10 ) AS col2
----
0
-14

query I rowsort
SELECT - + 1 * - + 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - COUNT( * ) * + 76 + - 13 col0
----
-89

skipif mysql # not compatible
query I rowsort label-3814
SELECT - COUNT ( * ) * + 76 + - 13 col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + NULLIF ( COUNT( * ), CASE + 59 WHEN + ( 13 ) THEN NULL WHEN + - ( + 10 ) THEN + - SUM( - 94 ) * 30 + - + COUNT( * ) ELSE NULL END * + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-3815
SELECT + NULLIF ( COUNT ( * ), CASE + 59 WHEN + ( 13 ) THEN NULL WHEN + - ( + 10 ) THEN + - SUM ( - 94 ) * 30 + - + COUNT ( * ) ELSE NULL END * + 26 )
----
1

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

skipif mysql # not compatible
query I rowsort label-3816
SELECT - + COUNT ( * ) + + + 13 * 42 AS col2
----
545

query I rowsort
SELECT DISTINCT 10 * 20
----
200

query I rowsort
SELECT ALL + 85 + - 62
----
23

query I rowsort
SELECT DISTINCT - 27 + + 98 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3820
SELECT + 11 * 49 / CAST( NULL AS SIGNED ) AS col1, - 58 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3820
SELECT + 11 * 49 / CAST ( NULL AS INTEGER ) AS col1, - 58 AS col2
----
NULL
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3821
SELECT + CAST( NULL AS DECIMAL ) * - - 87 * 62 + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT + CAST ( NULL AS REAL ) * - - 87 * 62 + + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL CASE 20 WHEN + - 38 + - - 93 + - COUNT( * ) THEN - COALESCE ( + CAST( - + 96 AS SIGNED ), - 36 ) + NULLIF ( - 80, + 71 + - - 83 ) / - + 24 * 77 * + + CASE + ( + SUM( DISTINCT + 65 ) ) WHEN + + NULLIF ( - 84, + - 69 ) * ( + + 72 ) * ( - + 5 ) + - ( 27 ) + + - 5 + - NULLIF ( - 36, - 29 ) THEN 78 + + - 58 END WHEN + ( - COALESCE ( 82, + COUNT( * ) ) ) THEN 15 WHEN 30 * - 81 * 66 / 69 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL CASE 20 WHEN + - 38 + - - 93 + - COUNT ( * ) THEN - COALESCE ( + CAST ( - + 96 AS INTEGER ), - 36 ) + NULLIF ( - 80, + 71 + - - 83 ) / - + 24 * 77 * + + CASE + ( + SUM ( DISTINCT + 65 ) ) WHEN + + NULLIF ( - 84, + - 69 ) * ( + + 72 ) * ( - + 5 ) + - ( 27 ) + + - 5 + - NULLIF ( - 36, - 29 ) THEN 78 + + - 58 END WHEN + ( - COALESCE ( 82, + COUNT ( * ) ) ) THEN 15 WHEN 30 * - 81 * 66 / 69 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT + COALESCE ( ( - 84 ), CASE + COUNT( * ) WHEN - + 10 + - + MIN( - + 11 ) + - 87 THEN NULL WHEN - - 64 THEN + NULLIF ( + 63, + + CASE - COUNT( * ) WHEN 34 + + + 20 THEN NULL ELSE + ( - - 51 ) / + - CAST( - - 76 AS SIGNED ) / + 22 * COUNT( * ) END + + MIN( - 19 ) ) + ( - 81 ) END ) * - - 8 * + 46
----
-30912

skipif mysql # not compatible
query I rowsort label-3823
SELECT + COALESCE ( ( - 84 ), CASE + COUNT ( * ) WHEN - + 10 + - + MIN ( - + 11 ) + - 87 THEN NULL WHEN - - 64 THEN + NULLIF ( + 63, + + CASE - COUNT ( * ) WHEN 34 + + + 20 THEN NULL ELSE + ( - - 51 ) / + - CAST ( - - 76 AS INTEGER ) / + 22 * COUNT ( * ) END + + MIN ( - 19 ) ) + ( - 81 ) END ) * - - 8 * + 46
----
-30912

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

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

query I rowsort
SELECT DISTINCT + 44 - + 42 AS col1
----
2

query I rowsort
SELECT DISTINCT NULLIF ( + NULLIF ( - - 11, + 58 ), + CASE + 21 WHEN - 97 / + 67 THEN NULL ELSE + - 26 END + + 45 )
----
11

query I rowsort
SELECT - ( + 37 ) * - + 64 + - - 75 * + 33 AS col2
----
4843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3828
SELECT - COUNT( * ) AS col0, NULLIF ( CAST( NULL AS SIGNED ), + 95 + CAST( NULL AS SIGNED ) + - 79 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3828
SELECT - COUNT ( * ) AS col0, NULLIF ( CAST ( NULL AS INTEGER ), + 95 + CAST ( NULL AS INTEGER ) + - 79 )
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT + 45 - + 45 / + CAST( NULL AS SIGNED ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT + 45 - + 45 / + CAST ( NULL AS INTEGER ) * 37
----
NULL

query II rowsort
SELECT ALL + 27 * + - 40 AS col1, - 99
----
-1080
-99

query I rowsort
SELECT - ( - - 74 ) * + 61
----
-4514

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3832
SELECT - 31 AS col1, 55 * - + 87 + + + MIN( + + 13 ) + + COUNT( * ) DIV + 39 AS col1
----
-31
-4772

skipif mysql # not compatible
query II rowsort label-3832
SELECT - 31 AS col1, 55 * - + 87 + + + MIN ( + + 13 ) + + COUNT ( * ) / + 39 AS col1
----
-31
-4772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT - CAST( NULL AS SIGNED ) * - 52 * - 29 * + + 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT - CAST ( NULL AS INTEGER ) * - 52 * - 29 * + + 28 col1
----
NULL

query I rowsort
SELECT + 7 * + 28 AS col2
----
196

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

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

query I rowsort
SELECT DISTINCT ( 36 ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT ALL + + 58 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + + 58 / + 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3838
SELECT + COALESCE ( - COUNT( * ), 73 + + 83 ) DIV + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT + COALESCE ( - COUNT ( * ), 73 + + 83 ) / + 5 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3839
SELECT DISTINCT - + 61 DIV - 77 + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - + 61 / - 77 + COUNT ( * ) col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - + ( 64 ) * CASE - + 12 WHEN + 90 * + 68 THEN 35 * + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + ( 64 ) * CASE - + 12 WHEN + 90 * + 68 THEN 35 * + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 70 + 72 * 49 * + ( - 93 )
----
-328174

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT - 66 DIV 29 - + 99 * + 24 + 54 + + + 75 - + + 52 AS col1
----
-2301

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 66 / 29 - + 99 * + 24 + 54 + + + 75 - + + 52 AS col1
----
-2301

query I rowsort
SELECT ALL - 41 * + 86 + + 56 * 83
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT DISTINCT + 90 / + CASE 54 WHEN - - 75 + - + CAST( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) * - - 93 * 75 THEN + - 59 + + - 54 ELSE NULL END * + 43 + - 38 / 21 * + - 5 * - - 54 * + ( - + AVG ( DISTINCT - 62 ) ) * - CASE + 81 WHEN + 86 THEN + COUNT( * ) WHEN + 55 + 16 THEN NULL ELSE - 29 END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + 90 / + CASE 54 WHEN - - 75 + - + CAST ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) * - - 93 * 75 THEN + - 59 + + - 54 ELSE NULL END * + 43 + - 38 / 21 * + - 5 * - - 54 * + ( - + AVG ( DISTINCT - 62 ) ) * - CASE + 81 WHEN + 86 THEN + COUNT ( * ) WHEN + 55 + 16 THEN NULL ELSE - 29 END + + 97
----
NULL

query II rowsort
SELECT 83 col1, ( - 70 )
----
83
-70

query II rowsort
SELECT - 80, - 46 + - - 10 + - 7 * + 62 AS col2
----
-80
-470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL + CAST( NULL AS SIGNED ) * + ( + 59 ) / + 45 * 31 + - 56 + + - 22 + + COUNT( * ) * - 29 + COUNT( * ) * - - 69 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( + 59 ) / + 45 * 31 + - 56 + + - 22 + + COUNT ( * ) * - 29 + COUNT ( * ) * - - 69 + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT + + 11 + - 70 DIV 47
----
10

skipif mysql # not compatible
query I rowsort label-3849
SELECT + + 11 + - 70 / 47
----
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - + COUNT( * ) * + - 60 * - 14 + 45
----
-795

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - + COUNT ( * ) * + - 60 * - 14 + 45
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + COALESCE ( - 5, 50 * + + COUNT( * ) + 29 + + - 66 + + 9 * + 62, 99, - + 55 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + COALESCE ( - 5, 50 * + + COUNT ( * ) + 29 + + - 66 + + 9 * + 62, 99, - + 55 ) AS col1
----
-5

query I rowsort
SELECT + - 28 * - 70
----
1960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL 65 * + + 4 * - 22 - COUNT( * ) col0
----
-5721

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL 65 * + + 4 * - 22 - COUNT ( * ) col0
----
-5721

query I rowsort
SELECT COALESCE ( COALESCE ( 87, - 67 ), + 47 + 28 ) AS col0
----
87

query I rowsort
SELECT ALL + 30 * - 40 * + - 88
----
105600

query II rowsort
SELECT + 33 - - + 1, + 38 * - + 83 AS col1
----
34
-3154

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3860
SELECT ALL 91 * 75 AS col0, - 0 * - 57 * - SUM( - 49 ) * - + 62 DIV - + COUNT( * ) * - MIN( DISTINCT 76 )
----
6825
0

skipif mysql # not compatible
query II rowsort label-3860
SELECT ALL 91 * 75 AS col0, - 0 * - 57 * - SUM ( - 49 ) * - + 62 / - + COUNT ( * ) * - MIN ( DISTINCT 76 )
----
6825
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3861
SELECT DISTINCT 50 * - 58 AS col0, 70 / - 47 * - CAST( - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) col0
----
-2900
NULL

skipif mysql # not compatible
query II rowsort label-3861
SELECT DISTINCT 50 * - 58 AS col0, 70 / - 47 * - CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) col0
----
-2900
NULL

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

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

query I rowsort
SELECT - ( - 55 ) - - 4
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT CASE ( 56 ) WHEN - 45 + + COUNT( * ) THEN - 83 / 63 + - + 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT CASE ( 56 ) WHEN - 45 + + COUNT ( * ) THEN - 83 / 63 + - + 55 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT + 67 DIV - + 45
----
-1

skipif mysql # not compatible
query I rowsort label-3865
SELECT + 67 / - + 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + ( MIN( - - 87 ) ) + + + CASE + 21 WHEN + - ( + AVG ( DISTINCT - ( + - 85 ) ) ) THEN COUNT( * ) * SUM( - 63 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT + ( MIN ( - - 87 ) ) + + + CASE + 21 WHEN + - ( + AVG ( DISTINCT - ( + - 85 ) ) ) THEN COUNT ( * ) * SUM ( - 63 ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT - 49 * - - 61 AS col0, 16 * 10 col0
----
-2989
160

query II rowsort
SELECT 96 + 42, + 6 * 13 AS col2
----
138
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3869
SELECT DISTINCT - 86 + + - 95 + - ( - 79 ) * - 33 - + + CAST( NULL AS SIGNED ) + + + 53 col0, + SUM( DISTINCT - ( + + 98 ) ) AS col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-3869
SELECT DISTINCT - 86 + + - 95 + - ( - 79 ) * - 33 - + + CAST ( NULL AS INTEGER ) + + + 53 col0, + SUM ( DISTINCT - ( + + 98 ) ) AS col2
----
NULL
-98

query II rowsort
SELECT ALL + 96 * - 61, 78 * + + 67 AS col1
----
-5856
5226

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

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

query I rowsort
SELECT DISTINCT + 23 + 41 + - ( + 82 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL - MIN( 28 ) + - 68
----
-96

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - MIN ( 28 ) + - 68
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT + 14 * - 54 * - COUNT( + 49 ) * 67 * - 36 col0
----
-1823472

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + 14 * - 54 * - COUNT ( + 49 ) * 67 * - 36 col0
----
-1823472

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT COUNT( * ) + 53 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3875
SELECT COUNT ( * ) + 53 AS col1
----
54

query II rowsort
SELECT ALL + 45 * 90 AS col2, - 12 + 26 col2
----
4050
14

query II rowsort
SELECT + 24 + - + 63 AS col0, - 10
----
-39
-10

query I rowsort
SELECT DISTINCT - + 56 * - 76 AS col1
----
4256

query I rowsort
SELECT ( 61 ) * + 94
----
5734

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT 1 DIV 36 + - 51 + + 27 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3880
SELECT 1 / 36 + - 51 + + 27 AS col1
----
-24

query I rowsort
SELECT ALL - 95 + - - 56 col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT COALESCE ( - 59, - COUNT( * ) * 75 + - 67 * 80 ) + 52 + + 47 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3882
SELECT COALESCE ( - 59, - COUNT ( * ) * 75 + - 67 * 80 ) + 52 + + 47 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT ALL + + 43 + - 35 DIV - CASE WHEN NOT NULL BETWEEN + 79 AND - 18 THEN NULL ELSE + 40 * + 92 END AS col0, - 84 * + SUM( DISTINCT + + 62 )
----
43
-5208

skipif mysql # not compatible
query II rowsort label-3883
SELECT ALL + + 43 + - 35 / - CASE WHEN NOT NULL BETWEEN + 79 AND - 18 THEN NULL ELSE + 40 * + 92 END AS col0, - 84 * + SUM ( DISTINCT + + 62 )
----
43
-5208

onlyif mysql # DIV for integer division: 
query II rowsort label-3884
SELECT ALL 44 DIV 73 AS col0, 3 * 41 col2
----
0
123

skipif mysql # not compatible
query II rowsort label-3884
SELECT ALL 44 / 73 AS col0, 3 * 41 col2
----
0
123

query I rowsort
SELECT 90 * + 6 + 34 + - 56 * 82
----
-4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT - COALESCE ( + COALESCE ( + ( ( + + COUNT( * ) ) ), + - 16 ), + - 34 * COUNT( * ) * + 21 + - 68 + + 38 * - 23 ) DIV + + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT - COALESCE ( + COALESCE ( + ( ( + + COUNT ( * ) ) ), + - 16 ), + - 34 * COUNT ( * ) * + 21 + - 68 + + 38 * - 23 ) / + + 32 AS col1
----
0

query I rowsort
SELECT ALL - 80 - - 23
----
-57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT ALL - - 38 DIV - COUNT( * ) + - 6
----
-44

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - - 38 / - COUNT ( * ) + - 6
----
-44

query I rowsort
SELECT 13 * + ( ( - 21 ) ) AS col0
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3891
SELECT DISTINCT - 35 * - + NULLIF ( - CASE - - 4 WHEN - COUNT( * ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - + 39 * + 56 THEN + CAST( NULL AS SIGNED ) ELSE NULL END, + + 19 ) * + 89 + + + 53 + 98 * - 84 * - 63 * - - CAST( + - 41 AS DECIMAL ) + 28 / AVG ( - 82 ) * - 40 - - ( - - 33 ) / + 92 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - 35 * - + NULLIF ( - CASE - - 4 WHEN - COUNT ( * ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 39 * + 56 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END, + + 19 ) * + 89 + + + 53 + 98 * - 84 * - 63 * - - CAST ( + - 41 AS REAL ) + 28 / AVG ( - 82 ) * - 40 - - ( - - 33 ) / + 92 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3892
SELECT 97 * COUNT ( * ) + - - 5 / - 81
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT 92 * - NULLIF ( 79, + 26 + COUNT( * ) * + CASE COALESCE ( + 13, + 48 ) WHEN - + 89 THEN + 67 * - 8 + - 26 END ), 6 col0
----
-7268
6

skipif mysql # not compatible
query II rowsort label-3893
SELECT 92 * - NULLIF ( 79, + 26 + COUNT ( * ) * + CASE COALESCE ( + 13, + 48 ) WHEN - + 89 THEN + 67 * - 8 + - 26 END ), 6 col0
----
-7268
6

query I rowsort
SELECT ALL + 71 * - 69 AS col1
----
-4899

query I rowsort
SELECT ALL + 62 * + + 87
----
5394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT COUNT( - ( + 31 ) ) + - ( + COUNT( * ) ) + - 42 DIV - 50 + + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3896
SELECT COUNT ( - ( + 31 ) ) + - ( + COUNT ( * ) ) + - 42 / - 50 + + 7 AS col2
----
7

query I rowsort
SELECT 90 * + + 72
----
6480

query I rowsort
SELECT 96 + + 16 + - - 73 * + 3 AS col0
----
331

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT 57 AS col1, SUM( ALL - + 66 ) + - 72
----
57
-138

skipif mysql # not compatible
query II rowsort label-3899
SELECT 57 AS col1, SUM ( ALL - + 66 ) + - 72
----
57
-138

query II rowsort
SELECT - 76 AS col1, 41
----
-76
41

query I rowsort
SELECT 5 * - 60
----
-300

query I rowsort
SELECT ALL 1 + NULLIF ( - 23, + NULLIF ( - 56, + - AVG ( ALL 36 ) ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + NULLIF ( + 93, MAX( 2 ) + + 52 ) + - - 19 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + NULLIF ( + 93, MAX ( 2 ) + + 52 ) + - - 19 AS col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT 95 AS col2, + SUM( 19 ) + - ( - COUNT( * ) )
----
95
20

skipif mysql # not compatible
query II rowsort label-3904
SELECT 95 AS col2, + SUM ( 19 ) + - ( - COUNT ( * ) )
----
95
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL CASE CAST( + 89 AS SIGNED ) WHEN - + 24 THEN + - NULLIF ( 10, MIN( DISTINCT 70 ) ) END + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL CASE CAST ( + 89 AS INTEGER ) WHEN - + 24 THEN + - NULLIF ( 10, MIN ( DISTINCT 70 ) ) END + 89
----
NULL

query I rowsort
SELECT DISTINCT CASE - - 42 WHEN 10 THEN + NULLIF ( 0, - 50 ) END * + 88 * - 18 + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT ALL - ( + CASE ( - + 9 ) WHEN + 44 THEN NULL WHEN + + 22 + + 49 * - 31 / + MAX( - - 16 ) THEN - + ( + 1 ) * - 69 * + - 23 * - 37 * - 89 * - - 91 + - 42 + - CAST( - 17 AS SIGNED ) ELSE NULL END ) + CAST( NULL AS SIGNED ) + + 53 + 54 + - COUNT( * ) * - - ( - 34 ) - + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - ( + CASE ( - + 9 ) WHEN + 44 THEN NULL WHEN + + 22 + + 49 * - 31 / + MAX ( - - 16 ) THEN - + ( + 1 ) * - 69 * + - 23 * - 37 * - 89 * - - 91 + - 42 + - CAST ( - 17 AS INTEGER ) ELSE NULL END ) + CAST ( NULL AS INTEGER ) + + 53 + 54 + - COUNT ( * ) * - - ( - 34 ) - + + 22 AS col0
----
NULL

query II rowsort
SELECT ALL 43 AS col0, - 1 + + + 95
----
43
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3910
SELECT COUNT( * ), 68 DIV + 54 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3910
SELECT COUNT ( * ), 68 / + 54 AS col0
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT 89 DIV - - 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3911
SELECT 89 / - - 49 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT - 22 DIV 14 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3912
SELECT - 22 / 14 col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT + CAST( 96 AS SIGNED ) col1
----
96

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + CAST ( 96 AS INTEGER ) col1
----
96

query I rowsort
SELECT 79 * 46 AS col1
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT 66 - 78 + CASE - - SUM( DISTINCT + 32 ) WHEN - 87 THEN - MIN( ALL - CASE + 89 WHEN - 50 THEN 54 ELSE NULL END ) + - COUNT( * ) END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT 66 - 78 + CASE - - SUM ( DISTINCT + 32 ) WHEN - 87 THEN - MIN ( ALL - CASE + 89 WHEN - 50 THEN 54 ELSE NULL END ) + - COUNT ( * ) END * 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT ALL CASE - MIN( DISTINCT + + 70 ) WHEN + ( + 41 ) * - 99 * + CAST( NULL AS SIGNED ) + 44 + 70 * - 72 THEN + 35 WHEN 88 THEN + COUNT( * ) + + 6 / - 64 * - COUNT( * ) + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL CASE - MIN ( DISTINCT + + 70 ) WHEN + ( + 41 ) * - 99 * + CAST ( NULL AS INTEGER ) + 44 + 70 * - 72 THEN + 35 WHEN 88 THEN + COUNT ( * ) + + 6 / - 64 * - COUNT ( * ) + 34 END
----
NULL

query I rowsort
SELECT DISTINCT + 22 + + + 83 + + + 79 col1
----
184

query I rowsort
SELECT DISTINCT - 0 * + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT 65 * + COUNT( * ) - 3 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT 65 * + COUNT ( * ) - 3 AS col2
----
62

query II rowsort
SELECT + 65 AS col2, + 82 AS col1
----
65
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL - - ( + + ( + - COUNT( * ) ) ) * 35 + - 46 * - 93 AS col0
----
4243

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - - ( + + ( + - COUNT ( * ) ) ) * 35 + - 46 * - 93 AS col0
----
4243

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL + 45 * - - MIN( NULLIF ( + 23, + + 91 ) ) - 45 + - 40
----
950

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + 45 * - - MIN ( NULLIF ( + 23, + + 91 ) ) - 45 + - 40
----
950

query II rowsort
SELECT ALL - 79 col0, COALESCE ( - 9, + - 95 )
----
-79
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3924
SELECT + 19 DIV + 50 - + + 35 - COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3924
SELECT + 19 / + 50 - + + 35 - COUNT ( * ) AS col0
----
-36

query II rowsort
SELECT 69 * - + ( - + 52 ) AS col2, 33 col0
----
3588
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3926
SELECT ALL - 16 * + + CAST( NULL AS SIGNED ) - 49 AS col0, + 96 * + 31 AS col0
----
NULL
2976

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL - 16 * + + CAST ( NULL AS INTEGER ) - 49 AS col0, + 96 * + 31 AS col0
----
NULL
2976

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT - COALESCE ( - 34, 77, - - 96 ) DIV + 26
----
1

skipif mysql # not compatible
query I rowsort label-3927
SELECT - COALESCE ( - 34, 77, - - 96 ) / + 26
----
1

query II rowsort
SELECT DISTINCT - - 79, ( + 7 ) AS col0
----
79
7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT DISTINCT 39 / - + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT 39 / - + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT ALL + 3 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + 3 / 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT DISTINCT + 86 + - + 16 + + + 95 - - COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT + 86 + - + 16 + + + 95 - - COUNT ( * )
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3933
SELECT NULLIF ( - CAST( NULL AS DECIMAL ), + COUNT( * ) ) * - - 58 - + 7 + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT NULLIF ( - CAST ( NULL AS REAL ), + COUNT ( * ) ) * - - 58 - + 7 + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3934
SELECT + 8 * - 53 * + CAST( - + 94 AS SIGNED ) AS col0, CASE - 6 WHEN + + 40 THEN NULL WHEN - ( 27 ) + + CAST( NULL AS SIGNED ) * - + COUNT( * ) + 89 THEN NULL ELSE - 80 * - 61 + - CASE - 87 WHEN - 41 + + 19 THEN 80 + - NULLIF ( 91, 50 ) WHEN + 0 + + + 33 THEN NULL WHEN 18 THEN NULL ELSE - - ( + COUNT( * ) ) END END + 69 AS col2
----
39856
4948

skipif mysql # not compatible
query II rowsort label-3934
SELECT + 8 * - 53 * + CAST ( - + 94 AS INTEGER ) AS col0, CASE - 6 WHEN + + 40 THEN NULL WHEN - ( 27 ) + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 89 THEN NULL ELSE - 80 * - 61 + - CASE - 87 WHEN - 41 + + 19 THEN 80 + - NULLIF ( 91, 50 ) WHEN + 0 + + + 33 THEN NULL WHEN 18 THEN NULL ELSE - - ( + COUNT ( * ) ) END END + 69 AS col2
----
39856
4948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3935
SELECT - 20 - + CASE - 0 WHEN - + 23 THEN NULL WHEN - COUNT( * ) THEN - 74 + + 8 END * + 61 / CAST( NULL AS SIGNED ) + + 85 + + + COALESCE ( - + 62, - - COUNT( ALL 51 ) * - 39 * + + 75, + - SUM( - 4 ) + + COUNT( * ) + - CAST( + 85 AS DECIMAL ) ) - - 50 + - ( - 27 ) / - 46 * + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT - 20 - + CASE - 0 WHEN - + 23 THEN NULL WHEN - COUNT ( * ) THEN - 74 + + 8 END * + 61 / CAST ( NULL AS INTEGER ) + + 85 + + + COALESCE ( - + 62, - - COUNT ( ALL 51 ) * - 39 * + + 75, + - SUM ( - 4 ) + + COUNT ( * ) + - CAST ( + 85 AS REAL ) ) - - 50 + - ( - 27 ) / - 46 * + - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL CASE - COALESCE ( + 46, + NULLIF ( + 47, + 91 ) ) WHEN + COUNT( * ) THEN - - COUNT( * ) END + + COUNT( * ) * + 98 - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL CASE - COALESCE ( + 46, + NULLIF ( + 47, + 91 ) ) WHEN + COUNT ( * ) THEN - - COUNT ( * ) END + + COUNT ( * ) * + 98 - - 41
----
NULL

query I rowsort
SELECT + 96 - + - 54 AS col0
----
150

query I rowsort
SELECT + 66 - + 14 AS col0
----
52

query I rowsort
SELECT + 36 + - - ( - 85 )
----
-49

query I rowsort
SELECT + 42 - + - 61
----
103

query I rowsort
SELECT ALL - 62 * + 86
----
-5332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3942
SELECT DISTINCT 8 - ( + 23 ) - - 31 AS col0, ( + MIN( - 27 ) ) DIV - - 48
----
16
0

skipif mysql # not compatible
query II rowsort label-3942
SELECT DISTINCT 8 - ( + 23 ) - - 31 AS col0, ( + MIN ( - 27 ) ) / - - 48
----
16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + 35 * - 58 * + + COUNT( * )
----
-2030

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + 35 * - 58 * + + COUNT ( * )
----
-2030

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL 65 * - CAST( NULL AS SIGNED ) * 81 * - - 38 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) * 81 * - - 38 + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3946
SELECT ALL 69 * ( COALESCE ( COUNT( - 3 ), + 69 DIV - - CAST( + 15 AS SIGNED ) ) ) + + 72
----
141

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL 69 * ( COALESCE ( COUNT ( - 3 ), + 69 / - - CAST ( + 15 AS INTEGER ) ) ) + + 72
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT ALL + NULLIF ( 72, + CAST( 85 AS SIGNED ) * + 76 + - + 80 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + NULLIF ( 72, + CAST ( 85 AS INTEGER ) * + 76 + - + 80 ) AS col2
----
72

query I rowsort
SELECT + + ( - ( + - 90 ) ) * + + 25
----
2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT + NULLIF ( + COUNT( ALL CAST( - 86 AS SIGNED ) ), 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3949
SELECT + NULLIF ( + COUNT ( ALL CAST ( - 86 AS INTEGER ) ), 39 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT + SUM( DISTINCT - 86 ) + - CAST( NULL AS SIGNED ) + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT + SUM ( DISTINCT - 86 ) + - CAST ( NULL AS INTEGER ) + 35 AS col1
----
NULL

query I rowsort
SELECT - 56 + - 51 col2
----
-107

query I rowsort
SELECT DISTINCT + 99 * + - 52
----
-5148

query I rowsort
SELECT NULLIF ( + 47, + 15 ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT - 8 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-3954
SELECT - 8 / + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL - ( - 98 ) * 33 * 4 + 21 + - MIN( ALL + - 69 ) + + 16 AS col1
----
13042

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - ( - 98 ) * 33 * 4 + 21 + - MIN ( ALL + - 69 ) + + 16 AS col1
----
13042

query I rowsort
SELECT + 0 * - ( + - 94 ) + 33 AS col0
----
33

query I rowsort
SELECT DISTINCT 12 * + 81 * - 81 + - 50 + + ( + - 94 ) AS col2
----
-78876

query I rowsort
SELECT - 96 + - ( + ( + + 50 ) ) AS col1
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT ALL 18 * 79 DIV + 43 + + 19 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL 18 * 79 / + 43 + + 19 AS col0
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-3960
SELECT ALL + COALESCE ( + 90, - 11 ) AS col1, + COALESCE ( 88, + 96 ) DIV 8 + - 68 AS col1
----
90
-57

skipif mysql # not compatible
query II rowsort label-3960
SELECT ALL + COALESCE ( + 90, - 11 ) AS col1, + COALESCE ( 88, + 96 ) / 8 + - 68 AS col1
----
90
-57

query I rowsort
SELECT ALL + 48 * - + 60 + + 4 AS col0
----
-2876

query I rowsort
SELECT + 25 * - 68 * - 45 AS col1
----
76500

query I rowsort
SELECT DISTINCT + 15 * - + 7 + + 66 - + - 98
----
59

query I rowsort
SELECT + 18 + + 29 - + 41 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * + 10 * - 20 - + ( + 26 ) AS col1
----
-226

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * + 10 * - 20 - + ( + 26 ) AS col1
----
-226

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

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

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

query I rowsort
SELECT ALL 70 - + 23
----
47

query I rowsort
SELECT - ( - ( 95 ) ) AS col2
----
95

query I rowsort
SELECT + 46 + 70
----
116

query I rowsort
SELECT + ( 94 ) * + 34 col0
----
3196

query I rowsort
SELECT ALL 28 * 39 AS col1
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT + 93 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT + 93 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + 10 ) - 17
----
-7

query I rowsort
SELECT ALL 75 * 88 AS col2
----
6600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT + ( - 77 ) DIV COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3976
SELECT + ( - 77 ) / COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT ALL 92 + - 27
----
65

query I rowsort
SELECT + ( + 90 ) + + 47
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT + ( + 58 ) DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT + ( + 58 ) / 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT - 90 * MAX( ALL + ( 74 ) ) + CAST( 16 AS SIGNED )
----
-6644

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 90 * MAX ( ALL + ( 74 ) ) + CAST ( 16 AS INTEGER )
----
-6644

query I rowsort
SELECT DISTINCT 80 + + 2 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT 18 * + CASE - 37 WHEN - NULLIF ( COUNT( * ), - 9 + 87 ) THEN + 89 * 16 WHEN CASE 41 WHEN - COUNT( * ) + 29 THEN NULL WHEN - CAST( ( CAST( + 20 AS SIGNED ) ) AS SIGNED ) / + 47 THEN + 39 + 7 ELSE 62 END + + 27 * 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT 18 * + CASE - 37 WHEN - NULLIF ( COUNT ( * ), - 9 + 87 ) THEN + 89 * 16 WHEN CASE 41 WHEN - COUNT ( * ) + 29 THEN NULL WHEN - CAST ( ( CAST ( + 20 AS INTEGER ) ) AS INTEGER ) / + 47 THEN + 39 + 7 ELSE 62 END + + 27 * 8 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 41 + 51
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + CASE + 38 WHEN 26 / - COUNT( * ) + - COUNT( * ) THEN 37 ELSE 6 END + + 92 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + CASE + 38 WHEN 26 / - COUNT ( * ) + - COUNT ( * ) THEN 37 ELSE 6 END + + 92 AS col0
----
98

query I rowsort
SELECT ( 55 ) * 63
----
3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL + MAX( DISTINCT 70 ) * - CAST( - 34 * 95 AS SIGNED )
----
226100

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + MAX ( DISTINCT 70 ) * - CAST ( - 34 * 95 AS INTEGER )
----
226100

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - MIN( DISTINCT - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - MIN ( DISTINCT - 18 ) AS col1
----
18

query I rowsort
SELECT ALL + ( + 2 ) + - ( COALESCE ( 48, - 15, + 26 + + 56 ) ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL - COUNT( * ) - 59 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - COUNT ( * ) - 59 AS col1
----
-60

query I rowsort
SELECT ALL + 51 * - 28 AS col1
----
-1428

query I rowsort
SELECT 21 - 14
----
7

query I rowsort
SELECT DISTINCT - ( NULLIF ( - 35, 88 * - 37 ) ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT 30 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT 30 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 27 ) * NULLIF ( 14, ( ( - 67 ) ) ) AS col2
----
378

query I rowsort
SELECT - ( - 24 ) * 61 + 46 AS col1
----
1510

query I rowsort
SELECT DISTINCT 99 * 93 AS col0
----
9207

query I rowsort
SELECT - 68 * 83
----
-5644

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT ALL - + 4 DIV ( + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL - + 4 / ( + 70 ) AS col2
----
0

query I rowsort
SELECT + ( + 24 ) + + 84
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ( - MIN( ALL + 84 ) ) - - MIN( DISTINCT 65 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4000
SELECT ( - MIN ( ALL + 84 ) ) - - MIN ( DISTINCT 65 ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4001
SELECT ALL - + SUM( 74 ) DIV - 14 col0
----
5

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - + SUM ( 74 ) / - 14 col0
----
5

query I rowsort
SELECT 74 * 4
----
296

query I rowsort
SELECT + ( - 44 ) + 89 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT CAST( NULL AS SIGNED ) + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT CAST ( NULL AS INTEGER ) + - 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT 64 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-4005
SELECT 64 / 40
----
1

query I rowsort
SELECT DISTINCT - 19 * + 76
----
-1444

query I rowsort
SELECT ALL 88 * - 8 AS col1
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - MIN( COALESCE ( ( 90 ), - 1 * 90 ) ) + COALESCE ( + 9, 96 * 26 - - COUNT( * ), 2 ) * 8 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4008
SELECT - MIN ( COALESCE ( ( 90 ), - 1 * 90 ) ) + COALESCE ( + 9, 96 * 26 - - COUNT ( * ), 2 ) * 8 AS col0
----
-18

query I rowsort
SELECT 13 + ( 92 ) * 7 AS col2
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + COUNT( * ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + COUNT ( * ) * + 11
----
11

query I rowsort
SELECT ALL + - 25 + - 21
----
-46

query I rowsort
SELECT - - ( NULLIF ( 80, - 60 ) )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT - 78 + 19 DIV 48
----
-78

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - 78 + 19 / 48
----
-78

query I rowsort
SELECT 23 + ( 55 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + MIN( 19 ) * + NULLIF ( 39 * - 31 + 59, - COUNT( * ) * 80 )
----
-21850

skipif mysql # not compatible
query I rowsort label-4015
SELECT + MIN ( 19 ) * + NULLIF ( 39 * - 31 + 59, - COUNT ( * ) * 80 )
----
-21850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT CAST( - 90 AS SIGNED ) + + 6
----
-84

skipif mysql # not compatible
query I rowsort label-4016
SELECT CAST ( - 90 AS INTEGER ) + + 6
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT 13 DIV 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4017
SELECT 13 / 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL COUNT( * ) + - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL COUNT ( * ) + - + 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT - NULLIF ( + 97, + 46 + - COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - NULLIF ( + 97, + 46 + - COUNT ( * ) )
----
-97

query I rowsort
SELECT DISTINCT 8 + + 17 AS col0
----
25

query I rowsort
SELECT DISTINCT 20 * - + 73
----
-1460

query I rowsort
SELECT DISTINCT 26 * 97 AS col1
----
2522

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT 24 * COUNT( * ) * 52 AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-4023
SELECT 24 * COUNT ( * ) * 52 AS col1
----
1248

query I rowsort
SELECT 95 + + + 0 + + CASE 4 WHEN 2 THEN - 21 - - ( 72 + 28 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 73 * 48 - - 56
----
3560

query I rowsort
SELECT DISTINCT 73 * - 16
----
-1168

query I rowsort
SELECT 14 * 88 * - 72
----
-88704

query I rowsort
SELECT 50 + 56 AS col1
----
106

query I rowsort
SELECT - 53 * - 81 + 62 AS col2
----
4355

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT 33 DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4030
SELECT 33 / + 36 AS col0
----
0

query I rowsort
SELECT ALL + 20 * - 70 AS col1
----
-1400

query I rowsort
SELECT DISTINCT - 72 * + 66
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + 66 * + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4033
SELECT + 66 * + - COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL + 56 * + + COUNT( * ) - + NULLIF ( 32, + CASE ( 50 ) WHEN 58 THEN + 37 - 98 END * - 64 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL + 56 * + + COUNT ( * ) - + NULLIF ( 32, + CASE ( 50 ) WHEN 58 THEN + 37 - 98 END * - 64 ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT - 5 * + - SUM( 54 )
----
270

skipif mysql # not compatible
query I rowsort label-4035
SELECT - 5 * + - SUM ( 54 )
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT 56 + - + COUNT( * ) + + 94 * - 66 AS col1
----
-6149

skipif mysql # not compatible
query I rowsort label-4036
SELECT 56 + - + COUNT ( * ) + + 94 * - 66 AS col1
----
-6149

query I rowsort
SELECT - 14 * 15
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - CASE + 93 WHEN - CASE + 92 WHEN + 30 THEN NULL WHEN - 30 + - COUNT( * ) THEN NULL ELSE 98 END THEN NULL WHEN - 32 * - 7 THEN 89 ELSE + 51 END
----
-51

skipif mysql # not compatible
query I rowsort label-4038
SELECT - CASE + 93 WHEN - CASE + 92 WHEN + 30 THEN NULL WHEN - 30 + - COUNT ( * ) THEN NULL ELSE 98 END THEN NULL WHEN - 32 * - 7 THEN 89 ELSE + 51 END
----
-51

query I rowsort
SELECT 48 + + + COALESCE ( - 77, 88 )
----
-29

query I rowsort
SELECT DISTINCT 20 + 46
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT + CAST( - MIN( 87 ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-4041
SELECT + CAST ( - MIN ( 87 ) AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT + 87 + + + ( - 63 ) - 59 * COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT + 87 + + + ( - 63 ) - 59 * COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + 82 + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + 82 + COUNT ( * ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT - SUM( DISTINCT + 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4044
SELECT - SUM ( DISTINCT + 47 ) AS col1
----
-47

query I rowsort
SELECT + NULLIF ( - 72, - 91 ) - 33 AS col1
----
-105

query I rowsort
SELECT - 35 + - 96
----
-131

query I rowsort
SELECT - 5 * + 81
----
-405

query I rowsort
SELECT - + 52 + 43 * + 88
----
3732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT - CASE 58 WHEN COUNT( * ) THEN + CAST( 92 AS SIGNED ) + - 13 ELSE NULL END - 48 * SUM( + 45 / 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - CASE 58 WHEN COUNT ( * ) THEN + CAST ( 92 AS INTEGER ) + - 13 ELSE NULL END - 48 * SUM ( + 45 / 14 )
----
NULL

query I rowsort
SELECT ALL COALESCE ( 48, - 44 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - 41 + - 55 + - + COUNT( * ) + + MAX( ALL 61 ) * 42 * + 93
----
238169

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - 41 + - 55 + - + COUNT ( * ) + + MAX ( ALL 61 ) * 42 * + 93
----
238169

query II rowsort
SELECT DISTINCT 53 AS col1, - 29 col2
----
53
-29

query I rowsort
SELECT DISTINCT + 76 * - + 98 - - 82 * - 91
----
-14910

query I rowsort
SELECT + 26 * - 28 AS col2
----
-728

query I rowsort
SELECT 78 * - 89 + 69
----
-6873

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + COUNT( * ) - 84
----
-83

skipif mysql # not compatible
query I rowsort label-4056
SELECT + COUNT ( * ) - 84
----
-83

query I rowsort
SELECT COALESCE ( + 29, + 3 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4058
SELECT - 90 * - CASE 2 WHEN - COUNT( * ) + 79 THEN 3 WHEN 78 THEN MIN( DISTINCT + 32 ) + 19 * - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + - CASE - 85 WHEN + AVG ( ALL - 51 ) / 15 THEN - 99 + CAST( - 80 AS DECIMAL ) * 70 END * - 9 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 90 * - CASE 2 WHEN - COUNT ( * ) + 79 THEN 3 WHEN 78 THEN MIN ( DISTINCT + 32 ) + 19 * - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + - CASE - 85 WHEN + AVG ( ALL - 51 ) / 15 THEN - 99 + CAST ( - 80 AS REAL ) * 70 END * - 9 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 96 * + 38 col1
----
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT + MAX( ALL CAST( - + 58 AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4060
SELECT + MAX ( ALL CAST ( - + 58 AS INTEGER ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT + MIN( ALL COALESCE ( - 12, + 66, 38 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4061
SELECT + MIN ( ALL COALESCE ( - 12, + 66, 38 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL + CAST( - 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + CAST ( - 95 AS INTEGER ) AS col0
----
-95

query I rowsort
SELECT ALL 54 * + 13 col0
----
702

query I rowsort
SELECT + 60 * + 80 AS col0
----
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT ALL + 20 AS col1, + COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-4065
SELECT ALL + 20 AS col1, + COUNT ( * )
----
20
1

query I rowsort
SELECT DISTINCT 59 * 85 AS col1
----
5015

query I rowsort
SELECT ALL 20 * - + 79 * - 21 AS col1
----
33180

query I rowsort
SELECT + 90 + - 10
----
80

query I rowsort
SELECT + 59 * - 95 * + + 34 * NULLIF ( 75, 97 + NULLIF ( + 19 + + 10, 7 ) * 56 ) AS col0
----
-14292750

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + 3 * COUNT( DISTINCT + ( 24 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4070
SELECT + 3 * COUNT ( DISTINCT + ( 24 ) ) AS col2
----
3

query I rowsort
SELECT + - 88 - - 37 + - 6 + 46
----
-11

query I rowsort
SELECT + + 13 - - 19 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4073
SELECT ALL CAST( - COUNT( - 10 ) AS SIGNED ) DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL CAST ( - COUNT ( - 10 ) AS INTEGER ) / + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL MAX( DISTINCT - + 81 ) * 96 - 33 + - 47
----
-7856

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL MAX ( DISTINCT - + 81 ) * 96 - 33 + - 47
----
-7856

query I rowsort
SELECT 39 * - 26 + - 38 * 29 + 20 AS col0
----
-2096

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL - 17 * - + COUNT( * ) + - + 19 + - COUNT( * ) + ( 19 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - 17 * - + COUNT ( * ) + - + 19 + - COUNT ( * ) + ( 19 ) AS col0
----
16

query I rowsort
SELECT DISTINCT - + 99 + - 1
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT ALL + + COALESCE ( - 9, - COUNT( * ) + 40 DIV 39, - 71 + + 38 ) + - ( - SUM( DISTINCT 38 ) )
----
29

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + + COALESCE ( - 9, - COUNT ( * ) + 40 / 39, - 71 + + 38 ) + - ( - SUM ( DISTINCT 38 ) )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT - 19, - COUNT( * ) * + 45 + 67 * - NULLIF ( 7, - 48 ) AS col0
----
-19
-514

skipif mysql # not compatible
query II rowsort label-4079
SELECT - 19, - COUNT ( * ) * + 45 + 67 * - NULLIF ( 7, - 48 ) AS col0
----
-19
-514

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4080
SELECT + 6 + + + CASE + CAST( NULL AS DECIMAL ) WHEN - 33 THEN + ( - 24 ) WHEN + CAST( NULL AS SIGNED ) * + 56 THEN NULL END + - 55 * 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT + 6 + + + CASE + CAST ( NULL AS REAL ) WHEN - 33 THEN + ( - 24 ) WHEN + CAST ( NULL AS INTEGER ) * + 56 THEN NULL END + - 55 * 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - - CASE + AVG ( - NULLIF ( 37, 9 ) ) WHEN MAX( 74 ) * 19 + - 49 THEN NULL WHEN - 47 THEN 60 + 37 * - 36 ELSE - 20 END
----
-20

skipif mysql # not compatible
query I rowsort label-4081
SELECT - - CASE + AVG ( - NULLIF ( 37, 9 ) ) WHEN MAX ( 74 ) * 19 + - 49 THEN NULL WHEN - 47 THEN 60 + 37 * - 36 ELSE - 20 END
----
-20

query I rowsort
SELECT + ( + 37 ) + - 2 + - 27 AS col2
----
8

query I rowsort
SELECT - 89 - - 45 * ( 52 ) AS col1
----
2251

query I rowsort
SELECT - NULLIF ( + + 14, - - 67 + - 58 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT - COUNT( * ) + + 32 + - + COUNT( * ) DIV 61
----
31

skipif mysql # not compatible
query I rowsort label-4085
SELECT - COUNT ( * ) + + 32 + - + COUNT ( * ) / 61
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL - - 57 + MIN( DISTINCT - 93 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - - 57 + MIN ( DISTINCT - 93 ) AS col2
----
-36

query I rowsort
SELECT + + 12 * 69 * + 89 col2
----
73692

query II rowsort
SELECT ALL - 11, + 58 + - 96 AS col1
----
-11
-38

query I rowsort
SELECT + - COALESCE ( + 32, + 76 ) + 22 AS col2
----
-10

query I rowsort
SELECT COALESCE ( + - 60, + 2 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT DISTINCT MIN( - 86 ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT MIN ( - 86 ) col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL 62 - - 59 + CASE + 3 WHEN - 47 * 76 THEN - 89 WHEN ( + 99 ) + CASE 86 + + 37 WHEN COUNT( * ) - + 58 THEN 61 / - 19 ELSE COUNT( * ) * 28 END / + 82 THEN NULL ELSE COUNT( * ) END * 93 AS col0
----
214

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 62 - - 59 + CASE + 3 WHEN - 47 * 76 THEN - 89 WHEN ( + 99 ) + CASE 86 + + 37 WHEN COUNT ( * ) - + 58 THEN 61 / - 19 ELSE COUNT ( * ) * 28 END / + 82 THEN NULL ELSE COUNT ( * ) END * 93 AS col0
----
214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT - 74 * - + 48 * CASE COUNT( * ) WHEN 80 + - 25 THEN NULL WHEN 17 * 24 THEN NULL ELSE CAST( + 45 AS SIGNED ) END
----
159840

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 74 * - + 48 * CASE COUNT ( * ) WHEN 80 + - 25 THEN NULL WHEN 17 * 24 THEN NULL ELSE CAST ( + 45 AS INTEGER ) END
----
159840

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT - 32 + 39 - - - 81 + + 92 DIV 30 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4094
SELECT - 32 + 39 - - - 81 + + 92 / 30 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL COALESCE ( + 40, + + 26 + - 46 - 81 ) - - 42 * + COUNT( 9 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL COALESCE ( + 40, + + 26 + - 46 - 81 ) - - 42 * + COUNT ( 9 ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT - CAST( 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4096
SELECT - CAST ( 79 AS INTEGER ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT + 38 + - COUNT( * ) + 2 - + + 36 + + 53 * 7
----
374

skipif mysql # not compatible
query I rowsort label-4097
SELECT + 38 + - COUNT ( * ) + 2 - + + 36 + + 53 * 7
----
374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT ALL + CAST( + ( - + 50 ) AS SIGNED ) * - 92
----
4600

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + CAST ( + ( - + 50 ) AS INTEGER ) * - 92
----
4600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4099
SELECT - 90 DIV + - COUNT( * ) col0, - ( - 81 )
----
90
81

skipif mysql # not compatible
query II rowsort label-4099
SELECT - 90 / + - COUNT ( * ) col0, - ( - 81 )
----
90
81

query I rowsort
SELECT - 8 + + 87 col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT + ( - + ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + ( - + ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL - 19 * - CASE 18 WHEN - CAST( NULL AS SIGNED ) + 26 THEN 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - 19 * - CASE 18 WHEN - CAST ( NULL AS INTEGER ) + 26 THEN 16 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - ( SUM( ALL - 68 ) ) * + 14 AS col0
----
952

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - ( SUM ( ALL - 68 ) ) * + 14 AS col0
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - 29 * COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 29 * COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - COALESCE ( + 48, COUNT( DISTINCT NULLIF ( - 49, - 74 + 81 ) ) ) * - 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - COALESCE ( + 48, COUNT ( DISTINCT NULLIF ( - 49, - 74 + 81 ) ) ) * - 8 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4106
SELECT COUNT( * ) DIV + + 22 * - + 43 + - 64 + + 47 * + 29 * - 23
----
-31413

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( * ) / + + 22 * - + 43 + - 64 + + 47 * + 29 * - 23
----
-31413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT 13 / - - COUNT( * ) + 97 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT 13 / - - COUNT ( * ) + 97 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL 82 / CAST( 68 AS SIGNED ) / - + 73 * - ( + 86 * 44 ) + CAST( NULL AS SIGNED ) / 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL 82 / CAST ( 68 AS INTEGER ) / - + 73 * - ( + 86 * 44 ) + CAST ( NULL AS INTEGER ) / 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT - - CAST( NULL AS SIGNED ) * 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT - - CAST ( NULL AS INTEGER ) * 28 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - 93 * 74 + + - COUNT( * )
----
-6883

skipif mysql # not compatible
query I rowsort label-4110
SELECT - 93 * 74 + + - COUNT ( * )
----
-6883

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - 77 * - COUNT( * ) * + COUNT( * ) + - 22 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 77 * - COUNT ( * ) * + COUNT ( * ) + - 22 AS col1
----
55

query I rowsort
SELECT + ( - - 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + + 21 * - + MAX( DISTINCT - ( - 93 ) ) + + ( 1 ) * 50 col2
----
-1903

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + + 21 * - + MAX ( DISTINCT - ( - 93 ) ) + + ( 1 ) * 50 col2
----
-1903

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - + 55 * - - 9 + - + COUNT( * ) + - 31 * 81 AS col2
----
-3007

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - + 55 * - - 9 + - + COUNT ( * ) + - 31 * 81 AS col2
----
-3007

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL + 77 * - COUNT( * ) + - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + 77 * - COUNT ( * ) + - COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + 24 + - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4116
SELECT + 24 + - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT DISTINCT + NULLIF ( - + 12, 78 )
----
-12

query I rowsort
SELECT ALL NULLIF ( + 31, 22 + - 91 + + 94 ) * 1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4119
SELECT - 1 * 41 + - + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 1 * 41 + - + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT 38 + - - 63 + - + ( - 93 ) * COUNT( * ) AS col0
----
194

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT 38 + - - 63 + - + ( - 93 ) * COUNT ( * ) AS col0
----
194

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT ALL + 21 + + + 80 AS col1, COUNT( * ) * - ( + 37 ) + 60
----
101
23

skipif mysql # not compatible
query II rowsort label-4121
SELECT ALL + 21 + + + 80 AS col1, COUNT ( * ) * - ( + 37 ) + 60
----
101
23

query II rowsort
SELECT + 87 + - 34 AS col2, 21 AS col2
----
53
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + 26 * + COUNT( * ) * + - 77
----
-2002

skipif mysql # not compatible
query I rowsort label-4123
SELECT + 26 * + COUNT ( * ) * + - 77
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 65 * - + COUNT( ALL 13 )
----
-65

skipif mysql # not compatible
query I rowsort label-4124
SELECT 65 * - + COUNT ( ALL 13 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT 65 DIV 18 - 56 * - COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 65 / 18 - 56 * - COUNT ( * ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT + + 76 - 82 + CASE - 73 WHEN + 88 THEN + MAX( + 46 ) ELSE NULL END * COALESCE ( - 29 * + 79, 94 * 32 + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + + 76 - 82 + CASE - 73 WHEN + 88 THEN + MAX ( + 46 ) ELSE NULL END * COALESCE ( - 29 * + 79, 94 * 32 + 1 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4127
SELECT ALL - ( + - 94 ) DIV 13 * - - SUM( DISTINCT + CAST( + ( 16 ) AS SIGNED ) ) col2
----
112

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - ( + - 94 ) / 13 * - - SUM ( DISTINCT + CAST ( + ( 16 ) AS INTEGER ) ) col2
----
112

query I rowsort
SELECT ALL 23 - - 54
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT ( + SUM( - - 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT ( + SUM ( - - 22 ) )
----
22

query I rowsort
SELECT DISTINCT + ( - ( 35 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ( - SUM( + 67 ) ) - + - ( + COUNT( 32 ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4131
SELECT ( - SUM ( + 67 ) ) - + - ( + COUNT ( 32 ) ) AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT COUNT( * ) + 34 DIV - 93 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT COUNT ( * ) + 34 / - 93 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL NULLIF ( ( + CAST( + 78 AS SIGNED ) ), 72 ) * 37
----
2886

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL NULLIF ( ( + CAST ( + 78 AS INTEGER ) ), 72 ) * 37
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT COUNT( * ) * 82
----
82

skipif mysql # not compatible
query I rowsort label-4134
SELECT COUNT ( * ) * 82
----
82

query I rowsort
SELECT 50 + 91 AS col0
----
141

query II rowsort
SELECT ALL 9 col2, + 29 AS col0
----
9
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT MAX( ALL + 86 ) * + 98 AS col0
----
8428

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT MAX ( ALL + 86 ) * + 98 AS col0
----
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ( + COUNT( * ) ) - - - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT ( + COUNT ( * ) ) - - - 0 AS col1
----
1

query I rowsort
SELECT ALL - 15 + - - 91 + + 40 * 33 * + ( 67 ) - 74 AS col1
----
88442

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ( - - COUNT( DISTINCT 88 ) ) * 51 + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4140
SELECT ( - - COUNT ( DISTINCT 88 ) ) * 51 + COUNT ( * )
----
52

query I rowsort
SELECT 65 * - 41
----
-2665

query I rowsort
SELECT ALL - 16 + 2 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT 55 * - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4143
SELECT 55 * - COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT ALL - + 58 + + 17 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT ALL CAST( - - 47 AS SIGNED ) + - 99 * + + 12
----
-1141

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL CAST ( - - 47 AS INTEGER ) + - 99 * + + 12
----
-1141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT - 8 DIV + + ( MIN( DISTINCT + 57 ) ) * + 75 * 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT - 8 / + + ( MIN ( DISTINCT + 57 ) ) * + 75 * 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - + COUNT( * ) + 8
----
7

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - + COUNT ( * ) + 8
----
7

query I rowsort
SELECT ALL + 11 + + 15
----
26

query II rowsort
SELECT + 14 AS col1, - 76 AS col1
----
14
-76

query I rowsort
SELECT + 70 * - 3 * 44 + + + 46 - - + 86
----
-9108

query I rowsort
SELECT 13 + + 27 * - 57 * 75
----
-115412

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT + 57 * + 86 - + + ( ( 50 ) ) + - 18 DIV + 80 AS col0
----
4852

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 57 * + 86 - + + ( ( 50 ) ) + - 18 / + 80 AS col0
----
4852

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + 50 - + - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + 50 - + - COUNT ( * ) AS col2
----
51

query I rowsort
SELECT 43 * - + 57 + - 77 AS col0
----
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + CASE + 75 WHEN 84 THEN NULL WHEN - 14 THEN + + NULLIF ( - 10, - COUNT( * ) ) WHEN 13 THEN COUNT( - ( - 37 ) ) * COUNT( * ) WHEN 62 * 22 THEN 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT + CASE + 75 WHEN 84 THEN NULL WHEN - 14 THEN + + NULLIF ( - 10, - COUNT ( * ) ) WHEN 13 THEN COUNT ( - ( - 37 ) ) * COUNT ( * ) WHEN 62 * 22 THEN 48 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT 2 AS col2, + COUNT( DISTINCT 63 ) * - 95 + + 1
----
2
-94

skipif mysql # not compatible
query II rowsort label-4156
SELECT 2 AS col2, + COUNT ( DISTINCT 63 ) * - 95 + + 1
----
2
-94

query I rowsort
SELECT + 15 * 16
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL + CAST( ( + ( + 56 ) ) AS SIGNED ) - - - 37 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + CAST ( ( + ( + 56 ) ) AS INTEGER ) - - - 37 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4159
SELECT ALL + 38 AS col2, COUNT( - + ( - 55 ) ) col2
----
38
1

skipif mysql # not compatible
query II rowsort label-4159
SELECT ALL + 38 AS col2, COUNT ( - + ( - 55 ) ) col2
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + 94 * 78 * + 53 + COUNT( 87 ) - 78 * 99 + 71
----
380946

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 94 * 78 * + 53 + COUNT ( 87 ) - 78 * 99 + 71
----
380946

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT DISTINCT + 57 DIV - 10 + 80 - + 61
----
14

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + 57 / - 10 + 80 - + 61
----
14

query I rowsort
SELECT ALL + 35 * - - 74 * - 54 * + + ( + 6 ) + + 65 * + 85
----
-833635

query I rowsort
SELECT 61 + + 32
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT COUNT( * ) + - 37 * - + MAX( + - ( - 45 ) )
----
1666

skipif mysql # not compatible
query I rowsort label-4164
SELECT COUNT ( * ) + - 37 * - + MAX ( + - ( - 45 ) )
----
1666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT CAST( NULL AS SIGNED ) + - 59 / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT CAST ( NULL AS INTEGER ) + - 59 / + 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT NULLIF ( + 96, MIN( ALL 75 ) ) DIV + - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4166
SELECT NULLIF ( + 96, MIN ( ALL 75 ) ) / + - COUNT ( * ) AS col1
----
-96

query I rowsort
SELECT 50 * + ( - 49 ) AS col0
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT SUM( ALL + 90 ) + + 46
----
136

skipif mysql # not compatible
query I rowsort label-4168
SELECT SUM ( ALL + 90 ) + + 46
----
136

query II rowsort
SELECT DISTINCT 4 AS col2, - 88
----
4
-88

query II rowsort
SELECT ALL 55 AS col1, + 15
----
55
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT ALL 61 DIV - 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 61 / - 42 AS col1
----
-1

query I rowsort
SELECT 34 + 10 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT 40 DIV - 76 * - 75
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT 40 / - 76 * - 75
----
0

query II rowsort
SELECT ALL 64, - 97 col2
----
64
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT COALESCE ( + 98, + COUNT( * ) + + - COUNT( * ) ) * - - ( + 23 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT COALESCE ( + 98, + COUNT ( * ) + + - COUNT ( * ) ) * - - ( + 23 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL CASE + 65 WHEN COUNT( * ) + + MAX( DISTINCT + 73 ) * 91 THEN - MIN( 41 ) * - 18 ELSE + 26 END + NULLIF ( NULLIF ( 83, + ( + MIN( + 43 ) ) ), 7 ) * 63
----
5255

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL CASE + 65 WHEN COUNT ( * ) + + MAX ( DISTINCT + 73 ) * 91 THEN - MIN ( 41 ) * - 18 ELSE + 26 END + NULLIF ( NULLIF ( 83, + ( + MIN ( + 43 ) ) ), 7 ) * 63
----
5255

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT 30 + - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4177
SELECT 30 + - COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT 60 + - + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT 60 + - + COUNT ( * ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT DISTINCT 36 + + 22 + + + COUNT( ALL + ( + + 42 ) ) + - 0 + NULLIF ( CAST( NULL AS SIGNED ), ( - 39 ) + + 28 ) / + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT 36 + + 22 + + + COUNT ( ALL + ( + + 42 ) ) + - 0 + NULLIF ( CAST ( NULL AS INTEGER ), ( - 39 ) + + 28 ) / + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT 54 * + COUNT( * ) * - 7 * - ( - + 34 )
----
-12852

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT 54 * + COUNT ( * ) * - 7 * - ( - + 34 )
----
-12852

query I rowsort
SELECT ALL 89 * - NULLIF ( + - 14, - ( - 28 ) ) AS col2
----
1246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT CAST( - - 20 AS SIGNED ) + 46
----
66

skipif mysql # not compatible
query I rowsort label-4182
SELECT CAST ( - - 20 AS INTEGER ) + 46
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4183
SELECT ALL - 3 AS col1, + NULLIF ( - + 68, - 45 ) AS col1, - + CAST( NULL AS SIGNED ) * - MIN( + 55 ) / 41
----
-3
-68
NULL

skipif mysql # not compatible
query III rowsort label-4183
SELECT ALL - 3 AS col1, + NULLIF ( - + 68, - 45 ) AS col1, - + CAST ( NULL AS INTEGER ) * - MIN ( + 55 ) / 41
----
-3
-68
NULL

query I rowsort
SELECT + 22 * 29 + - 80 + 65 AS col0
----
623

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT 5 * - - COUNT( * ) + + 86 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT 5 * - - COUNT ( * ) + + 86 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4186
SELECT + 34 * 36 / 34 * - 66 + - COUNT( * ) + + ( + CAST( NULL AS DECIMAL ) ) * 47 + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT + 34 * 36 / 34 * - 66 + - COUNT ( * ) + + ( + CAST ( NULL AS REAL ) ) * 47 + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT - CASE + + 77 WHEN - - CASE + 10 WHEN ( 49 ) THEN NULL ELSE MIN( ALL - CASE - ( + ( 5 ) ) WHEN 97 THEN NULL WHEN ( CAST( + 98 AS SIGNED ) ) + + ( + 81 ) THEN 7 / - 6 WHEN + 54 * 62 THEN - 27 ELSE + 75 - 71 END ) - + 7 / 95 END / CASE + CASE ( 54 ) WHEN 68 - CAST( ( + 15 ) + - 43 / 50 AS SIGNED ) THEN + 69 * MAX( DISTINCT - 50 * + 35 ) WHEN 74 THEN NULL END + 72 / ( - 88 ) WHEN 25 * + COUNT( 76 * 97 ) THEN NULL ELSE SUM( CAST( 43 AS SIGNED ) ) END THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT - CASE + + 77 WHEN - - CASE + 10 WHEN ( 49 ) THEN NULL ELSE MIN ( ALL - CASE - ( + ( 5 ) ) WHEN 97 THEN NULL WHEN ( CAST ( + 98 AS INTEGER ) ) + + ( + 81 ) THEN 7 / - 6 WHEN + 54 * 62 THEN - 27 ELSE + 75 - 71 END ) - + 7 / 95 END / CASE + CASE ( 54 ) WHEN 68 - CAST ( ( + 15 ) + - 43 / 50 AS INTEGER ) THEN + 69 * MAX ( DISTINCT - 50 * + 35 ) WHEN 74 THEN NULL END + 72 / ( - 88 ) WHEN 25 * + COUNT ( 76 * 97 ) THEN NULL ELSE SUM ( CAST ( 43 AS INTEGER ) ) END THEN + 78 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT DISTINCT COALESCE ( 94, 33 ) * + COUNT( * ) + + ( - 80 ) * COUNT( * ) - - 9 DIV - 47
----
14

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT COALESCE ( 94, 33 ) * + COUNT ( * ) + + ( - 80 ) * COUNT ( * ) - - 9 / - 47
----
14

query I rowsort
SELECT - 42 + 4
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL - 61 * 7 - 80 - - COUNT( * ) AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - 61 * 7 - 80 - - COUNT ( * ) AS col0
----
-506

query I rowsort
SELECT DISTINCT - 63 * + 47 + 77 AS col0
----
-2884

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + + COUNT( - 68 ) * + - 37 + + 58
----
21

skipif mysql # not compatible
query I rowsort label-4192
SELECT + + COUNT ( - 68 ) * + - 37 + + 58
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT - CASE + + COALESCE ( - COUNT( * ), COUNT( * ) + + + 88, 10 ) WHEN 14 * - 84 THEN 72 ELSE NULL END * CAST( 90 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT - CASE + + COALESCE ( - COUNT ( * ), COUNT ( * ) + + + 88, 10 ) WHEN 14 * - 84 THEN 72 ELSE NULL END * CAST ( 90 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 51 * 95 AS col1
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL 34 * 2 - + 77 + 71 - + MAX( DISTINCT 66 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 34 * 2 - + 77 + 71 - + MAX ( DISTINCT 66 ) AS col2
----
-4

query I rowsort
SELECT CASE - 2 WHEN + 40 THEN - - 65 * - 19 WHEN - + 35 THEN 12 + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL + - 77 * + - 48 + - COUNT( * ) + + + 1 - + 89
----
3607

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + - 77 * + - 48 + - COUNT ( * ) + + + 1 - + 89
----
3607

query I rowsort
SELECT DISTINCT + - 21 * + 80 AS col0
----
-1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT - - 0 * + + 76 * - COUNT( ALL - 88 ) DIV + 13 - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4199
SELECT - - 0 * + + 76 * - COUNT ( ALL - 88 ) / + 13 - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT - + CASE + + COUNT( * ) WHEN - AVG ( 38 ) * - - 9 * COUNT( * ) * - 50 THEN + 86 / + SUM( DISTINCT - 75 ) END * - CAST( NULL AS SIGNED ) + + NULLIF ( + ( + 97 ) + + 30, + 1 ) / - ( 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT - + CASE + + COUNT ( * ) WHEN - AVG ( 38 ) * - - 9 * COUNT ( * ) * - 50 THEN + 86 / + SUM ( DISTINCT - 75 ) END * - CAST ( NULL AS INTEGER ) + + NULLIF ( + ( + 97 ) + + 30, + 1 ) / - ( 79 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT - 97 * - 30 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT - 97 * - 30 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 71 + + + 42 col1
----
-29

query I rowsort
SELECT - 74 * - - ( - - 58 )
----
-4292

onlyif mysql # DIV for integer division: 
query II rowsort label-4204
SELECT ALL ( - 95 ) AS col0, - 13 DIV + 55 + - 2 AS col0
----
-95
-2

skipif mysql # not compatible
query II rowsort label-4204
SELECT ALL ( - 95 ) AS col0, - 13 / + 55 + - 2 AS col0
----
-95
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT ALL + ( + 73 ) + - 47 - - + 30 + - COUNT( * ) DIV + 1
----
55

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + ( + 73 ) + - 47 - - + 30 + - COUNT ( * ) / + 1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT - 78 * - COUNT( + 50 ) DIV + 99 - + ( + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - 78 * - COUNT ( + 50 ) / + 99 - + ( + 68 ) AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), + 4 * - 25 + - 84 + + 93 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + 4 * - 25 + - 84 + + 93 ) AS col0
----
-91

query I rowsort
SELECT - 43 * + 92 AS col2
----
-3956

query I rowsort
SELECT ALL 55 * + 0 * + 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL - ( + NULLIF ( + - NULLIF ( - CASE + 68 WHEN - - 16 THEN 93 WHEN - 21 + 13 THEN NULL ELSE NULL END, - COALESCE ( 20, 13 / - 61 ) ), + 20 * CASE - 54 WHEN 40 * 21 THEN NULL WHEN + 70 THEN + 91 / - 78 END ) ) + COALESCE ( - SUM( 47 ), + SUM( 82 ) ) / CASE + COUNT( * ) WHEN CASE 70 WHEN 67 * + 46 THEN NULL WHEN ( 23 ) + + 5 * 19 THEN 86 * + 61 END * - 60 THEN NULL WHEN + 46 - + SUM( DISTINCT 65 ) * - 68 THEN NULL ELSE 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - ( + NULLIF ( + - NULLIF ( - CASE + 68 WHEN - - 16 THEN 93 WHEN - 21 + 13 THEN NULL ELSE NULL END, - COALESCE ( 20, 13 / - 61 ) ), + 20 * CASE - 54 WHEN 40 * 21 THEN NULL WHEN + 70 THEN + 91 / - 78 END ) ) + COALESCE ( - SUM ( 47 ), + SUM ( 82 ) ) / CASE + COUNT ( * ) WHEN CASE 70 WHEN 67 * + 46 THEN NULL WHEN ( 23 ) + + 5 * 19 THEN 86 * + 61 END * - 60 THEN NULL WHEN + 46 - + SUM ( DISTINCT 65 ) * - 68 THEN NULL ELSE 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT - MIN( + + 0 ) AS col2, 36
----
0
36

skipif mysql # not compatible
query II rowsort label-4211
SELECT - MIN ( + + 0 ) AS col2, 36
----
0
36

query I rowsort
SELECT ALL - 61 * - 53
----
3233

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT + 31 + + 68 + - - 5 * ( - 24 ) + + + 67 + - 4 DIV 18
----
46

skipif mysql # not compatible
query I rowsort label-4213
SELECT + 31 + + 68 + - - 5 * ( - 24 ) + + + 67 + - 4 / 18
----
46

query I rowsort
SELECT ALL 95 + + 59 col2
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT ALL 13 + - COUNT( * ) * + NULLIF ( - 83, 53 * + - COUNT( * ) + + - COUNT( * ) DIV COUNT( * ) ) DIV + 39
----
15

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL 13 + - COUNT ( * ) * + NULLIF ( - 83, 53 * + - COUNT ( * ) + + - COUNT ( * ) / COUNT ( * ) ) / + 39
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT DISTINCT + 16 + - + CAST( NULL AS SIGNED ) * + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT + 16 + - + CAST ( NULL AS INTEGER ) * + 59 AS col2
----
NULL

query I rowsort
SELECT ALL 48 + + 86 - + 37
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT + ( + COALESCE ( 43, + - SUM( COALESCE ( - 25, + ( 33 ), 53 ) ), 5 ) ) - + NULLIF ( 55 + ( + 59 ), - 59 + + 58 )
----
-71

skipif mysql # not compatible
query I rowsort label-4218
SELECT + ( + COALESCE ( 43, + - SUM ( COALESCE ( - 25, + ( 33 ), 53 ) ), 5 ) ) - + NULLIF ( 55 + ( + 59 ), - 59 + + 58 )
----
-71

query I rowsort
SELECT - CASE WHEN NULL IS NULL THEN 6 WHEN NOT 15 * 16 IN ( + - 51 ) THEN + 86 - - 24 END AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + COUNT( * ) + + 70 * + COUNT( * ) - + 85
----
-14

skipif mysql # not compatible
query I rowsort label-4220
SELECT + COUNT ( * ) + + 70 * + COUNT ( * ) - + 85
----
-14

query I rowsort
SELECT ALL 41 * + 87 AS col0
----
3567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT + COUNT( * ) * - + 42 DIV + 17 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4222
SELECT + COUNT ( * ) * - + 42 / + 17 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT ALL 60 DIV + - 26 + - 75 + COUNT( * ) * 48 DIV - 25
----
-78

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL 60 / + - 26 + - 75 + COUNT ( * ) * 48 / - 25
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL - 17 - - + COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - 17 - - + COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT - 47 + + - 7 + 66 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL COUNT( * ) * - 69 + - 73 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL COUNT ( * ) * - 69 + - 73 AS col1
----
-142

query II rowsort
SELECT + ( - 30 ) * 86 AS col2, COALESCE ( - - 13, + ( - + 86 ) ) AS col0
----
-2580
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT + - NULLIF ( + COUNT( * ), - + 84 * + 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), - + 84 * + 65 ) AS col0
----
-1

query I rowsort
SELECT + 33 * + ( + + 14 ) AS col1
----
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT CAST( NULL AS SIGNED ) * 18 / - - 20 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT CAST ( NULL AS INTEGER ) * 18 / - - 20 + - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + MIN( + 66 ) + + + 48 col0
----
114

skipif mysql # not compatible
query I rowsort label-4231
SELECT + MIN ( + 66 ) + + + 48 col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + COUNT( ALL + 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4232
SELECT + COUNT ( ALL + 71 ) AS col1
----
1

query I rowsort
SELECT - - 63 * - 5 AS col2
----
-315

query I rowsort
SELECT ALL + 70 * + 72 + + 38 + + 32 * + 83
----
7734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT + 91 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT + 91 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4236
SELECT ALL 97 / + - 83 * + + NULLIF ( - CAST( NULL AS SIGNED ), - 31 * - 4 ) AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4236
SELECT ALL 97 / + - 83 * + + NULLIF ( - CAST ( NULL AS INTEGER ), - 31 * - 4 ) AS col2, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL + 96 * + 36 + + 10 AS col0
----
3466

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4238
SELECT DISTINCT + 52 * MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) + COALESCE ( ( - - 54 ), + + 36 ) + - 65 + 5 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + 52 * MIN ( DISTINCT - CAST ( NULL AS REAL ) ) + COALESCE ( ( - - 54 ), + + 36 ) + - 65 + 5 * + 93
----
NULL

query I rowsort
SELECT - 20 + - 6 * - 30 * + 33 AS col0
----
5920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL - 19 * - COUNT( * ) + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - 19 * - COUNT ( * ) + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 32 + CASE 97 WHEN 41 THEN NULL WHEN - 19 + - 21 THEN + - 19 END + 48 + 52 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - 84 * + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4243
SELECT - 84 * + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT DISTINCT ( - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - ( + - MAX( ALL - 71 ) ) + - + ( - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4245
SELECT - ( + - MAX ( ALL - 71 ) ) + - + ( - COUNT ( * ) ) AS col2
----
-70

query I rowsort
SELECT - 54 + + 67
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT ALL - 30 * CASE - NULLIF ( + 65, 16 ) WHEN 29 + 66 * + - 39 THEN NULL ELSE - COALESCE ( + 7, COUNT( * ) ) END DIV + 16 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - 30 * CASE - NULLIF ( + 65, 16 ) WHEN 29 + 66 * + - 39 THEN NULL ELSE - COALESCE ( + 7, COUNT ( * ) ) END / + 16 AS col2
----
13

query II rowsort
SELECT - 30 col0, 41 col2
----
-30
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4249
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 67 AS col1
----
0

query I rowsort
SELECT ALL - 39 * - 29 AS col2
----
1131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4252
SELECT 58 * - 59 * - - COUNT( 61 ) * 86 + + 96 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT 58 * - 59 * - - COUNT ( 61 ) * 86 + + 96 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT + 27 + + - 56 + 58 + 57 + 84 * SUM( DISTINCT - 81 ) * - CAST( NULL AS SIGNED ) * + 90 + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 27 + + - 56 + 58 + 57 + 84 * SUM ( DISTINCT - 81 ) * - CAST ( NULL AS INTEGER ) * + 90 + - 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT 31 + + 16 + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4254
SELECT 31 + + 16 + COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL SUM( DISTINCT NULLIF ( - - CAST( NULL AS SIGNED ), 38 + + 91 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL SUM ( DISTINCT NULLIF ( - - CAST ( NULL AS INTEGER ), 38 + + 91 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT 77 + + + 39 + MIN( 89 ) DIV - 95 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4257
SELECT 77 + + + 39 + MIN ( 89 ) / - 95 AS col2
----
116

query I rowsort
SELECT DISTINCT + - 42 - ( + 42 ) + - 62 AS col1
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL - + COUNT( DISTINCT - 99 ) * + ( 44 ) - + + CASE + 98 WHEN 42 THEN + 29 * 16 WHEN 45 THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - + COUNT ( DISTINCT - 99 ) * + ( 44 ) - + + CASE + 98 WHEN 42 THEN + 29 * 16 WHEN 45 THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT ALL 21 DIV + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL 21 / + 32 AS col1
----
0

query I rowsort
SELECT - + 73 * - 86 - - 84 + - - 27 + + 51 col2
----
6440

query II rowsort
SELECT ALL - 90, 33 * + + 66 AS col0
----
-90
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT 17 * + CASE COUNT( * ) WHEN - 39 THEN + + COUNT( * ) * + 46 * 14 END + + MIN( ( 13 ) ) + - ( - 88 - - CASE 94 WHEN - COUNT( * ) THEN 67 * ( 18 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT 17 * + CASE COUNT ( * ) WHEN - 39 THEN + + COUNT ( * ) * + 46 * 14 END + + MIN ( ( 13 ) ) + - ( - 88 - - CASE 94 WHEN - COUNT ( * ) THEN 67 * ( 18 ) END )
----
NULL

query I rowsort
SELECT + 26 + - 53 + + - 70
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + 70 * + - 54 * NULLIF ( + SUM( ALL - 70 ), + 88 ) * 37
----
9790200

skipif mysql # not compatible
query I rowsort label-4265
SELECT + 70 * + - 54 * NULLIF ( + SUM ( ALL - 70 ), + 88 ) * 37
----
9790200

query I rowsort
SELECT ALL - 87 + + 74
----
-13

query II rowsort
SELECT + + 90 col1, 84 - - 63 * 62 - + - 87
----
90
4077

query I rowsort
SELECT 36 * + 34 * 19 * - 78 * 76
----
-137861568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL CAST( - 54 AS SIGNED ) + - 33 col2
----
-87

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL CAST ( - 54 AS INTEGER ) + - 33 col2
----
-87

query I rowsort
SELECT 24 * - 75 col0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT CASE + - ( - + 42 ) WHEN COUNT( * ) THEN - 3 * - 40 END * - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT CASE + - ( - + 42 ) WHEN COUNT ( * ) THEN - 3 * - 40 END * - 98 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 37 + + 14
----
51

query I rowsort
SELECT ALL + 98 * 40 AS col2
----
3920

query I rowsort
SELECT ALL 36 - - 23
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ( 76 ) + 33 - + + 59 DIV - + 63 col0
----
109

skipif mysql # not compatible
query I rowsort label-4275
SELECT ( 76 ) + 33 - + + 59 / - + 63 col0
----
109

query I rowsort
SELECT - 95 + + + 22
----
-73

query I rowsort
SELECT DISTINCT ( NULLIF ( - 1, - - 60 + + 93 - + - CASE 70 WHEN 88 + - 23 + + 52 THEN + 87 + 37 ELSE + 78 * + NULLIF ( 56, - 36 ) END / 52 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT 26 - + + 98 - - 54 * - COALESCE ( 72, - - MIN( + 48 ) - + + 99 ) AS col2
----
-3960

skipif mysql # not compatible
query I rowsort label-4278
SELECT 26 - + + 98 - - 54 * - COALESCE ( 72, - - MIN ( + 48 ) - + + 99 ) AS col2
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT + 84 * - - MAX( - 31 ) AS col1
----
-2604

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + 84 * - - MAX ( - 31 ) AS col1
----
-2604

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4280
SELECT + CAST( NULL AS SIGNED ) * - - 75 AS col2, + 51 * 76
----
NULL
3876

skipif mysql # not compatible
query II rowsort label-4280
SELECT + CAST ( NULL AS INTEGER ) * - - 75 AS col2, + 51 * 76
----
NULL
3876

query I rowsort
SELECT 5 + + 10
----
15

query I rowsort
SELECT + NULLIF ( - 55, 68 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4283
SELECT + 43 * - 1 - - - 30 + COUNT( * ) - - CASE + 33 WHEN + - AVG ( 90 ) * - 92 + 51 THEN NULL WHEN CAST( 61 AS DECIMAL ) * + CAST( - 99 + 27 / - 87 AS SIGNED ) THEN COALESCE ( 40, + COUNT( + NULLIF ( - 88, - 94 ) ) ) END + 12 / 9 * 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT + 43 * - 1 - - - 30 + COUNT ( * ) - - CASE + 33 WHEN + - AVG ( 90 ) * - 92 + 51 THEN NULL WHEN CAST ( 61 AS REAL ) * + CAST ( - 99 + 27 / - 87 AS INTEGER ) THEN COALESCE ( 40, + COUNT ( + NULLIF ( - 88, - 94 ) ) ) END + 12 / 9 * 78 AS col1
----
NULL

query I rowsort
SELECT ALL + - 72 * 58 + + + 50
----
-4126

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT - 88 + + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - 88 + + + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - + MAX( - 41 ) + + 41
----
82

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - + MAX ( - 41 ) + + 41
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4287
SELECT DISTINCT + 47 + + COUNT( * ) - - 40 col0, + 47 col1
----
88
47

skipif mysql # not compatible
query II rowsort label-4287
SELECT DISTINCT + 47 + + COUNT ( * ) - - 40 col0, + 47 col1
----
88
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT COUNT( ALL + + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( ALL + + 87 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4289
SELECT CASE - + 4 WHEN + 3 THEN NULL WHEN + 43 THEN COUNT( * ) END - MIN( DISTINCT + CAST( + 91 AS DECIMAL ) ), CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4289
SELECT CASE - + 4 WHEN + 3 THEN NULL WHEN + 43 THEN COUNT ( * ) END - MIN ( DISTINCT + CAST ( + 91 AS REAL ) ), CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT 38 * + + COALESCE ( + 23, + 68 ) + + CAST( - 47 AS SIGNED ) * - 27 + CAST( + 71 AS SIGNED ) AS col0
----
2214

skipif mysql # not compatible
query I rowsort label-4290
SELECT 38 * + + COALESCE ( + 23, + 68 ) + + CAST ( - 47 AS INTEGER ) * - 27 + CAST ( + 71 AS INTEGER ) AS col0
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT 43 + + - MIN( + 44 ) * + MIN( 73 ) AS col0
----
-3169

skipif mysql # not compatible
query I rowsort label-4291
SELECT 43 + + - MIN ( + 44 ) * + MIN ( 73 ) AS col0
----
-3169

query I rowsort
SELECT ALL 96 - + - 66
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT SUM( + 73 ) + - 34, 12 AS col1
----
39
12

skipif mysql # not compatible
query II rowsort label-4293
SELECT SUM ( + 73 ) + - 34, 12 AS col1
----
39
12

query I rowsort
SELECT DISTINCT + 57 * + 45
----
2565

query II rowsort
SELECT ALL - 39 AS col2, + 12 AS col0
----
-39
12

query I rowsort
SELECT ALL 36 * + 55
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + 7 + + + ( + SUM( DISTINCT + - 75 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 7 + + + ( + SUM ( DISTINCT + - 75 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - SUM( DISTINCT 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4298
SELECT - SUM ( DISTINCT 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4299
SELECT + ( 5 ) * - - COUNT( * ) AS col2, 12
----
5
12

skipif mysql # not compatible
query II rowsort label-4299
SELECT + ( 5 ) * - - COUNT ( * ) AS col2, 12
----
5
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4300
SELECT + 18 * 46 DIV + 26 col2, SUM( - ( - - 80 ) ) AS col0
----
31
-80

skipif mysql # not compatible
query II rowsort label-4300
SELECT + 18 * 46 / + 26 col2, SUM ( - ( - - 80 ) ) AS col0
----
31
-80

query I rowsort
SELECT + 77 + - 85 col1
----
-8

query II rowsort
SELECT 69, + 1 AS col2
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - 46 * - 3 * + ( + 86 ) * 12 - + 63 * + NULLIF ( - - NULLIF ( - 0, - + ( COUNT( 53 ) ) ), AVG ( ALL 3 ) + 80 ) - + 88
----
142328

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL - 46 * - 3 * + ( + 86 ) * 12 - + 63 * + NULLIF ( - - NULLIF ( - 0, - + ( COUNT ( 53 ) ) ), AVG ( ALL 3 ) + 80 ) - + 88
----
142328

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT DISTINCT - 35 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - 35 / - - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL + 2 * COUNT( DISTINCT + - 24 )
----
2

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + 2 * COUNT ( DISTINCT + - 24 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + - CASE + 35 WHEN COALESCE ( 79, + 88 + 49 ) + - + ( + 71 ) THEN + - 79 + 87 + 60 / COUNT( * ) WHEN + 9 THEN NULL WHEN + 62 * ( 97 ) THEN 31 * 77 ELSE NULL END / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + - CASE + 35 WHEN COALESCE ( 79, + 88 + 49 ) + - + ( + 71 ) THEN + - 79 + 87 + 60 / COUNT ( * ) WHEN + 9 THEN NULL WHEN + 62 * ( 97 ) THEN 31 * 77 ELSE NULL END / 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - - ( 68 ) + - 60 * 54 * + SUM( ALL + - 60 )
----
194468

skipif mysql # not compatible
query I rowsort label-4307
SELECT - - ( 68 ) + - 60 * 54 * + SUM ( ALL + - 60 )
----
194468

query I rowsort
SELECT ALL - - 0 + 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT + - 39 + 96 + + 59 - + - COALESCE ( 0, - 76 + COUNT( * ) * - COUNT( * ) + - 58, + 29 - - 32 ) * + 39
----
116

skipif mysql # not compatible
query I rowsort label-4309
SELECT + - 39 + 96 + + 59 - + - COALESCE ( 0, - 76 + COUNT ( * ) * - COUNT ( * ) + - 58, + 29 - - 32 ) * + 39
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT ALL + 85 * 91 + 72 + - 62 + - - 46 DIV + + COUNT( * )
----
7791

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + 85 * 91 + 72 + - 62 + - - 46 / + + COUNT ( * )
----
7791

query I rowsort
SELECT DISTINCT + - ( - 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT 98 * - 65 + 19 * 99 * - 34 + - + MAX( - + 11 )
----
-70313

skipif mysql # not compatible
query I rowsort label-4312
SELECT 98 * - 65 + 19 * 99 * - 34 + - + MAX ( - + 11 )
----
-70313

query I rowsort
SELECT ALL + 42 * - - 16 col2
----
672

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT DISTINCT + COUNT( * ) col1, + 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-4314
SELECT DISTINCT + COUNT ( * ) col1, + 81 AS col0
----
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL ( - 55 ) * + ( - + COALESCE ( + 27, 91 ) ) * 88 + - 15 + + CASE - NULLIF ( + + 46, COUNT( * ) * CAST( - 46 AS SIGNED ) + + ( 72 ) ) WHEN - ( 95 ) THEN 25 * ( + COUNT( * ) ) + 16 END + + 24 * + COUNT( * ) + 5 - - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL ( - 55 ) * + ( - + COALESCE ( + 27, 91 ) ) * 88 + - 15 + + CASE - NULLIF ( + + 46, COUNT ( * ) * CAST ( - 46 AS INTEGER ) + + ( 72 ) ) WHEN - ( 95 ) THEN 25 * ( + COUNT ( * ) ) + 16 END + + 24 * + COUNT ( * ) + 5 - - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + 16 * - MAX( 40 )
----
-640

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + 16 * - MAX ( 40 )
----
-640

query I rowsort
SELECT - 61 * - 22 * - 87 AS col0
----
-116754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL - ( + 82 ) * + NULLIF ( - 77, + - 8 - + - CAST( + 54 AS SIGNED ) / - 58 )
----
6314

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - ( + 82 ) * + NULLIF ( - 77, + - 8 - + - CAST ( + 54 AS INTEGER ) / - 58 )
----
6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL + NULLIF ( + + 16, - - 39 * + + COALESCE ( + 94, + - 72, + - 83, 94 ) * + ( + 88 ) + + + 32 * CAST( NULL AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL + NULLIF ( + + 16, - - 39 * + + COALESCE ( + 94, + - 72, + - 83, 94 ) * + ( + 88 ) + + + 32 * CAST ( NULL AS INTEGER ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL CASE 86 WHEN - 75 THEN NULL WHEN + + 48 THEN + + 34 ELSE - 28 END * - - 19 * - 32 - - - 55 - COUNT( * ) col0
----
16968

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL CASE 86 WHEN - 75 THEN NULL WHEN + + 48 THEN + + 34 ELSE - 28 END * - - 19 * - 32 - - - 55 - COUNT ( * ) col0
----
16968

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT ALL 25 DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL 25 / + + 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT DISTINCT + 45 AS col2, - ( SUM( + 43 ) ) col2
----
45
-43

skipif mysql # not compatible
query II rowsort label-4322
SELECT DISTINCT + 45 AS col2, - ( SUM ( + 43 ) ) col2
----
45
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT - 48 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT - 48 / - 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT DISTINCT + 19 AS col0, + 64 + - - COUNT( * ) AS col2
----
19
65

skipif mysql # not compatible
query II rowsort label-4324
SELECT DISTINCT + 19 AS col0, + 64 + - - COUNT ( * ) AS col2
----
19
65

query I rowsort
SELECT COALESCE ( - 11, - + 53 + - 79 + - 98 * - + ( - 54 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT MAX( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4326
SELECT MAX ( - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT SUM( + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4327
SELECT SUM ( + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - COUNT( DISTINCT + 13 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4328
SELECT - COUNT ( DISTINCT + 13 ) AS col2
----
-1

query I rowsort
SELECT ( + 5 ) * + 69 - - 79 - 63 AS col0
----
361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL + 17 + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + 17 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 65 AS col0, 86 * + 22 + + 53
----
65
1945

query I rowsort
SELECT - ( - + 59 ) AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL CAST( NULL AS SIGNED ) + + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL CAST ( NULL AS INTEGER ) + + + 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT - COUNT( * ) DIV MIN( ALL + - 96 ) + + + 82
----
82

skipif mysql # not compatible
query I rowsort label-4334
SELECT - COUNT ( * ) / MIN ( ALL + - 96 ) + + + 82
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4335
SELECT + + 29 + - - 32 AS col2, - 95 DIV - CAST( - 17 AS SIGNED )
----
61
-5

skipif mysql # not compatible
query II rowsort label-4335
SELECT + + 29 + - - 32 AS col2, - 95 / - CAST ( - 17 AS INTEGER )
----
61
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT + COUNT( * ) + - - 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + COUNT ( * ) + - - 41 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + - ( + 61 ) + - COUNT( * ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-4337
SELECT + - ( + 61 ) + - COUNT ( * ) col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL 67 + - 90 DIV 12 DIV - 72
----
67

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 67 + - 90 / 12 / - 72
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT - - ( + - ( - - ( + 43 ) ) ) AS col1, + 58 * + COUNT( * )
----
-43
58

skipif mysql # not compatible
query II rowsort label-4339
SELECT - - ( + - ( - - ( + 43 ) ) ) AS col1, + 58 * + COUNT ( * )
----
-43
58

query I rowsort
SELECT + - 94 * + 40 + - - 66 AS col0
----
-3694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL COUNT( * ) + 64 + - CAST( NULL AS SIGNED ) * 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL COUNT ( * ) + 64 + - CAST ( NULL AS INTEGER ) * 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT COUNT( * ) col0, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4342
SELECT COUNT ( * ) col0, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT ALL - 8 - - 19 * 55 AS col2
----
1037

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT ALL + 50 * - 40, 9 * CAST( NULL AS SIGNED ) * + 47 col0
----
-2000
NULL

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL + 50 * - 40, 9 * CAST ( NULL AS INTEGER ) * + 47 col0
----
-2000
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4345
SELECT - 32, 53 + - ( + 97 ) + - 74 DIV 65 DIV ( - - NULLIF ( - 22, - 59 + COUNT( * ) ) ) + 1 col0
----
-32
-43

skipif mysql # not compatible
query II rowsort label-4345
SELECT - 32, 53 + - ( + 97 ) + - 74 / 65 / ( - - NULLIF ( - 22, - 59 + COUNT ( * ) ) ) + 1 col0
----
-32
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT + CASE - 35 WHEN COUNT( * ) THEN NULL WHEN - CAST( + NULLIF ( 71, 58 ) AS SIGNED ) THEN - + 59 END * - - 24 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT + CASE - 35 WHEN COUNT ( * ) THEN NULL WHEN - CAST ( + NULLIF ( 71, 58 ) AS INTEGER ) THEN - + 59 END * - - 24 * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - 52 + + 34 * + + 10
----
287

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - 52 + + 34 * + + 10
----
287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT ALL + COUNT( * ) DIV + 87 - + 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + COUNT ( * ) / + 87 - + 86 AS col2
----
-86

query I rowsort
SELECT + ( - 26 ) * + 49
----
-1274

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4350
SELECT DISTINCT - MIN( + 48 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - MIN ( + 48 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 8, 45 * + - 11 ) AS col2
----
-8

query I rowsort
SELECT 94 - ( + 76 ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT + 37 DIV + + 49 + COUNT( + 13 ) - 46 + + - 88
----
-133

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 37 / + + 49 + COUNT ( + 13 ) - 46 + + - 88
----
-133

query II rowsort
SELECT - 50 * - + 10 - + + 78, 61 AS col2
----
422
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4355
SELECT 77 + + CAST( NULL AS DECIMAL ) * NULLIF ( - 19, + - COUNT( * ) * 96 * + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT 77 + + CAST ( NULL AS REAL ) * NULLIF ( - 19, + - COUNT ( * ) * 96 * + 65 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT - CASE + 68 WHEN - 70 * + - MAX( 31 ) THEN + + 28 WHEN - 21 THEN NULL WHEN 19 THEN + + 40 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - CASE + 68 WHEN - 70 * + - MAX ( 31 ) THEN + + 28 WHEN - 21 THEN NULL WHEN 19 THEN + + 40 END col2
----
NULL

query I rowsort
SELECT ALL 54 + + + 59 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT 12 + - CASE + + 39 WHEN 14 * 81 * - 21 * + 88 + AVG ( ALL - 23 ) * 93 - - MIN( - ( + ( - 98 ) ) ) THEN + 61 END + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT 12 + - CASE + + 39 WHEN 14 * 81 * - 21 * + 88 + AVG ( ALL - 23 ) * 93 - - MIN ( - ( + ( - 98 ) ) ) THEN + 61 END + - 86
----
NULL

query I rowsort
SELECT ALL - 49 + - 94 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - NULLIF ( + 64, + COUNT( * ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - NULLIF ( + 64, + COUNT ( * ) ) AS col1
----
-64

query I rowsort
SELECT 12 + + 37
----
49

query I rowsort
SELECT ALL 71 + + 48
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4363
SELECT ALL - + 58 + 74 * - - 89 col2, CAST( NULL AS SIGNED ) * - + SUM( ALL 5 ) * 93 + + 43 col1
----
6528
NULL

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL - + 58 + 74 * - - 89 col2, CAST ( NULL AS INTEGER ) * - + SUM ( ALL 5 ) * 93 + + 43 col1
----
6528
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4364
SELECT 11 * + - 20 AS col0, COUNT( * ) AS col0
----
-220
1

skipif mysql # not compatible
query II rowsort label-4364
SELECT 11 * + - 20 AS col0, COUNT ( * ) AS col0
----
-220
1

query II rowsort
SELECT 0 + - - 98 AS col1, - 76
----
98
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT ( 40 ), 33 + COUNT( * ) col2
----
40
34

skipif mysql # not compatible
query II rowsort label-4366
SELECT ( 40 ), 33 + COUNT ( * ) col2
----
40
34

query I rowsort
SELECT DISTINCT + 92 + - COALESCE ( ( 81 ), - 7, + 97 + - - 7 * - + 55 * + 50 )
----
11

query I rowsort
SELECT - NULLIF ( - - 96, + + 38 )
----
-96

query I rowsort
SELECT ALL - - 53 * + NULLIF ( 41, 28 * - 48 ) AS col1
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT COUNT( * ) + + - ( + ( + 13 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4370
SELECT COUNT ( * ) + + - ( + ( + 13 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4371
SELECT DISTINCT + 76 - - MIN( 77 ) + COUNT( + 31 ) - + ( - 74 ) * + 47 * + CAST( NULL AS DECIMAL ) * + + 66 * + NULLIF ( 38, - 21 / 91 ) / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + 76 - - MIN ( 77 ) + COUNT ( + 31 ) - + ( - 74 ) * + 47 * + CAST ( NULL AS REAL ) * + + 66 * + NULLIF ( 38, - 21 / 91 ) / 53
----
NULL

query II rowsort
SELECT 56 AS col0, 26 * + - 64
----
56
-1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4373
SELECT 62 DIV + CAST( - SUM( 47 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4373
SELECT 62 / + CAST ( - SUM ( 47 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4374
SELECT MIN( - + 10 ) + + COALESCE ( + 75, - 28 ) DIV + 73
----
-9

skipif mysql # not compatible
query I rowsort label-4374
SELECT MIN ( - + 10 ) + + COALESCE ( + 75, - 28 ) / + 73
----
-9

query I rowsort
SELECT DISTINCT 67 * - + 41 AS col0
----
-2747

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4376
SELECT DISTINCT 79 DIV + CAST( - 31 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT 79 / + CAST ( - 31 AS INTEGER )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT 52 DIV 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4377
SELECT 52 / 47 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT + 71 DIV - 88 + + 25 - - ( 91 ) * + 39 * ( COUNT( * ) ) * ( MAX( DISTINCT 68 ) ) AS col0
----
241357

skipif mysql # not compatible
query I rowsort label-4378
SELECT + 71 / - 88 + + 25 - - ( 91 ) * + 39 * ( COUNT ( * ) ) * ( MAX ( DISTINCT 68 ) ) AS col0
----
241357

query I rowsort
SELECT 97 * + 41
----
3977

query I rowsort
SELECT 3 + - 27
----
-24

query II rowsort
SELECT CASE + 8 WHEN - 22 - 21 THEN + - 90 WHEN - - AVG ( + 90 ) THEN NULL END / - 28 / - 36 col1, + 91
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4382
SELECT - ( - COUNT( * ) ) * + 9 + - 0 * + COUNT( * ) + NULLIF ( - 56, MIN( - 99 ) + 43 * + CASE CAST( NULL AS DECIMAL ) WHEN + 48 + 67 / 87 THEN + MAX( ALL 31 ) END ) + 94
----
47

skipif mysql # not compatible
query I rowsort label-4382
SELECT - ( - COUNT ( * ) ) * + 9 + - 0 * + COUNT ( * ) + NULLIF ( - 56, MIN ( - 99 ) + 43 * + CASE CAST ( NULL AS REAL ) WHEN + 48 + 67 / 87 THEN + MAX ( ALL 31 ) END ) + 94
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT 80, COALESCE ( + SUM( 74 ), - 50 ) * + 6 * + 31 AS col2
----
80
13764

skipif mysql # not compatible
query II rowsort label-4383
SELECT 80, COALESCE ( + SUM ( 74 ), - 50 ) * + 6 * + 31 AS col2
----
80
13764

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4384
SELECT 85, + 45 * + CAST( NULL AS SIGNED ) AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-4384
SELECT 85, + 45 * + CAST ( NULL AS INTEGER ) AS col0
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL 71 * MIN( - 79 ) * 60
----
-336540

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL 71 * MIN ( - 79 ) * 60
----
-336540

query II rowsort
SELECT + 86, + 5 AS col0
----
86
5

query I rowsort
SELECT ALL NULLIF ( 33, 78 - - + 0 ) + - + 59 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + 69 - - MIN( ALL + - 49 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 69 - - MIN ( ALL + - 49 ) AS col2
----
20

query I rowsort
SELECT - ( - - 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT COALESCE ( + 65, + 28 * COUNT( * ) * - 17 ) * + 11 AS col2
----
715

skipif mysql # not compatible
query I rowsort label-4390
SELECT COALESCE ( + 65, + 28 * COUNT ( * ) * - 17 ) * + 11 AS col2
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + ( + - 57 ) * + COUNT( ALL - ( + 49 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-4391
SELECT + ( + - 57 ) * + COUNT ( ALL - ( + 49 ) )
----
-57

query I rowsort
SELECT ALL - - 5 * - 19 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + - COUNT( * ) - + + 76 col1
----
-77

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + - COUNT ( * ) - + + 76 col1
----
-77

query I rowsort
SELECT - 19 - - + 38
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-4395
SELECT ALL 88 * - + ( - 16 ), 7 DIV - 24 * + 81 AS col0
----
1408
0

skipif mysql # not compatible
query II rowsort label-4395
SELECT ALL 88 * - + ( - 16 ), 7 / - 24 * + 81 AS col0
----
1408
0

query I rowsort
SELECT + 85 + - 4 AS col0
----
81

query I rowsort
SELECT 71 * - + 73 AS col1
----
-5183

query I rowsort
SELECT - 77 + + - 99
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT ALL + - 38 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + - 38 / - + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT 94 * - - 10 * SUM( ALL - 18 ) * - - 97
----
-1641240

skipif mysql # not compatible
query I rowsort label-4400
SELECT 94 * - - 10 * SUM ( ALL - 18 ) * - - 97
----
-1641240

query I rowsort
SELECT ALL - ( - + 56 ) * + COALESCE ( + 2, - + 28 ) AS col2
----
112

query I rowsort
SELECT 43 + + + 87 - + 60 * - 35
----
2230

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4403
SELECT ALL 78 AS col1, 0 * - CAST( 0 AS SIGNED ) DIV 77
----
78
0

skipif mysql # not compatible
query II rowsort label-4403
SELECT ALL 78 AS col1, 0 * - CAST ( 0 AS INTEGER ) / 77
----
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( * ) + + 1 + + + 99 + - - CASE - + 42 WHEN + 87 THEN 22 + + AVG ( + 53 ) + - 45 * + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( * ) + + 1 + + + 99 + - - CASE - + 42 WHEN + 87 THEN 22 + + AVG ( + 53 ) + - 45 * + 35 END
----
NULL

query I rowsort
SELECT ALL 26 * - - 26
----
676

query I rowsort
SELECT ALL - 12 * + + ( 45 ) AS col1
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT - ( 2 ) + - 92 + ( 90 ) DIV 45 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4407
SELECT - ( 2 ) + - 92 + ( 90 ) / 45 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - MIN( DISTINCT 63 ) * - + 70
----
4410

skipif mysql # not compatible
query I rowsort label-4408
SELECT - MIN ( DISTINCT 63 ) * - + 70
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT NULLIF ( MIN( + 27 ), 64 * 55 + 56 + - + 35 )
----
27

skipif mysql # not compatible
query I rowsort label-4409
SELECT NULLIF ( MIN ( + 27 ), 64 * 55 + 56 + - + 35 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL + 97 * - - 11 + + COUNT( * ) - - + 72 - + CASE - 13 WHEN SUM( ALL - - 62 ) + - - 30 + + CAST( NULL AS SIGNED ) / 79 / - COUNT( * ) / + 2 THEN NULL WHEN - COUNT( - 50 ) THEN 7 * 6 ELSE NULL END / 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + 97 * - - 11 + + COUNT ( * ) - - + 72 - + CASE - 13 WHEN SUM ( ALL - - 62 ) + - - 30 + + CAST ( NULL AS INTEGER ) / 79 / - COUNT ( * ) / + 2 THEN NULL WHEN - COUNT ( - 50 ) THEN 7 * 6 ELSE NULL END / 99
----
NULL

query I rowsort
SELECT ALL ( + NULLIF ( + 63, 71 ) ) * + + 1 col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT + 18 DIV + - 18 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4412
SELECT + 18 / + - 18 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL 66 * - 55 + + - COUNT( ALL + 64 )
----
-3631

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 66 * - 55 + + - COUNT ( ALL + 64 )
----
-3631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT - ( + COALESCE ( + 71, - - 72 * + - COALESCE ( 37, + - 93 ) - - 21, + - 0 ) ) + ( MAX( DISTINCT - - 62 ) ) + - + CASE + + 91 WHEN 8 * - 18 - 52 THEN 83 * - 28 WHEN - 88 / - AVG ( - 55 ) + + 78 THEN + 64 + - CASE NULLIF ( 32, CASE + ( 35 ) WHEN - 90 + + CASE 78 WHEN 90 THEN 99 END THEN CAST( NULL AS SIGNED ) ELSE 41 END ) - ( 51 ) WHEN 46 THEN - 80 + 97 ELSE + COUNT( * ) / 0 + 46 * - CAST( 53 AS SIGNED ) END * + 64 ELSE NULL END + 34 * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT - ( + COALESCE ( + 71, - - 72 * + - COALESCE ( 37, + - 93 ) - - 21, + - 0 ) ) + ( MAX ( DISTINCT - - 62 ) ) + - + CASE + + 91 WHEN 8 * - 18 - 52 THEN 83 * - 28 WHEN - 88 / - AVG ( - 55 ) + + 78 THEN + 64 + - CASE NULLIF ( 32, CASE + ( 35 ) WHEN - 90 + + CASE 78 WHEN 90 THEN 99 END THEN CAST ( NULL AS INTEGER ) ELSE 41 END ) - ( 51 ) WHEN 46 THEN - 80 + 97 ELSE + COUNT ( * ) / 0 + 46 * - CAST ( 53 AS INTEGER ) END * + 64 ELSE NULL END + 34 * 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT 50 * + + 9 + + SUM( 24 ) + - - 91 * + 46
----
4660

skipif mysql # not compatible
query I rowsort label-4415
SELECT 50 * + + 9 + + SUM ( 24 ) + - - 91 * + 46
----
4660

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT + 12 - + + 15 AS col2, + COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-4416
SELECT + 12 - + + 15 AS col2, + COUNT ( * )
----
-3
1

query I rowsort
SELECT ALL 18 * - + 24
----
-432

query I rowsort
SELECT + 76 * 98
----
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT - - 18 * + 19 * - 16 + - 66 + + + 50 - + + NULLIF ( COUNT( * ), - + 10 )
----
-5489

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - - 18 * + 19 * - 16 + - 66 + + + 50 - + + NULLIF ( COUNT ( * ), - + 10 )
----
-5489

query I rowsort
SELECT ALL 59 * + - 23 * - + 67 AS col0
----
90919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4421
SELECT DISTINCT CAST( 35 AS SIGNED ) * - NULLIF ( - + COUNT( * ), + 68 * 1 * + ( + 92 ) * 8 + - - ( + - CAST( NULL AS SIGNED ) ) + 58 / - 58 / - MIN( 18 ) - + 51 * 65 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT CAST ( 35 AS INTEGER ) * - NULLIF ( - + COUNT ( * ), + 68 * 1 * + ( + 92 ) * 8 + - - ( + - CAST ( NULL AS INTEGER ) ) + 58 / - 58 / - MIN ( 18 ) - + 51 * 65 ) AS col1
----
35

query I rowsort
SELECT - - 90 * - + ( - + 47 ) + - 36 AS col1
----
4194

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT + ( 63 ), - 33 + 67 * COUNT( * ) AS col2
----
63
34

skipif mysql # not compatible
query II rowsort label-4423
SELECT + ( 63 ), - 33 + 67 * COUNT ( * ) AS col2
----
63
34

query II rowsort
SELECT DISTINCT + ( - 7 ) AS col1, 98
----
-7
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT - + CASE + + 15 WHEN - 85 + 75 + + + 85 THEN - 2 END + + CAST( - - 32 AS SIGNED ) * - + MAX( - + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT - + CASE + + 15 WHEN - 85 + 75 + + + 85 THEN - 2 END + + CAST ( - - 32 AS INTEGER ) * - + MAX ( - + 60 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT + CASE - + 75 WHEN + 43 THEN - - 72 - - - ( - COALESCE ( - 46, CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - MAX( DISTINCT - 74 ) + - MIN( - + 71 ) WHEN 20 THEN - AVG ( DISTINCT + 61 ) / + 59 END, 8 * + COUNT( * ) ) ) ELSE NULL END * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT + CASE - + 75 WHEN + 43 THEN - - 72 - - - ( - COALESCE ( - 46, CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - MAX ( DISTINCT - 74 ) + - MIN ( - + 71 ) WHEN 20 THEN - AVG ( DISTINCT + 61 ) / + 59 END, 8 * + COUNT ( * ) ) ) ELSE NULL END * 63
----
NULL

query I rowsort
SELECT - 66 + - 90 AS col1
----
-156

query I rowsort
SELECT + + 90 * + ( - 62 ) + + + 84 + + 48 + + 10 - 32 * + 33 AS col2
----
-6494

query I rowsort
SELECT ALL 89 * + ( - 48 ) AS col1
----
-4272

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - - 79 + + SUM( DISTINCT - - 68 ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-4430
SELECT - - 79 + + SUM ( DISTINCT - - 68 ) AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT COUNT( * ) * - 38 * + 43
----
-1634

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT COUNT ( * ) * - 38 * + 43
----
-1634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT - ( - 32 ) DIV + 14 * + COUNT( * ) + COUNT( * ) * - MIN( - 44 )
----
46

skipif mysql # not compatible
query I rowsort label-4432
SELECT - ( - 32 ) / + 14 * + COUNT ( * ) + COUNT ( * ) * - MIN ( - 44 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL + 80 + - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL + 80 + - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + ( MAX( ALL - 30 ) ) - + 74 + COALESCE ( + - 28, - 61 ) + + 56 * - 18
----
-1140

skipif mysql # not compatible
query I rowsort label-4434
SELECT + ( MAX ( ALL - 30 ) ) - + 74 + COALESCE ( + - 28, - 61 ) + + 56 * - 18
----
-1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4435
SELECT - ( COUNT( * ) ) DIV 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT - ( COUNT ( * ) ) / 72 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4436
SELECT DISTINCT - 35 + 55 + + 38 + + 81 + - + 30 * 60 / + 46 * - - CAST( NULL AS SIGNED ) - - CAST( 92 AS SIGNED ) col0, - 46 * + + CAST( 75 AS SIGNED ) AS col1, - 0 + + 76
----
NULL
-3450
76

skipif mysql # not compatible
query III rowsort label-4436
SELECT DISTINCT - 35 + 55 + + 38 + + 81 + - + 30 * 60 / + 46 * - - CAST ( NULL AS INTEGER ) - - CAST ( 92 AS INTEGER ) col0, - 46 * + + CAST ( 75 AS INTEGER ) AS col1, - 0 + + 76
----
NULL
-3450
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL + MIN( 51 ) + - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + MIN ( 51 ) + - COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - CASE - COUNT( * ) WHEN 90 * + COUNT( * ) * - 79 * - 14 - + + 92 + + - 11 THEN NULL WHEN 92 + + ( + 15 ) * 16 THEN + 44 ELSE + + 48 END + + 52
----
4

skipif mysql # not compatible
query I rowsort label-4438
SELECT - CASE - COUNT ( * ) WHEN 90 * + COUNT ( * ) * - 79 * - 14 - + + 92 + + - 11 THEN NULL WHEN 92 + + ( + 15 ) * 16 THEN + 44 ELSE + + 48 END + + 52
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4439
SELECT ALL NULLIF ( + 45, - 28 ) AS col2, COUNT( DISTINCT - 92 ) - + 12
----
45
-11

skipif mysql # not compatible
query II rowsort label-4439
SELECT ALL NULLIF ( + 45, - 28 ) AS col2, COUNT ( DISTINCT - 92 ) - + 12
----
45
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - 66 + - MAX( ALL + ( - - 14 ) ) * 49 AS col0
----
-752

skipif mysql # not compatible
query I rowsort label-4440
SELECT - 66 + - MAX ( ALL + ( - - 14 ) ) * 49 AS col0
----
-752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4441
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) * - - 70 + MIN( + 52 ) AS col0, COUNT( * )
----
122
1

skipif mysql # not compatible
query II rowsort label-4441
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * - - 70 + MIN ( + 52 ) AS col0, COUNT ( * )
----
122
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT ALL 93 DIV - 58 + 5 + - 94 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL 93 / - 58 + 5 + - 94 AS col2
----
-90

query II rowsort
SELECT + 20 AS col0, + 30 AS col0
----
20
30

query I rowsort
SELECT - ( + 22 ) * + 4 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4445
SELECT - 24 DIV - COUNT( * ) + + COALESCE ( - COALESCE ( - - 36, - + 5 * - 22 * + 40 * 41 DIV - SUM( 45 ) + + ( 71 ) + + - COUNT( * ) DIV - ( 86 ) * - COALESCE ( 99 + 76 * 47, - 63 - - 66 * CAST( + 71 - 48 AS SIGNED ), 63, - COUNT( * ) ) * - 93 + 22 * - 67 ), 63 + 39 ) * - 45 AS col0
----
1644

skipif mysql # not compatible
query I rowsort label-4445
SELECT - 24 / - COUNT ( * ) + + COALESCE ( - COALESCE ( - - 36, - + 5 * - 22 * + 40 * 41 / - SUM ( 45 ) + + ( 71 ) + + - COUNT ( * ) / - ( 86 ) * - COALESCE ( 99 + 76 * 47, - 63 - - 66 * CAST ( + 71 - 48 AS INTEGER ), 63, - COUNT ( * ) ) * - 93 + 22 * - 67 ), 63 + 39 ) * - 45 AS col0
----
1644

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT ALL + 45 * - 40 * - + COUNT( * ) AS col2, ( + 77 ) col1
----
1800
77

skipif mysql # not compatible
query II rowsort label-4446
SELECT ALL + 45 * - 40 * - + COUNT ( * ) AS col2, ( + 77 ) col1
----
1800
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL + 60 DIV - 89 - + 74 + + 27 - - 59 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + 60 / - 89 - + 74 + + 27 - - 59 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT - + COUNT( * ) * 57 + - - CAST( - 19 AS SIGNED ) + + 74 col0
----
-2

skipif mysql # not compatible
query I rowsort label-4448
SELECT - + COUNT ( * ) * 57 + - - CAST ( - 19 AS INTEGER ) + + 74 col0
----
-2

query I rowsort
SELECT ALL + ( + - 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL + MAX( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL + MAX ( - 82 )
----
-82

query I rowsort
SELECT DISTINCT 49 * 57 AS col2
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - + COUNT( * ) * - - SUM( - 72 ) * + + 71 * 51 - - 13 AS col2
----
260725

skipif mysql # not compatible
query I rowsort label-4452
SELECT - + COUNT ( * ) * - - SUM ( - 72 ) * + + 71 * 51 - - 13 AS col2
----
260725

query I rowsort
SELECT - 67 - + 68 * 70
----
-4827

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT ALL 6 * - - 54 + + - 80 DIV - 72
----
325

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL 6 * - - 54 + + - 80 / - 72
----
325

query I rowsort
SELECT + + 94 + + ( - - 0 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - ( + ( + - NULLIF ( + 37, + 97 * 1 + - CAST( NULL AS SIGNED ) ) ) ) * - CASE - COALESCE ( + AVG ( - 65 ), 84 * + 65, 55 * - + MIN( ALL + 39 ) * + COUNT( * ) ) WHEN + 96 THEN SUM( COALESCE ( 21, + 13 ) ) WHEN - 41 THEN 9 + 66 * 6 ELSE NULL END * 69 + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - ( + ( + - NULLIF ( + 37, + 97 * 1 + - CAST ( NULL AS INTEGER ) ) ) ) * - CASE - COALESCE ( + AVG ( - 65 ), 84 * + 65, 55 * - + MIN ( ALL + 39 ) * + COUNT ( * ) ) WHEN + 96 THEN SUM ( COALESCE ( 21, + 13 ) ) WHEN - 41 THEN 9 + 66 * 6 ELSE NULL END * 69 + 65 AS col0
----
NULL

query I rowsort
SELECT + ( + 53 ) - - 9 * - 2 AS col1
----
35

query I rowsort
SELECT DISTINCT 95 + + + 58 AS col1
----
153

query I rowsort
SELECT DISTINCT + - 8 + - - 87 + + + 87
----
166

query I rowsort
SELECT ALL + 95 + + 1 * + + 71 * - 40 AS col2
----
-2745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT CASE - ( - 78 ) WHEN + + 9 * + - 88 + 28 THEN + 6 WHEN COUNT( * ) THEN NULL ELSE NULL END * - 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT CASE - ( - 78 ) WHEN + + 9 * + - 88 + 28 THEN + 6 WHEN COUNT ( * ) THEN NULL ELSE NULL END * - 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4462
SELECT 62 + CAST( NULL AS SIGNED ) / - 30 + - 61, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4462
SELECT 62 + CAST ( NULL AS INTEGER ) / - 30 + - 61, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT - 39 AS col0, COUNT( * )
----
-39
1

skipif mysql # not compatible
query II rowsort label-4463
SELECT - 39 AS col0, COUNT ( * )
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT 3 + + + MIN( - 92 ) + - - CAST( NULL AS SIGNED ) * + 5 - ( - - 62 ) * + + 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT 3 + + + MIN ( - 92 ) + - - CAST ( NULL AS INTEGER ) * + 5 - ( - - 62 ) * + + 15 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4465
SELECT 6 - + + 69 * - ( 24 ), + 38 * CAST( NULL AS SIGNED ) AS col1
----
1662
NULL

skipif mysql # not compatible
query II rowsort label-4465
SELECT 6 - + + 69 * - ( 24 ), + 38 * CAST ( NULL AS INTEGER ) AS col1
----
1662
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT 13 DIV + SUM( ALL + - 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT 13 / + SUM ( ALL + - 47 ) AS col0
----
0

query II rowsort
SELECT - 50 AS col1, + 98 - - - 67
----
-50
31

query I rowsort
SELECT DISTINCT 14 + - NULLIF ( 51, + 4 * - + 25 / - 96 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 96 + - 28 + - 89 * - - COALESCE ( 56, + 83 * - 73 + - CASE + - 3 WHEN MIN( 90 ) THEN - MAX( 38 ) WHEN + 80 / + 41 THEN NULL END + 15 * 73 + - 64 ) AS col2
----
-4916

skipif mysql # not compatible
query I rowsort label-4469
SELECT 96 + - 28 + - 89 * - - COALESCE ( 56, + 83 * - 73 + - CASE + - 3 WHEN MIN ( 90 ) THEN - MAX ( 38 ) WHEN + 80 / + 41 THEN NULL END + 15 * 73 + - 64 ) AS col2
----
-4916

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL 48 + - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 48 + - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT CASE + 69 WHEN - MIN( ALL - 48 ) + - - 24 THEN + 53 * + 87 ELSE NULL END - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT CASE + 69 WHEN - MIN ( ALL - 48 ) + - - 24 THEN + 53 * + 87 ELSE NULL END - + 24
----
NULL

query I rowsort
SELECT 86 * + 71 AS col2
----
6106

onlyif mysql # DIV for integer division: 
query I rowsort label-4473
SELECT 28 DIV + 28
----
1

skipif mysql # not compatible
query I rowsort label-4473
SELECT 28 / + 28
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT DISTINCT - 4 DIV + 86 * + 74 * - + COUNT( * ) * - - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - 4 / + 86 * + 74 * - + COUNT ( * ) * - - 43 AS col1
----
0

query I rowsort
SELECT 12 * + - 19 * - 11
----
2508

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL - ( - 45 ) DIV - + 19 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - ( - 45 ) / - + 19 AS col0
----
-2

query I rowsort
SELECT 18 - 21 * COALESCE ( + 1, + 36 ) + + 17 + + 27 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4478
SELECT ALL 82 DIV MAX( + 26 )
----
3

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL 82 / MAX ( + 26 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL - MIN( DISTINCT + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - MIN ( DISTINCT + 4 )
----
-4

query I rowsort
SELECT ALL + 45 * + - 33 * + - 71 AS col1
----
105435

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT DISTINCT - 29 AS col1, COUNT( * ) AS col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-4481
SELECT DISTINCT - 29 AS col1, COUNT ( * ) AS col1
----
-29
1

query I rowsort
SELECT DISTINCT + + 44 * - ( - 86 )
----
3784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL + 84 * - + 6 * 3 + + 71 * CAST( NULL AS SIGNED ) + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + 84 * - + 6 * 3 + + 71 * CAST ( NULL AS INTEGER ) + 85
----
NULL

query I rowsort
SELECT + 21 - + - 31
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT ALL - - CAST( + - 81 AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - - CAST ( + - 81 AS INTEGER ) AS col0
----
-81

query I rowsort
SELECT - 65 + 58 col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT 40 * + COUNT( * ) * + 25 - - MIN( DISTINCT + 73 ) - - 3 + + - 79
----
997

skipif mysql # not compatible
query I rowsort label-4487
SELECT 40 * + COUNT ( * ) * + 25 - - MIN ( DISTINCT + 73 ) - - 3 + + - 79
----
997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT NULLIF ( - 83, + + NULLIF ( - 53, + COUNT( * ) * - + 53 * - COALESCE ( - + 94, CAST( NULL AS SIGNED ), 82 / - ( 5 ) ) - + 54 ) * - SUM( - ( + + 17 ) ) ) * 58 AS col0
----
-4814

skipif mysql # not compatible
query I rowsort label-4488
SELECT NULLIF ( - 83, + + NULLIF ( - 53, + COUNT ( * ) * - + 53 * - COALESCE ( - + 94, CAST ( NULL AS INTEGER ), 82 / - ( 5 ) ) - + 54 ) * - SUM ( - ( + + 17 ) ) ) * 58 AS col0
----
-4814

query I rowsort
SELECT + 87 + + - 58 AS col1
----
29

query I rowsort
SELECT DISTINCT + COALESCE ( - 68, + 45 ) + - - 56
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT 80 DIV COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-4491
SELECT 80 / COUNT ( * ) col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4492
SELECT DISTINCT - - NULLIF ( CAST( NULL AS SIGNED ), - 25 ) + 54 + + + ( 59 ) AS col2, + 3 * + 96 AS col1
----
NULL
288

skipif mysql # not compatible
query II rowsort label-4492
SELECT DISTINCT - - NULLIF ( CAST ( NULL AS INTEGER ), - 25 ) + 54 + + + ( 59 ) AS col2, + 3 * + 96 AS col1
----
NULL
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT ALL + - CAST( NULL AS SIGNED ) + + 89 - + - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 89 - + - 23 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT - 28 + - ( + - CAST( 57 AS SIGNED ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 28 + - ( + - CAST ( 57 AS INTEGER ) ) AS col2
----
29

query I rowsort
SELECT 28 * - + 33
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT ALL - - 27 * + 87 * CAST( 60 AS SIGNED ) / + CASE + 26 WHEN + CAST( NULL AS SIGNED ) THEN 78 END * + - 0 + 8 + + 2 + - CAST( MIN( DISTINCT - NULLIF ( - + 24, - - ( - 75 ) ) ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - - 27 * + 87 * CAST ( 60 AS INTEGER ) / + CASE + 26 WHEN + CAST ( NULL AS INTEGER ) THEN 78 END * + - 0 + 8 + + 2 + - CAST ( MIN ( DISTINCT - NULLIF ( - + 24, - - ( - 75 ) ) ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ( + 62 ) + 99 AS col0
----
161

query I rowsort
SELECT 18 + - 35 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL COALESCE ( + - 49, - NULLIF ( + 37, - 9 + 0 / CAST( - 59 AS SIGNED ) ), + 97 * - + 35 ) + + 20 + + 69 * + 98 + 18 + - 78 AS col2
----
6673

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL COALESCE ( + - 49, - NULLIF ( + 37, - 9 + 0 / CAST ( - 59 AS INTEGER ) ), + 97 * - + 35 ) + + 20 + + 69 * + 98 + 18 + - 78 AS col2
----
6673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4500
SELECT DISTINCT + 81 + + - COUNT( * ), CASE - AVG ( + + 90 ) WHEN + 13 * + ( - - 1 ) * + + COALESCE ( - 88, - 14 / CAST( + - 51 AS DECIMAL ) + + 82 ) * - MAX( ALL - + 71 ) + - ( + CAST( NULL AS SIGNED ) ) + 2 THEN + 60 END AS col1
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4500
SELECT DISTINCT + 81 + + - COUNT ( * ), CASE - AVG ( + + 90 ) WHEN + 13 * + ( - - 1 ) * + + COALESCE ( - 88, - 14 / CAST ( + - 51 AS REAL ) + + 82 ) * - MAX ( ALL - + 71 ) + - ( + CAST ( NULL AS INTEGER ) ) + 2 THEN + 60 END AS col1
----
80
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT ALL 49 + NULLIF ( COALESCE ( - - 73, + 92 - COUNT( 80 ), - 38 DIV - 99 * - + 74 + + + 76 + + + COUNT( * ) + + 80 - + 85 + + CASE + 52 WHEN 19 THEN - COUNT( * ) * COUNT( * ) WHEN - 65 * 85 THEN - 40 END DIV 61 * 72, + 12 DIV 84 ), - 46 )
----
122

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL 49 + NULLIF ( COALESCE ( - - 73, + 92 - COUNT ( 80 ), - 38 / - 99 * - + 74 + + + 76 + + + COUNT ( * ) + + 80 - + 85 + + CASE + 52 WHEN 19 THEN - COUNT ( * ) * COUNT ( * ) WHEN - 65 * 85 THEN - 40 END / 61 * 72, + 12 / 84 ), - 46 )
----
122

query I rowsort
SELECT ALL 7 - - 62
----
69

query I rowsort
SELECT 83 + + 50 col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT 31 * + + COUNT( * ) col1
----
31

skipif mysql # not compatible
query I rowsort label-4504
SELECT 31 * + + COUNT ( * ) col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT 38 + + 75 + - 12 * + + 50 * - - CASE + 34 WHEN 79 * - - 17 - 69 - - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + 92 ) THEN COUNT( * ) / - - ( 20 ) ELSE NULL END * - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT 38 + + 75 + - 12 * + + 50 * - - CASE + 34 WHEN 79 * - - 17 - 69 - - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + 92 ) THEN COUNT ( * ) / - - ( 20 ) ELSE NULL END * - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL 95 * SUM( + - ( 66 ) ) * - ( + 23 ) AS col2
----
144210

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL 95 * SUM ( + - ( 66 ) ) * - ( + 23 ) AS col2
----
144210

query I rowsort
SELECT 21 * 7 AS col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT ALL 41 DIV + 14
----
2

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL 41 / + 14
----
2

query I rowsort
SELECT 28 + - 81 AS col2
----
-53

query I rowsort
SELECT ALL 59 * + 17
----
1003

query I rowsort
SELECT ALL - NULLIF ( 26, + 80 )
----
-26

query I rowsort
SELECT DISTINCT 43 * + COALESCE ( + 75, + 34 ) col1
----
3225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4513
SELECT 15 * - + 42, 29 DIV - MAX( ALL 9 ) + - NULLIF ( - - 47, + 18 ) AS col2
----
-630
-50

skipif mysql # not compatible
query II rowsort label-4513
SELECT 15 * - + 42, 29 / - MAX ( ALL 9 ) + - NULLIF ( - - 47, + 18 ) AS col2
----
-630
-50

query I rowsort
SELECT DISTINCT - + ( 16 ) AS col0
----
-16

query I rowsort
SELECT ALL - COALESCE ( - 96, - + 91 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT + - COUNT( * ) / CAST( NULL AS SIGNED ) + - ( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT + - COUNT ( * ) / CAST ( NULL AS INTEGER ) + - ( + 73 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT + 19 + - + 43 * + - 71 + - 83 + + - ( - 36 ) + - 26 / + + CASE - ( + - 99 ) WHEN 63 + + ( + AVG ( ALL + 64 ) ) THEN - + 96 WHEN + ( + 8 ) + 95 THEN NULL WHEN + 22 / + NULLIF ( - COUNT( 1 ), 12 ) THEN - CAST( + 42 AS SIGNED ) ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT + 19 + - + 43 * + - 71 + - 83 + + - ( - 36 ) + - 26 / + + CASE - ( + - 99 ) WHEN 63 + + ( + AVG ( ALL + 64 ) ) THEN - + 96 WHEN + ( + 8 ) + 95 THEN NULL WHEN + 22 / + NULLIF ( - COUNT ( 1 ), 12 ) THEN - CAST ( + 42 AS INTEGER ) ELSE NULL END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL + + CASE WHEN NOT NULL BETWEEN ( - 98 ) AND + - COUNT( ALL - 77 ) THEN - + 97 END / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + + CASE WHEN NOT NULL BETWEEN ( - 98 ) AND + - COUNT ( ALL - 77 ) THEN - + 97 END / + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 63 * - 25
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT + 31 * + ( + + ( COUNT( * ) ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT + 31 * + ( + + ( COUNT ( * ) ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT + + COUNT( * ) * + 52 + + 96 + + 76 AS col0
----
224

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT + + COUNT ( * ) * + 52 + + 96 + + 76 AS col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL + COUNT( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + COUNT ( 49 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL CAST( NULL AS SIGNED ) * - 81 * - + ( ( - COUNT( * ) ) ) + 2 + + - 89 + - COALESCE ( - 58, - 78, 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL CAST ( NULL AS INTEGER ) * - 81 * - + ( ( - COUNT ( * ) ) ) + 2 + + - 89 + - COALESCE ( - 58, - 78, 42 )
----
NULL

query I rowsort
SELECT DISTINCT - 46 + 25 * + - 82 AS col0
----
-2096

query II rowsort
SELECT ALL + 87 + 1 col0, 88 * + 62 * - 5 AS col2
----
88
-27280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4526
SELECT ALL - 67 + + 30 / + CAST( NULL AS SIGNED ), 23 / + + CAST( NULL AS SIGNED ) * - + 73 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4526
SELECT ALL - 67 + + 30 / + CAST ( NULL AS INTEGER ), 23 / + + CAST ( NULL AS INTEGER ) * - + 73 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT MAX( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT MAX ( 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL MAX( 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL MAX ( 78 ) AS col2
----
78

query II rowsort
SELECT 40 AS col0, + 27
----
40
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL - 31 - ( + - 71 ) + + 37 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - 31 - ( + - 71 ) + + 37 + + COUNT ( * )
----
78

query I rowsort
SELECT DISTINCT CASE + 77 WHEN - 74 THEN - 23 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT ALL + 22 DIV - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + 22 / - COUNT ( * ) AS col0
----
-22

query II rowsort
SELECT - 51 AS col2, 51 - - 41 + - 73 col1
----
-51
19

query I rowsort
SELECT - 90 + + 22 + - + 73
----
-141

query I rowsort
SELECT - 83 * - ( - - ( - 81 ) )
----
-6723

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - CASE - - 41 WHEN + COUNT( - 66 ) THEN + 28 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - CASE - - 41 WHEN + COUNT ( - 66 ) THEN + 28 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL 54 * CASE - SUM( - + 5 ) WHEN + - 72 * - 42 * + 91 * - 77 + + 27 THEN NULL WHEN CASE 81 WHEN - 12 THEN 24 * COALESCE ( - - 2, - 96 ) * 11 / - + 72 + + ( + 11 ) WHEN 71 + CAST( + MAX( 59 ) AS SIGNED ) * 86 THEN 73 * 57 END + 9 * COUNT( * ) THEN NULL WHEN 63 + 87 THEN - COUNT( * ) ELSE 96 + 96 END * - 60 AS col0
----
-622080

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 54 * CASE - SUM ( - + 5 ) WHEN + - 72 * - 42 * + 91 * - 77 + + 27 THEN NULL WHEN CASE 81 WHEN - 12 THEN 24 * COALESCE ( - - 2, - 96 ) * 11 / - + 72 + + ( + 11 ) WHEN 71 + CAST ( + MAX ( 59 ) AS INTEGER ) * 86 THEN 73 * 57 END + 9 * COUNT ( * ) THEN NULL WHEN 63 + 87 THEN - COUNT ( * ) ELSE 96 + 96 END * - 60 AS col0
----
-622080

query II rowsort
SELECT - 15, + 25 AS col2
----
-15
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL NULLIF ( - 40, - COUNT( * ) * - 11 )
----
-40

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL NULLIF ( - 40, - COUNT ( * ) * - 11 )
----
-40

query I rowsort
SELECT DISTINCT + 5 * - - 77
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT + 36 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 36 / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT ALL 71 AS col1, - MIN( DISTINCT 61 ) * - 97 * 72 AS col0
----
71
426024

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL 71 AS col1, - MIN ( DISTINCT 61 ) * - 97 * 72 AS col0
----
71
426024

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + 53 * + 79 * COUNT( * )
----
4187

skipif mysql # not compatible
query I rowsort label-4543
SELECT + 53 * + 79 * COUNT ( * )
----
4187

query I rowsort
SELECT + 12 + 66
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT ALL - 32 * + CAST( - + MAX( + 30 ) AS SIGNED )
----
960

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - 32 * + CAST ( - + MAX ( + 30 ) AS INTEGER )
----
960

query II rowsort
SELECT 72 AS col2, + NULLIF ( - - 81, + 70 ) * + 73 AS col1
----
72
5913

query I rowsort
SELECT - 17 + - 85 AS col2
----
-102

query I rowsort
SELECT + - 90 * + 2 AS col1
----
-180

query I rowsort
SELECT + + 79 + + 24 + + 3
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT - + ( - ( - COUNT( * ) ) ), + 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-4550
SELECT - + ( - ( - COUNT ( * ) ) ), + 10 AS col0
----
-1
10

onlyif mysql # DIV for integer division: 
query II rowsort label-4551
SELECT + + 7, - 79 DIV + + 95 * - - 43 AS col0
----
7
0

skipif mysql # not compatible
query II rowsort label-4551
SELECT + + 7, - 79 / + + 95 * - - 43 AS col0
----
7
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL + COUNT( * ) / - COUNT( ALL + 77 ) * + AVG ( + 26 ) * - - AVG ( + + 49 ) + COUNT( * ) + 2 + + CAST( - - 98 AS SIGNED ) * + - COUNT( * ) + - 7 + - - COUNT( * ) + + 95 / 30 * + + CASE 93 WHEN 63 * 17 THEN + 1 WHEN MIN( 58 ) - - 31 THEN - 6 WHEN - COUNT( * ) THEN - 7 * 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + COUNT ( * ) / - COUNT ( ALL + 77 ) * + AVG ( + 26 ) * - - AVG ( + + 49 ) + COUNT ( * ) + 2 + + CAST ( - - 98 AS INTEGER ) * + - COUNT ( * ) + - 7 + - - COUNT ( * ) + + 95 / 30 * + + CASE 93 WHEN 63 * 17 THEN + 1 WHEN MIN ( 58 ) - - 31 THEN - 6 WHEN - COUNT ( * ) THEN - 7 * 85 END AS col2
----
NULL

query I rowsort
SELECT + 47 * - 56
----
-2632

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT ALL + 73 DIV - 43 + + 75 + - 35 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + 73 / - 43 + + 75 + - 35 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + + 63 + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4555
SELECT + + 63 + + COUNT ( * )
----
64

query II rowsort
SELECT + + 35, 46 AS col0
----
35
46

query I rowsort
SELECT + + ( 14 ) col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4558
SELECT ALL + 68 AS col2, CAST( NULL AS SIGNED ) * - 96 * + 79
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4558
SELECT ALL + 68 AS col2, CAST ( NULL AS INTEGER ) * - 96 * + 79
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + - ( + 70 ) * - 90 - 88 - - + COALESCE ( 38, COUNT( * ) + - - COALESCE ( - - ( - 20 ), - 84, 2 + 29 ) ) * - - 58 * SUM( DISTINCT + 4 ) * 4 * - 44 AS col2
----
-1545404

skipif mysql # not compatible
query I rowsort label-4559
SELECT + - ( + 70 ) * - 90 - 88 - - + COALESCE ( 38, COUNT ( * ) + - - COALESCE ( - - ( - 20 ), - 84, 2 + 29 ) ) * - - 58 * SUM ( DISTINCT + 4 ) * 4 * - 44 AS col2
----
-1545404

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4560
SELECT - 80 * + CAST( - NULLIF ( + 69, - 77 + - 74 ) AS SIGNED ) + 63 + + 45 DIV - ( 73 ) - 11 * + 66 AS col0
----
4857

skipif mysql # not compatible
query I rowsort label-4560
SELECT - 80 * + CAST ( - NULLIF ( + 69, - 77 + - 74 ) AS INTEGER ) + 63 + + 45 / - ( 73 ) - 11 * + 66 AS col0
----
4857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4561
SELECT ALL 72 * + - 29 * COUNT( * ) - CAST( NULL AS SIGNED ) + + - CASE 27 WHEN + 50 * - 73 - 99 THEN CAST( - 50 AS SIGNED ) END + - + 91 * + + 61 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL 72 * + - 29 * COUNT ( * ) - CAST ( NULL AS INTEGER ) + + - CASE 27 WHEN + 50 * - 73 - 99 THEN CAST ( - 50 AS INTEGER ) END + - + 91 * + + 61 * + 34
----
NULL

query II rowsort
SELECT ALL + 48, NULLIF ( - 1, 28 ) AS col1
----
48
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT + 7 * + CASE + 69 WHEN + 81 THEN + 19 + - COUNT( * ) WHEN 31 * CASE - 55 WHEN - + 4 THEN 13 + - + 99 / 82 ELSE NULL END THEN NULL ELSE NULL END - + ( + 1 ) + + + CAST( 62 AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + 7 * + CASE + 69 WHEN + 81 THEN + 19 + - COUNT ( * ) WHEN 31 * CASE - 55 WHEN - + 4 THEN 13 + - + 99 / 82 ELSE NULL END THEN NULL ELSE NULL END - + ( + 1 ) + + + CAST ( 62 AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 59 * ( 39 ) * - 15 AS col0
----
34515

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT 90 * - 65 - COUNT( * ) * - 62
----
-5788

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT 90 * - 65 - COUNT ( * ) * - 62
----
-5788

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL + NULLIF ( + - 14, - COALESCE ( 17, + COALESCE ( + 32, 53 + - - NULLIF ( + 72, - COUNT( * ) + - 2 ) + - - 70 ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + NULLIF ( + - 14, - COALESCE ( 17, + COALESCE ( + 32, 53 + - - NULLIF ( + 72, - COUNT ( * ) + - 2 ) + - - 70 ) ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL - COALESCE ( + + 26, + - 87 - + - 37 * + + 59 ) * CASE 76 WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - COALESCE ( + + 26, + - 87 - + - 37 * + + 59 ) * CASE 76 WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + COUNT( ALL + 83 ) * - - 9 * + 17 + 42 AS col1
----
195

skipif mysql # not compatible
query I rowsort label-4568
SELECT + COUNT ( ALL + 83 ) * - - 9 * + 17 + 42 AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT - 96 * + COUNT( * ) * - - NULLIF ( NULLIF ( + 29, - 40 + + 74 * COUNT( * ) * + 47 + - COUNT( * ) * - + 52 + - 38 * + 67 * 15 + + 8 ), + - 58 ) AS col1
----
-2784

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 96 * + COUNT ( * ) * - - NULLIF ( NULLIF ( + 29, - 40 + + 74 * COUNT ( * ) * + 47 + - COUNT ( * ) * - + 52 + - 38 * + 67 * 15 + + 8 ), + - 58 ) AS col1
----
-2784

query I rowsort
SELECT DISTINCT + 18 * - 76
----
-1368

query I rowsort
SELECT - 48 + - 24 + + 87 + + + 97
----
112

query I rowsort
SELECT - 60 * - - 86
----
-5160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT ALL MAX( + 27 ) * 50 DIV - 48 + - 73 + + - 66 col2
----
-167

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL MAX ( + 27 ) * 50 / - 48 + - 73 + + - 66 col2
----
-167

query I rowsort
SELECT DISTINCT COALESCE ( + ( - 29 ), - 55 )
----
-29

query I rowsort
SELECT DISTINCT COALESCE ( - + 57, + 78, + - 67 + 87 ) AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT ALL ( - ( - COALESCE ( + - 0, - - 71 DIV - + 79 + + 55 * - - 1 DIV - + 7 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL ( - ( - COALESCE ( + - 0, - - 71 / - + 79 + + 55 * - - 1 / - + 7 ) ) )
----
0

query I rowsort
SELECT DISTINCT 42 * - - 76 * 53
----
169176

onlyif mysql # DIV for integer division: 
query II rowsort label-4578
SELECT DISTINCT ( - COALESCE ( 91, 48 * - - 51 + - + 80 DIV 6 ) ) AS col2, 62
----
-91
62

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT ( - COALESCE ( 91, 48 * - - 51 + - + 80 / 6 ) ) AS col2, 62
----
-91
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL - 28 + - + CAST( 68 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - 28 + - + CAST ( 68 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT - 76 - + + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4580
SELECT - 76 - + + COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT - 94 * 59 AS col0
----
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT + COALESCE ( - + MAX( DISTINCT - + NULLIF ( + 78, - + NULLIF ( + 56, 31 ) - + 49 ) ), - 61 * - + COUNT( DISTINCT - + 32 ) + + 72 * + 3 ) + - 85 + - 83 * NULLIF ( - 78, 88 ) + COALESCE ( 78, SUM( ALL ( + 91 ) ), COUNT( * ) + + 45, 26 )
----
6545

skipif mysql # not compatible
query I rowsort label-4582
SELECT + COALESCE ( - + MAX ( DISTINCT - + NULLIF ( + 78, - + NULLIF ( + 56, 31 ) - + 49 ) ), - 61 * - + COUNT ( DISTINCT - + 32 ) + + 72 * + 3 ) + - 85 + - 83 * NULLIF ( - 78, 88 ) + COALESCE ( 78, SUM ( ALL ( + 91 ) ), COUNT ( * ) + + 45, 26 )
----
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT DISTINCT + 56 * COUNT( * ) * + 72 AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT + 56 * COUNT ( * ) * + 72 AS col2
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + ( COUNT( * ) ) + + 21 + COUNT( * ) + - 76 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4584
SELECT + ( COUNT ( * ) ) + + 21 + COUNT ( * ) + - 76 AS col1
----
-53

query II rowsort
SELECT ALL 61 * - 69 AS col1, - 64
----
-4209
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4586
SELECT DISTINCT - COUNT( * ) + - 83 DIV CAST( - - 35 AS SIGNED ) + + - MAX( ALL + - 41 ) + + CASE + 3 WHEN - COUNT( * ) * - - 18 * 82 THEN NULL ELSE + 44 END * 78 * + 15 AS col2
----
51518

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - COUNT ( * ) + - 83 / CAST ( - - 35 AS INTEGER ) + + - MAX ( ALL + - 41 ) + + CASE + 3 WHEN - COUNT ( * ) * - - 18 * 82 THEN NULL ELSE + 44 END * 78 * + 15 AS col2
----
51518

query I rowsort
SELECT DISTINCT - 94 + + + 39 * - - 64 AS col2
----
2402

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT 55 + - 67 * - COUNT( * ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-4588
SELECT 55 + - 67 * - COUNT ( * ) AS col1
----
122

query I rowsort
SELECT ALL - 61 + 86
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT COUNT( - 25 ) AS col2, 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-4590
SELECT COUNT ( - 25 ) AS col2, 26 AS col2
----
1
26

query I rowsort
SELECT ALL 50 + 70 AS col1
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4592
SELECT 34 * 2 AS col1, MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4592
SELECT 34 * 2 AS col1, MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
68
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT + + 11 DIV + COUNT( * ) * + + COUNT( * ) + + 83 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4593
SELECT + + 11 / + COUNT ( * ) * + + COUNT ( * ) + + 83 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + COUNT( ALL + - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COUNT ( ALL + - 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT + COUNT( DISTINCT - 84 ) + - 65
----
-64

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + COUNT ( DISTINCT - 84 ) + - 65
----
-64

query I rowsort
SELECT - 17 + - + 56 + 77 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4597
SELECT DISTINCT + 18 - + 8 * - CAST( + 51 AS SIGNED ) DIV + 1 * - COUNT( * ) + + + 53 AS col0
----
-337

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + 18 - + 8 * - CAST ( + 51 AS INTEGER ) / + 1 * - COUNT ( * ) + + + 53 AS col0
----
-337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4598
SELECT - CASE - 68 WHEN - COUNT( ALL + 77 ) * + 53 + + - NULLIF ( - 46, + - 78 * - - 68 - + AVG ( + 5 ) * 35 ) THEN + CAST( NULL AS DECIMAL ) WHEN + 63 THEN NULL END, - 19 DIV 47 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4598
SELECT - CASE - 68 WHEN - COUNT ( ALL + 77 ) * + 53 + + - NULLIF ( - 46, + - 78 * - - 68 - + AVG ( + 5 ) * 35 ) THEN + CAST ( NULL AS REAL ) WHEN + 63 THEN NULL END, - 19 / 47 AS col2
----
NULL
0

query I rowsort
SELECT DISTINCT 62 * - 84
----
-5208

query I rowsort
SELECT ( + - 11 ) * - - 86
----
-946

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL - ( - 69 ) DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - ( - 69 ) / 43
----
1

query I rowsort
SELECT ALL - 41 * - - 35 AS col0
----
-1435

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT ALL 19 DIV + + 77
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL 19 / + + 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4604
SELECT ALL 36 + - - MIN( ALL 38 ) - - + 37 + - + NULLIF ( - 30, - 31 ) * 74 DIV - 20 col1
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL 36 + - - MIN ( ALL 38 ) - - + 37 + - + NULLIF ( - 30, - 31 ) * 74 / - 20 col1
----
0

query I rowsort
SELECT 47 * 58
----
2726

query I rowsort
SELECT ALL ( + COALESCE ( - 64, + 50 * - 29 ) ) + + + 56 * + 96 AS col0
----
5312

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL 71 + MAX( DISTINCT - 46 ) + - 16 * - 90 * COUNT( - 45 ) col0
----
1465

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL 71 + MAX ( DISTINCT - 46 ) + - 16 * - 90 * COUNT ( - 45 ) col0
----
1465

query I rowsort
SELECT 21 + - 78
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT - 26 AS col1, + 8 * + - COUNT( * ) + - 25 - - NULLIF ( + + 4, 98 - COUNT( DISTINCT 1 ) )
----
-26
-29

skipif mysql # not compatible
query II rowsort label-4609
SELECT - 26 AS col1, + 8 * + - COUNT ( * ) + - 25 - - NULLIF ( + + 4, 98 - COUNT ( DISTINCT 1 ) )
----
-26
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4610
SELECT DISTINCT - 24 + 41 DIV - ( - CAST( + 89 AS SIGNED ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - 24 + 41 / - ( - CAST ( + 89 AS INTEGER ) ) AS col1
----
-24

query I rowsort
SELECT ALL + 69 * + ( - - 17 ) AS col2
----
1173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT 72 * + + COALESCE ( + 24, CAST( NULL AS SIGNED ) - + 37 )
----
1728

skipif mysql # not compatible
query I rowsort label-4612
SELECT 72 * + + COALESCE ( + 24, CAST ( NULL AS INTEGER ) - + 37 )
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - MIN( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4613
SELECT - MIN ( 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT 94 + - 7 * - + MAX( DISTINCT - 11 )
----
17

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 94 + - 7 * - + MAX ( DISTINCT - 11 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL - COUNT( * ) * + + 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - COUNT ( * ) * + + 66 col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4616
SELECT DISTINCT - COUNT( * ) DIV - + NULLIF ( + 73, 23 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - COUNT ( * ) / - + NULLIF ( + 73, 23 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT 49 + - MIN( + 88 ) AS col0, CASE - 35 WHEN + 25 THEN - 4 END
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-4617
SELECT 49 + - MIN ( + 88 ) AS col0, CASE - 35 WHEN + 25 THEN - 4 END
----
-39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT + CAST( NULL AS SIGNED ) + 1 * 65 AS col1, 21 * + 61 col1
----
NULL
1281

skipif mysql # not compatible
query II rowsort label-4618
SELECT + CAST ( NULL AS INTEGER ) + 1 * 65 AS col1, 21 * + 61 col1
----
NULL
1281

query I rowsort
SELECT + - ( - 98 ) AS col0
----
98

query I rowsort
SELECT DISTINCT + 22 - + + 20 AS col0
----
2

query I rowsort
SELECT DISTINCT - 58 * - 96 AS col1
----
5568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4622
SELECT ALL + - 5 * - SUM( ALL - + CAST( NULL AS DECIMAL ) ) AS col2, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4622
SELECT ALL + - 5 * - SUM ( ALL - + CAST ( NULL AS REAL ) ) AS col2, 5
----
NULL
5

query I rowsort
SELECT ALL - - 24 col2
----
24

query I rowsort
SELECT ALL - - 26 * 42 AS col0
----
1092

query I rowsort
SELECT DISTINCT - + COALESCE ( + ( - 24 ), - 82 + - 69 + 86 * - 2 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4626
SELECT ALL + - 13 * 88 - - + ( + 15 ) + - - 22 DIV 24 * + - 52 - + COUNT( * )
----
-1130

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + - 13 * 88 - - + ( + 15 ) + - - 22 / 24 * + - 52 - + COUNT ( * )
----
-1130

query I rowsort
SELECT - NULLIF ( - 70, - - 85 ) + + ( 92 ) * + 80
----
7430

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 90 * + 60 * COUNT( * ) + - 22
----
-5422

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 90 * + 60 * COUNT ( * ) + - 22
----
-5422

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT 10 + 22 DIV 98 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4629
SELECT 10 + 22 / 98 AS col1
----
10

query II rowsort
SELECT ALL - - 64 AS col2, - 81 AS col0
----
64
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT CAST( NULL AS SIGNED ) * - 43 / 78 + SUM( - + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT CAST ( NULL AS INTEGER ) * - 43 / 78 + SUM ( - + 85 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4632
SELECT - 57 * 22 - - CASE - COUNT( * ) WHEN - CASE + - 48 WHEN 11 THEN 39 ELSE NULL END - 90 + 95 THEN - 10 END * + + COUNT( * ) + - 94 + - 98 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 57 * 22 - - CASE - COUNT ( * ) WHEN - CASE + - 48 WHEN 11 THEN 39 ELSE NULL END - 90 + 95 THEN - 10 END * + + COUNT ( * ) + - 94 + - 98 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4633
SELECT ALL - 67 AS col0, COUNT( * ) + - + COALESCE ( + + 68, + 0 + + CAST( NULL AS SIGNED ) ) AS col1
----
-67
-67

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL - 67 AS col0, COUNT ( * ) + - + COALESCE ( + + 68, + 0 + + CAST ( NULL AS INTEGER ) ) AS col1
----
-67
-67

query II rowsort
SELECT DISTINCT - 73 AS col1, - 43 * - + 3
----
-73
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT DISTINCT - CAST( NULL AS SIGNED ), 2 + - + 66 * - - 17 AS col1
----
NULL
-1120

skipif mysql # not compatible
query II rowsort label-4635
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 2 + - + 66 * - - 17 AS col1
----
NULL
-1120

query I rowsort
SELECT 22 + - + 48 + - + 49
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT + 46 + + + 34 - 0 * + - 81 + - 93 * 23 + + 8 * 18 + + + 73 + - 6 * - - COUNT( 47 ) * + 57 * + - 88 AS col0
----
28254

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + 46 + + + 34 - 0 * + - 81 + - 93 * 23 + + 8 * 18 + + + 73 + - 6 * - - COUNT ( 47 ) * + 57 * + - 88 AS col0
----
28254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT ALL NULLIF ( 1, - CAST( NULL AS SIGNED ) ) + 23 + + 44
----
68

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL NULLIF ( 1, - CAST ( NULL AS INTEGER ) ) + 23 + + 44
----
68

query I rowsort
SELECT ALL 95 + 53 AS col0
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT 18 + + ( + COUNT( * ) ) + - COUNT( * ) AS col2, - 93 + - 21
----
18
-114

skipif mysql # not compatible
query II rowsort label-4640
SELECT 18 + + ( + COUNT ( * ) ) + - COUNT ( * ) AS col2, - 93 + - 21
----
18
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT COUNT( * ) + - 84 + - 99 * + 99
----
-9884

skipif mysql # not compatible
query I rowsort label-4641
SELECT COUNT ( * ) + - 84 + - 99 * + 99
----
-9884

query II rowsort
SELECT 93 AS col0, + 75
----
93
75

query I rowsort
SELECT 66 + - + 61 * - 80 + NULLIF ( + + 5, + 95 * + + 6 * 62 + + 68 ) AS col1
----
4951

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT 72 DIV + - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT 72 / + - 81 AS col1
----
0

query I rowsort
SELECT ALL 82 + + 0
----
82

query II rowsort
SELECT 74 AS col1, 1 AS col1
----
74
1

query I rowsort
SELECT ALL 59 + - + NULLIF ( + 2, - - 26 + + + 46 )
----
57

query I rowsort
SELECT + 24 * - - 84 + + - ( + 95 )
----
1921

query I rowsort
SELECT + 36 + + + 42 AS col1
----
78

query I rowsort
SELECT ALL ( - - 54 ) + - - ( + 8 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ( - MIN( DISTINCT - 63 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4651
SELECT ( - MIN ( DISTINCT - 63 ) ) AS col0
----
63

query I rowsort
SELECT - COALESCE ( - - 10, 89 ) AS col0
----
-10

query I rowsort
SELECT - - 59 + - 20
----
39

query I rowsort
SELECT ALL + 95 * - - 81 * + 2
----
15390

onlyif mysql # aggregate syntax: 
query II rowsort label-4655
SELECT - 15 AS col2, - COUNT( ALL 91 ) AS col0
----
-15
-1

skipif mysql # not compatible
query II rowsort label-4655
SELECT - 15 AS col2, - COUNT ( ALL 91 ) AS col0
----
-15
-1

query I rowsort
SELECT - - 9 + + 29 * - 57 * + 44 * - 52 col1
----
3782073

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + + 40 * - 82 + - + COUNT( * ) AS col0
----
-3281

skipif mysql # not compatible
query I rowsort label-4657
SELECT + + 40 * - 82 + - + COUNT ( * ) AS col0
----
-3281

query I rowsort
SELECT DISTINCT + 71 - - + 42 AS col0
----
113

query II rowsort
SELECT DISTINCT + 2 * + 26 AS col1, + 32
----
52
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4660
SELECT - + CASE + COALESCE ( NULLIF ( + - 77, - + COUNT( * ) ), + + 62, + 4 + - - 42 * + 87 * + 48 ) WHEN NULLIF ( - 25, + + 45 * + 41 + - CAST( + 41 AS SIGNED ) * + + CAST( CASE 94 WHEN 78 THEN - 35 WHEN ( COALESCE ( 37, COUNT( * ), 34 ) ) + 14 * COUNT( * ) THEN - COUNT( * ) ELSE NULL END AS SIGNED ) + 96 ) * 78 THEN NULL WHEN - 40 THEN - 1 ELSE NULL END / 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - + CASE + COALESCE ( NULLIF ( + - 77, - + COUNT ( * ) ), + + 62, + 4 + - - 42 * + 87 * + 48 ) WHEN NULLIF ( - 25, + + 45 * + 41 + - CAST ( + 41 AS INTEGER ) * + + CAST ( CASE 94 WHEN 78 THEN - 35 WHEN ( COALESCE ( 37, COUNT ( * ), 34 ) ) + 14 * COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END AS INTEGER ) + 96 ) * 78 THEN NULL WHEN - 40 THEN - 1 ELSE NULL END / 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + + SUM( DISTINCT - ( - 67 ) ) col0
----
67

skipif mysql # not compatible
query I rowsort label-4661
SELECT + + SUM ( DISTINCT - ( - 67 ) ) col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT - 35 DIV ( + 59 ) * + 68
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - 35 / ( + 59 ) * + 68
----
0

query I rowsort
SELECT - 73 + + + 16
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT - 85 DIV + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 85 / + COUNT ( * ) AS col2
----
-85

query I rowsort
SELECT DISTINCT + 1 * + 60 + 8 AS col2
----
68

query I rowsort
SELECT ALL + COALESCE ( - COALESCE ( + 82, - + 57 ), 88 )
----
-82

query I rowsort
SELECT DISTINCT - 7 * - 40 + - 48
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT DISTINCT + NULLIF ( COUNT( * ), - + 25 + + 41 ) * - 48 + + 80 * - + 38 * 10 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT + NULLIF ( COUNT ( * ), - + 25 + + 41 ) * - 48 + + 80 * - + 38 * 10 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 43, + 79 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL + 91 * + + COUNT( * ) * - - 26 + - + 42 AS col2
----
2324

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + 91 * + + COUNT ( * ) * - - 26 + - + 42 AS col2
----
2324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT - 58 * + CASE - - MIN( ALL - CASE 77 WHEN CAST( - - 49 AS SIGNED ) THEN - 55 - - 21 END ) WHEN - 51 THEN + 97 END / - 14 * 17 - CASE + + 88 WHEN - + 40 THEN - NULLIF ( - CASE + + COUNT( * ) WHEN + 3 THEN NULL WHEN + + 81 THEN + 67 ELSE NULL END, - 35 ) END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT - 58 * + CASE - - MIN ( ALL - CASE 77 WHEN CAST ( - - 49 AS INTEGER ) THEN - 55 - - 21 END ) WHEN - 51 THEN + 97 END / - 14 * 17 - CASE + + 88 WHEN - + 40 THEN - NULLIF ( - CASE + + COUNT ( * ) WHEN + 3 THEN NULL WHEN + + 81 THEN + 67 ELSE NULL END, - 35 ) END * 64
----
NULL

query I rowsort
SELECT - 77 - + + 33
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT NULLIF ( + - 8, - 76 * 64 * SUM( ALL 44 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4673
SELECT NULLIF ( + - 8, - 76 * 64 * SUM ( ALL 44 ) )
----
-8

query I rowsort
SELECT - 54 + - 94 * + 96 AS col1
----
-9078

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT COALESCE ( COUNT( * ), - - 74 * - - 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4675
SELECT COALESCE ( COUNT ( * ), - - 74 * - - 93 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + 20 * - COUNT( * ) + - - 91 * + 40 AS col2
----
3620

skipif mysql # not compatible
query I rowsort label-4676
SELECT + 20 * - COUNT ( * ) + - - 91 * + 40 AS col2
----
3620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT CAST( NULL AS SIGNED ) * 12 + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 12 + + 34 AS col1
----
NULL

query I rowsort
SELECT ALL 1 * - 54 + + - 26
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL 7 * - 7 + - - 23 * - 80 + - 30 * - - COUNT( * ) + - 91 + + 27 * + 84
----
258

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL 7 * - 7 + - - 23 * - 80 + - 30 * - - COUNT ( * ) + - 91 + + 27 * + 84
----
258

onlyif mysql # DIV for integer division: 
query II rowsort label-4680
SELECT DISTINCT ( + + 92 ) AS col1, 62 DIV 23 AS col0
----
92
2

skipif mysql # not compatible
query II rowsort label-4680
SELECT DISTINCT ( + + 92 ) AS col1, 62 / 23 AS col0
----
92
2

query I rowsort
SELECT ALL 11 * - 38 AS col2
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - NULLIF ( MAX( ALL - + 69 ), 39 * 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4682
SELECT - NULLIF ( MAX ( ALL - + 69 ), 39 * 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - MIN( DISTINCT 46 ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-4683
SELECT - MIN ( DISTINCT 46 ) col0
----
-46

query I rowsort
SELECT - - NULLIF ( - - 31, 64 ) + 37
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4685
SELECT + + 55 - COUNT( * ) col2, + 98 * 10
----
54
980

skipif mysql # not compatible
query II rowsort label-4685
SELECT + + 55 - COUNT ( * ) col2, + 98 * 10
----
54
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT DISTINCT + ( - 53 ) * + NULLIF ( + 82, 78 ) * - 46 * ( - - COALESCE ( - + CAST( 66 AS SIGNED ), COUNT( 73 ) + + COUNT( * ) ) ) AS col1
----
-13194456

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + ( - 53 ) * + NULLIF ( + 82, 78 ) * - 46 * ( - - COALESCE ( - + CAST ( 66 AS INTEGER ), COUNT ( 73 ) + + COUNT ( * ) ) ) AS col1
----
-13194456

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT + COUNT( * ) * - 90 - - 21 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4687
SELECT + COUNT ( * ) * - 90 - - 21 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT + 27 * + - ( - COUNT( * ) ) + 98 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-4688
SELECT + 27 * + - ( - COUNT ( * ) ) + 98 AS col2
----
125

query I rowsort
SELECT + - 34 * - - 8
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4690
SELECT + + 17 + 63, COUNT( * ) - - CASE + 18 WHEN + 84 + + 15 + + 56 THEN NULL WHEN 55 THEN - + 5 + + CASE + 15 WHEN 89 THEN 78 * + + CAST( COALESCE ( + + 10, COUNT( * ) * + 61 * + 82, - - CAST( + - 99 AS SIGNED ) * - COUNT( * ) + - 54 ) AS DECIMAL ) + - 59 ELSE + 93 + 30 END END AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4690
SELECT + + 17 + 63, COUNT ( * ) - - CASE + 18 WHEN + 84 + + 15 + + 56 THEN NULL WHEN 55 THEN - + 5 + + CASE + 15 WHEN 89 THEN 78 * + + CAST ( COALESCE ( + + 10, COUNT ( * ) * + 61 * + 82, - - CAST ( + - 99 AS INTEGER ) * - COUNT ( * ) + - 54 ) AS REAL ) + - 59 ELSE + 93 + 30 END END AS col2
----
80
NULL

query I rowsort
SELECT ALL 42 * 60
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + - 42 + + 51 * - + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - 42 + + 51 * - + COUNT ( * ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT ALL + 74 DIV 39 + - ( 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + 74 / 39 + - ( 27 )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL + ( + + ( - + COUNT( DISTINCT - 55 ) ) ) AS col0, - 87
----
-1
-87

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL + ( + + ( - + COUNT ( DISTINCT - 55 ) ) ) AS col0, - 87
----
-1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL - CASE 72 WHEN + 94 THEN + COUNT( DISTINCT - 54 ) END / + 70 + + + COUNT( * ) * - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - CASE 72 WHEN + 94 THEN + COUNT ( DISTINCT - 54 ) END / + 70 + + + COUNT ( * ) * - + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4696
SELECT + CASE + 38 WHEN - - 91 THEN NULL WHEN + 14 + COUNT( * ) THEN NULL ELSE - COALESCE ( - 34, 68 * - 49 + - 96 + + 58 DIV - COUNT( * ) ) * - 61 * + 14 + - 65 END * + 65 + 78
----
-1891487

skipif mysql # not compatible
query I rowsort label-4696
SELECT + CASE + 38 WHEN - - 91 THEN NULL WHEN + 14 + COUNT ( * ) THEN NULL ELSE - COALESCE ( - 34, 68 * - 49 + - 96 + + 58 / - COUNT ( * ) ) * - 61 * + 14 + - 65 END * + 65 + 78
----
-1891487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT - 92 * COALESCE ( + 18, + + ( - + COUNT( * ) ) ) + + COUNT( * ) * + 45 DIV + + 36 + + 78 DIV - 29
----
-1657

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 92 * COALESCE ( + 18, + + ( - + COUNT ( * ) ) ) + + COUNT ( * ) * + 45 / + + 36 + + 78 / - 29
----
-1657

onlyif mysql # aggregate syntax: 
query II rowsort label-4698
SELECT - SUM( + 69 ) - - 44 AS col2, - 24 + + COUNT( * ) AS col0
----
-25
-23

skipif mysql # not compatible
query II rowsort label-4698
SELECT - SUM ( + 69 ) - - 44 AS col2, - 24 + + COUNT ( * ) AS col0
----
-25
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT ALL + CAST( NULL AS SIGNED ) / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + CAST ( NULL AS INTEGER ) / + 19
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4700
SELECT ALL + 95, 28 + 84 * COUNT( 81 ) * - 86 * ( + 6 ) - + 51 col1, COUNT( * ) AS col1
----
95
-43367
1

skipif mysql # not compatible
query III rowsort label-4700
SELECT ALL + 95, 28 + 84 * COUNT ( 81 ) * - 86 * ( + 6 ) - + 51 col1, COUNT ( * ) AS col1
----
95
-43367
1

onlyif mysql # aggregate syntax: 
query III rowsort label-4701
SELECT COUNT( * ) * + 64 + + + 58 AS col2, 21 AS col2, + 18 * - 72 + - 14 + 60 AS col1
----
122
21
-1250

skipif mysql # not compatible
query III rowsort label-4701
SELECT COUNT ( * ) * + 64 + + + 58 AS col2, 21 AS col2, + 18 * - 72 + - 14 + 60 AS col1
----
122
21
-1250

query I rowsort
SELECT DISTINCT - 65 + + 76 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL + 10 + + MIN( + - 34 ) - - 47 + - 45 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + 10 + + MIN ( + - 34 ) - - 47 + - 45 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT 47 * + SUM( 43 ) AS col0
----
2021

skipif mysql # not compatible
query I rowsort label-4704
SELECT 47 * + SUM ( 43 ) AS col0
----
2021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 81 * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 81 * - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4706
SELECT DISTINCT - 98, 43 + + 32 * + ( ( MIN( ALL + - COALESCE ( - + 26, + + ( + - 73 ) DIV + 61 + + 35 ) ) ) ) AS col0
----
-98
875

skipif mysql # not compatible
query II rowsort label-4706
SELECT DISTINCT - 98, 43 + + 32 * + ( ( MIN ( ALL + - COALESCE ( - + 26, + + ( + - 73 ) / + 61 + + 35 ) ) ) ) AS col0
----
-98
875

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + 11 - 68 - + - 22 + + ( + + 72 ) + + 9 * - 93 * COUNT( * ) + + 86
----
-714

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + 11 - 68 - + - 22 + + ( + + 72 ) + + 9 * - 93 * COUNT ( * ) + + 86
----
-714

query II rowsort
SELECT 72 * + 70 * + 1, - 25 - + 7 + - 85 AS col2
----
5040
-117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4709
SELECT ALL - 48 - - 76 + 84, + 12 + - 11 * + 88 / 49 * + - CAST( NULL AS DECIMAL ) / - - CASE 73 WHEN + COUNT( * ) + + + 34 * + + MAX( + 0 ) THEN - + ( + 78 ) ELSE - 54 * + - COUNT( * ) + 96 END col1
----
112
NULL

skipif mysql # not compatible
query II rowsort label-4709
SELECT ALL - 48 - - 76 + 84, + 12 + - 11 * + 88 / 49 * + - CAST ( NULL AS REAL ) / - - CASE 73 WHEN + COUNT ( * ) + + + 34 * + + MAX ( + 0 ) THEN - + ( + 78 ) ELSE - 54 * + - COUNT ( * ) + 96 END col1
----
112
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4710
SELECT 9 + + + MAX( DISTINCT + + 59 ), + 82 + + + 22 AS col2
----
68
104

skipif mysql # not compatible
query II rowsort label-4710
SELECT 9 + + + MAX ( DISTINCT + + 59 ), + 82 + + + 22 AS col2
----
68
104

query I rowsort
SELECT + - ( + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT ALL + 11, ( 92 ) + + COUNT( ALL + 96 ) * + + ( + 54 ) AS col1
----
11
146

skipif mysql # not compatible
query II rowsort label-4712
SELECT ALL + 11, ( 92 ) + + COUNT ( ALL + 96 ) * + + ( + 54 ) AS col1
----
11
146

onlyif mysql # DIV for integer division: 
query II rowsort label-4713
SELECT + 11 AS col2, 84 * + 88 + 28 DIV - 4 + - 94 + + + 62 AS col1
----
11
7353

skipif mysql # not compatible
query II rowsort label-4713
SELECT + 11 AS col2, 84 * + 88 + 28 / - 4 + - 94 + + + 62 AS col1
----
11
7353

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT 14 + + NULLIF ( CAST( + - CAST( - 87 AS SIGNED ) AS SIGNED ), + NULLIF ( 51, - + CASE - ( + + ( + AVG ( DISTINCT CAST( 65 AS SIGNED ) ) ) ) WHEN 7 THEN + + CASE + + 62 WHEN 31 * - 99 THEN NULL WHEN - - 21 THEN NULL WHEN 6 + 29 THEN + 3 * - 96 / 59 + 46 * 57 END - 7 END ) ) * COUNT( - ( 25 ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4714
SELECT 14 + + NULLIF ( CAST ( + - CAST ( - 87 AS INTEGER ) AS INTEGER ), + NULLIF ( 51, - + CASE - ( + + ( + AVG ( DISTINCT CAST ( 65 AS INTEGER ) ) ) ) WHEN 7 THEN + + CASE + + 62 WHEN 31 * - 99 THEN NULL WHEN - - 21 THEN NULL WHEN 6 + 29 THEN + 3 * - 96 / 59 + 46 * 57 END - 7 END ) ) * COUNT ( - ( 25 ) ) AS col1
----
101

query I rowsort
SELECT - 84 * + 14
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4716
SELECT DISTINCT - CAST( - ( + COUNT( * ) ) AS SIGNED ), 28 * + 57 AS col1
----
1
1596

skipif mysql # not compatible
query II rowsort label-4716
SELECT DISTINCT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ), 28 * + 57 AS col1
----
1
1596

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT ALL COUNT( * ) col2, 24 AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-4717
SELECT ALL COUNT ( * ) col2, 24 AS col1
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL + COUNT( * ) * - + 33 * - 15 + + + COUNT( - 91 )
----
496

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + COUNT ( * ) * - + 33 * - 15 + + + COUNT ( - 91 )
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ( - NULLIF ( - COUNT( * ), + + 87 ) ) + COUNT( * ) + - - 1 + + 79 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4719
SELECT ( - NULLIF ( - COUNT ( * ), + + 87 ) ) + COUNT ( * ) + - - 1 + + 79 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL 95 AS col2, COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL 95 AS col2, COUNT ( * )
----
95
1

query I rowsort
SELECT + 34 + 54
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT + - 31 * + + COALESCE ( + 70, + 85, - CASE - 6 WHEN - COUNT( * ) THEN 9 * 2 WHEN + 17 THEN NULL END ) AS col1
----
-2170

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + - 31 * + + COALESCE ( + 70, + 85, - CASE - 6 WHEN - COUNT ( * ) THEN 9 * 2 WHEN + 17 THEN NULL END ) AS col1
----
-2170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT CAST( NULL AS SIGNED ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT CAST ( NULL AS INTEGER ) * 99
----
NULL

query I rowsort
SELECT ALL ( 98 ) + + 65 + - 50
----
113

query I rowsort
SELECT 47 + + + 83
----
130

query II rowsort
SELECT 2, + ( - 58 ) AS col1
----
2
-58

query I rowsort
SELECT DISTINCT + 19 + - 39 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT 96 DIV - 88
----
-1

skipif mysql # not compatible
query I rowsort label-4729
SELECT 96 / - 88
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL - CASE 56 WHEN - 78 * - 50 - 49 * + 93 THEN NULL WHEN - + NULLIF ( - + 29, 84 / + COUNT( * ) ) + - 48 THEN - 88 ELSE MAX( DISTINCT 89 ) * - 89 + + 33 END + - 10
----
7878

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - CASE 56 WHEN - 78 * - 50 - 49 * + 93 THEN NULL WHEN - + NULLIF ( - + 29, 84 / + COUNT ( * ) ) + - 48 THEN - 88 ELSE MAX ( DISTINCT 89 ) * - 89 + + 33 END + - 10
----
7878

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT - - COUNT( * ), 34 * COUNT( * ) + 56 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-4731
SELECT - - COUNT ( * ), 34 * COUNT ( * ) + 56 AS col1
----
1
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4732
SELECT DISTINCT + 69 DIV - + NULLIF ( + COALESCE ( - + 71, 95 + - 62 ), - CAST( NULL AS DECIMAL ) * - COUNT( * ) + - 91 + 77 * - - 44 - - - 7 ) * + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + 69 / - + NULLIF ( + COALESCE ( - + 71, 95 + - 62 ), - CAST ( NULL AS REAL ) * - COUNT ( * ) + - 91 + 77 * - - 44 - - - 7 ) * + + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL CAST( NULL AS SIGNED ) + - - 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL CAST ( NULL AS INTEGER ) + - - 2 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4734
SELECT ( 47 ) DIV + 55 * + 14 AS col2, + 51 AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-4734
SELECT ( 47 ) / + 55 * + 14 AS col2, + 51 AS col2
----
0
51

query II rowsort
SELECT ALL ( - 6 ) + - + 48 + - 36, - 53 AS col0
----
-90
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT COUNT( * ) * - 94 * + 4 AS col1
----
-376

skipif mysql # not compatible
query I rowsort label-4736
SELECT COUNT ( * ) * - 94 * + 4 AS col1
----
-376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT CAST( + - 5 AS SIGNED ) + - 23 * + - 92 AS col1
----
2111

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT CAST ( + - 5 AS INTEGER ) + - 23 * + - 92 AS col1
----
2111

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4738
SELECT ALL CAST( - + 92 AS SIGNED ) + - + CAST( NULL AS DECIMAL ) * + 61 - - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL CAST ( - + 92 AS INTEGER ) + - + CAST ( NULL AS REAL ) * + 61 - - 32 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + ( - 64 ), - 62, - 21 - - 26 ) * 96
----
6144

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT DISTINCT 7 + - + COALESCE ( 6, - + 68, - 66 ) DIV - 39 - + 57 * + 67 AS col0
----
-3812

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT 7 + - + COALESCE ( 6, - + 68, - 66 ) / - 39 - + 57 * + 67 AS col0
----
-3812

query I rowsort
SELECT ALL 66 + + ( + 83 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL 42 - - + 23 * NULLIF ( - + COUNT( ALL + 6 ), - 43 * - 98 - + 7 * + + 36 / - 5 + + AVG ( - 61 ) ) * - 65 AS col0
----
1537

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 42 - - + 23 * NULLIF ( - + COUNT ( ALL + 6 ), - 43 * - 98 - + 7 * + + 36 / - 5 + + AVG ( - 61 ) ) * - 65 AS col0
----
1537

query I rowsort
SELECT DISTINCT 71 - - 63
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT ( 11 ) * + 94 DIV + 47 + 99 + - 87 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT ( 11 ) * + 94 / + 47 + 99 + - 87 AS col1
----
34

query I rowsort
SELECT - ( + 69 ) * + + NULLIF ( 8, - 96 ) + - - 21
----
-531

query I rowsort
SELECT 81 * - - 66
----
5346

query I rowsort
SELECT 56 + + 1 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT + + 84 DIV NULLIF ( + 81, - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + + 84 / NULLIF ( + 81, - 5 )
----
1

query I rowsort
SELECT + 76 * + + 7 + + 45 AS col1
----
577

query I rowsort
SELECT ALL + - 59 * 88 AS col1
----
-5192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4751
SELECT ALL - CASE - 50 WHEN + NULLIF ( + 16, 38 ) + 48 + 7 * - 22 THEN + CASE - - COUNT( DISTINCT 98 ) WHEN - - 53 THEN NULL ELSE ( 24 ) DIV - - 97 END * + + 63 * MIN( 65 ) + CASE + 17 WHEN + 51 THEN NULL WHEN 9 THEN NULL WHEN - 57 * - 94 - + 38 THEN 51 * - 8 ELSE CAST( 41 AS SIGNED ) END WHEN CASE + 54 WHEN MIN( 60 ) THEN - 41 * SUM( - 16 ) END THEN ( 49 ) * COUNT( * ) ELSE 70 * + ( 5 ) END
----
-350

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - CASE - 50 WHEN + NULLIF ( + 16, 38 ) + 48 + 7 * - 22 THEN + CASE - - COUNT ( DISTINCT 98 ) WHEN - - 53 THEN NULL ELSE ( 24 ) / - - 97 END * + + 63 * MIN ( 65 ) + CASE + 17 WHEN + 51 THEN NULL WHEN 9 THEN NULL WHEN - 57 * - 94 - + 38 THEN 51 * - 8 ELSE CAST ( 41 AS INTEGER ) END WHEN CASE + 54 WHEN MIN ( 60 ) THEN - 41 * SUM ( - 16 ) END THEN ( 49 ) * COUNT ( * ) ELSE 70 * + ( 5 ) END
----
-350

query I rowsort
SELECT ALL - - 46 * - - ( + ( - - 37 ) ) * - + 6
----
-10212

query I rowsort
SELECT ALL NULLIF ( - 46, - 86 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT 93 * 65 DIV + ( - 5 ) col0
----
-1209

skipif mysql # not compatible
query I rowsort label-4754
SELECT 93 * 65 / + ( - 5 ) col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL + + ( + - 19 ) * - COUNT( * ) col2
----
19

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + + ( + - 19 ) * - COUNT ( * ) col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT - + 17 * + - CAST( NULL AS SIGNED ) + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - + 17 * + - CAST ( NULL AS INTEGER ) + + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT - 57 - + COUNT( + 48 ) + + 8 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4757
SELECT - 57 - + COUNT ( + 48 ) + + 8 AS col2
----
-50

query I rowsort
SELECT DISTINCT + 39 * 20 * + - 12
----
-9360

query I rowsort
SELECT ALL - - 67 + - - 67 AS col1
----
134

query I rowsort
SELECT + 41 * + 85
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT 18 * - 95 * + 44 + - CASE - 98 WHEN + - 51 + + CASE - 26 WHEN - + 34 THEN NULL WHEN - + 12 THEN + 51 ELSE NULL END THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT 18 * - 95 * + 44 + - CASE - 98 WHEN + - 51 + + CASE - 26 WHEN - + 34 THEN NULL WHEN - + 12 THEN + 51 ELSE NULL END THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 62 * + + 67 AS col1
----
4154

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT ALL + 90 + - - 48, SUM( + - 23 ) AS col0
----
138
-23

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL + 90 + - - 48, SUM ( + - 23 ) AS col0
----
138
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT ALL - - 75 + CAST( - 16 AS SIGNED ) + ( + CASE - 41 WHEN - - 77 * - 27 * + + 4 THEN + 30 + - 40 + + + COUNT( * ) / + + 35 * + ( + 18 ) * + 61 WHEN + + COUNT( ALL 70 ) THEN 77 END ) * - 99 * + + 39 / - - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - - 75 + CAST ( - 16 AS INTEGER ) + ( + CASE - 41 WHEN - - 77 * - 27 * + + 4 THEN + 30 + - 40 + + + COUNT ( * ) / + + 35 * + ( + 18 ) * + 61 WHEN + + COUNT ( ALL 70 ) THEN 77 END ) * - 99 * + + 39 / - - 69 AS col2
----
NULL

query I rowsort
SELECT ALL ( + 66 ) AS col1
----
66

query I rowsort
SELECT ALL - COALESCE ( 64, - 54 * + ( - 76 ), 42 ) + - 31 AS col0
----
-95

query I rowsort
SELECT 41 * + NULLIF ( + 69, + 47 ) * 33 * + 2 AS col0
----
186714

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL 26 + COUNT( DISTINCT 84 ) + - 16 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL 26 + COUNT ( DISTINCT 84 ) + - 16 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT NULLIF ( + 89, + - 53 + - - 57 + 92 - - MIN( 25 ) * 16 ) * - 13 AS col2
----
-1157

skipif mysql # not compatible
query I rowsort label-4769
SELECT NULLIF ( + 89, + - 53 + - - 57 + 92 - - MIN ( 25 ) * 16 ) * - 13 AS col2
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT + 37 * + - 97 * MAX( ALL 58 ) AS col1
----
-208162

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT + 37 * + - 97 * MAX ( ALL 58 ) AS col1
----
-208162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT 21 + - - 12 - - CAST( NULL AS SIGNED ) * + 64 * + CAST( - 12 AS SIGNED ) + + - 64 + + 40 * - 46 * - 86 * NULLIF ( + 66, + 26 * + + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT 21 + - - 12 - - CAST ( NULL AS INTEGER ) * + 64 * + CAST ( - 12 AS INTEGER ) + + - 64 + + 40 * - 46 * - 86 * NULLIF ( + 66, + 26 * + + 56 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4772
SELECT ( + 77 ) * 36 * - 29 + + CAST( NULL AS DECIMAL ) * - 99 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ( + 77 ) * 36 * - 29 + + CAST ( NULL AS REAL ) * - 99 + 66
----
NULL

query I rowsort
SELECT ALL 66 - - NULLIF ( 17, + 59 )
----
83

query I rowsort
SELECT DISTINCT + ( 65 ) * 97
----
6305

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + MAX( DISTINCT - - 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + MAX ( DISTINCT - - 82 ) AS col1
----
82

query I rowsort
SELECT + 48 + + - ( - 21 )
----
69

query I rowsort
SELECT + 7 * + 32 AS col2
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT + 8 DIV + 68 + 47
----
47

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 8 / + 68 + 47
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4779
SELECT ALL 21 * - - ( + - 5 ) - + - 24 DIV + 60 + + + CAST( 71 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL 21 * - - ( + - 5 ) - + - 24 / + 60 + + + CAST ( 71 AS INTEGER )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT 65 DIV + 7 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT 65 / + 7 AS col0
----
9

query I rowsort
SELECT + 77 + 46
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4782
SELECT NULLIF ( + 1, 83 * - 31 + - 8 * + - CAST( NULL AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-4782
SELECT NULLIF ( + 1, 83 * - 31 + - 8 * + - CAST ( NULL AS REAL ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL 0 / + - 23 * + - CASE CASE ( - 29 ) WHEN 78 * - 92 * 10 + + - COUNT( * ) + + NULLIF ( + 17, - - 38 + + - 43 ) + 31 + + 86 + + + ( + COUNT( * ) ) * + 93 * - 59 + + + NULLIF ( + + 61, + + 85 + + 22 ) THEN NULL ELSE + 38 * COUNT( * ) END WHEN 24 THEN NULL WHEN + 44 / + 25 THEN 30 - + 11 * 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL 0 / + - 23 * + - CASE CASE ( - 29 ) WHEN 78 * - 92 * 10 + + - COUNT ( * ) + + NULLIF ( + 17, - - 38 + + - 43 ) + 31 + + 86 + + + ( + COUNT ( * ) ) * + 93 * - 59 + + + NULLIF ( + + 61, + + 85 + + 22 ) THEN NULL ELSE + 38 * COUNT ( * ) END WHEN 24 THEN NULL WHEN + 44 / + 25 THEN 30 - + 11 * 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT 84 * - COUNT( * ) + - - 34 AS col2, ( - 90 )
----
-50
-90

skipif mysql # not compatible
query II rowsort label-4784
SELECT 84 * - COUNT ( * ) + - - 34 AS col2, ( - 90 )
----
-50
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT ALL + 36 AS col1, + 56 + + MAX( + 7 ) + 23 * + COALESCE ( + + 52, 75 + + 45, - 72 + 85, + 37 ) * 26 * 64 * 85
----
36
169162303

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL + 36 AS col1, + 56 + + MAX ( + 7 ) + 23 * + COALESCE ( + + 52, 75 + + 45, - 72 + 85, + 37 ) * 26 * 64 * 85
----
36
169162303

query I rowsort
SELECT ALL + ( + 5 ) col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT - SUM( DISTINCT CAST( 42 AS SIGNED ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4787
SELECT - SUM ( DISTINCT CAST ( 42 AS INTEGER ) ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - + 7 * + COUNT( * ) + + MAX( DISTINCT + NULLIF ( - 44, + 56 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4788
SELECT - + 7 * + COUNT ( * ) + + MAX ( DISTINCT + NULLIF ( - 44, + 56 ) ) AS col1
----
-51

query I rowsort
SELECT ALL 63 * + 42 AS col1
----
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-4790
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) * + 28 col1
----
1
28

skipif mysql # not compatible
query II rowsort label-4790
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * + 28 col1
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT COUNT( ALL - - 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4791
SELECT COUNT ( ALL - - 30 ) AS col1
----
1

query I rowsort
SELECT + - 5 + - + 71 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + 60 * ( - COUNT( * ) ) * + - 83 + 46 AS col2
----
5026

skipif mysql # not compatible
query I rowsort label-4793
SELECT + 60 * ( - COUNT ( * ) ) * + - 83 + 46 AS col2
----
5026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT + + ( + 59 ) + CAST( + 22 AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4794
SELECT + + ( + 59 ) + CAST ( + 22 AS INTEGER ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4795
SELECT DISTINCT - + 14 + - COUNT( * ) DIV + 2 - - + 84 * + CAST( COUNT( - - 69 ) AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - + 14 + - COUNT ( * ) / + 2 - - + 84 * + CAST ( COUNT ( - - 69 ) AS INTEGER ) AS col2
----
70

query I rowsort
SELECT ALL 52 + 65
----
117

query II rowsort
SELECT 93 col2, 86 * 50 * 38 AS col2
----
93
163400

query I rowsort
SELECT - 5 + 13 + - - 64 * + CASE + AVG ( ALL + 58 ) WHEN + 25 * - - 61 + 89 THEN + 30 END * - 27 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 75 + + - 70 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - 9 * CASE - NULLIF ( 25, + 94 ) WHEN + 38 - - 20 + + - COUNT( * ) THEN NULL WHEN 89 / - 9 THEN 3 WHEN + 24 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - 9 * CASE - NULLIF ( 25, + 94 ) WHEN + 38 - - 20 + + - COUNT ( * ) THEN NULL WHEN 89 / - 9 THEN 3 WHEN + 24 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT + - ( 47 ) DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT + - ( 47 ) / - + 64
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4802
SELECT 29 AS col2, + 45 DIV MAX( + 5 ) AS col2
----
29
9

skipif mysql # not compatible
query II rowsort label-4802
SELECT 29 AS col2, + 45 / MAX ( + 5 ) AS col2
----
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - 61 + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4803
SELECT - 61 + COUNT ( * )
----
-60

query I rowsort
SELECT ALL - 78 - - 84 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL SUM( + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL SUM ( + + 93 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT CAST( - 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT CAST ( - 42 AS INTEGER )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4807
SELECT ALL CAST( NULL AS SIGNED ) AS col1, ( + + 58 )
----
NULL
58

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, ( + + 58 )
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4808
SELECT ALL COALESCE ( + COUNT( * ), 45 DIV 96 + - + 53, - 34 * + 13 ), + CAST( - 2 AS SIGNED ) AS col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL COALESCE ( + COUNT ( * ), 45 / 96 + - + 53, - 34 * + 13 ), + CAST ( - 2 AS INTEGER ) AS col1
----
1
-2

query I rowsort
SELECT ALL 13 * + + 11 AS col0
----
143

query I rowsort
SELECT - 18 * 41 * + 58 col1
----
-42804

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT - 6 * + + 76 * COALESCE ( - - 59, 14 + - 34 DIV - - 50 ) AS col0
----
-26904

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - 6 * + + 76 * COALESCE ( - - 59, 14 + - 34 / - - 50 ) AS col0
----
-26904

query I rowsort
SELECT - 89 - + COALESCE ( - 2, 95 * - + 24 ) AS col1
----
-87

query I rowsort
SELECT DISTINCT + ( COALESCE ( + 81, + 2 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT ALL - 80 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - 80 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4815
SELECT + 70 AS col2, 12 + ( + 88 ) DIV + + 78
----
70
13

skipif mysql # not compatible
query II rowsort label-4815
SELECT + 70 AS col2, 12 + ( + 88 ) / + + 78
----
70
13

query II rowsort
SELECT ALL + 36 AS col0, 89 col0
----
36
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + SUM( DISTINCT + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4817
SELECT + SUM ( DISTINCT + + 48 )
----
48

query I rowsort
SELECT - 17 * 5 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4819
SELECT + COUNT( * ) AS col0, + 95 * - + SUM( + + COALESCE ( + - 1, - 12, + 89 ) ) * - 28 + + CAST( - 97 AS SIGNED ) + + COUNT( * )
----
1
-2756

skipif mysql # not compatible
query II rowsort label-4819
SELECT + COUNT ( * ) AS col0, + 95 * - + SUM ( + + COALESCE ( + - 1, - 12, + 89 ) ) * - 28 + + CAST ( - 97 AS INTEGER ) + + COUNT ( * )
----
1
-2756

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT ALL - - 84 DIV 53 + 30 + - 79
----
-48

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - - 84 / 53 + 30 + - 79
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT - 18 AS col2, - COALESCE ( + COUNT( * ), - COUNT( * ) ) col2
----
-18
-1

skipif mysql # not compatible
query II rowsort label-4821
SELECT - 18 AS col2, - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) col2
----
-18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + MAX( DISTINCT - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4822
SELECT + MAX ( DISTINCT - 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + MAX( + 18 ) * + 66 * + + 76 AS col2
----
90288

skipif mysql # not compatible
query I rowsort label-4823
SELECT + MAX ( + 18 ) * + 66 * + + 76 AS col2
----
90288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL 75 * + 36 + + CAST( NULL AS SIGNED ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL 75 * + 36 + + CAST ( NULL AS INTEGER ) + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL COUNT( * ) * + 63 + + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL COUNT ( * ) * + 63 + + + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4826
SELECT + - 31 DIV - + MIN( - NULLIF ( - 6, - 62 ) ) + + 85 + - + 28 * - - ( + + 88 )
----
-2374

skipif mysql # not compatible
query I rowsort label-4826
SELECT + - 31 / - + MIN ( - NULLIF ( - 6, - 62 ) ) + + 85 + - + 28 * - - ( + + 88 )
----
-2374

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4827
SELECT + - COUNT( * ), COUNT( * ) DIV - 54 * + 79 - - - ( + 92 ) AS col0
----
-1
-92

skipif mysql # not compatible
query II rowsort label-4827
SELECT + - COUNT ( * ), COUNT ( * ) / - 54 * + 79 - - - ( + 92 ) AS col0
----
-1
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - 40 * 66 + - - COUNT( * ) AS col0
----
-2639

skipif mysql # not compatible
query I rowsort label-4828
SELECT - 40 * 66 + - - COUNT ( * ) AS col0
----
-2639

query I rowsort
SELECT + - 70 * + 50 * - 50
----
175000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL - 64 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - 64 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - - CASE + - 72 WHEN NULLIF ( - 96, - ( 53 ) ) THEN NULL WHEN 83 THEN 60 * + 22 + - + 23 WHEN 60 / - 38 + + 93 + - 87 * + 12 + - - NULLIF ( + 96, COUNT( * ) ) THEN NULL ELSE NULL END * + 14 + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT - - CASE + - 72 WHEN NULLIF ( - 96, - ( 53 ) ) THEN NULL WHEN 83 THEN 60 * + 22 + - + 23 WHEN 60 / - 38 + + 93 + - 87 * + 12 + - - NULLIF ( + 96, COUNT ( * ) ) THEN NULL ELSE NULL END * + 14 + + 12
----
NULL

query I rowsort
SELECT DISTINCT + ( + 49 )
----
49

query II rowsort
SELECT ALL + - 19 AS col0, + 5 col0
----
-19
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT + 59 col2, - MIN( ALL 38 ) AS col0
----
59
-38

skipif mysql # not compatible
query II rowsort label-4834
SELECT + 59 col2, - MIN ( ALL 38 ) AS col0
----
59
-38

query II rowsort
SELECT DISTINCT - + 81 * - 91 + + - 86 * + 60 * - + 46 + + 36 AS col2, 84 AS col0
----
244767
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - NULLIF ( ( - 32 ), - COUNT( * ) + + + 15 * - - 21 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4836
SELECT - NULLIF ( ( - 32 ), - COUNT ( * ) + + + 15 * - - 21 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT 87 * - MIN( - 22 ) + - + 96 + + 56 - ( + ( + COUNT( + 28 ) ) )
----
1873

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT 87 * - MIN ( - 22 ) + - + 96 + + 56 - ( + ( + COUNT ( + 28 ) ) )
----
1873

query I rowsort
SELECT ALL + ( - COALESCE ( + 25, - 90 + - 92 ) ) AS col1
----
-25

query I rowsort
SELECT + - 68 * + 67 + + - 92 * 91 * - 5 * 32 + - - 53
----
1335017

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT NULLIF ( + + COUNT( DISTINCT 91 ), - - 29 ) - + - 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT NULLIF ( + + COUNT ( DISTINCT 91 ), - - 29 ) - + - 27 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL 25 * - ( - COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL 25 * - ( - COUNT ( * ) ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4842
SELECT COUNT( * ) * - 76 col0, CAST( NULL AS SIGNED ) AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-4842
SELECT COUNT ( * ) * - 76 col0, CAST ( NULL AS INTEGER ) AS col0
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL - 83 * - COUNT( * ) * - + 87
----
-7221

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - 83 * - COUNT ( * ) * - + 87
----
-7221

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT COUNT( * ) - + SUM( ALL + + 78 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4844
SELECT COUNT ( * ) - + SUM ( ALL + + 78 ) AS col1
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4845
SELECT 66 * 29, 29 + + + CAST( NULL AS DECIMAL ) AS col1
----
1914
NULL

skipif mysql # not compatible
query II rowsort label-4845
SELECT 66 * 29, 29 + + + CAST ( NULL AS REAL ) AS col1
----
1914
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT COUNT( * ) + + 2 AS col1, ( - - MIN( - ( + 8 ) ) ) col0
----
3
-8

skipif mysql # not compatible
query II rowsort label-4846
SELECT COUNT ( * ) + + 2 AS col1, ( - - MIN ( - ( + 8 ) ) ) col0
----
3
-8

query I rowsort
SELECT DISTINCT 24 * - 65 col1
----
-1560

query I rowsort
SELECT ALL 83 * - 67 AS col0
----
-5561

onlyif mysql # DIV for integer division: 
query II rowsort label-4849
SELECT 85 DIV + + 3, + 11 + - - 47 AS col0
----
28
58

skipif mysql # not compatible
query II rowsort label-4849
SELECT 85 / + + 3, + 11 + - - 47 AS col0
----
28
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT CASE - 23 WHEN - COUNT( DISTINCT ( - + 69 ) ) THEN NULL WHEN - ( + 26 ) + + + 9 THEN 10 * - 29 WHEN + + 4 THEN - ( - - 51 ) + - 33 * 58 * 67 / + 16 END + + + 31 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT CASE - 23 WHEN - COUNT ( DISTINCT ( - + 69 ) ) THEN NULL WHEN - ( + 26 ) + + + 9 THEN 10 * - 29 WHEN + + 4 THEN - ( - - 51 ) + - 33 * 58 * 67 / + 16 END + + + 31 * 37 AS col0
----
NULL

query I rowsort
SELECT ALL - 57 + - 85 + + 68
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - 48 * + + ( COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - 48 * + + ( COUNT ( * ) )
----
-48

query I rowsort
SELECT DISTINCT - 18 + - + 41
----
-59

query I rowsort
SELECT DISTINCT + + 35 + - 58 * 6 AS col1
----
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - - MAX( ALL + 94 ) + - - ( + - 32 ) * + 47
----
-1410

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - - MAX ( ALL + 94 ) + - - ( + - 32 ) * + 47
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + + CASE + NULLIF ( + + 16, 78 ) WHEN + 72 + + 69 THEN NULL WHEN + 77 * + + 50 * 31 + - 62 THEN - ( MAX( - 25 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT + + CASE + NULLIF ( + + 16, 78 ) WHEN + 72 + + 69 THEN NULL WHEN + 77 * + + 50 * 31 + - 62 THEN - ( MAX ( - 25 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT 24 * - CAST( NULL AS SIGNED ) * - 57 * + + 24 / 27 + + 28 - + 30 + SUM( ALL + 48 ) + + 28 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT 24 * - CAST ( NULL AS INTEGER ) * - 57 * + + 24 / 27 + + 28 - + 30 + SUM ( ALL + 48 ) + + 28 + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - + NULLIF ( + NULLIF ( + 46, - + 40 + - 74 + - COUNT( * ) * + 3 ), 31 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - + NULLIF ( + NULLIF ( + 46, - + 40 + - 74 + - COUNT ( * ) * + 3 ), 31 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT 47 + - + COALESCE ( + ( - 49 ), + 18 + + + 66 * - - 56 + + 99 - - NULLIF ( + 25, + 96 + COUNT( * ) + - CAST( - 92 AS SIGNED ) + - 65 / - 59 * 56 ) + - - ( 34 ), + - 87 * 84 )
----
96

skipif mysql # not compatible
query I rowsort label-4859
SELECT 47 + - + COALESCE ( + ( - 49 ), + 18 + + + 66 * - - 56 + + 99 - - NULLIF ( + 25, + 96 + COUNT ( * ) + - CAST ( - 92 AS INTEGER ) + - 65 / - 59 * 56 ) + - - ( 34 ), + - 87 * 84 )
----
96

query I rowsort
SELECT + 78 * + + 22 * - - 10 + - + NULLIF ( + 98, 49 ) + + 37 * + ( 67 ) * 28 AS col0
----
86474

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT ALL + 53 DIV + + 39
----
1

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + 53 / + + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT 26 + + - 99 + + ( + COUNT( * ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4862
SELECT 26 + + - 99 + + ( + COUNT ( * ) ) AS col0
----
-72

query I rowsort
SELECT 85 * + 28 - - 19
----
2399

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT COUNT( * ) - - - 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4864
SELECT COUNT ( * ) - - - 44 AS col1
----
-43

query I rowsort
SELECT DISTINCT - 59 * 85 + + + 76 AS col2
----
-4939

query I rowsort
SELECT 50 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL - 24 * + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - 24 * + + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT 56 + + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4868
SELECT 56 + + + COUNT ( * )
----
57

query I rowsort
SELECT