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 # CAST syntax: SIGNED type: 
query I rowsort label-0
SELECT CAST( + 19 AS SIGNED ) * - 59
----
-1121

skipif mysql # not compatible
query I rowsort label-0
SELECT CAST ( + 19 AS INTEGER ) * - 59
----
-1121

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT 28 DIV + 41 + + ( 87 ) * 82
----
7134

skipif mysql # not compatible
query I rowsort label-1
SELECT 28 / + 41 + + ( 87 ) * 82
----
7134

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

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

query I rowsort
SELECT ALL 40 + 62 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL 98 + - - 47 + + COUNT( * ) * + 75 AS col1
----
220

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL 98 + - - 47 + + COUNT ( * ) * + 75 AS col1
----
220

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

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

query II rowsort
SELECT ALL - 83 + + + 88, ( - 44 ) AS col1
----
5
-44

query I rowsort
SELECT ALL - - 7 col1
----
7

query I rowsort
SELECT DISTINCT + 29 * + 24 + - 70
----
626

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

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

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

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

skipif mysql # not compatible
query I rowsort label-11
SELECT - + SUM ( - 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL - NULLIF ( + 88, - ( - COUNT( * ) ) * 45 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - NULLIF ( + 88, - ( - COUNT ( * ) ) * 45 ) col2
----
-88

query I rowsort
SELECT + ( 23 ) + - 89
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT + 87 * COUNT( * ) + + + 46
----
133

skipif mysql # not compatible
query I rowsort label-14
SELECT + 87 * COUNT ( * ) + + + 46
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT + MAX( - 15 ) * 68
----
-1020

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + MAX ( - 15 ) * 68
----
-1020

query I rowsort
SELECT ALL - - 49 + 43
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT ALL CAST( SUM( ALL + 48 ) AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL CAST ( SUM ( ALL + 48 ) AS INTEGER ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT - - COUNT( * ) * + COALESCE ( 46, + + CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + 66 ELSE NULL END ) + + 28 * 51 AS col0
----
1474

skipif mysql # not compatible
query I rowsort label-18
SELECT - - COUNT ( * ) * + COALESCE ( 46, + + CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + 66 ELSE NULL END ) + + 28 * 51 AS col0
----
1474

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

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT - 77 - - ( ( + CAST ( AVG ( + 81 ) AS INTEGER ) ) )
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-20
SELECT DISTINCT - ( 38 ) * + + 40 - + - 25 DIV - 27, ( - 81 ) + - 25 AS col0
----
-1520
-106

skipif mysql # not compatible
query II rowsort label-20
SELECT DISTINCT - ( 38 ) * + + 40 - + - 25 / - 27, ( - 81 ) + - 25 AS col0
----
-1520
-106

query I rowsort
SELECT ALL 60 col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT - 62 + + - NULLIF ( - CAST( NULL AS SIGNED ), - 9 * 82 + 93 - ( CASE + + 78 WHEN + 14 THEN NULL WHEN + - 80 * + - 9 * - - CAST( 47 AS SIGNED ) + + 16 + + 64 / 6 THEN - - COUNT( * ) END ) + - 12 * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT - 62 + + - NULLIF ( - CAST ( NULL AS INTEGER ), - 9 * 82 + 93 - ( CASE + + 78 WHEN + 14 THEN NULL WHEN + - 80 * + - 9 * - - CAST ( 47 AS INTEGER ) + + 16 + + 64 / 6 THEN - - COUNT ( * ) END ) + - 12 * + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-23
SELECT ALL - + 57 - + + 39, 87 * - 24 / CAST( NULL AS DECIMAL ) col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-23
SELECT ALL - + 57 - + + 39, 87 * - 24 / CAST ( NULL AS REAL ) col0
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT 84 + - - 52 + - MIN( ALL + NULLIF ( - ( - 40 ), + - 54 ) ) * - 88 * 1 * 52 * - 57 AS col1
----
-10433144

skipif mysql # not compatible
query I rowsort label-24
SELECT 84 + - - 52 + - MIN ( ALL + NULLIF ( - ( - 40 ), + - 54 ) ) * - 88 * 1 * 52 * - 57 AS col1
----
-10433144

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

skipif mysql # not compatible
query I rowsort label-25
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + NULLIF ( + 55, - - 11 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT + 89 + - 83 DIV - 92
----
89

skipif mysql # not compatible
query I rowsort label-26
SELECT + 89 + - 83 / - 92
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT + 29 + + - MAX( + ( - - 48 ) ) * + 58 * - + 77 AS col1
----
214397

skipif mysql # not compatible
query I rowsort label-27
SELECT + 29 + + - MAX ( + ( - - 48 ) ) * + 58 * - + 77 AS col1
----
214397

query I rowsort
SELECT - - 61 col2
----
61

query I rowsort
SELECT + 3 + + ( 74 ) col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT ALL + 19 * + ( + 40 ) * - - CAST( NULL AS SIGNED ) - + 89 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL + 19 * + ( + 40 ) * - - CAST ( NULL AS INTEGER ) - + 89 * 67
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-32
SELECT DISTINCT - ( + + 60 ) * + 21, + 90 + + NULLIF ( - 79, 81 + - - 73 ) - 79 + + COUNT( ALL - 94 ) * - 37 - - ( + 74 ) AS col1
----
-1260
-31

skipif mysql # not compatible
query II rowsort label-32
SELECT DISTINCT - ( + + 60 ) * + 21, + 90 + + NULLIF ( - 79, 81 + - - 73 ) - 79 + + COUNT ( ALL - 94 ) * - 37 - - ( + 74 ) AS col1
----
-1260
-31

query I rowsort
SELECT ALL 42 - 10 - + ( 29 ) + 14 AS col0
----
17

query I rowsort
SELECT 58 * + 72 col1
----
4176

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-36
SELECT - 11 AS col0, NULLIF ( NULLIF ( 28, - ( ( CAST( NULL AS SIGNED ) ) ) ), 8 ) AS col2
----
-11
28

skipif mysql # not compatible
query II rowsort label-36
SELECT - 11 AS col0, NULLIF ( NULLIF ( 28, - ( ( CAST ( NULL AS INTEGER ) ) ) ), 8 ) AS col2
----
-11
28

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT 36 DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT 36 / 18
----
2

query II rowsort
SELECT ALL 65, + 46 AS col1
----
65
46

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

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

query I rowsort
SELECT 48 * + 53
----
2544

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

skipif mysql # not compatible
query I rowsort label-41
SELECT 90 / + + 85
----
1

query I rowsort
SELECT DISTINCT 0 + - 33 + - + 15 * + - 66
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL 58 + - 19 * + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL 58 + - 19 * + COUNT ( * ) AS col2
----
39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT 3 DIV 90 * - + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-45
SELECT 3 / 90 * - + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL 35 + - 79 / - + CASE - - 3 WHEN 16 THEN NULL WHEN + + 59 THEN NULL WHEN + - 26 THEN + - 77 + - + COALESCE ( + + 20, - - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL 35 + - 79 / - + CASE - - 3 WHEN 16 THEN NULL WHEN + + 59 THEN NULL WHEN + - 26 THEN + - 77 + - + COALESCE ( + + 20, - - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT 74 * - 22
----
-1628

query I rowsort
SELECT ALL 52 * - 60
----
-3120

query I rowsort
SELECT 80 + - 37
----
43

query I rowsort
SELECT DISTINCT - 15 + + 10
----
-5

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

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

query I rowsort
SELECT ALL 99 + 76 + + 36 * + ( 61 ) * + 55 + - 95
----
120860

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL COUNT( * ) + + + 20
----
21

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL COUNT ( * ) + + + 20
----
21

query I rowsort
SELECT ALL + ( + 79 ) + 65 + - 45 + - 54 + + 55 * + - 83 * - 66
----
301335

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

skipif mysql # not compatible
query I rowsort label-55
SELECT COUNT ( ( - 59 ) )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-57
SELECT + 44 + SUM( - 15 ) AS col0, 93 * + 60 * - 38
----
29
-212040

skipif mysql # not compatible
query II rowsort label-57
SELECT + 44 + SUM ( - 15 ) AS col0, 93 * + 60 * - 38
----
29
-212040

query I rowsort
SELECT ALL + 41 + - - 24 + + 30
----
95

query II rowsort
SELECT + 88 * 20 * + + 67 col2, + ( + 11 ) + - + 71 col1
----
117920
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT - 97 DIV NULLIF ( 29, 5 ) * ( + 34 ) + 45 - - 14 + 84 * - - 2 * + 65 * - 15
----
-163843

skipif mysql # not compatible
query I rowsort label-60
SELECT - 97 / NULLIF ( 29, 5 ) * ( + 34 ) + 45 - - 14 + 84 * - - 2 * + 65 * - 15
----
-163843

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-62
SELECT DISTINCT - COALESCE ( ( - 39 ), + ( - CASE - 31 WHEN - 68 THEN - 10 END ), + + NULLIF ( - ( + COUNT( * ) ), + - 55 ) DIV - 74 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT - COALESCE ( ( - 39 ), + ( - CASE - 31 WHEN - 68 THEN - 10 END ), + + NULLIF ( - ( + COUNT ( * ) ), + - 55 ) / - 74 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL - - SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - - SUM ( 0 )
----
0

query I rowsort
SELECT DISTINCT ( - - ( - 72 ) ) - - 50 AS col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-65
SELECT DISTINCT + 47 / CAST( NULL AS DECIMAL ) + - 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT + 47 / CAST ( NULL AS REAL ) + - 62 col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( 90, - 39 - + - 65 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT - ( 89 ) - - - 30 DIV + - ( + - 56 ) * COUNT( * ) + - 91 - NULLIF ( + 85, + + CAST( - - 77 AS SIGNED ) ) + + + 84
----
-181

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - ( 89 ) - - - 30 / + - ( + - 56 ) * COUNT ( * ) + - 91 - NULLIF ( + 85, + + CAST ( - - 77 AS INTEGER ) ) + + + 84
----
-181

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

query I rowsort
SELECT ALL + 23 * - 17 * + 26 AS col1
----
-10166

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT - + COUNT( - 64 ) - CASE ( - + 70 ) WHEN 60 * + + 82 * + 69 + ( - ( NULLIF ( + COUNT( * ), - + 49 * + 89 + + 55 ) ) ) + + 97 - + + ( 72 ) - + + ( + 61 ) + + 51 + - + 4 / 34 + - + 69 + + 63 + - + 46 * - COUNT( * ) * 64 THEN NULL WHEN + - 51 + - - 15 THEN 34 END * + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT - + COUNT ( - 64 ) - CASE ( - + 70 ) WHEN 60 * + + 82 * + 69 + ( - ( NULLIF ( + COUNT ( * ), - + 49 * + 89 + + 55 ) ) ) + + 97 - + + ( 72 ) - + + ( + 61 ) + + 51 + - + 4 / 34 + - + 69 + + 63 + - + 46 * - COUNT ( * ) * 64 THEN NULL WHEN + - 51 + - - 15 THEN 34 END * + - 62 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT DISTINCT NULLIF ( - CASE 63 WHEN - + COUNT( * ) + + - CAST( + 10 AS SIGNED ) * 26 THEN + + 85 END, CAST( NULL AS SIGNED ) * 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT NULLIF ( - CASE 63 WHEN - + COUNT ( * ) + + - CAST ( + 10 AS INTEGER ) * 26 THEN + + 85 END, CAST ( NULL AS INTEGER ) * 41 ) AS col0
----
NULL

query I rowsort
SELECT ALL 10 * + 41
----
410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT DISTINCT NULLIF ( - 62, COALESCE ( 97, - 85, - MIN( DISTINCT + 72 ) ) / + 71 + - 92 - + + 62 + + 18 - + AVG ( + CAST( NULL AS SIGNED ) ) / - COALESCE ( 3, MIN( ALL - 48 ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT NULLIF ( - 62, COALESCE ( 97, - 85, - MIN ( DISTINCT + 72 ) ) / + 71 + - 92 - + + 62 + + 18 - + AVG ( + CAST ( NULL AS INTEGER ) ) / - COALESCE ( 3, MIN ( ALL - 48 ) ) )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-74
SELECT - COUNT( * ) - - 73 + 56 * + + 68 * + COUNT( * ) * 33 col2, 2
----
125736
2

skipif mysql # not compatible
query II rowsort label-74
SELECT - COUNT ( * ) - - 73 + 56 * + + 68 * + COUNT ( * ) * 33 col2, 2
----
125736
2

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-77
SELECT DISTINCT 60, - CAST( NULL AS SIGNED ) AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-77
SELECT DISTINCT 60, - CAST ( NULL AS INTEGER ) AS col1
----
60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT - SUM( ALL + 20 ) + + COUNT( * ) DIV + - 95 * 21
----
-20

skipif mysql # not compatible
query I rowsort label-78
SELECT - SUM ( ALL + 20 ) + + COUNT ( * ) / + - 95 * 21
----
-20

query II rowsort
SELECT 11 AS col1, + 41 AS col2
----
11
41

onlyif mysql # aggregate syntax: 
query II rowsort label-80
SELECT - 67 AS col0, COALESCE ( + 45, 49 * + COUNT( * ) + - - NULLIF ( + 25, + 57 ) + + 43 + 4 ) + - 42 AS col1
----
-67
3

skipif mysql # not compatible
query II rowsort label-80
SELECT - 67 AS col0, COALESCE ( + 45, 49 * + COUNT ( * ) + - - NULLIF ( + 25, + 57 ) + + 43 + 4 ) + - 42 AS col1
----
-67
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT - 65 + AVG ( 71 ) + CAST( NULL AS SIGNED ) + 3 * + - 51 * COUNT( DISTINCT 95 ) - COUNT( ALL + + CAST( + 24 AS SIGNED ) ) * + 80 * COUNT( * ) * MAX( 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT - 65 + AVG ( 71 ) + CAST ( NULL AS INTEGER ) + 3 * + - 51 * COUNT ( DISTINCT 95 ) - COUNT ( ALL + + CAST ( + 24 AS INTEGER ) ) * + 80 * COUNT ( * ) * MAX ( 76 ) AS col0
----
NULL

query II rowsort
SELECT 54, + 82 AS col1
----
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT - NULLIF ( - 64, + 11 / - 77 * - CASE + 59 WHEN - - CASE 20 WHEN - 80 + - - 71 + ( - - 23 ) * COUNT( * ) * - COUNT( + - 30 ) - 98 THEN + - 82 ELSE NULL END + + ( 1 ) THEN - + 69 + - + COUNT( * ) * - MIN( ALL - 87 ) * + COUNT( * ) END ) + + 58 + + 47
----
169

skipif mysql # not compatible
query I rowsort label-83
SELECT - NULLIF ( - 64, + 11 / - 77 * - CASE + 59 WHEN - - CASE 20 WHEN - 80 + - - 71 + ( - - 23 ) * COUNT ( * ) * - COUNT ( + - 30 ) - 98 THEN + - 82 ELSE NULL END + + ( 1 ) THEN - + 69 + - + COUNT ( * ) * - MIN ( ALL - 87 ) * + COUNT ( * ) END ) + + 58 + + 47
----
169

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL - 81 * COUNT ( * ) + 40 AS col1
----
-41

query II rowsort
SELECT ( + - 15 ) AS col0, 87 AS col2
----
-15
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-88
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-88
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT 29 * - 83 - + 94 col1
----
-2501

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-91
SELECT + 43 col2, + COUNT( * ) * + CAST( 86 AS SIGNED )
----
43
86

skipif mysql # not compatible
query II rowsort label-91
SELECT + 43 col2, + COUNT ( * ) * + CAST ( 86 AS INTEGER )
----
43
86

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

query I rowsort
SELECT DISTINCT - 87 * + - NULLIF ( 47, + 95 ) + - + 13 col1
----
4076

query I rowsort
SELECT COALESCE ( + 32, + - 85 ) AS col1
----
32

query I rowsort
SELECT + 39 + 53 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL - ( - - 63 ) * COUNT( * ) * ( - COUNT( - 52 ) ) - + + 54 col2
----
9

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - ( - - 63 ) * COUNT ( * ) * ( - COUNT ( - 52 ) ) - + + 54 col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-97
SELECT + 42 * + CAST( 7 AS SIGNED ) * - + ( - + 62 ) + - 82 * 16 + + 63 AS col1
----
16979

skipif mysql # not compatible
query I rowsort label-97
SELECT + 42 * + CAST ( 7 AS INTEGER ) * - + ( - + 62 ) + - 82 * 16 + + 63 AS col1
----
16979

query I rowsort
SELECT 90 * 90 * 89 + + 26 AS col0
----
720926

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL 25 * + - COUNT( * ) - - ( 44 ) - - 17 * 12 - + 54 * - 42 col1
----
2491

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL 25 * + - COUNT ( * ) - - ( 44 ) - - 17 * 12 - + 54 * - 42 col1
----
2491

query I rowsort
SELECT + CASE + 80 WHEN + + 7 * 9 THEN NULL ELSE + 21 END AS col1
----
21

query I rowsort
SELECT ALL + - 77 * 53 - 35
----
-4116

query I rowsort
SELECT + + 24 * 11 * + 67
----
17688

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

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

query I rowsort
SELECT DISTINCT 9 * + 60
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT - COUNT( * ) * - 42 * - COUNT( * ) + 38 + 1 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-105
SELECT - COUNT ( * ) * - 42 * - COUNT ( * ) + 38 + 1 AS col1
----
-3

query I rowsort
SELECT + + 63 * - 54 * - + 57 + - ( + + ( + 21 ) ) AS col0
----
193893

onlyif mysql # DIV for integer division: 
query II rowsort label-107
SELECT ALL + - 27 AS col0, 26 + 66 DIV + + 98
----
-27
26

skipif mysql # not compatible
query II rowsort label-107
SELECT ALL + - 27 AS col0, 26 + 66 / + + 98
----
-27
26

query II rowsort
SELECT DISTINCT + 41, 68 * + 90 AS col2
----
41
6120

query I rowsort
SELECT + 11 + 27 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + CASE + - 59 WHEN AVG ( ALL - 57 ) THEN NULL WHEN - + 14 - ( + + 82 ) THEN 38 + + - COUNT( * ) ELSE NULL END * + 43 - 24 + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT + CASE + - 59 WHEN AVG ( ALL - 57 ) THEN NULL WHEN - + 14 - ( + + 82 ) THEN 38 + + - COUNT ( * ) ELSE NULL END * + 43 - 24 + - 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-111
SELECT ALL 55 DIV 73, CAST( 41 AS SIGNED ) * 10 AS col2
----
0
410

skipif mysql # not compatible
query II rowsort label-111
SELECT ALL 55 / 73, CAST ( 41 AS INTEGER ) * 10 AS col2
----
0
410

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

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

query I rowsort
SELECT + + 6 + - + 38 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT + - 47 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-114
SELECT + - 47 / + 68
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-117
SELECT - 77 + + - 55 DIV 48 AS col0, + 56
----
-78
56

skipif mysql # not compatible
query II rowsort label-117
SELECT - 77 + + - 55 / 48 AS col0, + 56
----
-78
56

onlyif mysql # aggregate syntax: 
query II rowsort label-118
SELECT ALL 83 + + 6 col1, - COUNT( * ) AS col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-118
SELECT ALL 83 + + 6 col1, - COUNT ( * ) AS col2
----
89
-1

query I rowsort
SELECT - ( + NULLIF ( - 71, + 40 ) ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL + 96 + COUNT( * ) + - 80
----
17

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + 96 + COUNT ( * ) + - 80
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + SUM( + + 31 ) * 37
----
1147

skipif mysql # not compatible
query I rowsort label-121
SELECT + SUM ( + + 31 ) * 37
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT DISTINCT CASE - - 32 WHEN - 20 THEN + NULLIF ( 9, + 40 + + 56 ) * 72 + COUNT( * ) + + 54 WHEN 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT CASE - - 32 WHEN - 20 THEN + NULLIF ( 9, + 40 + + 56 ) * 72 + COUNT ( * ) + + 54 WHEN 58 THEN NULL END
----
NULL

query II rowsort
SELECT ALL ( - 12 ), 92 AS col2
----
-12
92

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT ALL + 69 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL + 69 / - 83 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-125
SELECT - ( - CASE CAST( 38 AS SIGNED ) WHEN 65 * 23 THEN NULL WHEN 48 * + 3 THEN NULL ELSE + 84 END ) DIV - - 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-125
SELECT - ( - CASE CAST ( 38 AS INTEGER ) WHEN 65 * 23 THEN NULL WHEN 48 * + 3 THEN NULL ELSE + 84 END ) / - - 14 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-126
SELECT ALL 23 + - 3 * + COUNT( * ) DIV - 16 * + - NULLIF ( + - SUM( 19 ), + SUM( ALL - + 23 ) * - 82 + + COUNT( * ) DIV - 54 ), + COALESCE ( 93, + 66, + ( + 54 ) ) AS col1
----
23
93

skipif mysql # not compatible
query II rowsort label-126
SELECT ALL 23 + - 3 * + COUNT ( * ) / - 16 * + - NULLIF ( + - SUM ( 19 ), + SUM ( ALL - + 23 ) * - 82 + + COUNT ( * ) / - 54 ), + COALESCE ( 93, + 66, + ( + 54 ) ) AS col1
----
23
93

query II rowsort
SELECT ALL - 97 + - 64 AS col1, - 35 + - 44 + 93 + + ( - - 62 ) + + + 84
----
-161
160

query I rowsort
SELECT 96 col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL + 60 DIV + + 56 - + - 88 * + COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + 60 / + + 56 - + - 88 * + COUNT ( * ) AS col0
----
89

query I rowsort
SELECT + 96 col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT ALL + CAST( + + CAST( + COALESCE ( - - CASE - 59 WHEN - 31 THEN - + AVG ( DISTINCT - 61 ) * + - ( + CASE - 43 WHEN - 4 - - 28 THEN - - 17 * + 74 END ) + + ( NULLIF ( 8, - - 26 ) ) * + 3 END, 79 ) AS SIGNED ) AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + CAST ( + + CAST ( + COALESCE ( - - CASE - 59 WHEN - 31 THEN - + AVG ( DISTINCT - 61 ) * + - ( + CASE - 43 WHEN - 4 - - 28 THEN - - 17 * + 74 END ) + + ( NULLIF ( 8, - - 26 ) ) * + 3 END, 79 ) AS INTEGER ) AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT - 27 * - COUNT( * ) * + COALESCE ( 10, 32 )
----
270

skipif mysql # not compatible
query I rowsort label-132
SELECT - 27 * - COUNT ( * ) * + COALESCE ( 10, 32 )
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT + MAX( - 80 ) * - 78 col0
----
6240

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT + MAX ( - 80 ) * - 78 col0
----
6240

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-135
SELECT ALL + NULLIF ( - 23, + 67 + + - ( 97 ) + + 51 - - COUNT( 25 ) + + CAST( NULL AS DECIMAL ) * - 0 / COUNT( * ) * - 63 - + + MAX( DISTINCT 18 ) ) / - 26 * 63 * + 98 - CAST( NULL AS SIGNED ) - + 71 / + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + NULLIF ( - 23, + 67 + + - ( 97 ) + + 51 - - COUNT ( 25 ) + + CAST ( NULL AS REAL ) * - 0 / COUNT ( * ) * - 63 - + + MAX ( DISTINCT 18 ) ) / - 26 * 63 * + 98 - CAST ( NULL AS INTEGER ) - + 71 / + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT + 59 DIV + 84 + ( COUNT( + ( 27 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-136
SELECT + 59 / + 84 + ( COUNT ( + ( 27 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT - 42 * + + COALESCE ( + 37, - 59 ) + - NULLIF ( - COUNT( + 67 ), - 46 * + + NULLIF ( + 50, 85 ) + - 58 ) + - 5 * 87 * - NULLIF ( 72, + + 52 )
----
29767

skipif mysql # not compatible
query I rowsort label-137
SELECT - 42 * + + COALESCE ( + 37, - 59 ) + - NULLIF ( - COUNT ( + 67 ), - 46 * + + NULLIF ( + 50, 85 ) + - 58 ) + - 5 * 87 * - NULLIF ( 72, + + 52 )
----
29767

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ALL + 32 * - 69, - SUM( - 32 ) * - COALESCE ( 13, - 52 ) * - - 32 AS col0
----
-2208
-13312

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL + 32 * - 69, - SUM ( - 32 ) * - COALESCE ( 13, - 52 ) * - - 32 AS col0
----
-2208
-13312

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

skipif mysql # not compatible
query I rowsort label-139
SELECT + 8 / + CAST ( NULL AS INTEGER ) + - ( 86 )
----
NULL

query I rowsort
SELECT ALL + + 71 + + 61 AS col2
----
132

query II rowsort
SELECT ALL + 15 * - 56 AS col2, + 89 + + + 81
----
-840
170

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

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

query I rowsort
SELECT ALL 61 + + 54 AS col2
----
115

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

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

query I rowsort
SELECT + - NULLIF ( + 21, COALESCE ( 92, - 96 ) - - 46 + + 90 + 85 * 53 + + 27 ) AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT ALL + 71 + 29 + - 52 DIV + 66 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL + 71 + 29 + - 52 / + 66 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-147
SELECT DISTINCT + 13 + + + CASE - 20 WHEN - - 7 - + 6 * + 78 THEN COUNT( * ) * - - 67 - - 92 WHEN + + COALESCE ( 40, - 48 * + 66 * - ( - 11 ) + - COUNT( + - 17 ) * + CAST( NULL AS SIGNED ) - - 52 ) THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT + 13 + + + CASE - 20 WHEN - - 7 - + 6 * + 78 THEN COUNT ( * ) * - - 67 - - 92 WHEN + + COALESCE ( 40, - 48 * + 66 * - ( - 11 ) + - COUNT ( + - 17 ) * + CAST ( NULL AS INTEGER ) - - 52 ) THEN - COUNT ( * ) END AS col2
----
NULL

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

query I rowsort
SELECT ALL 83 + - + 47
----
36

query II rowsort
SELECT - 5 AS col0, 44 AS col2
----
-5
44

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-152
SELECT 64 - - COALESCE ( - 25, - 76 DIV - 73 + + 43, CAST( - - CASE - + 31 WHEN - 29 + 27 THEN - - 84 END AS SIGNED ) + + + ( + - 14 ) * - 52 + - 60 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-152
SELECT 64 - - COALESCE ( - 25, - 76 / - 73 + + 43, CAST ( - - CASE - + 31 WHEN - 29 + 27 THEN - - 84 END AS INTEGER ) + + + ( + - 14 ) * - 52 + - 60 ) col0
----
39

query II rowsort
SELECT DISTINCT 9, + 66 * 36 * + - 75 col2
----
9
-178200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-154
SELECT ALL 35 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL 35 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 47 + - - 18
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-156
SELECT DISTINCT COUNT( + CAST( - 95 AS SIGNED ) ) + COUNT( * ) + + + 68
----
70

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT COUNT ( + CAST ( - 95 AS INTEGER ) ) + COUNT ( * ) + + + 68
----
70

query II rowsort
SELECT 82 col1, + 96 AS col2
----
82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL + 65 + 45 + - ( - - 16 ) - + 48 + + - 81 * + 77 + - + COUNT( * ) * - 68 * - COALESCE ( + + 45, - 51 )
----
-9251

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + 65 + 45 + - ( - - 16 ) - + 48 + + - 81 * + 77 + - + COUNT ( * ) * - 68 * - COALESCE ( + + 45, - 51 )
----
-9251

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT ALL 17 DIV - + 8
----
-2

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL 17 / - + 8
----
-2

query I rowsort
SELECT DISTINCT + 56 * - 39
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT DISTINCT COUNT( * ) - 33 * + + 68 * COUNT( * ) AS col2
----
-2243

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT COUNT ( * ) - 33 * + + 68 * COUNT ( * ) AS col2
----
-2243

query I rowsort
SELECT - 30 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT CASE CASE + 52 WHEN + 7 THEN + 12 ELSE 26 END WHEN COUNT( * ) * + NULLIF ( + MAX( + NULLIF ( + ( + 11 ), 64 ) ), 79 ) THEN + 15 END + - 69 * - COUNT( ALL + - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT CASE CASE + 52 WHEN + 7 THEN + 12 ELSE 26 END WHEN COUNT ( * ) * + NULLIF ( + MAX ( + NULLIF ( + ( + 11 ), 64 ) ), 79 ) THEN + 15 END + - 69 * - COUNT ( ALL + - 14 )
----
NULL

query I rowsort
SELECT 24 * + + 81
----
1944

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL COUNT( * ) - - 83 * - + MAX( - 84 )
----
6973

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL COUNT ( * ) - - 83 * - + MAX ( - 84 )
----
6973

query I rowsort
SELECT ALL 10 * - 92 AS col1
----
-920

query I rowsort
SELECT 35 * + + ( - + 85 ) AS col2
----
-2975

query II rowsort
SELECT ALL - - 46 AS col0, 47 * - + 19
----
46
-893

query I rowsort
SELECT DISTINCT - CASE + - 43 WHEN - - 40 THEN + - 83 END
----
NULL

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

query I rowsort
SELECT DISTINCT - 56 col2
----
-56

query I rowsort
SELECT + 13 * - + 90
----
-1170

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - - COUNT ( * ) col1
----
1

query I rowsort
SELECT ALL + + 35 * + 69
----
2415

query II rowsort
SELECT + 79 * + 54 * + 93 AS col2, 73 * + - 60 * 81 + + 89
----
396738
-354691

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

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

query I rowsort
SELECT DISTINCT - 44 + + 4 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-184
SELECT ALL + + ( MIN( ALL + 93 ) ) + 96 * + 59 / - MAX( ALL CAST( NULL AS SIGNED ) ) - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + + ( MIN ( ALL + 93 ) ) + 96 * + 59 / - MAX ( ALL CAST ( NULL AS INTEGER ) ) - + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT + 19 AS col1, COUNT( * ) + - 50
----
19
-49

skipif mysql # not compatible
query II rowsort label-185
SELECT + 19 AS col1, COUNT ( * ) + - 50
----
19
-49

query I rowsort
SELECT ALL - - 89
----
89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT 53 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-188
SELECT 53 / + 66
----
0

query I rowsort
SELECT ALL + 9 + - 37 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT DISTINCT + 92 / + 8 - + 94 + + AVG ( - 30 ) + + CASE - COALESCE ( 14, 3 * + - CASE 5 WHEN + 59 THEN COUNT( * ) + + MIN( + + CASE 47 WHEN - ( - 44 ) THEN - 57 ELSE NULL END ) - 54 - 68 / + AVG ( - 51 ) * + 48 WHEN 50 THEN NULL END - - CAST( NULL AS SIGNED ) ) WHEN - 42 / - 3 THEN + - 96 ELSE NULL END + + + 15 + - 26 - - + 81 + - 42 * + COUNT( * ) * ( - + MAX( ALL - 1 ) ) * + - 87 * + 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + 92 / + 8 - + 94 + + AVG ( - 30 ) + + CASE - COALESCE ( 14, 3 * + - CASE 5 WHEN + 59 THEN COUNT ( * ) + + MIN ( + + CASE 47 WHEN - ( - 44 ) THEN - 57 ELSE NULL END ) - 54 - 68 / + AVG ( - 51 ) * + 48 WHEN 50 THEN NULL END - - CAST ( NULL AS INTEGER ) ) WHEN - 42 / - 3 THEN + - 96 ELSE NULL END + + + 15 + - 26 - - + 81 + - 42 * + COUNT ( * ) * ( - + MAX ( ALL - 1 ) ) * + - 87 * + 8 col2
----
NULL

query I rowsort
SELECT 67 * ( 97 ) AS col1
----
6499

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

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

query I rowsort
SELECT 74 + - - 17
----
91

query II rowsort
SELECT ALL - 96 + + 82 AS col1, - 44 AS col2
----
-14
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT 83 + + - COUNT( ALL + + 23 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-195
SELECT 83 + + - COUNT ( ALL + + 23 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL COUNT( * ) + + + 38 + 53
----
92

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL COUNT ( * ) + + + 38 + 53
----
92

query I rowsort
SELECT ALL - 69 * - 9
----
621

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT COALESCE ( + 21, + COUNT( * ) * 35 + 42 * MIN( DISTINCT + + 11 ) + - 80 ) + - 35 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-199
SELECT COALESCE ( + 21, + COUNT ( * ) * 35 + 42 * MIN ( DISTINCT + + 11 ) + - 80 ) + - 35 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT ALL COUNT( ALL - ( 55 ) ) - - 83, + 0 col1
----
84
0

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL COUNT ( ALL - ( 55 ) ) - - 83, + 0 col1
----
84
0

query I rowsort
SELECT ALL 70 - + - 63 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT MIN( + + 13 ) * 23
----
299

skipif mysql # not compatible
query I rowsort label-202
SELECT MIN ( + + 13 ) * 23
----
299

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-203
SELECT CAST( NULL AS DECIMAL ) * - - CASE + + COUNT( * ) WHEN 52 THEN + - 70 END * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT CAST ( NULL AS REAL ) * - - CASE + + COUNT ( * ) WHEN 52 THEN + - 70 END * 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL NULLIF ( - 40, + COUNT( * ) - - + COALESCE ( + 22, - 36 + - - 73 ) * - + CAST( - 78 AS SIGNED ) - - 70 )
----
-40

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL NULLIF ( - 40, + COUNT ( * ) - - + COALESCE ( + 22, - 36 + - - 73 ) * - + CAST ( - 78 AS INTEGER ) - - 70 )
----
-40

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

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

query I rowsort
SELECT ( 89 ) * 30
----
2670

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT - 58 * - CASE - - ( - - SUM( + + 26 ) ) WHEN - - COUNT( * ) + + + 2 + - 75 THEN + + 17 * - + COUNT( * ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - 58 * - CASE - - ( - - SUM ( + + 26 ) ) WHEN - - COUNT ( * ) + + + 2 + - 75 THEN + + 17 * - + COUNT ( * ) END + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL + 31 * + 77 * + COUNT( - 61 )
----
2387

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + 31 * + 77 * + COUNT ( - 61 )
----
2387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-210
SELECT + - 20 * + - CASE - + COALESCE ( - + 52, + + 75 ) WHEN + + COUNT( * ) * 37 + - - 79 THEN NULL WHEN - + COUNT( * ) THEN - - 12 END, - CASE MAX( ALL - 83 ) WHEN - + 74 / + - COUNT( * ) * + - COUNT( DISTINCT - + 54 ) + - NULLIF ( + - 42, + + 57 + - + 94 * - 44 ) + - + 86 THEN + 87 ELSE - COALESCE ( + 0, - + COUNT( * ) + + - 20 * + + 27, CAST( NULL AS SIGNED ), 13, 58 + - + 82 ) END AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-210
SELECT + - 20 * + - CASE - + COALESCE ( - + 52, + + 75 ) WHEN + + COUNT ( * ) * 37 + - - 79 THEN NULL WHEN - + COUNT ( * ) THEN - - 12 END, - CASE MAX ( ALL - 83 ) WHEN - + 74 / + - COUNT ( * ) * + - COUNT ( DISTINCT - + 54 ) + - NULLIF ( + - 42, + + 57 + - + 94 * - 44 ) + - + 86 THEN + 87 ELSE - COALESCE ( + 0, - + COUNT ( * ) + + - 20 * + + 27, CAST ( NULL AS INTEGER ), 13, 58 + - + 82 ) END AS col0
----
NULL
0

query I rowsort
SELECT DISTINCT 76 * - - 97 AS col1
----
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL + - 93 * - - 78 + + - 34 + + 82 + 57 * + + 47 + - - COUNT( * ) AS col2
----
-4526

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL + - 93 * - - 78 + + - 34 + + 82 + 57 * + + 47 + - - COUNT ( * ) AS col2
----
-4526

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT 59 / + - 18 + + ( - 84 ) + CASE + + 14 WHEN - COUNT( * ) THEN + 72 * + CASE + COUNT( * ) WHEN + 50 THEN NULL WHEN + 77 THEN - 5 + 58 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT 59 / + - 18 + + ( - 84 ) + CASE + + 14 WHEN - COUNT ( * ) THEN + 72 * + CASE + COUNT ( * ) WHEN + 50 THEN NULL WHEN + 77 THEN - 5 + 58 END END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + 15 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT + + NULLIF ( + + MIN( DISTINCT - 47 ), - 78 ) * + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-215
SELECT + + NULLIF ( + + MIN ( DISTINCT - 47 ), - 78 ) * + COUNT ( * )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT ALL - 15 DIV 70 - 90 * - 51 + + 76
----
4666

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL - 15 / 70 - 90 * - 51 + + 76
----
4666

query I rowsort
SELECT ALL + - 9 * + 63 + - 66
----
-633

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL 8 * - 7 + - COUNT( * ) * - - ( - MAX( DISTINCT + 64 ) ) * - SUM( 58 ) + - ( 82 )
----
-3850

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL 8 * - 7 + - COUNT ( * ) * - - ( - MAX ( DISTINCT + 64 ) ) * - SUM ( 58 ) + - ( 82 )
----
-3850

query II rowsort
SELECT - + 43 + + 14 AS col2, 37 + - 0
----
-29
37

query I rowsort
SELECT - + 85 * 2 * 66
----
-11220

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT + CASE + NULLIF ( + 99, 65 ) WHEN 62 + - 11 THEN NULL WHEN + MAX( - - 9 ) THEN + 50 ELSE - - 76 END
----
76

skipif mysql # not compatible
query I rowsort label-221
SELECT + CASE + NULLIF ( + 99, 65 ) WHEN 62 + - 11 THEN NULL WHEN + MAX ( - - 9 ) THEN + 50 ELSE - - 76 END
----
76

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

query II rowsort
SELECT + ( - 40 ), 53 AS col0
----
-40
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT DISTINCT CAST( MIN( 44 ) AS SIGNED ) * 2 + - COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT CAST ( MIN ( 44 ) AS INTEGER ) * 2 + - COUNT ( * ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-225
SELECT ALL 6 * COALESCE ( - 33, - 11 + 85 - - 64 DIV + + ( - ( 1 ) ), - 35 ) * COALESCE ( + CASE + + 39 WHEN 57 + COUNT( * ) + - - 59 * - CAST( NULL AS DECIMAL ) * - 92 DIV + + CAST( NULL AS SIGNED ) - + MAX( DISTINCT + - 63 ) + - 97 THEN - COALESCE ( - 51, + 45 + - COUNT( * ) + + COUNT( * ) + - 41 - - COALESCE ( - ( + 51 ), 41 + + COUNT( * ) + - 29 * + + ( - 36 ) * - CASE + 75 WHEN 20 THEN + + 88 ELSE 10 END + - COUNT( * ) * - + COUNT( * ), + - 45 ) * - - 1 * + MIN( DISTINCT + 72 ), 16 + - MIN( 33 ) ) WHEN 53 * - NULLIF ( - 91 * 32, - 2 + 93 ) THEN NULL ELSE COUNT( * ) END, COUNT( * ), 92 ) * 93 - 55
----
-18469

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL 6 * COALESCE ( - 33, - 11 + 85 - - 64 / + + ( - ( 1 ) ), - 35 ) * COALESCE ( + CASE + + 39 WHEN 57 + COUNT ( * ) + - - 59 * - CAST ( NULL AS REAL ) * - 92 / + + CAST ( NULL AS INTEGER ) - + MAX ( DISTINCT + - 63 ) + - 97 THEN - COALESCE ( - 51, + 45 + - COUNT ( * ) + + COUNT ( * ) + - 41 - - COALESCE ( - ( + 51 ), 41 + + COUNT ( * ) + - 29 * + + ( - 36 ) * - CASE + 75 WHEN 20 THEN + + 88 ELSE 10 END + - COUNT ( * ) * - + COUNT ( * ), + - 45 ) * - - 1 * + MIN ( DISTINCT + 72 ), 16 + - MIN ( 33 ) ) WHEN 53 * - NULLIF ( - 91 * 32, - 2 + 93 ) THEN NULL ELSE COUNT ( * ) END, COUNT ( * ), 92 ) * 93 - 55
----
-18469

query II rowsort
SELECT DISTINCT + 16 AS col0, - 69 - - + 4
----
16
-65

query II rowsort
SELECT + 58 col0, - 14 AS col1
----
58
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT DISTINCT NULLIF ( + - COUNT( * ), + 95 + + - 71 ) * - + CASE + 85 WHEN - - 73 THEN + COUNT( * ) WHEN + 59 + + 48 THEN - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 6 * 53 * + + 7 * + - COUNT( * ) - + NULLIF ( - - 70, - + ( - - 74 ) ) END + + + COUNT( * ) - + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT NULLIF ( + - COUNT ( * ), + 95 + + - 71 ) * - + CASE + 85 WHEN - - 73 THEN + COUNT ( * ) WHEN + 59 + + 48 THEN - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 6 * 53 * + + 7 * + - COUNT ( * ) - + NULLIF ( - - 70, - + ( - - 74 ) ) END + + + COUNT ( * ) - + 85 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL - COUNT( ALL + + ( + 87 ) ) - - 95
----
94

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - COUNT ( ALL + + ( + 87 ) ) - - 95
----
94

query I rowsort
SELECT - 35 * + 71 col1
----
-2485

query I rowsort
SELECT + 40 * + 84 * 40
----
134400

query I rowsort
SELECT - 52 - - + ( + - 81 )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - MAX( 25 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-234
SELECT - MAX ( 25 ) col1
----
-25

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

query I rowsort
SELECT DISTINCT - ( + + 21 ) * - 61 - - 47 AS col2
----
1328

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

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT - 22 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-238
SELECT - 22 / + 84
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT DISTINCT - COUNT( * ) * 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT - COUNT ( * ) * 54 AS col0
----
-54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-243
SELECT - + CASE + - 26 WHEN - + 80 THEN 54 * - MIN( 66 ) * + 17 + - 27 + - CAST( + 7 AS SIGNED ) - - + 65 * + - COUNT( * ) * + 97 * - 80 + + 15 + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-243
SELECT - + CASE + - 26 WHEN - + 80 THEN 54 * - MIN ( 66 ) * + 17 + - 27 + - CAST ( + 7 AS INTEGER ) - - + 65 * + - COUNT ( * ) * + 97 * - 80 + + 15 + 75 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-244
SELECT - + 96 + - 52 + CASE - CAST( NULL AS DECIMAL ) WHEN - CASE + 80 WHEN - 21 THEN 77 END THEN - COUNT( * ) * + + 82 * COUNT( * ) * ( 79 ) END * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT - + 96 + - 52 + CASE - CAST ( NULL AS REAL ) WHEN - CASE + 80 WHEN - 21 THEN 77 END THEN - COUNT ( * ) * + + 82 * COUNT ( * ) * ( 79 ) END * - 2 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT 64 + - + CASE + 81 WHEN - 8 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT 64 + - + CASE + 81 WHEN - 8 THEN COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT - 39 + - - 81
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL MAX( ALL - 58 ) + + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL MAX ( ALL - 58 ) + + COUNT ( * )
----
-57

query I rowsort
SELECT DISTINCT - 8 + - - 40 col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT ALL 81 DIV + 5 + - 93 + + 54 + + 66 + 39 * - 20
----
-737

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL 81 / + 5 + - 93 + + 54 + + 66 + 39 * - 20
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT DISTINCT COUNT( * ) * - + 43 * + CASE + AVG ( 0 ) WHEN - 22 THEN NULL WHEN - NULLIF ( + + ( + + 44 ), 1 ) / - 8 THEN - 38 + 13 / - COALESCE ( - - 45, + 46 ) * - 17 - - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT COUNT ( * ) * - + 43 * + CASE + AVG ( 0 ) WHEN - 22 THEN NULL WHEN - NULLIF ( + + ( + + 44 ), 1 ) / - 8 THEN - 38 + 13 / - COALESCE ( - - 45, + 46 ) * - 17 - - 14 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-253
SELECT DISTINCT 39 DIV + - 93 + - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT 39 / + - 93 + - 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL + 53 * + 13 * - - COUNT( * ) - - 5 * + - 45 * - 28 * 86 AS col0
----
542489

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + 53 * + 13 * - - COUNT ( * ) - - 5 * + - 45 * - 28 * 86 AS col0
----
542489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-255
SELECT DISTINCT + 46 DIV - 99 + + 97 + + + 39 * + 98 + - - 70 + - 19 * COUNT( * )
----
3970

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT + 46 / - 99 + + 97 + + + 39 * + 98 + - - 70 + - 19 * COUNT ( * )
----
3970

query I rowsort
SELECT ALL ( - 12 ) * + 24 * 21 * + 14
----
-84672

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL + COUNT( * ) * - - 3 + + 28 + ( - 42 ) * + - COALESCE ( - 23, 29, - 93 )
----
-935

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + COUNT ( * ) * - - 3 + + 28 + ( - 42 ) * + - COALESCE ( - 23, 29, - 93 )
----
-935

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT 33 * + 80 * - COUNT( * ) * - 95 - - - 65 * + - MIN( DISTINCT 83 ) - + 44 col1
----
256151

skipif mysql # not compatible
query I rowsort label-259
SELECT 33 * + 80 * - COUNT ( * ) * - 95 - - - 65 * + - MIN ( DISTINCT 83 ) - + 44 col1
----
256151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-260
SELECT + 89 * 5 + ( AVG ( ALL CAST( NULL AS SIGNED ) ) ) / + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT + 89 * 5 + ( AVG ( ALL CAST ( NULL AS INTEGER ) ) ) / + - 8
----
NULL

query I rowsort
SELECT - 88 + - 82 AS col1
----
-170

query II rowsort
SELECT ALL + 44 AS col1, 33 * 23
----
44
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT + ( - + 84 ) + + + ( - - CAST( 30 AS SIGNED ) ) * + - 1 * + 45 + + - 88
----
-1522

skipif mysql # not compatible
query I rowsort label-263
SELECT + ( - + 84 ) + + + ( - - CAST ( 30 AS INTEGER ) ) * + - 1 * + 45 + + - 88
----
-1522

query I rowsort
SELECT - 17 * - 21 AS col2
----
357

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

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

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

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

query I rowsort
SELECT ALL ( - 93 )
----
-93

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

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL MIN ( - - 58 )
----
58

query I rowsort
SELECT - 81 * + 64
----
-5184

query I rowsort
SELECT DISTINCT CASE 62 WHEN + 0 THEN NULL WHEN 73 THEN 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT 43 + COUNT( + - 55 )
----
44

skipif mysql # not compatible
query I rowsort label-271
SELECT 43 + COUNT ( + - 55 )
----
44

query II rowsort
SELECT ALL 92 col0, 9 AS col1
----
92
9

query I rowsort
SELECT 17 * 93 AS col1
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT 53 + COUNT( DISTINCT 77 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-274
SELECT 53 + COUNT ( DISTINCT 77 ) AS col2
----
54

query II rowsort
SELECT - 47, 42 AS col2
----
-47
42

onlyif mysql # DIV for integer division: 
query II rowsort label-276
SELECT 99 AS col1, 23 DIV - 86
----
99
0

skipif mysql # not compatible
query II rowsort label-276
SELECT 99 AS col1, 23 / - 86
----
99
0

query I rowsort
SELECT - 84 + 1 + + 89 AS col0
----
6

query I rowsort
SELECT ALL - + 41 + 6 * + 53 * + 95 + - + 33 AS col1
----
30136

query I rowsort
SELECT 59 * 52
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL - COUNT( DISTINCT - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - COUNT ( DISTINCT - 37 )
----
-1

query I rowsort
SELECT - 50 * + 35 AS col0
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - 79 + + + NULLIF ( + - ( + + ( + 20 ) ), - COALESCE ( 39, - + COALESCE ( + - MIN( DISTINCT - 62 ), + + 46 + 6 ) + 20, 35 + - + 2 ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - 79 + + + NULLIF ( + - ( + + ( + 20 ) ), - COALESCE ( 39, - + COALESCE ( + - MIN ( DISTINCT - 62 ), + + 46 + 6 ) + 20, 35 + - + 2 ) ) AS col2
----
-99

query II rowsort
SELECT + 53 AS col2, 7 AS col2
----
53
7

query I rowsort
SELECT + 16 * - 5 + - 78 AS col1
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT ALL - COUNT( * ) * + 69 DIV + 62
----
-1

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL - COUNT ( * ) * + 69 / + 62
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL SUM( ALL 58 ) - - - 70 + COUNT( * ) + 46 * 70 + 18 * + - 99 AS col1
----
1427

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL SUM ( ALL 58 ) - - - 70 + COUNT ( * ) + 46 * 70 + 18 * + - 99 AS col1
----
1427

query I rowsort
SELECT 7 - + 24
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT MAX( DISTINCT + 25 ) * + ( + + 7 ) AS col1
----
175

skipif mysql # not compatible
query I rowsort label-289
SELECT MAX ( DISTINCT + 25 ) * + ( + + 7 ) AS col1
----
175

query I rowsort
SELECT DISTINCT - - ( 31 ) AS col1
----
31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT ALL - 41, CASE - - 0 WHEN COUNT( * ) THEN - 30 * - ( - + 23 ) + 48 END col0
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-292
SELECT ALL - 41, CASE - - 0 WHEN COUNT ( * ) THEN - 30 * - ( - + 23 ) + 48 END col0
----
-41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - NULLIF ( + 71, - - COUNT( * ) / 9 + + 66 )
----
-71

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - NULLIF ( + 71, - - COUNT ( * ) / 9 + + 66 )
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-294
SELECT CAST( NULL AS DECIMAL ) * + + 8 - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT CAST ( NULL AS REAL ) * + + 8 - 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT ALL - SUM( DISTINCT + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - SUM ( DISTINCT + 43 ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-296
SELECT 38 * - COALESCE ( 86, - 30, - + CAST( - 17 AS SIGNED ) + 98 ) + - 81 * - 53 col2
----
1025

skipif mysql # not compatible
query I rowsort label-296
SELECT 38 * - COALESCE ( 86, - 30, - + CAST ( - 17 AS INTEGER ) + 98 ) + - 81 * - 53 col2
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT COUNT( * ) - + 10 * + 82 AS col0
----
-819

skipif mysql # not compatible
query I rowsort label-297
SELECT COUNT ( * ) - + 10 * + 82 AS col0
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT COALESCE ( COUNT( * ), - 87 ) + - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-298
SELECT COALESCE ( COUNT ( * ), - 87 ) + - 10 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL MAX( - 51 ) * - + NULLIF ( - 51, - 79 )
----
-2601

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL MAX ( - 51 ) * - + NULLIF ( - 51, - 79 )
----
-2601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT ( - COUNT( * ) ) DIV 81 * ( - 72 ) * 12 + - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-300
SELECT ( - COUNT ( * ) ) / 81 * ( - 72 ) * 12 + - 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT NULLIF ( + ( + + ( 14 ) ), - - COUNT( * ) ) * 10 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-301
SELECT NULLIF ( + ( + + ( 14 ) ), - - COUNT ( * ) ) * 10 AS col1
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT ( 49 ) DIV ( 60 )
----
0

skipif mysql # not compatible
query I rowsort label-302
SELECT ( 49 ) / ( 60 )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT 8 * - 57 * COALESCE ( + + 22, - NULLIF ( - 95, - COUNT( * ) + + + SUM( + ( - + 36 ) ) ) DIV + + 17 )
----
-10032

skipif mysql # not compatible
query I rowsort label-304
SELECT 8 * - 57 * COALESCE ( + + 22, - NULLIF ( - 95, - COUNT ( * ) + + + SUM ( + ( - + 36 ) ) ) / + + 17 )
----
-10032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-305
SELECT ALL CAST( 26 AS SIGNED ) + - COUNT( * ) + COUNT( * ) * - CASE MAX( + 22 ) WHEN + 27 + - + 78 - + 89 * 25 THEN NULL WHEN + 95 * 40 THEN 93 WHEN AVG ( - 90 ) THEN NULL END + + 91 * - - 10 * + 61 - - 52 * 46 * - 73 AS col1, - 21 * + - ( CASE - CASE COUNT( DISTINCT - - 90 ) WHEN - COUNT( 81 ) * - 67 THEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ELSE COALESCE ( + 75, + - 72 + 54 * 22 ) END WHEN + 66 THEN NULL WHEN 69 + 3 THEN NULL ELSE 4 END ) AS col1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-305
SELECT ALL CAST ( 26 AS INTEGER ) + - COUNT ( * ) + COUNT ( * ) * - CASE MAX ( + 22 ) WHEN + 27 + - + 78 - + 89 * 25 THEN NULL WHEN + 95 * 40 THEN 93 WHEN AVG ( - 90 ) THEN NULL END + + 91 * - - 10 * + 61 - - 52 * 46 * - 73 AS col1, - 21 * + - ( CASE - CASE COUNT ( DISTINCT - - 90 ) WHEN - COUNT ( 81 ) * - 67 THEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE COALESCE ( + 75, + - 72 + 54 * 22 ) END WHEN + 66 THEN NULL WHEN 69 + 3 THEN NULL ELSE 4 END ) AS col1
----
NULL
84

query I rowsort
SELECT ( + 67 ) - + 32 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT 62 * 56 * - - COUNT( * ) AS col0
----
3472

skipif mysql # not compatible
query I rowsort label-307
SELECT 62 * 56 * - - COUNT ( * ) AS col0
----
3472

query I rowsort
SELECT ALL NULLIF ( ( 94 ), - 89 ) + + 97 + 36
----
227

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-310
SELECT DISTINCT - 4 * + 63 * - CAST( 31 AS SIGNED ) * + 4 - - 26 + + 42 * + 49 AS col2
----
33332

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - 4 * + 63 * - CAST ( 31 AS INTEGER ) * + 4 - - 26 + + 42 * + 49 AS col2
----
33332

query II rowsort
SELECT DISTINCT 86 + - 80 AS col2, 71 AS col0
----
6
71

query I rowsort
SELECT ALL + 19 * 48
----
912

query I rowsort
SELECT ALL + 8 + + + 55 col0
----
63

query I rowsort
SELECT DISTINCT + 50 + 18 AS col2
----
68

query I rowsort
SELECT DISTINCT 15 col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-316
SELECT ALL - 28 + - + CASE - 83 WHEN COUNT( * ) * NULLIF ( + NULLIF ( + 73, - 84 * - 36 ), - + 18 ) + COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col2, + COUNT( * ) * + AVG ( ALL + 6 ) * + + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-316
SELECT ALL - 28 + - + CASE - 83 WHEN COUNT ( * ) * NULLIF ( + NULLIF ( + 73, - 84 * - 36 ), - + 18 ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, + COUNT ( * ) * + AVG ( ALL + 6 ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT - 57 - + - 40 AS col1
----
-17

query I rowsort
SELECT ALL + - 34 * + 77 * 66 + - + 65 AS col2
----
-172853

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT - COUNT( DISTINCT + 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-320
SELECT - COUNT ( DISTINCT + 15 ) AS col1
----
-1

query I rowsort
SELECT + 6 * - 6
----
-36

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

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

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

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

query I rowsort
SELECT + 64 + 77
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT ALL + 32 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + 32 / 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-326
SELECT - CASE - CAST( NULL AS DECIMAL ) WHEN + 39 THEN NULL ELSE + 98 END / - 70 * - - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT - CASE - CAST ( NULL AS REAL ) WHEN + 39 THEN NULL ELSE + 98 END / - 70 * - - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 9 * 70 - + 42 AS col1
----
588

query I rowsort
SELECT DISTINCT + 82 * - + 76 AS col2
----
-6232

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT - 24 DIV + 39 + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-329
SELECT - 24 / + 39 + - 85
----
-85

query II rowsort
SELECT ALL - 54 AS col2, 45
----
-54
45

query I rowsort
SELECT 92 * + 88
----
8096

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT COUNT( * ) * SUM( DISTINCT - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-332
SELECT COUNT ( * ) * SUM ( DISTINCT - 82 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT 43 * - 31 + CAST( + 51 AS SIGNED )
----
-1282

skipif mysql # not compatible
query I rowsort label-333
SELECT 43 * - 31 + CAST ( + 51 AS INTEGER )
----
-1282

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

skipif mysql # not compatible
query I rowsort label-334
SELECT COUNT ( * ) * - 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL - 80 * COUNT( * ) + + 26 + - - 90 * - 56
----
-5094

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL - 80 * COUNT ( * ) + + 26 + - - 90 * - 56
----
-5094

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT MAX( 77 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-336
SELECT MAX ( 77 ) col0
----
77

query I rowsort
SELECT + 99 - 92 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT SUM( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-338
SELECT SUM ( 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT ALL + CAST( + 51 AS SIGNED ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL + CAST ( + 51 AS INTEGER ) AS col2
----
51

query I rowsort
SELECT - 69 * - + 47
----
3243

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-341
SELECT + MIN( DISTINCT 40 ) + + + 98 AS col0, COUNT( * ) DIV ( + + 1 ) + - 43
----
138
-42

skipif mysql # not compatible
query II rowsort label-341
SELECT + MIN ( DISTINCT 40 ) + + + 98 AS col0, COUNT ( * ) / ( + + 1 ) + - 43
----
138
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT + COUNT( * ) + + 68 * + 96 + - + COUNT( * ) * + + 18 * + 84 AS col2
----
5017

skipif mysql # not compatible
query I rowsort label-343
SELECT + COUNT ( * ) + + 68 * + 96 + - + COUNT ( * ) * + + 18 * + 84 AS col2
----
5017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-344
SELECT + 4 * 66 * + - 27 - - COALESCE ( 2, - 55 * + 37 * - - SUM( - ( + 14 ) ) * + COUNT( - - 23 ) + - SUM( + 3 ) DIV - - 59 ) AS col1
----
-7126

skipif mysql # not compatible
query I rowsort label-344
SELECT + 4 * 66 * + - 27 - - COALESCE ( 2, - 55 * + 37 * - - SUM ( - ( + 14 ) ) * + COUNT ( - - 23 ) + - SUM ( + 3 ) / - - 59 ) AS col1
----
-7126

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

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT 51 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 45 + - 40 AS col1
----
-85

query II rowsort
SELECT ALL 97, 93 + 23 * - 48 AS col0
----
97
-1011

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL 58 + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL 58 + + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + COUNT( * ) * COUNT( * ) * + - 96 * + + 86 * + ( + 64 )
----
-528384

skipif mysql # not compatible
query I rowsort label-349
SELECT + COUNT ( * ) * COUNT ( * ) * + - 96 * + + 86 * + ( + 64 )
----
-528384

query I rowsort
SELECT - - 21 col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-351
SELECT - 88 AS col2, COUNT( * ) - 2 * CAST( NULL AS DECIMAL ) AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-351
SELECT - 88 AS col2, COUNT ( * ) - 2 * CAST ( NULL AS REAL ) AS col1
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT - - SUM( - 80 ) * + 18 * - 72 + - + 61
----
103619

skipif mysql # not compatible
query I rowsort label-352
SELECT - - SUM ( - 80 ) * + 18 * - 72 + - + 61
----
103619

query I rowsort
SELECT - + NULLIF ( - 56, 10 * + 66 + + 2 ) + - 98 AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-354
SELECT - CAST( - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-354
SELECT - CAST ( - 7 AS INTEGER )
----
7

query II rowsort
SELECT - 22 AS col2, + 76 AS col2
----
-22
76

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT - - 47, + 26 + COUNT( * ) AS col2
----
47
27

skipif mysql # not compatible
query II rowsort label-359
SELECT - - 47, + 26 + COUNT ( * ) AS col2
----
47
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT - + 25 * CAST( - COUNT( * ) AS SIGNED ) * + 69
----
1725

skipif mysql # not compatible
query I rowsort label-360
SELECT - + 25 * CAST ( - COUNT ( * ) AS INTEGER ) * + 69
----
1725

query I rowsort
SELECT - 12 - 32
----
-44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-363
SELECT DISTINCT + CAST( + 80 AS SIGNED ) DIV + + 41 * COUNT( * ) + 21 + + 69 * - + 42 AS col1, 76 DIV 16
----
-2876
4

skipif mysql # not compatible
query II rowsort label-363
SELECT DISTINCT + CAST ( + 80 AS INTEGER ) / + + 41 * COUNT ( * ) + 21 + + 69 * - + 42 AS col1, 76 / 16
----
-2876
4

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT - 6 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT - 6 / 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + CASE + 54 WHEN 58 + + 37 - - + 78 + 85 THEN + + 64 * - 47 * - COUNT( * ) + COUNT( * ) + - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + CASE + 54 WHEN 58 + + 37 - - + 78 + 85 THEN + + 64 * - 47 * - COUNT ( * ) + COUNT ( * ) + - 58 END
----
NULL

query I rowsort
SELECT ALL + 75 * + 1 + + 41 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-367
SELECT - CAST( - + ( - COUNT( * ) ) AS SIGNED ) * + - 31 + - + 3, + ( + - 25 ) AS col2
----
28
-25

skipif mysql # not compatible
query II rowsort label-367
SELECT - CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) * + - 31 + - + 3, + ( + - 25 ) AS col2
----
28
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-368
SELECT - 58 * - COALESCE ( - 16, 59, + - 82 * + CAST( NULL AS SIGNED ) + 97 + + COUNT( * ) * CAST( NULL AS SIGNED ) + + COUNT( * ) + - 77 + + + ( - ( + 87 ) ) * COALESCE ( + 78, + + COUNT( - 2 ) * + 41 + + + COALESCE ( - 68, MIN( DISTINCT - + 32 ) ) ) * - COUNT( * ) ) AS col0
----
-928

skipif mysql # not compatible
query I rowsort label-368
SELECT - 58 * - COALESCE ( - 16, 59, + - 82 * + CAST ( NULL AS INTEGER ) + 97 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 77 + + + ( - ( + 87 ) ) * COALESCE ( + 78, + + COUNT ( - 2 ) * + 41 + + + COALESCE ( - 68, MIN ( DISTINCT - + 32 ) ) ) * - COUNT ( * ) ) AS col0
----
-928

onlyif mysql # DIV for integer division: 
query I rowsort label-369
SELECT - 70 DIV 38 * - 59
----
59

skipif mysql # not compatible
query I rowsort label-369
SELECT - 70 / 38 * - 59
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-370
SELECT ALL + CAST( + NULLIF ( CASE - + 6 WHEN MAX( DISTINCT + - 48 ) THEN NULL WHEN + + 75 THEN + 79 * - 13 * - + 33 END, ( - - 68 ) / + + 86 ) AS SIGNED ) * - 67 + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + CAST ( + NULLIF ( CASE - + 6 WHEN MAX ( DISTINCT + - 48 ) THEN NULL WHEN + + 75 THEN + 79 * - 13 * - + 33 END, ( - - 68 ) / + + 86 ) AS INTEGER ) * - 67 + 29
----
NULL

query II rowsort
SELECT ( + + 61 ) AS col0, + 38 AS col2
----
61
38

query I rowsort
SELECT - 63 * - 62 * + 66 AS col2
----
257796

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT - MIN( DISTINCT - + 88 ) + + 82
----
170

skipif mysql # not compatible
query I rowsort label-373
SELECT - MIN ( DISTINCT - + 88 ) + + 82
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT COALESCE ( + + MIN( DISTINCT - 88 ), - MAX( ALL - 23 ) * - + NULLIF ( - 0, + 56 + 71 ) + 52, + 34 * - NULLIF ( - 86, 51 ) ) AS col0, + 65 + + 56 AS col0
----
-88
121

skipif mysql # not compatible
query II rowsort label-374
SELECT COALESCE ( + + MIN ( DISTINCT - 88 ), - MAX ( ALL - 23 ) * - + NULLIF ( - 0, + 56 + 71 ) + 52, + 34 * - NULLIF ( - 86, 51 ) ) AS col0, + 65 + + 56 AS col0
----
-88
121

query II rowsort
SELECT ALL - 32 * 68 + + + 68 + + 19 AS col1, 69 AS col2
----
-2089
69

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

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

query I rowsort
SELECT NULLIF ( + 1, 91 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT CASE WHEN NOT + 48 >= 85 THEN + 22 + 16 DIV + 77 + - 61 WHEN NOT NULL <= NULL THEN NULL ELSE NULL END
----
-39

skipif mysql # not compatible
query I rowsort label-378
SELECT CASE WHEN NOT + 48 >= 85 THEN + 22 + 16 / + 77 + - 61 WHEN NOT NULL <= NULL THEN NULL ELSE NULL END
----
-39

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT - 5 - 98, + 60 * + MAX( DISTINCT + - 42 ) AS col0
----
-103
-2520

skipif mysql # not compatible
query II rowsort label-380
SELECT - 5 - 98, + 60 * + MAX ( DISTINCT + - 42 ) AS col0
----
-103
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT + COALESCE ( + 68, - - CASE - 1 WHEN 44 - 51 THEN NULL ELSE - 9 END ) + + ( - 85 ) * 50 * + 55 * 45 * + 91 + COUNT( * ) AS col2
----
-957206181

skipif mysql # not compatible
query I rowsort label-381
SELECT + COALESCE ( + 68, - - CASE - 1 WHEN 44 - 51 THEN NULL ELSE - 9 END ) + + ( - 85 ) * 50 * + 55 * 45 * + 91 + COUNT ( * ) AS col2
----
-957206181

query I rowsort
SELECT ALL - - ( + 80 ) * + + 75
----
6000

query I rowsort
SELECT + + 79 * 69
----
5451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT - - ( + MIN( ALL - 23 ) ) DIV 38 * + MIN( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-384
SELECT - - ( + MIN ( ALL - 23 ) ) / 38 * + MIN ( + 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + + 29 - - 78 + - MAX( 64 ) + 97 * - + AVG ( 64 ) * + - MIN( - 58 ) / - + 78 * CASE + 93 WHEN 28 * - 19 THEN NULL WHEN - + 23 THEN + 13 + + 33 ELSE NULL END + - + 44 - + CASE + COUNT( * ) WHEN - 34 THEN NULL WHEN - - 31 THEN - 83 ELSE + 86 * + 5 + - + 72 * + 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT + + 29 - - 78 + - MAX ( 64 ) + 97 * - + AVG ( 64 ) * + - MIN ( - 58 ) / - + 78 * CASE + 93 WHEN 28 * - 19 THEN NULL WHEN - + 23 THEN + 13 + + 33 ELSE NULL END + - + 44 - + CASE + COUNT ( * ) WHEN - 34 THEN NULL WHEN - - 31 THEN - 83 ELSE + 86 * + 5 + - + 72 * + 55 END AS col1
----
NULL

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

query I rowsort
SELECT + - ( + - 31 ) * + ( + 65 )
----
2015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL CAST( NULL AS SIGNED ) * CASE - COUNT( * ) WHEN - MAX( - + 45 ) THEN NULL WHEN - MIN( ALL + 26 ) THEN - ( + MIN( - 19 ) ) * - 30 + - COUNT( * ) END * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL CAST ( NULL AS INTEGER ) * CASE - COUNT ( * ) WHEN - MAX ( - + 45 ) THEN NULL WHEN - MIN ( ALL + 26 ) THEN - ( + MIN ( - 19 ) ) * - 30 + - COUNT ( * ) END * + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 30 * + - 12 AS col2
----
-360

query I rowsort
SELECT + 89 + - 3
----
86

query I rowsort
SELECT ALL 94 + 37
----
131

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

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - MAX ( 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT DISTINCT COUNT( * ) + 57 + + - 76
----
-18

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT COUNT ( * ) + 57 + + - 76
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-394
SELECT DISTINCT CASE + 95 WHEN - + 41 - + 4 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + CASE - 8 WHEN + ( + 53 ) THEN 52 END ELSE NULL END + + 18 - + COUNT( * ) / + + NULLIF ( 38, - 30 * - 10 + + 25 + - + 61 ) + - 59 / + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT CASE + 95 WHEN - + 41 - + 4 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + CASE - 8 WHEN + ( + 53 ) THEN 52 END ELSE NULL END + + 18 - + COUNT ( * ) / + + NULLIF ( 38, - 30 * - 10 + + 25 + - + 61 ) + - 59 / + - 55
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT ( + 32 ) + + 54 + + 68 DIV - - 73 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-396
SELECT ( + 32 ) + + 54 + + 68 / - - 73 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT DISTINCT NULLIF ( - - 30, - + ( - ( + ( + + NULLIF ( - COUNT( * ), 21 ) ) ) ) ) - 56 - - + 86 - - 93 + - - CAST( NULL AS SIGNED ) * + 36 / + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT NULLIF ( - - 30, - + ( - ( + ( + + NULLIF ( - COUNT ( * ), 21 ) ) ) ) ) - 56 - - + 86 - - 93 + - - CAST ( NULL AS INTEGER ) * + 36 / + + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-398
SELECT ALL - 54 DIV - COUNT( * ) AS col1
----
54

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

query I rowsort
SELECT ALL - ( - - 53 ) col2
----
-53

query I rowsort
SELECT 62 * + 56
----
3472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-401
SELECT ALL - CAST( - COALESCE ( + 63, + 96 + - 21 + - 16 ) AS SIGNED ) DIV COUNT( * ) * - 88 * - - 59 AS col0
----
-327096

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL - CAST ( - COALESCE ( + 63, + 96 + - 21 + - 16 ) AS INTEGER ) / COUNT ( * ) * - 88 * - - 59 AS col0
----
-327096

query II rowsort
SELECT DISTINCT - NULLIF ( - 87, + - 31 ), 50 + - NULLIF ( - 59, 21 ) AS col0
----
87
109

query I rowsort
SELECT 78 + 23
----
101

query I rowsort
SELECT ALL - ( 90 )
----
-90

query I rowsort
SELECT ALL + 27 * + ( NULLIF ( + 55, + 31 * 58 - - 61 * 70 ) ) AS col2
----
1485

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

query I rowsort
SELECT + 14 * 60 + 82 AS col1
----
922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-408
SELECT + COUNT( * ) * 49 + + 98 DIV ( 72 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-408
SELECT + COUNT ( * ) * 49 + + 98 / ( 72 ) AS col1
----
50

query I rowsort
SELECT 61 * 50 col0
----
3050

query I rowsort
SELECT ALL - 55 * 20 AS col0
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT 68 + ( + COUNT( DISTINCT - 57 ) )
----
69

skipif mysql # not compatible
query I rowsort label-411
SELECT 68 + ( + COUNT ( DISTINCT - 57 ) )
----
69

query I rowsort
SELECT ALL - 82 * + 69 AS col1
----
-5658

query I rowsort
SELECT 77 + - 99
----
-22

query I rowsort
SELECT 12 + 53 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT 18 DIV - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT 18 / - 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT NULLIF ( - COALESCE ( ( + SUM( ALL 3 ) ), COUNT( * ) ), AVG ( 19 ) + - 43 ) + 73
----
70

skipif mysql # not compatible
query I rowsort label-416
SELECT NULLIF ( - COALESCE ( ( + SUM ( ALL 3 ) ), COUNT ( * ) ), AVG ( 19 ) + - 43 ) + 73
----
70

query I rowsort
SELECT ALL NULLIF ( 77, + 46 ) + + 28 * - 35 AS col0
----
-903

query I rowsort
SELECT ALL 7 + 3
----
10

query I rowsort
SELECT 2 * 41 AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT ALL - 20 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - 20 / + 92
----
0

query I rowsort
SELECT 8 + + 81
----
89

query I rowsort
SELECT DISTINCT - 2 * 7 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT 21 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-423
SELECT 21 / - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL - COUNT( * ) + - CASE - COUNT( * ) WHEN + 22 THEN NULL ELSE - 64 * 32 END AS col0
----
2047

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - COUNT ( * ) + - CASE - COUNT ( * ) WHEN + 22 THEN NULL ELSE - 64 * 32 END AS col0
----
2047

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT 2 - ( ( ( COUNT( ALL 71 ) ) ) ) * + 11
----
-9

skipif mysql # not compatible
query I rowsort label-425
SELECT 2 - ( ( ( COUNT ( ALL 71 ) ) ) ) * + 11
----
-9

query I rowsort
SELECT 43 + + 73 * + 25 AS col1
----
1868

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT NULLIF ( + 64, ( - 65 ) ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-427
SELECT NULLIF ( + 64, ( - 65 ) ) / 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL COALESCE ( + 74, - 38 + 82, - 9 DIV 86 ) + - 71
----
3

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL COALESCE ( + 74, - 38 + 82, - 9 / 86 ) + - 71
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT COUNT( * ) * 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-429
SELECT COUNT ( * ) * 98 AS col1
----
98

query I rowsort
SELECT 56 * 26
----
1456

query I rowsort
SELECT ALL 93 - - 80 AS col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT SUM( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-432
SELECT SUM ( - 76 )
----
-76

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

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

query I rowsort
SELECT ALL 87 * + 2
----
174

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

skipif mysql # not compatible
query I rowsort label-435
SELECT MAX ( DISTINCT 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT + SUM( DISTINCT - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-436
SELECT + SUM ( DISTINCT - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + COALESCE ( 80, 52 * 29 - COUNT( * ) * - 7 ) * 29 + - 2 * - 15 AS col1
----
2350

skipif mysql # not compatible
query I rowsort label-437
SELECT + COALESCE ( 80, 52 * 29 - COUNT ( * ) * - 7 ) * 29 + - 2 * - 15 AS col1
----
2350

query I rowsort
SELECT DISTINCT 92 - + 38 AS col1
----
54

query I rowsort
SELECT 42 * - 27
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT 81 - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-440
SELECT 81 - COUNT ( * )
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-441
SELECT - 65 DIV CAST( + 16 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-441
SELECT - 65 / CAST ( + 16 AS INTEGER )
----
-4

query I rowsort
SELECT - 34 * 49
----
-1666

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

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT DISTINCT + + 25 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT + + 25 / 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT ALL + ( 67 ) + 31 DIV - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + ( 67 ) + 31 / - COUNT ( * ) AS col2
----
36

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT COUNT( ALL + 18 ) * + COUNT( * ) + CAST( + ( - 84 ) AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-448
SELECT COUNT ( ALL + 18 ) * + COUNT ( * ) + CAST ( + ( - 84 ) AS INTEGER ) AS col2
----
-83

query I rowsort
SELECT - 67 + - 50 AS col1
----
-117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-450
SELECT 66 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-450
SELECT 66 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT + MIN( DISTINCT + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-451
SELECT + MIN ( DISTINCT + 48 ) AS col1
----
48

query I rowsort
SELECT - 81 * 11
----
-891

query I rowsort
SELECT - 51 * 0 AS col0
----
0

query I rowsort
SELECT ( - 0 ) + 4 col2
----
4

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

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL - ( COUNT ( * ) ) + 53 AS col2
----
52

query I rowsort
SELECT DISTINCT - 63 * 93
----
-5859

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

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

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

query I rowsort
SELECT ALL + 72 + - 10
----
62

query I rowsort
SELECT DISTINCT COALESCE ( - 60, 87 + 18 ) col0
----
-60

query I rowsort
SELECT - 53 + + 33 - COALESCE ( 57, 40 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - 29 + COALESCE ( + 39, COUNT( DISTINCT + 58 ) * ( - ( ( - 16 ) ) + 57 ), COALESCE ( 39, + 30, - 68 ) ) col0
----
10

skipif mysql # not compatible
query I rowsort label-462
SELECT - 29 + COALESCE ( + 39, COUNT ( DISTINCT + 58 ) * ( - ( ( - 16 ) ) + 57 ), COALESCE ( 39, + 30, - 68 ) ) col0
----
10

query I rowsort
SELECT - 35 - 81 + 77 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT DISTINCT + 71 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + 71 / + 59
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT - 99 + + COUNT( CAST( NULL AS SIGNED ) ) * + 26 AS col1
----
-99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-467
SELECT DISTINCT + CASE + COUNT( * ) WHEN - COUNT( * ) THEN 55 / 23 + CAST( + 80 AS SIGNED ) WHEN 92 THEN NULL WHEN 32 THEN NULL END / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN 55 / 23 + CAST ( + 80 AS INTEGER ) WHEN 92 THEN NULL WHEN 32 THEN NULL END / 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - COUNT( ALL 26 ) + 87 * - 17
----
-1480

skipif mysql # not compatible
query I rowsort label-468
SELECT - COUNT ( ALL 26 ) + 87 * - 17
----
-1480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT + COUNT( * ) * - 33 + + 53 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-470
SELECT + COUNT ( * ) * - 33 + + 53 AS col1
----
20

query I rowsort
SELECT + ( + 12 ) * 18 AS col2
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT 0 / 86 * ( CAST( NULL AS SIGNED ) ) + 98 * - COALESCE ( 3 + 24, 19 * CAST( NULL AS SIGNED ), - 65 * - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-472
SELECT 0 / 86 * ( CAST ( NULL AS INTEGER ) ) + 98 * - COALESCE ( 3 + 24, 19 * CAST ( NULL AS INTEGER ), - 65 * - 8 )
----
NULL

query I rowsort
SELECT - 33 * 82
----
-2706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT + COALESCE ( CAST( NULL AS SIGNED ), + 25 * CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), + 25 * CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 51 + - 89
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT COALESCE ( - 29, + SUM( + 66 ) + 26 * 96 )
----
-29

skipif mysql # not compatible
query I rowsort label-476
SELECT COALESCE ( - 29, + SUM ( + 66 ) + 26 * 96 )
----
-29

query I rowsort
SELECT + 58 + + - 44 AS col2
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-478
SELECT + + 53 * - 20 * NULLIF ( - CAST( NULL AS DECIMAL ) * 25, - 82 / + ( + ( 91 ) ) + ( - 52 ) / 3 ) + ( + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT + + 53 * - 20 * NULLIF ( - CAST ( NULL AS REAL ) * 25, - 82 / + ( + ( 91 ) ) + ( - 52 ) / 3 ) + ( + 56 )
----
NULL

query I rowsort
SELECT ALL + + ( + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT - ( 84 ) DIV - COALESCE ( + COUNT( * ), + AVG ( DISTINCT - 28 ), + 27 ) + - 90 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-480
SELECT - ( 84 ) / - COALESCE ( + COUNT ( * ), + AVG ( DISTINCT - 28 ), + 27 ) + - 90 AS col2
----
-6

query I rowsort
SELECT DISTINCT + 52 * - + 12 + ( - 91 ) AS col0
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT - COUNT( * ) * - 54 * - 82 AS col2
----
-4428

skipif mysql # not compatible
query I rowsort label-482
SELECT - COUNT ( * ) * - 54 * - 82 AS col2
----
-4428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT ALL ( COALESCE ( - CAST( NULL AS SIGNED ), 21, ( 44 ) ) ) * + 80 + + 83 col0
----
1763

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL ( COALESCE ( - CAST ( NULL AS INTEGER ), 21, ( 44 ) ) ) * + 80 + + 83 col0
----
1763

query I rowsort
SELECT + - 17 + - 87 + 40
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-485
SELECT + - COALESCE ( CASE - 8 WHEN - CAST( - 37 AS SIGNED ) THEN NULL WHEN + 0 * + 71 - + 4 * 32 THEN NULL ELSE MAX( 27 ) END, 46 * - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-485
SELECT + - COALESCE ( CASE - 8 WHEN - CAST ( - 37 AS INTEGER ) THEN NULL WHEN + 0 * + 71 - + 4 * 32 THEN NULL ELSE MAX ( 27 ) END, 46 * - COUNT ( * ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT - MAX( ALL 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-486
SELECT - MAX ( ALL 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - - 52 * - 47 + - COUNT( * )
----
-2445

skipif mysql # not compatible
query I rowsort label-487
SELECT - - 52 * - 47 + - COUNT ( * )
----
-2445

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-491
SELECT + COUNT ( * ) * - + ( 52 ) + 48 / 2
----
-28

query I rowsort
SELECT DISTINCT + + 30 * 26 AS col0
----
780

query I rowsort
SELECT DISTINCT - - 27 * + + 20 * + 56 + + 99 col2
----
30339

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT - - COUNT( * ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-494
SELECT - - COUNT ( * ) + - 58
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT ALL - 10 DIV + 15 + - 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - 10 / + 15 + - 5 AS col2
----
-5

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

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

query I rowsort
SELECT - 36 + - - 44 AS col1
----
8

query I rowsort
SELECT + 6 * - ( + - 69 )
----
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-499
SELECT ALL - 30 * - - 59 * - CASE 96 WHEN MIN( 75 ) THEN 23 ELSE + CAST( - 58 AS SIGNED ) * - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - 30 * - - 59 * - CASE 96 WHEN MIN ( 75 ) THEN 23 ELSE + CAST ( - 58 AS INTEGER ) * - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT + 23 DIV + - MAX( 58 )
----
0

skipif mysql # not compatible
query I rowsort label-500
SELECT + 23 / + - MAX ( 58 )
----
0

query I rowsort
SELECT - 29 * - 25 * - 95 * 93
----
-6405375

query I rowsort
SELECT DISTINCT - 12 - + - 6
----
-6

query I rowsort
SELECT ALL ( - 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-504
SELECT DISTINCT COALESCE ( + - COUNT( * ), - 74, + 7 DIV - 67 + 43, - 55 ) * 66
----
-66

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT COALESCE ( + - COUNT ( * ), - 74, + 7 / - 67 + 43, - 55 ) * 66
----
-66

query II rowsort
SELECT - 16 col1, 77 AS col2
----
-16
77

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT DISTINCT - 13 - - - 96 - COUNT( * ) + 81 * 45 * - 90
----
-328160

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT - 13 - - - 96 - COUNT ( * ) + 81 * 45 * - 90
----
-328160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + 40 + - - CASE - 16 WHEN + 73 + MIN( ALL 95 ) THEN - 31 * + COUNT( * ) + + ( - 89 ) WHEN COUNT( 98 ) + 93 THEN NULL END + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT + 40 + - - CASE - 16 WHEN + 73 + MIN ( ALL 95 ) THEN - 31 * + COUNT ( * ) + + ( - 89 ) WHEN COUNT ( 98 ) + 93 THEN NULL END + 11 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 26 ) AS col1
----
26

query I rowsort
SELECT - COALESCE ( - 96, + 13 * - ( 24 - + 25 ), 97 ) * + 22
----
2112

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-513
SELECT ALL CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-513
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-514
SELECT + COALESCE ( + 90, + COUNT( * ) + 30, + 63 * 62 + 68 * - COUNT( ALL CASE 94 WHEN 46 THEN + CAST( NULL AS DECIMAL ) + - 23 END ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-514
SELECT + COALESCE ( + 90, + COUNT ( * ) + 30, + 63 * 62 + 68 * - COUNT ( ALL CASE 94 WHEN 46 THEN + CAST ( NULL AS REAL ) + - 23 END ) ) AS col2
----
90

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

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

query I rowsort
SELECT - ( 67 ) - + 69 AS col0
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-517
SELECT ALL + MAX( DISTINCT + 73 ) * + - ( + 5 ) DIV 5 + + NULLIF ( 36 - 98 * - 23, - AVG ( - 67 ) ) AS col2
----
2217

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + MAX ( DISTINCT + 73 ) * + - ( + 5 ) / 5 + + NULLIF ( 36 - 98 * - 23, - AVG ( - 67 ) ) AS col2
----
2217

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-519
SELECT ALL - CAST( NULL AS DECIMAL ) / - COUNT( * ) + + MAX( ALL 84 ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - CAST ( NULL AS REAL ) / - COUNT ( * ) + + MAX ( ALL 84 ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-520
SELECT DISTINCT - COUNT( * ) DIV + 16 + + 34 * - 24 + 15
----
-801

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - COUNT ( * ) / + 16 + + 34 * - 24 + 15
----
-801

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT ALL + 77 DIV + + 84 + + 83
----
83

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL + 77 / + + 84 + + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT + + COALESCE ( + 17, + MIN( 79 ) * + 87 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT + + COALESCE ( + 17, + MIN ( 79 ) * + 87 ) col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT + - NULLIF ( + + COUNT( * ), - - MIN( 47 ) + + CAST( + 92 AS SIGNED ) * + 7 ) * 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-523
SELECT + - NULLIF ( + + COUNT ( * ), - - MIN ( 47 ) + + CAST ( + 92 AS INTEGER ) * + 7 ) * 88 AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-524
SELECT DISTINCT ( 27 ) DIV 53 + CAST( 67 AS SIGNED ) + + 96 AS col0
----
163

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT ( 27 ) / 53 + CAST ( 67 AS INTEGER ) + + 96 AS col0
----
163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-525
SELECT ALL - + 35 / 78 * + CAST( NULL AS DECIMAL ) + ( + COUNT( * ) ) / 11
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - + 35 / 78 * + CAST ( NULL AS REAL ) + ( + COUNT ( * ) ) / 11
----
NULL

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

query I rowsort
SELECT - 72 * - CASE + 33 WHEN 69 THEN + 15 ELSE NULL END / 48
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT ALL - + 24 + + COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
-24

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

query II rowsort
SELECT DISTINCT - 46, 0 AS col2
----
-46
0

query I rowsort
SELECT ALL - 25 - + 29
----
-54

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

skipif mysql # not compatible
query I rowsort label-532
SELECT + MAX ( 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT + 52 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-533
SELECT + 52 + - COUNT ( * )
----
51

query I rowsort
SELECT ALL - 80 * + 85 * - 51
----
346800

query I rowsort
SELECT 54 + 93 * 10
----
984

query I rowsort
SELECT 85 * + + 80 AS col1
----
6800

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT COUNT( * ) - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT COUNT ( * ) - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL 88 * + + 85 AS col0
----
7480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-539
SELECT 99 * - COUNT( * ) + - ( - CAST( - COUNT( * ) AS SIGNED ) ) * - 84
----
-15

skipif mysql # not compatible
query I rowsort label-539
SELECT 99 * - COUNT ( * ) + - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * - 84
----
-15

query I rowsort
SELECT 43 * 74
----
3182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-541
SELECT ALL - 99 * + CASE CAST( NULL AS DECIMAL ) WHEN + ( + 36 ) THEN + 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - 99 * + CASE CAST ( NULL AS REAL ) WHEN + ( + 36 ) THEN + 69 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT ALL 76 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL 76 / 36
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT 33 * + 66 DIV - 33 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-543
SELECT 33 * + 66 / - 33 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT NULLIF ( + 29, CAST( NULL AS SIGNED ) * - + MAX( ALL 86 ) ) + - MAX( ALL 3 ) * 18 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-544
SELECT NULLIF ( + 29, CAST ( NULL AS INTEGER ) * - + MAX ( ALL 86 ) ) + - MAX ( ALL 3 ) * 18 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT 72 - + - COALESCE ( COUNT( * ), + 50 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-545
SELECT 72 - + - COALESCE ( COUNT ( * ), + 50 ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT 81 + - + NULLIF ( 19, + 42 ) + + 91 DIV + 24
----
65

skipif mysql # not compatible
query I rowsort label-546
SELECT 81 + - + NULLIF ( 19, + 42 ) + + 91 / + 24
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL + 36 + - COUNT( - 14 )
----
35

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL + 36 + - COUNT ( - 14 )
----
35

query I rowsort
SELECT ( 45 ) + 14 + 16 * 32
----
571

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT DISTINCT 75 + - 34 - - COALESCE ( + 27, 84 ) DIV - 30 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT 75 + - 34 - - COALESCE ( + 27, 84 ) / - 30 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT COUNT( - 48 ) + - ( - 1 ) + 33
----
35

skipif mysql # not compatible
query I rowsort label-550
SELECT COUNT ( - 48 ) + - ( - 1 ) + 33
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT + 10 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + 10 + + COUNT ( * )
----
11

query I rowsort
SELECT 81 + 50 * + 71 AS col0
----
3631

query I rowsort
SELECT ALL 68 + + 51 AS col1
----
119

query I rowsort
SELECT ALL - + 37 col2
----
-37

query I rowsort
SELECT + 68 * + 98 + + 53 + + - 22
----
6695

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT COUNT( + COALESCE ( + 89, + - 33 ) ) * 65 + + 87 * 98
----
8591

skipif mysql # not compatible
query I rowsort label-556
SELECT COUNT ( + COALESCE ( + 89, + - 33 ) ) * 65 + + 87 * 98
----
8591

query I rowsort
SELECT 71 * + 64 + + + 27 AS col0
----
4571

query I rowsort
SELECT DISTINCT - ( 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - + COUNT( * ) * - COUNT( * ) + 28 + 52 * 68 AS col0
----
3565

skipif mysql # not compatible
query I rowsort label-559
SELECT - + COUNT ( * ) * - COUNT ( * ) + 28 + 52 * 68 AS col0
----
3565

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT + + MAX( ALL + 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-560
SELECT + + MAX ( ALL + 36 ) col0
----
36

query I rowsort
SELECT 20 + - - 31
----
51

query I rowsort
SELECT 22 * - + 56 AS col1
----
-1232

query I rowsort
SELECT 99 * + ( - 76 ) + - + 52 AS col1
----
-7576

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT - 59 DIV + + 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-564
SELECT - 59 / + + 50 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT + 17 * COUNT( 64 ) + + + MIN( - 35 )
----
-18

skipif mysql # not compatible
query I rowsort label-565
SELECT + 17 * COUNT ( 64 ) + + + MIN ( - 35 )
----
-18

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT 37 + - COUNT( * ) + - 19 * + 56 AS col1
----
-1028

skipif mysql # not compatible
query I rowsort label-568
SELECT 37 + - COUNT ( * ) + - 19 * + 56 AS col1
----
-1028

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL COUNT( DISTINCT - 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL COUNT ( DISTINCT - 88 ) AS col0
----
1

query I rowsort
SELECT 72 + ( - + 91 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT 42 * + - MIN( - 69 )
----
2898

skipif mysql # not compatible
query I rowsort label-572
SELECT 42 * + - MIN ( - 69 )
----
2898

query I rowsort
SELECT DISTINCT 70 + + 44 AS col1
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-574
SELECT 91 * - MIN( ALL - 2 ) AS col2, + ( 5 ) DIV + 37 col1
----
182
0

skipif mysql # not compatible
query II rowsort label-574
SELECT 91 * - MIN ( ALL - 2 ) AS col2, + ( 5 ) / + 37 col1
----
182
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-575
SELECT DISTINCT + 77 + + ( - CAST( NULL AS DECIMAL ) ) + - + 84 - + 59 - - 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT + 77 + + ( - CAST ( NULL AS REAL ) ) + - + 84 - + 59 - - 29 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT 81 * - + COUNT( DISTINCT - + 70 ) AS col1, 67 - - 16 + + 9 AS col0
----
-81
92

skipif mysql # not compatible
query II rowsort label-576
SELECT 81 * - + COUNT ( DISTINCT - + 70 ) AS col1, 67 - - 16 + + 9 AS col0
----
-81
92

query I rowsort
SELECT ALL 69 + - 54
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT ALL + COUNT( * ) + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + COUNT ( * ) + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - COUNT( DISTINCT 82 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-579
SELECT - COUNT ( DISTINCT 82 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT 71 + + 40 + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-580
SELECT 71 + + 40 + COUNT ( * )
----
112

query I rowsort
SELECT 9 * - ( + 94 ) + - - 3 + + 97 col0
----
-746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) + - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) + - + 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-583
SELECT 49, 10 - - - 38 - - COUNT( * ) AS col1
----
49
-27

skipif mysql # not compatible
query II rowsort label-583
SELECT 49, 10 - - - 38 - - COUNT ( * ) AS col1
----
49
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT + NULLIF ( + 71, + 89 ) * - MAX( DISTINCT 58 ) * 25 AS col1
----
-102950

skipif mysql # not compatible
query I rowsort label-584
SELECT + NULLIF ( + 71, + 89 ) * - MAX ( DISTINCT 58 ) * 25 AS col1
----
-102950

query II rowsort
SELECT ALL - 76 AS col0, - 15
----
-76
-15

query I rowsort
SELECT ALL - 11 * - 98 + + + 12 + + - 79 - - 38
----
1049

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

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

query II rowsort
SELECT COALESCE ( 83, - + 15 ), + 36 * - + ( + 31 ) AS col2
----
83
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL + + CASE + - 74 WHEN 79 / - 70 * + 98 THEN NULL WHEN COALESCE ( 0, - 8, - COUNT( * ) / 32 ) THEN NULLIF ( - 54, - 89 - + 15 ) * - 71 + + 46 ELSE MIN( 20 ) END AS col1
----
20

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL + + CASE + - 74 WHEN 79 / - 70 * + 98 THEN NULL WHEN COALESCE ( 0, - 8, - COUNT ( * ) / 32 ) THEN NULLIF ( - 54, - 89 - + 15 ) * - 71 + + 46 ELSE MIN ( 20 ) END AS col1
----
20

query I rowsort
SELECT + + 17 - 99 + - 49
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT - 17 * + COALESCE ( + ( - 78 ), + 83 - 88 * - MIN( + 41 * 7 ), 66 * - ( ( 19 ) * 1 ) + 77 ) * 30 AS col0
----
39780

skipif mysql # not compatible
query I rowsort label-591
SELECT - 17 * + COALESCE ( + ( - 78 ), + 83 - 88 * - MIN ( + 41 * 7 ), 66 * - ( ( 19 ) * 1 ) + 77 ) * 30 AS col0
----
39780

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT ALL + + COALESCE ( - COUNT( * ), 88, - 37 + - + 1 * 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + + COALESCE ( - COUNT ( * ), 88, - 37 + - + 1 * 37 )
----
-1

query I rowsort
SELECT ALL + + COALESCE ( + + 88, - 37 * - + 85 - - 31 + 20, - 11 )
----
88

query I rowsort
SELECT ALL - 99 * - 72
----
7128

query I rowsort
SELECT DISTINCT - 26 * + 25 * + - 76 AS col1
----
49400

query I rowsort
SELECT - 70 - + 92
----
-162

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

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

query I rowsort
SELECT ALL + 8 * 77
----
616

query I rowsort
SELECT - 41 + - 44 AS col0
----
-85

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

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

query I rowsort
SELECT - 17 + 26 + + - 50 AS col2
----
-41

query I rowsort
SELECT ALL - 36 + - - 41 + + + 72 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-603
SELECT + ( 62 ) DIV + 67 + - CAST( 31 AS SIGNED ) + - 32 * + 8 col0
----
-287

skipif mysql # not compatible
query I rowsort label-603
SELECT + ( 62 ) / + 67 + - CAST ( 31 AS INTEGER ) + - 32 * + 8 col0
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT - COUNT( * ) + + NULLIF ( - 52, + 7 ) + - 13 - + 12 * 56 * 92 AS col1
----
-61890

skipif mysql # not compatible
query I rowsort label-604
SELECT - COUNT ( * ) + + NULLIF ( - 52, + 7 ) + - 13 - + 12 * 56 * 92 AS col1
----
-61890

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT ALL + 64 DIV - + 87 * ( 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + 64 / - + 87 * ( 80 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL - COUNT ( * ) + - + 74 AS col1
----
-75

query I rowsort
SELECT - ( + 58 ) + - - 98 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL MAX( + 57 ) + 21 col1
----
78

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL MAX ( + 57 ) + 21 col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT DISTINCT ( + - NULLIF ( - + 6, - - 89 / - 3 + - CASE + 54 WHEN 63 THEN 99 - NULLIF ( + 10, COUNT( * ) ) WHEN 64 + 37 THEN ( + MIN( DISTINCT 96 ) ) / - 49 END + + 38 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT ( + - NULLIF ( - + 6, - - 89 / - 3 + - CASE + 54 WHEN 63 THEN 99 - NULLIF ( + 10, COUNT ( * ) ) WHEN 64 + 37 THEN ( + MIN ( DISTINCT 96 ) ) / - 49 END + + 38 ) ) AS col2
----
6

query I rowsort
SELECT - ( + 27 ) + + 92
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-611
SELECT + 33 + - COUNT( ALL - 12 ) + 87 + - 39 * + + 50 * - COALESCE ( CASE COUNT( * ) WHEN 32 * + CAST( NULL AS SIGNED ) THEN + 70 WHEN + COUNT( * ) * - 22 THEN NULL END DIV 56, 92 DIV + 55 ) + 62 * 13 AS col1
----
2875

skipif mysql # not compatible
query I rowsort label-611
SELECT + 33 + - COUNT ( ALL - 12 ) + 87 + - 39 * + + 50 * - COALESCE ( CASE COUNT ( * ) WHEN 32 * + CAST ( NULL AS INTEGER ) THEN + 70 WHEN + COUNT ( * ) * - 22 THEN NULL END / 56, 92 / + 55 ) + 62 * 13 AS col1
----
2875

query II rowsort
SELECT - 90 AS col1, + 32
----
-90
32

query I rowsort
SELECT + 9 + - 11 + - 60
----
-62

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

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

query I rowsort
SELECT DISTINCT - ( 57 ) - + + 5 * + - 84 * + 79
----
33123

query I rowsort
SELECT + + 14 + + 40 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-617
SELECT DISTINCT 22 AS col2, 63 + + 75 + - 0 / - COUNT( * ) + - CASE ( COUNT( * ) ) WHEN ( + SUM( 73 ) ) THEN - ( 58 ) - + ( + COUNT( * ) ) ELSE + CASE WHEN NOT 71 NOT IN ( 75 - MIN( DISTINCT - 25 + + ( 74 ) ) ) THEN - 10 WHEN NULL >= MIN( CASE + CASE 14 WHEN + 50 + - 49 THEN NULL ELSE 57 + 9 END WHEN - 49 + + 80 THEN 71 * 15 + + 47 WHEN 88 + + CAST( NULL AS SIGNED ) THEN - 81 + + NULLIF ( + 98, 80 + - 78 ) * + 26 WHEN ( 94 ) THEN NULL ELSE NULL END ) THEN NULL END - - 60 END col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-617
SELECT DISTINCT 22 AS col2, 63 + + 75 + - 0 / - COUNT ( * ) + - CASE ( COUNT ( * ) ) WHEN ( + SUM ( 73 ) ) THEN - ( 58 ) - + ( + COUNT ( * ) ) ELSE + CASE WHEN NOT 71 NOT IN ( 75 - MIN ( DISTINCT - 25 + + ( 74 ) ) ) THEN - 10 WHEN NULL >= MIN ( CASE + CASE 14 WHEN + 50 + - 49 THEN NULL ELSE 57 + 9 END WHEN - 49 + + 80 THEN 71 * 15 + + 47 WHEN 88 + + CAST ( NULL AS INTEGER ) THEN - 81 + + NULLIF ( + 98, 80 + - 78 ) * + 26 WHEN ( 94 ) THEN NULL ELSE NULL END ) THEN NULL END - - 60 END col2
----
22
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT + 65 * CAST( NULL AS SIGNED ) + + - ( - 92 ) - - + 73 * 23 + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT + 65 * CAST ( NULL AS INTEGER ) + + - ( - 92 ) - - + 73 * 23 + - 67
----
NULL

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

skipif mysql # not compatible
query I rowsort label-619
SELECT SUM ( DISTINCT - 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT DISTINCT + 26 DIV + 52 + - 14 - + + ( 37 ) DIV SUM( ALL + 83 ) * - 28
----
-14

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT + 26 / + 52 + - 14 - + + ( 37 ) / SUM ( ALL + 83 ) * - 28
----
-14

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-622
SELECT + 12, ( - 14 ) DIV 21 AS col1
----
12
0

skipif mysql # not compatible
query II rowsort label-622
SELECT + 12, ( - 14 ) / 21 AS col1
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL - MIN( + 57 ) * 24 + - 7 - - 16 AS col1
----
-1359

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL - MIN ( + 57 ) * 24 + - 7 - - 16 AS col1
----
-1359

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT + COUNT( * ) + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-624
SELECT + COUNT ( * ) + - 36
----
-35

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

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

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

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

query I rowsort
SELECT DISTINCT + 74 * - 10 AS col1
----
-740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-628
SELECT ALL + 31, CAST( + 97 AS SIGNED ) * - 81 + COUNT( * ) AS col0
----
31
-7856

skipif mysql # not compatible
query II rowsort label-628
SELECT ALL + 31, CAST ( + 97 AS INTEGER ) * - 81 + COUNT ( * ) AS col0
----
31
-7856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT + 81 * COALESCE ( + + 22, - SUM( ALL - 78 ) DIV - 15 * 35, 33 + 11 ) DIV 22 + + 33 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-629
SELECT + 81 * COALESCE ( + + 22, - SUM ( ALL - 78 ) / - 15 * 35, 33 + 11 ) / 22 + + 33 AS col1
----
114

query I rowsort
SELECT ( + CASE + 1 WHEN + 92 THEN - 37 END ) AS col0
----
NULL

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

query I rowsort
SELECT - 47 + - ( + 55 )
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-633
SELECT + 68 * + 88 * SUM( - + CAST( NULL AS SIGNED ) ) + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT + 68 * + 88 * SUM ( - + CAST ( NULL AS INTEGER ) ) + + 49 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT COALESCE ( + 34, - - 30 + - 64, + 40, 32 * + CAST( NULL AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-635
SELECT COALESCE ( + 34, - - 30 + - 64, + 40, 32 * + CAST ( NULL AS INTEGER ) )
----
34

query I rowsort
SELECT DISTINCT + 36 * - - 34 + - 40
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL ( - - 55 ) * + + 30 * - 62 + - SUM( DISTINCT 33 ) col0
----
-102333

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL ( - - 55 ) * + + 30 * - 62 + - SUM ( DISTINCT 33 ) col0
----
-102333

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT ALL 17 * + 7 + - 60 DIV 47
----
118

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL 17 * + 7 + - 60 / 47
----
118

query I rowsort
SELECT COALESCE ( - 5, - - 25 )
----
-5

query I rowsort
SELECT DISTINCT + 51 * + 19
----
969

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT ALL + 78 * - 32 * 3 AS col2, COUNT( * )
----
-7488
1

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL + 78 * - 32 * 3 AS col2, COUNT ( * )
----
-7488
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-642
SELECT - CAST( + 44 AS SIGNED ) * + 71 * + MIN( - - 17 ) AS col0, - ( COUNT( * ) )
----
-53108
-1

skipif mysql # not compatible
query II rowsort label-642
SELECT - CAST ( + 44 AS INTEGER ) * + 71 * + MIN ( - - 17 ) AS col0, - ( COUNT ( * ) )
----
-53108
-1

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

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

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

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

query I rowsort
SELECT - 27 * - 20 * - - 60 AS col1
----
32400

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT + 61 - - 18 * - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + 61 - - 18 * - COUNT ( * )
----
43

query II rowsort
SELECT ( - - 61 ) AS col0, 78
----
61
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT DISTINCT CAST( + + CASE - + 42 WHEN - 10 THEN - 11 + - 48 - + ( - 18 ) * 3 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT CAST ( + + CASE - + 42 WHEN - 10 THEN - 11 + - 48 - + ( - 18 ) * 3 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT ALL - - 65 DIV - - 34 + + + COUNT( * ) + + 59 + - 22 DIV + 53 * - 96 + 33 * 25
----
886

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - - 65 / - - 34 + + + COUNT ( * ) + + 59 + - 22 / + 53 * - 96 + 33 * 25
----
886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-650
SELECT ALL 66 - 14 - - + 48 / + COUNT( * ) * + - 30 * + 85 / - CAST( NULL AS SIGNED ) / 35 * + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL 66 - 14 - - + 48 / + COUNT ( * ) * + - 30 * + 85 / - CAST ( NULL AS INTEGER ) / 35 * + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT - COUNT( 55 ) + 27 * - 62
----
-1675

skipif mysql # not compatible
query I rowsort label-651
SELECT - COUNT ( 55 ) + 27 * - 62
----
-1675

query I rowsort
SELECT ALL + 97 * - 8
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT NULLIF ( 27, - MAX( DISTINCT - 3 ) + - 17 - + 13 * + AVG ( DISTINCT + 99 ) ) * + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-653
SELECT NULLIF ( 27, - MAX ( DISTINCT - 3 ) + - 17 - + 13 * + AVG ( DISTINCT + 99 ) ) * + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - - CASE ( - 5 ) WHEN + CASE - ( COUNT( * ) ) WHEN ( 89 ) * + 98 THEN NULL WHEN 66 THEN 73 + 44 END * 95 - + 87 THEN 68 + - 72 WHEN 58 * 77 THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT - - CASE ( - 5 ) WHEN + CASE - ( COUNT ( * ) ) WHEN ( 89 ) * + 98 THEN NULL WHEN 66 THEN 73 + 44 END * 95 - + 87 THEN 68 + - 72 WHEN 58 * 77 THEN COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT DISTINCT MIN( DISTINCT - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT MIN ( DISTINCT - 56 ) AS col1
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - NULLIF ( - - 87, + NULLIF ( - - 47, 27 * - 48 * - 74 ) ) * COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-657
SELECT - NULLIF ( - - 87, + NULLIF ( - - 47, 27 * - 48 * - 74 ) ) * COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-658
SELECT MAX( ALL + 3 ) * 37 * - ( + 36 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT MAX ( ALL + 3 ) * 37 * - ( + 36 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 3 * - - 94 col1
----
282

query I rowsort
SELECT ALL - - 98 + 75 * - + 88 AS col2
----
-6502

query I rowsort
SELECT DISTINCT 0 + 11 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL 53 + + + 89 + NULLIF ( + 94, - MAX( 11 ) ) col1
----
236

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL 53 + + + 89 + NULLIF ( + 94, - MAX ( 11 ) ) col1
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT ALL 12 DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL 12 / + 38 AS col2
----
0

query I rowsort
SELECT 52 - 8 AS col2
----
44

query II rowsort
SELECT + 51 col2, + 17
----
51
17

query I rowsort
SELECT ALL 5 + + 56 AS col0
----
61

query I rowsort
SELECT ALL + 36 + 57 col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL 76 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 76 / - 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT 71 DIV - 20
----
-3

skipif mysql # not compatible
query I rowsort label-669
SELECT 71 / - 20
----
-3

query II rowsort
SELECT DISTINCT 11 * + + ( + 57 ), 97 * + 33 col2
----
627
3201

query I rowsort
SELECT ALL 69 + 84 AS col1
----
153

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

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT - COUNT ( ALL + 83 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT COUNT( * ) * + - 15 + - 60 * - - 75 AS col1, + COUNT( * ) - - 25 AS col2
----
-4515
26

skipif mysql # not compatible
query II rowsort label-673
SELECT COUNT ( * ) * + - 15 + - 60 * - - 75 AS col1, + COUNT ( * ) - - 25 AS col2
----
-4515
26

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT CASE - 13 WHEN - + 82 * + + 91 + + 61 + 81 + - - 85 / - 91 / - 39 THEN COUNT( * ) END + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-674
SELECT CASE - 13 WHEN - + 82 * + + 91 + + 61 + 81 + - - 85 / - 91 / - 39 THEN COUNT ( * ) END + 3 AS col0
----
NULL

query I rowsort
SELECT 6 * 6 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT CASE - 0 WHEN + SUM( ALL - 11 ) THEN + COALESCE ( - CAST( + 74 AS SIGNED ), - COALESCE ( - 8, + ( 59 ) * 3 ) ) + 63 ELSE NULL END * 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT CASE - 0 WHEN + SUM ( ALL - 11 ) THEN + COALESCE ( - CAST ( + 74 AS INTEGER ), - COALESCE ( - 8, + ( 59 ) * 3 ) ) + 63 ELSE NULL END * 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT 80 + + - NULLIF ( + + 60, - MAX( + + 85 ) / + 18 * + 66 ) col0
----
20

skipif mysql # not compatible
query I rowsort label-677
SELECT 80 + + - NULLIF ( + + 60, - MAX ( + + 85 ) / + 18 * + 66 ) col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-678
SELECT CAST( - COALESCE ( - 78, + ( - + 96 ) ) AS SIGNED ) + + + COUNT( * ) * + 11 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-678
SELECT CAST ( - COALESCE ( - 78, + ( - + 96 ) ) AS INTEGER ) + + + COUNT ( * ) * + 11 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT COUNT( * ) + 95 - - 30 * - 79 AS col0
----
-2274

skipif mysql # not compatible
query I rowsort label-679
SELECT COUNT ( * ) + 95 - - 30 * - 79 AS col0
----
-2274

query I rowsort
SELECT - COALESCE ( - 60, 20 - 59 + - - 51 + 61 * + 17, - CASE ( 62 ) WHEN 43 THEN 68 WHEN + 37 THEN 78 END * - 70 ) + 36 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-681
SELECT CAST( NULL AS SIGNED ) + + + 10 * 49 + - 79, 78 AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-681
SELECT CAST ( NULL AS INTEGER ) + + + 10 * 49 + - 79, 78 AS col0
----
NULL
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-682
SELECT ALL - 26 * - CASE - 11 WHEN + + 67 + + 20 + 69 - + + 99 - 31 + - 98 * + CAST( - 33 AS SIGNED ) / + 31 THEN ( + 22 ) * + 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - 26 * - CASE - 11 WHEN + + 67 + + 20 + 69 - + + 99 - 31 + - 98 * + CAST ( - 33 AS INTEGER ) / + 31 THEN ( + 22 ) * + 77 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-683
SELECT - 87 DIV + 69 + - 68, - 14 - + 40 + + 97 AS col2, ( 26 ) col1
----
-69
43
26

skipif mysql # not compatible
query III rowsort label-683
SELECT - 87 / + 69 + - 68, - 14 - + 40 + + 97 AS col2, ( 26 ) col1
----
-69
43
26

query I rowsort
SELECT 40 * - + 98 AS col1
----
-3920

query I rowsort
SELECT + 61 + + + 32 * + - 9
----
-227

query II rowsort
SELECT 18 AS col1, - 40
----
18
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-687
SELECT - ( + COUNT( * ) ) * 8 DIV + - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-687
SELECT - ( + COUNT ( * ) ) * 8 / + - 63 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT CASE ( - + 15 ) WHEN - SUM( - 96 ) + + 69 THEN + 98 END + COUNT( 49 ) / 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT CASE ( - + 15 ) WHEN - SUM ( - 96 ) + + 69 THEN + 98 END + COUNT ( 49 ) / 18 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 24 * - 47 * + - 46
----
-51888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT - 27 + 43 + 6 DIV + MAX( 38 )
----
16

skipif mysql # not compatible
query I rowsort label-691
SELECT - 27 + 43 + 6 / + MAX ( 38 )
----
16

query I rowsort
SELECT + ( + 39 ) * 76 AS col0
----
2964

query I rowsort
SELECT ( + 24 ) + - 78 - ( + 88 ) AS col2
----
-142

query I rowsort
SELECT 43 - - 81 * + 45
----
3688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT DISTINCT - + 45 + COALESCE ( - CAST( NULL AS SIGNED ), 17 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT - + 45 + COALESCE ( - CAST ( NULL AS INTEGER ), 17 ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT - 74 DIV + 29 + - + 67 - MIN( + 44 ) + + NULLIF ( 5, - 86 ) * - COUNT( DISTINCT 16 )
----
-118

skipif mysql # not compatible
query I rowsort label-696
SELECT - 74 / + 29 + - + 67 - MIN ( + 44 ) + + NULLIF ( 5, - 86 ) * - COUNT ( DISTINCT 16 )
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-697
SELECT 89 * - 5 + + + COUNT( + 73 ) DIV + + 25
----
-445

skipif mysql # not compatible
query I rowsort label-697
SELECT 89 * - 5 + + + COUNT ( + 73 ) / + + 25
----
-445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-698
SELECT 55 DIV COUNT( * ) + - 19 + - COUNT( * ) AS col0, - ( - CAST( NULL AS SIGNED ) ), 4 + - 34 AS col2
----
35
NULL
-30

skipif mysql # not compatible
query III rowsort label-698
SELECT 55 / COUNT ( * ) + - 19 + - COUNT ( * ) AS col0, - ( - CAST ( NULL AS INTEGER ) ), 4 + - 34 AS col2
----
35
NULL
-30

query I rowsort
SELECT ALL - ( - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT + + COALESCE ( + MIN( ALL 80 ), + - NULLIF ( - COUNT( DISTINCT 86 ), - 10 * 55 - ( - 38 ) ) + SUM( 80 ) ) * + 94 AS col0
----
7520

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT + + COALESCE ( + MIN ( ALL 80 ), + - NULLIF ( - COUNT ( DISTINCT 86 ), - 10 * 55 - ( - 38 ) ) + SUM ( 80 ) ) * + 94 AS col0
----
7520

query I rowsort
SELECT ALL + 77 * - 14 * + 18 AS col2
----
-19404

query I rowsort
SELECT ALL - 65 * 36 * 74 + + 24
----
-173136

query I rowsort
SELECT DISTINCT - 96 * 60 AS col0
----
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-704
SELECT ALL 85 * 72 * 17 + + + 26 AS col0, + 27 * + 13 + + CAST( + 67 AS SIGNED )
----
104066
418

skipif mysql # not compatible
query II rowsort label-704
SELECT ALL 85 * 72 * 17 + + + 26 AS col0, + 27 * + 13 + + CAST ( + 67 AS INTEGER )
----
104066
418

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT SUM( ALL 91 ) col1
----
91

skipif mysql # not compatible
query I rowsort label-705
SELECT SUM ( ALL 91 ) col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-706
SELECT DISTINCT 53 * CASE - CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) / - 81 - - 16 / - 50 + + 75 THEN NULL WHEN + 11 THEN 49 / - 15 WHEN + 45 * - 98 + 93 THEN AVG ( + 90 ) END - + 92 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT 53 * CASE - CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) / - 81 - - 16 / - 50 + + 75 THEN NULL WHEN + 11 THEN 49 / - 15 WHEN + 45 * - 98 + 93 THEN AVG ( + 90 ) END - + 92 col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT 6 + 71 - - - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-708
SELECT 6 + 71 - - - COUNT ( * ) AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT 77 * 38 AS col2, CAST( NULL AS SIGNED )
----
2926
NULL

skipif mysql # not compatible
query II rowsort label-709
SELECT 77 * 38 AS col2, CAST ( NULL AS INTEGER )
----
2926
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-710
SELECT + MAX( - 25 ), - COUNT( * ) * + CAST( NULL AS SIGNED ) * - - COUNT( * ) + + COALESCE ( + 9, - 8, - - 28 / CAST( - 70 AS SIGNED ) ) + - COUNT( * ) AS col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-710
SELECT + MAX ( - 25 ), - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + COALESCE ( + 9, - 8, - - 28 / CAST ( - 70 AS INTEGER ) ) + - COUNT ( * ) AS col0
----
-25
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-711
SELECT ALL 92 * - 83, - COUNT( * ) DIV + 23 col1
----
-7636
0

skipif mysql # not compatible
query II rowsort label-711
SELECT ALL 92 * - 83, - COUNT ( * ) / + 23 col1
----
-7636
0

query I rowsort
SELECT ALL ( + 2 ) * - 3 * 94 * + - 97 AS col2
----
54708

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

skipif mysql # not compatible
query I rowsort label-713
SELECT + 92 * COUNT ( * ) * - 26 AS col0
----
-2392

query I rowsort
SELECT ALL 56 * + 83 * + 56 * 21
----
5466048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT COALESCE ( - 36, 12 + + COUNT( * ) * 55 + - COALESCE ( + ( + + CASE WHEN NOT ( NULL ) IN ( - 32 ) THEN + 66 END ), - 72 + 99, 55 - 82 DIV 58 ) + + 48 * + CAST( NULL AS SIGNED ), 60 + 31 ) * - 56 AS col0
----
2016

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT COALESCE ( - 36, 12 + + COUNT ( * ) * 55 + - COALESCE ( + ( + + CASE WHEN NOT ( NULL ) IN ( - 32 ) THEN + 66 END ), - 72 + 99, 55 - 82 / 58 ) + + 48 * + CAST ( NULL AS INTEGER ), 60 + 31 ) * - 56 AS col0
----
2016

query I rowsort
SELECT ALL 28 + + + NULLIF ( + 98, - 54 + AVG ( DISTINCT + + 95 ) )
----
126

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT ALL + COALESCE ( 62, + CASE - 73 WHEN CAST( + + 5 AS SIGNED ) * 46 + 38 THEN - 28 END * 65, 69 * COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) * NULLIF ( COUNT( * ), + 96 ) + - ( ( MIN( 46 ) ) ) * 20, MIN( DISTINCT + 65 ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL + COALESCE ( 62, + CASE - 73 WHEN CAST ( + + 5 AS INTEGER ) * 46 + 38 THEN - 28 END * 65, 69 * COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * NULLIF ( COUNT ( * ), + 96 ) + - ( ( MIN ( 46 ) ) ) * 20, MIN ( DISTINCT + 65 ) ) )
----
62

query I rowsort
SELECT DISTINCT 72 + 53 + - + 60
----
65

query I rowsort
SELECT ALL - NULLIF ( + + 16, 75 ) * - 58
----
928

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT MIN( 38 ) AS col1, 69
----
38
69

skipif mysql # not compatible
query II rowsort label-721
SELECT MIN ( 38 ) AS col1, 69
----
38
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-722
SELECT DISTINCT 99 * + - ( - 20 ) * - 26 DIV COUNT( * ) + - ( - COUNT( * ) ) DIV + COUNT( * )
----
-51479

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT 99 * + - ( - 20 ) * - 26 / COUNT ( * ) + - ( - COUNT ( * ) ) / + COUNT ( * )
----
-51479

onlyif mysql # aggregate syntax: 
query II rowsort label-723
SELECT + - ( + MAX( + - 77 ) ) + + + COUNT( * ) AS col1, + COUNT( - 39 ) AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-723
SELECT + - ( + MAX ( + - 77 ) ) + + + COUNT ( * ) AS col1, + COUNT ( - 39 ) AS col1
----
78
1

query II rowsort
SELECT - 48 * + + 9 AS col2, + 79
----
-432
79

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

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

query I rowsort
SELECT DISTINCT - 21 * + 49 + + 25 - - 18 + - 86 * - - 73 col2
----
-7264

query I rowsort
SELECT ALL + 62 + + 85 AS col0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT - 12 DIV - ( - ( - - 89 ) )
----
0

skipif mysql # not compatible
query I rowsort label-728
SELECT - 12 / - ( - ( - - 89 ) )
----
0

query I rowsort
SELECT - ( + 56 ) + + 46
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT ALL - 18 DIV + 5 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - 18 / + 5 AS col2
----
-3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-732
SELECT DISTINCT 74 * 40 * + 8 - - 91 DIV + 31, 28 - 79 + - 0 AS col0
----
23682
-51

skipif mysql # not compatible
query II rowsort label-732
SELECT DISTINCT 74 * 40 * + 8 - - 91 / + 31, 28 - 79 + - 0 AS col0
----
23682
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT DISTINCT + 37 DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT + 37 / 46 AS col2
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-737
SELECT DISTINCT + COALESCE ( CASE + COALESCE ( - 41, + + MAX( + 22 ) + - 25 + - 98 + + 46 + - - 14 / + 94, - CAST( - 98 AS DECIMAL ) / 17 ) WHEN + 1 THEN NULL WHEN + 42 THEN 19 + - 97 ELSE - 47 END, COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT + COALESCE ( CASE + COALESCE ( - 41, + + MAX ( + 22 ) + - 25 + - 98 + + 46 + - - 14 / + 94, - CAST ( - 98 AS REAL ) / 17 ) WHEN + 1 THEN NULL WHEN + 42 THEN 19 + - 97 ELSE - 47 END, COUNT ( * ) )
----
-47

query I rowsort
SELECT ALL - 47 * - - 67 * - 9
----
28341

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT 10 * - 16 * - SUM( + + 30 ) - 84 + - - 71 AS col0
----
4787

skipif mysql # not compatible
query I rowsort label-739
SELECT 10 * - 16 * - SUM ( + + 30 ) - 84 + - - 71 AS col0
----
4787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT + CASE AVG ( + + 98 ) WHEN 40 THEN + ( - CAST( + 49 AS SIGNED ) ) - + ( - 55 ) END * 31 - 24 * - NULLIF ( 52 - 15, 33 ) - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT + CASE AVG ( + + 98 ) WHEN 40 THEN + ( - CAST ( + 49 AS INTEGER ) ) - + ( - 55 ) END * 31 - 24 * - NULLIF ( 52 - 15, 33 ) - 97 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT ALL + CAST( + + 57 AS SIGNED ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + CAST ( + + 57 AS INTEGER ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT DISTINCT + NULLIF ( - - CASE 83 WHEN - - 10 THEN + CAST( + + CASE - 99 WHEN - NULLIF ( 53, - COUNT( * ) + 77 * 50 ) THEN MIN( ALL - 10 ) WHEN - 29 + 5 THEN NULL END AS SIGNED ) END, + 9 + + 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + NULLIF ( - - CASE 83 WHEN - - 10 THEN + CAST ( + + CASE - 99 WHEN - NULLIF ( 53, - COUNT ( * ) + 77 * 50 ) THEN MIN ( ALL - 10 ) WHEN - 29 + 5 THEN NULL END AS INTEGER ) END, + 9 + + 48 ) AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT COALESCE ( MIN( DISTINCT 96 ), + 61, + - COUNT( ALL 25 ) + + COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-745
SELECT COALESCE ( MIN ( DISTINCT 96 ), + 61, + - COUNT ( ALL 25 ) + + COUNT ( * ) )
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT MAX( + 4 ) * + 11 + 28 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-747
SELECT MAX ( + 4 ) * + 11 + 28 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT 48 * + MIN( ALL - CAST( - + 99 AS SIGNED ) ) - + CAST( NULL AS SIGNED ) * - 88 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT 48 * + MIN ( ALL - CAST ( - + 99 AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) * - 88 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - 46 + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-749
SELECT - 46 + COUNT ( * ) AS col1
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT - + 45 * 25 * + ( - 77 ) - + - SUM( ALL + 71 ) + + 92 + + 59 + + 48
----
86895

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - + 45 * 25 * + ( - 77 ) - + - SUM ( ALL + 71 ) + + 92 + + 59 + + 48
----
86895

query I rowsort
SELECT - + COALESCE ( + + 50, 9 ) + + ( 76 ) * - 31 AS col1
----
-2406

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT 29 * 5 DIV + - 64 + - NULLIF ( 91, - 32 )
----
-93

skipif mysql # not compatible
query I rowsort label-753
SELECT 29 * 5 / + - 64 + - NULLIF ( 91, - 32 )
----
-93

query I rowsort
SELECT DISTINCT - - 26 * - - 20 + + 13
----
533

query I rowsort
SELECT + - 80 + + - 54 AS col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL 79 + + + MIN( - 67 ) + - 46
----
-34

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 79 + + + MIN ( - 67 ) + - 46
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-757
SELECT DISTINCT + ( + - 64 ) * + NULLIF ( - 80, CAST( NULL AS DECIMAL ) ), - CAST( NULLIF ( CAST( - + 80 AS SIGNED ), - + CAST( 91 AS SIGNED ) * 2 ) AS SIGNED ) AS col1
----
5120
80

skipif mysql # not compatible
query II rowsort label-757
SELECT DISTINCT + ( + - 64 ) * + NULLIF ( - 80, CAST ( NULL AS REAL ) ), - CAST ( NULLIF ( CAST ( - + 80 AS INTEGER ), - + CAST ( 91 AS INTEGER ) * 2 ) AS INTEGER ) AS col1
----
5120
80

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL ( + 87 ) * 40 - - COUNT( * ) AS col0
----
3481

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL ( + 87 ) * 40 - - COUNT ( * ) AS col0
----
3481

query I rowsort
SELECT + 32 + 1
----
33

query I rowsort
SELECT DISTINCT + 66 + + - 98 AS col1
----
-32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT ALL - 33 - CAST( + 99 AS SIGNED )
----
-132

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL - 33 - CAST ( + 99 AS INTEGER )
----
-132

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-764
SELECT + 7 + - CAST( + - MAX( + + 10 ) AS SIGNED ) + - 87, 96 * ( 1 ) + + + 93 * + 12 AS col1
----
-70
1212

skipif mysql # not compatible
query II rowsort label-764
SELECT + 7 + - CAST ( + - MAX ( + + 10 ) AS INTEGER ) + - 87, 96 * ( 1 ) + + + 93 * + 12 AS col1
----
-70
1212

query I rowsort
SELECT + + 53 * 92
----
4876

query II rowsort
SELECT ALL + 8 AS col2, - NULLIF ( 89, - 2 + - 49 * - 66 ) AS col1
----
8
-89

query I rowsort
SELECT ALL 53 - 65 AS col2
----
-12

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

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

query I rowsort
SELECT DISTINCT 82 * 15
----
1230

query I rowsort
SELECT - 11 * + 68 AS col0
----
-748

query II rowsort
SELECT 90, ( - 84 ) * - 42 + 82 + - 67 AS col1
----
90
3543

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT - COUNT( * ) * - 36 + 48 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-772
SELECT - COUNT ( * ) * - 36 + 48 AS col1
----
84

query II rowsort
SELECT DISTINCT - 44, + 81 AS col0
----
-44
81

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT 88 DIV 88 * - ( + + 91 ) DIV 90 * + 71 + ( - 79 )
----
-150

skipif mysql # not compatible
query I rowsort label-774
SELECT 88 / 88 * - ( + + 91 ) / 90 * + 71 + ( - 79 )
----
-150

query II rowsort
SELECT DISTINCT - 57 AS col2, 50 * 0 - - 60 col2
----
-57
60

query I rowsort
SELECT ALL + 88 + - - 13
----
101

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

skipif mysql # not compatible
query I rowsort label-777
SELECT CAST ( - 37 AS INTEGER ) * COUNT ( * ) col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT COUNT( * ) * + 18 * + 55 AS col0
----
990

skipif mysql # not compatible
query I rowsort label-778
SELECT COUNT ( * ) * + 18 * + 55 AS col0
----
990

query I rowsort
SELECT 41 + + 48 AS col1
----
89

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

query II rowsort
SELECT 62 AS col1, 52 AS col2
----
62
52

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT + - COUNT( * ) * - 9 + 63 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-782
SELECT + - COUNT ( * ) * - 9 + 63 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL + 39 + + 33 + + + ( + COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + 39 + + 33 + + + ( + COUNT ( * ) )
----
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-784
SELECT ALL + 69 + 90 / CAST( NULL AS SIGNED ) * + CAST( + 86 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + 69 + 90 / CAST ( NULL AS INTEGER ) * + CAST ( + 86 AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL - 98, 37 col1
----
-98
37

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT + + 41 col2, + NULLIF ( + - ( + - 57 ), + + 11 * - COUNT( * ) + ( + COUNT( * ) ) ) + - 38
----
41
19

skipif mysql # not compatible
query II rowsort label-786
SELECT + + 41 col2, + NULLIF ( + - ( + - 57 ), + + 11 * - COUNT ( * ) + ( + COUNT ( * ) ) ) + - 38
----
41
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-787
SELECT ALL - SUM( - CASE - - 27 WHEN 99 THEN NULL ELSE 71 DIV 95 - 54 END ) + - 73 DIV + 96, 17 col1
----
-54
17

skipif mysql # not compatible
query II rowsort label-787
SELECT ALL - SUM ( - CASE - - 27 WHEN 99 THEN NULL ELSE 71 / 95 - 54 END ) + - 73 / + 96, 17 col1
----
-54
17

query I rowsort
SELECT DISTINCT + - 1 * - 93 * - - 88 + + + 77 + + 94 AS col0
----
8355

query II rowsort
SELECT + 81 AS col2, 80
----
81
80

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT 49 AS col0, + COALESCE ( 72, ( - - COUNT( * ) ), - MAX( ALL - + 66 ) ) + + 97
----
49
169

skipif mysql # not compatible
query II rowsort label-790
SELECT 49 AS col0, + COALESCE ( 72, ( - - COUNT ( * ) ), - MAX ( ALL - + 66 ) ) + + 97
----
49
169

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

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

query II rowsort
SELECT - 4 AS col2, 71
----
-4
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-793
SELECT + 30 DIV - 25 - - 70 + - SUM( DISTINCT - 37 ) DIV 54 + 14 + 54 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-793
SELECT + 30 / - 25 - - 70 + - SUM ( DISTINCT - 37 ) / 54 + 14 + 54 AS col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-794
SELECT ALL + COALESCE ( + 38, + 1 DIV - + 85 * - COUNT( * ) + + 52 + - 25 ) - - 99 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL + COALESCE ( + 38, + 1 / - + 85 * - COUNT ( * ) + + 52 + - 25 ) - - 99 AS col1
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT ALL + 62 - + CAST( - 90 AS SIGNED ) col2
----
152

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + 62 - + CAST ( - 90 AS INTEGER ) col2
----
152

query II rowsort
SELECT DISTINCT + 2 AS col2, - 82
----
2
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - COUNT( DISTINCT - 11 ) - + + ( COUNT( * ) ) * 73 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-797
SELECT - COUNT ( DISTINCT - 11 ) - + + ( COUNT ( * ) ) * 73 AS col1
----
-74

query I rowsort
SELECT ALL COALESCE ( ( + 56 ), - 84 + - - 94 - - 7 ) * 35
----
1960

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT ALL - ( + 85 ) - - COALESCE ( + + COUNT( * ), + - 28 * + 25 ), COUNT( * ) * - - 21 AS col2
----
-84
21

skipif mysql # not compatible
query II rowsort label-800
SELECT ALL - ( + 85 ) - - COALESCE ( + + COUNT ( * ), + - 28 * + 25 ), COUNT ( * ) * - - 21 AS col2
----
-84
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-801
SELECT ( 26 ) DIV + - NULLIF ( + 12, - 7 + - + 39 + + 72 * + - COALESCE ( - 42, - + 61, + 43 ) * - 10 + CAST( 53 AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-801
SELECT ( 26 ) / + - NULLIF ( + 12, - 7 + - + 39 + + 72 * + - COALESCE ( - 42, - + 61, + 43 ) * - 10 + CAST ( 53 AS INTEGER ) )
----
-2

query I rowsort
SELECT ALL 47 * 3
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-803
SELECT MIN( DISTINCT + CAST( 17 AS SIGNED ) ) * - 92 col1
----
-1564

skipif mysql # not compatible
query I rowsort label-803
SELECT MIN ( DISTINCT + CAST ( 17 AS INTEGER ) ) * - 92 col1
----
-1564

query I rowsort
SELECT ( - 73 ) + 29 * - - 27 AS col0
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-805
SELECT COUNT( * ) + + ( - CAST( 14 AS SIGNED ) ) + 92 - - 15
----
94

skipif mysql # not compatible
query I rowsort label-805
SELECT COUNT ( * ) + + ( - CAST ( 14 AS INTEGER ) ) + 92 - - 15
----
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT COUNT( DISTINCT 39 ) * + 64 * - + 38 * - COUNT( * ) * 36 * - COUNT( * ) AS col2, - 34 AS col2
----
-87552
-34

skipif mysql # not compatible
query II rowsort label-807
SELECT COUNT ( DISTINCT 39 ) * + 64 * - + 38 * - COUNT ( * ) * 36 * - COUNT ( * ) AS col2, - 34 AS col2
----
-87552
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT 99 + + 10 - 86 + - + SUM( NULLIF ( - 3, - 14 + + - 59 ) )
----
26

skipif mysql # not compatible
query I rowsort label-808
SELECT 99 + + 10 - 86 + - + SUM ( NULLIF ( - 3, - 14 + + - 59 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT NULLIF ( - ( - + NULLIF ( + 28, - - 66 ) ), + COUNT( ALL - - 68 ) ) + + - 5 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT NULLIF ( - ( - + NULLIF ( + 28, - - 66 ) ), + COUNT ( ALL - - 68 ) ) + + - 5 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-810
SELECT ALL + CASE SUM( DISTINCT + - 49 ) WHEN - + COUNT( * ) THEN CAST( NULL AS SIGNED ) + - CASE - CAST( 8 AS DECIMAL ) WHEN 98 + + 94 * - 97 * 46 + - AVG ( DISTINCT - 19 ) THEN - NULLIF ( - COUNT( 40 ), 26 ) * 68 WHEN + 89 * 13 THEN NULL ELSE NULL END * 83 END + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL + CASE SUM ( DISTINCT + - 49 ) WHEN - + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + - CASE - CAST ( 8 AS REAL ) WHEN 98 + + 94 * - 97 * 46 + - AVG ( DISTINCT - 19 ) THEN - NULLIF ( - COUNT ( 40 ), 26 ) * 68 WHEN + 89 * 13 THEN NULL ELSE NULL END * 83 END + 15 AS col2
----
NULL

query I rowsort
SELECT ALL 33 + + 71 * 35 * + 35 * + + 35 - + - 6 AS col1
----
3044164

onlyif mysql # DIV for integer division: 
query I rowsort label-812
SELECT NULLIF ( - - 6, - 69 ) DIV NULLIF ( - 96, 22 + + - 25 + 57 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-812
SELECT NULLIF ( - - 6, - 69 ) / NULLIF ( - 96, 22 + + - 25 + 57 ) AS col1
----
0

query II rowsort
SELECT 41 * - 34, 73 AS col0
----
-1394
73

query I rowsort
SELECT ALL ( - + 85 ) + + 77 AS col0
----
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT ALL 11 * - COALESCE ( COUNT( * ), - 66 * + 77 + - 32 * 40 ), 71 AS col2
----
-11
71

skipif mysql # not compatible
query II rowsort label-816
SELECT ALL 11 * - COALESCE ( COUNT ( * ), - 66 * + 77 + - 32 * 40 ), 71 AS col2
----
-11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL 21 + - + NULLIF ( - NULLIF ( 75, - 60 ), - CASE + 71 WHEN 38 + 43 + - + 5 * + 59 * + 84 + COUNT( * ) THEN + 42 * COUNT( * ) ELSE NULL END * - 12 )
----
96

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL 21 + - + NULLIF ( - NULLIF ( 75, - 60 ), - CASE + 71 WHEN 38 + 43 + - + 5 * + 59 * + 84 + COUNT ( * ) THEN + 42 * COUNT ( * ) ELSE NULL END * - 12 )
----
96

query I rowsort
SELECT ALL + 7 + NULLIF ( - 65, - 16 ) col2
----
-58

query I rowsort
SELECT DISTINCT - - 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT - COALESCE ( - COUNT( * ), 3 )
----
1

skipif mysql # not compatible
query I rowsort label-820
SELECT - COALESCE ( - COUNT ( * ), 3 )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT + ( - NULLIF ( + + 95, - 68 * 89 + - 74 ) ) * CASE - + COUNT( * ) WHEN - 38 THEN 48 WHEN + + 14 * + 50 / - 59 - 79 THEN 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT + ( - NULLIF ( + + 95, - 68 * 89 + - 74 ) ) * CASE - + COUNT ( * ) WHEN - 38 THEN 48 WHEN + + 14 * + 50 / - 59 - 79 THEN 21 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL + 16 DIV - 4 + + 75
----
71

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + 16 / - 4 + + 75
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT + 31 + + + 99 - - + 14 DIV + 99 + 91 * + 86
----
7956

skipif mysql # not compatible
query I rowsort label-824
SELECT + 31 + + + 99 - - + 14 / + 99 + 91 * + 86
----
7956

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT ALL - - COALESCE ( + 72, + 5 * - ( + + 56 ) - - 97 DIV - 74 * + 57 ) - - 5 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL - - COALESCE ( + 72, + 5 * - ( + + 56 ) - - 97 / - 74 * + 57 ) - - 5 AS col0
----
77

query I rowsort
SELECT 12 + - - 9 * ( - 3 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-828
SELECT ALL + + 24 * - + 86 * + CASE + 94 WHEN - 30 / - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - - 20 THEN 67 * + + 82 / - 10 + - 30 WHEN 76 THEN + 1 WHEN 71 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + + 24 * - + 86 * + CASE + 94 WHEN - 30 / - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - - 20 THEN 67 * + + 82 / - 10 + - 30 WHEN 76 THEN + 1 WHEN 71 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-829
SELECT DISTINCT ( - - 8 ), - COALESCE ( + COUNT( * ), - + 1 ) * + NULLIF ( + 32, - - 23 DIV 50 * - - 51 + + 96 DIV + 28 * COUNT( + 35 ) ) DIV - 11 AS col2
----
8
2

skipif mysql # not compatible
query II rowsort label-829
SELECT DISTINCT ( - - 8 ), - COALESCE ( + COUNT ( * ), - + 1 ) * + NULLIF ( + 32, - - 23 / 50 * - - 51 + + 96 / + 28 * COUNT ( + 35 ) ) / - 11 AS col2
----
8
2

query I rowsort
SELECT + 3 * ( + 23 )
----
69

query II rowsort
SELECT ALL + + 32 * - - 21, - 6 AS col2
----
672
-6

query II rowsort
SELECT 7 AS col2, + 82 + - - 33 + 16 AS col2
----
7
131

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT MIN( + ( + 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT MIN ( + ( + 18 ) )
----
18

query I rowsort
SELECT ALL NULLIF ( + 67, + 91 ) AS col2
----
67

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

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

query II rowsort
SELECT - 58, + COALESCE ( + 12, - 61 ) AS col1
----
-58
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-838
SELECT DISTINCT CASE - 68 WHEN 54 THEN CAST( NULL AS SIGNED ) + - SUM( 89 ) + 60 WHEN + 90 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT CASE - 68 WHEN 54 THEN CAST ( NULL AS INTEGER ) + - SUM ( 89 ) + 60 WHEN + 90 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-840
SELECT - ( + 80 ) - - - CAST( + 47 AS SIGNED ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-840
SELECT - ( + 80 ) - - - CAST ( + 47 AS INTEGER ) AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT ALL + 25 + + 78 DIV - ( + 74 ) + - MIN( ALL + - 26 ) DIV + 30
----
24

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + 25 + + 78 / - ( + 74 ) + - MIN ( ALL + - 26 ) / + 30
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT - ( + 53 ) + COUNT( CAST( - 14 AS SIGNED ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-842
SELECT - ( + 53 ) + COUNT ( CAST ( - 14 AS INTEGER ) ) AS col2
----
-52

query I rowsort
SELECT + 45 + NULLIF ( + 61, + 73 + - 79 ) col1
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT 89 * + 63 * ( - - 53 ) * 14 * + COUNT( * ) * - 55 + - + 54 + + + COUNT( * ) * - 4 - - 49 AS col2
----
-228821679

skipif mysql # not compatible
query I rowsort label-845
SELECT 89 * + 63 * ( - - 53 ) * 14 * + COUNT ( * ) * - 55 + - + 54 + + + COUNT ( * ) * - 4 - - 49 AS col2
----
-228821679

query II rowsort
SELECT ALL - 81 * - 24 + + 35 AS col2, - 96
----
1979
-96

query I rowsort
SELECT + CASE 97 WHEN COALESCE ( - 89, + + 76 + + 93 + + 50, + 76 / 20 ) + - 80 + + + ( + 49 ) THEN + ( + 43 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 9 + - 55 AS col1
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL + COUNT( * ) * - + 30 + + - ( 68 ) + - - 71
----
-27

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + COUNT ( * ) * - + 30 + + - ( 68 ) + - - 71
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT - - MAX( 43 ) * + + 46 + - MAX( DISTINCT + - 48 ) AS col2
----
2026

skipif mysql # not compatible
query I rowsort label-852
SELECT - - MAX ( 43 ) * + + 46 + - MAX ( DISTINCT + - 48 ) AS col2
----
2026

query I rowsort
SELECT + - 9 AS col2
----
-9

query I rowsort
SELECT ALL + 87 * - 16
----
-1392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-855
SELECT DISTINCT + COALESCE ( 91, - MAX( + 93 ) + - 58 + 9 + 7 DIV + 4 - - 89 + + + 35 DIV - 82 + - - 75 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT + COALESCE ( 91, - MAX ( + 93 ) + - 58 + 9 + 7 / + 4 - - 89 + + + 35 / - 82 + - - 75 ) AS col1
----
91

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-858
SELECT DISTINCT ( - - 81 ) * 91 + - - CAST( NULL AS SIGNED ), 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-858
SELECT DISTINCT ( - - 81 ) * 91 + - - CAST ( NULL AS INTEGER ), 33 AS col0
----
NULL
33

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT + COUNT( * ) col0, 35 + 81
----
1
116

skipif mysql # not compatible
query II rowsort label-859
SELECT + COUNT ( * ) col0, 35 + 81
----
1
116

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT ALL - 54 DIV + 13 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - 54 / + 13 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT + 87 DIV 42 * + + 92 * 88 * - 58 * - SUM( + 90 )
----
84522240

skipif mysql # not compatible
query I rowsort label-861
SELECT + 87 / 42 * + + 92 * 88 * - 58 * - SUM ( + 90 )
----
84522240

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT - 51, - MAX( ALL + 94 ) - + COUNT( * ) + - 42 * + 26 + - 63 + - 33 * ( + 31 ) col2
----
-51
-2273

skipif mysql # not compatible
query II rowsort label-862
SELECT - 51, - MAX ( ALL + 94 ) - + COUNT ( * ) + - 42 * + 26 + - 63 + - 33 * ( + 31 ) col2
----
-51
-2273

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL + + COUNT( - 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + + COUNT ( - 90 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT + + 80 - - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-864
SELECT + + 80 - - + COUNT ( * )
----
81

query II rowsort
SELECT + 84 AS col0, 21
----
84
21

onlyif mysql # DIV for integer division: 
query I rowsort label-866
SELECT ALL - 10 DIV ( - 63 ) * 80 + 92
----
92

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - 10 / ( - 63 ) * 80 + 92
----
92

query I rowsort
SELECT + 45 - 74
----
-29

query I rowsort
SELECT + CASE 10 WHEN - + 20 THEN + - 45 END / 36 * 18
----
NULL

query I rowsort
SELECT ( 70 ) AS col2
----
70

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

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL MIN ( - 88 )
----
-88

query II rowsort
SELECT - ( 12 ), + 6 col2
----
-12
6

query I rowsort
SELECT - 12 * + 4
----
-48

query I rowsort
SELECT ALL 64 * - 43 * + - 15 AS col2
----
41280

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

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - ( 91 ) + - COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + 22 + - 22 + + 82 + - 62 * SUM( 26 ) * - + 14 + 60 col2
----
22710

skipif mysql # not compatible
query I rowsort label-875
SELECT + 22 + - 22 + + 82 + - 62 * SUM ( 26 ) * - + 14 + 60 col2
----
22710

query I rowsort
SELECT + 40 * - + 91 * 96 col1
----
-349440

query I rowsort
SELECT - 45 + + + 52
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT - MIN( ALL + 16 ) + - + 68 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - MIN ( ALL + 16 ) + - + 68 AS col1
----
-84

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

query I rowsort
SELECT - 80 - 14 AS col1
----
-94

query I rowsort
SELECT ALL ( + 55 ) AS col1
----
55

query I rowsort
SELECT DISTINCT ( + 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL - 57 + MAX( COALESCE ( - + ( 84 ), 37, 23 + + - 82 ) ) * - ( - CASE + - 57 WHEN - 22 THEN NULLIF ( - + 81, ( + NULLIF ( + 58, 38 ) ) + + 35 ) * 57 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - 57 + MAX ( COALESCE ( - + ( 84 ), 37, 23 + + - 82 ) ) * - ( - CASE + - 57 WHEN - 22 THEN NULLIF ( - + 81, ( + NULLIF ( + 58, 38 ) ) + + 35 ) * 57 END ) AS col1
----
NULL

query I rowsort
SELECT - 10 * 59 AS col0
----
-590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT DISTINCT - 84 + + + COALESCE ( 16, + 29 + - - ( - 24 ), + 14 * + 93 + CAST( + 52 AS SIGNED ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - 84 + + + COALESCE ( 16, + 29 + - - ( - 24 ), + 14 * + 93 + CAST ( + 52 AS INTEGER ) ) AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-886
SELECT ALL CAST( + 36 AS SIGNED ), 71 + + + 65 AS col0
----
36
136

skipif mysql # not compatible
query II rowsort label-886
SELECT ALL CAST ( + 36 AS INTEGER ), 71 + + + 65 AS col0
----
36
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-887
SELECT DISTINCT CAST( + 19 AS SIGNED ) AS col0, + 2 * COUNT( * )
----
19
2

skipif mysql # not compatible
query II rowsort label-887
SELECT DISTINCT CAST ( + 19 AS INTEGER ) AS col0, + 2 * COUNT ( * )
----
19
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT ALL 32 * + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL 32 * + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 55 * - 50 AS col2
----
2750

query II rowsort
SELECT - 99 + - - 65 AS col2, ( 33 )
----
-34
33

query I rowsort
SELECT ALL + - 82 * + 42 + + 3 AS col2
----
-3441

query I rowsort
SELECT - - 19 * 51
----
969

query I rowsort
SELECT DISTINCT - + 15 * + 41 AS col0
----
-615

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

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

query I rowsort
SELECT ALL + + 19 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT + + 95 + + 1 DIV 16
----
95

skipif mysql # not compatible
query I rowsort label-897
SELECT + + 95 + + 1 / 16
----
95

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

query II rowsort
SELECT DISTINCT + 25 * 62 AS col0, 79 AS col1
----
1550
79

query I rowsort
SELECT 9 * + 85 + + 47 AS col1
----
812

query I rowsort
SELECT DISTINCT 73 * - 82 * - 7 AS col2
----
41902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-902
SELECT ( + + 46 ) / 32 + 31 * MIN( - + 3 ) * 81 * CASE + 88 WHEN + 91 THEN - + 55 * - - 57 * - - COUNT( * ) WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-902
SELECT ( + + 46 ) / 32 + 31 * MIN ( - + 3 ) * 81 * CASE + 88 WHEN + 91 THEN - + 55 * - - 57 * - - COUNT ( * ) WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * - 54
----
NULL

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

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 33 + - - 81
----
NULL

query I rowsort
SELECT ALL - 73 + + 24 + - 85 * + 61 AS col0
----
-5234

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

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

query II rowsort
SELECT ALL 53 + - 2 * + - 87 AS col1, + 19
----
227
19

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT 33 * + + 46 + 82 - - + 34 + + 81 * COUNT( * )
----
1715

skipif mysql # not compatible
query I rowsort label-907
SELECT 33 * + + 46 + 82 - - + 34 + + 81 * COUNT ( * )
----
1715

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-908
SELECT DISTINCT + 43 DIV + COALESCE ( + 4, - COALESCE ( 74, - + NULLIF ( - - 40, + + CAST( - 7 AS SIGNED ) ) ), 94 * - - 62 )
----
10

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + 43 / + COALESCE ( + 4, - COALESCE ( 74, - + NULLIF ( - - 40, + + CAST ( - 7 AS INTEGER ) ) ), 94 * - - 62 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT MIN( + + 77 ) + - 89 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-909
SELECT MIN ( + + 77 ) + - 89 AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-910
SELECT 31 DIV 5
----
6

skipif mysql # not compatible
query I rowsort label-910
SELECT 31 / 5
----
6

query I rowsort
SELECT 44 + 57 * - 85 * + + 85 AS col2
----
-411781

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT COALESCE ( - - 61, - 73 * - + 12 + + COUNT( DISTINCT - 69 ) + + 94 ) * - 78 AS col1
----
-4758

skipif mysql # not compatible
query I rowsort label-912
SELECT COALESCE ( - - 61, - 73 * - + 12 + + COUNT ( DISTINCT - 69 ) + + 94 ) * - 78 AS col1
----
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT 57 + - COUNT( * ) col2
----
56

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT 57 + - COUNT ( * ) col2
----
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT 31 + ( - NULLIF ( - MAX( - + CAST( 37 AS SIGNED ) ), 19 * - 83 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-915
SELECT 31 + ( - NULLIF ( - MAX ( - + CAST ( 37 AS INTEGER ) ), 19 * - 83 ) ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT - 53 - - ( COUNT( * ) ) + - - 86
----
34

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT - 53 - - ( COUNT ( * ) ) + - - 86
----
34

query II rowsort
SELECT DISTINCT 82, NULLIF ( + 80, + 27 ) * - 62 AS col2
----
82
-4960

query I rowsort
SELECT 56 - - - 14 * + + 67 AS col2
----
-882

query I rowsort
SELECT DISTINCT - ( 39 ) * - 25 col1
----
975

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

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

query I rowsort
SELECT ALL + 28 - + ( + ( - 1 ) )
----
29

query I rowsort
SELECT + 97 * - 27
----
-2619

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

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

query II rowsort
SELECT ALL - + 50 AS col1, 81 AS col2
----
-50
81

query I rowsort
SELECT 18 + - 76
----
-58

query I rowsort
SELECT ALL - - 89 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT ALL - COUNT( CASE 56 WHEN + CAST( NULL AS SIGNED ) * - 0 * + 48 * + 50 THEN - + 84 ELSE - 90 END ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - COUNT ( CASE 56 WHEN + CAST ( NULL AS INTEGER ) * - 0 * + 48 * + 50 THEN - + 84 ELSE - 90 END ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT + - COUNT( * ) * 1 + + 83 + + 23 + + 4 DIV + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-928
SELECT + - COUNT ( * ) * 1 + + 83 + + 23 + + 4 / + COUNT ( * )
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT DISTINCT + 76 DIV 20 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT + 76 / 20 AS col0
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-931
SELECT 56 DIV - - 12
----
4

skipif mysql # not compatible
query I rowsort label-931
SELECT 56 / - - 12
----
4

query I rowsort
SELECT ALL + - 50 + 59 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + COUNT( * ) * MIN( ALL + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-933
SELECT + COUNT ( * ) * MIN ( ALL + 59 ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT + + 52 DIV + 73 + 40 * + 62
----
2480

skipif mysql # not compatible
query I rowsort label-934
SELECT + + 52 / + 73 + 40 * + 62
----
2480

query I rowsort
SELECT + 83 + 85
----
168

query I rowsort
SELECT - + NULLIF ( 62, - 7 ) * - 26 + 31 * + - 25 + - - 24
----
861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT DISTINCT - + ( - NULLIF ( - ( + + 18 ), + COALESCE ( - CAST( - - 76 AS SIGNED ), - CAST( NULL AS SIGNED ) ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT - + ( - NULLIF ( - ( + + 18 ), + COALESCE ( - CAST ( - - 76 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) )
----
-18

query II rowsort
SELECT 50 AS col2, 48 col2
----
50
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT DISTINCT + SUM( ALL + 71 ) + ( + 80 ) + + 77 * CASE + - 87 WHEN - + 52 THEN NULL WHEN 50 THEN + - 54 DIV + NULLIF ( 61, + + 44 ) ELSE + + COUNT( * ) + - - MAX( ALL 48 ) END AS col2
----
3924

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + SUM ( ALL + 71 ) + ( + 80 ) + + 77 * CASE + - 87 WHEN - + 52 THEN NULL WHEN 50 THEN + - 54 / + NULLIF ( 61, + + 44 ) ELSE + + COUNT ( * ) + - - MAX ( ALL 48 ) END AS col2
----
3924

query I rowsort
SELECT ALL - 1 + + 0 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT ALL + 38 + + + 75 + - - 83 + - + 6 + - 55 * - + 3 * + + 67 / 87 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL + 38 + + + 75 + - - 83 + - + 6 + - 55 * - + 3 * + + 67 / 87 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT COUNT( * ) * ( - CASE + 4 WHEN COUNT( * ) THEN NULL WHEN - 13 / 16 * - AVG ( 64 ) THEN - 21 + - COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT COUNT ( * ) * ( - CASE + 4 WHEN COUNT ( * ) THEN NULL WHEN - 13 / 16 * - AVG ( 64 ) THEN - 21 + - COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-943
SELECT DISTINCT 5 AS col1, COUNT( * ) DIV - 65 * - COUNT( * )
----
5
0

skipif mysql # not compatible
query II rowsort label-943
SELECT DISTINCT 5 AS col1, COUNT ( * ) / - 65 * - COUNT ( * )
----
5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-944
SELECT - 9, + 52 * - 29 + 32 * COUNT( 58 ) AS col1
----
-9
-1476

skipif mysql # not compatible
query II rowsort label-944
SELECT - 9, + 52 * - 29 + 32 * COUNT ( 58 ) AS col1
----
-9
-1476

query II rowsort
SELECT 88, - 85 AS col2
----
88
-85

query II rowsort
SELECT ALL 11 AS col0, + 48 + 43 + - - 90 * + 39 AS col2
----
11
3601

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

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

query I rowsort
SELECT 34 - 67 + + CASE + + 15 WHEN 76 + + + 68 THEN NULL WHEN - + 59 * + + 56 THEN + AVG ( DISTINCT 59 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-949
SELECT ALL 20, - CAST( - 84 AS SIGNED ) AS col0
----
20
84

skipif mysql # not compatible
query II rowsort label-949
SELECT ALL 20, - CAST ( - 84 AS INTEGER ) AS col0
----
20
84

query II rowsort
SELECT 74, - 16 AS col2
----
74
-16

query I rowsort
SELECT ALL 22 col1
----
22

query I rowsort
SELECT ALL ( + 50 ) - 50 - 42 * - 50
----
2100

query I rowsort
SELECT ( 21 ) * + 11 + - 67 AS col1
----
164

query II rowsort
SELECT - 77, + 22 AS col1
----
-77
22

query I rowsort
SELECT 24 + 3 col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT ALL 97 DIV - 42
----
-2

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL 97 / - 42
----
-2

query I rowsort
SELECT ( - 45 ) * + 81
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT 53 * + ( - 68 ) * MIN( ALL + + NULLIF ( + - 46, 96 ) ) AS col0
----
165784

skipif mysql # not compatible
query I rowsort label-958
SELECT 53 * + ( - 68 ) * MIN ( ALL + + NULLIF ( + - 46, 96 ) ) AS col0
----
165784

query II rowsort
SELECT DISTINCT ( 32 ) col1, + 3
----
32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT - + SUM( 46 ) * + 85 * 8 col0
----
-31280

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - + SUM ( 46 ) * + 85 * 8 col0
----
-31280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT ALL + - COUNT( * ) * ( + - 41 ) DIV + MIN( ALL - 58 ) + 43 + - 34
----
9

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL + - COUNT ( * ) * ( + - 41 ) / + MIN ( ALL - 58 ) + 43 + - 34
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-962
SELECT - COALESCE ( + ( - + CASE + CAST( NULL AS DECIMAL ) WHEN + 98 THEN COUNT( 37 ) DIV + + 46 END ), 23, + - 19 ) * - 67 + - COUNT( * ) * + - 98 AS col1
----
1639

skipif mysql # not compatible
query I rowsort label-962
SELECT - COALESCE ( + ( - + CASE + CAST ( NULL AS REAL ) WHEN + 98 THEN COUNT ( 37 ) / + + 46 END ), 23, + - 19 ) * - 67 + - COUNT ( * ) * + - 98 AS col1
----
1639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT 67 DIV 79 + 31 + + - 99 * + 91 + + COUNT( * ) DIV - 75 AS col2
----
-8978

skipif mysql # not compatible
query I rowsort label-963
SELECT 67 / 79 + 31 + + - 99 * + 91 + + COUNT ( * ) / - 75 AS col2
----
-8978

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT ALL 23 * - ( + 44 ) * - + 8 + ( - CAST( NULL AS SIGNED ) ) + + 15 * + ( COALESCE ( + 37, - COALESCE ( 68, - CAST( NULL AS SIGNED ) + + MAX( DISTINCT + 10 ) * + - 92, + 95 ) ) ) * - 20 + - COUNT( DISTINCT + 30 - CASE + 43 WHEN 28 THEN - 62 + 99 * 51 ELSE NULL END * 80 ) + - COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL 23 * - ( + 44 ) * - + 8 + ( - CAST ( NULL AS INTEGER ) ) + + 15 * + ( COALESCE ( + 37, - COALESCE ( 68, - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + 10 ) * + - 92, + 95 ) ) ) * - 20 + - COUNT ( DISTINCT + 30 - CASE + 43 WHEN 28 THEN - 62 + 99 * 51 ELSE NULL END * 80 ) + - COUNT ( * ) * COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT ALL + 26 * + 77 + - 62
----
1940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-968
SELECT + - 62 * ( - CASE + 22 WHEN + 79 * - COALESCE ( - + NULLIF ( + - 72, - - 16 + + + 49 ), 16 ) * CAST( NULL AS DECIMAL ) THEN + ( COUNT( * ) ) END ) / + + 70 + 72 - - 48 * + COALESCE ( + SUM( 9 ), 98 * NULLIF ( + 36, + COUNT( * ) - - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT + - 62 * ( - CASE + 22 WHEN + 79 * - COALESCE ( - + NULLIF ( + - 72, - - 16 + + + 49 ), 16 ) * CAST ( NULL AS REAL ) THEN + ( COUNT ( * ) ) END ) / + + 70 + 72 - - 48 * + COALESCE ( + SUM ( 9 ), 98 * NULLIF ( + 36, + COUNT ( * ) - - COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-969
SELECT ALL + COALESCE ( - + 41, 99, + + 0 + + COUNT( * ) ) DIV + COUNT( * ) - - 77 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + COALESCE ( - + 41, 99, + + 0 + + COUNT ( * ) ) / + COUNT ( * ) - - 77 AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT DISTINCT - 33 * - 55 DIV - COUNT( * ) + - MIN( DISTINCT + - 62 ) col1
----
-1753

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT - 33 * - 55 / - COUNT ( * ) + - MIN ( DISTINCT + - 62 ) col1
----
-1753

query II rowsort
SELECT + + 58 AS col2, 27 AS col0
----
58
27

query I rowsort
SELECT - 53 * + + 86 * - - 54 col2
----
-246132

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT 70 * + 85 + + COUNT( * ) + + 0 - + + 88 * + 79 AS col2
----
-1001

skipif mysql # not compatible
query I rowsort label-973
SELECT 70 * + 85 + + COUNT ( * ) + + 0 - + + 88 * + 79 AS col2
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT - 29 - - COUNT( * ) + - + 98 + 51 col1
----
-75

skipif mysql # not compatible
query I rowsort label-974
SELECT - 29 - - COUNT ( * ) + - + 98 + 51 col1
----
-75

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

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

query I rowsort
SELECT ALL + ( 46 ) * 52 + 8 - + - 83 + 91 + - + 43 + 8 * + 10 * - 99 + + + 45 * 17 AS col1
----
-4624

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT - 95 * + + 35 - + 41 * - + SUM( DISTINCT 49 ) - + 27 - + 7 * + 5, + 97 AS col0
----
-1378
97

skipif mysql # not compatible
query II rowsort label-977
SELECT - 95 * + + 35 - + 41 * - + SUM ( DISTINCT 49 ) - + 27 - + 7 * + 5, + 97 AS col0
----
-1378
97

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT - 17 * - - 57 * - COUNT( * ) AS col2
----
969

skipif mysql # not compatible
query I rowsort label-978
SELECT - 17 * - - 57 * - COUNT ( * ) AS col2
----
969

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT + MIN( - 21 ) AS col2, - 65 * + COUNT( * ) AS col2
----
-21
-65

skipif mysql # not compatible
query II rowsort label-979
SELECT + MIN ( - 21 ) AS col2, - 65 * + COUNT ( * ) AS col2
----
-21
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT + 81 + + CAST( + 26 AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-980
SELECT + 81 + + CAST ( + 26 AS INTEGER )
----
107

query I rowsort
SELECT ALL + CASE 98 WHEN - + 11 * - ( + 92 ) + - 79 THEN - 75 * - 34 * + 55 + 80 ELSE NULL END * 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT 71 * 36 + CAST( - + 3 AS SIGNED ) + - ( + + 96 ) - + 91
----
2366

skipif mysql # not compatible
query I rowsort label-982
SELECT 71 * 36 + CAST ( - + 3 AS INTEGER ) + - ( + + 96 ) - + 91
----
2366

query I rowsort
SELECT DISTINCT + 80 * - 56 AS col0
----
-4480

query I rowsort
SELECT DISTINCT COALESCE ( 50, + 64 + - ( + + ( - + 81 ) ) ) AS col0
----
50

query I rowsort
SELECT ALL COALESCE ( + 8, 46 ) AS col2
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-986
SELECT DISTINCT CASE WHEN NOT 1 >= NULL THEN - CASE - 60 WHEN + - CAST( - - 27 AS DECIMAL ) THEN + 98 WHEN ( - 46 ) * - - 32 THEN NULL ELSE NULL END / + 99 + - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT CASE WHEN NOT 1 >= NULL THEN - CASE - 60 WHEN + - CAST ( - - 27 AS REAL ) THEN + 98 WHEN ( - 46 ) * - - 32 THEN NULL ELSE NULL END / + 99 + - 69 END
----
NULL

query I rowsort
SELECT - 51 + + 5 + + - 14 col0
----
-60

query II rowsort
SELECT DISTINCT ( + - 82 ) col1, 21 AS col1
----
-82
21

query I rowsort
SELECT ALL 73 * + 24 AS col1
----
1752

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT + - NULLIF ( + NULLIF ( + 19, 94 * + 49 * - + 85 * + 51 * + 56 + 35 ), + 62 ) + + 24 + 81 * - 10 * - 85 DIV + COUNT( * )
----
68855

skipif mysql # not compatible
query I rowsort label-991
SELECT + - NULLIF ( + NULLIF ( + 19, 94 * + 49 * - + 85 * + 51 * + 56 + 35 ), + 62 ) + + 24 + 81 * - 10 * - 85 / + COUNT ( * )
----
68855

query I rowsort
SELECT - - 71 col0
----
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL - - COUNT( * ) + - 34 * 94 + MIN( + - 50 )
----
-3245

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - - COUNT ( * ) + - 34 * 94 + MIN ( + - 50 )
----
-3245

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL NULLIF ( + 6, - + COALESCE ( + COALESCE ( + ( COUNT( * ) ), + - 82 ), 53 / - - NULLIF ( + 68, - 44 ) * - - 31 ) * - 8 )
----
6

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL NULLIF ( + 6, - + COALESCE ( + COALESCE ( + ( COUNT ( * ) ), + - 82 ), 53 / - - NULLIF ( + 68, - 44 ) * - - 31 ) * - 8 )
----
6

query I rowsort
SELECT ALL - 71 + - 78
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT + 38 + CAST( NULL AS SIGNED ) * - + 46 + + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT + 38 + CAST ( NULL AS INTEGER ) * - + 46 + + + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-998
SELECT + 82 / - CAST( NULL AS SIGNED ) / 11 - - 15 + CASE + - 96 WHEN + - 33 * + + 93 + + - 85 * + 26 THEN - - 82 + - + 0 + + 15 ELSE - + ( + COUNT( * ) ) - + NULLIF ( + 38, + NULLIF ( AVG ( ( 36 ) ), + 14 * 38 + 27 ) ) + - 93 END * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT + 82 / - CAST ( NULL AS INTEGER ) / 11 - - 15 + CASE + - 96 WHEN + - 33 * + + 93 + + - 85 * + 26 THEN - - 82 + - + 0 + + 15 ELSE - + ( + COUNT ( * ) ) - + NULLIF ( + 38, + NULLIF ( AVG ( ( 36 ) ), + 14 * 38 + 27 ) ) + - 93 END * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT - 94 + - SUM( 84 ) + + 62
----
-116

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT - 94 + - SUM ( 84 ) + + 62
----
-116

query I rowsort
SELECT + + 55 + 10 AS col1
----
65

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

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

query I rowsort
SELECT - - ( - + 52 ) * + ( + 49 ) + + 70 + 43
----
-2435

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1003
SELECT ALL 78 / CAST( NULL AS DECIMAL ) * - 10 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL 78 / CAST ( NULL AS REAL ) * - 10 + - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT ALL + CASE - COUNT( ALL - 30 ) WHEN + CASE + 53 WHEN - + CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE NULL END THEN - ( + 82 ) - + COUNT( ALL + 58 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + CASE - COUNT ( ALL - 30 ) WHEN + CASE + 53 WHEN - + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END THEN - ( + 82 ) - + COUNT ( ALL + 58 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1005
SELECT ALL - 36 DIV + COALESCE ( + CASE - 88 WHEN + + 24 THEN + CASE + 83 WHEN + 34 THEN NULL ELSE + 48 END END, + 36, - 92 * - 78 * + 8 * - 17 ) + + ( + + 61 ) + - 13 * + 77
----
-941

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - 36 / + COALESCE ( + CASE - 88 WHEN + + 24 THEN + CASE + 83 WHEN + 34 THEN NULL ELSE + 48 END END, + 36, - 92 * - 78 * + 8 * - 17 ) + + ( + + 61 ) + - 13 * + 77
----
-941

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1006
SELECT ALL - + ( - 33 ) / CAST( NULL AS DECIMAL ) + + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - + ( - 33 ) / CAST ( NULL AS REAL ) + + - 44
----
NULL

query I rowsort
SELECT + + 73 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + MAX( DISTINCT + + 54 ) * - + 96
----
-5184

skipif mysql # not compatible
query I rowsort label-1008
SELECT + MAX ( DISTINCT + + 54 ) * - + 96
----
-5184

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1010
SELECT - 5 + + 53 + + + 84 DIV COUNT( + - 43 ) * + COALESCE ( - + 55, - 11 ) AS col0, COALESCE ( - - 25, + 76 ) + + + COUNT( * ) + - - COUNT( * )
----
-4572
27

skipif mysql # not compatible
query II rowsort label-1010
SELECT - 5 + + 53 + + + 84 / COUNT ( + - 43 ) * + COALESCE ( - + 55, - 11 ) AS col0, COALESCE ( - - 25, + 76 ) + + + COUNT ( * ) + - - COUNT ( * )
----
-4572
27

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

query I rowsort
SELECT ( 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL + 77 * + - COUNT( * ) * - + 33 - + 39
----
2502

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + 77 * + - COUNT ( * ) * - + 33 - + 39
----
2502

query I rowsort
SELECT + 93 * + 67 * + 15 * + ( - ( 91 ) )
----
-8505315

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL + COUNT( DISTINCT + - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + COUNT ( DISTINCT + - 12 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1017
SELECT ALL + COUNT( * ) * + 5 - + CAST( NULL AS DECIMAL ) + - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + COUNT ( * ) * + 5 - + CAST ( NULL AS REAL ) + - - 91
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1018
SELECT - 63 * - - CAST ( NULL AS INTEGER ) * + 70, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT DISTINCT - 94 * + 57 AS col2
----
-5358

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL + NULLIF ( - COUNT( * ), 65 * - 84 * 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + NULLIF ( - COUNT ( * ), 65 * - 84 * 48 ) AS col1
----
-1

query II rowsort
SELECT + 63 AS col0, - 18 AS col1
----
63
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT + 10 - COUNT( * ) AS col2
----
9

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

query I rowsort
SELECT ALL - 3 * 95 AS col2
----
-285

query I rowsort
SELECT + 27 * - 63
----
-1701

onlyif mysql # aggregate syntax: 
query II rowsort label-1025
SELECT 31 * + 57 + - 6 + - 28 * 67 + + 55 - 59 * - 74 - - COALESCE ( + ( - 7 ), - 78 * + - MIN( - 56 ), - - 50 ) * + - 82 AS col2, 48 col2
----
4880
48

skipif mysql # not compatible
query II rowsort label-1025
SELECT 31 * + 57 + - 6 + - 28 * 67 + + 55 - 59 * - 74 - - COALESCE ( + ( - 7 ), - 78 * + - MIN ( - 56 ), - - 50 ) * + - 82 AS col2, 48 col2
----
4880
48

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

skipif mysql # not compatible
query I rowsort label-1026
SELECT - COUNT ( * ) * - 67
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT - COALESCE ( 38, + + 89 DIV + - 39 DIV - - 57 DIV - NULLIF ( - SUM( DISTINCT CASE - 25 WHEN 71 - + 10 THEN NULL WHEN - 29 THEN + 74 + - 97 + - + 19 - + ( + 96 ) - - 24 * 86 WHEN 55 DIV 92 THEN NULL END ), - 58 ) + 93 ) + 61 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1027
SELECT - COALESCE ( 38, + + 89 / + - 39 / - - 57 / - NULLIF ( - SUM ( DISTINCT CASE - 25 WHEN 71 - + 10 THEN NULL WHEN - 29 THEN + 74 + - 97 + - + 19 - + ( + 96 ) - - 24 * 86 WHEN 55 / 92 THEN NULL END ), - 58 ) + 93 ) + 61 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + 31 * - 94 * + ( - COUNT( * ) ) AS col0
----
2914

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + 31 * - 94 * + ( - COUNT ( * ) ) AS col0
----
2914

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT DISTINCT - 74 * - COALESCE ( + 5, + 55 DIV + - COUNT( * ) + 12 + + 69 ) * 28 + 17 + + 21
----
10398

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT - 74 * - COALESCE ( + 5, + 55 / + - COUNT ( * ) + 12 + + 69 ) * 28 + 17 + + 21
----
10398

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT - CASE 44 WHEN 68 THEN - CAST( 62 AS SIGNED ) / + - 16 ELSE + - 37 * 42 * - 46 + 37 + 66 - - ( - + 24 ) + CAST( NULL AS SIGNED ) - 30 + 31 * + ( + 98 ) * + 99 END - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT - CASE 44 WHEN 68 THEN - CAST ( 62 AS INTEGER ) / + - 16 ELSE + - 37 * 42 * - 46 + 37 + 66 - - ( - + 24 ) + CAST ( NULL AS INTEGER ) - 30 + 31 * + ( + 98 ) * + 99 END - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1032
SELECT DISTINCT + SUM( ALL 38 ) + + CAST( - - 0 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + SUM ( ALL 38 ) + + CAST ( - - 0 AS INTEGER )
----
38

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

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

query I rowsort
SELECT ALL + 31 + + + 32 + + 22 * - - 41 * - 34
----
-30605

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1036
SELECT + ( - - MIN( + 51 ) ) * - 78 AS col1, 21 + 97 * + ( - COUNT( * ) ) - - 52
----
-3978
-24

skipif mysql # not compatible
query II rowsort label-1036
SELECT + ( - - MIN ( + 51 ) ) * - 78 AS col1, 21 + 97 * + ( - COUNT ( * ) ) - - 52
----
-3978
-24

query II rowsort
SELECT - 3 AS col1, 1 + - 13
----
-3
-12

query I rowsort
SELECT ALL + 39 + + - 26 + - 35 + - 17 * + 56 * 64
----
-60950

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT MIN ( ALL + 64 ) * - + COUNT ( * ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL + 65 + + NULLIF ( + COUNT( * ), + - 38 + - - COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + 65 + + NULLIF ( + COUNT ( * ), + - 38 + - - COUNT ( * ) )
----
66

query I rowsort
SELECT DISTINCT 28 * 86 AS col0
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT - COUNT( * ) + 76 - + ( 80 ) - + - 70 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - COUNT ( * ) + 76 - + ( 80 ) - + - 70 AS col0
----
65

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT COUNT( * ) / - NULLIF ( + CAST( NULL AS SIGNED ), + CAST( 80 AS SIGNED ) ) * - 96 + 53 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT COUNT ( * ) / - NULLIF ( + CAST ( NULL AS INTEGER ), + CAST ( 80 AS INTEGER ) ) * - 96 + 53 + - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT 90 + - CASE + 67 WHEN - + COUNT( * ) + + COUNT( * ) THEN + 22 WHEN - COUNT( * ) THEN NULL END + + 57 * 11 * 83 / 10 / CASE - COUNT( * ) WHEN + 58 THEN NULL ELSE + - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT 90 + - CASE + 67 WHEN - + COUNT ( * ) + + COUNT ( * ) THEN + 22 WHEN - COUNT ( * ) THEN NULL END + + 57 * 11 * 83 / 10 / CASE - COUNT ( * ) WHEN + 58 THEN NULL ELSE + - 44 END
----
NULL

query I rowsort
SELECT ALL + 63 - 11 * - + 70 + + 16 col0
----
849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1050
SELECT 70 * - - COUNT( * ) * 36 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT 70 * - - COUNT ( * ) * 36 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT COUNT( * ) * - - ( - 77 ) * - - 43 * MIN( + + 60 ) AS col1
----
-198660

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT COUNT ( * ) * - - ( - 77 ) * - - 43 * MIN ( + + 60 ) AS col1
----
-198660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1052
SELECT DISTINCT 17 DIV COUNT( * ) * - - 37
----
629

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT 17 / COUNT ( * ) * - - 37
----
629

query I rowsort
SELECT ALL COALESCE ( + 58, + 18 - + + 81, + - 93 ) * + - 6 * - 14 * + 45
----
219240

onlyif mysql # aggregate syntax: 
query II rowsort label-1054
SELECT COUNT( * ) + - 97 AS col0, - COUNT( * ) * 64 AS col0
----
-96
-64

skipif mysql # not compatible
query II rowsort label-1054
SELECT COUNT ( * ) + - 97 AS col0, - COUNT ( * ) * 64 AS col0
----
-96
-64

query I rowsort
SELECT 50 * - 76
----
-3800

query II rowsort
SELECT DISTINCT 80 * 0 AS col2, 84 * - 24 AS col1
----
0
-2016

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT 34 + - 53 DIV + 28 + - - 93 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-1057
SELECT 34 + - 53 / + 28 + - - 93 AS col2
----
126

query I rowsort
SELECT ( + 14 ) * 27 + 32
----
410

query I rowsort
SELECT 40 * ( 42 )
----
1680

query I rowsort
SELECT 75 * + 33 * 7 AS col2
----
17325

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1061
SELECT ALL + 36 + COUNT( * ) - + - CAST( NULL AS DECIMAL ) + + - MAX( DISTINCT 6 ) AS col0, - 79 AS col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-1061
SELECT ALL + 36 + COUNT ( * ) - + - CAST ( NULL AS REAL ) + + - MAX ( DISTINCT 6 ) AS col0, - 79 AS col1
----
NULL
-79

query I rowsort
SELECT DISTINCT ( 54 ) + - 70
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT SUM( - - 42 ) * COALESCE ( - - 9, 24 ) AS col0
----
378

skipif mysql # not compatible
query I rowsort label-1064
SELECT SUM ( - - 42 ) * COALESCE ( - - 9, 24 ) AS col0
----
378

query I rowsort
SELECT 69 + - + COALESCE ( - 6, 5 ) + 7
----
82

query II rowsort
SELECT DISTINCT - ( - 61 ), 54 * + - 79 AS col1
----
61
-4266

query I rowsort
SELECT 18 + + 41 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT + + ( CASE - ( - COUNT( * ) ) WHEN + 76 THEN NULL WHEN - + 99 THEN - - 72 END ) + - 15 - ( + - 1 ) - - ( 67 ) * ( + COALESCE ( - 29, + - NULLIF ( - 58, - - 20 * + - 49 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT + + ( CASE - ( - COUNT ( * ) ) WHEN + 76 THEN NULL WHEN - + 99 THEN - - 72 END ) + - 15 - ( + - 1 ) - - ( 67 ) * ( + COALESCE ( - 29, + - NULLIF ( - 58, - - 20 * + - 49 ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 16 * 73 AS col1
----
-1168

query I rowsort
SELECT ALL - 36 + - 16
----
-52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1072
SELECT DISTINCT + 66 * + 65 * ( 55 ) * + 49 * - CAST( - 38 AS SIGNED ) + + + 89
----
439338989

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT + 66 * + 65 * ( 55 ) * + 49 * - CAST ( - 38 AS INTEGER ) + + + 89
----
439338989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1073
SELECT DISTINCT 56 - + 64 + - + ( - + COUNT( DISTINCT - 1 ) ) * - 13 + - 48 DIV - COUNT( * ) col1
----
27

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT 56 - + 64 + - + ( - + COUNT ( DISTINCT - 1 ) ) * - 13 + - 48 / - COUNT ( * ) col1
----
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1074
SELECT ALL + 44 / CAST( NULL AS DECIMAL ) * - - 16 + + - 95 / - 48 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + 44 / CAST ( NULL AS REAL ) * - - 16 + + - 95 / - 48 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT DISTINCT + - 91 - - 90 + + 51 + 44 * 61 * - NULLIF ( COUNT( * ), 75 ) * 63 AS col1, 54
----
-169042
54

skipif mysql # not compatible
query II rowsort label-1076
SELECT DISTINCT + - 91 - - 90 + + 51 + 44 * 61 * - NULLIF ( COUNT ( * ), 75 ) * 63 AS col1, 54
----
-169042
54

query I rowsort
SELECT DISTINCT - ( 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + COUNT( + ( + + 39 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + COUNT ( + ( + + 39 ) ) AS col0
----
1

query I rowsort
SELECT ALL 55 col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT CASE + 45 WHEN + 26 THEN - CAST( NULL AS SIGNED ) * + - 39 * - 32 * + NULLIF ( + COUNT( * ), - COUNT( * ) / - - 35 * - 37 * 75 / + 81 * - ( 37 ) ) ELSE COUNT( DISTINCT + 85 ) * + + ( - 82 ) - 17 END + - 51 col2
----
-150

skipif mysql # not compatible
query I rowsort label-1080
SELECT CASE + 45 WHEN + 26 THEN - CAST ( NULL AS INTEGER ) * + - 39 * - 32 * + NULLIF ( + COUNT ( * ), - COUNT ( * ) / - - 35 * - 37 * 75 / + 81 * - ( 37 ) ) ELSE COUNT ( DISTINCT + 85 ) * + + ( - 82 ) - 17 END + - 51 col2
----
-150

query I rowsort
SELECT - ( 69 ) * 48 AS col2
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + 49 + - + NULLIF ( 1, + - 22 * MIN( DISTINCT - + 71 ) + + + 78 + + 49 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 49 + - + NULLIF ( 1, + - 22 * MIN ( DISTINCT - + 71 ) + + + 78 + + 49 ) AS col1
----
48

query I rowsort
SELECT ALL - 92 - + 97
----
-189

query I rowsort
SELECT 89 * + 17 AS col1
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT SUM( - ( + - 88 ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1085
SELECT SUM ( - ( + - 88 ) ) AS col1
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1087
SELECT DISTINCT - 59 * + - CAST( + COALESCE ( - - ( - SUM( + + 33 ) ), - 33, - - AVG ( CAST( NULL AS DECIMAL ) ) * - 33 + + - COUNT( * ) - - + 50 + - 19 ) AS SIGNED ) AS col0
----
-1947

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT - 59 * + - CAST ( + COALESCE ( - - ( - SUM ( + + 33 ) ), - 33, - - AVG ( CAST ( NULL AS REAL ) ) * - 33 + + - COUNT ( * ) - - + 50 + - 19 ) AS INTEGER ) AS col0
----
-1947

query I rowsort
SELECT 18 * + + 69
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ALL - NULLIF ( + 86, 66 ) * SUM( ALL - 6 ) AS col1
----
516

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL - NULLIF ( + 86, 66 ) * SUM ( ALL - 6 ) AS col1
----
516

query I rowsort
SELECT DISTINCT - 2 col0
----
-2

query I rowsort
SELECT DISTINCT - 21 * + 12
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT DISTINCT - CAST( 15 AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT - CAST ( 15 AS INTEGER ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1093
SELECT ALL - CASE CASE + - CAST( NULL AS SIGNED ) WHEN + 99 THEN NULL ELSE + + 46 * - 66 + 40 * + - 48 END WHEN 35 * + 75 THEN + - 61 WHEN CASE - - 57 WHEN + ( + - 90 ) - - 21 THEN - + MAX( DISTINCT 82 ) END THEN NULL WHEN + - 23 * + 31 THEN + 76 ELSE + 13 END
----
-13

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - CASE CASE + - CAST ( NULL AS INTEGER ) WHEN + 99 THEN NULL ELSE + + 46 * - 66 + 40 * + - 48 END WHEN 35 * + 75 THEN + - 61 WHEN CASE - - 57 WHEN + ( + - 90 ) - - 21 THEN - + MAX ( DISTINCT 82 ) END THEN NULL WHEN + - 23 * + 31 THEN + 76 ELSE + 13 END
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT 60 + - - 90 + CASE + COUNT( * ) WHEN + - 54 * - + 29 + + 17 - - - 64 THEN - + 72 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT 60 + - - 90 + CASE + COUNT ( * ) WHEN + - 54 * - + 29 + + 17 - - - 64 THEN - + 72 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT DISTINCT 33 DIV + 41 * - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT 33 / + 41 * - 8 AS col1
----
0

query I rowsort
SELECT ALL 92 + - + AVG ( CASE - + NULLIF ( - 42, 12 ) WHEN - 4 THEN + 65 + + 51 * 9 WHEN - + 98 / 1 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT CASE - 26 WHEN - - 91 * - 36 * - 19 THEN NULL ELSE - + 51 END * + ( - - 30 ) + 32
----
-1498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT CASE COUNT( * ) WHEN + - 98 / + COUNT( * ) THEN NULL WHEN - 14 * - 24 THEN - 49 WHEN - - CAST( + ( 28 ) AS SIGNED ) * 33 * + + COUNT( * ) THEN - ( + 82 ) END + - + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT CASE COUNT ( * ) WHEN + - 98 / + COUNT ( * ) THEN NULL WHEN - 14 * - 24 THEN - 49 WHEN - - CAST ( + ( 28 ) AS INTEGER ) * 33 * + + COUNT ( * ) THEN - ( + 82 ) END + - + 19 AS col0
----
NULL

query I rowsort
SELECT 69 * + 82
----
5658

query I rowsort
SELECT ALL 56 + ( 46 ) + 55
----
157

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1102
SELECT 54 AS col0, - 88 * + 22 + + + CAST( NULL AS SIGNED ) + - 91 - + + COALESCE ( - 5, - 71 * - ( - 66 ) + - - COUNT( - + 49 ) - - 26 - - 19 * + + 46 * 47 * - 39 * + 64, - 60 * - + 8 - + CAST( 29 + - 61 AS SIGNED ) * + 23 )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1102
SELECT 54 AS col0, - 88 * + 22 + + + CAST ( NULL AS INTEGER ) + - 91 - + + COALESCE ( - 5, - 71 * - ( - 66 ) + - - COUNT ( - + 49 ) - - 26 - - 19 * + + 46 * 47 * - 39 * + 64, - 60 * - + 8 - + CAST ( 29 + - 61 AS INTEGER ) * + 23 )
----
54
NULL

query I rowsort
SELECT + + 25 + + 23 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1104
SELECT ALL - COALESCE ( + 1, + COUNT( * ) + 48, + ( - 64 ) + - + COUNT( * ) + ( - 46 ) * + 62 ) col2, + 31 - - ( - - 55 ) DIV SUM( ALL + 22 )
----
-1
33

skipif mysql # not compatible
query II rowsort label-1104
SELECT ALL - COALESCE ( + 1, + COUNT ( * ) + 48, + ( - 64 ) + - + COUNT ( * ) + ( - 46 ) * + 62 ) col2, + 31 - - ( - - 55 ) / SUM ( ALL + 22 )
----
-1
33

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

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT MIN ( DISTINCT 89 )
----
89

query I rowsort
SELECT - + 70 * - 16 AS col2
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT ALL - - 1 - + 30 + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - - 1 - + 30 + COUNT ( * )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT DISTINCT + 15 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT + 15 / 97
----
0

query I rowsort
SELECT + 89 - + 26
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL + 98 * + - CASE - ( - COUNT( * ) ) WHEN + + COUNT( * ) / SUM( - 6 ) THEN NULL ELSE - 72 END AS col2
----
7056

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + 98 * + - CASE - ( - COUNT ( * ) ) WHEN + + COUNT ( * ) / SUM ( - 6 ) THEN NULL ELSE - 72 END AS col2
----
7056

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT DISTINCT 85 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT 85 / - 98
----
0

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

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT COUNT ( DISTINCT - - 84 ) - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + + 32 * - 41
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL + - 71 * + + 54 - - MIN( ALL - 88 ) AS col0
----
-3922

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + - 71 * + + 54 - - MIN ( ALL - 88 ) AS col0
----
-3922

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT + 5 * NULLIF ( - - 75, - COUNT( * ) ) * - 16 + + SUM( ALL - 58 )
----
-6058

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT + 5 * NULLIF ( - - 75, - COUNT ( * ) ) * - 16 + + SUM ( ALL - 58 )
----
-6058

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1117
SELECT - 91 DIV - 81 - + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT - 91 / - 81 - + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1118
SELECT ALL + 7, COUNT( * ) * - COUNT( * ) + 75 DIV + 86 col2
----
7
-1

skipif mysql # not compatible
query II rowsort label-1118
SELECT ALL + 7, COUNT ( * ) * - COUNT ( * ) + 75 / + 86 col2
----
7
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1119
SELECT - - 50, COUNT( * ) DIV - NULLIF ( + + 18, - - ( + 34 ) ) + + 96 * + - 23 AS col0
----
50
-2208

skipif mysql # not compatible
query II rowsort label-1119
SELECT - - 50, COUNT ( * ) / - NULLIF ( + + 18, - - ( + 34 ) ) + + 96 * + - 23 AS col0
----
50
-2208

query I rowsort
SELECT ALL - ( 54 ) * - 72 AS col1
----
3888

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL + 80 + + MAX( DISTINCT - - 20 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + 80 + + MAX ( DISTINCT - - 20 ) AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1124
SELECT - 11 + - 23 DIV + COALESCE ( - SUM( DISTINCT + 71 ), + MIN( - - 64 ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1124
SELECT - 11 + - 23 / + COALESCE ( - SUM ( DISTINCT + 71 ), + MIN ( - - 64 ) ) AS col1
----
-11

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

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

query I rowsort
SELECT - 87 + - 40 AS col2
----
-127

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

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

query I rowsort
SELECT DISTINCT + 72 * - 60 * - 68
----
293760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1129
SELECT ALL 28 * - 46 + + 30 + - MAX( + + NULLIF ( 88, + - 54 + - + 73 + - 41 ) ) * COUNT( * ) + 63, - 55 DIV - - COUNT( * ) AS col1
----
-1283
-55

skipif mysql # not compatible
query II rowsort label-1129
SELECT ALL 28 * - 46 + + 30 + - MAX ( + + NULLIF ( 88, + - 54 + - + 73 + - 41 ) ) * COUNT ( * ) + 63, - 55 / - - COUNT ( * ) AS col1
----
-1283
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1130
SELECT ALL + 95 AS col2, COALESCE ( + 78, + + CAST( MAX( ALL + ( + CAST( + 60 AS SIGNED ) ) ) AS SIGNED ), + 14 ) * - COUNT( * ) + - NULLIF ( + 14, + + 43 )
----
95
-92

skipif mysql # not compatible
query II rowsort label-1130
SELECT ALL + 95 AS col2, COALESCE ( + 78, + + CAST ( MAX ( ALL + ( + CAST ( + 60 AS INTEGER ) ) ) AS INTEGER ), + 14 ) * - COUNT ( * ) + - NULLIF ( + 14, + + 43 )
----
95
-92

query I rowsort
SELECT DISTINCT + 90 * + 79 col0
----
7110

query II rowsort
SELECT ALL + 40, - 9 col0
----
40
-9

query I rowsort
SELECT COALESCE ( - 70, 0 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL 65 * + + COUNT( * ) + + 60 col2
----
125

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL 65 * + + COUNT ( * ) + + 60 col2
----
125

query I rowsort
SELECT + 96 * + 6 + - 55
----
521

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1136
SELECT ALL + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * - 50 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1136
SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - 50 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1137
SELECT NULLIF ( + COUNT( * ), - 22 * - + COUNT( * ) * - 79 * - CAST( NULL AS DECIMAL ) + - 66 * - 60 - - 6 + - ( - 56 ) + - - 12 * - 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1137
SELECT NULLIF ( + COUNT ( * ), - 22 * - + COUNT ( * ) * - 79 * - CAST ( NULL AS REAL ) + - 66 * - 60 - - 6 + - ( - 56 ) + - - 12 * - 97 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1138
SELECT DISTINCT - 10 DIV + 13 - COUNT( * ) - + + 0 AS col2, - ( 53 )
----
-1
-53

skipif mysql # not compatible
query II rowsort label-1138
SELECT DISTINCT - 10 / + 13 - COUNT ( * ) - + + 0 AS col2, - ( 53 )
----
-1
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT DISTINCT 95 * - COUNT( * ) * + 43 - + - COALESCE ( + - CASE - 43 WHEN + 10 THEN NULL WHEN - 96 * ( - ( 2 ) ) THEN + - 32 * - 63 - + 0 WHEN NULLIF ( 46, - 9 ) + + 75 THEN 3 END, 12 ) * - 66 * COUNT( * )
----
-4877

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT 95 * - COUNT ( * ) * + 43 - + - COALESCE ( + - CASE - 43 WHEN + 10 THEN NULL WHEN - 96 * ( - ( 2 ) ) THEN + - 32 * - 63 - + 0 WHEN NULLIF ( 46, - 9 ) + + 75 THEN 3 END, 12 ) * - 66 * COUNT ( * )
----
-4877

query I rowsort
SELECT + NULLIF ( - + 68, 95 / 31 - - - 59 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT 13 * + - COUNT( * ) * 69 + + - 36 + - 54 AS col1
----
-987

skipif mysql # not compatible
query I rowsort label-1141
SELECT 13 * + - COUNT ( * ) * 69 + + - 36 + - 54 AS col1
----
-987

query II rowsort
SELECT - 21 + - 86, + 52 col1
----
-107
52

query I rowsort
SELECT - - 53 * - 65
----
-3445

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1145
SELECT + CAST( NULL AS SIGNED ) - + COUNT( * ) / + MAX( + + CAST( - 83 AS SIGNED ) ) / - - COALESCE ( - + 3, 75 ) * + 27 AS col1, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-1145
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) / + MAX ( + + CAST ( - 83 AS INTEGER ) ) / - - COALESCE ( - + 3, 75 ) * + 27 AS col1, 38
----
NULL
38

query I rowsort
SELECT + 48 + + 51 AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT + COUNT( * ) + - MIN( 48 ) + - 30 + + COUNT( * ) + + 92 DIV 23
----
-72

skipif mysql # not compatible
query I rowsort label-1147
SELECT + COUNT ( * ) + - MIN ( 48 ) + - 30 + + COUNT ( * ) + + 92 / 23
----
-72

query I rowsort
SELECT ALL ( + - 78 ) * 48
----
-3744

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT ALL - 29, - CASE + - COUNT( * ) WHEN - 91 THEN NULL WHEN + 71 + - - ( - NULLIF ( + 18, - 0 ) ) THEN + + 17 END + + 82 AS col1
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-1151
SELECT ALL - 29, - CASE + - COUNT ( * ) WHEN - 91 THEN NULL WHEN + 71 + - - ( - NULLIF ( + 18, - 0 ) ) THEN + + 17 END + + 82 AS col1
----
-29
NULL

query I rowsort
SELECT DISTINCT - 65 * - 29 col1
----
1885

query I rowsort
SELECT + + 95 + - ( + 52 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1154
SELECT - 79, CAST( + + 63 AS SIGNED ) * 39 AS col2
----
-79
2457

skipif mysql # not compatible
query II rowsort label-1154
SELECT - 79, CAST ( + + 63 AS INTEGER ) * 39 AS col2
----
-79
2457

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ALL 90 AS col2, COUNT( * ) + - + 78 * 33 + - 82
----
90
-2655

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL 90 AS col2, COUNT ( * ) + - + 78 * 33 + - 82
----
90
-2655

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT ALL + 10 DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + 10 / - 19
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT ALL 29 + - 71 + - 46 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 29 + - 71 + - 46 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1158
SELECT - ( + 88 ) AS col2, 91 + CASE COUNT( * ) WHEN + 70 THEN + 96 END + + 41 * + - 26 + + CAST( NULL AS DECIMAL ) - - CAST( + - 33 AS SIGNED ) + - NULLIF ( COUNT( * ), + CAST( 31 AS SIGNED ) ) * + 11 * + + 96
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-1158
SELECT - ( + 88 ) AS col2, 91 + CASE COUNT ( * ) WHEN + 70 THEN + 96 END + + 41 * + - 26 + + CAST ( NULL AS REAL ) - - CAST ( + - 33 AS INTEGER ) + - NULLIF ( COUNT ( * ), + CAST ( 31 AS INTEGER ) ) * + 11 * + + 96
----
-88
NULL

query I rowsort
SELECT + 11 * + 74 col2
----
814

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - NULLIF ( + 9, 2 ) + - ( + COUNT( * ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1160
SELECT - NULLIF ( + 9, 2 ) + - ( + COUNT ( * ) ) AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL + 58 * NULLIF ( - ( + 29 ), - NULLIF ( - - CAST( NULL AS SIGNED ), - ( - 68 ) ) + - 54 ) AS col2
----
-1682

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + 58 * NULLIF ( - ( + 29 ), - NULLIF ( - - CAST ( NULL AS INTEGER ), - ( - 68 ) ) + - 54 ) AS col2
----
-1682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT DISTINCT + 3 + - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) * - ( - COALESCE ( - 50, - ( + COUNT( * ) ) ) ) - 86 - - 43 * - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT + 3 + - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - ( - COALESCE ( - 50, - ( + COUNT ( * ) ) ) ) - 86 - - 43 * - 12 AS col2
----
NULL

query I rowsort
SELECT ALL - 49 + 96
----
47

query I rowsort
SELECT + 81 * + 84 AS col2
----
6804

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT DISTINCT 24 DIV + 99 + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT 24 / + 99 + 93 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL 22 * - COUNT( * ) * - 33
----
726

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL 22 * - COUNT ( * ) * - 33
----
726

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

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

query I rowsort
SELECT ALL - 23 - + - 3
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT ALL + + COUNT( * ) * + 1 DIV + ( - 61 ) + - 46 + + 70 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL + + COUNT ( * ) * + 1 / + ( - 61 ) + - 46 + + 70 AS col2
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1170
SELECT ALL + CAST( NULL AS DECIMAL ) * + + 39 + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + CAST ( NULL AS REAL ) * + + 39 + 26 AS col2
----
NULL

query I rowsort
SELECT ALL - + 96 AS col1
----
-96

query I rowsort
SELECT - 10 + + - 3 + - - 3 AS col1
----
-10

query I rowsort
SELECT - 80 * - 34 * + - 60 AS col2
----
-163200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT 34 + COUNT( * ) + - 70 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1175
SELECT 34 + COUNT ( * ) + - 70 AS col2
----
-35

query I rowsort
SELECT + 2 + 53 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1177
SELECT + 46 DIV + 16, + COUNT( * ) AS col0
----
2
1

skipif mysql # not compatible
query II rowsort label-1177
SELECT + 46 / + 16, + COUNT ( * ) AS col0
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1178
SELECT ALL + CAST( NULL AS SIGNED ) DIV - 90 * COUNT( * ) * - 15 * - 28 AS col0, 13 DIV - - 37 * 41
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1178
SELECT ALL + CAST ( NULL AS INTEGER ) / - 90 * COUNT ( * ) * - 15 * - 28 AS col0, 13 / - - 37 * 41
----
NULL
0

query II rowsort
SELECT ALL + ( - 56 ) AS col2, - 57
----
-56
-57

query I rowsort
SELECT DISTINCT - 72 + + 48 AS col2
----
-24

query I rowsort
SELECT ALL + 55 * - 23
----
-1265

query I rowsort
SELECT ALL - 80 * 99
----
-7920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT CAST( 69 AS SIGNED ) * + - 61 + + 8 AS col2
----
-4201

skipif mysql # not compatible
query I rowsort label-1183
SELECT CAST ( 69 AS INTEGER ) * + - 61 + + 8 AS col2
----
-4201

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT - 43, + COUNT( ALL - 42 ) AS col1
----
-43
1

skipif mysql # not compatible
query II rowsort label-1184
SELECT - 43, + COUNT ( ALL - 42 ) AS col1
----
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT COUNT( DISTINCT - 45 ) - + COUNT( * ) * COUNT( * ) / - + CASE 48 WHEN + 65 - + 90 THEN 21 + - 45 END / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT COUNT ( DISTINCT - 45 ) - + COUNT ( * ) * COUNT ( * ) / - + CASE 48 WHEN + 65 - + 90 THEN 21 + - 45 END / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT DISTINCT 5, COUNT( + 25 ) + + 67 AS col0
----
5
68

skipif mysql # not compatible
query II rowsort label-1186
SELECT DISTINCT 5, COUNT ( + 25 ) + + 67 AS col0
----
5
68

query I rowsort
SELECT ALL 39 + 75 + + 86 + + - 91 - 15
----
94

query I rowsort
SELECT ALL - 27 * + 75 AS col2
----
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1189
SELECT - 10 AS col0, - 93 + CASE - 25 WHEN - - ( - 50 ) * - COUNT( * ) THEN + + NULLIF ( + 97, + 95 * - + 53 * - + CASE + CAST( - 63 AS SIGNED ) WHEN + 72 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE 97 * + COALESCE ( + - NULLIF ( 90, COUNT( * ) ), - 61 + + 12 * - 24 ) END + NULLIF ( - 35 + + 4 * 58, 83 ) ) - - ( - MIN( ALL - 88 ) ) * 63 ELSE ( NULLIF ( 71, + 17 ) ) END
----
-10
-22

skipif mysql # not compatible
query II rowsort label-1189
SELECT - 10 AS col0, - 93 + CASE - 25 WHEN - - ( - 50 ) * - COUNT ( * ) THEN + + NULLIF ( + 97, + 95 * - + 53 * - + CASE + CAST ( - 63 AS INTEGER ) WHEN + 72 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE 97 * + COALESCE ( + - NULLIF ( 90, COUNT ( * ) ), - 61 + + 12 * - 24 ) END + NULLIF ( - 35 + + 4 * 58, 83 ) ) - - ( - MIN ( ALL - 88 ) ) * 63 ELSE ( NULLIF ( 71, + 17 ) ) END
----
-10
-22

query I rowsort
SELECT 49 + 58 + - 65 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT ALL 68 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL 68 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 10 * - 88 AS col0
----
-880

query I rowsort
SELECT DISTINCT 3 * 78 col1
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1194
SELECT ALL - 20 AS col2, CASE 98 WHEN - 61 THEN + - 47 * 37 - - + NULLIF ( - CAST( NULL AS SIGNED ), 81 ) + + 74 WHEN + + 1 + SUM( ALL + - 6 ) THEN NULL ELSE + - 64 * + ( + 5 ) * + + ( - COUNT( * ) ) END - - CAST( NULL AS SIGNED ) / + - 16 AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-1194
SELECT ALL - 20 AS col2, CASE 98 WHEN - 61 THEN + - 47 * 37 - - + NULLIF ( - CAST ( NULL AS INTEGER ), 81 ) + + 74 WHEN + + 1 + SUM ( ALL + - 6 ) THEN NULL ELSE + - 64 * + ( + 5 ) * + + ( - COUNT ( * ) ) END - - CAST ( NULL AS INTEGER ) / + - 16 AS col1
----
-20
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT COUNT( - 16 ) DIV ( COUNT( * ) ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-1195
SELECT COUNT ( - 16 ) / ( COUNT ( * ) ) + - 84
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL - - SUM( ALL 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - - SUM ( ALL 55 ) AS col2
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL ( - 19 ) * + SUM( ALL + 63 ) AS col0
----
-1197

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL ( - 19 ) * + SUM ( ALL + 63 ) AS col0
----
-1197

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT - 50 * + ( 76 ) + - + 5 + + MIN( + - 11 ) * - 54 * COUNT( * )
----
-3211

skipif mysql # not compatible
query I rowsort label-1199
SELECT - 50 * + ( 76 ) + - + 5 + + MIN ( + - 11 ) * - 54 * COUNT ( * )
----
-3211

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT COUNT( * ) * - + 98 * - 91 + - 53
----
8865

skipif mysql # not compatible
query I rowsort label-1200
SELECT COUNT ( * ) * - + 98 * - 91 + - 53
----
8865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1201
SELECT DISTINCT - NULLIF ( - 35, - + 79 ) AS col0, COUNT( - CAST( NULL AS SIGNED ) )
----
35
0

skipif mysql # not compatible
query II rowsort label-1201
SELECT DISTINCT - NULLIF ( - 35, - + 79 ) AS col0, COUNT ( - CAST ( NULL AS INTEGER ) )
----
35
0

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

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

query I rowsort
SELECT - 86 * + 52 + - + 58 + - + 63
----
-4593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT + 17 * NULLIF ( 92, + 76 ) * - CAST( NULL AS SIGNED ) * 74 - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT + 17 * NULLIF ( 92, + 76 ) * - CAST ( NULL AS INTEGER ) * 74 - + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT CASE 71 WHEN ( 24 ) - 88 THEN NULL ELSE + 53 + - + CAST( + 95 AS SIGNED ) + + + CASE - - ( + 22 ) WHEN + 24 * - COUNT( - 52 ) THEN NULL ELSE + COUNT( * ) * + 80 END END * - 10
----
-380

skipif mysql # not compatible
query I rowsort label-1205
SELECT CASE 71 WHEN ( 24 ) - 88 THEN NULL ELSE + 53 + - + CAST ( + 95 AS INTEGER ) + + + CASE - - ( + 22 ) WHEN + 24 * - COUNT ( - 52 ) THEN NULL ELSE + COUNT ( * ) * + 80 END END * - 10
----
-380

query I rowsort
SELECT ALL + COALESCE ( 13, 82 + - 11 + - - ( - 78 ) + - 70 * 41 * + + 23 - 5 * 63 ) + - - 1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL - ( 92 ) * - 35 * COUNT( * ) AS col0
----
3220

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL - ( 92 ) * - 35 * COUNT ( * ) AS col0
----
3220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1208
SELECT + 24, - 12 * ( + CASE + 89 WHEN - + 84 + MAX( ALL CAST( NULL AS SIGNED ) ) THEN + 63 WHEN - 80 + 57 THEN + + 18 WHEN - + 39 THEN - 79 + - 6 END ) * + 99 * - MAX( DISTINCT - + ( + 45 ) ) * - 29 + 23 + - AVG ( DISTINCT 47 ) * CAST( 97 AS DECIMAL ) AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1208
SELECT + 24, - 12 * ( + CASE + 89 WHEN - + 84 + MAX ( ALL CAST ( NULL AS INTEGER ) ) THEN + 63 WHEN - 80 + 57 THEN + + 18 WHEN - + 39 THEN - 79 + - 6 END ) * + 99 * - MAX ( DISTINCT - + ( + 45 ) ) * - 29 + 23 + - AVG ( DISTINCT 47 ) * CAST ( 97 AS REAL ) AS col0
----
24
NULL

query I rowsort
SELECT ALL - + 10 + + - 25 AS col2
----
-35

query II rowsort
SELECT 36 AS col0, 17 AS col2
----
36
17

query I rowsort
SELECT ( ( + - 87 ) ) + 86
----
-1

query I rowsort
SELECT DISTINCT - 82 * - 77 * - 77 + + CASE + 75 WHEN + - 2 THEN - - NULLIF ( - - 17, - 14 + 75 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1214
SELECT NULLIF ( - 48, 66 ) - - SUM( DISTINCT + - 54 ) - + - 71 + MAX( DISTINCT + 55 ) AS col1, 12 * + 63 + + SUM( - 18 ) + 72 DIV ( 24 ) * + 37 * + MIN( + - 20 ) + + - 7 * - + 55 * + 54 + + 61 DIV - + 46 + - 54 AS col1
----
24
19253

skipif mysql # not compatible
query II rowsort label-1214
SELECT NULLIF ( - 48, 66 ) - - SUM ( DISTINCT + - 54 ) - + - 71 + MAX ( DISTINCT + 55 ) AS col1, 12 * + 63 + + SUM ( - 18 ) + 72 / ( 24 ) * + 37 * + MIN ( + - 20 ) + + - 7 * - + 55 * + 54 + + 61 / - + 46 + - 54 AS col1
----
24
19253

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

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

query I rowsort
SELECT ALL - 49 + + 94
----
45

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

skipif mysql # not compatible
query I rowsort label-1217
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) + + 69 AS col2
----
69

query I rowsort
SELECT 53 * + 5
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT COUNT( - ( + 87 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT COUNT ( - ( + 87 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 69 * + 80 AS col2
----
5520

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT DISTINCT + 31 DIV 18
----
1

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + 31 / 18
----
1

query II rowsort
SELECT 43 * 65 col1, 83 * + - 73 + + 63
----
2795
-5996

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1224
SELECT - 22 DIV + CASE + - NULLIF ( - 23, 15 * 61 + + COUNT( * ) * - - 74 DIV + CAST( 8 AS SIGNED ) + + - 84 + + - 54 + - 74 * 43 + 49 * - 11 DIV - 58 - + CAST( - CASE + 52 WHEN + 42 THEN NULL WHEN 4 THEN - 44 * + + COUNT( * ) * + 83 ELSE NULL END AS SIGNED ) * + 25 * + 58 * 10 + 59 ) WHEN 56 DIV - 46 THEN - 5 DIV - 46 WHEN + 47 + 36 THEN + 32 * ( 25 ) ELSE 65 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT - 22 / + CASE + - NULLIF ( - 23, 15 * 61 + + COUNT ( * ) * - - 74 / + CAST ( 8 AS INTEGER ) + + - 84 + + - 54 + - 74 * 43 + 49 * - 11 / - 58 - + CAST ( - CASE + 52 WHEN + 42 THEN NULL WHEN 4 THEN - 44 * + + COUNT ( * ) * + 83 ELSE NULL END AS INTEGER ) * + 25 * + 58 * 10 + 59 ) WHEN 56 / - 46 THEN - 5 / - 46 WHEN + 47 + 36 THEN + 32 * ( 25 ) ELSE 65 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT + COALESCE ( - COUNT( * ), ( + 82 ), 76 - + 31 * - 63 * + + 61 * MIN( DISTINCT + 19 ) ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT + COALESCE ( - COUNT ( * ), ( + 82 ), 76 - + 31 * - 63 * + + 61 * MIN ( DISTINCT + 19 ) ) + + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT + 4 + + 2 DIV - ( - + 13 ) * 89 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1226
SELECT + 4 + + 2 / - ( - + 13 ) * 89 AS col2
----
4

query I rowsort
SELECT DISTINCT 27 * 99
----
2673

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

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

query I rowsort
SELECT + - 40 - + 77
----
-117

query I rowsort
SELECT + ( - NULLIF ( + + 62, + 1 + + 40 ) ) col0
----
-62

query I rowsort
SELECT + + ( 28 ) * + 28 + 28
----
812

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT + 1 DIV - 57 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-1233
SELECT + 1 / - 57 * + 25
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1234
SELECT ALL + + 54 * - CAST( NULL AS SIGNED ) + - ( 20 ) * + 64 * - + 23 + - 99 * 73 - + 92, 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1234
SELECT ALL + + 54 * - CAST ( NULL AS INTEGER ) + - ( 20 ) * + 64 * - + 23 + - 99 * 73 - + 92, 9 AS col0
----
NULL
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1235
SELECT - COUNT( * ) DIV - + 18 + 97 + 63
----
160

skipif mysql # not compatible
query I rowsort label-1235
SELECT - COUNT ( * ) / - + 18 + 97 + 63
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT + + COUNT( * ) * 38 DIV - - COUNT( * ) + - 34
----
4

skipif mysql # not compatible
query I rowsort label-1236
SELECT + + COUNT ( * ) * 38 / - - COUNT ( * ) + - 34
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1237
SELECT + CAST( ( 5 ) AS SIGNED ) DIV 34 * - - 37 + + ( - ( 80 ) ) * 99 * + 66 AS col1, - 90 + - 54 * - + 68 col2
----
-522720
3582

skipif mysql # not compatible
query II rowsort label-1237
SELECT + CAST ( ( 5 ) AS INTEGER ) / 34 * - - 37 + + ( - ( 80 ) ) * 99 * + 66 AS col1, - 90 + - 54 * - + 68 col2
----
-522720
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL - SUM( + 24 ) * + 71 + - + 46 * - 2 * + ( + 19 ) * 18 + + 2 + + CASE ( - 79 ) WHEN - + 91 THEN + COUNT( DISTINCT 34 ) END - COUNT( * ) * + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL - SUM ( + 24 ) * + 71 + - + 46 * - 2 * + ( + 19 ) * 18 + + 2 + + CASE ( - 79 ) WHEN - + 91 THEN + COUNT ( DISTINCT 34 ) END - COUNT ( * ) * + - 58
----
NULL

query I rowsort
SELECT DISTINCT 29 * - - ( - 32 )
----
-928

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

skipif mysql # not compatible
query I rowsort label-1240
SELECT + + 22 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + + 64 + - 17 - + ( - 81 ) - COUNT( * ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-1241
SELECT + + 64 + - 17 - + ( - 81 ) - COUNT ( * ) AS col2
----
127

query I rowsort
SELECT ALL + + 47 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT DISTINCT + + CAST( + SUM( - 49 ) AS SIGNED ) * - ( - + ( + 5 ) ) * + COUNT( * ) + 54 AS col1
----
-191

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + + CAST ( + SUM ( - 49 ) AS INTEGER ) * - ( - + ( + 5 ) ) * + COUNT ( * ) + 54 AS col1
----
-191

query II rowsort
SELECT + - 89 + - 7 col1, 53
----
-96
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT - 0 + + 31 + + + 34 DIV + 37 * 48 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1245
SELECT - 0 + + 31 + + + 34 / + 37 * 48 AS col2
----
31

query I rowsort
SELECT - 82 * + 5 * - 22 AS col1
----
9020

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT - 44 * + + NULLIF ( 10, MAX( DISTINCT - 48 ) )
----
-440

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - 44 * + + NULLIF ( 10, MAX ( DISTINCT - 48 ) )
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL CASE + 82 WHEN - - 24 THEN - - COUNT( ALL + 56 ) WHEN 57 + - + COALESCE ( - + 97, COUNT( + 7 ) / - 85 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL CASE + 82 WHEN - - 24 THEN - - COUNT ( ALL + 56 ) WHEN 57 + - + COALESCE ( - + 97, COUNT ( + 7 ) / - 85 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1249
SELECT ALL CAST( 31 AS SIGNED ) - 29 + + + 88 * + 45
----
3962

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL CAST ( 31 AS INTEGER ) - 29 + + + 88 * + 45
----
3962

query I rowsort
SELECT ALL - 27 * - 71
----
1917

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

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

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

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

query I rowsort
SELECT + 81 * - 67
----
-5427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT - CASE + 46 WHEN 54 THEN - 26 + - - 5 WHEN CAST( NULL AS SIGNED ) * 78 THEN NULL END * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT - CASE + 46 WHEN 54 THEN - 26 + - - 5 WHEN CAST ( NULL AS INTEGER ) * 78 THEN NULL END * - 15 AS col2
----
NULL

query II rowsort
SELECT 3 col2, 85 + + 51
----
3
136

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

skipif mysql # not compatible
query II rowsort label-1256
SELECT 41, COUNT ( * ) AS col1
----
41
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT DISTINCT COUNT( * ), 31 * - + 95 AS col2
----
1
-2945

skipif mysql # not compatible
query II rowsort label-1257
SELECT DISTINCT COUNT ( * ), 31 * - + 95 AS col2
----
1
-2945

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - CASE 30 WHEN + 52 / + 86 * - COUNT( - - COALESCE ( - - 5, + 34 ) ) THEN 33 WHEN - 45 THEN + 89 ELSE NULL END - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT - CASE 30 WHEN + 52 / + 86 * - COUNT ( - - COALESCE ( - - 5, + 34 ) ) THEN 33 WHEN - 45 THEN + 89 ELSE NULL END - + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1260
SELECT ALL COALESCE ( 51, - 9 + + MIN( - + 64 ) ) * 57 / + CASE + - 20 WHEN - - 41 + 17 THEN 16 ELSE NULL END / 14 + COUNT( * ) + - CAST( + 35 AS SIGNED ) + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL COALESCE ( 51, - 9 + + MIN ( - + 64 ) ) * 57 / + CASE + - 20 WHEN - - 41 + 17 THEN 16 ELSE NULL END / 14 + COUNT ( * ) + - CAST ( + 35 AS INTEGER ) + 50 AS col0
----
NULL

query I rowsort
SELECT - 20 * - 87 AS col1
----
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT - 91 * + 80 * 20 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 91 * + 80 * 20 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 97 * + 91
----
-8827

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1264
SELECT - 8 + + CAST( - 59 AS SIGNED ) DIV + - 38 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1264
SELECT - 8 + + CAST ( - 59 AS INTEGER ) / + - 38 AS col2
----
-7

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT + 27 * - - 39 * - 96 + + COUNT( * ) * + COUNT( - 89 ), COUNT( DISTINCT - 87 ) * - 31 AS col0
----
-101087
-31

skipif mysql # not compatible
query II rowsort label-1267
SELECT + 27 * - - 39 * - 96 + + COUNT ( * ) * + COUNT ( - 89 ), COUNT ( DISTINCT - 87 ) * - 31 AS col0
----
-101087
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT NULLIF ( - ( 52 ), + ( 33 ) - - ( 80 ) * - + COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1268
SELECT NULLIF ( - ( 52 ), + ( 33 ) - - ( 80 ) * - + COUNT ( * ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT ALL + 31 DIV + 88 + 97 * - 93 * 22
----
-198462

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + 31 / + 88 + 97 * - 93 * 22
----
-198462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT - - 16 * - + 53 + + - COALESCE ( + - 31, + + 11, - 28 ) + - + 22 * - + COUNT( ALL - 59 ) * + + CAST( NULL AS SIGNED ) + + 98 * - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT - - 16 * - + 53 + + - COALESCE ( + - 31, + + 11, - 28 ) + - + 22 * - + COUNT ( ALL - 59 ) * + + CAST ( NULL AS INTEGER ) + + 98 * - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1271
SELECT - 27 DIV 42 * - - 13 + + ( + 80 ) + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-1271
SELECT - 27 / 42 * - - 13 + + ( + 80 ) + - COUNT ( * )
----
79

query I rowsort
SELECT + + 79 + 22
----
101

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

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

query I rowsort
SELECT + - 87 * 93 col1
----
-8091

query I rowsort
SELECT CASE + 17 WHEN + + 72 THEN + 22 + + 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + 39 * + COUNT( * ) + + 8 + 25
----
72

skipif mysql # not compatible
query I rowsort label-1276
SELECT + 39 * + COUNT ( * ) + + 8 + 25
----
72

query I rowsort
SELECT NULLIF ( - 12, 9 ) col0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT + 89 + - 12 + + + COUNT( * ) + - 33
----
45

skipif mysql # not compatible
query I rowsort label-1279
SELECT + 89 + - 12 + + + COUNT ( * ) + - 33
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1280
SELECT ALL + 51 * - + 21 - - - 9, CAST( NULL AS DECIMAL ) AS col1
----
-1080
NULL

skipif mysql # not compatible
query II rowsort label-1280
SELECT ALL + 51 * - + 21 - - - 9, CAST ( NULL AS REAL ) AS col1
----
-1080
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + 29 * - 95 * + 20 * - - COUNT( * ) AS col2
----
-55100

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 29 * - 95 * + 20 * - - COUNT ( * ) AS col2
----
-55100

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT + COALESCE ( + SUM( - ( 87 ) ), 97 ) DIV - 58 DIV COUNT( * ) + + 97 * - 41 AS col2
----
-3976

skipif mysql # not compatible
query I rowsort label-1283
SELECT + COALESCE ( + SUM ( - ( 87 ) ), 97 ) / - 58 / COUNT ( * ) + + 97 * - 41 AS col2
----
-3976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL CAST( NULL AS SIGNED ) * - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL CAST ( NULL AS INTEGER ) * - 12 col2
----
NULL

query I rowsort
SELECT + ( + - 14 ) * - + 31
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL 16 * - 66 * 23 * MAX( + 7 ) AS col1
----
-170016

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL 16 * - 66 * 23 * MAX ( + 7 ) AS col1
----
-170016

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

query I rowsort
SELECT 94 - 16 AS col0
----
78

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

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

query II rowsort
SELECT - 52, 37 AS col0
----
-52
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT 84 + + + NULLIF ( + 23, 36 + - + NULLIF ( - 43, - COUNT( * ) + + COUNT( ALL - 25 ) + 50 * 82 / - - 65 ) )
----
107

skipif mysql # not compatible
query I rowsort label-1291
SELECT 84 + + + NULLIF ( + 23, 36 + - + NULLIF ( - 43, - COUNT ( * ) + + COUNT ( ALL - 25 ) + 50 * 82 / - - 65 ) )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT 94 + - + ( SUM( DISTINCT - 94 ) ) - - 55 AS col2
----
243

skipif mysql # not compatible
query I rowsort label-1292
SELECT 94 + - + ( SUM ( DISTINCT - 94 ) ) - - 55 AS col2
----
243

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

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

query I rowsort
SELECT ALL + 97 + - ( + - 24 )
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT ( - CAST( - 0 AS SIGNED ) ) * - 18 * + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1295
SELECT ( - CAST ( - 0 AS INTEGER ) ) * - 18 * + 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT 19 + + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1296
SELECT 19 + + COUNT ( * ) AS col1
----
20

query I rowsort
SELECT - 29 col0
----
-29

query I rowsort
SELECT - NULLIF ( + 5, - 58 * 87 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT - - COUNT( + COALESCE ( 10, 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1299
SELECT - - COUNT ( + COALESCE ( 10, 1 ) )
----
1

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

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

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

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

query I rowsort
SELECT ALL + 88 + 90 col1
----
178

query I rowsort
SELECT DISTINCT - COALESCE ( - - 89, + 45 ) AS col1
----
-89

query I rowsort
SELECT 24 * 9 AS col1
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT - 63 - + - NULLIF ( + - COUNT( * ), 81 ) DIV - 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1305
SELECT - 63 - + - NULLIF ( + - COUNT ( * ), 81 ) / - 64 AS col1
----
-63

query II rowsort
SELECT + 42 AS col2, 52 + 83 col0
----
42
135

query I rowsort
SELECT ALL - - COALESCE ( + + 43, 50 )
----
43

query I rowsort
SELECT ALL - - 3 + - 48 col0
----
-45

query I rowsort
SELECT - 46 * - 95 + - 24 AS col1
----
4346

query II rowsort
SELECT ALL + + 91 * 88 col1, - 59 AS col2
----
8008
-59

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

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

query I rowsort
SELECT + ( - 76 ) + + + 40 - - 31
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - ( + + 31 ) + + + COALESCE ( - - 55, - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-1314
SELECT - ( + + 31 ) + + + COALESCE ( - - 55, - COUNT ( * ) )
----
24

query I rowsort
SELECT 72 - 90 col0
----
-18

query I rowsort
SELECT DISTINCT + 43 * - 81
----
-3483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT CASE - 26 WHEN + 35 THEN CASE - 58 WHEN 97 + + - 28 THEN NULL WHEN + - ( + CASE + NULLIF ( - - COUNT( * ), + ( + - CAST( NULL AS SIGNED ) ) ) WHEN NULLIF ( + 59, + + AVG ( + + 18 ) * - 60 * COUNT( * ) ) THEN - 52 WHEN - 46 THEN + 20 WHEN - 94 / - + 25 * + ( + + 92 ) / + + 57 + + 13 THEN NULL END ) THEN + 62 WHEN COUNT( * ) THEN + 91 + 94 ELSE NULL END END * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT CASE - 26 WHEN + 35 THEN CASE - 58 WHEN 97 + + - 28 THEN NULL WHEN + - ( + CASE + NULLIF ( - - COUNT ( * ), + ( + - CAST ( NULL AS INTEGER ) ) ) WHEN NULLIF ( + 59, + + AVG ( + + 18 ) * - 60 * COUNT ( * ) ) THEN - 52 WHEN - 46 THEN + 20 WHEN - 94 / - + 25 * + ( + + 92 ) / + + 57 + + 13 THEN NULL END ) THEN + 62 WHEN COUNT ( * ) THEN + 91 + 94 ELSE NULL END END * - 92 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1318
SELECT 53 + NULLIF ( 78, + NULLIF ( - + CAST( COUNT( * ) AS SIGNED ), + 0 / + - 32 + 64 - + MIN( DISTINCT + 6 ) + + - 54 * - CAST( NULL AS SIGNED ) * NULLIF ( + - 23, - 71 ) ) + + + 77 )
----
131

skipif mysql # not compatible
query I rowsort label-1318
SELECT 53 + NULLIF ( 78, + NULLIF ( - + CAST ( COUNT ( * ) AS INTEGER ), + 0 / + - 32 + 64 - + MIN ( DISTINCT + 6 ) + + - 54 * - CAST ( NULL AS INTEGER ) * NULLIF ( + - 23, - 71 ) ) + + + 77 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT 91 * + - COUNT( * ) + + 95 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1319
SELECT 91 * + - COUNT ( * ) + + 95 AS col2
----
4

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1321
SELECT DISTINCT - 9 DIV - 8 AS col1, - 64 AS col1
----
1
-64

skipif mysql # not compatible
query II rowsort label-1321
SELECT DISTINCT - 9 / - 8 AS col1, - 64 AS col1
----
1
-64

query I rowsort
SELECT DISTINCT 68 * + - 78 AS col0
----
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT MAX( ALL 32 ) - 62
----
-30

skipif mysql # not compatible
query I rowsort label-1323
SELECT MAX ( ALL 32 ) - 62
----
-30

query I rowsort
SELECT 84 + 83 AS col2
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT 19 * 51 DIV 93 DIV - 52 * - 84
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT 19 * 51 / 93 / - 52 * - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ( 28 ) - + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-1326
SELECT ( 28 ) - + + COUNT ( * )
----
27

query I rowsort
SELECT - 95 - + 10 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT MIN( + + 67 ) + + + 66 * - 77
----
-5015

skipif mysql # not compatible
query I rowsort label-1328
SELECT MIN ( + + 67 ) + + + 66 * - 77
----
-5015

query I rowsort
SELECT - 17 * + 72 AS col0
----
-1224

query I rowsort
SELECT - 61 + - - 4 AS col1
----
-57

query I rowsort
SELECT 69 - 55 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT SUM( DISTINCT ( - 9 ) ) + - - 86 + 8
----
85

skipif mysql # not compatible
query I rowsort label-1332
SELECT SUM ( DISTINCT ( - 9 ) ) + - - 86 + 8
----
85

query I rowsort
SELECT ALL - 65 * + + 86 * + + 65
----
-363350

query I rowsort
SELECT + 83 * - + 81 - - 15 * - 67 * - 38 AS col0
----
31467

query I rowsort
SELECT - 80 * - - 16 + + 22 AS col0
----
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL - MIN( DISTINCT + - 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - MIN ( DISTINCT + - 60 ) AS col1
----
60

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

query I rowsort
SELECT - 38 + + 43 * 48
----
2026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT + MIN( ALL - 49 ) DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT + MIN ( ALL - 49 ) / 59
----
0

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

skipif mysql # not compatible
query II rowsort label-1340
SELECT COUNT ( * ) AS col1, - 33 AS col1
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ( + + 79 ) * + COUNT( DISTINCT + 63 ) + 25 + - ( - + COUNT( * ) ) * - + ( MIN( 9 ) ) * 69 col0
----
-517

skipif mysql # not compatible
query I rowsort label-1341
SELECT ( + + 79 ) * + COUNT ( DISTINCT + 63 ) + 25 + - ( - + COUNT ( * ) ) * - + ( MIN ( 9 ) ) * 69 col0
----
-517

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

skipif mysql # not compatible
query I rowsort label-1342
SELECT - 75 / + COUNT ( * ) col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT - CAST( + 97 AS SIGNED ) + + + 74 * + - 59 + + ( + - 39 )
----
-4502

skipif mysql # not compatible
query I rowsort label-1343
SELECT - CAST ( + 97 AS INTEGER ) + + + 74 * + - 59 + + ( + - 39 )
----
-4502

query I rowsort
SELECT DISTINCT + 23 * - 93
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL - 96 + - 80 * + + 41 * COUNT( * )
----
-3376

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL - 96 + - 80 * + + 41 * COUNT ( * )
----
-3376

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT - 33 + + 70 * - 78 * - + COUNT( * ) AS col0
----
5427

skipif mysql # not compatible
query I rowsort label-1346
SELECT - 33 + + 70 * - 78 * - + COUNT ( * ) AS col0
----
5427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT - COALESCE ( - - 60, + NULLIF ( + + 55, + 59 ) + - + COUNT( - 47 ) + + + CAST( NULL AS SIGNED ) * + 40 * + - COALESCE ( + + 31, - ( 11 ), + - 45 ) + 41, - 84 - - - MAX( DISTINCT + 9 ) * COUNT( * ) * + CAST( - 94 AS SIGNED ) * - 80 ) + + 56 + - 98
----
-102

skipif mysql # not compatible
query I rowsort label-1347
SELECT - COALESCE ( - - 60, + NULLIF ( + + 55, + 59 ) + - + COUNT ( - 47 ) + + + CAST ( NULL AS INTEGER ) * + 40 * + - COALESCE ( + + 31, - ( 11 ), + - 45 ) + 41, - 84 - - - MAX ( DISTINCT + 9 ) * COUNT ( * ) * + CAST ( - 94 AS INTEGER ) * - 80 ) + + 56 + - 98
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT + 15 - + NULLIF ( - - 77, + 1 + 23 ) - 41 + - ( + - COUNT( * ) ) * ( - 80 ) AS col0
----
-183

skipif mysql # not compatible
query I rowsort label-1348
SELECT + 15 - + NULLIF ( - - 77, + 1 + 23 ) - 41 + - ( + - COUNT ( * ) ) * ( - 80 ) AS col0
----
-183

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

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

query I rowsort
SELECT - 85 + - + 56 col1
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT + 91 + + 13 - - 76 DIV + + MAX( DISTINCT - + 42 )
----
103

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 91 + + 13 - - 76 / + + MAX ( DISTINCT - + 42 )
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT DISTINCT - 79 + - CASE 12 WHEN - 95 THEN - 74 WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 63 / + CAST( NULL AS SIGNED ) * - - 86 + - - 83 / + - 69 * + + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT - 79 + - CASE 12 WHEN - 95 THEN - 74 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 63 / + CAST ( NULL AS INTEGER ) * - - 86 + - - 83 / + - 69 * + + 73 AS col0
----
NULL

query I rowsort
SELECT ALL 50 + 95
----
145

query I rowsort
SELECT + 92 + 18 + + 45 AS col0
----
155

query I rowsort
SELECT + + 50 * + ( 16 ) * - 85
----
-68000

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT ALL COALESCE ( - + 45, - 3 * + COALESCE ( + 89, - 62, - + ( - 4 ) ), - 18, - 20 DIV 33 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL COALESCE ( - + 45, - 3 * + COALESCE ( + 89, - 62, - + ( - 4 ) ), - 18, - 20 / 33 ) col2
----
-45

query I rowsort
SELECT + + 0 + 5 + + ( + 89 )
----
94

query II rowsort
SELECT ALL - 25 * + 8 * + 49 AS col1, - 20
----
-9800
-20

query I rowsort
SELECT DISTINCT - 67 - + - 54 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT DISTINCT + 87 - - 24 * + + 11 * + 2 + + - SUM( + 11 ) AS col0
----
604

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT + 87 - - 24 * + + 11 * + 2 + + - SUM ( + 11 ) AS col0
----
604

query I rowsort
SELECT ALL - + 23 * + 98 - + + 73 * - 56
----
1834

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT + + 48 * - 5 + - 62 + - - ( + 38 ) + COUNT( * ) AS col0
----
-263

skipif mysql # not compatible
query I rowsort label-1362
SELECT + + 48 * - 5 + - 62 + - - ( + 38 ) + COUNT ( * ) AS col0
----
-263

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + - 79 - - NULLIF ( + + COUNT( * ), 48 ) * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-1364
SELECT + - 79 - - NULLIF ( + + COUNT ( * ), 48 ) * COUNT ( * )
----
-78

query I rowsort
SELECT + 48 * - + 61 - - 4 AS col0
----
-2924

onlyif mysql # DIV for integer division: 
query II rowsort label-1366
SELECT ALL + 93 * 72 + + + 34 DIV + + 14, + 50 AS col2
----
6698
50

skipif mysql # not compatible
query II rowsort label-1366
SELECT ALL + 93 * 72 + + + 34 / + + 14, + 50 AS col2
----
6698
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT + 61 * - ( 76 ) - 99 - COUNT( * )
----
-4736

skipif mysql # not compatible
query I rowsort label-1367
SELECT + 61 * - ( 76 ) - 99 - COUNT ( * )
----
-4736

query I rowsort
SELECT ( - COALESCE ( + 50, + + 76 ) ) col0
----
-50

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

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

query I rowsort
SELECT DISTINCT 33 * + 82 + + 39 * - 19
----
1965

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

skipif mysql # not compatible
query I rowsort label-1372
SELECT - CAST ( NULL AS INTEGER ) - + 89 + + + 46 + + - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT 10 * + 66 * 45 * - 6 - - 27 * - - 13 * - 16 + + CASE - COUNT( * ) WHEN - + AVG ( DISTINCT - 7 ) THEN - - 46 * + + 79 + + SUM( 7 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT 10 * + 66 * 45 * - 6 - - 27 * - - 13 * - 16 + + CASE - COUNT ( * ) WHEN - + AVG ( DISTINCT - 7 ) THEN - - 46 * + + 79 + + SUM ( 7 ) END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 40, 44 - - + AVG ( ALL - 31 ) + - 57 * - - 94 + + 4 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1375
SELECT ALL 76 * - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL 76 * - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 10 * + 40 AS col2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + CASE + - 84 WHEN + 51 THEN SUM( DISTINCT 35 ) + + ( + + AVG ( ALL + 96 ) ) * - + 11 END + ( - + 96 ) * - 41 + + - 57 + 10 / - 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT + CASE + - 84 WHEN + 51 THEN SUM ( DISTINCT 35 ) + + ( + + AVG ( ALL + 96 ) ) * - + 11 END + ( - + 96 ) * - 41 + + - 57 + 10 / - 75 col1
----
NULL

query II rowsort
SELECT - 74 * + - 95, + 54 AS col0
----
7030
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT COALESCE ( 46, COALESCE ( CAST( NULL AS SIGNED ), + 54 ) + + 52, - - ( 61 ) + + MAX( ALL 14 ) )
----
46

skipif mysql # not compatible
query I rowsort label-1379
SELECT COALESCE ( 46, COALESCE ( CAST ( NULL AS INTEGER ), + 54 ) + + 52, - - ( 61 ) + + MAX ( ALL 14 ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1380
SELECT - 50 - + + COALESCE ( + 22, ( - + 47 ) ) + ( 42 ) + COUNT( * ) * + 1 AS col1, 48 * + + 96 DIV - - 6 AS col2
----
-29
768

skipif mysql # not compatible
query II rowsort label-1380
SELECT - 50 - + + COALESCE ( + 22, ( - + 47 ) ) + ( 42 ) + COUNT ( * ) * + 1 AS col1, 48 * + + 96 / - - 6 AS col2
----
-29
768

query I rowsort
SELECT DISTINCT + 20 * + NULLIF ( 91, 65 )
----
1820

query I rowsort
SELECT DISTINCT - 82 * ( - 66 ) - + 93
----
5319

query I rowsort
SELECT - 14 * + 55
----
-770

query I rowsort
SELECT ALL - 75 * - 41
----
3075

query I rowsort
SELECT DISTINCT ( - 55 ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1386
SELECT ALL COUNT( + + 59 ) AS col1, 45 * + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1386
SELECT ALL COUNT ( + + 59 ) AS col1, 45 * + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT - + 84 - 49 * 69 + ( 44 ) AS col1
----
-3421

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT - - 26 * - 1 * MAX( - - 68 ) * - 83 AS col2
----
146744

skipif mysql # not compatible
query I rowsort label-1388
SELECT - - 26 * - 1 * MAX ( - - 68 ) * - 83 AS col2
----
146744

query I rowsort
SELECT - - 9 + 36 * + 16
----
585

query I rowsort
SELECT + 99 * + 1 * + 47
----
4653

query I rowsort
SELECT - 43 + + 98 AS col0
----
55

query I rowsort
SELECT - 57 * - + ( + 7 ) + + 73
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL MIN( ALL 43 ) * - + 1
----
-43

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL MIN ( ALL 43 ) * - + 1
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1394
SELECT - CAST( - 0 AS SIGNED ) - + - 27 + 14 DIV + 23
----
27

skipif mysql # not compatible
query I rowsort label-1394
SELECT - CAST ( - 0 AS INTEGER ) - + - 27 + 14 / + 23
----
27

query I rowsort
SELECT ALL - NULLIF ( 43, - 14 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT + 79 - 64 + 64 * - 80 DIV - + ( - COUNT( * ) ) - + 1 DIV 46 + 92 + - - ( - - 27 )
----
-4986

skipif mysql # not compatible
query I rowsort label-1396
SELECT + 79 - 64 + 64 * - 80 / - + ( - COUNT ( * ) ) - + 1 / 46 + 92 + - - ( - - 27 )
----
-4986

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

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + + 17 / + COUNT ( * ) AS col2
----
17

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

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

query I rowsort
SELECT NULLIF ( + 75, - + 54 ) + COALESCE ( 94, - + 51 ) + + 93 * - 30 col2
----
-2621

query I rowsort
SELECT 57 + 84 AS col2
----
141

query I rowsort
SELECT 1 - 3 AS col0
----
-2

query I rowsort
SELECT + 73 + 32
----
105

query II rowsort
SELECT + + 19 * CASE + 73 WHEN - 93 THEN 57 + 13 ELSE NULL END * + 3 + + 59 + + - 96 + + 71 + 67 + 76 / - 33 + + + 14, 35 AS col0
----
NULL
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL 17 + - MAX( DISTINCT 65 )
----
-48

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL 17 + - MAX ( DISTINCT 65 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1406
SELECT DISTINCT 52 + + + 60 DIV + 39
----
53

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT 52 + + + 60 / + 39
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL 87 + MIN( DISTINCT 47 ) * ( 27 ) + - + 79 AS col1
----
1277

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL 87 + MIN ( DISTINCT 47 ) * ( 27 ) + - + 79 AS col1
----
1277

query I rowsort
SELECT 33 * 19 + - 75 * + + 22 AS col2
----
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT CAST( 25 AS SIGNED ) * + NULLIF ( - 59, + 24 ) + + 36 + 77
----
-1362

skipif mysql # not compatible
query I rowsort label-1409
SELECT CAST ( 25 AS INTEGER ) * + NULLIF ( - 59, + 24 ) + + 36 + 77
----
-1362

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT - COUNT( * ) * + 17 * + 60 + + 22 * + 30 + 13 col0
----
-347

skipif mysql # not compatible
query I rowsort label-1410
SELECT - COUNT ( * ) * + 17 * + 60 + + 22 * + 30 + 13 col0
----
-347

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL - SUM( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL - SUM ( 44 )
----
-44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1413
SELECT ( 6 ) * COUNT( * ) + + CAST( + ( + - 26 ) AS DECIMAL ) * - CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT - 84 * + COUNT( * ) + COUNT( * ) + 48 + - - 0 + + 19 * + COUNT( * ) * + - 80 AS col0
----
-1555

skipif mysql # not compatible
query I rowsort label-1414
SELECT - 84 * + COUNT ( * ) + COUNT ( * ) + 48 + - - 0 + + 19 * + COUNT ( * ) * + - 80 AS col0
----
-1555

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1415
SELECT 7 * - 76 + + + 54 + CAST( NULL AS DECIMAL ) * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT 7 * - 76 + + + 54 + CAST ( NULL AS REAL ) * 81 AS col1
----
NULL

query I rowsort
SELECT 9 + + 86 + - ( + - 96 )
----
191

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT ( 13 ) DIV + 73 * 59
----
0

skipif mysql # not compatible
query I rowsort label-1417
SELECT ( 13 ) / + 73 * 59
----
0

query I rowsort
SELECT 47 * - 62 * 49 * 85 * - 45 AS col0
----
546156450

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - 14 + 7 - - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 14 + 7 - - COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT 75 + - 64 + + 52 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1421
SELECT - SUM( ALL 25 ) * + - 53 AS col0, COUNT( * ) AS col2
----
1325
1

skipif mysql # not compatible
query II rowsort label-1421
SELECT - SUM ( ALL 25 ) * + - 53 AS col0, COUNT ( * ) AS col2
----
1325
1

query I rowsort
SELECT DISTINCT + - 94 * - 76 AS col0
----
7144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT 24 * CAST( NULL AS SIGNED ) / + 21 + + COUNT( * ) + + SUM( 69 ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT 24 * CAST ( NULL AS INTEGER ) / + 21 + + COUNT ( * ) + + SUM ( 69 ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT ALL + 78 * - COUNT( * ) + - CASE - + 91 WHEN - 62 THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) * - 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL + 78 * - COUNT ( * ) + - CASE - + 91 WHEN - 62 THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * - 2 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1425
SELECT 54 + + CASE + NULLIF ( CAST( NULL AS SIGNED ), + CASE + 40 WHEN + + COUNT( * ) * - - COUNT( * ) / 3 THEN 18 END ) WHEN 33 THEN 25 ELSE NULL END * 4 / + + NULLIF ( - CAST( + 39 AS SIGNED ), - + 60 * - + 37 * + 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT 54 + + CASE + NULLIF ( CAST ( NULL AS INTEGER ), + CASE + 40 WHEN + + COUNT ( * ) * - - COUNT ( * ) / 3 THEN 18 END ) WHEN 33 THEN 25 ELSE NULL END * 4 / + + NULLIF ( - CAST ( + 39 AS INTEGER ), - + 60 * - + 37 * + 76 ) AS col0
----
NULL

query II rowsort
SELECT + 63 + + - 94 + 20 * + ( - 50 ) * - 27 AS col2, - 61
----
26969
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT + COUNT( * ) * + - 35 * 3 + - 21 * - + 42
----
777

skipif mysql # not compatible
query I rowsort label-1427
SELECT + COUNT ( * ) * + - 35 * 3 + - 21 * - + 42
----
777

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1428
SELECT CAST( - 22 AS SIGNED ) * + 14 AS col0, ( + 92 )
----
-308
92

skipif mysql # not compatible
query II rowsort label-1428
SELECT CAST ( - 22 AS INTEGER ) * + 14 AS col0, ( + 92 )
----
-308
92

query II rowsort
SELECT DISTINCT + 52 AS col0, 7 AS col2
----
52
7

query I rowsort
SELECT ALL + 93 + + + NULLIF ( + 4, 55 / + - 57 * COALESCE ( 88, - 78, + - 62 ) ) AS col2
----
97

query I rowsort
SELECT 16 + - 53
----
-37

query I rowsort
SELECT DISTINCT - NULLIF ( + + 47, - 0 )
----
-47

query II rowsort
SELECT ALL - 93, 77 AS col0
----
-93
77

query I rowsort
SELECT ALL + 32 + 5
----
37

query I rowsort
SELECT DISTINCT - 74 + - 42 AS col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1436
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) * - + ( + - SUM( - 2 ) ) * + - 62 + + COUNT( * ) * - 21 * - 50 + - 9 - COUNT( * ) + 41 + + 4 + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + ( CAST ( NULL AS REAL ) ) * - + ( + - SUM ( - 2 ) ) * + - 62 + + COUNT ( * ) * - 21 * - 50 + - 9 - COUNT ( * ) + 41 + + 4 + + - 50
----
NULL

query II rowsort
SELECT + 33 AS col2, - 57 - + 81 AS col0
----
33
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL NULLIF ( - COALESCE ( CASE - 19 WHEN + + 38 * + 71 THEN + 76 * 23 * - 59 WHEN 33 THEN NULL END, - COUNT( * ) - + 25 ), - - 89 ) * + 26 * - COUNT( * )
----
-676

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL NULLIF ( - COALESCE ( CASE - 19 WHEN + + 38 * + 71 THEN + 76 * 23 * - 59 WHEN 33 THEN NULL END, - COUNT ( * ) - + 25 ), - - 89 ) * + 26 * - COUNT ( * )
----
-676

query I rowsort
SELECT ( - + 71 ) * + + 27 - 79
----
-1996

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

skipif mysql # not compatible
query I rowsort label-1440
SELECT MIN ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT COUNT( * ), - 47 * + + 29 AS col1
----
1
-1363

skipif mysql # not compatible
query II rowsort label-1441
SELECT COUNT ( * ), - 47 * + + 29 AS col1
----
1
-1363

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT COUNT( * ) + + + 88 + 7 - - 53 * - 61 * + + 90 col2, + 30
----
-290874
30

skipif mysql # not compatible
query II rowsort label-1442
SELECT COUNT ( * ) + + + 88 + 7 - - 53 * - 61 * + + 90 col2, + 30
----
-290874
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT SUM( DISTINCT 18 ) - - 22
----
40

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT SUM ( DISTINCT 18 ) - - 22
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT 3 * + + 4 DIV 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT 3 * + + 4 / 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL COUNT( * ) - MIN( - 46 )
----
47

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL COUNT ( * ) - MIN ( - 46 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT MIN( 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1446
SELECT MIN ( 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT ALL - NULLIF ( COUNT( * ), + 35 + - COUNT( * ) * - - 36 * + 2 ) AS col2, - 25
----
-1
-25

skipif mysql # not compatible
query II rowsort label-1447
SELECT ALL - NULLIF ( COUNT ( * ), + 35 + - COUNT ( * ) * - - 36 * + 2 ) AS col2, - 25
----
-1
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1448
SELECT - CAST( 81 AS SIGNED ) * - + 62 - - + 35 DIV 79 AS col2
----
5022

skipif mysql # not compatible
query I rowsort label-1448
SELECT - CAST ( 81 AS INTEGER ) * - + 62 - - + 35 / 79 AS col2
----
5022

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + 12 * - MIN( ALL 79 ) * + ( - 96 )
----
91008

skipif mysql # not compatible
query I rowsort label-1450
SELECT + 12 * - MIN ( ALL 79 ) * + ( - 96 )
----
91008

query I rowsort
SELECT ALL - 82 * - - 92 - - 64 AS col2
----
-7480

query I rowsort
SELECT DISTINCT 90 * + - 3
----
-270

query I rowsort
SELECT ALL - 38 * - 17 * + - 22 AS col2
----
-14212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1454
SELECT DISTINCT + 97, - 43 * - - 81 + AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1454
SELECT DISTINCT + 97, - 43 * - - 81 + AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
97
NULL

query I rowsort
SELECT ALL 17 * + ( + 67 ) AS col2
----
1139

query I rowsort
SELECT ALL 31 + + 57 col0
----
88

query II rowsort
SELECT ALL + 74, 32 * - - 83 AS col2
----
74
2656

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT + 5 DIV - - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT + 5 / - - 67 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT - 80 col0, COUNT( + 12 ) + - MIN( DISTINCT + - 52 ) + - 97 + + 95 AS col1
----
-80
51

skipif mysql # not compatible
query II rowsort label-1460
SELECT - 80 col0, COUNT ( + 12 ) + - MIN ( DISTINCT + - 52 ) + - 97 + + 95 AS col1
----
-80
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1461
SELECT DISTINCT + 55 DIV - 12 col0, + 83 - SUM( + + 49 )
----
-4
34

skipif mysql # not compatible
query II rowsort label-1461
SELECT DISTINCT + 55 / - 12 col0, + 83 - SUM ( + + 49 )
----
-4
34

query I rowsort
SELECT + 28 + + 7 AS col0
----
35

query II rowsort
SELECT - - 38 AS col2, - 67 + 65 * - + 17 + + 24 AS col1
----
38
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT + + 17 + - + MIN( DISTINCT 52 ) + - 62 + 27 * + CASE - + 68 WHEN 50 * - + 64 + ( + 69 ) * + 82 * + 97 THEN NULL WHEN + 56 THEN 81 * - 34 + - 54 + - + 93 * + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT + + 17 + - + MIN ( DISTINCT 52 ) + - 62 + 27 * + CASE - + 68 WHEN 50 * - + 64 + ( + 69 ) * + 82 * + 97 THEN NULL WHEN + 56 THEN 81 * - 34 + - 54 + - + 93 * + 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT - + 11 * - COUNT( * ) + - NULLIF ( 20, + ( + 58 ) ) AS col1, 90 + + ( - MIN( ALL 98 ) ) * + 52
----
-9
-5006

skipif mysql # not compatible
query II rowsort label-1465
SELECT - + 11 * - COUNT ( * ) + - NULLIF ( 20, + ( + 58 ) ) AS col1, 90 + + ( - MIN ( ALL 98 ) ) * + 52
----
-9
-5006

query I rowsort
SELECT ALL - - 25 + - + 22 + - 62 AS col2
----
-59

query I rowsort
SELECT ALL - 36 + + 34
----
-2

query II rowsort
SELECT - + 25 - + 48 AS col2, 20 AS col1
----
-73
20

query I rowsort
SELECT DISTINCT + 69 * + + 49
----
3381

query I rowsort
SELECT ALL NULLIF ( + 37, + 48 * + 45 * 47 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT - CAST( 48 AS SIGNED ) + - 89
----
-137

skipif mysql # not compatible
query I rowsort label-1471
SELECT - CAST ( 48 AS INTEGER ) + - 89
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT - 75 - SUM( DISTINCT 50 ) * 1
----
-125

skipif mysql # not compatible
query I rowsort label-1472
SELECT - 75 - SUM ( DISTINCT 50 ) * 1
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT CASE 11 WHEN 6 THEN - + 39 + - 89 * - - 23 * COUNT( * ) * 31 ELSE - CAST( 90 AS SIGNED ) * - 46 * - + 17 END * - 4 + + 47 + + 17 + COUNT( * ) AS col1
----
281585

skipif mysql # not compatible
query I rowsort label-1473
SELECT CASE 11 WHEN 6 THEN - + 39 + - 89 * - - 23 * COUNT ( * ) * 31 ELSE - CAST ( 90 AS INTEGER ) * - 46 * - + 17 END * - 4 + + 47 + + 17 + COUNT ( * ) AS col1
----
281585

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT 15 DIV - 51 - 10 col0
----
-10

skipif mysql # not compatible
query I rowsort label-1474
SELECT 15 / - 51 - 10 col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1475
SELECT ALL + ( - + 8 ) * COUNT( * ) - - 29 + - 38 - 95 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + ( - + 8 ) * COUNT ( * ) - - 29 + - 38 - 95 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT - 39 * + + ( - 42 ) * - 9 - - COUNT( * ) DIV - 36
----
-14742

skipif mysql # not compatible
query I rowsort label-1477
SELECT - 39 * + + ( - 42 ) * - 9 - - COUNT ( * ) / - 36
----
-14742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT - 1 / + + 34 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT - 1 / + + 34 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1480
SELECT + MAX( - 89 ) AS col0, - CAST( - 32 AS SIGNED ) / 12 * CAST( NULL AS SIGNED ) * + + 70
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-1480
SELECT + MAX ( - 89 ) AS col0, - CAST ( - 32 AS INTEGER ) / 12 * CAST ( NULL AS INTEGER ) * + + 70
----
-89
NULL

query I rowsort
SELECT - 91 + + ( 18 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1482
SELECT - 3 DIV - - 31 * NULLIF ( + 69, + SUM( - 84 ) + - 20 + 36 + - CAST( NULL AS SIGNED ) * + ( - 58 ) * - NULLIF ( 17, - 12 ) ) DIV - - 21
----
0

skipif mysql # not compatible
query I rowsort label-1482
SELECT - 3 / - - 31 * NULLIF ( + 69, + SUM ( - 84 ) + - 20 + 36 + - CAST ( NULL AS INTEGER ) * + ( - 58 ) * - NULLIF ( 17, - 12 ) ) / - - 21
----
0

query II rowsort
SELECT + 9 * + 97 col1, 44 AS col0
----
873
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1484
SELECT ALL + CAST( NULL AS SIGNED ) * - 72 * - CASE - 82 WHEN - 86 THEN NULL WHEN - 99 THEN ( + - CAST( ( 42 ) AS SIGNED ) ) + 0 / 71 * 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + CAST ( NULL AS INTEGER ) * - 72 * - CASE - 82 WHEN - 86 THEN NULL WHEN - 99 THEN ( + - CAST ( ( 42 ) AS INTEGER ) ) + 0 / 71 * 89 END AS col0
----
NULL

query I rowsort
SELECT - 75 * 88 * 98 + - + 9 * - 83 col0
----
-646053

query I rowsort
SELECT NULLIF ( + ( 71 ), + 57 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + COALESCE ( - MAX( 41 ), + 11 )
----
-41

skipif mysql # not compatible
query I rowsort label-1487
SELECT + COALESCE ( - MAX ( 41 ), + 11 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT 44 * + - SUM( + + 47 ) + + + 42 + - + COUNT( * ) * + + 82 AS col0
----
-2108

skipif mysql # not compatible
query I rowsort label-1488
SELECT 44 * + - SUM ( + + 47 ) + + + 42 + - + COUNT ( * ) * + + 82 AS col0
----
-2108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT + 63 DIV + - 15 + + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 63 / + - 15 + + COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT - ( 0 ) * 27 + + + 31 + 63 * 55 AS col2
----
3496

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + CASE - - 18 WHEN 52 * - - 14 THEN - 85 / 0 * - - CAST( 55 AS SIGNED ) WHEN + 50 + 58 * + 47 * + - 26 * + 75 + - + 6 THEN NULL END * + + ( AVG ( DISTINCT + 54 ) ) + 99 * 51 - + 74 + - 11 * - + 92 * - - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + CASE - - 18 WHEN 52 * - - 14 THEN - 85 / 0 * - - CAST ( 55 AS INTEGER ) WHEN + 50 + 58 * + 47 * + - 26 * + 75 + - + 6 THEN NULL END * + + ( AVG ( DISTINCT + 54 ) ) + 99 * 51 - + 74 + - 11 * - + 92 * - - 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT + 32 + 72 + - COUNT( + - NULLIF ( + - 86, - 23 ) ) + CAST( NULL AS SIGNED ) * + ( + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT + 32 + 72 + - COUNT ( + - NULLIF ( + - 86, - 23 ) ) + CAST ( NULL AS INTEGER ) * + ( + 85 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 36 * 75 + - + 9
----
-2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT - - 95 + + + CASE MAX( ALL CASE + 84 WHEN + - 10 * - 5 THEN NULL ELSE 69 END ) WHEN - ( ( + CAST( + 28 AS SIGNED ) ) ) THEN - - AVG ( DISTINCT 56 ) * - 65 + - 67 + + 56 * + + 38 * - COALESCE ( 55, AVG ( - 70 ) ) + + 36 / 2 ELSE NULL END + + 54 * 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT - - 95 + + + CASE MAX ( ALL CASE + 84 WHEN + - 10 * - 5 THEN NULL ELSE 69 END ) WHEN - ( ( + CAST ( + 28 AS INTEGER ) ) ) THEN - - AVG ( DISTINCT 56 ) * - 65 + - 67 + + 56 * + + 38 * - COALESCE ( 55, AVG ( - 70 ) ) + + 36 / 2 ELSE NULL END + + 54 * 5 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT + + 20 * + - MIN( - CAST( - 36 AS SIGNED ) ) - - + 81 * 33
----
1953

skipif mysql # not compatible
query I rowsort label-1497
SELECT + + 20 * + - MIN ( - CAST ( - 36 AS INTEGER ) ) - - + 81 * 33
----
1953

query II rowsort
SELECT + + 15 + + NULLIF ( + 50, - 6 * - 29 ) + - 85 + 43 AS col2, - 34 AS col2
----
23
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT + - COALESCE ( - - 34, NULLIF ( 24, + 60 ) ) + + - CAST( - + 58 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-1499
SELECT + - COALESCE ( - - 34, NULLIF ( 24, + 60 ) ) + + - CAST ( - + 58 AS INTEGER )
----
24

query I rowsort
SELECT ALL + 76 * 23 AS col1
----
1748

query I rowsort
SELECT ALL + 65 + + - ( + 87 ) AS col1
----
-22

query I rowsort
SELECT - NULLIF ( ( + + 28 ), + 0 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL CASE + - 14 WHEN - + 25 * + 21 + COUNT( * ) + 65 * - - 48 THEN 98 * 4 END + + 75 / + + 87 + + 46 * + 25 * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL CASE + - 14 WHEN - + 25 * + 21 + COUNT ( * ) + 65 * - - 48 THEN 98 * 4 END + + 75 / + + 87 + + 46 * + 25 * + 45 AS col2
----
NULL

query I rowsort
SELECT + 61 + + + 89 AS col1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT ALL CAST( NULL AS SIGNED ) * + + 93 * + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL CAST ( NULL AS INTEGER ) * + + 93 * + + 50
----
NULL

query I rowsort
SELECT + 75 + + 28 AS col2
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1507
SELECT + - 94 * + CAST( - + 47 AS SIGNED )
----
4418

skipif mysql # not compatible
query I rowsort label-1507
SELECT + - 94 * + CAST ( - + 47 AS INTEGER )
----
4418

onlyif mysql # aggregate syntax: 
query II rowsort label-1508
SELECT ALL + MIN( + 44 ) AS col2, ( + 62 ) AS col0
----
44
62

skipif mysql # not compatible
query II rowsort label-1508
SELECT ALL + MIN ( + 44 ) AS col2, ( + 62 ) AS col0
----
44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT - 58 * - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1509
SELECT - 58 * - COUNT ( * ) AS col1
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT - 75 + MAX( DISTINCT 68 ) * 91
----
6113

skipif mysql # not compatible
query I rowsort label-1511
SELECT - 75 + MAX ( DISTINCT 68 ) * 91
----
6113

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + SUM( - - 93 ) * + + 36 + 47
----
3395

skipif mysql # not compatible
query I rowsort label-1512
SELECT + SUM ( - - 93 ) * + + 36 + 47
----
3395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT - CAST( 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-1513
SELECT - CAST ( 8 AS INTEGER )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT - 52 + 27 DIV + 28 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1514
SELECT - 52 + 27 / + 28 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL + COUNT( * ) - + + 14 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL + COUNT ( * ) - + + 14 AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT - CAST( 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-1516
SELECT - CAST ( 10 AS INTEGER )
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-1517
SELECT ALL 28 DIV - 61 * - 77 AS col1, - 52 AS col0
----
0
-52

skipif mysql # not compatible
query II rowsort label-1517
SELECT ALL 28 / - 61 * - 77 AS col1, - 52 AS col0
----
0
-52

query I rowsort
SELECT ALL + 20 * 2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT SUM( DISTINCT + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT SUM ( DISTINCT + + 79 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1520
SELECT + 80 - - 27 * - - COUNT( * ) AS col1, 93 - - + 91
----
107
184

skipif mysql # not compatible
query II rowsort label-1520
SELECT + 80 - - 27 * - - COUNT ( * ) AS col1, 93 - - + 91
----
107
184

query I rowsort
SELECT - 85 * 83 AS col0
----
-7055

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - 71 * + - ( - COUNT( * ) ) - - 77 * + SUM( DISTINCT ( + - 80 ) ) + - COUNT( * ) + - COUNT( * )
----
-6233

skipif mysql # not compatible
query I rowsort label-1523
SELECT - 71 * + - ( - COUNT ( * ) ) - - 77 * + SUM ( DISTINCT ( + - 80 ) ) + - COUNT ( * ) + - COUNT ( * )
----
-6233

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1524
SELECT CAST( NULL AS SIGNED ) col0, 69 + - 80 AS col0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-1524
SELECT CAST ( NULL AS INTEGER ) col0, 69 + - 80 AS col0
----
NULL
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1525
SELECT CAST( NULL AS SIGNED ) AS col0, - 69
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-1525
SELECT CAST ( NULL AS INTEGER ) AS col0, - 69
----
NULL
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT + COALESCE ( + 71, - 95 DIV + + 48 )
----
71

skipif mysql # not compatible
query I rowsort label-1526
SELECT + COALESCE ( + 71, - 95 / + + 48 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT - 50 DIV - 21 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1527
SELECT - 50 / - 21 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT ALL + 73 AS col2, 7 + - COUNT( * )
----
73
6

skipif mysql # not compatible
query II rowsort label-1528
SELECT ALL + 73 AS col2, 7 + - COUNT ( * )
----
73
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT ALL - COALESCE ( + - 49, - + 8 DIV + NULLIF ( - COALESCE ( 97, + 72, - ( 58 ) ), + - 54 + + 82 ), + + 35, + 43 DIV + 43 ) DIV - 84 - - 90 * - 39 * 39 + - COALESCE ( + 16, - 88 ) * - + 65 * - - 74 * + 65 - - + 59 * + - COALESCE ( 27, 8 )
----
4863917

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - COALESCE ( + - 49, - + 8 / + NULLIF ( - COALESCE ( 97, + 72, - ( 58 ) ), + - 54 + + 82 ), + + 35, + 43 / + 43 ) / - 84 - - 90 * - 39 * 39 + - COALESCE ( + 16, - 88 ) * - + 65 * - - 74 * + 65 - - + 59 * + - COALESCE ( 27, 8 )
----
4863917

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1530
SELECT ALL + 12 + - + 88 + 73 col0, COUNT( * ) DIV - 13 AS col1
----
-3
0

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL + 12 + - + 88 + 73 col0, COUNT ( * ) / - 13 AS col1
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT + CASE 27 WHEN 70 * + 61 / 86 * - - COUNT( * ) + + - 28 THEN - ( + MIN( + 99 ) ) + 72 ELSE - 95 END
----
-95

skipif mysql # not compatible
query I rowsort label-1531
SELECT + CASE 27 WHEN 70 * + 61 / 86 * - - COUNT ( * ) + + - 28 THEN - ( + MIN ( + 99 ) ) + 72 ELSE - 95 END
----
-95

query I rowsort
SELECT DISTINCT + + ( - - 50 ) + 20
----
70

query I rowsort
SELECT DISTINCT - - 8 * - 82
----
-656

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT ALL + - 46 + 28 + - 21 AS col0, + COUNT( * )
----
-39
1

skipif mysql # not compatible
query II rowsort label-1534
SELECT ALL + - 46 + 28 + - 21 AS col0, + COUNT ( * )
----
-39
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT + CAST( 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-1535
SELECT + CAST ( 95 AS INTEGER )
----
95

query II rowsort
SELECT ( 22 ) * + - 88, 14 - + 13 AS col0
----
-1936
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT 32 DIV + - 8
----
-4

skipif mysql # not compatible
query I rowsort label-1537
SELECT 32 / + - 8
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1538
SELECT - MIN( - 45 ) * + 93 AS col1, + 89 * - + SUM( DISTINCT + 50 ) - - COUNT( * )
----
4185
-4449

skipif mysql # not compatible
query II rowsort label-1538
SELECT - MIN ( - 45 ) * + 93 AS col1, + 89 * - + SUM ( DISTINCT + 50 ) - - COUNT ( * )
----
4185
-4449

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT DISTINCT - - 33 + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT - - 33 + COUNT ( * )
----
34

query I rowsort
SELECT 21 * + + 9
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT DISTINCT - + MIN( + 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT - + MIN ( + 54 ) AS col2
----
-54

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

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT - + COUNT ( * ) + + 49 AS col1
----
48

query I rowsort
SELECT DISTINCT - CASE + 61 WHEN - 59 THEN NULL ELSE 22 END
----
-22

query I rowsort
SELECT 1 * - 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT ALL - 3 - + CAST( NULL AS SIGNED ) * 40 * - + NULLIF ( - 36, + - 54 ) + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - 3 - + CAST ( NULL AS INTEGER ) * 40 * - + NULLIF ( - 36, + - 54 ) + - 13 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT + MAX( ALL + ( - - 34 ) ) + + 79 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1547
SELECT + MAX ( ALL + ( - - 34 ) ) + + 79 AS col2
----
113

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

query II rowsort
SELECT ALL + 37, + 93 AS col2
----
37
93

query I rowsort
SELECT 97 + - 76 - + + ( 89 ) + 97 * - NULLIF ( + 58, 46 )
----
-5694

query I rowsort
SELECT 3 * + + 40 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT NULLIF ( + 59, + - 23 + 1 ) + + - 56 * - 4 DIV + 1 + - 99
----
184

skipif mysql # not compatible
query I rowsort label-1552
SELECT NULLIF ( + 59, + - 23 + 1 ) + + - 56 * - 4 / + 1 + - 99
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT DISTINCT - COUNT( * ) * - + 15 AS col0, 65 + - COUNT( * ) - + 65
----
15
-1

skipif mysql # not compatible
query II rowsort label-1553
SELECT DISTINCT - COUNT ( * ) * - + 15 AS col0, 65 + - COUNT ( * ) - + 65
----
15
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1554
SELECT COUNT( * ) + + 62 - - CAST( - - 39 AS SIGNED ) AS col0, + NULLIF ( 68, ( - 89 ) ) AS col1
----
102
68

skipif mysql # not compatible
query II rowsort label-1554
SELECT COUNT ( * ) + + 62 - - CAST ( - - 39 AS INTEGER ) AS col0, + NULLIF ( 68, ( - 89 ) ) AS col1
----
102
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1555
SELECT CAST( NULL AS DECIMAL ) + 76 + + COUNT( * ) + + 9 * + 83 + + 5 + 48 * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT CAST ( NULL AS REAL ) + 76 + + COUNT ( * ) + + 9 * + 83 + + 5 + 48 * + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT COUNT( * ) + - + 85 * + 99
----
-8414

skipif mysql # not compatible
query I rowsort label-1556
SELECT COUNT ( * ) + - + 85 * + 99
----
-8414

query I rowsort
SELECT 22 + + 80 + - 96 * - 9 AS col2
----
966

query I rowsort
SELECT 28 * + + ( + - 53 ) * - 79 + - 94 + - - 78
----
117220

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL COUNT( * ) + - ( - + COALESCE ( - + CASE + 91 WHEN + 74 THEN NULL ELSE + 10 END, + 64 + MAX( + + 97 ) * - + 23 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL COUNT ( * ) + - ( - + COALESCE ( - + CASE + 91 WHEN + 74 THEN NULL ELSE + 10 END, + 64 + MAX ( + + 97 ) * - + 23 ) )
----
-9

query I rowsort
SELECT 53 * 99 AS col2
----
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + 54 / + 36 + - ( - CASE + 16 WHEN MIN( - 14 ) * - + 94 + 66 + - + 13 * + 83 * 7 THEN + 32 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT + 54 / + 36 + - ( - CASE + 16 WHEN MIN ( - 14 ) * - + 94 + 66 + - + 13 * + 83 * 7 THEN + 32 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT 54 + + 61 * + CAST( - 17 AS SIGNED )
----
-983

skipif mysql # not compatible
query I rowsort label-1562
SELECT 54 + + 61 * + CAST ( - 17 AS INTEGER )
----
-983

query I rowsort
SELECT 16 * - - 40 * 11
----
7040

query I rowsort
SELECT - 55 * + 84
----
-4620

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

skipif mysql # not compatible
query I rowsort label-1565
SELECT NULLIF ( - COUNT ( * ), 82 ) / + 10 + - 89 AS col2
----
-89

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

query I rowsort
SELECT ALL - + 47
----
-47

query I rowsort
SELECT 23 + + 56
----
79

query II rowsort
SELECT DISTINCT - ( - 14 ) - 14 + - - 34, ( + - 28 ) AS col0
----
34
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT + NULLIF ( 86, + + ( - 35 ) ) + - CAST( + 28 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-1570
SELECT + NULLIF ( 86, + + ( - 35 ) ) + - CAST ( + 28 AS INTEGER )
----
58

query I rowsort
SELECT + - CASE + + 55 WHEN - 70 THEN + 23 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT DISTINCT + 16 DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + 16 / - 53 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL + - 39 * + 98 + - MIN( - 12 )
----
-3810

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + - 39 * + 98 + - MIN ( - 12 )
----
-3810

query II rowsort
SELECT DISTINCT - - 76 - + ( - 23 ) + 18 AS col1, - 25
----
117
-25

query I rowsort
SELECT DISTINCT + 66 * 21 * - - 37
----
51282

query I rowsort
SELECT - 80 + - 97 + - 70 + - 38 * 96 AS col0
----
-3895

query I rowsort
SELECT ALL - + NULLIF ( + 13, + 8 + - 4 / 61 ) - + 16 AS col1
----
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT ALL + CAST( NULL AS SIGNED ) * + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL + CAST ( NULL AS INTEGER ) * + 54 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT 72 DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1580
SELECT 72 / 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT DISTINCT SUM( DISTINCT 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT SUM ( DISTINCT 99 ) AS col0
----
99

query II rowsort
SELECT ALL 29 AS col1, + 69 * + 87 AS col1
----
29
6003

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT DISTINCT SUM( - COALESCE ( + 28, - + 34 ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT SUM ( - COALESCE ( + 28, - + 34 ) ) AS col1
----
-28

query I rowsort
SELECT 3 - - 98 AS col1
----
101

query I rowsort
SELECT 38 * + 28
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT 22 * + SUM( ALL ( - 61 ) ) * - 15 + + 67 AS col1
----
20197

skipif mysql # not compatible
query I rowsort label-1588
SELECT 22 * + SUM ( ALL ( - 61 ) ) * - 15 + + 67 AS col1
----
20197

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL - 57 + - 12 + + + MAX( ALL - - 82 )
----
13

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - 57 + - 12 + + + MAX ( ALL - - 82 )
----
13

query I rowsort
SELECT DISTINCT 62 + 4
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + 85 * - + NULLIF ( 99, - COUNT( DISTINCT - 38 ) ) * - 31 AS col2
----
260865

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + 85 * - + NULLIF ( 99, - COUNT ( DISTINCT - 38 ) ) * - 31 AS col2
----
260865

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

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

query I rowsort
SELECT - 90 * + 92 * + 17 AS col1
----
-140760

query I rowsort
SELECT ALL + 38 * - 88 * ( + 28 ) + 13 * + 99
----
-92345

query I rowsort
SELECT + 56 - + 93
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + + 73 * - + 19 + 46 + + - 62 * - - COALESCE ( - 80, + + 91 ) * COUNT( * ) * MAX( ALL 3 ) * + 99 + - 75 + + NULLIF ( - 21, - 77 ) + - + 99 * - COUNT( * ) * 35 + - 6 + - + 76 * + 73 * - 22 AS col0
----
1597198

skipif mysql # not compatible
query I rowsort label-1596
SELECT + + 73 * - + 19 + 46 + + - 62 * - - COALESCE ( - 80, + + 91 ) * COUNT ( * ) * MAX ( ALL 3 ) * + 99 + - 75 + + NULLIF ( - 21, - 77 ) + - + 99 * - COUNT ( * ) * 35 + - 6 + - + 76 * + 73 * - 22 AS col0
----
1597198

query I rowsort
SELECT + 39 * + 15
----
585

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL + 39 DIV + 51 + - 87
----
-87

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + 39 / + 51 + - 87
----
-87

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

query I rowsort
SELECT ALL + 9 * - 99 * - - 4 - - 23 * - 40 * + + 87 col0
----
-83604

onlyif mysql # aggregate syntax: 
query II rowsort label-1601
SELECT + 43 col2, 82 + - - ( ( + 62 ) ) * - SUM( DISTINCT - 75 ) * + 35
----
43
162832

skipif mysql # not compatible
query II rowsort label-1601
SELECT + 43 col2, 82 + - - ( ( + 62 ) ) * - SUM ( DISTINCT - 75 ) * + 35
----
43
162832

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + + 83 * - COUNT( * ) + 20 + + + 79
----
16

skipif mysql # not compatible
query I rowsort label-1602
SELECT + + 83 * - COUNT ( * ) + 20 + + + 79
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT 9 * 78 + AVG ( DISTINCT + + 11 ) + - COUNT( * ) * + + 82 + + CAST( NULL AS SIGNED ) * - 99 * + 99 * + - MIN( - - 51 ) * - 95 - 83 / - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT 9 * 78 + AVG ( DISTINCT + + 11 ) + - COUNT ( * ) * + + 82 + + CAST ( NULL AS INTEGER ) * - 99 * + 99 * + - MIN ( - - 51 ) * - 95 - 83 / - 50 AS col0
----
NULL

query I rowsort
SELECT ALL 97 * + + 38
----
3686

query II rowsort
SELECT ALL 24 * - 46 - + - 44 col2, + 80
----
-1060
80

query I rowsort
SELECT DISTINCT COALESCE ( - + 81, - 95 ) * - 53 AS col1
----
4293

query I rowsort
SELECT + 85 + - 14 AS col1
----
71

query I rowsort
SELECT - ( - + 13 ) * 62
----
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1609
SELECT + COALESCE ( + 20, - + COUNT( 63 ) - + - COUNT( * ), 79 DIV - 52 - - - COALESCE ( 51, + 60, - 6 + - - 45 + - 56 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1609
SELECT + COALESCE ( + 20, - + COUNT ( 63 ) - + - COUNT ( * ), 79 / - 52 - - - COALESCE ( 51, + 60, - 6 + - - 45 + - 56 ) ) AS col1
----
20

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

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

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

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

query I rowsort
SELECT + + 40 - + + 32
----
8

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1615
SELECT ALL COUNT( * ) AS col2, - COALESCE ( 9, - - 26 + + 94, - 4 )
----
1
-9

skipif mysql # not compatible
query II rowsort label-1615
SELECT ALL COUNT ( * ) AS col2, - COALESCE ( 9, - - 26 + + 94, - 4 )
----
1
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL + CAST( - 8 AS SIGNED ) * - 74 * - COUNT( * )
----
-592

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + CAST ( - 8 AS INTEGER ) * - 74 * - COUNT ( * )
----
-592

query I rowsort
SELECT - 93 * + 76 * + - 85 AS col1
----
600780

query I rowsort
SELECT ALL + ( + 59 ) + - 83 AS col1
----
-24

query I rowsort
SELECT + 4 + + - ( ( + 61 ) )
----
-57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1621
SELECT ALL COALESCE ( - 49, - CASE + MAX( 50 ) WHEN + 25 THEN 50 DIV + ( + COUNT( * ) ) * CASE + 80 WHEN - 31 * + COUNT( * ) THEN + CAST( - 98 AS SIGNED ) WHEN + COALESCE ( + ( - - 74 ), - - 98 + 98 ) * + 22 + + 87 - 85 + 76 DIV + 44 * + CAST( - AVG ( DISTINCT + 19 ) AS SIGNED ) THEN NULL END WHEN MAX( - 30 ) * - CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN - 24 + + - ( 17 ) * ( 8 ) + + 12 THEN NULL END ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL COALESCE ( - 49, - CASE + MAX ( 50 ) WHEN + 25 THEN 50 / + ( + COUNT ( * ) ) * CASE + 80 WHEN - 31 * + COUNT ( * ) THEN + CAST ( - 98 AS INTEGER ) WHEN + COALESCE ( + ( - - 74 ), - - 98 + 98 ) * + 22 + + 87 - 85 + 76 / + 44 * + CAST ( - AVG ( DISTINCT + 19 ) AS INTEGER ) THEN NULL END WHEN MAX ( - 30 ) * - CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN - 24 + + - ( 17 ) * ( 8 ) + + 12 THEN NULL END ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL + CASE + 91 WHEN 18 THEN 86 + ( - 94 ) + - 3 WHEN - 52 + + 67 THEN + 30 WHEN COUNT( * ) THEN - 33 END + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + CASE + 91 WHEN 18 THEN 86 + ( - 94 ) + - 3 WHEN - 52 + + 67 THEN + 30 WHEN COUNT ( * ) THEN - 33 END + - 76
----
NULL

query II rowsort
SELECT 14 AS col0, - 33 AS col0
----
14
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT - 33 + 24 + + 57 * + + ( + COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1624
SELECT - 33 + 24 + + 57 * + + ( + COUNT ( * ) ) AS col2
----
48

query I rowsort
SELECT ALL - 25 + - 70
----
-95

query II rowsort
SELECT ALL + 89 + + - 69 AS col2, - 40 AS col0
----
20
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT 22 AS col1, - SUM( 80 ) AS col2
----
22
-80

skipif mysql # not compatible
query II rowsort label-1627
SELECT 22 AS col1, - SUM ( 80 ) AS col2
----
22
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL CASE - 97 WHEN + COUNT( * ) / + ( + 96 ) THEN NULL WHEN + - 33 THEN + 90 + - COUNT( * ) ELSE - 23 END
----
-23

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL CASE - 97 WHEN + COUNT ( * ) / + ( + 96 ) THEN NULL WHEN + - 33 THEN + 90 + - COUNT ( * ) ELSE - 23 END
----
-23

query I rowsort
SELECT - 27 + + ( - + CASE 96 WHEN - 65 THEN NULL WHEN - 26 THEN 52 END ) + + + NULLIF ( + ( 40 ), - 65 * - 5 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1630
SELECT ALL COALESCE ( COALESCE ( + 68, 36, - - CAST( NULL AS SIGNED ) ), + SUM( ALL + 96 ) DIV 47, - 70 * + 38 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL COALESCE ( COALESCE ( + 68, 36, - - CAST ( NULL AS INTEGER ) ), + SUM ( ALL + 96 ) / 47, - 70 * + 38 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT - COALESCE ( 20, 16, + COUNT( * ), 30 + - - 11, + - 59 ) + + 6 * - - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT - COALESCE ( 20, 16, + COUNT ( * ), 30 + - - 11, + - 59 ) + + 6 * - - COUNT ( * )
----
-14

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

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

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

query I rowsort
SELECT ALL - 26 + 95 AS col2
----
69

query II rowsort
SELECT - 16, 51 AS col1
----
-16
51

query II rowsort
SELECT 51, 71 col1
----
51
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1637
SELECT ALL CAST( + NULLIF ( - - COALESCE ( - 77, + 53 ), - 35 ) AS SIGNED ) AS col1, - 62 AS col1
----
-77
-62

skipif mysql # not compatible
query II rowsort label-1637
SELECT ALL CAST ( + NULLIF ( - - COALESCE ( - 77, + 53 ), - 35 ) AS INTEGER ) AS col1, - 62 AS col1
----
-77
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1638
SELECT + - 73 + - - MIN( - 37 ) * + + 11 * - MIN( ALL + 2 ) col1, + 60
----
741
60

skipif mysql # not compatible
query II rowsort label-1638
SELECT + - 73 + - - MIN ( - 37 ) * + + 11 * - MIN ( ALL + 2 ) col1, + 60
----
741
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT + COALESCE ( + 70, + 86 * + + COUNT( * ) + - COUNT( * ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1639
SELECT + COALESCE ( + 70, + 86 * + + COUNT ( * ) + - COUNT ( * ) ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1640
SELECT ALL - ( + 2 ) DIV + 3 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL - ( + 2 ) / + 3 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL + MIN( DISTINCT + + 44 ) * 35
----
1540

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL + MIN ( DISTINCT + + 44 ) * 35
----
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT ALL 76 DIV + 46 - + 92 * - 99 - + + 88 AS col0
----
9021

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL 76 / + 46 - + 92 * - 99 - + + 88 AS col0
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT + - MIN( + + 13 ) * - 4 * - 49 + + 88 + 46 AS col0
----
-2414

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT + - MIN ( + + 13 ) * - 4 * - 49 + + 88 + 46 AS col0
----
-2414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1644
SELECT DISTINCT + + CASE - + CAST( NULL AS SIGNED ) WHEN + ( - - 14 ) + - + 92 - 61 THEN - 71 * 74 + - 5 WHEN - 83 + + 50 THEN + - 61 END, CAST( NULL AS SIGNED ) + MIN( + 63 ) - + - COUNT( * ) * + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) / - 95 + + + 10 - + NULLIF ( + COUNT( * ), - - 59 * COUNT( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1644
SELECT DISTINCT + + CASE - + CAST ( NULL AS INTEGER ) WHEN + ( - - 14 ) + - + 92 - 61 THEN - 71 * 74 + - 5 WHEN - 83 + + 50 THEN + - 61 END, CAST ( NULL AS INTEGER ) + MIN ( + 63 ) - + - COUNT ( * ) * + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) / - 95 + + + 10 - + NULLIF ( + COUNT ( * ), - - 59 * COUNT ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL
NULL

query I rowsort
SELECT + 12 * + CASE 44 WHEN - 41 THEN + + 87 - - + 52 END
----
NULL

query II rowsort
SELECT ALL + - 86 col2, 50 AS col2
----
-86
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT + - 55 AS col0, + COUNT( + 22 ) AS col0
----
-55
1

skipif mysql # not compatible
query II rowsort label-1647
SELECT + - 55 AS col0, + COUNT ( + 22 ) AS col0
----
-55
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT CAST( - CASE - 70 WHEN + 64 THEN 67 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT CAST ( - CASE - 70 WHEN + 64 THEN 67 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1649
SELECT + + 2 col2, COUNT( * ) * 83 + - - COUNT( * ) AS col0
----
2
84

skipif mysql # not compatible
query II rowsort label-1649
SELECT + + 2 col2, COUNT ( * ) * 83 + - - COUNT ( * ) AS col0
----
2
84

query II rowsort
SELECT ALL + 66, 56 AS col1
----
66
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1652
SELECT + COALESCE ( + 7, + - NULLIF ( 25, + 78 - - 84 * MAX( DISTINCT 31 ) ) / + 96 * MIN( ALL - + 13 ) ) + - + CAST( - + NULLIF ( - CASE + 70 WHEN + 87 * 75 THEN NULL WHEN + 55 * + 31 + + - 72 THEN COUNT( * ) + - ( 6 ) END, - 2 ) AS SIGNED ) AS col1, - 25
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1652
SELECT + COALESCE ( + 7, + - NULLIF ( 25, + 78 - - 84 * MAX ( DISTINCT 31 ) ) / + 96 * MIN ( ALL - + 13 ) ) + - + CAST ( - + NULLIF ( - CASE + 70 WHEN + 87 * 75 THEN NULL WHEN + 55 * + 31 + + - 72 THEN COUNT ( * ) + - ( 6 ) END, - 2 ) AS INTEGER ) AS col1, - 25
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT DISTINCT - 83 * - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - 83 * - COUNT ( * ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-1654
SELECT + 87 DIV + 19 col0, - 33
----
4
-33

skipif mysql # not compatible
query II rowsort label-1654
SELECT + 87 / + 19 col0, - 33
----
4
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1655
SELECT + MAX( ALL 72 ) * - 37, 52 DIV - + 40 + - MAX( DISTINCT 14 ) + - + COUNT( * ) * - - 67 AS col2
----
-2664
-82

skipif mysql # not compatible
query II rowsort label-1655
SELECT + MAX ( ALL 72 ) * - 37, 52 / - + 40 + - MAX ( DISTINCT 14 ) + - + COUNT ( * ) * - - 67 AS col2
----
-2664
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1656
SELECT CASE + - 90 WHEN - 47 THEN NULL WHEN CASE - 1 WHEN - COUNT( * ) THEN NULL WHEN 26 THEN + - ( - - 62 ) DIV + 55 + - 80 END * + 28 THEN 88 ELSE + 97 DIV + 92 END AS col1, - MAX( ALL + + 91 ) + + - CAST( NULL AS SIGNED ) + - - 71 DIV - - 86
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1656
SELECT CASE + - 90 WHEN - 47 THEN NULL WHEN CASE - 1 WHEN - COUNT ( * ) THEN NULL WHEN 26 THEN + - ( - - 62 ) / + 55 + - 80 END * + 28 THEN 88 ELSE + 97 / + 92 END AS col1, - MAX ( ALL + + 91 ) + + - CAST ( NULL AS INTEGER ) + - - 71 / - - 86
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - MAX( DISTINCT + 33 ) + COALESCE ( - + 10, + + 90 - SUM( ALL 66 ) * + 88 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1657
SELECT - MAX ( DISTINCT + 33 ) + COALESCE ( - + 10, + + 90 - SUM ( ALL 66 ) * + 88 ) AS col1
----
-43

query I rowsort
SELECT DISTINCT ( - 7 ) * + 45 * 69 * + 48
----
-1043280

query I rowsort
SELECT ALL + 2 * - - NULLIF ( 95, - - 4 ) * ( 78 ) + - NULLIF ( - 41, + 11 )
----
14861

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT - 19 * - - 80 + + + SUM( ( 30 ) ) + COUNT( * ) AS col1
----
-1489

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - 19 * - - 80 + + + SUM ( ( 30 ) ) + COUNT ( * ) AS col1
----
-1489

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1662
SELECT ALL + 57 + + 92 - ( COUNT( * ) ) DIV + 62 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + 57 + + 92 - ( COUNT ( * ) ) / + 62 AS col2
----
149

query I rowsort
SELECT DISTINCT ( 17 ) * - ( - 37 ) AS col2
----
629

query I rowsort
SELECT ALL 2 col0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-1665
SELECT 47 DIV + - 85, - 46 + - 94 AS col1
----
0
-140

skipif mysql # not compatible
query II rowsort label-1665
SELECT 47 / + - 85, - 46 + - 94 AS col1
----
0
-140

query I rowsort
SELECT 82 * + - 53 AS col1
----
-4346

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT DISTINCT - 13 - + + COUNT( * ) + + + CASE + 81 WHEN ( + 98 ) THEN + COALESCE ( - 5, 26 + - 18 + COUNT( * ) + 41 * + MAX( 72 ) - + 64 + - 6 ) END / - MAX( ALL - 65 ) * - 36 - + 64 + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT - 13 - + + COUNT ( * ) + + + CASE + 81 WHEN ( + 98 ) THEN + COALESCE ( - 5, 26 + - 18 + COUNT ( * ) + 41 * + MAX ( 72 ) - + 64 + - 6 ) END / - MAX ( ALL - 65 ) * - 36 - + 64 + 73
----
NULL

query I rowsort
SELECT ALL + + 45 * - 96 AS col2
----
-4320

query I rowsort
SELECT - 74 - - ( - - 35 ) - - + 3
----
-36

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

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

query II rowsort
SELECT ( - 67 ) * + 28 AS col1, 7 col2
----
-1876
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1672
SELECT + 40 * - + 16 + + CAST( NULL AS SIGNED ) + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 40 * - + 16 + + CAST ( NULL AS INTEGER ) + + 46 AS col1
----
NULL

query I rowsort
SELECT + 10 * - + ( + + 66 ) - 78 * + 52 - - + 18
----
-4698

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT ALL - COALESCE ( - - 73, - 13 DIV + - 45 - - 54, - ( - + 10 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - COALESCE ( - - 73, - 13 / + - 45 - - 54, - ( - + 10 ) )
----
-73

query I rowsort
SELECT + 48 * - 48 + - 7 + + + 41 + - NULLIF ( - - 14, 7 + - 73 + + 26 )
----
-2284

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT ALL COUNT( * ) * 3, - 58 AS col1
----
3
-58

skipif mysql # not compatible
query II rowsort label-1678
SELECT ALL COUNT ( * ) * 3, - 58 AS col1
----
3
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT DISTINCT - 87 * + + COUNT( * ) AS col1, 85 AS col1
----
-87
85

skipif mysql # not compatible
query II rowsort label-1679
SELECT DISTINCT - 87 * + + COUNT ( * ) AS col1, 85 AS col1
----
-87
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT - SUM( DISTINCT + 44 ) + - 58 * + 69
----
-4046

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - SUM ( DISTINCT + 44 ) + - 58 * + 69
----
-4046

onlyif mysql # aggregate syntax: 
query III rowsort label-1681
SELECT DISTINCT - ( 29 ) AS col0, + COUNT( * ) col1, - 52 * 89 - - - NULLIF ( ( - - 95 ), - CASE - - 16 WHEN - - 58 THEN - 95 + - 96 END ) - - + 2
----
-29
1
-4721

skipif mysql # not compatible
query III rowsort label-1681
SELECT DISTINCT - ( 29 ) AS col0, + COUNT ( * ) col1, - 52 * 89 - - - NULLIF ( ( - - 95 ), - CASE - - 16 WHEN - - 58 THEN - 95 + - 96 END ) - - + 2
----
-29
1
-4721

query I rowsort
SELECT ALL + 54 + 50 - - 42 + + 97 AS col0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ( 42 ) * + CASE + COUNT( * ) WHEN 21 / + COALESCE ( - CASE + COUNT( ALL + ( - + 31 ) ) WHEN 20 THEN - AVG ( - 29 ) * + + ( 72 ) * COALESCE ( - 70, 99 * - 93 + + + 82 ) ELSE NULL END, + - 71 ) - + 54 THEN NULL ELSE + 75 END AS col1
----
3150

skipif mysql # not compatible
query I rowsort label-1683
SELECT ( 42 ) * + CASE + COUNT ( * ) WHEN 21 / + COALESCE ( - CASE + COUNT ( ALL + ( - + 31 ) ) WHEN 20 THEN - AVG ( - 29 ) * + + ( 72 ) * COALESCE ( - 70, 99 * - 93 + + + 82 ) ELSE NULL END, + - 71 ) - + 54 THEN NULL ELSE + 75 END AS col1
----
3150

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

skipif mysql # not compatible
query I rowsort label-1684
SELECT - COUNT ( * ) * - - CAST ( NULL AS REAL ) - 42 AS col2
----
NULL

query II rowsort
SELECT + 24, + 67 * - - 25 AS col1
----
24
1675

query I rowsort
SELECT 12 * - 55 * - 87 AS col0
----
57420

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 48 * + + ( + + 82 ) * - COUNT( * ) AS col1
----
-3936

skipif mysql # not compatible
query I rowsort label-1687
SELECT 48 * + + ( + + 82 ) * - COUNT ( * ) AS col1
----
-3936

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 76 - - SUM( - 77 ) * + 60 / + ( + 32 ) * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 76 - - SUM ( - 77 ) * + 60 / + ( + 32 ) * - 45 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL 45 + MIN( DISTINCT - ( + - 22 ) )
----
67

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 45 + MIN ( DISTINCT - ( + - 22 ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT - MIN( DISTINCT - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - MIN ( DISTINCT - 83 ) AS col1
----
83

query I rowsort
SELECT DISTINCT 63 * 56
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT MIN( - 38 ) + MAX( + - 90 )
----
-128

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT MIN ( - 38 ) + MAX ( + - 90 )
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL NULLIF ( + 96, 9 * SUM( + + 28 ) ) - - - COALESCE ( - + COUNT( * ), - 35, 77, + 48 * + + ( 52 ) * - - 89 * 22 * - COUNT( * ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL NULLIF ( + 96, 9 * SUM ( + + 28 ) ) - - - COALESCE ( - + COUNT ( * ), - 35, 77, + 48 * + + ( 52 ) * - - 89 * 22 * - COUNT ( * ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT 37 + - - 37 - - COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1696
SELECT 37 + - - 37 - - COUNT ( * ) AS col0
----
75

query I rowsort
SELECT DISTINCT 3 * - 95 AS col2
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1698
SELECT ALL 57, + CAST( - 49 AS SIGNED ) AS col2
----
57
-49

skipif mysql # not compatible
query II rowsort label-1698
SELECT ALL 57, + CAST ( - 49 AS INTEGER ) AS col2
----
57
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT 56 + - 90 + - + 34 * - + 75 * - 42 * - 8 - + + 91 + - COUNT( * ) * - 94 * + COUNT( DISTINCT + - 77 ) AS col0
----
856769

skipif mysql # not compatible
query I rowsort label-1699
SELECT 56 + - 90 + - + 34 * - + 75 * - 42 * - 8 - + + 91 + - COUNT ( * ) * - 94 * + COUNT ( DISTINCT + - 77 ) AS col0
----
856769

query I rowsort
SELECT 63 * + 28 AS col2
----
1764

query I rowsort
SELECT DISTINCT 67 * + + 22
----
1474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT + 58 + + 97 * + CASE - + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * - 46 THEN 38 ELSE NULL END / 90 + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 58 + + 97 * + CASE - + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * - 46 THEN 38 ELSE NULL END / 90 + - 49 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 6 AS col1, - 78 * 61 AS col0
----
6
-4758

query II rowsort
SELECT - 45 col2, 90 * - 24 AS col2
----
-45
-2160

query I rowsort
SELECT COALESCE ( + 82, ( - 0 ), - 60 + - 48 ) + + 39
----
121

query I rowsort
SELECT 36 * - - 21 + - - 2
----
758

query I rowsort
SELECT ALL 64 * + - 64 - - 5
----
-4091

query I rowsort
SELECT 85 * + - 76 AS col1
----
-6460

query I rowsort
SELECT 28 + 94
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL - ( + ( + + CASE + 90 WHEN + 98 - + 33 * + 28 * + + ( + 14 ) * 80 + - 93 THEN - 42 WHEN + 94 * 36 + + - 56 THEN + 56 * - 85 * - - 1 * + 35 * + CAST( 3 AS SIGNED ) END ) ) * - ( - 6 ) + - AVG ( ALL + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - ( + ( + + CASE + 90 WHEN + 98 - + 33 * + 28 * + + ( + 14 ) * 80 + - 93 THEN - 42 WHEN + 94 * 36 + + - 56 THEN + 56 * - 85 * - - 1 * + 35 * + CAST ( 3 AS INTEGER ) END ) ) * - ( - 6 ) + - AVG ( ALL + 86 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT 16 DIV - - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT 16 / - - 31 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + 56 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + 56 ) col2
----
NULL

query I rowsort
SELECT DISTINCT 75 * - + 0 * + - 53 + - - COALESCE ( + 15, - ( 90 ) - - - 32 ) AS col0
----
15

query I rowsort
SELECT ALL - 80 * + 61 + + + ( 84 ) * - - 2 AS col2
----
-4712

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

skipif mysql # not compatible
query I rowsort label-1715
SELECT + 97 / + 51
----
1

query I rowsort
SELECT DISTINCT - + ( + 10 ) * + - 12 + + - 29
----
91

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

query I rowsort
SELECT 85 * 55 AS col1
----
4675

onlyif mysql # aggregate syntax: 
query III rowsort label-1719
SELECT MIN( + 35 ) * - 58 AS col2, - 3 + ( + + 91 ) col1, - - 45 + 40 + - 92
----
-2030
88
-7

skipif mysql # not compatible
query III rowsort label-1719
SELECT MIN ( + 35 ) * - 58 AS col2, - 3 + ( + + 91 ) col1, - - 45 + 40 + - 92
----
-2030
88
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT - 4 * - ( + + 31 ) * 28 + - - 29 + COUNT( * ) * + - 63 * COUNT( * ) AS col2
----
3438

skipif mysql # not compatible
query I rowsort label-1720
SELECT - 4 * - ( + + 31 ) * 28 + - - 29 + COUNT ( * ) * + - 63 * COUNT ( * ) AS col2
----
3438

query I rowsort
SELECT 29 * 86 + + 61
----
2555

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1722
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS DECIMAL ) + COUNT( * ) * - 6 AS col0, SUM( + 25 ) + 64 + + 93 col2
----
NULL
182

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS REAL ) + COUNT ( * ) * - 6 AS col0, SUM ( + 25 ) + 64 + + 93 col2
----
NULL
182

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1724
SELECT ALL - 39 * 95 * - 21 * + COUNT( * ) col0, - 77 AS col0
----
77805
-77

skipif mysql # not compatible
query II rowsort label-1724
SELECT ALL - 39 * 95 * - 21 * + COUNT ( * ) col0, - 77 AS col0
----
77805
-77

query I rowsort
SELECT ALL 22 * - 29 col0
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL - CASE 69 WHEN 65 * + 50 - - - 34 THEN + 83 + + - 13 ELSE COUNT( * ) END * - + 74 - 84 + - 72 + 3 * - + COUNT( * ) * + 49 AS col1
----
-229

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - CASE 69 WHEN 65 * + 50 - - - 34 THEN + 83 + + - 13 ELSE COUNT ( * ) END * - + 74 - 84 + - 72 + 3 * - + COUNT ( * ) * + 49 AS col1
----
-229

query I rowsort
SELECT + 91 * - 50 + ( + 72 ) + ( + 60 )
----
-4418

query I rowsort
SELECT ALL - ( 97 ) * + - 17
----
1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1729
SELECT - 92 * - ( + COALESCE ( COUNT( * ), 43 ) ) col1, + COUNT( * ) * - + 29 + - ( + 36 ) * - - NULLIF ( + 7, 72 + CASE - - 79 WHEN 34 THEN NULL WHEN - CASE 48 WHEN + SUM( ALL - 40 ) + ( AVG ( ALL + 81 ) ) + - - 18 * + - 46 + + 86 THEN CAST( + + 60 AS SIGNED ) + 76 * 95 + 3 - + 82 + + - 24 / - + 64 * - ( + 94 ) END THEN NULL WHEN 20 * + 67 - + 62 * 81 THEN + 29 ELSE 90 - 96 END + 57 ) AS col1
----
92
-281

skipif mysql # not compatible
query II rowsort label-1729
SELECT - 92 * - ( + COALESCE ( COUNT ( * ), 43 ) ) col1, + COUNT ( * ) * - + 29 + - ( + 36 ) * - - NULLIF ( + 7, 72 + CASE - - 79 WHEN 34 THEN NULL WHEN - CASE 48 WHEN + SUM ( ALL - 40 ) + ( AVG ( ALL + 81 ) ) + - - 18 * + - 46 + + 86 THEN CAST ( + + 60 AS INTEGER ) + 76 * 95 + 3 - + 82 + + - 24 / - + 64 * - ( + 94 ) END THEN NULL WHEN 20 * + 67 - + 62 * 81 THEN + 29 ELSE 90 - 96 END + 57 ) AS col1
----
92
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + MIN( - 36 ) * - 90 AS col0
----
3240

skipif mysql # not compatible
query I rowsort label-1730
SELECT + MIN ( - 36 ) * - 90 AS col0
----
3240

query I rowsort
SELECT DISTINCT + NULLIF ( - 92, 55 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL 56 - + 64 * - + 79 - - - COUNT( * ) * 49 col1
----
5063

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL 56 - + 64 * - + 79 - - - COUNT ( * ) * 49 col1
----
5063

query I rowsort
SELECT ALL NULLIF ( + 99, + 63 + + + 26 * + 60 ) col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1734
SELECT DISTINCT 91 / - + CAST( NULL AS SIGNED ), 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-1734
SELECT DISTINCT 91 / - + CAST ( NULL AS INTEGER ), 70 AS col2
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1735
SELECT ALL COUNT( * ) * + - ( + - CASE - COUNT( * ) WHEN 51 + 41 THEN + 59 * + + CASE - 40 WHEN + ( 72 ) + - 98 THEN - COUNT( * ) + ( + 66 ) ELSE + 59 END * + 87 + - + ( - - 59 ) + + - 17 + + NULLIF ( - 5, - + 30 ) WHEN + 22 THEN + + 78 ELSE + 12 + 78 * 19 + + + COALESCE ( + NULLIF ( + MAX( DISTINCT 78 ), 89 ), 65 * 85 * 77 + - COUNT( * ) + + + 22 * - 82 * 96, 17 * + CAST( + 81 AS SIGNED ) ) DIV 25 END )
----
1497

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL COUNT ( * ) * + - ( + - CASE - COUNT ( * ) WHEN 51 + 41 THEN + 59 * + + CASE - 40 WHEN + ( 72 ) + - 98 THEN - COUNT ( * ) + ( + 66 ) ELSE + 59 END * + 87 + - + ( - - 59 ) + + - 17 + + NULLIF ( - 5, - + 30 ) WHEN + 22 THEN + + 78 ELSE + 12 + 78 * 19 + + + COALESCE ( + NULLIF ( + MAX ( DISTINCT 78 ), 89 ), 65 * 85 * 77 + - COUNT ( * ) + + + 22 * - 82 * 96, 17 * + CAST ( + 81 AS INTEGER ) ) / 25 END )
----
1497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL + 95 / - 71 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + 95 / - 71 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1737
SELECT - COALESCE ( - ( + 59 ), - NULLIF ( - + COUNT( * ), - - CAST( NULL AS DECIMAL ) ) + + 5 * 94, - + 94, + 15 + 64 - + 68 * COUNT( * ) * - CAST( NULL AS SIGNED ) ) AS col0, 30 + + - CAST( 98 AS SIGNED ) * + + ( + 26 ) + - - 59 * + - 85
----
59
-7533

skipif mysql # not compatible
query II rowsort label-1737
SELECT - COALESCE ( - ( + 59 ), - NULLIF ( - + COUNT ( * ), - - CAST ( NULL AS REAL ) ) + + 5 * 94, - + 94, + 15 + 64 - + 68 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) AS col0, 30 + + - CAST ( 98 AS INTEGER ) * + + ( + 26 ) + - - 59 * + - 85
----
59
-7533

query I rowsort
SELECT DISTINCT + 61 * + NULLIF ( 4, - 11 )
----
244

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT - - 56 DIV - - 89 + 8
----
8

skipif mysql # not compatible
query I rowsort label-1739
SELECT - - 56 / - - 89 + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - 9 - 85 + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-1740
SELECT - 9 - 85 + COUNT ( * )
----
-93

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

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

query I rowsort
SELECT + - 48 * - 93
----
4464

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1744
SELECT ALL + 68 + - CAST( NULL AS SIGNED ) - - 61 * COALESCE ( - 52, + + 3, - 28 ) * + - ( + 73 ) / - COUNT( * ) + + + 41 / + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + 68 + - CAST ( NULL AS INTEGER ) - - 61 * COALESCE ( - 52, + + 3, - 28 ) * + - ( + 73 ) / - COUNT ( * ) + + + 41 / + + 27
----
NULL

query I rowsort
SELECT ALL + - 90 + 24 AS col0
----
-66

query I rowsort
SELECT + 81 + + + 52
----
133

query II rowsort
SELECT + - 49 * - 15, 6 * - 67 + + 37 + - - 6 * + - 87 AS col1
----
735
-887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1748
SELECT ALL 55 + - CAST( + 7 AS SIGNED ) - COUNT( * ) * - - 92 + COUNT( * ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL 55 + - CAST ( + 7 AS INTEGER ) - COUNT ( * ) * - - 92 + COUNT ( * ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT CASE - COUNT( * ) WHEN - 16 THEN - 10 WHEN + - ( 50 ) + - 61 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT CASE - COUNT ( * ) WHEN - 16 THEN - 10 WHEN + - ( 50 ) + - 61 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1750
SELECT - NULLIF ( - 73, 81 + + 24 + - 91 * + 76 * 44 * + + MAX( + + 56 ) + + 47 * + 50 * + - COUNT( * ) / - 27 ) * + - 0 + 80 - 67 * - CASE WHEN NOT 40 IS NOT NULL THEN NULL WHEN NOT 7 IS NOT NULL THEN NULL WHEN NULL IS NULL THEN + 14 WHEN - 46 - - 7 / + 95 IS NULL THEN + 36 * - + ( - - CASE + + COUNT( - 98 ) WHEN - 8 + - 51 / - 78 * + 7 THEN - 74 END ) * 6 - - COALESCE ( ( 52 ), + 94 ) + + MIN( ALL + CAST( NULL AS SIGNED ) ) END * 48 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT - NULLIF ( - 73, 81 + + 24 + - 91 * + 76 * 44 * + + MAX ( + + 56 ) + + 47 * + 50 * + - COUNT ( * ) / - 27 ) * + - 0 + 80 - 67 * - CASE WHEN NOT 40 IS NOT NULL THEN NULL WHEN NOT 7 IS NOT NULL THEN NULL WHEN NULL IS NULL THEN + 14 WHEN - 46 - - 7 / + 95 IS NULL THEN + 36 * - + ( - - CASE + + COUNT ( - 98 ) WHEN - 8 + - 51 / - 78 * + 7 THEN - 74 END ) * 6 - - COALESCE ( ( 52 ), + 94 ) + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) END * 48 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT DISTINCT MAX( - COALESCE ( + 2, + 48 ) ) * + + 65 * - - 94 - - + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT MAX ( - COALESCE ( + 2, + 48 ) ) * + + 65 * - - 94 - - + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT DISTINCT + 80 DIV + + 3
----
26

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT + 80 / + + 3
----
26

query I rowsort
SELECT ALL + CASE 13 WHEN - 1 THEN + + 46 ELSE NULL END
----
NULL

query I rowsort
SELECT + 74 * - 5 * 66
----
-24420

query I rowsort
SELECT - ( + 4 ) * - - 29 AS col1
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1760
SELECT ALL + COALESCE ( + 68, COALESCE ( - - 28, + 76 ) DIV CASE - + 28 WHEN 32 + - 13 + - 71 DIV 34 THEN + MIN( + 49 ) + + ( + 28 ) - + 75 END, + 63 * - - 28 + - 19 )
----
68

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + COALESCE ( + 68, COALESCE ( - - 28, + 76 ) / CASE - + 28 WHEN 32 + - 13 + - 71 / 34 THEN + MIN ( + 49 ) + + ( + 28 ) - + 75 END, + 63 * - - 28 + - 19 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT - ( - + CAST( MAX( DISTINCT - 24 ) AS SIGNED ) ) * 10 + + 18 * + COUNT( * ) / ( - - 3 ) * - AVG ( ALL 89 ) + - COALESCE ( + 92, + + NULLIF ( - 0, - MAX( + 41 ) + COUNT( ALL 47 ) * + 93 ) + - - 78, + - 76 ) - SUM( DISTINCT - + 19 ) + COALESCE ( - - 67, + ( + MAX( ALL - 23 ) ) * COUNT( * ) * + - SUM( + 24 ) ) * + 59 * - 90 * + 75 * 28 - + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT - ( - + CAST ( MAX ( DISTINCT - 24 ) AS INTEGER ) ) * 10 + + 18 * + COUNT ( * ) / ( - - 3 ) * - AVG ( ALL 89 ) + - COALESCE ( + 92, + + NULLIF ( - 0, - MAX ( + 41 ) + COUNT ( ALL 47 ) * + 93 ) + - - 78, + - 76 ) - SUM ( DISTINCT - + 19 ) + COALESCE ( - - 67, + ( + MAX ( ALL - 23 ) ) * COUNT ( * ) * + - SUM ( + 24 ) ) * + 59 * - 90 * + 75 * 28 - + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 51 * - 58 * - 98
----
289884

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

query I rowsort
SELECT - 68 + + + 69 * + NULLIF ( - 50, 76 ) * + 88 AS col2
----
-303668

onlyif mysql # aggregate syntax: 
query II rowsort label-1765
SELECT COALESCE ( 11, + 59 * - 12 + - 47 - - 21 ), SUM( ALL 30 ) AS col2
----
11
30

skipif mysql # not compatible
query II rowsort label-1765
SELECT COALESCE ( 11, + 59 * - 12 + - 47 - - 21 ), SUM ( ALL 30 ) AS col2
----
11
30

query I rowsort
SELECT NULLIF ( 12, - 29 + + 42 * 75 - + 67 + 56 )
----
12

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

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + NULLIF ( COUNT ( * ), + + 29 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - COUNT( * ) - 58 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1769
SELECT - COUNT ( * ) - 58 AS col2
----
-59

query I rowsort
SELECT DISTINCT + 91 * + 21 * - 17 AS col0
----
-32487

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

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

query I rowsort
SELECT ALL + 9 * - 68 AS col0
----
-612

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL 36 * + - 83 + - + MIN( DISTINCT 25 )
----
-3013

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL 36 * + - 83 + - + MIN ( DISTINCT 25 )
----
-3013

onlyif mysql # aggregate syntax: 
query II rowsort label-1775
SELECT ALL COUNT( * ) * + 4 + 97 AS col1, 30
----
101
30

skipif mysql # not compatible
query II rowsort label-1775
SELECT ALL COUNT ( * ) * + 4 + 97 AS col1, 30
----
101
30

query I rowsort
SELECT - - 94 + + - 61 + - - 24
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT + + 88 - ( 74 ) + - 64 + NULLIF ( - 11, + 8 * 89 - ( + 25 ) / + + NULLIF ( - + COUNT( * ), - 78 + 5 ) + CAST( - 82 AS SIGNED ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1777
SELECT + + 88 - ( 74 ) + - 64 + NULLIF ( - 11, + 8 * 89 - ( + 25 ) / + + NULLIF ( - + COUNT ( * ), - 78 + 5 ) + CAST ( - 82 AS INTEGER ) ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT - + 19 + + NULLIF ( - COUNT( * ), - 78 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-1778
SELECT - + 19 + + NULLIF ( - COUNT ( * ), - 78 ) AS col2
----
-20

query I rowsort
SELECT ALL - 8 + 42
----
34

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

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

query I rowsort
SELECT ALL + - 46 + + - 21 col0
----
-67

query I rowsort
SELECT DISTINCT - - 83 + - 6 * - + 8 - - 53
----
184

query I rowsort
SELECT DISTINCT 82 * + 12
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL - 58 + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - 58 + COUNT ( * ) AS col1
----
-57

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT + CAST( + - 25 AS SIGNED ) + 17
----
-8

skipif mysql # not compatible
query I rowsort label-1786
SELECT + CAST ( + - 25 AS INTEGER ) + 17
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL - MAX( DISTINCT + 43 ) * 76 * + - NULLIF ( + + 18, - 20 * - ( 95 ) * + COUNT( * ) - - 24 + - 96 + + SUM( ALL - 86 ) + + 59 + + CASE 11 WHEN + 74 * + - COUNT( * ) - - 33 + AVG ( ALL - 36 ) THEN + + COUNT( DISTINCT - 19 ) * 7 * 44 ELSE 2 END * + - 75 * + 73 + - 57 )
----
58824

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - MAX ( DISTINCT + 43 ) * 76 * + - NULLIF ( + + 18, - 20 * - ( 95 ) * + COUNT ( * ) - - 24 + - 96 + + SUM ( ALL - 86 ) + + 59 + + CASE 11 WHEN + 74 * + - COUNT ( * ) - - 33 + AVG ( ALL - 36 ) THEN + + COUNT ( DISTINCT - 19 ) * 7 * 44 ELSE 2 END * + - 75 * + 73 + - 57 )
----
58824

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

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

query I rowsort
SELECT - + 76 + - 13
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT - - 17 DIV + + 10
----
1

skipif mysql # not compatible
query I rowsort label-1790
SELECT - - 17 / + + 10
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT + - 12 * + + 98 * + CAST( NULL AS SIGNED ) * + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT + - 12 * + + 98 * + CAST ( NULL AS INTEGER ) * + 47 col0
----
NULL

query II rowsort
SELECT ALL - 58 AS col1, 59 * - + 61 * + 15
----
-58
-53985

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

skipif mysql # not compatible
query I rowsort label-1793
SELECT COUNT ( * ) * - 36
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + COALESCE ( - - CASE - MIN( ALL 75 ) WHEN - 64 + + + ( - COUNT( * ) ) THEN + 5 * + + 51 END, + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT + COALESCE ( - - CASE - MIN ( ALL 75 ) WHEN - 64 + + + ( - COUNT ( * ) ) THEN + 5 * + + 51 END, + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT 37 * COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT 37 * COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT 34 - - 66 * 91 + COUNT( * )
----
6041

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT 34 - - 66 * 91 + COUNT ( * )
----
6041

query II rowsort
SELECT DISTINCT - 89 col0, 89 AS col1
----
-89
89

query I rowsort
SELECT 37 + + - 10 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT - CASE 36 WHEN + 78 THEN + - 7 END * ( - NULLIF ( - 48, - 0 ) ) + + 35 + + - 9 * 87 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT - CASE 36 WHEN + 78 THEN + - 7 END * ( - NULLIF ( - 48, - 0 ) ) + + 35 + + - 9 * 87 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 82 - + - 63 AS col2, + 82 * 86 * + 91 col2
----
145
641732

query I rowsort
SELECT DISTINCT 80 * - 35
----
-2800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1803
SELECT 4 DIV + 73 + 57 + + - COUNT( * ) DIV - - 70 col1
----
57

skipif mysql # not compatible
query I rowsort label-1803
SELECT 4 / + 73 + 57 + + - COUNT ( * ) / - - 70 col1
----
57

query I rowsort
SELECT ALL - 68 * - 18 AS col0
----
1224

query I rowsort
SELECT DISTINCT 44 * - 77 AS col2
----
-3388

query I rowsort
SELECT 82 + + 34
----
116

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

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

query I rowsort
SELECT DISTINCT 38 + + + 81
----
119

query I rowsort
SELECT 1 + - 4
----
-3

query I rowsort
SELECT ALL + 5 + - - 68 AS col2
----
73

query II rowsort
SELECT 87 col2, - 53 * + + 44 - - 31
----
87
-2301

query II rowsort
SELECT + 67, 69 * + 63 AS col2
----
67
4347

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT 10 DIV 24 * + - 22
----
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT 10 / 24 * + - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT 17 + + ( - 56 ) * - SUM( - + ( 50 ) ) * + + 68 AS col0
----
-190383

skipif mysql # not compatible
query I rowsort label-1814
SELECT 17 + + ( - 56 ) * - SUM ( - + ( 50 ) ) * + + 68 AS col0
----
-190383

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL 74 + + 49 * - - ( + COUNT( * ) ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL 74 + + 49 * - - ( + COUNT ( * ) ) AS col1
----
123

query I rowsort
SELECT DISTINCT + 20 + 32 col2
----
52

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

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

query I rowsort
SELECT ALL + 71 * - 75 AS col2
----
-5325

query I rowsort
SELECT DISTINCT + 60 + 68 col0
----
128

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

query I rowsort
SELECT ALL + + 18 + - 80 + 35 col0
----
-27

query I rowsort
SELECT + 76 * - 8 AS col1
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT NULLIF ( COUNT( * ), - COUNT( + 53 ) + - MAX( ALL - + 19 ) ) - - 91 * - 45 AS col1
----
-4094

skipif mysql # not compatible
query I rowsort label-1824
SELECT NULLIF ( COUNT ( * ), - COUNT ( + 53 ) + - MAX ( ALL - + 19 ) ) - - 91 * - 45 AS col1
----
-4094

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT DISTINCT 99, COUNT( * ) * + + 45 AS col2
----
99
45

skipif mysql # not compatible
query II rowsort label-1825
SELECT DISTINCT 99, COUNT ( * ) * + + 45 AS col2
----
99
45

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

query I rowsort
SELECT ALL - 66 - 13
----
-79

query I rowsort
SELECT - 43 * - + 84 AS col0
----
3612

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT 82 DIV 42 * + 5 * + 63 * 31
----
9765

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT 82 / 42 * + 5 * + 63 * 31
----
9765

query I rowsort
SELECT ALL 87 - - 81
----
168

query I rowsort
SELECT 8 - - ( + - 3 ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT ALL + 94 * 19 * + 39 * - 21 - CAST( NULL AS SIGNED ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + 94 * 19 * + 39 * - 21 - CAST ( NULL AS INTEGER ) * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ( - 44 ) * COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1833
SELECT ( - 44 ) * COUNT ( * ) AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT - 98 DIV + + 59 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - 98 / + + 59 AS col1
----
-1

query II rowsort
SELECT ALL - 80 * + 58 AS col1, + 65 * - 54 * + + 81 + + COALESCE ( + - 19, + 40, ( + 24 ) * - ( + + 63 ) - + 82 + - 67 )
----
-4640
-284329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT 41 DIV - SUM( DISTINCT 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT 41 / - SUM ( DISTINCT 68 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT 76 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-1837
SELECT 76 / - 73
----
-1

query I rowsort
SELECT 47 * - 51 col2
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT COUNT( ALL - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1839
SELECT COUNT ( ALL - 77 ) AS col2
----
1

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

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

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

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

query I rowsort
SELECT DISTINCT - 34 col0
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT ALL + 9 * COUNT( * ) * - 14 * + 49 col0
----
-6174

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + 9 * COUNT ( * ) * - 14 * + 49 col0
----
-6174

query I rowsort
SELECT DISTINCT 68 + + - ( + 42 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT MIN( DISTINCT ( + 96 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1846
SELECT MIN ( DISTINCT ( + 96 ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL 97 + - MAX( ALL + 51 ) + 80 - 82 * COUNT( DISTINCT - 74 )
----
44

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL 97 + - MAX ( ALL + 51 ) + 80 - 82 * COUNT ( DISTINCT - 74 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT + 97 * - 78 - + + 55 DIV - 46
----
-7565

skipif mysql # not compatible
query I rowsort label-1848
SELECT + 97 * - 78 - + + 55 / - 46
----
-7565

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL 73 + - 25 * COUNT( * ) + NULLIF ( + 39, 95 ) + + - 43 + + COUNT( * ) * + 2
----
46

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL 73 + - 25 * COUNT ( * ) + NULLIF ( + 39, 95 ) + + - 43 + + COUNT ( * ) * + 2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1850
SELECT ( - COUNT( * ) ) * + 40 - - 52 + 26 * 59 - + - COUNT( * ) AS col1, - 92 AS col2
----
1547
-92

skipif mysql # not compatible
query II rowsort label-1850
SELECT ( - COUNT ( * ) ) * + 40 - - 52 + 26 * 59 - + - COUNT ( * ) AS col1, - 92 AS col2
----
1547
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1851
SELECT MIN( ALL - 60 ) + 32 DIV + 55 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1851
SELECT MIN ( ALL - 60 ) + 32 / + 55 AS col2
----
-60

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

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

query II rowsort
SELECT DISTINCT 96 + - 87 AS col2, + 51 * 6 AS col0
----
9
306

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT + MAX( DISTINCT - + 29 ) * - - MIN( DISTINCT + 45 ) AS col2
----
-1305

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + MAX ( DISTINCT - + 29 ) * - - MIN ( DISTINCT + 45 ) AS col2
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL + + MIN( DISTINCT + 22 ) + + - 67
----
-45

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + + MIN ( DISTINCT + 22 ) + + - 67
----
-45

query II rowsort
SELECT ( + + 8 ), + 67 AS col2
----
8
67

query I rowsort
SELECT 11 * + + 40 * + 12 * + 76 + + 59 - - - 18 AS col2
----
401321

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

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

query I rowsort
SELECT ALL - 31 - - 48 AS col1
----
17

query I rowsort
SELECT - NULLIF ( - 31, - - 92 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1861
SELECT - MIN( ALL + CAST( + 6 AS SIGNED ) ) + 55 + + 64 + + 74 * - - MAX( DISTINCT - 60 ) * 41
----
-181927

skipif mysql # not compatible
query I rowsort label-1861
SELECT - MIN ( ALL + CAST ( + 6 AS INTEGER ) ) + 55 + + 64 + + 74 * - - MAX ( DISTINCT - 60 ) * 41
----
-181927

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT 5 * - + 83 + + - 53 * COUNT( * ) AS col1
----
-468

skipif mysql # not compatible
query I rowsort label-1862
SELECT 5 * - + 83 + + - 53 * COUNT ( * ) AS col1
----
-468

query I rowsort
SELECT + 5 + - 43 * 23 * + 91
----
-89994

query I rowsort
SELECT - 74 - - CASE - - 71 WHEN + 40 THEN NULL WHEN - 7 * - 82 THEN NULL WHEN 46 THEN - CASE 70 WHEN - 89 * + + 90 THEN NULL WHEN + - 92 + + + 61 THEN - + 88 * - - 17 + 24 END END * + 69 * + + 53 * - 15 - + - 43 * 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT ALL - - 3 DIV + SUM( + + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - - 3 / + SUM ( + + 95 )
----
0

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

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

query I rowsort
SELECT - 32 + 69
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT ALL - ( 33 ) * CAST( 40 AS SIGNED ) - 34 AS col0
----
-1354

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - ( 33 ) * CAST ( 40 AS INTEGER ) - 34 AS col0
----
-1354

query I rowsort
SELECT - + 9 * + 56
----
-504

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

skipif mysql # not compatible
query I rowsort label-1870
SELECT - - COUNT ( * ) + 29 * - - 20 AS col1
----
581

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

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

query I rowsort
SELECT - + 60 + 66
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - + 99 * - COUNT( * ) + 85 AS col2
----
184

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - + 99 * - COUNT ( * ) + 85 AS col2
----
184

query I rowsort
SELECT + + 49 * - 75
----
-3675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1875
SELECT - COALESCE ( + CASE 11 WHEN + 22 THEN NULL WHEN + + 30 THEN NULL ELSE - CAST( NULL AS SIGNED ) END, + COUNT( * ), + CAST( - 27 AS SIGNED ) ) + + 78 - + + 66 * - 91 DIV + CAST( - 91 AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1875
SELECT - COALESCE ( + CASE 11 WHEN + 22 THEN NULL WHEN + + 30 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END, + COUNT ( * ), + CAST ( - 27 AS INTEGER ) ) + + 78 - + + 66 * - 91 / + CAST ( - 91 AS INTEGER ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT ALL AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 29 AS col0, - 8 col0
----
-29
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL NULLIF ( + 21, - 6 - + + CASE + 32 WHEN + 29 * 0 + - 33 + + SUM( DISTINCT 30 ) THEN + + 93 WHEN + 38 * + 79 * 63 THEN NULL END * + 4 + - 45 + - 94 )
----
21

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL NULLIF ( + 21, - 6 - + + CASE + 32 WHEN + 29 * 0 + - 33 + + SUM ( DISTINCT 30 ) THEN + + 93 WHEN + 38 * + 79 * 63 THEN NULL END * + 4 + - 45 + - 94 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT - 45 * + MIN( + 93 )
----
-4185

skipif mysql # not compatible
query I rowsort label-1879
SELECT - 45 * + MIN ( + 93 )
----
-4185

query I rowsort
SELECT DISTINCT NULLIF ( + 95, 74 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT - ( + COUNT( * ) ) * + 69 + - 90 - - COUNT( + 19 ) * - - 42
----
-117

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - ( + COUNT ( * ) ) * + 69 + - 90 - - COUNT ( + 19 ) * - - 42
----
-117

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

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 11, - 43 AS col0
----
11
-43

query I rowsort
SELECT ALL + 56 col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1885
SELECT + COUNT( - + 99 ) DIV + 19 + + + 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1885
SELECT + COUNT ( - + 99 ) / + 19 + + + 81 AS col2
----
81

query I rowsort
SELECT ALL 80 * + 31 + + 73 - - + 60 * + 70 AS col0
----
6753

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

query I rowsort
SELECT ( 78 ) AS col1
----
78

query II rowsort
SELECT + 5 AS col2, 94 AS col1
----
5
94

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

query I rowsort
SELECT + 20 * - 85 AS col2
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL - 87 * COUNT( * ) + - 43 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - 87 * COUNT ( * ) + - 43 AS col0
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1893
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 47 AS col1, + 40 + 51 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-1893
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 47 AS col1, + 40 + 51 AS col1
----
NULL
91

query I rowsort
SELECT + 25 + 91 AS col2
----
116

query I rowsort
SELECT 65 * + 80 + - 9 + 11 AS col1
----
5202

query I rowsort
SELECT - ( - 95 ) * 15 * ( + 67 )
----
95475

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

skipif mysql # not compatible
query II rowsort label-1897
SELECT 91 AS col2, - ( COUNT ( * ) )
----
91
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT + 71 AS col1, - MAX( ALL - 38 )
----
71
38

skipif mysql # not compatible
query II rowsort label-1899
SELECT + 71 AS col1, - MAX ( ALL - 38 )
----
71
38

query I rowsort
SELECT + 59 + - 78 * 18 AS col0
----
-1345

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT ALL 11 AS col1, 64 + - COUNT( * ) AS col1
----
11
63

skipif mysql # not compatible
query II rowsort label-1901
SELECT ALL 11 AS col1, 64 + - COUNT ( * ) AS col1
----
11
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1902
SELECT ALL - 66 * - + CAST( NULL AS SIGNED ) * 28 - + COUNT( + + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL - 66 * - + CAST ( NULL AS INTEGER ) * 28 - + COUNT ( + + 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL + COUNT( * ) * + 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + COUNT ( * ) * + 19 AS col1
----
19

query I rowsort
SELECT DISTINCT - 71 col0
----
-71

query II rowsort
SELECT ALL + 58 col0, 34
----
58
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT COUNT( * ) * - 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT COUNT ( * ) * - 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT + + SUM( ( + 25 ) ) * + + 54 AS col0, + 26 AS col0
----
1350
26

skipif mysql # not compatible
query II rowsort label-1907
SELECT + + SUM ( ( + 25 ) ) * + + 54 AS col0, + 26 AS col0
----
1350
26

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

skipif mysql # not compatible
query II rowsort label-1908
SELECT COUNT ( * ), 55 AS col1
----
1
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT - 61 DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT - 61 / - 74 AS col2
----
0

query I rowsort
SELECT + 5 - - - 69
----
-64

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

skipif mysql # not compatible
query I rowsort label-1911
SELECT - - SUM ( DISTINCT 78 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT ALL NULLIF ( - + 39, - CAST( - + 82 AS SIGNED ) - + 94 * - COUNT( * ) - - 92 * + + 79 * - + CAST( NULL AS SIGNED ) * - 20 )
----
-39

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL NULLIF ( - + 39, - CAST ( - + 82 AS INTEGER ) - + 94 * - COUNT ( * ) - - 92 * + + 79 * - + CAST ( NULL AS INTEGER ) * - 20 )
----
-39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1914
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) * 9 * COUNT( + 70 ), 38 / - + MIN( DISTINCT + 29 ) - + - 18 * - CAST( NULL AS SIGNED ) + 37
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1914
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 9 * COUNT ( + 70 ), 38 / - + MIN ( DISTINCT + 29 ) - + - 18 * - CAST ( NULL AS INTEGER ) + 37
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1915
SELECT ALL + 9 + + + 72 AS col2, - COALESCE ( - 2, + 38 * + 21 + - 65 - COALESCE ( - ( + + 82 ), - ( + ( MAX( DISTINCT - 46 ) ) ) * 9 ) * - + 22 )
----
81
2

skipif mysql # not compatible
query II rowsort label-1915
SELECT ALL + 9 + + + 72 AS col2, - COALESCE ( - 2, + 38 * + 21 + - 65 - COALESCE ( - ( + + 82 ), - ( + ( MAX ( DISTINCT - 46 ) ) ) * 9 ) * - + 22 )
----
81
2

query I rowsort
SELECT DISTINCT 21 + 35
----
56

query I rowsort
SELECT ALL + 18 + - 56 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT - CAST( - - 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1918
SELECT - CAST ( - - 92 AS INTEGER ) AS col0
----
-92

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

skipif mysql # not compatible
query I rowsort label-1919
SELECT + COUNT ( * ) + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 46 * + 91 AS col1
----
4186

onlyif mysql # aggregate syntax: 
query II rowsort label-1921
SELECT DISTINCT + CASE + COUNT( * ) WHEN + + 85 THEN NULL ELSE - SUM( + 12 ) * - 1 - COUNT( * ) + + 32 * NULLIF ( - COUNT( * ), - 62 ) * - ( + 49 ) * - - 22 END, + 22 AS col2
----
34507
22

skipif mysql # not compatible
query II rowsort label-1921
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + + 85 THEN NULL ELSE - SUM ( + 12 ) * - 1 - COUNT ( * ) + + 32 * NULLIF ( - COUNT ( * ), - 62 ) * - ( + 49 ) * - - 22 END, + 22 AS col2
----
34507
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT ALL - ( - 83 ) DIV - - 1 * + 33 DIV + 33 - + - 67 + + 42 col0
----
192

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - ( - 83 ) / - - 1 * + 33 / + 33 - + - 67 + + 42 col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL + CASE + 95 WHEN + COUNT( DISTINCT - 7 ) THEN - + 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL + CASE + 95 WHEN + COUNT ( DISTINCT - 7 ) THEN - + 7 END
----
NULL

query I rowsort
SELECT - 26 * - 95 * 55 AS col1
----
135850

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT ALL - 65 DIV + + 2 - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - 65 / + + 2 - COUNT ( * )
----
-33

query I rowsort
SELECT - 37 * 14
----
-518

query I rowsort
SELECT + - ( + NULLIF ( + 85, + 49 ) ) * + 49 * + 18 - + 33 + - 40
----
-75043

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT + COUNT( * ) * 39 - + 55
----
-16

skipif mysql # not compatible
query I rowsort label-1929
SELECT + COUNT ( * ) * 39 - + 55
----
-16

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

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

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

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

query I rowsort
SELECT 45 + 65 AS col2
----
110

query I rowsort
SELECT - 47 * - + 13 col2
----
611

query I rowsort
SELECT ALL - 48 * - - 99 - + 93
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT - COALESCE ( 12, 7 * - + ( + COUNT( * ) ) ) * - 94 col1
----
1128

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - COALESCE ( 12, 7 * - + ( + COUNT ( * ) ) ) * - 94 col1
----
1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1936
SELECT ALL - + SUM( + 92 ) AS col1, 61 * + CAST( NULL AS SIGNED )
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL - + SUM ( + 92 ) AS col1, 61 * + CAST ( NULL AS INTEGER )
----
-92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT - MIN( DISTINCT - ( + - 2 ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT - MIN ( DISTINCT - ( + - 2 ) ) col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT ALL CAST( NULL AS SIGNED ) + + 95 * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL CAST ( NULL AS INTEGER ) + + 95 * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + COUNT( * ) + + 72
----
73

skipif mysql # not compatible
query I rowsort label-1939
SELECT + COUNT ( * ) + + 72
----
73

query I rowsort
SELECT DISTINCT + 99 col0
----
99

query I rowsort
SELECT 86 + 55 + + + NULLIF ( - 79, - + 31 * - 37 * - 74 + - 91 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1942
SELECT ALL 16 + + + CAST( + COUNT( * ) AS SIGNED ) * - 12 * COUNT( * ), 47 AS col1
----
4
47

skipif mysql # not compatible
query II rowsort label-1942
SELECT ALL 16 + + + CAST ( + COUNT ( * ) AS INTEGER ) * - 12 * COUNT ( * ), 47 AS col1
----
4
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL MAX( - 90 ) + 30
----
-60

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL MAX ( - 90 ) + 30
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1944
SELECT ( 84 ) + + 6 + COUNT( * ) * + 38 DIV - + 66 col0
----
90

skipif mysql # not compatible
query I rowsort label-1944
SELECT ( 84 ) + + 6 + COUNT ( * ) * + 38 / - + 66 col0
----
90

query I rowsort
SELECT ALL 80 * - 96
----
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT MIN( - - 58 ) + + 25 + MIN( DISTINCT - 69 ) + 59 * + + 29
----
1725

skipif mysql # not compatible
query I rowsort label-1946
SELECT MIN ( - - 58 ) + + 25 + MIN ( DISTINCT - 69 ) + 59 * + + 29
----
1725

query I rowsort
SELECT 11 * + 93
----
1023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1948
SELECT ( + 38 ) + + - CAST( - 40 AS SIGNED ) + COUNT( * ) + - + 1 * 55 DIV + 76
----
79

skipif mysql # not compatible
query I rowsort label-1948
SELECT ( + 38 ) + + - CAST ( - 40 AS INTEGER ) + COUNT ( * ) + - + 1 * 55 / + 76
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT 20 + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-1949
SELECT 20 + + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT MAX( 92 ) + - 74
----
18

skipif mysql # not compatible
query I rowsort label-1950
SELECT MAX ( 92 ) + - 74
----
18

query I rowsort
SELECT DISTINCT + 41 - + 34 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT ALL 14 DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL 14 / - 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT COALESCE ( - COUNT( + 5 ), - 93, - COUNT( * ) ) * + - CAST( - 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1953
SELECT COALESCE ( - COUNT ( + 5 ), - 93, - COUNT ( * ) ) * + - CAST ( - 44 AS INTEGER ) AS col2
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT DISTINCT COUNT( * ) - - CASE + 51 WHEN - 31 THEN 10 * + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT COUNT ( * ) - - CASE + 51 WHEN - 31 THEN 10 * + + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1956
SELECT 15 DIV + COUNT( * ) + + 12 AS col2, 15
----
27
15

skipif mysql # not compatible
query II rowsort label-1956
SELECT 15 / + COUNT ( * ) + + 12 AS col2, 15
----
27
15

query I rowsort
SELECT ( - NULLIF ( + 56, + 57 / - + 61 ) ) * ( - + 37 ) AS col1
----
2072

query I rowsort
SELECT ALL + 43 * - + ( + + 48 )
----
-2064

query I rowsort
SELECT - - 87 * 4 + - - 5 - 44 + - 77 * + 62
----
-4465

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT - SUM( + - 80 ) * + 17 * + SUM( ALL 15 ) + - + MAX( - 16 ) + + 36
----
20452

skipif mysql # not compatible
query I rowsort label-1962
SELECT - SUM ( + - 80 ) * + 17 * + SUM ( ALL 15 ) + - + MAX ( - 16 ) + + 36
----
20452

query I rowsort
SELECT + 71 * + + 63 AS col2
----
4473

query I rowsort
SELECT ALL - - 10 AS col0
----
10

query I rowsort
SELECT ALL - ( - 76 ) col0
----
76

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

query I rowsort
SELECT - 93 + 4 * 22
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT 52 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-1968
SELECT 52 / - 44
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1970
SELECT + COALESCE ( - 12, + COUNT( * ), + NULLIF ( + 29, - - 11 ) - 7 ) DIV - ( 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT + COALESCE ( - 12, + COUNT ( * ), + NULLIF ( + 29, - - 11 ) - 7 ) / - ( 92 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT CAST( + 98 AS SIGNED ) * - 12 - 91
----
-1267

skipif mysql # not compatible
query I rowsort label-1971
SELECT CAST ( + 98 AS INTEGER ) * - 12 - 91
----
-1267

query I rowsort
SELECT ALL + 92 + - + 77 AS col2
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT 52 + + COUNT( * ) * + 69 * + 28 AS col2
----
1984

skipif mysql # not compatible
query I rowsort label-1974
SELECT 52 + + COUNT ( * ) * + 69 * + 28 AS col2
----
1984

query I rowsort
SELECT ALL + + 79 * + 77 AS col0
----
6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1976
SELECT + 74, ( + ( + MIN( - 57 ) ) ) + + COALESCE ( - 87, - ( - 33 ), - 46 ) + CAST( - - 2 AS SIGNED ) * 47 - + 79 * + 79 AS col0
----
74
-6291

skipif mysql # not compatible
query II rowsort label-1976
SELECT + 74, ( + ( + MIN ( - 57 ) ) ) + + COALESCE ( - 87, - ( - 33 ), - 46 ) + CAST ( - - 2 AS INTEGER ) * 47 - + 79 * + 79 AS col0
----
74
-6291

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL - 1 + - + 75 + - - 96 * MAX( ALL - + 10 ) * 92 * + - 21 AS col2
----
1854644

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - 1 + - + 75 + - - 96 * MAX ( ALL - + 10 ) * 92 * + - 21 AS col2
----
1854644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1978
SELECT DISTINCT - 36 + + - CAST( - 45 AS SIGNED ) * - COUNT( ALL - 60 )
----
-81

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - 36 + + - CAST ( - 45 AS INTEGER ) * - COUNT ( ALL - 60 )
----
-81

query I rowsort
SELECT ALL 69 + 51 col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT COUNT( * ) + 78 + + 22 * CASE - 69 WHEN + 97 * - - 81 - COALESCE ( - - ( - 3 ), - 8 + + 50 ) THEN - 52 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT COUNT ( * ) + 78 + + 22 * CASE - 69 WHEN + 97 * - - 81 - COALESCE ( - - ( - 3 ), - 8 + + 50 ) THEN - 52 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1981
SELECT - 27 col2, CAST( NULL AS SIGNED ) * 27 + - + 95 * - NULLIF ( + COUNT( * ), + 87 - + - 36 * - 48 ) AS col1, 11
----
-27
NULL
11

skipif mysql # not compatible
query III rowsort label-1981
SELECT - 27 col2, CAST ( NULL AS INTEGER ) * 27 + - + 95 * - NULLIF ( + COUNT ( * ), + 87 - + - 36 * - 48 ) AS col1, 11
----
-27
NULL
11

query I rowsort
SELECT 92 + 88 * 38
----
3436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1983
SELECT CASE 67 WHEN 30 + 13 THEN NULL WHEN + 39 * - + 89 THEN - + 75 + + SUM( 55 ) ELSE - ( - 6 ) END * - 34 DIV 17 + 98
----
86

skipif mysql # not compatible
query I rowsort label-1983
SELECT CASE 67 WHEN 30 + 13 THEN NULL WHEN + 39 * - + 89 THEN - + 75 + + SUM ( 55 ) ELSE - ( - 6 ) END * - 34 / 17 + 98
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL MAX( ALL - + 33 ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL MAX ( ALL - + 33 ) col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL 33 + + COALESCE ( 47, - + ( - CASE + - 67 WHEN + + COUNT( - - 94 ) THEN MIN( - 89 ) + + 82 WHEN 31 THEN NULL END ) ) * - - 96 AS col1
----
4545

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL 33 + + COALESCE ( 47, - + ( - CASE + - 67 WHEN + + COUNT ( - - 94 ) THEN MIN ( - 89 ) + + 82 WHEN 31 THEN NULL END ) ) * - - 96 AS col1
----
4545

query I rowsort
SELECT 75 - - 11 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1988
SELECT ALL NULLIF ( 5, + COUNT( * ) - + 46 ) * ( - 36 ) * - 88 + + CASE + + ( + 96 ) WHEN - 58 * + NULLIF ( - 43, CASE WHEN NULL BETWEEN ( NULL ) AND 53 THEN NULLIF ( + + AVG ( ALL 5 ), ( CASE - - 39 WHEN + 93 THEN NULL WHEN + CAST( + ( + - 0 ) AS SIGNED ) THEN - COUNT( * ) * - - 81 * - 7 ELSE NULL END ) * - 18 ) ELSE NULL END - 99 - 82 - - 80 + + 27 + - 72 + + + 62 ) THEN NULL ELSE + - CASE CASE + - 13 WHEN + - ( 87 ) THEN + - 86 * - 19 + + - MAX( ALL 10 ) / - 67 + - 31 * - COUNT( * ) WHEN 1 * COALESCE ( + 41 * + 90, SUM( ALL 52 ) - 4 ) THEN NULL ELSE 74 END WHEN 21 - + 87 THEN + 3 * 20 WHEN 99 THEN NULL ELSE NULL END * + AVG ( ALL - ( + 57 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL NULLIF ( 5, + COUNT ( * ) - + 46 ) * ( - 36 ) * - 88 + + CASE + + ( + 96 ) WHEN - 58 * + NULLIF ( - 43, CASE WHEN NULL BETWEEN ( NULL ) AND 53 THEN NULLIF ( + + AVG ( ALL 5 ), ( CASE - - 39 WHEN + 93 THEN NULL WHEN + CAST ( + ( + - 0 ) AS INTEGER ) THEN - COUNT ( * ) * - - 81 * - 7 ELSE NULL END ) * - 18 ) ELSE NULL END - 99 - 82 - - 80 + + 27 + - 72 + + + 62 ) THEN NULL ELSE + - CASE CASE + - 13 WHEN + - ( 87 ) THEN + - 86 * - 19 + + - MAX ( ALL 10 ) / - 67 + - 31 * - COUNT ( * ) WHEN 1 * COALESCE ( + 41 * + 90, SUM ( ALL 52 ) - 4 ) THEN NULL ELSE 74 END WHEN 21 - + 87 THEN + 3 * 20 WHEN 99 THEN NULL ELSE NULL END * + AVG ( ALL - ( + 57 ) ) END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT ALL - COUNT( * ) DIV 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - COUNT ( * ) / 28 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT DISTINCT + 74 - - CASE 17 WHEN 35 - + + 54 - - 26 + - 21 * - - 58 + CAST( NULL AS SIGNED ) * - - COUNT( * ) * + CAST( + 53 AS SIGNED ) THEN - + CAST( NULL AS SIGNED ) WHEN - - 74 * SUM( ALL + 54 ) THEN - COUNT( * ) - + 89 + 9 WHEN - ( - - 7 ) THEN NULL END - - - 73 / - + 17 + + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT + 74 - - CASE 17 WHEN 35 - + + 54 - - 26 + - 21 * - - 58 + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + CAST ( + 53 AS INTEGER ) THEN - + CAST ( NULL AS INTEGER ) WHEN - - 74 * SUM ( ALL + 54 ) THEN - COUNT ( * ) - + 89 + 9 WHEN - ( - - 7 ) THEN NULL END - - - 73 / - + 17 + + + 90
----
NULL

query I rowsort
SELECT ALL 97 * + 98
----
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT COUNT( * ) - + - 80 * + CASE - ( - + 9 ) WHEN - 91 THEN + - ( + MAX( + 5 ) ) WHEN CAST( NULL AS SIGNED ) + + 0 THEN SUM( DISTINCT - 30 ) + - + 24 + 21 * + ( CASE + + 71 WHEN + ( 63 ) THEN + CAST( NULL AS SIGNED ) END ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT COUNT ( * ) - + - 80 * + CASE - ( - + 9 ) WHEN - 91 THEN + - ( + MAX ( + 5 ) ) WHEN CAST ( NULL AS INTEGER ) + + 0 THEN SUM ( DISTINCT - 30 ) + - + 24 + 21 * + ( CASE + + 71 WHEN + ( 63 ) THEN + CAST ( NULL AS INTEGER ) END ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 26 * 21
----
546

query II rowsort
SELECT ALL 15 col2, 38
----
15
38

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

skipif mysql # not compatible
query II rowsort label-1997
SELECT - COUNT ( * ), 78 AS col1
----
-1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT CASE - 73 WHEN - - 65 * + MIN( DISTINCT + - 85 ) THEN + 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT CASE - 73 WHEN - - 65 * + MIN ( DISTINCT + - 85 ) THEN + 24 END AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1999
SELECT COUNT ( * ), 27 AS col1
----
1
27

query I rowsort
SELECT + 55 * 82
----
4510

query II rowsort
SELECT ALL + - 99, - 14 AS col2
----
-99
-14

query I rowsort
SELECT ( - - 69 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL 44 * - - 34 + - + 23 + - + 91 - - 43 - - 92 + + COUNT( * ) * - + 6 * + - COUNT( * ) + + COUNT( * ) * 26 * 88 - - + 77
----
3888

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL 44 * - - 34 + - + 23 + - + 91 - - 43 - - 92 + + COUNT ( * ) * - + 6 * + - COUNT ( * ) + + COUNT ( * ) * 26 * 88 - - + 77
----
3888

query I rowsort
SELECT DISTINCT 82 * + + 22 + 12 * - 9 + - 4
----
1692

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT ALL + + 65 AS col1, 92 + + COUNT( * ) AS col0
----
65
93

skipif mysql # not compatible
query II rowsort label-2005
SELECT ALL + + 65 AS col1, 92 + + COUNT ( * ) AS col0
----
65
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + + 82 * + - COALESCE ( - - 95, + + CASE + 11 WHEN + + 92 THEN NULL WHEN - - COUNT( * ) THEN - 70 ELSE NULL END ) AS col1
----
-7790

skipif mysql # not compatible
query I rowsort label-2006
SELECT + + 82 * + - COALESCE ( - - 95, + + CASE + 11 WHEN + + 92 THEN NULL WHEN - - COUNT ( * ) THEN - 70 ELSE NULL END ) AS col1
----
-7790

query I rowsort
SELECT - + 76 * 11 AS col0
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL + CASE + - 97 WHEN + - ( 50 ) THEN NULL ELSE - 67 + + - 89 END * - CASE 77 WHEN + 26 * 44 THEN + COUNT( * ) ELSE NULL END * 69 + + 61 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL + CASE + - 97 WHEN + - ( 50 ) THEN NULL ELSE - 67 + + - 89 END * - CASE 77 WHEN + 26 * 44 THEN + COUNT ( * ) ELSE NULL END * 69 + + 61 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2009
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + 5
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT ALL + - COUNT( * ), + 53 * + 34 * - 0 - 9 AS col2
----
-1
-9

skipif mysql # not compatible
query II rowsort label-2010
SELECT ALL + - COUNT ( * ), + 53 * + 34 * - 0 - 9 AS col2
----
-1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL - - 88 * 56 + 99 * COUNT( * ) + + + COUNT( * ) + + 89
----
5117

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - - 88 * 56 + 99 * COUNT ( * ) + + + COUNT ( * ) + + 89
----
5117

query I rowsort
SELECT + + 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT SUM( DISTINCT + - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2013
SELECT SUM ( DISTINCT + - 88 )
----
-88

query II rowsort
SELECT - ( + 41 ), - 32 AS col1
----
-41
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - 51 + + COUNT( * ) * - 88
----
-139

skipif mysql # not compatible
query I rowsort label-2015
SELECT - 51 + + COUNT ( * ) * - 88
----
-139

query I rowsort
SELECT + 63 + + 65 + + + 23 AS col1
----
151

query I rowsort
SELECT - 69 * - COALESCE ( - 34, 51 * 68 * 84 ) * + - 86 AS col1
----
201756

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT - 27 + - ( + 48 ) DIV - 7 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2018
SELECT - 27 + - ( + 48 ) / - 7 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL CASE + 98 WHEN - CASE NULLIF ( 4, 16 ) WHEN 27 THEN 10 + 63 ELSE NULL END / + + 11 - + + COUNT( * ) + + 25 THEN + + ( + 83 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL CASE + 98 WHEN - CASE NULLIF ( 4, 16 ) WHEN 27 THEN 10 + 63 ELSE NULL END / + + 11 - + + COUNT ( * ) + + 25 THEN + + ( + 83 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT + 8 * - 96 + 1 + - MIN( - - 67 ) AS col2
----
-834

skipif mysql # not compatible
query I rowsort label-2020
SELECT + 8 * - 96 + 1 + - MIN ( - - 67 ) AS col2
----
-834

query II rowsort
SELECT ALL - 87 * + 47, 4 AS col2
----
-4089
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT ALL - 14 DIV + 7 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - 14 / + 7 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL MAX( DISTINCT - + 31 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL MAX ( DISTINCT - + 31 ) col1
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - SUM( 69 ) * 16
----
-1104

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - SUM ( 69 ) * 16
----
-1104

query I rowsort
SELECT - 67 + + ( + - 85 )
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2028
SELECT DISTINCT CAST( + 65 AS SIGNED ), 69 AS col0
----
65
69

skipif mysql # not compatible
query II rowsort label-2028
SELECT DISTINCT CAST ( + 65 AS INTEGER ), 69 AS col0
----
65
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT COUNT( - 47 ) * 22 + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT COUNT ( - 47 ) * 22 + COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL - COUNT( - 9 ) + - + ( - 94 ) * + + COUNT( * ) * 46 col1
----
4323

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL - COUNT ( - 9 ) + - + ( - 94 ) * + + COUNT ( * ) * 46 col1
----
4323

query I rowsort
SELECT ALL + NULLIF ( ( + 21 ), 82 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL + - 30 DIV - 56 + - ( + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + - 30 / - 56 + - ( + 55 ) AS col2
----
-55

query I rowsort
SELECT - 28 * + 79
----
-2212

onlyif mysql # DIV for integer division: 
query II rowsort label-2034
SELECT + 55 DIV 61, 76 AS col0
----
0
76

skipif mysql # not compatible
query II rowsort label-2034
SELECT + 55 / 61, 76 AS col0
----
0
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2035
SELECT DISTINCT + 41 DIV + 80 * + 21 + + + 39 * - ( - COUNT( * ) ) * + - 44 - + 56 * - COUNT( * ) AS col0
----
-1660

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + 41 / + 80 * + 21 + + + 39 * - ( - COUNT ( * ) ) * + - 44 - + 56 * - COUNT ( * ) AS col0
----
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + MAX( DISTINCT 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2036
SELECT + MAX ( DISTINCT 64 ) AS col1
----
64

query I rowsort
SELECT ALL 25 * 12 + 84
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + + ( - + 15 ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-2038
SELECT + + ( - + 15 ) + - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2039
SELECT ALL 61 DIV - + ( + 42 ) - - CAST( - 13 AS SIGNED ) * - + 61
----
792

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL 61 / - + ( + 42 ) - - CAST ( - 13 AS INTEGER ) * - + 61
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2040
SELECT 4 * 23 DIV - COUNT( * ) + + 84 + + + ( - 53 ) + - 14 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2040
SELECT 4 * 23 / - COUNT ( * ) + + 84 + + + ( - 53 ) + - 14 AS col2
----
-75

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

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

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

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

query I rowsort
SELECT + 39 * - 6 AS col2
----
-234

query I rowsort
SELECT - 45 + - + 7
----
-52

query I rowsort
SELECT ALL 51 * 50
----
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT ALL 98 * + COUNT( + 85 ), - NULLIF ( 16, - MAX( ( - 45 ) ) ) AS col1
----
98
-16

skipif mysql # not compatible
query II rowsort label-2046
SELECT ALL 98 * + COUNT ( + 85 ), - NULLIF ( 16, - MAX ( ( - 45 ) ) ) AS col1
----
98
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT COUNT( * ) * - + NULLIF ( + 23, - + 25 ) - 38 + - 5 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT COUNT ( * ) * - + NULLIF ( + 23, - + 25 ) - 38 + - 5 AS col2
----
-66

query I rowsort
SELECT ALL ( + 57 ) AS col1
----
57

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

skipif mysql # not compatible
query II rowsort label-2049
SELECT COUNT ( * ) AS col2, 52
----
1
52

query I rowsort
SELECT - 79 * 11
----
-869

query II rowsort
SELECT DISTINCT 48 col1, 93
----
48
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2052
SELECT ALL 99 AS col0, + 69 + + 84 DIV - - 98 AS col0
----
99
69

skipif mysql # not compatible
query II rowsort label-2052
SELECT ALL 99 AS col0, + 69 + + 84 / - - 98 AS col0
----
99
69

query I rowsort
SELECT 16 * 17 AS col0
----
272

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

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

query I rowsort
SELECT 25 * COALESCE ( - ( - 87 ), - 73 * 98 * 98 ) col1
----
2175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL + + ( COALESCE ( + 46, + COUNT( * ) ) ) + - 96 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + + ( COALESCE ( + 46, + COUNT ( * ) ) ) + - 96 AS col1
----
-50

query I rowsort
SELECT ALL - - 90 + + 6 + + + 27 + + 40 - + 25 + + 24 * 7 * 79 + - + 83
----
13327

query I rowsort
SELECT DISTINCT + 62 + 52
----
114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT MAX( + 94 ) * - NULLIF ( + ( - 75 ), 36 ) AS col1
----
7050

skipif mysql # not compatible
query I rowsort label-2061
SELECT MAX ( + 94 ) * - NULLIF ( + ( - 75 ), 36 ) AS col1
----
7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT + CAST( + ( + CAST( + 13 AS SIGNED ) ) AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-2062
SELECT + CAST ( + ( + CAST ( + 13 AS INTEGER ) ) AS INTEGER )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2063
SELECT ALL COUNT( DISTINCT - 19 ) + + - SUM( ALL - 21 ) + - + 15 * + CAST( + 29 AS SIGNED ) * - COUNT( * ) + - 76 + - 26 + + ( + 42 ) * + MIN( - - 35 ) col1, ( - 23 ) + + + 64
----
1825
41

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL COUNT ( DISTINCT - 19 ) + + - SUM ( ALL - 21 ) + - + 15 * + CAST ( + 29 AS INTEGER ) * - COUNT ( * ) + - 76 + - 26 + + ( + 42 ) * + MIN ( - - 35 ) col1, ( - 23 ) + + + 64
----
1825
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + MIN( + 20 ) * + 74 AS col2
----
1480

skipif mysql # not compatible
query I rowsort label-2065
SELECT + MIN ( + 20 ) * + 74 AS col2
----
1480

onlyif mysql # DIV for integer division: 
query II rowsort label-2066
SELECT ALL + + 6 * 23 DIV 38 AS col2, - 89 + - 77 col0
----
3
-166

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL + + 6 * 23 / 38 AS col2, - 89 + - 77 col0
----
3
-166

query I rowsort
SELECT DISTINCT - + 55 AS col2
----
-55

query I rowsort
SELECT + 29 * - 86 + 60 + + 8 * - - 32 AS col0
----
-2178

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL - - MIN( ALL + - 56 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - - MIN ( ALL + - 56 ) col1
----
-56

query I rowsort
SELECT ( - - 53 )
----
53

query I rowsort
SELECT 85 + + + ( - 5 ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2072
SELECT ALL COALESCE ( 80, - CAST( NULL AS SIGNED ) ) DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL COALESCE ( 80, - CAST ( NULL AS INTEGER ) ) / - 63
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2073
SELECT ALL SUM( + 66 ) DIV 1 - COALESCE ( CAST( + CASE + + 94 WHEN - 76 THEN NULL WHEN + 10 * + 27 * - 22 THEN - 56 ELSE NULL END AS SIGNED ), 96, - 71, - 0 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL SUM ( + 66 ) / 1 - COALESCE ( CAST ( + CASE + + 94 WHEN - 76 THEN NULL WHEN + 10 * + 27 * - 22 THEN - 56 ELSE NULL END AS INTEGER ), 96, - 71, - 0 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT MIN( 45 ) * MIN( + COALESCE ( + ( + + 76 ), - 78 * - - 40 * + + 41 ) )
----
3420

skipif mysql # not compatible
query I rowsort label-2074
SELECT MIN ( 45 ) * MIN ( + COALESCE ( + ( + + 76 ), - 78 * - - 40 * + + 41 ) )
----
3420

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT 94 * 39 DIV + 53
----
69

skipif mysql # not compatible
query I rowsort label-2076
SELECT 94 * 39 / + 53
----
69

query II rowsort
SELECT 0 + - 59 col2, - 74 * - ( + 74 )
----
-59
5476

query I rowsort
SELECT - 37 * + - 40 + + 92
----
1572

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT + MAX( ALL + + 15 ) + - 47 col2
----
-32

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + MAX ( ALL + + 15 ) + - 47 col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL - 97 + - SUM( 69 ) / - 26 + + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * + + ( COUNT( * ) ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - 97 + - SUM ( 69 ) / - 26 + + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * + + ( COUNT ( * ) ) + 43
----
NULL

query II rowsort
SELECT ALL + 34 + + + 51, NULLIF ( 33, 92 * 29 + - 66 + - + 39 * - + 74 + + - 69 - 56 ) + + 86 AS col2
----
85
119

query I rowsort
SELECT DISTINCT 37 + + 30
----
67

query I rowsort
SELECT DISTINCT - 33 + - 5
----
-38

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

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

query I rowsort
SELECT + 10 + 95 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL CASE - - 23 WHEN - 5 THEN + ( + - CASE - COALESCE ( + 82, - 9 + 84 ) WHEN + 6 THEN + - COUNT( * ) WHEN 68 THEN 40 + 25 ELSE 21 + 15 END ) WHEN - 25 * + 11 + + 6 + 12 + - 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL CASE - - 23 WHEN - 5 THEN + ( + - CASE - COALESCE ( + 82, - 9 + 84 ) WHEN + 6 THEN + - COUNT ( * ) WHEN 68 THEN 40 + 25 ELSE 21 + 15 END ) WHEN - 25 * + 11 + + 6 + 12 + - 51 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ( - COUNT( + 56 ) ) + 68
----
67

skipif mysql # not compatible
query I rowsort label-2088
SELECT ( - COUNT ( + 56 ) ) + 68
----
67

query I rowsort
SELECT ALL 94 + + 33
----
127

query I rowsort
SELECT ALL + 17 - - 1 AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT 21 DIV + + 53
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT 21 / + + 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2092
SELECT + + NULLIF ( + - 99, + 41 DIV 33 + + COUNT( + 30 ) ) DIV 75 * + 97 + + 67 - ( + + ( MAX( 72 ) ) ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-2092
SELECT + + NULLIF ( + - 99, + 41 / 33 + + COUNT ( + 30 ) ) / 75 * + 97 + + 67 - ( + + ( MAX ( 72 ) ) ) AS col1
----
-102

query I rowsort
SELECT DISTINCT + 39 * + 70 - + 53
----
2677

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

skipif mysql # not compatible
query I rowsort label-2094
SELECT 90 * NULLIF ( - - 21, + - COUNT ( * ) )
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT 4 * - - 62 * + COUNT( * )
----
248

skipif mysql # not compatible
query I rowsort label-2095
SELECT 4 * - - 62 * + COUNT ( * )
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT ( NULLIF ( - 66, - - COUNT( * ) ) ) * + 72 AS col2
----
-4752

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT ( NULLIF ( - 66, - - COUNT ( * ) ) ) * + 72 AS col2
----
-4752

query I rowsort
SELECT DISTINCT + 83 * - - 66
----
5478

query II rowsort
SELECT ALL + 55 AS col0, 57 + + 69
----
55
126

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

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

query I rowsort
SELECT + 38 * 90 col0
----
3420

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT COUNT( * ) AS col0, + 71 * - 49 AS col2
----
1
-3479

skipif mysql # not compatible
query II rowsort label-2101
SELECT COUNT ( * ) AS col0, + 71 * - 49 AS col2
----
1
-3479

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

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

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

skipif mysql # not compatible
query I rowsort label-2103
SELECT MIN ( + 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL CAST( - - 3 AS SIGNED ) + - 15
----
-12

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL CAST ( - - 3 AS INTEGER ) + - 15
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT - 3 * + 75 * 39, COUNT( * ) AS col1
----
-8775
1

skipif mysql # not compatible
query II rowsort label-2105
SELECT - 3 * + 75 * 39, COUNT ( * ) AS col1
----
-8775
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT ALL + 65 + + SUM( DISTINCT + 60 ), - 66 AS col1
----
125
-66

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL + 65 + + SUM ( DISTINCT + 60 ), - 66 AS col1
----
125
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT - COUNT( * ) * - + COALESCE ( + - 24, + 37 * + + 58 + - 10 * 73 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - COUNT ( * ) * - + COALESCE ( + - 24, + 37 * + + 58 + - 10 * 73 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + 79 * - NULLIF ( - - 48, ( + 4 ) + MIN( - + 47 ) ) col1
----
-3792

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 79 * - NULLIF ( - - 48, ( + 4 ) + MIN ( - + 47 ) ) col1
----
-3792

query I rowsort
SELECT ALL 90 + - + 96
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT DISTINCT 49 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT 49 / 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - NULLIF ( NULLIF ( + 37, + + COUNT( * ) + - 11 + + 5 + + COUNT( * ) ), - 41 ) + - - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - NULLIF ( NULLIF ( + 37, + + COUNT ( * ) + - 11 + + 5 + + COUNT ( * ) ), - 41 ) + - - COUNT ( * )
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + 90 + - 67 + COUNT( * ) - + + COUNT( * ) * + 38 * - - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2113
SELECT + 90 + - 67 + COUNT ( * ) - + + COUNT ( * ) * + 38 * - - COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT 96 + + ( - 25 ) + - 65 * 54 * + 57 * COUNT( * )
----
-199999

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT 96 + + ( - 25 ) + - 65 * 54 * + 57 * COUNT ( * )
----
-199999

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - CASE + ( + MAX( DISTINCT - 95 ) ) WHEN 20 * + 93 + 99 / - - 87 THEN 46 * - 45 * 38 WHEN + + 37 + - 6 THEN - - 97 ELSE 71 + - 99 * - 65 END
----
-6506

skipif mysql # not compatible
query I rowsort label-2115
SELECT - CASE + ( + MAX ( DISTINCT - 95 ) ) WHEN 20 * + 93 + 99 / - - 87 THEN 46 * - 45 * 38 WHEN + + 37 + - 6 THEN - - 97 ELSE 71 + - 99 * - 65 END
----
-6506

query I rowsort
SELECT - COALESCE ( - 10, 98 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + COUNT( * ) + - COALESCE ( - COUNT( + 37 ) - - 5, - 13 * + 36 )
----
-3

skipif mysql # not compatible
query I rowsort label-2117
SELECT + COUNT ( * ) + - COALESCE ( - COUNT ( + 37 ) - - 5, - 13 * + 36 )
----
-3

query I rowsort
SELECT + ( - 11 ) * - 86
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT + 89 + 43 * CAST( + 1 AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-2119
SELECT + 89 + 43 * CAST ( + 1 AS INTEGER )
----
132

query I rowsort
SELECT ALL 95 - 68
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * 10 AS col1
----
10

query I rowsort
SELECT + ( 64 ) * + 9 AS col1
----
576

query I rowsort
SELECT ALL 88 * 87
----
7656

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

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

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

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

query I rowsort
SELECT + ( 64 ) - + ( - ( - 6 ) ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL MIN( 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL MIN ( 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + 99 + COUNT( * ) * - COUNT( * )
----
98

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

query I rowsort
SELECT + 17 * 46
----
782

query I rowsort
SELECT ALL - 59 * 77
----
-4543

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT 40 DIV + 17
----
2

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT 40 / + 17
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - 67 * - COUNT( * ) - - 49 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2132
SELECT - 67 * - COUNT ( * ) - - 49 AS col0
----
116

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

skipif mysql # not compatible
query I rowsort label-2133
SELECT - 69 / COUNT ( * ) AS col1
----
-69

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

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

query I rowsort
SELECT - 86 * + 74 AS col0
----
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL + COUNT( DISTINCT 79 ) * - CASE - COUNT( * ) * - 40 WHEN 3 * 95 THEN - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + COUNT ( DISTINCT 79 ) * - CASE - COUNT ( * ) * - 40 WHEN 3 * 95 THEN - 11 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT + 33 DIV 18
----
1

skipif mysql # not compatible
query I rowsort label-2137
SELECT + 33 / 18
----
1

query I rowsort
SELECT ( NULLIF ( + 91, + 19 ) ) col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - 27 + + MAX( ALL 56 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 27 + + MAX ( ALL 56 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - COUNT( * ) * - 42 - COUNT( * ) * - 56 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2140
SELECT - COUNT ( * ) * - 42 - COUNT ( * ) * - 56 AS col2
----
98

query I rowsort
SELECT - 3 + 79 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT - 28 * + 75 + COUNT( * ) AS col0
----
-2099

skipif mysql # not compatible
query I rowsort label-2142
SELECT - 28 * + 75 + COUNT ( * ) AS col0
----
-2099

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT + NULLIF ( ( + 18 ), COALESCE ( 39, + ( ( COUNT( * ) ) ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + NULLIF ( ( + 18 ), COALESCE ( 39, + ( ( COUNT ( * ) ) ) ) )
----
18

query I rowsort
SELECT DISTINCT + 25 * - 77
----
-1925

query I rowsort
SELECT DISTINCT - 64 * + 11 + 28
----
-676

query I rowsort
SELECT COALESCE ( - 18, 58 ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - 49 + COUNT( * ) * - 70 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-2147
SELECT - 49 + COUNT ( * ) * - 70 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL + COUNT( * ) * + 68 + 81 * 86
----
7034

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + COUNT ( * ) * + 68 + 81 * 86
----
7034

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT - 61 * - MAX( ALL ( 0 ) * - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT - 61 * - MAX ( ALL ( 0 ) * - 26 )
----
0

query I rowsort
SELECT NULLIF ( 50, - 83 )
----
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL CAST( 54 AS SIGNED ) col2
----
54

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL CAST ( 54 AS INTEGER ) col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT - SUM( DISTINCT 63 ) DIV - 16 col2
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT - SUM ( DISTINCT 63 ) / - 16 col2
----
3

query I rowsort
SELECT + 53 * + 29
----
1537

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

query I rowsort
SELECT DISTINCT - ( - ( 72 ) ) * - 10 AS col1
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT + + 12 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT + + 12 / - 48 AS col0
----
0

query I rowsort
SELECT DISTINCT 22 col1
----
22

query I rowsort
SELECT + + 62 + 55
----
117

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

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

query I rowsort
SELECT + 56 * 84 AS col0
----
4704

query I rowsort
SELECT - 0 * - ( 95 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL 39 * + CASE - 24 + 96 WHEN 46 THEN - COUNT( 1 ) * ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL 39 * + CASE - 24 + 96 WHEN 46 THEN - COUNT ( 1 ) * ( COUNT ( * ) ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 66 * 76 AS col2
----
5016

query I rowsort
SELECT + + 10 * ( 79 ) col0
----
790

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2167
SELECT ALL + CAST( NULL AS DECIMAL ) + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + CAST ( NULL AS REAL ) + + 55
----
NULL

query I rowsort
SELECT + 58 + 0 AS col2
----
58

query I rowsort
SELECT 84 * - - 70 AS col0
----
5880

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT 1 DIV 38 + - 42 col0
----
-42

skipif mysql # not compatible
query I rowsort label-2170
SELECT 1 / 38 + - 42 col0
----
-42

query I rowsort
SELECT DISTINCT 86 + + - 26
----
60

query I rowsort
SELECT ALL 21 + 86
----
107

query I rowsort
SELECT 10 * 72
----
720

query I rowsort
SELECT 45 + + 46
----
91

query I rowsort
SELECT DISTINCT - 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + 65 + + NULLIF ( 5, MIN( + 60 ) )
----
70

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + 65 + + NULLIF ( 5, MIN ( + 60 ) )
----
70

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

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

query I rowsort
SELECT ALL 85 + + 34 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT COUNT( * ) * + + ( + 5 ) * 86 AS col1
----
430

skipif mysql # not compatible
query I rowsort label-2179
SELECT COUNT ( * ) * + + ( + 5 ) * 86 AS col1
----
430

query I rowsort
SELECT ALL + 38 + - 98
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT 54 DIV ( 86 ) * - 10
----
0

skipif mysql # not compatible
query I rowsort label-2181
SELECT 54 / ( 86 ) * - 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT COALESCE ( - AVG ( - 88 ), 24 ) * CASE 45 WHEN + 67 THEN 22 + 3 * + CASE WHEN NOT NULL NOT IN ( + 37 ) THEN 47 WHEN NOT NULL BETWEEN 80 AND ( MIN( 50 ) ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT COALESCE ( - AVG ( - 88 ), 24 ) * CASE 45 WHEN + 67 THEN 22 + 3 * + CASE WHEN NOT NULL NOT IN ( + 37 ) THEN 47 WHEN NOT NULL BETWEEN 80 AND ( MIN ( 50 ) ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END END
----
NULL

query I rowsort
SELECT 61 * - - 0
----
0

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

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - SUM ( DISTINCT - 3 )
----
3

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

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

query I rowsort
SELECT ALL - + 39 - - 49 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + MAX( - 8 ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-2187
SELECT + MAX ( - 8 ) col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2188
SELECT - 57 * - + COUNT( * ) DIV CAST( + COUNT( * ) AS SIGNED ) AS col1
----
57

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

query I rowsort
SELECT 58 + 0 AS col1
----
58

query I rowsort
SELECT DISTINCT - - 97 * 94 AS col1
----
9118

query I rowsort
SELECT 6 + - + 36
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT 50 DIV - 39 + 87
----
86

skipif mysql # not compatible
query I rowsort label-2192
SELECT 50 / - 39 + 87
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT COUNT( * ) * + + 92 DIV COALESCE ( - 88, - 96 * 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-2193
SELECT COUNT ( * ) * + + 92 / COALESCE ( - 88, - 96 * 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT - MAX( ALL - + 69 ) + + 85 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-2194
SELECT - MAX ( ALL - + 69 ) + + 85 AS col0
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT DISTINCT - - NULLIF ( + + CAST( NULL AS SIGNED ), 6 ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT - - NULLIF ( + + CAST ( NULL AS INTEGER ), 6 ) * 70
----
NULL

query I rowsort
SELECT ALL + 9 + + + 7 * 3 AS col2
----
30

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

skipif mysql # not compatible
query I rowsort label-2197
SELECT COUNT ( * ) / 14 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT DISTINCT - + CAST( - - 91 AS SIGNED ) + + COUNT( * ) * 16 col1
----
-75

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - + CAST ( - - 91 AS INTEGER ) + + COUNT ( * ) * 16 col1
----
-75

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

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

query I rowsort
SELECT ALL 73 + 97
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT + 47 + 26 DIV - SUM( - 37 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2201
SELECT + 47 + 26 / - SUM ( - 37 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT 9 / + + CASE 94 WHEN - 57 THEN NULL WHEN + 90 THEN - COUNT( * ) END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT 9 / + + CASE 94 WHEN - 57 THEN NULL WHEN + 90 THEN - COUNT ( * ) END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2203
SELECT - SUM( ALL + 57 ) DIV 33 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2203
SELECT - SUM ( ALL + 57 ) / 33 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT ALL 45 + + ( + CAST( NULL AS SIGNED ) ) + ( - 54 + - 60 ) * + 84 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL 45 + + ( + CAST ( NULL AS INTEGER ) ) + ( - 54 + - 60 ) * + 84 * - 41
----
NULL

query I rowsort
SELECT 0 - - 21 AS col0
----
21

query II rowsort
SELECT 45 AS col2, - 53 AS col0
----
45
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT ALL 25, 69 - - SUM( DISTINCT - 19 ) col0
----
25
50

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL 25, 69 - - SUM ( DISTINCT - 19 ) col0
----
25
50

query I rowsort
SELECT DISTINCT - ( - 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL - 70 + - COUNT( - 11 ) + + 15 * 32 * + 20 AS col1
----
9529

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - 70 + - COUNT ( - 11 ) + + 15 * 32 * + 20 AS col1
----
9529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2210
SELECT + 82, + 73 * + 44 * COALESCE ( CAST( NULL AS SIGNED ), - 99 ) AS col0
----
82
-317988

skipif mysql # not compatible
query II rowsort label-2210
SELECT + 82, + 73 * + 44 * COALESCE ( CAST ( NULL AS INTEGER ), - 99 ) AS col0
----
82
-317988

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT DISTINCT - SUM( - - 53 ) + - - 37 * 77
----
2796

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - SUM ( - - 53 ) + - - 37 * 77
----
2796

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2213
SELECT MAX( ALL + - 3 ) DIV - 61 * 44 - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2213
SELECT MAX ( ALL + - 3 ) / - 61 * 44 - + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL MAX( + 0 ) - + 44 + + 82 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL MAX ( + 0 ) - + 44 + + 82 AS col1
----
38

query I rowsort
SELECT - 20 * - 42 + - + 68 AS col0
----
772

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

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

query I rowsort
SELECT DISTINCT - 96 col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT - 64 * + 96 + - 56 DIV + COUNT( * ) AS col2
----
-6200

skipif mysql # not compatible
query I rowsort label-2218
SELECT - 64 * + 96 + - 56 / + COUNT ( * ) AS col2
----
-6200

query I rowsort
SELECT CASE - + 36 WHEN 57 THEN 35 * + ( - 85 ) WHEN + 60 + - 76 THEN 31 - + 60 WHEN CASE 24 WHEN 84 * 94 THEN NULL WHEN - 70 THEN NULL WHEN - 41 THEN + 53 ELSE NULL END * + 83 + - 52 THEN NULL END * 52 AS col2
----
NULL

query I rowsort
SELECT 44 + + + 49 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2221
SELECT CASE MAX( + COALESCE ( - 83, 42 ) ) WHEN + 31 THEN 46 + + CAST( 4 AS DECIMAL ) WHEN CASE COUNT( * ) WHEN - 63 * 25 - 76 THEN + COUNT( * ) END / 55 THEN NULL WHEN - 76 THEN 65 * + 54 END + COALESCE ( COUNT( * ), + 91, + 52 + 40 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT CASE MAX ( + COALESCE ( - 83, 42 ) ) WHEN + 31 THEN 46 + + CAST ( 4 AS REAL ) WHEN CASE COUNT ( * ) WHEN - 63 * 25 - 76 THEN + COUNT ( * ) END / 55 THEN NULL WHEN - 76 THEN 65 * + 54 END + COALESCE ( COUNT ( * ), + 91, + 52 + 40 ) AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 71 * - 95
----
-6745

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

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

query I rowsort
SELECT 72 * NULLIF ( - 67, - 39 ) AS col2
----
-4824

query I rowsort
SELECT ALL - 98 * + - 59 col1
----
5782

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

query I rowsort
SELECT 52 * - 89
----
-4628

query I rowsort
SELECT ALL CASE - + 65 WHEN + 48 THEN NULL ELSE - 11 END + + 82 AS col1
----
71

query I rowsort
SELECT ALL + 79 + - 74 * + 54 AS col0
----
-3917

query I rowsort
SELECT - + 77 + + 98 + - 36 + 29
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT COUNT( DISTINCT + - 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT COUNT ( DISTINCT + - 44 ) AS col0
----
1

query I rowsort
SELECT ALL + - 27 + + - 58 + - 13
----
-98

query I rowsort
SELECT - - NULLIF ( - 41, 54 ) + 93
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2237
SELECT - COUNT( * ) col1, CAST( NULL AS DECIMAL ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2237
SELECT - COUNT ( * ) col1, CAST ( NULL AS REAL ) AS col0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT - 28 + AVG ( - CAST( NULL AS SIGNED ) ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT - 28 + AVG ( - CAST ( NULL AS INTEGER ) ) * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - 4 + + MIN( ALL + 88 )
----
84

skipif mysql # not compatible
query I rowsort label-2239
SELECT - 4 + + MIN ( ALL + 88 )
----
84

query I rowsort
SELECT ALL + 38 + + 16 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - COUNT( - 57 ) + 0
----
-1

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - COUNT ( - 57 ) + 0
----
-1

query I rowsort
SELECT ALL 92 - + 79 + + 17
----
30

query I rowsort
SELECT - 97 + - 40
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - MIN( ( - - 62 ) ) * + 64 AS col2
----
-3968

skipif mysql # not compatible
query I rowsort label-2244
SELECT - MIN ( ( - - 62 ) ) * + 64 AS col2
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL + MAX( + CASE + 83 WHEN 93 THEN 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL + MAX ( + CASE + 83 WHEN 93 THEN 12 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2246
SELECT ( - MIN ( - - 96 ) ) col0
----
-96

query I rowsort
SELECT - 61 * 11 AS col2
----
-671

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT - 20 * + 91 col1, - NULLIF ( COUNT( * ), 66 / - 16 ) + + NULLIF ( + 61 - 90, + 4 )
----
-1820
-30

skipif mysql # not compatible
query II rowsort label-2248
SELECT - 20 * + 91 col1, - NULLIF ( COUNT ( * ), 66 / - 16 ) + + NULLIF ( + 61 - 90, + 4 )
----
-1820
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT + ( + COUNT( 47 ) ) + - 91 * + 45 AS col0
----
-4094

skipif mysql # not compatible
query I rowsort label-2249
SELECT + ( + COUNT ( 47 ) ) + - 91 * + 45 AS col0
----
-4094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2250
SELECT ALL + SUM( 1 ) DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + SUM ( 1 ) / 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT COALESCE ( ( + + 49 ), + SUM( 25 ) * + 10 )
----
49

skipif mysql # not compatible
query I rowsort label-2251
SELECT COALESCE ( ( + + 49 ), + SUM ( 25 ) * + 10 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT + ( - 57 ) DIV 68 * + 60 * - 53 - + MAX( ALL 21 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT + ( - 57 ) / 68 * + 60 * - 53 - + MAX ( ALL 21 ) / 72 AS col1
----
0

query I rowsort
SELECT CASE + + 68 WHEN - 36 THEN + 53 - - 96 ELSE 53 END
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL 26 * COUNT( * ) * + - CASE COUNT( * ) WHEN COUNT( * ) THEN + 81 WHEN COUNT( * ) THEN NULL END
----
-2106

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL 26 * COUNT ( * ) * + - CASE COUNT ( * ) WHEN COUNT ( * ) THEN + 81 WHEN COUNT ( * ) THEN NULL END
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT DISTINCT + MAX( + ( - 27 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT + MAX ( + ( - 27 ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + MIN( - 34 ) * + 5 AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-2256
SELECT + MIN ( - 34 ) * + 5 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT CASE + MAX( DISTINCT 7 ) WHEN 86 THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT CASE + MAX ( DISTINCT 7 ) WHEN 86 THEN 54 END
----
NULL

query I rowsort
SELECT ALL + 3 * + - 10 * ( + 53 )
----
-1590

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT DISTINCT 60 * - + COUNT( DISTINCT - 97 ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT 60 * - + COUNT ( DISTINCT - 97 ) col0
----
-60

query I rowsort
SELECT - 30 * + + 21 - + 72 AS col1
----
-702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT - COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + + 33 * + 49 * - ( + 40 )
----
-64680

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL ( 0 ) * - 41 + + 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL ( 0 ) * - 41 + + 68 * + COUNT ( * )
----
68

query I rowsort
SELECT + - 64 - + 98 col2
----
-162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2266
SELECT + 75 DIV + + 60, CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2266
SELECT + 75 / + + 60, CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - MAX( - - 8 ) * 40 + + 92 AS col2
----
-228

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - MAX ( - - 8 ) * 40 + + 92 AS col2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT + + CASE 16 WHEN + + 98 * - 88 THEN NULL WHEN COUNT( * ) THEN + ( 4 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + + CASE 16 WHEN + + 98 * - 88 THEN NULL WHEN COUNT ( * ) THEN + ( 4 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT - ( + + 60 ) * COUNT( * ) + + - 86 + - 44 * + 17 AS col1
----
-894

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - ( + + 60 ) * COUNT ( * ) + + - 86 + - 44 * + 17 AS col1
----
-894

query I rowsort
SELECT ALL + 75 * - 66 * + 37 + 10
----
-183140

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT NULLIF ( - 89, + COUNT( * ) + + - COALESCE ( - 82, 18 * 53, - 49 / 48 + + 75 * + 0 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2271
SELECT NULLIF ( - 89, + COUNT ( * ) + + - COALESCE ( - 82, 18 * 53, - 49 / 48 + + 75 * + 0 ) )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2272
SELECT ALL - COUNT( * ) DIV + + 95, - 2 + - + 35 + CASE 96 WHEN - 97 * + 20 THEN 50 * 23 WHEN NULLIF ( 52, 44 - COUNT( * ) ) THEN NULL END col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2272
SELECT ALL - COUNT ( * ) / + + 95, - 2 + - + 35 + CASE 96 WHEN - 97 * + 20 THEN 50 * 23 WHEN NULLIF ( 52, 44 - COUNT ( * ) ) THEN NULL END col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT 53 * 75 + MAX( 8 )
----
3983

skipif mysql # not compatible
query I rowsort label-2273
SELECT 53 * 75 + MAX ( 8 )
----
3983

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT DISTINCT MAX( DISTINCT + ( 98 ) ) + + 91 - + 54 * - 83
----
4671

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT MAX ( DISTINCT + ( 98 ) ) + + 91 - + 54 * - 83
----
4671

query I rowsort
SELECT + - ( 50 ) * - + 71 col1
----
3550

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL + 93 + + MAX( 38 )
----
131

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL + 93 + + MAX ( 38 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT CASE WHEN NOT NULL IS NULL THEN NULLIF ( + + 42, + MIN( - 78 ) - 90 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT CASE WHEN NOT NULL IS NULL THEN NULLIF ( + + 42, + MIN ( - 78 ) - 90 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL MIN( - 78 ) - + + 24 + + 47 * COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL MIN ( - 78 ) - + + 24 + + 47 * COUNT ( * ) col0
----
-55

query II rowsort
SELECT - 69, + 42 AS col2
----
-69
42

query I rowsort
SELECT ALL - 52 - + - 24 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT SUM( + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT SUM ( + 43 ) AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT - CAST( + MIN( + + ( + - 67 ) ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-2283
SELECT - CAST ( + MIN ( + + ( + - 67 ) ) AS INTEGER )
----
67

query I rowsort
SELECT ALL + NULLIF ( - 53, 86 * 88 ) * 40 col1
----
-2120

query I rowsort
SELECT + 62 - + + 71 + - 52
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT - 38 - - NULLIF ( + MAX( ALL + 58 ), + 46 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 38 - - NULLIF ( + MAX ( ALL + 58 ), + 46 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - MIN( ALL + - 0 ) * + - 82 * + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT - MIN ( ALL + - 0 ) * + - 82 * + 97 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT + CASE - - 82 WHEN - 72 THEN + COUNT( * ) END * 93 + 86 / - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + CASE - - 82 WHEN - 72 THEN + COUNT ( * ) END * 93 + 86 / - 47
----
NULL

query I rowsort
SELECT ( 43 ) * + + ( + 39 ) - - 86 AS col1
----
1763

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT - CASE - 7 WHEN + + 42 THEN 21 WHEN - SUM( 28 ) THEN - 38 WHEN 20 + NULLIF ( SUM( ALL 4 ), + ( COUNT( * ) ) * 4 ) THEN NULL END - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT - CASE - 7 WHEN + + 42 THEN 21 WHEN - SUM ( 28 ) THEN - 38 WHEN 20 + NULLIF ( SUM ( ALL 4 ), + ( COUNT ( * ) ) * 4 ) THEN NULL END - 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT 17 * + COUNT( * ) * + COUNT( * ) + ( 22 )
----
39

skipif mysql # not compatible
query I rowsort label-2292
SELECT 17 * + COUNT ( * ) * + COUNT ( * ) + ( 22 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2293
SELECT 68 * 13 DIV - 90 + + 96 DIV 57 * + COALESCE ( 24, - 79 ) + - COUNT( * ) * 33 + COALESCE ( 44 + COALESCE ( ( - 7 ), - 20 ) * COUNT( * ), - 88 * - 8 + 57, ( + NULLIF ( - COUNT( * ), CASE - 86 WHEN 66 THEN - COUNT( * ) WHEN 7 THEN + 39 END * 27 ) ) + - 70 )
----
19

skipif mysql # not compatible
query I rowsort label-2293
SELECT 68 * 13 / - 90 + + 96 / 57 * + COALESCE ( 24, - 79 ) + - COUNT ( * ) * 33 + COALESCE ( 44 + COALESCE ( ( - 7 ), - 20 ) * COUNT ( * ), - 88 * - 8 + 57, ( + NULLIF ( - COUNT ( * ), CASE - 86 WHEN 66 THEN - COUNT ( * ) WHEN 7 THEN + 39 END * 27 ) ) + - 70 )
----
19

query I rowsort
SELECT + + 4 * + - 72
----
-288

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

skipif mysql # not compatible
query I rowsort label-2295
SELECT + COUNT ( * ) / + - COUNT ( * ) + + 61 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT DISTINCT - 29 DIV - 61 + 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - 29 / - 61 + 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + 69 * 46 + - COUNT( * ) * - - 72 + - CASE + CASE 97 WHEN COUNT( * ) THEN 58 WHEN - 94 THEN NULL END WHEN 48 THEN ( MAX( DISTINCT ( + 28 ) ) ) WHEN COALESCE ( 17, + 95 * - 52 - 25 ) + - 49 THEN 6 * - 22 WHEN 65 - - 38 * - COALESCE ( - 88, - 91 + + 43 * 41 ) THEN ( - 48 ) * - COALESCE ( 29 * - MAX( 68 ), + 26 + + 67 * - 28 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 69 * 46 + - COUNT ( * ) * - - 72 + - CASE + CASE 97 WHEN COUNT ( * ) THEN 58 WHEN - 94 THEN NULL END WHEN 48 THEN ( MAX ( DISTINCT ( + 28 ) ) ) WHEN COALESCE ( 17, + 95 * - 52 - 25 ) + - 49 THEN 6 * - 22 WHEN 65 - - 38 * - COALESCE ( - 88, - 91 + + 43 * 41 ) THEN ( - 48 ) * - COALESCE ( 29 * - MAX ( 68 ), + 26 + + 67 * - 28 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT ALL 60 DIV + 92 + - 58 col2
----
-58

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL 60 / + 92 + - 58 col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2299
SELECT ALL + COUNT( * ) * + CASE - 40 WHEN - - CAST( NULL AS DECIMAL ) THEN + + 96 + + 13 * COALESCE ( - 30 / 27, - COUNT( * ), + COUNT( * ) * + 99 ) END + + 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL + COUNT ( * ) * + CASE - 40 WHEN - - CAST ( NULL AS REAL ) THEN + + 96 + + 13 * COALESCE ( - 30 / 27, - COUNT ( * ), + COUNT ( * ) * + 99 ) END + + 43 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + CASE + MAX( - + 33 ) WHEN + 36 THEN - - 86 + ( 50 ) WHEN COUNT( * ) + + 61 THEN 32 WHEN 17 THEN 69 ELSE NULL END * 88 + 45 / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT + CASE + MAX ( - + 33 ) WHEN + 36 THEN - - 86 + ( 50 ) WHEN COUNT ( * ) + + 61 THEN 32 WHEN 17 THEN 69 ELSE NULL END * 88 + 45 / 45
----
NULL

query I rowsort
SELECT ALL - ( 30 ) col2
----
-30

query I rowsort
SELECT ( + 72 ) * + 3
----
216

query I rowsort
SELECT + 0 + + - 58 * - 20 AS col2
----
1160

query I rowsort
SELECT DISTINCT 78 + + 68 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT + 27 + + COUNT( * ) + - 4 + 7 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 27 + + COUNT ( * ) + - 4 + 7 AS col0
----
31

query I rowsort
SELECT - 66 * 12 * + 3
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT 50 * - MIN( + 64 )
----
-3200

skipif mysql # not compatible
query I rowsort label-2307
SELECT 50 * - MIN ( + 64 )
----
-3200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT - 52 * - - 45 - - 7 DIV + - 92 * 11 + + NULLIF ( COUNT( * ), - COUNT( * ) ) * 27
----
-2313

skipif mysql # not compatible
query I rowsort label-2308
SELECT - 52 * - - 45 - - 7 / + - 92 * 11 + + NULLIF ( COUNT ( * ), - COUNT ( * ) ) * 27
----
-2313

onlyif mysql # aggregate syntax: 
query III rowsort label-2309
SELECT DISTINCT 76 AS col1, + 83 * COUNT( * ) AS col2, + 50 + + 17 AS col1
----
76
83
67

skipif mysql # not compatible
query III rowsort label-2309
SELECT DISTINCT 76 AS col1, + 83 * COUNT ( * ) AS col2, + 50 + + 17 AS col1
----
76
83
67

query I rowsort
SELECT ALL + + 81 - - 28 + 70 AS col1
----
179

query II rowsort
SELECT 59, + 33 * - ( + 93 ) AS col0
----
59
-3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT ALL - 61 - - CAST( - - 60 AS SIGNED ) + 22 + + NULLIF ( 88, - 8 + + 27 ) * + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - 61 - - CAST ( - - 60 AS INTEGER ) + 22 + + NULLIF ( 88, - 8 + + 27 ) * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2314
SELECT - 67, COUNT( * ) DIV 26 AS col0
----
-67
0

skipif mysql # not compatible
query II rowsort label-2314
SELECT - 67, COUNT ( * ) / 26 AS col0
----
-67
0

query I rowsort
SELECT DISTINCT 21 * + 74 AS col0
----
1554

query I rowsort
SELECT 19 * + 89
----
1691

onlyif mysql # aggregate syntax: 
query II rowsort label-2317
SELECT 54 * - + NULLIF ( + 83, - COUNT( * ) ) AS col0, + 88
----
-4482
88

skipif mysql # not compatible
query II rowsort label-2317
SELECT 54 * - + NULLIF ( + 83, - COUNT ( * ) ) AS col0, + 88
----
-4482
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT ALL CAST( NULL AS SIGNED ) - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL CAST ( NULL AS INTEGER ) - - 50
----
NULL

query I rowsort
SELECT NULLIF ( - 29, 51 ) * - 63 * + 84 AS col1
----
153468

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT NULLIF ( + MIN( ALL + + 95 ), 52 * 34 * 29 - - SUM( DISTINCT - ( - 83 ) ) * - 54 ) + - COUNT( * ) * 83 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2320
SELECT NULLIF ( + MIN ( ALL + + 95 ), 52 * 34 * 29 - - SUM ( DISTINCT - ( - 83 ) ) * - 54 ) + - COUNT ( * ) * 83 AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT 73 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-2321
SELECT 73 / - 80
----
0

query I rowsort
SELECT DISTINCT ( + - 58 ) * + NULLIF ( + 15, 17 / - 71 ) - 52 AS col2
----
-922

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT CAST( - 68 AS SIGNED ) * 49 AS col0
----
-3332

skipif mysql # not compatible
query I rowsort label-2324
SELECT CAST ( - 68 AS INTEGER ) * 49 AS col0
----
-3332

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT - 99 AS col2, + 87 * - ( - - 9 ) * - COUNT( DISTINCT 66 ) + 43 AS col2
----
-99
826

skipif mysql # not compatible
query II rowsort label-2325
SELECT - 99 AS col2, + 87 * - ( - - 9 ) * - COUNT ( DISTINCT 66 ) + 43 AS col2
----
-99
826

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT 44 * - - 16 * - CASE + 36 WHEN COUNT( * ) + - + 97 + 85 THEN COUNT( ALL 11 ) + 13 WHEN + 97 + 15 THEN 59 WHEN + 32 THEN 22 + - ( 52 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT 44 * - - 16 * - CASE + 36 WHEN COUNT ( * ) + - + 97 + 85 THEN COUNT ( ALL 11 ) + 13 WHEN + 97 + 15 THEN 59 WHEN + 32 THEN 22 + - ( 52 ) END col1
----
NULL

query I rowsort
SELECT 79 + - 85
----
-6

query I rowsort
SELECT ALL + 13 + - 2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT 85 AS col2, + ( + 16 ) - + + 95 * - COUNT( * ) + CASE - COUNT( * ) WHEN 56 THEN NULLIF ( - ( - 62 ), - 74 ) END
----
85
NULL

skipif mysql # not compatible
query II rowsort label-2329
SELECT 85 AS col2, + ( + 16 ) - + + 95 * - COUNT ( * ) + CASE - COUNT ( * ) WHEN 56 THEN NULLIF ( - ( - 62 ), - 74 ) END
----
85
NULL

query II rowsort
SELECT + 10 AS col0, 56
----
10
56

query I rowsort
SELECT 98 * - 31 AS col0
----
-3038

query I rowsort
SELECT 69 * 3
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT + 91 + - 35 - + CAST( - - 43 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-2333
SELECT + 91 + - 35 - + CAST ( - - 43 AS INTEGER )
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL + + COUNT( * ) + - 87 + - 84 col0
----
-170

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + + COUNT ( * ) + - 87 + - 84 col0
----
-170

query I rowsort
SELECT ALL + 42 + + + 22
----
64

query I rowsort
SELECT DISTINCT 9 * - 99 AS col2
----
-891

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

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

query II rowsort
SELECT 0, - ( - 75 ) AS col2
----
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT + 14 DIV - 78 * 82 * - + 52 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 14 / - 78 * 82 * - + 52 * + 49
----
0

query I rowsort
SELECT ALL - - 20 + + 7 AS col1
----
27

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

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

query II rowsort
SELECT + 15, - 45 col1
----
15
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL + ( + 49 ) - - SUM( DISTINCT - 99 ) * COUNT( * ) * + + 81 AS col0
----
-7970

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + ( + 49 ) - - SUM ( DISTINCT - 99 ) * COUNT ( * ) * + + 81 AS col0
----
-7970

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT DISTINCT - 68 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT - 68 / - 88 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT NULLIF ( COUNT( ALL + CAST( - + 54 AS SIGNED ) ), - + 15 / 3 * 26 + 72 ) * - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2346
SELECT NULLIF ( COUNT ( ALL + CAST ( - + 54 AS INTEGER ) ), - + 15 / 3 * 26 + 72 ) * - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - NULLIF ( 70, + + 15 * COUNT( * ) / + 13 * 93 * - 93 + 18 ) * - 56
----
3920

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - NULLIF ( 70, + + 15 * COUNT ( * ) / + 13 * 93 * - 93 + 18 ) * - 56
----
3920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT DISTINCT - 24 DIV 38 * + 17 DIV - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT - 24 / 38 * + 17 / - - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT ALL - 65 - - + COALESCE ( + 35, + ( 73 ) DIV 55 * 53 ) - - 8 * 75
----
570

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - 65 - - + COALESCE ( + 35, + ( 73 ) / 55 * 53 ) - - 8 * 75
----
570

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

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

query I rowsort
SELECT ALL - 85 - + 17 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT + - 99 AS col2, - SUM( - NULLIF ( - + 52, - 28 ) ) * + 0 + 65
----
-99
65

skipif mysql # not compatible
query II rowsort label-2352
SELECT + - 99 AS col2, - SUM ( - NULLIF ( - + 52, - 28 ) ) * + 0 + 65
----
-99
65

query II rowsort
SELECT ALL - - 56 AS col0, 8
----
56
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL - COUNT( * ) * + 66 * + + 25 col0
----
-1650

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL - COUNT ( * ) * + 66 * + + 25 col0
----
-1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2355
SELECT + COUNT( * ) * + 1 + 66 * 25 DIV - 88 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2355
SELECT + COUNT ( * ) * + 1 + 66 * 25 / - 88 AS col2
----
-17

query I rowsort
SELECT 45 + 87
----
132

query I rowsort
SELECT DISTINCT - ( - 32 ) * 40 AS col1
----
1280

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

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

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

skipif mysql # not compatible
query I rowsort label-2359
SELECT 29 * - COUNT ( * )
----
-29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT 32 + - 3 + - 51 * - COUNT( ALL + 22 ) * - + 67 * - - 82 * - 94
----
26338265

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT 32 + - 3 + - 51 * - COUNT ( ALL + 22 ) * - + 67 * - - 82 * - 94
----
26338265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2363
SELECT 44 DIV - 62 AS col2, - CAST( NULL AS SIGNED ) DIV - 88 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2363
SELECT 44 / - 62 AS col2, - CAST ( NULL AS INTEGER ) / - 88 AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT SUM( ALL + 77 ) * + - 65 - - CASE - + 4 WHEN COUNT( ALL 76 ) * 30 + + CASE 51 WHEN 78 * - 55 THEN COUNT( * ) WHEN - 95 + - 33 THEN NULL ELSE NULL END THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT SUM ( ALL + 77 ) * + - 65 - - CASE - + 4 WHEN COUNT ( ALL 76 ) * 30 + + CASE 51 WHEN 78 * - 55 THEN COUNT ( * ) WHEN - 95 + - 33 THEN NULL ELSE NULL END THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 67 + - 20 AS col2
----
47

query I rowsort
SELECT 60 - - - 73
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT DISTINCT 60 * + 20 AS col2, + MAX( + 54 ) * ( + + MIN( + 39 ) ) AS col0
----
1200
2106

skipif mysql # not compatible
query II rowsort label-2367
SELECT DISTINCT 60 * + 20 AS col2, + MAX ( + 54 ) * ( + + MIN ( + 39 ) ) AS col0
----
1200
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT MAX( DISTINCT 67 ) - - - 46 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2368
SELECT MAX ( DISTINCT 67 ) - - - 46 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT NULLIF ( 11, + ( + - 41 ) * MAX( DISTINCT - + 21 ) - - - 30 ) * 29 AS col2
----
319

skipif mysql # not compatible
query I rowsort label-2369
SELECT NULLIF ( 11, + ( + - 41 ) * MAX ( DISTINCT - + 21 ) - - - 30 ) * 29 AS col2
----
319

query I rowsort
SELECT DISTINCT ( - - 31 ) * ( - 62 )
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + + MIN( - 98 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-2371
SELECT + + MIN ( - 98 ) col2
----
-98

query I rowsort
SELECT - 68 - - ( 55 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL 81 * + NULLIF ( MAX( DISTINCT 39 ), + AVG ( ALL - COALESCE ( - + 76, 3 ) ) ) + + 11 - - 81
----
3251

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL 81 * + NULLIF ( MAX ( DISTINCT 39 ), + AVG ( ALL - COALESCE ( - + 76, 3 ) ) ) + + 11 - - 81
----
3251

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT + 85 * 18 + + 5 + - CASE + COUNT( * ) WHEN SUM( + 34 ) - 62 * - 11 THEN NULL WHEN - 36 THEN - 93 + 83 ELSE NULL END + 44 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT + 85 * 18 + + 5 + - CASE + COUNT ( * ) WHEN SUM ( + 34 ) - 62 * - 11 THEN NULL WHEN - 36 THEN - 93 + 83 ELSE NULL END + 44 * 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2375
SELECT - - COUNT( * ) * + 43, MIN( + 88 ) * - 32 + CAST( NULL AS SIGNED ) * - - 48 * - 74 + 5 AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-2375
SELECT - - COUNT ( * ) * + 43, MIN ( + 88 ) * - 32 + CAST ( NULL AS INTEGER ) * - - 48 * - 74 + 5 AS col0
----
43
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2376
SELECT DISTINCT - COALESCE ( 99, - + 64 * + 44 DIV - + 9 * - + 56 ) * - - MIN( 10 ) col2
----
-990

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - COALESCE ( 99, - + 64 * + 44 / - + 9 * - + 56 ) * - - MIN ( 10 ) col2
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT - 97 DIV 41 * 26 + - + 36 + 95 + + COUNT( * ) * - ( - 42 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2377
SELECT - 97 / 41 * 26 + - + 36 + 95 + + COUNT ( * ) * - ( - 42 ) AS col2
----
49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT ALL - - 18 * + 95 * + COUNT( * ), 62 + - 30 * 28 AS col1
----
1710
-778

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL - - 18 * + 95 * + COUNT ( * ), 62 + - 30 * 28 AS col1
----
1710
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + + NULLIF ( 87, COUNT( * ) ) + - 83
----
4

skipif mysql # not compatible
query I rowsort label-2380
SELECT + + NULLIF ( 87, COUNT ( * ) ) + - 83
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT ALL 1 * + 11 DIV - 59 - + 88
----
-88

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL 1 * + 11 / - 59 - + 88
----
-88

query I rowsort
SELECT DISTINCT + + 22
----
22

query I rowsort
SELECT ALL + 90 * + + 69 + - + 59 * + ( + 62 ) + + 3 - + - 50
----
2605

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

query I rowsort
SELECT ALL 45 * - 53 AS col2
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - COUNT( * ) * - 2 + 83 + - 94
----
-9

skipif mysql # not compatible
query I rowsort label-2386
SELECT - COUNT ( * ) * - 2 + 83 + - 94
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2387
SELECT DISTINCT + + ( - COUNT( * ) ) AS col1, + COUNT( * ) DIV 21 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-2387
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col1, + COUNT ( * ) / 21 col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT - COUNT( * ) + + 41 * + + 63 AS col1
----
2582

skipif mysql # not compatible
query I rowsort label-2388
SELECT - COUNT ( * ) + + 41 * + + 63 AS col1
----
2582

query II rowsort
SELECT DISTINCT + 96 AS col1, + 7
----
96
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2390
SELECT ALL + COUNT( * ) DIV + - 10 AS col0
----
0

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

query II rowsort
SELECT ALL + 3 col2, - 94 col2
----
3
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT 48 * 63 * - SUM( + 29 ) + + 38
----
-87658

skipif mysql # not compatible
query I rowsort label-2392
SELECT 48 * 63 * - SUM ( + 29 ) + + 38
----
-87658

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT ALL + ( 34 ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + ( 34 ) / - 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2394
SELECT DISTINCT COUNT( * ) AS col1, 26 + + COUNT( * )
----
1
27

skipif mysql # not compatible
query II rowsort label-2394
SELECT DISTINCT COUNT ( * ) AS col1, 26 + + COUNT ( * )
----
1
27

query I rowsort
SELECT ALL - 58 * 51 col0
----
-2958

query II rowsort
SELECT 32, 19 AS col1
----
32
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT DISTINCT + 30 + 54 + + 6 * + CAST( 87 AS SIGNED )
----
606

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + 30 + 54 + + 6 * + CAST ( 87 AS INTEGER )
----
606

query I rowsort
SELECT DISTINCT - 76 + - ( 23 ) - - + 89 + - 78 * 8 + 20 col1
----
-614

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

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

query I rowsort
SELECT DISTINCT + 13 + + + 1
----
14

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

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

query I rowsort
SELECT - 49 + + ( + - 97 ) + - 33
----
-179

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

query I rowsort
SELECT ALL + 86 + - 3
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT + 31 - + 69 + - + 30 * + 43 * + 96 * COUNT( * ) + 75 AS col2
----
-123803

skipif mysql # not compatible
query I rowsort label-2405
SELECT + 31 - + 69 + - + 30 * + 43 * + 96 * COUNT ( * ) + 75 AS col2
----
-123803

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - COALESCE ( - 38, + + 58 - - + ( + MIN( ALL + - ( - 15 ) ) ) ) + - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2407
SELECT - COALESCE ( - 38, + + 58 - - + ( + MIN ( ALL + - ( - 15 ) ) ) ) + - COUNT ( * ) AS col2
----
37

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

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

query I rowsort
SELECT DISTINCT ( - 83 ) AS col1
----
-83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT ALL + 34 DIV 36 * + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL + 34 / 36 * + 37 AS col1
----
0

query I rowsort
SELECT ALL + 59 - - 89 col2
----
148

query II rowsort
SELECT ALL 27 * + ( - 18 ), - 3 AS col0
----
-486
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT - - 79 DIV - 6 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2414
SELECT - - 79 / - 6 AS col0
----
-13

query I rowsort
SELECT + 75 * - - COALESCE ( + 65, + - 50 * 86 )
----
4875

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT + 89 + + COUNT( * ) + - 56 * + NULLIF ( 4, - COUNT( * ) - + - 37 + ( + COUNT( * ) ) * + 32 ) + + 94
----
-40

skipif mysql # not compatible
query I rowsort label-2417
SELECT + 89 + + COUNT ( * ) + - 56 * + NULLIF ( 4, - COUNT ( * ) - + - 37 + ( + COUNT ( * ) ) * + 32 ) + + 94
----
-40

query I rowsort
SELECT ALL + ( + + 48 ) * + 45 + - 8 - 38
----
2114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2419
SELECT DISTINCT + COUNT( * ) AS col2, - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2419
SELECT DISTINCT + COUNT ( * ) AS col2, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
1
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT ALL 16 * 76 - 46 + ( - ( CASE + 36 WHEN + + 77 - - 25 DIV 73 THEN NULL ELSE 35 DIV - 31 END ) ) AS col1
----
1171

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL 16 * 76 - 46 + ( - ( CASE + 36 WHEN + + 77 - - 25 / 73 THEN NULL ELSE 35 / - 31 END ) ) AS col1
----
1171

query I rowsort
SELECT + 55 * 34 + - - 44 + - 90 * 19 * + + 39
----
-64776

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

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

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

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

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

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

query I rowsort
SELECT + 98 - - + 68
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT + COUNT( * ) * COUNT( * ) AS col1, - 11 * + 9
----
1
-99

skipif mysql # not compatible
query II rowsort label-2428
SELECT + COUNT ( * ) * COUNT ( * ) AS col1, - 11 * + 9
----
1
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2429
SELECT ALL + 52 * 65 DIV - 55 + - - 73 + - + 70
----
-58

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + 52 * 65 / - 55 + - - 73 + - + 70
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT COALESCE ( CAST( - COALESCE ( - 77, + - 40 ) AS SIGNED ), + COUNT( * ) + + 95 )
----
77

skipif mysql # not compatible
query I rowsort label-2430
SELECT COALESCE ( CAST ( - COALESCE ( - 77, + - 40 ) AS INTEGER ), + COUNT ( * ) + + 95 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL 71 * COUNT( * ) * + ( ( + 62 ) ) + - COUNT( * ) AS col2
----
4401

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL 71 * COUNT ( * ) * + ( ( + 62 ) ) + - COUNT ( * ) AS col2
----
4401

query I rowsort
SELECT NULLIF ( - 57, + 65 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT - ( COUNT( * ) ) - 80 + + - 63 + COUNT( * ) AS col2, 52
----
-143
52

skipif mysql # not compatible
query II rowsort label-2433
SELECT - ( COUNT ( * ) ) - 80 + + - 63 + COUNT ( * ) AS col2, 52
----
-143
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT ALL 8 * + CAST( NULL AS SIGNED ) / - 93 + + COUNT( * ) / - 66 + - + 7 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 8 * + CAST ( NULL AS INTEGER ) / - 93 + + COUNT ( * ) / - 66 + - + 7 * + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2435
SELECT MIN( ALL - 8 ) AS col2, - 67
----
-8
-67

skipif mysql # not compatible
query II rowsort label-2435
SELECT MIN ( ALL - 8 ) AS col2, - 67
----
-8
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - ( + + 91 ) + - 57 + - - 73 * + CASE 76 WHEN - ( - 42 ) - + - ( + 97 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE 27 * 36 END AS col2
----
70808

skipif mysql # not compatible
query I rowsort label-2437
SELECT - ( + + 91 ) + - 57 + - - 73 * + CASE 76 WHEN - ( - 42 ) - + - ( + 97 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 27 * 36 END AS col2
----
70808

query I rowsort
SELECT DISTINCT - 82 + 11 * + + 65
----
633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL CAST( + 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL CAST ( + 16 AS INTEGER ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT - COUNT( DISTINCT - 0 ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - COUNT ( DISTINCT - 0 ) - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT + 67 + + 70 - - CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-2441
SELECT + 67 + + 70 - - CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
136

query I rowsort
SELECT DISTINCT + + 76 * - 8 AS col0
----
-608

query II rowsort
SELECT 35 - - 97, - 11 * - 39 * + 37 AS col0
----
132
15873

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT 94 * - - 34 * + COUNT( + + 76 )
----
3196

skipif mysql # not compatible
query I rowsort label-2444
SELECT 94 * - - 34 * + COUNT ( + + 76 )
----
3196

query I rowsort
SELECT - NULLIF ( ( 54 ), + 86 + 18 ) + + 2 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT SUM( 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT SUM ( 85 ) AS col0
----
85

query I rowsort
SELECT DISTINCT + COALESCE ( 52, 19 ) * 16 + - 23 * - - 25 * - 90
----
52582

query I rowsort
SELECT ALL - + 0 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2450
SELECT DISTINCT - CAST( - + 82 AS SIGNED ) * - ( + 20 ) * + - 35 + + + CASE - 49 WHEN - NULLIF ( + 89, + MAX( + ( - ( 26 ) ) ) ) THEN 52 + + 48 WHEN - 91 THEN NULL END * 64 + ( + 60 ) * + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - CAST ( - + 82 AS INTEGER ) * - ( + 20 ) * + - 35 + + + CASE - 49 WHEN - NULLIF ( + 89, + MAX ( + ( - ( 26 ) ) ) ) THEN 52 + + 48 WHEN - 91 THEN NULL END * 64 + ( + 60 ) * + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL - CASE - COALESCE ( + + ( 26 ), - NULLIF ( - 71, ( 51 ) ) + - 73 / + 20, ( 83 ) ) WHEN ( ( 10 ) ) + MIN( ALL NULLIF ( - ( 18 ), - COALESCE ( - 67, + 51 ) * + ( ( - 32 ) + + 60 ) ) ) * 73 THEN NULL WHEN COUNT( * ) THEN NULLIF ( MIN( + ( ( 51 ) ) ), 92 * 67 ) WHEN 62 / COALESCE ( - 85, 68, 46 + COUNT( * ) * + 56 ) THEN ( 79 ) * + MIN( ALL - 55 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL - CASE - COALESCE ( + + ( 26 ), - NULLIF ( - 71, ( 51 ) ) + - 73 / + 20, ( 83 ) ) WHEN ( ( 10 ) ) + MIN ( ALL NULLIF ( - ( 18 ), - COALESCE ( - 67, + 51 ) * + ( ( - 32 ) + + 60 ) ) ) * 73 THEN NULL WHEN COUNT ( * ) THEN NULLIF ( MIN ( + ( ( 51 ) ) ), 92 * 67 ) WHEN 62 / COALESCE ( - 85, 68, 46 + COUNT ( * ) * + 56 ) THEN ( 79 ) * + MIN ( ALL - 55 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL + - 59 DIV NULLIF ( + + 52, - 20 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + - 59 / NULLIF ( + + 52, - 20 ) AS col1
----
-1

query I rowsort
SELECT - 38 * + 42 + - 28 AS col0
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2454
SELECT + CAST( + - 78 AS SIGNED ) DIV + - ( + + 59 ) + + - 13 - - - CAST( + + COUNT( * ) AS SIGNED ) + + 73 * + 0 + + COUNT( * ) * + 32 col1
----
19

skipif mysql # not compatible
query I rowsort label-2454
SELECT + CAST ( + - 78 AS INTEGER ) / + - ( + + 59 ) + + - 13 - - - CAST ( + + COUNT ( * ) AS INTEGER ) + + 73 * + 0 + + COUNT ( * ) * + 32 col1
----
19

query I rowsort
SELECT - 33 + + - 17
----
-50

query I rowsort
SELECT DISTINCT - + 17 + 44 AS col0
----
27

query II rowsort
SELECT 62 col0, + 99 AS col2
----
62
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL 56 + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL 56 + COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT ALL 80 + 86 DIV MIN( ALL - 49 )
----
79

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL 80 + 86 / MIN ( ALL - 49 )
----
79

query I rowsort
SELECT ALL 39 + - - 77 AS col1
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT + COUNT( + 17 ) * + 43 + + COALESCE ( + COUNT( * ), + - 72 * - - 55 * - 24 ) + + COALESCE ( + COUNT( * ), + 12 + 76 DIV - 80 ) - COUNT( + 82 )
----
44

skipif mysql # not compatible
query I rowsort label-2461
SELECT + COUNT ( + 17 ) * + 43 + + COALESCE ( + COUNT ( * ), + - 72 * - - 55 * - 24 ) + + COALESCE ( + COUNT ( * ), + 12 + 76 / - 80 ) - COUNT ( + 82 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT ( + - 92 ) * - CASE - - 21 WHEN - ( + 98 ) THEN NULL ELSE CAST( NULL AS SIGNED ) / + 66 + COUNT( * ) + - - COUNT( 26 ) * + 1 END + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT ( + - 92 ) * - CASE - - 21 WHEN - ( + 98 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) / + 66 + COUNT ( * ) + - - COUNT ( 26 ) * + 1 END + + 63
----
NULL

query I rowsort
SELECT 83 + - - 78 - 67
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT CAST( - 38 AS SIGNED ) + - 0 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2464
SELECT CAST ( - 38 AS INTEGER ) + - 0 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL 3 + + 63 + + 76 + + 11 * + COUNT( + + 34 ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL 3 + + 63 + + 76 + + 11 * + COUNT ( + + 34 ) AS col1
----
153

query I rowsort
SELECT ( + 92 ) + 28 * + 76 AS col2
----
2220

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT ALL 40, - MIN( ALL - 85 ) * - 97 + - MAX( - 2 ) + - 83 AS col1
----
40
-8326

skipif mysql # not compatible
query II rowsort label-2467
SELECT ALL 40, - MIN ( ALL - 85 ) * - 97 + - MAX ( - 2 ) + - 83 AS col1
----
40
-8326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2468
SELECT CAST( - - 4 AS SIGNED ) * - COUNT( * ) + + 43 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2468
SELECT CAST ( - - 4 AS INTEGER ) * - COUNT ( * ) + + 43 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT ALL 84 * 78 * + 12 AS col2, - COUNT( * )
----
78624
-1

skipif mysql # not compatible
query II rowsort label-2469
SELECT ALL 84 * 78 * + 12 AS col2, - COUNT ( * )
----
78624
-1

query I rowsort
SELECT ALL 43 - - 91 AS col0
----
134

query I rowsort
SELECT DISTINCT 2 * - 2 AS col2
----
-4

query I rowsort
SELECT ALL 37 * + - 48
----
-1776

onlyif mysql # aggregate syntax: 
query II rowsort label-2473
SELECT 78 * - SUM( ALL + 61 ) AS col2, - 20 + - ( + COALESCE ( COUNT( * ), + 96 - - 27, 45 ) )
----
-4758
-21

skipif mysql # not compatible
query II rowsort label-2473
SELECT 78 * - SUM ( ALL + 61 ) AS col2, - 20 + - ( + COALESCE ( COUNT ( * ), + 96 - - 27, 45 ) )
----
-4758
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT 14 + - 73 + 98 * + 12 * COUNT( * )
----
1117

skipif mysql # not compatible
query I rowsort label-2474
SELECT 14 + - 73 + 98 * + 12 * COUNT ( * )
----
1117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2475
SELECT - 35 + - 6 - + NULLIF ( + 44, NULLIF ( NULLIF ( 99, COALESCE ( - ( - 8 ), + CASE 18 WHEN - CAST( - NULLIF ( + 53, 90 + 36 ) AS DECIMAL ) THEN - 87 WHEN - 45 * 97 THEN NULL END, 41 + - 41 ) ), - 27 + AVG ( + 45 ) / + ( 95 ) ) * 11 ) + 56 * + 0 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 35 + - 6 - + NULLIF ( + 44, NULLIF ( NULLIF ( 99, COALESCE ( - ( - 8 ), + CASE 18 WHEN - CAST ( - NULLIF ( + 53, 90 + 36 ) AS REAL ) THEN - 87 WHEN - 45 * 97 THEN NULL END, 41 + - 41 ) ), - 27 + AVG ( + 45 ) / + ( 95 ) ) * 11 ) + 56 * + 0 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - COALESCE ( - CASE 29 WHEN + COALESCE ( 16, - COALESCE ( - + 96, + 32 - - 50 ) / + - MAX( + 97 ) * 6 - CASE + 93 WHEN 8 / 62 THEN NULL WHEN - 80 THEN + 35 * 90 WHEN - 43 THEN 92 END ) / 40 THEN NULL WHEN - 8 THEN COUNT( * ) * + 25 ELSE NULL END, - 68, 86 ) * + 3
----
204

skipif mysql # not compatible
query I rowsort label-2476
SELECT - COALESCE ( - CASE 29 WHEN + COALESCE ( 16, - COALESCE ( - + 96, + 32 - - 50 ) / + - MAX ( + 97 ) * 6 - CASE + 93 WHEN 8 / 62 THEN NULL WHEN - 80 THEN + 35 * 90 WHEN - 43 THEN 92 END ) / 40 THEN NULL WHEN - 8 THEN COUNT ( * ) * + 25 ELSE NULL END, - 68, 86 ) * + 3
----
204

query II rowsort
SELECT 50 + + + 95 * - 34, 75 AS col0
----
-3180
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2478
SELECT - 92 - MIN( - + CAST( NULL AS DECIMAL ) ) - NULLIF ( + - 29, 91 * SUM( - 88 ) ) AS col2, 42 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-2478
SELECT - 92 - MIN ( - + CAST ( NULL AS REAL ) ) - NULLIF ( + - 29, 91 * SUM ( - 88 ) ) AS col2, 42 AS col0
----
NULL
42

query II rowsort
SELECT ALL + 53, - 77 AS col2
----
53
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT ALL - NULLIF ( + CAST( + CASE + 50 WHEN + 26 / AVG ( DISTINCT 13 ) + - 19 + 77 - + - 86 + + 84 * 41 THEN + COUNT( * ) + + 96 ELSE CAST( NULL AS SIGNED ) END AS SIGNED ), + 3 ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL - NULLIF ( + CAST ( + CASE + 50 WHEN + 26 / AVG ( DISTINCT 13 ) + - 19 + 77 - + - 86 + + 84 * 41 THEN + COUNT ( * ) + + 96 ELSE CAST ( NULL AS INTEGER ) END AS INTEGER ), + 3 ) * COUNT ( * ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2481
SELECT - COUNT ( * ) + - NULLIF ( - 71, COUNT ( * ) ) + + + 79 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2482
SELECT DISTINCT - - CAST( - 90 AS SIGNED ) / + COUNT( 27 ) + + ( - CAST( NULL AS DECIMAL ) ) - - 83 / - - NULLIF ( + 3, 68 + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT - - CAST ( - 90 AS INTEGER ) / + COUNT ( 27 ) + + ( - CAST ( NULL AS REAL ) ) - - 83 / - - NULLIF ( + 3, 68 + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL + + 99 + + MAX( DISTINCT - 6 )
----
93

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + + 99 + + MAX ( DISTINCT - 6 )
----
93

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

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

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

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT + 99 + + - COUNT ( * ) AS col2
----
98

query I rowsort
SELECT 68 * + 90
----
6120

query I rowsort
SELECT - 64 * - 47 AS col1
----
3008

query I rowsort
SELECT ALL - 91 * + NULLIF ( - 48, + + 68 ) + + + 66 + + - 30 + ( + - 54 ) - - 98 * 37
----
7976

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT + NULLIF ( COUNT( * ), 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2489
SELECT + NULLIF ( COUNT ( * ), 2 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 56 * + 12 + - CASE - - 11 WHEN 44 THEN NULL WHEN + 13 THEN + 40 END - + + 15 / + 87 + - + 51 + - 53 * 6
----
NULL

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

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

query II rowsort
SELECT + + NULLIF ( - - 83, 39 ), 39 AS col2
----
83
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT ( - 8 ) * + - 45 + + + 15 + CASE - 59 WHEN + MIN( ALL + - 26 ) - - + 2 + + 30 THEN NULL WHEN MAX( DISTINCT + 86 ) * 38 THEN AVG ( 94 ) END * - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT ( - 8 ) * + - 45 + + + 15 + CASE - 59 WHEN + MIN ( ALL + - 26 ) - - + 2 + + 30 THEN NULL WHEN MAX ( DISTINCT + 86 ) * 38 THEN AVG ( 94 ) END * - 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT - 97 * - 97 + - 37 + + 68 + + 65 * + COUNT( * ) + + 83 * 82
----
16311

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT - 97 * - 97 + - 37 + + 68 + + 65 * + COUNT ( * ) + + 83 * 82
----
16311

query II rowsort
SELECT 73 * - 75 AS col0, 5 * - 42 * - 81
----
-5475
17010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT 47 + CAST( + 94 AS SIGNED ) AS col0
----
141

skipif mysql # not compatible
query I rowsort label-2496
SELECT 47 + CAST ( + 94 AS INTEGER ) AS col0
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT MAX( DISTINCT - COALESCE ( + 23, + 20 ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-2498
SELECT MAX ( DISTINCT - COALESCE ( + 23, + 20 ) ) col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL - 99 - + 52 + COUNT( DISTINCT CAST( + - 26 AS SIGNED ) ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - 99 - + 52 + COUNT ( DISTINCT CAST ( + - 26 AS INTEGER ) ) AS col1
----
-150

query I rowsort
SELECT 99 * 47
----
4653

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

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

query II rowsort
SELECT DISTINCT - 47 AS col1, 16 AS col0
----
-47
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL - 0 - - CAST( - 86 AS SIGNED ) * + 63 AS col2
----
-5418

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - 0 - - CAST ( - 86 AS INTEGER ) * + 63 AS col2
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + 36 * - COUNT( ALL - + 49 )
----
-36

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + 36 * - COUNT ( ALL - + 49 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2505
SELECT DISTINCT + COUNT( * ), 9 * + CAST( NULL AS SIGNED ) + COALESCE ( - CAST( COUNT( * ) AS SIGNED ), 29, 91 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2505
SELECT DISTINCT + COUNT ( * ), 9 * + CAST ( NULL AS INTEGER ) + COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), 29, 91 ) AS col0
----
1
NULL

query I rowsort
SELECT ALL + 27 * 82 AS col0
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT 36 * + + NULLIF ( - + 16, - NULLIF ( COUNT( * ), 14 ) ) * + + 85 * - + COUNT( * ) + 97
----
49057

skipif mysql # not compatible
query I rowsort label-2507
SELECT 36 * + + NULLIF ( - + 16, - NULLIF ( COUNT ( * ), 14 ) ) * + + 85 * - + COUNT ( * ) + 97
----
49057

query I rowsort
SELECT + 31 - 9
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT DISTINCT 53, + 70 * + 68 + - - MAX( - 24 ) AS col0
----
53
4736

skipif mysql # not compatible
query II rowsort label-2509
SELECT DISTINCT 53, + 70 * + 68 + - - MAX ( - 24 ) AS col0
----
53
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + 19 * - COUNT( * ) * + MIN( + - 50 ) AS col1
----
950

skipif mysql # not compatible
query I rowsort label-2510
SELECT + 19 * - COUNT ( * ) * + MIN ( + - 50 ) AS col1
----
950

query I rowsort
SELECT + 25 * - 24 AS col2
----
-600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT + MAX( DISTINCT - + 26 ) + - 85 * - CAST( NULL AS SIGNED ) + 20 + + 51 / 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT + MAX ( DISTINCT - + 26 ) + - 85 * - CAST ( NULL AS INTEGER ) + 20 + + 51 / 91 AS col2
----
NULL

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

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

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

query I rowsort
SELECT ALL 82 * + 77
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + COALESCE ( + 81, - - 28 * 13 * - 82 ) * + CASE - 52 WHEN - + 54 * 89 * - 98 THEN 26 * 0 + - 46 WHEN + ( - MIN( 98 ) ) + - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT + COALESCE ( + 81, - - 28 * 13 * - 82 ) * + CASE - 52 WHEN - + 54 * 89 * - 98 THEN 26 * 0 + - 46 WHEN + ( - MIN ( 98 ) ) + - 89 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT + CAST( 86 AS SIGNED ) + 57 + + 78 + + 62 * + 31 * + 84
----
161669

skipif mysql # not compatible
query I rowsort label-2517
SELECT + CAST ( 86 AS INTEGER ) + 57 + + 78 + + 62 * + 31 * + 84
----
161669

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

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

query I rowsort
SELECT ALL + 95 + - 71 + - + COALESCE ( - 27, + 83 - - 77 )
----
51

query I rowsort
SELECT + + ( 98 ) + - + ( - 41 ) AS col1
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-2521
SELECT - - 26 AS col2, COALESCE ( + 95, + 85, + 82 DIV - - 37 ) AS col0
----
26
95

skipif mysql # not compatible
query II rowsort label-2521
SELECT - - 26 AS col2, COALESCE ( + 95, + 85, + 82 / - - 37 ) AS col0
----
26
95

query I rowsort
SELECT DISTINCT 66 + + 52
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2523
SELECT ALL - - 92 DIV - 92, 92 * 29 * + COUNT( * ) + - - CASE - 77 WHEN SUM( ALL + - 44 ) THEN - - 21 WHEN - 33 * + 40 + + 46 * 92 THEN NULL WHEN - 84 THEN NULL ELSE 44 END * + 94 AS col2
----
-1
6804

skipif mysql # not compatible
query II rowsort label-2523
SELECT ALL - - 92 / - 92, 92 * 29 * + COUNT ( * ) + - - CASE - 77 WHEN SUM ( ALL + - 44 ) THEN - - 21 WHEN - 33 * + 40 + + 46 * 92 THEN NULL WHEN - 84 THEN NULL ELSE 44 END * + 94 AS col2
----
-1
6804

query I rowsort
SELECT + + 40 + - + ( + - 25 ) * + - 23 + 51 AS col2
----
-484

query I rowsort
SELECT ALL + 35 + + ( - 19 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT ALL + NULLIF ( - COALESCE ( - + 45, + 28 - + + COUNT( * ) * - + 88 ), - - MAX( ALL + 80 ) * 61 + + NULLIF ( 60, + 96 * 1 ) ) DIV + 37 + - 13 DIV + 99
----
1

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + NULLIF ( - COALESCE ( - + 45, + 28 - + + COUNT ( * ) * - + 88 ), - - MAX ( ALL + 80 ) * 61 + + NULLIF ( 60, + 96 * 1 ) ) / + 37 + - 13 / + 99
----
1

query I rowsort
SELECT ALL + - NULLIF ( + 38, 76 )
----
-38

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

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

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

query II rowsort
SELECT + ( 92 ) col1, 59
----
92
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - 21 + - COUNT( DISTINCT 32 ) + 85 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 21 + - COUNT ( DISTINCT 32 ) + 85 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2532
SELECT ALL 52 * + - NULLIF ( CAST( - 16 AS SIGNED ), + 88 ) - - + 80
----
912

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL 52 * + - NULLIF ( CAST ( - 16 AS INTEGER ), + 88 ) - - + 80
----
912

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT + 46 * - 37 + + - MIN( 55 ) + ( 68 )
----
-1689

skipif mysql # not compatible
query I rowsort label-2534
SELECT + 46 * - 37 + + - MIN ( 55 ) + ( 68 )
----
-1689

query I rowsort
SELECT ALL 58 * 38 - + 85 AS col2
----
2119

query I rowsort
SELECT - 85 + + 62 * - - 55
----
3325

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2538
SELECT - ( - COUNT( * ) ) + 72 * + + 11 * - + 96 * COUNT( ALL - CAST( NULL AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-2538
SELECT - ( - COUNT ( * ) ) + 72 * + + 11 * - + 96 * COUNT ( ALL - CAST ( NULL AS REAL ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT COALESCE ( + - MAX( DISTINCT 63 ), - 92 + - 33 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2539
SELECT COALESCE ( + - MAX ( DISTINCT 63 ), - 92 + - 33 ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT + CAST( - - MIN( + 78 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT + CAST ( - - MIN ( + 78 ) AS INTEGER ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - MAX( - - 92 ) * COALESCE ( + - 31, - 47, + ( - 20 ) * + NULLIF ( + 93, CASE + - COUNT( * ) WHEN + COUNT( * ) / + 42 THEN 63 * - 32 WHEN + COUNT( * ) - AVG ( + 94 ) THEN MAX( DISTINCT 35 ) ELSE + MAX( DISTINCT + COALESCE ( 32, + 85 + 20 ) ) END ) + + 52 ) AS col0
----
2852

skipif mysql # not compatible
query I rowsort label-2541
SELECT - MAX ( - - 92 ) * COALESCE ( + - 31, - 47, + ( - 20 ) * + NULLIF ( + 93, CASE + - COUNT ( * ) WHEN + COUNT ( * ) / + 42 THEN 63 * - 32 WHEN + COUNT ( * ) - AVG ( + 94 ) THEN MAX ( DISTINCT 35 ) ELSE + MAX ( DISTINCT + COALESCE ( 32, + 85 + 20 ) ) END ) + + 52 ) AS col0
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT + ( - - CASE - - 64 WHEN + - 19 THEN - 42 WHEN 75 THEN SUM( ALL + + 49 ) WHEN - - 38 - + - 30 / - 97 THEN 70 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + ( - - CASE - - 64 WHEN + - 19 THEN - 42 WHEN 75 THEN SUM ( ALL + + 49 ) WHEN - - 38 - + - 30 / - 97 THEN 70 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT COALESCE ( - COUNT( ALL - 6 ), 83 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2543
SELECT COALESCE ( - COUNT ( ALL - 6 ), 83 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2544
SELECT - 33 * + + NULLIF ( - 62, + - 54 * + 83 / - CASE + - ( SUM( DISTINCT 13 ) ) WHEN MAX( + + 5 ) + + 60 * + 47 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 63 END - - CAST( NULL AS DECIMAL ) * - CAST( - 40 AS SIGNED ) ) + CAST( 17 AS SIGNED )
----
2063

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 33 * + + NULLIF ( - 62, + - 54 * + 83 / - CASE + - ( SUM ( DISTINCT 13 ) ) WHEN MAX ( + + 5 ) + + 60 * + 47 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 63 END - - CAST ( NULL AS REAL ) * - CAST ( - 40 AS INTEGER ) ) + CAST ( 17 AS INTEGER )
----
2063

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT COALESCE ( - COUNT( * ), 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2545
SELECT COALESCE ( - COUNT ( * ), 92 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT - NULLIF ( 5, + 3 ) DIV 92 * - ( - 76 ) + + - 1 + - 40 * - COUNT( * ) * 49 AS col0
----
1959

skipif mysql # not compatible
query I rowsort label-2546
SELECT - NULLIF ( 5, + 3 ) / 92 * - ( - 76 ) + + - 1 + - 40 * - COUNT ( * ) * 49 AS col0
----
1959

query I rowsort
SELECT + 25 * + 3 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT + MAX( ALL + 77 ) * 79 AS col1
----
6083

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + MAX ( ALL + 77 ) * 79 AS col1
----
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT 60 * - COUNT( * ) + - - CASE WHEN 65 = - + 66 * - COUNT( * ) THEN NULL WHEN - COUNT( * ) - - 49 BETWEEN ( NULL ) AND - CASE + 58 WHEN + 4 * 84 THEN NULL WHEN 64 + ( 79 ) * COUNT( * ) THEN NULL ELSE 91 END AND ( + COUNT( * ) ) IN ( - COUNT( * ) ) THEN NULL ELSE 1 + + 83 END + - COUNT( * ) * + 77 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2549
SELECT 60 * - COUNT ( * ) + - - CASE WHEN 65 = - + 66 * - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) - - 49 BETWEEN ( NULL ) AND - CASE + 58 WHEN + 4 * 84 THEN NULL WHEN 64 + ( 79 ) * COUNT ( * ) THEN NULL ELSE 91 END AND ( + COUNT ( * ) ) IN ( - COUNT ( * ) ) THEN NULL ELSE 1 + + 83 END + - COUNT ( * ) * + 77 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - COUNT( * ) * COUNT( * ) + 90 + - 37 + - - MAX( + + 33 )
----
85

skipif mysql # not compatible
query I rowsort label-2550
SELECT - COUNT ( * ) * COUNT ( * ) + 90 + - 37 + - - MAX ( + + 33 )
----
85

query I rowsort
SELECT DISTINCT + 24 * - - NULLIF ( - 1, + - 52 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL + 20 * + COUNT( * ) + - 7 + + - 43 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + 20 * + COUNT ( * ) + - 7 + + - 43 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT ALL NULLIF ( + 16, - 68 ) DIV SUM( + 59 ) + - 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL NULLIF ( + 16, - 68 ) / SUM ( + 59 ) + - 9 AS col0
----
-9

query I rowsort
SELECT DISTINCT + ( + 94 ) AS col1
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT + + 5 + + + 23 + + 86 + + - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-2556
SELECT + + 5 + + + 23 + + 86 + + - COUNT ( * )
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT DISTINCT - 66 + - + CAST( NULL AS SIGNED ) + + 67 + + 77 * - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT - 66 + - + CAST ( NULL AS INTEGER ) + + 67 + + 77 * - - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2558
SELECT - - SUM( DISTINCT CAST( NULL AS SIGNED ) ), + 40 * - 79 col2
----
NULL
-3160

skipif mysql # not compatible
query II rowsort label-2558
SELECT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), + 40 * - 79 col2
----
NULL
-3160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT ALL + 49 + - 71 + - CAST( + 97 AS SIGNED ) + - - 59 * - 56
----
-3423

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + 49 + - 71 + - CAST ( + 97 AS INTEGER ) + - - 59 * - 56
----
-3423

query I rowsort
SELECT + ( 19 ) * + 65 + - 33 + - 30 + 47
----
1219

query I rowsort
SELECT - - 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL SUM( - 18 ) + 60 col1
----
42

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL SUM ( - 18 ) + 60 col1
----
42

query I rowsort
SELECT ALL 38 + - 83
----
-45

query I rowsort
SELECT + - 78 * + 28 AS col1
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT + SUM( ALL + 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + SUM ( ALL + 27 ) col0
----
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2567
SELECT 67, COUNT( * ) * + COALESCE ( + + 10, + 32, - + 2, + 83 + - - COUNT( * ) + - - 68 ) AS col1
----
67
10

skipif mysql # not compatible
query II rowsort label-2567
SELECT 67, COUNT ( * ) * + COALESCE ( + + 10, + 32, - + 2, + 83 + - - COUNT ( * ) + - - 68 ) AS col1
----
67
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT + CAST( - - ( - + 33 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-2568
SELECT + CAST ( - - ( - + 33 ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL - COUNT( * ) - - 33 + + 97
----
129

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - COUNT ( * ) - - 33 + + 97
----
129

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT 98 DIV - 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2571
SELECT 98 / - 72 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT ALL 61 DIV + - 34
----
-1

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 61 / + - 34
----
-1

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

skipif mysql # not compatible
query I rowsort label-2573
SELECT ( + 29 ) * + + 29 * - ( + 5 ) * + COUNT ( * ) AS col2
----
-4205

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2574
SELECT 73 DIV + 59 + + 13, + MIN( DISTINCT - ( + + 60 ) ) AS col1
----
14
-60

skipif mysql # not compatible
query II rowsort label-2574
SELECT 73 / + 59 + + 13, + MIN ( DISTINCT - ( + + 60 ) ) AS col1
----
14
-60

query I rowsort
SELECT DISTINCT - 91 * 45
----
-4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT ALL - CASE - 46 WHEN + + ( + 30 ) * + - 49 * + 31 + - COUNT( * ) THEN - + 93 ELSE ( CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - CASE - 46 WHEN + + ( + 30 ) * + - 49 * + 31 + - COUNT ( * ) THEN - + 93 ELSE ( CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query II rowsort
SELECT 89 AS col0, ( + 78 ) * 35
----
89
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL - 64 * SUM( DISTINCT 26 ) * - - 94 AS col2
----
-156416

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - 64 * SUM ( DISTINCT 26 ) * - - 94 AS col2
----
-156416

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT 4 * + 10 * - COALESCE ( - 48, COUNT( * ) * + 2 ) AS col2, + 11 AS col2
----
1920
11

skipif mysql # not compatible
query II rowsort label-2579
SELECT 4 * + 10 * - COALESCE ( - 48, COUNT ( * ) * + 2 ) AS col2, + 11 AS col2
----
1920
11

query I rowsort
SELECT DISTINCT 19 + - ( + 24 ) * + - 10 * - 75 AS col0
----
-17981

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL + + MAX( - - 72 ) + 80 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + + MAX ( - - 72 ) + 80 AS col2
----
152

query I rowsort
SELECT ALL - 31 + - 93
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT + MIN( - 80 ) - 93 - - MAX( 59 ) + + 7 DIV - 9 * - 91 + - 18 * 97 * - 78 AS col0
----
136074

skipif mysql # not compatible
query I rowsort label-2584
SELECT + MIN ( - 80 ) - 93 - - MAX ( 59 ) + + 7 / - 9 * - 91 + - 18 * 97 * - 78 AS col0
----
136074

query I rowsort
SELECT ALL ( - 42 )
----
-42

query I rowsort
SELECT + 61 * - 10 * - 77 * + + 15 AS col0
----
704550

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

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + 79 * - COUNT ( * ) AS col0
----
-79

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

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

query I rowsort
SELECT ALL - 87 + 41 * 73 AS col2
----
2906

query I rowsort
SELECT DISTINCT + 71 col0
----
71

query II rowsort
SELECT ALL + ( + 18 ) * + 11, - 52 * + 4 col1
----
198
-208

query I rowsort
SELECT ( + 38 ) - + 98 + 46
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - - COUNT( * ) * + COUNT( * ) + - + ( 68 )
----
-67

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) + - + ( 68 )
----
-67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2596
SELECT ALL - COALESCE ( + COUNT( * ), - - CAST( + 90 AS SIGNED ) * 44 DIV - + 32 + - 1 ) - - 59 * - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - COALESCE ( + COUNT ( * ), - - CAST ( + 90 AS INTEGER ) * 44 / - + 32 + - 1 ) - - 59 * - - COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT COALESCE ( + + 97, + 85 * - NULLIF ( + 36, - + 89 * - CAST( NULL AS SIGNED ) ), + - 29 ) + + + 97 * + 70 - + 19 * + 70 + - + COUNT( * ) - + COUNT( * ) * 87 AS col1
----
5469

skipif mysql # not compatible
query I rowsort label-2597
SELECT COALESCE ( + + 97, + 85 * - NULLIF ( + 36, - + 89 * - CAST ( NULL AS INTEGER ) ), + - 29 ) + + + 97 * + 70 - + 19 * + 70 + - + COUNT ( * ) - + COUNT ( * ) * 87 AS col1
----
5469

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

query I rowsort
SELECT 73 + 97 + 98 - 0
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT SUM( 27 ) + - 20 * + 25 - + ( - - MIN( DISTINCT + + 21 ) )
----
-494

skipif mysql # not compatible
query I rowsort label-2600
SELECT SUM ( 27 ) + - 20 * + 25 - + ( - - MIN ( DISTINCT + + 21 ) )
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL SUM( DISTINCT + 97 ) * 85
----
8245

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL SUM ( DISTINCT + 97 ) * 85
----
8245

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2603
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ), 93 DIV 12 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-2603
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ), 93 / 12 AS col0
----
NULL
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2604
SELECT MIN( + ( + 76 ) ) DIV 17 + - + 9
----
-5

skipif mysql # not compatible
query I rowsort label-2604
SELECT MIN ( + ( + 76 ) ) / 17 + - + 9
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT COUNT( * ) + - + 91 + + - 17 + 46 + - COUNT( DISTINCT 26 ) * + 60 * + COUNT( * ) AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-2605
SELECT COUNT ( * ) + - + 91 + + - 17 + 46 + - COUNT ( DISTINCT 26 ) * + 60 * + COUNT ( * ) AS col2
----
-121

query I rowsort
SELECT DISTINCT 31 + 63 * - 20 AS col1
----
-1229

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT - COUNT( * ) * + 67 + 41 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2607
SELECT - COUNT ( * ) * + 67 + 41 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL COUNT( * ) + 14 + - + NULLIF ( + ( 30 ), + 9 ) * - COUNT( * ) * - 8 AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL COUNT ( * ) + 14 + - + NULLIF ( + ( 30 ), + 9 ) * - COUNT ( * ) * - 8 AS col2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT + MAX( + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2609
SELECT + MAX ( + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT - - 4 * COUNT( DISTINCT 91 ) + + 37 + - 3
----
38

skipif mysql # not compatible
query I rowsort label-2610
SELECT - - 4 * COUNT ( DISTINCT 91 ) + + 37 + - 3
----
38

query I rowsort
SELECT ALL + 83 * + 25 * + 40 AS col0
----
83000

query I rowsort
SELECT ALL - - ( - 55 )
----
-55

query I rowsort
SELECT - 59 * 56 - CASE 65 WHEN - 38 THEN + + 95 END AS col0
----
NULL

query I rowsort
SELECT ALL 28 * - 36 AS col1
----
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2615
SELECT ALL + + 47 - - COALESCE ( - + COALESCE ( + - 55, + MAX( ALL + 19 ) ), 30 * - - 94 + - COUNT( * ) + - 32 * + COUNT( 78 ) * + - 62, - 78 + 43 * + 57 ) DIV 17 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + + 47 - - COALESCE ( - + COALESCE ( + - 55, + MAX ( ALL + 19 ) ), 30 * - - 94 + - COUNT ( * ) + - 32 * + COUNT ( 78 ) * + - 62, - 78 + 43 * + 57 ) / 17 AS col2
----
50

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

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT COUNT ( * ) * - 46 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT COUNT( DISTINCT - 68 ) * - ( + ( - - 77 ) ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2617
SELECT COUNT ( DISTINCT - 68 ) * - ( + ( - - 77 ) ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT + COALESCE ( 95, 8, COUNT( * ) * + COUNT( * ) ) col0
----
95

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT + COALESCE ( 95, 8, COUNT ( * ) * + COUNT ( * ) ) col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2619
SELECT - 17 + + + COUNT( DISTINCT + 48 ) DIV + 7, 38 AS col1
----
-17
38

skipif mysql # not compatible
query II rowsort label-2619
SELECT - 17 + + + COUNT ( DISTINCT + 48 ) / + 7, 38 AS col1
----
-17
38

query I rowsort
SELECT - NULLIF ( 99, + - 32 ) AS col2
----
-99

query I rowsort
SELECT 37 * - 23 + + 20
----
-831

query I rowsort
SELECT ALL - - 80 * + ( - - 30 ) AS col1
----
2400

query I rowsort
SELECT DISTINCT - + 30 * + ( 73 ) + - 41
----
-2231

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT - 62 * - 52 * + COUNT( + 72 )
----
3224

skipif mysql # not compatible
query I rowsort label-2624
SELECT - 62 * - 52 * + COUNT ( + 72 )
----
3224

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT - 80 DIV 16
----
-5

skipif mysql # not compatible
query I rowsort label-2625
SELECT - 80 / 16
----
-5

query I rowsort
SELECT DISTINCT - 63 * - 30 AS col0
----
1890

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

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

query I rowsort
SELECT DISTINCT - 54 * + + 56
----
-3024

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

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

query I rowsort
SELECT - 26 * - 65
----
1690

query I rowsort
SELECT ALL CASE - 24 WHEN 51 / - + 71 * - + NULLIF ( - - 12, 8 ) THEN 51 END
----
NULL

query I rowsort
SELECT - ( - 24 ) * - 82 * + 70 col0
----
-137760

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2633
SELECT DISTINCT COALESCE ( COALESCE ( - CAST( 70 AS SIGNED ), 31 DIV + + 50 ), + 53 * + - 2, 71 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT COALESCE ( COALESCE ( - CAST ( 70 AS INTEGER ), 31 / + + 50 ), + 53 * + - 2, 71 ) AS col1
----
-70

query I rowsort
SELECT DISTINCT + 64 + - 27
----
37

query I rowsort
SELECT NULLIF ( - - CASE + 90 WHEN + + 62 * + 22 + - + 77 THEN NULL ELSE + 64 END, + 95 * + - 35 - - - 3 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT CASE - 82 WHEN + 50 * + - 81 THEN + 24 WHEN 45 THEN + 48 ELSE - COUNT( * ) * 33 - + - ( + 75 ) - - 49 END col1
----
91

skipif mysql # not compatible
query I rowsort label-2636
SELECT CASE - 82 WHEN + 50 * + - 81 THEN + 24 WHEN 45 THEN + 48 ELSE - COUNT ( * ) * 33 - + - ( + 75 ) - - 49 END col1
----
91

query I rowsort
SELECT ALL + 96 * - 93 + + + 44 * - ( + 21 ) + 98 - - 5 AS col2
----
-9749

query I rowsort
SELECT - 72 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL - COUNT( * ) * + 64 + - 7 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - COUNT ( * ) * + 64 + - 7 AS col0
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-2640
SELECT NULLIF ( 25, 70 ), 30 DIV - ( - + 31 ) + - 95 + + + ( - 14 ) AS col2
----
25
-109

skipif mysql # not compatible
query II rowsort label-2640
SELECT NULLIF ( 25, 70 ), 30 / - ( - + 31 ) + - 95 + + + ( - 14 ) AS col2
----
25
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT - 1 DIV - - 99 + - 49 + - 99 * + COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 1 / - - 99 + - 49 + - 99 * + COUNT ( * )
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2642
SELECT + 76 * 28 DIV CASE - - 99 WHEN + 63 + 11 THEN + + 61 * - + 52 * - 85 + MIN( + 70 ) + + 91 ELSE 55 * - 66 END * + + ( + 21 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 76 * 28 / CASE - - 99 WHEN + 63 + 11 THEN + + 61 * - + 52 * - 85 + MIN ( + 70 ) + + 91 ELSE 55 * - 66 END * + + ( + 21 ) AS col0
----
0

query I rowsort
SELECT ALL + ( 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL + + SUM( + - 57 ) * + 38 * 99 * 38 * + COUNT( * ) - + 83 + + 83
----
-8148492

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL + + SUM ( + - 57 ) * + 38 * 99 * 38 * + COUNT ( * ) - + 83 + + 83
----
-8148492

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT + - SUM( DISTINCT - - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + - SUM ( DISTINCT - - 61 )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT DISTINCT + 18 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT + 18 / - 37
----
0

query I rowsort
SELECT + 18 * - 53 * + - 15
----
14310

query II rowsort
SELECT - 33 col0, - 38
----
-33
-38

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

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - 85 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 89 * + 34 AS col0
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - + COALESCE ( - 76, 21, + - COUNT( * ) * - 82 + + - 31 )
----
76

skipif mysql # not compatible
query I rowsort label-2651
SELECT - + COALESCE ( - 76, 21, + - COUNT ( * ) * - 82 + + - 31 )
----
76

query I rowsort
SELECT ALL COALESCE ( 54, ( + 19 ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT - 39 * 85 DIV 40
----
-82

skipif mysql # not compatible
query I rowsort label-2653
SELECT - 39 * 85 / 40
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - COUNT( * ) + - 8 + - 46
----
-55

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - COUNT ( * ) + - 8 + - 46
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT DISTINCT COUNT( * ), - 11 + + - 84 AS col0
----
1
-95

skipif mysql # not compatible
query II rowsort label-2655
SELECT DISTINCT COUNT ( * ), - 11 + + - 84 AS col0
----
1
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2656
SELECT 18 AS col1, MIN( + 5 ) col1
----
18
5

skipif mysql # not compatible
query II rowsort label-2656
SELECT 18 AS col1, MIN ( + 5 ) col1
----
18
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT ALL CASE + 27 WHEN + - 1 * + ( + 13 ) * + - ( - + 24 ) * - CASE - 0 WHEN + - 42 + 40 + 13 * 81 + + 89 + - 67 THEN NULL WHEN + CAST( - 75 AS SIGNED ) THEN - 84 + NULLIF ( 93 + + CASE - 26 WHEN COUNT( * ) + 84 THEN - 75 * 22 + 77 WHEN 61 THEN NULL END, - 32 ) / - 76 WHEN 20 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) THEN 53 ELSE NULL END * ( + 73 ) + + 49 + + 79 * 62 + 90 THEN - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL CASE + 27 WHEN + - 1 * + ( + 13 ) * + - ( - + 24 ) * - CASE - 0 WHEN + - 42 + 40 + 13 * 81 + + 89 + - 67 THEN NULL WHEN + CAST ( - 75 AS INTEGER ) THEN - 84 + NULLIF ( 93 + + CASE - 26 WHEN COUNT ( * ) + 84 THEN - 75 * 22 + 77 WHEN 61 THEN NULL END, - 32 ) / - 76 WHEN 20 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) THEN 53 ELSE NULL END * ( + 73 ) + + 49 + + 79 * 62 + 90 THEN - 9 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 55, + - 27 )
----
-55

query I rowsort
SELECT + 3 + 86 + - 41 + - 65 + + 62 * 37
----
2277

query I rowsort
SELECT - 9 * - - 46
----
-414

query I rowsort
SELECT + 20 + + 15 AS col1
----
35

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

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

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

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL MAX ( 39 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT - 73 + + ( - 99 ) - - + 3 * + - COUNT( * ) DIV + 86 + - ( + 84 )
----
-256

skipif mysql # not compatible
query I rowsort label-2664
SELECT - 73 + + ( - 99 ) - - + 3 * + - COUNT ( * ) / + 86 + - ( + 84 )
----
-256

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

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

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

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

query I rowsort
SELECT - 25 + - 95 * + 19 + - - 93 AS col2
----
-1737

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT ALL - 86 DIV + - 43 + - 26 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - 86 / + - 43 + - 26 AS col0
----
-24

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

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

query I rowsort
SELECT - 13 * ( - 31 )
----
403

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT + COUNT( ALL - 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT + COUNT ( ALL - 93 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - 7 * + ( - COUNT( * ) ) col1
----
7

skipif mysql # not compatible
query I rowsort label-2672
SELECT - 7 * + ( - COUNT ( * ) ) col1
----
7

query I rowsort
SELECT ALL + CASE + NULLIF ( - + 71, + NULLIF ( - + 96, + - 96 ) ) WHEN - 77 / + ( - 23 ) * + - 23 THEN 14 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT ALL + 31 DIV - - 84 - - 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + 31 / - - 84 - - 34 AS col2
----
34

query I rowsort
SELECT - + 77 * + + 92 * + 52 * + 55
----
-20260240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2676
SELECT ALL + CAST( + - 23 AS SIGNED ) AS col1, 53 AS col0
----
-23
53

skipif mysql # not compatible
query II rowsort label-2676
SELECT ALL + CAST ( + - 23 AS INTEGER ) AS col1, 53 AS col0
----
-23
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2677
SELECT DISTINCT + + CAST( - COALESCE ( - 3, + 22, - COUNT( * ) * 69 ) AS SIGNED ), CASE + COUNT( * ) WHEN 51 THEN - - 7 WHEN - 2 THEN + COALESCE ( - 77, + - 3, - + 35 ) END AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2677
SELECT DISTINCT + + CAST ( - COALESCE ( - 3, + 22, - COUNT ( * ) * 69 ) AS INTEGER ), CASE + COUNT ( * ) WHEN 51 THEN - - 7 WHEN - 2 THEN + COALESCE ( - 77, + - 3, - + 35 ) END AS col0
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2678
SELECT DISTINCT COUNT( - 50 ) DIV 47 * - - MAX( ALL - - 31 ) - + 32 DIV - + 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT COUNT ( - 50 ) / 47 * - - MAX ( ALL - - 31 ) - + 32 / - + 30 AS col0
----
1

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

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

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

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

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

query I rowsort
SELECT + 50 * 6 - - + 64 AS col0
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT ALL - COUNT( * ) * + + 7 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL - COUNT ( * ) * + + 7 / + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT ALL + 51 AS col1, - COUNT( * ) * 22 * + 72
----
51
-1584

skipif mysql # not compatible
query II rowsort label-2684
SELECT ALL + 51 AS col1, - COUNT ( * ) * 22 * + 72
----
51
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2685
SELECT + 55 AS col0, + CAST( + 79 AS SIGNED ) * 35 + - 86
----
55
2679

skipif mysql # not compatible
query II rowsort label-2685
SELECT + 55 AS col0, + CAST ( + 79 AS INTEGER ) * 35 + - 86
----
55
2679

query I rowsort
SELECT + 77 + - COALESCE ( + 36, - - 32 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT - - 50 * + 25 col1, + COALESCE ( + + CASE - 27 WHEN - COUNT( * ) * + - ( NULLIF ( + - 23, + 54 ) ) * - 21 THEN + 50 * + 79 END, - + 90, - + ( + - 47 ) ) * - 88
----
1250
7920

skipif mysql # not compatible
query II rowsort label-2687
SELECT - - 50 * + 25 col1, + COALESCE ( + + CASE - 27 WHEN - COUNT ( * ) * + - ( NULLIF ( + - 23, + 54 ) ) * - 21 THEN + 50 * + 79 END, - + 90, - + ( + - 47 ) ) * - 88
----
1250
7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT + - ( + + SUM( - 56 ) ) * + CAST( + NULLIF ( - MIN( + + ( - + 74 ) ), - 77 ) AS SIGNED ) AS col1
----
4144

skipif mysql # not compatible
query I rowsort label-2688
SELECT + - ( + + SUM ( - 56 ) ) * + CAST ( + NULLIF ( - MIN ( + + ( - + 74 ) ), - 77 ) AS INTEGER ) AS col1
----
4144

query I rowsort
SELECT ALL + 39 * - 83
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + + CASE + 11 WHEN AVG ( ALL - - 26 ) * COUNT( + 12 ) THEN 43 * - 84 * + 11 WHEN + + 10 / + 54 THEN + 6 - - 13 ELSE - SUM( DISTINCT + 96 ) END AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2690
SELECT + + CASE + 11 WHEN AVG ( ALL - - 26 ) * COUNT ( + 12 ) THEN 43 * - 84 * + 11 WHEN + + 10 / + 54 THEN + 6 - - 13 ELSE - SUM ( DISTINCT + 96 ) END AS col1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT + 39 + - - ( + + COUNT( * ) ) * + 35 col0, 66
----
74
66

skipif mysql # not compatible
query II rowsort label-2691
SELECT + 39 + - - ( + + COUNT ( * ) ) * + 35 col0, 66
----
74
66

onlyif mysql # aggregate syntax: 
query III rowsort label-2692
SELECT ALL 35 + COALESCE ( + ( - 35 ), + 37 + - 2 ) + - 59, - 72 + 77 col1, - - 91 + + + CASE - COUNT( * ) WHEN - AVG ( DISTINCT + 81 ) + ( - 74 ) + 36 / - 91 * - 42 THEN NULL WHEN + 69 THEN + 34 / - 52 END col1
----
-59
5
NULL

skipif mysql # not compatible
query III rowsort label-2692
SELECT ALL 35 + COALESCE ( + ( - 35 ), + 37 + - 2 ) + - 59, - 72 + 77 col1, - - 91 + + + CASE - COUNT ( * ) WHEN - AVG ( DISTINCT + 81 ) + ( - 74 ) + 36 / - 91 * - 42 THEN NULL WHEN + 69 THEN + 34 / - 52 END col1
----
-59
5
NULL

query I rowsort
SELECT ALL + 23 + - 7 AS col0
----
16

query II rowsort
SELECT 72 * 36 AS col1, ( - 69 ) AS col2
----
2592
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2695
SELECT 27 + + 85 DIV 8 * 17 * + - COUNT( * )
----
-143

skipif mysql # not compatible
query I rowsort label-2695
SELECT 27 + + 85 / 8 * 17 * + - COUNT ( * )
----
-143

query I rowsort
SELECT ALL 91 + + + 23 * - COALESCE ( - + 71, + + 49 ) AS col1
----
1724

query I rowsort
SELECT DISTINCT 8 * - 67
----
-536

onlyif mysql # aggregate syntax: 
query II rowsort label-2698
SELECT DISTINCT 20 + + 37 + + 41 * 36 * - COUNT( * ) AS col1, COUNT( * )
----
-1419
1

skipif mysql # not compatible
query II rowsort label-2698
SELECT DISTINCT 20 + + 37 + + 41 * 36 * - COUNT ( * ) AS col1, COUNT ( * )
----
-1419
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT COUNT( * ) * + 94 col0
----
94

skipif mysql # not compatible
query I rowsort label-2701
SELECT COUNT ( * ) * + 94 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL + 47 - + 27 * + 48 + - + COUNT( + - 82 ) AS col1
----
-1250

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + 47 - + 27 * + 48 + - + COUNT ( + - 82 ) AS col1
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT ALL + 75 * - 81 * COUNT( * ) AS col0
----
-6075

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + 75 * - 81 * COUNT ( * ) AS col0
----
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + CASE - 19 WHEN + 36 THEN - COALESCE ( - 76, - 89 + - - 22 * + COUNT( * ) ) * + 75 * + - COUNT( * ) + 18 + - COUNT( * ) + COUNT( * ) + 65 * + 50 * 40 * COUNT( ( 35 ) ) * 23 / 68 END / + SUM( ALL 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + CASE - 19 WHEN + 36 THEN - COALESCE ( - 76, - 89 + - - 22 * + COUNT ( * ) ) * + 75 * + - COUNT ( * ) + 18 + - COUNT ( * ) + COUNT ( * ) + 65 * + 50 * 40 * COUNT ( ( 35 ) ) * 23 / 68 END / + SUM ( ALL 92 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2705
SELECT ALL 95 * + 0 * + 3 + NULLIF ( + - 26, CAST( NULL AS SIGNED ) ) + - - 36 * + MAX( DISTINCT + NULLIF ( - - 82, + 55 ) ) * ( + 93 ) AS col1
----
274510

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL 95 * + 0 * + 3 + NULLIF ( + - 26, CAST ( NULL AS INTEGER ) ) + - - 36 * + MAX ( DISTINCT + NULLIF ( - - 82, + 55 ) ) * ( + 93 ) AS col1
----
274510

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

query I rowsort
SELECT 71 * + 49 + 36 * 61 AS col0
----
5675

query I rowsort
SELECT 63 - - - 54
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT ALL - ( + - CAST( 23 AS SIGNED ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - ( + - CAST ( 23 AS INTEGER ) ) AS col2
----
23

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

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( - 29, + 90 ) + - + 64 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT ALL - 53 + + MAX( - 6 ) * ( + 55 ) * - - 20 + 35 * + 2 DIV + 99 DIV + 17
----
-6653

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - 53 + + MAX ( - 6 ) * ( + 55 ) * - - 20 + 35 * + 2 / + 99 / + 17
----
-6653

query II rowsort
SELECT ALL 15 + + - 72 + + ( - 22 ) AS col2, - 77
----
-79
-77

query II rowsort
SELECT - 63, ( + 56 ) col0
----
-63
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2717
SELECT COUNT( ALL + 65 ) - - MAX( ALL - - 45 ) + 74 + + - COALESCE ( - - 82, + 31, + 53 DIV COUNT( * ) ) - - COUNT( * ) + + 57 DIV 69 * - - 1 * - + 52 + + + 46 + COUNT( * ) + - CASE WHEN NOT 8 IN ( - ( 33 ) * 51 ) THEN + 80 * + COUNT( * ) WHEN NOT 13 IS NULL THEN + 38 * 6 ELSE NULL END - + 49 * + 89
----
-4355

skipif mysql # not compatible
query I rowsort label-2717
SELECT COUNT ( ALL + 65 ) - - MAX ( ALL - - 45 ) + 74 + + - COALESCE ( - - 82, + 31, + 53 / COUNT ( * ) ) - - COUNT ( * ) + + 57 / 69 * - - 1 * - + 52 + + + 46 + COUNT ( * ) + - CASE WHEN NOT 8 IN ( - ( 33 ) * 51 ) THEN + 80 * + COUNT ( * ) WHEN NOT 13 IS NULL THEN + 38 * 6 ELSE NULL END - + 49 * + 89
----
-4355

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT ALL 18 AS col0, + 63 * + 44 * + COUNT( * ) * NULLIF ( + MAX( 29 ), - ( - COALESCE ( - + MAX( - + COALESCE ( + 4, 73 ) ), 66 * - 86, + + 84 + + 71 ) ) ) AS col0
----
18
80388

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL 18 AS col0, + 63 * + 44 * + COUNT ( * ) * NULLIF ( + MAX ( 29 ), - ( - COALESCE ( - + MAX ( - + COALESCE ( + 4, 73 ) ), 66 * - 86, + + 84 + + 71 ) ) ) AS col0
----
18
80388

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL ( - SUM( 2 ) ) + - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL ( - SUM ( 2 ) ) + - COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT 97 + + - NULLIF ( - + 24, + - COUNT( * ) )
----
121

skipif mysql # not compatible
query I rowsort label-2720
SELECT 97 + + - NULLIF ( - + 24, + - COUNT ( * ) )
----
121

query II rowsort
SELECT 33 - 33 * + - 15, + 94 * - 94 * + 66 AS col2
----
528
-583176

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ( - 69 ) * - + 17 + + - 54 + 4 DIV + 11 * 64
----
1119

skipif mysql # not compatible
query I rowsort label-2722
SELECT ( - 69 ) * - + 17 + + - 54 + 4 / + 11 * 64
----
1119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT ALL ( - 94 ) DIV + COUNT( * ) + - 9 * + - 60
----
446

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL ( - 94 ) / + COUNT ( * ) + - 9 * + - 60
----
446

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT 81 AS col0, + 21 * - 11 * - - MAX( + 98 )
----
81
-22638

skipif mysql # not compatible
query II rowsort label-2724
SELECT 81 AS col0, + 21 * - 11 * - - MAX ( + 98 )
----
81
-22638

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT - 39, + 79 + COUNT( * ) col1
----
-39
80

skipif mysql # not compatible
query II rowsort label-2725
SELECT - 39, + 79 + COUNT ( * ) col1
----
-39
80

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

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

query I rowsort
SELECT 23 + 66
----
89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ( + - 12 ) + + CAST( - 96 AS SIGNED ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-2729
SELECT ( + - 12 ) + + CAST ( - 96 AS INTEGER ) AS col0
----
-108

query I rowsort
SELECT ALL 54 * - 6 AS col1
----
-324

query I rowsort
SELECT 51 + 97 + 0 AS col0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2732
SELECT + COUNT( * ) DIV + 44 * - 26 - + 45 + 63
----
18

skipif mysql # not compatible
query I rowsort label-2732
SELECT + COUNT ( * ) / + 44 * - 26 - + 45 + 63
----
18

query I rowsort
SELECT 19 * + 14 AS col1
----
266

query I rowsort
SELECT + 45 + + + 34 + 85 + + - 95
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + 55 * + COUNT( * ) + + + 35 * - 19 + - 57
----
-667

skipif mysql # not compatible
query I rowsort label-2735
SELECT + 55 * + COUNT ( * ) + + + 35 * - 19 + - 57
----
-667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT ALL - - NULLIF ( - 70, + - 79 + + CAST( + - 38 AS SIGNED ) )
----
-70

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - - NULLIF ( - 70, + - 79 + + CAST ( + - 38 AS INTEGER ) )
----
-70

query I rowsort
SELECT DISTINCT + 6 * + - 62 * - 12 * + 81 AS col0
----
361584

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + - CASE - 77 WHEN 94 THEN - CASE 43 WHEN + NULLIF ( - 36, 81 + + + 58 * - + COUNT( * ) * COUNT( * ) ) THEN NULL ELSE - 75 END ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT + - CASE - 77 WHEN 94 THEN - CASE 43 WHEN + NULLIF ( - 36, 81 + + + 58 * - + COUNT ( * ) * COUNT ( * ) ) THEN NULL ELSE - 75 END ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT DISTINCT COUNT( * ) * 85 + - 82 AS col0, 34
----
3
34

skipif mysql # not compatible
query II rowsort label-2739
SELECT DISTINCT COUNT ( * ) * 85 + - 82 AS col0, 34
----
3
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT - - 68 DIV - 36
----
-1

skipif mysql # not compatible
query I rowsort label-2740
SELECT - - 68 / - 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT + + 18 * - - COUNT( * ) + + - COUNT( * ) + - 14 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT + + 18 * - - COUNT ( * ) + + - COUNT ( * ) + - 14 AS col2
----
3

query I rowsort
SELECT ALL + + 17 AS col0
----
17

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

skipif mysql # not compatible
query I rowsort label-2743
SELECT + - CAST ( NULL AS REAL ) * + 11 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2744
SELECT DISTINCT - COALESCE ( - - CAST( NULL AS SIGNED ), - - 39 * 90 + + CASE - ( CASE + 8 WHEN + + 23 THEN 76 * + 47 ELSE NULL END ) WHEN + - 90 + 50 * 4 - + + 54 * - + 85 THEN - 94 ELSE NULL END, 56, - NULLIF ( + 4, 30 + 17 ) * CAST( COUNT( DISTINCT + 69 ) AS SIGNED ) ) * - 72 + - 19 col1
----
4013

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - COALESCE ( - - CAST ( NULL AS INTEGER ), - - 39 * 90 + + CASE - ( CASE + 8 WHEN + + 23 THEN 76 * + 47 ELSE NULL END ) WHEN + - 90 + 50 * 4 - + + 54 * - + 85 THEN - 94 ELSE NULL END, 56, - NULLIF ( + 4, 30 + 17 ) * CAST ( COUNT ( DISTINCT + 69 ) AS INTEGER ) ) * - 72 + - 19 col1
----
4013

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL - - 99 * COUNT( * ) + - ( 74 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - - 99 * COUNT ( * ) + - ( 74 ) AS col1
----
25

query I rowsort
SELECT - 28 * + 45 * + + 67 col1
----
-84420

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL + COUNT( * ) + + - 29 + - 54 * - 7
----
350

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL + COUNT ( * ) + + - 29 + - 54 * - 7
----
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL CASE 92 WHEN - + 59 THEN COALESCE ( + + AVG ( - 49 ), 1 + - 67 * - + MAX( ALL + + 74 ) * + + CAST( NULL AS SIGNED ) + + ( - 13 ) ) - - NULLIF ( + - 51, - 44 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL CASE 92 WHEN - + 59 THEN COALESCE ( + + AVG ( - 49 ), 1 + - 67 * - + MAX ( ALL + + 74 ) * + + CAST ( NULL AS INTEGER ) + + ( - 13 ) ) - - NULLIF ( + - 51, - 44 ) END col0
----
NULL

query I rowsort
SELECT - 44 + - - 41
----
-3

query I rowsort
SELECT ALL - 47 - + - ( - + 41 ) AS col2
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + 29 * + - SUM( DISTINCT 11 ) + + 67 + - 37 * 42 AS col1
----
-1806

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 29 * + - SUM ( DISTINCT 11 ) + + 67 + - 37 * 42 AS col1
----
-1806

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT - 8 DIV 39 * ( 92 )
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 8 / 39 * ( 92 )
----
0

query I rowsort
SELECT DISTINCT + 74 * - 99
----
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - MIN( ALL - - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2755
SELECT - MIN ( ALL - - 4 ) AS col2
----
-4

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2757
SELECT DISTINCT 89 DIV - 90 AS col1, - 84 + 61 + 97 + 41 * + ( - 24 ) + - - 34
----
0
-876

skipif mysql # not compatible
query II rowsort label-2757
SELECT DISTINCT 89 / - 90 AS col1, - 84 + 61 + 97 + 41 * + ( - 24 ) + - - 34
----
0
-876

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT DISTINCT 7 DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT 7 / 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT + 12 * + COUNT( ALL 83 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 12 * + COUNT ( ALL 83 ) AS col1
----
12

query I rowsort
SELECT ALL ( 10 ) col1
----
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2762
SELECT - AVG ( ALL - + 14 ) / - CAST( NULL AS SIGNED ) * 96 * - 81 + + 82 + - COUNT( ALL + + 57 ) * + - 26 + + 82, + 46 - + SUM( DISTINCT - - 78 ) - - 11 AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-2762
SELECT - AVG ( ALL - + 14 ) / - CAST ( NULL AS INTEGER ) * 96 * - 81 + + 82 + - COUNT ( ALL + + 57 ) * + - 26 + + 82, + 46 - + SUM ( DISTINCT - - 78 ) - - 11 AS col0
----
NULL
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2763
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - + CASE - 54 WHEN + 49 THEN + 11 END * + 45 * - COUNT( * ) + + NULLIF ( + 79, + + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT + CAST ( NULL AS REAL ) / - + CASE - 54 WHEN + 49 THEN + 11 END * + 45 * - COUNT ( * ) + + NULLIF ( + 79, + + 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + - COUNT( * ) * - 56 + MIN( ALL - ( + 92 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-2764
SELECT + - COUNT ( * ) * - 56 + MIN ( ALL - ( + 92 ) )
----
-36

query I rowsort
SELECT + 43 * - - 21 AS col1
----
903

query I rowsort
SELECT ALL + 52 * + 20 * - + ( - 78 )
----
81120

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT 69 DIV - + 97 + - 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT 69 / - + 97 + - 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-2768
SELECT DISTINCT 84 * - 37 + SUM( ALL - 72 ) AS col2, 45 col1
----
-3180
45

skipif mysql # not compatible
query II rowsort label-2768
SELECT DISTINCT 84 * - 37 + SUM ( ALL - 72 ) AS col2, 45 col1
----
-3180
45

query I rowsort
SELECT + + 38 * - 25 + - 95 AS col2
----
-1045

onlyif mysql # DIV for integer division: 
query I rowsort label-2770
SELECT ALL - - 74 DIV - + 92 + + - NULLIF ( 97, 69 DIV - 18 ) + + 72
----
-25

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - - 74 / - + 92 + + - NULLIF ( 97, 69 / - 18 ) + + 72
----
-25

query I rowsort
SELECT DISTINCT + + 67 AS col0
----
67

query I rowsort
SELECT + 71 * + 32 - - 43 + - - 98 * - + 93
----
-6799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT + CAST( NULL AS SIGNED ) - - 32 * - + 22 + - 51 + + + COALESCE ( - 26, 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT + CAST ( NULL AS INTEGER ) - - 32 * - + 22 + - 51 + + + COALESCE ( - 26, 62 )
----
NULL

query I rowsort
SELECT + - 31 + - 73
----
-104

query I rowsort
SELECT DISTINCT - 59 * 52 + CASE WHEN ( NULL ) <= 58 THEN - + ( - 87 ) END + + 67 + - 60
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2777
SELECT DISTINCT ( + - 48 ) * + + ( - 42 ) - + - 2 - + 0 + + - 5 AS col2, + COUNT( * ) AS col1
----
2013
1

skipif mysql # not compatible
query II rowsort label-2777
SELECT DISTINCT ( + - 48 ) * + + ( - 42 ) - + - 2 - + 0 + + - 5 AS col2, + COUNT ( * ) AS col1
----
2013
1

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

query I rowsort
SELECT ALL 76 * - 83 - + - 54
----
-6254

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT ALL + CASE + 14 WHEN 66 * - 35 + - + 8 - + + AVG ( DISTINCT 27 ) * + - 0 * 57 * + - 91 THEN + 11 - - 32 WHEN + ( + - CAST( + 52 AS SIGNED ) ) * - + 4 + - + 32 + + 90 THEN NULL ELSE NULLIF ( - 29, - 45 / + 97 + 74 ) + - 23 * 52 END
----
-1225

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL + CASE + 14 WHEN 66 * - 35 + - + 8 - + + AVG ( DISTINCT 27 ) * + - 0 * 57 * + - 91 THEN + 11 - - 32 WHEN + ( + - CAST ( + 52 AS INTEGER ) ) * - + 4 + - + 32 + + 90 THEN NULL ELSE NULLIF ( - 29, - 45 / + 97 + 74 ) + - 23 * 52 END
----
-1225

query I rowsort
SELECT ALL - 60 * + 78
----
-4680

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

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

query I rowsort
SELECT ALL 32 * - 46
----
-1472

query I rowsort
SELECT + 38 + + 38
----
76

query I rowsort
SELECT + 97 * - - 64 AS col1
----
6208

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

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + 15 * + COUNT ( * ) AS col1
----
15

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

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

query I rowsort
SELECT 15 * - + 45 - - 32 * 48
----
861

query I rowsort
SELECT - 67 * + - 24 AS col1
----
1608

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

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

query I rowsort
SELECT ALL ( - 52 ) * - 56
----
2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN - NULLIF ( - CAST( NULL AS SIGNED ), + - 47 / + 2 * - COUNT( * ) ) THEN - COALESCE ( + 22, + 76 * 7 - CAST( NULL AS SIGNED ) + 69 * + 44 / AVG ( ALL - 27 ) ) / + + 41 WHEN + ( - 28 ) * - 21 + - MIN( 93 ) * - 79 THEN + 68 + - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN - NULLIF ( - CAST ( NULL AS INTEGER ), + - 47 / + 2 * - COUNT ( * ) ) THEN - COALESCE ( + 22, + 76 * 7 - CAST ( NULL AS INTEGER ) + 69 * + 44 / AVG ( ALL - 27 ) ) / + + 41 WHEN + ( - 28 ) * - 21 + - MIN ( 93 ) * - 79 THEN + 68 + - 24 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 52 * 70
----
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT - CASE - AVG ( DISTINCT COALESCE ( - 8, + 4 + + - 59 - - CAST( NULL AS SIGNED ) + - 51 * - 69 + + 97 * 88 * - ( - + 46 ) ) ) WHEN + - 36 * + 57 + - CAST( NULL AS SIGNED ) / + NULLIF ( - 53, + 45 ) * 56 THEN NULL WHEN COUNT( DISTINCT 74 ) * - ( 60 * 38 ) - - COUNT( * ) * + 71 THEN NULL ELSE COUNT( * ) END - 67 * 73
----
-4892

skipif mysql # not compatible
query I rowsort label-2795
SELECT - CASE - AVG ( DISTINCT COALESCE ( - 8, + 4 + + - 59 - - CAST ( NULL AS INTEGER ) + - 51 * - 69 + + 97 * 88 * - ( - + 46 ) ) ) WHEN + - 36 * + 57 + - CAST ( NULL AS INTEGER ) / + NULLIF ( - 53, + 45 ) * 56 THEN NULL WHEN COUNT ( DISTINCT 74 ) * - ( 60 * 38 ) - - COUNT ( * ) * + 71 THEN NULL ELSE COUNT ( * ) END - 67 * 73
----
-4892

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

query I rowsort
SELECT - 24 + - 56 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - COUNT( * ) - + 57 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2798
SELECT - COUNT ( * ) - + 57 AS col1
----
-58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2800
SELECT ALL - 23 + CAST( - - COUNT( * ) AS SIGNED ) DIV - + 98 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - 23 + CAST ( - - COUNT ( * ) AS INTEGER ) / - + 98 AS col0
----
-23

query I rowsort
SELECT ALL - - 63 + - + 9
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2802
SELECT ALL + 48 + CAST( NULL AS SIGNED ) / - 45 AS col0, 71 + - - 68 + - 88 + + - 95 * + COUNT( * ) AS col0
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL + 48 + CAST ( NULL AS INTEGER ) / - 45 AS col0, 71 + - - 68 + - 88 + + - 95 * + COUNT ( * ) AS col0
----
NULL
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2803
SELECT 41 + COUNT( * ) + + COUNT( 41 ) * + + CAST( NULL AS SIGNED ) + + 51 * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT 41 + COUNT ( * ) + + COUNT ( 41 ) * + + CAST ( NULL AS INTEGER ) + + 51 * + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT - 79 * - COUNT( * ) * - 68
----
-5372

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - 79 * - COUNT ( * ) * - 68
----
-5372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT + COALESCE ( 45, - 54, - + 15 * - - 11 ) + - NULLIF ( - - 56, + 58 + - 39 + 62 * + COUNT( * ) ) + MIN( DISTINCT + 65 ) * - CASE - - 77 WHEN - + ( - COUNT( * ) ) * 94 / + CAST( + ( 18 ) AS SIGNED ) * + 64 THEN 43 ELSE NULL END * + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + COALESCE ( 45, - 54, - + 15 * - - 11 ) + - NULLIF ( - - 56, + 58 + - 39 + 62 * + COUNT ( * ) ) + MIN ( DISTINCT + 65 ) * - CASE - - 77 WHEN - + ( - COUNT ( * ) ) * 94 / + CAST ( + ( 18 ) AS INTEGER ) * + 64 THEN 43 ELSE NULL END * + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL COALESCE ( COUNT( * ), - - 4 ) + - - 81 - - 7 + 14
----
103

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL COALESCE ( COUNT ( * ), - - 4 ) + - - 81 - - 7 + 14
----
103

query I rowsort
SELECT - 16 * + 98 + 48
----
-1520

query I rowsort
SELECT ALL + ( + 0 ) + - 64 + - 61
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL + 96 + - 39 * - + COUNT( + 71 ) * + 10
----
486

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + 96 + - 39 * - + COUNT ( + 71 ) * + 10
----
486

query I rowsort
SELECT + 83 * + 28
----
2324

query I rowsort
SELECT - + 19 * - 11 - + 51 + 18 AS col2
----
176

query I rowsort
SELECT + + COALESCE ( + 95, + 56, + 55 ) AS col2
----
95

query I rowsort
SELECT CASE WHEN 60 IS NULL THEN + - 99 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL + 46 * + 13 + + 65 - MIN( - ( 36 ) ) - + 67 col2
----
632

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + 46 * + 13 + + 65 - MIN ( - ( 36 ) ) - + 67 col2
----
632

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT ALL - 35 DIV - 9 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - 35 / - 9 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT DISTINCT - CASE 73 WHEN + ( + COUNT( - + 31 ) ) - + 36 + - 61 THEN MIN( ALL - 84 ) ELSE NULL END * + + 48 / 70 + - + SUM( ALL + 35 ) + + + ( 44 ) AS col0, 48 - + COUNT( * )
----
NULL
47

skipif mysql # not compatible
query II rowsort label-2816
SELECT DISTINCT - CASE 73 WHEN + ( + COUNT ( - + 31 ) ) - + 36 + - 61 THEN MIN ( ALL - 84 ) ELSE NULL END * + + 48 / 70 + - + SUM ( ALL + 35 ) + + + ( 44 ) AS col0, 48 - + COUNT ( * )
----
NULL
47

query I rowsort
SELECT DISTINCT 58 - - 23 AS col2
----
81

query I rowsort
SELECT ALL 56 * NULLIF ( - + ( + 36 ), 86 ) AS col2
----
-2016

query II rowsort
SELECT ALL NULLIF ( 94, + 9 ) - + 8 + + + ( 24 ) AS col1, - 18
----
110
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT + 59 * + - 49 / + - NULLIF ( - COUNT( - 4 ), + 23 * - 32 ) * - 26 + - 30 + - CASE 41 WHEN 82 + + 56 THEN + + 98 - - AVG ( - 13 ) WHEN 87 + - - 58 THEN NULL END + - COUNT( * ) * - - 45 * 35 * + 55 + - CAST( - 91 AS SIGNED ) * 31 + AVG ( ALL 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT + 59 * + - 49 / + - NULLIF ( - COUNT ( - 4 ), + 23 * - 32 ) * - 26 + - 30 + - CASE 41 WHEN 82 + + 56 THEN + + 98 - - AVG ( - 13 ) WHEN 87 + - - 58 THEN NULL END + - COUNT ( * ) * - - 45 * 35 * + 55 + - CAST ( - 91 AS INTEGER ) * 31 + AVG ( ALL 87 ) AS col0
----
NULL

query I rowsort
SELECT 36 * 61 * + 25
----
54900

query II rowsort
SELECT 62 AS col2, - 52
----
62
-52

query II rowsort
SELECT 97 col1, + 76
----
97
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2824
SELECT NULLIF ( + 69, - 52 ) + + 16 + - COUNT( * ) + 85 + - - CAST( NULL AS DECIMAL ) + - CAST( NULL AS DECIMAL ) * - 24 + - + 96 * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT NULLIF ( + 69, - 52 ) + + 16 + - COUNT ( * ) + 85 + - - CAST ( NULL AS REAL ) + - CAST ( NULL AS REAL ) * - 24 + - + 96 * + 25 AS col1
----
NULL

query I rowsort
SELECT 26 * - 20
----
-520

query I rowsort
SELECT 20 * - 5 + + 72
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ( - 5 ) - + - 98 * COUNT( * ) * 92 AS col0
----
9011

skipif mysql # not compatible
query I rowsort label-2827
SELECT ( - 5 ) - + - 98 * COUNT ( * ) * 92 AS col0
----
9011

query II rowsort
SELECT ALL - 71, 52 col1
----
-71
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2829
SELECT ALL - COALESCE ( + 70, - 72 * + 68 * 19 DIV + ( CAST( - CAST( 8 AS SIGNED ) AS SIGNED ) ), 26 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - COALESCE ( + 70, - 72 * + 68 * 19 / + ( CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) ), 26 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT MAX( ALL + 57 ) * + 74 AS col1
----
4218

skipif mysql # not compatible
query I rowsort label-2830
SELECT MAX ( ALL + 57 ) * + 74 AS col1
----
4218

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT 86, COUNT( ALL - ( 19 ) ) AS col1
----
86
1

skipif mysql # not compatible
query II rowsort label-2833
SELECT 86, COUNT ( ALL - ( 19 ) ) AS col1
----
86
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT 86 + - 69 DIV - + 99 * - ( - - 97 )
----
86

skipif mysql # not compatible
query I rowsort label-2834
SELECT 86 + - 69 / - + 99 * - ( - - 97 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2835
SELECT - 65 * - NULLIF ( 5, CAST( NULL AS SIGNED ) + + - 76 - + COUNT( * ) ), + 15 col2
----
325
15

skipif mysql # not compatible
query II rowsort label-2835
SELECT - 65 * - NULLIF ( 5, CAST ( NULL AS INTEGER ) + + - 76 - + COUNT ( * ) ), + 15 col2
----
325
15

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2837
SELECT - 78 * - 95 * + COALESCE ( + - 36, + + 19 + - 42, - + 72 ) DIV COUNT( + 9 ) + - 81 AS col2
----
-266841

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 78 * - 95 * + COALESCE ( + - 36, + + 19 + - 42, - + 72 ) / COUNT ( + 9 ) + - 81 AS col2
----
-266841

query I rowsort
SELECT ALL - + 27 + + 90
----
63

query II rowsort
SELECT DISTINCT - 84 AS col1, 9 * - 56 * + 38 AS col2
----
-84
-19152

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL + ( - + NULLIF ( + + 90, - 99 * - 23 ) ) + 34 - + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + ( - + NULLIF ( + + 90, - 99 * - 23 ) ) + 34 - + COUNT ( * )
----
-57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT + CAST( NULL AS SIGNED ) - 28 + - 20 / - MIN( DISTINCT + 71 ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT + CAST ( NULL AS INTEGER ) - 28 + - 20 / - MIN ( DISTINCT + 71 ) * + 68
----
NULL

query II rowsort
SELECT - 65 AS col1, ( + 49 ) col1
----
-65
49

query II rowsort
SELECT 81 AS col1, + 16 - + 65 AS col1
----
81
-49

query I rowsort
SELECT - 81 - + - CASE + 82 WHEN + 10 THEN - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL - NULLIF ( - 3, + + MIN( DISTINCT + 84 ) )
----
3

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - NULLIF ( - 3, + + MIN ( DISTINCT + 84 ) )
----
3

query II rowsort
SELECT ALL - - 64 AS col2, + 55 AS col2
----
64
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT DISTINCT - - 93 * - - 80 * SUM( + 85 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT - - 93 * - - 80 * SUM ( + 85 ) + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT ALL - CASE + - 21 WHEN 88 * - - 87 THEN - 71 * 55 WHEN - + 60 + + + 78 THEN 90 WHEN - 38 * 80 / COUNT( * ) THEN - CAST( + + 62 AS SIGNED ) * - 24 * 74 * + 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - CASE + - 21 WHEN 88 * - - 87 THEN - 71 * 55 WHEN - + 60 + + + 78 THEN 90 WHEN - 38 * 80 / COUNT ( * ) THEN - CAST ( + + 62 AS INTEGER ) * - 24 * 74 * + 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2851
SELECT 7 * - 40 AS col1, COUNT( * ) AS col0, - 20 + MIN( DISTINCT + 32 ) - + - COUNT( * ) * 8 * - 90 * - 35 AS col2
----
-280
1
25212

skipif mysql # not compatible
query III rowsort label-2851
SELECT 7 * - 40 AS col1, COUNT ( * ) AS col0, - 20 + MIN ( DISTINCT + 32 ) - + - COUNT ( * ) * 8 * - 90 * - 35 AS col2
----
-280
1
25212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2852
SELECT DISTINCT + COUNT( * ) DIV - + 99 AS col0, 32 AS col2
----
0
32

skipif mysql # not compatible
query II rowsort label-2852
SELECT DISTINCT + COUNT ( * ) / - + 99 AS col0, 32 AS col2
----
0
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT 34 * - MIN( ALL + 71 ) + - 45
----
-2459

skipif mysql # not compatible
query I rowsort label-2854
SELECT 34 * - MIN ( ALL + 71 ) + - 45
----
-2459

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT DISTINCT 73 * + - 74 * - + ( - COALESCE ( + 92, + + MAX( ALL + 17 ) DIV + + 59, - COUNT( * ) ) )
----
-496984

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT 73 * + - 74 * - + ( - COALESCE ( + 92, + + MAX ( ALL + 17 ) / + + 59, - COUNT ( * ) ) )
----
-496984

query II rowsort
SELECT DISTINCT 90 + + 58 AS col0, 85 AS col0
----
148
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT 32 + + 23 + ( + + 37 ) * COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-2859
SELECT 32 + + 23 + ( + + 37 ) * COUNT ( * )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT DISTINCT 37 + + CASE - 11 WHEN - 20 THEN CAST( 15 AS SIGNED ) * + MAX( ALL - + ( - + 4 ) ) + COUNT( * ) + + + ( 98 ) / - - 43 * - - 66 + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT 37 + + CASE - 11 WHEN - 20 THEN CAST ( 15 AS INTEGER ) * + MAX ( ALL - + ( - + 4 ) ) + COUNT ( * ) + + + ( 98 ) / - - 43 * - - 66 + 94 END
----
NULL

query I rowsort
SELECT ALL - 6 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + SUM( 95 ) * + 65 AS col1
----
6175

skipif mysql # not compatible
query I rowsort label-2862
SELECT + SUM ( 95 ) * + 65 AS col1
----
6175

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT CASE - + 26 WHEN 17 THEN NULL WHEN + 17 - ( - 38 ) THEN - 78 ELSE NULL END * + COUNT( * ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT CASE - + 26 WHEN 17 THEN NULL WHEN + 17 - ( - 38 ) THEN - 78 ELSE NULL END * + COUNT ( * ) - + COUNT ( * )
----
NULL

query II rowsort
SELECT + 71 + - - 68 + 37 col0, - ( + + 34 )
----
176
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT + 62 + NULLIF ( CAST( NULL AS SIGNED ), + - 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT + 62 + NULLIF ( CAST ( NULL AS INTEGER ), + - 96 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT ALL - 90 + - 37 DIV - 91 col2
----
-90

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - 90 + - 37 / - 91 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT - CASE - 17 WHEN + CASE WHEN - 10 BETWEEN + + COUNT( * ) * + - 93 * - + 8 + 88 - 40 AND + + 70 THEN + + 21 ELSE + 59 + - - 75 + - - 51 - 56 * - 61 END + 0 THEN - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT - CASE - 17 WHEN + CASE WHEN - 10 BETWEEN + + COUNT ( * ) * + - 93 * - + 8 + 88 - 40 AND + + 70 THEN + + 21 ELSE + 59 + - - 75 + - - 51 - 56 * - 61 END + 0 THEN - 90 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT DISTINCT CAST( + 97 AS SIGNED ) + - + 67 col2
----
30

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT CAST ( + 97 AS INTEGER ) + - + 67 col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2869
SELECT + - 34 - + COUNT( * ) col2, - COUNT( * )
----
-35
-1

skipif mysql # not compatible
query II rowsort label-2869
SELECT + - 34 - + COUNT ( * ) col2, - COUNT ( * )
----
-35
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT ALL 68 * - CAST( NULL AS SIGNED ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL 68 * - CAST ( NULL AS INTEGER ) + + 75
----
NULL

query I rowsort
SELECT ALL - ( - CASE ( + + 5 ) WHEN + 20 THEN - 16 WHEN + 38 THEN + 61 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + + 65 + 77 + + ( - COUNT( * ) ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-2872
SELECT + + 65 + 77 + + ( - COUNT ( * ) ) AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - COALESCE ( 20, + - CASE 89 WHEN - NULLIF ( + ( ( + COUNT( * ) ) ), + 34 + 28 * - - 91 ) + - - 82 THEN NULL ELSE - - 51 END, + - 60 ) + - - 26 + 71 col0
----
77

skipif mysql # not compatible
query I rowsort label-2873
SELECT - COALESCE ( 20, + - CASE 89 WHEN - NULLIF ( + ( ( + COUNT ( * ) ) ), + 34 + 28 * - - 91 ) + - - 82 THEN NULL ELSE - - 51 END, + - 60 ) + - - 26 + 71 col0
----
77

query I rowsort
SELECT ALL 34 * - + 89 * + + 57 AS col2
----
-172482

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + 78 + - MAX( ALL 11 )
----
67

skipif mysql # not compatible
query I rowsort label-2875
SELECT + 78 + - MAX ( ALL 11 )
----
67

query II rowsort
SELECT DISTINCT - ( + 66 ), 14 * - + 73 AS col0
----
-66
-1022

query I rowsort
SELECT CASE - 88 WHEN + 72 THEN 79 END
----
NULL

query I rowsort
SELECT - + 33 * 74
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + MAX( 59 ) + - COUNT( * ) - - 85 + - - COUNT( + - 98 ) + + 69 - - - 30 * 23
----
-477

skipif mysql # not compatible
query I rowsort label-2879
SELECT + MAX ( 59 ) + - COUNT ( * ) - - 85 + - - COUNT ( + - 98 ) + + 69 - - - 30 * 23
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT - - 58 + + + MIN( DISTINCT + 7 ) + - COUNT( * ) * 21 * 79 AS col2
----
-1594

skipif mysql # not compatible
query I rowsort label-2880
SELECT - - 58 + + + MIN ( DISTINCT + 7 ) + - COUNT ( * ) * 21 * 79 AS col2
----
-1594

query I rowsort
SELECT + ( COALESCE ( - 81, - 91 * - ( - 68 ) - 92 - + 13, - 56 ) )
----
-81

query I rowsort
SELECT - 80 + - + 39 + - 75 * - 87
----
6406

query II rowsort
SELECT ALL + 56 * - - ( + 28 ) AS col2, 75 * - 99 + - - 66
----
1568
-7359

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT 56 * + - NULLIF ( + + MIN( DISTINCT - + 38 ), - + ( 6 ) * + 88 - - 44 * + 25 ) + + COUNT( * ) + 15
----
2144

skipif mysql # not compatible
query I rowsort label-2884
SELECT 56 * + - NULLIF ( + + MIN ( DISTINCT - + 38 ), - + ( 6 ) * + 88 - - 44 * + 25 ) + + COUNT ( * ) + 15
----
2144

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

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

query I rowsort
SELECT - 8 - 11 AS col1
----
-19

query I rowsort
SELECT + 25 * 32 + - + 30
----
770

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT 94 * 18 * 29 + + - 99 + - SUM( + 97 ) + 76 AS col1
----
48948

skipif mysql # not compatible
query I rowsort label-2889
SELECT 94 * 18 * 29 + + - 99 + - SUM ( + 97 ) + 76 AS col1
----
48948

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + ( - 0 ) * CASE + 60 WHEN - 51 / + - 25 + - 82 THEN + 75 * + ( + COUNT( * ) ) / - MIN( 99 ) + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT + ( - 0 ) * CASE + 60 WHEN - 51 / + - 25 + - 82 THEN + 75 * + ( + COUNT ( * ) ) / - MIN ( 99 ) + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 42 * + - ( + - 65 ) AS col0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT NULLIF ( - 68, + 3 * + ( - COUNT( * ) ) + - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT NULLIF ( - 68, + 3 * + ( - COUNT ( * ) ) + - 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - - 65 * + 30 - COUNT( * ) + 24 + + 44
----
2017

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - - 65 * + 30 - COUNT ( * ) + 24 + + 44
----
2017

query I rowsort
SELECT + 69 + + - 33
----
36

query I rowsort
SELECT DISTINCT + + 43 * + 88 AS col0
----
3784

query I rowsort
SELECT + 83 + - 75 - - 78 * - - 11 AS col1
----
866

onlyif mysql # aggregate syntax: 
query II rowsort label-2897
SELECT ALL 57 * - MAX( DISTINCT - + 77 ) - + + 70 * - + 86 * + 35 AS col0, + 85
----
215089
85

skipif mysql # not compatible
query II rowsort label-2897
SELECT ALL 57 * - MAX ( DISTINCT - + 77 ) - + + 70 * - + 86 * + 35 AS col0, + 85
----
215089
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2898
SELECT + 96 + - COUNT( * ) DIV - + NULLIF ( - 12, + - 10 DIV 44 - + 96 - + + COUNT( * ) ) AS col2, 80 * SUM( DISTINCT + 96 ) * + - 77 + ( - - 49 )
----
96
-591311

skipif mysql # not compatible
query II rowsort label-2898
SELECT + 96 + - COUNT ( * ) / - + NULLIF ( - 12, + - 10 / 44 - + 96 - + + COUNT ( * ) ) AS col2, 80 * SUM ( DISTINCT + 96 ) * + - 77 + ( - - 49 )
----
96
-591311

query I rowsort
SELECT - + 78 * + - 38 AS col1
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT NULLIF ( - - 99, - 7 * - COALESCE ( - + NULLIF ( + + 95, + COUNT( * ) * - 31 ), 44 / - 78 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2900
SELECT NULLIF ( - - 99, - 7 * - COALESCE ( - + NULLIF ( + + 95, + COUNT ( * ) * - 31 ), 44 / - 78 ) ) AS col0
----
99

query I rowsort
SELECT DISTINCT 84 - + - 45 AS col0
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT - - CASE 67 WHEN 37 THEN + + 90 * + 16 * - 20 * - 72 WHEN + - MIN( + - 97 ) - + - 31 THEN COUNT( * ) * + ( + 16 ) ELSE - + COUNT( * ) END, 30 * + - MIN( DISTINCT + 81 ) AS col2
----
-1
-2430

skipif mysql # not compatible
query II rowsort label-2902
SELECT - - CASE 67 WHEN 37 THEN + + 90 * + 16 * - 20 * - 72 WHEN + - MIN ( + - 97 ) - + - 31 THEN COUNT ( * ) * + ( + 16 ) ELSE - + COUNT ( * ) END, 30 * + - MIN ( DISTINCT + 81 ) AS col2
----
-1
-2430

query I rowsort
SELECT ALL - 17 * - - 74 AS col2
----
-1258

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT ALL 16 AS col0, COUNT( * ) + - 27 + - + COUNT( * )
----
16
-27

skipif mysql # not compatible
query II rowsort label-2904
SELECT ALL 16 AS col0, COUNT ( * ) + - 27 + - + COUNT ( * )
----
16
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT + + CAST( + CAST( + + 5 AS SIGNED ) AS SIGNED ) * 40
----
200

skipif mysql # not compatible
query I rowsort label-2905
SELECT + + CAST ( + CAST ( + + 5 AS INTEGER ) AS INTEGER ) * 40
----
200

query I rowsort
SELECT ALL 29 * + 87 AS col2
----
2523

query II rowsort
SELECT ALL 68 * + - 13 - - 68 col0, + 93 + - 41
----
-816
52

query I rowsort
SELECT + 43 + - + 6 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - MIN( DISTINCT + 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2909
SELECT - MIN ( DISTINCT + 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + 56 * MIN( - 82 ) AS col0
----
-4592

skipif mysql # not compatible
query I rowsort label-2910
SELECT + 56 * MIN ( - 82 ) AS col0
----
-4592

query I rowsort
SELECT + 26 * 76 col2
----
1976

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT - - 96 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-2912
SELECT - - 96 / + 50
----
1

query I rowsort
SELECT DISTINCT 32 + 11 col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT ALL - 97 DIV + + 61
----
-1

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - 97 / + + 61
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2915
SELECT + 62 DIV - - 61 AS col0, + 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-2915
SELECT + 62 / - - 61 AS col0, + 64 AS col1
----
1
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT DISTINCT + 80 DIV + - 98 * - 31 + - - 98 + - 32 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + 80 / + - 98 * - 31 + - - 98 + - 32 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2917
SELECT 70 * + 68 * - 44 + - - 36 + COUNT( * ) DIV + CAST( + - 53 AS SIGNED ) DIV - 22
----
-209404

skipif mysql # not compatible
query I rowsort label-2917
SELECT 70 * + 68 * - 44 + - - 36 + COUNT ( * ) / + CAST ( + - 53 AS INTEGER ) / - 22
----
-209404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2918
SELECT - 8 / + CAST( NULL AS SIGNED ) + 92 + + 45 * COUNT( * ), - COUNT( * ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2918
SELECT - 8 / + CAST ( NULL AS INTEGER ) + 92 + + 45 * COUNT ( * ), - COUNT ( * ) col1
----
NULL
-1

query I rowsort
SELECT DISTINCT + 25 + + NULLIF ( + 63, 81 + + 78 ) * + - 8 AS col0
----
-479

query I rowsort
SELECT ALL + 8 + - 13
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT 61 * + - MIN( 60 )
----
-3660

skipif mysql # not compatible
query I rowsort label-2921
SELECT 61 * + - MIN ( 60 )
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT 8 * + 48 * MAX( ALL + 40 ) + ( + COUNT( * ) ) * + 59
----
15419

skipif mysql # not compatible
query I rowsort label-2922
SELECT 8 * + 48 * MAX ( ALL + 40 ) + ( + COUNT ( * ) ) * + 59
----
15419

onlyif mysql # DIV for integer division: 
query II rowsort label-2923
SELECT 92 DIV + 77, + 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-2923
SELECT 92 / + 77, + 25 AS col0
----
1
25

query I rowsort
SELECT DISTINCT - + 23 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2925
SELECT - CASE 48 WHEN + COUNT( * ) + - 34 + + 79 / CAST( 95 AS SIGNED ) THEN NULL WHEN + 49 THEN - - NULLIF ( + 61, + - 53 * - 39 ) * + + CAST( + 93 AS DECIMAL ) - 56 + 75 ELSE NULL END + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT - CASE 48 WHEN + COUNT ( * ) + - 34 + + 79 / CAST ( 95 AS INTEGER ) THEN NULL WHEN + 49 THEN - - NULLIF ( + 61, + - 53 * - 39 ) * + + CAST ( + 93 AS REAL ) - 56 + 75 ELSE NULL END + 11 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 0, - + 77 * - 76 + 41 ) * + - 8 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT 72 - CASE WHEN NOT + 68 IS NULL THEN NULL ELSE - ( + MAX( + + 69 ) ) END + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT 72 - CASE WHEN NOT + 68 IS NULL THEN NULL ELSE - ( + MAX ( + + 69 ) ) END + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT + 32 * + - COUNT( * ) + + - ( + + 68 ) AS col2, - 77 AS col1
----
-100
-77

skipif mysql # not compatible
query II rowsort label-2928
SELECT + 32 * + - COUNT ( * ) + + - ( + + 68 ) AS col2, - 77 AS col1
----
-100
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2929
SELECT 33 DIV 61 + 56 * - - 77 + 35 + - COALESCE ( - 64, - 45 + - 37 - + - COUNT( * ) + MAX( 33 ) * + CASE + COUNT( * ) WHEN - 83 DIV - 89 THEN + - 84 ELSE NULL END * + + 28, - 90, 58 ) AS col0
----
4411

skipif mysql # not compatible
query I rowsort label-2929
SELECT 33 / 61 + 56 * - - 77 + 35 + - COALESCE ( - 64, - 45 + - 37 - + - COUNT ( * ) + MAX ( 33 ) * + CASE + COUNT ( * ) WHEN - 83 / - 89 THEN + - 84 ELSE NULL END * + + 28, - 90, 58 ) AS col0
----
4411

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT ALL - 68 DIV + + ( - MAX( + 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - 68 / + + ( - MAX ( + 45 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2931
SELECT ALL + ( + 75 ) * - 35 + + - 65 - - COALESCE ( + + COUNT( * ), - 31 * - 77 * 90 DIV - + SUM( ALL + 7 ) )
----
-2689

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + ( + 75 ) * - 35 + + - 65 - - COALESCE ( + + COUNT ( * ), - 31 * - 77 * 90 / - + SUM ( ALL + 7 ) )
----
-2689

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

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

query I rowsort
SELECT 43 + + + 74
----
117

query I rowsort
SELECT - ( + + 6 ) - + 21 AS col2
----
-27

query I rowsort
SELECT 2 * - 86 + + 9 AS col0
----
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT ALL + - 74 * - 72 col1, + MIN( ALL + 8 ) + + 35 AS col1
----
5328
43

skipif mysql # not compatible
query II rowsort label-2936
SELECT ALL + - 74 * - 72 col1, + MIN ( ALL + 8 ) + + 35 AS col1
----
5328
43

query I rowsort
SELECT 89 + - + 57
----
32

query I rowsort
SELECT 33 - + 73
----
-40

query I rowsort
SELECT DISTINCT + 94 + - + 47
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT ALL - COALESCE ( + 25, + ( + 46 ) + + COUNT( * ), + - 52 - 78 ), 74 col0
----
-25
74

skipif mysql # not compatible
query II rowsort label-2940
SELECT ALL - COALESCE ( + 25, + ( + 46 ) + + COUNT ( * ), + - 52 - 78 ), 74 col0
----
-25
74

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT + 24 + - 88 * + 70 - - 91 DIV - 67
----
-6137

skipif mysql # not compatible
query I rowsort label-2943
SELECT + 24 + - 88 * + 70 - - 91 / - 67
----
-6137

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT COUNT( * ) + 77 * + 98 AS col0
----
7547

skipif mysql # not compatible
query I rowsort label-2944
SELECT COUNT ( * ) + 77 * + 98 AS col0
----
7547

query I rowsort
SELECT ALL 15 + 17
----
32

query I rowsort
SELECT 45 + - 47
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2947
SELECT ALL - 38 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - 38 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT COUNT( * ) + - + 45 + + 78 * + + 99 * - + 52
----
-401588

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( * ) + - + 45 + + 78 * + + 99 * - + 52
----
-401588

query I rowsort
SELECT 71 + - 67 * - ( + 76 ) AS col1
----
5163

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT 14 + 11 DIV + - 46
----
14

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT 14 + 11 / + - 46
----
14

query I rowsort
SELECT ALL 72 + + 75
----
147

query II rowsort
SELECT 98 col2, - 98 * + 38 + 39 AS col1
----
98
-3685

query I rowsort
SELECT 61 * - + 77
----
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT 78 - + - 79 * - MIN( ALL - 18 )
----
1500

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT 78 - + - 79 * - MIN ( ALL - 18 )
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2955
SELECT CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + - 29 + 1, 65 * + 30 * + 60 + - 84 + - 97 AS col2
----
-29
116819

skipif mysql # not compatible
query II rowsort label-2955
SELECT CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 29 + 1, 65 * + 30 * + 60 + - 84 + - 97 AS col2
----
-29
116819

query II rowsort
SELECT DISTINCT - 18 AS col0, - 4 AS col0
----
-18
-4

query I rowsort
SELECT ( 87 ) - - 82 + - - 61 * + 31
----
2060

query I rowsort
SELECT 96 * 91 * + 89
----
777504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2959
SELECT 31 * - - ( - - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) ) + - 23 col0, 15
----
-23
15

skipif mysql # not compatible
query II rowsort label-2959
SELECT 31 * - - ( - - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) + - 23 col0, 15
----
-23
15

query II rowsort
SELECT + 55, 88 AS col1
----
55
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - + CASE 54 WHEN 82 THEN - + CASE 4 WHEN + + CASE - 51 WHEN - 2 + 73 * + - 98 THEN NULL WHEN - NULLIF ( 86, - + 72 + + 5 ) THEN NULL ELSE - 59 END THEN - 79 * + - 10 * - + 35 + - 39 - - 92 / - 1 WHEN 40 THEN NULL ELSE + 39 END - - MIN( DISTINCT 74 ) END * 26 + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT - + CASE 54 WHEN 82 THEN - + CASE 4 WHEN + + CASE - 51 WHEN - 2 + 73 * + - 98 THEN NULL WHEN - NULLIF ( 86, - + 72 + + 5 ) THEN NULL ELSE - 59 END THEN - 79 * + - 10 * - + 35 + - 39 - - 92 / - 1 WHEN 40 THEN NULL ELSE + 39 END - - MIN ( DISTINCT 74 ) END * 26 + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL - CAST( + 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - CAST ( + 73 AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT ALL - - COUNT( * ) * - 35 + + 11 - - + COUNT( * ) / + CASE - - ( + NULLIF ( - - 89, - 10 ) ) WHEN + 76 THEN - 91 + + 63 + 14 WHEN 76 * + 32 THEN + 83 + 83 + - 76 ELSE NULL END / + 57 * - - 72, 8 col2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2963
SELECT ALL - - COUNT ( * ) * - 35 + + 11 - - + COUNT ( * ) / + CASE - - ( + NULLIF ( - - 89, - 10 ) ) WHEN + 76 THEN - 91 + + 63 + 14 WHEN 76 * + 32 THEN + 83 + 83 + - 76 ELSE NULL END / + 57 * - - 72, 8 col2
----
NULL
8

query I rowsort
SELECT 55 * 15
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT 99 + - 21 * + 97 + ( + 7 ) - - MIN( + 46 ) * + - 48 * - 51 * - 78
----
-8785355

skipif mysql # not compatible
query I rowsort label-2965
SELECT 99 + - 21 * + 97 + ( + 7 ) - - MIN ( + 46 ) * + - 48 * - 51 * - 78
----
-8785355

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT 86 + - - MAX( DISTINCT + - 55 )
----
31

skipif mysql # not compatible
query I rowsort label-2966
SELECT 86 + - - MAX ( DISTINCT + - 55 )
----
31

query II rowsort
SELECT ALL - 89 AS col2, + 28 AS col0
----
-89
28

query I rowsort
SELECT 78 * 47
----
3666

query I rowsort
SELECT DISTINCT + 90 * + - 97 col1
----
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT - ( + 4 ) * - + 39 + COUNT( * ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-2970
SELECT - ( + 4 ) * - + 39 + COUNT ( * ) AS col0
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT - - 59 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - - 59 / 68 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL - ( ( + - 29 ) ) * 80 DIV + 26 + - 68 + - 47 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL - ( ( + - 29 ) ) * 80 / + 26 + - 68 + - 47 AS col2
----
-26

query I rowsort
SELECT ALL + + 29 + + 55 + + 5 + - 40 * - 79 * + - 50 AS col2
----
-157911

query I rowsort
SELECT - + CASE WHEN NOT - 65 IS NULL THEN + 79 END
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT 73 DIV - - 78 + - 56 - - 0
----
-56

skipif mysql # not compatible
query I rowsort label-2975
SELECT 73 / - - 78 + - 56 - - 0
----
-56

query I rowsort
SELECT ALL 33 + 21 * + 1 AS col2
----
54

query I rowsort
SELECT 52 * - 3
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT ALL + SUM( + + 38 ) * 31 * - 62
----
-73036

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL + SUM ( + + 38 ) * 31 * - 62
----
-73036

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT 26 + + - COUNT( + + 88 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2979
SELECT 26 + + - COUNT ( + + 88 ) AS col2
----
25

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

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 85 + - COUNT ( * ) AS col1
----
-86

query II rowsort
SELECT - 64 AS col2, - 35 col0
----
-64
-35

query I rowsort
SELECT + COALESCE ( 90, + + 82, - 4 ) + - + 69
----
21

query I rowsort
SELECT + 67 * + 17 AS col2
----
1139

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - 79 * - + COUNT( * ) * 91 * - 16 * - 34
----
3910816

skipif mysql # not compatible
query I rowsort label-2984
SELECT - 79 * - + COUNT ( * ) * 91 * - 16 * - 34
----
3910816

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL COUNT( - 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL COUNT ( - 0 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 26 - 81 AS col1
----
-107

query II rowsort
SELECT 46 AS col2, - 55 col1
----
46
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT DISTINCT CASE - COUNT( * ) WHEN + COUNT( + ( 50 ) ) THEN NULL WHEN 10 THEN 26 + + 5 ELSE - 90 END
----
-90

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT CASE - COUNT ( * ) WHEN + COUNT ( + ( 50 ) ) THEN NULL WHEN 10 THEN 26 + + 5 ELSE - 90 END
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL - 8 - + COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL - 8 - + COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + ( + 2 ) + + - COUNT( * ) + - ( 83 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2990
SELECT + ( + 2 ) + + - COUNT ( * ) + - ( 83 ) AS col1
----
-82

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

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

query I rowsort
SELECT COALESCE ( + 55, + - 18 ) AS col1
----
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 52 THEN NULL WHEN 34 * - + 12 THEN - + CAST( - + NULLIF ( + 85, - ( - COUNT( * ) ) ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 52 THEN NULL WHEN 34 * - + 12 THEN - + CAST ( - + NULLIF ( + 85, - ( - COUNT ( * ) ) ) AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 24 * - 39 AS col0
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + SUM( DISTINCT + 79 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-2996
SELECT + SUM ( DISTINCT + 79 ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + CASE - 71 WHEN - - COUNT( * ) THEN + + 10 WHEN - + 49 THEN NULL END / - 20 - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT + CASE - 71 WHEN - - COUNT ( * ) THEN + + 10 WHEN - + 49 THEN NULL END / - 20 - 84 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + ( - 4 ) * - 1 / - CASE 38 WHEN ( + 64 ) THEN - 42 ELSE NULL END + + 42, 16 AS col0
----
NULL
16

onlyif mysql # DIV for integer division: 
query II rowsort label-2999
SELECT DISTINCT + 73 AS col2, 69 - + + 18 DIV + 86
----
73
69

skipif mysql # not compatible
query II rowsort label-2999
SELECT DISTINCT + 73 AS col2, 69 - + + 18 / + 86
----
73
69

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3000
SELECT - 3 * 21 + - CASE - 23 WHEN CAST( NULL AS DECIMAL ) * COALESCE ( + + 33, 26 ) + + 48 * + AVG ( DISTINCT 70 ) * - - 30 DIV - + 2 + + 9 THEN - 62 DIV + + 29 + + 82 ELSE 62 * ( 99 ) - - 12 END AS col1
----
-6213

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 3 * 21 + - CASE - 23 WHEN CAST ( NULL AS REAL ) * COALESCE ( + + 33, 26 ) + + 48 * + AVG ( DISTINCT 70 ) * - - 30 / - + 2 + + 9 THEN - 62 / + + 29 + + 82 ELSE 62 * ( 99 ) - - 12 END AS col1
----
-6213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT + CAST( + 76 AS SIGNED ) * - - COUNT( * ) * + + 99 * COUNT( * )
----
7524

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT + CAST ( + 76 AS INTEGER ) * - - COUNT ( * ) * + + 99 * COUNT ( * )
----
7524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - 30 / + + ( + 28 ) + - 13 * 79 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - 30 / + + ( + 28 ) + - 13 * 79 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 50 col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL - COALESCE ( - + 82, + 65, COUNT( ALL - 5 ) ) * + - 63 + - 5 * - 46 * CAST( - + CASE - 29 WHEN + SUM( - - 74 ) - 2 THEN + + 18 WHEN MAX( DISTINCT + 92 ) THEN NULL WHEN + - 37 * CAST( 6 AS SIGNED ) * + - 26 - - 47 * 61 THEN - + 80 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - COALESCE ( - + 82, + 65, COUNT ( ALL - 5 ) ) * + - 63 + - 5 * - 46 * CAST ( - + CASE - 29 WHEN + SUM ( - - 74 ) - 2 THEN + + 18 WHEN MAX ( DISTINCT + 92 ) THEN NULL WHEN + - 37 * CAST ( 6 AS INTEGER ) * + - 26 - - 47 * 61 THEN - + 80 END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + ( 72 ) + + ( - 82 ) * + 35 + 10 + + + 28 + + 30 AS col1
----
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3006
SELECT + 79, - CAST( NULL AS SIGNED ) AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3006
SELECT + 79, - CAST ( NULL AS INTEGER ) AS col0
----
79
NULL

query I rowsort
SELECT + - 80 + + - 59 AS col2
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3008
SELECT ALL - COALESCE ( + NULLIF ( 42, 70 * - 38 + - 8 + - 68 ), - + ( - 7 ), + - 23 ) * - COUNT( * ) * - - COUNT( * ) DIV - + 49 + + 90, COUNT( * ) * - + ( - + 69 ) * + 15 * + 74 AS col1
----
90
76590

skipif mysql # not compatible
query II rowsort label-3008
SELECT ALL - COALESCE ( + NULLIF ( 42, 70 * - 38 + - 8 + - 68 ), - + ( - 7 ), + - 23 ) * - COUNT ( * ) * - - COUNT ( * ) / - + 49 + + 90, COUNT ( * ) * - + ( - + 69 ) * + 15 * + 74 AS col1
----
90
76590

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT + 98 * 15 + + 40 + 16 + - - 57 * - 34 + + 96 + + - 68 DIV + 93 + - ( - - CASE - 86 WHEN ( + + ( + 37 ) ) THEN NULL ELSE + 21 END ) * 14 AS col1
----
-610

skipif mysql # not compatible
query I rowsort label-3009
SELECT + 98 * 15 + + 40 + 16 + - - 57 * - 34 + + 96 + + - 68 / + 93 + - ( - - CASE - 86 WHEN ( + + ( + 37 ) ) THEN NULL ELSE + 21 END ) * 14 AS col1
----
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT 89 * + + ( + - COUNT( * ) ) * - 47 * COUNT( * ) - + - 83 + + 4 / + 14 + + - 40 + - CASE + 20 WHEN - - 25 * MAX( ALL 20 ) THEN + + 16 END + + - ( 8 ) / - 87 * - 83 - + + 22 * - - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT 89 * + + ( + - COUNT ( * ) ) * - 47 * COUNT ( * ) - + - 83 + + 4 / + 14 + + - 40 + - CASE + 20 WHEN - - 25 * MAX ( ALL 20 ) THEN + + 16 END + + - ( 8 ) / - 87 * - 83 - + + 22 * - - 7 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3011
SELECT DISTINCT - + 12 * 57 + - 2 + + - 0 * + 1 DIV + + 73 * - 54 + - 65 * 43 AS col2, + 70
----
-3481
70

skipif mysql # not compatible
query II rowsort label-3011
SELECT DISTINCT - + 12 * 57 + - 2 + + - 0 * + 1 / + + 73 * - 54 + - 65 * 43 AS col2, + 70
----
-3481
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3013
SELECT + 45 + - - 99 + - NULLIF ( - 50, 33 * + - MIN( DISTINCT - 18 ) * + ( - 52 ) * - + 52 * MAX( + 35 ) ) + 55 + ( + MIN( 44 ) ) + 23 + 42 DIV + 96 * + + 6 * COUNT( * ) * + MAX( - - 54 ) - - - COUNT( * ), + 48 AS col2
----
315
48

skipif mysql # not compatible
query II rowsort label-3013
SELECT + 45 + - - 99 + - NULLIF ( - 50, 33 * + - MIN ( DISTINCT - 18 ) * + ( - 52 ) * - + 52 * MAX ( + 35 ) ) + 55 + ( + MIN ( 44 ) ) + 23 + 42 / + 96 * + + 6 * COUNT ( * ) * + MAX ( - - 54 ) - - - COUNT ( * ), + 48 AS col2
----
315
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT ALL - 34 + + COUNT( * ) DIV 83 - 26 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - 34 + + COUNT ( * ) / 83 - 26 AS col0
----
-60

query II rowsort
SELECT DISTINCT 31 AS col0, - 96 AS col2
----
31
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT - 17 * - COALESCE ( - 42, + - 88, + 28 ) * - MAX( DISTINCT + 69 ) AS col0
----
49266

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT - 17 * - COALESCE ( - 42, + - 88, + 28 ) * - MAX ( DISTINCT + 69 ) AS col0
----
49266

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL + - CASE + 88 WHEN + 41 + - 6 - + 11 THEN 21 * + COUNT( * ) ELSE - + 9 + + + 2 END + - 15 + + 96 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + - CASE + 88 WHEN + 41 + - 6 - + 11 THEN 21 * + COUNT ( * ) ELSE - + 9 + + + 2 END + - 15 + + 96 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + NULLIF ( + 52, - - 95 + - NULLIF ( + 59, 49 + 67 ) + - 81 + + COALESCE ( - MAX( + 89 ), + 54 + - 93 ) )
----
52

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + NULLIF ( + 52, - - 95 + - NULLIF ( + 59, 49 + 67 ) + - 81 + + COALESCE ( - MAX ( + 89 ), + 54 + - 93 ) )
----
52

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3020
SELECT ALL - 84 * NULLIF ( - 42, - SUM( - + 62 ) * - 47 * COUNT( * ) ) DIV + 83 + - - 18
----
60

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - 84 * NULLIF ( - 42, - SUM ( - + 62 ) * - 47 * COUNT ( * ) ) / + 83 + - - 18
----
60

query I rowsort
SELECT + 85 + - 27
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3022
SELECT ALL - 39 - 96 + - CAST( NULL AS SIGNED ), 63 AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3022
SELECT ALL - 39 - 96 + - CAST ( NULL AS INTEGER ), 63 AS col1
----
NULL
63

query I rowsort
SELECT ALL + 49 * 70 col2
----
3430

query I rowsort
SELECT DISTINCT NULLIF ( 92, - + 84 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT DISTINCT + 67 DIV - 84 * - 66
----
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + 67 / - 84 * - 66
----
0

query I rowsort
SELECT ALL - 76 - + 36
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT - 25 * MIN( ALL - 60 ) * - COALESCE ( COUNT( * ), - - 48 )
----
-1500

skipif mysql # not compatible
query I rowsort label-3027
SELECT - 25 * MIN ( ALL - 60 ) * - COALESCE ( COUNT ( * ), - - 48 )
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ALL NULLIF ( + 57, + + MIN( DISTINCT - 3 ) + + 4 )
----
57

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL NULLIF ( + 57, + + MIN ( DISTINCT - 3 ) + + 4 )
----
57

query I rowsort
SELECT ALL + 49 * + 5 AS col1
----
245

query I rowsort
SELECT 4 col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3031
SELECT - CAST( NULL AS DECIMAL ) / - - ( + AVG ( DISTINCT - - ( + - 68 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT - CAST ( NULL AS REAL ) / - - ( + AVG ( DISTINCT - - ( + - 68 ) ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT ( - 95 ), 28 AS col1
----
-95
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - MIN( - ( 67 ) ) * + 70
----
4690

skipif mysql # not compatible
query I rowsort label-3033
SELECT - MIN ( - ( 67 ) ) * + 70
----
4690

query I rowsort
SELECT + 95 * 47 AS col0
----
4465

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

skipif mysql # not compatible
query I rowsort label-3035
SELECT - 7 * - + COUNT ( * ) + - 3 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT + CASE - - 49 WHEN + - 18 THEN COUNT( * ) * 24 + + COUNT( * ) / - - 90 + 84 WHEN - + 30 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + CASE - - 49 WHEN + - 18 THEN COUNT ( * ) * 24 + + COUNT ( * ) / - - 90 + 84 WHEN - + 30 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT - - 19 DIV 8 - 1 + + + 61 * + 36 + + - COUNT( * ) AS col1
----
2196

skipif mysql # not compatible
query I rowsort label-3038
SELECT - - 19 / 8 - 1 + + + 61 * + 36 + + - COUNT ( * ) AS col1
----
2196

query I rowsort
SELECT - + 70 + + 16 col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT ALL + 54 DIV 3 + - + 59 * - 59 * - 86 + - + COALESCE ( 35, - - 77 ) * - - 21 + - - 99
----
-299984

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + 54 / 3 + - + 59 * - 59 * - 86 + - + COALESCE ( 35, - - 77 ) * - - 21 + - - 99
----
-299984

query II rowsort
SELECT ALL + 1 * + + 25 AS col0, 42
----
25
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT ALL - + 19 DIV + + 53 * - - 95 + - + ( + 32 ) * - 28 * 46
----
41216

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - + 19 / + + 53 * - - 95 + - + ( + 32 ) * - 28 * 46
----
41216

query I rowsort
SELECT - 66 * - + 38 AS col0
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + COUNT( * ) + 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3044
SELECT + COUNT ( * ) + 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT - 38 * 47 + + + COUNT( * ) col0, CASE 86 WHEN + 5 THEN - ( - 97 ) * - + ( + 93 ) ELSE - 88 + - COUNT( * ) - + 30 END
----
-1785
-119

skipif mysql # not compatible
query II rowsort label-3045
SELECT - 38 * 47 + + + COUNT ( * ) col0, CASE 86 WHEN + 5 THEN - ( - 97 ) * - + ( + 93 ) ELSE - 88 + - COUNT ( * ) - + 30 END
----
-1785
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL 23 * MIN( DISTINCT + 31 )
----
713

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL 23 * MIN ( DISTINCT + 31 )
----
713

query II rowsort
SELECT ( + ( + 58 ) ), 29 col2
----
58
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT - + 18 DIV 81 * 17 + - 17 - - + COUNT( * ) + - 50 * - - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-3048
SELECT - + 18 / 81 * 17 + - 17 - - + COUNT ( * ) + - 50 * - - COUNT ( * )
----
-66

query I rowsort
SELECT - + 18 * - 86
----
1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3050
SELECT DISTINCT + 7 * MAX( - ( + 47 ) ) + CASE - ( + NULLIF ( - + 20, + MAX( ALL CAST( NULL AS SIGNED ) ) ) ) WHEN ( + 22 ) + COUNT( * ) + 60 + CAST( NULL AS SIGNED ) * 1 * + 45 THEN CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT + 7 * MAX ( - ( + 47 ) ) + CASE - ( + NULLIF ( - + 20, + MAX ( ALL CAST ( NULL AS INTEGER ) ) ) ) WHEN ( + 22 ) + COUNT ( * ) + 60 + CAST ( NULL AS INTEGER ) * 1 * + 45 THEN CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT ALL + 53 * + - ( - MIN( DISTINCT 28 ) ) + - 49 DIV - 37
----
1485

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + 53 * + - ( - MIN ( DISTINCT 28 ) ) + - 49 / - 37
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL + ( + - MAX( + + 0 ) ) * - + ( + - 59 ) + 64 + + 65
----
129

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + ( + - MAX ( + + 0 ) ) * - + ( + - 59 ) + 64 + + 65
----
129

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT ALL - 24 DIV - MAX( ALL + - 89 ) - 16 * ( + - 53 )
----
848

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - 24 / - MAX ( ALL + - 89 ) - 16 * ( + - 53 )
----
848

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT 33 + + + 56 + + CAST( 60 AS SIGNED ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-3056
SELECT 33 + + + 56 + + CAST ( 60 AS INTEGER ) AS col1
----
149

query I rowsort
SELECT ALL 97 - + 31
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3058
SELECT - 5 col1, + 43 * + 30 / - NULLIF ( + 62, - ( 39 ) ) - + CASE + 47 WHEN + 30 THEN + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + 2 * COUNT( * ) THEN NULL END + - COALESCE ( + 97, - - 61, - - 40 + + + 85 * - 28 + 13 ) - - 73 * + - 83 + - + 22 AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-3058
SELECT - 5 col1, + 43 * + 30 / - NULLIF ( + 62, - ( 39 ) ) - + CASE + 47 WHEN + 30 THEN + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + 2 * COUNT ( * ) THEN NULL END + - COALESCE ( + 97, - - 61, - - 40 + + + 85 * - 28 + 13 ) - - 73 * + - 83 + - + 22 AS col2
----
-5
NULL

query II rowsort
SELECT 71, + 24 AS col0
----
71
24

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT ALL 14 AS col1, - 16 * 31 DIV 51 * + 14
----
14
-126

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL 14 AS col1, - 16 * 31 / 51 * + 14
----
14
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT + MAX( + - 88 ) * - 24
----
2112

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + MAX ( + - 88 ) * - 24
----
2112

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

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT 96 * + MAX ( - 0 ) AS col2
----
0

query I rowsort
SELECT ALL 14 * + + 10
----
140

query II rowsort
SELECT 3, 94 * + 96 * - - 68 col1
----
3
613632

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ( - - 86 ) + + CASE 41 WHEN + + 12 THEN NULL WHEN 8 + - + 15 THEN NULL ELSE + COUNT( 27 ) + - 96 END * + 81 * + - MIN( DISTINCT + 2 )
----
15476

skipif mysql # not compatible
query I rowsort label-3066
SELECT ( - - 86 ) + + CASE 41 WHEN + + 12 THEN NULL WHEN 8 + - + 15 THEN NULL ELSE + COUNT ( 27 ) + - 96 END * + 81 * + - MIN ( DISTINCT + 2 )
----
15476

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3067
SELECT CAST( - 59 AS SIGNED ) DIV + 3, + 68 AS col0
----
-19
68

skipif mysql # not compatible
query II rowsort label-3067
SELECT CAST ( - 59 AS INTEGER ) / + 3, + 68 AS col0
----
-19
68

query I rowsort
SELECT ALL + 18 + - 20 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT 6 + 33 * - - MAX( ALL + 5 ) * 66 * - - 42 + - 92 + + MIN( ALL - 67 )
----
457227

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 6 + 33 * - - MAX ( ALL + 5 ) * 66 * - - 42 + - 92 + + MIN ( ALL - 67 )
----
457227

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

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

query II rowsort
SELECT 84 * + 90 + 15, 90 AS col1
----
7575
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + COUNT( * ) * 23 + - 50
----
-27

skipif mysql # not compatible
query I rowsort label-3072
SELECT + COUNT ( * ) * 23 + - 50
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT - COUNT( * ) * ( - + SUM( - 48 ) ) * + 61 + + + COUNT( * ) DIV - ( - 94 ) + - 93 - - 32 - - 19
----
-2970

skipif mysql # not compatible
query I rowsort label-3073
SELECT - COUNT ( * ) * ( - + SUM ( - 48 ) ) * + 61 + + + COUNT ( * ) / - ( - 94 ) + - 93 - - 32 - - 19
----
-2970

query I rowsort
SELECT DISTINCT + + 65 * 62 + - 21 * 42 AS col2
----
3148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3075
SELECT + COALESCE ( 25, - COUNT( + 94 ) * - 14 + 74 * + 14 + - 88, 46 - 9 DIV + 91 * - - 2 ) * 60 - + - COUNT( DISTINCT 74 )
----
1501

skipif mysql # not compatible
query I rowsort label-3075
SELECT + COALESCE ( 25, - COUNT ( + 94 ) * - 14 + 74 * + 14 + - 88, 46 - 9 / + 91 * - - 2 ) * 60 - + - COUNT ( DISTINCT 74 )
----
1501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT DISTINCT 53 + + ( - CAST( NULL AS SIGNED ) ) + - 43 / 19 * - ( 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT 53 + + ( - CAST ( NULL AS INTEGER ) ) + - 43 / 19 * - ( 90 ) AS col2
----
NULL

query II rowsort
SELECT ALL - + 57, + 76 AS col1
----
-57
76

query I rowsort
SELECT 12 + + 57
----
69

query I rowsort
SELECT - + 98 * + 63 * + 3 + + 12 col1
----
-18510

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3080
SELECT ALL - 61, - 35 * CAST( NULL AS DECIMAL ) AS col2
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-3080
SELECT ALL - 61, - 35 * CAST ( NULL AS REAL ) AS col2
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT 87 * + - 62 - - + 22 + COUNT( ALL - 13 )
----
-5371

skipif mysql # not compatible
query I rowsort label-3081
SELECT 87 * + - 62 - - + 22 + COUNT ( ALL - 13 )
----
-5371

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT + - COUNT( * ) AS col1, - 8 * 92 * - 60 + + 42 AS col1
----
-1
44202

skipif mysql # not compatible
query II rowsort label-3082
SELECT + - COUNT ( * ) AS col1, - 8 * 92 * - 60 + + 42 AS col1
----
-1
44202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL 50 * MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL 50 * MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 67 * 61
----
-4087

query I rowsort
SELECT DISTINCT + 3 * - - 94
----
282

query I rowsort
SELECT 70 * + + 41
----
2870

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3087
SELECT CASE + - COUNT( * ) WHEN - + COALESCE ( - 99, 76 ) THEN - 30 WHEN + + 67 THEN 2 END * - CAST( + ( + NULLIF ( 44, + 28 + + + COUNT( * ) ) ) AS DECIMAL ), MIN( + - 1 ) + ( - MAX( ALL - 69 ) ) AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3087
SELECT CASE + - COUNT ( * ) WHEN - + COALESCE ( - 99, 76 ) THEN - 30 WHEN + + 67 THEN 2 END * - CAST ( + ( + NULLIF ( 44, + 28 + + + COUNT ( * ) ) ) AS REAL ), MIN ( + - 1 ) + ( - MAX ( ALL - 69 ) ) AS col1
----
NULL
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL MAX( DISTINCT - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL MAX ( DISTINCT - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT ALL 36 + - COALESCE ( - ( 6 ), + + 94 ) DIV + + ( - 78 ) + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 36 + - COALESCE ( - ( 6 ), + + 94 ) / + + ( - 78 ) + + COUNT ( * )
----
37

query I rowsort
SELECT 95 + + + 37 + - 0 col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT COUNT( * ) + 97 * ( 99 ) AS col2
----
9604

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT COUNT ( * ) + 97 * ( 99 ) AS col2
----
9604

query I rowsort
SELECT DISTINCT 65 + + 60 AS col0
----
125

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

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

query I rowsort
SELECT DISTINCT - ( - - 46 ) + + 59
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT CASE - - COUNT( * ) WHEN + 83 THEN - COUNT( * ) ELSE + COUNT( * ) + - - 87 END * 67 * - 20 * 44 - - 59 AS col0
----
-5188421

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT CASE - - COUNT ( * ) WHEN + 83 THEN - COUNT ( * ) ELSE + COUNT ( * ) + - - 87 END * 67 * - 20 * 44 - - 59 AS col0
----
-5188421

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT 86 + + - 51 + SUM( DISTINCT - - 92 ) - 41 + - + MAX( ALL - 87 ) AS col2
----
173

skipif mysql # not compatible
query I rowsort label-3097
SELECT 86 + + - 51 + SUM ( DISTINCT - - 92 ) - 41 + - + MAX ( ALL - 87 ) AS col2
----
173

query I rowsort
SELECT - 39 * + + 41 + 81
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - COUNT( * ) * + - 98 - - - 4
----
94

skipif mysql # not compatible
query I rowsort label-3099
SELECT - COUNT ( * ) * + - 98 - - - 4
----
94

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

skipif mysql # not compatible
query I rowsort label-3100
SELECT CAST ( + 46 AS INTEGER ) / + 57 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT + 22 + + 9 + CAST( + 81 AS SIGNED ) - - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-3101
SELECT + 22 + + 9 + CAST ( + 81 AS INTEGER ) - - COUNT ( * )
----
113

query I rowsort
SELECT ( - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT + COUNT( * ) * + 90 + - - 79 - 22 + - 54
----
93

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT + COUNT ( * ) * + 90 + - - 79 - 22 + - 54
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT - 90 DIV + 7
----
-12

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - 90 / + 7
----
-12

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

query I rowsort
SELECT ALL + - 15 * - - 17 - 46 * + + ( - + 24 ) AS col1
----
849

query I rowsort
SELECT ALL - 57 * 33 * - + 87 * + 17
----
2781999

query I rowsort
SELECT DISTINCT - + 46 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT - - 60 + + + 35 DIV - 49 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3109
SELECT - - 60 + + + 35 / - 49 AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3110
SELECT DISTINCT - COUNT( * ) * + - 31 - - + 36 + + + 86 * ( - - 95 ) DIV - + 34 + + - 53
----
-226

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT - COUNT ( * ) * + - 31 - - + 36 + + + 86 * ( - - 95 ) / - + 34 + + - 53
----
-226

query II rowsort
SELECT + - 91 * - 29 AS col0, 68 AS col1
----
2639
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT COUNT( DISTINCT 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3112
SELECT COUNT ( DISTINCT 88 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + 5 * - + 4 - + 96 + - - COUNT( * ) * + 28 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + 5 * - + 4 - + 96 + - - COUNT ( * ) * + 28 AS col0
----
-88

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

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT 70 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT + COALESCE ( - CASE - MIN( + 34 ) WHEN - + 79 * - CASE 40 WHEN - - 14 THEN + 31 ELSE NULL END + + SUM( - 18 ) THEN + COUNT( * ) + - - 22 + + - 96 + 93 + 81 END, + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + COALESCE ( - CASE - MIN ( + 34 ) WHEN - + 79 * - CASE 40 WHEN - - 14 THEN + 31 ELSE NULL END + + SUM ( - 18 ) THEN + COUNT ( * ) + - - 22 + + - 96 + 93 + 81 END, + + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL + NULLIF ( - 7, - NULLIF ( + MIN( ALL - + 15 ), 65 * - - 95 ) + + + 72 + 24 / - - 70 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + NULLIF ( - 7, - NULLIF ( + MIN ( ALL - + 15 ), 65 * - - 95 ) + + + 72 + 24 / - - 70 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL CASE + 8 WHEN 88 * - ( + 34 ) THEN NULL ELSE 48 * - NULLIF ( + + 9, - + 67 ) + + COUNT( * ) + 0 + - 48 + 41 - + 20 * - SUM( ALL + 95 ) * 20 END
----
37562

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL CASE + 8 WHEN 88 * - ( + 34 ) THEN NULL ELSE 48 * - NULLIF ( + + 9, - + 67 ) + + COUNT ( * ) + 0 + - 48 + 41 - + 20 * - SUM ( ALL + 95 ) * 20 END
----
37562

query I rowsort
SELECT - 49 * + 23 AS col1
----
-1127

query I rowsort
SELECT + 55 * + 91
----
5005

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

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

query I rowsort
SELECT - 66 - + 8
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT ALL - 45 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - 45 / 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + 91 + - + NULLIF ( - COUNT( * ), 91 * - + CASE 82 WHEN - 62 * 61 THEN + 72 WHEN + 46 + - - 38 THEN NULL WHEN + 89 THEN NULL ELSE - 44 * 21 END + 5 + + 40 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + 91 + - + NULLIF ( - COUNT ( * ), 91 * - + CASE 82 WHEN - 62 * 61 THEN + 72 WHEN + 46 + - - 38 THEN NULL WHEN + 89 THEN NULL ELSE - 44 * 21 END + 5 + + 40 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT 95 + NULLIF ( + 58, - SUM( + 4 ) ) col0
----
153

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT 95 + NULLIF ( + 58, - SUM ( + 4 ) ) col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT - 27 * - CASE - 21 WHEN 80 THEN NULL WHEN + 39 THEN - MIN( - 74 ) * + 49 + + 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - 27 * - CASE - 21 WHEN 80 THEN NULL WHEN + 39 THEN - MIN ( - 74 ) * + 49 + + 22 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3127
SELECT DISTINCT + 73 + + 35 - + 70 DIV 60 * - 2, - 86 AS col0
----
110
-86

skipif mysql # not compatible
query II rowsort label-3127
SELECT DISTINCT + 73 + + 35 - + 70 / 60 * - 2, - 86 AS col0
----
110
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3128
SELECT ALL - 18 + - COUNT( * ) * 35 * - - 2 DIV + + 1 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - 18 + - COUNT ( * ) * 35 * - - 2 / + + 1 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3129
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) + + + 95 + + + 3 + - + 63 + - 44 AS col1, 5 + 24 - 38
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-3129
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 95 + + + 3 + - + 63 + - 44 AS col1, 5 + 24 - 38
----
NULL
-9

query I rowsort
SELECT + 88 * 99
----
8712

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - + 38 + + + 82 * COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3131
SELECT - + 38 + + + 82 * COUNT ( * ) AS col2
----
44

query I rowsort
SELECT + + 33 * - 38 * - 26 AS col2
----
32604

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT MAX( + + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3133
SELECT MAX ( + + 38 ) AS col1
----
38

query I rowsort
SELECT ALL 90 - + - 2
----
92

query II rowsort
SELECT 13, 50 AS col1
----
13
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3136
SELECT ALL 12 * - + MIN( DISTINCT - + 45 ) * + SUM( - 65 ) + COUNT( * ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL 12 * - + MIN ( DISTINCT - + 45 ) * + SUM ( - 65 ) + COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT + CASE - - 27 WHEN + 0 THEN CAST( - ( 53 ) AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT + CASE - - 27 WHEN + 0 THEN CAST ( - ( 53 ) AS INTEGER ) END col1
----
NULL

query I rowsort
SELECT ALL 70 * - 66 * 7
----
-32340

query I rowsort
SELECT ALL - 1 * + + 21
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3140
SELECT - + SUM( 45 ) DIV + 85 + 82 + - COUNT( * ) col1, + 15 AS col1
----
81
15

skipif mysql # not compatible
query II rowsort label-3140
SELECT - + SUM ( 45 ) / + 85 + 82 + - COUNT ( * ) col1, + 15 AS col1
----
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ALL + CAST( + - 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + CAST ( + - 44 AS INTEGER )
----
-44

query II rowsort
SELECT DISTINCT + + 97 AS col2, 71
----
97
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT + 76 * - 71 + - + 1 AS col0, - MIN( + 79 ) * + COALESCE ( - COUNT( * ), - 0 + - 7 ) col2
----
-5397
79

skipif mysql # not compatible
query II rowsort label-3143
SELECT + 76 * - 71 + - + 1 AS col0, - MIN ( + 79 ) * + COALESCE ( - COUNT ( * ), - 0 + - 7 ) col2
----
-5397
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT + 47 DIV 47 + + 9 - - 89
----
99

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 47 / 47 + + 9 - - 89
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3145
SELECT - 97 * - - CAST( NULL AS SIGNED ) + 60 + ( + SUM( + 69 ) ) - - COALESCE ( 78, - 26, + 72 + 39 ) * 10 + + 74 * COUNT( * ) + + 19 * CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3145
SELECT - 97 * - - CAST ( NULL AS INTEGER ) + 60 + ( + SUM ( + 69 ) ) - - COALESCE ( 78, - 26, + 72 + 39 ) * 10 + + 74 * COUNT ( * ) + + 19 * CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + + 79 * + - NULLIF ( - ( - 86 ), 8 ) * SUM( - 43 )
----
292142

skipif mysql # not compatible
query I rowsort label-3146
SELECT + + 79 * + - NULLIF ( - ( - 86 ), 8 ) * SUM ( - 43 )
----
292142

query I rowsort
SELECT ALL + ( - + 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT 17 * COUNT( * ) + + - SUM( - 16 )
----
33

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT 17 * COUNT ( * ) + + - SUM ( - 16 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT + 20 + + - CAST( NULL AS SIGNED ) + - 3 + + - 8 + - - 30 / - - 65 * + NULLIF ( + 46, 44 ) * - SUM( ALL 34 ) + - - COUNT( * ) * + 44 * - COALESCE ( + COUNT( * ), + + 82, - CAST( + + ( - + 6 ) AS SIGNED ) * + COUNT( * ) * + 50 + + - CASE 57 WHEN COUNT( * ) * + + ( - COUNT( * ) ) + + CASE + - COUNT( * ) WHEN + 10 THEN + 11 + + + 9 ELSE - 45 END * + MIN( DISTINCT 73 ) THEN AVG ( DISTINCT + 45 ) * - COUNT( * ) + + 26 WHEN + 35 THEN ( + 60 ) * COUNT( * ) + + 4 ELSE NULL END ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT + 20 + + - CAST ( NULL AS INTEGER ) + - 3 + + - 8 + - - 30 / - - 65 * + NULLIF ( + 46, 44 ) * - SUM ( ALL 34 ) + - - COUNT ( * ) * + 44 * - COALESCE ( + COUNT ( * ), + + 82, - CAST ( + + ( - + 6 ) AS INTEGER ) * + COUNT ( * ) * + 50 + + - CASE 57 WHEN COUNT ( * ) * + + ( - COUNT ( * ) ) + + CASE + - COUNT ( * ) WHEN + 10 THEN + 11 + + + 9 ELSE - 45 END * + MIN ( DISTINCT 73 ) THEN AVG ( DISTINCT + 45 ) * - COUNT ( * ) + + 26 WHEN + 35 THEN ( + 60 ) * COUNT ( * ) + + 4 ELSE NULL END ) + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT 12 * + - 64 * COUNT( * ) - + 8 AS col2, 21 AS col0
----
-776
21

skipif mysql # not compatible
query II rowsort label-3150
SELECT 12 * + - 64 * COUNT ( * ) - + 8 AS col2, 21 AS col0
----
-776
21

query I rowsort
SELECT ALL 80 * - - 5 + + 6 * - 6 * - ( 45 ) + - 4
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + COUNT( ALL + + 3 ) + - - ( COALESCE ( + 76, + + ( 21 ), 35, + + 23 ) )
----
77

skipif mysql # not compatible
query I rowsort label-3152
SELECT + COUNT ( ALL + + 3 ) + - - ( COALESCE ( + 76, + + ( 21 ), 35, + + 23 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT NULLIF ( 55, - + 23 * 29 - + MIN( - 80 ) )
----
55

skipif mysql # not compatible
query I rowsort label-3153
SELECT NULLIF ( 55, - + 23 * 29 - + MIN ( - 80 ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT NULLIF ( + 1, - - CASE + 32 WHEN - - 91 THEN 20 END / + MAX( - 55 ) + - - COUNT( * ) * - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-3154
SELECT NULLIF ( + 1, - - CASE + 32 WHEN - - 91 THEN 20 END / + MAX ( - 55 ) + - - COUNT ( * ) * - 94 )
----
1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3156
SELECT + CAST( NULL AS DECIMAL ), - 36 * + 2 AS col1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-3156
SELECT + CAST ( NULL AS REAL ), - 36 * + 2 AS col1
----
NULL
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT - 55 DIV + ( + ( - + 64 ) ) * - - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT - 55 / + ( + ( - + 64 ) ) * - - 95 AS col1
----
0

query I rowsort
SELECT DISTINCT 91 * - ( + - COALESCE ( - 50, 4 ) ) + - 70 AS col0
----
-4620

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

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

query I rowsort
SELECT - 19 + + 16
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT ALL 66 * - NULLIF ( - 28, + 73 ) + + + 57 + + 91 AS col1, - 70 + - COUNT( * )
----
1996
-71

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL 66 * - NULLIF ( - 28, + 73 ) + + + 57 + + 91 AS col1, - 70 + - COUNT ( * )
----
1996
-71

query I rowsort
SELECT DISTINCT NULLIF ( + ( 69 ), + + 14 + + - 66 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT - 95 + - 72 * - 63 + + + 99 AS col0, MIN( - 90 )
----
4540
-90

skipif mysql # not compatible
query II rowsort label-3163
SELECT - 95 + - 72 * - 63 + + + 99 AS col0, MIN ( - 90 )
----
4540
-90

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

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

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

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

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

query I rowsort
SELECT - 89 + + 22 AS col0
----
-67

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

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

query II rowsort
SELECT - 44, 43 AS col1
----
-44
43

query I rowsort
SELECT - 65 + - 75 AS col0
----
-140

query I rowsort
SELECT ALL - CASE + 30 WHEN - 2 THEN NULL ELSE + COALESCE ( 62, + 88 ) END - 70 AS col0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT DISTINCT + 12 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT + 12 / - 67 AS col1
----
0

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

skipif mysql # not compatible
query II rowsort label-3173
SELECT DISTINCT - COUNT ( * ), + 21 AS col1
----
-1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL COUNT( DISTINCT - 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL COUNT ( DISTINCT - 44 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3175
SELECT - + 85 * + 70 + + ( - 85 ) + - + 29 DIV + ( 17 ) * - + 58 + + + CAST( NULL AS SIGNED ) col2, 68 + - MIN( + - 12 ) DIV 20 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3175
SELECT - + 85 * + 70 + + ( - 85 ) + - + 29 / + ( 17 ) * - + 58 + + + CAST ( NULL AS INTEGER ) col2, 68 + - MIN ( + - 12 ) / 20 AS col1
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL - COUNT( * ) - - - 47 col1
----
-48

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - COUNT ( * ) - - - 47 col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3177
SELECT DISTINCT + 63 * - - 46 AS col0, 18 * 3 * + 88 * 28 + CAST( NULL AS SIGNED )
----
2898
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT DISTINCT + 63 * - - 46 AS col0, 18 * 3 * + 88 * 28 + CAST ( NULL AS INTEGER )
----
2898
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3178
SELECT DISTINCT 55 AS col2, + CAST( NULL AS SIGNED )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-3178
SELECT DISTINCT 55 AS col2, + CAST ( NULL AS INTEGER )
----
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3179
SELECT ( - - 42 ) DIV COUNT( DISTINCT 61 )
----
42

skipif mysql # not compatible
query I rowsort label-3179
SELECT ( - - 42 ) / COUNT ( DISTINCT 61 )
----
42

query I rowsort
SELECT CASE 33 WHEN 3 THEN 19 + + 58 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT ALL ( + - 44 ) DIV - - 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL ( + - 44 ) / - - 53 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT - 60 DIV - - CAST( + 71 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3182
SELECT - 60 / - - CAST ( + 71 AS INTEGER )
----
0

query I rowsort
SELECT - 29 * - + 21 AS col0
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT DISTINCT - ( + - COUNT( ALL - 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - ( + - COUNT ( ALL - 31 ) )
----
1

query II rowsort
SELECT DISTINCT - 15, - 79 * - 38 AS col0
----
-15
3002

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT + 32 DIV + 27 + 52 * - 23
----
-1195

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 32 / + 27 + 52 * - 23
----
-1195

query I rowsort
SELECT ALL + + 24 + + - 30 AS col2
----
-6

query I rowsort
SELECT ALL - + ( + - 18 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3189
SELECT + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT 32 * 62 * + MAX( DISTINCT - 33 ) AS col1
----
-65472

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT 32 * 62 * + MAX ( DISTINCT - 33 ) AS col1
----
-65472

query I rowsort
SELECT DISTINCT 50 + + + 15 - + + 74 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3192
SELECT SUM( ALL 40 ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT SUM ( ALL 40 ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT - NULLIF ( - 84, COUNT( ALL + 50 ) ) * - - 58 + - 62 AS col1
----
4810

skipif mysql # not compatible
query I rowsort label-3193
SELECT - NULLIF ( - 84, COUNT ( ALL + 50 ) ) * - - 58 + - 62 AS col1
----
4810

query I rowsort
SELECT ALL 85 + + 60
----
145

query I rowsort
SELECT 15 + - 89 + - - 95 * - 78 * - 86 * - 33 AS col1
----
-21029654

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT COUNT( * ) + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT COUNT ( * ) + 12 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3197
SELECT CASE + 7 WHEN - 65 THEN ( + 31 ) WHEN - + COUNT( * ) + - - NULLIF ( - 56, + COALESCE ( CAST( NULL AS SIGNED ), + MIN( DISTINCT + 48 ) ) ) THEN + 19 * - + 51 END - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT CASE + 7 WHEN - 65 THEN ( + 31 ) WHEN - + COUNT ( * ) + - - NULLIF ( - 56, + COALESCE ( CAST ( NULL AS INTEGER ), + MIN ( DISTINCT + 48 ) ) ) THEN + 19 * - + 51 END - + 43
----
NULL

query II rowsort
SELECT 21 * 34, - 25 AS col1
----
714
-25

query I rowsort
SELECT + 33 col0
----
33

query I rowsort
SELECT 30 * + + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT - 10 * + - ( 74 )
----
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3202
SELECT ALL + CASE 36 WHEN MIN( + + 32 ) * ( + - NULLIF ( - COUNT( * ), + - COUNT( - - ( + 81 ) ) ) ) + CASE - 46 WHEN - + 92 * COUNT( * ) + - + 84 - + SUM( - 90 ) THEN + - COALESCE ( - + 81, CAST( NULL AS SIGNED ) * 36 ) * + CAST( NULL AS DECIMAL ) END + 14 * + 86 + - 60 * - + 68 + 40 * ( - 60 ) THEN - + 37 + + COALESCE ( 4, 68 ) + + COUNT( * ) * ( - 36 ) * + 0 WHEN + 88 * - 85 THEN NULL ELSE + 81 - 20 END - COUNT( * ) * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + CASE 36 WHEN MIN ( + + 32 ) * ( + - NULLIF ( - COUNT ( * ), + - COUNT ( - - ( + 81 ) ) ) ) + CASE - 46 WHEN - + 92 * COUNT ( * ) + - + 84 - + SUM ( - 90 ) THEN + - COALESCE ( - + 81, CAST ( NULL AS INTEGER ) * 36 ) * + CAST ( NULL AS REAL ) END + 14 * + 86 + - 60 * - + 68 + 40 * ( - 60 ) THEN - + 37 + + COALESCE ( 4, 68 ) + + COUNT ( * ) * ( - 36 ) * + 0 WHEN + 88 * - 85 THEN NULL ELSE + 81 - 20 END - COUNT ( * ) * COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT CAST( NULL AS SIGNED ) * - 39 * - AVG ( DISTINCT + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT CAST ( NULL AS INTEGER ) * - 39 * - AVG ( DISTINCT + 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT ALL - 25 - 71 AS col0, + COUNT( * )
----
-96
1

skipif mysql # not compatible
query II rowsort label-3204
SELECT ALL - 25 - 71 AS col0, + COUNT ( * )
----
-96
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3205
SELECT ALL + 50 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + 50 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 92 WHEN + - AVG ( DISTINCT - 19 ) THEN ( + 67 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT CASE + + 85 WHEN - 24 THEN - 80 * 45 WHEN - MAX( ALL - - 20 ) THEN - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT CASE + + 85 WHEN - 24 THEN - 80 * 45 WHEN - MAX ( ALL - - 20 ) THEN - 3 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - 8 + - + COUNT( * ) + - 1 * - 48 * - COALESCE ( - COALESCE ( + NULLIF ( - - COUNT( * ), + 79 * + + 43 + - NULLIF ( - + 63, - - 13 ) ), - + COUNT( * ), + - 58 + 89 ), - 55 ) + 4 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3208
SELECT - 8 + - + COUNT ( * ) + - 1 * - 48 * - COALESCE ( - COALESCE ( + NULLIF ( - - COUNT ( * ), + 79 * + + 43 + - NULLIF ( - + 63, - - 13 ) ), - + COUNT ( * ), + - 58 + 89 ), - 55 ) + 4 AS col1
----
43

query I rowsort
SELECT 2 + 78
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-3210
SELECT 33 * 33 + 18 AS col2, 21 DIV 54 + + 40
----
1107
40

skipif mysql # not compatible
query II rowsort label-3210
SELECT 33 * 33 + 18 AS col2, 21 / 54 + + 40
----
1107
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3211
SELECT + 0 + - + 23 + - + NULLIF ( - 16, - - 21 ) * + 32 * + COUNT( * ) col0, CAST( NULL AS SIGNED ) AS col1
----
489
NULL

skipif mysql # not compatible
query II rowsort label-3211
SELECT + 0 + - + 23 + - + NULLIF ( - 16, - - 21 ) * + 32 * + COUNT ( * ) col0, CAST ( NULL AS INTEGER ) AS col1
----
489
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3212
SELECT DISTINCT + 68 DIV + MAX( DISTINCT - 10 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT + 68 / + MAX ( DISTINCT - 10 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - - NULLIF ( 75, + + MAX( ALL - 91 ) )
----
75

skipif mysql # not compatible
query I rowsort label-3213
SELECT - - NULLIF ( 75, + + MAX ( ALL - 91 ) )
----
75

query I rowsort
SELECT - ( + ( + COALESCE ( - 70, 94 + - 41 ) ) )
----
70

query III rowsort
SELECT ALL + 18 * + + 94 AS col2, 56 + + - 53 * - + 83 AS col0, 10 * 71 * - + 28
----
1692
4455
-19880

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT - 67 * CASE + ( + 83 ) WHEN + 48 THEN NULL ELSE + NULLIF ( - + 75, - - 65 * + 68 ) END - + 99 - + COUNT( * )
----
4925

skipif mysql # not compatible
query I rowsort label-3216
SELECT - 67 * CASE + ( + 83 ) WHEN + 48 THEN NULL ELSE + NULLIF ( - + 75, - - 65 * + 68 ) END - + 99 - + COUNT ( * )
----
4925

query I rowsort
SELECT DISTINCT + + 72 + + + ( + 25 ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT ALL CAST( + + 49 AS SIGNED ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL CAST ( + + 49 AS INTEGER ) AS col1
----
49

query I rowsort
SELECT + 85 + + 90 AS col1
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3220
SELECT ALL + NULLIF ( 55, - 62 / CAST( NULL AS SIGNED ) ) * + 92 + 93 + + 27, 19 + + 17 + + ( - + ( 91 ) ) AS col2
----
5180
-55

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL + NULLIF ( 55, - 62 / CAST ( NULL AS INTEGER ) ) * + 92 + 93 + + 27, 19 + + 17 + + ( - + ( 91 ) ) AS col2
----
5180
-55

query I rowsort
SELECT DISTINCT + 81 * + 33 + + 52 col2
----
2725

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT 5 DIV - - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT 5 / - - 23 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT DISTINCT 2 DIV - + ( - NULLIF ( - 16, - 35 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT 2 / - + ( - NULLIF ( - 16, - 35 ) )
----
0

query I rowsort
SELECT 89 * + 30 AS col0
----
2670

query I rowsort
SELECT 95 - ( + 48 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL - 86 + + COUNT( ALL + 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL - 86 + + COUNT ( ALL + 85 ) AS col2
----
-85

query I rowsort
SELECT DISTINCT 72 + + 72
----
144

query II rowsort
SELECT + 20, + ( + 96 ) AS col0
----
20
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT 85 + COUNT( * ) col1
----
86

skipif mysql # not compatible
query I rowsort label-3229
SELECT 85 + COUNT ( * ) col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT 87 * - + ( 39 ) - + ( COUNT( * ) ) AS col1
----
-3394

skipif mysql # not compatible
query I rowsort label-3230
SELECT 87 * - + ( 39 ) - + ( COUNT ( * ) ) AS col1
----
-3394

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT SUM( + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3231
SELECT SUM ( + 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3232
SELECT ( + 6 ) - + 16 AS col2, CAST( NULL AS SIGNED ) + - + 81 col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-3232
SELECT ( + 6 ) - + 16 AS col2, CAST ( NULL AS INTEGER ) + - + 81 col0
----
-10
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3233
SELECT 96 * - 24 + - - 50 AS col2, - ( + COUNT( DISTINCT + + 88 ) )
----
-2254
-1

skipif mysql # not compatible
query II rowsort label-3233
SELECT 96 * - 24 + - - 50 AS col2, - ( + COUNT ( DISTINCT + + 88 ) )
----
-2254
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL + 96 * + + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + 96 * + + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT - SUM( ALL - ( + 95 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT - SUM ( ALL - ( + 95 ) ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT ALL - 94, - 36 * 69 + + COUNT( * ) AS col0
----
-94
-2483

skipif mysql # not compatible
query II rowsort label-3236
SELECT ALL - 94, - 36 * 69 + + COUNT ( * ) AS col0
----
-94
-2483

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - 39 + 75 * + MAX( ALL + 45 ) * + 64 AS col1
----
215961

skipif mysql # not compatible
query I rowsort label-3237
SELECT - 39 + 75 * + MAX ( ALL + 45 ) * + 64 AS col1
----
215961

query I rowsort
SELECT ALL - ( ( - + ( - 54 ) ) ) * ( 63 )
----
-3402

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT + 48 DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3239
SELECT + 48 / - 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT SUM( - 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT SUM ( - 25 ) AS col2
----
-25

query I rowsort
SELECT ( - 27 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - - CASE WHEN 35 IS NULL THEN - + 0 + 43 * 15 ELSE + 62 - - CASE - 15 WHEN COUNT( * ) THEN 44 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT - - CASE WHEN 35 IS NULL THEN - + 0 + 43 * 15 ELSE + 62 - - CASE - 15 WHEN COUNT ( * ) THEN 44 ELSE NULL END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT + 6 * + 39 + + - 9 - + - CAST( - 34 AS SIGNED ) + ( + 61 ) + - 51 * + + 33 * - - 51
----
-85581

skipif mysql # not compatible
query I rowsort label-3243
SELECT + 6 * + 39 + + - 9 - + - CAST ( - 34 AS INTEGER ) + ( + 61 ) + - 51 * + + 33 * - - 51
----
-85581

query I rowsort
SELECT - - 19 + 24 col2
----
43

query I rowsort
SELECT ALL + 13 * 46 AS col2
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL - 38 * + COUNT( * ) * - 71 AS col2
----
2698

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - 38 * + COUNT ( * ) * - 71 AS col2
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT 63 * + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT 63 * + + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT + 22 + - - COALESCE ( + + COALESCE ( - ( COUNT( + + 41 ) ), - - 70 ), - - 7 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + 22 + - - COALESCE ( + + COALESCE ( - ( COUNT ( + + 41 ) ), - - 70 ), - - 7 ) AS col2
----
21

query I rowsort
SELECT - ( 55 ) col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3250
SELECT ALL + CAST( - 79 AS SIGNED ) + - + COUNT( * ), - 53 * + 62 AS col0
----
-80
-3286

skipif mysql # not compatible
query II rowsort label-3250
SELECT ALL + CAST ( - 79 AS INTEGER ) + - + COUNT ( * ), - 53 * + 62 AS col0
----
-80
-3286

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL 25 * + - 48 + COUNT( * ) + + 91
----
-1108

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL 25 * + - 48 + COUNT ( * ) + + 91
----
-1108

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT - MAX( + - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT - MAX ( + - 67 )
----
67

query II rowsort
SELECT ALL 91 AS col2, + 82 AS col0
----
91
82

query I rowsort
SELECT + 22 - + - COALESCE ( 66, + 59 ) AS col1
----
88

query II rowsort
SELECT - + 63 AS col0, + 42 AS col0
----
-63
42

query I rowsort
SELECT + + 6 + + 89 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT - + 1 + - COUNT( * ) - - - 71 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3257
SELECT - + 1 + - COUNT ( * ) - - - 71 AS col0
----
-73

query II rowsort
SELECT ALL + 53 AS col1, 93
----
53
93

query II rowsort
SELECT + 25 AS col2, 70 AS col2
----
25
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - + 68 * MIN( 87 ) AS col1
----
-5916

skipif mysql # not compatible
query I rowsort label-3260
SELECT - + 68 * MIN ( 87 ) AS col1
----
-5916

query I rowsort
SELECT DISTINCT NULLIF ( - 54, - 38 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL + 98 * - 69 * + COUNT( * ) + + + 81 * ( + 59 ) AS col2
----
-1983

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL + 98 * - 69 * + COUNT ( * ) + + + 81 * ( + 59 ) AS col2
----
-1983

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ( 66 ) * + - COUNT( * ) + + + 89 + - 37
----
-14

skipif mysql # not compatible
query I rowsort label-3263
SELECT ( 66 ) * + - COUNT ( * ) + + + 89 + - 37
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT + COUNT( * ) DIV - 72 + + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-3264
SELECT + COUNT ( * ) / - 72 + + - 22
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT ALL 42 * + 50 * - 35 * + 92 - - ( CAST( NULL AS SIGNED ) ) - - COUNT( ALL + 25 ) * - 96 * - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL 42 * + 50 * - 35 * + 92 - - ( CAST ( NULL AS INTEGER ) ) - - COUNT ( ALL + 25 ) * - 96 * - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT ALL - COUNT( * ) * - 89 DIV - 89 - 38 - - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - COUNT ( * ) * - 89 / - 89 - 38 - - COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT DISTINCT - 82 * + 82 * - 48
----
322752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT DISTINCT + 87 * + 65 - - + 21 * + 81 * - COUNT( * ) * - - ( COUNT( * ) ) + + COALESCE ( + 68, 82, + CAST( NULL AS SIGNED ) * + 0 + + 97 ) AS col0
----
4022

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT + 87 * + 65 - - + 21 * + 81 * - COUNT ( * ) * - - ( COUNT ( * ) ) + + COALESCE ( + 68, 82, + CAST ( NULL AS INTEGER ) * + 0 + + 97 ) AS col0
----
4022

query II rowsort
SELECT - 66 * 34 AS col0, 58
----
-2244
58

query I rowsort
SELECT - 72 * 23 AS col2
----
-1656

query I rowsort
SELECT DISTINCT + ( 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - 91 * - + COUNT( * ) + - + 2 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3272
SELECT - 91 * - + COUNT ( * ) + - + 2 AS col2
----
89

query I rowsort
SELECT - 78 * - + ( - 5 )
----
-390

query I rowsort
SELECT - 36 * - 97
----
3492

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3275
SELECT ALL 48 DIV - COUNT( * ) AS col0, - ( 18 ) AS col0
----
-48
-18

skipif mysql # not compatible
query II rowsort label-3275
SELECT ALL 48 / - COUNT ( * ) AS col0, - ( 18 ) AS col0
----
-48
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT NULLIF ( + COUNT( * ), - 43 / 77 - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3276
SELECT NULLIF ( + COUNT ( * ), - 43 / 77 - 42 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT + MAX( - - 99 ) AS col0, 26 AS col1
----
99
26

skipif mysql # not compatible
query II rowsort label-3277
SELECT + MAX ( - - 99 ) AS col0, 26 AS col1
----
99
26

query I rowsort
SELECT ALL + ( + - ( + 54 ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL 42 * + - COUNT( * ) * + 61
----
-2562

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL 42 * + - COUNT ( * ) * + 61
----
-2562

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3280
SELECT DISTINCT + CAST( + + 29 AS SIGNED ), + 1 col1
----
29
1

skipif mysql # not compatible
query II rowsort label-3280
SELECT DISTINCT + CAST ( + + 29 AS INTEGER ), + 1 col1
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - + 53 * - - 14 * - COUNT( * ) - - 41 AS col2
----
783

skipif mysql # not compatible
query I rowsort label-3281
SELECT - + 53 * - - 14 * - COUNT ( * ) - - 41 AS col2
----
783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3282
SELECT - CAST( COUNT( + 75 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3282
SELECT - CAST ( COUNT ( + 75 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3283
SELECT + + ( + CAST( NULL AS SIGNED ) ) AS col2, CASE - 47 WHEN + + 91 THEN NULL WHEN - - 24 + + + 57 + 2 THEN - 91 + 17 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3283
SELECT + + ( + CAST ( NULL AS INTEGER ) ) AS col2, CASE - 47 WHEN + + 91 THEN NULL WHEN - - 24 + + + 57 + 2 THEN - 91 + 17 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT + - 83 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT - - 79 * - COALESCE ( - + ( - 53 ), - + 37 * - MAX( ALL - 23 ) ) * + 75 * 31 + + - 74 AS col2
----
-9734849

skipif mysql # not compatible
query I rowsort label-3285
SELECT - - 79 * - COALESCE ( - + ( - 53 ), - + 37 * - MAX ( ALL - 23 ) ) * + 75 * 31 + + - 74 AS col2
----
-9734849

query I rowsort
SELECT + + 73 * 42 + - 39 AS col0
----
3027

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3287
SELECT ALL - + COUNT( * ) * 24 + 85 + + 38 DIV - 12 + - - MAX( - 77 ) col0, 3
----
-19
3

skipif mysql # not compatible
query II rowsort label-3287
SELECT ALL - + COUNT ( * ) * 24 + 85 + + 38 / - 12 + - - MAX ( - 77 ) col0, 3
----
-19
3

query I rowsort
SELECT ALL NULLIF ( - 46, - + 56 ) * + - 90 + - 8
----
4132

query I rowsort
SELECT + 26 - - 95
----
121

query I rowsort
SELECT + 40 - - - 26 col1
----
14

query I rowsort
SELECT ALL NULLIF ( + 90, - 12 * - - 58 ) + 69 AS col1
----
159

query I rowsort
SELECT DISTINCT - 90 + - 54
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3293
SELECT - ( + CAST( NULL AS SIGNED ) ), MAX( - 9 ) * - COALESCE ( - 26, 71 + - + ( + 92 ) ) * 33 + 27 * + + MAX( DISTINCT - + 9 ) * - 15 AS col0
----
NULL
-4077

skipif mysql # not compatible
query II rowsort label-3293
SELECT - ( + CAST ( NULL AS INTEGER ) ), MAX ( - 9 ) * - COALESCE ( - 26, 71 + - + ( + 92 ) ) * 33 + 27 * + + MAX ( DISTINCT - + 9 ) * - 15 AS col0
----
NULL
-4077

query I rowsort
SELECT + + 52 + - 53 AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3295
SELECT + - 46 * + CAST( NULL AS DECIMAL ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT + - 46 * + CAST ( NULL AS REAL ) + 16
----
NULL

query I rowsort
SELECT + - 77 + 95 AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT - - 97 DIV + 22 - 20 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3297
SELECT - - 97 / + 22 - 20 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + 42 * - COUNT( + 71 )
----
-42

skipif mysql # not compatible
query I rowsort label-3298
SELECT + 42 * - COUNT ( + 71 )
----
-42

query I rowsort
SELECT ALL 86 - + 62 + - 75 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT + NULLIF ( - 56, SUM( ALL - 41 ) ) + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3300
SELECT + NULLIF ( - 56, SUM ( ALL - 41 ) ) + COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT ALL CASE - 65 WHEN - 14 - 16 THEN + 56 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL MIN( 67 )
----
67

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL MIN ( 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + 8 + - CAST( - ( 53 ) AS SIGNED ) * + - 96 + 23 AS col2
----
-5057

skipif mysql # not compatible
query I rowsort label-3303
SELECT + 8 + - CAST ( - ( 53 ) AS INTEGER ) * + - 96 + 23 AS col2
----
-5057

onlyif mysql # DIV for integer division: 
query II rowsort label-3304
SELECT DISTINCT + 10 DIV 34 - + - 25 - - 18 * + - 32 + 52, 48 AS col0
----
-499
48

skipif mysql # not compatible
query II rowsort label-3304
SELECT DISTINCT + 10 / 34 - + - 25 - - 18 * + - 32 + 52, 48 AS col0
----
-499
48

query I rowsort
SELECT + 60 * 5 * - + 66
----
-19800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3306
SELECT - MAX( + 70 ) DIV 16 - 98 * - 78 * - + 3 + 49 + 61
----
-22826

skipif mysql # not compatible
query I rowsort label-3306
SELECT - MAX ( + 70 ) / 16 - 98 * - 78 * - + 3 + 49 + 61
----
-22826

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT + SUM( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + SUM ( 23 )
----
23

query I rowsort
SELECT DISTINCT - 24 * + 26 AS col0
----
-624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT COUNT( * ) DIV - + 22
----
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT COUNT ( * ) / - + 22
----
0

query I rowsort
SELECT 49 * + + 89
----
4361

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3311
SELECT ALL - CAST( NULL AS DECIMAL ) + + ( - 98 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL - CAST ( NULL AS REAL ) + + ( - 98 ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT COUNT( * ) + + + COUNT( * ) + 2 DIV + 58 * 55 DIV + 7
----
2

skipif mysql # not compatible
query I rowsort label-3312
SELECT COUNT ( * ) + + + COUNT ( * ) + 2 / + 58 * 55 / + 7
----
2

query I rowsort
SELECT 61 * - ( ( + 48 ) ) - - 87 AS col2
----
-2841

query I rowsort
SELECT 29 + - + 51
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - COUNT( * ) - - 69 + - 71 * 40
----
-2772

skipif mysql # not compatible
query I rowsort label-3315
SELECT - COUNT ( * ) - - 69 + - 71 * 40
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - + 84 * - + 12 * + COALESCE ( 69, COALESCE ( + 69, - + ( 8 ) ) * + - 98, - 95 ) * + MAX( - 47 ) + - + 12 + + - 11 * - 14 - ( 14 ) - + - 74 * - COUNT( * ) + - ( + COALESCE ( - 59, - + 27, 90 + + + 14 ) ) AS col1
----
-3268831

skipif mysql # not compatible
query I rowsort label-3316
SELECT - + 84 * - + 12 * + COALESCE ( 69, COALESCE ( + 69, - + ( 8 ) ) * + - 98, - 95 ) * + MAX ( - 47 ) + - + 12 + + - 11 * - 14 - ( 14 ) - + - 74 * - COUNT ( * ) + - ( + COALESCE ( - 59, - + 27, 90 + + + 14 ) ) AS col1
----
-3268831

query I rowsort
SELECT 98 + - + 30 + + 94
----
162

query I rowsort
SELECT + + 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT + + COUNT( + 2 ) + + + COUNT( * ) + - 22 * - 64 - - 67 + 49 * + - 56 AS col0
----
-1267

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + + COUNT ( + 2 ) + + + COUNT ( * ) + - 22 * - 64 - - 67 + 49 * + - 56 AS col0
----
-1267

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - 86 * + COUNT( * ) + 47 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 86 * + COUNT ( * ) + 47 AS col0
----
-39

query I rowsort
SELECT ALL - + ( 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL CASE - + AVG ( DISTINCT + 47 ) WHEN 58 * - 23 THEN NULL WHEN - 49 / + 92 THEN + 18 * MAX( DISTINCT + + 83 ) * - 72 * + 21 + + 67 * + 73 WHEN + ( - 45 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL CASE - + AVG ( DISTINCT + 47 ) WHEN 58 * - 23 THEN NULL WHEN - 49 / + 92 THEN + 18 * MAX ( DISTINCT + + 83 ) * - 72 * + 21 + + 67 * + 73 WHEN + ( - 45 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 2 + - 16 AS col2
----
-18

query I rowsort
SELECT - ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + + 83 * + ( - + NULLIF ( + 46, - 34 ) ) + - CASE - 90 WHEN - + 2 THEN - 15 + + 96 WHEN - - CASE + NULLIF ( - 88, - 81 ) WHEN + 75 * - 85 THEN NULL WHEN + COUNT( * ) THEN - 69 * - NULLIF ( - 71, NULLIF ( - 90, NULLIF ( - - COUNT( * ), 62 ) ) / + + COUNT( * ) * - - COUNT( * ) ) * ( - + CASE + COUNT( * ) WHEN + COALESCE ( + 17, + COUNT( * ), + CASE + 15 WHEN + COUNT( * ) THEN - 85 ELSE + 87 END * 90 + 3 ) THEN + 30 / - ( + 89 * + 3 ) WHEN 65 * - 10 THEN COUNT( * ) END ) WHEN + 44 THEN NULL END THEN NULL END * + 93 + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT + + 83 * + ( - + NULLIF ( + 46, - 34 ) ) + - CASE - 90 WHEN - + 2 THEN - 15 + + 96 WHEN - - CASE + NULLIF ( - 88, - 81 ) WHEN + 75 * - 85 THEN NULL WHEN + COUNT ( * ) THEN - 69 * - NULLIF ( - 71, NULLIF ( - 90, NULLIF ( - - COUNT ( * ), 62 ) ) / + + COUNT ( * ) * - - COUNT ( * ) ) * ( - + CASE + COUNT ( * ) WHEN + COALESCE ( + 17, + COUNT ( * ), + CASE + 15 WHEN + COUNT ( * ) THEN - 85 ELSE + 87 END * 90 + 3 ) THEN + 30 / - ( + 89 * + 3 ) WHEN 65 * - 10 THEN COUNT ( * ) END ) WHEN + 44 THEN NULL END THEN NULL END * + 93 + - 59 AS col0
----
NULL

query I rowsort
SELECT ALL + 86 + + 30
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + MIN( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-3327
SELECT + MIN ( DISTINCT 18 )
----
18

query I rowsort
SELECT - + 0 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT 46 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT 46 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 43 * - + 76
----
-3268

query I rowsort
SELECT - - 77 col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - + MAX( + 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3332
SELECT - + MAX ( + 52 ) AS col0
----
-52

query I rowsort
SELECT ALL 70 - 37 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ( - 48 ) + COUNT( * ) - + + ( 6 ) + - 59 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-3334
SELECT ( - 48 ) + COUNT ( * ) - + + ( 6 ) + - 59 AS col1
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3335
SELECT DISTINCT MIN( + 31 ) DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT MIN ( + 31 ) / 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT COUNT( * ) * - + 83 * + NULLIF ( + COALESCE ( + 17, 12 * + + 71 ), 21 )
----
-1411

skipif mysql # not compatible
query I rowsort label-3336
SELECT COUNT ( * ) * - + 83 * + NULLIF ( + COALESCE ( + 17, 12 * + + 71 ), 21 )
----
-1411

query I rowsort
SELECT 85 + 84 + + 74
----
243

query I rowsort
SELECT 89 - - 53 * + 2 + - - 51 AS col1
----
246

query III rowsort
SELECT - 6, 79 * + 96 - - 29 AS col0, + - 72 col0
----
-6
7613
-72

query I rowsort
SELECT 30 + 14
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT COUNT( * ) * - 48 col0
----
-48

skipif mysql # not compatible
query I rowsort label-3341
SELECT COUNT ( * ) * - 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ( - 72 ) + + 74 + - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3342
SELECT ( - 72 ) + + 74 + - COUNT ( * ) col0
----
1

query I rowsort
SELECT ALL 48 * + 89
----
4272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT 28 * + - COUNT( * ) + - 95 + 18 * - 44 * + 91 * - - ( - CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN 46 THEN - 30 * 94 * 9 * 61 * 71 * CAST( + 39 AS SIGNED ) - + 32 WHEN 90 - 93 + + 71 THEN NULL WHEN COALESCE ( - 52, - + 78 ) + - 74 * + 62 * - 40 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT 28 * + - COUNT ( * ) + - 95 + 18 * - 44 * + 91 * - - ( - CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN 46 THEN - 30 * 94 * 9 * 61 * 71 * CAST ( + 39 AS INTEGER ) - + 32 WHEN 90 - 93 + + 71 THEN NULL WHEN COALESCE ( - 52, - + 78 ) + - 74 * + 62 * - 40 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3345
SELECT DISTINCT - 62 AS col0, - 93 + CAST( NULL AS SIGNED )
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-3345
SELECT DISTINCT - 62 AS col0, - 93 + CAST ( NULL AS INTEGER )
----
-62
NULL

query II rowsort
SELECT ALL - 4, 47 AS col1
----
-4
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT 39 * 64 / - CASE + + CAST( + 94 AS SIGNED ) WHEN 41 THEN - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT 39 * 64 / - CASE + + CAST ( + 94 AS INTEGER ) WHEN 41 THEN - 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL 13 + - - 19 + - CASE COUNT( * ) WHEN - 44 * - 72 + - CASE + 26 WHEN 92 * - + 48 * 75 + - - NULLIF ( - - NULLIF ( 64, + 21 ), + COUNT( * ) * 36 - + - 82 ) - 65 + + AVG ( DISTINCT + - 97 ) + - - 45 * + - ( + 13 ) * + - 94 * - 11 * - + COUNT( * ) THEN - + 56 * 86 END + 61 THEN - 50 * + 8 * 45 ELSE NULL END / SUM( - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL 13 + - - 19 + - CASE COUNT ( * ) WHEN - 44 * - 72 + - CASE + 26 WHEN 92 * - + 48 * 75 + - - NULLIF ( - - NULLIF ( 64, + 21 ), + COUNT ( * ) * 36 - + - 82 ) - 65 + + AVG ( DISTINCT + - 97 ) + - - 45 * + - ( + 13 ) * + - 94 * - 11 * - + COUNT ( * ) THEN - + 56 * 86 END + 61 THEN - 50 * + 8 * 45 ELSE NULL END / SUM ( - 0 )
----
NULL

query II rowsort
SELECT DISTINCT - 78 AS col0, + CASE + 97 WHEN + 42 THEN + + 76 END AS col2
----
-78
NULL

query I rowsort
SELECT 55 + + 75 + + 42
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT COUNT( * ) * - 72 * + - 85 * 70 AS col1
----
428400

skipif mysql # not compatible
query I rowsort label-3351
SELECT COUNT ( * ) * - 72 * + - 85 * 70 AS col1
----
428400

query I rowsort
SELECT CASE + 61 WHEN + + 52 THEN - - 95 ELSE NULL END * - + 75 + - 1 + + 78 + + 13 * - 30 + + 65 - 19 * - 7 AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 86, 80 )
----
-86

query I rowsort
SELECT DISTINCT - 20 + - + ( + 49 ) * - + 68 AS col1
----
3312

query I rowsort
SELECT ALL + - 42 + 25 AS col2
----
-17

query I rowsort
SELECT ALL + 51 + - 31 col2
----
20

query I rowsort
SELECT + 95 * 44
----
4180

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT ALL - COUNT( * ) AS col2, + 84 + 84 AS col2
----
-1
168

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL - COUNT ( * ) AS col2, + 84 + 84 AS col2
----
-1
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT + + 29 * + 76 * - SUM( 95 ) AS col2
----
-209380

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + + 29 * + 76 * - SUM ( 95 ) AS col2
----
-209380

query I rowsort
SELECT DISTINCT ( + 93 ) + + ( + + 28 )
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-3361
SELECT ALL - 33, - 27 + 4 DIV + 26 + + - 9 AS col2
----
-33
-36

skipif mysql # not compatible
query II rowsort label-3361
SELECT ALL - 33, - 27 + 4 / + 26 + + - 9 AS col2
----
-33
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL + 1 * + + 25 + COUNT( 65 ) - - 77
----
103

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + 1 * + + 25 + COUNT ( 65 ) - - 77
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-3363
SELECT + COUNT( * ) AS col2, 5 + + 20 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-3363
SELECT + COUNT ( * ) AS col2, 5 + + 20 AS col2
----
1
25

query II rowsort
SELECT DISTINCT - CASE 87 WHEN - 83 THEN NULL ELSE - 64 END, + 96 col2
----
64
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + CAST( - + 21 AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3365
SELECT + CAST ( - + 21 AS INTEGER ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT 10 * - + 83 - + 77 + + CASE + CAST( 15 AS SIGNED ) WHEN - COUNT( * ) THEN + 33 ELSE - + CASE - - 51 WHEN 56 + 7 THEN + 24 WHEN CAST( NULL AS SIGNED ) THEN - MIN( DISTINCT ( + + 99 ) ) WHEN - COUNT( * ) + + 89 THEN 53 ELSE - COUNT( * ) END END - - - 52 * - 39 - - NULLIF ( + 91, + 98 ) - 62 col2
----
1151

skipif mysql # not compatible
query I rowsort label-3366
SELECT 10 * - + 83 - + 77 + + CASE + CAST ( 15 AS INTEGER ) WHEN - COUNT ( * ) THEN + 33 ELSE - + CASE - - 51 WHEN 56 + 7 THEN + 24 WHEN CAST ( NULL AS INTEGER ) THEN - MIN ( DISTINCT ( + + 99 ) ) WHEN - COUNT ( * ) + + 89 THEN 53 ELSE - COUNT ( * ) END END - - - 52 * - 39 - - NULLIF ( + 91, + 98 ) - 62 col2
----
1151

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT ALL - 12, MAX( ALL 57 ) AS col0
----
-12
57

skipif mysql # not compatible
query II rowsort label-3367
SELECT ALL - 12, MAX ( ALL 57 ) AS col0
----
-12
57

query I rowsort
SELECT + + 7 * + - 24 + - 58
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ( COUNT( * ) ) * - - NULLIF ( + COUNT( * ), - 38 ) - 19 * - ( - 8 ) AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-3369
SELECT ( COUNT ( * ) ) * - - NULLIF ( + COUNT ( * ), - 38 ) - 19 * - ( - 8 ) AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL - 49 - - 65 * ( 83 ) - - ( - 79 ) + + - 52 * + COUNT( * ) AS col1
----
5215

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL - 49 - - 65 * ( 83 ) - - ( - 79 ) + + - 52 * + COUNT ( * ) AS col1
----
5215

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + NULLIF ( - - 57, - + COUNT( * ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3371
SELECT + NULLIF ( - - 57, - + COUNT ( * ) ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3372
SELECT ALL + + SUM( - - 7 ) DIV - 87 * - + ( - - 32 ) * - 94 DIV + - 76 - 76
----
-76

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + + SUM ( - - 7 ) / - 87 * - + ( - - 32 ) * - 94 / + - 76 - 76
----
-76

query I rowsort
SELECT ( 86 ) - 57
----
29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3374
SELECT ALL + CASE - 6 WHEN + 8 THEN + + 6 DIV + + CAST( - CAST( - + CAST( - 5 AS SIGNED ) AS DECIMAL ) AS SIGNED ) ELSE - + 14 * + COALESCE ( - + 55, - - 49 ) + 71 + + 15 * - 57 END DIV - - CAST( + 86 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + CASE - 6 WHEN + 8 THEN + + 6 / + + CAST ( - CAST ( - + CAST ( - 5 AS INTEGER ) AS REAL ) AS INTEGER ) ELSE - + 14 * + COALESCE ( - + 55, - - 49 ) + 71 + + 15 * - 57 END / - - CAST ( + 86 AS INTEGER )
----
0

query II rowsort
SELECT - 77 AS col1, 34 AS col1
----
-77
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT DISTINCT ( + 51 ) * - ( - - 90 ), COUNT( * ) AS col0
----
-4590
1

skipif mysql # not compatible
query II rowsort label-3376
SELECT DISTINCT ( + 51 ) * - ( - - 90 ), COUNT ( * ) AS col0
----
-4590
1

query I rowsort
SELECT DISTINCT ( + 64 )
----
64

query I rowsort
SELECT 89 + + 10
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT 24 * - CAST( NULL AS SIGNED ) * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT 24 * - CAST ( NULL AS INTEGER ) * - - 18
----
NULL

query I rowsort
SELECT 95 * - 69
----
-6555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT DISTINCT + 51 * COUNT( * ) * CAST( NULL AS SIGNED ) / + - 95 / 93 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + 51 * COUNT ( * ) * CAST ( NULL AS INTEGER ) / + - 95 / 93 * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3382
SELECT ALL + 69 * - 10 * - + 80 AS col0, 39 DIV - 46 AS col2
----
55200
0

skipif mysql # not compatible
query II rowsort label-3382
SELECT ALL + 69 * - 10 * - + 80 AS col0, 39 / - 46 AS col2
----
55200
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL - 97 + - + 2 + - MIN( ALL - 91 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL - 97 + - + 2 + - MIN ( ALL - 91 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT + COUNT( * ) * - - 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( * ) * - - 32 AS col0
----
32

query I rowsort
SELECT ALL + 33 + + 50 + - 74
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL 19 + - ( 79 ) - - COUNT( 2 ) + 22 * 91
----
1943

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL 19 + - ( 79 ) - - COUNT ( 2 ) + 22 * 91
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - 95 + - ( - SUM( DISTINCT 42 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3387
SELECT - 95 + - ( - SUM ( DISTINCT 42 ) ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT CASE - 60 WHEN - COUNT( * ) THEN NULL ELSE - - 37 END
----
37

skipif mysql # not compatible
query I rowsort label-3388
SELECT CASE - 60 WHEN - COUNT ( * ) THEN NULL ELSE - - 37 END
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT 79 * COUNT( 99 ) + + 61 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-3389
SELECT 79 * COUNT ( 99 ) + + 61 AS col0
----
140

query I rowsort
SELECT DISTINCT 16 * + 60 + + 67
----
1027

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT COUNT( + - 99 ) * - + 51 + 32 + 26 - + 93 - + 64 + MAX( ALL - 51 )
----
-201

skipif mysql # not compatible
query I rowsort label-3391
SELECT COUNT ( + - 99 ) * - + 51 + 32 + 26 - + 93 - + 64 + MAX ( ALL - 51 )
----
-201

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT DISTINCT + SUM( ALL + ( + 27 ) ), 33 + - - 75 AS col0
----
27
108

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT + SUM ( ALL + ( + 27 ) ), 33 + - - 75 AS col0
----
27
108

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT ALL + 7 DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL + 7 / + 63 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT + NULLIF ( + 21, - CAST( + 96 AS SIGNED ) ) - - + ( - + 93 ) + + 15 * 57 AS col2
----
783

skipif mysql # not compatible
query I rowsort label-3394
SELECT + NULLIF ( + 21, - CAST ( + 96 AS INTEGER ) ) - - + ( - + 93 ) + + 15 * 57 AS col2
----
783

query I rowsort
SELECT - ( - + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + MAX( + ( - 95 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + MAX ( + ( - 95 ) ) AS col0
----
-95

query I rowsort
SELECT + 92 + + - 29 AS col0
----
63

query I rowsort
SELECT ALL 23 * + 3 * + - 80 + 18 + 17 * 0 AS col1
----
-5502

query I rowsort
SELECT + COALESCE ( + 85, - 90 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - - MAX( DISTINCT 84 ) - + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3400
SELECT - - MAX ( DISTINCT 84 ) - + COUNT ( * ) AS col1
----
83

query I rowsort
SELECT - + 84 + 46 * - 46 - - - 68 + + + ( + - 41 ) * 66 + - - ( - 3 ) + 75 * - 29 AS col1
----
-7152

query I rowsort
SELECT ALL - 31 * + 82 - 42
----
-2584

query I rowsort
SELECT + + 73 * 56 AS col1
----
4088

query I rowsort
SELECT ALL + - 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + COUNT( * ) + + 49 * + + 77 AS col2
----
3774

skipif mysql # not compatible
query I rowsort label-3405
SELECT + COUNT ( * ) + + 49 * + + 77 AS col2
----
3774

query I rowsort
SELECT ALL + + 60 * 95 + + 37
----
5737

query I rowsort
SELECT + 22 + - 36 + - + 95
----
-109

onlyif mysql # DIV for integer division: 
query II rowsort label-3408
SELECT ALL 92 DIV 67, + 43 * + + 9 AS col0
----
1
387

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL 92 / 67, + 43 * + + 9 AS col0
----
1
387

query I rowsort
SELECT - 31 * - 76
----
2356

query I rowsort
SELECT DISTINCT + 85 * + 32 AS col1
----
2720

query I rowsort
SELECT + 22 col1
----
22

query I rowsort
SELECT - + 32 AS col2
----
-32

query I rowsort
SELECT ALL + 52 * 59
----
3068

query I rowsort
SELECT - ( - 93 ) AS col0
----
93

query I rowsort
SELECT - 50 + + 96 + + 58 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT COUNT( * ) + - - 72 + - 99 * - + 43 * 72 AS col1
----
306577

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT COUNT ( * ) + - - 72 + - 99 * - + 43 * 72 AS col1
----
306577

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT - ( - - 42 ) DIV - - 13 + - 0 + NULLIF ( 14, + 27 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - ( - - 42 ) / - - 13 + - 0 + NULLIF ( 14, + 27 ) AS col0
----
11

query I rowsort
SELECT DISTINCT + 65 + + 31 col2
----
96

query I rowsort
SELECT - 7 + - - 45 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3420
SELECT ALL + NULLIF ( + 92, - 39 ) + 61 AS col1, CAST( NULL AS SIGNED ) + + COUNT( * ) + + 16 * - - ( + + 61 ) col2
----
153
NULL

skipif mysql # not compatible
query II rowsort label-3420
SELECT ALL + NULLIF ( + 92, - 39 ) + 61 AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 16 * - - ( + + 61 ) col2
----
153
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT ALL + CAST( NULL AS SIGNED ) + + + 10 + + 11 + - 79 - + - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 10 + + 11 + - 79 - + - 52 AS col0
----
NULL

query I rowsort
SELECT - 95 * 43 AS col1
----
-4085

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT - 54 - + + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3423
SELECT - 54 - + + COUNT ( * ) AS col1
----
-55

query I rowsort
SELECT ALL ( + 59 ) AS col1
----
59

query I rowsort
SELECT DISTINCT + 20 + + - 29 AS col1
----
-9

query I rowsort
SELECT DISTINCT - 65 + 15 + + - 89
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3427
SELECT 23 AS col2, 46 - 14 * - 98 DIV ( + + COUNT( * ) ) * + + 13 + - NULLIF ( - 16, + 37 * - 45 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) DIV - NULLIF ( + 36, - 55 ) + - - AVG ( ALL - 4 ) ) col0
----
23
17898

skipif mysql # not compatible
query II rowsort label-3427
SELECT 23 AS col2, 46 - 14 * - 98 / ( + + COUNT ( * ) ) * + + 13 + - NULLIF ( - 16, + 37 * - 45 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - NULLIF ( + 36, - 55 ) + - - AVG ( ALL - 4 ) ) col0
----
23
17898

query II rowsort
SELECT + ( 51 ) + + + 75 AS col1, - COALESCE ( + ( - 71 ), + 90 + - 77 ) AS col2
----
126
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3429
SELECT ALL + 2 + - 83 - - + 38 - + 66 + 19 + SUM( + - 17 ) DIV + - 6 AS col0, - 56 * - 36
----
-88
2016

skipif mysql # not compatible
query II rowsort label-3429
SELECT ALL + 2 + - 83 - - + 38 - + 66 + 19 + SUM ( + - 17 ) / + - 6 AS col0, - 56 * - 36
----
-88
2016

query I rowsort
SELECT ALL - 48 + + ( 34 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT - NULLIF ( 11, - 89 * - 91 + + 18 + - AVG ( + 50 ) - + + 32 + - 91 * - - 26 + - COUNT( * ) * 79 ) * CAST( NULL AS SIGNED ) * CASE 10 WHEN 9 / 35 + + - 40 * + 67 + - - CAST( NULL AS SIGNED ) THEN + - 76 * - + 94 + - ( + CAST( + 33 AS SIGNED ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT - NULLIF ( 11, - 89 * - 91 + + 18 + - AVG ( + 50 ) - + + 32 + - 91 * - - 26 + - COUNT ( * ) * 79 ) * CAST ( NULL AS INTEGER ) * CASE 10 WHEN 9 / 35 + + - 40 * + 67 + - - CAST ( NULL AS INTEGER ) THEN + - 76 * - + 94 + - ( + CAST ( + 33 AS INTEGER ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT DISTINCT + 35 DIV + 62 - + + ( + 40 ) * 99 * + 80, COUNT( * ) AS col0
----
-316800
1

skipif mysql # not compatible
query II rowsort label-3432
SELECT DISTINCT + 35 / + 62 - + + ( + 40 ) * 99 * + 80, COUNT ( * ) AS col0
----
-316800
1

query I rowsort
SELECT - 34 * - 12
----
408

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT + - CASE + COUNT( * ) WHEN 45 THEN + - MAX( DISTINCT - 19 ) * - 13 ELSE NULL END AS col0, 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3434
SELECT + - CASE + COUNT ( * ) WHEN 45 THEN + - MAX ( DISTINCT - 19 ) * - 13 ELSE NULL END AS col0, 65
----
NULL
65

query II rowsort
SELECT ALL + + 73 col0, 43 * - - 80
----
73
3440

query II rowsort
SELECT + - 62, + 90 AS col0
----
-62
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + - 63 + - COALESCE ( - COUNT( * ), + NULLIF ( + ( - 12 ), - MIN( 86 ) ) - - - 27 ) * - 17 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3437
SELECT + - 63 + - COALESCE ( - COUNT ( * ), + NULLIF ( + ( - 12 ), - MIN ( 86 ) ) - - - 27 ) * - 17 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3438
SELECT + ( + COALESCE ( - - COUNT( * ), + + COUNT( * ) ) ), CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3438
SELECT + ( + COALESCE ( - - COUNT ( * ), + + COUNT ( * ) ) ), CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3439
SELECT + - CAST( NULL AS DECIMAL ) * + 92 * + COUNT( * ) + - CASE WHEN ( + 32 ) NOT BETWEEN 17 / 70 * - 90 AND - 21 THEN + 15 END * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT + - CAST ( NULL AS REAL ) * + 92 * + COUNT ( * ) + - CASE WHEN ( + 32 ) NOT BETWEEN 17 / 70 * - 90 AND - 21 THEN + 15 END * - 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT ALL + ( + + SUM( ALL - - 96 ) ) DIV + 72 - - 44
----
45

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + ( + + SUM ( ALL - - 96 ) ) / + 72 - - 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT - - COUNT( * ) * 19 - + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-3441
SELECT - - COUNT ( * ) * 19 - + - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + - COUNT( * ) + + - 72
----
-73

skipif mysql # not compatible
query I rowsort label-3442
SELECT + - COUNT ( * ) + + - 72
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT ALL + 44 AS col0, COUNT( * ) * - 15 - - 18 - - - 31 * 27 + COUNT( * )
----
44
-833

skipif mysql # not compatible
query II rowsort label-3443
SELECT ALL + 44 AS col0, COUNT ( * ) * - 15 - - 18 - - - 31 * 27 + COUNT ( * )
----
44
-833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT - + CASE + + 48 WHEN + - COALESCE ( - + 43, + 46 ) + - 76 + - + 10 + - + 8 * - 32 DIV 39 THEN - COUNT( * ) - COUNT( * ) ELSE + 3 - 26 - CAST( - 43 AS SIGNED ) + + 97 * - - COUNT( ( - 53 ) ) * 47 END DIV - SUM( - 57 ) + 27 col2
----
-53

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - + CASE + + 48 WHEN + - COALESCE ( - + 43, + 46 ) + - 76 + - + 10 + - + 8 * - 32 / 39 THEN - COUNT ( * ) - COUNT ( * ) ELSE + 3 - 26 - CAST ( - 43 AS INTEGER ) + + 97 * - - COUNT ( ( - 53 ) ) * 47 END / - SUM ( - 57 ) + 27 col2
----
-53

query I rowsort
SELECT ALL - 16 * + 98
----
-1568

query I rowsort
SELECT ALL 76 * - 70 AS col2
----
-5320

onlyif mysql # aggregate syntax: 
query II rowsort label-3447
SELECT DISTINCT COUNT( - 95 ) * 77, + 79 AS col0
----
77
79

skipif mysql # not compatible
query II rowsort label-3447
SELECT DISTINCT COUNT ( - 95 ) * 77, + 79 AS col0
----
77
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3448
SELECT + - 61 * - + CASE MAX( + 32 ) WHEN + + ( - COUNT( * ) ) THEN + SUM( ALL - + 71 ) ELSE NULL END * - 59 * 39 + CASE - 89 WHEN + COUNT( * ) THEN COUNT( * ) WHEN - - COUNT( ALL - 29 ) * + 16 * + 24 THEN NULL ELSE NULL END + 61 / + SUM( DISTINCT - 39 ), CAST( NULL AS SIGNED ) * - + 6 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3448
SELECT + - 61 * - + CASE MAX ( + 32 ) WHEN + + ( - COUNT ( * ) ) THEN + SUM ( ALL - + 71 ) ELSE NULL END * - 59 * 39 + CASE - 89 WHEN + COUNT ( * ) THEN COUNT ( * ) WHEN - - COUNT ( ALL - 29 ) * + 16 * + 24 THEN NULL ELSE NULL END + 61 / + SUM ( DISTINCT - 39 ), CAST ( NULL AS INTEGER ) * - + 6 AS col0
----
NULL
NULL

query I rowsort
SELECT ALL + + 17
----
17

query I rowsort
SELECT + - 17 + 40 + + 10 AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT CASE + SUM( DISTINCT 44 ) WHEN + 74 + 25 * NULLIF ( - - 39, 3 * - 0 + COUNT( * ) - - 39 ) - + - 80 THEN NULL WHEN - COUNT( * ) THEN + 39 - - ( - CASE - 43 WHEN + 49 THEN CAST( NULL AS SIGNED ) * 29 + 75 + - 63 * + - COUNT( * ) * 47 * 40 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT CASE + SUM ( DISTINCT 44 ) WHEN + 74 + 25 * NULLIF ( - - 39, 3 * - 0 + COUNT ( * ) - - 39 ) - + - 80 THEN NULL WHEN - COUNT ( * ) THEN + 39 - - ( - CASE - 43 WHEN + 49 THEN CAST ( NULL AS INTEGER ) * 29 + 75 + - 63 * + - COUNT ( * ) * 47 * 40 END ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT ALL - COUNT( * ) * - + 46 DIV - - 41 + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - COUNT ( * ) * - + 46 / - - 41 + - 58
----
-57

query II rowsort
SELECT DISTINCT + ( + - 25 ) * - - 67 + - 58, ( + - 81 ) AS col0
----
-1733
-81

query I rowsort
SELECT ALL - 5 * + + 4 col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT DISTINCT 55 DIV ( + + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT 55 / ( + + 71 )
----
0

query I rowsort
SELECT 43 + 7 * 80
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL 90 * - MAX( - 35 )
----
3150

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL 90 * - MAX ( - 35 )
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT 20 / + + 10 * 18 * - CASE 14 WHEN 32 THEN 47 * + - 46 / 15 WHEN - ( - 68 ) * - 58 / ( SUM( + 96 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT 20 / + + 10 * 18 * - CASE 14 WHEN 32 THEN 47 * + - 46 / 15 WHEN - ( - 68 ) * - 58 / ( SUM ( + 96 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT 33 + + 38
----
71

query I rowsort
SELECT 68 - + 32 + + 77
----
113

query I rowsort
SELECT ALL + 16 + + 41 + - 90 AS col2
----
-33

query I rowsort
SELECT 55 * 88
----
4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT DISTINCT CAST( NULL AS SIGNED ) - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL - 43 / - CASE - 29 WHEN + + 25 * 74 + + COUNT( * ) * + 94 * - - COALESCE ( - 98, + + 38 / - MAX( DISTINCT - 49 ) * - - 21 / COALESCE ( + 95, 19 ) + 93, - 74 + + + 40 + + + 52 * - + 88 ) * ( - + 59 ) THEN - COUNT( * ) WHEN + 84 * - - 40 / - - CAST( + 8 AS SIGNED ) + - 27 * 25 THEN - MIN( ALL 97 ) * + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - 43 / - CASE - 29 WHEN + + 25 * 74 + + COUNT ( * ) * + 94 * - - COALESCE ( - 98, + + 38 / - MAX ( DISTINCT - 49 ) * - - 21 / COALESCE ( + 95, 19 ) + 93, - 74 + + + 40 + + + 52 * - + 88 ) * ( - + 59 ) THEN - COUNT ( * ) WHEN + 84 * - - 40 / - - CAST ( + 8 AS INTEGER ) + - 27 * 25 THEN - MIN ( ALL 97 ) * + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT 68 + + + CASE - 77 WHEN + COUNT( * ) * - NULLIF ( - 94, + + 68 ) * - CASE + 42 WHEN + ( + 73 ) THEN + + 4 ELSE - 71 END * - 29 THEN NULL ELSE - - COALESCE ( + 5, 34, 99 ) END * - 94 * - CAST( + 45 AS SIGNED ) + - 83
----
21135

skipif mysql # not compatible
query I rowsort label-3465
SELECT 68 + + + CASE - 77 WHEN + COUNT ( * ) * - NULLIF ( - 94, + + 68 ) * - CASE + 42 WHEN + ( + 73 ) THEN + + 4 ELSE - 71 END * - 29 THEN NULL ELSE - - COALESCE ( + 5, 34, 99 ) END * - 94 * - CAST ( + 45 AS INTEGER ) + - 83
----
21135

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT 0 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT 0 / - 72
----
0

query I rowsort
SELECT + ( - + 10 )
----
-10

query I rowsort
SELECT ALL - ( ( 13 ) )
----
-13

query I rowsort
SELECT 31 + 98
----
129

query I rowsort
SELECT 90 * - 57
----
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + + 66 / - 66 * - - COALESCE ( + 77, + 94, - 33 ) * - 78 / + 64 - - CASE - ( 34 ) WHEN + NULLIF ( + + CASE - AVG ( ( - 36 ) ) WHEN - + CASE 61 WHEN ( 11 ) * - 70 THEN - 46 END + + - 81 + - 38 THEN + 58 + - - 10 + + + 78 + + 11 * + 3 WHEN - 36 THEN - 16 WHEN - 30 THEN + 1 * + 27 ELSE NULL END, + 2 * + 5 * 46 - ( MIN( 4 ) ) + + 9 + ( 68 + - 26 * SUM( DISTINCT + 98 + 94 ) ) ) THEN + ( 77 ) + 55 / 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT + + 66 / - 66 * - - COALESCE ( + 77, + 94, - 33 ) * - 78 / + 64 - - CASE - ( 34 ) WHEN + NULLIF ( + + CASE - AVG ( ( - 36 ) ) WHEN - + CASE 61 WHEN ( 11 ) * - 70 THEN - 46 END + + - 81 + - 38 THEN + 58 + - - 10 + + + 78 + + 11 * + 3 WHEN - 36 THEN - 16 WHEN - 30 THEN + 1 * + 27 ELSE NULL END, + 2 * + 5 * 46 - ( MIN ( 4 ) ) + + 9 + ( 68 + - 26 * SUM ( DISTINCT + 98 + 94 ) ) ) THEN + ( 77 ) + 55 / 15 END
----
NULL

query I rowsort
SELECT 69 * + + 45
----
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) + - - 51 + 45 * - - NULLIF ( + COUNT( * ), 39 ) + + - 69 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) + - - 51 + 45 * - - NULLIF ( + COUNT ( * ), 39 ) + + - 69 AS col0
----
28

query I rowsort
SELECT ALL - + 30 AS col2
----
-30

query I rowsort
SELECT 15 + + 41 AS col1
----
56

query II rowsort
SELECT DISTINCT + 44 + - 45 AS col1, - 8
----
-1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT 24 + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-3477
SELECT 24 + - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT + MIN( ALL 36 ) * - NULLIF ( - + 87, + 90 ) * 23
----
72036

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + MIN ( ALL 36 ) * - NULLIF ( - + 87, + 90 ) * 23
----
72036

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT COALESCE ( - COUNT( * ), 48 + 40 * 75 ) * - 23, COUNT( * ) * + 2 * 48 AS col0
----
23
96

skipif mysql # not compatible
query II rowsort label-3479
SELECT COALESCE ( - COUNT ( * ), 48 + 40 * 75 ) * - 23, COUNT ( * ) * + 2 * 48 AS col0
----
23
96

query I rowsort
SELECT ALL 49 + + 63 AS col0
----
112

query I rowsort
SELECT DISTINCT COALESCE ( - + 73, 53 ) + + + 70
----
-3

query I rowsort
SELECT 30 + + 43 * - 11 + + 86 col1
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL SUM( DISTINCT + + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL SUM ( DISTINCT + + 53 )
----
53

query I rowsort
SELECT 49 * 6 AS col2
----
294

query I rowsort
SELECT 55 + + 94 col1
----
149

query I rowsort
SELECT DISTINCT 48 - - 73
----
121

query I rowsort
SELECT ( - 49 ) + + - 45
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL - COUNT( * ) * - + 77 col0
----
77

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - COUNT ( * ) * - + 77 col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT COUNT( - 56 ) + - 26
----
-25

skipif mysql # not compatible
query I rowsort label-3489
SELECT COUNT ( - 56 ) + - 26
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL 0 * - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL 0 * - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT COUNT( * ) * + 75 * - 62 * - COUNT( * )
----
4650

skipif mysql # not compatible
query I rowsort label-3491
SELECT COUNT ( * ) * + 75 * - 62 * - COUNT ( * )
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT - SUM( - + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - SUM ( - + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT COUNT( * ) * 78 + - + 42 + - + 58 + + - 20 * 10 col1
----
-222

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT COUNT ( * ) * 78 + - + 42 + - + 58 + + - 20 * 10 col1
----
-222

query II rowsort
SELECT ALL 6, - 42 AS col0
----
6
-42

query I rowsort
SELECT + + 4 * 28 + - + 48 + + 12 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT DISTINCT + + 78 DIV 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + + 78 / 68 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3497
SELECT + 88 DIV + CAST( - CASE + 94 WHEN + ( - CAST( - 85 AS SIGNED ) ) THEN NULL ELSE - + 11 - + + 26 - + COUNT( * ) + - 97 + - - 3 - - COUNT( * ) * 27 END AS SIGNED ) + - + 95 + 88 col2
----
-7

skipif mysql # not compatible
query I rowsort label-3497
SELECT + 88 / + CAST ( - CASE + 94 WHEN + ( - CAST ( - 85 AS INTEGER ) ) THEN NULL ELSE - + 11 - + + 26 - + COUNT ( * ) + - 97 + - - 3 - - COUNT ( * ) * 27 END AS INTEGER ) + - + 95 + 88 col2
----
-7

query I rowsort
SELECT ALL 36 * 18 * - 33 + 57 col1
----
-21327

query I rowsort
SELECT - 28 * + 33
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3500
SELECT + - CASE - CASE CAST( NULL AS SIGNED ) WHEN - ( + - 49 ) * + CAST( NULL AS SIGNED ) * ( + ( + 47 ) ) * - ( + 59 ) * - MIN( ALL + - 40 ) THEN NULL WHEN + 12 THEN - 53 + + 98 + - - 44 ELSE + 12 END WHEN - - 77 DIV + COUNT( * ) * - 27 THEN - - CAST( NULL AS SIGNED ) DIV 72 + - 24 ELSE - - 21 END col1
----
-21

skipif mysql # not compatible
query I rowsort label-3500
SELECT + - CASE - CASE CAST ( NULL AS INTEGER ) WHEN - ( + - 49 ) * + CAST ( NULL AS INTEGER ) * ( + ( + 47 ) ) * - ( + 59 ) * - MIN ( ALL + - 40 ) THEN NULL WHEN + 12 THEN - 53 + + 98 + - - 44 ELSE + 12 END WHEN - - 77 / + COUNT ( * ) * - 27 THEN - - CAST ( NULL AS INTEGER ) / 72 + - 24 ELSE - - 21 END col1
----
-21

query I rowsort
SELECT - 2 * + 79 col2
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3502
SELECT ALL + + 4 * - NULLIF ( + 64, + 59 + - 55 ) * - + COUNT( DISTINCT - + 80 ) + + + CAST( - 41 AS SIGNED )
----
215

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL + + 4 * - NULLIF ( + 64, + 59 + - 55 ) * - + COUNT ( DISTINCT - + 80 ) + + + CAST ( - 41 AS INTEGER )
----
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 62 / 31 * + COUNT( * ) + 16 + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 62 / 31 * + COUNT ( * ) + 16 + + 89 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3504
SELECT ALL - 81 AS col1, 54 * 29 DIV - 94
----
-81
-16

skipif mysql # not compatible
query II rowsort label-3504
SELECT ALL - 81 AS col1, 54 * 29 / - 94
----
-81
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - - COUNT( * ) * - 45 + + ( 32 )
----
-13

skipif mysql # not compatible
query I rowsort label-3505
SELECT - - COUNT ( * ) * - 45 + + ( 32 )
----
-13

query I rowsort
SELECT ALL + + 72 * - + 87 + - 57 + - - 45 col1
----
-6276

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL - - 73 * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - - 73 * + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT - CAST( - CAST( - 96 AS SIGNED ) AS SIGNED ) * + 55 * 24 * - 44 * - ( - - COUNT( + 66 ) ) - + COUNT( + 74 )
----
-5575681

skipif mysql # not compatible
query I rowsort label-3508
SELECT - CAST ( - CAST ( - 96 AS INTEGER ) AS INTEGER ) * + 55 * 24 * - 44 * - ( - - COUNT ( + 66 ) ) - + COUNT ( + 74 )
----
-5575681

query I rowsort
SELECT DISTINCT 94 * - 22 + - 14 * - 98
----
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3510
SELECT DISTINCT - 73 * 35 DIV - - 15 AS col1, MAX( + 2 )
----
-170
2

skipif mysql # not compatible
query II rowsort label-3510
SELECT DISTINCT - 73 * 35 / - - 15 AS col1, MAX ( + 2 )
----
-170
2

query I rowsort
SELECT ALL - 32 * + - 83 + + 86
----
2742

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT + CASE 27 WHEN COUNT( * ) THEN 37 WHEN MAX( ALL - + 0 ) THEN + 48 ELSE NULL END * - NULLIF ( - - 99, + 18 / - 77 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT + CASE 27 WHEN COUNT ( * ) THEN 37 WHEN MAX ( ALL - + 0 ) THEN + 48 ELSE NULL END * - NULLIF ( - - 99, + 18 / - 77 ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - 45 * + SUM( DISTINCT - 79 ) AS col0
----
3555

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - 45 * + SUM ( DISTINCT - 79 ) AS col0
----
3555

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - 91 * + + COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-3514
SELECT - 91 * + + COUNT ( * ) col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + + 82 + ( + 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + + 82 + ( + 81 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT - 79 - - NULLIF ( - - COUNT( * ), COUNT( * ) ) AS col1, 12 + + - NULLIF ( + 87, 70 + - 73 * + - 54 ) AS col0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-3516
SELECT - 79 - - NULLIF ( - - COUNT ( * ), COUNT ( * ) ) AS col1, 12 + + - NULLIF ( + 87, 70 + - 73 * + - 54 ) AS col0
----
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT - COUNT( * ) * - 66 * - 53 + - 31 * - - 74 AS col2
----
-5792

skipif mysql # not compatible
query I rowsort label-3517
SELECT - COUNT ( * ) * - 66 * - 53 + - 31 * - - 74 AS col2
----
-5792

query I rowsort
SELECT - 31 + - 26 - 25 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL - 15 - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL - 15 - COUNT ( * )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT DISTINCT + 61 DIV COALESCE ( ( - COALESCE ( + - 54, - 12, + + 66 * + ( 52 ) DIV + 71 DIV 41 DIV + 15 ) ), + + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + 61 / COALESCE ( ( - COALESCE ( + - 54, - 12, + + 66 * + ( 52 ) / + 71 / 41 / + 15 ) ), + + 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL SUM( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL SUM ( 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL 36 * SUM( ALL - 56 ) * - + 75 + - 42 * - 72
----
154224

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL 36 * SUM ( ALL - 56 ) * - + 75 + - 42 * - 72
----
154224

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT ALL 20, 69 * + - COUNT( * ) col1
----
20
-69

skipif mysql # not compatible
query II rowsort label-3523
SELECT ALL 20, 69 * + - COUNT ( * ) col1
----
20
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT - 1 - 30 * 62 * - - COUNT( * )
----
-1861

skipif mysql # not compatible
query I rowsort label-3524
SELECT - 1 - 30 * 62 * - - COUNT ( * )
----
-1861

query I rowsort
SELECT ALL COALESCE ( - 44, - 94 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT DISTINCT + ( - + 2 ) * + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT + ( - + 2 ) * + - COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT + ( - ( - + CASE + 90 WHEN - COUNT( * ) * - 50 / - - 14 * - + 21 * - + 10 * COUNT( * ) THEN + + 15 * + + 36 * - 36 + - 50 ELSE - SUM( ALL + + 90 ) + ( + + 14 ) END ) ) * + AVG ( ALL - ( - 45 ) ) - CAST( NULL AS SIGNED ) + + 52 / + COALESCE ( 31, 45 - - 85 / + 37 / 43 + + 62 - - 30 * + - 71 ) * - MIN( 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT + ( - ( - + CASE + 90 WHEN - COUNT ( * ) * - 50 / - - 14 * - + 21 * - + 10 * COUNT ( * ) THEN + + 15 * + + 36 * - 36 + - 50 ELSE - SUM ( ALL + + 90 ) + ( + + 14 ) END ) ) * + AVG ( ALL - ( - 45 ) ) - CAST ( NULL AS INTEGER ) + + 52 / + COALESCE ( 31, 45 - - 85 / + 37 / 43 + + 62 - - 30 * + - 71 ) * - MIN ( 70 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 44 * - ( + 21 ) AS col0
----
-924

query III rowsort
SELECT ALL - 89 * 85 AS col1, 95 * - 45 AS col2, + - 31
----
-7565
-4275
-31

query I rowsort
SELECT - 65 + - 88 + - 39 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - COALESCE ( + COUNT( 93 ), - 82 + 60, - - ( + 94 ) ) + + - 19 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3531
SELECT - COALESCE ( + COUNT ( 93 ), - 82 + 60, - - ( + 94 ) ) + + - 19 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT - SUM( DISTINCT - - 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-3532
SELECT - SUM ( DISTINCT - - 41 ) col2
----
-41

query II rowsort
SELECT 82 col1, - 95 + + 16 + - 20
----
82
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3534
SELECT DISTINCT + 35, + COUNT( * ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-3534
SELECT DISTINCT + 35, + COUNT ( * ) AS col2
----
35
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT ALL CAST( - ( - 94 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL CAST ( - ( - 94 ) AS INTEGER )
----
94

query I rowsort
SELECT DISTINCT - COALESCE ( - 97, - 79 ) AS col0
----
97

query I rowsort
SELECT + + 56 + + - 17 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT MAX( ALL - 37 ) * - 65
----
2405

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT MAX ( ALL - 37 ) * - 65
----
2405

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT + 62 AS col0, 23 - + 12 + + 2 * COUNT( * )
----
62
13

skipif mysql # not compatible
query II rowsort label-3539
SELECT + 62 AS col0, 23 - + 12 + + 2 * COUNT ( * )
----
62
13

query II rowsort
SELECT - - 30 AS col1, 29
----
30
29

query I rowsort
SELECT ALL ( 53 ) + - 76
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT + 12 + - 60 - 60 + - 40 + COALESCE ( - COUNT( * ), 31 ) - + 72 * COALESCE ( 60, + - 44 ) * - + SUM( 71 )
----
306571

skipif mysql # not compatible
query I rowsort label-3542
SELECT + 12 + - 60 - 60 + - 40 + COALESCE ( - COUNT ( * ), 31 ) - + 72 * COALESCE ( 60, + - 44 ) * - + SUM ( 71 )
----
306571

query I rowsort
SELECT + - 79 + 80
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + + 74 * + - COALESCE ( + - 37, + + 42 * 25 * NULLIF ( - - 71, + COUNT( * ) * 93 ) - ( + + 83 ) * - 73 + + - COUNT( * ) * - + 44 ) * 10 + - COUNT( * ) AS col1
----
27379

skipif mysql # not compatible
query I rowsort label-3544
SELECT + + 74 * + - COALESCE ( + - 37, + + 42 * 25 * NULLIF ( - - 71, + COUNT ( * ) * 93 ) - ( + + 83 ) * - 73 + + - COUNT ( * ) * - + 44 ) * 10 + - COUNT ( * ) AS col1
----
27379

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT DISTINCT + COUNT( + - 7 ) * + COUNT( * ) + + 86 AS col2, + 32 AS col1
----
87
32

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT + COUNT ( + - 7 ) * + COUNT ( * ) + + 86 AS col2, + 32 AS col1
----
87
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + - CASE - COUNT( ALL - + 94 ) WHEN COUNT( * ) / + 8 THEN NULL WHEN - 73 * + + 22 * - + 67 + 78 THEN - - 7 + ( + - 16 ) ELSE - - 90 END
----
-90

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + - CASE - COUNT ( ALL - + 94 ) WHEN COUNT ( * ) / + 8 THEN NULL WHEN - 73 * + + 22 * - + 67 + 78 THEN - - 7 + ( + - 16 ) ELSE - - 90 END
----
-90

query I rowsort
SELECT - 13 * 94 + 25 AS col2
----
-1197

query II rowsort
SELECT DISTINCT + 27 col0, - ( + 86 )
----
27
-86

query I rowsort
SELECT ALL - 78 * + - 11 * - 75 + 51 + - - 6
----
-64293

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT + 75 + COALESCE ( - COUNT( DISTINCT 73 ), 73 * + + 15 )
----
74

skipif mysql # not compatible
query I rowsort label-3550
SELECT + 75 + COALESCE ( - COUNT ( DISTINCT 73 ), 73 * + + 15 )
----
74

query I rowsort
SELECT DISTINCT + COALESCE ( - 10, + 96, NULLIF ( - 78, - CASE + 34 WHEN + 49 * 76 * - 2 THEN + 12 ELSE NULL END ) * + + 63 * 8 * - 91 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL - 99 * + 98 * + 52 + - + 39 + - - 44 - - 14 * + COUNT( * ) AS col0
----
-504485

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - 99 * + 98 * + 52 + - + 39 + - - 44 - - 14 * + COUNT ( * ) AS col0
----
-504485

query I rowsort
SELECT - - 47 * - 10
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT 89 * 13 + 67 + - 23 + - 96 * COUNT( * ) * 2 - + - 3 + + COUNT( * ) * - - 46 * - - CASE 48 WHEN + 95 + + 64 / + 29 + 93 + - 72 + + - 83 THEN 36 WHEN COUNT( * ) - + NULLIF ( + 87, - + CASE 84 WHEN + 44 THEN + + 53 / + 13 + + - COUNT( + 25 ) ELSE + - ( CASE 46 WHEN + 14 * + + 49 THEN - CASE - 74 WHEN - ( - COUNT( * ) ) THEN + NULLIF ( - NULLIF ( - 94, ( + 85 ) ), + COUNT( * ) / + 38 ) END * 13 + 98 ELSE 24 END ) END ) THEN + COUNT( ( 74 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT 89 * 13 + 67 + - 23 + - 96 * COUNT ( * ) * 2 - + - 3 + + COUNT ( * ) * - - 46 * - - CASE 48 WHEN + 95 + + 64 / + 29 + 93 + - 72 + + - 83 THEN 36 WHEN COUNT ( * ) - + NULLIF ( + 87, - + CASE 84 WHEN + 44 THEN + + 53 / + 13 + + - COUNT ( + 25 ) ELSE + - ( CASE 46 WHEN + 14 * + + 49 THEN - CASE - 74 WHEN - ( - COUNT ( * ) ) THEN + NULLIF ( - NULLIF ( - 94, ( + 85 ) ), + COUNT ( * ) / + 38 ) END * 13 + 98 ELSE 24 END ) END ) THEN + COUNT ( ( 74 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT - COALESCE ( + + CAST( NULL AS SIGNED ), - 0 * 33 ) * - 99
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT - COALESCE ( + + CAST ( NULL AS INTEGER ), - 0 * 33 ) * - 99
----
0

query I rowsort
SELECT + 55 + + 70 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - COUNT( * ) + - - 23
----
22

skipif mysql # not compatible
query I rowsort label-3557
SELECT - COUNT ( * ) + - - 23
----
22

query II rowsort
SELECT - 49 * 36 AS col1, + 38 AS col0
----
-1764
38

query I rowsort
SELECT DISTINCT + 75 * 16 AS col0
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT DISTINCT + 32 * 55 DIV 5 - + ( 73 ) col2
----
279

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT + 32 * 55 / 5 - + ( 73 ) col2
----
279

query I rowsort
SELECT ALL + 57 * + 33 * - 91 * - + 38 AS col1
----
6504498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT - COUNT( * ) + - ( SUM( ALL + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT - COUNT ( * ) + - ( SUM ( ALL + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT COALESCE ( - + 50, - 99 * + COUNT( * ) + + 69 )
----
-50

skipif mysql # not compatible
query I rowsort label-3564
SELECT COALESCE ( - + 50, - 99 * + COUNT ( * ) + + 69 )
----
-50

query I rowsort
SELECT DISTINCT + 75 * - + NULLIF ( + 19, 57 ) col0
----
-1425

query I rowsort
SELECT ALL ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT ( + CASE + + COUNT( * ) WHEN 0 THEN - - 65 WHEN COUNT( * ) / + 23 THEN 98 ELSE + 98 * - 56 + - 15 * 14 + - 34 END ) AS col1
----
-5732

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT ( + CASE + + COUNT ( * ) WHEN 0 THEN - - 65 WHEN COUNT ( * ) / + 23 THEN 98 ELSE + 98 * - 56 + - 15 * 14 + - 34 END ) AS col1
----
-5732

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + 83 * + COUNT( * ) + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3568
SELECT + 83 * + COUNT ( * ) + + COUNT ( * )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT CAST( - - 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT CAST ( - - 41 AS INTEGER )
----
41

query I rowsort
SELECT - ( + - 1 ) * - - ( 82 )
----
82

query I rowsort
SELECT + 23 + - + 89 + - 41 - - 9 * + + 70 + + + 67
----
590

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT - ( 97 ) DIV + 87
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT - ( 97 ) / + 87
----
-1

query II rowsort
SELECT ALL + 13 + + 19 col0, - 99
----
32
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT - 30 + + + 17 AS col2, COUNT( + 59 ) col2
----
-13
1

skipif mysql # not compatible
query II rowsort label-3574
SELECT - 30 + + + 17 AS col2, COUNT ( + 59 ) col2
----
-13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT + ( + - 33 ) * + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + ( + - 33 ) * + COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT - COUNT( * ) + - + 1 * + 28 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3576
SELECT - COUNT ( * ) + - + 1 * + 28 AS col2
----
-29

query I rowsort
SELECT - 1 * 18 * + 12 AS col1
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT - - COALESCE ( + 28, - COUNT( * ) * - 88 * + 63 * + CAST( NULL AS SIGNED ) * 7 * - + NULLIF ( - + 47, 46 ) * - 27 + + + 79 + SUM( - + 87 ) + - 68 + - 55 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - COALESCE ( + 28, - COUNT ( * ) * - 88 * + 63 * + CAST ( NULL AS INTEGER ) * 7 * - + NULLIF ( - + 47, 46 ) * - 27 + + + 79 + SUM ( - + 87 ) + - 68 + - 55 ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT - - 8 DIV + - 58 + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-3579
SELECT - - 8 / + - 58 + - 88
----
-88

query I rowsort
SELECT + - ( + 4 ) + + 98 AS col0
----
94

query I rowsort
SELECT + 93 + - 54 + 55 * 0 + - - 42 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL 76 + + 41 + - - 15 * + 53 * - - COALESCE ( - - 79, + - 4 * - ( + MIN( - 59 ) ) ) * - - 67 * - COUNT( ALL + - 94 ) + + 53
----
-4207765

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL 76 + + 41 + - - 15 * + 53 * - - COALESCE ( - - 79, + - 4 * - ( + MIN ( - 59 ) ) ) * - - 67 * - COUNT ( ALL + - 94 ) + + 53
----
-4207765

query I rowsort
SELECT DISTINCT - 90 + - 13
----
-103

query I rowsort
SELECT - + 70 col1
----
-70

query I rowsort
SELECT - 59 * + 79
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL - SUM( 6 ) - - 97 + - 3
----
88

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - SUM ( 6 ) - - 97 + - 3
----
88

query I rowsort
SELECT DISTINCT - CASE - + 28 WHEN - AVG ( DISTINCT - - 73 ) + - 61 THEN NULL ELSE + 13 * + 45 + - 53 END * + - 61 + + 8
----
32460

query I rowsort
SELECT + + NULLIF ( 21, - + 81 ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT DISTINCT MAX( ALL + 72 ) - + ( + - 40 ) DIV - - 21 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT MAX ( ALL + 72 ) - + ( + - 40 ) / - - 21 AS col2
----
73

query I rowsort
SELECT DISTINCT - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL 90 * - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL 90 * - COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT + 8 AS col1, - COUNT( * ) * - - 94 AS col0
----
8
-94

skipif mysql # not compatible
query II rowsort label-3592
SELECT + 8 AS col1, - COUNT ( * ) * - - 94 AS col0
----
8
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT ALL - 16 DIV + 80 DIV - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - 16 / + 80 / - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT COUNT( * ) * + 41
----
41

skipif mysql # not compatible
query I rowsort label-3594
SELECT COUNT ( * ) * + 41
----
41

query I rowsort
SELECT ( - - 68 ) * - CASE + 60 WHEN - 86 THEN NULL WHEN 61 THEN + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT 77 * + 63 AS col0
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + 79 * 76 + - 29 + + COUNT( DISTINCT 66 ) AS col2
----
5976

skipif mysql # not compatible
query I rowsort label-3597
SELECT + 79 * 76 + - 29 + + COUNT ( DISTINCT 66 ) AS col2
----
5976

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT 67 + + 78 + + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-3598
SELECT 67 + + 78 + + COUNT ( * )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT - 81 + - COUNT( * ) + - 57 * 15
----
-937

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT - 81 + - COUNT ( * ) + - 57 * 15
----
-937

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3600
SELECT ALL + 26 + CAST( NULL AS SIGNED ) + - + 29 AS col2, + ( 56 )
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3600
SELECT ALL + 26 + CAST ( NULL AS INTEGER ) + - + 29 AS col2, + ( 56 )
----
NULL
56

query I rowsort
SELECT DISTINCT 76 + - ( + 35 )
----
41

query I rowsort
SELECT 93 - 27
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT ALL COUNT( * ) AS col0, COUNT( * ) * - COUNT( * ) * - 42
----
1
42

skipif mysql # not compatible
query II rowsort label-3603
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) * - 42
----
1
42

query I rowsort
SELECT DISTINCT + ( - - 57 ) + - 68 * 60
----
-4023

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - 32 + - - MIN( 7 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 32 + - - MIN ( 7 ) AS col2
----
-25

query I rowsort
SELECT ALL + + 42 + - 65
----
-23

query I rowsort
SELECT - + ( - + ( - NULLIF ( 1, - + 78 ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT 69 + + - 60 * + - 72 * - + COUNT( * ), 25 + + 5 + + - 64 * - - ( - 20 ) * + 46 * - 34 AS col0
----
-4251
-2001890

skipif mysql # not compatible
query II rowsort label-3608
SELECT 69 + + - 60 * + - 72 * - + COUNT ( * ), 25 + + 5 + + - 64 * - - ( - 20 ) * + 46 * - 34 AS col0
----
-4251
-2001890

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT CASE - ( COUNT( * ) ) WHEN + + 6 THEN + COUNT( * ) - - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT CASE - ( COUNT ( * ) ) WHEN + + 6 THEN + COUNT ( * ) - - 18 END
----
NULL

query I rowsort
SELECT ( - 25 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3611
SELECT 90 DIV + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-3611
SELECT 90 / + - COUNT ( * )
----
-90

query I rowsort
SELECT ALL - 52 + - 5 col0
----
-57

query II rowsort
SELECT 21 AS col2, + 59 AS col0
----
21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL + + COALESCE ( + 79, + ( - - 47 ) ) + 26 * 55 * - COUNT( * ) AS col2
----
-1351

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + + COALESCE ( + 79, + ( - - 47 ) ) + 26 * 55 * - COUNT ( * ) AS col2
----
-1351

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT 38 * MAX( ALL - - 76 ) * + 52
----
150176

skipif mysql # not compatible
query I rowsort label-3615
SELECT 38 * MAX ( ALL - - 76 ) * + 52
----
150176

query II rowsort
SELECT DISTINCT - 97, 10 AS col2
----
-97
10

query I rowsort
SELECT - NULLIF ( + 14, + 98 * 33 * - - 79 ) + - 98
----
-112

query I rowsort
SELECT - + ( + 81 ) AS col0
----
-81

query I rowsort
SELECT + 97 + - 6 AS col2
----
91

query I rowsort
SELECT 18 * 57 + + 80 col0
----
1106

query I rowsort
SELECT + 71 * 86 + 99
----
6205

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT 49 + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3622
SELECT 49 + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - ( + + COUNT( * ) ) - + - ( + 11 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3623
SELECT - ( + + COUNT ( * ) ) - + - ( + 11 ) AS col0
----
10

query I rowsort
SELECT - 24 + - 48 * + - 67 col0
----
3192

query II rowsort
SELECT + 27, + 56 AS col0
----
27
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3626
SELECT - SUM( - 21 ) DIV + 44 + - 86 AS col0, - CAST( NULL AS DECIMAL )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3626
SELECT - SUM ( - 21 ) / + 44 + - 86 AS col0, - CAST ( NULL AS REAL )
----
-86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT + ( COUNT( * ) ) - - + 54 col2
----
55

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + ( COUNT ( * ) ) - - + 54 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - COUNT( + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - COUNT ( + 95 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT CASE + - 20 WHEN - 49 THEN + ( + 88 ) * + 92 + + COUNT( * ) - + 80 + - + 31 * - 71 / + 39 * + 56 * - COUNT( * ) - 91 + 21 WHEN - 37 + - 26 * + - 19 + - 5 + 22 * 32 THEN + 19 WHEN - 15 THEN NULL ELSE NULL END * - CAST( NULL AS SIGNED ) + - + AVG ( ALL + + 39 ) + + 65 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT CASE + - 20 WHEN - 49 THEN + ( + 88 ) * + 92 + + COUNT ( * ) - + 80 + - + 31 * - 71 / + 39 * + 56 * - COUNT ( * ) - 91 + 21 WHEN - 37 + - 26 * + - 19 + - 5 + 22 * 32 THEN + 19 WHEN - 15 THEN NULL ELSE NULL END * - CAST ( NULL AS INTEGER ) + - + AVG ( ALL + + 39 ) + + 65 * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + COUNT( ALL + + 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3630
SELECT + COUNT ( ALL + + 94 ) AS col1
----
1

query I rowsort
SELECT 87 * 60 AS col2
----
5220

query I rowsort
SELECT ALL 36 + - 97 - 56
----
-117

query I rowsort
SELECT 58 * - ( + 51 ) * 32
----
-94656

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT 93 + + COUNT( - 26 )
----
94

skipif mysql # not compatible
query I rowsort label-3634
SELECT 93 + + COUNT ( - 26 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT 64 DIV + + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT 64 / + + 95 AS col2
----
0

query I rowsort
SELECT DISTINCT 71 + - 96 AS col2
----
-25

query I rowsort
SELECT DISTINCT - 40 * + ( + + 26 ) AS col2
----
-1040

query I rowsort
SELECT ALL 6 + 38 * + 67
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT - SUM( - 65 ) col0
----
65

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - SUM ( - 65 ) col0
----
65

query I rowsort
SELECT DISTINCT 35 + + 12 + - 57
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT COUNT( * ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-3641
SELECT COUNT ( * ) + - 98
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL 70 + + 58 / + - COUNT( * ) + CASE + 57 WHEN - - 48 THEN - - 13 WHEN + - 44 * - 79 + 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL 70 + + 58 / + - COUNT ( * ) + CASE + 57 WHEN - - 48 THEN - - 13 WHEN + - 44 * - 79 + 46 THEN NULL END
----
NULL

query I rowsort
SELECT 73 * + 58 * 45 AS col0
----
190530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3644
SELECT 84 DIV - 2 AS col1, COALESCE ( SUM( DISTINCT - 38 ), 94, 9 ) + COUNT( * ) + + 2
----
-42
-35

skipif mysql # not compatible
query II rowsort label-3644
SELECT 84 / - 2 AS col1, COALESCE ( SUM ( DISTINCT - 38 ), 94, 9 ) + COUNT ( * ) + + 2
----
-42
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT - + SUM( DISTINCT - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3645
SELECT - + SUM ( DISTINCT - 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL - 23 + + + 74 + + COUNT( * ) + - 71 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - 23 + + + 74 + + COUNT ( * ) + - 71 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3647
SELECT DISTINCT - + CASE + - 26 WHEN 25 THEN ( - 81 ) WHEN - CAST( - ( - - 51 ) AS SIGNED ) THEN NULL ELSE COUNT( * ) + - 39 DIV - + 74 - + 19 END * - 7 * 89, CAST( NULL AS SIGNED ) AS col2
----
-11214
NULL

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT - + CASE + - 26 WHEN 25 THEN ( - 81 ) WHEN - CAST ( - ( - - 51 ) AS INTEGER ) THEN NULL ELSE COUNT ( * ) + - 39 / - + 74 - + 19 END * - 7 * 89, CAST ( NULL AS INTEGER ) AS col2
----
-11214
NULL

query I rowsort
SELECT DISTINCT ( 31 ) * 82 + + - 25 AS col2
----
2517

query I rowsort
SELECT DISTINCT 98 - + 73 AS col2
----
25

query I rowsort
SELECT ALL + 87 - - - 54 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + - COUNT( * ) - - 72 - + 91 + 63 * + - 23
----
-1469

skipif mysql # not compatible
query I rowsort label-3651
SELECT + - COUNT ( * ) - - 72 - + 91 + 63 * + - 23
----
-1469

query I rowsort
SELECT - 78 + - 91 AS col2
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL - - COUNT( * ) / - CAST( NULL AS SIGNED ) * - COUNT( * ) * - CAST( + 58 AS SIGNED ) / - + CASE + 36 WHEN 48 * - - 75 THEN NULL WHEN 6 THEN + + 35 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - CAST ( + 58 AS INTEGER ) / - + CASE + 36 WHEN 48 * - - 75 THEN NULL WHEN 6 THEN + + 35 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT ALL COUNT( + - 1 ) AS col2, - 2 * COUNT( * ) * 51 AS col1
----
1
-102

skipif mysql # not compatible
query II rowsort label-3654
SELECT ALL COUNT ( + - 1 ) AS col2, - 2 * COUNT ( * ) * 51 AS col1
----
1
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT DISTINCT CASE + 54 WHEN + + ( + COUNT( * ) ) THEN + 40 END AS col0, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3655
SELECT DISTINCT CASE + 54 WHEN + + ( + COUNT ( * ) ) THEN + 40 END AS col0, 77
----
NULL
77

query I rowsort
SELECT ALL + ( - + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3657
SELECT - SUM( ALL 92 ) * - 7 AS col0, + 32 AS col2
----
644
32

skipif mysql # not compatible
query II rowsort label-3657
SELECT - SUM ( ALL 92 ) * - 7 AS col0, + 32 AS col2
----
644
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3658
SELECT - CAST( NULL AS SIGNED ) * + CAST( 46 AS SIGNED ) - - COUNT( * ) * - 60 * + 43 AS col2, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3658
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( 46 AS INTEGER ) - - COUNT ( * ) * - 60 * + 43 AS col2, 58
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - 49 * COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3659
SELECT - 49 * COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT ( - 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT - COUNT( * ) * - CAST( + 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-3661
SELECT - COUNT ( * ) * - CAST ( + 73 AS INTEGER )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT + ( CAST( + 6 AS SIGNED ) ) * COUNT( * ) + + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3662
SELECT + ( CAST ( + 6 AS INTEGER ) ) * COUNT ( * ) + + + COUNT ( * )
----
7

query I rowsort
SELECT - 19 * - + ( 91 ) AS col2
----
1729

query II rowsort
SELECT NULLIF ( + 88, - 99 ) AS col1, + 83
----
88
83

query I rowsort
SELECT ALL - 53 * - - 51
----
-2703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT ALL + CAST( NULL AS SIGNED ) * + + 44 + + + CAST( NULL AS SIGNED ) + 16 + 86 + - ( + 44 ) * 86 * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 44 + + + CAST ( NULL AS INTEGER ) + 16 + 86 + - ( + 44 ) * 86 * - + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - 88 * + + 37 * SUM( DISTINCT 35 ) AS col0
----
-113960

skipif mysql # not compatible
query I rowsort label-3667
SELECT - 88 * + + 37 * SUM ( DISTINCT 35 ) AS col0
----
-113960

query I rowsort
SELECT + 58 * 28 AS col2
----
1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT + + COALESCE ( - 21, + CAST( + 64 AS SIGNED ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3669
SELECT + + COALESCE ( - 21, + CAST ( + 64 AS INTEGER ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + COUNT( 8 )
----
1

skipif mysql # not compatible
query I rowsort label-3670
SELECT + COUNT ( 8 )
----
1

query I rowsort
SELECT + - 15 + - + 33 AS col0
----
-48

query I rowsort
SELECT ALL + + 58 * 69 AS col1
----
4002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3673
SELECT + - 71 + - + 29 * - 63 * + 0 + 14 - SUM( ALL ( + 88 ) ) AS col2, CAST( NULL AS SIGNED ) * + COUNT( * ) * 17 / 73
----
-145
NULL

skipif mysql # not compatible
query II rowsort label-3673
SELECT + - 71 + - + 29 * - 63 * + 0 + 14 - SUM ( ALL ( + 88 ) ) AS col2, CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 17 / 73
----
-145
NULL

query II rowsort
SELECT ALL 43 AS col1, - 95 AS col2
----
43
-95

query I rowsort
SELECT + + 97 + + + ( - + 94 ) * 31
----
-2817

query I rowsort
SELECT + - 22 + + 85 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT + 83 + + ( - 58 ) + + 54 * CAST( - + MIN( + 27 ) AS SIGNED ) * - + 89
----
129787

skipif mysql # not compatible
query I rowsort label-3677
SELECT + 83 + + ( - 58 ) + + 54 * CAST ( - + MIN ( + 27 ) AS INTEGER ) * - + 89
----
129787

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + - COUNT( * ) * + - COUNT( * ) + + 37 * + 76
----
2813

skipif mysql # not compatible
query I rowsort label-3678
SELECT + - COUNT ( * ) * + - COUNT ( * ) + + 37 * + 76
----
2813

query I rowsort
SELECT + 97 + - 63 - - + 67 * - 70
----
-4656

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - CASE + - 18 WHEN - SUM( ALL 69 ) * 18 THEN NULL WHEN - 35 THEN NULL ELSE - 94 END - + 90
----
4

skipif mysql # not compatible
query I rowsort label-3680
SELECT - CASE + - 18 WHEN - SUM ( ALL 69 ) * 18 THEN NULL WHEN - 35 THEN NULL ELSE - 94 END - + 90
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT - CAST( 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-3681
SELECT - CAST ( 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL 11 * + NULLIF ( + COUNT( * ), - COUNT( * ) ) * + - 12 * - + 49 * - + 51 AS col0
----
-329868

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL 11 * + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) * + - 12 * - + 49 * - + 51 AS col0
----
-329868

query II rowsort
SELECT - 94 AS col0, 16 - + + ( + + 70 )
----
-94
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + MIN( - ( 67 ) ) + - 44 * - 7
----
241

skipif mysql # not compatible
query I rowsort label-3684
SELECT + MIN ( - ( 67 ) ) + - 44 * - 7
----
241

query I rowsort
SELECT ALL 61 + 32
----
93

query I rowsort
SELECT + 43 + - 99 AS col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT + 85 / + CASE + - CASE - COUNT( * ) WHEN - COUNT( * ) + + 28 THEN + 49 WHEN 51 * 36 + 58 + + 31 THEN NULL ELSE + - 69 - + CASE + 35 WHEN + - CAST( NULL AS SIGNED ) THEN + - 46 ELSE NULL END END WHEN - 44 THEN 17 * + + 87 * + 79 + + 25 END * + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT + 85 / + CASE + - CASE - COUNT ( * ) WHEN - COUNT ( * ) + + 28 THEN + 49 WHEN 51 * 36 + 58 + + 31 THEN NULL ELSE + - 69 - + CASE + 35 WHEN + - CAST ( NULL AS INTEGER ) THEN + - 46 ELSE NULL END END WHEN - 44 THEN 17 * + + 87 * + 79 + + 25 END * + + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL + 58 DIV - + 65 + - - 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 58 / - + 65 + - - 96 AS col2
----
96

query II rowsort
SELECT DISTINCT + 31 AS col2, 90 col0
----
31
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT 67 * SUM( - 0 ) + + - 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3690
SELECT 67 * SUM ( - 0 ) + + - 17 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT - ( 72 ) DIV - - 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3691
SELECT - ( 72 ) / - - 64 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL - 95 * + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL - 95 * + - COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT - 74 DIV - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 74 / - - COUNT ( * )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT ALL - + 56 * 64 * + 11 * + 14 + 86 * + + 94 * - CAST( + - ( - + 61 ) AS SIGNED ) + - + 92
----
-1045152

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - + 56 * 64 * + 11 * + 14 + 86 * + + 94 * - CAST ( + - ( - + 61 ) AS INTEGER ) + - + 92
----
-1045152

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL - 20 - NULLIF ( - 99, - + 46 ) - + 64 * - + 87 * MIN( ALL + 42 ) AS col2
----
233935

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL - 20 - NULLIF ( - 99, - + 46 ) - + 64 * - + 87 * MIN ( ALL + 42 ) AS col2
----
233935

onlyif mysql # aggregate syntax: 
query II rowsort label-3696
SELECT DISTINCT - + 75 AS col1, - MAX( - 23 ) + - 9
----
-75
14

skipif mysql # not compatible
query II rowsort label-3696
SELECT DISTINCT - + 75 AS col1, - MAX ( - 23 ) + - 9
----
-75
14

query I rowsort
SELECT + 23 * 4 AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3698
SELECT ALL + 11 AS col2, COUNT( * ) DIV 21 AS col0
----
11
0

skipif mysql # not compatible
query II rowsort label-3698
SELECT ALL + 11 AS col2, COUNT ( * ) / 21 AS col0
----
11
0

query I rowsort
SELECT - + 21 * + 4 + - 57
----
-141

query II rowsort
SELECT 52 AS col1, 22 - 65
----
52
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT + 76 + + 27 + + + 29 - - 55 * + COUNT( * ) * - COUNT( * ) * - 9
----
627

skipif mysql # not compatible
query I rowsort label-3701
SELECT + 76 + + 27 + + + 29 - - 55 * + COUNT ( * ) * - COUNT ( * ) * - 9
----
627

query I rowsort
SELECT 44 + 61 + + - 22
----
83

query I rowsort
SELECT - COALESCE ( 3, - 95 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT + 90 * - + NULLIF ( + - COUNT( * ), + 41 + ( - AVG ( DISTINCT - 45 ) ) + 41 ) * 6, - 78 AS col0
----
540
-78

skipif mysql # not compatible
query II rowsort label-3704
SELECT + 90 * - + NULLIF ( + - COUNT ( * ), + 41 + ( - AVG ( DISTINCT - 45 ) ) + 41 ) * 6, - 78 AS col0
----
540
-78

query II rowsort
SELECT ALL 6 AS col1, 85 - - - 93
----
6
-8

query I rowsort
SELECT 24 + - 47 AS col0
----
-23

query I rowsort
SELECT DISTINCT COALESCE ( ( - + 2 ), - 84 ) AS col0
----
-2

query III rowsort
SELECT + 84 AS col2, 75 AS col2, + 74
----
84
75
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3709
SELECT ALL + 29, + CAST( NULL AS DECIMAL ) * SUM( DISTINCT + + 78 ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-3709
SELECT ALL + 29, + CAST ( NULL AS REAL ) * SUM ( DISTINCT + + 78 ) AS col1
----
29
NULL

query I rowsort
SELECT + 40 + - 99 + + + 71 + - 59
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT COALESCE ( + MIN( - 56 ), - + 86 * - COUNT( * ) - - - 58 ) * + 2 + + 53
----
-59

skipif mysql # not compatible
query I rowsort label-3711
SELECT COALESCE ( + MIN ( - 56 ), - + 86 * - COUNT ( * ) - - - 58 ) * + 2 + + 53
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT CAST( - + 9 AS SIGNED ) + - 28 - 81 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-3712
SELECT CAST ( - + 9 AS INTEGER ) + - 28 - 81 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT 58 * + 38 * - COUNT( * ) AS col0
----
-2204

skipif mysql # not compatible
query I rowsort label-3713
SELECT 58 * + 38 * - COUNT ( * ) AS col0
----
-2204

query I rowsort
SELECT CASE - 56 WHEN - 26 THEN NULL WHEN + 51 THEN COALESCE ( 73, - 68 ) ELSE - 33 * + 68 END + + + 60 * + 3 AS col1
----
-2064

query I rowsort
SELECT ALL 55 + + ( - 9 )
----
46

query I rowsort
SELECT 74 * NULLIF ( - 69, - 55 )
----
-5106

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT 48 * + + COUNT( * ) * - + SUM( DISTINCT + 85 ) col2
----
-4080

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT 48 * + + COUNT ( * ) * - + SUM ( DISTINCT + 85 ) col2
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL COUNT( * ) + + NULLIF ( + - 6, - 69 + AVG ( + - 48 ) + - COUNT( * ) * - + ( - 18 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL COUNT ( * ) + + NULLIF ( + - 6, - 69 + AVG ( + - 48 ) + - COUNT ( * ) * - + ( - 18 ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT CASE + + ( - 6 ) WHEN 39 THEN COUNT( * ) ELSE + - 71 END * - 30
----
2130

skipif mysql # not compatible
query I rowsort label-3719
SELECT CASE + + ( - 6 ) WHEN 39 THEN COUNT ( * ) ELSE + - 71 END * - 30
----
2130

query I rowsort
SELECT ALL 54 * - 10
----
-540

query I rowsort
SELECT 9 * - 73
----
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT COUNT( * ) - - 18 col1
----
19

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT COUNT ( * ) - - 18 col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT 28 * CAST( + 5 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-3723
SELECT 28 * CAST ( + 5 AS INTEGER )
----
140

query I rowsort
SELECT ALL + 63 - + 96 - + 51 + + 17 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3725
SELECT CAST( + 49 AS SIGNED ) * - - 17 * 18 + 57 DIV COALESCE ( - 64, + COALESCE ( - COUNT( * ), + ( + MIN( ALL ( - 5 ) ) ) ), + 15 )
----
14994

skipif mysql # not compatible
query I rowsort label-3725
SELECT CAST ( + 49 AS INTEGER ) * - - 17 * 18 + 57 / COALESCE ( - 64, + COALESCE ( - COUNT ( * ), + ( + MIN ( ALL ( - 5 ) ) ) ), + 15 )
----
14994

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3726
SELECT DISTINCT COUNT( + 58 ) * + 81 DIV + MAX( ALL + + 95 ) AS col2, + 86 + 28 + + 31 AS col2
----
0
145

skipif mysql # not compatible
query II rowsort label-3726
SELECT DISTINCT COUNT ( + 58 ) * + 81 / + MAX ( ALL + + 95 ) AS col2, + 86 + 28 + + 31 AS col2
----
0
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + - COUNT( ALL 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-3727
SELECT + - COUNT ( ALL 57 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3728
SELECT DISTINCT 59 DIV - 34 + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT 59 / - 34 + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - NULLIF ( + + 34, COALESCE ( + + 11, 19 + - 67 ) ) * + - 63 * + 0 * + - 58 + ( + 49 ) col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT + CASE + 21 WHEN - + 33 THEN CAST( NULL AS SIGNED ) + - 18 - + - 98 WHEN - 55 THEN NULL ELSE + - 59 * 76 * - - COUNT( * ) END + + - COUNT( * ) - + COUNT( * ) + + 4 * - + 48
----
-4678

skipif mysql # not compatible
query I rowsort label-3730
SELECT + CASE + 21 WHEN - + 33 THEN CAST ( NULL AS INTEGER ) + - 18 - + - 98 WHEN - 55 THEN NULL ELSE + - 59 * 76 * - - COUNT ( * ) END + + - COUNT ( * ) - + COUNT ( * ) + + 4 * - + 48
----
-4678

query I rowsort
SELECT - 24 * - + 38 - - 94 AS col1
----
1006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT ALL 44 * + - CAST( NULL AS SIGNED ) - - - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL 44 * + - CAST ( NULL AS INTEGER ) - - - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL 48 * + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 48 * + COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL + - 3 + + - COUNT( * ) + 59 - - COUNT( ALL 38 ) + - 1 * 10 * - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + - 3 + + - COUNT ( * ) + 59 - - COUNT ( ALL 38 ) + - 1 * 10 * - - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT DISTINCT COUNT( * ), 69 * 60 AS col0
----
1
4140

skipif mysql # not compatible
query II rowsort label-3735
SELECT DISTINCT COUNT ( * ), 69 * 60 AS col0
----
1
4140

query I rowsort
SELECT 58 * 6 * 16 AS col0
----
5568

query I rowsort
SELECT ( COALESCE ( 98, - 30 * 76 - + 49 * - - 32 ) ) * + 24 AS col1
----
2352

query I rowsort
SELECT DISTINCT + 12 + + 32 + + 11 AS col0
----
55

query I rowsort
SELECT 83 - - 89
----
172

query I rowsort
SELECT DISTINCT - 94 + 12
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL NULLIF ( + 89, - COUNT( * ) ) col0
----
89

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL NULLIF ( + 89, - COUNT ( * ) ) col0
----
89

query II rowsort
SELECT 37 AS col2, - 0 AS col0
----
37
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT 72 AS col1, MAX( ALL - 37 ) AS col1
----
72
-37

skipif mysql # not compatible
query II rowsort label-3743
SELECT 72 AS col1, MAX ( ALL - 37 ) AS col1
----
72
-37

query I rowsort
SELECT 22 * - 30
----
-660

query I rowsort
SELECT + 30 + + ( + 76 ) col0
----
106

query I rowsort
SELECT + 35 - - - 35 AS col1
----
0

query I rowsort
SELECT + 47 * + 69 AS col0
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT COUNT( * ) * - 27 - - 11
----
-16

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT COUNT ( * ) * - 27 - - 11
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT + 82 * - NULLIF ( - 82, + NULLIF ( AVG ( + - 10 ), - 40 + + 80 + - 31 ) * - 15 + + SUM( DISTINCT 97 ) + - + ( - + 56 ) + 5 ) * - 48 col0, - 91
----
-322752
-91

skipif mysql # not compatible
query II rowsort label-3749
SELECT + 82 * - NULLIF ( - 82, + NULLIF ( AVG ( + - 10 ), - 40 + + 80 + - 31 ) * - 15 + + SUM ( DISTINCT 97 ) + - + ( - + 56 ) + 5 ) * - 48 col0, - 91
----
-322752
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3750
SELECT + 0 + + - 10 * + - 10 + + 39 - - + 18 * + CAST( + ( + - 12 ) AS SIGNED ), 77 + + 71 col0
----
-77
148

skipif mysql # not compatible
query II rowsort label-3750
SELECT + 0 + + - 10 * + - 10 + + 39 - - + 18 * + CAST ( + ( + - 12 ) AS INTEGER ), 77 + + 71 col0
----
-77
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - ( + + COUNT( * ) ) * - SUM( - 94 ) - - 56 * - 71 + + - 63
----
-4133

skipif mysql # not compatible
query I rowsort label-3751
SELECT - ( + + COUNT ( * ) ) * - SUM ( - 94 ) - - 56 * - 71 + + - 63
----
-4133

query I rowsort
SELECT ALL + - 55 * + 26 col2
----
-1430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3753
SELECT ALL + 17 AS col1, - 33 DIV COUNT( * )
----
17
-33

skipif mysql # not compatible
query II rowsort label-3753
SELECT ALL + 17 AS col1, - 33 / COUNT ( * )
----
17
-33

query II rowsort
SELECT + + 61, - 2 AS col1
----
61
-2

query II rowsort
SELECT + - 4 col0, + 37
----
-4
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT + - 34 + 39 DIV - 9 + 16
----
-22

skipif mysql # not compatible
query I rowsort label-3756
SELECT + - 34 + 39 / - 9 + 16
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3757
SELECT 7 AS col0, + MIN( 64 ) / + - CAST( + 54 AS SIGNED ) + - - 53 * - 85 * 91 * + CAST( NULL AS SIGNED ) AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-3757
SELECT 7 AS col0, + MIN ( 64 ) / + - CAST ( + 54 AS INTEGER ) + - - 53 * - 85 * 91 * + CAST ( NULL AS INTEGER ) AS col0
----
7
NULL

query II rowsort
SELECT + 12 AS col2, + 58
----
12
58

query I rowsort
SELECT - 19 + + + 96 + 27 * + 62 AS col2
----
1751

query II rowsort
SELECT 50, 31 AS col2
----
50
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT + ( + 29 ) * + 68 * + 79 * + 43 - ( CAST( NULL AS SIGNED ) ) + + - 17 / 5 * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT + ( + 29 ) * + 68 * + 79 * + 43 - ( CAST ( NULL AS INTEGER ) ) + + - 17 / 5 * + 86
----
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( - 25, + 7 ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT DISTINCT + - 53 * 41 + 30 + - 81 + + COALESCE ( + 82, + + COUNT( * ) ) - - 86 + - 60 * - COALESCE ( 79, - 42 + - 23, - NULLIF ( - 81, + 66 * - 8 ) ) DIV - 79
----
-2116

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + - 53 * 41 + 30 + - 81 + + COALESCE ( + 82, + + COUNT ( * ) ) - - 86 + - 60 * - COALESCE ( 79, - 42 + - 23, - NULLIF ( - 81, + 66 * - 8 ) ) / - 79
----
-2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT - + 8 * + 5 * - ( - COUNT( * ) ) DIV + 73 * 1 * 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT - + 8 * + 5 * - ( - COUNT ( * ) ) / + 73 * 1 * 77 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3765
SELECT + + 9, - 8 + 78 + 98 + 4 + 11 + 74 * + 26 * - 80 * - CAST( + 40 AS SIGNED ) AS col0
----
9
6156983

skipif mysql # not compatible
query II rowsort label-3765
SELECT + + 9, - 8 + 78 + 98 + 4 + 11 + 74 * + 26 * - 80 * - CAST ( + 40 AS INTEGER ) AS col0
----
9
6156983

query II rowsort
SELECT ALL 9 * + 45 + - - 71, + ( 91 ) AS col2
----
476
91

query I rowsort
SELECT + - 56 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + 65 - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3768
SELECT + 65 - COUNT ( * )
----
64

query I rowsort
SELECT ALL - 36 * - 80 AS col0
----
2880

query I rowsort
SELECT ALL + 98 + - + 48 + 90
----
140

query I rowsort
SELECT DISTINCT 43 * 24 * - 27 AS col0
----
-27864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT ALL 2 * + + 96 * - NULLIF ( - CASE - ( + - 15 ) WHEN + 1 / 66 * + AVG ( - CAST( NULL AS SIGNED ) ) * + NULLIF ( - - 14, + 46 ) + - ( - COUNT( * ) ) + - - ( + 43 ) * + + 39 + + 19 THEN + 41 * ( 39 ) ELSE NULL END, - 21 * ( + COALESCE ( - 41, + 23, - SUM( - 90 ), - AVG ( DISTINCT - - 69 ) ) ) + COUNT( + 33 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL 2 * + + 96 * - NULLIF ( - CASE - ( + - 15 ) WHEN + 1 / 66 * + AVG ( - CAST ( NULL AS INTEGER ) ) * + NULLIF ( - - 14, + 46 ) + - ( - COUNT ( * ) ) + - - ( + 43 ) * + + 39 + + 19 THEN + 41 * ( 39 ) ELSE NULL END, - 21 * ( + COALESCE ( - 41, + 23, - SUM ( - 90 ), - AVG ( DISTINCT - - 69 ) ) ) + COUNT ( + 33 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT DISTINCT - 26 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT - 26 / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT MAX( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT MAX ( 0 )
----
0

query I rowsort
SELECT - ( - - 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL CASE - 38 WHEN COALESCE ( 52, + 83, - 34 * - 24 / 3 + - + 13 + + 68 ) / - - AVG ( ( ( + - CAST( NULL AS SIGNED ) ) ) ) THEN - - 62 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL CASE - 38 WHEN COALESCE ( 52, + 83, - 34 * - 24 / 3 + - + 13 + + 68 ) / - - AVG ( ( ( + - CAST ( NULL AS INTEGER ) ) ) ) THEN - - 62 END col0
----
NULL

query I rowsort
SELECT - 58 col0
----
-58

query I rowsort
SELECT - 36 * 5 * + 50 * + 41 col1
----
-369000

query I rowsort
SELECT - 60 + - 74
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT DISTINCT ( + COUNT( DISTINCT - ( + 12 ) ) ) AS col2, 22 * + + 17 * 0 * - 80
----
1
0

skipif mysql # not compatible
query II rowsort label-3780
SELECT DISTINCT ( + COUNT ( DISTINCT - ( + 12 ) ) ) AS col2, 22 * + + 17 * 0 * - 80
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT + 36 + 98 + + CAST( - 0 AS SIGNED ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-3781
SELECT + 36 + 98 + + CAST ( - 0 AS INTEGER ) AS col2
----
134

query I rowsort
SELECT - 6 * - 48 AS col1
----
288

query I rowsort
SELECT ALL - 36 * + 26 AS col1
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT - 64 * - ( - 33 ) * 81 * + COUNT( * )
----
-171072

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - 64 * - ( - 33 ) * 81 * + COUNT ( * )
----
-171072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3785
SELECT ALL CASE - 4 WHEN - 8 + + 62 THEN NULL ELSE - COUNT( * ) DIV - ( 8 ) * 88 + + - 28 END col1
----
-28

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL CASE - 4 WHEN - 8 + + 62 THEN NULL ELSE - COUNT ( * ) / - ( 8 ) * 88 + + - 28 END col1
----
-28

query I rowsort
SELECT DISTINCT ( - - 13 ) AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3787
SELECT + CAST( + - COUNT( * ) AS SIGNED ) DIV COUNT( * ) * + - 25 * - - ( - 7 ) + 0
----
-175

skipif mysql # not compatible
query I rowsort label-3787
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) / COUNT ( * ) * + - 25 * - - ( - 7 ) + 0
----
-175

onlyif mysql # DIV for integer division: 
query II rowsort label-3788
SELECT 52 DIV - 85 - - + ( + 50 ), 58 * + + 29 AS col0
----
50
1682

skipif mysql # not compatible
query II rowsort label-3788
SELECT 52 / - 85 - - + ( + 50 ), 58 * + + 29 AS col0
----
50
1682

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT + 47 DIV ( + 50 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 47 / ( + 50 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + - 32 / - - CAST( NULL AS SIGNED ) + + 76 * COUNT( - 0 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + - 32 / - - CAST ( NULL AS INTEGER ) + + 76 * COUNT ( - 0 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT ALL + 43 DIV + + 51 + + CASE - + ( + 54 ) WHEN - 44 THEN 47 ELSE - 5 END AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + 43 / + + 51 + + CASE - + ( + 54 ) WHEN - 44 THEN 47 ELSE - 5 END AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT COUNT( * ) * - 14 - + + 20 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3792
SELECT COUNT ( * ) * - 14 - + + 20 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT ALL 9 * + 63 AS col2, + 17 * MAX( ALL 25 ) + - 79 * 81 AS col1
----
567
-5974

skipif mysql # not compatible
query II rowsort label-3793
SELECT ALL 9 * + 63 AS col2, + 17 * MAX ( ALL 25 ) + - 79 * 81 AS col1
----
567
-5974

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT - 0 * COALESCE ( COUNT( * ), 32 ) * + + 29 + - 25 + 94 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - 0 * COALESCE ( COUNT ( * ), 32 ) * + + 29 + - 25 + 94 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL + MIN( ALL - - 94 ) * + + 28 + 70 * - NULLIF ( - + 96, + 16 - - COUNT( * ) )
----
9352

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + MIN ( ALL - - 94 ) * + + 28 + 70 * - NULLIF ( - + 96, + 16 - - COUNT ( * ) )
----
9352

query I rowsort
SELECT + 36 + - 65 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT - - 54 + - - CAST( - + 35 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-3797
SELECT - - 54 + - - CAST ( - + 35 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT 96 * - 23 - COUNT( * )
----
-2209

skipif mysql # not compatible
query I rowsort label-3798
SELECT 96 * - 23 - COUNT ( * )
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT + MIN( DISTINCT - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-3799
SELECT + MIN ( DISTINCT - 62 )
----
-62

query I rowsort
SELECT ALL + - 12 AS col2
----
-12

query I rowsort
SELECT ALL - 64 * - 93 - 68 AS col2
----
5884

query I rowsort
SELECT + ( + 68 ) AS col0
----
68

query II rowsort
SELECT DISTINCT 40, 5 col2
----
40
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT CASE + COUNT( * ) WHEN + 55 THEN + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT CASE + COUNT ( * ) WHEN + 55 THEN + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT COUNT( DISTINCT 56 )
----
1

skipif mysql # not compatible
query I rowsort label-3805
SELECT COUNT ( DISTINCT 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + 78 - - 29 * + 79 * + - COUNT( * )
----
-2213

skipif mysql # not compatible
query I rowsort label-3806
SELECT + 78 - - 29 * + 79 * + - COUNT ( * )
----
-2213

onlyif mysql # aggregate syntax: 
query II rowsort label-3807
SELECT - 42 * - - ( + - COUNT( * ) ), 66 - + - MIN( DISTINCT - 11 ) - + 65 * - 64 col2
----
42
4215

skipif mysql # not compatible
query II rowsort label-3807
SELECT - 42 * - - ( + - COUNT ( * ) ), 66 - + - MIN ( DISTINCT - 11 ) - + 65 * - 64 col2
----
42
4215

query II rowsort
SELECT - 11 AS col2, 29 - 60 AS col0
----
-11
-31

query II rowsort
SELECT DISTINCT 15, + 47 + + - 88 + - 69 + - + 14 AS col1
----
15
-124

query I rowsort
SELECT 12 * - 56
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL 88 * + - CASE + 16 WHEN + MIN( DISTINCT - 46 ) THEN NULL ELSE - 77 + + + NULLIF ( - 36, + + 22 ) END
----
9944

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL 88 * + - CASE + 16 WHEN + MIN ( DISTINCT - 46 ) THEN NULL ELSE - 77 + + + NULLIF ( - 36, + + 22 ) END
----
9944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT DISTINCT COUNT( * ) * + ( - CASE + COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE 2 + - 48 * 29 - CAST( NULL AS SIGNED ) END ) * 73 * 42 * + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT COUNT ( * ) * + ( - CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE 2 + - 48 * 29 - CAST ( NULL AS INTEGER ) END ) * 73 * 42 * + - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT ALL + ( + COUNT( * ) ) DIV COUNT( * ) + - 8 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL + ( + COUNT ( * ) ) / COUNT ( * ) + - 8 AS col0
----
-7

query I rowsort
SELECT 27 + + 17 AS col1
----
44

query II rowsort
SELECT ( + + 51 ) + + 21, + 66 * + 9 AS col1
----
72
594

query I rowsort
SELECT 2 * 73 * - 27 col1
----
-3942

query I rowsort
SELECT 37 * + - 41
----
-1517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3818
SELECT COUNT( * ) + - + 11 - 95 DIV 49
----
-11

skipif mysql # not compatible
query I rowsort label-3818
SELECT COUNT ( * ) + - + 11 - 95 / 49
----
-11

query I rowsort
SELECT 17 + + 82
----
99

query I rowsort
SELECT ALL - 15 + 22
----
7

query I rowsort
SELECT 27 + - 7
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT 62 - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3822
SELECT 62 - - COUNT ( * )
----
63

query I rowsort
SELECT DISTINCT - CASE WHEN NULL IS NOT NULL THEN 77 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT ALL + 42 + 85 DIV 49
----
43

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL + 42 + 85 / 49
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT 6 DIV 40 + + 1
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT 6 / 40 + + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT - SUM( ALL - 61 ) + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - SUM ( ALL - 61 ) + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT ALL 57 + - ( ( 28 ) ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT MAX( + 59 ) * - COUNT( ALL - 0 ) + 76 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3828
SELECT MAX ( + 59 ) * - COUNT ( ALL - 0 ) + 76 AS col1
----
17

query I rowsort
SELECT ALL - ( - 64 ) + 15
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT + 29 * - CAST( NULL AS SIGNED ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT + 29 * - CAST ( NULL AS INTEGER ) + - 66
----
NULL

query I rowsort
SELECT DISTINCT 56 - + ( 33 ) AS col0
----
23

query I rowsort
SELECT ALL - ( - 3 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT ALL 91 - 10 DIV COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 91 - 10 / COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT MAX( DISTINCT + 93 ) * 46 AS col0
----
4278

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT MAX ( DISTINCT + 93 ) * 46 AS col0
----
4278

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT + 53 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + 53 / + 75 AS col0
----
0

query I rowsort
SELECT DISTINCT - 99 - 0
----
-99

query I rowsort
SELECT ( COALESCE ( + 62, + 77, + 54 * ( 63 ) ) ) + - 94 AS col0
----
-32

query I rowsort
SELECT DISTINCT + 35 * + NULLIF ( 19 * - 37, NULLIF ( + 58, 38 * - 57 ) ) AS col0
----
-24605

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT 67 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3839
SELECT 67 * - COUNT ( * )
----
-67

query I rowsort
SELECT DISTINCT 90 * - 85 AS col1
----
-7650

query I rowsort
SELECT 86 - + 29 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT NULLIF ( SUM( + 68 ), + COUNT( - 26 ) * + 43 ) * + NULLIF ( COUNT( * ), + 6 * + 96 + - COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-3842
SELECT NULLIF ( SUM ( + 68 ), + COUNT ( - 26 ) * + 43 ) * + NULLIF ( COUNT ( * ), + 6 * + 96 + - COUNT ( * ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - 9 * 7 + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 9 * 7 + + COUNT ( * )
----
-62

query I rowsort
SELECT DISTINCT + 63 * 51 AS col1
----
3213

query I rowsort
SELECT 21 - 13 AS col2
----
8

query I rowsort
SELECT 27 + - 71 AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT CAST( NULL AS SIGNED ) * + SUM( 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT CAST ( NULL AS INTEGER ) * + SUM ( 45 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT COALESCE ( - 54, 81, 35 DIV - CASE + 18 WHEN 0 THEN NULL WHEN + 40 * + 68 THEN 56 ELSE NULL END ) * 26
----
-1404

skipif mysql # not compatible
query I rowsort label-3848
SELECT COALESCE ( - 54, 81, 35 / - CASE + 18 WHEN 0 THEN NULL WHEN + 40 * + 68 THEN 56 ELSE NULL END ) * 26
----
-1404

query I rowsort
SELECT DISTINCT ( 7 ) * 45 AS col1
----
315

query I rowsort
SELECT ALL 35 + 72 * 96 AS col1
----
6947

query I rowsort
SELECT 53 + + 57 * 97
----
5582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT CAST( NULL AS SIGNED ) / + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT CAST ( NULL AS INTEGER ) / + 36 AS col1
----
NULL

query I rowsort
SELECT 62 + 72
----
134

query I rowsort
SELECT ALL + 25 + + 5 * 38 AS col2
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT 81 * MAX( - 48 + - 73 ) AS col0
----
-9801

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT 81 * MAX ( - 48 + - 73 ) AS col0
----
-9801

query I rowsort
SELECT ALL 85 + 52 * + 81
----
4297

query I rowsort
SELECT DISTINCT + ( 54 )
----
54

query I rowsort
SELECT DISTINCT - 23 + - 18
----
-41

query I rowsort
SELECT ALL - 64 + 6 * 59
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT COUNT( * ) * + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3860
SELECT COUNT ( * ) * + 99 AS col0
----
99

query I rowsort
SELECT - COALESCE ( + ( + 23 ), + 56 )
----
-23

query I rowsort
SELECT 9 * + 14 - + 28
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT + ( COALESCE ( - ( COUNT( * ) ), 57 * 3 - - 85 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3863
SELECT + ( COALESCE ( - ( COUNT ( * ) ), 57 * 3 - - 85 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL - + NULLIF ( SUM( + 55 ), 53 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - + NULLIF ( SUM ( + 55 ), 53 ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT + 94 DIV + 15 - + 97
----
-91

skipif mysql # not compatible
query I rowsort label-3865
SELECT + 94 / + 15 - + 97
----
-91

query I rowsort
SELECT 51 * - 69 AS col1
----
-3519

query I rowsort
SELECT DISTINCT + 7 * + 50
----
350

query I rowsort
SELECT ALL - - COALESCE ( 55, - 65 * 61 + - 45, 33 ) AS col0
----
55

query I rowsort
SELECT ALL + 57 * + 21
----
1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT DISTINCT + - 60 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT + - 60 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 7 col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT + 18 DIV + 27 - - 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3872
SELECT + 18 / + 27 - - 70 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL + COUNT( * ) * 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + COUNT ( * ) * 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-3874
SELECT COUNT ( * ) * 69
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT COUNT( * ) * + 21 * COALESCE ( + 5, + CAST( NULL AS SIGNED ) )
----
105

skipif mysql # not compatible
query I rowsort label-3875
SELECT COUNT ( * ) * + 21 * COALESCE ( + 5, + CAST ( NULL AS INTEGER ) )
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT ALL + CAST( + 67 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + CAST ( + 67 AS INTEGER ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT + 19 - COUNT( * ) * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-3877
SELECT + 19 - COUNT ( * ) * COUNT ( * )
----
18

query I rowsort
SELECT + 37 * 89
----
3293

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT - 4 DIV + 12
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - 4 / + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL 95 + COUNT( * ) * 29 col0
----
124

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL 95 + COUNT ( * ) * 29 col0
----
124

query I rowsort
SELECT - 1 * + 41 * + 14
----
-574

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT DISTINCT - 5 DIV - - 82 * + ( + 25 * 75 )
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - 5 / - - 82 * + ( + 25 * 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + 77 * + ( COUNT( * ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 77 * + ( COUNT ( * ) ) AS col2
----
77

query I rowsort
SELECT ALL - 87 * + + 45 AS col1
----
-3915

query I rowsort
SELECT - 65 + - 47
----
-112

query I rowsort
SELECT - 41 + + - 6 AS col0
----
-47

query I rowsort
SELECT + 17 + + 52 AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT ALL + CAST( NULL AS SIGNED ) * 30 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + CAST ( NULL AS INTEGER ) * 30 * COUNT ( * )
----
NULL

query I rowsort
SELECT ( - COALESCE ( 79, 57 ) ) AS col0
----
-79

query I rowsort
SELECT ALL + COALESCE ( - 85, 43 ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + - COUNT( * ) + - 42
----
-43

skipif mysql # not compatible
query I rowsort label-3891
SELECT + - COUNT ( * ) + - 42
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT MIN( DISTINCT 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3892
SELECT MIN ( DISTINCT 12 )
----
12

query I rowsort
SELECT + 89 + - 71 AS col2
----
18

query I rowsort
SELECT - - 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + COUNT( * ) + + + 80 * COUNT( * ) col1
----
81

skipif mysql # not compatible
query I rowsort label-3895
SELECT + COUNT ( * ) + + + 80 * COUNT ( * ) col1
----
81

query I rowsort
SELECT - 72 - + - 26
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + 16 + 44 + 77 * COUNT( * ) * 79
----
6143

skipif mysql # not compatible
query I rowsort label-3897
SELECT + 16 + 44 + 77 * COUNT ( * ) * 79
----
6143

query I rowsort
SELECT ALL 55 - 90 * 16
----
-1385

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT DISTINCT 60 * COUNT( * ) + - 69 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT 60 * COUNT ( * ) + - 69 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + COUNT( * ) * - 68
----
-68

skipif mysql # not compatible
query I rowsort label-3900
SELECT + COUNT ( * ) * - 68
----
-68

query I rowsort
SELECT ALL 99 * - ( 10 ) + + 33
----
-957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) ) / MIN( ALL - ( + CAST( + 68 AS SIGNED ) ) + + 30 ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) / MIN ( ALL - ( + CAST ( + 68 AS INTEGER ) ) + + 30 ) + - 50
----
NULL

query I rowsort
SELECT DISTINCT 17 * - + 81 * + 93
----
-128061

query I rowsort
SELECT ALL - 17 * + 16 + 95 AS col1
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT + 5 DIV - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT + 5 / - 24 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT - 75 DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 75 / 54
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3907
SELECT - ( - + COUNT( * ) ) DIV - 44 + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3907
SELECT - ( - + COUNT ( * ) ) / - 44 + 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ( - MAX( - + CASE 62 WHEN + 63 THEN 6 WHEN + 80 THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT ( - MAX ( - + CASE 62 WHEN + 63 THEN 6 WHEN + 80 THEN NULL END ) )
----
NULL

query I rowsort
SELECT - 19 + 82
----
63

query I rowsort
SELECT ( - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT 63 * 54 * ( COUNT( * ) ) + 40
----
3442

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT 63 * 54 * ( COUNT ( * ) ) + 40
----
3442

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT + SUM( ALL - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + SUM ( ALL - 54 )
----
-54

query I rowsort
SELECT ALL ( 72 ) * + 48 + 27 AS col2
----
3483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT ALL + COUNT( - + 2 ) * 37 + 91 DIV + COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + COUNT ( - + 2 ) * 37 + 91 / + COUNT ( * )
----
128

query I rowsort
SELECT - 1 * - + 24 + + + 49 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT - 79 * - COUNT( + 6 ) DIV NULLIF ( - 87, 29 + 67 DIV 39 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - 79 * - COUNT ( + 6 ) / NULLIF ( - 87, 29 + 67 / 39 ) + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL - COUNT( * ) * + 77 * + 29 AS col2
----
-2233

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - COUNT ( * ) * + 77 * + 29 AS col2
----
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT - COUNT( * ) * + 68 + + COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT - COUNT ( * ) * + 68 + + COUNT ( * ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT + CAST( - 12 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3919
SELECT + CAST ( - 12 AS INTEGER ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL + 80 * + - COUNT( * ) * 72 + + 33 * 83 AS col1
----
-3021

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + 80 * + - COUNT ( * ) * 72 + + 33 * 83 AS col1
----
-3021

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - 38 * - - 95 + - ( + COUNT( * ) ) * - 78 col0
----
-3532

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 38 * - - 95 + - ( + COUNT ( * ) ) * - 78 col0
----
-3532

query I rowsort
SELECT - 24 - - 1 col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT - 41 DIV + 15
----
-2

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 41 / + 15
----
-2

query I rowsort
SELECT - 47 + + + 31 col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3925
SELECT COUNT( * ) AS col2, - 31 - + 97 * + 30
----
1
-2941

skipif mysql # not compatible
query II rowsort label-3925
SELECT COUNT ( * ) AS col2, - 31 - + 97 * + 30
----
1
-2941

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL - COUNT( * ) * 28 * - 19 * 99 + 76 * - 30 AS col0
----
50388

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - COUNT ( * ) * 28 * - 19 * 99 + 76 * - 30 AS col0
----
50388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT ALL - 56 DIV MIN( 77 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - 56 / MIN ( 77 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT DISTINCT CAST( MIN( - 91 ) AS SIGNED ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT CAST ( MIN ( - 91 ) AS INTEGER ) col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3929
SELECT DISTINCT + 70 * MIN( - - 92 ) * CAST( NULL AS DECIMAL ) + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + 70 * MIN ( - - 92 ) * CAST ( NULL AS REAL ) + 79 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 10 ) col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - CASE + SUM( ALL + - 78 ) WHEN AVG ( - 20 ) THEN - ( - 86 ) + 32 END + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT - CASE + SUM ( ALL + - 78 ) WHEN AVG ( - 20 ) THEN - ( - 86 ) + 32 END + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT ALL + COALESCE ( 29, - COALESCE ( - 18, + 95 DIV 26, + MIN( ALL 85 ) DIV SUM( ALL + 24 ) ) + 28 ) - 14 * - 98
----
1401

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL + COALESCE ( 29, - COALESCE ( - 18, + 95 / 26, + MIN ( ALL 85 ) / SUM ( ALL + 24 ) ) + 28 ) - 14 * - 98
----
1401

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT ALL - + NULLIF ( 79, - 98 ) DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - + NULLIF ( 79, - 98 ) / - 44
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - CASE - + 35 WHEN + COUNT( * ) * ( 45 ) THEN - COUNT( * ) + + ( 66 + + 99 ) WHEN - 99 THEN NULL ELSE NULL END / - AVG ( DISTINCT - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT - CASE - + 35 WHEN + COUNT ( * ) * ( 45 ) THEN - COUNT ( * ) + + ( 66 + + 99 ) WHEN - 99 THEN NULL ELSE NULL END / - AVG ( DISTINCT - 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - COALESCE ( - 38, COUNT( * ), - 80 + 3 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3935
SELECT - COALESCE ( - 38, COUNT ( * ), - 80 + 3 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT - + 48 - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - + 48 - + COUNT ( * )
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-3937
SELECT - 76 AS col0, - 97 DIV - 50
----
-76
1

skipif mysql # not compatible
query II rowsort label-3937
SELECT - 76 AS col0, - 97 / - 50
----
-76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - MIN( DISTINCT - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3938
SELECT - MIN ( DISTINCT - 11 ) AS col2
----
11

query I rowsort
SELECT + - CASE + 15 WHEN 53 + 72 * + 15 THEN 55 ELSE NULL END + + 38 * 47 AS col1
----
NULL

query I rowsort
SELECT + 61 * - 1 + - NULLIF ( - 87, + 91 * - 26 - 47 * 63 ) + 34 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3941
SELECT + + 1 * 61 * - CAST( NULL AS DECIMAL ) - SUM( 18 ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT + + 1 * 61 * - CAST ( NULL AS REAL ) - SUM ( 18 ) * + 25
----
NULL

query I rowsort
SELECT - + NULLIF ( - - 24, - 15 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT - CAST( - 55 AS SIGNED ) * - 45 col1
----
-2475

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - CAST ( - 55 AS INTEGER ) * - 45 col1
----
-2475

query I rowsort
SELECT + + 68 * + 20
----
1360

query I rowsort
SELECT ALL - ( - 37 )
----
37

query I rowsort
SELECT - NULLIF ( NULLIF ( - 54, - NULLIF ( - 44, + 93 + 28 ) ), + 1 )
----
54

query II rowsort
SELECT + 33 AS col1, + 47 AS col2
----
33
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT - 63 * COUNT( * ) / COALESCE ( 88, 87 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT - 63 * COUNT ( * ) / COALESCE ( 88, 87 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 50, 42 AS col1
----
-50
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3950
SELECT 91 * 26 DIV + 42 + NULLIF ( - 33, + 24 * 53 ) - - COUNT( 6 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-3950
SELECT 91 * 26 / + 42 + NULLIF ( - 33, + 24 * 53 ) - - COUNT ( 6 ) col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT + 47 DIV - 9 + - + 15
----
-20

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 47 / - 9 + - + 15
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT ALL - COALESCE ( + 41, - SUM( - 90 ) DIV 84 )
----
-41

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - COALESCE ( + 41, - SUM ( - 90 ) / 84 )
----
-41

query II rowsort
SELECT + 90 AS col0, - 87 * + 66
----
90
-5742

query I rowsort
SELECT ALL 96 + + 92
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT COUNT( * ) + - ( 73 )
----
-72

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT COUNT ( * ) + - ( 73 )
----
-72

query I rowsort
SELECT DISTINCT 31 + + 95 AS col2
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3957
SELECT DISTINCT SUM( CASE 66 WHEN + CASE 21 WHEN + ( + 81 ) THEN + 49 * + CASE + 47 WHEN 87 * 56 THEN NULL WHEN + 50 + 75 THEN NULL ELSE CAST( NULL AS SIGNED ) END + + 36 WHEN 46 * + 43 THEN NULL END * - 32 THEN 93 * 10 ELSE + 44 END ) + 39
----
83

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT SUM ( CASE 66 WHEN + CASE 21 WHEN + ( + 81 ) THEN + 49 * + CASE + 47 WHEN 87 * 56 THEN NULL WHEN + 50 + 75 THEN NULL ELSE CAST ( NULL AS INTEGER ) END + + 36 WHEN 46 * + 43 THEN NULL END * - 32 THEN 93 * 10 ELSE + 44 END ) + 39
----
83

query I rowsort
SELECT - 34 * + 4 + 50
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT 60 * - COUNT( * ) + - - 63 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3959
SELECT 60 * - COUNT ( * ) + - - 63 AS col2
----
3

query I rowsort
SELECT 24 * - - 57 - - 18 col1
----
1386

query I rowsort
SELECT DISTINCT - 69 * 35
----
-2415

query I rowsort
SELECT ALL - NULLIF ( 70, 98 )
----
-70

query I rowsort
SELECT DISTINCT ( - 19 ) - + 61 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT + COUNT( 40 ) * + + 38 + + 86 + 5 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-3964
SELECT + COUNT ( 40 ) * + + 38 + + 86 + 5 AS col2
----
129

query II rowsort
SELECT DISTINCT - 70 * - 75 AS col1, 20
----
5250
20

query I rowsort
SELECT 36 * ( + 95 )
----
3420

query I rowsort
SELECT - ( 17 ) * - 74 * + 73
----
91834

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3968
SELECT 67 + - MIN( ALL + 65 ) + + SUM( ALL + 81 ) DIV - 16 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3968
SELECT 67 + - MIN ( ALL + 65 ) + + SUM ( ALL + 81 ) / - 16 * - COUNT ( * )
----
7

query I rowsort
SELECT + 71 + + NULLIF ( 68, + 80 / 46 )
----
139

query I rowsort
SELECT ALL - ( + 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT + 85 + + 53 + + 86 * CASE 22 WHEN 17 * - CASE ( + 37 ) WHEN - ( 33 ) THEN - 91 END + 22 THEN 25 - - 35 WHEN ( - 91 ) THEN NULL ELSE COALESCE ( - MAX( + 34 ), - ( COALESCE ( CAST( 74 AS SIGNED ), 91 + + COUNT( * ), - 71 * NULLIF ( - 7 * + 39, + 64 + + ( COUNT( * ) ) ) + 4 * + CAST( + 16 AS SIGNED ) ) ) ) * 72 END AS col0
----
-210390

skipif mysql # not compatible
query I rowsort label-3971
SELECT + 85 + + 53 + + 86 * CASE 22 WHEN 17 * - CASE ( + 37 ) WHEN - ( 33 ) THEN - 91 END + 22 THEN 25 - - 35 WHEN ( - 91 ) THEN NULL ELSE COALESCE ( - MAX ( + 34 ), - ( COALESCE ( CAST ( 74 AS INTEGER ), 91 + + COUNT ( * ), - 71 * NULLIF ( - 7 * + 39, + 64 + + ( COUNT ( * ) ) ) + 4 * + CAST ( + 16 AS INTEGER ) ) ) ) * 72 END AS col0
----
-210390

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT + + 45 DIV 76 * 25 * - 87 - 35
----
-35

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + + 45 / 76 * 25 * - 87 - 35
----
-35

query I rowsort
SELECT 36 + - ( + 76 ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3974
SELECT + 12 DIV - - 12 AS col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3974
SELECT + 12 / - - 12 AS col1, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3975
SELECT - COUNT( * ) + - 4 - - 0 DIV + MIN( 89 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3975
SELECT - COUNT ( * ) + - 4 - - 0 / + MIN ( 89 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3976
SELECT 16 + - - SUM( DISTINCT CAST( + CAST( 85 AS SIGNED ) AS SIGNED ) ) DIV - 44
----
15

skipif mysql # not compatible
query I rowsort label-3976
SELECT 16 + - - SUM ( DISTINCT CAST ( + CAST ( 85 AS INTEGER ) AS INTEGER ) ) / - 44
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3977
SELECT CASE + + 58 WHEN - 20 + + 48 / + CAST( + 94 AS SIGNED ) THEN NULL WHEN - 97 + + 8 * 84 THEN - ( COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT CASE + + 58 WHEN - 20 + + 48 / + CAST ( + 94 AS INTEGER ) THEN NULL WHEN - 97 + + 8 * 84 THEN - ( COUNT ( * ) ) END AS col1
----
NULL

query I rowsort
SELECT 75 + - 60 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT ALL + - 3 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + - 3 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 61 * - 74 * - 99 * + 60
----
-26813160

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + 70 - + COUNT( * ) + - 82 * + 19 * + COUNT( * ) AS col2
----
-1489

skipif mysql # not compatible
query I rowsort label-3981
SELECT + 70 - + COUNT ( * ) + - 82 * + 19 * + COUNT ( * ) AS col2
----
-1489

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL - COUNT( * ) * + + 56 + + + 12
----
-44

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL - COUNT ( * ) * + + 56 + + + 12
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT - + 74 + + COUNT( * ) + - NULLIF ( + + 83, - 95 ) * - 65
----
5322

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - + 74 + + COUNT ( * ) + - NULLIF ( + + 83, - 95 ) * - 65
----
5322

query I rowsort
SELECT DISTINCT - - 49 + - 97
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3985
SELECT + 28 * - CAST( NULL AS SIGNED ) AS col0, + 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3985
SELECT + 28 * - CAST ( NULL AS INTEGER ) AS col0, + 65 AS col0
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL COUNT( + 80 ) + + SUM( 21 ) col2
----
22

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL COUNT ( + 80 ) + + SUM ( 21 ) col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT 54 DIV 23 + - 68 * + ( - - COUNT( * ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3987
SELECT 54 / 23 + - 68 * + ( - - COUNT ( * ) ) AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT ALL - NULLIF ( CAST( - 60 AS SIGNED ), 12 * - 40 ) * 32
----
1920

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - NULLIF ( CAST ( - 60 AS INTEGER ), 12 * - 40 ) * 32
----
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT ALL - CAST( - 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - CAST ( - 68 AS INTEGER ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT ALL - SUM( CASE 58 WHEN - 31 + - CAST( NULL AS SIGNED ) THEN - 2 * + 0 WHEN ( - 75 ) THEN NULL ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - SUM ( CASE 58 WHEN - 31 + - CAST ( NULL AS INTEGER ) THEN - 2 * + 0 WHEN ( - 75 ) THEN NULL ELSE NULL END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT COUNT( + - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT COUNT ( + - 8 )
----
1

query I rowsort
SELECT DISTINCT ( + 15 ) + + - 31 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT ALL COUNT( * ) + + COALESCE ( + + COALESCE ( 34, COUNT( * ), 83 ), - ( 21 ) DIV + 89, - 45 * COUNT( * ) - + 8 ) * - MIN( - 65 DIV + 13 + - 30 ) AS col0
----
1191

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL COUNT ( * ) + + COALESCE ( + + COALESCE ( 34, COUNT ( * ), 83 ), - ( 21 ) / + 89, - 45 * COUNT ( * ) - + 8 ) * - MIN ( - 65 / + 13 + - 30 ) AS col0
----
1191

query I rowsort
SELECT 2 * 77 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT MIN( - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3995
SELECT MIN ( - + 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3996
SELECT 64 DIV - 92 * + 35 + - COALESCE ( + 42, - SUM( 74 ) + - 27 * + COUNT( * ) ) + 2 * + CAST( - 7 AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-3996
SELECT 64 / - 92 * + 35 + - COALESCE ( + 42, - SUM ( 74 ) + - 27 * + COUNT ( * ) ) + 2 * + CAST ( - 7 AS INTEGER ) AS col2
----
-56

query I rowsort
SELECT ALL 19 + 79
----
98

query I rowsort
SELECT 18 + - + 59 * ( 25 )
----
-1457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT COUNT( * ) DIV 62 col1
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT COUNT ( * ) / 62 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT ALL + 83 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + 83 / 43
----
1

query I rowsort
SELECT ALL 65 - + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT COALESCE ( + 57, - + 8, 70 ) * + ( COUNT( * ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4002
SELECT COALESCE ( + 57, - + 8, 70 ) * + ( COUNT ( * ) ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT + CAST( 62 AS SIGNED ) * - MAX( DISTINCT + ( - - 21 ) ) + CAST( ( - 7 ) AS SIGNED ) col0
----
-1309

skipif mysql # not compatible
query I rowsort label-4003
SELECT + CAST ( 62 AS INTEGER ) * - MAX ( DISTINCT + ( - - 21 ) ) + CAST ( ( - 7 ) AS INTEGER ) col0
----
-1309

query I rowsort
SELECT 56 * + 40 * + 7 col2
----
15680

query I rowsort
SELECT 62 + + + 20 col1
----
82

query I rowsort
SELECT ALL 29 - + 83 + 69
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4007
SELECT NULLIF ( + 58, - + 97 * + 89 + - - MAX( DISTINCT + CAST( - 27 AS DECIMAL ) ) / COUNT( * ) ) / CASE 79 WHEN 95 THEN 78 + 24 * 71 WHEN + COUNT( + 76 ) THEN + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT NULLIF ( + 58, - + 97 * + 89 + - - MAX ( DISTINCT + CAST ( - 27 AS REAL ) ) / COUNT ( * ) ) / CASE 79 WHEN 95 THEN 78 + 24 * 71 WHEN + COUNT ( + 76 ) THEN + 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + MIN( DISTINCT + 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4008
SELECT + MIN ( DISTINCT + 81 ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT + CAST( NULL AS SIGNED ) * + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT + CAST ( NULL AS INTEGER ) * + + 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT - 25 + COUNT( * ) + - 62 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4010
SELECT - 25 + COUNT ( * ) + - 62 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + CASE WHEN NULL <> ( - COUNT( * ) ) THEN - 91 / 52 ELSE - 82 END
----
-82

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + CASE WHEN NULL <> ( - COUNT ( * ) ) THEN - 91 / 52 ELSE - 82 END
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4012
SELECT - 61, - MIN( 99 ) * COALESCE ( - 10, - 37 + - CAST( + MAX( 51 ) + - 93 AS SIGNED ), 98 ) AS col0
----
-61
990

skipif mysql # not compatible
query II rowsort label-4012
SELECT - 61, - MIN ( 99 ) * COALESCE ( - 10, - 37 + - CAST ( + MAX ( 51 ) + - 93 AS INTEGER ), 98 ) AS col0
----
-61
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4013
SELECT DISTINCT + CAST( SUM( + 73 ) AS SIGNED ), + MAX( - + 16 ) col1
----
73
-16

skipif mysql # not compatible
query II rowsort label-4013
SELECT DISTINCT + CAST ( SUM ( + 73 ) AS INTEGER ), + MAX ( - + 16 ) col1
----
73
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - 82 * SUM( - + 86 ) col2
----
7052

skipif mysql # not compatible
query I rowsort label-4014
SELECT - 82 * SUM ( - + 86 ) col2
----
7052

query I rowsort
SELECT - 91 + - 79 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT DISTINCT MIN( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT MIN ( DISTINCT - 45 )
----
-45

query I rowsort
SELECT - 49 * - 59 * 58
----
167678

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + NULLIF ( NULLIF ( + 56, + 80 + - 46 ), - MAX( 99 ) ) * 61
----
3416

skipif mysql # not compatible
query I rowsort label-4018
SELECT + NULLIF ( NULLIF ( + 56, + 80 + - 46 ), - MAX ( 99 ) ) * 61
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + COUNT( * ) + + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + COUNT ( * ) + + 26 AS col2
----
27

query I rowsort
SELECT ALL + - 76 + - 71 + + CASE + 65 WHEN 73 THEN 6 WHEN - AVG ( DISTINCT ( - 92 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT - 55 + + MAX( ALL - - 75 ) * + + 55
----
4070

skipif mysql # not compatible
query I rowsort label-4021
SELECT - 55 + + MAX ( ALL - - 75 ) * + + 55
----
4070

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT + COUNT( * ) + - 89 + - 32 + + 93 * 50 + 14 * - NULLIF ( 89 * 19, + ( - 9 ) ) AS col0
----
-19144

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + COUNT ( * ) + - 89 + - 32 + + 93 * 50 + 14 * - NULLIF ( 89 * 19, + ( - 9 ) ) AS col0
----
-19144

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT DISTINCT - ( + 73 ) + + COUNT( * ) AS col1, 2 AS col0
----
-72
2

skipif mysql # not compatible
query II rowsort label-4023
SELECT DISTINCT - ( + 73 ) + + COUNT ( * ) AS col1, 2 AS col0
----
-72
2

query I rowsort
SELECT ALL + + 75 + - 56
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4025
SELECT ALL + 43 AS col2, - 27 + 98 - + COUNT( * ) AS col1
----
43
70

skipif mysql # not compatible
query II rowsort label-4025
SELECT ALL + 43 AS col2, - 27 + 98 - + COUNT ( * ) AS col1
----
43
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4026
SELECT - 37 DIV + - 54 AS col2, - 10 * - 11 AS col1, COUNT( * ) * - 76 + 14 DIV - 7 AS col1
----
0
110
-78

skipif mysql # not compatible
query III rowsort label-4026
SELECT - 37 / + - 54 AS col2, - 10 * - 11 AS col1, COUNT ( * ) * - 76 + 14 / - 7 AS col1
----
0
110
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL + SUM( + - 46 ) + + - 59 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + SUM ( + - 46 ) + + - 59 AS col0
----
-105

query I rowsort
SELECT - 49 - 4 - - 48 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT - COUNT( ALL - 63 ) * - ( + 85 ) AS col2, 99 * + 43 + COALESCE ( - 88, + 31 ) AS col0
----
85
4169

skipif mysql # not compatible
query II rowsort label-4029
SELECT - COUNT ( ALL - 63 ) * - ( + 85 ) AS col2, 99 * + 43 + COALESCE ( - 88, + 31 ) AS col0
----
85
4169

query II rowsort
SELECT ( + 40 ), - 13 + + - 8 + + 33 AS col2
----
40
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4031
SELECT 60 DIV + 78 * 15 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4031
SELECT 60 / + 78 * 15 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4032
SELECT - 1 + + COUNT( * ) DIV - + NULLIF ( - NULLIF ( - 93, 40 + 74 ), 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 1 + + COUNT ( * ) / - + NULLIF ( - NULLIF ( - 93, 40 + 74 ), 11 )
----
-1

query I rowsort
SELECT DISTINCT + ( 39 ) * + ( - 18 ) - - - 59
----
-761

query I rowsort
SELECT - 77 + - + 27 col2
----
-104

query II rowsort
SELECT DISTINCT + 69, - ( + 69 ) col0
----
69
-69

query I rowsort
SELECT ALL + 88 * - - 17 AS col0
----
1496

onlyif mysql # aggregate syntax: 
query II rowsort label-4037
SELECT ALL + 11 AS col1, + 45 + COUNT( * ) col0
----
11
46

skipif mysql # not compatible
query II rowsort label-4037
SELECT ALL + 11 AS col1, + 45 + COUNT ( * ) col0
----
11
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT MIN( DISTINCT - - 74 ) * NULLIF ( + SUM( + 62 ), + 76 ) - + 36 - 61 * 12 AS col0
----
3820

skipif mysql # not compatible
query I rowsort label-4038
SELECT MIN ( DISTINCT - - 74 ) * NULLIF ( + SUM ( + 62 ), + 76 ) - + 36 - 61 * 12 AS col0
----
3820

query I rowsort
SELECT - 59 * 24
----
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT + 23 + + 16 + - MAX( - 46 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 23 + + 16 + - MAX ( - 46 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT ALL + 1, ( + COUNT( * ) ) + + + 0 - 7 * + 52 AS col1
----
1
-363

skipif mysql # not compatible
query II rowsort label-4041
SELECT ALL + 1, ( + COUNT ( * ) ) + + + 0 - 7 * + 52 AS col1
----
1
-363

query I rowsort
SELECT CASE + 90 WHEN + 47 / - + 12 THEN 86 END AS col2
----
NULL

query I rowsort
SELECT - 87 * - 28 + + 92 AS col0
----
2528

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + ( + 50 ) * + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4044
SELECT + ( + 50 ) * + COUNT ( * ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT ALL 23 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL 23 / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT - ( - ( - ( COALESCE ( - - CASE MAX( ( + 86 ) ) WHEN 11 + + COUNT( * ) THEN - 41 WHEN 3 THEN NULL ELSE NULL END, + 78, + CASE - 10 WHEN 80 - - NULLIF ( 71 + 93, ( 35 ) ) THEN 57 WHEN + 19 * 52 - - 82 THEN NULL END + 28 ) ) ) ) * - SUM( - ( + 40 ) ) AS col2
----
-3120

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - ( - ( - ( COALESCE ( - - CASE MAX ( ( + 86 ) ) WHEN 11 + + COUNT ( * ) THEN - 41 WHEN 3 THEN NULL ELSE NULL END, + 78, + CASE - 10 WHEN 80 - - NULLIF ( 71 + 93, ( 35 ) ) THEN 57 WHEN + 19 * 52 - - 82 THEN NULL END + 28 ) ) ) ) * - SUM ( - ( + 40 ) ) AS col2
----
-3120

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT ALL + + 12 DIV 76 - + 5
----
-5

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL + + 12 / 76 - + 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + - COALESCE ( - 40, + 73 + + 90 * - CASE + - 98 WHEN - 98 THEN COUNT( * ) - 91 END, 52 ) * - 81
----
-3240

skipif mysql # not compatible
query I rowsort label-4048
SELECT + - COALESCE ( - 40, + 73 + + 90 * - CASE + - 98 WHEN - 98 THEN COUNT ( * ) - 91 END, 52 ) * - 81
----
-3240

query II rowsort
SELECT ALL + + 50 AS col2, + 48
----
50
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT - + 70 DIV + COUNT( * ) + + - 91 * - 93 * 94
----
795452

skipif mysql # not compatible
query I rowsort label-4050
SELECT - + 70 / + COUNT ( * ) + + - 91 * - 93 * 94
----
795452

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT + - 64 DIV 11 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4051
SELECT + - 64 / 11 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT ALL COALESCE ( 75, 86, + - ( + + 36 ) DIV + - 89 ) * - 50 + + 99 AS col0
----
-3651

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL COALESCE ( 75, 86, + - ( + + 36 ) / + - 89 ) * - 50 + + 99 AS col0
----
-3651

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT 53 * - 17 + + COUNT( * ) + - 83 * COUNT( * ) AS col1
----
-983

skipif mysql # not compatible
query I rowsort label-4053
SELECT 53 * - 17 + + COUNT ( * ) + - 83 * COUNT ( * ) AS col1
----
-983

query I rowsort
SELECT + + 89 * + ( + + 90 )
----
8010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4055
SELECT + CAST( 5 AS SIGNED ) + - 50 + COUNT( * ), + 99 * 84 AS col1
----
-44
8316

skipif mysql # not compatible
query II rowsort label-4055
SELECT + CAST ( 5 AS INTEGER ) + - 50 + COUNT ( * ), + 99 * 84 AS col1
----
-44
8316

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + + 20 * + + COUNT( + 55 ) + - COALESCE ( + ( 48 ), + 5, COUNT( * ) ) + 60
----
32

skipif mysql # not compatible
query I rowsort label-4056
SELECT + + 20 * + + COUNT ( + 55 ) + - COALESCE ( + ( 48 ), + 5, COUNT ( * ) ) + 60
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT ALL 99 DIV - 95 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL 99 / - 95 AS col2
----
-1

query I rowsort
SELECT + 69 + - - 30 AS col0
----
99

query II rowsort
SELECT ALL + 18 + - 50 AS col1, 57 AS col0
----
-32
57

query I rowsort
SELECT + - 12 + 4 - + 41
----
-49

query I rowsort
SELECT + + 37 + 91 + NULLIF ( + - 72, - ( - COALESCE ( 50, + 68 + ( - 39 + 56 * 81 ), 65 + + NULLIF ( 23, + 10 ) ) ) * 92 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT 41 AS col2, - COUNT( * ) * - 48 AS col0
----
41
48

skipif mysql # not compatible
query II rowsort label-4062
SELECT 41 AS col2, - COUNT ( * ) * - 48 AS col0
----
41
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT 84 + + COUNT( * ) + 13 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT 84 + + COUNT ( * ) + 13 AS col1
----
98

query I rowsort
SELECT + 58 * - + ( + 62 ) - - ( + 65 ) AS col0
----
-3531

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + 49 + - COUNT( * ) + - - 12 + NULLIF ( - - 41, + 39 )
----
101

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 49 + - COUNT ( * ) + - - 12 + NULLIF ( - - 41, + 39 )
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT - COUNT( * ) + - 11, 1 * 58 * + 93 * - 77 AS col1
----
-12
-415338

skipif mysql # not compatible
query II rowsort label-4066
SELECT - COUNT ( * ) + - 11, 1 * 58 * + 93 * - 77 AS col1
----
-12
-415338

query I rowsort
SELECT + 25 + 42 - 35
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - COALESCE ( 35, NULLIF ( COUNT( - + 92 ), - + 43 ), + 70 * + 71 + + 50 * 47 ) - 48
----
-83

skipif mysql # not compatible
query I rowsort label-4068
SELECT - COALESCE ( 35, NULLIF ( COUNT ( - + 92 ), - + 43 ), + 70 * + 71 + + 50 * 47 ) - 48
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4069
SELECT ALL COALESCE ( - COUNT( * ), - - 90 DIV - 37 * 88 + + - 99, - 77 + - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL COALESCE ( - COUNT ( * ), - - 90 / - 37 * 88 + + - 99, - 77 + - 62 )
----
-1

query I rowsort
SELECT - 7 + + + 77 AS col0
----
70

query I rowsort
SELECT DISTINCT ( + 72 ) * - ( 59 )
----
-4248

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT DISTINCT ( - 68 ), - 72 * - - 18 + + MIN( 3 ) AS col1
----
-68
-1293

skipif mysql # not compatible
query II rowsort label-4072
SELECT DISTINCT ( - 68 ), - 72 * - - 18 + + MIN ( 3 ) AS col1
----
-68
-1293

query I rowsort
SELECT - 71 + + 72
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL + COALESCE ( - + 15, 98 + + 5 + - CAST( NULL AS SIGNED ), - COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + COALESCE ( - + 15, 98 + + 5 + - CAST ( NULL AS INTEGER ), - COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT + COUNT( ALL + ( 4 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + COUNT ( ALL + ( 4 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4076
SELECT ALL + 77 DIV - 84 - - COUNT( * ) AS col1, - 65 * - COALESCE ( - ( - 59 ), 87 ) + + 7 * - ( 5 )
----
1
3800

skipif mysql # not compatible
query II rowsort label-4076
SELECT ALL + 77 / - 84 - - COUNT ( * ) AS col1, - 65 * - COALESCE ( - ( - 59 ), 87 ) + + 7 * - ( 5 )
----
1
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - 65 * - 26 * COUNT( * )
----
1690

skipif mysql # not compatible
query I rowsort label-4077
SELECT - 65 * - 26 * COUNT ( * )
----
1690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT + 83 * + 77 + COUNT( * ) DIV - ( 36 ) AS col0
----
6391

skipif mysql # not compatible
query I rowsort label-4078
SELECT + 83 * + 77 + COUNT ( * ) / - ( 36 ) AS col0
----
6391

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT DISTINCT - 11 DIV - + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - 11 / - + 28 AS col1
----
0

query I rowsort
SELECT ALL - 93 * - 12
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - 29 + - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4081
SELECT - 29 + - COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT ALL + COUNT( ALL - - 33 ), + 15 * - 34 AS col2
----
1
-510

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL + COUNT ( ALL - - 33 ), + 15 * - 34 AS col2
----
1
-510

query I rowsort
SELECT - COALESCE ( + - 12, - 91 ) * 68 col0
----
816

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4084
SELECT DISTINCT 83 DIV + - CAST( - 24 AS SIGNED ) + - 83 + - 86 col0
----
-166

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT 83 / + - CAST ( - 24 AS INTEGER ) + - 83 + - 86 col0
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT DISTINCT + 48 * 62, COUNT( * ) * + 7 AS col0
----
2976
7

skipif mysql # not compatible
query II rowsort label-4085
SELECT DISTINCT + 48 * 62, COUNT ( * ) * + 7 AS col0
----
2976
7

query I rowsort
SELECT ALL + + 21 col0
----
21

query I rowsort
SELECT + CASE + + 23 WHEN 22 THEN - - 53 ELSE 64 END AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT ALL + COALESCE ( 85, 16 * - NULLIF ( - 53, - COUNT( * ) * - 48 + - MAX( + 88 ) ), 23 + + 62 DIV 81 ) * - 94 + + ( CASE + COUNT( * ) WHEN COUNT( * ) THEN + ( - 38 ) WHEN 10 THEN 2 WHEN - COUNT( * ) THEN NULL ELSE NULL END ) AS col1
----
-8028

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + COALESCE ( 85, 16 * - NULLIF ( - 53, - COUNT ( * ) * - 48 + - MAX ( + 88 ) ), 23 + + 62 / 81 ) * - 94 + + ( CASE + COUNT ( * ) WHEN COUNT ( * ) THEN + ( - 38 ) WHEN 10 THEN 2 WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) AS col1
----
-8028

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT - 87 + 37 DIV ( - + ( - 23 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4089
SELECT - 87 + 37 / ( - + ( - 23 ) ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL + + 9 + + - MIN( ALL - ( + 99 ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL + + 9 + + - MIN ( ALL - ( + 99 ) ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT 83 - COUNT( DISTINCT - - 66 )
----
82

skipif mysql # not compatible
query I rowsort label-4091
SELECT 83 - COUNT ( DISTINCT - - 66 )
----
82

query I rowsort
SELECT - - 73 * - 94 * + 88 + - 93 - - 99
----
-603850

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT DISTINCT - 22 + 35 + 55 + - 33 DIV + - ( 50 ) * + 75 - + 25 * 71 DIV ( 60 )
----
39

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT - 22 + 35 + 55 + - 33 / + - ( 50 ) * + 75 - + 25 * 71 / ( 60 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT - + COALESCE ( + CAST( NULL AS SIGNED ), 18 + COUNT( * ) - + + 86 - - - COALESCE ( MAX( ALL - 37 ), - 54, - SUM( DISTINCT - 21 ) + + COUNT( * ) ) * - ( 22 ), - SUM( 65 ) * 55 ) AS col0
----
881

skipif mysql # not compatible
query I rowsort label-4094
SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), 18 + COUNT ( * ) - + + 86 - - - COALESCE ( MAX ( ALL - 37 ), - 54, - SUM ( DISTINCT - 21 ) + + COUNT ( * ) ) * - ( 22 ), - SUM ( 65 ) * 55 ) AS col0
----
881

query I rowsort
SELECT ALL - ( - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT - COUNT( * ) + - + 63
----
-64

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT - COUNT ( * ) + - + 63
----
-64

query I rowsort
SELECT 52 * - - 98 * + - 87 AS col2
----
-443352

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT 70 * 83 - - COUNT( - 62 ) + 10 + - + 96
----
5725

skipif mysql # not compatible
query I rowsort label-4098
SELECT 70 * 83 - - COUNT ( - 62 ) + 10 + - + 96
----
5725

query I rowsort
SELECT 32 * - - 93
----
2976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT COUNT( * ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT COUNT ( * ) / 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL CAST( NULL AS SIGNED ) - + 1 - - - COUNT( * ) * - ( - AVG ( ALL + 8 ) ) * - NULLIF ( - 30, + 22 * 75 ) + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL CAST ( NULL AS INTEGER ) - + 1 - - - COUNT ( * ) * - ( - AVG ( ALL + 8 ) ) * - NULLIF ( - 30, + 22 * 75 ) + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4102
SELECT DISTINCT 92 AS col2, 15 * 88 + + - 32 DIV - COUNT( * ) + - SUM( 72 ) - - + 47 * - COUNT( * ) AS col2
----
92
1233

skipif mysql # not compatible
query II rowsort label-4102
SELECT DISTINCT 92 AS col2, 15 * 88 + + - 32 / - COUNT ( * ) + - SUM ( 72 ) - - + 47 * - COUNT ( * ) AS col2
----
92
1233

query II rowsort
SELECT ALL 45, - 22 AS col1
----
45
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT CAST( NULL AS SIGNED ) * - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT CAST ( NULL AS INTEGER ) * - - 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT DISTINCT 50 AS col1, + COUNT( * ) - - 39 col0
----
50
40

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT 50 AS col1, + COUNT ( * ) - - 39 col0
----
50
40

query I rowsort
SELECT DISTINCT 12 * + 91
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT 36 + + CASE 62 WHEN SUM( ALL + 46 ) + - 11 THEN + + COUNT( * ) / + 44 WHEN COUNT( * ) * + 66 THEN NULL WHEN COUNT( * ) * + 83 THEN NULL ELSE NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT 36 + + CASE 62 WHEN SUM ( ALL + 46 ) + - 11 THEN + + COUNT ( * ) / + 44 WHEN COUNT ( * ) * + 66 THEN NULL WHEN COUNT ( * ) * + 83 THEN NULL ELSE NULL END * 48
----
NULL

query I rowsort
SELECT 72 * - 60
----
-4320

query I rowsort
SELECT ALL 47 * 49 AS col0
----
2303

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT - 42 DIV + 33 + 9
----
8

skipif mysql # not compatible
query I rowsort label-4110
SELECT - 42 / + 33 + 9
----
8

query II rowsort
SELECT + 69 AS col2, 14 AS col2
----
69
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4112
SELECT 55 + + 32 * NULLIF ( + - CAST( + 83 AS SIGNED ), + 36 ), 35 / - 60 * COUNT( * ) - 51 * + CAST( NULL AS SIGNED ) AS col0
----
-2601
NULL

skipif mysql # not compatible
query II rowsort label-4112
SELECT 55 + + 32 * NULLIF ( + - CAST ( + 83 AS INTEGER ), + 36 ), 35 / - 60 * COUNT ( * ) - 51 * + CAST ( NULL AS INTEGER ) AS col0
----
-2601
NULL

query I rowsort
SELECT ALL 94 * 58 * + + 8 * - - 85
----
3707360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL 11 + COUNT( ALL - COALESCE ( + 19, - CAST( 74 AS SIGNED ), + 64 * + - 47 - - COALESCE ( - 39, 88 ) * - 23 ) ) - 84
----
-72

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL 11 + COUNT ( ALL - COALESCE ( + 19, - CAST ( 74 AS INTEGER ), + 64 * + - 47 - - COALESCE ( - 39, 88 ) * - 23 ) ) - 84
----
-72

query I rowsort
SELECT ALL - COALESCE ( - 35, - - 87 * + - 39 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL + COUNT( * ) + + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + COUNT ( * ) + + 11 AS col0
----
12

query I rowsort
SELECT DISTINCT 5 + + 42
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4118
SELECT 57 DIV + + SUM( DISTINCT - 99 ) AS col1, - 98 DIV + - 80 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-4118
SELECT 57 / + + SUM ( DISTINCT - 99 ) AS col1, - 98 / + - 80 AS col0
----
0
1

query I rowsort
SELECT DISTINCT 27 + + - COALESCE ( 25, + 82 + 53 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT 18 + 17 + - 16 * + + COUNT( * ) + 44
----
63

skipif mysql # not compatible
query I rowsort label-4120
SELECT 18 + 17 + - 16 * + + COUNT ( * ) + 44
----
63

query I rowsort
SELECT 6 * 35 AS col1
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT 47 AS col1, MIN( 62 ) + + 21 col1
----
47
83

skipif mysql # not compatible
query II rowsort label-4122
SELECT 47 AS col1, MIN ( 62 ) + + 21 col1
----
47
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL - + 44 * - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - + 44 * - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT - + COUNT( * ) + - 66 * - - 25
----
-1651

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT - + COUNT ( * ) + - 66 * - - 25
----
-1651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - + ( - + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - COUNT( * ) + - ( 29 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - COUNT ( * ) + - ( 29 ) col2
----
-30

query II rowsort
SELECT 90, 50 + + 40
----
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT - NULLIF ( - - MIN( + 21 ), ( + 84 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - NULLIF ( - - MIN ( + 21 ), ( + 84 ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT - - COUNT( * ) - - 4 + CASE + 49 WHEN + 88 + CASE - + 32 WHEN MIN( + 75 ) * 82 THEN NULL WHEN 63 * - 71 THEN 42 + 21 ELSE NULL END THEN + 32 ELSE NULL END * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - - COUNT ( * ) - - 4 + CASE + 49 WHEN + 88 + CASE - + 32 WHEN MIN ( + 75 ) * 82 THEN NULL WHEN 63 * - 71 THEN 42 + 21 ELSE NULL END THEN + 32 ELSE NULL END * 22 AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + ( 25 ), + 88 ) - - + 73 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT - COALESCE ( - 72, + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - COALESCE ( - 72, + COUNT ( * ) )
----
72

query I rowsort
SELECT + 54 + + 21 * - ( 49 ) * + 21 - + - 89 AS col0
----
-21466

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - - MAX( ALL + 43 ) * 28 - - COALESCE ( 48, + 58 + 29 )
----
1252

skipif mysql # not compatible
query I rowsort label-4134
SELECT - - MAX ( ALL + 43 ) * 28 - - COALESCE ( 48, + 58 + 29 )
----
1252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4135
SELECT CAST( + - 79 AS SIGNED ) + 61 + + 45 DIV + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4135
SELECT CAST ( + - 79 AS INTEGER ) + 61 + + 45 / + COUNT ( * ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4136
SELECT ALL COUNT( * ) - 16 AS col2, 16 + - 25 DIV + CAST( ( + 78 ) AS SIGNED ) AS col1
----
-15
16

skipif mysql # not compatible
query II rowsort label-4136
SELECT ALL COUNT ( * ) - 16 AS col2, 16 + - 25 / + CAST ( ( + 78 ) AS INTEGER ) AS col1
----
-15
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL SUM( ALL + + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL SUM ( ALL + + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT ALL - NULLIF ( - COUNT( DISTINCT 83 ), - - 13 ) DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - NULLIF ( - COUNT ( DISTINCT 83 ), - - 13 ) / + 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT 46 + 77 * + CAST( + - 39 AS SIGNED )
----
-2957

skipif mysql # not compatible
query I rowsort label-4139
SELECT 46 + 77 * + CAST ( + - 39 AS INTEGER )
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL - ( COUNT( ALL + 84 ) ) * + ( + - CASE - ( - 10 ) WHEN + ( COUNT( * ) ) THEN NULL ELSE 22 * 70 + - 40 END )
----
1500

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - ( COUNT ( ALL + 84 ) ) * + ( + - CASE - ( - 10 ) WHEN + ( COUNT ( * ) ) THEN NULL ELSE 22 * 70 + - 40 END )
----
1500

query I rowsort
SELECT ( 30 ) + - - 83
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT + 11 * 81 DIV 81 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + 11 * 81 / 81 AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4143
SELECT 30 DIV + 26, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-4143
SELECT 30 / + 26, - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - SUM( + - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4144
SELECT - SUM ( + - 88 )
----
88

query I rowsort
SELECT 75 + 8 AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT ALL 6 + + 36 AS col0, COUNT( * ) + 86 AS col2
----
42
87

skipif mysql # not compatible
query II rowsort label-4146
SELECT ALL 6 + + 36 AS col0, COUNT ( * ) + 86 AS col2
----
42
87

query I rowsort
SELECT 81 + - 82 + - - 37 - + CASE - 34 WHEN - 55 THEN - + 73 WHEN + 89 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT COUNT( + 20 ) * NULLIF ( - + 50, + 73 ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( + 20 ) * NULLIF ( - + 50, + 73 ) col2
----
-50

query I rowsort
SELECT ALL - 39 + + 31
----
-8

query I rowsort
SELECT + 28 * - + 41 * - 27 * - 70 * 26 AS col2
----
-56412720

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT COUNT( * ) * 61 + CASE + 28 WHEN - COUNT( * ) * - 89 THEN ( 35 ) WHEN - + 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT COUNT ( * ) * 61 + CASE + 28 WHEN - COUNT ( * ) * - 89 THEN ( 35 ) WHEN - + 44 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 43 * + 48 + + + 16
----
2080

query I rowsort
SELECT + NULLIF ( - 68, - - 28 * 50 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + + 8 * + COUNT( - 63 ) * - 87 * - + 55 + + 54 AS col1
----
38334

skipif mysql # not compatible
query I rowsort label-4154
SELECT + + 8 * + COUNT ( - 63 ) * - 87 * - + 55 + + 54 AS col1
----
38334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT - + 92 * 47 + + 28 * + 55 + + - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - + 92 * 47 + + 28 * + 55 + + - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT + COUNT( * ) * + 70, NULLIF ( ( - 75 ), + 74 ) AS col1
----
70
-75

skipif mysql # not compatible
query II rowsort label-4156
SELECT + COUNT ( * ) * + 70, NULLIF ( ( - 75 ), + 74 ) AS col1
----
70
-75

query I rowsort
SELECT - + 35 * - 77 * + 54 + + 16 AS col2
----
145546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT 0 * + 78 + + - 6 * - 13 - - CAST( 3 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT 0 * + 78 + + - 6 * - 13 - - CAST ( 3 AS INTEGER )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - COUNT( * ) * - 23 + + ( + - ( 88 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-4159
SELECT - COUNT ( * ) * - 23 + + ( + - ( 88 ) )
----
-65

query I rowsort
SELECT - 8 + + 44
----
36

query I rowsort
SELECT DISTINCT + - 77 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT - 51 * + 34 * + CASE COUNT( * ) WHEN - - SUM( 2 ) THEN NULL ELSE + 93 END + 86 + + CAST( + COUNT( * ) AS SIGNED ) * 6
----
-161170

skipif mysql # not compatible
query I rowsort label-4162
SELECT - 51 * + 34 * + CASE COUNT ( * ) WHEN - - SUM ( 2 ) THEN NULL ELSE + 93 END + 86 + + CAST ( + COUNT ( * ) AS INTEGER ) * 6
----
-161170

query I rowsort
SELECT ALL + - 24 * - - 70 col0
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - - CASE - - 71 WHEN 89 + SUM( + 76 ) + 34 + 58 - - 31 + - 36 / 66 * COUNT( * ) / + CASE + 99 WHEN + 17 THEN NULL WHEN - 41 THEN 9 * ( - 1 ) END THEN 72 WHEN - 15 * 22 THEN NULL END * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - - CASE - - 71 WHEN 89 + SUM ( + 76 ) + 34 + 58 - - 31 + - 36 / 66 * COUNT ( * ) / + CASE + 99 WHEN + 17 THEN NULL WHEN - 41 THEN 9 * ( - 1 ) END THEN 72 WHEN - 15 * 22 THEN NULL END * 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT ( COALESCE ( + 29, 44, NULLIF ( + - SUM( DISTINCT - 80 ), + NULLIF ( 54, 42 * COUNT( * ) ) ), + COALESCE ( - 7, 39 + 92 ) * COUNT( * ) ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT ( COALESCE ( + 29, 44, NULLIF ( + - SUM ( DISTINCT - 80 ), + NULLIF ( 54, 42 * COUNT ( * ) ) ), + COALESCE ( - 7, 39 + 92 ) * COUNT ( * ) ) ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT SUM( + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT SUM ( + - 86 )
----
-86

query I rowsort
SELECT ALL ( - 80 ) AS col0
----
-80

query I rowsort
SELECT DISTINCT ( - - 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL - COUNT( * ) * - 92 * 66
----
6072

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - COUNT ( * ) * - 92 * 66
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT COALESCE ( + 85, + 88 * 57 + - - 11 * + MIN( DISTINCT 72 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT COALESCE ( + 85, + 88 * 57 + - - 11 * + MIN ( DISTINCT 72 ) ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT ALL + 70 + + - ( 85 ) DIV - + 46
----
71

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + 70 + + - ( 85 ) / - + 46
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - COUNT( * ) * ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4172
SELECT - COUNT ( * ) * ( - COUNT ( * ) )
----
1

query I rowsort
SELECT - 12 * + + 23
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT + COUNT( * ) + - - 54 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + COUNT ( * ) + - - 54 AS col0
----
55

query I rowsort
SELECT ALL - 34 + + ( - - 34 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT + 80 * - + MIN( DISTINCT 83 ) * + COUNT( * ) AS col2
----
-6640

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT + 80 * - + MIN ( DISTINCT 83 ) * + COUNT ( * ) AS col2
----
-6640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT - 52 + CAST( - 40 AS SIGNED ) DIV - NULLIF ( - 16, 2 + - 96 DIV 1 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - 52 + CAST ( - 40 AS INTEGER ) / - NULLIF ( - 16, 2 + - 96 / 1 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT SUM( ALL + - COALESCE ( + 85, 58 * - 90 * + 44 ) ) * - 90
----
7650

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT SUM ( ALL + - COALESCE ( + 85, 58 * - 90 * + 44 ) ) * - 90
----
7650

query I rowsort
SELECT ALL 53 + ( - 71 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT COUNT( * ) + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT COUNT ( * ) + - 49
----
-48

query I rowsort
SELECT DISTINCT + 80 * 4 AS col0
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - COUNT( * ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-4182
SELECT - COUNT ( * ) + + 50
----
49

query I rowsort
SELECT DISTINCT + 62 * - 75 AS col1
----
-4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4184
SELECT - 22 + - + CAST( NULL AS DECIMAL ) + 67 * - CAST( + 11 AS SIGNED ) + + NULLIF ( - 97, + 45 * + COALESCE ( + - 14, + 96 ) * 74 + COUNT( * ) * 83 + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT - 22 + - + CAST ( NULL AS REAL ) + 67 * - CAST ( + 11 AS INTEGER ) + + NULLIF ( - 97, + 45 * + COALESCE ( + - 14, + 96 ) * 74 + COUNT ( * ) * 83 + 17 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT + + COUNT( * ) DIV + - 85 * + 53 DIV - - 10 + - - 73 + + ( + + COALESCE ( - 11, + + COUNT( - ( 12 ) ) + - 99, 36 DIV - 80 + 67 ) ) DIV 13 + + 66 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-4185
SELECT + + COUNT ( * ) / + - 85 * + 53 / - - 10 + - - 73 + + ( + + COALESCE ( - 11, + + COUNT ( - ( 12 ) ) + - 99, 36 / - 80 + 67 ) ) / 13 + + 66 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT - 86 * + + COALESCE ( COUNT( - 21 ), 78 ) * - 14 - + - 72 * - + 38 * + + CASE - + CAST( - ( 91 ) AS SIGNED ) WHEN + COUNT( * ) THEN 28 * 50 END + + 58 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT - 86 * + + COALESCE ( COUNT ( - 21 ), 78 ) * - 14 - + - 72 * - + 38 * + + CASE - + CAST ( - ( 91 ) AS INTEGER ) WHEN + COUNT ( * ) THEN 28 * 50 END + + 58 / - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT - 93 DIV 81 - + COALESCE ( 53, + 4 )
----
-54

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - 93 / 81 - + COALESCE ( 53, + 4 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT DISTINCT 48 DIV - 17 + - 17 - 41 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT 48 / - 17 + - 17 - 41 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4189
SELECT DISTINCT - COUNT( * ) DIV + - 76 + - + 24 - MAX( + + 36 )
----
-60

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - COUNT ( * ) / + - 76 + - + 24 - MAX ( + + 36 )
----
-60

query I rowsort
SELECT DISTINCT + - 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + - MIN( DISTINCT + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-4191
SELECT + - MIN ( DISTINCT + 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4192
SELECT 21 DIV - COUNT( ALL + - 50 ) + + + ( - COUNT( * ) ) col2, - 16 * - 53 * ( + CAST( NULLIF ( - COUNT( * ), - COALESCE ( CAST( + 72 AS SIGNED ), - 80 + - 6 ) DIV + 97 + 74 ) AS SIGNED ) ) + - 98
----
-22
-946

skipif mysql # not compatible
query II rowsort label-4192
SELECT 21 / - COUNT ( ALL + - 50 ) + + + ( - COUNT ( * ) ) col2, - 16 * - 53 * ( + CAST ( NULLIF ( - COUNT ( * ), - COALESCE ( CAST ( + 72 AS INTEGER ), - 80 + - 6 ) / + 97 + 74 ) AS INTEGER ) ) + - 98
----
-22
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT + - COALESCE ( + 70, COUNT( * ) + 23 * COUNT( * ) + 10 + + MAX( 4 ) + + 47, + SUM( ALL 8 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + - COALESCE ( + 70, COUNT ( * ) + 23 * COUNT ( * ) + 10 + + MAX ( 4 ) + + 47, + SUM ( ALL 8 ) )
----
-70

query II rowsort
SELECT ALL + 79, - 32 * - + 59 col2
----
79
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL - COUNT( * ) * 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - COUNT ( * ) * 67 AS col1
----
-67

query I rowsort
SELECT + - 35 * 85
----
-2975

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + 83 * - ( COUNT( * ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 83 * - ( COUNT ( * ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL + - ( - SUM( + 29 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL + - ( - SUM ( + 29 ) ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + COUNT( * ) * - 5 col1
----
-5

skipif mysql # not compatible
query I rowsort label-4199
SELECT + COUNT ( * ) * - 5 col1
----
-5

query I rowsort
SELECT + 43 * + 90 AS col0
----
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + NULLIF ( COUNT( * ), - 90 + - 45 ) * - + 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4201
SELECT + NULLIF ( COUNT ( * ), - 90 + - 45 ) * - + 68 AS col1
----
-68

query I rowsort
SELECT + 36 + - 89 AS col1
----
-53

query II rowsort
SELECT - 43 AS col0, + 62 AS col1
----
-43
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4204
SELECT COUNT( * ) AS col0, + 65 AS col2
----
1
65

skipif mysql # not compatible
query II rowsort label-4204
SELECT COUNT ( * ) AS col0, + 65 AS col2
----
1
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT - CAST( NULL AS SIGNED ) - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT - CAST ( NULL AS INTEGER ) - - 38
----
NULL

query II rowsort
SELECT ALL + 66 * 35 AS col1, - COALESCE ( ( - 37 ), + 61, - + 54 )
----
2310
37

query I rowsort
SELECT ALL ( + - ( - 62 ) ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT - 65 + MAX( DISTINCT + 90 ) + + - CAST( - - 56 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-4208
SELECT - 65 + MAX ( DISTINCT + 90 ) + + - CAST ( - - 56 AS INTEGER )
----
-31

query I rowsort
SELECT ALL - 39 + 48
----
9

query I rowsort
SELECT 81 + + 59
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL + 3 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + 3 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT + 94 + - ( - + COUNT( DISTINCT + ( - - 5 ) ) ) + - + 22
----
73

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT + 94 + - ( - + COUNT ( DISTINCT + ( - - 5 ) ) ) + - + 22
----
73

query I rowsort
SELECT 0 + + 30
----
30

query I rowsort
SELECT ALL + 76 + + + 11
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT 71 * - MIN( ALL 22 )
----
-1562

skipif mysql # not compatible
query I rowsort label-4215
SELECT 71 * - MIN ( ALL 22 )
----
-1562

query II rowsort
SELECT 6 * 35 AS col0, 95
----
210
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT 9 + - + SUM( - 98 ) + + 99 * 31 * + 95 * + 6
----
1749437

skipif mysql # not compatible
query I rowsort label-4217
SELECT 9 + - + SUM ( - 98 ) + + 99 * 31 * + 95 * + 6
----
1749437

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4218
SELECT 10, + 12 * - - 50 * - + 20 + 27 + + + CAST( NULL AS SIGNED ) col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4218
SELECT 10, + 12 * - - 50 * - + 20 + 27 + + + CAST ( NULL AS INTEGER ) col1
----
10
NULL

query I rowsort
SELECT 16 + 28
----
44

query II rowsort
SELECT ALL - 60, 33 AS col0
----
-60
33

query II rowsort
SELECT - - 4 col2, - 52 + + + 57 - 55
----
4
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT COUNT( * ) * + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4222
SELECT COUNT ( * ) * + 28 AS col0
----
28

query II rowsort
SELECT + 71 AS col2, 73 AS col2
----
71
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL - - 62 - + + CAST( NULL AS SIGNED ) * - + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - - 62 - + + CAST ( NULL AS INTEGER ) * - + 91 AS col0
----
NULL

query I rowsort
SELECT ALL + + 58 * + 24 AS col2
----
1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT DISTINCT + - 33 * - CAST( - COUNT( * ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + - 33 * - CAST ( - COUNT ( * ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT + 27 AS col1, COUNT( + 32 )
----
27
1

skipif mysql # not compatible
query II rowsort label-4227
SELECT + 27 AS col1, COUNT ( + 32 )
----
27
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT ALL - - 23, + COUNT( * ) AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-4228
SELECT ALL - - 23, + COUNT ( * ) AS col0
----
23
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT - 97 - CAST( NULL AS SIGNED ) * 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT - 97 - CAST ( NULL AS INTEGER ) * 30 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT 50 DIV + - 34
----
-1

skipif mysql # not compatible
query I rowsort label-4230
SELECT 50 / + - 34
----
-1

query II rowsort
SELECT 58 AS col2, + 87 AS col0
----
58
87

query I rowsort
SELECT ALL + - ( + + 21 ) * - 7 AS col2
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT ALL - COUNT( * ) AS col2, + 74 + - ( + COUNT( DISTINCT - 19 ) ) - - 36 col0
----
-1
109

skipif mysql # not compatible
query II rowsort label-4233
SELECT ALL - COUNT ( * ) AS col2, + 74 + - ( + COUNT ( DISTINCT - 19 ) ) - - 36 col0
----
-1
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4234
SELECT 29 DIV 36 - + - 9 * + NULLIF ( + COUNT( * ), - - 84 ) AS col1, - 46
----
9
-46

skipif mysql # not compatible
query II rowsort label-4234
SELECT 29 / 36 - + - 9 * + NULLIF ( + COUNT ( * ), - - 84 ) AS col1, - 46
----
9
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL - 87 + - - COUNT( DISTINCT 5 ) * 41
----
-46

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - 87 + - - COUNT ( DISTINCT 5 ) * 41
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT ALL - ( - SUM( 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL - ( - SUM ( 37 ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4237
SELECT - 61 * + 85 * + ( - + CAST( NULL AS SIGNED ) ) * 97 + - CAST( - 70 AS DECIMAL ) + - 41 + NULLIF ( + + 71, - - 58 * CAST( NULL AS SIGNED ) ) + + 82 / + 30 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT - 61 * + 85 * + ( - + CAST ( NULL AS INTEGER ) ) * 97 + - CAST ( - 70 AS REAL ) + - 41 + NULLIF ( + + 71, - - 58 * CAST ( NULL AS INTEGER ) ) + + 82 / + 30 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 21 - + - 60
----
81

query I rowsort
SELECT DISTINCT - 85 + 72
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL NULLIF ( ( 75 ), + 54 ) + - COUNT( * ) + 79 * 4 * + 57 AS col2
----
18086

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL NULLIF ( ( 75 ), + 54 ) + - COUNT ( * ) + 79 * 4 * + 57 AS col2
----
18086

query I rowsort
SELECT ALL 31 + 89 col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT COUNT( * ) * SUM( ALL - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4242
SELECT COUNT ( * ) * SUM ( ALL - 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT DISTINCT 48 * + + 79 AS col0, - COUNT( * ) AS col2
----
3792
-1

skipif mysql # not compatible
query II rowsort label-4243
SELECT DISTINCT 48 * + + 79 AS col0, - COUNT ( * ) AS col2
----
3792
-1

query I rowsort
SELECT ALL 83 * - 15 AS col0
----
-1245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT ( + + CAST( NULL AS SIGNED ) ) * CAST( - 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ( + + CAST ( NULL AS INTEGER ) ) * CAST ( - 16 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4246
SELECT ALL 77 + - 51 AS col0, - 16 + - + COUNT( * ) AS col1
----
26
-17

skipif mysql # not compatible
query II rowsort label-4246
SELECT ALL 77 + - 51 AS col0, - 16 + - + COUNT ( * ) AS col1
----
26
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4247
SELECT ALL 47 * + CASE - 58 WHEN + - CAST( NULL AS SIGNED ) + COUNT( * ) + CAST( + + 47 AS SIGNED ) - + COALESCE ( - 85, - CASE 29 WHEN + - COUNT( * ) THEN 79 DIV + 51 WHEN + 47 THEN NULL WHEN - 26 THEN - 81 ELSE + COUNT( * ) END, CASE + CAST( - 70 AS DECIMAL ) WHEN + 97 * - COUNT( * ) THEN NULL WHEN 99 THEN - COUNT( * ) WHEN COUNT( * ) + + 62 THEN - 24 DIV + 88 + + 95 DIV - 87 END * 39 + CAST( NULL AS SIGNED ) ) + - 66 DIV - 33 THEN 13 WHEN - ( 49 ) + 25 THEN NULL ELSE - 12 - + CASE - COALESCE ( - 63, 56, - NULLIF ( 85, COUNT( * ) DIV + 91 + 7 ) ) + + 6 WHEN - COALESCE ( + 52, 10 DIV - 61 ) * + 89 THEN NULL WHEN 88 THEN NULL ELSE 97 DIV + 26 END END
----
-705

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL 47 * + CASE - 58 WHEN + - CAST ( NULL AS INTEGER ) + COUNT ( * ) + CAST ( + + 47 AS INTEGER ) - + COALESCE ( - 85, - CASE 29 WHEN + - COUNT ( * ) THEN 79 / + 51 WHEN + 47 THEN NULL WHEN - 26 THEN - 81 ELSE + COUNT ( * ) END, CASE + CAST ( - 70 AS REAL ) WHEN + 97 * - COUNT ( * ) THEN NULL WHEN 99 THEN - COUNT ( * ) WHEN COUNT ( * ) + + 62 THEN - 24 / + 88 + + 95 / - 87 END * 39 + CAST ( NULL AS INTEGER ) ) + - 66 / - 33 THEN 13 WHEN - ( 49 ) + 25 THEN NULL ELSE - 12 - + CASE - COALESCE ( - 63, 56, - NULLIF ( 85, COUNT ( * ) / + 91 + 7 ) ) + + 6 WHEN - COALESCE ( + 52, 10 / - 61 ) * + 89 THEN NULL WHEN 88 THEN NULL ELSE 97 / + 26 END END
----
-705

query I rowsort
SELECT 81 * - ( 11 )
----
-891

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT 65 * 10, - MIN( DISTINCT - 63 ) AS col2
----
650
63

skipif mysql # not compatible
query II rowsort label-4249
SELECT 65 * 10, - MIN ( DISTINCT - 63 ) AS col2
----
650
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4250
SELECT ALL 17 DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL 17 / - 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4251
SELECT 71 - COUNT( * ) + + 88 DIV - 13 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4251
SELECT 71 - COUNT ( * ) + + 88 / - 13 AS col2
----
64

query I rowsort
SELECT 6 * ( - 13 ) AS col2
----
-78

query I rowsort
SELECT 16 * 74
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - COUNT( * ) * 75
----
-75

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - COUNT ( * ) * 75
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL 81 DIV 5
----
16

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL 81 / 5
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT 96 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-4256
SELECT 96 / + 83
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT ALL + 34 * 6 DIV - ( + 80 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + 34 * 6 / - ( + 80 ) col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4258
SELECT ALL + + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT COUNT( * ) * + - 26 * - - 77 AS col2
----
-2002

skipif mysql # not compatible
query I rowsort label-4259
SELECT COUNT ( * ) * + - 26 * - - 77 AS col2
----
-2002

query I rowsort
SELECT - ( + 23 ) * 53 AS col0
----
-1219

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT 75 + + 82 DIV - 92 - + 51 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4261
SELECT 75 + + 82 / - 92 - + 51 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT - 47 / ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) - 20 + 8 + 16 - + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 47 / ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) - 20 + 8 + 16 - + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT + 39 * - SUM( ALL + 34 ) * + + 93 + + 77 - 47
----
-123288

skipif mysql # not compatible
query I rowsort label-4263
SELECT + 39 * - SUM ( ALL + 34 ) * + + 93 + + 77 - 47
----
-123288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT + 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 4 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 67 + + + 74 AS col0, 80 AS col2
----
141
80

query I rowsort
SELECT ALL + 8 * - 71 * + + 33 + + 52
----
-18692

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT - ( + 88 ) * + 65 * + MIN( ALL - 85 ) * 90 + + 18 + COALESCE ( - 3, - + 84 - - + 93 ) AS col2
----
43758015

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT - ( + 88 ) * + 65 * + MIN ( ALL - 85 ) * 90 + + 18 + COALESCE ( - 3, - + 84 - - + 93 ) AS col2
----
43758015

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + - NULLIF ( COUNT( * ), - - 54 + - 70 ) * - + 64 + + - 33 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4268
SELECT + - NULLIF ( COUNT ( * ), - - 54 + - 70 ) * - + 64 + + - 33 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT CASE - - COUNT( * ) WHEN + COUNT( * ) + + 62 THEN - COUNT( * ) END - - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT CASE - - COUNT ( * ) WHEN + COUNT ( * ) + + 62 THEN - COUNT ( * ) END - - 4 AS col2
----
NULL

query II rowsort
SELECT + 81, - 46 AS col0
----
81
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT COUNT( ALL 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4271
SELECT COUNT ( ALL 81 ) AS col1
----
1

query I rowsort
SELECT 46 * 7 col1
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT COUNT( ALL - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT COUNT ( ALL - 6 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT + 38 AS col2, + ( - 89 ) + + SUM( + 89 ) AS col0
----
38
0

skipif mysql # not compatible
query II rowsort label-4274
SELECT + 38 AS col2, + ( - 89 ) + + SUM ( + 89 ) AS col0
----
38
0

query I rowsort
SELECT ALL 1 + - + 73
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT - COUNT( * ) * + + 0 * + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT - COUNT ( * ) * + + 0 * + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + 18 * + 58 * + COUNT( * )
----
1044

skipif mysql # not compatible
query I rowsort label-4277
SELECT + 18 * + 58 * + COUNT ( * )
----
1044

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT + 4 AS col0, + 53 * MAX( + 9 ) + COALESCE ( + + ( SUM( DISTINCT - 7 ) ), - 71 + - 21 )
----
4
470

skipif mysql # not compatible
query II rowsort label-4278
SELECT + 4 AS col0, + 53 * MAX ( + 9 ) + COALESCE ( + + ( SUM ( DISTINCT - 7 ) ), - 71 + - 21 )
----
4
470

query I rowsort
SELECT ALL - 76 - + - ( + 54 ) * + 44 * + 63 AS col1
----
149612

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT COUNT( * ) * + CASE - 57 WHEN - - 29 THEN AVG ( ALL - 12 ) WHEN + 46 / + 18 THEN + COUNT( 50 ) * 95 WHEN - 86 THEN - + 56 END * MIN( ALL 5 + + 94 ) + MAX( ALL 71 + + 38 ) * + 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT COUNT ( * ) * + CASE - 57 WHEN - - 29 THEN AVG ( ALL - 12 ) WHEN + 46 / + 18 THEN + COUNT ( 50 ) * 95 WHEN - 86 THEN - + 56 END * MIN ( ALL 5 + + 94 ) + MAX ( ALL 71 + + 38 ) * + 44 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4281
SELECT 35 AS col2, COALESCE ( + 47, 93, + ( 35 ) DIV COUNT( * ) * 31 DIV + + 73 ) * 17 AS col1
----
35
799

skipif mysql # not compatible
query II rowsort label-4281
SELECT 35 AS col2, COALESCE ( + 47, 93, + ( 35 ) / COUNT ( * ) * 31 / + + 73 ) * 17 AS col1
----
35
799

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - 83 * - 75 * 70 * - + ( SUM( ALL 57 ) ) - 36 + + + 39
----
-24837747

skipif mysql # not compatible
query I rowsort label-4282
SELECT - 83 * - 75 * 70 * - + ( SUM ( ALL 57 ) ) - 36 + + + 39
----
-24837747

query I rowsort
SELECT - 0 + + 66
----
66

query I rowsort
SELECT + ( - 71 ) + - 85 AS col1
----
-156

query I rowsort
SELECT DISTINCT - 58 - - - 98 + 11 * CASE - 41 WHEN 28 THEN + 85 END
----
NULL

query I rowsort
SELECT + 69 + - 72 AS col2
----
-3

query I rowsort
SELECT DISTINCT + ( + 14 ) * 67 * - CASE 34 WHEN + 89 - - 55 THEN - - 64 END * 83 - + - 54 col2
----
NULL

query I rowsort
SELECT + 13 + - 92 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - COALESCE ( - 41, - - 90 + - + ( - + COUNT( * ) ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4289
SELECT - COALESCE ( - 41, - - 90 + - + ( - + COUNT ( * ) ) ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT + COUNT( * ) + - - 2
----
3

skipif mysql # not compatible
query I rowsort label-4290
SELECT + COUNT ( * ) + - - 2
----
3

query II rowsort
SELECT 70 AS col0, + 28
----
70
28

query I rowsort
SELECT ALL - 53 + - 65
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT + - CAST( NULL AS SIGNED ) * + 84 / ( 58 ) * - 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT + - CAST ( NULL AS INTEGER ) * + 84 / ( 58 ) * - 86 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 76, - 67 ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT - ( - 28 ) DIV + CAST( MIN( - 59 ) AS SIGNED ) + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - ( - 28 ) / + CAST ( MIN ( - 59 ) AS INTEGER ) + 68 AS col2
----
68

query I rowsort
SELECT ALL 72 + - - 79 + 10 * + 32 AS col0
----
471

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + + COUNT( * ) + - 71 + - 61 + ( + 12 ) - - 38 * + 87
----
3187

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + + COUNT ( * ) + - 71 + - 61 + ( + 12 ) - - 38 * + 87
----
3187

query I rowsort
SELECT DISTINCT - + 53 * - ( 58 ) AS col0
----
3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4299
SELECT DISTINCT + + 16 DIV + 34 + 0 + + + 88 * - - 67 * COUNT( COALESCE ( + + 68, + - 0 ) ) + - CASE - + 79 WHEN COUNT( * ) THEN 17 * - 88 WHEN + 68 DIV 86 THEN 0 DIV + 29 ELSE SUM( + 42 ) END * 7
----
5602

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT + + 16 / + 34 + 0 + + + 88 * - - 67 * COUNT ( COALESCE ( + + 68, + - 0 ) ) + - CASE - + 79 WHEN COUNT ( * ) THEN 17 * - 88 WHEN + 68 / 86 THEN 0 / + 29 ELSE SUM ( + 42 ) END * 7
----
5602

onlyif mysql # aggregate syntax: 
query II rowsort label-4300
SELECT + NULLIF ( - 17, - - 81 ), 28 * 96 * + COUNT( * ) AS col0
----
-17
2688

skipif mysql # not compatible
query II rowsort label-4300
SELECT + NULLIF ( - 17, - - 81 ), 28 * 96 * + COUNT ( * ) AS col0
----
-17
2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4301
SELECT - + COUNT( ALL CAST( NULL AS SIGNED ) ) * 68 col2, - COALESCE ( - + 40, 97, - 93 ) AS col2
----
0
40

skipif mysql # not compatible
query II rowsort label-4301
SELECT - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 68 col2, - COALESCE ( - + 40, 97, - 93 ) AS col2
----
0
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT DISTINCT 17 * + CAST( NULL AS SIGNED ) + + 3 + + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT 17 * + CAST ( NULL AS INTEGER ) + + 3 + + - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + - COUNT( * ) - 65
----
-66

skipif mysql # not compatible
query I rowsort label-4303
SELECT + - COUNT ( * ) - 65
----
-66

query I rowsort
SELECT ( 40 ) AS col1
----
40

query I rowsort
SELECT DISTINCT 37 * - + 36 + 51 * + 8 AS col0
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL COUNT( * ) * - 8 - NULLIF ( - 9, + 43 - + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL COUNT ( * ) * - 8 - NULLIF ( - 9, + 43 - + 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT - COUNT( * ) * - - COALESCE ( + 49, - 63 ) * + 41 - - - 86 col2
----
-2095

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT - COUNT ( * ) * - - COALESCE ( + 49, - 63 ) * + 41 - - - 86 col2
----
-2095

query I rowsort
SELECT + 61 * - + 46 + 54 col0
----
-2752

query I rowsort
SELECT DISTINCT 74 * + - 7 - - - 88 AS col0
----
-606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT + 30 * CAST( - 46 AS SIGNED ) * + 92 * + CAST( NULL AS SIGNED ) * + 68 * + 87 + + - 33 + COALESCE ( + 15, 97 + + COUNT( * ) - - - 56 / + 30, NULLIF ( 71, 99 * - COUNT( * ) + - 79 / 60 ) * ( 50 + CASE + CASE - 23 WHEN + 31 THEN NULL ELSE 80 * NULLIF ( 96, - COUNT( * ) ) END WHEN 61 * 77 + 98 THEN - 31 / 42 ELSE NULL END / - 8 ) ) / 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT + 30 * CAST ( - 46 AS INTEGER ) * + 92 * + CAST ( NULL AS INTEGER ) * + 68 * + 87 + + - 33 + COALESCE ( + 15, 97 + + COUNT ( * ) - - - 56 / + 30, NULLIF ( 71, 99 * - COUNT ( * ) + - 79 / 60 ) * ( 50 + CASE + CASE - 23 WHEN + 31 THEN NULL ELSE 80 * NULLIF ( 96, - COUNT ( * ) ) END WHEN 61 * 77 + 98 THEN - 31 / 42 ELSE NULL END / - 8 ) ) / 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT - COALESCE ( - 5, - 90 + - COUNT( * ) * + 88, - 69 ) + - + 12
----
-7

skipif mysql # not compatible
query I rowsort label-4311
SELECT - COALESCE ( - 5, - 90 + - COUNT ( * ) * + 88, - 69 ) + - + 12
----
-7

query I rowsort
SELECT DISTINCT + 35 * 65 * + 3 AS col1
----
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - 88 * + + ( + ( - 7 ) ) * COUNT( + 34 ) AS col1
----
616

skipif mysql # not compatible
query I rowsort label-4313
SELECT - 88 * + + ( + ( - 7 ) ) * COUNT ( + 34 ) AS col1
----
616

query I rowsort
SELECT NULLIF ( + 66, - + 92 ) AS col2
----
66

query I rowsort
SELECT - 94 * - 2
----
188

query I rowsort
SELECT - 28 * - - 2
----
-56

query I rowsort
SELECT - 58 * 9
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - - COUNT( ALL + 58 ) * - 67 col0
----
-67

skipif mysql # not compatible
query I rowsort label-4318
SELECT - - COUNT ( ALL + 58 ) * - 67 col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + - 63 * - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-4319
SELECT + - 63 * - COUNT ( * )
----
63

query I rowsort
SELECT - - 52 - - ( - 31 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT ALL ( + MIN( DISTINCT 17 ) ) * ( + NULLIF ( + 22, - + COUNT( * ) ) ), + ( + - COUNT( * ) ) - COUNT( * ) + - 32 AS col0
----
374
-34

skipif mysql # not compatible
query II rowsort label-4321
SELECT ALL ( + MIN ( DISTINCT 17 ) ) * ( + NULLIF ( + 22, - + COUNT ( * ) ) ), + ( + - COUNT ( * ) ) - COUNT ( * ) + - 32 AS col0
----
374
-34

query I rowsort
SELECT ALL + 82 + + - 7 * - - 62 * - + 86 AS col0
----
37406

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL + 71 + - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + 71 + - COUNT ( * ) AS col1
----
70

query I rowsort
SELECT ALL - + COALESCE ( + 81, + + 72 ) * 51 * - 94 AS col0
----
388314

query I rowsort
SELECT ALL - ( 24 ) + - - 60
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + - 11 - + - 70 + + COUNT( * ) * - 70 * - 84 AS col2
----
5939

skipif mysql # not compatible
query I rowsort label-4326
SELECT + - 11 - + - 70 + + COUNT ( * ) * - 70 * - 84 AS col2
----
5939

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL - MAX( + + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - MAX ( + + 29 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + + 56 + - + 48 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + + 56 + - + 48 * - 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT + + 36 - - - 26 DIV + NULLIF ( - 40, - 88 + + 80 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-4329
SELECT + + 36 - - - 26 / + NULLIF ( - 40, - 88 + + 80 ) col2
----
36

query I rowsort
SELECT - - 67 + - - ( - 86 ) col0
----
-19

query II rowsort
SELECT + ( + 30 ) AS col1, 81 * + 1
----
30
81

query I rowsort
SELECT + - 75 + + 98 * + - 35 AS col0
----
-3505

query I rowsort
SELECT + 50 * + + 29 AS col2
----
1450

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ALL 19 DIV + - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL 19 / + - 58 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4335
SELECT + 0 DIV + ( + COUNT( * ) ) + + ( - 58 ) + + 27 col1
----
-31

skipif mysql # not compatible
query I rowsort label-4335
SELECT + 0 / + ( + COUNT ( * ) ) + + ( - 58 ) + + 27 col1
----
-31

query I rowsort
SELECT DISTINCT + + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + 7 + + + COUNT( + + 98 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-4337
SELECT + 7 + + + COUNT ( + + 98 ) col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL 46 * - 36 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 46 * - 36 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT ALL 72 DIV 76 * - 27
----
0

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL 72 / 76 * - 27
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4340
SELECT DISTINCT - COALESCE ( - + 93, - 59 + - 0 + - - COUNT( * ) * 92 * - - 36, + + COUNT( DISTINCT 9 ) DIV - CAST( 5 AS SIGNED ) * + + 85 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - COALESCE ( - + 93, - 59 + - 0 + - - COUNT ( * ) * 92 * - - 36, + + COUNT ( DISTINCT 9 ) / - CAST ( 5 AS INTEGER ) * + + 85 ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL - 48 * - - NULLIF ( COUNT( * ), - COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - 48 * - - NULLIF ( COUNT ( * ), - COUNT ( * ) )
----
-48

query I rowsort
SELECT ALL 24 * - 97
----
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL 18 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL 18 * + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT MAX( + + 94 ) + - + 54 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4344
SELECT MAX ( + + 94 ) + - + 54 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4345
SELECT 49 * + ( CAST( NULL AS DECIMAL ) ) + + COUNT( * ) * + + CAST( - CASE + 40 WHEN 18 + - 48 THEN + CAST( + NULLIF ( - CASE + 20 WHEN + + 65 THEN NULL ELSE + 59 END, COUNT( * ) ) AS SIGNED ) + 18 ELSE COUNT( * ) END AS SIGNED ) / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT 49 * + ( CAST ( NULL AS REAL ) ) + + COUNT ( * ) * + + CAST ( - CASE + 40 WHEN 18 + - 48 THEN + CAST ( + NULLIF ( - CASE + 20 WHEN + + 65 THEN NULL ELSE + 59 END, COUNT ( * ) ) AS INTEGER ) + 18 ELSE COUNT ( * ) END AS INTEGER ) / 7
----
NULL

query I rowsort
SELECT ALL 65 * - 43 AS col1
----
-2795

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + 4 * 27 * 56 * COUNT( * )
----
6048

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + 4 * 27 * 56 * COUNT ( * )
----
6048

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT 9 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT 9 / + 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL + SUM( DISTINCT 1 ) * + 11 - + 3 col1
----
8

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + SUM ( DISTINCT 1 ) * + 11 - + 3 col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT 15 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT 15 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT ALL + 13 DIV - 13
----
-1

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL + 13 / - 13
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4352
SELECT COUNT( * ) * 27 + + + 79 + COALESCE ( 90, + + 33 ) - - 90 / 21 * - 41 + NULLIF ( - COUNT( * ), + CASE 37 WHEN + - COALESCE ( - 2, 86 ) - - 40 THEN NULL WHEN 30 / 27 + - 67 THEN 94 * + 12 ELSE NULL END + - NULLIF ( 87 - 6 * CASE - 95 WHEN MIN( + 57 ) THEN + 52 ELSE NULL END, 25 + 50 ) * COUNT( * ) ) + 44 / CAST( NULL AS SIGNED ) / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT COUNT ( * ) * 27 + + + 79 + COALESCE ( 90, + + 33 ) - - 90 / 21 * - 41 + NULLIF ( - COUNT ( * ), + CASE 37 WHEN + - COALESCE ( - 2, 86 ) - - 40 THEN NULL WHEN 30 / 27 + - 67 THEN 94 * + 12 ELSE NULL END + - NULLIF ( 87 - 6 * CASE - 95 WHEN MIN ( + 57 ) THEN + 52 ELSE NULL END, 25 + 50 ) * COUNT ( * ) ) + 44 / CAST ( NULL AS INTEGER ) / + 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT 98 col1, SUM( ALL + ( 35 ) ) + - 18 + + + 55
----
98
72

skipif mysql # not compatible
query II rowsort label-4353
SELECT 98 col1, SUM ( ALL + ( 35 ) ) + - 18 + + + 55
----
98
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + - NULLIF ( - COUNT( * ), + - 46 * - 28 + - - 86 + - 34 / - 10 ) + - 91 + + COALESCE ( + 27, + + 38 + - + 3 )
----
-63

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + - NULLIF ( - COUNT ( * ), + - 46 * - 28 + - - 86 + - 34 / - 10 ) + - 91 + + COALESCE ( + 27, + + 38 + - + 3 )
----
-63

query I rowsort
SELECT - 35 + 63
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT - 7 * - CAST( - 13 AS SIGNED ) * CASE + - 54 WHEN + 73 THEN NULL WHEN - 87 THEN NULL ELSE - + 37 END + - 63 + SUM( DISTINCT 71 ) - 53
----
3322

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 7 * - CAST ( - 13 AS INTEGER ) * CASE + - 54 WHEN + 73 THEN NULL WHEN - 87 THEN NULL ELSE - + 37 END + - 63 + SUM ( DISTINCT 71 ) - 53
----
3322

query I rowsort
SELECT NULLIF ( + + 51, - 97 - - + 41 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT ALL - ( + 64 ) + 60 * - 34 + - 78 - + + 71 + + 86 + + ( 15 ) + - 31 DIV COUNT( * ) * COUNT( * ) + + - 56 * - + 8
----
-1735

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - ( + 64 ) + 60 * - 34 + - 78 - + + 71 + + 86 + + ( 15 ) + - 31 / COUNT ( * ) * COUNT ( * ) + + - 56 * - + 8
----
-1735

query I rowsort
SELECT - 48 + 44 col1
----
-4

query II rowsort
SELECT DISTINCT ( + 38 ) * 88, - 50 * 80 * CASE 91 WHEN 82 THEN 50 + 94 ELSE NULL END * - 53 + + 67 AS col0
----
3344
NULL

query I rowsort
SELECT DISTINCT - - 94 + + 1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT + + 99 + + 50 - COUNT( * ) * + - COUNT( * ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT + + 99 + + 50 - COUNT ( * ) * + - COUNT ( * ) AS col1
----
150

query I rowsort
SELECT ALL - 71 + 15
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT + SUM( + 29 ) + + + COUNT( * ) * - 28 - - ( + 25 ) * COALESCE ( - SUM( ALL - 21 ), + + 56 + - CASE - COUNT( * ) WHEN + COUNT( * ) THEN 47 END + + 45 DIV 95, COUNT( * ) + - 13 ) + - COUNT( * ) AS col2
----
525

skipif mysql # not compatible
query I rowsort label-4364
SELECT + SUM ( + 29 ) + + + COUNT ( * ) * - 28 - - ( + 25 ) * COALESCE ( - SUM ( ALL - 21 ), + + 56 + - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN 47 END + + 45 / 95, COUNT ( * ) + - 13 ) + - COUNT ( * ) AS col2
----
525

query I rowsort
SELECT 83 * - 10 AS col2
----
-830

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT 80 AS col2, - COUNT( * ) AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-4366
SELECT 80 AS col2, - COUNT ( * ) AS col1
----
80
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT CAST( NULL AS SIGNED ) + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT CAST ( NULL AS INTEGER ) + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - COUNT( * ) + + 42 * + 33
----
1385

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - COUNT ( * ) + + 42 * + 33
----
1385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL CAST( NULL AS SIGNED ) * + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL CAST ( NULL AS INTEGER ) * + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL - 19 * 88 + - - COUNT( * )
----
-1671

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - 19 * 88 + - - COUNT ( * )
----
-1671

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL + CASE - MIN( DISTINCT + 76 ) WHEN COUNT( * ) THEN NULL WHEN - 51 THEN + NULLIF ( COUNT( * ), + ( + 63 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + CASE - MIN ( DISTINCT + 76 ) WHEN COUNT ( * ) THEN NULL WHEN - 51 THEN + NULLIF ( COUNT ( * ), + ( + 63 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + 44 - 88 + COUNT( * ) * - ( + 52 ) + 60 * - 4 AS col0
----
-336

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + 44 - 88 + COUNT ( * ) * - ( + 52 ) + 60 * - 4 AS col0
----
-336

query I rowsort
SELECT - + ( - 92 )
----
92

query I rowsort
SELECT DISTINCT - ( + - 51 ) - - + 8 + + + 8 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT ALL - 20, 30 * + 75 - 17 * MAX( DISTINCT 10 ) col0
----
-20
2080

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL - 20, 30 * + 75 - 17 * MAX ( DISTINCT 10 ) col0
----
-20
2080

query II rowsort
SELECT 91 + 10 AS col0, 82
----
101
82

query I rowsort
SELECT 74 - + 37 AS col0
----
37

query II rowsort
SELECT + 44, 67 AS col0
----
44
67

query I rowsort
SELECT ALL 71 * + + 82
----
5822

query I rowsort
SELECT 90 * + 7 AS col2
----
630

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT ALL - 26 AS col0, + 65 + - COUNT( * )
----
-26
64

skipif mysql # not compatible
query II rowsort label-4381
SELECT ALL - 26 AS col0, + 65 + - COUNT ( * )
----
-26
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT COUNT( * ) * + + 60 col0
----
60

skipif mysql # not compatible
query I rowsort label-4382
SELECT COUNT ( * ) * + + 60 col0
----
60

query I rowsort
SELECT 18 * + 26 * 48 + 55
----
22519

query I rowsort
SELECT ( + + 24 ) - - 79 AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT ALL COUNT( * ) * 99, + 63 AS col0
----
99
63

skipif mysql # not compatible
query II rowsort label-4385
SELECT ALL COUNT ( * ) * 99, + 63 AS col0
----
99
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT + 22, - MAX( DISTINCT - 23 ) + 40 + + - 73 * 63 AS col0
----
22
-4536

skipif mysql # not compatible
query II rowsort label-4386
SELECT + 22, - MAX ( DISTINCT - 23 ) + 40 + + - 73 * 63 AS col0
----
22
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL 5 + MAX( - + 61 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL 5 + MAX ( - + 61 ) AS col0
----
-56

query I rowsort
SELECT ALL + ( - 76 ) + + 9 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4389
SELECT ALL - 98 AS col1, CASE - 77 WHEN - COUNT( * ) * + 44 - 91 THEN NULL WHEN COUNT( * ) + 4 * + 77 * + 84 * + + 80 THEN + + 20 ELSE NULL END AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-4389
SELECT ALL - 98 AS col1, CASE - 77 WHEN - COUNT ( * ) * + 44 - 91 THEN NULL WHEN COUNT ( * ) + 4 * + 77 * + 84 * + + 80 THEN + + 20 ELSE NULL END AS col0
----
-98
NULL

query II rowsort
SELECT ALL + 55 + + 89 AS col0, ( - - 58 ) + + 39 + 23 + - - 17 * 72 AS col1
----
144
1344

query III rowsort
SELECT - 8 col0, + 20, + + NULLIF ( - + 7, - 64 * + 80 ) AS col1
----
-8
20
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT ALL + CAST( - + 60 AS SIGNED ) + - - 30 + 87
----
57

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + CAST ( - + 60 AS INTEGER ) + - - 30 + 87
----
57

query I rowsort
SELECT 18 * + + 93 * - + 81 * 36 - - 24 AS col0
----
-4881360

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT DISTINCT - 30 DIV 48 + + 79 col0
----
79

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT - 30 / 48 + + 79 col0
----
79

query II rowsort
SELECT DISTINCT - 39 AS col1, - 48 AS col1
----
-39
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT + COUNT( * ) * 52 AS col2, 93 AS col1
----
52
93

skipif mysql # not compatible
query II rowsort label-4396
SELECT + COUNT ( * ) * 52 AS col2, 93 AS col1
----
52
93

query II rowsort
SELECT + ( + + 34 ) + 49 + - 8 AS col2, 27 - - 3 * - 82 AS col2
----
75
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT ALL - CAST( - 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - CAST ( - 74 AS INTEGER ) AS col2
----
74

query I rowsort
SELECT + 71 * 51 - - - 19
----
3602

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT 41 * - COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT 41 * - COUNT ( * ) col2
----
-41

query I rowsort
SELECT - 98 - + 74
----
-172

query I rowsort
SELECT + - 23 + - + 87 + - 5 AS col1
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT - COUNT( * ) - + + 0 - ( + 49 ) DIV 43 * + + 39 DIV - 72 * + - 18 * 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4403
SELECT - COUNT ( * ) - + + 0 - ( + 49 ) / 43 * + + 39 / - 72 * + - 18 * 59 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - NULLIF ( + MAX( DISTINCT 83 ), - 22 ) * - + 97 AS col0
----
8051

skipif mysql # not compatible
query I rowsort label-4404
SELECT - NULLIF ( + MAX ( DISTINCT 83 ), - 22 ) * - + 97 AS col0
----
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT MAX( + + 8 ) col2
----
8

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT MAX ( + + 8 ) col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT ALL CASE - - 82 WHEN 40 THEN + MAX( ALL - 79 ) END col1, 9
----
NULL
9

skipif mysql # not compatible
query II rowsort label-4406
SELECT ALL CASE - - 82 WHEN 40 THEN + MAX ( ALL - 79 ) END col1, 9
----
NULL
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4407
SELECT - CAST( NULL AS DECIMAL ) * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT - CAST ( NULL AS REAL ) * - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - MAX( ALL - ( 67 ) ) + - COUNT( + 6 ) * - 26 - - 61 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-4408
SELECT - MAX ( ALL - ( 67 ) ) + - COUNT ( + 6 ) * - 26 - - 61 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT DISTINCT NULLIF ( + + MAX( ALL 35 ), + 56 ) * + - 85 + 39 AS col2
----
-2936

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT NULLIF ( + + MAX ( ALL 35 ), + 56 ) * + - 85 + 39 AS col2
----
-2936

query I rowsort
SELECT ALL + 31 * + + 81
----
2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT COALESCE ( - CAST( NULL AS SIGNED ), 1, + 1 - + + ( + + 19 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4411
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), 1, + 1 - + + ( + + 19 ) ) AS col2
----
1

query I rowsort
SELECT NULLIF ( 88, 44 * - + 31 ) AS col0
----
88

query I rowsort
SELECT + 23 * - 89 * + 14 AS col1
----
-28658

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT - 11 + + 63 DIV - 28 + 38 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4414
SELECT - 11 + + 63 / - 28 + 38 AS col0
----
25

query I rowsort
SELECT - 70 * + 89 AS col1
----
-6230

query I rowsort
SELECT DISTINCT + ( + - 61 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT SUM( ALL - ( + 94 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4417
SELECT SUM ( ALL - ( + 94 ) ) AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL 57 * CAST( NULL AS SIGNED ) + - 27 + CAST( 8 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL 57 * CAST ( NULL AS INTEGER ) + - 27 + CAST ( 8 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT + CAST( + 32 AS SIGNED ) - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4419
SELECT + CAST ( + 32 AS INTEGER ) - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4420
SELECT ALL 22 DIV - 73 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 22 / - 73 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + 66 + ( - 40 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT + MAX( + 79 ), + 46 * 64 AS col0
----
79
2944

skipif mysql # not compatible
query II rowsort label-4422
SELECT + MAX ( + 79 ), + 46 * 64 AS col0
----
79
2944

query I rowsort
SELECT ALL - 72 * + 13 - + - 5 AS col0
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT 37 * - 94 + + NULLIF ( 97, 16 * - 68 * 38 * MIN( ALL + 4 ) + 75 ) AS col2
----
-3381

skipif mysql # not compatible
query I rowsort label-4424
SELECT 37 * - 94 + + NULLIF ( 97, 16 * - 68 * 38 * MIN ( ALL + 4 ) + 75 ) AS col2
----
-3381

query I rowsort
SELECT + NULLIF ( 27, 70 ) AS col2
----
27

query I rowsort
SELECT + NULLIF ( - 80, + ( - - 68 ) + + 22 ) AS col0
----
-80

query I rowsort
SELECT + + 63 + ( - 4 ) AS col0
----
59

query II rowsort
SELECT DISTINCT 11 * + 61 AS col0, ( 53 ) AS col1
----
671
53

query I rowsort
SELECT - + ( + 89 ) AS col2
----
-89

query I rowsort
SELECT DISTINCT + 49 - - + ( 28 ) AS col0
----
77

query I rowsort
SELECT + - 36 * + 87 * - + 15 * - 9
----
-422820

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - - 30 * - COUNT( * ) + 86
----
56

skipif mysql # not compatible
query I rowsort label-4432
SELECT - - 30 * - COUNT ( * ) + 86
----
56

query I rowsort
SELECT DISTINCT + 25 * + 99
----
2475

query II rowsort
SELECT 90, - 64 * - 30 AS col1
----
90
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT + 1 + - COUNT( * ) + + 52
----
52

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 1 + - COUNT ( * ) + + 52
----
52

query II rowsort
SELECT ALL 42 + ( + 25 ) AS col1, + 65 * + 85
----
67
5525

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT COUNT( * ) * - 35 * + MIN( + 27 ) AS col2
----
-945

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT COUNT ( * ) * - 35 * + MIN ( + 27 ) AS col2
----
-945

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4438
SELECT ALL - CASE - 97 WHEN - 36 THEN + + CAST( - 4 AS DECIMAL ) ELSE NULL END + + COUNT( 20 ) + COUNT( * ) / + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - CASE - 97 WHEN - 36 THEN + + CAST ( - 4 AS REAL ) ELSE NULL END + + COUNT ( 20 ) + COUNT ( * ) / + 42 AS col0
----
NULL

query I rowsort
SELECT ALL + 99 + + 9 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4440
SELECT DISTINCT - ( + - SUM( DISTINCT + + CAST( 60 AS SIGNED ) ) ) DIV 81 DIV COALESCE ( + - CASE - + COUNT( DISTINCT + + 31 ) WHEN - 49 THEN 12 WHEN - COUNT( * ) THEN NULL ELSE NULL END, + + 58 + COALESCE ( 58, + - COUNT( * ) + + AVG ( ALL + - 58 ) - - CAST( 29 AS SIGNED ) * 61, - 19 DIV 35 ) - CASE - NULLIF ( - 43, 2 ) + 48 WHEN MAX( + 34 ) THEN 58 ELSE + 30 + - 46 END DIV + 45, + 72 ) - + ( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - ( + - SUM ( DISTINCT + + CAST ( 60 AS INTEGER ) ) ) / 81 / COALESCE ( + - CASE - + COUNT ( DISTINCT + + 31 ) WHEN - 49 THEN 12 WHEN - COUNT ( * ) THEN NULL ELSE NULL END, + + 58 + COALESCE ( 58, + - COUNT ( * ) + + AVG ( ALL + - 58 ) - - CAST ( 29 AS INTEGER ) * 61, - 19 / 35 ) - CASE - NULLIF ( - 43, 2 ) + 48 WHEN MAX ( + 34 ) THEN 58 ELSE + 30 + - 46 END / + 45, + 72 ) - + ( - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4441
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) * + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - + 97 THEN NULL ELSE - 79 + + - 31 END col2
----
-110

skipif mysql # not compatible
query I rowsort label-4442
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - + 97 THEN NULL ELSE - 79 + + - 31 END col2
----
-110

query I rowsort
SELECT DISTINCT + ( - 4 )
----
-4

query I rowsort
SELECT - COALESCE ( - 31, - 42 * 53, 87 * + 57 * 54 ) * + + 62
----
1922

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT ALL - - 38 * + - 47 * + SUM( 35 ) AS col2, 78
----
-62510
78

skipif mysql # not compatible
query II rowsort label-4445
SELECT ALL - - 38 * + - 47 * + SUM ( 35 ) AS col2, 78
----
-62510
78

onlyif mysql # DIV for integer division: 
query II rowsort label-4446
SELECT - 54, + 26 DIV + 77 + - + 75 col1
----
-54
-75

skipif mysql # not compatible
query II rowsort label-4446
SELECT - 54, + 26 / + 77 + - + 75 col1
----
-54
-75

query I rowsort
SELECT ALL + + ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + CASE - - MIN( DISTINCT 19 ) WHEN - 49 THEN - + ( + - 20 ) - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT + CASE - - MIN ( DISTINCT 19 ) WHEN - 49 THEN - + ( + - 20 ) - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT - + 8 * - + SUM( DISTINCT - 3 ) * + + 10 * + ( - ( - 58 ) ) col2
----
-13920

skipif mysql # not compatible
query I rowsort label-4449
SELECT - + 8 * - + SUM ( DISTINCT - 3 ) * + + 10 * + ( - ( - 58 ) ) col2
----
-13920

query I rowsort
SELECT + 87 + - - 34 - - 98 + 14 AS col2
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL + + CASE - 13 WHEN + + SUM( - 22 ) / + + 43 + 51 + + MAX( ALL - - 57 ) THEN NULL ELSE + COUNT( * ) * - 59 END
----
-59

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL + + CASE - 13 WHEN + + SUM ( - 22 ) / + + 43 + 51 + + MAX ( ALL - - 57 ) THEN NULL ELSE + COUNT ( * ) * - 59 END
----
-59

query I rowsort
SELECT ALL + - ( + - 98 ) AS col0
----
98

query I rowsort
SELECT - 44 * 22 AS col0
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL MAX( 45 ) * + 90
----
4050

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL MAX ( 45 ) * + 90
----
4050

onlyif mysql # DIV for integer division: 
query I rowsort label-4455
SELECT + 53 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT + 53 / 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT DISTINCT + - 20 DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + - 20 / - 46 AS col2
----
0

query II rowsort
SELECT ALL 0, 65 AS col0
----
0
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4458
SELECT ALL 41 * + - COALESCE ( + 60, COUNT( * ) * - + 66 + COUNT( ALL + 75 ) * + - 45 + + 73 DIV 6 ) AS col2
----
-2460

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL 41 * + - COALESCE ( + 60, COUNT ( * ) * - + 66 + COUNT ( ALL + 75 ) * + - 45 + + 73 / 6 ) AS col2
----
-2460

query I rowsort
SELECT 99 * - 51 AS col1
----
-5049

onlyif mysql # DIV for integer division: 
query II rowsort label-4460
SELECT + NULLIF ( + 82, 48 ) AS col1, COALESCE ( COALESCE ( - 61, - 0 * - 20 * - + 90 DIV + + ( + - NULLIF ( - 35, 69 ) ) * - 80 ), - 7 ) AS col0
----
82
-61

skipif mysql # not compatible
query II rowsort label-4460
SELECT + NULLIF ( + 82, 48 ) AS col1, COALESCE ( COALESCE ( - 61, - 0 * - 20 * - + 90 / + + ( + - NULLIF ( - 35, 69 ) ) * - 80 ), - 7 ) AS col0
----
82
-61

query I rowsort
SELECT + 33 - - 99 * 14 AS col1
----
1419

query I rowsort
SELECT 76 - - 94 AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL 54 + 41 - + NULLIF ( - CASE - 39 WHEN ( + ( + CAST( + + 43 AS SIGNED ) ) ) * + + 24 THEN - - MAX( + 73 ) * - - NULLIF ( 98, + 92 ) * COUNT( ALL - + 81 ) + - - 22 WHEN - 67 - - COUNT( * ) THEN NULL ELSE NULL END, 43 ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL 54 + 41 - + NULLIF ( - CASE - 39 WHEN ( + ( + CAST ( + + 43 AS INTEGER ) ) ) * + + 24 THEN - - MAX ( + 73 ) * - - NULLIF ( 98, + 92 ) * COUNT ( ALL - + 81 ) + - - 22 WHEN - 67 - - COUNT ( * ) THEN NULL ELSE NULL END, 43 ) + - 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT 84 + CAST( NULL AS SIGNED ) * + - COALESCE ( - 36, + + 55 ) * + 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT 84 + CAST ( NULL AS INTEGER ) * + - COALESCE ( - 36, + + 55 ) * + 89 col0
----
NULL

query I rowsort
SELECT ALL 66 + + 34 AS col0
----
100

query I rowsort
SELECT DISTINCT 89 + 7 * + 37 AS col0
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT COUNT( * ) - + 34 + 85
----
52

skipif mysql # not compatible
query I rowsort label-4467
SELECT COUNT ( * ) - + 34 + 85
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT COUNT( * ) * MIN( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-4468
SELECT COUNT ( * ) * MIN ( - 99 )
----
-99

query I rowsort
SELECT DISTINCT 53 + 74
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT 28 + + 25, + COUNT( * ) * - 46 * + - 24 AS col1
----
53
1104

skipif mysql # not compatible
query II rowsort label-4470
SELECT 28 + + 25, + COUNT ( * ) * - 46 * + - 24 AS col1
----
53
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL SUM( DISTINCT + - 54 ) + 4
----
-50

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL SUM ( DISTINCT + - 54 ) + 4
----
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4472
SELECT COUNT( - 42 ) * + COUNT( * ) * - CAST( NULL AS DECIMAL ), - 33 AS col2
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-4472
SELECT COUNT ( - 42 ) * + COUNT ( * ) * - CAST ( NULL AS REAL ), - 33 AS col2
----
NULL
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT + COUNT( * ) * + ( + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + COUNT ( * ) * + ( + + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT NULLIF ( - + 3, - 74 * - 77 - + COUNT( * ) + - 61 ) + + 74
----
71

skipif mysql # not compatible
query I rowsort label-4474
SELECT NULLIF ( - + 3, - 74 * - 77 - + COUNT ( * ) + - 61 ) + + 74
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4475
SELECT ALL + CAST( NULL AS SIGNED ) - COUNT( * ) AS col1, 76 DIV - 82
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4475
SELECT ALL + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col1, 76 / - 82
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL - MAX( DISTINCT - 39 ) - + 94 + + + 11 * 30 col1
----
275

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - MAX ( DISTINCT - 39 ) - + 94 + + + 11 * 30 col1
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4477
SELECT ALL 46 * + 6 * + + 70 DIV + - COUNT( * ) AS col0
----
-19320

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 46 * + 6 * + + 70 / + - COUNT ( * ) AS col0
----
-19320

query I rowsort
SELECT ALL + 5 - + + 94 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT ALL - MIN( + 67 ), 13 AS col2
----
-67
13

skipif mysql # not compatible
query II rowsort label-4479
SELECT ALL - MIN ( + 67 ), 13 AS col2
----
-67
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4480
SELECT + 14 DIV + 23 * 87 + 58 - + 48 + + + NULLIF ( + 60, - CAST( + + 45 AS SIGNED ) * - 19 - 18 + MAX( - 23 ) ) * + + COUNT( * ) AS col0, - 11 col2
----
70
-11

skipif mysql # not compatible
query II rowsort label-4480
SELECT + 14 / + 23 * 87 + 58 - + 48 + + + NULLIF ( + 60, - CAST ( + + 45 AS INTEGER ) * - 19 - 18 + MAX ( - 23 ) ) * + + COUNT ( * ) AS col0, - 11 col2
----
70
-11

query I rowsort
SELECT ALL - + 68 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT + - NULLIF ( - 80, + 44 ) * 14 - - + CASE 46 WHEN - MIN( DISTINCT + ( 39 ) ) THEN NULL WHEN - + 16 * - 64 * + 79 * - + 46 + - 60 THEN + + 42 - + NULLIF ( + - 10, COUNT( * ) ) END + + - 18 - 78 * - NULLIF ( - AVG ( DISTINCT 38 ), + 29 / 4 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT + - NULLIF ( - 80, + 44 ) * 14 - - + CASE 46 WHEN - MIN ( DISTINCT + ( 39 ) ) THEN NULL WHEN - + 16 * - 64 * + 79 * - + 46 + - 60 THEN + + 42 - + NULLIF ( + - 10, COUNT ( * ) ) END + + - 18 - 78 * - NULLIF ( - AVG ( DISTINCT 38 ), + 29 / 4 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 91 * 15
----
1365

query I rowsort
SELECT + 51 + 85 AS col1
----
136

query I rowsort
SELECT DISTINCT + 58 * + - 19 AS col1
----
-1102

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT + COUNT( * ) * 18 * + COUNT( * ) col0
----
18

skipif mysql # not compatible
query I rowsort label-4486
SELECT + COUNT ( * ) * 18 * + COUNT ( * ) col0
----
18

query I rowsort
SELECT + 26 * + 44 + - 97
----
1047

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT COALESCE ( + + COUNT( * ), - 3 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - 3 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT - 31 + - + 20 + + 87 DIV + - COALESCE ( - 89, + 3 )
----
-51

skipif mysql # not compatible
query I rowsort label-4489
SELECT - 31 + - + 20 + + 87 / + - COALESCE ( - 89, + 3 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT + 13 * + 82 - COALESCE ( + 56, - NULLIF ( - 99, 25 ) * - 13 * 66, + + 36 + - + SUM( DISTINCT - 10 ) + + 56 * + + CASE - COUNT( * ) WHEN + - CAST( NULL AS SIGNED ) + + 90 - - 57 THEN + + 12 + COUNT( * ) WHEN + 51 THEN NULL ELSE 22 END + 76 )
----
1010

skipif mysql # not compatible
query I rowsort label-4490
SELECT + 13 * + 82 - COALESCE ( + 56, - NULLIF ( - 99, 25 ) * - 13 * 66, + + 36 + - + SUM ( DISTINCT - 10 ) + + 56 * + + CASE - COUNT ( * ) WHEN + - CAST ( NULL AS INTEGER ) + + 90 - - 57 THEN + + 12 + COUNT ( * ) WHEN + 51 THEN NULL ELSE 22 END + 76 )
----
1010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) + 69 AS col0
----
NULL

query I rowsort
SELECT - - 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT NULLIF ( - + ( + ( - 60 ) ), - MAX( 77 ) ) * + - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT NULLIF ( - + ( + ( - 60 ) ), - MAX ( 77 ) ) * + - COUNT ( * ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL + 72 + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + 72 + COUNT ( * ) AS col1
----
73

query I rowsort
SELECT 83 * 26
----
2158

query I rowsort
SELECT ALL 12 + - - ( 49 ) AS col1
----
61

query I rowsort
SELECT ( 48 ) + 90 + + + 8
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT CAST( NULL AS SIGNED ) * ( + + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT CAST ( NULL AS INTEGER ) * ( + + 75 )
----
NULL

query II rowsort
SELECT ALL 97 AS col1, COALESCE ( - + 83, + ( 21 ) * + 44 )
----
97
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT 9 * - + COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4500
SELECT 9 * - + COUNT ( * ) AS col0
----
-9

query I rowsort
SELECT DISTINCT + 82 * - 71
----
-5822

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL ( + 92 ) - - 1 + COUNT( - 43 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL ( + 92 ) - - 1 + COUNT ( - 43 ) col1
----
94

query I rowsort
SELECT NULLIF ( 16, - - 23 * 76 * 8 / - ( 99 ) * + 22 + + - 9 + 2 * 49 + + - 26 + - 86 - + 94 ) * - 46
----
-736

query I rowsort
SELECT 50 + 40 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT CASE 24 WHEN - 37 * + ( + SUM( ALL + 92 ) ) THEN + + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT CASE 24 WHEN - 37 * + ( + SUM ( ALL + 92 ) ) THEN + + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query II rowsort
SELECT ALL - 89 AS col1, - COALESCE ( 7, + - 38 * - 52, + 29 ) + - 92
----
-89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT NULLIF ( - COUNT( * ), COUNT( * ) * - - 57 * 3 + - - 95 ) * - 75 * 22 * - + 78
----
-128700

skipif mysql # not compatible
query I rowsort label-4507
SELECT NULLIF ( - COUNT ( * ), COUNT ( * ) * - - 57 * 3 + - - 95 ) * - 75 * 22 * - + 78
----
-128700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4508
SELECT + 29 * + - 61 * + 95 * + CAST( + 26 AS SIGNED ) + - ( 33 ) / - 49 * + + CASE + - 95 WHEN + ( + 70 ) * + NULLIF ( + - CAST( - + 25 AS SIGNED ), + - 72 ) THEN + 91 ELSE NULL END * COALESCE ( 38, - 37 * - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT + 29 * + - 61 * + 95 * + CAST ( + 26 AS INTEGER ) + - ( 33 ) / - 49 * + + CASE + - 95 WHEN + ( + 70 ) * + NULLIF ( + - CAST ( - + 25 AS INTEGER ), + - 72 ) THEN + 91 ELSE NULL END * COALESCE ( 38, - 37 * - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT COUNT( * ), - 61 AS col1
----
1
-61

skipif mysql # not compatible
query II rowsort label-4509
SELECT COUNT ( * ), - 61 AS col1
----
1
-61

query I rowsort
SELECT ALL - - 16 AS col0
----
16

query I rowsort
SELECT DISTINCT + 64 * 99 AS col2
----
6336

query I rowsort
SELECT DISTINCT 78 * - 36
----
-2808

query II rowsort
SELECT ALL + + 56, - 35 * - 96 AS col2
----
56
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT + + 26 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT + + 26 / - 90 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT ALL - 20 * + 56 + - 9 * 3 * - + 27 * 69 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - 20 * + 56 + - 9 * 3 * - + 27 * 69 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT 16 * - 72 + + - CAST( 11 AS SIGNED ) col1
----
-1163

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT 16 * - 72 + + - CAST ( 11 AS INTEGER ) col1
----
-1163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4517
SELECT - CASE ( + + CAST( + 83 AS DECIMAL ) ) WHEN + 74 - + 82 + + - COUNT( * ) + - 12 * + 13 DIV - + COUNT( * ) THEN + 10 WHEN + 56 + 53 THEN - COALESCE ( - - COUNT( * ), 24 DIV + 77, 87 + + 13 + + 9 ) ELSE 2 END
----
-2

skipif mysql # not compatible
query I rowsort label-4517
SELECT - CASE ( + + CAST ( + 83 AS REAL ) ) WHEN + 74 - + 82 + + - COUNT ( * ) + - 12 * + 13 / - + COUNT ( * ) THEN + 10 WHEN + 56 + 53 THEN - COALESCE ( - - COUNT ( * ), 24 / + 77, 87 + + 13 + + 9 ) ELSE 2 END
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-4518
SELECT + 92 DIV + - 25 - - - 71 + + 17 * 96 * - - 72 * + 67 - + 41 AS col1, + 67 AS col1
----
7872653
67

skipif mysql # not compatible
query II rowsort label-4518
SELECT + 92 / + - 25 - - - 71 + + 17 * 96 * - - 72 * + 67 - + 41 AS col1, + 67 AS col1
----
7872653
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4519
SELECT + 62 AS col0, - 24 DIV - - COUNT( DISTINCT 28 ) + 61 * 46
----
62
2782

skipif mysql # not compatible
query II rowsort label-4519
SELECT + 62 AS col0, - 24 / - - COUNT ( DISTINCT 28 ) + 61 * 46
----
62
2782

query I rowsort
SELECT - 76 * + - 18 AS col2
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL - CAST( - + 34 AS SIGNED ) * - COUNT( DISTINCT - 22 ) * + 48 + + COALESCE ( + 42, 44 * + - 78 * + 4 ) + + AVG ( DISTINCT - CAST( - - 59 AS SIGNED ) ) + - + 12 / - 38 - + 93 + - 66 * - + 40 - + - 43 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - CAST ( - + 34 AS INTEGER ) * - COUNT ( DISTINCT - 22 ) * + 48 + + COALESCE ( + 42, 44 * + - 78 * + 4 ) + + AVG ( DISTINCT - CAST ( - - 59 AS INTEGER ) ) + - + 12 / - 38 - + 93 + - 66 * - + 40 - + - 43 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4522
SELECT + + NULLIF ( + 56, 61 + - 81 + - MIN( ALL - 2 ) ) AS col2, - 4 / + 90 - - CAST( NULL AS DECIMAL ) - 63
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4522
SELECT + + NULLIF ( + 56, 61 + - 81 + - MIN ( ALL - 2 ) ) AS col2, - 4 / + 90 - - CAST ( NULL AS REAL ) - 63
----
56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT ALL + CASE + COUNT( * ) WHEN + 93 * - - 86 + - 54 THEN NULL WHEN - 14 * - + 78 + 69 THEN + - 72 ELSE 80 END * - 26 - - COALESCE ( + 3, + 78 ) + - 95, + 70 - 65 AS col2
----
-2172
5

skipif mysql # not compatible
query II rowsort label-4523
SELECT ALL + CASE + COUNT ( * ) WHEN + 93 * - - 86 + - 54 THEN NULL WHEN - 14 * - + 78 + 69 THEN + - 72 ELSE 80 END * - 26 - - COALESCE ( + 3, + 78 ) + - 95, + 70 - 65 AS col2
----
-2172
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL + + CAST( NULL AS SIGNED ) * - 62 + + NULLIF ( - 62, + MAX( DISTINCT 89 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 62 + + NULLIF ( - 62, + MAX ( DISTINCT 89 ) ) AS col0
----
NULL

query I rowsort
SELECT + ( + - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT + MIN( ALL - 70 ) + 59
----
-11

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + MIN ( ALL - 70 ) + 59
----
-11

query I rowsort
SELECT - ( 95 )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT - ( + CAST( - 14 AS SIGNED ) ) + + 87
----
101

skipif mysql # not compatible
query I rowsort label-4528
SELECT - ( + CAST ( - 14 AS INTEGER ) ) + + 87
----
101

query I rowsort
SELECT - 7 * - 60
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL + 68 + - + 15 + COUNT( * ) + + 88
----
142

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + 68 + - + 15 + COUNT ( * ) + + 88
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - SUM( ALL 71 ) - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4532
SELECT - SUM ( ALL 71 ) - COUNT ( * ) AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT ALL CASE 57 WHEN + CAST( NULL AS SIGNED ) + + 3 THEN NULL WHEN - COUNT( DISTINCT + 77 ) THEN - 41 + 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL CASE 57 WHEN + CAST ( NULL AS INTEGER ) + + 3 THEN NULL WHEN - COUNT ( DISTINCT + 77 ) THEN - 41 + 75 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - 71 + - - 52 + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 71 + - - 52 + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4535
SELECT - 96, 90 DIV - - COUNT( * ) col2
----
-96
90

skipif mysql # not compatible
query II rowsort label-4535
SELECT - 96, 90 / - - COUNT ( * ) col2
----
-96
90

query I rowsort
SELECT - 47 + - 57 AS col2
----
-104

query I rowsort
SELECT DISTINCT COALESCE ( + 52, + 42 ) AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4538
SELECT - 41 * - CAST( NULL AS SIGNED ), 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 41 * - CAST ( NULL AS INTEGER ), 18 AS col2
----
NULL
18

query I rowsort
SELECT ALL 52 * - + 72
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - MIN( + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-4540
SELECT - MIN ( + 10 )
----
-10

query I rowsort
SELECT + 11 * - 23 AS col2
----
-253

query I rowsort
SELECT ALL 93 * - 94 AS col1
----
-8742

query I rowsort
SELECT DISTINCT ( 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - 15 * + COUNT( * ) + - + 20 + + + 63 + + 77 + - ( - ( + SUM( + + 9 ) ) )
----
114

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - 15 * + COUNT ( * ) + - + 20 + + + 63 + + 77 + - ( - ( + SUM ( + + 9 ) ) )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT + + CAST( NULL AS SIGNED ) * ( MAX( DISTINCT + 27 ) ) / - 58 + 75 + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT + + CAST ( NULL AS INTEGER ) * ( MAX ( DISTINCT + 27 ) ) / - 58 + 75 + 38
----
NULL

query I rowsort
SELECT ALL + 24 * + 30 col2
----
720

query I rowsort
SELECT DISTINCT + + NULLIF ( - 40, - - AVG ( ALL + + 18 ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - MIN( - - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4548
SELECT - MIN ( - - 71 ) AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT - + COUNT( * ) DIV 66 DIV - + 97 + 57 col0
----
57

skipif mysql # not compatible
query I rowsort label-4549
SELECT - + COUNT ( * ) / 66 / - + 97 + 57 col0
----
57

query I rowsort
SELECT + 33 * - 75 * - - 0 - - + 53 AS col2
----
53

query II rowsort
SELECT + 68, - 30 AS col2
----
68
-30

query I rowsort
SELECT + + NULLIF ( 62, - 27 )
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-4553
SELECT 61, 49 DIV - 99 * + - 69 * 57 * - 84 - 42 AS col2
----
61
-42

skipif mysql # not compatible
query II rowsort label-4553
SELECT 61, 49 / - 99 * + - 69 * 57 * - 84 - 42 AS col2
----
61
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4554
SELECT ALL 51 * - ( - 16 ) + - + COUNT( * ) + + 31 DIV - - 8, 3 AS col0
----
818
3

skipif mysql # not compatible
query II rowsort label-4554
SELECT ALL 51 * - ( - 16 ) + - + COUNT ( * ) + + 31 / - - 8, 3 AS col0
----
818
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL ( + + ( + COUNT( * ) ) ) * - 1 + 5 + 54 + 50
----
108

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL ( + + ( + COUNT ( * ) ) ) * - 1 + 5 + 54 + 50
----
108

query I rowsort
SELECT ALL + COALESCE ( + 72, + 28 * - 68 * - - 4 ) AS col1
----
72

query I rowsort
SELECT ALL + - 54 * - 68 + 85 + + + 16
----
3773

query I rowsort
SELECT ALL - 59 * - 93 + - - 78 AS col0
----
5565

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + + 53 + - 19 + - COALESCE ( - + 14, - COUNT( * ) * - 88 + - 72, + 18 )
----
48

skipif mysql # not compatible
query I rowsort label-4559
SELECT + + 53 + - 19 + - COALESCE ( - + 14, - COUNT ( * ) * - 88 + - 72, + 18 )
----
48

query I rowsort
SELECT + 49 + + 51 * + 80
----
4129

query I rowsort
SELECT + 19 * + - 71
----
-1349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 86
----
NULL

query I rowsort
SELECT - 59 + + - NULLIF ( - - 29, + 99 ) + - 40
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT ALL - COALESCE ( - NULLIF ( 86, + MAX( 15 ) ), + NULLIF ( 88, 88 * + 31 - 12 * - 52 + - 33 ) ) DIV + 16
----
5

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - COALESCE ( - NULLIF ( 86, + MAX ( 15 ) ), + NULLIF ( 88, 88 * + 31 - 12 * - 52 + - 33 ) ) / + 16
----
5

query I rowsort
SELECT + 71 + - 39 * + + 17 + 80
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL 97 * - COUNT( * ) - 17
----
-114

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL 97 * - COUNT ( * ) - 17
----
-114

query I rowsort
SELECT ALL + 82 * 61 - - ( 17 )
----
5019

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4568
SELECT - 65 * COUNT( + CASE WHEN - 12 IS NOT NULL THEN NULL ELSE - 43 + - 65 END ) col2, + CAST( NULL AS DECIMAL ) / 26 * + COUNT( * ) * 90
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4568
SELECT - 65 * COUNT ( + CASE WHEN - 12 IS NOT NULL THEN NULL ELSE - 43 + - 65 END ) col2, + CAST ( NULL AS REAL ) / 26 * + COUNT ( * ) * 90
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT CASE 29 WHEN ( + 25 ) + - CASE + 19 WHEN - 58 + + - 69 THEN + 5 / + 55 + COUNT( * ) WHEN - + 72 THEN 37 * 53 * NULLIF ( - COUNT( * ), 14 ) * + SUM( DISTINCT 30 ) + + + 7 ELSE NULL END THEN NULL WHEN + - 58 THEN 28 * 87 WHEN + 83 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT CASE 29 WHEN ( + 25 ) + - CASE + 19 WHEN - 58 + + - 69 THEN + 5 / + 55 + COUNT ( * ) WHEN - + 72 THEN 37 * 53 * NULLIF ( - COUNT ( * ), 14 ) * + SUM ( DISTINCT 30 ) + + + 7 ELSE NULL END THEN NULL WHEN + - 58 THEN 28 * 87 WHEN + 83 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL - 37 * - - 16 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - 37 * - - 16 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4571
SELECT + 29 * + 30, - 29 DIV - - 53 + - 35 + 97 + - 8 * + 96 + + + 79 + - 57 + + 20 + - 95 * 3 * 86 + - + 19 * - - 4 AS col1
----
870
-25250

skipif mysql # not compatible
query II rowsort label-4571
SELECT + 29 * + 30, - 29 / - - 53 + - 35 + 97 + - 8 * + 96 + + + 79 + - 57 + + 20 + - 95 * 3 * 86 + - + 19 * - - 4 AS col1
----
870
-25250

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT - 35 * + + CASE 6 WHEN 78 / - 4 THEN - - COUNT( * ) * + 61 * + 33 / - 13 * - + 39 + - 93 + - MAX( 7 ) + 10 * + 41 WHEN - + 66 THEN - - 30 / + + 54 * + - 9 WHEN 75 THEN NULL END * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT - 35 * + + CASE 6 WHEN 78 / - 4 THEN - - COUNT ( * ) * + 61 * + 33 / - 13 * - + 39 + - 93 + - MAX ( 7 ) + 10 * + 41 WHEN - + 66 THEN - - 30 / + + 54 * + - 9 WHEN 75 THEN NULL END * + - 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT - NULLIF ( 28, + 46 + - ( - + 27 ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - NULLIF ( 28, + 46 + - ( - + 27 ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 99 + + 75
----
-24

query I rowsort
SELECT DISTINCT - 20 * + 28 AS col0
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT ALL + ( 18 ) + COUNT( * ), - 88 AS col0
----
19
-88

skipif mysql # not compatible
query II rowsort label-4576
SELECT ALL + ( 18 ) + COUNT ( * ), - 88 AS col0
----
19
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL - 64 / CASE + 35 WHEN + 79 * + 35 THEN NULL WHEN 69 + - 5 THEN 95 + - NULLIF ( + + 82, + + COUNT( * ) * 89 * + 96 + - 79 * ( - 91 ) / - 22 + + 63 - - + 19 ) + 82 * + 30 * + 7 END + + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - 64 / CASE + 35 WHEN + 79 * + 35 THEN NULL WHEN 69 + - 5 THEN 95 + - NULLIF ( + + 82, + + COUNT ( * ) * 89 * + 96 + - 79 * ( - 91 ) / - 22 + + 63 - - + 19 ) + 82 * + 30 * + 7 END + + 61 AS col0
----
NULL

query I rowsort
SELECT ALL - + 87 + 18
----
-69

query I rowsort
SELECT + 4 + + + 53 * + + 11 * + 95
----
55389

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ( 67 ) + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4580
SELECT ( 67 ) + COUNT ( * ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT DISTINCT - CASE CASE 1 WHEN + - 82 * 3 THEN - 64 * - + 7 - 1 WHEN 68 * - 17 + 80 + - 59 + + 1 * + ( + + 79 ) THEN - + 99 ELSE NULL END WHEN - COUNT( * ) * - 95 * + MAX( - 50 ) + MIN( ALL - 40 ) THEN NULL WHEN - 30 * + 17 THEN ( CAST( NULL AS SIGNED ) ) + 44 * - 98 ELSE + 89 * 44 + - 94 END * 2
----
-7644

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT - CASE CASE 1 WHEN + - 82 * 3 THEN - 64 * - + 7 - 1 WHEN 68 * - 17 + 80 + - 59 + + 1 * + ( + + 79 ) THEN - + 99 ELSE NULL END WHEN - COUNT ( * ) * - 95 * + MAX ( - 50 ) + MIN ( ALL - 40 ) THEN NULL WHEN - 30 * + 17 THEN ( CAST ( NULL AS INTEGER ) ) + 44 * - 98 ELSE + 89 * 44 + - 94 END * 2
----
-7644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT ALL + 12 + - 73 DIV + 83 * + 1 - + + 90 - - + ( 20 ) * COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL + 12 + - 73 / + 83 * + 1 - + + 90 - - + ( 20 ) * COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT COALESCE ( + 52, + 64 + - 30 * + COUNT( * ) * + SUM( + 55 ) - + - COUNT( * ), ( 63 ) ) * 93 * 38 + + 9 * + 21
----
183957

skipif mysql # not compatible
query I rowsort label-4583
SELECT COALESCE ( + 52, + 64 + - 30 * + COUNT ( * ) * + SUM ( + 55 ) - + - COUNT ( * ), ( 63 ) ) * 93 * 38 + + 9 * + 21
----
183957

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT 50 DIV - + 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4584
SELECT 50 / - + 28 AS col2
----
-1

query I rowsort
SELECT DISTINCT + - 69 * + - 96 + - ( + - 19 )
----
6643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT ALL - - COUNT( * ) + - CAST( NULL AS SIGNED ) * - 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 61 col2
----
NULL

query I rowsort
SELECT DISTINCT - + 45
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT DISTINCT - 19 + ( - 18 ) + - COUNT( + 58 ) AS col2, 50
----
-38
50

skipif mysql # not compatible
query II rowsort label-4588
SELECT DISTINCT - 19 + ( - 18 ) + - COUNT ( + 58 ) AS col2, 50
----
-38
50

query I rowsort
SELECT ( - 61 ) * + 26
----
-1586

query I rowsort
SELECT ALL - 85 - + 18 col0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT + - CASE + 59 WHEN + + 34 THEN - 16 ELSE - - CASE 94 WHEN - 97 THEN NULL WHEN 81 * - CAST( - + 66 AS SIGNED ) THEN + 86 * - + ( 17 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT + - CASE + 59 WHEN + + 34 THEN - 16 ELSE - - CASE 94 WHEN - 97 THEN NULL WHEN 81 * - CAST ( - + 66 AS INTEGER ) THEN + 86 * - + ( 17 ) END END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4592
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 99 * - 49 AS col1
----
-4851

query I rowsort
SELECT 35 * - 38
----
-1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT 24 * CAST( + MAX( + 98 ) AS SIGNED )
----
2352

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT 24 * CAST ( + MAX ( + 98 ) AS INTEGER )
----
2352

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT ALL 53 DIV 47 * + 84 DIV + ( 33 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL 53 / 47 * + 84 / + ( 33 ) col2
----
2

query I rowsort
SELECT 25 * + - 66
----
-1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT COUNT( * ) DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT COUNT ( * ) / 69 AS col2
----
0

query I rowsort
SELECT 18 + + 33
----
51

query I rowsort
SELECT 60 * - 89 AS col2
----
-5340

query I rowsort
SELECT 63 * - + 81
----
-5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4602
SELECT COALESCE ( + - 35, + CAST( - 94 AS SIGNED ) DIV - + 99 + + COALESCE ( + 44, COUNT( * ) + - 79 ) * COUNT( * ) ) + - COUNT( * ) - 90 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-4602
SELECT COALESCE ( + - 35, + CAST ( - 94 AS INTEGER ) / - + 99 + + COALESCE ( + 44, COUNT ( * ) + - 79 ) * COUNT ( * ) ) + - COUNT ( * ) - 90 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT 43 + - ( + 12 ) + - 21 + 59 * - COUNT( * ) * 98 col1
----
-5772

skipif mysql # not compatible
query I rowsort label-4603
SELECT 43 + - ( + 12 ) + - 21 + 59 * - COUNT ( * ) * 98 col1
----
-5772

onlyif mysql # aggregate syntax: 
query II rowsort label-4604
SELECT DISTINCT 65 AS col2, COUNT( * ) + + 24
----
65
25

skipif mysql # not compatible
query II rowsort label-4604
SELECT DISTINCT 65 AS col2, COUNT ( * ) + + 24
----
65
25

query I rowsort
SELECT DISTINCT 81 + - + 30 AS col2
----
51

query I rowsort
SELECT ALL ( - 62 ) + + 57
----
-5

query I rowsort
SELECT DISTINCT - 88 * 60
----
-5280

query I rowsort
SELECT DISTINCT + 34 + 84 AS col1
----
118

query I rowsort
SELECT + 92 + + 47
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL COUNT( * ) AS col2, - CASE + 20 WHEN COUNT( * ) * + 12 - COUNT( * ) THEN - 2 * - + 45 * - - 60 ELSE NULL END + + - 29
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL COUNT ( * ) AS col2, - CASE + 20 WHEN COUNT ( * ) * + 12 - COUNT ( * ) THEN - 2 * - + 45 * - - 60 ELSE NULL END + + - 29
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + MIN( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4611
SELECT + MIN ( - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL - 41 + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - 41 + + COUNT ( * )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4613
SELECT - 59 + + CAST( NULL AS DECIMAL ) + - 86 / + ( 55 ) + - CAST( NULL AS SIGNED ) + 0 * - COUNT( DISTINCT + 21 ) * 17 + - 67 * + 44 + - COUNT( * ) * + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 59 + + CAST ( NULL AS REAL ) + - 86 / + ( 55 ) + - CAST ( NULL AS INTEGER ) + 0 * - COUNT ( DISTINCT + 21 ) * 17 + - 67 * + 44 + - COUNT ( * ) * + - 84 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 14 * CASE 28 WHEN 3 + + 22 + 85 THEN - 51 ELSE NULL END * 63
----
NULL

query I rowsort
SELECT 34 + 87
----
121

query II rowsort
SELECT ALL - 21, 35 AS col2
----
-21
35

query I rowsort
SELECT ALL - 81 * + + 13 * - ( 18 ) col2
----
18954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4618
SELECT ALL + 22 + - 8 + + 23 + CAST( + 5 AS SIGNED ) + + + 79 * MAX( DISTINCT + 74 ) AS col2, + CAST( - + MIN( + + 56 ) AS SIGNED ) * 47
----
5888
-2632

skipif mysql # not compatible
query II rowsort label-4618
SELECT ALL + 22 + - 8 + + 23 + CAST ( + 5 AS INTEGER ) + + + 79 * MAX ( DISTINCT + 74 ) AS col2, + CAST ( - + MIN ( + + 56 ) AS INTEGER ) * 47
----
5888
-2632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT DISTINCT + + 34 DIV + - MIN( DISTINCT + + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + + 34 / + - MIN ( DISTINCT + + 23 )
----
-1

query I rowsort
SELECT DISTINCT - - 74 AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT + 83 * 39 * - COUNT( * ) + - + ( + 69 ) + - - 75 - + 52 DIV + + ( COUNT( * ) )
----
-3283

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 83 * 39 * - COUNT ( * ) + - + ( + 69 ) + - - 75 - + 52 / + + ( COUNT ( * ) )
----
-3283

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT - 13 DIV 72 + - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 13 / 72 + - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - + MIN( + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - + MIN ( + 35 )
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-4624
SELECT 34 DIV - 17 + + 98 AS col1, NULLIF ( + 61, + 4 + + - 93 DIV - ( + 74 ) )
----
96
61

skipif mysql # not compatible
query II rowsort label-4624
SELECT 34 / - 17 + + 98 AS col1, NULLIF ( + 61, + 4 + + - 93 / - ( + 74 ) )
----
96
61

query I rowsort
SELECT + 75 * - - 11
----
825

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4626
SELECT ALL + - 92 * + + CASE + 38 WHEN CAST( - 22 AS DECIMAL ) THEN + - 74 WHEN - + 52 * 10 * - - 15 THEN - + 19 * + - 23 * + - 77 END * + + COUNT( * ) / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + - 92 * + + CASE + 38 WHEN CAST ( - 22 AS REAL ) THEN + - 74 WHEN - + 52 * 10 * - - 15 THEN - + 19 * + - 23 * + - 77 END * + + COUNT ( * ) / + 98
----
NULL

query I rowsort
SELECT ALL 83 * + 73 AS col0
----
6059

query I rowsort
SELECT DISTINCT - 51 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + COUNT( * ) * + + 67
----
67

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + COUNT ( * ) * + + 67
----
67

query I rowsort
SELECT DISTINCT - 55 * - 25 * 5 AS col2
----
6875

query II rowsort
SELECT 28 * 9 AS col0, + 98 AS col1
----
252
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT DISTINCT - CAST( + 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT - CAST ( + 85 AS INTEGER )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT ALL - COUNT( * ) * + 13, ( 80 ) + MIN( ALL + COALESCE ( - NULLIF ( - 63, + + 74 * 85 * + 66 * - 22 ), + + ( + + 63 ) + - 21 + - 74 ) ) AS col1
----
-13
143

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL - COUNT ( * ) * + 13, ( 80 ) + MIN ( ALL + COALESCE ( - NULLIF ( - 63, + + 74 * 85 * + 66 * - 22 ), + + ( + + 63 ) + - 21 + - 74 ) ) AS col1
----
-13
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT 18 * + + 25 / CAST( NULL AS SIGNED ) * NULLIF ( - + 1, + + ( - 53 ) * + CASE - 39 WHEN + 82 + 49 THEN + 37 + + - 84 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT 18 * + + 25 / CAST ( NULL AS INTEGER ) * NULLIF ( - + 1, + + ( - 53 ) * + CASE - 39 WHEN + 82 + 49 THEN + 37 + + - 84 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT NULLIF ( + 44, - 50 ) * + + MAX( 29 ) + - 74 - + - 73 AS col1
----
1275

skipif mysql # not compatible
query I rowsort label-4635
SELECT NULLIF ( + 44, - 50 ) * + + MAX ( 29 ) + - 74 - + - 73 AS col1
----
1275

query I rowsort
SELECT + ( + 68 ) * - ( - ( 4 ) ) * + 68 + + + 35 AS col0
----
18531

query I rowsort
SELECT ALL 76 + - 78
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT ALL 28 + 39 AS col2, CASE + 98 WHEN - + CASE + 14 WHEN - 89 THEN - + 43 END + + - 9 THEN - 0 + - COUNT( * ) END * - COUNT( * ) - + 57 * - 89 AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL 28 + 39 AS col2, CASE + 98 WHEN - + CASE + 14 WHEN - 89 THEN - + 43 END + + - 9 THEN - 0 + - COUNT ( * ) END * - COUNT ( * ) - + 57 * - 89 AS col1
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4640
SELECT + COUNT( * ) DIV + 6 AS col1, 85 AS col2
----
0
85

skipif mysql # not compatible
query II rowsort label-4640
SELECT + COUNT ( * ) / + 6 AS col1, 85 AS col2
----
0
85

query I rowsort
SELECT ALL 22 + - 4 * + 41
----
-142

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4642
SELECT + - 98 / + + CAST( NULL AS DECIMAL ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT + - 98 / + + CAST ( NULL AS REAL ) * - 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT + - 93 DIV + 16 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4643
SELECT + - 93 / + 16 AS col2
----
-5

query I rowsort
SELECT + 29 * - + 63 + 27
----
-1800

query I rowsort
SELECT ALL 73 + 12 - - 73
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT + 54 DIV + - 60
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + 54 / + - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + - CASE 39 WHEN - SUM( ALL - 73 ) THEN + COALESCE ( - - 50, - - 74, - 69 ) ELSE NULL END + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + - CASE 39 WHEN - SUM ( ALL - 73 ) THEN + COALESCE ( - - 50, - - 74, - 69 ) ELSE NULL END + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT - 85 + - MIN( ALL - 90 )
----
5

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - 85 + - MIN ( ALL - 90 )
----
5

query II rowsort
SELECT + CASE 31 WHEN + + 58 THEN 25 ELSE NULL END col2, + 37
----
NULL
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT ALL + 10 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL + 10 / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + SUM( DISTINCT 13 ) - 41
----
-28

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + SUM ( DISTINCT 13 ) - 41
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT - MAX( DISTINCT - - CAST( - 77 AS SIGNED ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4652
SELECT - MAX ( DISTINCT - - CAST ( - 77 AS INTEGER ) ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT - 2 + CAST( + CAST( + + MIN( ALL - + 93 ) AS SIGNED ) AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4653
SELECT - 2 + CAST ( + CAST ( + + MIN ( ALL - + 93 ) AS INTEGER ) AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT - - 91 * + 66 + + 52 * + - NULLIF ( + 38, + 44 ) AS col1
----
4030

query I rowsort
SELECT - 15 + + + 31 * + - 79
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT ALL SUM( + 76 ) * CAST( - 76 AS SIGNED ) / - - CAST( NULL AS SIGNED ) + - - 0 + 81 + + + 48 * + 16 + NULLIF ( 61, 35 ) - + 72 + 14 + - 30 * + - 72 * - ( + 80 ) / + + 83 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL SUM ( + 76 ) * CAST ( - 76 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) + - - 0 + 81 + + + 48 * + 16 + NULLIF ( 61, 35 ) - + 72 + 14 + - 30 * + - 72 * - ( + 80 ) / + + 83 + 81
----
NULL

query II rowsort
SELECT DISTINCT + 36 * + 54 AS col2, 24
----
1944
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT + 73 * - 39 + - 22 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT + 73 * - 39 + - 22 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 30 AS col1
----
-30

query I rowsort
SELECT DISTINCT + 60 AS col2
----
60

query I rowsort
SELECT CASE + 40 WHEN + 10 - - + 50 THEN + + 93 * - 55 * 28 ELSE - + 76 END
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL - COUNT( * ) * - 4 + + COUNT( * ) + 68 * + 3 AS col1
----
209

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - COUNT ( * ) * - 4 + + COUNT ( * ) + 68 * + 3 AS col1
----
209

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4663
SELECT NULLIF ( - 17, + 97 * - CAST( NULL AS DECIMAL ) * + 93 )
----
-17

skipif mysql # not compatible
query I rowsort label-4663
SELECT NULLIF ( - 17, + 97 * - CAST ( NULL AS REAL ) * + 93 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT 78 * + COUNT( - 50 ) - - 9
----
87

skipif mysql # not compatible
query I rowsort label-4664
SELECT 78 * + COUNT ( - 50 ) - - 9
----
87

query I rowsort
SELECT DISTINCT - 6 * - 49 col0
----
294

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT DISTINCT - 29 * 84 + - COUNT( * ), 98 AS col1
----
-2437
98

skipif mysql # not compatible
query II rowsort label-4666
SELECT DISTINCT - 29 * 84 + - COUNT ( * ), 98 AS col1
----
-2437
98

query I rowsort
SELECT ALL + 88 * + + 86
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT - COUNT( * ) * + 80 col1
----
-80

skipif mysql # not compatible
query I rowsort label-4668
SELECT - COUNT ( * ) * + 80 col1
----
-80

query I rowsort
SELECT ALL 2 * + 40 + - NULLIF ( + ( - 84 ), + + 1 ) + 27 * - 10 AS col1
----
-106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4670
SELECT - 28 - - 86 + + 99 + + - 3 * ( - 1 ) * - + CAST( NULL AS DECIMAL ) + 54 - - 22 - + CASE COUNT( * ) WHEN - ( 66 ) * - 68 + + + 57 THEN MAX( DISTINCT + 16 ) END * + 40 * + 29 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 28 - - 86 + + 99 + + - 3 * ( - 1 ) * - + CAST ( NULL AS REAL ) + 54 - - 22 - + CASE COUNT ( * ) WHEN - ( 66 ) * - 68 + + + 57 THEN MAX ( DISTINCT + 16 ) END * + 40 * + 29 col2
----
NULL

query I rowsort
SELECT - 99 + 90 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT + NULLIF ( - COUNT( * ), 66 * - + 34 + + 80 ) * 93
----
-93

skipif mysql # not compatible
query I rowsort label-4672
SELECT + NULLIF ( - COUNT ( * ), 66 * - + 34 + + 80 ) * 93
----
-93

query I rowsort
SELECT - 75 + - 46
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT MAX( DISTINCT NULLIF ( - + 24, + 60 + - + ( - + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4674
SELECT MAX ( DISTINCT NULLIF ( - + 24, + 60 + - + ( - + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
-24

query I rowsort
SELECT - - 36 + - - 46 col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + + ( - COUNT( ALL 6 ) ) * - 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4676
SELECT + + ( - COUNT ( ALL 6 ) ) * - 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4677
SELECT ALL + 25 * - 17 + - 99 AS col1, - ( 20 ) + - - 71 * COUNT( * )
----
-524
51

skipif mysql # not compatible
query II rowsort label-4677
SELECT ALL + 25 * - 17 + - 99 AS col1, - ( 20 ) + - - 71 * COUNT ( * )
----
-524
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT - - CAST( 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4678
SELECT - - CAST ( 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - + MAX( - 1 ) + 1
----
2

skipif mysql # not compatible
query I rowsort label-4679
SELECT - + MAX ( - 1 ) + 1
----
2

query I rowsort
SELECT ALL - 56 - - 16 + - 69 AS col1
----
-109

query I rowsort
SELECT + - 86 + 18
----
-68

query I rowsort
SELECT ALL + + 25 - 80 * - - 19
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + MAX( + ( - 14 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + MAX ( + ( - 14 ) ) AS col0
----
-14

query I rowsort
SELECT ALL + + 0 * + 58
----
0

query I rowsort
SELECT ALL 7 - + 23 + - + 41
----
-57

query I rowsort
SELECT DISTINCT + 31 * - + 69 AS col0
----
-2139

query II rowsort
SELECT + 66 AS col1, 10 AS col1
----
66
10

query I rowsort
SELECT - 30 * + 9 * 41
----
-11070

query II rowsort
SELECT ALL 21, 71 AS col1
----
21
71

query I rowsort
SELECT + + 18 - 46 AS col1
----
-28

query I rowsort
SELECT DISTINCT 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + - COUNT( * ) * 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - COUNT ( * ) * 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + + CASE - - 68 WHEN - 32 * + 47 - + 58 THEN + 24 WHEN - 0 * - CASE 70 WHEN ( + CASE - 49 WHEN 79 + 1 THEN + 82 + 42 ELSE - 9 END ) + - ( + - 37 ) THEN 77 WHEN - 55 - + + COUNT( * ) + 11 * + + 18 THEN + 31 + - 18 END + ( - 30 + 66 ) THEN NULL WHEN 79 THEN NULL END + - AVG ( ALL + 78 ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT + + CASE - - 68 WHEN - 32 * + 47 - + 58 THEN + 24 WHEN - 0 * - CASE 70 WHEN ( + CASE - 49 WHEN 79 + 1 THEN + 82 + 42 ELSE - 9 END ) + - ( + - 37 ) THEN 77 WHEN - 55 - + + COUNT ( * ) + 11 * + + 18 THEN + 31 + - 18 END + ( - 30 + 66 ) THEN NULL WHEN 79 THEN NULL END + - AVG ( ALL + 78 ) * + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT ALL - COUNT( * ) DIV - - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - COUNT ( * ) / - - 24 AS col2
----
0

query II rowsort
SELECT DISTINCT + 71 AS col2, - 91 * - - 74
----
71
-6734

query I rowsort
SELECT + 42 - + - 58 AS col1
----
100

query II rowsort
SELECT + 32 col1, 83 AS col2
----
32
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT CAST( - CASE - 57 WHEN 31 * - - 57 + + - 52 + - COUNT( ALL + 27 ) - 7 * + 18 THEN NULL ELSE 96 * - 40 END AS SIGNED )
----
3840

skipif mysql # not compatible
query I rowsort label-4698
SELECT CAST ( - CASE - 57 WHEN 31 * - - 57 + + - 52 + - COUNT ( ALL + 27 ) - 7 * + 18 THEN NULL ELSE 96 * - 40 END AS INTEGER )
----
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT CAST( NULL AS SIGNED ) + 9 + 89 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT CAST ( NULL AS INTEGER ) + 9 + 89 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4700
SELECT + 99 DIV - - 64 - + 8 + - 44 + + + 29 + - CAST( MIN( DISTINCT + + 68 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-4700
SELECT + 99 / - - 64 - + 8 + - 44 + + + 29 + - CAST ( MIN ( DISTINCT + + 68 ) AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT + 74 * MIN( ALL 27 ) AS col2
----
1998

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + 74 * MIN ( ALL 27 ) AS col2
----
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT 83 * + + COUNT( * ) + - 88 * + 98
----
-8541

skipif mysql # not compatible
query I rowsort label-4702
SELECT 83 * + + COUNT ( * ) + - 88 * + 98
----
-8541

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL MIN( 18 ) + 93
----
111

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL MIN ( 18 ) + 93
----
111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4704
SELECT ALL CAST( NULL AS DECIMAL ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL CAST ( NULL AS REAL ) * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + 98 * + COALESCE ( + - 18, + - 15 + 33 + + + 19 * 78 ) * + 41 - + 54 + - + COUNT( * ) - + COUNT( * ) AS col1
----
-72380

skipif mysql # not compatible
query I rowsort label-4705
SELECT + 98 * + COALESCE ( + - 18, + - 15 + 33 + + + 19 * 78 ) * + 41 - + 54 + - + COUNT ( * ) - + COUNT ( * ) AS col1
----
-72380

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL - 47 + - + 28 + + CASE COUNT( 46 ) WHEN - 70 THEN NULL ELSE 24 END + 64 - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - 47 + - + 28 + + CASE COUNT ( 46 ) WHEN - 70 THEN NULL ELSE 24 END + 64 - - COUNT ( * )
----
14

query II rowsort
SELECT DISTINCT - 95 AS col2, + 86 AS col1
----
-95
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL NULLIF ( - + ( - 17 ), - + COUNT( * ) - - - NULLIF ( COUNT( * ), + - 88 * + 56 + - - 84 * + 35 ) ) + 24
----
41

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL NULLIF ( - + ( - 17 ), - + COUNT ( * ) - - - NULLIF ( COUNT ( * ), + - 88 * + 56 + - - 84 * + 35 ) ) + 24
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT 69 + MAX( - 1 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4709
SELECT 69 + MAX ( - 1 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT + 2 + - NULLIF ( - 36, - 64 ) - COUNT( * ) * - + 16 * - + 7 col2
----
-74

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + 2 + - NULLIF ( - 36, - 64 ) - COUNT ( * ) * - + 16 * - + 7 col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4711
SELECT 49 * - COUNT( * ), + 65 AS col0
----
-49
65

skipif mysql # not compatible
query II rowsort label-4711
SELECT 49 * - COUNT ( * ), + 65 AS col0
----
-49
65

query I rowsort
SELECT DISTINCT - 30 * ( 4 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT 97 + + - ( MAX( ALL - 44 ) ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-4713
SELECT 97 + + - ( MAX ( ALL - 44 ) ) AS col1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT 68 DIV + + 11
----
6

skipif mysql # not compatible
query I rowsort label-4714
SELECT 68 / + + 11
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL - COUNT( * ) * - NULLIF ( + + 13, - - COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - COUNT ( * ) * - NULLIF ( + + 13, - - COUNT ( * ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT - + 10 * - COUNT( * ) + - + 58 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - + 10 * - COUNT ( * ) + - + 58 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT ALL - ( - COUNT( * ) ) - 75 DIV COUNT( * ) - + + COUNT( * ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - ( - COUNT ( * ) ) - 75 / COUNT ( * ) - + + COUNT ( * ) col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT 17 DIV ( 72 ) - - 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4718
SELECT 17 / ( 72 ) - - 32 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL - 93 * - + CAST( NULL AS SIGNED ) * - 13 * + 47 - + - ( + + CAST( + 1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - 93 * - + CAST ( NULL AS INTEGER ) * - 13 * + 47 - + - ( + + CAST ( + 1 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + + 98 * - + 14
----
-1372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT - CASE - + SUM( 88 ) WHEN - 0 THEN NULL WHEN 97 * + - 25 + + 94 * + AVG ( - + 40 ) - - + MAX( ALL NULLIF ( + + 34, 69 ) ) * + CAST( NULL AS SIGNED ) * - 58 / COUNT( * ) THEN NULL WHEN + CASE - 9 WHEN - 98 THEN CAST( NULL AS SIGNED ) END * - 50 THEN + 33 ELSE NULL END * - NULLIF ( - 56, - 46 * + COALESCE ( + 6, 5, - 81 ) + COUNT( * ) / 32 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT - CASE - + SUM ( 88 ) WHEN - 0 THEN NULL WHEN 97 * + - 25 + + 94 * + AVG ( - + 40 ) - - + MAX ( ALL NULLIF ( + + 34, 69 ) ) * + CAST ( NULL AS INTEGER ) * - 58 / COUNT ( * ) THEN NULL WHEN + CASE - 9 WHEN - 98 THEN CAST ( NULL AS INTEGER ) END * - 50 THEN + 33 ELSE NULL END * - NULLIF ( - 56, - 46 * + COALESCE ( + 6, 5, - 81 ) + COUNT ( * ) / 32 ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 53, 59 AS col0
----
53
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT - COUNT( 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-4723
SELECT - COUNT ( 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL - ( - + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL - ( - + COUNT ( * ) ) col1
----
1

query I rowsort
SELECT + 28 * + - 85
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT 86 * + 12 * + 26 - COUNT( * ) - - - COUNT( ALL + ( + 71 ) ) col2
----
26830

skipif mysql # not compatible
query I rowsort label-4726
SELECT 86 * + 12 * + 26 - COUNT ( * ) - - - COUNT ( ALL + ( + 71 ) ) col2
----
26830

query II rowsort
SELECT ALL 17 AS col0, + 94
----
17
94

query I rowsort
SELECT - 64 * + - 38 * 42 AS col1
----
102144

query I rowsort
SELECT DISTINCT + 86 + COALESCE ( + + 16, - CASE + 18 WHEN 69 + + ( - - 96 ) * - - 81 THEN - 4 END, 35 * - 91 )
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-4730
SELECT ALL + 17 + - 28 - + + 36 + + 99 DIV + NULLIF ( 63, - + 53 * + 54 + - ( + 52 ) ) + + + 3 AS col2, + 88 - 15
----
-43
73

skipif mysql # not compatible
query II rowsort label-4730
SELECT ALL + 17 + - 28 - + + 36 + + 99 / + NULLIF ( 63, - + 53 * + 54 + - ( + 52 ) ) + + + 3 AS col2, + 88 - 15
----
-43
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT - MAX( DISTINCT 16 ) + - 23 - - 26 * + COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - MAX ( DISTINCT 16 ) + - 23 - - 26 * + COUNT ( * ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4732
SELECT 39, CAST( NULL AS SIGNED ) * 45 col0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4732
SELECT 39, CAST ( NULL AS INTEGER ) * 45 col0
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT + 30 * MAX( DISTINCT + 46 ) AS col1
----
1380

skipif mysql # not compatible
query I rowsort label-4733
SELECT + 30 * MAX ( DISTINCT + 46 ) AS col1
----
1380

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT DISTINCT 25 + - + 58 DIV + 88 + + 6 + 12
----
43

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT 25 + - + 58 / + 88 + + 6 + 12
----
43

query I rowsort
SELECT ( 34 ) + 81
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL 59 + + + 68 * + + CAST( CASE - - 65 WHEN + 3 THEN - + 21 * - - MIN( - - 89 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL 59 + + + 68 * + + CAST ( CASE - - 65 WHEN + 3 THEN - + 21 * - - MIN ( - - 89 ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT 34 * - 70 * + COUNT( * ) AS col2, 14
----
-2380
14

skipif mysql # not compatible
query II rowsort label-4737
SELECT 34 * - 70 * + COUNT ( * ) AS col2, 14
----
-2380
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4738
SELECT COALESCE ( - 24, 41 * + 17 * 59 ) * - 66 * + + CAST( NULL AS DECIMAL ) * - + 76 * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT COALESCE ( - 24, 41 * + 17 * 59 ) * - 66 * + + CAST ( NULL AS REAL ) * - + 76 * 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4739
SELECT ALL - MAX( ALL - 98 ), + 57 + + MAX( + 72 ) DIV - 98 AS col2
----
98
57

skipif mysql # not compatible
query II rowsort label-4739
SELECT ALL - MAX ( ALL - 98 ), + 57 + + MAX ( + 72 ) / - 98 AS col2
----
98
57

query I rowsort
SELECT DISTINCT CASE + + 89 WHEN + 48 THEN 88 ELSE NULL END / - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT 76 + + + 35 - - 12 * - 34 + COUNT( * )
----
-296

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT 76 + + + 35 - - 12 * - 34 + COUNT ( * )
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + SUM( - - 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4742
SELECT + SUM ( - - 9 ) AS col0
----
9

query II rowsort
SELECT ALL 11 - + 0, 58 col0
----
11
58

query I rowsort
SELECT ALL 70 * + - 26 AS col2
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4745
SELECT NULLIF ( COUNT( * ), 4 * 94 + + + 51 ) * - MIN( + - 58 ) DIV + 18 - + - CASE + 68 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 38 END col0, + 21
----
-35
21

skipif mysql # not compatible
query II rowsort label-4745
SELECT NULLIF ( COUNT ( * ), 4 * 94 + + + 51 ) * - MIN ( + - 58 ) / + 18 - + - CASE + 68 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 38 END col0, + 21
----
-35
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4746
SELECT 94 * + - 54 AS col2, 74 DIV NULLIF ( + + COUNT( * ), - CAST( - ( 14 ) AS SIGNED ) * + COUNT( * ) * - - AVG ( + + 14 ) + + - MIN( DISTINCT ( 81 ) ) ) * COUNT( * ) - + 62 AS col2
----
-5076
12

skipif mysql # not compatible
query II rowsort label-4746
SELECT 94 * + - 54 AS col2, 74 / NULLIF ( + + COUNT ( * ), - CAST ( - ( 14 ) AS INTEGER ) * + COUNT ( * ) * - - AVG ( + + 14 ) + + - MIN ( DISTINCT ( 81 ) ) ) * COUNT ( * ) - + 62 AS col2
----
-5076
12

query II rowsort
SELECT DISTINCT 5 * - 21, - NULLIF ( - + 37, - 80 ) AS col2
----
-105
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + COUNT( * ) * + COUNT( * ) - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4748
SELECT + COUNT ( * ) * + COUNT ( * ) - 57 AS col2
----
-56

query I rowsort
SELECT ALL 75 - - - COALESCE ( 31, 95 ) + - 86
----
-42

query II rowsort
SELECT 84 * + 12 AS col2, + ( + 97 )
----
1008
97

query I rowsort
SELECT + 85 * 15 * + + 33
----
42075

query I rowsort
SELECT COALESCE ( 63, + 72, 35 * 57 + ( - 76 ) ) + 61 * - 84 AS col2
----
-5061

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT DISTINCT - 15 DIV - + 42 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - 15 / - + 42 * - 55
----
0

query I rowsort
SELECT + 3 + - + 18 AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4755
SELECT 55 DIV + MIN( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-4755
SELECT 55 / + MIN ( 59 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - + COUNT( * ) * + 91 + COUNT( * ) - + 64 + - + ( + + 89 ) + - + ( - 50 )
----
-193

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - + COUNT ( * ) * + 91 + COUNT ( * ) - + 64 + - + ( + + 89 ) + - + ( - 50 )
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT 3 + + - 49 + + COUNT( * ) + - + 8 + - + 50 * 61 * + 82 + + 65 + + CASE 62 WHEN - COALESCE ( + 77, 67 ) THEN ( - 96 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT 3 + + - 49 + + COUNT ( * ) + - + 8 + - + 50 * 61 * + 82 + + 65 + + CASE 62 WHEN - COALESCE ( + 77, 67 ) THEN ( - 96 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 85, 25 * + 49 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT + - COUNT( ALL 32 ) + + - 80 col1
----
-81

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + - COUNT ( ALL 32 ) + + - 80 col1
----
-81

query I rowsort
SELECT DISTINCT + 55 + + 13 AS col1
----
68

query I rowsort
SELECT ALL + COALESCE ( - 96, 7 ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL + CAST( NULL AS SIGNED ) + + MAX( ALL - + NULLIF ( 3, - - 78 ) ) / - 81 * + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + CAST ( NULL AS INTEGER ) + + MAX ( ALL - + NULLIF ( 3, - - 78 ) ) / - 81 * + + 75
----
NULL

query I rowsort
SELECT - 83 + - 91 + - + ( - 98 ) * - - 92 AS col2
----
8842

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT DISTINCT + ( - + COUNT( * ) ) + - + CASE + - NULLIF ( - + 63, 92 * - + COUNT( * ) / + 19 ) WHEN - 28 + - COUNT( * ) THEN + 37 + + 79 + + 74 WHEN MIN( - 12 ) THEN - + 18 ELSE NULL END AS col1, + 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4764
SELECT DISTINCT + ( - + COUNT ( * ) ) + - + CASE + - NULLIF ( - + 63, 92 * - + COUNT ( * ) / + 19 ) WHEN - 28 + - COUNT ( * ) THEN + 37 + + 79 + + 74 WHEN MIN ( - 12 ) THEN - + 18 ELSE NULL END AS col1, + 52
----
NULL
52

query I rowsort
SELECT DISTINCT + 1 + + 35
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4766
SELECT DISTINCT 71 + 27 * + 86 AS col2, CAST( 98 AS SIGNED )
----
2393
98

skipif mysql # not compatible
query II rowsort label-4766
SELECT DISTINCT 71 + 27 * + 86 AS col2, CAST ( 98 AS INTEGER )
----
2393
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL COUNT( + 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL COUNT ( + 56 ) AS col1
----
1

query I rowsort
SELECT ALL 6 * - 52 AS col1
----
-312

query I rowsort
SELECT NULLIF ( + 54, - 14 ) AS col0
----
54

query I rowsort
SELECT ALL - 56 * - - 11 * 9
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - 90 / - - COALESCE ( + 94, + - COUNT( * ) * 49 / + - 7 * - - ( 90 ) * + AVG ( + - 24 ) ) * - 58 * - + 87 + 80 + ( + 50 ) + - - CASE + - 68 WHEN - - SUM( 26 ) THEN NULL WHEN 45 THEN - COUNT( * ) ELSE NULL END + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT - 90 / - - COALESCE ( + 94, + - COUNT ( * ) * 49 / + - 7 * - - ( 90 ) * + AVG ( + - 24 ) ) * - 58 * - + 87 + 80 + ( + 50 ) + - - CASE + - 68 WHEN - - SUM ( 26 ) THEN NULL WHEN 45 THEN - COUNT ( * ) ELSE NULL END + - 27
----
NULL

query II rowsort
SELECT ALL 15 * + + 72 - 30 * + + NULLIF ( - + 7, + 11 ), 14 + 42 AS col1
----
1290
56

query I rowsort
SELECT ALL - 29 * - - 54 AS col0
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - 76 * + MIN( ALL + 49 ) col1
----
-3724

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 76 * + MIN ( ALL + 49 ) col1
----
-3724

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT NULLIF ( + 99, 14 ) AS col1, COALESCE ( 59, 7 + 2, - - 79 * + COUNT( * ) * - + 0 * 84 ) * - - 63 AS col1
----
99
3717

skipif mysql # not compatible
query II rowsort label-4775
SELECT NULLIF ( + 99, 14 ) AS col1, COALESCE ( 59, 7 + 2, - - 79 * + COUNT ( * ) * - + 0 * 84 ) * - - 63 AS col1
----
99
3717

query I rowsort
SELECT - 69 + + 8 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL ( + 49 ) * 24 - + 80 * + 8 * + COUNT( * ) - - COUNT( * )
----
537

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL ( + 49 ) * 24 - + 80 * + 8 * + COUNT ( * ) - - COUNT ( * )
----
537

query I rowsort
SELECT ALL + 30 * NULLIF ( + - 18, + 23 )
----
-540

query II rowsort
SELECT + 46 * + + 57 + - 7, - 87 AS col0
----
2615
-87

query I rowsort
SELECT DISTINCT + ( + 1 )
----
1

query II rowsort
SELECT ALL + 23, 32 + + 97 col2
----
23
129

query I rowsort
SELECT + ( + 68 ) * + ( - 81 )
----
-5508

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT DISTINCT + COUNT( * ) AS col1, - 45 + + 11
----
1
-34

skipif mysql # not compatible
query II rowsort label-4783
SELECT DISTINCT + COUNT ( * ) AS col1, - 45 + + 11
----
1
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT + 43 + - 98 + 65 DIV - 74 * - - 83
----
-55

skipif mysql # not compatible
query I rowsort label-4784
SELECT + 43 + - 98 + 65 / - 74 * - - 83
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + 83 * + CASE + 80 WHEN + 74 / - - 99 + - COUNT( * ) THEN - NULLIF ( 76, 34 ) * + COUNT( * ) - + 31 WHEN + 41 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + 83 * + CASE + 80 WHEN + 74 / - - 99 + - COUNT ( * ) THEN - NULLIF ( 76, 34 ) * + COUNT ( * ) - + 31 WHEN + 41 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + MIN( ALL + + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4786
SELECT + MIN ( ALL + + 99 ) AS col2
----
99

query I rowsort
SELECT - 70 + 16 + - ( - 59 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + 81 * 94 + - 48 + ( - + 14 ) * - COUNT( * )
----
7580

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + 81 * 94 + - 48 + ( - + 14 ) * - COUNT ( * )
----
7580

query I rowsort
SELECT DISTINCT + ( + - 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT + - CAST( + 90 AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + - CAST ( + 90 AS INTEGER ) AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT - COALESCE ( 36, - + CAST( + 69 AS SIGNED ) * COUNT( * ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4791
SELECT - COALESCE ( 36, - + CAST ( + 69 AS INTEGER ) * COUNT ( * ) ) AS col2
----
-36

query I rowsort
SELECT DISTINCT 97 * - 73 AS col1
----
-7081

query I rowsort
SELECT ALL + 50 + - 42 - + 80
----
-72

query I rowsort
SELECT ALL + 92 + 30 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + - NULLIF ( + + 26, + + MAX( - 28 ) + - 93 ) - + 42 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4795
SELECT + - NULLIF ( + + 26, + + MAX ( - 28 ) + - 93 ) - + 42 AS col1
----
-68

query I rowsort
SELECT - 68 + + - 91 AS col1
----
-159

query I rowsort
SELECT ALL - 9 + - 54 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4798
SELECT + - 29 + + 64 + - 38, - CAST( NULL AS SIGNED ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4798
SELECT + - 29 + + 64 + - 38, - CAST ( NULL AS INTEGER ) AS col1
----
-3
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 13, 19 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT ALL CAST( NULL AS SIGNED ) - - CASE - 32 WHEN 13 * - 39 + - - 61 - - SUM( 77 ) * + MIN( - - 50 ) THEN AVG ( ( + 80 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL CAST ( NULL AS INTEGER ) - - CASE - 32 WHEN 13 * - 39 + - - 61 - - SUM ( 77 ) * + MIN ( - - 50 ) THEN AVG ( ( + 80 ) ) END
----
NULL

query I rowsort
SELECT - ( + + 6 ) + 28 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT + 15 - COUNT( * ) + + 31 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + 15 - COUNT ( * ) + + 31 AS col2
----
45

query I rowsort
SELECT ALL - 61 * - 22
----
1342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT - CAST( + + 85 AS SIGNED ) - + + 62 + - - 53 + - 41 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-4804
SELECT - CAST ( + + 85 AS INTEGER ) - + + 62 + - - 53 + - 41 AS col0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4805
SELECT DISTINCT ( + + 19 ) AS col2, + SUM( ALL + + 52 ) DIV - + 11 AS col2
----
19
-4

skipif mysql # not compatible
query II rowsort label-4805
SELECT DISTINCT ( + + 19 ) AS col2, + SUM ( ALL + + 52 ) / - + 11 AS col2
----
19
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT ALL ( + CAST( + + MIN( ALL - 29 ) AS SIGNED ) )
----
-29

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL ( + CAST ( + + MIN ( ALL - 29 ) AS INTEGER ) )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4807
SELECT - COUNT( - - 70 ) * 45 * - - COUNT( * ) AS col0, + 48 * - COUNT( * ) + 9 + + 62 DIV 34 + + - 75 + - 19 AS col2
----
-45
-132

skipif mysql # not compatible
query II rowsort label-4807
SELECT - COUNT ( - - 70 ) * 45 * - - COUNT ( * ) AS col0, + 48 * - COUNT ( * ) + 9 + + 62 / 34 + + - 75 + - 19 AS col2
----
-45
-132

query I rowsort
SELECT ALL + 98 * + 53
----
5194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT - COALESCE ( + + MIN( + CAST( 37 AS SIGNED ) ), ( - - 73 ), - COUNT( * ) ) * 64 + CAST( NULL AS SIGNED ) * - 99 * + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - COALESCE ( + + MIN ( + CAST ( 37 AS INTEGER ) ), ( - - 73 ), - COUNT ( * ) ) * 64 + CAST ( NULL AS INTEGER ) * - 99 * + + 87 AS col0
----
NULL

query I rowsort
SELECT - 10 + + 70 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - ( - + 43 ) * - - 84 - 1 + + MIN( 11 )
----
3622

skipif mysql # not compatible
query I rowsort label-4811
SELECT - ( - + 43 ) * - - 84 - 1 + + MIN ( 11 )
----
3622

query I rowsort
SELECT + + 17 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT COALESCE ( + - 11, + ( - - 34 ) + + MIN( - + 29 ), COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4813
SELECT COALESCE ( + - 11, + ( - - 34 ) + + MIN ( - + 29 ), COUNT ( * ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT ALL + CAST( NULL AS SIGNED ) * 6 + MIN( 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + CAST ( NULL AS INTEGER ) * 6 + MIN ( 56 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT - + 11 * + - NULLIF ( 69, + 62 / - 74 * + 69 - + - 4 + 97 * - COUNT( * ) ) - + 76 * + - 44 + - 68 AS col2
----
4035

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - + 11 * + - NULLIF ( 69, + 62 / - 74 * + 69 - + - 4 + 97 * - COUNT ( * ) ) - + 76 * + - 44 + - 68 AS col2
----
4035

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT DISTINCT - 32 DIV 22 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - 32 / 22 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT 69 * + - 62 + + CAST( - - 39 AS SIGNED )
----
-4239

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT 69 * + - 62 + + CAST ( - - 39 AS INTEGER )
----
-4239

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT 35 * + ( ( NULLIF ( + 15, + 11 * + 99 + + 79 ) ) ) - + COUNT( * ) + - + 7 AS col0
----
517

skipif mysql # not compatible
query I rowsort label-4818
SELECT 35 * + ( ( NULLIF ( + 15, + 11 * + 99 + + 79 ) ) ) - + COUNT ( * ) + - + 7 AS col0
----
517

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4819
SELECT DISTINCT 18 DIV - - 46 * + COUNT( * ) * - 62 * - + 61 AS col2, 85 AS col2
----
0
85

skipif mysql # not compatible
query II rowsort label-4819
SELECT DISTINCT 18 / - - 46 * + COUNT ( * ) * - 62 * - + 61 AS col2, 85 AS col2
----
0
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT - SUM( ( 17 ) ) + 87 DIV 22
----
-14

skipif mysql # not compatible
query I rowsort label-4820
SELECT - SUM ( ( 17 ) ) + 87 / 22
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT CAST( + + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4821
SELECT CAST ( + + 74 AS INTEGER )
----
74

query I rowsort
SELECT - + ( - 31 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4823
SELECT 56 * + + 43, + COUNT( * ) AS col0
----
2408
1

skipif mysql # not compatible
query II rowsort label-4823
SELECT 56 * + + 43, + COUNT ( * ) AS col0
----
2408
1

query I rowsort
SELECT ALL 40 + 58 AS col0
----
98

query I rowsort
SELECT + ( + + 38 ) AS col2
----
38

query I rowsort
SELECT ALL + 5 + - 30 AS col0
----
-25

query I rowsort
SELECT DISTINCT 98 * + 7 AS col1
----
686

query I rowsort
SELECT 35 + 44
----
79

query I rowsort
SELECT ALL 1 - - - 59 AS col2
----
-58

query II rowsort
SELECT 34 + 55 + + 81 AS col0, 13
----
170
13

query II rowsort
SELECT - 84 AS col1, - 19 AS col2
----
-84
-19

query I rowsort
SELECT 82 + 84 AS col0
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4833
SELECT ALL 39, + NULLIF ( 27, + 26 + - - CAST( NULL AS SIGNED ) + 43 + - - 66 ) + - 57 AS col1
----
39
-30

skipif mysql # not compatible
query II rowsort label-4833
SELECT ALL 39, + NULLIF ( 27, + 26 + - - CAST ( NULL AS INTEGER ) + 43 + - - 66 ) + - 57 AS col1
----
39
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4834
SELECT CAST( 27 AS SIGNED ) DIV - CAST( + 96 AS SIGNED ) * + 75 * + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT CAST ( 27 AS INTEGER ) / - CAST ( + 96 AS INTEGER ) * + 75 * + 69 col1
----
0

query I rowsort
SELECT 98 * - - 90
----
8820

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT DISTINCT 93 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT 93 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - 66 * - - COUNT( * ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - 66 * - - COUNT ( * ) col1
----
-66

query I rowsort
SELECT 88 * - 14
----
-1232

query I rowsort
SELECT ALL 28 * - 0
----
0

query I rowsort
SELECT 94 - - 42 + + - 89 * 58
----
-5026

query I rowsort
SELECT DISTINCT 46 * + 3 AS col0
----
138

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4842
SELECT + 38 * + + 55 + - 94 AS col1, 71 / + 33 * - + CAST( NULL AS DECIMAL ) AS col0
----
1996
NULL

skipif mysql # not compatible
query II rowsort label-4842
SELECT + 38 * + + 55 + - 94 AS col1, 71 / + 33 * - + CAST ( NULL AS REAL ) AS col0
----
1996
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT 3 - - COUNT( * ) + 99 AS col0, 57 AS col1
----
103
57

skipif mysql # not compatible
query II rowsort label-4843
SELECT 3 - - COUNT ( * ) + 99 AS col0, 57 AS col1
----
103
57

query I rowsort
SELECT ALL + 21 * - + 74 AS col1
----
-1554

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT ALL - 42 AS col1, CASE 28 WHEN + + 0 THEN + + COUNT( * ) END AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL - 42 AS col1, CASE 28 WHEN + + 0 THEN + + COUNT ( * ) END AS col1
----
-42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT 78 DIV - - 75
----
1

skipif mysql # not compatible
query I rowsort label-4846
SELECT 78 / - - 75
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT 94 * + COUNT( * ) + + CASE + + 81 WHEN + 36 THEN + + 43 WHEN + 74 THEN NULL ELSE - CAST( + + 26 AS SIGNED ) END
----
68

skipif mysql # not compatible
query I rowsort label-4847
SELECT 94 * + COUNT ( * ) + + CASE + + 81 WHEN + 36 THEN + + 43 WHEN + 74 THEN NULL ELSE - CAST ( + + 26 AS INTEGER ) END
----
68

query II rowsort
SELECT + 18 AS col2, 70 * + + 4 * 5 * + 3
----
18
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT 23 * - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4849
SELECT 23 * - - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + ( COUNT( * ) ) + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + ( COUNT ( * ) ) + 6 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + - MAX( ALL 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-4851
SELECT + - MAX ( ALL 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT MIN( ALL + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4852
SELECT MIN ( ALL + 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT ALL + 36 + 45 + - COUNT( * ) DIV + 48 * + + 27 * + NULLIF ( 39, + ( 90 ) ) * + 36 + + NULLIF ( + 7, NULLIF ( + 60, + AVG ( + 36 ) ) ) * 24 + + ( - + 96 ) col1
----
153

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL + 36 + 45 + - COUNT ( * ) / + 48 * + + 27 * + NULLIF ( 39, + ( 90 ) ) * + 36 + + NULLIF ( + 7, NULLIF ( + 60, + AVG ( + 36 ) ) ) * 24 + + ( - + 96 ) col1
----
153

query I rowsort
SELECT - 55 * - 28 + - + 58 + 0
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL + COUNT( * ) + + 38 - + - 32 * 87 AS col2
----
2823

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + COUNT ( * ) + + 38 - + - 32 * 87 AS col2
----
2823

query I rowsort
SELECT ALL - ( - + 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4857
SELECT 88 * + - 18 DIV + COUNT( * ) + + - CAST( - 1 AS SIGNED ) AS col0, 82 - + 58 AS col1
----
-1583
24

skipif mysql # not compatible
query II rowsort label-4857
SELECT 88 * + - 18 / + COUNT ( * ) + + - CAST ( - 1 AS INTEGER ) AS col0, 82 - + 58 AS col1
----
-1583
24

query I rowsort
SELECT - 28 + - - 85 + + 53 * + 46
----
2495

query I rowsort
SELECT + + 35 col2
----
35

query II rowsort
SELECT 48 col0, + 59 * + 15 + - 24 + - 41 AS col1
----
48
820

query I rowsort
SELECT ALL - + 71 - - - 20 - - 30
----
-61

query I rowsort
SELECT DISTINCT 43 - 0 + + ( - 41 ) col0
----
2

query I rowsort
SELECT ALL - ( 68 ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + ( - MAX( DISTINCT - - 6 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4864
SELECT + ( - MAX ( DISTINCT - - 6 ) ) AS col1
----
-6

query I rowsort
SELECT ALL - - CASE + - 21 WHEN - 32 THEN 6 WHEN + 50 THEN - 69 END - - 95
----
NULL

query I rowsort
SELECT - 30 * - 8 * - 99
----
-23760

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT 43 * + CASE MAX( - - 75 ) WHEN + + 45 - - 96 THEN + 30 - + 85 * - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT 43 * + CASE MAX ( - - 75 ) WHEN + + 45 - - 96 THEN + 30 - + 85 * - 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT 79 + + + 93 + + 21 * + - COUNT( * ) + - + SUM( - 44 ) + 65 + 40 * 66 + - 36 + + - 32 * + 88 * + + 57
----
-157648

skipif mysql # not compatible
query I rowsort label-4868
SELECT 79 + + + 93 + + 21 * + - COUNT ( * ) + - + SUM ( - 44 ) + 65 + 40 * 66 + - 36 + + - 32 * + 88 * + + 57
----
-157648

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT DISTINCT 12 DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT 12 / + + 93
----
0

query I rowsort
SELECT 69 + + 93
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL COUNT( * ) * - - 48 col0
----
48

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL COUNT ( * ) * - - 48 col0
----
48

query I rowsort
SELECT ( - NULLIF ( - 46, + + 96 ) ) * 69 - ( + 21 )
----
3153

query I rowsort
SELECT ALL + 25 * - 8 AS col1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL COUNT( * ) + - 23
----
-22

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL COUNT ( * ) + - 23
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT 68 * ( CASE MAX( ALL 1 ) WHEN 85 * + NULLIF ( 35, - 85 ) - 84 THEN - ( + 33 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT 68 * ( CASE MAX ( ALL 1 ) WHEN 85 * + NULLIF ( 35, - 85 ) - 84 THEN - ( + 33 ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT 4 + + - 76 AS col0, COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-4876
SELECT 4 + + - 76 AS col0, COUNT ( * )
----
-72
1

query II rowsort
SELECT 87 AS col2, 71
----
87
71

query I rowsort
SELECT DISTINCT 40 + + 12 + 90 AS col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT 23 DIV + 7
----
3

skipif mysql # not compatible
query I rowsort label-4879
SELECT 23 / + 7
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL 75 + - + MIN( 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 75 + - + MIN ( 76 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT 93 * - + MIN( DISTINCT 91 ) * 36 * + COALESCE ( + + 30, 20 )
----
-9140040

skipif mysql # not compatible
query I rowsort label-4881
SELECT 93 * - + MIN ( DISTINCT 91 ) * 36 * + COALESCE ( + + 30, 20 )
----
-9140040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT DISTINCT 92 / - + 73 / - NULLIF ( - ( CAST( NULL AS SIGNED ) ), - 43 * 68 * - 70 / - 44 * - - COUNT( * ) * 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT 92 / - + 73 / - NULLIF ( - ( CAST ( NULL AS INTEGER ) ), - 43 * 68 * - 70 / - 44 * - - COUNT ( * ) * 36 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4883
SELECT DISTINCT - NULLIF ( NULLIF ( COUNT( * ), 93 + - - 29 ), 53 * + + ( - 97 ) + + - 43 * - 35 ) * 22 * 6 * - 38 + + - 31 AS col2, 29 - - 13 col2
----
4985
42

skipif mysql # not compatible
query II rowsort label-4883
SELECT DISTINCT - NULLIF ( NULLIF ( COUNT ( * ), 93 + - - 29 ), 53 * + + ( - 97 ) + + - 43 * - 35 ) * 22 * 6 * - 38 + + - 31 AS col2, 29 - - 13 col2
----
4985
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4884
SELECT DISTINCT - - 2, - 12 * + + 73 * + 47 * - MIN( - - 77 ) * 58 AS col1
----
2
183874152

skipif mysql # not compatible
query II rowsort label-4884
SELECT DISTINCT - - 2, - 12 * + + 73 * + 47 * - MIN ( - - 77 ) * 58 AS col1
----
2
183874152

query I rowsort
SELECT ALL - - 24 * 73 AS col2
----
1752

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT - ( - 54 ) DIV - 26 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4886
SELECT - ( - 54 ) / - 26 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT - + CAST( + COALESCE ( + + COUNT( * ), - - 36, NULLIF ( - 59, - - COUNT( * ) ) * + + 3 + - 0 + + ( - MAX( + 84 ) ) * + 78 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - + CAST ( + COALESCE ( + + COUNT ( * ), - - 36, NULLIF ( - 59, - - COUNT ( * ) ) * + + 3 + - 0 + + ( - MAX ( + 84 ) ) * + 78 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL + 4 * 18 + + 76 AS col2
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + 12 DIV - - COALESCE ( - 71, + - 73 DIV MAX( ALL + 83 ) ) + + 5
----
5

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 12 / - - COALESCE ( - 71, + - 73 / MAX ( ALL + 83 ) ) + + 5
----
5

query I rowsort
SELECT DISTINCT + 75 col1
----
75

query I rowsort
SELECT ALL + - 48 * + 63 * + 44 - + 36 + + 57 * 41 + + 23 col1
----
-130732

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT + COUNT( * ) AS col1, 7 - - 66
----
1
73

skipif mysql # not compatible
query II rowsort label-4892
SELECT + COUNT ( * ) AS col1, 7 - - 66
----
1
73

query I rowsort
SELECT ALL + 97 * 38 - - 57
----
3743

query II rowsort
SELECT ALL + - 36 AS col1, 8 + - 48
----
-36
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT - COUNT( * ) + 62 * - 60
----
-3721

skipif mysql # not compatible
query I rowsort label-4895
SELECT - COUNT ( * ) + 62 * - 60
----
-3721

query II rowsort
SELECT ALL + 16 AS col2, - 57
----
16
-57

query I rowsort
SELECT ALL - 97 * - 69
----
6693

query I rowsort
SELECT - - 92 * - 98
----
-9016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT - 60 + - - 6 + COUNT( * ) DIV + + 16 * - 10
----
-54

skipif mysql # not compatible
query I rowsort label-4899
SELECT - 60 + - - 6 + COUNT ( * ) / + + 16 * - 10
----
-54

query II rowsort
SELECT - 65 - 48 AS col0, 98 * + 94 + + 95 * - 34 - + 78 AS col2
----
-113
5904

query I rowsort
SELECT ALL - 2 * - - 65
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4902
SELECT - 83 * + 66 * 89 AS col1, CAST( - - 12 AS SIGNED ) AS col1
----
-487542
12

skipif mysql # not compatible
query II rowsort label-4902
SELECT - 83 * + 66 * 89 AS col1, CAST ( - - 12 AS INTEGER ) AS col1
----
-487542
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL CASE + 9 WHEN 63 * + 53 + + 6 THEN 10 - - + 4 * COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL CASE + 9 WHEN 63 * + 53 + + 6 THEN 10 - - + 4 * COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL COUNT( DISTINCT 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL COUNT ( DISTINCT 45 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT NULLIF ( + MAX( ALL + 64 ), - 47 )
----
64

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT NULLIF ( + MAX ( ALL + 64 ), - 47 )
----
64

query I rowsort
SELECT ALL COALESCE ( 84, - - 23 ) + - 98 * + 21
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - COUNT( * ) + 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4907
SELECT - COUNT ( * ) + 99 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT + 17 * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT + 17 * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 22 AS col0
----
NULL

query I rowsort
SELECT - 87 * + + 85
----
-7395

query I rowsort
SELECT + 93 * 29
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL + COUNT( * ) * + - ( - + 0 ) * + 45
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + COUNT ( * ) * + - ( - + 0 ) * + 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT - CASE COUNT( * ) WHEN - COUNT( * ) THEN + 47 WHEN - + 4 THEN NULL ELSE - + ( + CAST( NULL AS SIGNED ) ) * - 81 + COUNT( * ) END + + 9 + 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN + 47 WHEN - + 4 THEN NULL ELSE - + ( + CAST ( NULL AS INTEGER ) ) * - 81 + COUNT ( * ) END + + 9 + 54 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL 51 * - 37 * CASE - + 45 WHEN - CAST( + NULLIF ( - ( 43 ), SUM( + + 3 ) ) AS SIGNED ) THEN + 71 - 31 WHEN 25 THEN + + MIN( ALL COALESCE ( + - 90, + CAST( NULL AS SIGNED ), - - 86 ) ) / + COUNT( * ) + 37 * - 35 - + CASE - COUNT( ALL + + 22 ) WHEN + + 36 THEN NULL ELSE 77 * - CAST( - - COUNT( * ) AS SIGNED ) + - 65 + + 94 END * - + 48 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL 51 * - 37 * CASE - + 45 WHEN - CAST ( + NULLIF ( - ( 43 ), SUM ( + + 3 ) ) AS INTEGER ) THEN + 71 - 31 WHEN 25 THEN + + MIN ( ALL COALESCE ( + - 90, + CAST ( NULL AS INTEGER ), - - 86 ) ) / + COUNT ( * ) + 37 * - 35 - + CASE - COUNT ( ALL + + 22 ) WHEN + + 36 THEN NULL ELSE 77 * - CAST ( - - COUNT ( * ) AS INTEGER ) + - 65 + + 94 END * - + 48 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 57 + - 38 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL - 95 + - MAX( ALL + 58 ) col0
----
-153

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - 95 + - MAX ( ALL + 58 ) col0
----
-153

query I rowsort
SELECT + 33 + + ( - 8 ) * + - 99
----
825

query I rowsort
SELECT ALL + + 67 + - 42 + - - 73
----
98

query II rowsort
SELECT ALL + 78 + + + 54 * + 56 AS col0, 79 AS col1
----
3102
79

query I rowsort
SELECT - 84 * + 71 + + 17 + + - 34 AS col2
----
-5981

query I rowsort
SELECT 48 * - - 66 + ( - 13 ) + - + 5 col1
----
3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4921
SELECT ALL + - MAX( - + 44 ) DIV 32 - - 44 * + 45 + + + CAST( - 41 AS SIGNED ) + ( - + 7 )
----
1933

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + - MAX ( - + 44 ) / 32 - - 44 * + 45 + + + CAST ( - 41 AS INTEGER ) + ( - + 7 )
----
1933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT + 49 * + CAST( 51 AS SIGNED ) + + 24
----
2523

skipif mysql # not compatible
query I rowsort label-4922
SELECT + 49 * + CAST ( 51 AS INTEGER ) + + 24
----
2523

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT + - 0 DIV + 70 + - 65 + + 5 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4923
SELECT + - 0 / + 70 + - 65 + + 5 AS col1
----
-60

query I rowsort
SELECT DISTINCT + + 2 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT CAST( - + CAST( + 41 AS SIGNED ) AS SIGNED ) * + 93 - + 94 + - 85 * SUM( ALL + 5 ) * + COUNT( * ) + CASE - 69 WHEN + + 9 - + + 56 - + NULLIF ( 86, + 64 ) * + 48 THEN - + 2 + - + 77 * - 20 * + 78 + 70 + + + COALESCE ( - CASE - ( - COALESCE ( + COUNT( * ), + COUNT( * ) ) ) WHEN - 59 * + ( + - 18 ) / + 29 + - 17 THEN - 18 WHEN - COUNT( * ) * COUNT( * ) + - 70 THEN + COUNT( * ) * - 19 WHEN - 81 THEN + SUM( ALL - CAST( 4 AS SIGNED ) ) - - 22 ELSE + COUNT( * ) END, 10 ) - + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT CAST ( - + CAST ( + 41 AS INTEGER ) AS INTEGER ) * + 93 - + 94 + - 85 * SUM ( ALL + 5 ) * + COUNT ( * ) + CASE - 69 WHEN + + 9 - + + 56 - + NULLIF ( 86, + 64 ) * + 48 THEN - + 2 + - + 77 * - 20 * + 78 + 70 + + + COALESCE ( - CASE - ( - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) ) WHEN - 59 * + ( + - 18 ) / + 29 + - 17 THEN - 18 WHEN - COUNT ( * ) * COUNT ( * ) + - 70 THEN + COUNT ( * ) * - 19 WHEN - 81 THEN + SUM ( ALL - CAST ( 4 AS INTEGER ) ) - - 22 ELSE + COUNT ( * ) END, 10 ) - + 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( + - 48 ) - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( + - 48 ) - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT ALL + MAX( 68 ), 83 * + - ( + ( + 80 ) ) AS col0
----
68
-6640

skipif mysql # not compatible
query II rowsort label-4927
SELECT ALL + MAX ( 68 ), 83 * + - ( + ( + 80 ) ) AS col0
----
68
-6640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT ALL 91 * - + CAST( NULL AS SIGNED ) - - 19 + ( - 60 ) - + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL 91 * - + CAST ( NULL AS INTEGER ) - - 19 + ( - 60 ) - + 62 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 69 AS col0
----
-69

query I rowsort
SELECT ALL + + NULLIF ( - 12, + 6 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL ( + 63 ) * - + NULLIF ( + - 66, - 19 * 83 * - - 23 + - - SUM( - - 73 ) - 44 ) AS col1
----
4158

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL ( + 63 ) * - + NULLIF ( + - 66, - 19 * 83 * - - 23 + - - SUM ( - - 73 ) - 44 ) AS col1
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + + CASE - 10 WHEN + MAX( + - 94 ) THEN - 89 END * - NULLIF ( + 21, 39 * - 11 ) - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT + + CASE - 10 WHEN + MAX ( + - 94 ) THEN - 89 END * - NULLIF ( + 21, 39 * - 11 ) - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + COUNT( * ) * - - 87 + MIN( ALL - 35 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4933
SELECT + COUNT ( * ) * - - 87 + MIN ( ALL - 35 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4934
SELECT - ( 5 ) DIV + COALESCE ( - - 81, CAST( 9 AS SIGNED ) * - 0 * + AVG ( 26 ) + 48, 18 + - 91, - 58 ), - 44 + + - 90 + + 56 DIV + + 28 AS col2
----
0
-132

skipif mysql # not compatible
query II rowsort label-4934
SELECT - ( 5 ) / + COALESCE ( - - 81, CAST ( 9 AS INTEGER ) * - 0 * + AVG ( 26 ) + 48, 18 + - 91, - 58 ), - 44 + + - 90 + + 56 / + + 28 AS col2
----
0
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT CASE + - 58 WHEN - 9 THEN - 12 * + + COUNT( * ) - + 58 ELSE 74 END AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4935
SELECT CASE + - 58 WHEN - 9 THEN - 12 * + + COUNT ( * ) - + 58 ELSE 74 END AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL 33 * - MAX( 53 ) + - + 94 AS col0
----
-1843

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL 33 * - MAX ( 53 ) + - + 94 AS col0
----
-1843

onlyif mysql # aggregate syntax: 
query II rowsort label-4937
SELECT ALL + 7, MIN( DISTINCT - - NULLIF ( - 88, + 18 + - ( + 86 ) + - 47 * + - 62 * - + 76 ) ) AS col1
----
7
-88

skipif mysql # not compatible
query II rowsort label-4937
SELECT ALL + 7, MIN ( DISTINCT - - NULLIF ( - 88, + 18 + - ( + 86 ) + - 47 * + - 62 * - + 76 ) ) AS col1
----
7
-88

query I rowsort
SELECT - ( + ( - ( 6 ) ) ) + + 35 * + - 91 AS col1
----
-3179

query I rowsort
SELECT - 6 * 15 AS col2
----
-90

query I rowsort
SELECT ALL ( - - 89 ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4941
SELECT - 35 AS col2, + COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 24 AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-4941
SELECT - 35 AS col2, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 24 AS col1
----
-35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL CASE + ( + 34 ) WHEN 94 THEN CASE + 40 WHEN + + COUNT( * ) THEN - + 83 / + - COUNT( * ) - - 79 END WHEN + + 1 * - - COUNT( + 67 ) THEN + 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL CASE + ( + 34 ) WHEN 94 THEN CASE + 40 WHEN + + COUNT ( * ) THEN - + 83 / + - COUNT ( * ) - - 79 END WHEN + + 1 * - - COUNT ( + 67 ) THEN + 13 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT COUNT( ALL + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4943
SELECT COUNT ( ALL + 97 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT + MIN( DISTINCT - COALESCE ( + + 95, + 46 ) ) - 92 * + 72 AS col2
----
-6719

skipif mysql # not compatible
query I rowsort label-4944
SELECT + MIN ( DISTINCT - COALESCE ( + + 95, + 46 ) ) - 92 * + 72 AS col2
----
-6719

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL + COUNT( * ) + COUNT( * ) + + 24 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + 24 AS col1
----
26

query II rowsort
SELECT - 0 AS col0, + 62
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT - NULLIF ( ( + 2 ), 48 ) * - - MAX( ALL + 37 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4947
SELECT - NULLIF ( ( + 2 ), 48 ) * - - MAX ( ALL + 37 ) AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT ALL CAST( 40 AS SIGNED ) col1
----
40

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL CAST ( 40 AS INTEGER ) col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT - 57 DIV + 21
----
-2

skipif mysql # not compatible
query I rowsort label-4949
SELECT - 57 / + 21
----
-2

query I rowsort
SELECT DISTINCT + 63 + - 17 * + 71
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL NULLIF ( + 69, + MIN( 62 ) / - 83 - - - 76 + - + 55 - - 92 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL NULLIF ( + 69, + MIN ( 62 ) / - 83 - - - 76 + - + 55 - - 92 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - MAX( 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4952
SELECT - MAX ( 78 ) AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT - CAST( - + 9 AS SIGNED ) + 87
----
96

skipif mysql # not compatible
query I rowsort label-4953
SELECT - CAST ( - + 9 AS INTEGER ) + 87
----
96

query I rowsort
SELECT - 81 + - 58 AS col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL - COUNT( * ) - - 48
----
47

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - COUNT ( * ) - - 48
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT - COUNT( * ) * + + MIN( + + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4956
SELECT - COUNT ( * ) * + + MIN ( + + 89 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT ALL + - COALESCE ( - 13, + 29 DIV - + 68 * - - COUNT( * ) * - 95, COALESCE ( + COUNT( - 3 ), + COALESCE ( + SUM( DISTINCT + + ( 68 ) ), - 60 ), 92 * + 42 ) * + + 49 ) DIV - + 36 + - 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + - COALESCE ( - 13, + 29 / - + 68 * - - COUNT ( * ) * - 95, COALESCE ( + COUNT ( - 3 ), + COALESCE ( + SUM ( DISTINCT + + ( 68 ) ), - 60 ), 92 * + 42 ) * + + 49 ) / - + 36 + - 71 AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT + 33 DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT + 33 / - + 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT - - COUNT( * ), - COALESCE ( - NULLIF ( - MIN( 70 ), - 60 + COALESCE ( - 6, 31 * 11 * 72 ) + - NULLIF ( 80, 51 ) + + 78 * 65 ), - 52 ) AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-4959
SELECT - - COUNT ( * ), - COALESCE ( - NULLIF ( - MIN ( 70 ), - 60 + COALESCE ( - 6, 31 * 11 * 72 ) + - NULLIF ( 80, 51 ) + + 78 * 65 ), - 52 ) AS col0
----
1
-70

query II rowsort
SELECT 36 AS col0, 54 AS col0
----
36
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4961
SELECT ALL - + 91, + COUNT( * ) + + 25 * - CAST( NULL AS DECIMAL ) / - + 13 AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL - + 91, + COUNT ( * ) + + 25 * - CAST ( NULL AS REAL ) / - + 13 AS col2
----
-91
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4962
SELECT 74, 76 DIV - 21 AS col0
----
74
-3

skipif mysql # not compatible
query II rowsort label-4962
SELECT 74, 76 / - 21 AS col0
----
74
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT ALL CAST( NULL AS SIGNED ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL CAST ( NULL AS INTEGER ) * 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - MAX( + + NULLIF ( - 60, - 18 * + 64 ) ) * - 68 * + MIN( + + 38 ) AS col0
----
-155040

skipif mysql # not compatible
query I rowsort label-4964
SELECT - MAX ( + + NULLIF ( - 60, - 18 * + 64 ) ) * - 68 * + MIN ( + + 38 ) AS col0
----
-155040

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL COUNT( ALL - 98 ) * + 21 / - CASE - 51 WHEN 7 + MIN( - 0 ) THEN - - 95 WHEN + ( 71 ) * + 77 + + NULLIF ( + 29, - 9 / 40 + 50 * + - 27 * + + ( 38 ) ) + - 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL COUNT ( ALL - 98 ) * + 21 / - CASE - 51 WHEN 7 + MIN ( - 0 ) THEN - - 95 WHEN + ( 71 ) * + 77 + + NULLIF ( + 29, - 9 / 40 + 50 * + - 27 * + + ( 38 ) ) + - 14 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4966
SELECT + - 33, ( + 39 ) DIV - COALESCE ( MIN( 54 ), - 68 + + + 53 ) + + 68 * 53 + - 94 AS col0
----
-33
3510

skipif mysql # not compatible
query II rowsort label-4966
SELECT + - 33, ( + 39 ) / - COALESCE ( MIN ( 54 ), - 68 + + + 53 ) + + 68 * 53 + - 94 AS col0
----
-33
3510

query I rowsort
SELECT + 50 * + 24
----
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT DISTINCT - CAST( - - COALESCE ( + + COUNT( * ), - + 32 + ( + + 25 ), - - 34 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - CAST ( - - COALESCE ( + + COUNT ( * ), - + 32 + ( + + 25 ), - - 34 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT + 76 * + CAST( NULL AS SIGNED ) - ( 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT + 76 * + CAST ( NULL AS INTEGER ) - ( 60 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4970
SELECT ALL 65 DIV + + 34
----
1

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 65 / + + 34
----
1

query I rowsort
SELECT ALL 24 + - 76 col0
----
-52

query I rowsort
SELECT ALL 36 + - + 90 * + - 84 * - 12 AS col0
----
-90684

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL COUNT( * ) + - 30 + + + 49
----
20

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL COUNT ( * ) + - 30 + + + 49
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-4974
SELECT ALL 29 DIV - - 75 * - 9 * + - 74, - ( + - 12 ) AS col1
----
0
12

skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL 29 / - - 75 * - 9 * + - 74, - ( + - 12 ) AS col1
----
0
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL MIN( 32 ) + + 9 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL MIN ( 32 ) + + 9 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT CASE 55 WHEN + CASE + - 78 WHEN + SUM( 88 ) THEN 82 * 35 + + 23 * + 34 END THEN + - 6 + - 78 ELSE NULL END + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT CASE 55 WHEN + CASE + - 78 WHEN + SUM ( 88 ) THEN 82 * 35 + + 23 * + 34 END THEN + - 6 + - 78 ELSE NULL END + - 39
----
NULL

query I rowsort
SELECT 81 + 91 col0
----
172

query I rowsort
SELECT ALL 46 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT 87 + - + 66 + - 13 * + + COUNT( * ) * + 9 col1
----
-96

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT 87 + - + 66 + - 13 * + + COUNT ( * ) * + 9 col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT + 49 + + COUNT( * ) + - 13 col0
----
37

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT + 49 + + COUNT ( * ) + - 13 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT + COUNT( * ) - + ( + 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT + COUNT ( * ) - + ( + 26 )
----
-25

query I rowsort
SELECT 32 * + + 1 * - 99
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + + 88 - - + SUM( - + 35 )
----
53

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + + 88 - - + SUM ( - + 35 )
----
53

query II rowsort
SELECT 9 + - 76 AS col1, + 57 + 18
----
-67
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ( + NULLIF ( - + 59, - 81 * - 27 + + - CASE + 32 WHEN + 24 THEN 78 + - - 47 * 98 WHEN + COUNT( * ) THEN - 43 ELSE - - 67 END ) ) * + COUNT( * ) * - 52
----
3068

skipif mysql # not compatible
query I rowsort label-4985
SELECT ( + NULLIF ( - + 59, - 81 * - 27 + + - CASE + 32 WHEN + 24 THEN 78 + - - 47 * 98 WHEN + COUNT ( * ) THEN - 43 ELSE - - 67 END ) ) * + COUNT ( * ) * - 52
----
3068

query I rowsort
SELECT ALL + - 12 * 15
----
-180

query I rowsort
SELECT + 31 + - 29 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT 1 - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT 1 - + COUNT ( * )
----
0

query I rowsort
SELECT 32 + + 24
----
56

query I rowsort
SELECT ALL + 81 * 62
----
5022

query I rowsort
SELECT 78 + ( - + 80 ) + 13 * + 49
----
635

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4992
SELECT DISTINCT + CAST( 64 AS SIGNED ) AS col2, 71 AS col2
----
64
71

skipif mysql # not compatible
query II rowsort label-4992
SELECT DISTINCT + CAST ( 64 AS INTEGER ) AS col2, 71 AS col2
----
64
71

onlyif mysql # DIV for integer division: 
query II rowsort label-4993
SELECT 70 DIV - 77 AS col2, 16 * - + 41
----
0
-656

skipif mysql # not compatible
query II rowsort label-4993
SELECT 70 / - 77 AS col2, 16 * - + 41
----
0
-656

query I rowsort
SELECT 58 * 14
----
812

onlyif mysql # DIV for integer division: 
query II rowsort label-4995
SELECT ALL - - ( - 65 ) DIV 44 * + - 56 AS col2, + 4
----
56
4

skipif mysql # not compatible
query II rowsort label-4995
SELECT ALL - - ( - 65 ) / 44 * + - 56 AS col2, + 4
----
56
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4996
SELECT + 41 * + CASE 66 WHEN - 0 / 57 / - 8 + - 81 + - COUNT( * ) - + 28 THEN + 26 END * + 1 * - 9 * + ( 59 ) + - COALESCE ( - 59, NULLIF ( - 47, - 32 / - + 74 + - CAST( NULL AS SIGNED ) + - CAST( + - COUNT( * ) AS SIGNED ) ) + + - 90 + - COUNT( * ), - - COUNT( * ) * - + 41 + - 56 - 28 * + 35 ) col0, COUNT( * ) * MAX( + - 26 ) AS col0
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-4996
SELECT + 41 * + CASE 66 WHEN - 0 / 57 / - 8 + - 81 + - COUNT ( * ) - + 28 THEN + 26 END * + 1 * - 9 * + ( 59 ) + - COALESCE ( - 59, NULLIF ( - 47, - 32 / - + 74 + - CAST ( NULL AS INTEGER ) + - CAST ( + - COUNT ( * ) AS INTEGER ) ) + + - 90 + - COUNT ( * ), - - COUNT ( * ) * - + 41 + - 56 - 28 * + 35 ) col0, COUNT ( * ) * MAX ( + - 26 ) AS col0
----
NULL
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT 50 DIV + - COUNT( ALL - - 35 )
----
-50

skipif mysql # not compatible
query I rowsort label-4997
SELECT 50 / + - COUNT ( ALL - - 35 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT ALL - - NULLIF ( - + COUNT( * ), + 46 ) + - 68 + + 68 + 91 + - MIN( + 45 ) * + 94 AS col1, COUNT( * ) * - 4 * - ( - 48 ) AS col2
----
-4140
-192

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL - - NULLIF ( - + COUNT ( * ), + 46 ) + - 68 + + 68 + 91 + - MIN ( + 45 ) * + 94 AS col1, COUNT ( * ) * - 4 * - ( - 48 ) AS col2
----
-4140
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT ALL - - 28 DIV - 93 - 63
----
-63

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL - - 28 / - 93 - 63
----
-63

query I rowsort
SELECT ALL + 74 + 34 + + 60 - - 80 * - - 19
----
1688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT + NULLIF ( - 28, + 36 + - - 27 ) * + - 43 * + ( + COALESCE ( - 87, - 88 * AVG ( ALL + - 25 ) - - 30 - + - 20 * COUNT( * ) ) ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) + + 85 / 52 * + - CASE + - CAST( NULL AS SIGNED ) WHEN - + 64 THEN NULL WHEN + 57 THEN + - 18 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT + NULLIF ( - 28, + 36 + - - 27 ) * + - 43 * + ( + COALESCE ( - 87, - 88 * AVG ( ALL + - 25 ) - - 30 - + - 20 * COUNT ( * ) ) ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 85 / 52 * + - CASE + - CAST ( NULL AS INTEGER ) WHEN - + 64 THEN NULL WHEN + 57 THEN + - 18 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5002
SELECT ALL 14 * - - 10, 50 * COUNT( - 69 ) - - 75 + + - 76 + - + CAST( + + 27 AS SIGNED ) * - COUNT( * ) AS col2
----
140
76

skipif mysql # not compatible
query II rowsort label-5002
SELECT ALL 14 * - - 10, 50 * COUNT ( - 69 ) - - 75 + + - 76 + - + CAST ( + + 27 AS INTEGER ) * - COUNT ( * ) AS col2
----
140
76

query I rowsort
SELECT DISTINCT + 98 + ( - 97 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT ALL 18 + + NULLIF ( + 81, - CAST( + 46 AS SIGNED ) * - 18 - 20 )
----
99

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL 18 + + NULLIF ( + 81, - CAST ( + 46 AS INTEGER ) * - 18 - 20 )
----
99

query I rowsort
SELECT DISTINCT - 56 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT SUM( DISTINCT ( 85 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5006
SELECT SUM ( DISTINCT ( 85 ) ) AS col0
----
85

query I rowsort
SELECT ALL + 80 + + + 23 AS col1
----
103

query I rowsort
SELECT 62 * - 40 col2
----
-2480

query I rowsort
SELECT CASE + 0 WHEN - + 21 THEN 5 END + + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5010
SELECT COUNT( * ) AS col1, + ( + 50 ) AS col2, NULLIF ( + 28, - - 54 ) + + 36
----
1
50
64

skipif mysql # not compatible
query III rowsort label-5010
SELECT COUNT ( * ) AS col1, + ( + 50 ) AS col2, NULLIF ( + 28, - - 54 ) + + 36
----
1
50
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT SUM( - 20 ) * + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-5011
SELECT SUM ( - 20 ) * + + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT + MAX( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5012
SELECT + MAX ( DISTINCT + 49 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5013
SELECT NULLIF ( + + CASE - 36 WHEN CAST( NULL AS SIGNED ) * + 41 + - 11 + - - 64 DIV - 21 THEN NULL WHEN 6 * - 47 DIV - 81 * - CASE 86 WHEN 10 THEN NULL ELSE 48 END + + COUNT( * ) THEN NULL ELSE CASE + - 89 WHEN 13 THEN NULL ELSE - CASE ( 29 ) WHEN 50 THEN 68 - + COALESCE ( 51, ( + COUNT( ALL - - 90 ) ) - CAST( NULL AS SIGNED ) + 32 ) + - ( - 27 ) * 40 ELSE 98 DIV + 80 END END + - ( - 2 ) * - 58 END, - 29 * 2 ) DIV + 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5013
SELECT NULLIF ( + + CASE - 36 WHEN CAST ( NULL AS INTEGER ) * + 41 + - 11 + - - 64 / - 21 THEN NULL WHEN 6 * - 47 / - 81 * - CASE 86 WHEN 10 THEN NULL ELSE 48 END + + COUNT ( * ) THEN NULL ELSE CASE + - 89 WHEN 13 THEN NULL ELSE - CASE ( 29 ) WHEN 50 THEN 68 - + COALESCE ( 51, ( + COUNT ( ALL - - 90 ) ) - CAST ( NULL AS INTEGER ) + 32 ) + - ( - 27 ) * 40 ELSE 98 / + 80 END END + - ( - 2 ) * - 58 END, - 29 * 2 ) / + 65 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL CAST( NULL AS SIGNED ) * - + 25 * + ( + ( 92 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL CAST ( NULL AS INTEGER ) * - + 25 * + ( + ( 92 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT - MAX( + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-5015
SELECT - MAX ( + 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT 96 - - 43 * NULLIF ( + CAST( + 14 AS SIGNED ), - 26 * + 31 + - - 82 )
----
698

skipif mysql # not compatible
query I rowsort label-5016
SELECT 96 - - 43 * NULLIF ( + CAST ( + 14 AS INTEGER ), - 26 * + 31 + - - 82 )
----
698

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT 32 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT 32 / - 81 AS col0
----
0

query I rowsort
SELECT + 98 * + - 32
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT 36 * - - ( COUNT( * ) ) + + 82
----
118

skipif mysql # not compatible
query I rowsort label-5019
SELECT 36 * - - ( COUNT ( * ) ) + + 82
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT 10 * COALESCE ( 50, - + 20 + - 36 DIV - 15, - 47 * - ( + 7 ) ) col2
----
500

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT 10 * COALESCE ( 50, - + 20 + - 36 / - 15, - 47 * - ( + 7 ) ) col2
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT + SUM( DISTINCT + 66 ) + - 18 * + 73
----
-1248

skipif mysql # not compatible
query I rowsort label-5021
SELECT + SUM ( DISTINCT + 66 ) + - 18 * + 73
----
-1248

query I rowsort
SELECT - COALESCE ( + 73, 73 ) AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT + - 66 DIV + - 9
----
7

skipif mysql # not compatible
query I rowsort label-5023
SELECT + - 66 / + - 9
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT CAST( - 33 AS SIGNED ) * + 17 * - + 45 + - 39
----
25206

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT CAST ( - 33 AS INTEGER ) * + 17 * - + 45 + - 39
----
25206

query I rowsort
SELECT ALL 90 * + - 57 AS col0
----
-5130

query I rowsort
SELECT + - 16 - - - 98 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL COUNT( - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL COUNT ( - 60 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - MAX( ALL + - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-5028
SELECT - MAX ( ALL + - 37 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT DISTINCT 62 AS col2, CASE + 70 WHEN 92 + + 20 THEN NULL WHEN + COALESCE ( + COUNT( * ), - MIN( + + 47 ) ) * + 85 THEN NULL WHEN + + SUM( - 52 ) + - 62 + + COUNT( * ) * - + 74 * + 93 + - + 34 * + - 60 + + - 52 * 96 THEN - 10 END * - + ( - 91 ) + - - 94 AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5029
SELECT DISTINCT 62 AS col2, CASE + 70 WHEN 92 + + 20 THEN NULL WHEN + COALESCE ( + COUNT ( * ), - MIN ( + + 47 ) ) * + 85 THEN NULL WHEN + + SUM ( - 52 ) + - 62 + + COUNT ( * ) * - + 74 * + 93 + - + 34 * + - 60 + + - 52 * 96 THEN - 10 END * - + ( - 91 ) + - - 94 AS col1
----
62
NULL

query II rowsort
SELECT 72 AS col1, - 26 * 33 * - 88 AS col1
----
72
75504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT - - CAST( - CASE + CASE - 48 WHEN 25 THEN + + 0 ELSE 64 END WHEN 3 * 1 THEN + 58 - + 48 ELSE 18 END AS SIGNED ) - 74 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5031
SELECT - - CAST ( - CASE + CASE - 48 WHEN 25 THEN + + 0 ELSE 64 END WHEN 3 * 1 THEN + 58 - + 48 ELSE 18 END AS INTEGER ) - 74 AS col0
----
-92

query I rowsort
SELECT ALL - 70 * + 67 col1
----
-4690

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5033
SELECT + - 64 * 47 DIV COUNT( * ) AS col0, + 34 + 45
----
-3008
79

skipif mysql # not compatible
query II rowsort label-5033
SELECT + - 64 * 47 / COUNT ( * ) AS col0, + 34 + 45
----
-3008
79

query I rowsort
SELECT - + 59 * - 25
----
1475

query I rowsort
SELECT DISTINCT - + 68 * + 41 * 34
----
-94792

query I rowsort
SELECT ALL + 78 + - 53
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL COUNT( * ) + + + 74 * - 81 col0
----
-5993

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL COUNT ( * ) + + + 74 * - 81 col0
----
-5993

query II rowsort
SELECT - ( - 99 ) * + 46, - 20 AS col0
----
4554
-20

query I rowsort
SELECT DISTINCT - 76 * + 44 * + 52 * + ( + 5 )
----
-869440

onlyif mysql # aggregate syntax: 
query II rowsort label-5040
SELECT + 17 col1, COUNT( - + 91 ) AS col1
----
17
1

skipif mysql # not compatible
query II rowsort label-5040
SELECT + 17 col1, COUNT ( - + 91 ) AS col1
----
17
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT ( + 35 ) DIV - COUNT( * ) + + ( 38 ) + - ( + 24 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5041
SELECT ( + 35 ) / - COUNT ( * ) + + ( 38 ) + - ( + 24 ) AS col0
----
-21

query I rowsort
SELECT - 0 * + NULLIF ( - 90, - 65 * - 10 )
----
0

query II rowsort
SELECT ALL + 33, 90 AS col0
----
33
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT COALESCE ( - 12, + + MAX( ALL - + 10 ), - - COUNT( * ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5044
SELECT COALESCE ( - 12, + + MAX ( ALL - + 10 ), - - COUNT ( * ) ) AS col0
----
-12

query I rowsort
SELECT NULLIF ( - ( + 99 ), + ( + 78 ) ) AS col1
----
-99

query I rowsort
SELECT - 65 * - 95 * + + 12 AS col1
----
74100

query I rowsort
SELECT - 70 * - 18 AS col0
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT - NULLIF ( - ( + - 6 ), + 95 ) DIV 83 + - - 98 - + MAX( + + 25 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - NULLIF ( - ( + - 6 ), + 95 ) / 83 + - - 98 - + MAX ( + + 25 ) AS col0
----
73

query I rowsort
SELECT + 20 * - 48 + 56 * - ( + 62 )
----
-4432

query I rowsort
SELECT ALL + NULLIF ( - 55, + - 21 / 58 - - + 88 ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT DISTINCT - 22 DIV + 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - 22 / + 42 AS col2
----
0

query I rowsort
SELECT - 17 + - 18 - - 97 + + 70
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL + MAX( DISTINCT + 58 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + MAX ( DISTINCT + 58 ) col1
----
58

query I rowsort
SELECT ALL + ( + 71 )
----
71

query I rowsort
SELECT - 11 * + 64 col1
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + MAX( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-5056
SELECT + MAX ( ALL 39 )
----
39

query II rowsort
SELECT + 54, + 8 AS col2
----
54
8

query I rowsort
SELECT 50 * - - 71 * - 85 - - 14
----
-301736

query I rowsort
SELECT - 75 * - - 64 * - 80 AS col1
----
384000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5060
SELECT + COUNT( * ) + - 81 + 5 DIV - - ( + MAX( ALL - 39 ) ), 73 AS col2
----
-80
73

skipif mysql # not compatible
query II rowsort label-5060
SELECT + COUNT ( * ) + - 81 + 5 / - - ( + MAX ( ALL - 39 ) ), 73 AS col2
----
-80
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT SUM( DISTINCT - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5061
SELECT SUM ( DISTINCT - 59 ) AS col1
----
-59

query II rowsort
SELECT ALL 16 AS col0, - 42 + + - 56 AS col1
----
16
-98

query I rowsort
SELECT 20 * - 56 * + 86 + - 78 * + 85 * - 43
----
188770

query II rowsort
SELECT ALL 50 AS col1, 92 + 20 * - 47 AS col1
----
50
-848

query I rowsort
SELECT DISTINCT + 97 col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT + CAST( NULL AS SIGNED ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT + CAST ( NULL AS INTEGER ) + 63
----
NULL

query I rowsort
SELECT - NULLIF ( + 49, + - 32 )
----
-49

query II rowsort
SELECT ALL + 74, 20 - 87 AS col1
----
74
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT + + 54 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT + + 54 / - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - + COUNT( * ) + 52 + + 68 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-5070
SELECT - + COUNT ( * ) + 52 + + 68 AS col1
----
119

query I rowsort
SELECT + 49 * 6 AS col0
----
294

query I rowsort
SELECT DISTINCT 19 * + 16 col2
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL - MAX( DISTINCT - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - MAX ( DISTINCT - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + + COUNT( * ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-5074
SELECT + + COUNT ( * ) + - 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL + SUM( ALL + 3 ) * + 13
----
39

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + SUM ( ALL + 3 ) * + 13
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT DISTINCT - 41 + - + 81 AS col2, COUNT( * ) - 54 * - 34 * + 27 AS col1
----
-122
49573

skipif mysql # not compatible
query II rowsort label-5076
SELECT DISTINCT - 41 + - + 81 AS col2, COUNT ( * ) - 54 * - 34 * + 27 AS col1
----
-122
49573

query I rowsort
SELECT + 16 + + 6 - + 55 + - 45 * + 87
----
-3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT + 29 + - NULLIF ( - + 84, CAST( NULL AS SIGNED ) * - COALESCE ( 33, + + 28 ) + 75 * 49 / - - 98 + ( + - 78 ) )
----
113

skipif mysql # not compatible
query I rowsort label-5078
SELECT + 29 + - NULLIF ( - + 84, CAST ( NULL AS INTEGER ) * - COALESCE ( 33, + + 28 ) + 75 * 49 / - - 98 + ( + - 78 ) )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + COUNT( * ) * NULLIF ( - 50, + + 34 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5079
SELECT + COUNT ( * ) * NULLIF ( - 50, + + 34 ) AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT ALL 4 * 37 * 52 + + - 94 DIV 62
----
7695

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL 4 * 37 * 52 + + - 94 / 62
----
7695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT DISTINCT - 80 + - + CASE - - 86 WHEN + 97 * + + 91 THEN + - 82 DIV - 76 + + 59 + 89 * - COALESCE ( 66, - 17, + 26 DIV + 70 - + MIN( ALL - - 14 ) + + 84 ) DIV + + 15 * + 37 + COUNT( * ) ELSE + 83 END AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - 80 + - + CASE - - 86 WHEN + 97 * + + 91 THEN + - 82 / - 76 + + 59 + 89 * - COALESCE ( 66, - 17, + 26 / + 70 - + MIN ( ALL - - 14 ) + + 84 ) / + + 15 * + 37 + COUNT ( * ) ELSE + 83 END AS col0
----
-163

query I rowsort
SELECT + + 52 + - 57
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT DISTINCT 31 + + MIN( ALL + 5 )
----
36

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT 31 + + MIN ( ALL + 5 )
----
36

query II rowsort
SELECT ALL 75, 91 + + 95 AS col2
----
75
186

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT - 16 DIV + + ( + 87 ) + ( - + 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-5085
SELECT - 16 / + + ( + 87 ) + ( - + 43 ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + COUNT( * ) + - 16 * + + 77 AS col2
----
-1231

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COUNT ( * ) + - 16 * + + 77 AS col2
----
-1231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5087
SELECT ALL - COUNT( * ) * + - CASE + COUNT( * ) WHEN - 50 + - + COUNT( * ) + 50 + - 38 * - NULLIF ( + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ), NULLIF ( 8, SUM( DISTINCT + 19 ) ) ) / - + NULLIF ( 81, - 45 + + + 85 ) THEN NULL WHEN 14 * - MAX( ALL + 97 ) + COALESCE ( 67, SUM( ALL - + 93 ), - - 42 ) + - SUM( DISTINCT - ( + + 25 ) ) / ( - + 8 ) * + 39 * - 1 + - + 36 + + - 65 * 64 * - COALESCE ( 16, ( 35 ) ) THEN - 58 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL - COUNT ( * ) * + - CASE + COUNT ( * ) WHEN - 50 + - + COUNT ( * ) + 50 + - 38 * - NULLIF ( + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ), NULLIF ( 8, SUM ( DISTINCT + 19 ) ) ) / - + NULLIF ( 81, - 45 + + + 85 ) THEN NULL WHEN 14 * - MAX ( ALL + 97 ) + COALESCE ( 67, SUM ( ALL - + 93 ), - - 42 ) + - SUM ( DISTINCT - ( + + 25 ) ) / ( - + 8 ) * + 39 * - 1 + - + 36 + + - 65 * 64 * - COALESCE ( 16, ( 35 ) ) THEN - 58 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5089
SELECT 32 + - 31 DIV + - MAX( DISTINCT - - 33 ) * - SUM( + 23 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5089
SELECT 32 + - 31 / + - MAX ( DISTINCT - - 33 ) * - SUM ( + 23 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - CASE + + COUNT( * ) WHEN + - CASE - 38 WHEN + + 97 THEN 18 ELSE + + 59 END * - 77 / - CASE 71 WHEN - AVG ( DISTINCT + 96 ) + - + 2 + + 34 THEN - 93 END + 50 THEN NULL ELSE - CASE + + 69 WHEN + 81 THEN NULL WHEN 24 THEN + - AVG ( - - 15 ) WHEN + + MIN( - 4 ) THEN NULL ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - CASE + + COUNT ( * ) WHEN + - CASE - 38 WHEN + + 97 THEN 18 ELSE + + 59 END * - 77 / - CASE 71 WHEN - AVG ( DISTINCT + 96 ) + - + 2 + + 34 THEN - 93 END + 50 THEN NULL ELSE - CASE + + 69 WHEN + 81 THEN NULL WHEN 24 THEN + - AVG ( - - 15 ) WHEN + + MIN ( - 4 ) THEN NULL ELSE NULL END END AS col1
----
NULL

query I rowsort
SELECT ALL - 70 col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT COALESCE ( 4, - + MIN( - 32 ), + + 85 ) * + 51 + 19
----
223

skipif mysql # not compatible
query I rowsort label-5092
SELECT COALESCE ( 4, - + MIN ( - 32 ), + + 85 ) * + 51 + 19
----
223

query I rowsort
SELECT 41 + 50
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5094
SELECT COALESCE ( + - ( - 51 ), 44 + + + ( - + 17 ) ) DIV - 45 AS col0, + CAST( NULL AS SIGNED ) - + MIN( ALL 77 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5094
SELECT COALESCE ( + - ( - 51 ), 44 + + + ( - + 17 ) ) / - 45 AS col0, + CAST ( NULL AS INTEGER ) - + MIN ( ALL 77 )
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5095
SELECT DISTINCT + CAST( + - 67 AS SIGNED ) / + + ( - CASE + 20 WHEN COALESCE ( COUNT( DISTINCT - 17 ), + - 1 ) THEN + 19 / - NULLIF ( 85, ( + + 10 ) ) + - 30 WHEN - 89 THEN NULL WHEN COALESCE ( - 98, - + COALESCE ( - 2, 3 / COALESCE ( + COUNT( * ), 53 + + - COUNT( * ) - 56 * + - COUNT( * ) ) - - - 0 + + CAST( 18 AS SIGNED ) + COUNT( - 66 ) + - + 77 * + - 70 - + + MIN( + + 91 ) * - + 24 ) + - 58 * ( 49 + 54 * 52 ) ) THEN NULL ELSE + 90 END ) * 60 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT + CAST ( + - 67 AS INTEGER ) / + + ( - CASE + 20 WHEN COALESCE ( COUNT ( DISTINCT - 17 ), + - 1 ) THEN + 19 / - NULLIF ( 85, ( + + 10 ) ) + - 30 WHEN - 89 THEN NULL WHEN COALESCE ( - 98, - + COALESCE ( - 2, 3 / COALESCE ( + COUNT ( * ), 53 + + - COUNT ( * ) - 56 * + - COUNT ( * ) ) - - - 0 + + CAST ( 18 AS INTEGER ) + COUNT ( - 66 ) + - + 77 * + - 70 - + + MIN ( + + 91 ) * - + 24 ) + - 58 * ( 49 + 54 * 52 ) ) THEN NULL ELSE + 90 END ) * 60 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 55 * 25
----
1375

query I rowsort
SELECT ALL + 46 * - + 70 AS col2
----
-3220

query I rowsort
SELECT ( + + 75 ) * - 41 + 75 AS col2
----
-3000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT DISTINCT - COUNT( * ) + ( + 54 ) DIV 26 - - 90
----
91

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - COUNT ( * ) + ( + 54 ) / 26 - - 90
----
91

query I rowsort
SELECT + 69 - 24 + + 70 AS col1
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT 63 * + - 93 AS col1, - COUNT( * ) * + 10 AS col2
----
-5859
-10

skipif mysql # not compatible
query II rowsort label-5101
SELECT 63 * + - 93 AS col1, - COUNT ( * ) * + 10 AS col2
----
-5859
-10

query I rowsort
SELECT 92 * 11 + + - ( + 63 )
----
949

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT ( - COUNT( + 38 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT ( - COUNT ( + 38 ) )
----
-1

query II rowsort
SELECT ALL + + 13 + - 69 AS col2, 80
----
-56
80

query II rowsort
SELECT ALL - - 51 + - 32 col0, + 96
----
19
96

query II rowsort
SELECT 86 * - 92, + 82 AS col0
----
-7912
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT - 18 - - 27 * SUM( + + 29 ) * + 82 AS col2, + 23 * - + 23 + COUNT( * )
----
64188
-528

skipif mysql # not compatible
query II rowsort label-5107
SELECT - 18 - - 27 * SUM ( + + 29 ) * + 82 AS col2, + 23 * - + 23 + COUNT ( * )
----
64188
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + + NULLIF ( - 79, + + 45 ) + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + + NULLIF ( - 79, + + 45 ) + COUNT ( * ) AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT DISTINCT + + 9 DIV 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT + + 9 / 23 AS col1
----
0

query I rowsort
SELECT 87 - - + 1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5111
SELECT MAX( ALL 87 ) * 14, + 36 + - - CAST( NULL AS SIGNED ) * - 81 AS col1
----
1218
NULL

skipif mysql # not compatible
query II rowsort label-5111
SELECT MAX ( ALL 87 ) * 14, + 36 + - - CAST ( NULL AS INTEGER ) * - 81 AS col1
----
1218
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL + 21 * + - COUNT( * ) * - 31
----
651

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + 21 * + - COUNT ( * ) * - 31
----
651

query II rowsort
SELECT - 73 AS col2, + ( - 47 )
----
-73
-47

query I rowsort
SELECT DISTINCT + 4 * 81
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL - COUNT( DISTINCT + - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - COUNT ( DISTINCT + - 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5116
SELECT 74 AS col0, COUNT( * ) AS col1
----
74
1

skipif mysql # not compatible
query II rowsort label-5116
SELECT 74 AS col0, COUNT ( * ) AS col1
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT COUNT( * ) * + MAX( ALL + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5117
SELECT COUNT ( * ) * + MAX ( ALL + 54 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT 96 + + 34 DIV MAX( + 28 ) + - - 49 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-5118
SELECT 96 + + 34 / MAX ( + 28 ) + - - 49 AS col2
----
146

query I rowsort
SELECT 3 * + 27 AS col0
----
81

query II rowsort
SELECT + 93, + 65 col2
----
93
65

query II rowsort
SELECT + 96, - 67 AS col2
----
96
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL COUNT( * ) * + 18 * + ( + NULLIF ( + - 78, + 42 ) )
----
-1404

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL COUNT ( * ) * + 18 * + ( + NULLIF ( + - 78, + 42 ) )
----
-1404

query I rowsort
SELECT 57 * - NULLIF ( + - 70, - + 82 )
----
3990

query I rowsort
SELECT ALL 16 + 99 AS col1
----
115

query II rowsort
SELECT + 7, + 29 * 98 AS col1
----
7
2842

query I rowsort
SELECT DISTINCT 51 + + - ( - 79 )
----
130

query I rowsort
SELECT DISTINCT - 96 + 76
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT ALL - COUNT( * ) AS col2, ( + 9 )
----
-1
9

skipif mysql # not compatible
query II rowsort label-5128
SELECT ALL - COUNT ( * ) AS col2, ( + 9 )
----
-1
9

query I rowsort
SELECT - 22 * 8 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT - SUM( - + 73 ) + + 69 col1
----
142

skipif mysql # not compatible
query I rowsort label-5130
SELECT - SUM ( - + 73 ) + + 69 col1
----
142

onlyif mysql # DIV for integer division: 
query II rowsort label-5131
SELECT ALL - 41 + + 45 + - 62 DIV - 14 AS col0, 22
----
8
22

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL - 41 + + 45 + - 62 / - 14 AS col0, 22
----
8
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + 82 + + - CASE 79 WHEN - COUNT( ALL 40 ) + 86 THEN - - 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + 82 + + - CASE 79 WHEN - COUNT ( ALL 40 ) + 86 THEN - - 73 END AS col2
----
NULL

query I rowsort
SELECT + 89 * - 88 AS col1
----
-7832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5134
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT + COUNT( * ) * - 98 + - - 32
----
-66

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + COUNT ( * ) * - 98 + - - 32
----
-66

query I rowsort
SELECT + 16 + + + 55
----
71

query I rowsort
SELECT ALL + + 19 + - 48
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT - - COUNT( * ) * ( - 72 ) - - + 62 col0
----
-10

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - - COUNT ( * ) * ( - 72 ) - - + 62 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL + 0 - - COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL + 0 - - COUNT ( * ) + + 58
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT SUM( - COALESCE ( + 31, - 39, 95 - + + 83, - 23 ) ) + - 56 * - 21 * - CAST( 50 AS SIGNED )
----
-58831

skipif mysql # not compatible
query I rowsort label-5140
SELECT SUM ( - COALESCE ( + 31, - 39, 95 - + + 83, - 23 ) ) + - 56 * - 21 * - CAST ( 50 AS INTEGER )
----
-58831

query I rowsort
SELECT + 48 - 66 AS col1
----
-18

query I rowsort
SELECT + 91 + - 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + COALESCE ( + COUNT( * ), + + COUNT( * ), + COUNT( * ) * - - 16 + + - 72 ) * - MIN( - - 52 ) * - + MAX( 9 ) * 79 * + 26 + 79 + - + 42 AS col2
----
961309

skipif mysql # not compatible
query I rowsort label-5143
SELECT + COALESCE ( + COUNT ( * ), + + COUNT ( * ), + COUNT ( * ) * - - 16 + + - 72 ) * - MIN ( - - 52 ) * - + MAX ( 9 ) * 79 * + 26 + 79 + - + 42 AS col2
----
961309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT ALL - CAST( 73 AS SIGNED ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - CAST ( 73 AS INTEGER ) AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5145
SELECT + 14 + - - 68 * - + 98 + - CASE + - 85 WHEN + 28 + NULLIF ( 2, - CAST( NULL AS DECIMAL ) ) * - 58 * + 12 THEN NULL WHEN + 5 + - 74 / + + 25 THEN NULL ELSE - + SUM( 48 ) + NULLIF ( COUNT( * ), ( 58 ) ) END AS col0
----
-6603

skipif mysql # not compatible
query I rowsort label-5145
SELECT + 14 + - - 68 * - + 98 + - CASE + - 85 WHEN + 28 + NULLIF ( 2, - CAST ( NULL AS REAL ) ) * - 58 * + 12 THEN NULL WHEN + 5 + - 74 / + + 25 THEN NULL ELSE - + SUM ( 48 ) + NULLIF ( COUNT ( * ), ( 58 ) ) END AS col0
----
-6603

query I rowsort
SELECT DISTINCT + 35 * + 22 * - 47
----
-36190

query I rowsort
SELECT 0 * 91 * - 2 * ( + 26 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT ALL MIN( 16 ), + NULLIF ( + 62, + + 67 * - - 14 + + CASE - 55 WHEN + 5 * + - 94 THEN - 58 WHEN + 86 - - AVG ( DISTINCT 13 ) * 44 + + 0 + + + 42 THEN NULL END * + 94 ) AS col2
----
16
62

skipif mysql # not compatible
query II rowsort label-5148
SELECT ALL MIN ( 16 ), + NULLIF ( + 62, + + 67 * - - 14 + + CASE - 55 WHEN + 5 * + - 94 THEN - 58 WHEN + 86 - - AVG ( DISTINCT 13 ) * 44 + + 0 + + + 42 THEN NULL END * + 94 ) AS col2
----
16
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5149
SELECT 16 + ( - COUNT( * ) ) DIV + 3 * + + 21
----
16

skipif mysql # not compatible
query I rowsort label-5149
SELECT 16 + ( - COUNT ( * ) ) / + 3 * + + 21
----
16

query I rowsort
SELECT + 70 * - 14 * - 91 * + - ( 55 )
----
-4904900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT - CAST( 60 AS SIGNED ) * + 93 col0
----
-5580

skipif mysql # not compatible
query I rowsort label-5151
SELECT - CAST ( 60 AS INTEGER ) * + 93 col0
----
-5580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT DISTINCT - 78 * + + 82 + + 50 + - CASE - + 24 WHEN + 85 THEN CAST( COUNT( * ) AS SIGNED ) * + ( - - 0 ) ELSE - 22 END AS col2
----
-6324

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - 78 * + + 82 + + 50 + - CASE - + 24 WHEN + 85 THEN CAST ( COUNT ( * ) AS INTEGER ) * + ( - - 0 ) ELSE - 22 END AS col2
----
-6324

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT ALL - COALESCE ( - + 18, 10, - + 81 ) * 20 + - 39 DIV - 34 + ( 32 ) + - 25
----
368

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - COALESCE ( - + 18, 10, - + 81 ) * 20 + - 39 / - 34 + ( 32 ) + - 25
----
368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5154
SELECT ALL - 68 * 27 + 31 * + - CASE + MIN( DISTINCT 89 ) WHEN + 56 THEN - - 42 + - - 81 WHEN + ( + - CAST( MAX( DISTINCT ( + 69 ) ) AS SIGNED ) ) THEN NULL ELSE - COALESCE ( 76, + COUNT( * ) + + NULLIF ( - + 56, SUM( + 32 ) ), 72 ) * - 9 * - + 41 * SUM( ALL - 47 ) + - CASE 98 WHEN NULLIF ( - 23, - + 20 ) * - 29 * + MIN( - - ( CAST( - 62 AS SIGNED ) ) ) * - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) THEN - - 47 - 51 WHEN CASE 1 WHEN + 29 + 56 * 77 THEN 63 WHEN + CAST( CASE 85 WHEN 3 THEN - SUM( 46 ) + - 15 WHEN 21 * - 6 THEN NULL WHEN + 84 + 20 THEN 56 * COUNT( * ) END AS SIGNED ) THEN + 38 END * 12 + - ( ( + ( ( MIN( 33 ) ) ) ) + + 13 * + ( - COUNT( * ) + CAST( 8 AS SIGNED ) ) ) / + CAST( NULL AS SIGNED ) THEN NULL ELSE CASE NULLIF ( + 61, 71 + - AVG ( - 61 ) ) WHEN 16 + + COUNT( * ) THEN + 45 / ( 6 ) WHEN - 71 THEN 51 END * - COUNT( * ) - CAST( NULL AS DECIMAL ) END + 22 / - COUNT( * ) * 46 END * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - 68 * 27 + 31 * + - CASE + MIN ( DISTINCT 89 ) WHEN + 56 THEN - - 42 + - - 81 WHEN + ( + - CAST ( MAX ( DISTINCT ( + 69 ) ) AS INTEGER ) ) THEN NULL ELSE - COALESCE ( 76, + COUNT ( * ) + + NULLIF ( - + 56, SUM ( + 32 ) ), 72 ) * - 9 * - + 41 * SUM ( ALL - 47 ) + - CASE 98 WHEN NULLIF ( - 23, - + 20 ) * - 29 * + MIN ( - - ( CAST ( - 62 AS INTEGER ) ) ) * - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) THEN - - 47 - 51 WHEN CASE 1 WHEN + 29 + 56 * 77 THEN 63 WHEN + CAST ( CASE 85 WHEN 3 THEN - SUM ( 46 ) + - 15 WHEN 21 * - 6 THEN NULL WHEN + 84 + 20 THEN 56 * COUNT ( * ) END AS INTEGER ) THEN + 38 END * 12 + - ( ( + ( ( MIN ( 33 ) ) ) ) + + 13 * + ( - COUNT ( * ) + CAST ( 8 AS INTEGER ) ) ) / + CAST ( NULL AS INTEGER ) THEN NULL ELSE CASE NULLIF ( + 61, 71 + - AVG ( - 61 ) ) WHEN 16 + + COUNT ( * ) THEN + 45 / ( 6 ) WHEN - 71 THEN 51 END * - COUNT ( * ) - CAST ( NULL AS REAL ) END + 22 / - COUNT ( * ) * 46 END * + 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5155
SELECT CASE + 66 WHEN CAST( NULL AS SIGNED ) THEN 22 ELSE NULL END, - 54 AS col2
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-5155
SELECT CASE + 66 WHEN CAST ( NULL AS INTEGER ) THEN 22 ELSE NULL END, - 54 AS col2
----
NULL
-54

query I rowsort
SELECT + - COALESCE ( + 87, + 71 + - 27 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5157
SELECT + CAST( + + 14 AS SIGNED ) AS col1, MAX( + 99 ) AS col1
----
14
99

skipif mysql # not compatible
query II rowsort label-5157
SELECT + CAST ( + + 14 AS INTEGER ) AS col1, MAX ( + 99 ) AS col1
----
14
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT DISTINCT + + 61 * - - 18 - + CAST( + + 66 AS SIGNED ) + - 50
----
982

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT + + 61 * - - 18 - + CAST ( + + 66 AS INTEGER ) + - 50
----
982

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL 26 * - COUNT( * ) * + + 7
----
-182

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL 26 * - COUNT ( * ) * + + 7
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT + ( - 4 ) + 90 DIV 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5160
SELECT + ( - 4 ) + 90 / 16 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT DISTINCT - 55 * - 38 * - - 73 + + + 5 + - 88 DIV + - 32 - - - 37 AS col0
----
152540

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - 55 * - 38 * - - 73 + + + 5 + - 88 / + - 32 - - - 37 AS col0
----
152540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT + NULLIF ( NULLIF ( + - COUNT( * ), + ( 76 ) * - MIN( - 56 ) + 27 * + COALESCE ( 5, - 35 - - 87 ) + - - 40 + + + COUNT( * ) + - 55 * CAST( - 9 AS SIGNED ) + 89 ), + COUNT( * ) / - MAX( - 17 ) * 38 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT + NULLIF ( NULLIF ( + - COUNT ( * ), + ( 76 ) * - MIN ( - 56 ) + 27 * + COALESCE ( 5, - 35 - - 87 ) + - - 40 + + + COUNT ( * ) + - 55 * CAST ( - 9 AS INTEGER ) + 89 ), + COUNT ( * ) / - MAX ( - 17 ) * 38 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5163
SELECT ALL + + 86 * - 70 - 47 + - CAST( NULL AS SIGNED ) AS col2, - 13
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-5163
SELECT ALL + + 86 * - 70 - 47 + - CAST ( NULL AS INTEGER ) AS col2, - 13
----
NULL
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT + ( CASE - COALESCE ( COUNT( * ), - COUNT( * ) ) WHEN - NULLIF ( + + 98, + + COUNT( * ) ) THEN + - 77 + - 37 * - 2 WHEN + - AVG ( CASE - 91 WHEN - 74 THEN + 86 WHEN + CAST( - 77 AS SIGNED ) + 49 + + + 77 - - + 25 * - 43 / 52 * - 66 + + - 82 THEN NULL ELSE - 6 END ) THEN NULL END ) * 93 / 72 * - - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT + ( CASE - COALESCE ( COUNT ( * ), - COUNT ( * ) ) WHEN - NULLIF ( + + 98, + + COUNT ( * ) ) THEN + - 77 + - 37 * - 2 WHEN + - AVG ( CASE - 91 WHEN - 74 THEN + 86 WHEN + CAST ( - 77 AS INTEGER ) + 49 + + + 77 - - + 25 * - 43 / 52 * - 66 + + - 82 THEN NULL ELSE - 6 END ) THEN NULL END ) * 93 / 72 * - - 67 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5165
SELECT + ( 28 ), COUNT( * ) + - SUM( ALL 93 ) + + 67 + - 51 * CASE - NULLIF ( + 45, 58 * - 98 ) WHEN - ( - - COUNT( * ) ) * + - ( 4 ) + + 81 * - - CASE + ( 61 ) WHEN + 31 THEN - + 39 + - 12 * + 10 * - + 48 WHEN NULLIF ( - COUNT( * ), - 87 - - ( + + 0 ) + SUM( ALL + - 9 ) * - + 55 * - 36 ) THEN 45 * - 39 + - + 93 WHEN COALESCE ( CAST( NULL AS SIGNED ), MIN( 15 ) ) * COUNT( * ) + + SUM( + NULLIF ( 18, + 68 ) + + 78 / + 58 ) THEN 27 END THEN NULL WHEN COUNT( * ) THEN NULL ELSE 61 END AS col2
----
28
-3136

skipif mysql # not compatible
query II rowsort label-5165
SELECT + ( 28 ), COUNT ( * ) + - SUM ( ALL 93 ) + + 67 + - 51 * CASE - NULLIF ( + 45, 58 * - 98 ) WHEN - ( - - COUNT ( * ) ) * + - ( 4 ) + + 81 * - - CASE + ( 61 ) WHEN + 31 THEN - + 39 + - 12 * + 10 * - + 48 WHEN NULLIF ( - COUNT ( * ), - 87 - - ( + + 0 ) + SUM ( ALL + - 9 ) * - + 55 * - 36 ) THEN 45 * - 39 + - + 93 WHEN COALESCE ( CAST ( NULL AS INTEGER ), MIN ( 15 ) ) * COUNT ( * ) + + SUM ( + NULLIF ( 18, + 68 ) + + 78 / + 58 ) THEN 27 END THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 61 END AS col2
----
28
-3136

query I rowsort
SELECT ( - - 56 ) col1
----
56

query I rowsort
SELECT - + 74 + 90 * + 7 + - ( 88 ) + + 36 * + 52
----
2340

query I rowsort
SELECT ALL ( + 24 )
----
24

query I rowsort
SELECT - - 72 col1
----
72

query I rowsort
SELECT - - 55 - + + 42 AS col1
----
13

query I rowsort
SELECT ALL - 44 * + 8
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT - COUNT( * ) * - NULLIF ( - 84, CASE - + 66 WHEN 96 THEN + ( + 84 ) + + 53 * - - 46 * - 70 WHEN - - 29 THEN NULL ELSE NULL END + MIN( + - 40 ) + 39 * + + 4 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5172
SELECT - COUNT ( * ) * - NULLIF ( - 84, CASE - + 66 WHEN 96 THEN + ( + 84 ) + + 53 * - - 46 * - 70 WHEN - - 29 THEN NULL ELSE NULL END + MIN ( + - 40 ) + 39 * + + 4 ) AS col1
----
-84

query I rowsort
SELECT ALL - 49 * + 24
----
-1176

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT ALL COALESCE ( 1, + 91 + 14, ( + + 57 ) + COALESCE ( - 40, 27 + + + CASE + + 58 WHEN + ( + + 42 ) THEN NULL ELSE + + NULLIF ( + COALESCE ( - - 23, + 45 + 47 * 35 * - 23 + ( + 0 ) * - + 2 + - 72, - 86 ), - ( 26 ) + - - 21 ) END + ( + + COUNT( * ) ), + + COUNT( DISTINCT + - 68 ) ) + + COALESCE ( + + 18, 12 ) ) AS col0, + COALESCE ( - + 59, - 29 ) AS col2
----
1
-59

skipif mysql # not compatible
query II rowsort label-5174
SELECT ALL COALESCE ( 1, + 91 + 14, ( + + 57 ) + COALESCE ( - 40, 27 + + + CASE + + 58 WHEN + ( + + 42 ) THEN NULL ELSE + + NULLIF ( + COALESCE ( - - 23, + 45 + 47 * 35 * - 23 + ( + 0 ) * - + 2 + - 72, - 86 ), - ( 26 ) + - - 21 ) END + ( + + COUNT ( * ) ), + + COUNT ( DISTINCT + - 68 ) ) + + COALESCE ( + + 18, 12 ) ) AS col0, + COALESCE ( - + 59, - 29 ) AS col2
----
1
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT 91, 18 + - 60 + - COUNT( * ) + + 75 + - + 67 * + 36 * + 62 * + ( - 0 ) AS col1
----
91
32

skipif mysql # not compatible
query II rowsort label-5175
SELECT 91, 18 + - 60 + - COUNT ( * ) + + 75 + - + 67 * + 36 * + 62 * + ( - 0 ) AS col1
----
91
32

query I rowsort
SELECT + 58 * + 18 AS col2
----
1044

query I rowsort
SELECT - 52 - 55
----
-107

query I rowsort
SELECT ALL + 59 + + - 46
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - COUNT( * ) * 76
----
-76

skipif mysql # not compatible
query I rowsort label-5179
SELECT - COUNT ( * ) * 76
----
-76

query I rowsort
SELECT ALL + 87 + - + 95 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT + MAX( + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + MAX ( + - 90 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5182
SELECT ALL 65 DIV + + ( 2 ) + - - SUM( DISTINCT - 53 ) * - 38
----
2046

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL 65 / + + ( 2 ) + - - SUM ( DISTINCT - 53 ) * - 38
----
2046

query I rowsort
SELECT - 98 * + 84 * - 42
----
345744

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + SUM( ALL CASE + 64 WHEN - + 99 THEN - 77 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT + SUM ( ALL CASE + 64 WHEN - + 99 THEN - 77 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - 69 + + 99 * 2 - - CASE + - 3 WHEN - COUNT( * ) * + 66 THEN 71 WHEN - + CASE - + 87 WHEN 59 * + + SUM( + 66 ) * - 93 * NULLIF ( - - 51, + - 24 ) + - + 66 - - 12 + - 23 + + 26 + - - 88 * 7 * + + 42 * + 64 + + 50 * + COUNT( * ) THEN NULL WHEN 74 * - COALESCE ( 2, 82 ) * - 12 THEN NULL ELSE 77 END * CASE - 50 WHEN - MIN( ALL + 81 ) THEN NULL WHEN - + 52 + - NULLIF ( - 22, - COUNT( * ) ) * + 43 THEN NULL WHEN 6 - + 95 THEN + COUNT( * ) * - 70 + 9 END - CASE 25 WHEN ( - 48 ) + 35 THEN 21 ELSE NULL END THEN 77 * 14 WHEN 88 THEN NULL ELSE + 40 END + + 25 * 67 * + 44 AS col1
----
73869

skipif mysql # not compatible
query I rowsort label-5185
SELECT - 69 + + 99 * 2 - - CASE + - 3 WHEN - COUNT ( * ) * + 66 THEN 71 WHEN - + CASE - + 87 WHEN 59 * + + SUM ( + 66 ) * - 93 * NULLIF ( - - 51, + - 24 ) + - + 66 - - 12 + - 23 + + 26 + - - 88 * 7 * + + 42 * + 64 + + 50 * + COUNT ( * ) THEN NULL WHEN 74 * - COALESCE ( 2, 82 ) * - 12 THEN NULL ELSE 77 END * CASE - 50 WHEN - MIN ( ALL + 81 ) THEN NULL WHEN - + 52 + - NULLIF ( - 22, - COUNT ( * ) ) * + 43 THEN NULL WHEN 6 - + 95 THEN + COUNT ( * ) * - 70 + 9 END - CASE 25 WHEN ( - 48 ) + 35 THEN 21 ELSE NULL END THEN 77 * 14 WHEN 88 THEN NULL ELSE + 40 END + + 25 * 67 * + 44 AS col1
----
73869

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT + 83 * 86 - 17 AS col2, + COUNT( * ) AS col1
----
7121
1

skipif mysql # not compatible
query II rowsort label-5186
SELECT + 83 * 86 - 17 AS col2, + COUNT ( * ) AS col1
----
7121
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT 97 * + + COUNT( ALL - - ( - CASE - + 58 WHEN + 14 THEN - - 51 WHEN + 24 * 10 THEN + 36 / - + 71 / 79 + + 4 ELSE NULL END ) ) + - - NULLIF ( + 77, - 93 ) + + 80 * + 76 AS col2
----
6157

skipif mysql # not compatible
query I rowsort label-5187
SELECT 97 * + + COUNT ( ALL - - ( - CASE - + 58 WHEN + 14 THEN - - 51 WHEN + 24 * 10 THEN + 36 / - + 71 / 79 + + 4 ELSE NULL END ) ) + - - NULLIF ( + 77, - 93 ) + + 80 * + 76 AS col2
----
6157

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT + 51 DIV + 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 51 / + 45 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5189
SELECT ALL 2 / - 89 + CAST( NULL AS SIGNED ), - 89 * 62 + + 50 AS col1
----
NULL
-5468

skipif mysql # not compatible
query II rowsort label-5189
SELECT ALL 2 / - 89 + CAST ( NULL AS INTEGER ), - 89 * 62 + + 50 AS col1
----
NULL
-5468

query I rowsort
SELECT + + 94 * + 11 + - 57 col1
----
977

query I rowsort
SELECT ALL + - 1 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT 60 DIV - 13 + - ( + 98 )
----
-102

skipif mysql # not compatible
query I rowsort label-5192
SELECT 60 / - 13 + - ( + 98 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL - 55 * + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - 55 * + COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + MAX( ALL - - 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5194
SELECT + MAX ( ALL - - 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT + COUNT( - - ( + - 99 ) ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-5195
SELECT + COUNT ( - - ( + - 99 ) ) + 40
----
41

query I rowsort
SELECT - ( + ( 91 ) ) AS col2
----
-91

query I rowsort
SELECT ALL + 63 * 11 + - - 94
----
787

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT - - COUNT( * ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT - - COUNT ( * ) / 34
----
0

query I rowsort
SELECT + ( - - 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - - 93 * - COUNT( * ) + - 65 + - COUNT( * ) AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-5200
SELECT - - 93 * - COUNT ( * ) + - 65 + - COUNT ( * ) AS col2
----
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5201
SELECT + + 44 + 78 * + - 56 * - 30 + - - MAX( ALL + 15 ) DIV - COUNT( * )
----
131069

skipif mysql # not compatible
query I rowsort label-5201
SELECT + + 44 + 78 * + - 56 * - 30 + - - MAX ( ALL + 15 ) / - COUNT ( * )
----
131069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT + + CAST( NULL AS SIGNED ) + + 58 + - + 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT + + CAST ( NULL AS INTEGER ) + + 58 + - + 86 col0
----
NULL

query II rowsort
SELECT ALL 89, 70 col2
----
89
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT ALL + COUNT( * ) col1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5204
SELECT ALL + COUNT ( * ) col1, + COUNT ( * )
----
1
1

query I rowsort
SELECT ALL + 87 + + 75 AS col2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5206
SELECT ( - - 0 ) - + - 52 DIV + + COUNT( * ) * + + ( - NULLIF ( - COUNT( * ), ( - 26 ) + + CAST( - 23 AS SIGNED ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-5206
SELECT ( - - 0 ) - + - 52 / + + COUNT ( * ) * + + ( - NULLIF ( - COUNT ( * ), ( - 26 ) + + CAST ( - 23 AS INTEGER ) ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT 6 + ( - MIN( DISTINCT + + 16 ) ) + - 8
----
-18

skipif mysql # not compatible
query I rowsort label-5207
SELECT 6 + ( - MIN ( DISTINCT + + 16 ) ) + - 8
----
-18

query I rowsort
SELECT DISTINCT 88 + + 76
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ( - 57 ) + NULLIF ( + 55, COUNT( * ) + 51 + 45 ) - MAX( + - 9 ) * - + 20 + - - 16 + + 31 + - 98 col0
----
-233

skipif mysql # not compatible
query I rowsort label-5209
SELECT ( - 57 ) + NULLIF ( + 55, COUNT ( * ) + 51 + 45 ) - MAX ( + - 9 ) * - + 20 + - - 16 + + 31 + - 98 col0
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT COUNT( * ) + - + 80
----
-79

skipif mysql # not compatible
query I rowsort label-5210
SELECT COUNT ( * ) + - + 80
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5211
SELECT ALL 34 + + + CASE + + CASE 47 WHEN + + 55 THEN + 78 WHEN + COALESCE ( + + 51, + COALESCE ( + + 37, - - 1 ) ) THEN NULL ELSE NULL END WHEN - 36 THEN + + SUM( DISTINCT 82 ) END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL 34 + + + CASE + + CASE 47 WHEN + + 55 THEN + 78 WHEN + COALESCE ( + + 51, + COALESCE ( + + 37, - - 1 ) ) THEN NULL ELSE NULL END WHEN - 36 THEN + + SUM ( DISTINCT 82 ) END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT ALL + 55 + + 96 DIV ( + + 84 ) DIV - 22
----
55

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + 55 + + 96 / ( + + 84 ) / - 22
----
55

query I rowsort
SELECT ALL - 1 * - 71 AS col0
----
71

query I rowsort
SELECT 51 + + 81 * 82 AS col1
----
6693

query I rowsort
SELECT 31 * - 80 AS col2
----
-2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5216
SELECT 66 + + COUNT( * ) DIV + 98
----
66

skipif mysql # not compatible
query I rowsort label-5216
SELECT 66 + + COUNT ( * ) / + 98
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL - 56 * - NULLIF ( + - COUNT( * ), 73 + 26 - - 63 * ( + + 53 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - 56 * - NULLIF ( + - COUNT ( * ), 73 + 26 - - 63 * ( + + 53 ) ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT + 58, COUNT( * ) AS col2
----
58
1

skipif mysql # not compatible
query II rowsort label-5218
SELECT + 58, COUNT ( * ) AS col2
----
58
1

query II rowsort
SELECT 33 col0, + 72 * 81
----
33
5832

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5220
SELECT DISTINCT - COUNT( * ) col2, 28 DIV + 40 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-5220
SELECT DISTINCT - COUNT ( * ) col2, 28 / + 40 AS col0
----
-1
0

query II rowsort
SELECT ALL - - 86 AS col1, + 32 + - - ( - 34 )
----
86
-2

query I rowsort
SELECT DISTINCT - 26 * 9
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT + + 22 AS col0, MIN( - 93 ) + + 21 AS col0
----
22
-72

skipif mysql # not compatible
query II rowsort label-5223
SELECT + + 22 AS col0, MIN ( - 93 ) + + 21 AS col0
----
22
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + COUNT( DISTINCT 29 ) * + 54
----
54

skipif mysql # not compatible
query I rowsort label-5224
SELECT + COUNT ( DISTINCT 29 ) * + 54
----
54

query I rowsort
SELECT + + 99 AS col1
----
99

query II rowsort
SELECT + 32 AS col2, 47 col0
----
32
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + + NULLIF ( COUNT( * ), - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5227
SELECT + + NULLIF ( COUNT ( * ), - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5228
SELECT ALL - + COUNT( * ) DIV - + 98
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - + COUNT ( * ) / - + 98
----
0

query I rowsort
SELECT - 44 * + 2 col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL - COUNT( DISTINCT - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - COUNT ( DISTINCT - 90 )
----
-1

query I rowsort
SELECT DISTINCT - ( + + 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT 52, MAX( 10 ) AS col2
----
52
10

skipif mysql # not compatible
query II rowsort label-5232
SELECT 52, MAX ( 10 ) AS col2
----
52
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5233
SELECT ALL - COUNT( * ) AS col1, 58 * - 12 AS col0
----
-1
-696

skipif mysql # not compatible
query II rowsort label-5233
SELECT ALL - COUNT ( * ) AS col1, 58 * - 12 AS col0
----
-1
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5234
SELECT COALESCE ( 82, - 69 * 33 + 9 DIV 11 + + COUNT( DISTINCT - + CASE - - 53 WHEN - 91 THEN - 27 END ) * - CAST( + + 99 AS SIGNED ), - 37 ) * 11 + - + 54 * - COUNT( * ) * 14 AS col1
----
1658

skipif mysql # not compatible
query I rowsort label-5234
SELECT COALESCE ( 82, - 69 * 33 + 9 / 11 + + COUNT ( DISTINCT - + CASE - - 53 WHEN - 91 THEN - 27 END ) * - CAST ( + + 99 AS INTEGER ), - 37 ) * 11 + - + 54 * - COUNT ( * ) * 14 AS col1
----
1658

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT + 7 DIV ( - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT + 7 / ( - 14 ) AS col2
----
0

query I rowsort
SELECT ALL - 58 + - 44 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT 30 * COUNT( * ) + 96 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-5237
SELECT 30 * COUNT ( * ) + 96 AS col2
----
126

query I rowsort
SELECT DISTINCT 94 + 11 * - - 31 AS col1
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT COALESCE ( - - 48, - + 24 + 90 - - COUNT( * ) ) + - 81 * - 28
----
2316

skipif mysql # not compatible
query I rowsort label-5239
SELECT COALESCE ( - - 48, - + 24 + 90 - - COUNT ( * ) ) + - 81 * - 28
----
2316

query I rowsort
SELECT 51 * + 42
----
2142

query I rowsort
SELECT 22 * - - 81
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT MIN( 32 ) + + 27 + - - 86 - + 79 * + 11 AS col2
----
-724

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT MIN ( 32 ) + + 27 + - - 86 - + 79 * + 11 AS col2
----
-724

query I rowsort
SELECT ALL 17 + 92 + + ( + + 58 ) - 62 * 42 AS col2
----
-2437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5244
SELECT ALL 81 - + + SUM( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL 81 - + + SUM ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT MAX( ALL - 21 ) * 84 * + + 8 + + 10
----
-14102

skipif mysql # not compatible
query I rowsort label-5245
SELECT MAX ( ALL - 21 ) * 84 * + + 8 + + 10
----
-14102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT + COUNT( ALL - - CASE 6 WHEN + - CAST( NULL AS SIGNED ) * - - 23 * CAST( NULL AS SIGNED ) + - 23 THEN NULL WHEN 90 THEN 79 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT + COUNT ( ALL - - CASE 6 WHEN + - CAST ( NULL AS INTEGER ) * - - 23 * CAST ( NULL AS INTEGER ) + - 23 THEN NULL WHEN 90 THEN 79 END ) AS col2
----
0

query I rowsort
SELECT ALL + 57 * + 70 * - + 44 - - 94
----
-175466

onlyif mysql # DIV for integer division: 
query II rowsort label-5248
SELECT 22 DIV - + 32 col2, - 57 AS col2
----
0
-57

skipif mysql # not compatible
query II rowsort label-5248
SELECT 22 / - + 32 col2, - 57 AS col2
----
0
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT + 16 * - COUNT( * ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT + 16 * - COUNT ( * ) col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT - CASE + - COALESCE ( - 84, 18 ) WHEN + COUNT( * ) * + + 29 / 98 + + + 90 THEN NULL ELSE - 96 END * + 30 * + 25 + + + ( + 74 ) AS col2
----
72074

skipif mysql # not compatible
query I rowsort label-5250
SELECT - CASE + - COALESCE ( - 84, 18 ) WHEN + COUNT ( * ) * + + 29 / 98 + + + 90 THEN NULL ELSE - 96 END * + 30 * + 25 + + + ( + 74 ) AS col2
----
72074

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT 70 + - + 36 + - 72 DIV 25 * 29
----
-24

skipif mysql # not compatible
query I rowsort label-5251
SELECT 70 + - + 36 + - 72 / 25 * 29
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-5252
SELECT - ( + - 72 ) DIV COALESCE ( 98, - - 26 + 0 DIV + CASE - - 70 WHEN - 59 THEN NULL ELSE + 78 END DIV 65 ) - - 86 AS col2, 91 - 74 - 24 - 76 AS col2
----
86
-83

skipif mysql # not compatible
query II rowsort label-5252
SELECT - ( + - 72 ) / COALESCE ( 98, - - 26 + 0 / + CASE - - 70 WHEN - 59 THEN NULL ELSE + 78 END / 65 ) - - 86 AS col2, 91 - 74 - 24 - 76 AS col2
----
86
-83

query I rowsort
SELECT ALL - - 59 AS col1
----
59

query I rowsort
SELECT DISTINCT - COALESCE ( - 80, + 99 ) * - 44 AS col2
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - MIN( - COALESCE ( - 15, + 54 ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5255
SELECT - MIN ( - COALESCE ( - 15, + 54 ) ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT 21 * - ( - COUNT( * ) ) * - - COUNT( * ) * + 35 * 36
----
26460

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT 21 * - ( - COUNT ( * ) ) * - - COUNT ( * ) * + 35 * 36
----
26460

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT DISTINCT 55 * - 54 + MIN( DISTINCT - 52 ) + 81 + - + 63 + + + COUNT( * ) AS col0, 66 col0
----
-3003
66

skipif mysql # not compatible
query II rowsort label-5257
SELECT DISTINCT 55 * - 54 + MIN ( DISTINCT - 52 ) + 81 + - + 63 + + + COUNT ( * ) AS col0, 66 col0
----
-3003
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT ( + + 17 ) AS col2, COUNT( * )
----
17
1

skipif mysql # not compatible
query II rowsort label-5258
SELECT ( + + 17 ) AS col2, COUNT ( * )
----
17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT ALL + COUNT( DISTINCT - 27 ) AS col0, 94 AS col1
----
1
94

skipif mysql # not compatible
query II rowsort label-5259
SELECT ALL + COUNT ( DISTINCT - 27 ) AS col0, 94 AS col1
----
1
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT COUNT( DISTINCT + - 29 ), + 98 * + 15 col0
----
1
1470

skipif mysql # not compatible
query II rowsort label-5260
SELECT COUNT ( DISTINCT + - 29 ), + 98 * + 15 col0
----
1
1470

query II rowsort
SELECT + 66 AS col2, - 20 - + - 13
----
66
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL + COUNT( * ) + - 38 * COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + COUNT ( * ) + - 38 * COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT - 29 + - 86 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - 88 * + + 51 * - MAX( + + 35 ) AS col0
----
157080

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 88 * + + 51 * - MAX ( + + 35 ) AS col0
----
157080

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT DISTINCT COUNT( * ) AS col1, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-5265
SELECT DISTINCT COUNT ( * ) AS col1, 42
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL + 28 + COUNT( * ) + + 33
----
62

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + 28 + COUNT ( * ) + + 33
----
62

query II rowsort
SELECT 45, 71 AS col1
----
45
71

query II rowsort
SELECT DISTINCT COALESCE ( 52, 69 ), 0 * - + 29 * - 3 col2
----
52
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5269
SELECT + ( + MIN( DISTINCT - + 85 ) ) - - - ( 63 ) * - 44 AS col2, 77 + - ( + - 25 ) - + ( - 39 ), - COUNT( * ) AS col1
----
2687
141
-1

skipif mysql # not compatible
query III rowsort label-5269
SELECT + ( + MIN ( DISTINCT - + 85 ) ) - - - ( 63 ) * - 44 AS col2, 77 + - ( + - 25 ) - + ( - 39 ), - COUNT ( * ) AS col1
----
2687
141
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + COUNT( * ) * - 78 col2
----
-78

skipif mysql # not compatible
query I rowsort label-5270
SELECT + COUNT ( * ) * - 78 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - 39 + 88 AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT ALL COALESCE ( - CASE - 55 WHEN - 84 * + 90 + + 91 + COUNT( + 23 ) * 4 + + - 52 THEN 69 END, - - ( + + 60 ) * - 8 * + - 42 * + ( 61 ), NULLIF ( + - COALESCE ( + + 93, + ( - 53 ) ), SUM( DISTINCT - - 70 ) ) * + 19 DIV + 88 )
----
1229760

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL COALESCE ( - CASE - 55 WHEN - 84 * + 90 + + 91 + COUNT ( + 23 ) * 4 + + - 52 THEN 69 END, - - ( + + 60 ) * - 8 * + - 42 * + ( 61 ), NULLIF ( + - COALESCE ( + + 93, + ( - 53 ) ), SUM ( DISTINCT - - 70 ) ) * + 19 / + 88 )
----
1229760

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + COUNT( * ) + - - 11
----
12

skipif mysql # not compatible
query I rowsort label-5274
SELECT + COUNT ( * ) + - - 11
----
12

query I rowsort
SELECT ALL 27 * - 58
----
-1566

query I rowsort
SELECT + 92 + 58 col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5277
SELECT - COALESCE ( MIN( DISTINCT - 52 ), + + 44 * + + ( - 21 ) * 73 * - ( 21 ) * - 93 DIV + ( + 16 ) * 90 DIV + + 73 * CAST( NULL AS SIGNED ) + - ( 74 ) + + - 75 * + + 39 )
----
52

skipif mysql # not compatible
query I rowsort label-5277
SELECT - COALESCE ( MIN ( DISTINCT - 52 ), + + 44 * + + ( - 21 ) * 73 * - ( 21 ) * - 93 / + ( + 16 ) * 90 / + + 73 * CAST ( NULL AS INTEGER ) + - ( 74 ) + + - 75 * + + 39 )
----
52

query I rowsort
SELECT + 51 * - 90
----
-4590

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT + COUNT( * ) col0, 75 AS col0
----
1
75

skipif mysql # not compatible
query II rowsort label-5279
SELECT + COUNT ( * ) col0, 75 AS col0
----
1
75

query I rowsort
SELECT + - 81 + - 4 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL - 76 * SUM( DISTINCT + 77 ) + 48 + + 43 AS col0
----
-5761

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - 76 * SUM ( DISTINCT + 77 ) + 48 + + 43 AS col0
----
-5761

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + + ( 71 ) + + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5282
SELECT + + ( 71 ) + + COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT - + CAST( + + 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-5283
SELECT - + CAST ( + + 9 AS INTEGER )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5284
SELECT + - 32 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT + - 32 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 34 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - 66 * 55 + - ( + COUNT( * ) ) * - 8 + + 24 * - COUNT( * ) AS col0
----
-3646

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - 66 * 55 + - ( + COUNT ( * ) ) * - 8 + + 24 * - COUNT ( * ) AS col0
----
-3646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT ALL - NULLIF ( + 66, - SUM( + 23 ) ) * 31 + - 85 + + 20 DIV 14 + COUNT( + 55 )
----
-2129

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - NULLIF ( + 66, - SUM ( + 23 ) ) * 31 + - 85 + + 20 / 14 + COUNT ( + 55 )
----
-2129

query I rowsort
SELECT + ( 70 ) - 0 col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT + + 5 * 35 DIV 19 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5289
SELECT + + 5 * 35 / 19 AS col2
----
9

query I rowsort
SELECT + - 36 * + - 25 * + - 57 AS col1
----
-51300

query I rowsort
SELECT + - CASE + 14 WHEN + - 52 THEN + - 63 ELSE NULL END
----
NULL

query I rowsort
SELECT - 12 + - 58 - + + 76
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT + - 76 * - + 69 * + + 65 + + - 26 * - 0 + + MIN( + 17 ) AS col2
----
340877

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + - 76 * - + 69 * + + 65 + + - 26 * - 0 + + MIN ( + 17 ) AS col2
----
340877

query I rowsort
SELECT + ( + - ( - - 81 ) ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT ALL - ( - 70 ) * CAST( + 49 AS SIGNED ) + - 78
----
3352

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - ( - 70 ) * CAST ( + 49 AS INTEGER ) + - 78
----
3352

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + 12 * - 87 * - COUNT( + 54 ) * + - COUNT( * ) AS col1
----
-1044

skipif mysql # not compatible
query I rowsort label-5296
SELECT + 12 * - 87 * - COUNT ( + 54 ) * + - COUNT ( * ) AS col1
----
-1044

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT ALL COUNT( * ) * - - 42 AS col1, 93 AS col2
----
42
93

skipif mysql # not compatible
query II rowsort label-5297
SELECT ALL COUNT ( * ) * - - 42 AS col1, 93 AS col2
----
42
93

query I rowsort
SELECT + 30 + + 2 * + - 67
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT NULLIF ( - SUM( ALL + + 62 ), + - 76 + - 93 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5299
SELECT NULLIF ( - SUM ( ALL + + 62 ), + - 76 + - 93 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT ALL + 64 * + 50 - - 64 DIV - + 48
----
3199

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + 64 * + 50 - - 64 / - + 48
----
3199

query I rowsort
SELECT NULLIF ( + 46, + 45 ) col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT - COUNT( * ) * + + NULLIF ( - ( 4 ), + 61 )
----
4

skipif mysql # not compatible
query I rowsort label-5302
SELECT - COUNT ( * ) * + + NULLIF ( - ( 4 ), + 61 )
----
4

query I rowsort
SELECT - ( - 15 ) + - 1
----
14

query I rowsort
SELECT ALL + 97 * - 63
----
-6111

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT ALL + 6 DIV 5 * - - 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + 6 / 5 * - - 99 AS col2
----
99

query I rowsort
SELECT DISTINCT COALESCE ( - + 47, 2 + - 59 )
----
-47

query II rowsort
SELECT ALL ( 79 ) AS col1, 41 AS col0
----
79
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT - 68 DIV 21
----
-3

skipif mysql # not compatible
query I rowsort label-5308
SELECT - 68 / 21
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - 80 - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5309
SELECT - 80 - + COUNT ( * )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT DISTINCT CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT - - 41 + + CAST( - 86 AS SIGNED ) * 59 AS col2
----
-5033

skipif mysql # not compatible
query I rowsort label-5311
SELECT - - 41 + + CAST ( - 86 AS INTEGER ) * 59 AS col2
----
-5033

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT DISTINCT + - 56 + - NULLIF ( - COUNT( * ), 58 - + 39 )
----
-55

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT + - 56 + - NULLIF ( - COUNT ( * ), 58 - + 39 )
----
-55

query I rowsort
SELECT ALL - - 93 + - 92
----
1

query I rowsort
SELECT - - 92 * + 39
----
3588

query II rowsort
SELECT ALL + 64 * - 56 * + 23 + + 79 AS col0, 42 * 64
----
-82353
2688

query I rowsort
SELECT DISTINCT + - 64 + 40 + 70
----
46

query I rowsort
SELECT - NULLIF ( - - NULLIF ( - + 84, + 31 ), + 18 ) col1
----
84

query I rowsort
SELECT 23 * - 87 * 20
----
-40020

query I rowsort
SELECT ALL + + 13 + + ( + 92 ) * 69 - 26 + + 91 AS col1
----
6426

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT - NULLIF ( - 10, 63 ) DIV + - 35 - - 22 + 84
----
106

skipif mysql # not compatible
query I rowsort label-5320
SELECT - NULLIF ( - 10, 63 ) / + - 35 - - 22 + 84
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT 90 * - NULLIF ( 27, - COUNT( * ) + + 28 - - AVG ( DISTINCT + 85 ) ) + + 15 + + SUM( ALL 10 )
----
-2405

skipif mysql # not compatible
query I rowsort label-5321
SELECT 90 * - NULLIF ( 27, - COUNT ( * ) + + 28 - - AVG ( DISTINCT + 85 ) ) + + 15 + + SUM ( ALL 10 )
----
-2405

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL 70 + - 55 + + - COUNT( * ) col1
----
14

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL 70 + - 55 + + - COUNT ( * ) col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL - - 46 * 80 + + 22 + - NULLIF ( - COUNT( * ), CASE + SUM( DISTINCT + 27 ) WHEN + 71 THEN - - COALESCE ( - COUNT( * ), 27, + 26 * - - ( - + 1 ) ) ELSE + - NULLIF ( - + ( 70 ), 19 ) END + 40 ) + 12 * - 24 AS col2
----
3415

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - - 46 * 80 + + 22 + - NULLIF ( - COUNT ( * ), CASE + SUM ( DISTINCT + 27 ) WHEN + 71 THEN - - COALESCE ( - COUNT ( * ), 27, + 26 * - - ( - + 1 ) ) ELSE + - NULLIF ( - + ( 70 ), 19 ) END + 40 ) + 12 * - 24 AS col2
----
3415

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT 99 * - COUNT( DISTINCT 73 ) + - 71 col2
----
-170

skipif mysql # not compatible
query I rowsort label-5324
SELECT 99 * - COUNT ( DISTINCT 73 ) + - 71 col2
----
-170

query I rowsort
SELECT DISTINCT 59 * - + 42 col2
----
-2478

query I rowsort
SELECT 44 + - 72 AS col0
----
-28

query I rowsort
SELECT ALL 71 - 3 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( * ) * - + 64
----
-64

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( * ) * - + 64
----
-64

query I rowsort
SELECT ( - 10 ) * 94 + - - 84
----
-856

query I rowsort
SELECT 41 * + 72 AS col0
----
2952

query II rowsort
SELECT + 30 AS col0, 72 AS col1
----
30
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT 79 + + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5332
SELECT 79 + + COUNT ( * ) AS col0
----
80

query I rowsort
SELECT ALL 17 - + 55
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT - COALESCE ( - + 47, - + CAST( NULL AS SIGNED ), - + 55 + - 50 )
----
47

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - COALESCE ( - + 47, - + CAST ( NULL AS INTEGER ), - + 55 + - 50 )
----
47

query I rowsort
SELECT 76 * - 43 AS col0
----
-3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT COUNT( 89 ) + COUNT( * ) - + 61 + 7 * + + COUNT( - + 45 ) * + ( + - 63 ) DIV + - 56
----
-52

skipif mysql # not compatible
query I rowsort label-5336
SELECT COUNT ( 89 ) + COUNT ( * ) - + 61 + 7 * + + COUNT ( - + 45 ) * + ( + - 63 ) / + - 56
----
-52

query I rowsort
SELECT 91 - - - 34 * 31 AS col1
----
-963

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT 66 + 68 + - COUNT( * ) * COUNT( * ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-5338
SELECT 66 + 68 + - COUNT ( * ) * COUNT ( * ) AS col1
----
133

query I rowsort
SELECT 1 + 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT 66 + + 61 - + NULLIF ( 69, 43 * + 45 ) * + + 15 * - - COUNT( * )
----
-908

skipif mysql # not compatible
query I rowsort label-5340
SELECT 66 + + 61 - + NULLIF ( 69, 43 * + 45 ) * + + 15 * - - COUNT ( * )
----
-908

query I rowsort
SELECT ALL + 85 + + 42
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL 69 + - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL 69 + - COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL + 35 + - CASE + 43 WHEN + - 94 * - + 20 - 38 THEN 44 * - + COUNT( * ) ELSE - - 50 + COUNT( * ) END * + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + 35 + - CASE + 43 WHEN + - 94 * - + 20 - 38 THEN 44 * - + COUNT ( * ) ELSE - - 50 + COUNT ( * ) END * + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT ALL + + 61 + - COALESCE ( - COALESCE ( 7, MIN( ALL + ( 31 ) ), - 52 * 66 ), + 61 DIV + 89 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + + 61 + - COALESCE ( - COALESCE ( 7, MIN ( ALL + ( 31 ) ), - 52 * 66 ), + 61 / + 89 ) AS col2
----
68

query II rowsort
SELECT + 35 + + 88 * 2 AS col0, 68 AS col0
----
211
68

query I rowsort
SELECT - 44 * + 11 AS col0
----
-484

query I rowsort
SELECT DISTINCT - + 49 * + - 46
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT 68 + + - 99 * - + COUNT( * ) AS col0
----
167

skipif mysql # not compatible
query I rowsort label-5348
SELECT 68 + + - 99 * - + COUNT ( * ) AS col0
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT 14 + + - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 52 + - COUNT( * ) - + ( + 83 ) * - 21 * + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT 14 + + - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 52 + - COUNT ( * ) - + ( + 83 ) * - 21 * + 82 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL + 8 - - - COUNT( 31 )
----
7

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + 8 - - - COUNT ( 31 )
----
7

query I rowsort
SELECT DISTINCT - - 59 AS col2
----
59

query I rowsort
SELECT DISTINCT - - 44 - - + 54 AS col1
----
98

query I rowsort
SELECT ALL - + ( 43 ) AS col0
----
-43

query I rowsort
SELECT ALL 82 * - ( 16 )
----
-1312

query I rowsort
SELECT 78 * - 8 - + 92
----
-716

query I rowsort
SELECT 60 * - - 52 * + - 20
----
-62400

query I rowsort
SELECT - 4 * + COALESCE ( - 69, + 23 ) - - - 19
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT SUM( ALL 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5358
SELECT SUM ( ALL 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT + COUNT( * ) AS col0, 17
----
1
17

skipif mysql # not compatible
query II rowsort label-5359
SELECT + COUNT ( * ) AS col0, 17
----
1
17

onlyif mysql # DIV for integer division: 
query II rowsort label-5360
SELECT 50 DIV - 96 AS col1, 86 AS col2
----
0
86

skipif mysql # not compatible
query II rowsort label-5360
SELECT 50 / - 96 AS col1, 86 AS col2
----
0
86

query I rowsort
SELECT DISTINCT - ( 9 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT DISTINCT - CASE - - 86 WHEN ( - 50 ) THEN 21 + - 56 END * CASE - 17 WHEN SUM( - 2 ) THEN + - 47 + - 35 WHEN - COUNT( * ) / ( + + 85 ) - - COUNT( * ) + COUNT( * ) THEN - CAST( - - CASE 2 WHEN - - 76 + COUNT( * ) THEN + - SUM( DISTINCT + + 30 ) * - 88 WHEN + - ( - + 84 ) THEN NULL ELSE - + 74 END AS SIGNED ) * - - 43 WHEN COUNT( * ) / - 94 * + + 60 THEN AVG ( - 10 ) * + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - CASE - - 86 WHEN ( - 50 ) THEN 21 + - 56 END * CASE - 17 WHEN SUM ( - 2 ) THEN + - 47 + - 35 WHEN - COUNT ( * ) / ( + + 85 ) - - COUNT ( * ) + COUNT ( * ) THEN - CAST ( - - CASE 2 WHEN - - 76 + COUNT ( * ) THEN + - SUM ( DISTINCT + + 30 ) * - 88 WHEN + - ( - + 84 ) THEN NULL ELSE - + 74 END AS INTEGER ) * - - 43 WHEN COUNT ( * ) / - 94 * + + 60 THEN AVG ( - 10 ) * + 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT 61 AS col2, 18 + - - 25 * - ( - COUNT( * ) )
----
61
43

skipif mysql # not compatible
query II rowsort label-5363
SELECT 61 AS col2, 18 + - - 25 * - ( - COUNT ( * ) )
----
61
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5364
SELECT ALL - CAST( NULL AS SIGNED ), - 36 col2
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-5364
SELECT ALL - CAST ( NULL AS INTEGER ), - 36 col2
----
NULL
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5365
SELECT ALL - COUNT( * ) col2, - 47 * + + COUNT( * ) + - 13
----
-1
-60

skipif mysql # not compatible
query II rowsort label-5365
SELECT ALL - COUNT ( * ) col2, - 47 * + + COUNT ( * ) + - 13
----
-1
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT 76 * - + 65 * + - SUM( + 22 )
----
108680

skipif mysql # not compatible
query I rowsort label-5366
SELECT 76 * - + 65 * + - SUM ( + 22 )
----
108680

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL 4 * COUNT( * ) col2
----
4

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL 4 * COUNT ( * ) col2
----
4

query II rowsort
SELECT 42 AS col2, + 94 col2
----
42
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5369
SELECT CAST( - 18 AS SIGNED ) * - 92 + - 18 * 16 DIV - 88
----
1659

skipif mysql # not compatible
query I rowsort label-5369
SELECT CAST ( - 18 AS INTEGER ) * - 92 + - 18 * 16 / - 88
----
1659

query I rowsort
SELECT ALL 75 + + 43 + + - 11 + 95 + - + 6 - 37 + + 0 * + 36
----
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5371
SELECT + COUNT( * ) * - 92 / + CASE 77 WHEN 74 / + 88 THEN NULL WHEN + 67 THEN NULL ELSE 28 END + + + CASE - CASE + ( - - COUNT( - COALESCE ( + 2, 99 / - 34 * - 86 * - 98 ) ) ) WHEN + + COUNT( * ) + + SUM( 79 ) * 71 THEN NULL WHEN + + 93 + CAST( NULL AS DECIMAL ) * + 81 THEN + 97 + 39 ELSE NULL END WHEN + - 69 + + COUNT( * ) THEN 22 END - 47 - + 48 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT + COUNT ( * ) * - 92 / + CASE 77 WHEN 74 / + 88 THEN NULL WHEN + 67 THEN NULL ELSE 28 END + + + CASE - CASE + ( - - COUNT ( - COALESCE ( + 2, 99 / - 34 * - 86 * - 98 ) ) ) WHEN + + COUNT ( * ) + + SUM ( 79 ) * 71 THEN NULL WHEN + + 93 + CAST ( NULL AS REAL ) * + 81 THEN + 97 + 39 ELSE NULL END WHEN + - 69 + + COUNT ( * ) THEN 22 END - 47 - + 48 * 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT 66 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-5372
SELECT 66 / - 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - NULLIF ( - 13, - + COUNT( * ) * - + MIN( + + ( - 29 ) ) ) * - 10 * + COUNT( + 91 ) + - - COUNT( * ) * - 72
----
-202

skipif mysql # not compatible
query I rowsort label-5373
SELECT - NULLIF ( - 13, - + COUNT ( * ) * - + MIN ( + + ( - 29 ) ) ) * - 10 * + COUNT ( + 91 ) + - - COUNT ( * ) * - 72
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL 68 + - CASE COUNT( * ) WHEN - 11 + + 56 / + - COUNT( * ) * - COUNT( * ) THEN NULL WHEN + MIN( DISTINCT - 24 ) THEN - ( - 20 ) END - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL 68 + - CASE COUNT ( * ) WHEN - 11 + + 56 / + - COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN + MIN ( DISTINCT - 24 ) THEN - ( - 20 ) END - + 54
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT - COUNT( * ) AS col1, 87 AS col1
----
-1
87

skipif mysql # not compatible
query II rowsort label-5375
SELECT - COUNT ( * ) AS col1, 87 AS col1
----
-1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT 11 + + - ( - COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-5376
SELECT 11 + + - ( - COUNT ( * ) )
----
12

query I rowsort
SELECT ALL + 28 + 48 + - + 97 * + 73 + - + 68 + + 15 * 19 AS col1
----
-6788

query I rowsort
SELECT + - 59 * COALESCE ( 16, 14 + - 50 ) AS col2
----
-944

query I rowsort
SELECT ALL 76 + - 5
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT SUM( ALL + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5380
SELECT SUM ( ALL + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT ALL + - NULLIF ( - - 41, + - 73 ) + - 20 * - - COUNT( * ) + + 83 AS col0, 12 AS col0
----
22
12

skipif mysql # not compatible
query II rowsort label-5381
SELECT ALL + - NULLIF ( - - 41, + - 73 ) + - 20 * - - COUNT ( * ) + + 83 AS col0, 12 AS col0
----
22
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT DISTINCT NULLIF ( - - COUNT( * ), + - CASE - COUNT( * ) WHEN - + NULLIF ( - - COUNT( * ), + CAST( - 61 AS SIGNED ) ) THEN - 37 END )
----
1

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + - CASE - COUNT ( * ) WHEN - + NULLIF ( - - COUNT ( * ), + CAST ( - 61 AS INTEGER ) ) THEN - 37 END )
----
1

query I rowsort
SELECT - 42 * - - 30 + - 50 AS col0
----
-1310

query II rowsort
SELECT - 98 AS col1, 47 + - 35 col2
----
-98
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT ALL - 12 - - 67 - + + NULLIF ( 38, - + ( + 95 ) + 57 / - 13 ) + - 93 - + + COUNT( * ) * + CASE 68 WHEN - - 21 + - + 85 * + + COUNT( * ) + - 40 THEN COUNT( * ) WHEN - 93 / NULLIF ( + 98, - COUNT( * ) ) + 25 THEN 74 ELSE - - 45 END AS col2, - 88
----
-121
-88

skipif mysql # not compatible
query II rowsort label-5385
SELECT ALL - 12 - - 67 - + + NULLIF ( 38, - + ( + 95 ) + 57 / - 13 ) + - 93 - + + COUNT ( * ) * + CASE 68 WHEN - - 21 + - + 85 * + + COUNT ( * ) + - 40 THEN COUNT ( * ) WHEN - 93 / NULLIF ( + 98, - COUNT ( * ) ) + 25 THEN 74 ELSE - - 45 END AS col2, - 88
----
-121
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT 70, + COUNT( ALL + - 83 ) AS col0
----
70
1

skipif mysql # not compatible
query II rowsort label-5386
SELECT 70, + COUNT ( ALL + - 83 ) AS col0
----
70
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5387
SELECT - - COUNT( * ), - CAST( NULL AS SIGNED ) - - + 39 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5387
SELECT - - COUNT ( * ), - CAST ( NULL AS INTEGER ) - - + 39 AS col1
----
1
NULL

query I rowsort
SELECT - - 57 - + + 85 - - 23 AS col1
----
-5

query I rowsort
SELECT ALL ( + 44 )
----
44

query I rowsort
SELECT ALL - + ( - NULLIF ( - 80, - 2 + - AVG ( - 88 ) / + 45 ) ) * + - 34 * + 20
----
54400

query II rowsort
SELECT DISTINCT + ( - 62 ) AS col0, 7 * + 70 + NULLIF ( - 83, + 81 + + COALESCE ( - 18, - 77, + 99 ) )
----
-62
407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT - - 7 + - ( - COUNT( * ) ) DIV + + 63 * + - 18 * + + 95
----
7

skipif mysql # not compatible
query I rowsort label-5392
SELECT - - 7 + - ( - COUNT ( * ) ) / + + 63 * + - 18 * + + 95
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + - 79 * - SUM( ALL + 49 ) * - - 55 + + 11 + - + 84
----
212832

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + - 79 * - SUM ( ALL + 49 ) * - - 55 + + 11 + - + 84
----
212832

query I rowsort
SELECT - 29 + + 7 col0
----
-22

query I rowsort
SELECT - 47 * + + 74
----
-3478

query I rowsort
SELECT - COALESCE ( - + 27, - 80, + 91 ) - - 3
----
30

query II rowsort
SELECT ALL + ( + - 72 ), ( 46 ) AS col2
----
-72
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT + CASE + 1 WHEN - 13 * NULLIF ( - 86, NULLIF ( + + COUNT( * ), + 82 + + 85 ) * + COUNT( * ) + 60 + + CASE MIN( DISTINCT + - 42 ) WHEN + + 22 THEN + - 92 * + - COUNT( * ) - - - 41 + + + 37 + - 40 + ( 90 ) + + 62 / - 10 WHEN 58 * + 3 / + COALESCE ( 21, 30 + 25 + - 60 ) + - - COUNT( * ) THEN NULL END * + 75 ) + + 22 THEN + 58 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT + CASE + 1 WHEN - 13 * NULLIF ( - 86, NULLIF ( + + COUNT ( * ), + 82 + + 85 ) * + COUNT ( * ) + 60 + + CASE MIN ( DISTINCT + - 42 ) WHEN + + 22 THEN + - 92 * + - COUNT ( * ) - - - 41 + + + 37 + - 40 + ( 90 ) + + 62 / - 10 WHEN 58 * + 3 / + COALESCE ( 21, 30 + 25 + - 60 ) + - - COUNT ( * ) THEN NULL END * + 75 ) + + 22 THEN + 58 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - 17 * COUNT( * ) * NULLIF ( COUNT( DISTINCT + - 94 ), + 70 )
----
-17

skipif mysql # not compatible
query I rowsort label-5399
SELECT - 17 * COUNT ( * ) * NULLIF ( COUNT ( DISTINCT + - 94 ), + 70 )
----
-17

query I rowsort
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN - 97 END + - + ( + - 10 ) * - + 5
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL COUNT( * ) * + - COUNT( * ) + - 42
----
-43

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + - 42
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT NULLIF ( + 15, - CASE - - 91 WHEN 6 * - 98 + + 19 THEN + 5 WHEN COUNT( + 95 ) / 96 THEN 99 ELSE NULL END ) col1
----
15

skipif mysql # not compatible
query I rowsort label-5402
SELECT NULLIF ( + 15, - CASE - - 91 WHEN 6 * - 98 + + 19 THEN + 5 WHEN COUNT ( + 95 ) / 96 THEN 99 ELSE NULL END ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT COALESCE ( + COUNT( ALL - - 68 ), 74, - 13 ) * + - 19 + - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5403
SELECT COALESCE ( + COUNT ( ALL - - 68 ), 74, - 13 ) * + - 19 + - COUNT ( * ) AS col0
----
-20

query I rowsort
SELECT DISTINCT 86 * - 75 + - 91 AS col0
----
-6541

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT ALL - 48 * - 25 * COUNT( * ), 73 AS col1
----
1200
73

skipif mysql # not compatible
query II rowsort label-5405
SELECT ALL - 48 * - 25 * COUNT ( * ), 73 AS col1
----
1200
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT NULLIF ( + - 45, - COUNT( * ) * + 39 + 35 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5406
SELECT NULLIF ( + - 45, - COUNT ( * ) * + 39 + 35 ) AS col1
----
-45

query II rowsort
SELECT ALL + 48 * - + 32 col0, 67 AS col1
----
-1536
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5408
SELECT DISTINCT - ( + 88 ) * - MAX( ALL + 74 ) + + - 22, MIN( + 29 ) * - 75 + - SUM( DISTINCT - 95 ) + + ( + CAST( NULL AS SIGNED ) ) * - 63 / + 21 col0
----
6490
NULL

skipif mysql # not compatible
query II rowsort label-5408
SELECT DISTINCT - ( + 88 ) * - MAX ( ALL + 74 ) + + - 22, MIN ( + 29 ) * - 75 + - SUM ( DISTINCT - 95 ) + + ( + CAST ( NULL AS INTEGER ) ) * - 63 / + 21 col0
----
6490
NULL

query I rowsort
SELECT ALL + 13 * - 0 * + 99 + + 30 * 92 * + 51 AS col0
----
140760

query I rowsort
SELECT - 48 * 33 AS col1
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT - + COUNT( * ) + 63 + + - 12 * - 9
----
170

skipif mysql # not compatible
query I rowsort label-5411
SELECT - + COUNT ( * ) + 63 + + - 12 * - 9
----
170

query I rowsort
SELECT + + 47 + - 71
----
-24

query I rowsort
SELECT ALL + 41 - + 3 - CASE - - 82 WHEN 64 * - 18 THEN + - 29 WHEN - 27 + + - 53 THEN NULL ELSE NULL END * + + 43
----
NULL

query I rowsort
SELECT ALL + 83 * 71 * - 65 col2
----
-383045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5415
SELECT + - CASE - + NULLIF ( 48, - - COUNT( * ) - + NULLIF ( 80, + - 54 ) + + 22 - COUNT( * ) ) WHEN - + 56 + - CASE - 7 WHEN - MAX( 42 ) - - SUM( 26 ) THEN NULL ELSE - 49 * + 26 END + - ( 8 ) + + - COUNT( * ) - + 96 / - + 54 - - + 21 * - CAST( 41 AS SIGNED ) THEN + - 37 * + 48 * 99 WHEN + 12 * - ( + + COUNT( * ) ) THEN NULL WHEN CAST( - + COUNT( * ) AS SIGNED ) + - 76 THEN NULL ELSE NULL END + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT + - CASE - + NULLIF ( 48, - - COUNT ( * ) - + NULLIF ( 80, + - 54 ) + + 22 - COUNT ( * ) ) WHEN - + 56 + - CASE - 7 WHEN - MAX ( 42 ) - - SUM ( 26 ) THEN NULL ELSE - 49 * + 26 END + - ( 8 ) + + - COUNT ( * ) - + 96 / - + 54 - - + 21 * - CAST ( 41 AS INTEGER ) THEN + - 37 * + 48 * 99 WHEN + 12 * - ( + + COUNT ( * ) ) THEN NULL WHEN CAST ( - + COUNT ( * ) AS INTEGER ) + - 76 THEN NULL ELSE NULL END + + 23 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5416
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + 36 * - + 29 * 50 * + COUNT( ALL - 61 ) + 70 col0
----
NULL
-52130

skipif mysql # not compatible
query II rowsort label-5416
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + 36 * - + 29 * 50 * + COUNT ( ALL - 61 ) + 70 col0
----
NULL
-52130

query I rowsort
SELECT + 20 + 4 + + 4 + + 40
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT DISTINCT + COUNT( * ) * + 31 col1
----
31

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + COUNT ( * ) * + 31 col1
----
31

query I rowsort
SELECT ALL ( 67 ) * 24 + 0
----
1608

query I rowsort
SELECT ( 40 )
----
40

query I rowsort
SELECT + - 20 * + 81 + 54 AS col1
----
-1566

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5422
SELECT - - MAX( DISTINCT - 62 ) + - - 18 * + + SUM( DISTINCT 68 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT - - MAX ( DISTINCT - 62 ) + - - 18 * + + SUM ( DISTINCT 68 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT + 47 DIV - 6 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5423
SELECT + 47 / - 6 AS col0
----
-7

query I rowsort
SELECT - 12 + + + 6 * - 40
----
-252

query II rowsort
SELECT + 24 AS col0, 1
----
24
1

query II rowsort
SELECT ALL + 40 AS col0, - ( 29 ) * - 89 AS col0
----
40
2581

query II rowsort
SELECT + 81 col1, - 45
----
81
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5428
SELECT + CASE ( 65 ) WHEN CASE COUNT( * ) WHEN 30 + + 41 THEN NULL WHEN + - 29 THEN - - MAX( - 82 ) + - + 61 WHEN + ( + - 74 ) THEN + MAX( ALL - - 88 ) END THEN NULL ELSE + - COUNT( * ) + + + MAX( + - 29 ) DIV 28 + 5 END DIV + 23 + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5428
SELECT + CASE ( 65 ) WHEN CASE COUNT ( * ) WHEN 30 + + 41 THEN NULL WHEN + - 29 THEN - - MAX ( - 82 ) + - + 61 WHEN + ( + - 74 ) THEN + MAX ( ALL - - 88 ) END THEN NULL ELSE + - COUNT ( * ) + + + MAX ( + - 29 ) / 28 + 5 END / + 23 + 32 AS col0
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-5429
SELECT 52 * - + ( - 17 ) * 14 + + 73 DIV - 27 - - - 41 + + 92 AS col2, 80 AS col2
----
12425
80

skipif mysql # not compatible
query II rowsort label-5429
SELECT 52 * - + ( - 17 ) * 14 + + 73 / - 27 - - - 41 + + 92 AS col2, 80 AS col2
----
12425
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT CAST( ( 87 ) AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5430
SELECT CAST ( ( 87 ) AS INTEGER ) AS col1
----
87

query I rowsort
SELECT ALL + ( + + 78 )
----
78

query I rowsort
SELECT - 39 + + 30
----
-9

query I rowsort
SELECT - 98 * + - 51 AS col2
----
4998

query I rowsort
SELECT ( - ( 83 ) ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL - MAX( - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - MAX ( - 62 )
----
62

query I rowsort
SELECT 91 * + 61 AS col0
----
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT - NULLIF ( + + 42, + 11 * - 28 ) * 57 + + COUNT( * ) + + 66 * 32 - ( 82 ) AS col0
----
-363

skipif mysql # not compatible
query I rowsort label-5437
SELECT - NULLIF ( + + 42, + 11 * - 28 ) * 57 + + COUNT ( * ) + + 66 * 32 - ( 82 ) AS col0
----
-363

query I rowsort
SELECT DISTINCT + - 4 * + 24 + 35 * + - 86 AS col0
----
-3106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT + COUNT( * ) + + COUNT( * ) DIV + 62 + + COUNT( ALL + 52 ) DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-5439
SELECT + COUNT ( * ) + + COUNT ( * ) / + 62 + + COUNT ( ALL + 52 ) / + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + ( - 41 ) * + 80 + - SUM( + 18 ) AS col1
----
-3298

skipif mysql # not compatible
query I rowsort label-5440
SELECT + ( - 41 ) * + 80 + - SUM ( + 18 ) AS col1
----
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT COUNT( DISTINCT - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5441
SELECT COUNT ( DISTINCT - 55 )
----
1

query I rowsort
SELECT 20 + - - 94
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5443
SELECT ALL COALESCE ( + 36, - - 1, - COUNT( * ) ) col2, + 82 - - 83 + - CASE - NULLIF ( + 49, 68 ) WHEN - + ( 72 ) + + 11 THEN NULL WHEN + + 71 THEN + - 92 END * + + 74 - - 74 AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-5443
SELECT ALL COALESCE ( + 36, - - 1, - COUNT ( * ) ) col2, + 82 - - 83 + - CASE - NULLIF ( + 49, 68 ) WHEN - + ( 72 ) + + 11 THEN NULL WHEN + + 71 THEN + - 92 END * + + 74 - - 74 AS col1
----
36
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT DISTINCT + + 29 * 33 + - + 5, + SUM( - 32 ) + - COALESCE ( - 64, + - 88, + ( - 66 ) ) AS col2
----
952
32

skipif mysql # not compatible
query II rowsort label-5444
SELECT DISTINCT + + 29 * 33 + - + 5, + SUM ( - 32 ) + - COALESCE ( - 64, + - 88, + ( - 66 ) ) AS col2
----
952
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT DISTINCT 77 col1, MAX( + + ( 99 ) ) AS col1
----
77
99

skipif mysql # not compatible
query II rowsort label-5445
SELECT DISTINCT 77 col1, MAX ( + + ( 99 ) ) AS col1
----
77
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT ALL 48 DIV - 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL 48 / - 16 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT 92 * 34 + + + COALESCE ( + 56, + + 8 + - COUNT( ALL - 55 ) + 90 + + 51 ) DIV 76 + - COUNT( * ) * 15 AS col1
----
3113

skipif mysql # not compatible
query I rowsort label-5447
SELECT 92 * 34 + + + COALESCE ( + 56, + + 8 + - COUNT ( ALL - 55 ) + 90 + + 51 ) / 76 + - COUNT ( * ) * 15 AS col1
----
3113

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT MIN( DISTINCT - ( + 14 ) ) + - 41 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5448
SELECT MIN ( DISTINCT - ( + 14 ) ) + - 41 AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT + 71 + + COUNT( * ) DIV 65
----
71

skipif mysql # not compatible
query I rowsort label-5449
SELECT + 71 + + COUNT ( * ) / 65
----
71

query II rowsort
SELECT ALL - 12, + 79 AS col2
----
-12
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT CASE 97 WHEN + 47 THEN NULL WHEN + 13 THEN - 13 + 55 END + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT CASE 97 WHEN + 47 THEN NULL WHEN + 13 THEN - 13 + 55 END + - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + 54 * 29 * + ( COALESCE ( - 95, + 90 * - + 81 + - 80, - NULLIF ( + - COUNT( + 9 ), + NULLIF ( - 79, NULLIF ( + + 76, - 13 ) ) ) + COALESCE ( + 99, + COUNT( * ) ) + + 60 ) ) AS col2
----
-148770

skipif mysql # not compatible
query I rowsort label-5452
SELECT + 54 * 29 * + ( COALESCE ( - 95, + 90 * - + 81 + - 80, - NULLIF ( + - COUNT ( + 9 ), + NULLIF ( - 79, NULLIF ( + + 76, - 13 ) ) ) + COALESCE ( + 99, + COUNT ( * ) ) + + 60 ) ) AS col2
----
-148770

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT 23 AS col2, - COUNT( * ) * COUNT( * )
----
23
-1

skipif mysql # not compatible
query II rowsort label-5453
SELECT 23 AS col2, - COUNT ( * ) * COUNT ( * )
----
23
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT - 17 AS col0, 76 * - 90 * - ( COUNT( * ) ) AS col2
----
-17
6840

skipif mysql # not compatible
query II rowsort label-5454
SELECT - 17 AS col0, 76 * - 90 * - ( COUNT ( * ) ) AS col2
----
-17
6840

query I rowsort
SELECT ALL 94 + + - 50 AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT 60 - + 11 - - - 18 * COUNT( * ) AS col1, 62 col0
----
31
62

skipif mysql # not compatible
query II rowsort label-5456
SELECT 60 - + 11 - - - 18 * COUNT ( * ) AS col1, 62 col0
----
31
62

query I rowsort
SELECT DISTINCT 23 + - 96 - + ( 65 ) + - 96
----
-234

query I rowsort
SELECT ALL 58 + + 25
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5459
SELECT SUM( + ( + - 98 ) ) DIV 42 + + 40 col1
----
38

skipif mysql # not compatible
query I rowsort label-5459
SELECT SUM ( + ( + - 98 ) ) / 42 + + 40 col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5460
SELECT + SUM( DISTINCT + - 65 ) * - + 85 + + + 66 + - + 35 DIV - 44 - 48 DIV + - 62 * + ( 38 ) - - NULLIF ( + + 45, - + 66 ) AS col0
----
5636

skipif mysql # not compatible
query I rowsort label-5460
SELECT + SUM ( DISTINCT + - 65 ) * - + 85 + + + 66 + - + 35 / - 44 - 48 / + - 62 * + ( 38 ) - - NULLIF ( + + 45, - + 66 ) AS col0
----
5636

query I rowsort
SELECT 57 * - 27 + - 36 AS col2
----
-1575

query I rowsort
SELECT 4 - - - 31 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT CAST( NULL AS SIGNED ) / + + 80 + + + 4 + + SUM( + 36 ) * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT CAST ( NULL AS INTEGER ) / + + 80 + + + 4 + + SUM ( + 36 ) * - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5464
SELECT DISTINCT MAX( CAST( - 19 AS SIGNED ) ) DIV - 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT MAX ( CAST ( - 19 AS INTEGER ) ) / - 75 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL - CASE + - 85 WHEN - 77 + - 84 + + 63 * + 27 THEN - 48 / + AVG ( - + 52 ) * ( - - COUNT( * ) ) + - 94 * + 48 * - + AVG ( DISTINCT 9 ) + ( + COUNT( * ) ) ELSE NULL END * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - CASE + - 85 WHEN - 77 + - 84 + + 63 * + 27 THEN - 48 / + AVG ( - + 52 ) * ( - - COUNT ( * ) ) + - 94 * + 48 * - + AVG ( DISTINCT 9 ) + ( + COUNT ( * ) ) ELSE NULL END * + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + 8 * ( + 96 ) + SUM( DISTINCT + ( ( + - 98 ) ) ) col0
----
670

skipif mysql # not compatible
query I rowsort label-5466
SELECT + 8 * ( + 96 ) + SUM ( DISTINCT + ( ( + - 98 ) ) ) col0
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT NULLIF ( + 33, + COUNT( * ) ) col2
----
33

skipif mysql # not compatible
query I rowsort label-5467
SELECT NULLIF ( + 33, + COUNT ( * ) ) col2
----
33

query I rowsort
SELECT DISTINCT 65 - 40
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - 60 * + COUNT( * ) * 19 + - NULLIF ( - COUNT( * ), + 33 + - 86 ) + + 83
----
-1056

skipif mysql # not compatible
query I rowsort label-5469
SELECT - 60 * + COUNT ( * ) * 19 + - NULLIF ( - COUNT ( * ), + 33 + - 86 ) + + 83
----
-1056

query I rowsort
SELECT DISTINCT - + 87 AS col0
----
-87

query I rowsort
SELECT + 61 + - 81 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT DISTINCT - 14 * 66 DIV 58
----
-15

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT - 14 * 66 / 58
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL - - COALESCE ( + 17, + - COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - - COALESCE ( + 17, + - COUNT ( * ) )
----
17

query I rowsort
SELECT + + 84 col0
----
84

query I rowsort
SELECT ALL - NULLIF ( - 30, - 10 * 54 + - 97 ) AS col2
----
30

query II rowsort
SELECT 37 + - 39 AS col1, 96 col1
----
-2
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT - 38 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT - 38 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 86 * + 72 - + 16 + + 32, 79 AS col2
----
6208
79

query I rowsort
SELECT ALL ( - 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT + 6 + 54 + - COUNT( * ) * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT + 6 + 54 + - COUNT ( * ) * + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5481
SELECT ALL - 52 + + - COUNT( * ) + - 15, + 91 + - 40 - 92 AS col2
----
-68
-41

skipif mysql # not compatible
query II rowsort label-5481
SELECT ALL - 52 + + - COUNT ( * ) + - 15, + 91 + - 40 - 92 AS col2
----
-68
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL MAX( DISTINCT + + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL MAX ( DISTINCT + + 90 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT 59 DIV - ( + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-5483
SELECT 59 / - ( + 51 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT ALL - 16 DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL - 16 / + 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - COUNT( * ) * + + 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5485
SELECT - COUNT ( * ) * + + 92 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5486
SELECT DISTINCT + CAST( NULL AS SIGNED ), COUNT( * ) * + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5486
SELECT DISTINCT + CAST ( NULL AS INTEGER ), COUNT ( * ) * + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT + CAST( + 73 AS SIGNED ) * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5487
SELECT + CAST ( + 73 AS INTEGER ) * COUNT ( * )
----
73

query I rowsort
SELECT ALL ( + 87 ) * + 54 AS col2
----
4698

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT + 4 + 28 + + - 84 - + 23 + 82 * - 26 + - 17 DIV - - ( + 40 ) AS col1
----
-2207

skipif mysql # not compatible
query I rowsort label-5489
SELECT + 4 + 28 + + - 84 - + 23 + 82 * - 26 + - 17 / - - ( + 40 ) AS col1
----
-2207

query I rowsort
SELECT DISTINCT + 44 * + 98
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL ( + 77 ) * + - 17 - + COUNT( * )
----
-1310

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL ( + 77 ) * + - 17 - + COUNT ( * )
----
-1310

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT + MAX( DISTINCT 99 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT + MAX ( DISTINCT 99 ) col0
----
99

query I rowsort
SELECT + 56 * - - 38
----
2128

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT NULLIF ( - + MAX( DISTINCT + 13 ), + SUM( ALL 94 ) ) AS col0, + 94 + + 33
----
-13
127

skipif mysql # not compatible
query II rowsort label-5494
SELECT NULLIF ( - + MAX ( DISTINCT + 13 ), + SUM ( ALL 94 ) ) AS col0, + 94 + + 33
----
-13
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT CASE + 40 WHEN - 95 THEN 15 * 11 - - - COUNT( * ) + 44 - + - CAST( - + ( + 94 ) AS SIGNED ) + - 1 ELSE - + 50 END
----
-50

skipif mysql # not compatible
query I rowsort label-5495
SELECT CASE + 40 WHEN - 95 THEN 15 * 11 - - - COUNT ( * ) + 44 - + - CAST ( - + ( + 94 ) AS INTEGER ) + - 1 ELSE - + 50 END
----
-50

query I rowsort
SELECT + 50 + - 64 * + 49 + 3
----
-3083

query I rowsort
SELECT + NULLIF ( + 12, + 81 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT + 20 * - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5498
SELECT + 20 * - COUNT ( * ) AS col2
----
-20

query I rowsort
SELECT - 26 + - 96
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT SUM( + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5500
SELECT SUM ( + 92 ) AS col0
----
92

query I rowsort
SELECT + 73 - + 29 col1
----
44

query I rowsort
SELECT ALL - 54 * + 4
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT ALL 96 DIV - 42 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL 96 / - 42 AS col1
----
-2

query I rowsort
SELECT + ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT MAX( 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5505
SELECT MAX ( 28 ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT - 43 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT - 43 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL - 6 * COUNT( * ) + - COALESCE ( 24, + COUNT( * ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - 6 * COUNT ( * ) + - COALESCE ( 24, + COUNT ( * ) ) AS col1
----
-30

query I rowsort
SELECT + 54 * 62
----
3348

query I rowsort
SELECT - 60 * - 9
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT COUNT( + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-5510
SELECT COUNT ( + 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - ( MAX( + COALESCE ( 7, 96 ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-5511
SELECT - ( MAX ( + COALESCE ( 7, 96 ) ) )
----
-7

query I rowsort
SELECT ALL - 19 + 20
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT DISTINCT NULLIF ( - 41, - 23 ) + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT NULLIF ( - 41, - 23 ) + + COUNT ( * )
----
-40

query I rowsort
SELECT DISTINCT NULLIF ( 49, CASE - 11 WHEN + 26 THEN 53 END * + 48 + - 15 )
----
49

query I rowsort
SELECT ALL 83 + - 28 AS col0
----
55

query I rowsort
SELECT + 65 + 37
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL CASE + 28 WHEN 11 THEN - 45 - + 75 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL CASE + 28 WHEN 11 THEN - 45 - + 75 WHEN + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 29 * 13 col0
----
-377

query I rowsort
SELECT - 17 + + 94 * - 3 AS col1
----
-299

query I rowsort
SELECT - 23 * + 52 AS col2
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL - 20 - - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - 20 - - COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT - 34 * + 91 AS col1
----
-3094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5523
SELECT ALL + 57 - CASE + 61 WHEN - 5 DIV + ( + 17 ) THEN - CAST( - COALESCE ( - 91, 47 + 64 ) AS SIGNED ) * 49 + COUNT( * ) * CAST( - 8 AS SIGNED ) ELSE 62 END DIV 78
----
57

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + 57 - CASE + 61 WHEN - 5 / + ( + 17 ) THEN - CAST ( - COALESCE ( - 91, 47 + 64 ) AS INTEGER ) * 49 + COUNT ( * ) * CAST ( - 8 AS INTEGER ) ELSE 62 END / 78
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT - ( COALESCE ( NULLIF ( 66, 74 ), - CAST( NULL AS SIGNED ) + - MAX( + 50 ), 73 * - CAST( NULL AS SIGNED ) ) ) - - 4
----
-62

skipif mysql # not compatible
query I rowsort label-5524
SELECT - ( COALESCE ( NULLIF ( 66, 74 ), - CAST ( NULL AS INTEGER ) + - MAX ( + 50 ), 73 * - CAST ( NULL AS INTEGER ) ) ) - - 4
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL - 30 * - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - 30 * - COUNT ( * ) AS col2
----
30

query I rowsort
SELECT DISTINCT CASE - 75 WHEN 39 / 91 THEN + 62 WHEN 51 * 56 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 58 - 61 AS col2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5528
SELECT DISTINCT NULLIF ( CAST( NULL AS DECIMAL ), - AVG ( 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT NULLIF ( CAST ( NULL AS REAL ), - AVG ( 79 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - MIN( 99 ) + - ( + 9 )
----
-108

skipif mysql # not compatible
query I rowsort label-5529
SELECT - MIN ( 99 ) + - ( + 9 )
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT - 57 DIV COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5530
SELECT - 57 / COUNT ( * ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT - 44 DIV ( 49 ) - 80
----
-80

skipif mysql # not compatible
query I rowsort label-5531
SELECT - 44 / ( 49 ) - 80
----
-80

query I rowsort
SELECT - 38 * + 89 + - ( 68 + 59 ) * 0
----
-3382

query I rowsort
SELECT ALL + 58 * - COALESCE ( 97, - ( COALESCE ( 33, - 74 ) ) * 85 ) AS col1
----
-5626

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT - 21 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT - 21 / 29
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT + + CASE 7 WHEN NULLIF ( - 55, + 14 * SUM( + 48 * + 39 ) ) THEN NULLIF ( - 20, + 88 ) * CAST( NULL AS SIGNED ) + + COUNT( * ) / + 9 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT + + CASE 7 WHEN NULLIF ( - 55, + 14 * SUM ( + 48 * + 39 ) ) THEN NULLIF ( - 20, + 88 ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) / + 9 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT DISTINCT + - 6 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + - 6 / 70 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT ( 54 ) DIV 76 + - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT ( 54 ) / 76 + - 70 AS col1
----
-70

query I rowsort
SELECT ALL - - 93 * 45
----
4185

query I rowsort
SELECT + 71 * + 75
----
5325

query I rowsort
SELECT - - 42 + - 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - 72 * 51 + + 41 * SUM( DISTINCT 26 * 51 )
----
50694

skipif mysql # not compatible
query I rowsort label-5542
SELECT - 72 * 51 + + 41 * SUM ( DISTINCT 26 * 51 )
----
50694

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT + SUM( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5543
SELECT + SUM ( DISTINCT + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + - COUNT( DISTINCT 74 ) + + 54
----
53

skipif mysql # not compatible
query I rowsort label-5544
SELECT + - COUNT ( DISTINCT 74 ) + + 54
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5545
SELECT + - 87 * - CASE CAST( NULL AS DECIMAL ) WHEN - 72 / + 78 THEN NULL ELSE + NULLIF ( COUNT( 78 ), 1 * - 91 ) END AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5545
SELECT + - 87 * - CASE CAST ( NULL AS REAL ) WHEN - 72 / + 78 THEN NULL ELSE + NULLIF ( COUNT ( 78 ), 1 * - 91 ) END AS col0
----
87

query I rowsort
SELECT ALL + + CASE - 33 WHEN 10 THEN 66 END AS col0
----
NULL

query I rowsort
SELECT + 59 + 11 AS col1
----
70

query I rowsort
SELECT ALL - 52 * 28 + 0 * 50 AS col0
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL + COUNT( * ) * 81 + 21 col0
----
102

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL + COUNT ( * ) * 81 + 21 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT + 84 * 57 + + COALESCE ( 56 + - 68 * NULLIF ( - MAX( 66 ) + + 54 * + 16, 84 ), - 80 * 90 + 65, - 85 ) AS col0
----
-49420

skipif mysql # not compatible
query I rowsort label-5550
SELECT + 84 * 57 + + COALESCE ( 56 + - 68 * NULLIF ( - MAX ( 66 ) + + 54 * + 16, 84 ), - 80 * 90 + 65, - 85 ) AS col0
----
-49420

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT 17 * + 37 - 79 * CASE + 45 + COUNT( * ) * + CASE 6 WHEN - 61 * 88 + - 85 THEN 73 - COUNT( - 34 ) * - 95 ELSE NULL END WHEN + 90 THEN 23 * - 9 + + 72 / 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 17 * + 37 - 79 * CASE + 45 + COUNT ( * ) * + CASE 6 WHEN - 61 * 88 + - 85 THEN 73 - COUNT ( - 34 ) * - 95 ELSE NULL END WHEN + 90 THEN 23 * - 9 + + 72 / 98 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT - CAST( + + 60 AS SIGNED ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-5552
SELECT - CAST ( + + 60 AS INTEGER ) col1
----
-60

query I rowsort
SELECT - 23 + - 40 AS col0
----
-63

query I rowsort
SELECT ALL 91 * + 40 - + 79
----
3561

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT + COALESCE ( + 89, + 3, + NULLIF ( - 22, - MIN( DISTINCT 80 ) * - 38 ) ) * + 14 AS col1
----
1246

skipif mysql # not compatible
query I rowsort label-5555
SELECT + COALESCE ( + 89, + 3, + NULLIF ( - 22, - MIN ( DISTINCT 80 ) * - 38 ) ) * + 14 AS col1
----
1246

query I rowsort
SELECT DISTINCT 41 * + 47
----
1927

query I rowsort
SELECT ALL 99 * + 49
----
4851

query I rowsort
SELECT 85 * - 85 col2
----
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL 93 - MIN( - 22 )
----
115

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL 93 - MIN ( - 22 )
----
115

query I rowsort
SELECT 10 * + - 94
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT 29 + - 60 + + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5561
SELECT 29 + - 60 + + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT COUNT( * ) * + 35
----
35

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( * ) * + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT - MAX( 19 ) * + ( 98 * + 93 + 54 )
----
-174192

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - MAX ( 19 ) * + ( 98 * + 93 + 54 )
----
-174192

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT + 81 + - NULLIF ( + ( 13 ), 36 ) * CAST( + 44 + + 50 DIV 77 AS SIGNED ) AS col2
----
-491

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT + 81 + - NULLIF ( + ( 13 ), 36 ) * CAST ( + 44 + + 50 / 77 AS INTEGER ) AS col2
----
-491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT 36 * CAST( NULL AS SIGNED ) + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT 36 * CAST ( NULL AS INTEGER ) + + 69
----
NULL

query I rowsort
SELECT ALL + 93 + + 46 * + 42
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + + MIN( ALL + 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5567
SELECT + + MIN ( ALL + 25 ) AS col1
----
25

query I rowsort
SELECT ALL + - 28 + + 44
----
16

query I rowsort
SELECT + ( + - 2 ) - - 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT MAX( - + 77 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-5570
SELECT MAX ( - + 77 ) col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5571
SELECT MAX( DISTINCT - 47 ) DIV - NULLIF ( MIN( 24 ) * + 20, - ( 53 ) ) + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5571
SELECT MAX ( DISTINCT - 47 ) / - NULLIF ( MIN ( 24 ) * + 20, - ( 53 ) ) + COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT - + COUNT( * ) + 16 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - + COUNT ( * ) + 16 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5573
SELECT - CAST( - + 62 AS SIGNED ) + - 63 DIV COALESCE ( 93 + - 92, + 67 * 45, - COUNT( * ), - ( 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5573
SELECT - CAST ( - + 62 AS INTEGER ) + - 63 / COALESCE ( 93 + - 92, + 67 * 45, - COUNT ( * ), - ( 92 ) )
----
-1

query I rowsort
SELECT ALL + 11 + - - 42
----
53

query I rowsort
SELECT ALL - + 65 col2
----
-65

query I rowsort
SELECT DISTINCT + + 86 + - + 85
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - COUNT( * ) * + NULLIF ( + 16, 49 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5577
SELECT - COUNT ( * ) * + NULLIF ( + 16, 49 ) AS col1
----
-16

query I rowsort
SELECT ALL 88 * + 61 AS col0
----
5368

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT - 57 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 57 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL + 50 + COUNT( * ) * 69 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + 50 + COUNT ( * ) * 69 AS col2
----
119

query I rowsort
SELECT ALL - - 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT + CASE + + 57 WHEN COUNT( * ) - + 95 * ( 55 ) THEN - 49 WHEN - 33 THEN + CAST( NULL AS SIGNED ) * + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT + CASE + + 57 WHEN COUNT ( * ) - + 95 * ( 55 ) THEN - 49 WHEN - 33 THEN + CAST ( NULL AS INTEGER ) * + 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL + COUNT( * ) * + 68 + + 42
----
110

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + COUNT ( * ) * + 68 + + 42
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT - CAST( + 25 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5584
SELECT - CAST ( + 25 AS INTEGER ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - COUNT( * ) * + COUNT( 88 ) + + COUNT( * ) * MIN( + 9 * 41 + 75 * 76 ) AS col1
----
6068

skipif mysql # not compatible
query I rowsort label-5585
SELECT - COUNT ( * ) * + COUNT ( 88 ) + + COUNT ( * ) * MIN ( + 9 * 41 + 75 * 76 ) AS col1
----
6068

query I rowsort
SELECT ALL 77 - 71 AS col0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5587
SELECT ALL 29 - - NULLIF ( 87, - CAST( NULL AS DECIMAL ) )
----
116

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL 29 - - NULLIF ( 87, - CAST ( NULL AS REAL ) )
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5588
SELECT 59, COUNT( * ) DIV 64 col2
----
59
0

skipif mysql # not compatible
query II rowsort label-5588
SELECT 59, COUNT ( * ) / 64 col2
----
59
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT 65, COUNT( * ) + - 64 AS col1
----
65
-63

skipif mysql # not compatible
query II rowsort label-5589
SELECT 65, COUNT ( * ) + - 64 AS col1
----
65
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ( + 75 ) * - COUNT( * ) * 43
----
-3225

skipif mysql # not compatible
query I rowsort label-5590
SELECT ( + 75 ) * - COUNT ( * ) * 43
----
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT COUNT( DISTINCT - 50 ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT COUNT ( DISTINCT - 50 ) * 37
----
37

query II rowsort
SELECT - 31, ( - 92 ) AS col1
----
-31
-92

query I rowsort
SELECT ALL COALESCE ( 31, - + ( - 77 ) + + 5, - 89 * - COALESCE ( 87 * - 49, 52 + 27 ) ) * 71
----
2201

query I rowsort
SELECT CASE + - 29 WHEN - 27 THEN 67 + 51 WHEN NULLIF ( - 74, - 35 * + 85 ) THEN NULL WHEN - 78 THEN 42 ELSE NULL END + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT - MAX( - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5595
SELECT - MAX ( - 68 ) AS col2
----
68

query I rowsort
SELECT 4 + + + 60
----
64

query I rowsort
SELECT ( + 12 ) + 66 + - 38 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT 45 * COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT 45 * COUNT ( * ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT ALL + 22 DIV - + 81 * + 82 * 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + 22 / - + 81 * + 82 * 64 AS col1
----
0

query I rowsort
SELECT ALL + ( + 33 ) + - + 21
----
12

query I rowsort
SELECT COALESCE ( + + 57, + 63 ) * 98
----
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT 38 + - 44 * - + SUM( 68 ) AS col1
----
3030

skipif mysql # not compatible
query I rowsort label-5602
SELECT 38 + - 44 * - + SUM ( 68 ) AS col1
----
3030

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT DISTINCT 7 AS col1, 91 - MIN( ALL 75 ) + + 14 col1
----
7
30

skipif mysql # not compatible
query II rowsort label-5603
SELECT DISTINCT 7 AS col1, 91 - MIN ( ALL 75 ) + + 14 col1
----
7
30

query I rowsort
SELECT ALL - 48 + - NULLIF ( 46, AVG ( DISTINCT - 42 ) * 44 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT COUNT( * ) + + ( 2 ) * + 22 col0
----
45

skipif mysql # not compatible
query I rowsort label-5605
SELECT COUNT ( * ) + + ( 2 ) * + 22 col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT 68 * - 76 - - CASE 19 WHEN - ( 5 ) * + CAST( 84 AS SIGNED ) THEN AVG ( 68 ) END + - CAST( 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT 68 * - 76 - - CASE 19 WHEN - ( 5 ) * + CAST ( 84 AS INTEGER ) THEN AVG ( 68 ) END + - CAST ( 35 AS INTEGER )
----
NULL

query I rowsort
SELECT + 96 + - 50 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT 62 DIV COUNT( - - 66 ) + 64 * COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-5608
SELECT 62 / COUNT ( - - 66 ) + 64 * COUNT ( * )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT - CASE - COUNT( * ) WHEN - - COALESCE ( 22, 5 * 4 - 52 ) / + 14 THEN 71 + - COUNT( ALL 13 ) END + 64 / 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT - CASE - COUNT ( * ) WHEN - - COALESCE ( 22, 5 * 4 - 52 ) / + 14 THEN 71 + - COUNT ( ALL 13 ) END + 64 / 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT ALL COUNT( * ) * - 31 * - ( 66 ) + 98 DIV - 69
----
2045

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL COUNT ( * ) * - 31 * - ( 66 ) + 98 / - 69
----
2045

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL - + CASE + ( 2 ) WHEN + 17 * ( 82 ) + + 94 * COUNT( * ) THEN - 23 * 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - + CASE + ( 2 ) WHEN + 17 * ( 82 ) + + 94 * COUNT ( * ) THEN - 23 * 76 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5612
SELECT + 70, 27 - - + 12 + + 69 * CASE + 63 WHEN - 66 THEN NULL WHEN - 63 + + 29 THEN 0 ELSE 43 DIV 61 - - MAX( - 43 + 87 ) * 30 END AS col0
----
70
91119

skipif mysql # not compatible
query II rowsort label-5612
SELECT + 70, 27 - - + 12 + + 69 * CASE + 63 WHEN - 66 THEN NULL WHEN - 63 + + 29 THEN 0 ELSE 43 / 61 - - MAX ( - 43 + 87 ) * 30 END AS col0
----
70
91119

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL + 21 * + NULLIF ( - - COUNT( * ), 79 - + 90 )
----
21

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + 21 * + NULLIF ( - - COUNT ( * ), 79 - + 90 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5614
SELECT DISTINCT - - 20 col1, + 6 * 49 - CASE - COUNT( * ) WHEN - 27 THEN COUNT( - 39 ) * CAST( + 34 AS SIGNED ) END AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5614
SELECT DISTINCT - - 20 col1, + 6 * 49 - CASE - COUNT ( * ) WHEN - 27 THEN COUNT ( - 39 ) * CAST ( + 34 AS INTEGER ) END AS col2
----
20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5615
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT 17 + - 53 + - COUNT( * ) * 95 col0
----
-131

skipif mysql # not compatible
query I rowsort label-5616
SELECT 17 + - 53 + - COUNT ( * ) * 95 col0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT + 12 * + CAST( NULL AS SIGNED ) / - 10 / ( - 26 * + COALESCE ( - 99, + 76 * + 37 ) ) + - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT + 12 * + CAST ( NULL AS INTEGER ) / - 10 / ( - 26 * + COALESCE ( - 99, + 76 * + 37 ) ) + - 50 AS col0
----
NULL

query I rowsort
SELECT 76 * + + 74 + + 92 + + 59
----
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5619
SELECT + - 64 * - 55 - - CAST( NULL AS SIGNED ) + 12 * - 84 + + 20 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT + - 64 * - 55 - - CAST ( NULL AS INTEGER ) + 12 * - 84 + + 20 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + + 9 - + - 97 - - 29 + - 43 * + 13 AS col0
----
-424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5621
SELECT ALL - 66 AS col0, 23 + CAST( NULL AS SIGNED )
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-5621
SELECT ALL - 66 AS col0, 23 + CAST ( NULL AS INTEGER )
----
-66
NULL

query I rowsort
SELECT - 35 + + + 66
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT ALL - 5 DIV - 16 + + COALESCE ( 37, 3 - 36 ) DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - 5 / - 16 + + COALESCE ( 37, 3 - 36 ) / 75
----
0

query I rowsort
SELECT - 49 * + - 65
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL - 61 * + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - 61 * + COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT - 12 + + + 14 + - 32 * - 38 col2
----
1218

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT DISTINCT - 89 DIV + 84
----
-1

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT - 89 / + 84
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT - ( - COUNT( - 23 ) ) + CASE 44 WHEN + ( + CASE + COALESCE ( + COALESCE ( - ( COUNT( * ) ), + 59 ), - COUNT( * ) - 88 ) WHEN - 93 THEN 20 + + 61 WHEN 84 * - MAX( DISTINCT 76 * + 21 ) + 37 THEN + ( 25 ) END ) THEN NULL WHEN COUNT( * ) THEN 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT - ( - COUNT ( - 23 ) ) + CASE 44 WHEN + ( + CASE + COALESCE ( + COALESCE ( - ( COUNT ( * ) ), + 59 ), - COUNT ( * ) - 88 ) WHEN - 93 THEN 20 + + 61 WHEN 84 * - MAX ( DISTINCT 76 * + 21 ) + 37 THEN + ( 25 ) END ) THEN NULL WHEN COUNT ( * ) THEN 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL + COALESCE ( + COUNT( * ), COUNT( * ), + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + COALESCE ( + COUNT ( * ), COUNT ( * ), + 18 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT ALL - 71 * + + 3, COUNT( * ) + 5 + 45 AS col1
----
-213
51

skipif mysql # not compatible
query II rowsort label-5630
SELECT ALL - 71 * + + 3, COUNT ( * ) + 5 + 45 AS col1
----
-213
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + NULLIF ( - - COALESCE ( + CASE 32 WHEN - 58 + 51 THEN 79 * - COUNT( * ) END, 99 + 48 ), + AVG ( + 33 ) ) col2
----
147

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + NULLIF ( - - COALESCE ( + CASE 32 WHEN - 58 + 51 THEN 79 * - COUNT ( * ) END, 99 + 48 ), + AVG ( + 33 ) ) col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - COALESCE ( - + 27, + 83 - - CASE 70 WHEN + 66 + - 35 * COUNT( DISTINCT 12 + 23 * - 51 ) THEN - COUNT( * ) WHEN 37 * - 99 THEN NULL END + + COUNT( * ) ) * 59
----
1593

skipif mysql # not compatible
query I rowsort label-5632
SELECT - COALESCE ( - + 27, + 83 - - CASE 70 WHEN + 66 + - 35 * COUNT ( DISTINCT 12 + 23 * - 51 ) THEN - COUNT ( * ) WHEN 37 * - 99 THEN NULL END + + COUNT ( * ) ) * 59
----
1593

query I rowsort
SELECT ALL + 99 * - - 57 AS col0
----
5643

query I rowsort
SELECT DISTINCT COALESCE ( + 0, + 28 ) AS col1
----
0

query I rowsort
SELECT - 4 * + 94
----
-376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5636
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT ALL COUNT( ALL - + 81 ) + + CAST( - COALESCE ( + NULLIF ( 95, + 24 ), + 60 * ( + 31 * 61 ) + 17 ) AS SIGNED ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL COUNT ( ALL - + 81 ) + + CAST ( - COALESCE ( + NULLIF ( 95, + 24 ), + 60 * ( + 31 * 61 ) + 17 ) AS INTEGER ) col1
----
-94

query I rowsort
SELECT ALL COALESCE ( - 15, 55 * - 35 * + 17 )
----
-15

query II rowsort
SELECT DISTINCT ( 26 ), 66 + + 41 + + 45 AS col0
----
26
152

query I rowsort
SELECT ALL 53 col0
----
53

query I rowsort
SELECT - 38 * + 47
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT NULLIF ( - COUNT( DISTINCT + 75 ), - 81 + 60 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5642
SELECT NULLIF ( - COUNT ( DISTINCT + 75 ), - 81 + 60 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 44 + 8 - + ( + 5 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT NULLIF ( + - 67, COUNT( * ) ) * - 59 AS col2
----
3953

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT NULLIF ( + - 67, COUNT ( * ) ) * - 59 AS col2
----
3953

query I rowsort
SELECT ( + 41 ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT + - 5 * - 84 DIV + + 75
----
5

skipif mysql # not compatible
query I rowsort label-5646
SELECT + - 5 * - 84 / + + 75
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT ALL CAST( - CAST( 85 AS SIGNED ) AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL CAST ( - CAST ( 85 AS INTEGER ) AS INTEGER ) AS col0
----
-85

query I rowsort
SELECT + + 30 - 53 + - + 6 + 18 AS col2
----
-11

query I rowsort
SELECT ALL - 25 * + + 91
----
-2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT + - 55 / ( + 67 ) * - - 29 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT + - 55 / ( + 67 ) * - - 29 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5651
SELECT ALL - - COUNT( - 7 ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL - - COUNT ( - 7 ) / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + COUNT( * ) * + 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5652
SELECT + COUNT ( * ) * + 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + CASE + 68 WHEN - 99 * - 57 * + 45 + - 68 THEN - 41 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT + CASE + 68 WHEN - 99 * - 57 * + 45 + - 68 THEN - 41 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + + 98 col0
----
98

query I rowsort
SELECT + + 85 AS col0
----
85

query I rowsort
SELECT DISTINCT + + 45 col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5657
SELECT ALL 50 * - MIN( - + 25 ) * - - CAST( - 54 AS SIGNED ) * - NULLIF ( 56, - 19 * + 77 ) AS col2
----
3780000

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL 50 * - MIN ( - + 25 ) * - - CAST ( - 54 AS INTEGER ) * - NULLIF ( 56, - 19 * + 77 ) AS col2
----
3780000

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT + COUNT( * ) * - 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5658
SELECT + COUNT ( * ) * - 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - + 98 + - - COUNT( * ) + + MIN( + 60 ) * + 45 * 98
----
264503

skipif mysql # not compatible
query I rowsort label-5659
SELECT - + 98 + - - COUNT ( * ) + + MIN ( + 60 ) * + 45 * 98
----
264503

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL + - MIN( - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + - MIN ( - 6 ) AS col2
----
6

query I rowsort
SELECT + - NULLIF ( - 18, - NULLIF ( 57, + 14 ) ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT 7 * - COUNT( DISTINCT + 99 ) DIV + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT 7 * - COUNT ( DISTINCT + 99 ) / + 23 AS col1
----
0

query I rowsort
SELECT ALL - 59 * 42 + - + 54
----
-2532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT + + MAX( DISTINCT - 12 ) * 88 * + 96 + + CASE CAST( + 39 AS SIGNED ) + + 81 WHEN + 35 THEN COUNT( * ) + - AVG ( 97 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT + + MAX ( DISTINCT - 12 ) * 88 * + 96 + + CASE CAST ( + 39 AS INTEGER ) + + 81 WHEN + 35 THEN COUNT ( * ) + - AVG ( 97 ) END
----
NULL

query I rowsort
SELECT ALL + 48 * + 70 * - 72 AS col0
----
-241920

query I rowsort
SELECT NULLIF ( - 45, + - 12 / - 72 ) col0
----
-45

query I rowsort
SELECT COALESCE ( - 19, - 86 + 84, - COALESCE ( + 90, + 77 * 72 ) + + 64 * 38 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5668
SELECT + CAST( NULL AS SIGNED ) * + 35 - MAX( ALL 51 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT + CAST ( NULL AS INTEGER ) * + 35 - MAX ( ALL 51 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL COUNT( * ) * - MIN( ALL - ( + 60 ) ) + + 28 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL COUNT ( * ) * - MIN ( ALL - ( + 60 ) ) + + 28 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT + 52 * - SUM( ALL - 60 ) AS col1, 47 col2
----
3120
47

skipif mysql # not compatible
query II rowsort label-5670
SELECT + 52 * - SUM ( ALL - 60 ) AS col1, 47 col2
----
3120
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT COALESCE ( - 68, - MIN( + 19 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-5671
SELECT COALESCE ( - 68, - MIN ( + 19 ) )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5672
SELECT ALL - ( 91 ) DIV + 30 + 25 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - ( 91 ) / + 30 + 25 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT - 5 DIV - 66 * - 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-5673
SELECT - 5 / - 66 * - 69 col1
----
0

query I rowsort
SELECT - 10 * + 40 AS col1
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT 28 * 17 * + NULLIF ( - COALESCE ( + 28, + 70 ), + 46 + COUNT( * ) / - 22 ) + + 1
----
-13327

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT 28 * 17 * + NULLIF ( - COALESCE ( + 28, + 70 ), + 46 + COUNT ( * ) / - 22 ) + + 1
----
-13327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL + CASE - 43 WHEN MIN( ALL - 74 ) THEN + 14 ELSE - CASE - 17 WHEN COUNT( * ) THEN COUNT( * ) WHEN AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL END END * 46 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL + CASE - 43 WHEN MIN ( ALL - 74 ) THEN + 14 ELSE - CASE - 17 WHEN COUNT ( * ) THEN COUNT ( * ) WHEN AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL END END * 46 + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL CASE 73 WHEN - + 58 THEN + ( SUM( 66 ) ) WHEN 72 + + NULLIF ( - 78, + 92 * 54 + 42 ) THEN 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL CASE 73 WHEN - + 58 THEN + ( SUM ( 66 ) ) WHEN 72 + + NULLIF ( - 78, + 92 * 54 + 42 ) THEN 11 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5678
SELECT ALL - COUNT( * ) / - 75 * + 45 / - NULLIF ( CAST( NULL AS SIGNED ), 87 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - COUNT ( * ) / - 75 * + 45 / - NULLIF ( CAST ( NULL AS INTEGER ), 87 ) col2
----
NULL

query I rowsort
SELECT ALL 45 * + 19
----
855

query I rowsort
SELECT - 62 + + 26 AS col2
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5681
SELECT ALL - 5 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - 5 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 38 + + - 68 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT - 44 - - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 44 - - + COUNT ( * )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 15 + + 31
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5686
SELECT + 20 - - 61 * SUM( ALL 9 ) DIV - + 71 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5686
SELECT + 20 - - 61 * SUM ( ALL 9 ) / - + 71 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT MIN( DISTINCT - - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5687
SELECT MIN ( DISTINCT - - 7 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT ALL + - 55 - + 38 DIV 59 - - 20 + - 96 * 64 AS col1
----
-6179

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + - 55 - + 38 / 59 - - 20 + - 96 * 64 AS col1
----
-6179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5689
SELECT DISTINCT - - CASE COUNT( * ) WHEN + 39 * - 11 + 66 + 19 THEN NULL WHEN 56 * ( + 96 ) THEN NULL ELSE NULLIF ( - 84, + COUNT( 85 ) + ( + 67 ) / - CAST( NULL AS SIGNED ) ) END - 15
----
-99

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - - CASE COUNT ( * ) WHEN + 39 * - 11 + 66 + 19 THEN NULL WHEN 56 * ( + 96 ) THEN NULL ELSE NULLIF ( - 84, + COUNT ( 85 ) + ( + 67 ) / - CAST ( NULL AS INTEGER ) ) END - 15
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL - 65 - + + COUNT( + + 39 )
----
-66

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - 65 - + + COUNT ( + + 39 )
----
-66

query I rowsort
SELECT - - 59 + - 24 AS col2
----
35

query I rowsort
SELECT DISTINCT CASE + - 51 WHEN + 42 + 24 THEN + 94 * - 33 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + + 85 + + - COUNT( * ) + + COUNT( * ) - + + 28 * COALESCE ( + 66, 70, 30 )
----
-1763

skipif mysql # not compatible
query I rowsort label-5693
SELECT + + 85 + + - COUNT ( * ) + + COUNT ( * ) - + + 28 * COALESCE ( + 66, 70, 30 )
----
-1763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5694
SELECT + COALESCE ( - ( - 66 ), 90 DIV - COUNT( * ) ) * - 16
----
-1056

skipif mysql # not compatible
query I rowsort label-5694
SELECT + COALESCE ( - ( - 66 ), 90 / - COUNT ( * ) ) * - 16
----
-1056

query I rowsort
SELECT DISTINCT - 71 - - 36
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + ( - NULLIF ( - - SUM( + - 18 ), + COUNT( * ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-5696
SELECT + ( - NULLIF ( - - SUM ( + - 18 ), + COUNT ( * ) ) )
----
18

query I rowsort
SELECT ALL + 38 * - 38
----
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT 46 * + MAX( DISTINCT - NULLIF ( + 13, 92 ) )
----
-598

skipif mysql # not compatible
query I rowsort label-5698
SELECT 46 * + MAX ( DISTINCT - NULLIF ( + 13, 92 ) )
----
-598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT + 73 * + CAST( + 30 AS SIGNED ) * - NULLIF ( + - 44, 29 ) + + 14 + + 12
----
96386

skipif mysql # not compatible
query I rowsort label-5699
SELECT + 73 * + CAST ( + 30 AS INTEGER ) * - NULLIF ( + - 44, 29 ) + + 14 + + 12
----
96386

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ALL 43 * COALESCE ( 37, + 44 * + SUM( - 12 ) * ( + SUM( DISTINCT + 89 ) ) + + 58 + 20 ) AS col2
----
1591

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL 43 * COALESCE ( 37, + 44 * + SUM ( - 12 ) * ( + SUM ( DISTINCT + 89 ) ) + + 58 + 20 ) AS col2
----
1591

query I rowsort
SELECT ALL - - ( - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT - 26 - + 80 + + 22 AS col2, 75 + + SUM( + ( - 43 ) ) AS col2
----
-84
32

skipif mysql # not compatible
query II rowsort label-5702
SELECT - 26 - + 80 + + 22 AS col2, 75 + + SUM ( + ( - 43 ) ) AS col2
----
-84
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT DISTINCT 96 * - ( + 40 ) * + CASE - 58 WHEN 0 THEN NULL WHEN 97 + + 2 THEN NULL ELSE - 28 END + CAST( + 18 AS SIGNED ) AS col2
----
107538

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT 96 * - ( + 40 ) * + CASE - 58 WHEN 0 THEN NULL WHEN 97 + + 2 THEN NULL ELSE - 28 END + CAST ( + 18 AS INTEGER ) AS col2
----
107538

query I rowsort
SELECT DISTINCT - 19 * 74 * 81
----
-113886

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT - COUNT( 29 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5705
SELECT - COUNT ( 29 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL - - CASE WHEN NOT ( - COALESCE ( - 33, + NULLIF ( CAST( COALESCE ( + 55, + 25 + 24 ) AS SIGNED ), - 42 ), + ( 23 ) ) ) <> ( + 53 ) THEN COUNT( * ) / - 32 - - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - - CASE WHEN NOT ( - COALESCE ( - 33, + NULLIF ( CAST ( COALESCE ( + 55, + 25 + 24 ) AS INTEGER ), - 42 ), + ( 23 ) ) ) <> ( + 53 ) THEN COUNT ( * ) / - 32 - - 58 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT 15 * + - COUNT( * ) + - 83 + + 47 + + 50 - + COUNT( * ) * CAST( NULL AS SIGNED ) / - SUM( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT 15 * + - COUNT ( * ) + - 83 + + 47 + + 50 - + COUNT ( * ) * CAST ( NULL AS INTEGER ) / - SUM ( 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL 70 + MAX( DISTINCT + 14 ) + - 18 + + - 90 * - - 48 * NULLIF ( + 79 - 1, ( - 34 ) )
----
-336894

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL 70 + MAX ( DISTINCT + 14 ) + - 18 + + - 90 * - - 48 * NULLIF ( + 79 - 1, ( - 34 ) )
----
-336894

query I rowsort
SELECT 75 + - 77 - - ( 31 ) * + 11 * 59 - 32 * 58
----
18261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT NULLIF ( + 23, - 8 ) DIV - + 34 * - + 73 + + COUNT( * ) * + ( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-5710
SELECT NULLIF ( + 23, - 8 ) / - + 34 * - + 73 + + COUNT ( * ) * + ( - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT + 68, COUNT( * ) + + COALESCE ( + - 11, - 60 + - NULLIF ( - 90, 95 ) + 0 ) AS col1
----
68
-10

skipif mysql # not compatible
query II rowsort label-5711
SELECT + 68, COUNT ( * ) + + COALESCE ( + - 11, - 60 + - NULLIF ( - 90, 95 ) + 0 ) AS col1
----
68
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT ALL - 68 AS col1, - 40 * + COUNT( * ) + 48 + 46
----
-68
54

skipif mysql # not compatible
query II rowsort label-5712
SELECT ALL - 68 AS col1, - 40 * + COUNT ( * ) + 48 + 46
----
-68
54

query II rowsort
SELECT 75 AS col2, - 95 + - 23 AS col2
----
75
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT ALL - CAST( NULL AS SIGNED ) + - COALESCE ( - ( - 33 ), + + 44, - - COUNT( DISTINCT 24 ) - - 44 ) + + 14 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - CAST ( NULL AS INTEGER ) + - COALESCE ( - ( - 33 ), + + 44, - - COUNT ( DISTINCT 24 ) - - 44 ) + + 14 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 4 * - + 27
----
-108

query I rowsort
SELECT DISTINCT - 27 * NULLIF ( + + CASE - + 24 WHEN + 99 THEN - 99 ELSE NULL END, - ( 13 ) ) * 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT DISTINCT 22 + 30 * - 59 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT 22 + 30 * - 59 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + + 1, - - 29 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT - COUNT( DISTINCT 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - COUNT ( DISTINCT 59 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL 57 + + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL 57 + + COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT DISTINCT 89 AS col0, + MIN( + 62 )
----
89
62

skipif mysql # not compatible
query II rowsort label-5721
SELECT DISTINCT 89 AS col0, + MIN ( + 62 )
----
89
62

query II rowsort
SELECT 13 AS col0, + 86
----
13
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( - 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT ALL 46 AS col1, - COUNT( * )
----
46
-1

skipif mysql # not compatible
query II rowsort label-5724
SELECT ALL 46 AS col1, - COUNT ( * )
----
46
-1

query I rowsort
SELECT 64 + + 28
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5726
SELECT 13 DIV + - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5726
SELECT 13 / + - COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL + 77 * + - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL + 77 * + - COUNT ( * ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5728
SELECT ALL - - 6 * + + 79, + 38 * - CASE - + 66 WHEN - 5 THEN SUM( 12 ) + + 21 ELSE 7 + - CAST( 14 AS SIGNED ) END AS col2
----
474
266

skipif mysql # not compatible
query II rowsort label-5728
SELECT ALL - - 6 * + + 79, + 38 * - CASE - + 66 WHEN - 5 THEN SUM ( 12 ) + + 21 ELSE 7 + - CAST ( 14 AS INTEGER ) END AS col2
----
474
266

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT - + CASE + 0 WHEN + 79 / + 22 * + COALESCE ( + MAX( DISTINCT - 60 ), - 96, + MIN( - 12 ) ) + - 14 + - 22 THEN NULL WHEN COUNT( * ) THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT - + CASE + 0 WHEN + 79 / + 22 * + COALESCE ( + MAX ( DISTINCT - 60 ), - 96, + MIN ( - 12 ) ) + - 14 + - 22 THEN NULL WHEN COUNT ( * ) THEN - 32 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5730
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) DIV + 13
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5730
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, COUNT ( * ) / + 13
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL + COUNT( * ) * 26 * 16 col0
----
416

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + COUNT ( * ) * 26 * 16 col0
----
416

query I rowsort
SELECT 92 - - 85 + CASE - + 38 WHEN - + 38 / + 63 THEN NULL WHEN 71 THEN NULL ELSE 50 * + 7 END AS col1
----
527

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT 36 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT 36 / 70 AS col2
----
0

query I rowsort
SELECT - ( + ( 3 ) ) col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT - 27 col1, + ( - SUM( ALL + ( + ( - 11 ) ) ) ) col1
----
-27
11

skipif mysql # not compatible
query II rowsort label-5735
SELECT - 27 col1, + ( - SUM ( ALL + ( + ( - 11 ) ) ) ) col1
----
-27
11

query I rowsort
SELECT - ( 0 ) AS col1
----
0

query II rowsort
SELECT ALL + 17, - 19 AS col2
----
17
-19

query II rowsort
SELECT + 11 AS col0, 81 AS col2
----
11
81

query II rowsort
SELECT ALL - 81 * 70 AS col2, - 64
----
-5670
-64

query I rowsort
SELECT - 15 - - - 82 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT ALL - MIN( - + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - MIN ( - + 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT + COUNT( * ) + - 52 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5742
SELECT + COUNT ( * ) + - 52 AS col1
----
-51

query I rowsort
SELECT ALL 68 * - ( ( - - 98 ) ) AS col1
----
-6664

query II rowsort
SELECT 84 * + 2 AS col1, 63 AS col2
----
168
63

query I rowsort
SELECT ALL - - 22 + 85 * - 66 AS col0
----
-5588

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT ALL - - 60 + - + 66 + - 49 DIV 2
----
-30

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - - 60 + - + 66 + - 49 / 2
----
-30

query I rowsort
SELECT + ( + 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5748
SELECT ALL COUNT( * ) * - 59 AS col1, ( + - 94 )
----
-59
-94

skipif mysql # not compatible
query II rowsort label-5748
SELECT ALL COUNT ( * ) * - 59 AS col1, ( + - 94 )
----
-59
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5749
SELECT COUNT( * ) * + + CASE - - 64 WHEN 75 THEN NULL WHEN - - 81 * + 94 * - + 85 / + 53 THEN MIN( CAST( 38 AS DECIMAL ) ) ELSE NULL END * 16 - + COUNT( * ) / 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT COUNT ( * ) * + + CASE - - 64 WHEN 75 THEN NULL WHEN - - 81 * + 94 * - + 85 / + 53 THEN MIN ( CAST ( 38 AS REAL ) ) ELSE NULL END * 16 - + COUNT ( * ) / 28 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL 17 + + 79 + + COUNT( DISTINCT - 15 ) * + 17 - + 34 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL 17 + + 79 + + COUNT ( DISTINCT - 15 ) * + 17 - + 34 AS col1
----
79

query I rowsort
SELECT ALL + NULLIF ( 96, 22 ) * 52 + + + 36 AS col0
----
5028

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT COUNT( * ) * + + COUNT( * ) * + + 1 * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-5752
SELECT COUNT ( * ) * + + COUNT ( * ) * + + 1 * - 24
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5753
SELECT DISTINCT - CAST( 94 AS SIGNED ) AS col0, + 36
----
-94
36

skipif mysql # not compatible
query II rowsort label-5753
SELECT DISTINCT - CAST ( 94 AS INTEGER ) AS col0, + 36
----
-94
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL 81 + 85 * 10 * + 69 + MIN( DISTINCT + 42 ) AS col2
----
58773

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL 81 + 85 * 10 * + 69 + MIN ( DISTINCT + 42 ) AS col2
----
58773

query I rowsort
SELECT ALL ( 60 ) + 57 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT - CASE - - ( + 67 ) WHEN ( - + 16 ) + - - COUNT( * ) + + 25 * 57 * 57 THEN NULL WHEN 34 - 17 THEN NULL WHEN ( + 61 ) + 92 THEN CASE 39 WHEN 55 * 60 THEN - 1 * MAX( ALL 81 ) + + 15 * 68 END END * 90 - COUNT( * ) / - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT - CASE - - ( + 67 ) WHEN ( - + 16 ) + - - COUNT ( * ) + + 25 * 57 * 57 THEN NULL WHEN 34 - 17 THEN NULL WHEN ( + 61 ) + 92 THEN CASE 39 WHEN 55 * 60 THEN - 1 * MAX ( ALL 81 ) + + 15 * 68 END END * 90 - COUNT ( * ) / - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT DISTINCT ( 43 ) DIV - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT ( 43 ) / - COUNT ( * )
----
-43

query I rowsort
SELECT 19 - + 3 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + SUM( + 77 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-5759
SELECT + SUM ( + 77 ) col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5760
SELECT ALL 3 * 33 DIV + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL 3 * 33 / + COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT COUNT( * ) - + 63 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5761
SELECT COUNT ( * ) - + 63 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT NULLIF ( - ( + 56 ), - MAX( ALL - 14 ) ) * + 15 - - - 47 col2
----
-887

skipif mysql # not compatible
query I rowsort label-5762
SELECT NULLIF ( - ( + 56 ), - MAX ( ALL - 14 ) ) * + 15 - - - 47 col2
----
-887

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL + + 92 * COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + + 92 * COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - COUNT( * ) * + + NULLIF ( + 25, - + 13 + - 0 - - 39 / - 81 * - 35 ) + 89 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - COUNT ( * ) * + + NULLIF ( + 25, - + 13 + - 0 - - 39 / - 81 * - 35 ) + 89 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5765
SELECT COUNT( + - CAST( + - 17 AS SIGNED ) ) * - 69 + + COUNT( * ) - - 4 DIV - 29 + + 36 * + 46
----
1588

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( + - CAST ( + - 17 AS INTEGER ) ) * - 69 + + COUNT ( * ) - - 4 / - 29 + + 36 * + 46
----
1588

query I rowsort
SELECT ( - - 22 ) + + + 76 + 4
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-5767
SELECT + ( + COUNT( * ) ) AS col1, 70 * + 76 - + 43
----
1
5277

skipif mysql # not compatible
query II rowsort label-5767
SELECT + ( + COUNT ( * ) ) AS col1, 70 * + 76 - + 43
----
1
5277

query I rowsort
SELECT 20 * 25
----
500

query I rowsort
SELECT ALL 55 col2
----
55

query I rowsort
SELECT + 59 * + 18 col1
----
1062

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT + + COUNT( * ) + - 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5771
SELECT + + COUNT ( * ) + - 33 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT ALL CAST( + - 68 AS SIGNED ) + + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL CAST ( + - 68 AS INTEGER ) + + COUNT ( * ) AS col0
----
-67

query I rowsort
SELECT DISTINCT 73 + 33
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL + + COUNT( * ) + + 55 + + 6 * - 97 * 73 * + + 83
----
-3526282

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + + COUNT ( * ) + + 55 + + 6 * - 97 * 73 * + + 83
----
-3526282

query I rowsort
SELECT - 13 + 23 + + + 59 * - - 31 AS col0
----
1839

onlyif mysql # DIV for integer division: 
query II rowsort label-5776
SELECT ALL - 86 + - 86 AS col1, - 2 + + - 86 DIV + - 78 + - 56 col2
----
-172
-57

skipif mysql # not compatible
query II rowsort label-5776
SELECT ALL - 86 + - 86 AS col1, - 2 + + - 86 / + - 78 + - 56 col2
----
-172
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT DISTINCT + 28 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT + 28 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 6 * NULLIF ( - 5, - 56 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - - 0 * + 6 * + + ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT - - 0 * + 6 * + + ( COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT - - NULLIF ( - - COUNT( * ), + 46 ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-5780
SELECT - - NULLIF ( - - COUNT ( * ), + 46 ) * + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL + 13 * - 69 + + MIN( - 49 ) + - 28 AS col2
----
-974

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + 13 * - 69 + + MIN ( - 49 ) + - 28 AS col2
----
-974

query I rowsort
SELECT - 58 * - 16 AS col0
----
928

query II rowsort
SELECT ALL + 94 AS col2, + 53 - - 6
----
94
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) - - - 11 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - - 11 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT ALL + 68, + COUNT( * ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-5785
SELECT ALL + 68, + COUNT ( * ) AS col0
----
68
1

query I rowsort
SELECT NULLIF ( - 62, + - 24 ) AS col2
----
-62

query I rowsort
SELECT - 22 * + ( + 1 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - COUNT( * ) * + ( - COUNT( * ) ) + - - SUM( + 85 ) + - 30
----
56

skipif mysql # not compatible
query I rowsort label-5788
SELECT - COUNT ( * ) * + ( - COUNT ( * ) ) + - - SUM ( + 85 ) + - 30
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT + NULLIF ( - 74, + 63 * + 37 - CASE + 94 WHEN - CAST( NULL AS SIGNED ) THEN + ( + ( 67 ) ) / 94 WHEN + 11 THEN - 75 + 28 END ) - - ( + COUNT( + ( 31 ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-5789
SELECT + NULLIF ( - 74, + 63 * + 37 - CASE + 94 WHEN - CAST ( NULL AS INTEGER ) THEN + ( + ( 67 ) ) / 94 WHEN + 11 THEN - 75 + 28 END ) - - ( + COUNT ( + ( 31 ) ) )
----
-73

query I rowsort
SELECT 73 * 32 + - + 96 AS col1
----
2240

query I rowsort
SELECT ALL 3 * + 3
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT + COUNT( * ), - COUNT( * ) * + 10 AS col1
----
1
-10

skipif mysql # not compatible
query II rowsort label-5792
SELECT + COUNT ( * ), - COUNT ( * ) * + 10 AS col1
----
1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL + SUM( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + SUM ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5794
SELECT DISTINCT + 25 AS col1, NULLIF ( - MIN( + 98 ), 61 ) AS col0
----
25
-98

skipif mysql # not compatible
query II rowsort label-5794
SELECT DISTINCT + 25 AS col1, NULLIF ( - MIN ( + 98 ), 61 ) AS col0
----
25
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT ALL + 28 AS col1, + COUNT( * )
----
28
1

skipif mysql # not compatible
query II rowsort label-5795
SELECT ALL + 28 AS col1, + COUNT ( * )
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT COUNT( * ) * + - 99 + + 24
----
-75

skipif mysql # not compatible
query I rowsort label-5796
SELECT COUNT ( * ) * + - 99 + + 24
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT - - 73 AS col0, + 39 - + COUNT( * ) + 74 * - + 5 AS col1
----
73
-332

skipif mysql # not compatible
query II rowsort label-5797
SELECT - - 73 AS col0, + 39 - + COUNT ( * ) + 74 * - + 5 AS col1
----
73
-332

query III rowsort
SELECT DISTINCT - 16 AS col1, + NULLIF ( + + 67, - 21 ), - 69 col0
----
-16
67
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT ALL 64 DIV 7 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL 64 / 7 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - ( + COUNT( * ) ) * + 52
----
-52

skipif mysql # not compatible
query I rowsort label-5800
SELECT - ( + COUNT ( * ) ) * + 52
----
-52

query I rowsort
SELECT ALL - 51 + + + 26 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + COALESCE ( 44, + SUM( DISTINCT + 30 ) )
----
44

skipif mysql # not compatible
query I rowsort label-5802
SELECT + COALESCE ( 44, + SUM ( DISTINCT + 30 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT DISTINCT NULLIF ( COALESCE ( 3, - + CASE - 72 WHEN - + 13 + 62 THEN NULL WHEN + 65 THEN NULL WHEN + 42 * + 61 THEN + 72 + + 21 ELSE NULL END ), - 34 * SUM( 45 ) ) + 30 * 67 AS col0
----
2013

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT NULLIF ( COALESCE ( 3, - + CASE - 72 WHEN - + 13 + 62 THEN NULL WHEN + 65 THEN NULL WHEN + 42 * + 61 THEN + 72 + + 21 ELSE NULL END ), - 34 * SUM ( 45 ) ) + 30 * 67 AS col0
----
2013

query I rowsort
SELECT ALL - 1 + + + 0 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5805
SELECT - COUNT( * ) col2, - MAX( DISTINCT - - 21 ) * + 81 * - 84 * CASE + 95 WHEN - + 20 + + 17 THEN 43 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5805
SELECT - COUNT ( * ) col2, - MAX ( DISTINCT - - 21 ) * + 81 * - 84 * CASE + 95 WHEN - + 20 + + 17 THEN 43 END
----
-1
NULL

query I rowsort
SELECT ALL - 90 + - - 16 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT DISTINCT + COUNT( * ) * - 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT + COUNT ( * ) * - 5 AS col2
----
-5

query I rowsort
SELECT + 50 - - 11 + - 14 AS col1
----
47

query II rowsort
SELECT - 7 AS col1, 33 * 56 + + - 79 AS col1
----
-7
1769

query I rowsort
SELECT ALL 89 * + - 79 AS col0
----
-7031

query I rowsort
SELECT ALL 94 + + 90 * 14
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT + MAX( ALL - 31 ) - - COUNT( * ) + + - 76 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-5812
SELECT + MAX ( ALL - 31 ) - - COUNT ( * ) + + - 76 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-5813
SELECT 25 AS col0, - COUNT( * ) col1
----
25
-1

skipif mysql # not compatible
query II rowsort label-5813
SELECT 25 AS col0, - COUNT ( * ) col1
----
25
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - NULLIF ( + - 40, + - SUM( - + 57 ) )
----
40

skipif mysql # not compatible
query I rowsort label-5814
SELECT - NULLIF ( + - 40, + - SUM ( - + 57 ) )
----
40

query I rowsort
SELECT ALL + ( + 81 ) + ( + 49 )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT + 99 + + ( - - COUNT( * ) )
----
100

skipif mysql # not compatible
query I rowsort label-5816
SELECT + 99 + + ( - - COUNT ( * ) )
----
100

query I rowsort
SELECT ALL - ( + + 88 ) * + 36 col0
----
-3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5818
SELECT - COUNT( ALL ( - + 15 ) ) DIV - + 10 + 73 + + - COUNT( * ) - + - 33 * - 12 * - 97 - 77 AS col0
----
38407

skipif mysql # not compatible
query I rowsort label-5818
SELECT - COUNT ( ALL ( - + 15 ) ) / - + 10 + 73 + + - COUNT ( * ) - + - 33 * - 12 * - 97 - 77 AS col0
----
38407

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT 5 DIV + + 91 + + - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5819
SELECT 5 / + + 91 + + - 60 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT CAST( MIN( DISTINCT 49 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-5820
SELECT CAST ( MIN ( DISTINCT 49 ) AS INTEGER )
----
49

query II rowsort
SELECT - NULLIF ( + + 46, 39 ) + + 86 AS col2, + 14 * 28 col0
----
40
392

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL + 5 * + NULLIF ( - 41, COUNT( * ) * + + 18 * 50 ) AS col0
----
-205

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + 5 * + NULLIF ( - 41, COUNT ( * ) * + + 18 * 50 ) AS col0
----
-205

query I rowsort
SELECT DISTINCT ( - - 94 ) * + 22 AS col0
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - MIN( ALL + + 60 ) * + 93
----
-5580

skipif mysql # not compatible
query I rowsort label-5824
SELECT - MIN ( ALL + + 60 ) * + 93
----
-5580

query I rowsort
SELECT ( 57 )
----
57

query I rowsort
SELECT ALL + COALESCE ( + 60, 22 + + ( + + 83 ) ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5827
SELECT - CAST( NULL AS SIGNED ) * - + 78 AS col1, ( - 20 ) - - + COUNT( - 15 ) + + COUNT( * ) * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5827
SELECT - CAST ( NULL AS INTEGER ) * - + 78 AS col1, ( - 20 ) - - + COUNT ( - 15 ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL
NULL

query I rowsort
SELECT 42 * 95 - 52 * - - ( + 65 )
----
610

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT ALL + 46 + - 38 AS col1, + COUNT( ALL + 28 ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL + 46 + - 38 AS col1, + COUNT ( ALL + 28 ) AS col0
----
8
1

query I rowsort
SELECT - 18 + + 0 col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5831
SELECT CASE - COUNT( * ) WHEN + + COUNT( * ) + + + 86 THEN + + 49 * - + 44 * + 2 ELSE NULL END * + 82 * + COUNT( * ) + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) / + CASE + CASE - 70 WHEN CASE + ( 97 ) WHEN 93 + - CAST( + 85 AS SIGNED ) * COUNT( * ) THEN NULL WHEN 55 * 39 THEN 51 WHEN 4 THEN 96 ELSE NULL END THEN COUNT( * ) ELSE NULL END WHEN 23 * + CASE - 29 WHEN + COUNT( * ) THEN - MAX( DISTINCT - 14 ) * 93 END + CASE + 59 + + 9 WHEN COUNT( * ) + 91 / 89 THEN + 60 WHEN 51 + + 77 THEN NULL END * 22 THEN - 23 WHEN 41 * - SUM( - 27 * 79 ) THEN + 91 * - 43 - 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT CASE - COUNT ( * ) WHEN + + COUNT ( * ) + + + 86 THEN + + 49 * - + 44 * + 2 ELSE NULL END * + 82 * + COUNT ( * ) + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) / + CASE + CASE - 70 WHEN CASE + ( 97 ) WHEN 93 + - CAST ( + 85 AS INTEGER ) * COUNT ( * ) THEN NULL WHEN 55 * 39 THEN 51 WHEN 4 THEN 96 ELSE NULL END THEN COUNT ( * ) ELSE NULL END WHEN 23 * + CASE - 29 WHEN + COUNT ( * ) THEN - MAX ( DISTINCT - 14 ) * 93 END + CASE + 59 + + 9 WHEN COUNT ( * ) + 91 / 89 THEN + 60 WHEN 51 + + 77 THEN NULL END * 22 THEN - 23 WHEN 41 * - SUM ( - 27 * 79 ) THEN + 91 * - 43 - 9 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT + 1 * - - CASE - CASE 6 WHEN - 54 THEN NULL WHEN + 59 THEN NULL WHEN + + 26 / + - CAST( NULL AS SIGNED ) THEN 74 END WHEN 86 THEN 82 + MAX( 19 ) WHEN 81 THEN 15 ELSE NULL END * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 1 * - - CASE - CASE 6 WHEN - 54 THEN NULL WHEN + 59 THEN NULL WHEN + + 26 / + - CAST ( NULL AS INTEGER ) THEN 74 END WHEN 86 THEN 82 + MAX ( 19 ) WHEN 81 THEN 15 ELSE NULL END * 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ALL - CASE - 60 WHEN 6 THEN - + 87 WHEN - COUNT( - - 18 ) THEN - 90 END * 26 + - - SUM( DISTINCT - ( - 26 ) ) * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL - CASE - 60 WHEN 6 THEN - + 87 WHEN - COUNT ( - - 18 ) THEN - 90 END * 26 + - - SUM ( DISTINCT - ( - 26 ) ) * + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL + + 28 + - + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL + + 28 + - + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT ALL - ( + 70 ) + 89
----
19

query I rowsort
SELECT 99 * + 93 - - 44 + 40
----
9291

query I rowsort
SELECT ALL - 94 * - 42 + + + 25
----
3973

query I rowsort
SELECT ALL + 30 + + 34
----
64

query I rowsort
SELECT 59 + 9 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT 39 + - 18 - + COUNT( + + 93 ) - - 45
----
65

skipif mysql # not compatible
query I rowsort label-5840
SELECT 39 + - 18 - + COUNT ( + + 93 ) - - 45
----
65

query I rowsort
SELECT + 17 - + 5 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT COUNT( * ) - + 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5842
SELECT COUNT ( * ) - + 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL + COUNT( * ) - - + ( + + 17 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + COUNT ( * ) - - + ( + + 17 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL COUNT( * ) * - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL COUNT ( * ) * - 67 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT COUNT( * ) + + + MAX( + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-5845
SELECT COUNT ( * ) + + + MAX ( + 99 )
----
100

query I rowsort
SELECT DISTINCT 29 * + - 8
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT 32 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-5847
SELECT 32 + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT 3 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5848
SELECT 3 * - COUNT ( * )
----
-3

query I rowsort
SELECT ALL 58 * 10
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT COUNT( * ) + - - 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5850
SELECT COUNT ( * ) + - - 93 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT ( - 14 ) - - + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT ( - 14 ) - - + COUNT ( * )
----
-13

query II rowsort
SELECT DISTINCT - 77 col2, + 11 * + 60
----
-77
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5853
SELECT 48 DIV - NULLIF ( + - 38, + 50 * 59 + + - 72 DIV + - 92 * 97 DIV COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5853
SELECT 48 / - NULLIF ( + - 38, + 50 * 59 + + - 72 / + - 92 * 97 / COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - 46 / + CASE 99 WHEN ( 9 ) THEN NULL WHEN 38 - + 65 THEN 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5855
SELECT NULLIF ( + COUNT( * ), + 47 ) * 65 + - 1, - 11 AS col0
----
64
-11

skipif mysql # not compatible
query II rowsort label-5855
SELECT NULLIF ( + COUNT ( * ), + 47 ) * 65 + - 1, - 11 AS col0
----
64
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT + COUNT( * ) DIV - 78 * - 37 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5856
SELECT + COUNT ( * ) / - 78 * - 37 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT - ( + 89 )
----
-89

query I rowsort
SELECT ALL 44 + 20 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT COUNT( * ) + + + SUM( DISTINCT + - 15 ) + 20
----
6

skipif mysql # not compatible
query I rowsort label-5859
SELECT COUNT ( * ) + + + SUM ( DISTINCT + - 15 ) + 20
----
6

query I rowsort
SELECT 83 * + ( - 63 )
----
-5229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT ALL 20 + 37 + + - COALESCE ( 42, - + 34, - 38 + 96, + 17 + 86 + - + 28 + + 38 * - NULLIF ( COUNT( * ) * - 17, - 52 ) * CAST( - 40 + 9 AS SIGNED ) ) * 53
----
-2169

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL 20 + 37 + + - COALESCE ( 42, - + 34, - 38 + 96, + 17 + 86 + - + 28 + + 38 * - NULLIF ( COUNT ( * ) * - 17, - 52 ) * CAST ( - 40 + 9 AS INTEGER ) ) * 53
----
-2169

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT + 69 * - 47 * + 43 + COUNT( * ) col2
----
-139448

skipif mysql # not compatible
query I rowsort label-5862
SELECT + 69 * - 47 * + 43 + COUNT ( * ) col2
----
-139448

query I rowsort
SELECT 89 - - 99 + + - 93 * - 86
----
8186

query I rowsort
SELECT DISTINCT - 74 * - 96
----
7104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT + CAST( - + 73 AS SIGNED ) * COUNT( * ) + - NULLIF ( - 91, 98 )
----
18

skipif mysql # not compatible
query I rowsort label-5865
SELECT + CAST ( - + 73 AS INTEGER ) * COUNT ( * ) + - NULLIF ( - 91, 98 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT DISTINCT + CASE COUNT( * ) WHEN + COALESCE ( - CAST( + 98 AS SIGNED ), 17 + + 88 * + 54 - + 53 ) THEN + 55 * 80 WHEN + 86 * 87 THEN - 78 END + + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + CASE COUNT ( * ) WHEN + COALESCE ( - CAST ( + 98 AS INTEGER ), 17 + + 88 * + 54 - + 53 ) THEN + 55 * 80 WHEN + 86 * 87 THEN - 78 END + + 65 col2
----
NULL

query I rowsort
SELECT DISTINCT - 56 + + - 33
----
-89

query I rowsort
SELECT + + CASE + 12 WHEN 55 THEN + - 44 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL + - MAX( 52 ) + + 57 + + 87 * ( + COUNT( * ) ) * + - COUNT( * ) + COUNT( * ) + 62 + + + 38 * + COUNT( * ) * + COALESCE ( - 13, + COUNT( * ) ) * - 63 * 56 AS col2
----
1742813

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL + - MAX ( 52 ) + + 57 + + 87 * ( + COUNT ( * ) ) * + - COUNT ( * ) + COUNT ( * ) + 62 + + + 38 * + COUNT ( * ) * + COALESCE ( - 13, + COUNT ( * ) ) * - 63 * 56 AS col2
----
1742813

query I rowsort
SELECT 82 + + 85
----
167

query I rowsort
SELECT ALL 22 + 14
----
36

query I rowsort
SELECT 54 * + 65 + + 13
----
3523

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + + CASE + COUNT( * ) WHEN - 89 THEN NULL ELSE - 12 * - + 38 + + 95 END AS col1
----
551

skipif mysql # not compatible
query I rowsort label-5873
SELECT + + CASE + COUNT ( * ) WHEN - 89 THEN NULL ELSE - 12 * - + 38 + + 95 END AS col1
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL + - COUNT( * ) + + + 30 + + - 21 col1
----
8

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + - COUNT ( * ) + + + 30 + + - 21 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + 32 * - MIN( DISTINCT - - 29 ) * - 47 AS col0
----
43616

skipif mysql # not compatible
query I rowsort label-5875
SELECT + 32 * - MIN ( DISTINCT - - 29 ) * - 47 AS col0
----
43616

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + 15 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-5876
SELECT + 15 + + COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + COUNT( * ) - + COUNT( * ) + + 35
----
35

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + COUNT ( * ) - + COUNT ( * ) + + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT - NULLIF ( - 58, - COUNT( * ) * 70 * - 76 * + 5 ) * 78
----
4524

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT - NULLIF ( - 58, - COUNT ( * ) * 70 * - 76 * + 5 ) * 78
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT MIN( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT MIN ( DISTINCT - 0 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT ALL - - 21 DIV + - 22
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - - 21 / + - 22
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5881
SELECT NULLIF ( + 42, - 27 * - 95 * + + 69 * - 86 + - 50 + - + 44 * + - COALESCE ( + + COUNT( * ), - 52 / - 85 + 80, + 70 * 18, - 96 ) + + NULLIF ( 39 + 60 * + CAST( 46 AS SIGNED ), - 41 ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5881
SELECT NULLIF ( + 42, - 27 * - 95 * + + 69 * - 86 + - 50 + - + 44 * + - COALESCE ( + + COUNT ( * ), - 52 / - 85 + 80, + 70 * 18, - 96 ) + + NULLIF ( 39 + 60 * + CAST ( 46 AS INTEGER ), - 41 ) ) AS col0
----
42

query I rowsort
SELECT DISTINCT - - NULLIF ( + ( + - 62 ), - 48 ) * + 40
----
-2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5883
SELECT 3 DIV 12 col1, + 52 * - COUNT( * )
----
0
-52

skipif mysql # not compatible
query II rowsort label-5883
SELECT 3 / 12 col1, + 52 * - COUNT ( * )
----
0
-52

query I rowsort
SELECT 39 * - - 57
----
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL COUNT( DISTINCT ( 4 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL COUNT ( DISTINCT ( 4 ) )
----
1

query I rowsort
SELECT 22 - - + ( + 64 )
----
86

query I rowsort
SELECT 29 * - 24
----
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT CASE 1 WHEN + 17 + 10 + - + ( + + 28 ) + 67 THEN - 53 ELSE - - 11 DIV - - 27 END + ( + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5888
SELECT CASE 1 WHEN + 17 + 10 + - + ( + + 28 ) + 67 THEN - 53 ELSE - - 11 / - - 27 END + ( + 37 ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5889
SELECT - COUNT( * ) AS col2, - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5889
SELECT - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL SUM( DISTINCT - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL SUM ( DISTINCT - + 27 )
----
-27

query I rowsort
SELECT 57 - - 5
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT 64 * - - COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5892
SELECT 64 * - - COUNT ( * ) AS col1
----
64

query I rowsort
SELECT COALESCE ( 59, - 97 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT + SUM( - - ( 12 ) )
----
12

skipif mysql # not compatible
query I rowsort label-5894
SELECT + SUM ( - - ( 12 ) )
----
12

query I rowsort
SELECT ALL 78 * + + 66 + - 75
----
5073

onlyif mysql # aggregate syntax: 
query II rowsort label-5896
SELECT + 88, COUNT( * ) AS col0
----
88
1

skipif mysql # not compatible
query II rowsort label-5896
SELECT + 88, COUNT ( * ) AS col0
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT NULLIF ( + - 31, + - MAX( ALL 88 ) / + - CASE ( - 10 ) WHEN 75 / + - 36 THEN + 10 ELSE NULL END ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5897
SELECT NULLIF ( + - 31, + - MAX ( ALL 88 ) / + - CASE ( - 10 ) WHEN 75 / + - 36 THEN + 10 ELSE NULL END ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5898
SELECT + COUNT( * ) AS col2, - CASE 56 WHEN - 30 THEN - 72 WHEN + - 90 * 32 + 9 THEN NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5898
SELECT + COUNT ( * ) AS col2, - CASE 56 WHEN - 30 THEN - 72 WHEN + - 90 * 32 + 9 THEN NULL END AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT + 27 * NULLIF ( - 99, + 50 + - 78 + + NULLIF ( 37, + + 1 ) * + - 63 ) DIV - 58
----
46

skipif mysql # not compatible
query I rowsort label-5899
SELECT + 27 * NULLIF ( - 99, + 50 + - 78 + + NULLIF ( 37, + + 1 ) * + - 63 ) / - 58
----
46

query I rowsort
SELECT DISTINCT 21 * + + 24 + + 37
----
541

onlyif mysql # aggregate syntax: 
query II rowsort label-5901
SELECT ALL + 28 col2, CASE 49 WHEN - 49 * - + 38 * 11 + - + COUNT( - 1 ) + - - 75 / 46 - - 6 THEN 14 ELSE NULL END + 34 AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-5901
SELECT ALL + 28 col2, CASE 49 WHEN - 49 * - + 38 * 11 + - + COUNT ( - 1 ) + - - 75 / 46 - - 6 THEN 14 ELSE NULL END + 34 AS col1
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + SUM( DISTINCT + - 35 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-5902
SELECT + SUM ( DISTINCT + - 35 ) col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT + 23 * - COUNT( * ) AS col0, 6
----
-23
6

skipif mysql # not compatible
query II rowsort label-5903
SELECT + 23 * - COUNT ( * ) AS col0, 6
----
-23
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL + + AVG ( + - 92 ) * - + NULLIF ( - + CASE + ( + 11 ) WHEN - 74 THEN NULL WHEN + + ( 85 ) THEN - COALESCE ( + 66, 98 * - 39 ) ELSE NULL END, - CAST( NULL AS SIGNED ) ) + 5 * 84 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + + AVG ( + - 92 ) * - + NULLIF ( - + CASE + ( + 11 ) WHEN - 74 THEN NULL WHEN + + ( 85 ) THEN - COALESCE ( + 66, 98 * - 39 ) ELSE NULL END, - CAST ( NULL AS INTEGER ) ) + 5 * 84 + 92
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT - 30 AS col2, COALESCE ( + MIN( + + 97 ), - 9, - COUNT( * ) * + 21 + + 31 ) - + COALESCE ( - 81, - 27 + - ( - ( 7 ) ), 59 ) + - 86
----
-30
92

skipif mysql # not compatible
query II rowsort label-5905
SELECT - 30 AS col2, COALESCE ( + MIN ( + + 97 ), - 9, - COUNT ( * ) * + 21 + + 31 ) - + COALESCE ( - 81, - 27 + - ( - ( 7 ) ), 59 ) + - 86
----
-30
92

query I rowsort
SELECT + ( - + 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT - 53 * - - CAST( NULL AS SIGNED ) * - 9 - - - COUNT( * ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 53 * - - CAST ( NULL AS INTEGER ) * - 9 - - - COUNT ( * ) * - 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT - 86 DIV 10 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5908
SELECT - 86 / 10 AS col1
----
-8

query I rowsort
SELECT ALL 55 * 35
----
1925

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT + 43 * + 37, COUNT( * ) AS col2
----
1591
1

skipif mysql # not compatible
query II rowsort label-5910
SELECT + 43 * + 37, COUNT ( * ) AS col2
----
1591
1

query I rowsort
SELECT DISTINCT - 9 - + + 75 - + 96 AS col1
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-5912
SELECT ALL + COUNT( * ), + 4 - ( + - 50 ) + 47 * 72 AS col1
----
1
3438

skipif mysql # not compatible
query II rowsort label-5912
SELECT ALL + COUNT ( * ), + 4 - ( + - 50 ) + 47 * 72 AS col1
----
1
3438

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - + SUM( DISTINCT - 22 ) - 62
----
-40

skipif mysql # not compatible
query I rowsort label-5913
SELECT - + SUM ( DISTINCT - 22 ) - 62
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5914
SELECT - 71 AS col2, + 1 * + - ( - COUNT( - + 12 ) ) col1
----
-71
1

skipif mysql # not compatible
query II rowsort label-5914
SELECT - 71 AS col2, + 1 * + - ( - COUNT ( - + 12 ) ) col1
----
-71
1

query II rowsort
SELECT - 99, 65 AS col0
----
-99
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5916
SELECT ALL ( + NULLIF ( + - CAST( NULL AS SIGNED ), - 56 * - 76 + 42 ) ) AS col1, CAST( + ( + - 75 ) AS SIGNED )
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL ( + NULLIF ( + - CAST ( NULL AS INTEGER ), - 56 * - 76 + 42 ) ) AS col1, CAST ( + ( + - 75 ) AS INTEGER )
----
NULL
-75

query I rowsort
SELECT + - 21 + + 87 * + 1 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - 5 - - - COUNT( ALL 67 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5918
SELECT - 5 - - - COUNT ( ALL 67 ) AS col0
----
-6

query I rowsort
SELECT ALL COALESCE ( - 16, 70 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT + ( - 23 ) * - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + ( - 23 ) * - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT - 76 + ( + 0 ) AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5922
SELECT - 93 DIV + MAX( + + 29 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5922
SELECT - 93 / + MAX ( + + 29 ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT + 46 + - 19 + + CAST( NULL AS SIGNED ) * 54 - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + 46 + - 19 + + CAST ( NULL AS INTEGER ) * 54 - 7
----
NULL

query I rowsort
SELECT ALL + 28 + - 51 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT - COUNT( * ) + - - 61 * 85
----
5184

skipif mysql # not compatible
query I rowsort label-5925
SELECT - COUNT ( * ) + - - 61 * 85
----
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5926
SELECT DISTINCT COALESCE ( - COUNT( * ), 82 - CAST( + 67 AS SIGNED ) + + + CAST( - - 36 AS SIGNED ) * 0 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT COALESCE ( - COUNT ( * ), 82 - CAST ( + 67 AS INTEGER ) + + + CAST ( - - 36 AS INTEGER ) * 0 ) AS col0
----
-1

query I rowsort
SELECT - 51 + - - 91
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT - COUNT( * ) * + 32
----
-32

skipif mysql # not compatible
query I rowsort label-5928
SELECT - COUNT ( * ) * + 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COALESCE ( - + 5, + - 93, - - COUNT( * ) * + + 39 ) + + 25 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COALESCE ( - + 5, + - 93, - - COUNT ( * ) * + + 39 ) + + 25 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - COALESCE ( COUNT( * ), 16 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5930
SELECT - COALESCE ( COUNT ( * ), 16 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT ALL 11 DIV + 20 + 97
----
97

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL 11 / + 20 + 97
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5932
SELECT ALL CAST( 58 AS SIGNED ) DIV - 11 + + + 23 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL CAST ( 58 AS INTEGER ) / - 11 + + + 23 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5933
SELECT - CAST( + COALESCE ( 34, - CASE + 99 WHEN + - 47 + 47 THEN NULL ELSE + 4 - - 2 END ) AS SIGNED ) + 60 col2, + 82
----
26
82

skipif mysql # not compatible
query II rowsort label-5933
SELECT - CAST ( + COALESCE ( 34, - CASE + 99 WHEN + - 47 + 47 THEN NULL ELSE + 4 - - 2 END ) AS INTEGER ) + 60 col2, + 82
----
26
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT DISTINCT 60 * + + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT 60 * + + COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT 12 / - CASE + ( - - 88 ) WHEN - 92 THEN + 46 + + 20 + - COUNT( * ) + - 55 * + COUNT( 4 ) * - 32 * + 27 WHEN 95 * - 74 THEN + 72 + ( 15 + - 27 / + 89 ) * - 12 ELSE NULL END + - 57 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT 12 / - CASE + ( - - 88 ) WHEN - 92 THEN + 46 + + 20 + - COUNT ( * ) + - 55 * + COUNT ( 4 ) * - 32 * + 27 WHEN 95 * - 74 THEN + 72 + ( 15 + - 27 / + 89 ) * - 12 ELSE NULL END + - 57 + + 36
----
NULL

query I rowsort
SELECT + + 37 + + - 1 AS col0
----
36

query I rowsort
SELECT + + 26 * - 82 - 2 * - 92 + - 41 AS col1
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT COUNT( * ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT COUNT ( * ) * + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - 25 * 21 + 54 - + + COALESCE ( + 91, - 32 ) * - 84 * - - 99 + - COUNT( + COALESCE ( + + 60, + 45 ) ) AS col0
----
756284

skipif mysql # not compatible
query I rowsort label-5939
SELECT - 25 * 21 + 54 - + + COALESCE ( + 91, - 32 ) * - 84 * - - 99 + - COUNT ( + COALESCE ( + + 60, + 45 ) ) AS col0
----
756284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5940
SELECT + CAST( - 37 AS SIGNED ) + + 31, - COUNT( * ) col2
----
-6
-1

skipif mysql # not compatible
query II rowsort label-5940
SELECT + CAST ( - 37 AS INTEGER ) + + 31, - COUNT ( * ) col2
----
-6
-1

query I rowsort
SELECT + 75 * + + 89
----
6675

query I rowsort
SELECT ALL + - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL + MAX( ALL 49 ) * + MIN( DISTINCT - - ( + 18 ) ) + + 59
----
941

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + MAX ( ALL 49 ) * + MIN ( DISTINCT - - ( + 18 ) ) + + 59
----
941

query II rowsort
SELECT ( - + 91 ), + 15 AS col2
----
-91
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT ALL + COALESCE ( + CASE - CAST( NULL AS SIGNED ) WHEN + 73 THEN NULL ELSE - 13 * 42 + - 58 END, 76 - + + 62 )
----
-604

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + COALESCE ( + CASE - CAST ( NULL AS INTEGER ) WHEN + 73 THEN NULL ELSE - 13 * 42 + - 58 END, 76 - + + 62 )
----
-604

query I rowsort
SELECT + - 85 + 46
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT + 41 * 8 + - 79 - + + MAX( DISTINCT - + 43 ) * 52
----
2485

skipif mysql # not compatible
query I rowsort label-5947
SELECT + 41 * 8 + - 79 - + + MAX ( DISTINCT - + 43 ) * 52
----
2485

query I rowsort
SELECT + + 10 + - 11 AS col1
----
-1

query I rowsort
SELECT ALL 89 * - 99 * 2
----
-17622

query I rowsort
SELECT + - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5951
SELECT + + 61 * - + 63 DIV - COUNT( * )
----
3843

skipif mysql # not compatible
query I rowsort label-5951
SELECT + + 61 * - + 63 / - COUNT ( * )
----
3843

query I rowsort
SELECT DISTINCT + ( 7 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT ALL 56 * 73 DIV 57
----
71

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL 56 * 73 / 57
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT - COUNT( * ) + 79 + 44 * - 60 * + + 96 * 98 AS col2
----
-24837042

skipif mysql # not compatible
query I rowsort label-5954
SELECT - COUNT ( * ) + 79 + 44 * - 60 * + + 96 * 98 AS col2
----
-24837042

query I rowsort
SELECT + 17 * + 57
----
969

query I rowsort
SELECT + 76 * - + 25
----
-1900

query I rowsort
SELECT ALL 82 * - - 56
----
4592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5958
SELECT - CAST( NULL AS SIGNED ) AS col0, COALESCE ( + 35, + COUNT( * ) + 72 + + 7 + - 60 * + 68 + 36 * 29 * NULLIF ( - + 6, 41 ) ) + COUNT( * ) DIV 75
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5958
SELECT - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( + 35, + COUNT ( * ) + 72 + + 7 + - 60 * + 68 + 36 * 29 * NULLIF ( - + 6, 41 ) ) + COUNT ( * ) / 75
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT DISTINCT 89 * - CAST( NULL AS SIGNED ) + - - CAST( ( - 89 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT 89 * - CAST ( NULL AS INTEGER ) + - - CAST ( ( - 89 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL MIN( + ( + 96 ) ) * - 42 * 42 + + 88 + + ( + COUNT( * ) ) + - COUNT( * )
----
-169256

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL MIN ( + ( + 96 ) ) * - 42 * 42 + + 88 + + ( + COUNT ( * ) ) + - COUNT ( * )
----
-169256

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT SUM( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5961
SELECT SUM ( - 18 )
----
-18

query I rowsort
SELECT DISTINCT 34 + - - 54
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + 42 + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + 42 + - COUNT ( * )
----
41

query I rowsort
SELECT - 63 + + 51 + - 13 AS col2
----
-25

query I rowsort
SELECT DISTINCT 69 + + 14
----
83

query I rowsort
SELECT ALL 28 + + 62 * - + 33 AS col0
----
-2018

query II rowsort
SELECT - 73 AS col0, + 29 AS col1
----
-73
29

query I rowsort
SELECT 47 - + 17
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT CAST( + 7 AS SIGNED ) - 70 * + 0
----
7

skipif mysql # not compatible
query I rowsort label-5969
SELECT CAST ( + 7 AS INTEGER ) - 70 * + 0
----
7

query I rowsort
SELECT 92 * + + 82
----
7544

query I rowsort
SELECT ALL + 97 + 76 col1
----
173

query I rowsort
SELECT 82 * + - 77 * - - 22 * 63
----
-8751204

query I rowsort
SELECT ALL + 25 * - 93 AS col0
----
-2325

query I rowsort
SELECT 92 - + - 30
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-5975
SELECT ALL 49 AS col0, 10 + SUM( + 51 ) + - NULLIF ( - 88, - + 59 + + 17 ) + + 87
----
49
236

skipif mysql # not compatible
query II rowsort label-5975
SELECT ALL 49 AS col0, 10 + SUM ( + 51 ) + - NULLIF ( - 88, - + 59 + + 17 ) + + 87
----
49
236

query I rowsort
SELECT - 62 * + + 78 * NULLIF ( - 65, + + 30 ) AS col0
----
314340

query II rowsort
SELECT + 76 AS col2, + 18
----
76
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT - + NULLIF ( - + 54, 39 / 73 * - - 83 + - + ( + - MIN( DISTINCT - + CASE WHEN ( + 63 ) <= - 94 THEN - 14 * 70 END ) ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT - + NULLIF ( - + 54, 39 / 73 * - - 83 + - + ( + - MIN ( DISTINCT - + CASE WHEN ( + 63 ) <= - 94 THEN - 14 * 70 END ) ) ) AS col0
----
54

query II rowsort
SELECT - NULLIF ( + + 82, + + 84 ), 80 AS col0
----
-82
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5980
SELECT - + ( COUNT( * ) ) DIV - 37 * + COUNT( * ) * - ( 19 ) * 37 * + 48 + + COUNT( * ) + - CAST( - - 8 AS SIGNED ) + 35 + + - 76 + + 23 * - 24 AS col0
----
-600

skipif mysql # not compatible
query I rowsort label-5980
SELECT - + ( COUNT ( * ) ) / - 37 * + COUNT ( * ) * - ( 19 ) * 37 * + 48 + + COUNT ( * ) + - CAST ( - - 8 AS INTEGER ) + 35 + + - 76 + + 23 * - 24 AS col0
----
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT ALL - - MIN( ALL - 95 ) DIV - 39
----
2

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - - MIN ( ALL - 95 ) / - 39
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5982
SELECT DISTINCT - - 77 AS col0, + CAST( NULL AS SIGNED ) * + - 94 * - + COUNT( * ) + 78
----
77
NULL

skipif mysql # not compatible
query II rowsort label-5982
SELECT DISTINCT - - 77 AS col0, + CAST ( NULL AS INTEGER ) * + - 94 * - + COUNT ( * ) + 78
----
77
NULL

query I rowsort
SELECT + + ( + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT SUM( ALL 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-5984
SELECT SUM ( ALL 91 ) col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT ALL - + CAST( + - ( + 14 ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - + CAST ( + - ( + 14 ) AS INTEGER )
----
14

query II rowsort
SELECT DISTINCT - 10 AS col1, + 84 + 16 AS col0
----
-10
100

query I rowsort
SELECT ALL - - COALESCE ( - 78, 6 * - 11, 4 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5988
SELECT CASE - 3 WHEN 13 THEN - 12 END * + + 6 * - COUNT( * ) - + + MAX( + 17 ), 88 AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-5988
SELECT CASE - 3 WHEN 13 THEN - 12 END * + + 6 * - COUNT ( * ) - + + MAX ( + 17 ), 88 AS col1
----
NULL
88

query I rowsort
SELECT + 11 col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5990
SELECT + COUNT( * ), 35 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-5990
SELECT + COUNT ( * ), 35 AS col1
----
1
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5991
SELECT ALL - COUNT( * ), + CASE + 54 WHEN + ( 40 ) THEN - 30 * ( 42 ) WHEN 32 THEN NULL END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5991
SELECT ALL - COUNT ( * ), + CASE + 54 WHEN + ( 40 ) THEN - 30 * ( 42 ) WHEN 32 THEN NULL END AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT COUNT( * ) + - 86 col0
----
-85

skipif mysql # not compatible
query I rowsort label-5992
SELECT COUNT ( * ) + - 86 col0
----
-85

query I rowsort
SELECT + 28 + 67 col2
----
95

query I rowsort
SELECT DISTINCT - - 60 * + CASE 16 WHEN - 29 THEN - 44 / 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL - CASE + - ( 73 ) WHEN + + 27 + - - COUNT( * ) THEN NULL WHEN - AVG ( 5 ) THEN 4 * + 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - CASE + - ( 73 ) WHEN + + 27 + - - COUNT ( * ) THEN NULL WHEN - AVG ( 5 ) THEN 4 * + 98 END AS col0
----
NULL

query I rowsort
SELECT ALL 64 + + 52 - - 1 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT COUNT( - 62 ) * - 33 * 22 - + - 59 + 84 + + 93 + + 44
----
-446

skipif mysql # not compatible
query I rowsort label-5997
SELECT COUNT ( - 62 ) * - 33 * 22 - + - 59 + 84 + + 93 + + 44
----
-446

query I rowsort
SELECT DISTINCT 93 + - - 9 AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT 32 / CASE + CAST( - + 37 AS SIGNED ) WHEN - 8 / 25 + + + 99 + + 11 + + COUNT( * ) * 30 / 11 + + 12 + - AVG ( CASE - 16 WHEN - 53 + + NULLIF ( 3 - - 93 * 33, 96 ) THEN + 85 * 28 WHEN 6 * + 93 THEN NULL END ) - - NULLIF ( - COUNT( * ) + 78 * + COUNT( * ), + 93 ) THEN 17 / - NULLIF ( 19 * 72, - 91 + - 20 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT 32 / CASE + CAST ( - + 37 AS INTEGER ) WHEN - 8 / 25 + + + 99 + + 11 + + COUNT ( * ) * 30 / 11 + + 12 + - AVG ( CASE - 16 WHEN - 53 + + NULLIF ( 3 - - 93 * 33, 96 ) THEN + 85 * 28 WHEN 6 * + 93 THEN NULL END ) - - NULLIF ( - COUNT ( * ) + 78 * + COUNT ( * ), + 93 ) THEN 17 / - NULLIF ( 19 * 72, - 91 + - 20 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT 67 + SUM( ALL + - 74 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6000
SELECT 67 + SUM ( ALL + - 74 ) AS col2
----
-7

query I rowsort
SELECT ALL 28 + + 68 AS col0
----
96

query I rowsort
SELECT 38 * 20 AS col2
----
760

query I rowsort
SELECT - 41 * + + 10 + 4
----
-406

query I rowsort
SELECT ALL 80 + NULLIF ( + + 87, 69 + - 89 ) + 21 + + + 67 AS col2
----
255

query I rowsort
SELECT ( + 59 ) + + + 36 col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT ALL - 65 - + 38 + - CAST( NULL AS SIGNED ) * + 53 * - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - 65 - + 38 + - CAST ( NULL AS INTEGER ) * + 53 * - - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT MIN( - 63 ) * 18 + CASE + 99 WHEN - + 99 - + - 58 THEN NULL WHEN + COALESCE ( - ( + COUNT( * ) ), - - 51 * + MAX( + + 32 ) * - + 6 ) THEN - 83 WHEN + 84 - 82 * + COUNT( * ) THEN ( - 94 ) + 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT MIN ( - 63 ) * 18 + CASE + 99 WHEN - + 99 - + - 58 THEN NULL WHEN + COALESCE ( - ( + COUNT ( * ) ), - - 51 * + MAX ( + + 32 ) * - + 6 ) THEN - 83 WHEN + 84 - 82 * + COUNT ( * ) THEN ( - 94 ) + 67 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT DISTINCT 21 * CASE - CASE + NULLIF ( - 89, + 5 * - + 75 + COALESCE ( + - NULLIF ( - - 57, - 92 ), - + 37 ) ) WHEN + - 18 THEN + - COUNT( DISTINCT + 52 ) ELSE NULL END WHEN + COALESCE ( - COUNT( * ), + 0 * ( 92 ) + - 64 / 48 ) THEN 11 * - COALESCE ( + 50, - 22 * + COUNT( * ) + - 4 * + 58, 22 * COUNT( * ) + - COUNT( * ) ) END * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT 21 * CASE - CASE + NULLIF ( - 89, + 5 * - + 75 + COALESCE ( + - NULLIF ( - - 57, - 92 ), - + 37 ) ) WHEN + - 18 THEN + - COUNT ( DISTINCT + 52 ) ELSE NULL END WHEN + COALESCE ( - COUNT ( * ), + 0 * ( 92 ) + - 64 / 48 ) THEN 11 * - COALESCE ( + 50, - 22 * + COUNT ( * ) + - 4 * + 58, 22 * COUNT ( * ) + - COUNT ( * ) ) END * 15 AS col2
----
NULL

query I rowsort
SELECT 1 + - 24 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL 14 - + MAX( + 69 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL 14 - + MAX ( + 69 ) col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT 35 + - ( + - 71 ) + + 50 * CAST( NULL AS SIGNED ) + + 97 * + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT 35 + - ( + - 71 ) + + 50 * CAST ( NULL AS INTEGER ) + + 97 * + 79 AS col2
----
NULL

query I rowsort
SELECT - 60 * + 41 + - 2
----
-2462

query I rowsort
SELECT ALL ( - 11 )
----
-11

query I rowsort
SELECT + 82 + 96 + ( 44 ) * - + 52 * + 7 - 53 AS col2
----
-15891

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL - - 79 * - - ( + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - - 79 * - - ( + COUNT ( * ) )
----
79

query I rowsort
SELECT ALL - - 66 AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT - COUNT( * ) * 87 DIV + NULLIF ( + + 72, COALESCE ( - COALESCE ( - 51, - + 31 * 86 * - + 27 + - 86 - - 84 ), - - 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT - COUNT ( * ) * 87 / + NULLIF ( + + 72, COALESCE ( - COALESCE ( - 51, - + 31 * 86 * - + 27 + - 86 - - 84 ), - - 44 ) )
----
-1

query I rowsort
SELECT ALL - - 49 col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6019
SELECT - - COUNT( * ) * + + CAST( NULL AS DECIMAL ) + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT - - COUNT ( * ) * + + CAST ( NULL AS REAL ) + 20
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6020
SELECT SUM( + 65 ) DIV - + 43 + - 58 + + ( - 83 )
----
-142

skipif mysql # not compatible
query I rowsort label-6020
SELECT SUM ( + 65 ) / - + 43 + - 58 + + ( - 83 )
----
-142

query I rowsort
SELECT DISTINCT - + 37 * - - 16 * 23 AS col2
----
-13616

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT - 66 * - + COUNT( * ) + + 54
----
120

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 66 * - + COUNT ( * ) + + 54
----
120

query I rowsort
SELECT 74 + - - 20 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL + COUNT( * ) * - 67 + NULLIF ( - 15, 81 ) + 58 + + - CASE - 68 WHEN 65 THEN + 21 + - ( + 15 ) ELSE NULL END + 2 + - 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + COUNT ( * ) * - 67 + NULLIF ( - 15, 81 ) + 58 + + - CASE - 68 WHEN 65 THEN + 21 + - ( + 15 ) ELSE NULL END + 2 + - 99 col2
----
NULL

query I rowsort
SELECT + 68 + + 2 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT CAST( NULL AS SIGNED ) * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT CAST ( NULL AS INTEGER ) * + - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6027
SELECT DISTINCT - 89 DIV + COUNT( * ) col2, 63 AS col1
----
-89
63

skipif mysql # not compatible
query II rowsort label-6027
SELECT DISTINCT - 89 / + COUNT ( * ) col2, 63 AS col1
----
-89
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6028
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col1, + 86 * - 54
----
NULL
-4644

skipif mysql # not compatible
query II rowsort label-6028
SELECT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1, + 86 * - 54
----
NULL
-4644

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6029
SELECT - CAST( NULL AS DECIMAL ) + 62 + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT - CAST ( NULL AS REAL ) + 62 + 20 col2
----
NULL

query I rowsort
SELECT DISTINCT 82 * + + 51 * - ( - + 50 ) col1
----
209100

query I rowsort
SELECT ALL 40 + 37
----
77

query I rowsort
SELECT 96 * 17 * 96 + 49
----
156721

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT + 58 AS col1, + COUNT( * ) AS col2
----
58
1

skipif mysql # not compatible
query II rowsort label-6033
SELECT + 58 AS col1, + COUNT ( * ) AS col2
----
58
1

query II rowsort
SELECT 17 AS col1, - 45 * - - 73 * - - 62 AS col1
----
17
-203670

query II rowsort
SELECT DISTINCT + NULLIF ( + - 3, 87 ) AS col2, NULLIF ( + + 41, - - 59 ) + - 35 AS col0
----
-3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT + 16 * + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6036
SELECT + 16 * + - COUNT ( * )
----
-16

query II rowsort
SELECT - 68 AS col2, + 37
----
-68
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT + ( + 47 ) + 98 - + 72 - + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6038
SELECT + ( + 47 ) + 98 - + 72 - + COUNT ( * ) AS col1
----
72

query I rowsort
SELECT ALL - 24 * - 88
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL CASE + COUNT( * ) WHEN + 7 THEN - + 8 + 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL CASE + COUNT ( * ) WHEN + 7 THEN - + 8 + 72 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6041
SELECT ALL 27 DIV - 18 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL 27 / - 18 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT + COUNT( * ) DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6042
SELECT + COUNT ( * ) / 71 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( + 0, + - 36 * - 56 + - - 67 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6044
SELECT + MAX( ALL 96 ) + 12 DIV + SUM( DISTINCT - 88 )
----
96

skipif mysql # not compatible
query I rowsort label-6044
SELECT + MAX ( ALL 96 ) + 12 / + SUM ( DISTINCT - 88 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT DISTINCT 73 DIV - + 82 * 60
----
0

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT 73 / - + 82 * 60
----
0

query III rowsort
SELECT 47 AS col2, ( + 71 ), - + 17 AS col0
----
47
71
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6047
SELECT + 3 DIV + COUNT( - ( + 66 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6047
SELECT + 3 / + COUNT ( - ( + 66 ) ) AS col0
----
3

query I rowsort
SELECT + 20 + 80
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6049
SELECT DISTINCT + - 73 DIV - MIN( - - NULLIF ( - 21, 90 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT + - 73 / - MIN ( - - NULLIF ( - 21, 90 ) )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT + 80 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-6050
SELECT + 80 / - 61
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6051
SELECT - + COUNT( ALL NULLIF ( + 33, ( + 34 ) ) ) AS col1, - 93 * - CASE + + 48 WHEN 62 / - COUNT( * ) + - SUM( - 51 ) * CASE - + CAST( NULL AS SIGNED ) WHEN + ( 7 ) THEN NULL ELSE - 55 * COUNT( * ) END / 52 - - CAST( NULL AS SIGNED ) THEN NULL ELSE 11 + + COUNT( * ) END AS col2
----
-1
1116

skipif mysql # not compatible
query II rowsort label-6051
SELECT - + COUNT ( ALL NULLIF ( + 33, ( + 34 ) ) ) AS col1, - 93 * - CASE + + 48 WHEN 62 / - COUNT ( * ) + - SUM ( - 51 ) * CASE - + CAST ( NULL AS INTEGER ) WHEN + ( 7 ) THEN NULL ELSE - 55 * COUNT ( * ) END / 52 - - CAST ( NULL AS INTEGER ) THEN NULL ELSE 11 + + COUNT ( * ) END AS col2
----
-1
1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6052
SELECT DISTINCT - CAST( + 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT - CAST ( + 98 AS INTEGER )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT + CAST( + 34 AS SIGNED ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6053
SELECT + CAST ( + 34 AS INTEGER ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT - - 48 * + 27 + + SUM( 4 ) AS col2
----
1300

skipif mysql # not compatible
query I rowsort label-6054
SELECT - - 48 * + 27 + + SUM ( 4 ) AS col2
----
1300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6055
SELECT ALL - 91 * - + CAST( + CAST( 10 AS SIGNED ) AS SIGNED ) + - 82 AS col0, 41
----
828
41

skipif mysql # not compatible
query II rowsort label-6055
SELECT ALL - 91 * - + CAST ( + CAST ( 10 AS INTEGER ) AS INTEGER ) + - 82 AS col0, 41
----
828
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT 97, COUNT( * ) AS col1
----
97
1

skipif mysql # not compatible
query II rowsort label-6056
SELECT 97, COUNT ( * ) AS col1
----
97
1

query I rowsort
SELECT - ( + - 67 ) * 41 + ( 69 ) AS col2
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + MIN( + - 50 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-6058
SELECT + MIN ( + - 50 ) col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT + 48 * + COUNT( * ) + + - NULLIF ( - 47, + + ( + 64 ) )
----
95

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + 48 * + COUNT ( * ) + + - NULLIF ( - 47, + + ( + 64 ) )
----
95

query I rowsort
SELECT ALL - 12 * 62 * - 27 + - 74 AS col2
----
20014

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - 26 * COUNT( * ) + - 5 - - 42 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6061
SELECT - 26 * COUNT ( * ) + - 5 - - 42 AS col1
----
11

query I rowsort
SELECT DISTINCT - - 95 * - - NULLIF ( - 87, - - 15 * - 82 ) + + + 25 + + 75
----
-8165

query I rowsort
SELECT ALL + 90 * - + ( - ( - 13 ) ) + + 11 + 29 col1
----
-1130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT - + 21 * - + CAST( - - CASE + - 66 WHEN - - COALESCE ( 35, - CAST( + MAX( DISTINCT - + 14 ) AS SIGNED ), MIN( + 62 ) ) * + 21 THEN + 50 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT - + 21 * - + CAST ( - - CASE + - 66 WHEN - - COALESCE ( 35, - CAST ( + MAX ( DISTINCT - + 14 ) AS INTEGER ), MIN ( + 62 ) ) * + 21 THEN + 50 ELSE NULL END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL + - 7 AS col1, 13
----
-7
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6066
SELECT 37 * - 80 * - 72 + - CAST( NULL AS DECIMAL ) - - COALESCE ( - COALESCE ( - 40, + NULLIF ( + COUNT( * ), CAST( - ( 41 ) AS SIGNED ) + - 73 ) * CAST( NULL AS SIGNED ) ), - 15, ( 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT 37 * - 80 * - 72 + - CAST ( NULL AS REAL ) - - COALESCE ( - COALESCE ( - 40, + NULLIF ( + COUNT ( * ), CAST ( - ( 41 ) AS INTEGER ) + - 73 ) * CAST ( NULL AS INTEGER ) ), - 15, ( 6 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT NULLIF ( - COUNT( * ), + 94 + COUNT( * ) + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6067
SELECT NULLIF ( - COUNT ( * ), + 94 + COUNT ( * ) + ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT 28 * + 3 + - SUM( ALL 85 ) * CASE - COUNT( * ) WHEN + 14 + + - 35 - 52 THEN NULL WHEN 58 THEN 87 * + ( - + 59 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT 28 * + 3 + - SUM ( ALL 85 ) * CASE - COUNT ( * ) WHEN + 14 + + - 35 - 52 THEN NULL WHEN 58 THEN 87 * + ( - + 59 ) END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 24, ( - ( - 69 ) ) )
----
24

query I rowsort
SELECT + 8 * 18 - 97
----
47

query I rowsort
SELECT NULLIF ( + 90, + + 47 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT + COUNT( * ) col0, ( 86 ) AS col2
----
1
86

skipif mysql # not compatible
query II rowsort label-6072
SELECT + COUNT ( * ) col0, ( 86 ) AS col2
----
1
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT NULLIF ( - + CAST( 34 AS SIGNED ), ( + - 82 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6073
SELECT NULLIF ( - + CAST ( 34 AS INTEGER ), ( + - 82 ) )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT DISTINCT + 99, + NULLIF ( 36, COUNT( * ) ) + - 78 - 81 - - - 61 AS col0
----
99
-184

skipif mysql # not compatible
query II rowsort label-6074
SELECT DISTINCT + 99, + NULLIF ( 36, COUNT ( * ) ) + - 78 - 81 - - - 61 AS col0
----
99
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT - CAST( NULL AS SIGNED ) + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT - CAST ( NULL AS INTEGER ) + - 33 AS col1
----
NULL

query I rowsort
SELECT ALL 70 * 49 - + + 13 + - - 29 * 93 col0
----
6114

onlyif mysql # aggregate syntax: 
query II rowsort label-6077
SELECT COUNT( * ) AS col0, COUNT( * ) * - 54
----
1
-54

skipif mysql # not compatible
query II rowsort label-6077
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - 54
----
1
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT COUNT( * ) col2, - 6
----
1
-6

skipif mysql # not compatible
query II rowsort label-6078
SELECT COUNT ( * ) col2, - 6
----
1
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT - 9 + + CAST( - + 84 AS SIGNED ) + + 72 * + AVG ( ALL + + 46 ) * - 1 + - + 71 - + + CAST( NULL AS SIGNED ) / + 54 - - 72 * - + COUNT( * ) * - + COUNT( * ) * 79 * 57 / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT - 9 + + CAST ( - + 84 AS INTEGER ) + + 72 * + AVG ( ALL + + 46 ) * - 1 + - + 71 - + + CAST ( NULL AS INTEGER ) / + 54 - - 72 * - + COUNT ( * ) * - + COUNT ( * ) * 79 * 57 / 66
----
NULL

query I rowsort
SELECT - 21 * + + 65 AS col2
----
-1365

query I rowsort
SELECT ALL - 93 * + 25 AS col0
----
-2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6082
SELECT ALL CAST( - 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL CAST ( - 28 AS INTEGER )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6083
SELECT - CAST( + 72 AS SIGNED ) + + - COUNT( * ) DIV + 56 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6083
SELECT - CAST ( + 72 AS INTEGER ) + + - COUNT ( * ) / + 56 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT - MAX( + + 94 ) + 39 * + - 57 - + 95
----
-2412

skipif mysql # not compatible
query I rowsort label-6084
SELECT - MAX ( + + 94 ) + 39 * + - 57 - + 95
----
-2412

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + 79 - CASE + - 73 WHEN 5 THEN + 15 WHEN - - 78 + COUNT( * ) THEN + 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT + 79 - CASE + - 73 WHEN 5 THEN + 15 WHEN - - 78 + COUNT ( * ) THEN + 10 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL - CASE - + 88 WHEN - 1 THEN NULL WHEN + - COUNT( * ) * - ( 39 ) * + COUNT( * ) + - 56 + MIN( + 39 ) * MIN( - 85 ) * - 81 + + 35 THEN + COALESCE ( - 56, + 20, ( 10 ), 88 + COUNT( * ) * - 35 ) ELSE 31 END * + 92 AS col0
----
-2852

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - CASE - + 88 WHEN - 1 THEN NULL WHEN + - COUNT ( * ) * - ( 39 ) * + COUNT ( * ) + - 56 + MIN ( + 39 ) * MIN ( - 85 ) * - 81 + + 35 THEN + COALESCE ( - 56, + 20, ( 10 ), 88 + COUNT ( * ) * - 35 ) ELSE 31 END * + 92 AS col0
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL - MIN( ALL + 5 ) * - 18
----
90

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - MIN ( ALL + 5 ) * - 18
----
90

query II rowsort
SELECT ALL - 7 + + 1 * + + 56 + 85 AS col2, + 51
----
134
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT DISTINCT - MIN( DISTINCT + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - MIN ( DISTINCT + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + + 69 + COUNT( ALL 45 )
----
70

skipif mysql # not compatible
query I rowsort label-6090
SELECT + + 69 + COUNT ( ALL 45 )
----
70

query II rowsort
SELECT - COALESCE ( - ( - 92 ), + 64 ), 83 AS col0
----
-92
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT - 68, - ( - - SUM( + 18 ) ) AS col0
----
-68
-18

skipif mysql # not compatible
query II rowsort label-6092
SELECT - 68, - ( - - SUM ( + 18 ) ) AS col0
----
-68
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6093
SELECT ALL 84 + + - 76 DIV - CAST( + 88 AS SIGNED ) * - 85
----
84

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL 84 + + - 76 / - CAST ( + 88 AS INTEGER ) * - 85
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-6094
SELECT - 67 + - + ( + 74 ) DIV 29 * - 9 - 53 AS col1, NULLIF ( 28, + - 91 ) * 52
----
-102
1456

skipif mysql # not compatible
query II rowsort label-6094
SELECT - 67 + - + ( + 74 ) / 29 * - 9 - 53 AS col1, NULLIF ( 28, + - 91 ) * 52
----
-102
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT + 81 + + + 85 * - - 49 * + - NULLIF ( 22, + ( + + COUNT( * ) ) )
----
-91549

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + 81 + + + 85 * - - 49 * + - NULLIF ( 22, + ( + + COUNT ( * ) ) )
----
-91549

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT + 81 + + ( - CASE + CASE + COUNT( * ) WHEN + - 34 THEN NULL ELSE + 6 * - 68 + - + 78 END WHEN - 64 * + + COUNT( * ) * - AVG ( + 71 ) THEN NULL WHEN + 37 + COUNT( * ) * + - 65 + - 58 * 67 THEN NULL ELSE 32 + + 76 END ) + 54 * + 6
----
297

skipif mysql # not compatible
query I rowsort label-6096
SELECT + 81 + + ( - CASE + CASE + COUNT ( * ) WHEN + - 34 THEN NULL ELSE + 6 * - 68 + - + 78 END WHEN - 64 * + + COUNT ( * ) * - AVG ( + 71 ) THEN NULL WHEN + 37 + COUNT ( * ) * + - 65 + - 58 * 67 THEN NULL ELSE 32 + + 76 END ) + 54 * + 6
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL + 11 + - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL + 11 + - COUNT ( * ) AS col2
----
10

query II rowsort
SELECT + - 6 AS col1, + 86 * - 98 * + 69 + 69 col0
----
-6
-581463

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT ALL - 44 DIV - 8 + - + 81
----
-76

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - 44 / - 8 + - + 81
----
-76

query II rowsort
SELECT DISTINCT - - CASE - + 27 WHEN + 39 THEN 83 ELSE NULL END AS col0, 3 AS col0
----
NULL
3

query I rowsort
SELECT + - 31 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT DISTINCT 64 - - + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT 64 - - + COUNT ( * )
----
65

query I rowsort
SELECT ( 87 ) * 0 + NULLIF ( - CASE - 77 WHEN - - 42 + + + 57 * - - 66 * - 36 * - ( + - 23 ) THEN NULL ELSE + 25 END, - 33 )
----
-25

query I rowsort
SELECT ALL + 70 * - 94 AS col0
----
-6580

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT ALL 63 DIV + 6 col1
----
10

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL 63 / + 6 col1
----
10

query I rowsort
SELECT DISTINCT 98 * + + 35 AS col1
----
3430

query I rowsort
SELECT CASE + - NULLIF ( + - ( 25 ), + - 67 ) WHEN - 71 THEN 78 * + + 19 + 56 + 74 WHEN - 41 / - 51 THEN NULL ELSE NULL END * 53 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6108
SELECT 8 DIV ( + 94 ) * 73 col1
----
0

skipif mysql # not compatible
query I rowsort label-6108
SELECT 8 / ( + 94 ) * 73 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT CAST( - 19 AS SIGNED ) * - 78 AS col1
----
1482

skipif mysql # not compatible
query I rowsort label-6109
SELECT CAST ( - 19 AS INTEGER ) * - 78 AS col1
----
1482

query II rowsort
SELECT 27 + + 89 * 36 AS col2, ( + 71 )
----
3231
71

onlyif mysql # DIV for integer division: 
query II rowsort label-6111
SELECT 98 DIV + 65 AS col0, 92 AS col2
----
1
92

skipif mysql # not compatible
query II rowsort label-6111
SELECT 98 / + 65 AS col0, 92 AS col2
----
1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL - ( + 59 ) + MIN( + 45 )
----
-14

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - ( + 59 ) + MIN ( + 45 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL + COUNT( * ) + + + 55 + + 1 + ( + 39 ) * + 23
----
954

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + COUNT ( * ) + + + 55 + + 1 + ( + 39 ) * + 23
----
954

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6114
SELECT - 71 + - + 83, + CAST( NULL AS SIGNED ) AS col2
----
-154
NULL

skipif mysql # not compatible
query II rowsort label-6114
SELECT - 71 + - + 83, + CAST ( NULL AS INTEGER ) AS col2
----
-154
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6115
SELECT DISTINCT - - 22 + - CAST( NULL AS DECIMAL ) AS col0, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-6115
SELECT DISTINCT - - 22 + - CAST ( NULL AS REAL ) AS col0, 55
----
NULL
55

query I rowsort
SELECT DISTINCT - COALESCE ( - 60, - 4 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL + - MIN( DISTINCT + CAST( 9 AS SIGNED ) ) + 27 col0
----
18

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + - MIN ( DISTINCT + CAST ( 9 AS INTEGER ) ) + 27 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT 51 - + SUM( + - 79 )
----
130

skipif mysql # not compatible
query I rowsort label-6118
SELECT 51 - + SUM ( + - 79 )
----
130

query II rowsort
SELECT 82 * - + 44 AS col2, 74
----
-3608
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6120
SELECT DISTINCT + - 18 * 27 * 10 + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0, + SUM( ALL 98 ) - + 87 - + 27 DIV 20 + 49 DIV - + 12
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6120
SELECT DISTINCT + - 18 * 27 * 10 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0, + SUM ( ALL 98 ) - + 87 - + 27 / 20 + 49 / - + 12
----
NULL
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6121
SELECT ALL + + COUNT( * ) + + 56, 56 * 51 col2
----
57
2856

skipif mysql # not compatible
query II rowsort label-6121
SELECT ALL + + COUNT ( * ) + + 56, 56 * 51 col2
----
57
2856

query I rowsort
SELECT - 87 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT + - 51 + + - 85 * - COUNT( + 47 ) + + 56 + + 52 * - 44
----
-2198

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + - 51 + + - 85 * - COUNT ( + 47 ) + + 56 + + 52 * - 44
----
-2198

query I rowsort
SELECT ALL ( - 56 ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT - + ( + + 38 ) DIV - 82 * 99 * 86 - - - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6125
SELECT - + ( + + 38 ) / - 82 * 99 * 86 - - - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT 2 - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT 2 - + COUNT ( * )
----
1

query I rowsort
SELECT 90 * + 47 AS col0
----
4230

query I rowsort
SELECT DISTINCT 17 * - - 4 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT DISTINCT - 50, + COUNT( * ) col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-6129
SELECT DISTINCT - 50, + COUNT ( * ) col0
----
-50
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6130
SELECT 63 * + ( + + 98 ) AS col2, + COUNT( * ) * + - 59
----
6174
-59

skipif mysql # not compatible
query II rowsort label-6130
SELECT 63 * + ( + + 98 ) AS col2, + COUNT ( * ) * + - 59
----
6174
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6131
SELECT ( 49 ) * + - 62 - + ( + + 68 ) + + COUNT( * ) - + + 25 DIV - 43, + 1 AS col1
----
-3105
1

skipif mysql # not compatible
query II rowsort label-6131
SELECT ( 49 ) * + - 62 - + ( + + 68 ) + + COUNT ( * ) - + + 25 / - 43, + 1 AS col1
----
-3105
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT CASE - 28 WHEN + + 8 * 75 - + COUNT( * ) * - ( + + ( - 66 ) ) + 83 * - + 22 THEN NULL ELSE COUNT( * ) + + 95 + + 73 END + - 28 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-6132
SELECT CASE - 28 WHEN + + 8 * 75 - + COUNT ( * ) * - ( + + ( - 66 ) ) + 83 * - + 22 THEN NULL ELSE COUNT ( * ) + + 95 + + 73 END + - 28 AS col2
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT - 61 * + 51 - + NULLIF ( + - COUNT( * ), COUNT( * ) * - + 94 ) col1, 97 AS col1
----
-3110
97

skipif mysql # not compatible
query II rowsort label-6133
SELECT - 61 * + 51 - + NULLIF ( + - COUNT ( * ), COUNT ( * ) * - + 94 ) col1, 97 AS col1
----
-3110
97

query II rowsort
SELECT ALL - 53, + 70 * + 41 AS col0
----
-53
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT 92 + - - 77 * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6135
SELECT 92 + - - 77 * - COUNT ( * )
----
15

query I rowsort
SELECT - 61 * - 55 + + 90
----
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL SUM( DISTINCT - 26 ) + 29
----
3

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL SUM ( DISTINCT - 26 ) + 29
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL - COUNT( 0 ) + + NULLIF ( 75, 16 ) + - - 38 + 54 AS col1
----
166

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - COUNT ( 0 ) + + NULLIF ( 75, 16 ) + - - 38 + 54 AS col1
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT 40 * ( - 3 ) + + + MIN( DISTINCT 89 ) * - - COUNT( * ) DIV COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6139
SELECT 40 * ( - 3 ) + + + MIN ( DISTINCT 89 ) * - - COUNT ( * ) / COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT ALL 43 + 16 + - 33 - + - 45
----
71

query I rowsort
SELECT - 27 + + 3 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT 64 * + 85 * - - CAST( - 33 AS SIGNED ) AS col0
----
-179520

skipif mysql # not compatible
query I rowsort label-6142
SELECT 64 * + 85 * - - CAST ( - 33 AS INTEGER ) AS col0
----
-179520

query I rowsort
SELECT - ( - + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL + 86 + + SUM( ALL - - 26 ) * + 69
----
1880

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + 86 + + SUM ( ALL - - 26 ) * + 69
----
1880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6145
SELECT ALL + CAST( 51 AS SIGNED ) + + 95 + - 44
----
102

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL + CAST ( 51 AS INTEGER ) + + 95 + - 44
----
102

query I rowsort
SELECT ( - 63 ) * - 96
----
6048

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT SUM( ALL + 92 ) - - + 84 * 69 + + 85 + 31 AS col1, + COALESCE ( + 46, 79 * - 65, - 80 )
----
6004
46

skipif mysql # not compatible
query II rowsort label-6147
SELECT SUM ( ALL + 92 ) - - + 84 * 69 + + 85 + 31 AS col1, + COALESCE ( + 46, 79 * - 65, - 80 )
----
6004
46

query I rowsort
SELECT - 76 + + 6 col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6149
SELECT - 90 + ( + COUNT( * ) ) * SUM( ALL + 11 ) + - CAST( NULL AS SIGNED ), + 36 * + 9 DIV - COUNT( * ) AS col0
----
NULL
-324

skipif mysql # not compatible
query II rowsort label-6149
SELECT - 90 + ( + COUNT ( * ) ) * SUM ( ALL + 11 ) + - CAST ( NULL AS INTEGER ), + 36 * + 9 / - COUNT ( * ) AS col0
----
NULL
-324

query I rowsort
SELECT + 29 * + NULLIF ( + 22, + 37 * - 74 + + 56 * + 5 + + 98 ) col0
----
638

query I rowsort
SELECT - ( + 98 ) * 20 * - 93 + - - 22
----
182302

onlyif mysql # DIV for integer division: 
query I rowsort label-6152
SELECT ALL - 29 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - 29 / + 81
----
0

query I rowsort
SELECT + 43 * + 41 * + + 74
----
130462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6154
SELECT - + NULLIF ( - ( - 69 ), + ( + 15 ) * - - CASE - - ( - + 5 ) WHEN + 30 / - CAST( NULL AS SIGNED ) + - 16 * + 44 + - + COUNT( * ) THEN - CASE - COUNT( * ) WHEN + - 83 THEN NULL ELSE - ( ( ( 4 ) ) ) + 13 * 31 END WHEN AVG ( 82 ) + - ( - 97 + 70 * + 61 ) THEN NULL WHEN - 41 * 1 + + 9 * + MAX( - 45 * 73 ) THEN + ( + 63 ) * + 42 ELSE NULL END ) + 13
----
-56

skipif mysql # not compatible
query I rowsort label-6154
SELECT - + NULLIF ( - ( - 69 ), + ( + 15 ) * - - CASE - - ( - + 5 ) WHEN + 30 / - CAST ( NULL AS INTEGER ) + - 16 * + 44 + - + COUNT ( * ) THEN - CASE - COUNT ( * ) WHEN + - 83 THEN NULL ELSE - ( ( ( 4 ) ) ) + 13 * 31 END WHEN AVG ( 82 ) + - ( - 97 + 70 * + 61 ) THEN NULL WHEN - 41 * 1 + + 9 * + MAX ( - 45 * 73 ) THEN + ( + 63 ) * + 42 ELSE NULL END ) + 13
----
-56

query I rowsort
SELECT - + 43 - - - 9 col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT + + COUNT( * ) * - 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT + + COUNT ( * ) * - 66 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT - - MIN( + 31 ) + NULLIF ( + 27, + + MIN( DISTINCT ( - 23 ) ) + 62 ), + 34 AS col2
----
58
34

skipif mysql # not compatible
query II rowsort label-6157
SELECT - - MIN ( + 31 ) + NULLIF ( + 27, + + MIN ( DISTINCT ( - 23 ) ) + 62 ), + 34 AS col2
----
58
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - + MAX( ALL + - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6158
SELECT - + MAX ( ALL + - 59 )
----
59

query I rowsort
SELECT - 81 + + 42 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT - 97 * COUNT( * ) * 40 AS col2
----
-3880

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT - 97 * COUNT ( * ) * 40 AS col2
----
-3880

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT - 16 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT - 16 / 94 AS col0
----
0

query I rowsort
SELECT ALL - 79 * + 88 * - 36 AS col0
----
250272

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT DISTINCT + COALESCE ( - + 35, - - 49 DIV + + 75 )
----
-35

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + COALESCE ( - + 35, - - 49 / + + 75 )
----
-35

query I rowsort
SELECT NULLIF ( 48, + 81 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6165
SELECT COALESCE ( - NULLIF ( + - COALESCE ( - 31, + 48 + + 62 ), - COUNT( * ) ), - 97 DIV - CAST( - 93 AS SIGNED ) ) AS col2, COUNT( * ) * + 32 * 46
----
-31
1472

skipif mysql # not compatible
query II rowsort label-6165
SELECT COALESCE ( - NULLIF ( + - COALESCE ( - 31, + 48 + + 62 ), - COUNT ( * ) ), - 97 / - CAST ( - 93 AS INTEGER ) ) AS col2, COUNT ( * ) * + 32 * 46
----
-31
1472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT - 10 + + - CAST( + 39 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-6166
SELECT - 10 + + - CAST ( + 39 AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT + 86 * + - MAX( + 0 ) * - - 51 * - 88
----
0

skipif mysql # not compatible
query I rowsort label-6167
SELECT + 86 * + - MAX ( + 0 ) * - - 51 * - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT - 98 * 21 DIV + + 59 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6168
SELECT - 98 * 21 / + + 59 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT + 4 + + CAST( NULL AS SIGNED ) + - - 46 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT + 4 + + CAST ( NULL AS INTEGER ) + - - 46 * + 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6170
SELECT ALL - 34 DIV + 81 AS col0, COUNT( ALL 51 ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6170
SELECT ALL - 34 / + 81 AS col0, COUNT ( ALL 51 ) col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT ALL 95 * + 59 * - - 55 * + - CASE + - 87 WHEN - 87 * - 92 THEN + CASE + COUNT( * ) WHEN + 23 * - 37 THEN + NULLIF ( 45, 49 + + - 41 ) END - - NULLIF ( + 40, + 19 + 48 - 82 ) + + COUNT( * ) * COUNT( * ) WHEN ( 30 ) THEN NULL END + - ( 38 ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL 95 * + 59 * - - 55 * + - CASE + - 87 WHEN - 87 * - 92 THEN + CASE + COUNT ( * ) WHEN + 23 * - 37 THEN + NULLIF ( 45, 49 + + - 41 ) END - - NULLIF ( + 40, + 19 + 48 - 82 ) + + COUNT ( * ) * COUNT ( * ) WHEN ( 30 ) THEN NULL END + - ( 38 ) * + 48
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6172
SELECT - 50 DIV + + 91 AS col0, - 31 + - + 43 AS col2
----
0
-74

skipif mysql # not compatible
query II rowsort label-6172
SELECT - 50 / + + 91 AS col0, - 31 + - + 43 AS col2
----
0
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL + 51 * - + COUNT( * ) + - 82 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + 51 * - + COUNT ( * ) + - 82 AS col1
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT ALL - COUNT( * ) DIV + 12 col0
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - COUNT ( * ) / + 12 col0
----
0

query I rowsort
SELECT ALL - 17 * 24 AS col1
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT - COUNT( * ) * + + 84 * - COALESCE ( - + 93, 89 * - + 58 )
----
-7812

skipif mysql # not compatible
query I rowsort label-6176
SELECT - COUNT ( * ) * + + 84 * - COALESCE ( - + 93, 89 * - + 58 )
----
-7812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6177
SELECT + COUNT( 9 ) * + 70 DIV - + 36
----
-1

skipif mysql # not compatible
query I rowsort label-6177
SELECT + COUNT ( 9 ) * + 70 / - + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL - 24 * - 97 + - - COALESCE ( 34, + - ( + - 71 ) * + ( - SUM( + 52 ) ) + + 89 + - 60 * - 75 * - - 8 ) * + - COUNT( * )
----
2294

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - 24 * - 97 + - - COALESCE ( 34, + - ( + - 71 ) * + ( - SUM ( + 52 ) ) + + 89 + - 60 * - 75 * - - 8 ) * + - COUNT ( * )
----
2294

query I rowsort
SELECT + ( 96 )
----
96

query I rowsort
SELECT + - ( - - 27 ) AS col2
----
-27

query I rowsort
SELECT ALL + - 50 col2
----
-50

query I rowsort
SELECT + - 21 * 21 - - 46 AS col2
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL 77 - + MIN( + + 12 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL 77 - + MIN ( + + 12 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT + MIN( 87 ) - - + 5 + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-6184
SELECT + MIN ( 87 ) - - + 5 + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL - - 1 * - 12 * - + COUNT( * ) + - COALESCE ( + NULLIF ( - 35, - + 37 * + 17 + - 31 + + - COUNT( * ) * 86 + - 72 - - ( + COUNT( * ) ) ), NULLIF ( 33, + 93 ) ) + - 76 + - 34 * + 94
----
-3225

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL - - 1 * - 12 * - + COUNT ( * ) + - COALESCE ( + NULLIF ( - 35, - + 37 * + 17 + - 31 + + - COUNT ( * ) * 86 + - 72 - - ( + COUNT ( * ) ) ), NULLIF ( 33, + 93 ) ) + - 76 + - 34 * + 94
----
-3225

query I rowsort
SELECT + - ( + 6 ) + 49 AS col1
----
43

query II rowsort
SELECT DISTINCT - 32 * + - 81, - 88 + - 39 AS col2
----
2592
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL + CASE - 34 WHEN + 76 * + 59 + + 37 THEN - 40 + + + SUM( DISTINCT + 91 ) * + 76 ELSE - 99 * + 87 * + 70 END * + 91 AS col2
----
-54864810

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + CASE - 34 WHEN + 76 * + 59 + + 37 THEN - 40 + + + SUM ( DISTINCT + 91 ) * + 76 ELSE - 99 * + 87 * + 70 END * + 91 AS col2
----
-54864810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6189
SELECT + + 94 * + CAST( NULL AS SIGNED ) * + 23 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT + + 94 * + CAST ( NULL AS INTEGER ) * + 23 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + - COUNT( * ) + 59
----
58

skipif mysql # not compatible
query I rowsort label-6190
SELECT + - COUNT ( * ) + 59
----
58

query I rowsort
SELECT ALL - ( + 51 )
----
-51

query I rowsort
SELECT ALL - 39 * 38 AS col2
----
-1482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT DISTINCT - 81 * + + 47 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - 81 * + + 47 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 12, - 87 * - 92 * - ( - - 68 ) ) AS col2
----
-12

query I rowsort
SELECT ALL + 11 * + 51
----
561

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT ALL 40 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL 40 / - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + 5 * 36 * COUNT( * ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-6197
SELECT + 5 * 36 * COUNT ( * ) AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT - 10 * - ( + - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6198
SELECT - 10 * - ( + - COUNT ( * ) )
----
-10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6199
SELECT 39 / - + 3 - - 47 * + + CAST( NULL AS DECIMAL ) + CAST( 58 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT 39 / - + 3 - - 47 * + + CAST ( NULL AS REAL ) + CAST ( 58 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT CAST( - - 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-6200
SELECT CAST ( - - 62 AS INTEGER )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT CAST( + - 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-6201
SELECT CAST ( + - 45 AS INTEGER )
----
-45

query I rowsort
SELECT - 74 * 66
----
-4884

query I rowsort
SELECT DISTINCT 98 * + 94
----
9212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6204
SELECT ALL + COUNT( * ) DIV 62 + - 49 + + 9
----
-40

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + COUNT ( * ) / 62 + - 49 + + 9
----
-40

query I rowsort
SELECT - 53 * - 63 - + 52 + + + 85
----
3372

query I rowsort
SELECT ALL - 49 * + 29 * - 46
----
65366

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL + MIN( 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL + MIN ( 34 ) AS col2
----
34

query I rowsort
SELECT - 14 * - 44
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL + MAX( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + MAX ( 36 )
----
36

query I rowsort
SELECT + ( + - 58 ) * 19 + + 65 - + + ( + 68 ) * 16
----
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - 9 + + COUNT( * ) * - - COALESCE ( - 75, COUNT( * ) + + 16 + + + 3 * - + 27, 83 ) + - COALESCE ( - 53, - 42 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-6211
SELECT - 9 + + COUNT ( * ) * - - COALESCE ( - 75, COUNT ( * ) + + 16 + + + 3 * - + 27, 83 ) + - COALESCE ( - 53, - 42 ) col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + + MAX( DISTINCT 16 )
----
16

skipif mysql # not compatible
query I rowsort label-6212
SELECT + + MAX ( DISTINCT 16 )
----
16

query I rowsort
SELECT ALL + NULLIF ( + + ( + + 27 ), - 58 ) AS col0
----
27

query I rowsort
SELECT ALL + 95 * - - 6
----
570

query I rowsort
SELECT ( + 9 ) * - 19 * + 1 AS col0
----
-171

query I rowsort
SELECT ALL - - 82 - - 50 + + 50 * - ( - ( + ( 55 ) ) ) + 31 col2
----
2913

onlyif mysql # DIV for integer division: 
query II rowsort label-6217
SELECT - 10, 15 DIV - 66 AS col0
----
-10
0

skipif mysql # not compatible
query II rowsort label-6217
SELECT - 10, 15 / - 66 AS col0
----
-10
0

query I rowsort
SELECT + 72 + + 41 AS col2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6219
SELECT NULLIF ( - 78, - AVG ( + 21 ) DIV + MAX( 98 ) + - + 52 ) DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6219
SELECT NULLIF ( - 78, - AVG ( + 21 ) / + MAX ( 98 ) + - + 52 ) / + 97 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT 95 * - + 24 * + 80 * COUNT( * ) + + COALESCE ( + - CAST( NULL AS SIGNED ), - 55 ) * COUNT( * ) * - 96
----
-177120

skipif mysql # not compatible
query I rowsort label-6220
SELECT 95 * - + 24 * + 80 * COUNT ( * ) + + COALESCE ( + - CAST ( NULL AS INTEGER ), - 55 ) * COUNT ( * ) * - 96
----
-177120

query I rowsort
SELECT 83 * 31 AS col1
----
2573

query I rowsort
SELECT - 33 col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT 35 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT 35 + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT - MAX( ALL + - 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6224
SELECT - MAX ( ALL + - 72 ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6225
SELECT ALL 40 + 98 + COUNT( * ) + + 45 AS col2, + 51 + CAST( NULL AS DECIMAL ) * COUNT( * ) + + + 37 + + ( - 61 ) + - + 47 * + + 36
----
184
NULL

skipif mysql # not compatible
query II rowsort label-6225
SELECT ALL 40 + 98 + COUNT ( * ) + + 45 AS col2, + 51 + CAST ( NULL AS REAL ) * COUNT ( * ) + + + 37 + + ( - 61 ) + - + 47 * + + 36
----
184
NULL

query I rowsort
SELECT ALL 99 * + 25 AS col0
----
2475

query II rowsort
SELECT - 50 AS col2, 57 AS col2
----
-50
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT MAX( - 21 ) + - 49 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6228
SELECT MAX ( - 21 ) + - 49 AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT 34 * + 7 * + 76 * + CAST( NULLIF ( + - CAST( NULL AS SIGNED ), - 39 / - 51 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT 34 * + 7 * + 76 * + CAST ( NULLIF ( + - CAST ( NULL AS INTEGER ), - 39 / - 51 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL 93 + COUNT( * ) - - + 75
----
169

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL 93 + COUNT ( * ) - - + 75
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT 82 + + 8 * - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6231
SELECT 82 + + 8 * - + COUNT ( * )
----
74

query I rowsort
SELECT 18 - + 69 + - 12 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT 8 + + COUNT( * ) + COUNT( * ) * - + 75 + 84 - 3 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6233
SELECT 8 + + COUNT ( * ) + COUNT ( * ) * - + 75 + 84 - 3 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT 92 + - ( - COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT 92 + - ( - COUNT ( * ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6235
SELECT + 82, + NULLIF ( + - COALESCE ( - CAST( NULL AS SIGNED ), - - ( 84 ) ), COALESCE ( CAST( CASE + + CASE - COUNT( * ) WHEN + 1 THEN + 20 END WHEN 7 - - 90 THEN + - MAX( - 73 ) + - 56 WHEN - - 69 - + - 82 * 30 THEN NULL ELSE 73 * NULLIF ( 14 * - 6, 71 ) END AS SIGNED ), 21 + 0, 92 ) * + 2 + 14 ) AS col0
----
82
-84

skipif mysql # not compatible
query II rowsort label-6235
SELECT + 82, + NULLIF ( + - COALESCE ( - CAST ( NULL AS INTEGER ), - - ( 84 ) ), COALESCE ( CAST ( CASE + + CASE - COUNT ( * ) WHEN + 1 THEN + 20 END WHEN 7 - - 90 THEN + - MAX ( - 73 ) + - 56 WHEN - - 69 - + - 82 * 30 THEN NULL ELSE 73 * NULLIF ( 14 * - 6, 71 ) END AS INTEGER ), 21 + 0, 92 ) * + 2 + 14 ) AS col0
----
82
-84

query I rowsort
SELECT 36 + - + 23 col2
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-6237
SELECT ( + + 12 ) DIV 77 DIV - 29 * + + 47 * + 48, + 14 AS col2
----
0
14

skipif mysql # not compatible
query II rowsort label-6237
SELECT ( + + 12 ) / 77 / - 29 * + + 47 * + 48, + 14 AS col2
----
0
14

query I rowsort
SELECT 42 * 24
----
1008

query I rowsort
SELECT DISTINCT + 72 * + 38
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT COUNT( * ) * + - SUM( DISTINCT - + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-6240
SELECT COUNT ( * ) * + - SUM ( DISTINCT - + 66 )
----
66

query I rowsort
SELECT DISTINCT - 0 * + + 79 AS col2
----
0

query I rowsort
SELECT + - ( COALESCE ( - 97, 41 ) )
----
97

query I rowsort
SELECT DISTINCT - - 55 AS col2
----
55

query II rowsort
SELECT 79, + NULLIF ( ( + 65 ), - 69 * 28 + + 99 + - 99 * - - 9 * - + 59 ) AS col2
----
79
65

query I rowsort
SELECT 28 * - + 34 col2
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT 72 * - COUNT( * ) * COALESCE ( - 79, + 46 * COUNT( * ), COUNT( * ) )
----
5688

skipif mysql # not compatible
query I rowsort label-6246
SELECT 72 * - COUNT ( * ) * COALESCE ( - 79, + 46 * COUNT ( * ), COUNT ( * ) )
----
5688

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT - 95 - + - MIN( - 86 ) AS col0
----
-181

skipif mysql # not compatible
query I rowsort label-6247
SELECT - 95 - + - MIN ( - 86 ) AS col0
----
-181

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT ALL - - COUNT( * ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6248
SELECT ALL - - COUNT ( * ) AS col0, COUNT ( * )
----
1
1

query I rowsort
SELECT ( - - ( - 67 ) ) * - 30 col1
----
2010

query II rowsort
SELECT - 5 AS col2, 9 + - + 69 + + 78 * - 0 AS col0
----
-5
-60

query II rowsort
SELECT ALL + 54 col0, - 34
----
54
-34

query I rowsort
SELECT ALL - NULLIF ( + 9, + + 17 )
----
-9

query I rowsort
SELECT ALL + + 75 + + 78 * + 51 + - 49
----
4004

query I rowsort
SELECT - ( + 50 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL 84 + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL 84 + + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT - 54 + - ( ( ( + COALESCE ( - + 35, 93, - NULLIF ( - ( - COUNT( * ) ), - 21 ) ) ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-6256
SELECT - 54 + - ( ( ( + COALESCE ( - + 35, 93, - NULLIF ( - ( - COUNT ( * ) ), - 21 ) ) ) ) )
----
-19

query I rowsort
SELECT DISTINCT + 89 + 90
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT ALL CAST( - 53 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL CAST ( - 53 AS INTEGER ) AS col0
----
-53

query I rowsort
SELECT 77 * - 55
----
-4235

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT ALL + SUM( DISTINCT - 52 ) + + + 10 * - + 96, 80 AS col2
----
-1012
80

skipif mysql # not compatible
query II rowsort label-6260
SELECT ALL + SUM ( DISTINCT - 52 ) + + + 10 * - + 96, 80 AS col2
----
-1012
80

query I rowsort
SELECT 73 * 57
----
4161

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL MIN( ALL - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL MIN ( ALL - 64 )
----
-64

query II rowsort
SELECT 82 * - + 77 AS col1, 45
----
-6314
45

query I rowsort
SELECT DISTINCT + 66 * 47
----
3102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6265
SELECT ALL 87 + + 57 DIV - 17 * COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL 87 + + 57 / - 17 * COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query III rowsort label-6266
SELECT DISTINCT - 94 + - + 79 AS col2, COUNT( * ), 45 + + ( + COUNT( * ) ) AS col0
----
-173
1
46

skipif mysql # not compatible
query III rowsort label-6266
SELECT DISTINCT - 94 + - + 79 AS col2, COUNT ( * ), 45 + + ( + COUNT ( * ) ) AS col0
----
-173
1
46

query I rowsort
SELECT DISTINCT NULLIF ( + 18, + 44 ) * + - 27
----
-486

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT 7 - - 69, - COUNT( + 66 ) col1
----
76
-1

skipif mysql # not compatible
query II rowsort label-6268
SELECT 7 - - 69, - COUNT ( + 66 ) col1
----
76
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6270
SELECT CAST( ( - COUNT( * ) ) AS SIGNED ) DIV + 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6270
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER ) / + 8 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT ALL + 26 * - 62 DIV + COUNT( * ) - + - COUNT( * ) AS col1
----
-1611

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + 26 * - 62 / + COUNT ( * ) - + - COUNT ( * ) AS col1
----
-1611

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT CASE + 63 WHEN + 3 THEN - 19 * - 71 WHEN + + COUNT( * ) THEN NULL WHEN + - 6 THEN - - 47 * + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT CASE + 63 WHEN + 3 THEN - 19 * - 71 WHEN + + COUNT ( * ) THEN NULL WHEN + - 6 THEN - - 47 * + 76 END AS col2
----
NULL

query II rowsort
SELECT ( + 73 ) * + 69 AS col2, 95
----
5037
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6274
SELECT ALL ( - + 27 ) * - 9 - + 8 * - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL ( - + 27 ) * - 9 - + 8 * - + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT - 7 * - 86 - + - 16 AS col0, - 24
----
618
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT + + COUNT( ALL 40 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + + COUNT ( ALL 40 ) col0
----
1

query I rowsort
SELECT ALL + + 87 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6278
SELECT + COUNT( * ) * - 70 + + 99 + + 13 + + 19 + - NULLIF ( + 48, - - CAST( NULL AS SIGNED ) * - 8 + - 85 ) * + 79 + + - 98
----
-3829

skipif mysql # not compatible
query I rowsort label-6278
SELECT + COUNT ( * ) * - 70 + + 99 + + 13 + + 19 + - NULLIF ( + 48, - - CAST ( NULL AS INTEGER ) * - 8 + - 85 ) * + 79 + + - 98
----
-3829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT - - 51 / - - CAST( NULL AS SIGNED ) / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT - - 51 / - - CAST ( NULL AS INTEGER ) / - 98
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6280
SELECT DISTINCT - 45 DIV + 46 AS col2, 90
----
0
90

skipif mysql # not compatible
query II rowsort label-6280
SELECT DISTINCT - 45 / + 46 AS col2, 90
----
0
90

onlyif mysql # DIV for integer division: 
query II rowsort label-6281
SELECT ALL 23 * + 11, 36 DIV 11 AS col1
----
253
3

skipif mysql # not compatible
query II rowsort label-6281
SELECT ALL 23 * + 11, 36 / 11 AS col1
----
253
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6282
SELECT + - CAST( NULL AS SIGNED ) + 39 - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT + - CAST ( NULL AS INTEGER ) + 39 - 90
----
NULL

query I rowsort
SELECT 1 * - 78 - + 42 * - + COALESCE ( + + 73, + 62 + - 75 * 99 ) AS col0
----
2988

query I rowsort
SELECT DISTINCT + + 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL NULLIF ( - 91, + 94 * 74 + 21 + + ( - - 10 ) + + 93 + + 1 * - COUNT( * ) * + 45 * + + 14 * 97 * MIN( - CASE WHEN ( - 54 IN ( 40 ) ) THEN NULL WHEN 47 + + 20 IS NULL THEN - 77 / 47 END ) * - ( ( ( - 9 ) ) ) / + 33 + 95 ) * - 95 + 63 * + 35
----
10850

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL NULLIF ( - 91, + 94 * 74 + 21 + + ( - - 10 ) + + 93 + + 1 * - COUNT ( * ) * + 45 * + + 14 * 97 * MIN ( - CASE WHEN ( - 54 IN ( 40 ) ) THEN NULL WHEN 47 + + 20 IS NULL THEN - 77 / 47 END ) * - ( ( ( - 9 ) ) ) / + 33 + 95 ) * - 95 + 63 * + 35
----
10850

query I rowsort
SELECT DISTINCT 94 * + + 33
----
3102

query I rowsort
SELECT ALL - + 2 + - 14 * + 92 AS col1
----
-1290

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6288
SELECT DISTINCT - 2 + 25 - - + 94 * + 90 - - 77 AS col0, - 8 * - CAST( NULL AS DECIMAL ) AS col2
----
8560
NULL

skipif mysql # not compatible
query II rowsort label-6288
SELECT DISTINCT - 2 + 25 - - + 94 * + 90 - - 77 AS col0, - 8 * - CAST ( NULL AS REAL ) AS col2
----
8560
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - 56 + COUNT( * ) * 23
----
-33

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 56 + COUNT ( * ) * 23
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT DISTINCT - CAST( + + 23 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - CAST ( + + 23 AS INTEGER ) AS col2
----
-23

query I rowsort
SELECT ALL - + 10 + + + COALESCE ( - - 37, 25 )
----
27

query I rowsort
SELECT - + 88 + + 67 + - ( 71 )
----
-92

query II rowsort
SELECT 6, + 27 + + 52 AS col2
----
6
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT MAX( + + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT MAX ( + + 0 ) AS col1
----
0

query I rowsort
SELECT ALL 81 + 98
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6296
SELECT ALL - COUNT( 38 ) * - COUNT( * ) DIV - - SUM( - 10 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - COUNT ( 38 ) * - COUNT ( * ) / - - SUM ( - 10 ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( - + 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT DISTINCT - COUNT( * ) DIV COALESCE ( + MIN( + 93 ), + + 72 )
----
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT - COUNT ( * ) / COALESCE ( + MIN ( + 93 ), + + 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL + COUNT( * ) * 23 * - 81 * - - 44 AS col1
----
-81972

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL + COUNT ( * ) * 23 * - 81 * - - 44 AS col1
----
-81972

query I rowsort
SELECT - 45 + - 59 * - 36 AS col0
----
2079

query I rowsort
SELECT DISTINCT + 44 - - 3 AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6302
SELECT ALL - 90 * 75 * + 10 AS col2, + COUNT( * ) * + COUNT( * ) AS col0
----
-67500
1

skipif mysql # not compatible
query II rowsort label-6302
SELECT ALL - 90 * 75 * + 10 AS col2, + COUNT ( * ) * + COUNT ( * ) AS col0
----
-67500
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6303
SELECT DISTINCT CASE 56 WHEN + + 2 + 18 * + + 91 + + 57 + - COUNT( * ) + - + 40 - + 9 + - - 17 * + 59 + - 43 + - + 25 DIV + 80 + - 83 + 37 THEN NULL WHEN 77 THEN NULL ELSE 98 + + - 35 - 85 DIV - - CAST( - 4 AS SIGNED ) END AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT CASE 56 WHEN + + 2 + 18 * + + 91 + + 57 + - COUNT ( * ) + - + 40 - + 9 + - - 17 * + 59 + - 43 + - + 25 / + 80 + - 83 + 37 THEN NULL WHEN 77 THEN NULL ELSE 98 + + - 35 - 85 / - - CAST ( - 4 AS INTEGER ) END AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL + 17 * - 52 * COUNT( * )
----
-884

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + 17 * - 52 * COUNT ( * )
----
-884

query I rowsort
SELECT - 9 + 13 * - 21 * - 56 AS col1
----
15279

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT - 68 DIV 18
----
-3

skipif mysql # not compatible
query I rowsort label-6306
SELECT - 68 / 18
----
-3

query I rowsort
SELECT + 74 * + + 84 AS col1
----
6216

query I rowsort
SELECT - 85 + + 82 col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6309
SELECT + 91 - + COUNT( * ) DIV - ( 26 ), 41 DIV + COUNT( * ) col0
----
91
41

skipif mysql # not compatible
query II rowsort label-6309
SELECT + 91 - + COUNT ( * ) / - ( 26 ), 41 / + COUNT ( * ) col0
----
91
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL + COUNT( * ) * - ( + 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + COUNT ( * ) * - ( + 70 ) AS col1
----
-70

query II rowsort
SELECT DISTINCT 86, - COALESCE ( - - 97, - + 36 - - - 5 ) AS col2
----
86
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT - 55 + 19 - + 35 DIV + ( 67 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6312
SELECT - 55 + 19 - + 35 / + ( 67 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + SUM( + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + SUM ( + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT ALL 26 * - - MIN( 1 ) col1, - ( - 85 ) col1
----
26
85

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL 26 * - - MIN ( 1 ) col1, - ( - 85 ) col1
----
26
85

query I rowsort
SELECT - 43 * - 64 AS col2
----
2752

query I rowsort
SELECT ALL - ( - 94 ) * - + 44 + - 72
----
-4208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6317
SELECT - CAST( NULL AS SIGNED ), + 17 col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-6317
SELECT - CAST ( NULL AS INTEGER ), + 17 col1
----
NULL
17

query II rowsort
SELECT + - 71, 30 col2
----
-71
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6319
SELECT + + CASE CAST( NULL AS SIGNED ) WHEN - + MIN( - + 81 ) THEN - + 24 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT + + CASE CAST ( NULL AS INTEGER ) WHEN - + MIN ( - + 81 ) THEN - + 24 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + + 30 + + 41 * - SUM( - 72 ) + 30 AS col1
----
3012

skipif mysql # not compatible
query I rowsort label-6320
SELECT + + 30 + + 41 * - SUM ( - 72 ) + 30 AS col1
----
3012

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT - - COUNT( * ) * + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT - - COUNT ( * ) * + 12 AS col1
----
12

query I rowsort
SELECT ALL + + ( + 6 ) * - 32 + + 1 + 46 AS col1
----
-145

query I rowsort
SELECT DISTINCT 49 * 66 + + 33 AS col1
----
3267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT + 27 * + COALESCE ( + - 68, + + 58, + CASE MIN( ALL - 6 ) WHEN + NULLIF ( + + MIN( - 55 ), - ( + + 99 ) ) + + 57 - - + 82 THEN NULL WHEN - + ( + CAST( - 55 AS SIGNED ) ) THEN + 70 * - + 90 END + ( - + 54 ) ) * + 87
----
-159732

skipif mysql # not compatible
query I rowsort label-6324
SELECT + 27 * + COALESCE ( + - 68, + + 58, + CASE MIN ( ALL - 6 ) WHEN + NULLIF ( + + MIN ( - 55 ), - ( + + 99 ) ) + + 57 - - + 82 THEN NULL WHEN - + ( + CAST ( - 55 AS INTEGER ) ) THEN + 70 * - + 90 END + ( - + 54 ) ) * + 87
----
-159732

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL + COUNT( DISTINCT 44 )
----
1

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + COUNT ( DISTINCT 44 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT + CASE ( - + COUNT( * ) ) WHEN CASE - ( 54 ) WHEN 23 + + - 65 THEN NULL WHEN + - SUM( 35 ) + - 61 THEN + ( + 49 ) - + CAST( NULL AS SIGNED ) + + 21 * 48 ELSE - + COUNT( * ) * - 90 END THEN NULL WHEN - - 61 / 97 THEN - ( - 69 ) ELSE + + 83 END
----
83

skipif mysql # not compatible
query I rowsort label-6326
SELECT + CASE ( - + COUNT ( * ) ) WHEN CASE - ( 54 ) WHEN 23 + + - 65 THEN NULL WHEN + - SUM ( 35 ) + - 61 THEN + ( + 49 ) - + CAST ( NULL AS INTEGER ) + + 21 * 48 ELSE - + COUNT ( * ) * - 90 END THEN NULL WHEN - - 61 / 97 THEN - ( - 69 ) ELSE + + 83 END
----
83

query II rowsort
SELECT + + 78 + + 92 * + + 80, 5 col2
----
7438
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT DISTINCT 58 * AVG ( DISTINCT - 58 ) + + 32 + 22 + - + CAST( NULL AS SIGNED ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT 58 * AVG ( DISTINCT - 58 ) + + 32 + 22 + - + CAST ( NULL AS INTEGER ) * + 97
----
NULL

query I rowsort
SELECT + ( + - 42 ) AS col2
----
-42

query I rowsort
SELECT ALL + NULLIF ( - 47, - AVG ( DISTINCT - ( + 70 ) ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL - 70 * + - 57 + - COUNT( * ) / + CASE 92 WHEN ( + 9 ) THEN 91 END + - 65 + - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL - 70 * + - 57 + - COUNT ( * ) / + CASE 92 WHEN ( + 9 ) THEN 91 END + - 65 + - - 59
----
NULL

query I rowsort
SELECT + + 34 - - ( + 83 ) + 16 + - 46 * 49 * + + 94
----
-211743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT + - 6 * - ( - 3 ) * 58 - ( - CASE + + 75 WHEN - COALESCE ( + MAX( CAST( + 21 AS SIGNED ) ), - + CAST( NULL AS SIGNED ), + NULLIF ( + 21, + 35 ) ) * 50 + - - 43 + - 75 THEN + + SUM( + + CAST( NULL AS SIGNED ) ) ELSE + CASE - - ( + - 28 ) WHEN 88 * - 26 - + MIN( DISTINCT - 8 ) THEN + 86 * 0 WHEN 43 + - 70 THEN NULL ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT + - 6 * - ( - 3 ) * 58 - ( - CASE + + 75 WHEN - COALESCE ( + MAX ( CAST ( + 21 AS INTEGER ) ), - + CAST ( NULL AS INTEGER ), + NULLIF ( + 21, + 35 ) ) * 50 + - - 43 + - 75 THEN + + SUM ( + + CAST ( NULL AS INTEGER ) ) ELSE + CASE - - ( + - 28 ) WHEN 88 * - 26 - + MIN ( DISTINCT - 8 ) THEN + 86 * 0 WHEN 43 + - 70 THEN NULL ELSE NULL END END )
----
NULL

query II rowsort
SELECT ALL + 40, + 11 AS col0
----
40
11

query II rowsort
SELECT + + 83, 76 col1
----
83
76

query II rowsort
SELECT - 75 AS col0, 82 + + ( + 5 )
----
-75
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6337
SELECT ALL COUNT( * ) * - - ( + 23 ) + + 4 + - 6 + + + 33 DIV - 99 * COUNT( * ) + 28 + 31 * + 36
----
1165

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL COUNT ( * ) * - - ( + 23 ) + + 4 + - 6 + + + 33 / - 99 * COUNT ( * ) + 28 + 31 * + 36
----
1165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT - 4 - - CAST( NULL AS SIGNED ) * COUNT( * ) + + ( + - 28 ) + + + 48 * + 59 + - 5 + 83 * 45 * - - 87 * + 42 * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT - 4 - - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + ( + - 28 ) + + + 48 * + 59 + - 5 + 83 * 45 * - - 87 * + 42 * + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT - CAST( ( - - MIN( DISTINCT 7 ) ) AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-6339
SELECT - CAST ( ( - - MIN ( DISTINCT 7 ) ) AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL CASE + - 14 WHEN SUM( + 56 ) THEN - 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL CASE + - 14 WHEN SUM ( + 56 ) THEN - 5 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT + 92 * + MIN( + 54 ) AS col0
----
4968

skipif mysql # not compatible
query I rowsort label-6341
SELECT + 92 * + MIN ( + 54 ) AS col0
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL COALESCE ( 16, 50 * - 3 + + COUNT( * ), - + 14 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL COALESCE ( 16, 50 * - 3 + + COUNT ( * ), - + 14 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL CASE - - 88 WHEN - 46 + 10 THEN COUNT( * ) + + - 64 WHEN + + 7 THEN + - SUM( ALL 49 ) ELSE 81 END
----
81

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL CASE - - 88 WHEN - 46 + 10 THEN COUNT ( * ) + + - 64 WHEN + + 7 THEN + - SUM ( ALL 49 ) ELSE 81 END
----
81

query I rowsort
SELECT DISTINCT - 41 * + 70
----
-2870

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6345
SELECT 45 DIV - COUNT( * ), 14 AS col2
----
-45
14

skipif mysql # not compatible
query II rowsort label-6345
SELECT 45 / - COUNT ( * ), 14 AS col2
----
-45
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT ALL - 59 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - 59 / 73
----
0

query II rowsort
SELECT 52 * - 78, 64 AS col2
----
-4056
64

query II rowsort
SELECT 32 - - + 98 AS col2, 7
----
130
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6349
SELECT 35 DIV + + NULLIF ( - - 60, - 89 * + 84 * 44 * - - 22 + ( - 31 ) DIV + SUM( 44 ) + - 24 ), COALESCE ( + - 75, - COUNT( * ) - + 64 * - 49, + COUNT( * ) * + 95 ) col2
----
0
-75

skipif mysql # not compatible
query II rowsort label-6349
SELECT 35 / + + NULLIF ( - - 60, - 89 * + 84 * 44 * - - 22 + ( - 31 ) / + SUM ( 44 ) + - 24 ), COALESCE ( + - 75, - COUNT ( * ) - + 64 * - 49, + COUNT ( * ) * + 95 ) col2
----
0
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT - ( - + 22 ) - - COUNT( + 13 ) * - 22 col2
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT - ( - + 22 ) - - COUNT ( + 13 ) * - 22 col2
----
0

query I rowsort
SELECT ALL - - 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL + - COUNT( * ) + - 17
----
-18

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + - COUNT ( * ) + - 17
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT - 26 + 79 * 94 + 47 * + - MIN( DISTINCT + 11 ) AS col1
----
6883

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT - 26 + 79 * 94 + 47 * + - MIN ( DISTINCT + 11 ) AS col1
----
6883

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT - 62 + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT - 62 + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT 95 - + CAST( 71 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-6355
SELECT 95 - + CAST ( 71 AS INTEGER )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT - COALESCE ( 13, + - 26 * - + ( 64 ) + + ( CAST( - ( + COUNT( * ) ) AS SIGNED ) ) + + SUM( - 82 ) * + + 7 * - 33 * - + ( COUNT( DISTINCT 28 ) ) + + 69, 9 * + 42 * + - 9 + 28 * CAST( NULL AS SIGNED ) + + + COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6356
SELECT - COALESCE ( 13, + - 26 * - + ( 64 ) + + ( CAST ( - ( + COUNT ( * ) ) AS INTEGER ) ) + + SUM ( - 82 ) * + + 7 * - 33 * - + ( COUNT ( DISTINCT 28 ) ) + + 69, 9 * + 42 * + - 9 + 28 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT DISTINCT + + 18 + + CASE + + 14 WHEN + ( + 9 ) + 11 THEN NULL WHEN - - COALESCE ( + - CAST( - 55 AS SIGNED ), - 38 ) THEN + - 0 + 7 ELSE NULL END + + + 58 * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + + 18 + + CASE + + 14 WHEN + ( + 9 ) + 11 THEN NULL WHEN - - COALESCE ( + - CAST ( - 55 AS INTEGER ), - 38 ) THEN + - 0 + 7 ELSE NULL END + + + 58 * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL - + MAX( + + 46 ) + + 77
----
31

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL - + MAX ( + + 46 ) + + 77
----
31

query I rowsort
SELECT + 64 * - 13 AS col0
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL - 69 + SUM( DISTINCT - 81 ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - 69 + SUM ( DISTINCT - 81 ) AS col1
----
-150

query I rowsort
SELECT - 91 + + 85 * + 35 AS col0
----
2884

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL 31 * + - 46 + + 41 + - - COUNT( * ) * - 30 AS col0
----
-1415

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL 31 * + - 46 + + 41 + - - COUNT ( * ) * - 30 AS col0
----
-1415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6363
SELECT ALL + 8 - + + CAST( NULL AS SIGNED ) - + COALESCE ( - 33, - - 9 ) / - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + 8 - + + CAST ( NULL AS INTEGER ) - + COALESCE ( - 33, - - 9 ) / - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT - - COUNT( * ) * - + 70 + - 27 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - - COUNT ( * ) * - + 70 + - 27 AS col1
----
-97

query I rowsort
SELECT DISTINCT - ( + + 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT COUNT( * ) * 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6366
SELECT COUNT ( * ) * 65 AS col0
----
65

query I rowsort
SELECT ALL 34 * + - ( - 30 )
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6368
SELECT COUNT( * ) DIV - + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6368
SELECT COUNT ( * ) / - + 66 AS col2
----
0

query I rowsort
SELECT COALESCE ( + 17, - - 29 ) * - + 77
----
-1309

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT COUNT( * ) + 36 + - 55 col2
----
-18

skipif mysql # not compatible
query I rowsort label-6370
SELECT COUNT ( * ) + 36 + - 55 col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT DISTINCT NULLIF ( ( + 55 ), 98 ) DIV - 59 * - 65 * 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT NULLIF ( ( + 55 ), 98 ) / - 59 * - 65 * 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT 54 * + 25 + + 41 + 96 * - 38 * - 82 * + 4 + - CASE + MAX( 6 ) WHEN MAX( ALL + 22 ) / - 54 + - 14 + - 70 * + - 92 + - ( + NULLIF ( - 87, + SUM( ALL - 16 ) + - - 4 * - 3 ) ) * + 46 THEN - 23 * + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT 54 * + 25 + + 41 + 96 * - 38 * - 82 * + 4 + - CASE + MAX ( 6 ) WHEN MAX ( ALL + 22 ) / - 54 + - 14 + - 70 * + - 92 + - ( + NULLIF ( - 87, + SUM ( ALL - 16 ) + - - 4 * - 3 ) ) * + 46 THEN - 23 * + 61 END
----
NULL

query I rowsort
SELECT ALL ( - - 0 ) * 13 * - - 51
----
0

query I rowsort
SELECT 36 * 43
----
1548

query I rowsort
SELECT ALL - 54 * - 56 col1
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT 42 + + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT 42 + + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT DISTINCT 62 * - - COALESCE ( + CAST( NULL AS SIGNED ), + 56 )
----
3472

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT 62 * - - COALESCE ( + CAST ( NULL AS INTEGER ), + 56 )
----
3472

query II rowsort
SELECT ALL 78 AS col2, - 82 - - 98 * + 70
----
78
6778

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT 79 + COUNT( * ) col0
----
80

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT 79 + COUNT ( * ) col0
----
80

query II rowsort
SELECT 99, ( - NULLIF ( 93, - 18 ) ) * - 22 col2
----
99
2046

query I rowsort
SELECT 26 * 14
----
364

query I rowsort
SELECT 61 + + 56
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL COUNT( * ) + + + 57
----
58

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL COUNT ( * ) + + + 57
----
58

query I rowsort
SELECT 32 + - 16
----
16

query II rowsort
SELECT - 88, 12 AS col2
----
-88
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6386
SELECT CAST( NULL AS DECIMAL ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT CAST ( NULL AS REAL ) + - 92
----
NULL

query I rowsort
SELECT 77 - + 53 + + + 4 + + 57 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6388
SELECT ALL - + CAST( NULL AS DECIMAL ) + - - 55 - - + 50 + + 88 / - + 74 * - NULLIF ( + - 51, - CAST( - 21 AS SIGNED ) + + 54 + - COUNT( * ) ) + - 94 + - COUNT( * ), - 31 + + COUNT( * ) AS col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-6388
SELECT ALL - + CAST ( NULL AS REAL ) + - - 55 - - + 50 + + 88 / - + 74 * - NULLIF ( + - 51, - CAST ( - 21 AS INTEGER ) + + 54 + - COUNT ( * ) ) + - 94 + - COUNT ( * ), - 31 + + COUNT ( * ) AS col1
----
NULL
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6389
SELECT - CAST( NULL AS DECIMAL ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT - CAST ( NULL AS REAL ) + 43
----
NULL

query I rowsort
SELECT ALL + 88 + + 14 * - 95
----
-1242

onlyif mysql # aggregate syntax: 
query II rowsort label-6391
SELECT ALL 18 AS col0, - 59 * - - 1 + + - COUNT( * )
----
18
-60

skipif mysql # not compatible
query II rowsort label-6391
SELECT ALL 18 AS col0, - 59 * - - 1 + + - COUNT ( * )
----
18
-60

query I rowsort
SELECT DISTINCT + 66 + 95
----
161

query I rowsort
SELECT DISTINCT 34 + + 65
----
99

query I rowsort
SELECT DISTINCT + ( 93 ) AS col0
----
93

query I rowsort
SELECT ALL + 33 + + 70
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT + 82 + + MAX( 1 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6396
SELECT + 82 + + MAX ( 1 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT ALL 52 DIV - 75 - 43 - + 13 * + + 58 * - 21
----
15791

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL 52 / - 75 - 43 - + 13 * + + 58 * - 21
----
15791

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - + SUM( + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - + SUM ( + 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT DISTINCT + 12 * - 54 + - - 6 / 75 + + - CAST( NULL AS SIGNED ) - - - 19 + - 28 + + - 92 * + + 76 / - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT + 12 * - 54 + - - 6 / 75 + + - CAST ( NULL AS INTEGER ) - - - 19 + - 28 + + - 92 * + + 76 / - 38 AS col2
----
NULL

query I rowsort
SELECT + ( + + 82 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT + 24 DIV 32 + 87 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6401
SELECT + 24 / 32 + 87 AS col2
----
87

query I rowsort
SELECT ALL + 69 * 41 + 54 + + - 87 AS col1
----
2796

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT 41 * 62 + NULLIF ( - COUNT( ALL - 64 ), + + NULLIF ( + COUNT( * ), + 37 ) + - - COUNT( DISTINCT - - CASE + 24 WHEN - 31 + + 7 THEN - 64 + - 77 * - 84 END ) * - 21 * COUNT( * ) + + COUNT( * ) ) col2
----
2541

skipif mysql # not compatible
query I rowsort label-6403
SELECT 41 * 62 + NULLIF ( - COUNT ( ALL - 64 ), + + NULLIF ( + COUNT ( * ), + 37 ) + - - COUNT ( DISTINCT - - CASE + 24 WHEN - 31 + + 7 THEN - 64 + - 77 * - 84 END ) * - 21 * COUNT ( * ) + + COUNT ( * ) ) col2
----
2541

query I rowsort
SELECT COALESCE ( 93, 83 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL - 81 * + COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - 81 * + COUNT ( * ) AS col2
----
-81

query I rowsort
SELECT ALL + 12 - + 55 + + 87 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT COALESCE ( 36, - 72, + 7 ) * + ( - COUNT( * ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6407
SELECT COALESCE ( 36, - 72, + 7 ) * + ( - COUNT ( * ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT - MAX( ALL + + 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-6408
SELECT - MAX ( ALL + + 97 ) col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT ALL - + 36 * COUNT( * ) * 36 DIV 62 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - + 36 * COUNT ( * ) * 36 / 62 AS col1
----
-20

query I rowsort
SELECT DISTINCT - - 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL - 21 * COUNT( * ) + - 81 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - 21 * COUNT ( * ) + - 81 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT - - ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT - - ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - ( + 42 ) AS col0
----
-42

query I rowsort
SELECT 91 * + 84
----
7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT 10 - + COUNT( * ) col0
----
9

skipif mysql # not compatible
query I rowsort label-6416
SELECT 10 - + COUNT ( * ) col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6417
SELECT DISTINCT - COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT + 12, + 44 AS col2
----
12
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT COALESCE ( - NULLIF ( + ( + 69 ), 94 * + MAX( 0 ) * - + 11 ), ( + ( + 64 ) ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT COALESCE ( - NULLIF ( + ( + 69 ), 94 * + MAX ( 0 ) * - + 11 ), ( + ( + 64 ) ) ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL + COUNT( ALL + 94 ) * + COUNT( * ) * 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + COUNT ( ALL + 94 ) * + COUNT ( * ) * 19 AS col0
----
19

query I rowsort
SELECT DISTINCT + ( - 60 ) + - + 64 - - + 77
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT 38 + + MIN( + 25 )
----
63

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT 38 + + MIN ( + 25 )
----
63

query I rowsort
SELECT ALL 73 + 72 AS col2
----
145

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6424
SELECT - COALESCE ( - 33, + NULLIF ( - 54, - NULLIF ( - 15, CAST( NULL AS SIGNED ) ) ) DIV - 35 * + 26 + + 89 )
----
33

skipif mysql # not compatible
query I rowsort label-6424
SELECT - COALESCE ( - 33, + NULLIF ( - 54, - NULLIF ( - 15, CAST ( NULL AS INTEGER ) ) ) / - 35 * + 26 + + 89 )
----
33

query II rowsort
SELECT 52, 7 AS col2
----
52
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT ALL 67 DIV + - 47
----
-1

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 67 / + - 47
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6427
SELECT - 69 AS col1, - CASE + 46 WHEN + 8 * + + 7 * + CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN 19 THEN + CAST( NULL AS SIGNED ) * 34 * + 84 ELSE NULL END AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-6427
SELECT - 69 AS col1, - CASE + 46 WHEN + 8 * + + 7 * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN 19 THEN + CAST ( NULL AS INTEGER ) * 34 * + 84 ELSE NULL END AS col1
----
-69
NULL

query I rowsort
SELECT - ( - 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL + 93 * + MIN( - 39 ) - + SUM( ALL + 90 ) + + + 75 + + - COUNT( * ) * - - 65
----
-3707

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL + 93 * + MIN ( - 39 ) - + SUM ( ALL + 90 ) + + + 75 + + - COUNT ( * ) * - - 65
----
-3707

query I rowsort
SELECT ALL 50 + + 1 - 4 * 29 + + 95 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT + - 21 + + NULLIF ( - - 74, - 60 ) * + - COALESCE ( 57, - 97 + CAST( NULL AS SIGNED ) ) AS col2
----
-4239

skipif mysql # not compatible
query I rowsort label-6431
SELECT + - 21 + + NULLIF ( - - 74, - 60 ) * + - COALESCE ( 57, - 97 + CAST ( NULL AS INTEGER ) ) AS col2
----
-4239

query I rowsort
SELECT - + 16 * + + 59 * + 70
----
-66080

query I rowsort
SELECT ALL + + ( - 67 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT ALL 84 * - COUNT( * ) - + + 90 - - 29 DIV 58 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL 84 * - COUNT ( * ) - + + 90 - - 29 / 58 AS col2
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6435
SELECT ALL - NULLIF ( + + NULLIF ( 66, - 66 + 37 / 20 + 83 - + - 89 ), - - 22 * 83 * 17 / 26 * 69 - + 15 ) * - COUNT( * ) * + MIN( 67 ) - + ( - + CAST( NULL AS SIGNED ) ) * 25 / 76 AS col0, 37 + 9
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6435
SELECT ALL - NULLIF ( + + NULLIF ( 66, - 66 + 37 / 20 + 83 - + - 89 ), - - 22 * 83 * 17 / 26 * 69 - + 15 ) * - COUNT ( * ) * + MIN ( 67 ) - + ( - + CAST ( NULL AS INTEGER ) ) * 25 / 76 AS col0, 37 + 9
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT + 82 * + - COALESCE ( - 62, - - COUNT( * ), - ( - COUNT( * ) ) )
----
5084

skipif mysql # not compatible
query I rowsort label-6436
SELECT + 82 * + - COALESCE ( - 62, - - COUNT ( * ), - ( - COUNT ( * ) ) )
----
5084

query I rowsort
SELECT ALL + - ( - 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6438
SELECT CAST( COUNT( * ) AS SIGNED ) DIV 65 * - 56 - - - 50 DIV + 94 - MIN( + + 43 ) * - COUNT( * ) - - 20 DIV + NULLIF ( + - 25, + NULLIF ( - ( - 33 ), - 6 ) + + - CAST( NULL AS SIGNED ) ) * + + 39
----
43

skipif mysql # not compatible
query I rowsort label-6438
SELECT CAST ( COUNT ( * ) AS INTEGER ) / 65 * - 56 - - - 50 / + 94 - MIN ( + + 43 ) * - COUNT ( * ) - - 20 / + NULLIF ( + - 25, + NULLIF ( - ( - 33 ), - 6 ) + + - CAST ( NULL AS INTEGER ) ) * + + 39
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6439
SELECT ALL + COUNT( * ) DIV + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + COUNT ( * ) / + 13 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT - 9 - - - 66 - - + 57 DIV - ( + 29 ) + 65 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-6440
SELECT - 9 - - - 66 - - + 57 / - ( + 29 ) + 65 + COUNT ( * )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT + 49 DIV + - 29 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6441
SELECT + 49 / + - 29 AS col1
----
-1

query I rowsort
SELECT 62 * - 30 + - 23 * - 68
----
-296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6443
SELECT NULLIF ( + 46, - 68 * CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) / 33 - - COALESCE ( - + 0, - 96 * - 93 * - 34 + COUNT( * ) + ( ( - 72 ) ) ) - + 46 * + COUNT( * ) THEN NULL WHEN 89 - - COALESCE ( + 58, - 79, 70 - COUNT( ALL - - 10 ) ) / + 18 THEN - + 99 / NULLIF ( + 38 * - 91, 76 * - 84 + 74 ) ELSE 80 END * ( 15 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6443
SELECT NULLIF ( + 46, - 68 * CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) / 33 - - COALESCE ( - + 0, - 96 * - 93 * - 34 + COUNT ( * ) + ( ( - 72 ) ) ) - + 46 * + COUNT ( * ) THEN NULL WHEN 89 - - COALESCE ( + 58, - 79, 70 - COUNT ( ALL - - 10 ) ) / + 18 THEN - + 99 / NULLIF ( + 38 * - 91, 76 * - 84 + 74 ) ELSE 80 END * ( 15 ) ) AS col2
----
46

query I rowsort
SELECT - 69 + - NULLIF ( - 28, + + 34 ) * 2 * + - 57 AS col0
----
-3261

query I rowsort
SELECT - 87 * + - 6 AS col2
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT 93 * - + ( - COUNT( DISTINCT + - 53 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT 93 * - + ( - COUNT ( DISTINCT + - 53 ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL COUNT( DISTINCT + 81 ) * 68 * + COUNT( * ) col1
----
68

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL COUNT ( DISTINCT + 81 ) * 68 * + COUNT ( * ) col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT ALL - 99 DIV - + MAX( + 1 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - 99 / - + MAX ( + 1 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6449
SELECT DISTINCT + COALESCE ( 0, - ( + ( - 0 ) ) * + + 88 DIV - 10 * 42 + MAX( DISTINCT + NULLIF ( - 72, - - 34 ) ) + - COUNT( * ) * - - CAST( NULL AS SIGNED ) * - 31 * 43 * + + CAST( COUNT( + 3 ) AS SIGNED ) * + + COUNT( * ) * 21 * - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + COALESCE ( 0, - ( + ( - 0 ) ) * + + 88 / - 10 * 42 + MAX ( DISTINCT + NULLIF ( - 72, - - 34 ) ) + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - 31 * 43 * + + CAST ( COUNT ( + 3 ) AS INTEGER ) * + + COUNT ( * ) * 21 * - 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT - 12 * + - COUNT( - 24 ) + - 47
----
-35

skipif mysql # not compatible
query I rowsort label-6450
SELECT - 12 * + - COUNT ( - 24 ) + - 47
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6451
SELECT ALL 37 * COALESCE ( + 53, + 11 DIV - CASE CAST( NULL AS SIGNED ) WHEN + 60 THEN ( + 21 ) WHEN - COUNT( * ) THEN NULL WHEN + + ( + - 80 ) * + 22 THEN NULL ELSE - 58 END + - - CASE 3 WHEN - + 82 * - 82 * - - CASE CASE COUNT( * ) WHEN - + 36 THEN NULL ELSE + 34 * + MIN( DISTINCT - 65 ) END WHEN 40 THEN + 28 - + 43 WHEN 64 + - COUNT( * ) * 12 THEN CAST( NULL AS DECIMAL ) + - 3 ELSE ( NULLIF ( 39, 7 ) ) END + 7 THEN 81 WHEN + 50 * - 41 THEN + 5 * + 58 + - NULLIF ( 89, 7 ) DIV + 30 END DIV 38 ) + + CAST( - COUNT( * ) AS SIGNED )
----
1960

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL 37 * COALESCE ( + 53, + 11 / - CASE CAST ( NULL AS INTEGER ) WHEN + 60 THEN ( + 21 ) WHEN - COUNT ( * ) THEN NULL WHEN + + ( + - 80 ) * + 22 THEN NULL ELSE - 58 END + - - CASE 3 WHEN - + 82 * - 82 * - - CASE CASE COUNT ( * ) WHEN - + 36 THEN NULL ELSE + 34 * + MIN ( DISTINCT - 65 ) END WHEN 40 THEN + 28 - + 43 WHEN 64 + - COUNT ( * ) * 12 THEN CAST ( NULL AS REAL ) + - 3 ELSE ( NULLIF ( 39, 7 ) ) END + 7 THEN 81 WHEN + 50 * - 41 THEN + 5 * + 58 + - NULLIF ( 89, 7 ) / + 30 END / 38 ) + + CAST ( - COUNT ( * ) AS INTEGER )
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT - COUNT( * ) * - 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6452
SELECT - COUNT ( * ) * - 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT - CASE 80 WHEN COUNT( * ) * 4 + - 80 + - 30 THEN - + 88 WHEN - 32 * - ( - COUNT( * ) ) * 38 + ( - - 59 ) - - 19 THEN NULL END + - - 52 * - 83 * - 12 AS col0, + 47 * - + 85 + - 62 col0
----
NULL
-4057

skipif mysql # not compatible
query II rowsort label-6453
SELECT - CASE 80 WHEN COUNT ( * ) * 4 + - 80 + - 30 THEN - + 88 WHEN - 32 * - ( - COUNT ( * ) ) * 38 + ( - - 59 ) - - 19 THEN NULL END + - - 52 * - 83 * - 12 AS col0, + 47 * - + 85 + - 62 col0
----
NULL
-4057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT ALL 37 * - - MIN( - ( - 14 ) ) + - CAST( + COUNT( * ) AS SIGNED )
----
517

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL 37 * - - MIN ( - ( - 14 ) ) + - CAST ( + COUNT ( * ) AS INTEGER )
----
517

query I rowsort
SELECT DISTINCT ( 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL 74 * - 59 + + + 61 + + COUNT( * ) + + - ( + COUNT( * ) )
----
-4305

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL 74 * - 59 + + + 61 + + COUNT ( * ) + + - ( + COUNT ( * ) )
----
-4305

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT - COUNT( ALL 58 ) + 86
----
85

skipif mysql # not compatible
query I rowsort label-6457
SELECT - COUNT ( ALL 58 ) + 86
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT COUNT( * ) * + 68 + ( - ( - 86 ) )
----
154

skipif mysql # not compatible
query I rowsort label-6458
SELECT COUNT ( * ) * + 68 + ( - ( - 86 ) )
----
154

query I rowsort
SELECT ALL - ( - 2 ) + - + 30 - - 52
----
24

query I rowsort
SELECT DISTINCT - 55 + 13
----
-42

query I rowsort
SELECT DISTINCT ( + NULLIF ( 41, 38 ) ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6462
SELECT ALL COUNT( - 93 ) + - 6 + - 47 * CAST( NULL AS DECIMAL ), CASE - - 5 WHEN 78 THEN - 43 WHEN + + 87 / - 85 THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6462
SELECT ALL COUNT ( - 93 ) + - 6 + - 47 * CAST ( NULL AS REAL ), CASE - - 5 WHEN 78 THEN - 43 WHEN + + 87 / - 85 THEN NULL END
----
NULL
NULL

query I rowsort
SELECT ALL ( 68 )
----
68

query I rowsort
SELECT DISTINCT + 39 + + 1 + 96 AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6465
SELECT DISTINCT - ( + + 32 ) AS col1, - 44 * + CASE + - CASE 57 WHEN MAX( ALL - + 97 ) + 99 + + 54 + + 66 * NULLIF ( - + 96, 49 + 70 ) - + - 97 + - COUNT( * ) * + ( - + 45 ) * MAX( ALL - 31 ) - + 77 * COUNT( - 24 ) THEN CAST( + COUNT( * ) AS SIGNED ) + + 47 ELSE COALESCE ( - 16, - 62 / - COUNT( * ) + + ( 29 ) * 88 ) * 20 END WHEN - 78 THEN - 66 - 74 ELSE NULL END
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-6465
SELECT DISTINCT - ( + + 32 ) AS col1, - 44 * + CASE + - CASE 57 WHEN MAX ( ALL - + 97 ) + 99 + + 54 + + 66 * NULLIF ( - + 96, 49 + 70 ) - + - 97 + - COUNT ( * ) * + ( - + 45 ) * MAX ( ALL - 31 ) - + 77 * COUNT ( - 24 ) THEN CAST ( + COUNT ( * ) AS INTEGER ) + + 47 ELSE COALESCE ( - 16, - 62 / - COUNT ( * ) + + ( 29 ) * 88 ) * 20 END WHEN - 78 THEN - 66 - 74 ELSE NULL END
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT + - COUNT( * ) + 26
----
25

skipif mysql # not compatible
query I rowsort label-6466
SELECT + - COUNT ( * ) + 26
----
25

query I rowsort
SELECT - - 25 + - ( - 22 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + 56 / + 71 + - COUNT( * ) * - MIN( DISTINCT + CASE 91 WHEN - 56 THEN 82 WHEN 99 THEN + 43 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + 56 / + 71 + - COUNT ( * ) * - MIN ( DISTINCT + CASE 91 WHEN - 56 THEN 82 WHEN 99 THEN + 43 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6469
SELECT + - 45 - - + NULLIF ( - - 13, - 90 - - 52 * - ( + CASE + + 34 WHEN COUNT( * ) THEN - CASE - COUNT( * ) WHEN - - COUNT( * ) THEN NULL ELSE - 76 + + COUNT( * ) + + 10 * - - 89 * + 3 END * - - 55 - CAST( + 27 AS SIGNED ) + - - 19 * - ( + NULLIF ( + MAX( - ( 13 ) ), - - COUNT( * ) ) ) / 83 + 90 END ) + + 50 ) + + 7 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6469
SELECT + - 45 - - + NULLIF ( - - 13, - 90 - - 52 * - ( + CASE + + 34 WHEN COUNT ( * ) THEN - CASE - COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL ELSE - 76 + + COUNT ( * ) + + 10 * - - 89 * + 3 END * - - 55 - CAST ( + 27 AS INTEGER ) + - - 19 * - ( + NULLIF ( + MAX ( - ( 13 ) ), - - COUNT ( * ) ) ) / 83 + 90 END ) + + 50 ) + + 7 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL - SUM( DISTINCT + - 83 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - SUM ( DISTINCT + - 83 ) col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT ALL 83 - + - COUNT( * ) - - + 6 DIV - - 58
----
84

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL 83 - + - COUNT ( * ) - - + 6 / - - 58
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT + + COUNT( * ) * + - 51 + - - COUNT( + 16 ) + 42 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6472
SELECT + + COUNT ( * ) * + - 51 + - - COUNT ( + 16 ) + 42 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6473
SELECT + 67 DIV - - 2 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6473
SELECT + 67 / - - 2 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT DISTINCT 36 DIV - + 31 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT 36 / - + 31 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6475
SELECT DISTINCT + 73 * - COUNT( * ) * + + COUNT( * ) * + - CASE 18 WHEN COUNT( * ) THEN NULL WHEN NULLIF ( + + 86, - - 77 ) + 34 * COUNT( * ) + + COALESCE ( COALESCE ( 86, + - 67 ), CASE + 85 WHEN + 67 * 83 / + - 29 THEN NULL WHEN + 50 * - 2 * - 90 / 68 + + CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) / - 6 THEN + 93 END / 90 ) * + CASE 92 WHEN - MIN( DISTINCT 7 ) THEN 82 * 66 + + CAST( NULL AS SIGNED ) END THEN COUNT( * ) ELSE + 52 END * + COUNT( * )
----
3796

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + 73 * - COUNT ( * ) * + + COUNT ( * ) * + - CASE 18 WHEN COUNT ( * ) THEN NULL WHEN NULLIF ( + + 86, - - 77 ) + 34 * COUNT ( * ) + + COALESCE ( COALESCE ( 86, + - 67 ), CASE + 85 WHEN + 67 * 83 / + - 29 THEN NULL WHEN + 50 * - 2 * - 90 / 68 + + CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) / - 6 THEN + 93 END / 90 ) * + CASE 92 WHEN - MIN ( DISTINCT 7 ) THEN 82 * 66 + + CAST ( NULL AS INTEGER ) END THEN COUNT ( * ) ELSE + 52 END * + COUNT ( * )
----
3796

query I rowsort
SELECT DISTINCT - 99 * 52 * 46
----
-236808

query I rowsort
SELECT DISTINCT - 88 * 63 AS col2
----
-5544

query I rowsort
SELECT + ( - - 39 ) AS col1
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6479
SELECT + CAST( NULL AS DECIMAL ) * + 20 * + - 80 + + + 25 + + 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT + CAST ( NULL AS REAL ) * + 20 * + - 80 + + + 25 + + 0 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6480
SELECT + + 60 + - 65 DIV - 68 * - + 66 + + 55 DIV - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6480
SELECT + + 60 + - 65 / - 68 * - + 66 + + 55 / - COUNT ( * )
----
5

query I rowsort
SELECT + - 43 * - 30
----
1290

query I rowsort
SELECT - 75 + - 96 AS col0
----
-171

query I rowsort
SELECT + 46 * + 9 AS col1
----
414

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT DISTINCT 69 + + 60 + 52 + - - 2 DIV - 37 * - 88 + + 50
----
231

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT 69 + + 60 + 52 + - - 2 / - 37 * - 88 + + 50
----
231

query I rowsort
SELECT ALL + 68 + - 94 AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6486
SELECT DISTINCT - 13 DIV + 32 col0
----
0

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - 13 / + 32 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT DISTINCT + 59 + - COUNT( * ) + - 4 + - 75 DIV - 83
----
54

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT + 59 + - COUNT ( * ) + - 4 + - 75 / - 83
----
54

query I rowsort
SELECT ALL - 95 * + + 55 AS col2
----
-5225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6489
SELECT COALESCE ( - COUNT( * ), 68 * + CAST( - 80 AS SIGNED ) + - NULLIF ( COUNT( * ), - + CAST( NULL AS SIGNED ) - - - MAX( - - 33 ) * - COUNT( * ) ), - ( - 2 ) * - 79 * 49 - - 90 * + 21 DIV + CAST( COUNT( + + ( + - 97 ) ) AS SIGNED ) * - - 45 + - - NULLIF ( CAST( NULL AS SIGNED ), + - 67 ) + - 74 * + SUM( DISTINCT - 92 ) * 1 ) + + 0
----
-1

skipif mysql # not compatible
query I rowsort label-6489
SELECT COALESCE ( - COUNT ( * ), 68 * + CAST ( - 80 AS INTEGER ) + - NULLIF ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) - - - MAX ( - - 33 ) * - COUNT ( * ) ), - ( - 2 ) * - 79 * 49 - - 90 * + 21 / + CAST ( COUNT ( + + ( + - 97 ) ) AS INTEGER ) * - - 45 + - - NULLIF ( CAST ( NULL AS INTEGER ), + - 67 ) + - 74 * + SUM ( DISTINCT - 92 ) * 1 ) + + 0
----
-1

query I rowsort
SELECT ALL ( + - 77 ) + + 7
----
-70

query I rowsort
SELECT DISTINCT 56 * - ( - 70 ) * 36 * ( - - 82 ) AS col2
----
11571840

query I rowsort
SELECT 64 * - - 27
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT 35 * + + COUNT( ALL + 37 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6493
SELECT 35 * + + COUNT ( ALL + 37 ) AS col2
----
35

query II rowsort
SELECT + 20 AS col2, - NULLIF ( + 41, 84 ) - 11
----
20
-52

query I rowsort
SELECT ALL - 96 * - ( - - ( + - 68 ) )
----
-6528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT 42 * + ( - 37 ) - + CAST( 61 AS SIGNED )
----
-1615

skipif mysql # not compatible
query I rowsort label-6496
SELECT 42 * + ( - 37 ) - + CAST ( 61 AS INTEGER )
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL 38 + + - COALESCE ( 97, + - 34 * - 17 + + MIN( + 92 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL 38 + + - COALESCE ( 97, + - 34 * - 17 + + MIN ( + 92 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL COUNT( - 43 ) * 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL COUNT ( - 43 ) * 27 AS col0
----
27

query I rowsort
SELECT ALL + 6 + - 46 AS col1
----
-40

query I rowsort
SELECT 77 * 79
----
6083

query I rowsort
SELECT ALL - 35 - 63 AS col2
----
-98

query I rowsort
SELECT - 1 * + 36 AS col0
----
-36

query I rowsort
SELECT DISTINCT - - 46 * - 56
----
-2576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT CAST( NULL AS SIGNED ) * + 55 * + ( + 8 ) * - 90 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT CAST ( NULL AS INTEGER ) * + 55 * + ( + 8 ) * - 90 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT DISTINCT - 83 * - - COUNT( * ) + - 4 + 20 + - 96 * CASE + - ( - 45 ) WHEN + 57 THEN 44 ELSE + COUNT( * ) END AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT - 83 * - - COUNT ( * ) + - 4 + 20 + - 96 * CASE + - ( - 45 ) WHEN + 57 THEN 44 ELSE + COUNT ( * ) END AS col2
----
-163

query II rowsort
SELECT ALL 66 AS col0, 23 + + 93 AS col0
----
66
116

query I rowsort
SELECT - + CASE + 48 WHEN - ( - 57 ) THEN NULL WHEN + 92 * 88 THEN + + ( - 63 ) / - ( 53 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT 88 * + - COUNT( DISTINCT 54 )
----
-88

skipif mysql # not compatible
query I rowsort label-6508
SELECT 88 * + - COUNT ( DISTINCT 54 )
----
-88

query I rowsort
SELECT ALL - 50 * + 39 + + 11 * + 74 AS col0
----
-1136

query I rowsort
SELECT ALL - 33 * - 10 + 84 * - 26 + 78
----
-1776

query I rowsort
SELECT + 8 + + + 2 AS col2
----
10

query I rowsort
SELECT - ( 12 ) col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 67 * 67 + COUNT( * )
----
4490

skipif mysql # not compatible
query I rowsort label-6513
SELECT 67 * 67 + COUNT ( * )
----
4490

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT - ( - + ( - + 38 ) ) + - 19 + 12 * + 24 - + - COUNT( * ) + - 70 * + 49 AS col2
----
-3198

skipif mysql # not compatible
query I rowsort label-6514
SELECT - ( - + ( - + 38 ) ) + - 19 + 12 * + 24 - + - COUNT ( * ) + - 70 * + 49 AS col2
----
-3198

query I rowsort
SELECT ( + + 42 ) * + 90 * - 4
----
-15120

query I rowsort
SELECT 44 + + 73
----
117

query I rowsort
SELECT + 45 * + 53 + - + 69 + - 71 AS col0
----
2245

query I rowsort
SELECT ALL ( 6 ) * + 21
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6519
SELECT ALL + 72 + - + 5 col1, 84 * CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL + 72 + - + 5 col1, 84 * CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

query II rowsort
SELECT DISTINCT 93 * - - 22 AS col1, + 77
----
2046
77

query I rowsort
SELECT DISTINCT 51 + + 6
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6522
SELECT - 67 DIV - COUNT( - CAST( 93 AS SIGNED ) ) - + + COUNT( ALL - 0 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6522
SELECT - 67 / - COUNT ( - CAST ( 93 AS INTEGER ) ) - + + COUNT ( ALL - 0 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT - COUNT( * ) * - SUM( ALL 37 ) + - - 79 col1
----
116

skipif mysql # not compatible
query I rowsort label-6523
SELECT - COUNT ( * ) * - SUM ( ALL 37 ) + - - 79 col1
----
116

query I rowsort
SELECT 45 + 16 * - 28 + + 19 AS col1
----
-384

query I rowsort
SELECT 80 * - 88 * 82
----
-577280

query I rowsort
SELECT DISTINCT 97 * - 17 AS col0
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6527
SELECT ALL 14 - + - COUNT( + CAST( NULL AS SIGNED ) ) + + 82 AS col1, 69
----
96
69

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL 14 - + - COUNT ( + CAST ( NULL AS INTEGER ) ) + + 82 AS col1, 69
----
96
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT 70 * SUM( ALL + + 11 ) AS col0
----
770

skipif mysql # not compatible
query I rowsort label-6528
SELECT 70 * SUM ( ALL + + 11 ) AS col0
----
770

query I rowsort
SELECT ALL - 65 * - + ( 10 ) AS col1
----
650

query I rowsort
SELECT 89 + - + NULLIF ( + ( + 78 ), 67 + - - 88 ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-6531
SELECT ALL 84 DIV + - 20, - 70 AS col2
----
-4
-70

skipif mysql # not compatible
query II rowsort label-6531
SELECT ALL 84 / + - 20, - 70 AS col2
----
-4
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL 16 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 16 * + COUNT ( * )
----
16

query I rowsort
SELECT - + 87 AS col1
----
-87

query I rowsort
SELECT - 99 + - 49 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT - ( NULLIF ( + + CASE + 4 WHEN + + 99 * - - COUNT( * ) + 39 THEN NULL WHEN + 41 THEN - - 18 END, - 20 + + 47 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - ( NULLIF ( + + CASE + 4 WHEN + + 99 * - - COUNT ( * ) + 39 THEN NULL WHEN + 41 THEN - - 18 END, - 20 + + 47 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL SUM( DISTINCT + + ( ( 99 ) ) )
----
99

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL SUM ( DISTINCT + + ( ( 99 ) ) )
----
99

query I rowsort
SELECT ALL - CASE - - 59 WHEN - - 84 THEN NULL WHEN - 62 / + 31 * + - 73 * + 42 THEN NULL ELSE 36 * + - 65 END * - 78 * - + 83 AS col2
----
15149160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6538
SELECT DISTINCT 0 * - + 2 + - - 23 + - 82 * - + CAST( NULL AS SIGNED ) * + - COALESCE ( 88, - CASE + 73 WHEN + 31 THEN - 45 END ) + - 35 AS col1, 89 + 45
----
NULL
134

skipif mysql # not compatible
query II rowsort label-6538
SELECT DISTINCT 0 * - + 2 + - - 23 + - 82 * - + CAST ( NULL AS INTEGER ) * + - COALESCE ( 88, - CASE + 73 WHEN + 31 THEN - 45 END ) + - 35 AS col1, 89 + 45
----
NULL
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6539
SELECT + COUNT( * ) DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT + COUNT ( * ) / + 97 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6540
SELECT + CAST( NULL AS DECIMAL ) + + 91 / - + 64 * - + 1 AS col0, 82 * ( + + 73 ) + + + 25
----
NULL
6011

skipif mysql # not compatible
query II rowsort label-6540
SELECT + CAST ( NULL AS REAL ) + + 91 / - + 64 * - + 1 AS col0, 82 * ( + + 73 ) + + + 25
----
NULL
6011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * 46 * + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * 46 * + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT 33 + - 74 + + - COUNT( * ) * + + 70 + - 10 * + COUNT( * ) col0
----
-121

skipif mysql # not compatible
query I rowsort label-6542
SELECT 33 + - 74 + + - COUNT ( * ) * + + 70 + - 10 * + COUNT ( * ) col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL - ( + SUM( DISTINCT 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL - ( + SUM ( DISTINCT 35 ) )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6544
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6544
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ( + + CASE - + 73 WHEN 5 + 54 THEN - ( + + ( - 51 ) ) WHEN + + 7 + - 53 + COALESCE ( + 85, - - NULLIF ( + 15, 3 + + AVG ( + 72 ) ) ) THEN + 34 WHEN 56 * - - 98 THEN NULL END )
----
NULL

query I rowsort
SELECT - 89 * 69 AS col0
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL - + 2 + + CASE WHEN NOT ( NULL ) > + + 41 THEN + 91 + + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL - + 2 + + CASE WHEN NOT ( NULL ) > + + 41 THEN + 91 + + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL - - 77 * 69 * + ( + + CASE - 81 WHEN + - 61 * 58 THEN + CASE 23 WHEN + 33 * + 16 THEN + - 20 - + 69 END WHEN 35 * + + 96 - MAX( - - 94 ) THEN 86 WHEN + 71 * - 14 * + + 37 THEN NULL ELSE NULL END ) * 77 + + - 75 + - COALESCE ( 87, + 52 + - - ( + 51 ) ) * 70 + 6 + - CAST( 74 - 73 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - - 77 * 69 * + ( + + CASE - 81 WHEN + - 61 * 58 THEN + CASE 23 WHEN + 33 * + 16 THEN + - 20 - + 69 END WHEN 35 * + + 96 - MAX ( - - 94 ) THEN 86 WHEN + 71 * - 14 * + + 37 THEN NULL ELSE NULL END ) * 77 + + - 75 + - COALESCE ( 87, + 52 + - - ( + 51 ) ) * 70 + 6 + - CAST ( 74 - 73 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 10 + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL + COUNT( * ) + - - 96
----
97

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + COUNT ( * ) + - - 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - - MIN( - - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6551
SELECT - - MIN ( - - 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT + ( + ( - COALESCE ( + NULLIF ( 61, + 60 ), - 68, 22 DIV - 86 * - ( + - COUNT( 51 ) ) + - CASE + 32 WHEN + 27 THEN - - 61 * 68 * + 79 END + + 66 * + 26 ) ) )
----
-61

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + ( + ( - COALESCE ( + NULLIF ( 61, + 60 ), - 68, 22 / - 86 * - ( + - COUNT ( 51 ) ) + - CASE + 32 WHEN + 27 THEN - - 61 * 68 * + 79 END + + 66 * + 26 ) ) )
----
-61

query I rowsort
SELECT DISTINCT + + 64 + ( 3 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT DISTINCT + + 47 + 92 + - + COUNT( * ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT + + 47 + 92 + - + COUNT ( * ) AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT NULLIF ( 5, + COUNT( * ) + - - 36 - + + 88 )
----
5

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT NULLIF ( 5, + COUNT ( * ) + - - 36 - + + 88 )
----
5

query I rowsort
SELECT ALL 10 + 96 * + 86 * + 60 AS col0
----
495370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6557
SELECT - NULLIF ( + 93, + - CASE - + CAST( NULL AS SIGNED ) WHEN COALESCE ( - + 20, + 99 ) THEN - COUNT( * ) + COUNT( 72 ) - + 72 WHEN + 27 - + + 27 + + 66 THEN NULL WHEN COALESCE ( + + 43, - - 99 * - ( + COUNT( * ) ), + 10 - 29 ) * 64 * + 19 + - COUNT( * ) + ( - - 60 ) + 55 THEN NULL END * + - 97 * 99 ) + + 81 + 84 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6557
SELECT - NULLIF ( + 93, + - CASE - + CAST ( NULL AS INTEGER ) WHEN COALESCE ( - + 20, + 99 ) THEN - COUNT ( * ) + COUNT ( 72 ) - + 72 WHEN + 27 - + + 27 + + 66 THEN NULL WHEN COALESCE ( + + 43, - - 99 * - ( + COUNT ( * ) ), + 10 - 29 ) * 64 * + 19 + - COUNT ( * ) + ( - - 60 ) + 55 THEN NULL END * + - 97 * 99 ) + + 81 + 84 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL COUNT( + - COALESCE ( - + 2, - 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL COUNT ( + - COALESCE ( - + 2, - 20 ) )
----
1

query I rowsort
SELECT ALL - ( - 84 ) * ( 90 ) AS col1
----
7560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6560
SELECT + COUNT( * ) DIV - 13 + 58 + ( + 83 ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-6560
SELECT + COUNT ( * ) / - 13 + 58 + ( + 83 ) AS col2
----
141

query I rowsort
SELECT - 4 * - 15 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT + SUM( 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6562
SELECT + SUM ( 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL COUNT( * ) * - 66 + - 31
----
-97

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL COUNT ( * ) * - 66 + - 31
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT NULLIF ( - COUNT( * ), + 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-6564
SELECT NULLIF ( - COUNT ( * ), + 96 )
----
-1

query I rowsort
SELECT ALL + ( + - 75 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT - 56 DIV - 23
----
2

skipif mysql # not compatible
query I rowsort label-6566
SELECT - 56 / - 23
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6567
SELECT + CASE - 76 WHEN ( + 42 ) DIV - COUNT( * ) + 82 THEN NULL WHEN + - 27 DIV - 66 + - COUNT( * ) * + - 6 THEN 2 ELSE 59 END + - NULLIF ( + MAX( CASE + + 82 WHEN - 16 THEN NULL ELSE - + ( + 11 ) DIV + + 59 END ), - 1 * COUNT( * ) + + + 12 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-6567
SELECT + CASE - 76 WHEN ( + 42 ) / - COUNT ( * ) + 82 THEN NULL WHEN + - 27 / - 66 + - COUNT ( * ) * + - 6 THEN 2 ELSE 59 END + - NULLIF ( + MAX ( CASE + + 82 WHEN - 16 THEN NULL ELSE - + ( + 11 ) / + + 59 END ), - 1 * COUNT ( * ) + + + 12 ) col0
----
59

query I rowsort
SELECT DISTINCT 3 * - + 89
----
-267

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT COALESCE ( + 52, 59, + 47, 95 ), 1 + 77 * - COALESCE ( - 82, + COUNT( * ), 56 ) AS col2
----
52
6315

skipif mysql # not compatible
query II rowsort label-6569
SELECT COALESCE ( + 52, 59, + 47, 95 ), 1 + 77 * - COALESCE ( - 82, + COUNT ( * ), 56 ) AS col2
----
52
6315

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL COUNT( * ) * - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL COUNT ( * ) * - 68 AS col1
----
-68

query I rowsort
SELECT ALL 97 * + 69 AS col0
----
6693

query I rowsort
SELECT + 3 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6573
SELECT + 20 + + COUNT( - - 76 ) col2, - 94 - + CAST( NULL AS SIGNED )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-6573
SELECT + 20 + + COUNT ( - - 76 ) col2, - 94 - + CAST ( NULL AS INTEGER )
----
21
NULL

query I rowsort
SELECT + CASE WHEN + 91 NOT IN ( 6, 75 ) THEN NULL ELSE + + 31 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT COALESCE ( + 6, + ( + COALESCE ( + + ( + SUM( DISTINCT + 76 ) ), + 12 ) ) ) AS col0, 88 AS col1
----
6
88

skipif mysql # not compatible
query II rowsort label-6575
SELECT COALESCE ( + 6, + ( + COALESCE ( + + ( + SUM ( DISTINCT + 76 ) ), + 12 ) ) ) AS col0, 88 AS col1
----
6
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT + CASE WHEN NOT NULL NOT IN ( - CASE - 2 WHEN + 67 THEN 25 * - 65 * 22 END, + 39, - 65 * COALESCE ( + + NULLIF ( + 29, 59 + 54 + + ( 94 ) ), 21, + + 50 * 30 * - 27 / 32 ) + - - COUNT( * ) / + 25 + 67 ) THEN NULL ELSE 19 END AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6576
SELECT + CASE WHEN NOT NULL NOT IN ( - CASE - 2 WHEN + 67 THEN 25 * - 65 * 22 END, + 39, - 65 * COALESCE ( + + NULLIF ( + 29, 59 + 54 + + ( 94 ) ), 21, + + 50 * 30 * - 27 / 32 ) + - - COUNT ( * ) / + 25 + 67 ) THEN NULL ELSE 19 END AS col2
----
19

query I rowsort
SELECT ALL 61 * - + 95 AS col0
----
-5795

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + 72 * COUNT( 11 ) * 98 AS col1
----
7056

skipif mysql # not compatible
query I rowsort label-6578
SELECT + 72 * COUNT ( 11 ) * 98 AS col1
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT - COUNT( * ) * - NULLIF ( + 17, - 38 * 92 )
----
17

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( + 17, - 38 * 92 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6580
SELECT + + 88 * COUNT( * ) DIV 38 * - + 39
----
-78

skipif mysql # not compatible
query I rowsort label-6580
SELECT + + 88 * COUNT ( * ) / 38 * - + 39
----
-78

query I rowsort
SELECT ALL + + 80 AS col1
----
80

query I rowsort
SELECT ALL 63 + - 2 AS col1
----
61

query II rowsort
SELECT + + 39 - + 34 + 73, + 59 AS col0
----
78
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT + 46 * COALESCE ( 47, + 85 * 70 * - COUNT( * ) * - 64 * + 90, - - 47 - + - 30 ) AS col2
----
2162

skipif mysql # not compatible
query I rowsort label-6584
SELECT + 46 * COALESCE ( 47, + 85 * 70 * - COUNT ( * ) * - 64 * + 90, - - 47 - + - 30 ) AS col2
----
2162

onlyif mysql # DIV for integer division: 
query II rowsort label-6585
SELECT DISTINCT - 0 DIV 10 * + - 54, 33 AS col1
----
0
33

skipif mysql # not compatible
query II rowsort label-6585
SELECT DISTINCT - 0 / 10 * + - 54, 33 AS col1
----
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT ALL ( + COUNT( * ) ) + - 24 + + 4 + - COUNT( * ) * + 54 * - - 32
----
-1747

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL ( + COUNT ( * ) ) + - 24 + + 4 + - COUNT ( * ) * + 54 * - - 32
----
-1747

query I rowsort
SELECT - - COALESCE ( + 58, 38 * 20 * + 99 + + 20 )
----
58

query I rowsort
SELECT COALESCE ( 50, + 4, - ( - - 32 ) * - - 70 + + - 44 )
----
50

query I rowsort
SELECT - - 94 col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT - - 56 * CAST( - 76 AS SIGNED ) + MIN( ALL 34 ) AS col1
----
-4222

skipif mysql # not compatible
query I rowsort label-6590
SELECT - - 56 * CAST ( - 76 AS INTEGER ) + MIN ( ALL 34 ) AS col1
----
-4222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT ALL - + CASE - 71 WHEN 63 * + ( + 87 ) THEN NULL WHEN + - 86 THEN - 59 + + 90 ELSE NULL END * + - CAST( NULL AS SIGNED ) + 73 + AVG ( + - 81 ) - - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - + CASE - 71 WHEN 63 * + ( + 87 ) THEN NULL WHEN + - 86 THEN - 59 + + 90 ELSE NULL END * + - CAST ( NULL AS INTEGER ) + 73 + AVG ( + - 81 ) - - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 57, - - 47 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT - MAX( - ( 31 ) ) + + 33 - - 81 * 20 * - + 95 * 6
----
-923336

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT - MAX ( - ( 31 ) ) + + 33 - - 81 * 20 * - + 95 * 6
----
-923336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT ALL + COALESCE ( - 92, + COUNT( * ) + + CAST( NULL AS SIGNED ) + + 38, + 50 * 20 ) + + 48
----
-44

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + COALESCE ( - 92, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 38, + 50 * 20 ) + + 48
----
-44

query I rowsort
SELECT + 49 - - 18 * ( - 96 ) AS col0
----
-1679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT CAST( - - CASE + 76 WHEN - 71 THEN + 8 * - - 30 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT CAST ( - - CASE + 76 WHEN - 71 THEN + 8 * - - 30 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 32 + + + 2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT ALL COUNT( DISTINCT - - 20 ), SUM( 34 ) AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-6598
SELECT ALL COUNT ( DISTINCT - - 20 ), SUM ( 34 ) AS col1
----
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT + 87 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT + 87 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - ( + ( + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6600
SELECT - ( + ( + COUNT ( * ) ) ) AS col1
----
-1

query II rowsort
SELECT - 2 AS col1, 26 * + 65 * + - 31
----
-2
-52390

query I rowsort
SELECT ALL + 82 * - 94 col0
----
-7708

query I rowsort
SELECT + 71 * + 74 + 23 AS col1
----
5277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT ALL - 42 DIV - + 42 - - - 25 * + COUNT( * ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL - 42 / - + 42 - - - 25 * + COUNT ( * ) col2
----
-24

query I rowsort
SELECT ALL + ( 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT - NULLIF ( + - 29, + + CAST( NULL AS SIGNED ) ) + - - 53 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6606
SELECT - NULLIF ( + - 29, + + CAST ( NULL AS INTEGER ) ) + - - 53 AS col0
----
82

query I rowsort
SELECT ALL + 74 * - 15 AS col2
----
-1110

query I rowsort
SELECT DISTINCT + 65 * - + 83
----
-5395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT ALL + ( + + CAST( + 41 AS SIGNED ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + ( + + CAST ( + 41 AS INTEGER ) ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6610
SELECT + 57 DIV - 87 + + + CAST( - COUNT( * ) AS SIGNED ) * + 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6610
SELECT + 57 / - 87 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 68 AS col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT + 73 DIV + + 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6611
SELECT + 73 / + + 46 AS col2
----
1

query I rowsort
SELECT - ( + 52 ) * + 0 * - 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT - COUNT( * ) + - 39 + 62 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6613
SELECT - COUNT ( * ) + - 39 + 62 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL + MIN( DISTINCT ( + 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + MIN ( DISTINCT ( + 85 ) )
----
85

query II rowsort
SELECT ALL + 60 AS col2, 59
----
60
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6616
SELECT ALL - 51 * - + 93 + + 93 + + 26, - COALESCE ( - - 15, 20 + + + 65 ) DIV - COUNT( ALL - - 28 ) - + 95 + - ( - 57 ) * - - NULLIF ( - 57, + + 58 ) - - + 29 AS col1
----
4862
-3300

skipif mysql # not compatible
query II rowsort label-6616
SELECT ALL - 51 * - + 93 + + 93 + + 26, - COALESCE ( - - 15, 20 + + + 65 ) / - COUNT ( ALL - - 28 ) - + 95 + - ( - 57 ) * - - NULLIF ( - 57, + + 58 ) - - + 29 AS col1
----
4862
-3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT + - ( - 18 ) DIV - + 18 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT + - ( - 18 ) / - + 18 * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL + - MAX( NULLIF ( 6, - 85 / + 55 - + 16 - + + 41 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + - MAX ( NULLIF ( 6, - 85 / + 55 - + 16 - + + 41 ) ) AS col2
----
-6

query I rowsort
SELECT + 22 + + COALESCE ( + 4, + ( + 38 ) ) + - + ( 77 ) + + 13 * - 50 * + 14 * + - 62 AS col1
----
564149

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT - 61 DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT - 61 / - 78 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT + + 51 DIV + 62 + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-6621
SELECT + + 51 / + 62 + - 84
----
-84

query I rowsort
SELECT + - 77 * + 8 AS col0
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT COALESCE ( - + 56, + + MAX( ALL + 4 ) * - + 12 * 68 * 23 + - 51, + 17 ) * + - 80 - 27 + - COUNT( * ) AS col1
----
4452

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT COALESCE ( - + 56, + + MAX ( ALL + 4 ) * - + 12 * 68 * 23 + - 51, + 17 ) * + - 80 - 27 + - COUNT ( * ) AS col1
----
4452

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT DISTINCT 37 + - 62 DIV - 11
----
42

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT 37 + - 62 / - 11
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + COUNT( * ) + + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6625
SELECT + COUNT ( * ) + + 23 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6626
SELECT ALL - + CASE 40 WHEN - 97 - - 76 - + SUM( + COALESCE ( 75, - 71 + + CAST( NULL AS SIGNED ) ) ) THEN + - 89 + - CAST( 3 AS SIGNED ) - - MAX( DISTINCT - + 32 ) WHEN + ( + 41 ) THEN NULL END + - ( + + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - + CASE 40 WHEN - 97 - - 76 - + SUM ( + COALESCE ( 75, - 71 + + CAST ( NULL AS INTEGER ) ) ) THEN + - 89 + - CAST ( 3 AS INTEGER ) - - MAX ( DISTINCT - + 32 ) WHEN + ( + 41 ) THEN NULL END + - ( + + 33 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT DISTINCT + COALESCE ( - ( + + 74 ), + 91 + + NULLIF ( + 12, - CAST( NULL AS SIGNED ) ) * 2 * + 55 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + COALESCE ( - ( + + 74 ), + 91 + + NULLIF ( + 12, - CAST ( NULL AS INTEGER ) ) * 2 * + 55 ) AS col2
----
-74

query II rowsort
SELECT ALL 64 + 66 AS col2, 51
----
130
51

query I rowsort
SELECT 73 + 60 + - + 8 + - 5 * 91
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT COUNT( * ) + - MAX( 8 ) + - - 0
----
-7

skipif mysql # not compatible
query I rowsort label-6630
SELECT COUNT ( * ) + - MAX ( 8 ) + - - 0
----
-7

query I rowsort
SELECT ( - + 71 )
----
-71

query I rowsort
SELECT ALL - 69 - - 42
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL 75 * + - 95 * + MIN( + 3 ) * - 61 col1
----
1303875

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL 75 * + - 95 * + MIN ( + 3 ) * - 61 col1
----
1303875

query I rowsort
SELECT DISTINCT 93 * - - 78 * 28 AS col1
----
203112

query I rowsort
SELECT ALL 69 * 53
----
3657

query I rowsort
SELECT ALL 27 * + + 85 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL 39 * - + COUNT( * ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL 39 * - + COUNT ( * ) col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT 61 DIV - 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6638
SELECT 61 / - 43 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT CASE 3 WHEN - COUNT( * ) THEN - 60 ELSE NULL END * - ( - 47 ) * - - 3 + 31 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT CASE 3 WHEN - COUNT ( * ) THEN - 60 ELSE NULL END * - ( - 47 ) * - - 3 + 31 * - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL 33 * COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL 33 * COUNT ( * ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT 51 DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-6641
SELECT 51 / 12
----
4

query I rowsort
SELECT ALL + 43 * + 51
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL + 77 + 62 * + + 28 AS col2
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL + 66 * - ( - COUNT( * ) ) * - - 50 * - 89 + + 77 AS col1
----
-293623

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + 66 * - ( - COUNT ( * ) ) * - - 50 * - 89 + + 77 AS col1
----
-293623

query I rowsort
SELECT DISTINCT - - 8 + 12
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT DISTINCT + ( - CASE - + 0 WHEN - + 87 THEN NULL WHEN - 39 THEN NULL WHEN + 13 * + - 51 / + 15 - 47 THEN 76 WHEN 70 THEN 27 ELSE NULL END ) + 76 + + 90 + - MAX( - 87 ) * + - 95 / - COALESCE ( + 38, + 74 * - 75 ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + ( - CASE - + 0 WHEN - + 87 THEN NULL WHEN - 39 THEN NULL WHEN + 13 * + - 51 / + 15 - 47 THEN 76 WHEN 70 THEN 27 ELSE NULL END ) + 76 + + 90 + - MAX ( - 87 ) * + - 95 / - COALESCE ( + 38, + 74 * - 75 ) * 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT + ( + + 46 ) AS col0, + ( + + 87 ) * 41 + + + COUNT( * ) * 39 * + 93 + + COUNT( * ) AS col2
----
46
7195

skipif mysql # not compatible
query II rowsort label-6648
SELECT + ( + + 46 ) AS col0, + ( + + 87 ) * 41 + + + COUNT ( * ) * 39 * + 93 + + COUNT ( * ) AS col2
----
46
7195

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL + - 8 + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + - 8 + - COUNT ( * )
----
-9

query I rowsort
SELECT 88 - + + 47 - - 49 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6651
SELECT ALL - - 95 DIV - CAST( + + 9 AS SIGNED ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - - 95 / - CAST ( + + 9 AS INTEGER ) AS col0
----
-10

query I rowsort
SELECT ALL 52 + 51
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT MAX( ALL + 83 ) * - ( - 49 ) + - CAST( NULL AS SIGNED ) * 91 * + - 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT MAX ( ALL + 83 ) * - ( - 49 ) + - CAST ( NULL AS INTEGER ) * 91 * + - 0 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT ALL - - CAST( NULL AS SIGNED ) / - - 66 / + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - - CAST ( NULL AS INTEGER ) / - - 66 / + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6655
SELECT 88 DIV - 67 - + MIN( - 31 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6655
SELECT 88 / - 67 - + MIN ( - 31 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - 36 - - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 36 - - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL + + 90 - - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL + + 90 - - - COUNT ( * )
----
89

query I rowsort
SELECT ( - 71 ) * + - 94 - 26 * + 11 * - - 80 col1
----
-16206

query I rowsort
SELECT ALL 52 * - 91 AS col1
----
-4732

query II rowsort
SELECT DISTINCT 96, - ( 42 ) AS col0
----
96
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT COUNT( ALL - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT COUNT ( ALL - 63 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT 71 - - + NULLIF ( 63, - + MAX( DISTINCT ( 23 ) ) * - 9 + + ( - COUNT( * ) ) )
----
134

skipif mysql # not compatible
query I rowsort label-6662
SELECT 71 - - + NULLIF ( 63, - + MAX ( DISTINCT ( 23 ) ) * - 9 + + ( - COUNT ( * ) ) )
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6663
SELECT ALL AVG ( ALL + ( - CAST( NULL AS SIGNED ) ) ), - 98 * - 51 AS col2
----
NULL
4998

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL AVG ( ALL + ( - CAST ( NULL AS INTEGER ) ) ), - 98 * - 51 AS col2
----
NULL
4998

onlyif mysql # aggregate syntax: 
query II rowsort label-6664
SELECT 69 AS col1, - 95 * - CASE COUNT( * ) WHEN - - 70 THEN NULL ELSE 87 END
----
69
8265

skipif mysql # not compatible
query II rowsort label-6664
SELECT 69 AS col1, - 95 * - CASE COUNT ( * ) WHEN - - 70 THEN NULL ELSE 87 END
----
69
8265

query I rowsort
SELECT 54 + - 21
----
33

query II rowsort
SELECT 50 AS col1, 88
----
50
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6667
SELECT SUM( + 14 ) + - 64 AS col0, 84 + - + 29 + + + 83 + + 80 AS col2
----
-50
218

skipif mysql # not compatible
query II rowsort label-6667
SELECT SUM ( + 14 ) + - 64 AS col0, 84 + - + 29 + + + 83 + + 80 AS col2
----
-50
218

query II rowsort
SELECT ALL 71, 57 AS col1
----
71
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL 38 + + COUNT( * ) + + 30 * - - 36 AS col2
----
1119

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL 38 + + COUNT ( * ) + + 30 * - - 36 AS col2
----
1119

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT 80 + 45 * + COUNT( * ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-6670
SELECT 80 + 45 * + COUNT ( * ) AS col2
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT 86 DIV + - 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6671
SELECT 86 / + - 21 AS col0
----
-4

query I rowsort
SELECT + 24 * ( + + 48 ) * + 24 + + 27 AS col0
----
27675

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT ALL - MAX( - 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL - MAX ( - 33 ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6674
SELECT ALL - 31, CAST( NULL AS SIGNED ) AS col0
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-6674
SELECT ALL - 31, CAST ( NULL AS INTEGER ) AS col0
----
-31
NULL

query I rowsort
SELECT DISTINCT - CASE + 7 WHEN 99 THEN NULL WHEN + + 8 * - - 94 THEN + - 62 ELSE - ( - + 69 ) END
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6676
SELECT COUNT( DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, MAX( - 73 )
----
0
-73

skipif mysql # not compatible
query II rowsort label-6676
SELECT COUNT ( DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, MAX ( - 73 )
----
0
-73

query I rowsort
SELECT + 90 + - 20 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT + ( + - 14 ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-6678
SELECT + ( + - 14 ) / + 71
----
0

query I rowsort
SELECT - 64 * ( - 74 ) + + ( - 7 ) + 61 AS col1
----
4790

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL + - NULLIF ( COUNT( * ), + 27 + 75 - - + 59 ) * 69 + + 85 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + - NULLIF ( COUNT ( * ), + 27 + 75 - - + 59 ) * 69 + + 85 + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - - ( + COALESCE ( + 91, + 8 + 89 + - - SUM( + + 23 ), 50 ) ) * - ( - 44 ) + - 37 + + - COUNT( * )
----
3966

skipif mysql # not compatible
query I rowsort label-6681
SELECT - - ( + COALESCE ( + 91, + 8 + 89 + - - SUM ( + + 23 ), 50 ) ) * - ( - 44 ) + - 37 + + - COUNT ( * )
----
3966

onlyif mysql # aggregate syntax: 
query II rowsort label-6682
SELECT DISTINCT - 21 * + MAX( - + 60 ) AS col2, - 27 * 72
----
1260
-1944

skipif mysql # not compatible
query II rowsort label-6682
SELECT DISTINCT - 21 * + MAX ( - + 60 ) AS col2, - 27 * 72
----
1260
-1944

query I rowsort
SELECT ALL - - 68 * + 91
----
6188

query I rowsort
SELECT ALL + ( - 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT COUNT( - 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6685
SELECT COUNT ( - 38 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - + 50 + + + COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6686
SELECT - + 50 + + + COUNT ( * ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT CASE 97 WHEN + 92 THEN - 64 WHEN - 90 THEN + - 53 / 48 + + CASE - 24 WHEN NULLIF ( + ( + - MIN( ALL - - 55 ) ), 69 ) * + COUNT( * ) * - 3 * - 83 + - NULLIF ( - + CAST( COUNT( * ) AS SIGNED ), + + 30 * COUNT( * ) * + ( 30 ) * + MIN( ALL 93 ) ) THEN NULL WHEN 13 THEN 20 * + 26 - 99 + - 65 + - - 46 * - 49 + 72 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT CASE 97 WHEN + 92 THEN - 64 WHEN - 90 THEN + - 53 / 48 + + CASE - 24 WHEN NULLIF ( + ( + - MIN ( ALL - - 55 ) ), 69 ) * + COUNT ( * ) * - 3 * - 83 + - NULLIF ( - + CAST ( COUNT ( * ) AS INTEGER ), + + 30 * COUNT ( * ) * + ( 30 ) * + MIN ( ALL 93 ) ) THEN NULL WHEN 13 THEN 20 * + 26 - 99 + - 65 + - - 46 * - 49 + 72 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL - COALESCE ( COUNT( * ), + + 56 * - + 79 + + + COUNT( * ) ) * - - COUNT( * ) + 49
----
48

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - COALESCE ( COUNT ( * ), + + 56 * - + 79 + + + COUNT ( * ) ) * - - COUNT ( * ) + 49
----
48

query I rowsort
SELECT ALL + + 88 - - - 40
----
48

query I rowsort
SELECT DISTINCT - + 26 * 82 + 95
----
-2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6691
SELECT - 86 DIV + + NULLIF ( 52, COUNT( * ) + - - 47 - + CASE SUM( ALL + 33 ) WHEN - 56 THEN - 86 * + 24 + + ( + 11 ) + CAST( + 55 AS SIGNED ) WHEN - 12 * + SUM( DISTINCT 34 ) THEN NULL WHEN + 63 THEN + 57 END ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6691
SELECT - 86 / + + NULLIF ( 52, COUNT ( * ) + - - 47 - + CASE SUM ( ALL + 33 ) WHEN - 56 THEN - 86 * + 24 + + ( + 11 ) + CAST ( + 55 AS INTEGER ) WHEN - 12 * + SUM ( DISTINCT 34 ) THEN NULL WHEN + 63 THEN + 57 END ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT - 56 * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6692
SELECT - 56 * + COUNT ( * )
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-6693
SELECT ALL - 23 DIV 77 AS col0, 74 AS col1
----
0
74

skipif mysql # not compatible
query II rowsort label-6693
SELECT ALL - 23 / 77 AS col0, 74 AS col1
----
0
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - COUNT( * ) * + + 81
----
-81

skipif mysql # not compatible
query I rowsort label-6694
SELECT - COUNT ( * ) * + + 81
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + 41 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + 41 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 15 * + 72
----
1080

query I rowsort
SELECT - 50 * - 90 AS col2
----
4500

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT + 56 + COALESCE ( - + 91, + 49 DIV - + 96 + 22 * - 95, - 63 * 8 + + - 10 * + 95 )
----
-35

skipif mysql # not compatible
query I rowsort label-6698
SELECT + 56 + COALESCE ( - + 91, + 49 / - + 96 + 22 * - 95, - 63 * 8 + + - 10 * + 95 )
----
-35

query I rowsort
SELECT ALL + 88 + - 48 AS col2
----
40

query II rowsort
SELECT DISTINCT 97 + 37 AS col1, - 23
----
134
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6701
SELECT DISTINCT - 61 * CAST( - NULLIF ( SUM( DISTINCT 99 ), + 31 ) AS SIGNED ) AS col2
----
6039

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT - 61 * CAST ( - NULLIF ( SUM ( DISTINCT 99 ), + 31 ) AS INTEGER ) AS col2
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT - 20 * + COALESCE ( - 19, - 59, + COUNT( * ) * + - 54 ) AS col2
----
380

skipif mysql # not compatible
query I rowsort label-6702
SELECT - 20 * + COALESCE ( - 19, - 59, + COUNT ( * ) * + - 54 ) AS col2
----
380

query I rowsort
SELECT ALL 32 + - - 6
----
38

query I rowsort
SELECT DISTINCT - 43 * - 78
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL + 89 + + COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + 89 + + COUNT ( * ) AS col0
----
90

query I rowsort
SELECT - 84 * + 43 AS col1
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + 90 * - 7 * - SUM( 38 ) AS col0
----
23940

skipif mysql # not compatible
query I rowsort label-6707
SELECT + 90 * - 7 * - SUM ( 38 ) AS col0
----
23940

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6708
SELECT DISTINCT + CASE - 45 WHEN - 36 THEN NULL WHEN ( - + CAST( - - NULLIF ( + 90, - + 62 + + - 76 ) AS DECIMAL ) ) * + 55 THEN + 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + CASE - 45 WHEN - 36 THEN NULL WHEN ( - + CAST ( - - NULLIF ( + 90, - + 62 + + - 76 ) AS REAL ) ) * + 55 THEN + 27 END AS col1
----
NULL

query II rowsort
SELECT + - 89 * 53 col0, - 14 - - 32 + - + ( 45 ) col1
----
-4717
-27

query I rowsort
SELECT ALL - 84 * 72 AS col0
----
-6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6711
SELECT + SUM( ALL + COALESCE ( 56, - 34 * 23 * - 46 * + 95 ) ) AS col1, + 15 + + - 90 DIV + ( - - 59 ) col2
----
56
14

skipif mysql # not compatible
query II rowsort label-6711
SELECT + SUM ( ALL + COALESCE ( 56, - 34 * 23 * - 46 * + 95 ) ) AS col1, + 15 + + - 90 / + ( - - 59 ) col2
----
56
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT ALL 24 DIV - 58 - + 26 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL 24 / - 58 - + 26 / - - 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT DISTINCT + - 61 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + - 61 / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT + - COUNT( * ) * NULLIF ( COUNT( * ), ( + 30 ) ) - + NULLIF ( - + COALESCE ( - 54, + 18 + + 69 + + + COUNT( ALL + - 66 ) - 41 + + 86 * - 79 * - - 26 * - 13 * + 53 * - 17 + + + 16 ), 51 / - 70 + - - NULLIF ( + 13, - - COUNT( * ) / 29 - + 59 ) ) + - ( - COALESCE ( + 38, - 62 + + ( - 39 ) ) ) + 3 + + COUNT( * ) * 27 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6714
SELECT + - COUNT ( * ) * NULLIF ( COUNT ( * ), ( + 30 ) ) - + NULLIF ( - + COALESCE ( - 54, + 18 + + 69 + + + COUNT ( ALL + - 66 ) - 41 + + 86 * - 79 * - - 26 * - 13 * + 53 * - 17 + + + 16 ), 51 / - 70 + - - NULLIF ( + 13, - - COUNT ( * ) / 29 - + 59 ) ) + - ( - COALESCE ( + 38, - 62 + + ( - 39 ) ) ) + 3 + + COUNT ( * ) * 27 AS col0
----
13

query I rowsort
SELECT + 57 * - + 82
----
-4674

query I rowsort
SELECT ALL + + 96 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT MIN( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6717
SELECT MIN ( + 1 )
----
1

query I rowsort
SELECT + 71 + 62
----
133

query I rowsort
SELECT ALL + ( - - CASE + 40 WHEN + 78 THEN NULL WHEN - 81 THEN - - 65 + 48 + + COALESCE ( - + 62, + - 48, - + 17 ) ELSE - 4 + + + 4 END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT COALESCE ( + COUNT( * ), 19 ) * 29 + 41
----
70

skipif mysql # not compatible
query I rowsort label-6720
SELECT COALESCE ( + COUNT ( * ), 19 ) * 29 + 41
----
70

query I rowsort
SELECT ALL - + 23 * + 91 * + - 27 AS col2
----
56511

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + NULLIF ( 28, + - ( + COUNT( * ) ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6722
SELECT + NULLIF ( 28, + - ( + COUNT ( * ) ) ) AS col1
----
28

query I rowsort
SELECT + 98 * 17 * + - 21 * - 33
----
1154538

query I rowsort
SELECT ALL 10 * 77 * + + 71 AS col0
----
54670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT - CAST( 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-6725
SELECT - CAST ( 44 AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + 92 - + - 97 + MIN( ALL + + 25 ) col0
----
214

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 92 - + - 97 + MIN ( ALL + + 25 ) col0
----
214

query I rowsort
SELECT DISTINCT NULLIF ( 46, + 30 * - ( 46 ) )
----
46

query I rowsort
SELECT ALL 54 * - 98 + + 27 AS col1
----
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT + COUNT( ALL + + 63 ) - + - 86 * COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6729
SELECT + COUNT ( ALL + + 63 ) - + - 86 * COUNT ( * ) AS col1
----
87

query I rowsort
SELECT ALL - 56 + 51
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT + NULLIF ( 42, 1 ) + + COUNT( * ) - 67
----
-24

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT + NULLIF ( 42, 1 ) + + COUNT ( * ) - 67
----
-24

query I rowsort
SELECT ALL ( - - 95 )
----
95

query I rowsort
SELECT ALL + 84 + + 70 AS col1
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6734
SELECT DISTINCT + MIN( ALL 30 ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT + MIN ( ALL 30 ) / + 86
----
0

query I rowsort
SELECT + ( + - 46 ) + - + 42
----
-88

query I rowsort
SELECT - 90 - ( 40 ) AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + CASE + - ( + COUNT( * ) ) WHEN - 84 THEN + COUNT( * ) - 83 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + CASE + - ( + COUNT ( * ) ) WHEN - 84 THEN + COUNT ( * ) - 83 END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - 61 + - - MIN( + + 84 )
----
23

skipif mysql # not compatible
query I rowsort label-6738
SELECT - 61 + - - MIN ( + + 84 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT - 67 * - - ( + COUNT( * ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6739
SELECT - 67 * - - ( + COUNT ( * ) ) AS col1
----
-67

query I rowsort
SELECT 5 + + 39
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT - + ( NULLIF ( COUNT( * ), - + 59 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6741
SELECT - + ( NULLIF ( COUNT ( * ), - + 59 ) )
----
-1

query I rowsort
SELECT ALL - ( + 98 ) * 80 * - 70
----
548800

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT - - 59 * - COALESCE ( - 76, COUNT( * ) * COUNT( * ) * - + MIN( DISTINCT + 86 ) ) * COUNT( * ) * - 74
----
-331816

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT - - 59 * - COALESCE ( - 76, COUNT ( * ) * COUNT ( * ) * - + MIN ( DISTINCT + 86 ) ) * COUNT ( * ) * - 74
----
-331816

query I rowsort
SELECT ALL ( + NULLIF ( - + 72, 66 ) ) - 89
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT ALL + 94 * - MIN( + CAST( + - 76 AS SIGNED ) ) AS col1
----
7144

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + 94 * - MIN ( + CAST ( + - 76 AS INTEGER ) ) AS col1
----
7144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6746
SELECT 46 AS col2, + 94 + - COUNT( ALL - - ( + 92 ) ) + - 71 * 8 DIV + COUNT( * )
----
46
-475

skipif mysql # not compatible
query II rowsort label-6746
SELECT 46 AS col2, + 94 + - COUNT ( ALL - - ( + 92 ) ) + - 71 * 8 / + COUNT ( * )
----
46
-475

query I rowsort
SELECT - 88 + 34
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT CAST( + + CAST( - 65 AS SIGNED ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-6748
SELECT CAST ( + + CAST ( - 65 AS INTEGER ) AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT + - 97 * - 58 + - SUM( - 95 ) AS col2
----
5721

skipif mysql # not compatible
query I rowsort label-6749
SELECT + - 97 * - 58 + - SUM ( - 95 ) AS col2
----
5721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT + CAST( NULL AS SIGNED ) * 96 * 91 + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT + CAST ( NULL AS INTEGER ) * 96 * 91 + + - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT ALL + 11 DIV + 86 * + 95
----
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + 11 / + 86 * + 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT + + 19 AS col0, 1 + - COALESCE ( - 45, - COUNT( * ) )
----
19
46

skipif mysql # not compatible
query II rowsort label-6752
SELECT + + 19 AS col0, 1 + - COALESCE ( - 45, - COUNT ( * ) )
----
19
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT - 77 * - NULLIF ( 36, + COUNT( * ) ) * - CAST( NULL AS SIGNED ) + 11 + NULLIF ( - ( + COUNT( ALL + 76 ) ), + 16 ) - + 7 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT - 77 * - NULLIF ( 36, + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + 11 + NULLIF ( - ( + COUNT ( ALL + 76 ) ), + 16 ) - + 7 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT ALL + 51 DIV - COUNT( * ) + + - SUM( DISTINCT + ( - 68 ) ) + - 81 * 92 AS col1
----
-7435

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL + 51 / - COUNT ( * ) + + - SUM ( DISTINCT + ( - 68 ) ) + - 81 * 92 AS col1
----
-7435

query II rowsort
SELECT + 61, COALESCE ( + - 15, - + 58, 13 ) AS col0
----
61
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6756
SELECT ALL CAST( NULL AS DECIMAL ) + 54 * 40 * + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL CAST ( NULL AS REAL ) + 54 * 40 * + 35 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - + 70 AS col0, - 86 col0
----
-70
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6758
SELECT 80, NULLIF ( 42, + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col2
----
80
42

skipif mysql # not compatible
query II rowsort label-6758
SELECT 80, NULLIF ( 42, + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2
----
80
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6759
SELECT ALL - 19 AS col2, NULLIF ( 51, - - MAX( ALL - 47 ) ) * - - 96 DIV + - ( 95 )
----
-19
-51

skipif mysql # not compatible
query II rowsort label-6759
SELECT ALL - 19 AS col2, NULLIF ( 51, - - MAX ( ALL - 47 ) ) * - - 96 / + - ( 95 )
----
-19
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT 70 + + + 68 * + CAST( NULL AS SIGNED ) + NULLIF ( - 59, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT 70 + + + 68 * + CAST ( NULL AS INTEGER ) + NULLIF ( - 59, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT + COUNT( * ) * - MAX( - - 67 ) + ( + - 97 ) AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-6761
SELECT + COUNT ( * ) * - MAX ( - - 67 ) + ( + - 97 ) AS col2
----
-164

onlyif mysql # DIV for integer division: 
query II rowsort label-6762
SELECT ALL 27 + - - 94 + 61 DIV - - 34, 60 AS col1
----
122
60

skipif mysql # not compatible
query II rowsort label-6762
SELECT ALL 27 + - - 94 + 61 / - - 34, 60 AS col1
----
122
60

query II rowsort
SELECT ALL + 89 + + + 96 col2, ( + 78 ) AS col0
----
185
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ( + 69 ) + + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-6764
SELECT ( + 69 ) + + COUNT ( * )
----
70

query II rowsort
SELECT - 17, - 12 AS col0
----
-17
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT 15 + - + 80 DIV + COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6766
SELECT 15 + - + 80 / + COUNT ( * ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL COUNT( - - 55 ) * + AVG ( + CASE - - 29 WHEN - 32 THEN - + 74 * + 98 WHEN + - 25 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL COUNT ( - - 55 ) * + AVG ( + CASE - - 29 WHEN - 32 THEN - + 74 * + 98 WHEN + - 25 THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ( - COUNT( * ) ) * - - 64 * 89
----
-5696

skipif mysql # not compatible
query I rowsort label-6768
SELECT ( - COUNT ( * ) ) * - - 64 * 89
----
-5696

query I rowsort
SELECT 34 + - + 0 + 88 * + - 63 + - 51
----
-5561

query I rowsort
SELECT 40 + CASE - 44 WHEN + 4 THEN NULL WHEN - 60 THEN + 61 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 36 AS col1, ( 57 ) + - 58
----
36
-1

query I rowsort
SELECT 39 * 72 AS col2
----
2808

query I rowsort
SELECT - 50 * + 44 AS col0
----
-2200

query I rowsort
SELECT ALL + + 61 * - 30 * - 64 AS col1
----
117120

onlyif mysql # DIV for integer division: 
query II rowsort label-6775
SELECT - 59 DIV + 99, 86 AS col0
----
0
86

skipif mysql # not compatible
query II rowsort label-6775
SELECT - 59 / + 99, 86 AS col0
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT 18 * - MAX( - 38 )
----
684

skipif mysql # not compatible
query I rowsort label-6776
SELECT 18 * - MAX ( - 38 )
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT - - SUM( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-6777
SELECT - - SUM ( 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT + NULLIF ( 76, CAST( 85 AS SIGNED ) ) * + 7 AS col0
----
532

skipif mysql # not compatible
query I rowsort label-6778
SELECT + NULLIF ( 76, CAST ( 85 AS INTEGER ) ) * + 7 AS col0
----
532

query I rowsort
SELECT DISTINCT - - 51
----
51

query I rowsort
SELECT ( - + 99 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6781
SELECT - - NULLIF ( - 15, - - 41 * - + 76 ) * 64 - + ( 1 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT - - NULLIF ( - 15, - - 41 * - + 76 ) * 64 - + ( 1 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( ( 80 ) )
----
80

query I rowsort
SELECT ALL + + 89 * - 98 * 23
----
-200606

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6784
SELECT - COUNT( * ) AS col2, - 43 + + ( - 54 ) DIV MAX( + + 85 ) AS col1
----
-1
-43

skipif mysql # not compatible
query II rowsort label-6784
SELECT - COUNT ( * ) AS col2, - 43 + + ( - 54 ) / MAX ( + + 85 ) AS col1
----
-1
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL - 99 + - COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - 99 + - COUNT ( * )
----
-100

query I rowsort
SELECT + + ( - 17 )
----
-17

query I rowsort
SELECT 57 + + 74 + + 91
----
222

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT + - ( COUNT( * ) ) * - + 5 * - 16 + 91 + 95 + + - NULLIF ( + 82, 43 / + COUNT( * ) ) * 53 - - 44 AS col2, 83
----
-4196
83

skipif mysql # not compatible
query II rowsort label-6788
SELECT + - ( COUNT ( * ) ) * - + 5 * - 16 + 91 + 95 + + - NULLIF ( + 82, 43 / + COUNT ( * ) ) * 53 - - 44 AS col2, 83
----
-4196
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT + + MIN( DISTINCT + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-6789
SELECT + + MIN ( DISTINCT + 62 )
----
62

query I rowsort
SELECT + 11 * 41 + 85 AS col0
----
536

query I rowsort
SELECT ALL + 19 + 51 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT COUNT( * ) + COALESCE ( + 17, - - 78 * - 48 + + + COALESCE ( 42, - 72 * COUNT( * ) + - 95 + 65 ) - 91 * 22 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT COUNT ( * ) + COALESCE ( + 17, - - 78 * - 48 + + + COALESCE ( 42, - 72 * COUNT ( * ) + - 95 + 65 ) - 91 * 22 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6793
SELECT MIN( ALL 60 ) DIV - + 88 * - + 73 col1
----
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT MIN ( ALL 60 ) / - + 88 * - + 73 col1
----
0

query I rowsort
SELECT DISTINCT 57 + - 18 + + 75 * 18 + 55 * - - 11 col1
----
1994

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT - 2 + + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT - 2 + + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 66 AS col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT 5 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT 5 / 33
----
0

query I rowsort
SELECT DISTINCT - 84 + - 94
----
-178

query I rowsort
SELECT ALL 79 * 29 * + 70 AS col0
----
160370

query I rowsort
SELECT - 79 - - 47 - + 31
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6801
SELECT - CASE - MIN( - 55 ) WHEN + + 42 + ( COUNT( * ) ) + 17 THEN NULL WHEN + COALESCE ( - COALESCE ( + COUNT( * ), - COUNT( * ), + + ( - - CASE + - 23 WHEN + + COUNT( * ) * + 45 THEN + 87 + 1 + - ( + + 17 ) ELSE - - 53 END ) * - COALESCE ( - 26, + - 36, + 86 ) ), CAST( + COUNT( * ) AS SIGNED ) ) * - 6 + + 95 THEN + MAX( DISTINCT - - 65 ) WHEN 49 THEN NULL ELSE NULL END, - 12 col2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-6801
SELECT - CASE - MIN ( - 55 ) WHEN + + 42 + ( COUNT ( * ) ) + 17 THEN NULL WHEN + COALESCE ( - COALESCE ( + COUNT ( * ), - COUNT ( * ), + + ( - - CASE + - 23 WHEN + + COUNT ( * ) * + 45 THEN + 87 + 1 + - ( + + 17 ) ELSE - - 53 END ) * - COALESCE ( - 26, + - 36, + 86 ) ), CAST ( + COUNT ( * ) AS INTEGER ) ) * - 6 + + 95 THEN + MAX ( DISTINCT - - 65 ) WHEN 49 THEN NULL ELSE NULL END, - 12 col2
----
NULL
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT + 55 - - 7 - - + 51 - - MAX( DISTINCT + 99 )
----
212

skipif mysql # not compatible
query I rowsort label-6802
SELECT + 55 - - 7 - - + 51 - - MAX ( DISTINCT + 99 )
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + MAX( 37 ) * + SUM( - 79 ) - COUNT( * ) - - 88 AS col2
----
-2836

skipif mysql # not compatible
query I rowsort label-6803
SELECT + MAX ( 37 ) * + SUM ( - 79 ) - COUNT ( * ) - - 88 AS col2
----
-2836

query I rowsort
SELECT DISTINCT 77 col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT ALL 43 - + + 47 + 6 + 45 DIV - 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL 43 - + + 47 + 6 + 45 / - 13 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - MAX( - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6806
SELECT - MAX ( - 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT 72 - - ( + 85 ) - - 0 DIV + MIN( ALL - 79 )
----
157

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT 72 - - ( + 85 ) - - 0 / + MIN ( ALL - 79 )
----
157

query II rowsort
SELECT NULLIF ( + - 40, + 90 ) AS col0, + 60 AS col1
----
-40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL + SUM( - + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + SUM ( - + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT + + 41 - - - COUNT( * ) + + 94
----
134

skipif mysql # not compatible
query I rowsort label-6810
SELECT + + 41 - - - COUNT ( * ) + + 94
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL + 77 * + 6 * MIN( + - 2 )
----
-924

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + 77 * + 6 * MIN ( + - 2 )
----
-924

query I rowsort
SELECT + - 72 + - + ( + + 85 )
----
-157

query I rowsort
SELECT + - 66 - - 20 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT + 96 * - - COUNT( * ) + + 85 + ( 71 ) col1
----
252

skipif mysql # not compatible
query I rowsort label-6814
SELECT + 96 * - - COUNT ( * ) + + 85 + ( 71 ) col1
----
252

query I rowsort
SELECT - - ( - + 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT + ( 41 ) + + COUNT( * ) * - ( - - 82 )
----
-41

skipif mysql # not compatible
query I rowsort label-6816
SELECT + ( 41 ) + + COUNT ( * ) * - ( - - 82 )
----
-41

query I rowsort
SELECT + 23 + - 42 + 3 col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT + 84 + + SUM( 89 ) col2
----
173

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + 84 + + SUM ( 89 ) col2
----
173

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6819
SELECT 56 DIV + - CAST( - - 86 AS SIGNED ) + + CAST( 93 AS SIGNED ) - + 92 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6819
SELECT 56 / + - CAST ( - - 86 AS INTEGER ) + + CAST ( 93 AS INTEGER ) - + 92 AS col0
----
1

query I rowsort
SELECT ALL + + 43 AS col0
----
43

query I rowsort
SELECT + + 95 * - - 6 * + + 60
----
34200

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT - + MIN( ALL - + ( - - 67 ) ) + + 16 + 36 + 46 + + ( - 79 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6822
SELECT - + MIN ( ALL - + ( - - 67 ) ) + + 16 + 36 + 46 + + ( - 79 ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT ALL 62 * CAST( NULLIF ( - + 75, 15 - 89 ) AS SIGNED ) + + 1
----
-4649

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL 62 * CAST ( NULLIF ( - + 75, 15 - 89 ) AS INTEGER ) + + 1
----
-4649

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT - COUNT( * ) * 96
----
-96

skipif mysql # not compatible
query I rowsort label-6824
SELECT - COUNT ( * ) * 96
----
-96

query I rowsort
SELECT ALL - 61 * 43
----
-2623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT COUNT( * ) DIV - + 60 + + + 81 + 15 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6826
SELECT COUNT ( * ) / - + 60 + + + 81 + 15 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6827
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( - 72 ) + + 24 * + 24 * + - 22 AS col1, 64 DIV + 14
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( - 72 ) + + 24 * + 24 * + - 22 AS col1, 64 / + 14
----
NULL
4

query I rowsort
SELECT DISTINCT - 16 * 84
----
-1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6829
SELECT - 15 + + + COUNT( 10 ) + + 14 DIV + + 91
----
-14

skipif mysql # not compatible
query I rowsort label-6829
SELECT - 15 + + + COUNT ( 10 ) + + 14 / + + 91
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - 74 * + COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 74 * + COUNT ( * ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6831
SELECT NULLIF ( - + 71, 79 ), + 45 + + - MIN( DISTINCT - CAST( - + 75 AS SIGNED ) ) + + 39 / - CASE - + 5 WHEN - 90 - + NULLIF ( - 37, + 41 * + - 64 ) / 19 THEN - - MAX( - 87 ) + + ( - 50 ) END AS col0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-6831
SELECT NULLIF ( - + 71, 79 ), + 45 + + - MIN ( DISTINCT - CAST ( - + 75 AS INTEGER ) ) + + 39 / - CASE - + 5 WHEN - 90 - + NULLIF ( - 37, + 41 * + - 64 ) / 19 THEN - - MAX ( - 87 ) + + ( - 50 ) END AS col0
----
-71
NULL

query I rowsort
SELECT 25 * + 80 + + 30 - + + 92 - - 72 AS col2
----
2010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6833
SELECT COALESCE ( - COALESCE ( - + ( NULLIF ( 42, - - 65 ) ), - COUNT( * ) + 54 * 47 * - + 0 ), + 63 * 43 * - - 74 DIV 68 ), - 2 AS col0
----
42
-2

skipif mysql # not compatible
query II rowsort label-6833
SELECT COALESCE ( - COALESCE ( - + ( NULLIF ( 42, - - 65 ) ), - COUNT ( * ) + 54 * 47 * - + 0 ), + 63 * 43 * - - 74 / 68 ), - 2 AS col0
----
42
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT - ( + COALESCE ( + 67, COALESCE ( - 32, + - 48 * - - 51 * + COALESCE ( + MAX( ALL + 92 ), - 30 ) ) ) ) + - 58 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-6834
SELECT - ( + COALESCE ( + 67, COALESCE ( - 32, + - 48 * - - 51 * + COALESCE ( + MAX ( ALL + 92 ), - 30 ) ) ) ) + - 58 AS col0
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6835
SELECT - 38 * COUNT( * ) * + CASE - ( - + COUNT( * ) ) WHEN + 16 THEN CAST( NULL AS SIGNED ) / + ( + 38 ) WHEN + COUNT( ALL 59 ) / - 9 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 38 * COUNT ( * ) * + CASE - ( - + COUNT ( * ) ) WHEN + 16 THEN CAST ( NULL AS INTEGER ) / + ( + 38 ) WHEN + COUNT ( ALL 59 ) / - 9 THEN NULL END
----
NULL

query I rowsort
SELECT + 44 * - + 50
----
-2200

query I rowsort
SELECT 26 * - 10 + + 48 AS col0
----
-212

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT - 14 - - 51 + - - 92 DIV - 91 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6838
SELECT - 14 - - 51 + - - 92 / - 91 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL CAST( 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL CAST ( 77 AS INTEGER )
----
77

query I rowsort
SELECT - 53 * - ( 52 ) + 75 + - 57 AS col0
----
2774

query I rowsort
SELECT - 8 * + - 81
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT - 25 + + 58 DIV - + 14
----
-29

skipif mysql # not compatible
query I rowsort label-6842
SELECT - 25 + + 58 / - + 14
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT - 54 * - 35 * + COUNT( * ) AS col1
----
1890

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - 54 * - 35 * + COUNT ( * ) AS col1
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT + COUNT( * ) + ( 75 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6844
SELECT + COUNT ( * ) + ( 75 ) AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6845
SELECT + - 12 DIV 62 * + + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6845
SELECT + - 12 / 62 * + + 58 AS col0
----
0

query I rowsort
SELECT ALL - 6 * 47 * - 61
----
17202

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - + COALESCE ( + + 7, NULLIF ( COUNT( * ), 16 ), + COUNT( * ) + - 39 ) * + ( 33 ) + 2
----
-229

skipif mysql # not compatible
query I rowsort label-6847
SELECT - + COALESCE ( + + 7, NULLIF ( COUNT ( * ), 16 ), + COUNT ( * ) + - 39 ) * + ( 33 ) + 2
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT - + SUM( + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-6848
SELECT - + SUM ( + 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6849
SELECT ALL - COUNT( * ) DIV + CAST( + - 17 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL - COUNT ( * ) / + CAST ( + - 17 AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL SUM( 64 ) + 3
----
67

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL SUM ( 64 ) + 3
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT + 95 AS col0, - COUNT( * )
----
95
-1

skipif mysql # not compatible
query II rowsort label-6851
SELECT + 95 AS col0, - COUNT ( * )
----
95
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT ALL - CASE + 50 WHEN + + NULLIF ( + - 52, + 89 ) * + 66 THEN 15 END + + 64 * + COUNT( - 42 ) * + 67 + + 58 / + CAST( NULL AS SIGNED ) * - 65 + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - CASE + 50 WHEN + + NULLIF ( + - 52, + 89 ) * + 66 THEN 15 END + + 64 * + COUNT ( - 42 ) * + 67 + + 58 / + CAST ( NULL AS INTEGER ) * - 65 + - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL + 99 + 46 + - COUNT( * ) + 82 * - 64
----
-5104

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + 99 + 46 + - COUNT ( * ) + 82 * - 64
----
-5104

onlyif mysql # DIV for integer division: 
query I rowsort label-6854
SELECT ALL + 48 DIV 5 + + 48
----
57

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + 48 / 5 + + 48
----
57

query I rowsort
SELECT + 24 * 68
----
1632

query I rowsort
SELECT + - 83 * 73 - + 81
----
-6140

query I rowsort
SELECT DISTINCT + + ( + - 85 ) AS col0
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-6858
SELECT ALL 63 DIV 49 - ( 52 ) AS col2, 8 col0
----
-51
8

skipif mysql # not compatible
query II rowsort label-6858
SELECT ALL 63 / 49 - ( 52 ) AS col2, 8 col0
----
-51
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT ALL + 75 / - - AVG ( + 1 ) * + + 19 + - + 90 * + 44 + - ( 92 ) + - 89 * + 50 * 52 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + 75 / - - AVG ( + 1 ) * + + 19 + - + 90 * + 44 + - ( 92 ) + - 89 * + 50 * 52 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT CAST( - + ( - + 65 ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-6860
SELECT CAST ( - + ( - + 65 ) AS INTEGER )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT 2 * CAST( NULL AS SIGNED ) - + - NULLIF ( + 12, - - 1 + - 67 + 9 ) * + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT 2 * CAST ( NULL AS INTEGER ) - + - NULLIF ( + 12, - - 1 + - 67 + 9 ) * + 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6862
SELECT - 92 + - - 88 * - + CAST( NULL AS SIGNED ) * - ( - ( COUNT( * ) ) ) * - COUNT( * ), COUNT( 24 ) + 5 * + 27 + 31 AS col0
----
NULL
167

skipif mysql # not compatible
query II rowsort label-6862
SELECT - 92 + - - 88 * - + CAST ( NULL AS INTEGER ) * - ( - ( COUNT ( * ) ) ) * - COUNT ( * ), COUNT ( 24 ) + 5 * + 27 + 31 AS col0
----
NULL
167

query I rowsort
SELECT ALL + 39 - + 16 + + - 66
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT CASE 35 WHEN 83 * + COUNT( * ) THEN + 42 END / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT CASE 35 WHEN 83 * + COUNT ( * ) THEN + 42 END / - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT 34 * 10 * - ( - ( - + 61 ) ) * + COUNT( * ) - + 4
----
-20744

skipif mysql # not compatible
query I rowsort label-6865
SELECT 34 * 10 * - ( - ( - + 61 ) ) * + COUNT ( * ) - + 4
----
-20744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6866
SELECT 39 * - CAST( + + 61 AS SIGNED ) * + + 60 + + + 92 * + - COUNT( * ) + COUNT( * ) * - 53 + - 44 DIV - 37
----
-142884

skipif mysql # not compatible
query I rowsort label-6866
SELECT 39 * - CAST ( + + 61 AS INTEGER ) * + + 60 + + + 92 * + - COUNT ( * ) + COUNT ( * ) * - 53 + - 44 / - 37
----
-142884

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - COUNT( + 93 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - COUNT ( + 93 ) col0
----
-1

query I rowsort
SELECT ALL - ( 34 ) col0
----
-34

query I rowsort
SELECT 86 * + + 38 AS col2
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT COUNT( DISTINCT - - 83 ) + 74 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6870
SELECT COUNT ( DISTINCT - - 83 ) + 74 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + 5 + - ( CASE + 66 WHEN 49 THEN NULL ELSE - SUM( + - 0 ) + + 12 END ) + - 46 * + - 94 AS col2
----
4317

skipif mysql # not compatible
query I rowsort label-6871
SELECT + 5 + - ( CASE + 66 WHEN 49 THEN NULL ELSE - SUM ( + - 0 ) + + 12 END ) + - 46 * + - 94 AS col2
----
4317

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - MIN( DISTINCT - + 7 ) + - 85 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - MIN ( DISTINCT - + 7 ) + - 85 AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6873
SELECT - - CASE - 19 WHEN - 74 + - 60 THEN 9 * - - 91 + + 5 / - MIN( + 16 ) * 86 - + - 96 * NULLIF ( - COUNT( * ), 98 ) WHEN 30 + - 47 + - 63 + 34 * - 27 THEN NULL WHEN - + 59 THEN - ( + CAST( NULL AS DECIMAL ) ) * + 39 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT - - CASE - 19 WHEN - 74 + - 60 THEN 9 * - - 91 + + 5 / - MIN ( + 16 ) * 86 - + - 96 * NULLIF ( - COUNT ( * ), 98 ) WHEN 30 + - 47 + - 63 + 34 * - 27 THEN NULL WHEN - + 59 THEN - ( + CAST ( NULL AS REAL ) ) * + 39 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT DISTINCT + COUNT( * ) * + 31 AS col0, 21 col1
----
31
21

skipif mysql # not compatible
query II rowsort label-6874
SELECT DISTINCT + COUNT ( * ) * + 31 AS col0, 21 col1
----
31
21

query I rowsort
SELECT ALL + 34 + - ( - 72 ) * - 82 AS col2
----
-5870

query I rowsort
SELECT - 72 + - 72 + + 26 AS col2
----
-118

query I rowsort
SELECT - ( - 67 ) - + + 7
----
60

query I rowsort
SELECT ALL - - 70 + - + 52 + + 49 * 40 - + 12 AS col2
----
1966

query II rowsort
SELECT + NULLIF ( 83, - ( - 82 ) ), + 39 AS col2
----
83
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT COUNT( * ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-6880
SELECT COUNT ( * ) + - 66
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6881
SELECT DISTINCT - CASE - 96 WHEN - + COALESCE ( - + 92, - - 33 ) THEN 83 ELSE - - ( + - CAST( 52 AS SIGNED ) ) END col2, NULLIF ( - 93, + + 88 ) AS col1
----
52
-93

skipif mysql # not compatible
query II rowsort label-6881
SELECT DISTINCT - CASE - 96 WHEN - + COALESCE ( - + 92, - - 33 ) THEN 83 ELSE - - ( + - CAST ( 52 AS INTEGER ) ) END col2, NULLIF ( - 93, + + 88 ) AS col1
----
52
-93

query I rowsort
SELECT 50 + + 8 AS col2
----
58

query I rowsort
SELECT ALL 92 - 55 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT 99 * - 85 * - COUNT( 75 ) AS col1
----
8415

skipif mysql # not compatible
query I rowsort label-6884
SELECT 99 * - 85 * - COUNT ( 75 ) AS col1
----
8415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6885
SELECT + 95, 19 * + + COUNT( * ) * - 88 / + - MIN( + - ( - + CAST( NULL AS SIGNED ) ) ) + - - NULLIF ( + + 83, - + 80 * + AVG ( - + 44 ) ) + + + ( + + 88 ) AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-6885
SELECT + 95, 19 * + + COUNT ( * ) * - 88 / + - MIN ( + - ( - + CAST ( NULL AS INTEGER ) ) ) + - - NULLIF ( + + 83, - + 80 * + AVG ( - + 44 ) ) + + + ( + + 88 ) AS col1
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT COUNT( * ) + 83 col2
----
84

skipif mysql # not compatible
query I rowsort label-6886
SELECT COUNT ( * ) + 83 col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT ALL 56 - - + 65 + + 80 DIV - 37
----
119

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL 56 - - + 65 + + 80 / - 37
----
119

query I rowsort
SELECT 89 * - + 18
----
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT COALESCE ( + + 43, - ( - COUNT( * ) ) * NULLIF ( - 90, + 15 - - 88 * + - 60 ) ) * - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-6889
SELECT COALESCE ( + + 43, - ( - COUNT ( * ) ) * NULLIF ( - 90, + 15 - - 88 * + - 60 ) ) * - - COUNT ( * )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6890
SELECT 43 * COUNT( * ) DIV + 16 + + CAST( - - 61 AS SIGNED ) + - + 90 * + + NULLIF ( COUNT( * ), - 18 - - - CAST( NULL AS SIGNED ) ) * - + 18 * + COUNT( - 93 ) * - + 9 - + COUNT( * ) col1, + 60 - + - 5 AS col2
----
-14518
65

skipif mysql # not compatible
query II rowsort label-6890
SELECT 43 * COUNT ( * ) / + 16 + + CAST ( - - 61 AS INTEGER ) + - + 90 * + + NULLIF ( COUNT ( * ), - 18 - - - CAST ( NULL AS INTEGER ) ) * - + 18 * + COUNT ( - 93 ) * - + 9 - + COUNT ( * ) col1, + 60 - + - 5 AS col2
----
-14518
65

query II rowsort
SELECT ALL - 69 col1, - 70 + + + 48
----
-69
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT 62 * - 91 + - COUNT( * ) AS col2
----
-5643

skipif mysql # not compatible
query I rowsort label-6892
SELECT 62 * - 91 + - COUNT ( * ) AS col2
----
-5643

query I rowsort
SELECT NULLIF ( + - 62, - 54 * - 91 ) + - - 2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL - SUM( - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL - SUM ( - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT COUNT( * ) * + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6895
SELECT COUNT ( * ) * + 41 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT - 57 * 37 + - CAST( NULL AS SIGNED ) / ( + 14 ) * + 49 + 97 * - + CAST( - 23 AS SIGNED ) * - 19 - + - 17 - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT - 57 * 37 + - CAST ( NULL AS INTEGER ) / ( + 14 ) * + 49 + 97 * - + CAST ( - 23 AS INTEGER ) * - 19 - + - 17 - - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + - 42 + - - 72 - + COALESCE ( - 50, + 48 * - 46 * - MIN( CASE - 10 WHEN + 50 THEN - + 91 ELSE NULL END ) + + - SUM( + 39 ) ) + - - 48 * 48 * ( + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 42 + - - 72 - + COALESCE ( - 50, + 48 * - 46 * - MIN ( CASE - 10 WHEN + 50 THEN - + 91 ELSE NULL END ) + + - SUM ( + 39 ) ) + - - 48 * 48 * ( + 60 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6898
SELECT ALL 84 + - 20 - + - 62 + - ( - 87 ) * COUNT( * ) * COUNT( * ) * + 38 * CASE COUNT( * ) WHEN 35 THEN 48 + - CAST( NULL AS DECIMAL ) + 63 + COUNT( * ) * - COUNT( * ) ELSE NULL END / - + 95 * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL 84 + - 20 - + - 62 + - ( - 87 ) * COUNT ( * ) * COUNT ( * ) * + 38 * CASE COUNT ( * ) WHEN 35 THEN 48 + - CAST ( NULL AS REAL ) + 63 + COUNT ( * ) * - COUNT ( * ) ELSE NULL END / - + 95 * 70 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT ALL ( + 4 ) DIV - + ( + - 43 )
----
0

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL ( + 4 ) / - + ( + - 43 )
----
0

query I rowsort
SELECT 59 + - 8 AS col2
----
51

query I rowsort
SELECT DISTINCT + 91 * + 28 AS col1
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - + 22 + + COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - + 22 + + COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT 93 * - 50 * 82 + - + 6
----
-381306

query I rowsort
SELECT ALL 46 + + 8
----
54

query I rowsort
SELECT 77 + 89 AS col0
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-6906
SELECT ALL + + 10 + + 73 DIV ( - 22 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + + 10 + + 73 / ( - 22 ) AS col1
----
7

query I rowsort
SELECT + 12 + 34 - 19 col1
----
27

query I rowsort
SELECT DISTINCT ( - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT - - MIN( ALL + - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6909
SELECT - - MIN ( ALL + - 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6910
SELECT CASE + 86 WHEN 46 + - ( + 0 ) - - 82 * 61 + COALESCE ( - - 49, + 72 * + CASE - 76 WHEN - ( - 86 ) * 93 * + - 67 THEN NULL ELSE + 81 / CAST( + 98 AS SIGNED ) * + 88 - - - 95 + - + 65 + + 90 * + - 6 END + + 47 * + 66, + ( + COALESCE ( 76, + ( + 62 ), - 74 ) ) ) + 84 THEN + CAST( NULL AS DECIMAL ) * 67 WHEN - 32 * + + 1 + - 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT CASE + 86 WHEN 46 + - ( + 0 ) - - 82 * 61 + COALESCE ( - - 49, + 72 * + CASE - 76 WHEN - ( - 86 ) * 93 * + - 67 THEN NULL ELSE + 81 / CAST ( + 98 AS INTEGER ) * + 88 - - - 95 + - + 65 + + 90 * + - 6 END + + 47 * + 66, + ( + COALESCE ( 76, + ( + 62 ), - 74 ) ) ) + 84 THEN + CAST ( NULL AS REAL ) * 67 WHEN - 32 * + + 1 + - 93 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6911
SELECT 46 + - ( + + 14 ), 27 DIV 11 * 6 + 57 AS col2
----
32
69

skipif mysql # not compatible
query II rowsort label-6911
SELECT 46 + - ( + + 14 ), 27 / 11 * 6 + 57 AS col2
----
32
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT ALL + + 30 + + 68 * - 0 * - 53 DIV 27 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + + 30 + + 68 * - 0 * - 53 / 27 AS col1
----
30

query I rowsort
SELECT + 79 * - 78 + + - 21 AS col1
----
-6183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6914
SELECT + 14 col1, + ( - CAST( COUNT( DISTINCT - 79 ) AS SIGNED ) ) AS col2
----
14
-1

skipif mysql # not compatible
query II rowsort label-6914
SELECT + 14 col1, + ( - CAST ( COUNT ( DISTINCT - 79 ) AS INTEGER ) ) AS col2
----
14
-1

query I rowsort
SELECT ALL ( 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ( - - COUNT( DISTINCT - 39 ) ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6916
SELECT ( - - COUNT ( DISTINCT - 39 ) ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN ( - ( + - NULLIF ( - + 67, + 79 ) ) ) THEN + + 49 WHEN + 55 * 16 - - 22 THEN - 68 * - 25 ELSE - 34 END - - - 48 + - 32 * 59
----
-1970

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN ( - ( + - NULLIF ( - + 67, + 79 ) ) ) THEN + + 49 WHEN + 55 * 16 - - 22 THEN - 68 * - 25 ELSE - 34 END - - - 48 + - 32 * 59
----
-1970

query I rowsort
SELECT DISTINCT + 89 * + ( + + 93 ) * + 56 + + ( + 27 )
----
463539

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT DISTINCT - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT - 86 + - 62 * + - COUNT( * ) + 28 + + 31, 66 - + 93 AS col2
----
35
-27

skipif mysql # not compatible
query II rowsort label-6920
SELECT - 86 + - 62 * + - COUNT ( * ) + 28 + + 31, 66 - + 93 AS col2
----
35
-27

query II rowsort
SELECT - 37 col2, 45
----
-37
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - 92 + - - CASE + + COUNT( * ) WHEN + COUNT( * ) + - - SUM( + + 8 ) THEN AVG ( - - 73 ) END + 52 + COUNT( * ) * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT - 92 + - - CASE + + COUNT ( * ) WHEN + COUNT ( * ) + - - SUM ( + + 8 ) THEN AVG ( - - 73 ) END + 52 + COUNT ( * ) * - 11 AS col0
----
NULL

query II rowsort
SELECT - 90, - 78 AS col1
----
-90
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL + COUNT( * ) * - ( 83 ) * + 5 * - + COUNT( * ) + + 14 + + 48 AS col2
----
477

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + COUNT ( * ) * - ( 83 ) * + 5 * - + COUNT ( * ) + + 14 + + 48 AS col2
----
477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT + 68 * + 80 * CAST( 45 AS SIGNED ) AS col0
----
244800

skipif mysql # not compatible
query I rowsort label-6925
SELECT + 68 * + 80 * CAST ( 45 AS INTEGER ) AS col0
----
244800

onlyif mysql # aggregate syntax: 
query II rowsort label-6926
SELECT COUNT( * ) * + - 32 - + - COUNT( * ) - - 82, 21 AS col0
----
51
21

skipif mysql # not compatible
query II rowsort label-6926
SELECT COUNT ( * ) * + - 32 - + - COUNT ( * ) - - 82, 21 AS col0
----
51
21

query I rowsort
SELECT DISTINCT + 94 * 70
----
6580

query I rowsort
SELECT - 32 * - + 67 AS col1
----
2144

query I rowsort
SELECT - 91 - + 37 col1
----
-128

query II rowsort
SELECT + 9 * + 39 * + + ( 2 ) AS col1, - ( + 52 ) - - NULLIF ( - - 34, + 33 / - 61 )
----
702
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL + CASE - COUNT( - 72 ) WHEN + 37 THEN - 90 + - 85 * + 57 * + 64 WHEN - ( - NULLIF ( + 81, - COALESCE ( + + COALESCE ( + 69, - - 42 ), + MIN( ALL - 65 ) + + - 67 ) ) ) * + - 65 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL + CASE - COUNT ( - 72 ) WHEN + 37 THEN - 90 + - 85 * + 57 * + 64 WHEN - ( - NULLIF ( + 81, - COALESCE ( + + COALESCE ( + 69, - - 42 ), + MIN ( ALL - 65 ) + + - 67 ) ) ) * + - 65 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6932
SELECT + 2 + + MIN( + 51 ) + + - ( + CAST( ( - 2 ) AS SIGNED ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6932
SELECT + 2 + + MIN ( + 51 ) + + - ( + CAST ( ( - 2 ) AS INTEGER ) ) AS col2
----
55

query I rowsort
SELECT - 73 * + 52 AS col0
----
-3796

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT + SUM( ALL - 58 ) * + 24
----
-1392

skipif mysql # not compatible
query I rowsort label-6934
SELECT + SUM ( ALL - 58 ) * + 24
----
-1392

onlyif mysql # DIV for integer division: 
query II rowsort label-6935
SELECT ALL + 88, ( - 14 ) DIV 78 - - 34 col2
----
88
34

skipif mysql # not compatible
query II rowsort label-6935
SELECT ALL + 88, ( - 14 ) / 78 - - 34 col2
----
88
34

query I rowsort
SELECT NULLIF ( + ( - 29 ), 0 / 46 ) col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT SUM( - + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-6937
SELECT SUM ( - + 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6938
SELECT ALL 15 * + 51 + SUM( DISTINCT - + 6 ) + - - 43 DIV - + 50 AS col1, 72 col2
----
759
72

skipif mysql # not compatible
query II rowsort label-6938
SELECT ALL 15 * + 51 + SUM ( DISTINCT - + 6 ) + - - 43 / - + 50 AS col1, 72 col2
----
759
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT + COUNT( * ) * - + 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6939
SELECT + COUNT ( * ) * - + 43 AS col1
----
-43

query II rowsort
SELECT + - 92 col1, 11 AS col1
----
-92
11

query I rowsort
SELECT + + 56 * + 49 AS col2
----
2744

query I rowsort
SELECT + - 87 + 76
----
-11

query I rowsort
SELECT + ( - - 74 )
----
74

query I rowsort
SELECT + 7 * 81 + + 79
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6945
SELECT + 90 + 30 AS col0, COUNT( * ) DIV - - ( + - CAST( ( - 97 ) AS SIGNED ) )
----
120
0

skipif mysql # not compatible
query II rowsort label-6945
SELECT + 90 + 30 AS col0, COUNT ( * ) / - - ( + - CAST ( ( - 97 ) AS INTEGER ) )
----
120
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL 60 - - - 52 - + COUNT( * ) * - COALESCE ( - + 40, + + 56 ) - - + COUNT( * ) * - 83 * + + 70 * - 41 AS col2
----
238178

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL 60 - - - 52 - + COUNT ( * ) * - COALESCE ( - + 40, + + 56 ) - - + COUNT ( * ) * - 83 * + + 70 * - 41 AS col2
----
238178

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + COUNT( * ) + 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6947
SELECT + COUNT ( * ) + 10 AS col2
----
11

query I rowsort
SELECT + - 54 * - - ( + + 71 )
----
-3834

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6949
SELECT DISTINCT CAST( NULL AS SIGNED ), - 30 col2
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-6949
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 30 col2
----
NULL
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6950
SELECT - + 80 - - + 30 + 72 DIV + 42 - 56 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-6950
SELECT - + 80 - - + 30 + 72 / + 42 - 56 AS col2
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT + + 10 + + COUNT( * ) AS col1, 45 + + - 66
----
11
-21

skipif mysql # not compatible
query II rowsort label-6951
SELECT + + 10 + + COUNT ( * ) AS col1, 45 + + - 66
----
11
-21

query II rowsort
SELECT ALL - 99 * 44 AS col0, 13
----
-4356
13

query I rowsort
SELECT + 79 * - 62
----
-4898

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6954
SELECT + - NULLIF ( + + 19, - CAST( NULL AS DECIMAL ) ) + - - ( + + MAX( - 73 ) ) AS col2, 50 - + 13
----
-92
37

skipif mysql # not compatible
query II rowsort label-6954
SELECT + - NULLIF ( + + 19, - CAST ( NULL AS REAL ) ) + - - ( + + MAX ( - 73 ) ) AS col2, 50 - + 13
----
-92
37

query I rowsort
SELECT - + 30 + - 4 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT - ( + CAST( CAST( + + 2 AS SIGNED ) AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6956
SELECT - ( + CAST ( CAST ( + + 2 AS INTEGER ) AS INTEGER ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6957
SELECT DISTINCT 39 + - + 83 DIV - + MIN( + 12 )
----
45

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT 39 + - + 83 / - + MIN ( + 12 )
----
45

query II rowsort
SELECT ALL - 8 * + - 41 AS col2, 23 + + NULLIF ( - - 60, 74 ) * - 81 * - 80 + + 59 AS col2
----
328
388882

query II rowsort
SELECT DISTINCT ( - - 76 ) col2, 89 AS col1
----
76
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT - COUNT( * ) DIV + 95 + + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-6960
SELECT - COUNT ( * ) / + 95 + + - 83
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT - 56 * + 46 * + COUNT( * ) AS col2, 91 * 93 AS col0
----
-2576
8463

skipif mysql # not compatible
query II rowsort label-6961
SELECT - 56 * + 46 * + COUNT ( * ) AS col2, 91 * 93 AS col0
----
-2576
8463

query I rowsort
SELECT ALL - COALESCE ( + 87, + + 69, + 72 ) * + CASE + - 38 WHEN + 88 + + 36 + - 41 THEN NULL ELSE - + COALESCE ( 3, 54 * 51 * + 54 ) END AS col1
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6963
SELECT - COUNT( * ) + + + ( - 48 ) + + 33 * + + CAST( AVG ( ALL + + 8 ) AS SIGNED ) DIV - 4
----
-115

skipif mysql # not compatible
query I rowsort label-6963
SELECT - COUNT ( * ) + + + ( - 48 ) + + 33 * + + CAST ( AVG ( ALL + + 8 ) AS INTEGER ) / - 4
----
-115

query I rowsort
SELECT - 25 * + ( 23 ) AS col0
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT + COALESCE ( COUNT( * ), 47, + + 98 * NULLIF ( 13, + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6965
SELECT + COALESCE ( COUNT ( * ), 47, + + 98 * NULLIF ( 13, + COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6966
SELECT 36 * - + 55 + - COALESCE ( - 20, - - COALESCE ( COUNT( * ), - ( - COUNT( * ) ) ), - - 22 + 96 * + 84 + + - 84 + - 0 * + 29 * + 93 + - 60 - + + CAST( 46 AS SIGNED ) DIV + 66 + 17 - ( + 57 ), - 7 * + 43 + 77 ) * + NULLIF ( - CAST( + 54 AS SIGNED ), - 92 + 17 )
----
-3060

skipif mysql # not compatible
query I rowsort label-6966
SELECT 36 * - + 55 + - COALESCE ( - 20, - - COALESCE ( COUNT ( * ), - ( - COUNT ( * ) ) ), - - 22 + 96 * + 84 + + - 84 + - 0 * + 29 * + 93 + - 60 - + + CAST ( 46 AS INTEGER ) / + 66 + 17 - ( + 57 ), - 7 * + 43 + 77 ) * + NULLIF ( - CAST ( + 54 AS INTEGER ), - 92 + 17 )
----
-3060

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT ( + COUNT( * ) ), - 92 AS col1
----
1
-92

skipif mysql # not compatible
query II rowsort label-6967
SELECT ( + COUNT ( * ) ), - 92 AS col1
----
1
-92

query I rowsort
SELECT ALL + 45 * - 59
----
-2655

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - COUNT( * ) + + 73 + + - MIN( DISTINCT - 47 ) * 12 + + + 92 AS col1
----
728

skipif mysql # not compatible
query I rowsort label-6969
SELECT - COUNT ( * ) + + 73 + + - MIN ( DISTINCT - 47 ) * 12 + + + 92 AS col1
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT ALL 90 DIV 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL 90 / 70 AS col1
----
1

query I rowsort
SELECT ( - + 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT + - COALESCE ( - 11, - + COALESCE ( - - CAST( + COUNT( * ) AS SIGNED ), - ( - 9 ), - 0 + + CAST( + AVG ( ALL - 28 ) AS SIGNED ) ), + - 65 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6972
SELECT + - COALESCE ( - 11, - + COALESCE ( - - CAST ( + COUNT ( * ) AS INTEGER ), - ( - 9 ), - 0 + + CAST ( + AVG ( ALL - 28 ) AS INTEGER ) ), + - 65 ) AS col0
----
11

query I rowsort
SELECT + 47 * - 96 + + + 59 + + 69 AS col1
----
-4384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT DISTINCT + 46 * + SUM( DISTINCT + - 48 ) - + + CAST( COUNT( * ) AS SIGNED ) * + 17
----
-2225

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + 46 * + SUM ( DISTINCT + - 48 ) - + + CAST ( COUNT ( * ) AS INTEGER ) * + 17
----
-2225

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL + SUM( - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL + SUM ( - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT - NULLIF ( + 52, + + 33 ) + + - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6976
SELECT - NULLIF ( + 52, + + 33 ) + + - COUNT ( * ) AS col1
----
-53

query I rowsort
SELECT DISTINCT + ( - 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT - 61 + - + 36 AS col2, COUNT( * ) AS col1
----
-97
1

skipif mysql # not compatible
query II rowsort label-6978
SELECT - 61 + - + 36 AS col2, COUNT ( * ) AS col1
----
-97
1

query I rowsort
SELECT + - 44 * 90 AS col1
----
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT ALL + CAST( + CASE + 75 WHEN - - 22 THEN NULL WHEN - - ( - - COUNT( * ) ) THEN - - 1 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + CAST ( + CASE + 75 WHEN - - 22 THEN NULL WHEN - - ( - - COUNT ( * ) ) THEN - - 1 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + MIN( + + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6981
SELECT + MIN ( + + 78 )
----
78

query I rowsort
SELECT ALL - ( 64 )
----
-64

query I rowsort
SELECT + - 51 * 2 AS col2
----
-102

query I rowsort
SELECT - - CASE 36 WHEN + 81 + + 83 THEN - + 30 * + NULLIF ( COALESCE ( - 4, + 40 / - 25 ), + 97 ) WHEN + + 0 / + - 96 THEN 46 ELSE NULL END
----
NULL

query I rowsort
SELECT - 24 + + 17
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6986
SELECT COUNT( * ) DIV - COALESCE ( + 3, + 82 * 50 + 42 + - + 97 * - - 52 * + 15 + - 57, COUNT( * ) * + 4 + - + NULLIF ( 80, 72 ) + - 97 ) + - 76 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6986
SELECT COUNT ( * ) / - COALESCE ( + 3, + 82 * 50 + 42 + - + 97 * - - 52 * + 15 + - 57, COUNT ( * ) * + 4 + - + NULLIF ( 80, 72 ) + - 97 ) + - 76 AS col1
----
-76

query I rowsort
SELECT 78 + + + 99
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6988
SELECT - COUNT( - + 86 ) DIV - 3
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT - COUNT ( - + 86 ) / - 3
----
0

query I rowsort
SELECT 24 * + 31
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT COUNT( - 77 ) * - MAX( ALL 50 ) + 22 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT COUNT ( - 77 ) * - MAX ( ALL 50 ) + 22 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT DISTINCT 80 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT 80 / 84
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - - 75, + 96 ) + + 92 col0
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT ALL 98 + - - MAX( 70 ), - ( - + 75 ) - + COUNT( * ) AS col0
----
168
74

skipif mysql # not compatible
query II rowsort label-6993
SELECT ALL 98 + - - MAX ( 70 ), - ( - + 75 ) - + COUNT ( * ) AS col0
----
168
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT 4 * - 78 * - - COUNT( * ) AS col2
----
-312

skipif mysql # not compatible
query I rowsort label-6994
SELECT 4 * - 78 * - - COUNT ( * ) AS col2
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT COUNT( * ) + - SUM( - + 39 ) - + - 34 + + COUNT( * ) * 82 + - 62 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6995
SELECT COUNT ( * ) + - SUM ( - + 39 ) - + - 34 + + COUNT ( * ) * 82 + - 62 AS col1
----
94

query I rowsort
SELECT DISTINCT 26 * - 43
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT 17 + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6997
SELECT 17 + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT ALL + 49 + + 68
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6999
SELECT - 45 * 34 - - ( + COUNT( * ) ) - ( - 4 ) * + 58 * + NULLIF ( SUM( DISTINCT + 34 ), - 36 * - MAX( ALL + 43 ) * - 36 * - COALESCE ( + SUM( 39 ), + ( - - 1 ) * + CASE - - 56 WHEN + + 61 THEN + COUNT( * ) * + 63 * + - MIN( + 8 ) WHEN + + 30 * NULLIF ( - 69, - 26 ) THEN - - 50 WHEN 39 THEN - - 49 * COUNT( * ) END + - CAST( NULL AS SIGNED ) * - 94 ) + - 96 ) + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + + ( - + COUNT( * ) ) * COUNT( * ) * + 45 + + 52 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT - 45 * 34 - - ( + COUNT ( * ) ) - ( - 4 ) * + 58 * + NULLIF ( SUM ( DISTINCT + 34 ), - 36 * - MAX ( ALL + 43 ) * - 36 * - COALESCE ( + SUM ( 39 ), + ( - - 1 ) * + CASE - - 56 WHEN + + 61 THEN + COUNT ( * ) * + 63 * + - MIN ( + 8 ) WHEN + + 30 * NULLIF ( - 69, - 26 ) THEN - - 50 WHEN 39 THEN - - 49 * COUNT ( * ) END + - CAST ( NULL AS INTEGER ) * - 94 ) + - 96 ) + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + + ( - + COUNT ( * ) ) * COUNT ( * ) * + 45 + + 52 * 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7000
SELECT ALL - 68, + CAST( - 3 AS SIGNED ) - - AVG ( - + ( - CAST( NULL AS SIGNED ) ) ) + + 75 AS col2
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-7000
SELECT ALL - 68, + CAST ( - 3 AS INTEGER ) - - AVG ( - + ( - CAST ( NULL AS INTEGER ) ) ) + + 75 AS col2
----
-68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT 50 DIV + 19 - - 90
----
92

skipif mysql # not compatible
query I rowsort label-7001
SELECT 50 / + 19 - - 90
----
92

query II rowsort
SELECT ALL - 13, + 26 AS col0
----
-13
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT 52 + - 78 / - - CAST( NULL AS SIGNED ) * + 44 * + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT 52 + - 78 / - - CAST ( NULL AS INTEGER ) * + 44 * + - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL ( - 6 ) - - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL ( - 6 ) - - COUNT ( * ) AS col0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7005
SELECT DISTINCT - 59 * + + 17 * - + 73 AS col1, CAST( NULL AS DECIMAL ) * + 24 + - 85 AS col2
----
73219
NULL

skipif mysql # not compatible
query II rowsort label-7005
SELECT DISTINCT - 59 * + + 17 * - + 73 AS col1, CAST ( NULL AS REAL ) * + 24 + - 85 AS col2
----
73219
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7006
SELECT DISTINCT - NULLIF ( 52, - 41 ), 37 / + COUNT( * ) * 82 + + CAST( NULL AS DECIMAL ) + - - 1 AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT - NULLIF ( 52, - 41 ), 37 / + COUNT ( * ) * 82 + + CAST ( NULL AS REAL ) + - - 1 AS col0
----
-52
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT + ( - - 82 ) * + COUNT( * ) / - CAST( NULL AS SIGNED ) - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT + ( - - 82 ) * + COUNT ( * ) / - CAST ( NULL AS INTEGER ) - + 37
----
NULL

query I rowsort
SELECT 55 * 48 + + 64 + - ( - 65 ) AS col2
----
2769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7009
SELECT + ( + CASE - 51 WHEN - 18 / - - ( + 15 ) * - CAST( + MIN( 27 ) AS SIGNED ) + - 61 THEN + 46 ELSE NULL END ) * - 57 * - 96 * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT + ( + CASE - 51 WHEN - 18 / - - ( + 15 ) * - CAST ( + MIN ( 27 ) AS INTEGER ) + - 61 THEN + 46 ELSE NULL END ) * - 57 * - 96 * - + 87
----
NULL

query II rowsort
SELECT DISTINCT + 57 * + - 9 + 47 AS col2, - 34 AS col1
----
-466
-34

query I rowsort
SELECT DISTINCT - - 98 AS col0
----
98

query II rowsort
SELECT DISTINCT - + 46 AS col1, - 36
----
-46
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-7013
SELECT DISTINCT - 2 DIV - ( - 76 ) AS col1, 99 * + 6
----
0
594

skipif mysql # not compatible
query II rowsort label-7013
SELECT DISTINCT - 2 / - ( - 76 ) AS col1, 99 * + 6
----
0
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT DISTINCT - - CAST( + - ( + + 42 ) AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT - - CAST ( + - ( + + 42 ) AS INTEGER )
----
-42

query I rowsort
SELECT - 38 + - 41 * - 57 + - + 8 col0
----
2291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7016
SELECT ( - 87 ) - + ( + + 54 ) + + - ( - CAST( NULL AS SIGNED ) ) AS col1, - 89 / + + NULLIF ( CAST( CAST( - CASE + 25 WHEN - - 20 THEN - 53 - + COUNT( * ) + 10 / - ( - ( 88 ) ) + - - 24 END AS SIGNED ) AS SIGNED ), - ( CASE + + 7 WHEN + - 22 THEN 45 ELSE NULL END ) * 90 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7016
SELECT ( - 87 ) - + ( + + 54 ) + + - ( - CAST ( NULL AS INTEGER ) ) AS col1, - 89 / + + NULLIF ( CAST ( CAST ( - CASE + 25 WHEN - - 20 THEN - 53 - + COUNT ( * ) + 10 / - ( - ( 88 ) ) + - - 24 END AS INTEGER ) AS INTEGER ), - ( CASE + + 7 WHEN + - 22 THEN 45 ELSE NULL END ) * 90 ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL - 8 + + - 31 col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7018
SELECT ALL 50, ( 89 ) * - COUNT( * ) + - + 50 * + COUNT( * ) * + + 24 + - 61 - - 50 AS col1
----
50
-1300

skipif mysql # not compatible
query II rowsort label-7018
SELECT ALL 50, ( 89 ) * - COUNT ( * ) + - + 50 * + COUNT ( * ) * + + 24 + - 61 - - 50 AS col1
----
50
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL MAX( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL MAX ( + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT - COUNT( * ) * + - 97
----
97

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT - COUNT ( * ) * + - 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7021
SELECT COUNT( * ) - - 48 * + COUNT( * ) - + 35 + + + CAST( ( + 57 ) AS DECIMAL ) * + COALESCE ( ( - NULLIF ( MIN( ALL + 11 ), - + ( 76 ) * - - 66 * - ( - 97 ) + 63 + - 30 * + 80 ) ), + 58 ) * 88 * MAX( + 30 ) - + - 70 + + - CASE - 11 WHEN COUNT( + 34 ) THEN NULL WHEN 96 + + COUNT( * ) THEN - - COUNT( * ) WHEN - - 97 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT COUNT ( * ) - - 48 * + COUNT ( * ) - + 35 + + + CAST ( ( + 57 ) AS REAL ) * + COALESCE ( ( - NULLIF ( MIN ( ALL + 11 ), - + ( 76 ) * - - 66 * - ( - 97 ) + 63 + - 30 * + 80 ) ), + 58 ) * 88 * MAX ( + 30 ) - + - 70 + + - CASE - 11 WHEN COUNT ( + 34 ) THEN NULL WHEN 96 + + COUNT ( * ) THEN - - COUNT ( * ) WHEN - - 97 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT COUNT( * ) + - CASE 50 WHEN + 98 THEN + 97 ELSE + ( 68 ) + - 58 END
----
-9

skipif mysql # not compatible
query I rowsort label-7022
SELECT COUNT ( * ) + - CASE 50 WHEN + 98 THEN + 97 ELSE + ( 68 ) + - 58 END
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7023
SELECT CAST( NULL AS DECIMAL ) + - - SUM( ALL - 36 ) + + 75 - + + 43 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT CAST ( NULL AS REAL ) + - - SUM ( ALL - 36 ) + + 75 - + + 43 + 30
----
NULL

query I rowsort
SELECT DISTINCT 85 + - 55 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT 62 + + SUM( + 12 ) + + + 86 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-7025
SELECT 62 + + SUM ( + 12 ) + + + 86 AS col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT ALL 20 + - 58, COUNT( ALL + 1 ) + 58 AS col1
----
-38
59

skipif mysql # not compatible
query II rowsort label-7026
SELECT ALL 20 + - 58, COUNT ( ALL + 1 ) + 58 AS col1
----
-38
59

query I rowsort
SELECT 33 + + - 59 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT DISTINCT SUM( DISTINCT 21 )
----
21

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT SUM ( DISTINCT 21 )
----
21

query I rowsort
SELECT DISTINCT 49 + - 17 + - 71 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL 14 * COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL 14 * COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT ALL ( - 77 ) DIV 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL ( - 77 ) / 43 AS col1
----
-1

query I rowsort
SELECT DISTINCT ( - 50 ) * + 37
----
-1850

query I rowsort
SELECT ALL 16 * - 17 - + - 79 AS col1
----
-193

query I rowsort
SELECT ALL 78 * + 76
----
5928

query I rowsort
SELECT COALESCE ( + 14, + 9 ) + 35 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT + SUM( DISTINCT + - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7036
SELECT + SUM ( DISTINCT + - 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7037
SELECT MIN( + 97 ) + - + ( 74 ) + + CASE - - 26 WHEN CAST( + 56 AS SIGNED ) THEN NULL ELSE - COUNT( * ) * - ( + - 64 ) END - ( + 51 ) DIV - - 60 * - 95
----
-41

skipif mysql # not compatible
query I rowsort label-7037
SELECT MIN ( + 97 ) + - + ( 74 ) + + CASE - - 26 WHEN CAST ( + 56 AS INTEGER ) THEN NULL ELSE - COUNT ( * ) * - ( + - 64 ) END - ( + 51 ) / - - 60 * - 95
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT MAX( 96 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-7038
SELECT MAX ( 96 ) col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL + SUM( 7 ) * - CAST( 24 AS SIGNED )
----
-168

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + SUM ( 7 ) * - CAST ( 24 AS INTEGER )
----
-168

query I rowsort
SELECT + NULLIF ( - 78, 14 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT + - 66 * + 4 + + + CAST( - 63 AS SIGNED ) + COUNT( - 11 ) AS col1
----
-326

skipif mysql # not compatible
query I rowsort label-7041
SELECT + - 66 * + 4 + + + CAST ( - 63 AS INTEGER ) + COUNT ( - 11 ) AS col1
----
-326

query I rowsort
SELECT DISTINCT - NULLIF ( 36, - - 5 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL - - NULLIF ( + + 26, + 47 + - + MIN( + 63 ) - + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - - NULLIF ( + + 26, + 47 + - + MIN ( + 63 ) - + COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT 46 + + + 77 * + - COUNT( * ) * COUNT( * ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-7044
SELECT 46 + + + 77 * + - COUNT ( * ) * COUNT ( * ) col2
----
-31

query I rowsort
SELECT DISTINCT - NULLIF ( - 65, - 90 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - - 67 + + COUNT( * ) + + COUNT( * ) * - + 30
----
38

skipif mysql # not compatible
query I rowsort label-7046
SELECT - - 67 + + COUNT ( * ) + + COUNT ( * ) * - + 30
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7047
SELECT DISTINCT - SUM( + 47 ) DIV + 1 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT - SUM ( + 47 ) / + 1 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT + - 23 * - CASE + 84 WHEN - 50 * - + COUNT( * ) THEN NULL WHEN + 30 THEN NULL WHEN + 29 THEN + COUNT( * ) * - - 2 END AS col1, + 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7048
SELECT + - 23 * - CASE + 84 WHEN - 50 * - + COUNT ( * ) THEN NULL WHEN + 30 THEN NULL WHEN + 29 THEN + COUNT ( * ) * - - 2 END AS col1, + 42
----
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - 12 * - - 7 + + 65 + + 23 * + - MIN( 58 ) AS col1
----
-1353

skipif mysql # not compatible
query I rowsort label-7049
SELECT - 12 * - - 7 + + 65 + + 23 * + - MIN ( 58 ) AS col1
----
-1353

query I rowsort
SELECT DISTINCT + 79 + - 6
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL - 68 * NULLIF ( - 46, + - 8 ) * - 36 - 40 * 38 * + + ( + - COUNT( * ) ) AS col0
----
-111088

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - 68 * NULLIF ( - 46, + - 8 ) * - 36 - 40 * 38 * + + ( + - COUNT ( * ) ) AS col0
----
-111088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT DISTINCT - 10 + + + CAST( NULL AS SIGNED ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - 10 + + + CAST ( NULL AS INTEGER ) + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT + 18 + 10 + + CASE + + 43 WHEN COUNT( * ) * + + 51 THEN NULL ELSE SUM( + 65 ) * + 96 + 19 END - 23 * + 94
----
4125

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT + 18 + 10 + + CASE + + 43 WHEN COUNT ( * ) * + + 51 THEN NULL ELSE SUM ( + 65 ) * + 96 + 19 END - 23 * + 94
----
4125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7054
SELECT ALL CAST( - 4 AS SIGNED ) + + NULLIF ( + MAX( - 61 ), - 47 / CAST( - - 51 AS DECIMAL ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL CAST ( - 4 AS INTEGER ) + + NULLIF ( + MAX ( - 61 ), - 47 / CAST ( - - 51 AS REAL ) ) AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT - AVG ( DISTINCT - 18 ) * + - CASE - 65 WHEN + 30 + 37 - + 16 THEN 12 WHEN - 83 / - - ( + CAST( NULL AS SIGNED ) ) THEN + - COALESCE ( + 58, - 36, - - 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT - AVG ( DISTINCT - 18 ) * + - CASE - 65 WHEN + 30 + 37 - + 16 THEN 12 WHEN - 83 / - - ( + CAST ( NULL AS INTEGER ) ) THEN + - COALESCE ( + 58, - 36, - - 9 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7056
SELECT ALL + ( - NULLIF ( - MAX( + + CAST( + 36 AS SIGNED ) ), COUNT( * ) ) ) DIV + + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + ( - NULLIF ( - MAX ( + + CAST ( + 36 AS INTEGER ) ), COUNT ( * ) ) ) / + + 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL COALESCE ( - SUM( 98 ), - - NULLIF ( 76, - COUNT( * ) + - + COUNT( * ) ) + - - 55, 15, - - ( + 38 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL COALESCE ( - SUM ( 98 ), - - NULLIF ( 76, - COUNT ( * ) + - + COUNT ( * ) ) + - - 55, 15, - - ( + 38 ) ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT - 56 * + CAST( 49 AS SIGNED )
----
-2744

skipif mysql # not compatible
query I rowsort label-7058
SELECT - 56 * + CAST ( 49 AS INTEGER )
----
-2744

query I rowsort
SELECT - 62 + 84 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT - 44, COUNT( * ) AS col1
----
-44
1

skipif mysql # not compatible
query II rowsort label-7060
SELECT - 44, COUNT ( * ) AS col1
----
-44
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7061
SELECT DISTINCT COALESCE ( 30, - 15 ) AS col0, - CAST( + ( - 75 ) AS SIGNED ) * + - 56 * + 52 - - COUNT( * ) AS col2
----
30
-218399

skipif mysql # not compatible
query II rowsort label-7061
SELECT DISTINCT COALESCE ( 30, - 15 ) AS col0, - CAST ( + ( - 75 ) AS INTEGER ) * + - 56 * + 52 - - COUNT ( * ) AS col2
----
30
-218399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7062
SELECT ALL + COUNT( * ) + - 5 DIV + + 56 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL + COUNT ( * ) + - 5 / + + 56 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - MIN( DISTINCT 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-7063
SELECT - MIN ( DISTINCT 42 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7064
SELECT - 26 * COALESCE ( - 65, + CAST( NULL AS SIGNED ) * - COUNT( * ) ) * COUNT( * )
----
1690

skipif mysql # not compatible
query I rowsort label-7064
SELECT - 26 * COALESCE ( - 65, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) * COUNT ( * )
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL 38 * - COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL 38 * - COUNT ( * ) col0
----
-38

query I rowsort
SELECT ALL - 50 - 61 + - 93 AS col0
----
-204

query I rowsort
SELECT DISTINCT 73 * + - 55 AS col1
----
-4015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT ALL + CAST( - - ( - NULLIF ( - + MIN( + + ( - + 11 ) ), + + ( - 88 ) * + 26 - + 44 ) ) AS SIGNED ) - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - - NULLIF ( + CASE - 17 WHEN + 12 THEN - 62 + - - 54 * 83 + 69 WHEN 25 * - 15 * + + ( + COALESCE ( + 10, + + ( - COUNT( * ) ) * 78, COUNT( * ) * 66 + 53 + - 57, + 28 ) ) / + COUNT( * ) * - ( + + 77 ) + + - 54 + + 71 THEN NULL END, - CAST( - - 40 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + CAST ( - - ( - NULLIF ( - + MIN ( + + ( - + 11 ) ), + + ( - 88 ) * + 26 - + 44 ) ) AS INTEGER ) - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - NULLIF ( + CASE - 17 WHEN + 12 THEN - 62 + - - 54 * 83 + 69 WHEN 25 * - 15 * + + ( + COALESCE ( + 10, + + ( - COUNT ( * ) ) * 78, COUNT ( * ) * 66 + 53 + - 57, + 28 ) ) / + COUNT ( * ) * - ( + + 77 ) + + - 54 + + 71 THEN NULL END, - CAST ( - - 40 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 77 * + - 69 AS col1
----
-5313

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT ALL ( - NULLIF ( + MIN( 7 ), ( - 30 ) ) ) AS col0, - 11 * + + 39 * - 71
----
-7
30459

skipif mysql # not compatible
query II rowsort label-7070
SELECT ALL ( - NULLIF ( + MIN ( 7 ), ( - 30 ) ) ) AS col0, - 11 * + + 39 * - 71
----
-7
30459

query II rowsort
SELECT - 21, - 22 AS col1
----
-21
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT - COUNT( * ) + - CASE - - CAST( 60 AS SIGNED ) WHEN + + 54 * + CAST( NULL AS SIGNED ) * 31 THEN NULL WHEN + + SUM( ALL + 33 ) THEN - - ( + - ( - ( - COUNT( * ) ) ) ) WHEN + 27 THEN - 51 * - 78 * + 31 + - + 1 + + - CAST( 47 AS SIGNED ) / - - 28 - CAST( NULL AS SIGNED ) END + - COUNT( * ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT - COUNT ( * ) + - CASE - - CAST ( 60 AS INTEGER ) WHEN + + 54 * + CAST ( NULL AS INTEGER ) * 31 THEN NULL WHEN + + SUM ( ALL + 33 ) THEN - - ( + - ( - ( - COUNT ( * ) ) ) ) WHEN + 27 THEN - 51 * - 78 * + 31 + - + 1 + + - CAST ( 47 AS INTEGER ) / - - 28 - CAST ( NULL AS INTEGER ) END + - COUNT ( * ) + - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7073
SELECT - AVG ( ALL 99 ) * - + 69 * - - 65 + - 70 + + COUNT( * ) + + 43 - 9 * - - 13 - + + MIN( ALL ( - 61 ) ) - + CAST( NULL AS SIGNED ) * COUNT( * ) / - - CASE - + 46 WHEN + - 54 + + 8 + + 63 * + 93 THEN NULL ELSE 62 END * MAX( DISTINCT 2 ) + - + ( - COUNT( * ) ) * + + CAST( 82 AS SIGNED ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT - AVG ( ALL 99 ) * - + 69 * - - 65 + - 70 + + COUNT ( * ) + + 43 - 9 * - - 13 - + + MIN ( ALL ( - 61 ) ) - + CAST ( NULL AS INTEGER ) * COUNT ( * ) / - - CASE - + 46 WHEN + - 54 + + 8 + + 63 * + 93 THEN NULL ELSE 62 END * MAX ( DISTINCT 2 ) + - + ( - COUNT ( * ) ) * + + CAST ( 82 AS INTEGER ) * - 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT + ( - 63 ) + 99 + + CAST( NULL AS SIGNED ) - + 86 * 67 * + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT + ( - 63 ) + 99 + + CAST ( NULL AS INTEGER ) - + 86 * 67 * + 76 AS col2
----
NULL

query I rowsort
SELECT - ( - + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + COUNT( * ) * - + 95
----
-95

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COUNT ( * ) * - + 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7077
SELECT + 86 DIV - ( + MIN( DISTINCT 16 ) ) + + CAST( 74 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7077
SELECT + 86 / - ( + MIN ( DISTINCT 16 ) ) + + CAST ( 74 AS INTEGER ) AS col2
----
69

query I rowsort
SELECT DISTINCT - 76 * 72 + - 12
----
-5484

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT + 54 DIV 56 + - 70 + + 17 * - 76 + + 34
----
-1328

skipif mysql # not compatible
query I rowsort label-7079
SELECT + 54 / 56 + - 70 + + 17 * - 76 + + 34
----
-1328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7080
SELECT ALL + 7 * - ( - 27 ) * 98 DIV + - COUNT( * ) + 18 * COUNT( * ) AS col1
----
-18504

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL + 7 * - ( - 27 ) * 98 / + - COUNT ( * ) + 18 * COUNT ( * ) AS col1
----
-18504

query I rowsort
SELECT ALL - 32 * - - 52
----
-1664

query I rowsort
SELECT ( - + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT - 53 * COUNT( * ) + - 72 + - 49 * - 0
----
-125

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - 53 * COUNT ( * ) + - 72 + - 49 * - 0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT + - CAST( + 89 AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7084
SELECT + - CAST ( + 89 AS INTEGER ) AS col2
----
-89

query I rowsort
SELECT + 43 * + + 62 * - 62 * - 35
----
5785220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT + - ( + - CAST( - - MIN( + 2 ) AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-7086
SELECT + - ( + - CAST ( - - MIN ( + 2 ) AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL - + COUNT( * ) * - 11 - 28 + - - 57 * + - 74 + - + 15 col1
----
-4250

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - + COUNT ( * ) * - 11 - 28 + - - 57 * + - 74 + - + 15 col1
----
-4250

query I rowsort
SELECT ALL 72 * 52 + - 14 AS col1
----
3730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT ALL - 53 * COUNT( DISTINCT 94 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL - 53 * COUNT ( DISTINCT 94 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT + + COUNT( + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-7090
SELECT + + COUNT ( + 74 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT COALESCE ( 57, + 73 + + - CAST( + 67 AS SIGNED ) + + COUNT( * ) * - - 60 * 34 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-7091
SELECT COALESCE ( 57, + 73 + + - CAST ( + 67 AS INTEGER ) + + COUNT ( * ) * - - 60 * 34 ) col2
----
57

query I rowsort
SELECT + 57 + 89 * + 52 AS col0
----
4685

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT + 74 * CASE - 61 WHEN 51 THEN - 3 * - COUNT( * ) WHEN - + 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT + 74 * CASE - 61 WHEN 51 THEN - 3 * - COUNT ( * ) WHEN - + 48 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT 90 * - 30 + SUM( + + 16 )
----
-2684

skipif mysql # not compatible
query I rowsort label-7094
SELECT 90 * - 30 + SUM ( + + 16 )
----
-2684

query II rowsort
SELECT - 40 AS col2, - 18
----
-40
-18

query I rowsort
SELECT ALL - 47 * + 85 - - 29
----
-3966

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT DISTINCT + 3 * 14 - + 39 * 63 + - - COUNT( * ) - - + ( 69 ) AS col1
----
-2345

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT + 3 * 14 - + 39 * 63 + - - COUNT ( * ) - - + ( 69 ) AS col1
----
-2345

query I rowsort
SELECT - 3 + + + 95 AS col1
----
92

query I rowsort
SELECT ALL - 70 * - 56 - - - 59 AS col0
----
3861

query I rowsort
SELECT DISTINCT 67 * - 25
----
-1675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7101
SELECT - 79 + + CASE - SUM( 73 ) WHEN - + 77 THEN NULL WHEN + COUNT( * ) THEN 2 END * MAX( - + 61 ) * 17 - - AVG ( ALL + CAST( + 21 AS SIGNED ) ) * 20 col0, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-7101
SELECT - 79 + + CASE - SUM ( 73 ) WHEN - + 77 THEN NULL WHEN + COUNT ( * ) THEN 2 END * MAX ( - + 61 ) * 17 - - AVG ( ALL + CAST ( + 21 AS INTEGER ) ) * 20 col0, 99
----
NULL
99

query I rowsort
SELECT ALL - 18 - - - ( 61 ) col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT - 97 DIV + SUM( DISTINCT + 39 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7103
SELECT - 97 / + SUM ( DISTINCT + 39 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7104
SELECT ALL COALESCE ( - + 75, + 78 + + COUNT( * ) ), ( + - 48 ) * + + 96 AS col2
----
-75
-4608

skipif mysql # not compatible
query II rowsort label-7104
SELECT ALL COALESCE ( - + 75, + 78 + + COUNT ( * ) ), ( + - 48 ) * + + 96 AS col2
----
-75
-4608

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT ALL - 28 DIV - ( - - 71 ) * - - 80
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - 28 / - ( - - 71 ) * - - 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT ALL - 19 DIV COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - 19 / COUNT ( * ) AS col2
----
-19

query II rowsort
SELECT 42, 78 + + - 80 AS col2
----
42
-2

query I rowsort
SELECT - ( - 7 ) + 72
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT ALL CAST( 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL CAST ( 29 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - NULLIF ( NULLIF ( + ( 16 ), - COUNT( * ) ), COUNT( * ) ) * - 14
----
224

skipif mysql # not compatible
query I rowsort label-7110
SELECT - NULLIF ( NULLIF ( + ( 16 ), - COUNT ( * ) ), COUNT ( * ) ) * - 14
----
224

query I rowsort
SELECT + ( + 81 ) * - ( + 34 )
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + 1 + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7112
SELECT + 1 + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL + COUNT( * ) * + 22
----
22

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + COUNT ( * ) * + 22
----
22

query I rowsort
SELECT - 16 + 80 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT - ( + 92 ) + + + 35 * + + COUNT( * ) DIV + + COALESCE ( + 83, 95 + - - 30 - + 50, + 19 ) * + 47
----
-92

skipif mysql # not compatible
query I rowsort label-7115
SELECT - ( + 92 ) + + + 35 * + + COUNT ( * ) / + + COALESCE ( + 83, 95 + - - 30 - + 50, + 19 ) * + 47
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7116
SELECT ALL + 78 + - CAST( NULL AS SIGNED ) + + 49 + + ( COUNT( * ) ) / + 14 + 88 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL + 78 + - CAST ( NULL AS INTEGER ) + + 49 + + ( COUNT ( * ) ) / + 14 + 88 * - COUNT ( * )
----
NULL

query I rowsort
SELECT 7 * + 42 AS col2
----
294

query I rowsort
SELECT DISTINCT + + 12 + 64 * 62 + + 35 col0
----
4015

query II rowsort
SELECT ALL - - 35 AS col2, + 11 AS col2
----
35
11

query I rowsort
SELECT ALL 49 + + 53 AS col0
----
102

query II rowsort
SELECT + 73 AS col1, 94
----
73
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT DISTINCT + 43 + CASE + 28 WHEN + + 23 THEN NULL WHEN + 27 THEN NULL ELSE - + 48 * + + CAST( NULL AS SIGNED ) - + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT + 43 + CASE + 28 WHEN + + 23 THEN NULL WHEN + 27 THEN NULL ELSE - + 48 * + + CAST ( NULL AS INTEGER ) - + 29 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT - 41 DIV - 5 + + 21 + + COUNT( * ) * + 81 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-7123
SELECT - 41 / - 5 + + 21 + + COUNT ( * ) * + 81 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL + + 33 + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL + + 33 + - COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7125
SELECT ALL - - CAST( NULL AS SIGNED ), 46 DIV + 61 + + + 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-7125
SELECT ALL - - CAST ( NULL AS INTEGER ), 46 / + 61 + + + 23 AS col0
----
NULL
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7126
SELECT 78 + - COALESCE ( 15, + 27 DIV 22 + + 94 + + 69 * MAX( ALL 42 ) ) + + 88 col0
----
151

skipif mysql # not compatible
query I rowsort label-7126
SELECT 78 + - COALESCE ( 15, + 27 / 22 + + 94 + + 69 * MAX ( ALL 42 ) ) + + 88 col0
----
151

query I rowsort
SELECT ALL - ( + 95 ) + + 23 + 7 * + 14 * + 52 + - 32 - - 6 AS col1
----
4998

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7128
SELECT ALL - CAST( + ( - 5 ) AS SIGNED ) * + 60 * - + ( - - 89 ) AS col1, + 14 + + 19
----
-26700
33

skipif mysql # not compatible
query II rowsort label-7128
SELECT ALL - CAST ( + ( - 5 ) AS INTEGER ) * + 60 * - + ( - - 89 ) AS col1, + 14 + + 19
----
-26700
33

query I rowsort
SELECT + + COALESCE ( - 74, + + 32 * + 7 * - 13 ) col2
----
-74

query I rowsort
SELECT ALL - ( 26 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + 7 * - MAX( - + 36 )
----
252

skipif mysql # not compatible
query I rowsort label-7131
SELECT + 7 * - MAX ( - + 36 )
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 55 + + 50 - - CASE 5 WHEN - 25 * - 73 + + - COUNT( * ) THEN + + 39 * + + NULLIF ( - + ( + 53 ), 60 + - COUNT( * ) + + + 0 + - - 61 * - - 83 * - 40 ) - - NULLIF ( - - COALESCE ( + 54, - 52 ), + COUNT( * ) ) END * + 52 * - - 93 + + NULLIF ( + 60, ( + COUNT( * ) ) + + - 31 + - 57 - + - 9 + - - 25 + - SUM( - 78 ) * + 64 - - + 12 - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT 55 + + 50 - - CASE 5 WHEN - 25 * - 73 + + - COUNT ( * ) THEN + + 39 * + + NULLIF ( - + ( + 53 ), 60 + - COUNT ( * ) + + + 0 + - - 61 * - - 83 * - 40 ) - - NULLIF ( - - COALESCE ( + 54, - 52 ), + COUNT ( * ) ) END * + 52 * - - 93 + + NULLIF ( + 60, ( + COUNT ( * ) ) + + - 31 + - 57 - + - 9 + - - 25 + - SUM ( - 78 ) * + 64 - - + 12 - 95 )
----
NULL

query I rowsort
SELECT + 81 * + - 22 + - - 63 AS col0
----
-1719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT DISTINCT - 27 * CASE NULLIF ( MAX( ALL - 95 ), - 51 * - 58 ) WHEN + 37 THEN MIN( DISTINCT + - CAST( 4 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - 27 * CASE NULLIF ( MAX ( ALL - 95 ), - 51 * - 58 ) WHEN + 37 THEN MIN ( DISTINCT + - CAST ( 4 AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7135
SELECT ALL ( - - 12 ) * + + 96 DIV + 6 + - + 29 - + COUNT( * ) + - COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL ( - - 12 ) * + + 96 / + 6 + - + 29 - + COUNT ( * ) + - COUNT ( * )
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT CAST( + 84 AS SIGNED ) + + 2 * + - 98 col2
----
-112

skipif mysql # not compatible
query I rowsort label-7136
SELECT CAST ( + 84 AS INTEGER ) + + 2 * + - 98 col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT COALESCE ( - 85, 50 + + + 85 * - 46 * - CAST( NULL AS SIGNED ) ) * + 29 AS col2
----
-2465

skipif mysql # not compatible
query I rowsort label-7137
SELECT COALESCE ( - 85, 50 + + + 85 * - 46 * - CAST ( NULL AS INTEGER ) ) * + 29 AS col2
----
-2465

query I rowsort
SELECT DISTINCT ( - 30 ) * + 95
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL 33 - - COUNT( * ) * + COUNT( ALL - 41 ) * - 43 - + COUNT( * ) + - MAX( ALL - 64 ) - 82
----
-29

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL 33 - - COUNT ( * ) * + COUNT ( ALL - 41 ) * - 43 - + COUNT ( * ) + - MAX ( ALL - 64 ) - 82
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7140
SELECT ALL CAST( NULL AS DECIMAL ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL CAST ( NULL AS REAL ) * 11
----
NULL

query I rowsort
SELECT DISTINCT - 32 * - 21
----
672

query I rowsort
SELECT 62 * + + 42 AS col2
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT DISTINCT 96 DIV - 14 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT 96 / - 14 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT 52 * COUNT( - + 68 ) * + 68
----
3536

skipif mysql # not compatible
query I rowsort label-7144
SELECT 52 * COUNT ( - + 68 ) * + 68
----
3536

query II rowsort
SELECT 87 * 89 AS col0, - 94 AS col0
----
7743
-94

query I rowsort
SELECT DISTINCT - 14 * + - 34 AS col2
----
476

query I rowsort
SELECT DISTINCT 60 * - 57 AS col0
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL - MIN( DISTINCT 92 ) + 60
----
-32

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - MIN ( DISTINCT 92 ) + 60
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT ALL 95 * MAX( DISTINCT 55 ) * - CAST( NULL AS SIGNED ) * - 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL 95 * MAX ( DISTINCT 55 ) * - CAST ( NULL AS INTEGER ) * - 43 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7150
SELECT ALL - MIN( ALL - CAST( - 31 AS SIGNED ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - MIN ( ALL - CAST ( - 31 AS INTEGER ) ) AS col0
----
-31

query I rowsort
SELECT ALL - + 23 + - 38 * - - 11 - + 58 AS col0
----
-499

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + 66 + - SUM( + + 32 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-7152
SELECT + 66 + - SUM ( + + 32 ) col0
----
34

query I rowsort
SELECT 75 + - - 0 + - 69 * 19 + - 43 + - 85 * 9 col2
----
-2044

query I rowsort
SELECT - COALESCE ( + 28, - - 8, - ( 11 ) ) AS col0
----
-28

query I rowsort
SELECT ALL - ( - - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7156
SELECT - 39 DIV - 38 + - MIN( - 32 ) + - 37 * - COUNT( * ) DIV - ( + 50 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7156
SELECT - 39 / - 38 + - MIN ( - 32 ) + - 37 * - COUNT ( * ) / - ( + 50 ) AS col2
----
33

query I rowsort
SELECT ALL + ( 2 ) + + 88 + - + 0 AS col1
----
90

query I rowsort
SELECT DISTINCT - + 68 * 22 AS col1
----
-1496

query II rowsort
SELECT ALL - - ( - 27 ), 6 col0
----
-27
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7160
SELECT ALL - 89 * + ( + CAST( CASE + - CAST( + 94 AS SIGNED ) WHEN + + ( CAST( NULL AS SIGNED ) ) * + 33 - - + 41 - + + 76 + + 14 + 70 THEN NULL WHEN - 58 THEN - 41 WHEN + 28 * - CASE + + 76 WHEN 4 + - - 39 * - + 29 * + 43 * ( - 72 ) + - 58 THEN NULL WHEN + 16 THEN NULL ELSE 50 + + - ( - 30 ) * + 25 END * - 60 / + COUNT( * ) + + 94 THEN - 71 ELSE NULL END AS SIGNED ) ) + - ( - - 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - 89 * + ( + CAST ( CASE + - CAST ( + 94 AS INTEGER ) WHEN + + ( CAST ( NULL AS INTEGER ) ) * + 33 - - + 41 - + + 76 + + 14 + 70 THEN NULL WHEN - 58 THEN - 41 WHEN + 28 * - CASE + + 76 WHEN 4 + - - 39 * - + 29 * + 43 * ( - 72 ) + - 58 THEN NULL WHEN + 16 THEN NULL ELSE 50 + + - ( - 30 ) * + 25 END * - 60 / + COUNT ( * ) + + 94 THEN - 71 ELSE NULL END AS INTEGER ) ) + - ( - - 42 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7161
SELECT DISTINCT + 31 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + 31 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT - + 1 DIV + 99 + - 6 DIV + + 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7162
SELECT - + 1 / + 99 + - 6 / + + 22 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT ALL + 98 - 99 AS col0, + COUNT( + 80 ) + NULLIF ( - NULLIF ( + + COALESCE ( - 32, COALESCE ( 60, - - 42 ), + 97 ), + 11 ), - - 14 * + COUNT( * ) + - - 27 )
----
-1
33

skipif mysql # not compatible
query II rowsort label-7163
SELECT ALL + 98 - 99 AS col0, + COUNT ( + 80 ) + NULLIF ( - NULLIF ( + + COALESCE ( - 32, COALESCE ( 60, - - 42 ), + 97 ), + 11 ), - - 14 * + COUNT ( * ) + - - 27 )
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + NULLIF ( - COUNT( * ), - 52 * - 46 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7164
SELECT + NULLIF ( - COUNT ( * ), - 52 * - 46 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7165
SELECT DISTINCT - 95 AS col2, MAX( + 21 )
----
-95
21

skipif mysql # not compatible
query II rowsort label-7165
SELECT DISTINCT - 95 AS col2, MAX ( + 21 )
----
-95
21

query I rowsort
SELECT ALL + 18 - - - 75
----
-57

query II rowsort
SELECT DISTINCT - 10 AS col2, + 20 * 21 + + - 30 AS col2
----
-10
390

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT DISTINCT - 45 DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - 45 / 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7169
SELECT ALL - CAST( + CASE COALESCE ( + + 78, - 61 ) WHEN + 57 THEN - 92 * CASE + ( + 7 ) WHEN - 79 * COUNT( * ) THEN ( - MAX( ( - + 73 ) ) ) ELSE NULL END / 90 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - CAST ( + CASE COALESCE ( + + 78, - 61 ) WHEN + 57 THEN - 92 * CASE + ( + 7 ) WHEN - 79 * COUNT ( * ) THEN ( - MAX ( ( - + 73 ) ) ) ELSE NULL END / 90 ELSE NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT + COUNT( * ) * + 29 - - 29 + COUNT( * ) - - 20 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7170
SELECT + COUNT ( * ) * + 29 - - 29 + COUNT ( * ) - - 20 AS col1
----
79

query I rowsort
SELECT 28 * - 87 + 91 + + 43 * 89
----
1482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT ALL 55 * + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL 55 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-55

query I rowsort
SELECT DISTINCT 14 * + 95
----
1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT + 37 * + - COUNT( * ) * + 93 * COALESCE ( - 34, - 0 * - 93 ) + + CAST( + 64 AS SIGNED )
----
117058

skipif mysql # not compatible
query I rowsort label-7174
SELECT + 37 * + - COUNT ( * ) * + 93 * COALESCE ( - 34, - 0 * - 93 ) + + CAST ( + 64 AS INTEGER )
----
117058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7175
SELECT + 74 * CASE - AVG ( + + CAST( NULL AS SIGNED ) ) WHEN - 14 * - 78 + + 96 * + + 6 - + 91 + + 65 / - NULLIF ( - 87, + 79 ) * - COUNT( * ) + + AVG ( DISTINCT - - 22 ) THEN - COUNT( * ) WHEN 82 THEN NULL ELSE 1 END + - + 84 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT + 74 * CASE - AVG ( + + CAST ( NULL AS INTEGER ) ) WHEN - 14 * - 78 + + 96 * + + 6 - + 91 + + 65 / - NULLIF ( - 87, + 79 ) * - COUNT ( * ) + + AVG ( DISTINCT - - 22 ) THEN - COUNT ( * ) WHEN 82 THEN NULL ELSE 1 END + - + 84 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 8 + - - 39
----
47

query I rowsort
SELECT 68 + + COALESCE ( + + 17, - - 76 - + - ( + 91 ) )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7178
SELECT DISTINCT 13 + + - 41 + 62 DIV SUM( DISTINCT - 59 ) * + - 97 * - + 93 + 48
----
-9001

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT 13 + + - 41 + 62 / SUM ( DISTINCT - 59 ) * + - 97 * - + 93 + 48
----
-9001

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT ALL 72 + + - COALESCE ( 76, - COALESCE ( + 99, + 52 + - 71, 83 + - + 69 + - - 15 DIV + 64, + 62 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL 72 + + - COALESCE ( 76, - COALESCE ( + 99, + 52 + - 71, 83 + - + 69 + - - 15 / + 64, + 62 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT ALL 48 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL 48 + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7181
SELECT + 51 AS col2, COUNT( * ) * + - MAX( DISTINCT + 67 )
----
51
-67

skipif mysql # not compatible
query II rowsort label-7181
SELECT + 51 AS col2, COUNT ( * ) * + - MAX ( DISTINCT + 67 )
----
51
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT + 34 + + + COUNT( * ) * 50 * - COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7182
SELECT + 34 + + + COUNT ( * ) * 50 * - COUNT ( * ) AS col1
----
-16

query II rowsort
SELECT 80, 10 * 11 AS col1
----
80
110

query I rowsort
SELECT - ( - + 94 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT ALL - COUNT( + - 1 ) + 76 - 20 DIV + - 70
----
75

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - COUNT ( + - 1 ) + 76 - 20 / + - 70
----
75

query I rowsort
SELECT + - 90 * + - 91
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL - ( NULLIF ( + COUNT( 92 ), - 75 ) ) * + COUNT( - - NULLIF ( - + 62, 35 * - 4 * + 25 ) ) * 5 * + 83 + - 71 * - 3 AS col1
----
-202

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL - ( NULLIF ( + COUNT ( 92 ), - 75 ) ) * + COUNT ( - - NULLIF ( - + 62, 35 * - 4 * + 25 ) ) * 5 * + 83 + - 71 * - 3 AS col1
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT - SUM( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT - SUM ( - - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT - MAX( DISTINCT - 41 ) * + 19 + + + 36 AS col1
----
815

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - MAX ( DISTINCT - 41 ) * + 19 + + + 36 AS col1
----
815

query I rowsort
SELECT ALL 93 * + 53 * + 85 + 87 * - + 28 - 9 AS col1
----
416520

query I rowsort
SELECT + 80 * - + 9
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT MIN( DISTINCT + 94 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-7192
SELECT MIN ( DISTINCT + 94 ) col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7193
SELECT + + 63 * + 58 * CAST( - - 30 AS SIGNED ) + - - SUM( ALL 36 )
----
109656

skipif mysql # not compatible
query I rowsort label-7193
SELECT + + 63 * + 58 * CAST ( - - 30 AS INTEGER ) + - - SUM ( ALL 36 )
----
109656

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT ALL + 52 DIV + - 16
----
-3

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + 52 / + - 16
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7195
SELECT - - 88 * NULLIF ( + - CAST( NULL AS DECIMAL ), - ( - - NULLIF ( + - 48, + + 91 ) ) ) + - 45 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT - - 88 * NULLIF ( + - CAST ( NULL AS REAL ), - ( - - NULLIF ( + - 48, + + 91 ) ) ) + - 45 * 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT - 82 * - CAST( NULL AS SIGNED ) - + 7 + + 72 * - 28 * + 86 + 12 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT - 82 * - CAST ( NULL AS INTEGER ) - + 7 + + 72 * - 28 * + 86 + 12 + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - COUNT( * ) + + COALESCE ( - 7, - 4 * + + COUNT( * ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7197
SELECT - COUNT ( * ) + + COALESCE ( - 7, - 4 * + + COUNT ( * ) ) AS col0
----
-8

query I rowsort
SELECT ALL - 31 * 28
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT - 80 * - MIN( DISTINCT 87 )
----
6960

skipif mysql # not compatible
query I rowsort label-7199
SELECT - 80 * - MIN ( DISTINCT 87 )
----
6960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT ALL - CAST( - 35 AS SIGNED ) * - 24 AS col1
----
-840

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL - CAST ( - 35 AS INTEGER ) * - 24 AS col1
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT DISTINCT + CASE 40 WHEN MAX( + - 73 ) THEN NULL ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT + CASE 40 WHEN MAX ( + - 73 ) THEN NULL ELSE COUNT ( * ) END AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7202
SELECT DISTINCT - 41 * + CASE 56 WHEN 86 / 24 + + - MAX( ALL CAST( NULL AS SIGNED ) ) * + COUNT( * ) THEN + 31 ELSE + 10 END * 53 - + NULLIF ( ( - 97 ), - - COALESCE ( + ( - 52 ), - + 45 / 19 * 31 * - - 4 + - - 94 + - + 94 ) * 77 )
----
-21633

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - 41 * + CASE 56 WHEN 86 / 24 + + - MAX ( ALL CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) THEN + 31 ELSE + 10 END * 53 - + NULLIF ( ( - 97 ), - - COALESCE ( + ( - 52 ), - + 45 / 19 * 31 * - - 4 + - - 94 + - + 94 ) * 77 )
----
-21633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7203
SELECT ALL - 32 * SUM( DISTINCT + - 32 ) * + 84 + + ( - + CASE - 14 WHEN + 99 - + 18 THEN - - 28 WHEN CAST( NULL AS SIGNED ) + + 94 THEN NULL END ) * - CAST( 55 AS SIGNED ) + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - 32 * SUM ( DISTINCT + - 32 ) * + 84 + + ( - + CASE - 14 WHEN + 99 - + 18 THEN - - 28 WHEN CAST ( NULL AS INTEGER ) + + 94 THEN NULL END ) * - CAST ( 55 AS INTEGER ) + 75 AS col2
----
NULL

query I rowsort
SELECT - 44 * + 38 AS col2
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT SUM( 70 ) * - + 60 + + ( + 53 )
----
-4147

skipif mysql # not compatible
query I rowsort label-7205
SELECT SUM ( 70 ) * - + 60 + + ( + 53 )
----
-4147

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL 89 * - 38 + + CASE - COUNT( * ) WHEN + + 10 * 14 THEN 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL 89 * - 38 + + CASE - COUNT ( * ) WHEN + + 10 * 14 THEN 24 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( - 89, - 54 ) AS col1
----
-89

query I rowsort
SELECT ALL 95 * 8 + + 77
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - COUNT( * ) * - 91 * + - 5 AS col0
----
-455

skipif mysql # not compatible
query I rowsort label-7209
SELECT - COUNT ( * ) * - 91 * + - 5 AS col0
----
-455

query I rowsort
SELECT ALL 20 * 68 + 31
----
1391

query I rowsort
SELECT DISTINCT 58 * + - COALESCE ( - 56, - ( 21 ) * - 99, 66 ) + - 26
----
3222

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL SUM( + 85 ) * + 74
----
6290

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL SUM ( + 85 ) * + 74
----
6290

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT - ( - 9 ) DIV - + 93 * - + 15 col2
----
0

skipif mysql # not compatible
query I rowsort label-7213
SELECT - ( - 9 ) / - + 93 * - + 15 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT DISTINCT 1 * + COUNT( * ) * 26 + - + 0
----
26

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT 1 * + COUNT ( * ) * 26 + - + 0
----
26

query I rowsort
SELECT DISTINCT 7 * 19 + - 52 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 48 + + - COUNT( DISTINCT 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 48 + + - COUNT ( DISTINCT 44 ) AS col0
----
NULL

query I rowsort
SELECT + - 5 * + + 57 + - 20 AS col2
----
-305

query I rowsort
SELECT - 71 - 21
----
-92

query I rowsort
SELECT DISTINCT + 66 - + - 35 * - 6 + - NULLIF ( + 53, + + 18 )
----
-197

query I rowsort
SELECT ALL CASE - NULLIF ( + 88, - - ( - 71 ) ) WHEN - 95 + - + 41 - 14 THEN - 66 / - + 49 + + 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT CASE 18 WHEN - 19 THEN 60 WHEN - - 26 * COUNT( * ) + - 16 THEN NULL WHEN - MAX( ALL + 49 ) THEN + + ( + 83 ) + + + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT CASE 18 WHEN - 19 THEN 60 WHEN - - 26 * COUNT ( * ) + - 16 THEN NULL WHEN - MAX ( ALL + 49 ) THEN + + ( + 83 ) + + + 25 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7222
SELECT - + 84 + - 13 + - 93 * - ( + 58 ) AS col1, - CAST( NULL AS SIGNED ) + - 41
----
5297
NULL

skipif mysql # not compatible
query II rowsort label-7222
SELECT - + 84 + - 13 + - 93 * - ( + 58 ) AS col1, - CAST ( NULL AS INTEGER ) + - 41
----
5297
NULL

query I rowsort
SELECT + + 78 - 29
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT ALL + ( 14 ) AS col1, COUNT( * ) * - COUNT( * ) AS col1
----
14
-1

skipif mysql # not compatible
query II rowsort label-7224
SELECT ALL + ( 14 ) AS col1, COUNT ( * ) * - COUNT ( * ) AS col1
----
14
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT + - 62 + - - CAST( + 44 AS SIGNED ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7225
SELECT + - 62 + - - CAST ( + 44 AS INTEGER ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7226
SELECT DISTINCT NULLIF ( - 24, - CAST( NULL AS DECIMAL ) ) * - 53 col1, - COUNT( * )
----
1272
-1

skipif mysql # not compatible
query II rowsort label-7226
SELECT DISTINCT NULLIF ( - 24, - CAST ( NULL AS REAL ) ) * - 53 col1, - COUNT ( * )
----
1272
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT ALL + 23 * + - CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + 23 * + - CAST ( NULL AS INTEGER ) * 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7228
SELECT + + 17 DIV - MAX( DISTINCT - 84 ) * - 71 * ( - COALESCE ( + + CASE + 40 WHEN - + CAST( NULL AS SIGNED ) * 71 * - CAST( - - 63 AS SIGNED ) * - 76 * + 42 THEN - 71 ELSE - ( - 15 ) END, CASE + 34 WHEN - 42 * - - COUNT( ALL + + 54 ) * + + ( - 92 ) - - + 27 + - 14 * 14 THEN NULL ELSE - 98 + 32 + + CAST( + 14 AS SIGNED ) + - 76 - ( + 86 ) * + 5 END ) ) AS col1, - 97 col2
----
0
-97

skipif mysql # not compatible
query II rowsort label-7228
SELECT + + 17 / - MAX ( DISTINCT - 84 ) * - 71 * ( - COALESCE ( + + CASE + 40 WHEN - + CAST ( NULL AS INTEGER ) * 71 * - CAST ( - - 63 AS INTEGER ) * - 76 * + 42 THEN - 71 ELSE - ( - 15 ) END, CASE + 34 WHEN - 42 * - - COUNT ( ALL + + 54 ) * + + ( - 92 ) - - + 27 + - 14 * 14 THEN NULL ELSE - 98 + 32 + + CAST ( + 14 AS INTEGER ) + - 76 - ( + 86 ) * + 5 END ) ) AS col1, - 97 col2
----
0
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7229
SELECT ALL 70 DIV COUNT( * ), + NULLIF ( + COALESCE ( - 35, - + ( - 1 ) ), + + 89 - + COALESCE ( + - 73, - COUNT( * ) - - + 30 - + 20 + + + NULLIF ( - 58, - - 15 + - 5 ) + - 82 * + + CASE COUNT( * ) WHEN - + 32 * 73 THEN NULL WHEN ( 4 ) - 35 THEN NULL ELSE + + ( - 85 ) * + CAST( NULL AS SIGNED ) END + SUM( ALL - 19 ) + - + 76 DIV 48 ) * + 1 * + AVG ( - CAST( NULL AS SIGNED ) ) + - - 24 ) + + CAST( NULL AS SIGNED ) AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL 70 / COUNT ( * ), + NULLIF ( + COALESCE ( - 35, - + ( - 1 ) ), + + 89 - + COALESCE ( + - 73, - COUNT ( * ) - - + 30 - + 20 + + + NULLIF ( - 58, - - 15 + - 5 ) + - 82 * + + CASE COUNT ( * ) WHEN - + 32 * 73 THEN NULL WHEN ( 4 ) - 35 THEN NULL ELSE + + ( - 85 ) * + CAST ( NULL AS INTEGER ) END + SUM ( ALL - 19 ) + - + 76 / 48 ) * + 1 * + AVG ( - CAST ( NULL AS INTEGER ) ) + - - 24 ) + + CAST ( NULL AS INTEGER ) AS col0
----
70
NULL

query I rowsort
SELECT + 14 + + 23 * - 57 AS col2
----
-1297

query I rowsort
SELECT ALL + - ( 72 )
----
-72

query I rowsort
SELECT - 56 * + 77
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT CAST( + 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-7233
SELECT CAST ( + 35 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7234
SELECT + COUNT( * ) DIV + + 68 col0
----
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT + COUNT ( * ) / + + 68 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - COUNT( * ) * - - MIN( CASE + 91 WHEN + 6 THEN - + 49 ELSE 23 END ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7235
SELECT - COUNT ( * ) * - - MIN ( CASE + 91 WHEN + 6 THEN - + 49 ELSE 23 END ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7236
SELECT 91 DIV - 43 - + - MAX( 42 ) + - COALESCE ( - + COUNT( * ), - - CAST( - 89 AS SIGNED ), 45 DIV 63 * + + 21 + + + 7 )
----
41

skipif mysql # not compatible
query I rowsort label-7236
SELECT 91 / - 43 - + - MAX ( 42 ) + - COALESCE ( - + COUNT ( * ), - - CAST ( - 89 AS INTEGER ), 45 / 63 * + + 21 + + + 7 )
----
41

query I rowsort
SELECT - 14 - + 94
----
-108

onlyif mysql # DIV for integer division: 
query II rowsort label-7238
SELECT + 11 AS col1, 58 DIV - + NULLIF ( 42, - 6 ) - + 7 * + 26 AS col0
----
11
-183

skipif mysql # not compatible
query II rowsort label-7238
SELECT + 11 AS col1, 58 / - + NULLIF ( 42, - 6 ) - + 7 * + 26 AS col0
----
11
-183

query I rowsort
SELECT ALL - 65 + 99
----
34

query I rowsort
SELECT DISTINCT + 10 + 50
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ( SUM( ALL - 7 ) ) + - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7241
SELECT ( SUM ( ALL - 7 ) ) + - - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT 3 - + COUNT( * ) + - 42 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7242
SELECT 3 - + COUNT ( * ) + - 42 AS col1
----
-40

query I rowsort
SELECT ALL + 93 * - 95 * 99
----
-874665

query I rowsort
SELECT 2 * - - 5 + 5
----
15

query II rowsort
SELECT 11 AS col1, - 95 AS col2
----
11
-95

query I rowsort
SELECT ALL + 66 - + NULLIF ( - 13, - 68 )
----
79

query I rowsort
SELECT ALL + 93 * 25
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT COUNT( * ) + 82 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7248
SELECT COUNT ( * ) + 82 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL + MIN( + 15 ) - 82 col2
----
-67

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL + MIN ( + 15 ) - 82 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT COUNT( * ) * + 53 col2
----
53

skipif mysql # not compatible
query I rowsort label-7250
SELECT COUNT ( * ) * + 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 21 + COUNT( + 60 - + 1 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-7251
SELECT 21 + COUNT ( + 60 - + 1 ) col0
----
22

query I rowsort
SELECT DISTINCT + 48 - 61 AS col2
----
-13

query I rowsort
SELECT 37 + - 7
----
30

query I rowsort
SELECT 8 * + 32 AS col2
----
256

query I rowsort
SELECT 43 * + 76
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT - NULLIF ( - MAX( ALL - 60 ), - 83 ) * 2 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - NULLIF ( - MAX ( ALL - 60 ), - 83 ) * 2 AS col2
----
-120

query I rowsort
SELECT 17 * 4 AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7258
SELECT ALL COALESCE ( - 42, COUNT( * ) DIV NULLIF ( + 82, 87 ), ( + 48 ) * 56 ) * + 66
----
-2772

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL COALESCE ( - 42, COUNT ( * ) / NULLIF ( + 82, 87 ), ( + 48 ) * 56 ) * + 66
----
-2772

query I rowsort
SELECT DISTINCT ( ( - 42 ) ) * - ( 83 )
----
3486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT DISTINCT + CASE - 9 WHEN - 12 THEN 46 - - CASE - ( 73 ) WHEN - COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 44 / + 65 ELSE - 41 * COUNT( * ) + - 22 END WHEN + 55 THEN NULL END * ( 36 + AVG ( 75 + CAST( 85 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + CASE - 9 WHEN - 12 THEN 46 - - CASE - ( 73 ) WHEN - COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 44 / + 65 ELSE - 41 * COUNT ( * ) + - 22 END WHEN + 55 THEN NULL END * ( 36 + AVG ( 75 + CAST ( 85 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT COUNT( * ) * ( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-7261
SELECT COUNT ( * ) * ( + 31 )
----
31

query I rowsort
SELECT ALL 92 + 69
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT 26 - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7263
SELECT 26 - - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT COUNT( * ) + + 45 * + 85 AS col2
----
3826

skipif mysql # not compatible
query I rowsort label-7264
SELECT COUNT ( * ) + + 45 * + 85 AS col2
----
3826

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ( COUNT( * ) ) + MIN( ALL - 76 ) * - 98 AS col1
----
7449

skipif mysql # not compatible
query I rowsort label-7265
SELECT ( COUNT ( * ) ) + MIN ( ALL - 76 ) * - 98 AS col1
----
7449

query I rowsort
SELECT DISTINCT 98 + 67 AS col0
----
165

query I rowsort
SELECT ALL 56 + 9
----
65

query I rowsort
SELECT ALL 32 + 16 * - 56
----
-864

query I rowsort
SELECT + 56 * - 23 + 17
----
-1271

query I rowsort
SELECT DISTINCT 50 * + 49
----
2450

query I rowsort
SELECT DISTINCT 62 + ( - 68 ) AS col2
----
-6

query I rowsort
SELECT ( - ( + 3 ) ) - - 95
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT 77 + + MIN( + 86 )
----
163

skipif mysql # not compatible
query I rowsort label-7273
SELECT 77 + + MIN ( + 86 )
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT ALL 97 + MAX( ALL 66 ) DIV + 20 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL 97 + MAX ( ALL 66 ) / + 20 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT 67 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-7275
SELECT 67 / - 75
----
0

query I rowsort
SELECT 97 * 73 + - 56 AS col2
----
7025

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL COUNT( * ) - - COALESCE ( - 33, ( - 60 ) ) * 38
----
-1253

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL COUNT ( * ) - - COALESCE ( - 33, ( - 60 ) ) * 38
----
-1253

query I rowsort
SELECT 86 * 20 AS col2
----
1720

query I rowsort
SELECT 22 + 0 AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT ALL - 34 DIV 70 col0
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - 34 / 70 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT DISTINCT 48 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT 48 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 32 AS col1
----
32

query I rowsort
SELECT DISTINCT + + 26 * 31
----
806

query I rowsort
SELECT ALL + 17 * + 11
----
187

query I rowsort
SELECT - 89 * 68 AS col2
----
-6052

query I rowsort
SELECT ALL + 6 * + 71
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL - 56 * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - 56 * + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT 93 - - NULLIF ( CASE 82 WHEN 6 THEN + ( 56 ) WHEN + 43 THEN + 22 * 25 ELSE NULL END, CAST( NULL AS SIGNED ) ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT 93 - - NULLIF ( CASE 82 WHEN 6 THEN + ( 56 ) WHEN + 43 THEN + 22 * 25 ELSE NULL END, CAST ( NULL AS INTEGER ) ) * 61
----
NULL

query I rowsort
SELECT + 83 - + 33 AS col0
----
50

query I rowsort
SELECT + ( 78 ) * 72 AS col1
----
5616

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT - 79 + - 23 * COUNT( * ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - 79 + - 23 * COUNT ( * ) AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT - 73 + + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT - 73 + + COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT DISTINCT 45 + + ( 67 ) DIV COALESCE ( 1 - 2, ( 76 ) * 11 + - CASE - 22 - COUNT( * ) WHEN 3 + 92 THEN 37 WHEN + 81 THEN NULL ELSE NULL END * + 51 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT 45 + + ( 67 ) / COALESCE ( 1 - 2, ( 76 ) * 11 + - CASE - 22 - COUNT ( * ) WHEN 3 + 92 THEN 37 WHEN + 81 THEN NULL ELSE NULL END * + 51 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT + 49 + - COALESCE ( - MIN( DISTINCT - 87 ), CAST( 78 AS SIGNED ) + + CAST( NULL AS SIGNED ) * 36, 80 + 44 * 18 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7294
SELECT + 49 + - COALESCE ( - MIN ( DISTINCT - 87 ), CAST ( 78 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * 36, 80 + 44 * 18 ) AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7295
SELECT ALL - 29 DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - 29 / - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT 65 + MIN( ALL + 45 ) * 78
----
3575

skipif mysql # not compatible
query I rowsort label-7296
SELECT 65 + MIN ( ALL + 45 ) * 78
----
3575

query I rowsort
SELECT DISTINCT - + 41 + 54
----
13

query I rowsort
SELECT DISTINCT + 27 + 57 + - COALESCE ( 18 + - 16, - ( - ( + 89 ) ) ) * 65 AS col0
----
-46

query I rowsort
SELECT ALL - 73 * 9
----
-657

query I rowsort
SELECT ALL + 10 + 97
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL COUNT( - - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL COUNT ( - - 89 )
----
1

query I rowsort
SELECT DISTINCT - 82 + 49
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT DISTINCT + 28 + + 27 - 56 DIV + 9
----
49

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + 28 + + 27 - 56 / + 9
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7304
SELECT DISTINCT 21 * + + COUNT( * ) DIV + 94 + 27 * - COUNT( ( - ( + 54 ) ) )
----
-27

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT 21 * + + COUNT ( * ) / + 94 + 27 * - COUNT ( ( - ( + 54 ) ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT + COUNT( ALL 73 )
----
1

skipif mysql # not compatible
query I rowsort label-7305
SELECT + COUNT ( ALL 73 )
----
1

query I rowsort
SELECT ALL + 25 * + 10 * - 58 + 34 AS col2
----
-14466

query I rowsort
SELECT + 85 * 39 AS col2
----
3315

query I rowsort
SELECT ALL + NULLIF ( - - NULLIF ( 96, 50 * + 0 ), 23 + 22 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + 20 * - CASE 10 WHEN + ( + 6 ) / + ( ( - ( + 49 ) ) ) + COUNT( * ) THEN 85 + - 0 * - 93 WHEN - CASE 30 WHEN CASE 50 WHEN ( 99 ) * 32 THEN - COUNT( 86 ) * 91 - COUNT( - 68 ) ELSE NULL END THEN ( - 60 ) WHEN 58 * 85 + 76 * + MAX( 11 ) THEN NULL ELSE COALESCE ( 49, + 28 / + COUNT( * ), ( - 46 ) ) / + 77 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT + 20 * - CASE 10 WHEN + ( + 6 ) / + ( ( - ( + 49 ) ) ) + COUNT ( * ) THEN 85 + - 0 * - 93 WHEN - CASE 30 WHEN CASE 50 WHEN ( 99 ) * 32 THEN - COUNT ( 86 ) * 91 - COUNT ( - 68 ) ELSE NULL END THEN ( - 60 ) WHEN 58 * 85 + 76 * + MAX ( 11 ) THEN NULL ELSE COALESCE ( 49, + 28 / + COUNT ( * ), ( - 46 ) ) / + 77 END THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT CASE + 75 WHEN + NULLIF ( COUNT( * ), + 7 * + 70 + 32 ) * 20 THEN NULL WHEN 35 * - 28 THEN + 36 * 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT CASE + 75 WHEN + NULLIF ( COUNT ( * ), + 7 * + 70 + 32 ) * 20 THEN NULL WHEN 35 * - 28 THEN + 36 * 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT COUNT( * ) * + - 13 - 25 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7311
SELECT COUNT ( * ) * + - 13 - 25 AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT + CASE - - 36 WHEN 69 THEN 0 + + CAST( 78 AS SIGNED ) / COUNT( * ) ELSE - 43 END
----
-43

skipif mysql # not compatible
query I rowsort label-7312
SELECT + CASE - - 36 WHEN 69 THEN 0 + + CAST ( 78 AS INTEGER ) / COUNT ( * ) ELSE - 43 END
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT + 83 DIV - MAX( ALL 34 ) - 76
----
-78

skipif mysql # not compatible
query I rowsort label-7313
SELECT + 83 / - MAX ( ALL 34 ) - 76
----
-78

query I rowsort
SELECT + 84 * 54
----
4536

query I rowsort
SELECT ALL 95 * 41 * 76
----
296020

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + 1 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT + 1 + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL + COUNT( ALL 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + COUNT ( ALL 14 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT + 64 * + MAX( DISTINCT + 48 )
----
3072

skipif mysql # not compatible
query I rowsort label-7318
SELECT + 64 * + MAX ( DISTINCT + 48 )
----
3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT - CAST( NULL AS SIGNED ) + - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT - CAST ( NULL AS INTEGER ) + - + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT - COUNT( * ) * + 52 - - NULLIF ( 65, CASE WHEN 6 <= ( - 81 ) THEN 1 END )
----
13

skipif mysql # not compatible
query I rowsort label-7320
SELECT - COUNT ( * ) * + 52 - - NULLIF ( 65, CASE WHEN 6 <= ( - 81 ) THEN 1 END )
----
13

query I rowsort
SELECT ALL + - 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT + SUM( 93 ) - 82 * 99 AS col2
----
-8025

skipif mysql # not compatible
query I rowsort label-7322
SELECT + SUM ( 93 ) - 82 * 99 AS col2
----
-8025

query I rowsort
SELECT - + 91 - - 18 * 39
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT + NULLIF ( + COUNT( * ), + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-7324
SELECT + NULLIF ( + COUNT ( * ), + 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL - ( + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL + ( + 37 ) + - 49 * 29 AS col2
----
-1384

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT + - 30 + - - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7327
SELECT + - 30 + - - COUNT ( * )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7328
SELECT ALL 37 DIV NULLIF ( 15, - 7 + + 31 * + 28 ) + NULLIF ( 52 - CASE - COUNT( ALL + 76 ) - CASE 19 WHEN COUNT( - 23 ) * 5 + - 95 THEN 51 - CAST( NULL AS SIGNED ) * + 5 ELSE ( 30 ) * - 73 + 63 END WHEN - 7 THEN NULL ELSE COUNT( * ) * 96 END, MAX( ALL + 1 ) * 13 )
----
-42

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL 37 / NULLIF ( 15, - 7 + + 31 * + 28 ) + NULLIF ( 52 - CASE - COUNT ( ALL + 76 ) - CASE 19 WHEN COUNT ( - 23 ) * 5 + - 95 THEN 51 - CAST ( NULL AS INTEGER ) * + 5 ELSE ( 30 ) * - 73 + 63 END WHEN - 7 THEN NULL ELSE COUNT ( * ) * 96 END, MAX ( ALL + 1 ) * 13 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ALL - - 81 + + 31 DIV - 73 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - - 81 + + 31 / - 73 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT ALL CAST( 97 AS SIGNED ) + 1
----
98

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL CAST ( 97 AS INTEGER ) + 1
----
98

query I rowsort
SELECT ALL 59 + + 75 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL + SUM( DISTINCT - 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL + SUM ( DISTINCT - 50 ) AS col1
----
-50

query I rowsort
SELECT + + 53 + - 58
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT + COUNT( * ) * + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7334
SELECT + COUNT ( * ) * + - COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT MAX( DISTINCT - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7335
SELECT MAX ( DISTINCT - 80 )
----
-80

query I rowsort
SELECT - - 73 * - 19
----
-1387

query I rowsort
SELECT ALL + + 77 + + 83 AS col0
----
160

query I rowsort
SELECT - 86 + 49
----
-37

query I rowsort
SELECT - 98 * 9 * - 85 * - 84
----
-6297480

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL NULLIF ( + 96, - COUNT( * ) / + SUM( DISTINCT 69 + 8 ) )
----
96

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL NULLIF ( + 96, - COUNT ( * ) / + SUM ( DISTINCT 69 + 8 ) )
----
96

query I rowsort
SELECT - 15 + + + 19
----
4

query I rowsort
SELECT DISTINCT 21 + - - 80
----
101

query I rowsort
SELECT DISTINCT + 96 - - 15
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7344
SELECT ALL - COUNT( * ) DIV 7 * 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL - COUNT ( * ) / 7 * 70 col1
----
0

query II rowsort
SELECT 24, + 68 + - COALESCE ( - 30, 37 ) + - ( - 54 + - 57 * ( ( + 25 ) ) ) * - 16 AS col0
----
24
-23566

query I rowsort
SELECT ALL NULLIF ( + 65, ( + 47 ) )
----
65

query I rowsort
SELECT + 79 + + - 90 AS col2
----
-11

query I rowsort
SELECT - 61 + COALESCE ( 69, + 15 * 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT - 97 - + + COUNT( - 60 ) + 10 * - 89 * 2 AS col0
----
-1878

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - 97 - + + COUNT ( - 60 ) + 10 * - 89 * 2 AS col0
----
-1878

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT - COUNT( * ) * + 14 * + 81
----
-1134

skipif mysql # not compatible
query I rowsort label-7350
SELECT - COUNT ( * ) * + 14 * + 81
----
-1134

query I rowsort
SELECT ALL + 34 * - 61 * - 84
----
174216

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT + COUNT( * ) * 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + COUNT ( * ) * 49 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT DISTINCT + 52 DIV + + 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT + 52 / + + 18 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT - ( 88 ) DIV 24 + 48
----
45

skipif mysql # not compatible
query I rowsort label-7354
SELECT - ( 88 ) / 24 + 48
----
45

query I rowsort
SELECT ALL + ( + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT - 16 DIV 61 + - ( MIN( 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 16 / 61 + - ( MIN ( 53 ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT ALL + 34 * + MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + 34 * + MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 80 * - ( + - 29 )
----
-2320

query I rowsort
SELECT - 78 + - 73
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT - 62 * - - ( - NULLIF ( 28, COUNT( * ) / - COALESCE ( 56 * - 65, 16 * + 73 - - 75 ) ) )
----
1736

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - 62 * - - ( - NULLIF ( 28, COUNT ( * ) / - COALESCE ( 56 * - 65, 16 * + 73 - - 75 ) ) )
----
1736

query I rowsort
SELECT ALL + ( ( 78 ) )
----
78

query I rowsort
SELECT + 71 + 22
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT + 62 * CAST( + 6 AS SIGNED )
----
372

skipif mysql # not compatible
query I rowsort label-7363
SELECT + 62 * CAST ( + 6 AS INTEGER )
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + MAX( + 54 ) col1
----
54

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + MAX ( + 54 ) col1
----
54

query II rowsort
SELECT ALL + 94, - 19 col1
----
94
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - + 12 * + 54 + - - MAX( ( - 16 ) ) + - 73 AS col1
----
-737

skipif mysql # not compatible
query I rowsort label-7366
SELECT - + 12 * + 54 + - - MAX ( ( - 16 ) ) + - 73 AS col1
----
-737

query I rowsort
SELECT - + 50 * + 18 * 43
----
-38700

query I rowsort
SELECT + - NULLIF ( - 13, + 57 ) + 62 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7369
SELECT DISTINCT 77 * + 58 DIV - COUNT( * ) - ( 77 )
----
-4543

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT 77 * + 58 / - COUNT ( * ) - ( 77 )
----
-4543

query II rowsort
SELECT + - 76 AS col2, + 73 AS col2
----
-76
73

query I rowsort
SELECT ALL + 26 * - 52 + - 50 AS col2
----
-1402

query I rowsort
SELECT DISTINCT - 95 * + - 99 * - 21
----
-197505

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL 16 * + - 15 + + COALESCE ( + 23, SUM( DISTINCT + 99 ) ) AS col1
----
-217

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL 16 * + - 15 + + COALESCE ( + 23, SUM ( DISTINCT + 99 ) ) AS col1
----
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT ALL - 11 * + + 11 + + 41 DIV 9 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - 11 * + + 11 + + 41 / 9 AS col1
----
-117

query I rowsort
SELECT + 29 * + 19 * - 99 - - 86 * - 53
----
-59107

query I rowsort
SELECT ALL + 4 * + + 98 + + 9 + ( 74 + - 47 ) AS col2
----
428

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT + - 24 + - 40 + + COUNT( * ) + + 45 * 79 AS col1
----
3492

skipif mysql # not compatible
query I rowsort label-7377
SELECT + - 24 + - 40 + + COUNT ( * ) + + 45 * 79 AS col1
----
3492

query I rowsort
SELECT + + 18 * 90 + + 31
----
1651

query I rowsort
SELECT + ( + 39 ) + - + 84
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7380
SELECT - COUNT( * ) AS col1, - COUNT( * ) DIV COUNT( * ) * 78 AS col0
----
-1
-78

skipif mysql # not compatible
query II rowsort label-7380
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) / COUNT ( * ) * 78 AS col0
----
-1
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL COUNT( * ) * 49 + 61 - + 78 + + COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL COUNT ( * ) * 49 + 61 - + 78 + + COUNT ( * ) col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7382
SELECT DISTINCT + 51 col2, + CASE - 54 WHEN - 91 THEN 45 - COUNT( * ) ELSE NULL END
----
51
NULL

skipif mysql # not compatible
query II rowsort label-7382
SELECT DISTINCT + 51 col2, + CASE - 54 WHEN - 91 THEN 45 - COUNT ( * ) ELSE NULL END
----
51
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT DISTINCT - 39 * + 47 * + 23 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT - 39 * + 47 * + 23 + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ALL 7 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL 7 / - 52
----
0

query I rowsort
SELECT 71 - + + ( - - 40 ) + 56 * - 2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT DISTINCT 39 DIV + + 10
----
3

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT 39 / + + 10
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT - 65 - - + 3 + + 85 + + - COUNT( * ) * + 79
----
-56

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - 65 - - + 3 + + 85 + + - COUNT ( * ) * + 79
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT - 56 * + COALESCE ( + + 13, + 41, 89 * - COALESCE ( - CASE + 93 WHEN - 26 + 65 THEN + 26 + - MIN( 58 ) * + 82 ELSE + 80 + 93 END, ( + 21 ), + 43 ) + + 60 * 45 )
----
-728

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT - 56 * + COALESCE ( + + 13, + 41, 89 * - COALESCE ( - CASE + 93 WHEN - 26 + 65 THEN + 26 + - MIN ( 58 ) * + 82 ELSE + 80 + 93 END, ( + 21 ), + 43 ) + + 60 * 45 )
----
-728

query I rowsort
SELECT 61 + + 16 AS col2
----
77

query I rowsort
SELECT 96 * + 46 * - 25
----
-110400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT 3 + CAST( + + 35 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-7391
SELECT 3 + CAST ( + + 35 AS INTEGER )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT 15 - - + ( + 97 ) + - + CAST( NULL AS SIGNED ) / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT 15 - - + ( + 97 ) + - + CAST ( NULL AS INTEGER ) / + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT CASE - - 64 WHEN 61 / - 36 * ( - CAST( NULL AS SIGNED ) ) THEN 97 * 44 + + 95 WHEN CASE 16 WHEN + COUNT( * ) THEN - 29 + - 94 WHEN + 43 THEN NULL ELSE + 37 * ( 90 / COALESCE ( + CASE - AVG ( ALL - ( + 8 ) ) WHEN 21 * CASE - 34 WHEN 63 THEN NULL WHEN - ( - 94 ) THEN + 50 + 46 WHEN + 92 + - 95 THEN + COUNT( * ) * 22 END THEN + 82 * + MIN( - 52 ) + 80 * - 74 END, 92 ) ) + - 84 / + COUNT( * ) END THEN CAST( NULL AS SIGNED ) + 29 ELSE NULL END * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT CASE - - 64 WHEN 61 / - 36 * ( - CAST ( NULL AS INTEGER ) ) THEN 97 * 44 + + 95 WHEN CASE 16 WHEN + COUNT ( * ) THEN - 29 + - 94 WHEN + 43 THEN NULL ELSE + 37 * ( 90 / COALESCE ( + CASE - AVG ( ALL - ( + 8 ) ) WHEN 21 * CASE - 34 WHEN 63 THEN NULL WHEN - ( - 94 ) THEN + 50 + 46 WHEN + 92 + - 95 THEN + COUNT ( * ) * 22 END THEN + 82 * + MIN ( - 52 ) + 80 * - 74 END, 92 ) ) + - 84 / + COUNT ( * ) END THEN CAST ( NULL AS INTEGER ) + 29 ELSE NULL END * 55 AS col1
----
NULL

query I rowsort
SELECT 22 * + CASE 83 WHEN + 30 * + 63 THEN 43 WHEN 37 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 31 * + 64 AS col0
----
1984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT 5 + - COUNT( * ) * - COUNT( * ) + 13 DIV - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-7396
SELECT 5 + - COUNT ( * ) * - COUNT ( * ) + 13 / - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT 12 * + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7397
SELECT 12 * + + COUNT ( * )
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7398
SELECT ALL + CAST( NULL AS SIGNED ) / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 92 + + 82
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7400
SELECT 31 DIV COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7400
SELECT 31 / COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - MIN( DISTINCT + 35 ) * + - 62 + + MIN( ALL 95 ) AS col2
----
2265

skipif mysql # not compatible
query I rowsort label-7401
SELECT - MIN ( DISTINCT + 35 ) * + - 62 + + MIN ( ALL 95 ) AS col2
----
2265

onlyif mysql # aggregate syntax: 
query II rowsort label-7402
SELECT 37 * - COUNT( * ), + 67 + + + 92 + 55 * - 23 AS col2
----
-37
-1106

skipif mysql # not compatible
query II rowsort label-7402
SELECT 37 * - COUNT ( * ), + 67 + + + 92 + 55 * - 23 AS col2
----
-37
-1106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7403
SELECT ALL + COUNT( * ) DIV - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL + COUNT ( * ) / - 28 AS col2
----
0

query I rowsort
SELECT ALL - ( + 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT 38 * - 25 - + COALESCE ( - 93, 84 * NULLIF ( - 53 * CAST( 86 AS SIGNED ), 2 + - 86 ), - 3, + 44 ) + 17 AS col2
----
-840

skipif mysql # not compatible
query I rowsort label-7405
SELECT 38 * - 25 - + COALESCE ( - 93, 84 * NULLIF ( - 53 * CAST ( 86 AS INTEGER ), 2 + - 86 ), - 3, + 44 ) + 17 AS col2
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT CASE - COALESCE ( - 60, - 91, 96 ) WHEN CASE + 85 WHEN + 65 THEN 7 * NULLIF ( + MIN( - 70 ), + 74 * - 90 ) ELSE NULL END + + 2 THEN NULL WHEN 15 THEN - 98 ELSE - CASE - NULLIF ( 6, + 92 ) WHEN - 0 THEN NULL ELSE 46 * ( CASE 97 WHEN 37 THEN NULL WHEN 20 THEN 19 - 4 * + NULLIF ( + CAST( NULLIF ( - 79, CAST( + 58 AS SIGNED ) ) AS SIGNED ), COUNT( * ) ) ELSE NULL END * 78 ) END * 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT CASE - COALESCE ( - 60, - 91, 96 ) WHEN CASE + 85 WHEN + 65 THEN 7 * NULLIF ( + MIN ( - 70 ), + 74 * - 90 ) ELSE NULL END + + 2 THEN NULL WHEN 15 THEN - 98 ELSE - CASE - NULLIF ( 6, + 92 ) WHEN - 0 THEN NULL ELSE 46 * ( CASE 97 WHEN 37 THEN NULL WHEN 20 THEN 19 - 4 * + NULLIF ( + CAST ( NULLIF ( - 79, CAST ( + 58 AS INTEGER ) ) AS INTEGER ), COUNT ( * ) ) ELSE NULL END * 78 ) END * 57 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT ALL + + COUNT( CAST( NULL AS SIGNED ) ) + + 4 * COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + + COUNT ( CAST ( NULL AS INTEGER ) ) + + 4 * COUNT ( * ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT MAX( DISTINCT 2 ) - + 89 * + 29 * COUNT( * ) + 34
----
-2545

skipif mysql # not compatible
query I rowsort label-7408
SELECT MAX ( DISTINCT 2 ) - + 89 * + 29 * COUNT ( * ) + 34
----
-2545

query I rowsort
SELECT ALL + - CASE - 66 WHEN + + 80 THEN - + 89 ELSE ( 9 ) END * 9 AS col2
----
-81

query I rowsort
SELECT DISTINCT - - 48 + 57 AS col2
----
105

query I rowsort
SELECT + - 22 col1
----
-22

query I rowsort
SELECT DISTINCT - + 28 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL + 33 + - 82 + 74 + 20 + - COUNT( * ) * - 87 * NULLIF ( 46 * 22, - COUNT( 97 ) ) AS col1
----
88089

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL + 33 + - 82 + 74 + 20 + - COUNT ( * ) * - 87 * NULLIF ( 46 * 22, - COUNT ( 97 ) ) AS col1
----
88089

query I rowsort
SELECT + 2 + - 58 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7415
SELECT + + 43 * + 4 + + CAST( 70 AS SIGNED ) - 94 DIV + 62
----
241

skipif mysql # not compatible
query I rowsort label-7415
SELECT + + 43 * + 4 + + CAST ( 70 AS INTEGER ) - 94 / + 62
----
241

query II rowsort
SELECT 71 + 26 AS col0, COALESCE ( - 46, 45 )
----
97
-46

query I rowsort
SELECT + 85 - + 40 * + + 61 AS col0
----
-2355

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT DISTINCT - + COUNT( 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT - + COUNT ( 97 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - 14 * - 23 + - COUNT( * )
----
321

skipif mysql # not compatible
query I rowsort label-7419
SELECT - 14 * - 23 + - COUNT ( * )
----
321

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT 60 + + 26 DIV 70
----
60

skipif mysql # not compatible
query I rowsort label-7420
SELECT 60 + + 26 / 70
----
60

query I rowsort
SELECT 47 * + 53 + 8
----
2499

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT - 50 * + 54 * + COUNT( * ) * - COUNT( * )
----
2700

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT - 50 * + 54 * + COUNT ( * ) * - COUNT ( * )
----
2700

query I rowsort
SELECT ALL 82 - + 76 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT ALL CAST( + 51 AS SIGNED ) * + + 16
----
816

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL CAST ( + 51 AS INTEGER ) * + + 16
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT COUNT( * ) + 43 - COUNT( ALL 67 )
----
43

skipif mysql # not compatible
query I rowsort label-7425
SELECT COUNT ( * ) + 43 - COUNT ( ALL 67 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT + 90 * + 81 * - MIN( ALL - 44 ) AS col1
----
320760

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT + 90 * + 81 * - MIN ( ALL - 44 ) AS col1
----
320760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7427
SELECT ALL 62 - - 31 * + 78 * 36 * + CAST( NULL AS DECIMAL ) + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL 62 - - 31 * + 78 * 36 * + CAST ( NULL AS REAL ) + + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT DISTINCT 80 AS col1, 46 * + 92 * + COUNT( ALL 98 )
----
80
4232

skipif mysql # not compatible
query II rowsort label-7428
SELECT DISTINCT 80 AS col1, 46 * + 92 * + COUNT ( ALL 98 )
----
80
4232

query I rowsort
SELECT ALL 33 * + + COALESCE ( + + 83, - 80 ) * - 20
----
-54780

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT MIN( + + 34 ) + + 93 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-7430
SELECT MIN ( + + 34 ) + + 93 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT COUNT( * ) + + 21
----
22

skipif mysql # not compatible
query I rowsort label-7431
SELECT COUNT ( * ) + + 21
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7432
SELECT CAST( NULL AS DECIMAL ) + - - 23 + + 80 AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7432
SELECT CAST ( NULL AS REAL ) + - - 23 + + 80 AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT CASE - COUNT( ALL 44 ) WHEN + 42 / + 92 + 5 THEN + 74 * - 59 + - 39 ELSE NULL END / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT CASE - COUNT ( ALL 44 ) WHEN + 42 / + 92 + 5 THEN + 74 * - 59 + - 39 ELSE NULL END / 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT ALL NULLIF ( + COUNT( * ), + 76 ) DIV MAX( - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL NULLIF ( + COUNT ( * ), + 76 ) / MAX ( - 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT MAX( + + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT MAX ( + + 97 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7436
SELECT COUNT( * ) + - ( COUNT( * ) ) AS col0, 34 * - 45 + CASE MIN( DISTINCT + 4 ) WHEN 8 - COALESCE ( NULLIF ( CASE - ( + 63 ) WHEN 85 * - MAX( - 12 ) THEN ( - 49 ) END, 68 ), 9 ) / 66 THEN AVG ( 62 ) END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7436
SELECT COUNT ( * ) + - ( COUNT ( * ) ) AS col0, 34 * - 45 + CASE MIN ( DISTINCT + 4 ) WHEN 8 - COALESCE ( NULLIF ( CASE - ( + 63 ) WHEN 85 * - MAX ( - 12 ) THEN ( - 49 ) END, 68 ), 9 ) / 66 THEN AVG ( 62 ) END AS col1
----
0
NULL

query I rowsort
SELECT ALL 72 * + 15 AS col1
----
1080

query I rowsort
SELECT 12 + - - ( - 43 ) * - 70 AS col2
----
3022

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT ALL 84 DIV 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL 84 / 80 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL + COUNT( * ) * - 83
----
-83

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + COUNT ( * ) * - 83
----
-83

query I rowsort
SELECT COALESCE ( 37, - 26 + - 26 + + 14 + ( + 80 ), 67 ) * - 3
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7442
SELECT SUM( ( 37 ) ) + + 85 + + 70 DIV - 64
----
121

skipif mysql # not compatible
query I rowsort label-7442
SELECT SUM ( ( 37 ) ) + + 85 + + 70 / - 64
----
121

query I rowsort
SELECT 95 - + 68 AS col0
----
27

query I rowsort
SELECT 37 + 92 AS col2
----
129

query I rowsort
SELECT ALL 54 + - 86 AS col0
----
-32

query I rowsort
SELECT NULLIF ( - 54, - 48 ) * + ( 98 ) AS col2
----
-5292

query I rowsort
SELECT 47 + 96 AS col0
----
143

query I rowsort
SELECT ( 39 ) + 89 AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7449
SELECT ALL - COUNT( * ) * + + ( 4 ) * + - COUNT( * ) - + - 71 + + CAST( COUNT( * ) + 16 * 81 AS SIGNED ) AS col1
----
1372

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - COUNT ( * ) * + + ( 4 ) * + - COUNT ( * ) - + - 71 + + CAST ( COUNT ( * ) + 16 * 81 AS INTEGER ) AS col1
----
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL - + 30 * - 1 + - + MIN( ALL 7 ) + 4 * 87 + + ( + 47 )
----
418

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - + 30 * - 1 + - + MIN ( ALL 7 ) + 4 * 87 + + ( + 47 )
----
418

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT - 41 DIV - + CASE 74 WHEN + 37 THEN NULL WHEN - 81 THEN 81 ELSE + 32 END + + 46 * 80
----
3681

skipif mysql # not compatible
query I rowsort label-7451
SELECT - 41 / - + CASE 74 WHEN + 37 THEN NULL WHEN - 81 THEN 81 ELSE + 32 END + + 46 * 80
----
3681

query I rowsort
SELECT DISTINCT - - 98 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT ALL + + ( 73 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL + + ( 73 ) / 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT ALL - + COALESCE ( + SUM( - 76 ), - MAX( ALL - CAST( - 33 AS SIGNED ) ) + + 30 * - ( + 91 * 33 ) )
----
76

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL - + COALESCE ( + SUM ( - 76 ), - MAX ( ALL - CAST ( - 33 AS INTEGER ) ) + + 30 * - ( + 91 * 33 ) )
----
76

query I rowsort
SELECT 93 * + 67 col2
----
6231

query I rowsort
SELECT + COALESCE ( + 42, 92 ) col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL 45 * CAST( NULL AS SIGNED ) + + CASE - + 31 WHEN - - 50 THEN 89 WHEN + 63 THEN NULL END / + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL 45 * CAST ( NULL AS INTEGER ) + + CASE - + 31 WHEN - - 50 THEN 89 WHEN + 63 THEN NULL END / + 51
----
NULL

query I rowsort
SELECT - 83 + - COALESCE ( - 78, + + ( - + 74 ) + + 36, - 21 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7459
SELECT 16 * + 74 / + + CAST( NULL AS SIGNED ) + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT 16 * + 74 / + + CAST ( NULL AS INTEGER ) + 74 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( - 39, - - AVG ( ALL - 29 ) - - - 55 ) * - 70 col2
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT - + 16 * + - CAST( + CASE + 70 WHEN - COUNT( * ) * 84 THEN 52 ELSE + 59 END AS SIGNED ) - NULLIF ( + 56, - CASE NULLIF ( 47, NULLIF ( + ( - 15 ), COUNT( * ) + 77 ) ) WHEN 22 * 36 THEN NULL ELSE - ( - 33 ) END + 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT - + 16 * + - CAST ( + CASE + 70 WHEN - COUNT ( * ) * 84 THEN 52 ELSE + 59 END AS INTEGER ) - NULLIF ( + 56, - CASE NULLIF ( 47, NULLIF ( + ( - 15 ), COUNT ( * ) + 77 ) ) WHEN 22 * 36 THEN NULL ELSE - ( - 33 ) END + 89 ) AS col2
----
NULL

query I rowsort
SELECT ALL 10 * + + 47
----
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7463
SELECT DISTINCT + ( - ( 30 ) ) - CASE 47 WHEN + ( + COUNT( DISTINCT - 72 ) ) - - ( 27 ) THEN NULL WHEN - COUNT( * ) + 94 THEN ( - 62 ) ELSE CAST( NULL AS SIGNED ) END * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT + ( - ( 30 ) ) - CASE 47 WHEN + ( + COUNT ( DISTINCT - 72 ) ) - - ( 27 ) THEN NULL WHEN - COUNT ( * ) + 94 THEN ( - 62 ) ELSE CAST ( NULL AS INTEGER ) END * - 48
----
NULL

query I rowsort
SELECT ALL + ( - + 61 ) col2
----
-61

query I rowsort
SELECT DISTINCT - + 40 * 47 * - 84 + - - 65 AS col0
----
157985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT - 72 * + CAST( NULL AS SIGNED ) + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT - 72 * + CAST ( NULL AS INTEGER ) + 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT + NULLIF ( COUNT( * ), - 0 * CAST( NULL AS SIGNED ) * - + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-7467
SELECT + NULLIF ( COUNT ( * ), - 0 * CAST ( NULL AS INTEGER ) * - + 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL + NULLIF ( + 98, 94 / - 41 * + SUM( DISTINCT 12 ) )
----
98

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + NULLIF ( + 98, 94 / - 41 * + SUM ( DISTINCT 12 ) )
----
98

query II rowsort
SELECT 40, - 33 * + + 90 col2
----
40
-2970

query I rowsort
SELECT - ( 47 ) + 82 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL CASE + SUM( ALL + - 93 ) WHEN - + 1 THEN NULL WHEN - + 21 / COUNT( * ) THEN + COUNT( * ) + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL CASE + SUM ( ALL + - 93 ) WHEN - + 1 THEN NULL WHEN - + 21 / COUNT ( * ) THEN + COUNT ( * ) + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT CASE + 35 WHEN 86 THEN + 43 WHEN - + 92 * - COUNT( * ) THEN NULL ELSE SUM( ALL 1 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT CASE + 35 WHEN 86 THEN + 43 WHEN - + 92 * - COUNT ( * ) THEN NULL ELSE SUM ( ALL 1 ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL COALESCE ( - 91, COUNT( * ) * - COALESCE ( + - 9, - COUNT( * ) + - 74 * - 63 ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL COALESCE ( - 91, COUNT ( * ) * - COALESCE ( + - 9, - COUNT ( * ) + - 74 * - 63 ) ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL MAX( ALL + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL MAX ( ALL + 82 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT DISTINCT NULLIF ( NULLIF ( - 3, + NULLIF ( 87, CAST( 67 AS SIGNED ) ) ), 10 * - CAST( NULL AS SIGNED ) + + 67 )
----
-3

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT NULLIF ( NULLIF ( - 3, + NULLIF ( 87, CAST ( 67 AS INTEGER ) ) ), 10 * - CAST ( NULL AS INTEGER ) + + 67 )
----
-3

query I rowsort
SELECT - 61 - 28 AS col1
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-7477
SELECT ALL - 21 * + - 33 AS col1, - 90 DIV + - ( + - 57 )
----
693
-1

skipif mysql # not compatible
query II rowsort label-7477
SELECT ALL - 21 * + - 33 AS col1, - 90 / + - ( + - 57 )
----
693
-1

query I rowsort
SELECT - 66 * - - 63
----
-4158

query II rowsort
SELECT ALL 60 AS col0, ( - 0 ) - 12
----
60
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7480
SELECT 70 AS col2, 75 * - 55 - COALESCE ( - - 7, 85 ) + - CAST( + 7 AS SIGNED )
----
70
-4139

skipif mysql # not compatible
query II rowsort label-7480
SELECT 70 AS col2, 75 * - 55 - COALESCE ( - - 7, 85 ) + - CAST ( + 7 AS INTEGER )
----
70
-4139

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL 30 + COUNT( * ) * 94
----
124

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL 30 + COUNT ( * ) * 94
----
124

query II rowsort
SELECT 51 AS col2, 56
----
51
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT ALL ( CAST( + 94 AS SIGNED ) ) + - 81 + + ( - 8 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL ( CAST ( + 94 AS INTEGER ) ) + - 81 + + ( - 8 ) AS col2
----
5

query II rowsort
SELECT 56 AS col2, 39 AS col0
----
56
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT + 99 + COUNT( * ) - COALESCE ( SUM( DISTINCT 40 ), + - 82 * - 21, 53 + 1 * 72 ) * + COUNT( - 44 ) * + 68
----
-2620

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT + 99 + COUNT ( * ) - COALESCE ( SUM ( DISTINCT 40 ), + - 82 * - 21, 53 + 1 * 72 ) * + COUNT ( - 44 ) * + 68
----
-2620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7486
SELECT DISTINCT NULLIF ( - 55, + COALESCE ( - 76, CAST( NULL AS DECIMAL ) ) ) + - 14
----
-69

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT NULLIF ( - 55, + COALESCE ( - 76, CAST ( NULL AS REAL ) ) ) + - 14
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT DISTINCT + 19 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + 19 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7488
SELECT DISTINCT - - 88 DIV - + ( - + 16 ) + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - - 88 / - + ( - + 16 ) + COUNT ( * )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT DISTINCT + NULLIF ( + - 93, - - COALESCE ( - CAST( - ( - 37 ) AS SIGNED ), + 5, + COUNT( * ) ) / + 32 + + MIN( ALL + 92 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT + NULLIF ( + - 93, - - COALESCE ( - CAST ( - ( - 37 ) AS INTEGER ), + 5, + COUNT ( * ) ) / + 32 + + MIN ( ALL + 92 ) )
----
-93

query I rowsort
SELECT - 22 * - + 31 + - 65 * + 12 * - - 28 * 65 AS col2
----
-1418918

query I rowsort
SELECT + - 6 * 6 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + MIN( ALL - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7492
SELECT + MIN ( ALL - 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + COUNT( ALL + + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7493
SELECT + COUNT ( ALL + + 82 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7494
SELECT ALL 18 * - COUNT( + 94 ) * + CASE WHEN NOT NULLIF ( 30, - ( ( - CAST( NULL AS SIGNED ) ) ) + 34 ) IN ( 19 / + 23 - 4 ) THEN 15 + 75 END - 1 * + 8
----
-1628

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL 18 * - COUNT ( + 94 ) * + CASE WHEN NOT NULLIF ( 30, - ( ( - CAST ( NULL AS INTEGER ) ) ) + 34 ) IN ( 19 / + 23 - 4 ) THEN 15 + 75 END - 1 * + 8
----
-1628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7495
SELECT + - 5 DIV 97 + + COALESCE ( 18, CAST( NULL AS SIGNED ) + 24 + - COUNT( * ) * 70 * 97 ) - 45 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7495
SELECT + - 5 / 97 + + COALESCE ( 18, CAST ( NULL AS INTEGER ) + 24 + - COUNT ( * ) * 70 * 97 ) - 45 AS col2
----
-27

query I rowsort
SELECT + - 45 + 84 + + 23 * + - 58
----
-1295

query I rowsort
SELECT DISTINCT 99 * ( 64 ) + - 34 AS col2
----
6302

onlyif mysql # aggregate syntax: 
query II rowsort label-7498
SELECT ALL + - COUNT( * ) AS col0, + 60
----
-1
60

skipif mysql # not compatible
query II rowsort label-7498
SELECT ALL + - COUNT ( * ) AS col0, + 60
----
-1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT - 90 * 28 + + - 9 - + + 1 * - - 68 - - + COUNT( * )
----
-2596

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - 90 * 28 + + - 9 - + + 1 * - - 68 - - + COUNT ( * )
----
-2596

query I rowsort
SELECT + 0 + + 49
----
49

query II rowsort
SELECT ALL + + 39 AS col2, + 86
----
39
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT ALL + 59, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-7502
SELECT ALL + 59, COUNT ( * ) AS col0
----
59
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT - 55 * + + MIN( ALL - 20 ) + - + 80 * 37 + - - 16 + AVG ( DISTINCT - 85 + - CAST( NULL AS SIGNED ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT - 55 * + + MIN ( ALL - 20 ) + - + 80 * 37 + - - 16 + AVG ( DISTINCT - 85 + - CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 21 - - + 72 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7505
SELECT + 33 DIV + COALESCE ( - + CAST( NULL AS SIGNED ), - + 13 * 27 - + 63, - 19 DIV 1 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT + 33 / + COALESCE ( - + CAST ( NULL AS INTEGER ), - + 13 * 27 - + 63, - 19 / 1 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT ALL + CASE - ( + 53 ) WHEN - - 22 THEN + - ( + 56 ) + + COUNT( * ) WHEN 83 * - 49 THEN + ( 79 ) / NULLIF ( - 11, 48 + ( 56 ) ) + COALESCE ( 95 + 43 * - CASE + COUNT( * ) + + MIN( 38 ) * - 80 WHEN 31 THEN COUNT( * ) ELSE NULL END, + 65 ) ELSE 76 + - 48 END AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + CASE - ( + 53 ) WHEN - - 22 THEN + - ( + 56 ) + + COUNT ( * ) WHEN 83 * - 49 THEN + ( 79 ) / NULLIF ( - 11, 48 + ( 56 ) ) + COALESCE ( 95 + 43 * - CASE + COUNT ( * ) + + MIN ( 38 ) * - 80 WHEN 31 THEN COUNT ( * ) ELSE NULL END, + 65 ) ELSE 76 + - 48 END AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT + CAST( - AVG ( + ( - 55 ) ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-7507
SELECT + CAST ( - AVG ( + ( - 55 ) ) AS INTEGER )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7508
SELECT - MIN( ALL - - 47 ) + - 61 DIV + 19 + MAX( ALL - ( + 31 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-7508
SELECT - MIN ( ALL - - 47 ) + - 61 / + 19 + MAX ( ALL - ( + 31 ) )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT - 3 DIV - 32 * NULLIF ( - NULLIF ( 91, + - 85 * + 78 + 13 * 77 ), - 86 + 71 * 21 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7509
SELECT - 3 / - 32 * NULLIF ( - NULLIF ( 91, + - 85 * + 78 + 13 * 77 ), - 86 + 71 * 21 ) col1
----
0

query I rowsort
SELECT ALL ( + CASE + 32 WHEN - 76 - - + 22 / - 80 - + COALESCE ( + 26, - 19 * 79 ) * - 97 THEN NULL WHEN - 35 * + 8 THEN 39 + + 91 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 79 * - 84 * 71
----
471156

query I rowsort
SELECT - 38 + + 35 AS col0
----
-3

query I rowsort
SELECT ALL - 17 * - 77 * 1 + + ( 78 ) + 37 * + 91
----
4754

query I rowsort
SELECT DISTINCT + 34 * - + 87
----
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT - 43 + - ( - 37 ) * - NULLIF ( - + CAST( NULL AS SIGNED ), + 60 / 56 ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 43 + - ( - 37 ) * - NULLIF ( - + CAST ( NULL AS INTEGER ), + 60 / 56 ) * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT - 8 + 79 + 97 * - + COUNT( * ) - - + 61 + - 37 * - - 62 * 61
----
-139899

skipif mysql # not compatible
query I rowsort label-7516
SELECT - 8 + 79 + 97 * - + COUNT ( * ) - - + 61 + - 37 * - - 62 * 61
----
-139899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT DISTINCT - 72 * COUNT( * ) AS col0, - ( - COUNT( * ) )
----
-72
1

skipif mysql # not compatible
query II rowsort label-7518
SELECT DISTINCT - 72 * COUNT ( * ) AS col0, - ( - COUNT ( * ) )
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT - 89 + + + 35 - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-7519
SELECT - 89 + + + 35 - COUNT ( * )
----
-55

query I rowsort
SELECT ALL + ( + - 89 ) + 56 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT DISTINCT - + ( + 23 ) * - CAST( - 98 AS SIGNED ) col0
----
-2254

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT - + ( + 23 ) * - CAST ( - 98 AS INTEGER ) col0
----
-2254

query I rowsort
SELECT - + 30 AS col1
----
-30

query II rowsort
SELECT + - 10 + 33 * + 90 AS col2, 49 * - 52 AS col2
----
2960
-2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT + COALESCE ( + 85, + + COUNT( DISTINCT 7 ) + - 11, COUNT( * ) DIV + 22 ) * 36 AS col2
----
3060

skipif mysql # not compatible
query I rowsort label-7524
SELECT + COALESCE ( + 85, + + COUNT ( DISTINCT 7 ) + - 11, COUNT ( * ) / + 22 ) * 36 AS col2
----
3060

query I rowsort
SELECT + + 35 + - 76 * 21 - + + 36
----
-1597

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7526
SELECT + - COUNT( DISTINCT ( - CAST( NULL AS DECIMAL ) ) ) + - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7526
SELECT + - COUNT ( DISTINCT ( - CAST ( NULL AS REAL ) ) ) + - 31 AS col1
----
-31

query I rowsort
SELECT ALL + + 21 AS col1
----
21

query I rowsort
SELECT 74 * - - 66 + + + ( - 95 ) AS col0
----
4789

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT 44 DIV + ( + + 51 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT 44 / + ( + + 51 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT DISTINCT - COUNT( ALL - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT - COUNT ( ALL - 50 )
----
-1

query I rowsort
SELECT ALL - - ( 13 )
----
13

query I rowsort
SELECT - 31 * 56
----
-1736

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT 22 DIV - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT 22 / - 29 AS col1
----
0

query I rowsort
SELECT ALL - + 28 AS col0
----
-28

query I rowsort
SELECT DISTINCT 33 * 86
----
2838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT + 11 * - - CAST( + ( + + 51 ) AS SIGNED ) AS col2
----
561

skipif mysql # not compatible
query I rowsort label-7536
SELECT + 11 * - - CAST ( + ( + + 51 ) AS INTEGER ) AS col2
----
561

query I rowsort
SELECT ALL - 78 * + 26
----
-2028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT ALL 15 * + CASE WHEN NOT NULL IS NOT NULL THEN - 51 ELSE - + 90 + COUNT( * ) END DIV - COUNT( * ) AS col1
----
765

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL 15 * + CASE WHEN NOT NULL IS NOT NULL THEN - 51 ELSE - + 90 + COUNT ( * ) END / - COUNT ( * ) AS col1
----
765

onlyif mysql # DIV for integer division: 
query I rowsort label-7539
SELECT ALL 74 + - - ( + 23 ) DIV ( + 63 ) DIV - + 15 + 41 * + 84
----
3518

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL 74 + - - ( + 23 ) / ( + 63 ) / - + 15 + 41 * + 84
----
3518

query II rowsort
SELECT + 80 AS col0, 17
----
80
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT COUNT( * ) * + 91
----
91

skipif mysql # not compatible
query I rowsort label-7541
SELECT COUNT ( * ) * + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL 68 + + MIN( - + 1 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL 68 + + MIN ( - + 1 ) col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT DISTINCT - CAST( - + ( + 60 ) AS SIGNED ) + + - 99
----
-39

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - CAST ( - + ( + 60 ) AS INTEGER ) + + - 99
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7544
SELECT 95 AS col2, COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-7544
SELECT 95 AS col2, COUNT ( * )
----
95
1

query I rowsort
SELECT 31 * + 61
----
1891

query I rowsort
SELECT 5 + + + 44
----
49

query I rowsort
SELECT 47 + 32
----
79

query I rowsort
SELECT DISTINCT - 12 + + + 28 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL + CAST( - 55 AS SIGNED ) + - - 64
----
9

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + CAST ( - 55 AS INTEGER ) + - - 64
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT ALL COUNT( * ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL COUNT ( * ) / - 35
----
0

query I rowsort
SELECT ALL - 85 * 7
----
-595

query II rowsort
SELECT - 15, 75 AS col1
----
-15
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7553
SELECT DISTINCT 95 + + 96 + - - 94 DIV ( - CAST( 53 AS SIGNED ) )
----
190

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT 95 + + 96 + - - 94 / ( - CAST ( 53 AS INTEGER ) )
----
190

query I rowsort
SELECT ALL CASE + 76 WHEN + - 94 THEN - 35 END - - + 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT - 69, + 32 + COUNT( * ) + + - 88 AS col0
----
-69
-55

skipif mysql # not compatible
query II rowsort label-7555
SELECT - 69, + 32 + COUNT ( * ) + + - 88 AS col0
----
-69
-55

query I rowsort
SELECT DISTINCT + 13 - - 38 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL - + COUNT( * ) * 36 * 14
----
-504

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - + COUNT ( * ) * 36 * 14
----
-504

query I rowsort
SELECT + 43 + + 13 * 20
----
303

query II rowsort
SELECT DISTINCT 48, - 54 + + 11 + - 27 AS col2
----
48
-70

query II rowsort
SELECT 0 col2, - 53 + + + 83
----
0
30

query I rowsort
SELECT DISTINCT ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7562
SELECT ALL COUNT( * ) AS col2, + 92 * - COUNT( - + 5 ) * 17 * 98 AS col2
----
1
-153272

skipif mysql # not compatible
query II rowsort label-7562
SELECT ALL COUNT ( * ) AS col2, + 92 * - COUNT ( - + 5 ) * 17 * 98 AS col2
----
1
-153272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT + 42 DIV + COUNT( * ) - + COALESCE ( + - 94, NULLIF ( 73, + 83 ) - - 27 )
----
136

skipif mysql # not compatible
query I rowsort label-7563
SELECT + 42 / + COUNT ( * ) - + COALESCE ( + - 94, NULLIF ( 73, + 83 ) - - 27 )
----
136

query I rowsort
SELECT + 29 * + - 3 + 95 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT + + CASE - MIN( + 27 ) WHEN + 95 THEN + 8 DIV 72 ELSE - - 34 END * + + 38 + - 50 AS col2
----
1242

skipif mysql # not compatible
query I rowsort label-7565
SELECT + + CASE - MIN ( + 27 ) WHEN + 95 THEN + 8 / 72 ELSE - - 34 END * + + 38 + - 50 AS col2
----
1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7566
SELECT - NULLIF ( - 22, - + 23 + ( + 38 ) - + - 84 + 73 + + + 60 + 29 * + CAST( + 0 * - 63 AS SIGNED ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7566
SELECT - NULLIF ( - 22, - + 23 + ( + 38 ) - + - 84 + 73 + + + 60 + 29 * + CAST ( + 0 * - 63 AS INTEGER ) ) AS col0
----
22

query II rowsort
SELECT 68 AS col0, - 84 AS col1
----
68
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7568
SELECT 6 AS col2, - ( - NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) / + 50 + + - COUNT( * ) ) ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-7568
SELECT 6 AS col2, - ( - NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) / + 50 + + - COUNT ( * ) ) ) AS col0
----
6
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7569
SELECT ALL - + SUM( - 53 ) + - 69 * + CASE - 89 WHEN + COUNT( * ) + CASE - - 64 WHEN - 21 THEN + NULLIF ( 80, 95 ) ELSE - 9 * 80 END + - 33 THEN CAST( NULL AS SIGNED ) - 78 WHEN - 69 THEN - COUNT( * ) * - 82 END * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - + SUM ( - 53 ) + - 69 * + CASE - 89 WHEN + COUNT ( * ) + CASE - - 64 WHEN - 21 THEN + NULLIF ( 80, 95 ) ELSE - 9 * 80 END + - 33 THEN CAST ( NULL AS INTEGER ) - 78 WHEN - 69 THEN - COUNT ( * ) * - 82 END * - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - 49 * - + 38 * COUNT( * ) + COUNT( * )
----
1863

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 49 * - + 38 * COUNT ( * ) + COUNT ( * )
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL + 88 + COUNT( * ) - 55 * 50 * - + 77 AS col2
----
211839

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + 88 + COUNT ( * ) - 55 * 50 * - + 77 AS col2
----
211839

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL - SUM( - + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - SUM ( - + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL COALESCE ( + 98, - 40 ) + MAX( ALL - - 42 ) AS col2
----
140

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL COALESCE ( + 98, - 40 ) + MAX ( ALL - - 42 ) AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT MAX( - 27 ) + - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7574
SELECT MAX ( - 27 ) + - + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ( - ( + + COUNT( * ) ) ) - - 44 - 85 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-7575
SELECT ( - ( + + COUNT ( * ) ) ) - - 44 - 85 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + NULLIF ( - 10, - 16 + - 70 + - 8 ) * - - COUNT( * ) + - 15 + - 26 + - ( 7 )
----
-58

skipif mysql # not compatible
query I rowsort label-7576
SELECT + NULLIF ( - 10, - 16 + - 70 + - 8 ) * - - COUNT ( * ) + - 15 + - 26 + - ( 7 )
----
-58

query I rowsort
SELECT ALL 90 + + 72 + + COALESCE ( + 32, - 82 ) + - 1
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7578
SELECT DISTINCT COALESCE ( + COUNT( * ), 89, 55 DIV + - 95 ) * + + 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT COALESCE ( + COUNT ( * ), 89, 55 / + - 95 ) * + + 72 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 3 + - - 75 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 3 + - - 75 * 41
----
NULL

query I rowsort
SELECT DISTINCT - 44 - 94 * 7 AS col1
----
-702

query I rowsort
SELECT 40 + 54 AS col0
----
94

query I rowsort
SELECT ALL 54 - + 7 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT DISTINCT COALESCE ( - 58, NULLIF ( CAST( NULL AS SIGNED ), + 89 * + 30 + + 19 ), COUNT( * ) ) * - - 50 + - 77 AS col2
----
-2977

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT COALESCE ( - 58, NULLIF ( CAST ( NULL AS INTEGER ), + 89 * + 30 + + 19 ), COUNT ( * ) ) * - - 50 + - 77 AS col2
----
-2977

query I rowsort
SELECT + 53 * + + 71 + - 67 AS col1
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT COUNT( * ) * 93 * + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7585
SELECT COUNT ( * ) * 93 * + COUNT ( * ) AS col0
----
93

query I rowsort
SELECT - 16 * + CASE WHEN NOT + 34 < + 54 * + 54 THEN + ( 22 ) END / - 39 + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT 36 + 99 AS col1, 27 + + + COUNT( * ) - + 99 AS col0
----
135
-71

skipif mysql # not compatible
query II rowsort label-7587
SELECT 36 + 99 AS col1, 27 + + + COUNT ( * ) - + 99 AS col0
----
135
-71

query I rowsort
SELECT - 11 + 65
----
54

query I rowsort
SELECT DISTINCT 38 / + + 39 * - 29 * - + CASE - 80 WHEN + - 95 / 53 THEN - 53 * + - 9 + - NULLIF ( 34, 6 - AVG ( DISTINCT 13 ) ) WHEN 64 THEN 74 + - 39 / 62 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + - 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT ALL + - 23 * + - 91 * - 61 + - 75 AS col2, + 30 * - COUNT( * ) * - 48 AS col1
----
-127748
1440

skipif mysql # not compatible
query II rowsort label-7591
SELECT ALL + - 23 * + - 91 * - 61 + - 75 AS col2, + 30 * - COUNT ( * ) * - 48 AS col1
----
-127748
1440

onlyif mysql # aggregate syntax: 
query II rowsort label-7592
SELECT ALL MIN( DISTINCT 3 ), 80 AS col2
----
3
80

skipif mysql # not compatible
query II rowsort label-7592
SELECT ALL MIN ( DISTINCT 3 ), 80 AS col2
----
3
80

query I rowsort
SELECT DISTINCT 65 * 87 * + 97 col1
----
548535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT - CASE + 59 WHEN + 9 * - - COUNT( * ) * + - 54 * - - 75 - 36 THEN NULL WHEN + 23 * COUNT( * ) * 19 THEN COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) / 34 + - 62, 46 ) * 51 WHEN + 97 * 59 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT - CASE + 59 WHEN + 9 * - - COUNT ( * ) * + - 54 * - - 75 - 36 THEN NULL WHEN + 23 * COUNT ( * ) * 19 THEN COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) / 34 + - 62, 46 ) * 51 WHEN + 97 * 59 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT - + 8 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT - + 8 / - 32 AS col1
----
0

query I rowsort
SELECT - 22 + - 40
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7597
SELECT - 36 + + CAST( NULL AS SIGNED ) col1, - 64
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-7597
SELECT - 36 + + CAST ( NULL AS INTEGER ) col1, - 64
----
NULL
-64

query I rowsort
SELECT - 50 + 80
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT DISTINCT + MAX( + 3 ) AS col0, + ( COUNT( * ) ) col2
----
3
1

skipif mysql # not compatible
query II rowsort label-7599
SELECT DISTINCT + MAX ( + 3 ) AS col0, + ( COUNT ( * ) ) col2
----
3
1

query I rowsort
SELECT - + 56 * 87
----
-4872

query I rowsort
SELECT ( - ( - 34 ) ) AS col1
----
34

query I rowsort
SELECT COALESCE ( ( 50 ), + + 99 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT + ( + 1 ) * - COUNT( * ) * - - 38 + + 63
----
25

skipif mysql # not compatible
query I rowsort label-7603
SELECT + ( + 1 ) * - COUNT ( * ) * - - 38 + + 63
----
25

query I rowsort
SELECT - 56 * - 79 AS col0
----
4424

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7605
SELECT - 32 * 35 + - 54, - 73 * 45 * COUNT( * ) DIV + ( - 7 ) AS col2
----
-1174
469

skipif mysql # not compatible
query II rowsort label-7605
SELECT - 32 * 35 + - 54, - 73 * 45 * COUNT ( * ) / + ( - 7 ) AS col2
----
-1174
469

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT - 20 * MAX( DISTINCT - 73 )
----
1460

skipif mysql # not compatible
query I rowsort label-7606
SELECT - 20 * MAX ( DISTINCT - 73 )
----
1460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL + CASE 27 WHEN + - CAST( SUM( - - 18 ) AS SIGNED ) THEN NULL WHEN + 4 THEN + 78 ELSE - 49 * 81 * 21 * COUNT( * ) END
----
-83349

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + CASE 27 WHEN + - CAST ( SUM ( - - 18 ) AS INTEGER ) THEN NULL WHEN + 4 THEN + 78 ELSE - 49 * 81 * 21 * COUNT ( * ) END
----
-83349

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT ALL + 95 AS col0, + 7 + COUNT( * ) * - - 51 AS col1
----
95
58

skipif mysql # not compatible
query II rowsort label-7608
SELECT ALL + 95 AS col0, + 7 + COUNT ( * ) * - - 51 AS col1
----
95
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7609
SELECT + COUNT( * ), 56 col0
----
1
56

skipif mysql # not compatible
query II rowsort label-7609
SELECT + COUNT ( * ), 56 col0
----
1
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7610
SELECT COUNT( * ) AS col0, CASE + - 41 WHEN - CAST( + - 58 AS SIGNED ) + - 37 THEN - CAST( NULL AS SIGNED ) + + - 49 + COUNT( * ) DIV 17 WHEN 82 THEN + 58 ELSE - 58 * - 7 END * COALESCE ( 32, - 38 * + 83 )
----
1
12992

skipif mysql # not compatible
query II rowsort label-7610
SELECT COUNT ( * ) AS col0, CASE + - 41 WHEN - CAST ( + - 58 AS INTEGER ) + - 37 THEN - CAST ( NULL AS INTEGER ) + + - 49 + COUNT ( * ) / 17 WHEN 82 THEN + 58 ELSE - 58 * - 7 END * COALESCE ( 32, - 38 * + 83 )
----
1
12992

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7611
SELECT ALL + 11 AS col0, CAST( NULL AS DECIMAL ) + - - 92 AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL + 11 AS col0, CAST ( NULL AS REAL ) + - - 92 AS col0
----
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + MIN( ALL + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7612
SELECT + MIN ( ALL + 14 )
----
14

query I rowsort
SELECT - 37 + - + ( + CASE + 8 WHEN - AVG ( DISTINCT + 53 ) * - 34 THEN 63 WHEN 99 THEN - 45 END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT + 42 DIV - + 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7614
SELECT + 42 / - + 27 AS col2
----
-1

query I rowsort
SELECT - 54 * - + 87 AS col0
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT - 12 * + 43 * - MIN( ( + 42 ) ) + 69 * ( - + MIN( 82 ) ) AS col1
----
16014

skipif mysql # not compatible
query I rowsort label-7616
SELECT - 12 * + 43 * - MIN ( ( + 42 ) ) + 69 * ( - + MIN ( 82 ) ) AS col1
----
16014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7617
SELECT + COALESCE ( - - 37, 95 + + 57 + + - 62 DIV + ( + 2 ) + CASE + 8 WHEN 80 THEN NULL WHEN + 8 + 32 DIV + 7 THEN NULL ELSE + 63 + 43 END + - COUNT( * ), NULLIF ( - ( - NULLIF ( 31, CAST( NULL AS SIGNED ) ) ), 7 ) - - 29 * MIN( 76 ) ) + - MAX( DISTINCT + 1 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7617
SELECT + COALESCE ( - - 37, 95 + + 57 + + - 62 / + ( + 2 ) + CASE + 8 WHEN 80 THEN NULL WHEN + 8 + 32 / + 7 THEN NULL ELSE + 63 + 43 END + - COUNT ( * ), NULLIF ( - ( - NULLIF ( 31, CAST ( NULL AS INTEGER ) ) ), 7 ) - - 29 * MIN ( 76 ) ) + - MAX ( DISTINCT + 1 ) AS col1
----
36

query I rowsort
SELECT DISTINCT 59 * 83
----
4897

onlyif mysql # aggregate syntax: 
query II rowsort label-7619
SELECT + - COUNT( ALL + - 95 ) * + - 6, - 41 + + - COUNT( * ) + + 13 * 31 AS col2
----
6
361

skipif mysql # not compatible
query II rowsort label-7619
SELECT + - COUNT ( ALL + - 95 ) * + - 6, - 41 + + - COUNT ( * ) + + 13 * 31 AS col2
----
6
361

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT + - 54 * - 97 + - 48 + - + ( + - COUNT( * ) )
----
5191

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + - 54 * - 97 + - 48 + - + ( + - COUNT ( * ) )
----
5191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL + CAST( + SUM( DISTINCT ( 97 ) ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + CAST ( + SUM ( DISTINCT ( 97 ) ) AS INTEGER )
----
97

query I rowsort
SELECT DISTINCT CASE + 27 WHEN - - 17 * 14 THEN + 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT - CAST( NULL AS SIGNED ) * + - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT - CAST ( NULL AS INTEGER ) * + - 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - 28 + MAX( 79 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7624
SELECT - 28 + MAX ( 79 ) AS col1
----
51

query I rowsort
SELECT DISTINCT + 73 + 32 AS col0
----
105

query I rowsort
SELECT DISTINCT + COALESCE ( ( + - 63 ), + 21, 2 )
----
-63

query I rowsort
SELECT + - 46 * + 91 AS col0
----
-4186

query I rowsort
SELECT + 25 - 84 AS col0
----
-59

query I rowsort
SELECT + NULLIF ( - COALESCE ( 27, - 68, 26 ), - 8 )
----
-27

query I rowsort
SELECT DISTINCT ( CASE - 51 WHEN + 78 THEN + 71 - 60 + - 28 END ) + 76
----
NULL

query I rowsort
SELECT ALL - 91 + + + 44
----
-47

query II rowsort
SELECT + - 85 * + 75 * - 49 col2, 97
----
312375
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7633
SELECT ALL 56 + COUNT( * ) DIV - COALESCE ( + 84, + + 28, - + ( - 86 ), + 11 * - ( - + COUNT( CAST( + 6 AS DECIMAL ) ) ) * COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL 56 + COUNT ( * ) / - COALESCE ( + 84, + + 28, - + ( - 86 ), + 11 * - ( - + COUNT ( CAST ( + 6 AS REAL ) ) ) * COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL - CASE + - 70 WHEN - 45 + 1 + - 47 / - + SUM( DISTINCT + 75 ) THEN NULL WHEN - + 65 THEN NULL WHEN + 51 + - + MAX( + 98 ) THEN 38 / - 42 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - CASE + - 70 WHEN - 45 + 1 + - 47 / - + SUM ( DISTINCT + 75 ) THEN NULL WHEN - + 65 THEN NULL WHEN + 51 + - + MAX ( + 98 ) THEN 38 / - 42 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT + COUNT( * ) * + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7635
SELECT + COUNT ( * ) * + COUNT ( * ) col1
----
1

query I rowsort
SELECT DISTINCT - 20 col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT ALL - - 50 DIV 56 + - 38 * - + 87 * - ( MAX( - 2 ) ) + - 29 + + + COUNT( * ) * + + 68 DIV + 6
----
6594

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - - 50 / 56 + - 38 * - + 87 * - ( MAX ( - 2 ) ) + - 29 + + + COUNT ( * ) * + + 68 / + 6
----
6594

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + MAX( + 80 ) + - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-7638
SELECT + MAX ( + 80 ) + - - COUNT ( * )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7639
SELECT - 95 DIV - - 59 - + + 74 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7639
SELECT - 95 / - - 59 - + + 74 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT + 40 * COUNT( * ) + 56
----
96

skipif mysql # not compatible
query I rowsort label-7640
SELECT + 40 * COUNT ( * ) + 56
----
96

query I rowsort
SELECT - 33 * 29 AS col0
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL COALESCE ( - + 81, + + 42 * + MAX( DISTINCT + 6 ), - COUNT( * ) ) * + + 24 * - + 63 * + 30 + - + 20
----
3674140

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL COALESCE ( - + 81, + + 42 * + MAX ( DISTINCT + 6 ), - COUNT ( * ) ) * + + 24 * - + 63 * + 30 + - + 20
----
3674140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7643
SELECT + CAST( NULL AS SIGNED ) col0, MIN( ALL + - 26 ) * - 11 AS col0
----
NULL
286

skipif mysql # not compatible
query II rowsort label-7643
SELECT + CAST ( NULL AS INTEGER ) col0, MIN ( ALL + - 26 ) * - 11 AS col0
----
NULL
286

query I rowsort
SELECT + 79 + 81
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT DISTINCT - 31 DIV + - 50 - - + ( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT - 31 / + - 50 - - + ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL + SUM( DISTINCT - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + SUM ( DISTINCT - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - 73 + COUNT( * ) * - - 40 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 73 + COUNT ( * ) * - - 40 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7648
SELECT ALL + 98 DIV ( + COALESCE ( - 62, + + 9 ) ) - + 22 * + COUNT( DISTINCT + 14 ) * + 11 * 14 + - + 85 * 71
----
-9424

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL + 98 / ( + COALESCE ( - 62, + + 9 ) ) - + 22 * + COUNT ( DISTINCT + 14 ) * + 11 * 14 + - + 85 * 71
----
-9424

query I rowsort
SELECT ALL + 26 * 46
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - 66 * - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-7650
SELECT - 66 * - COUNT ( * )
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7651
SELECT + 8 * + 65 + - - 2 DIV + CAST( + 68 AS SIGNED )
----
520

skipif mysql # not compatible
query I rowsort label-7651
SELECT + 8 * + 65 + - - 2 / + CAST ( + 68 AS INTEGER )
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-7652
SELECT ALL + MAX( ALL - 64 ) col1, + COUNT( + 77 ) * - - MAX( DISTINCT + 30 ) * + + 14 AS col1
----
-64
420

skipif mysql # not compatible
query II rowsort label-7652
SELECT ALL + MAX ( ALL - 64 ) col1, + COUNT ( + 77 ) * - - MAX ( DISTINCT + 30 ) * + + 14 AS col1
----
-64
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT ( CAST( - - 36 AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-7653
SELECT ( CAST ( - - 36 AS INTEGER ) )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT ( CAST( 94 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-7654
SELECT ( CAST ( 94 AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - 27 * + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - 27 * + + COUNT ( * )
----
-27

query I rowsort
SELECT - 31 * + 56 AS col2
----
-1736

query I rowsort
SELECT 75 + - 87 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT - MAX( ALL - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT - MAX ( ALL - 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT MIN( - 23 ) + 54
----
31

skipif mysql # not compatible
query I rowsort label-7659
SELECT MIN ( - 23 ) + 54
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + MAX( ALL + - ( - 11 ) )
----
11

skipif mysql # not compatible
query I rowsort label-7660
SELECT + MAX ( ALL + - ( - 11 ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT 35 + + - 65 * + - 11 * + 68 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT 35 + + - 65 * + - 11 * + 68 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7662
SELECT 66 DIV - - NULLIF ( + COUNT( * ), - 89 )
----
66

skipif mysql # not compatible
query I rowsort label-7662
SELECT 66 / - - NULLIF ( + COUNT ( * ), - 89 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL - 35 + MIN( DISTINCT + 26 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL - 35 + MIN ( DISTINCT + 26 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7664
SELECT - 67 AS col2, 5 * - 24 + - COUNT( * ) AS col2
----
-67
-121

skipif mysql # not compatible
query II rowsort label-7664
SELECT - 67 AS col2, 5 * - 24 + - COUNT ( * ) AS col2
----
-67
-121

query II rowsort
SELECT + 21 + - - 20 AS col2, + 28 col1
----
41
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT 58 + - 86 + - ( + 79 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT 58 + - 86 + - ( + 79 ) / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 7 AS col0, - 30
----
7
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL 88 + + + COUNT( * ) * COUNT( ALL - 45 ) - - 96 + + + CASE - - 91 WHEN - - ( - - 44 ) * - 31 THEN - - 49 END + - 11 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL 88 + + + COUNT ( * ) * COUNT ( ALL - 45 ) - - 96 + + + CASE - - 91 WHEN - - ( - - 44 ) * - 31 THEN - - 49 END + - 11 * - 46
----
NULL

query I rowsort
SELECT DISTINCT - 83 + + - 0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT - ( 10 ) + + 98 * + 25 AS col0, + ( 80 ) + - + 72 + - + 22 * - COUNT( * ) * - SUM( DISTINCT + + 47 ) AS col2
----
2440
-1026

skipif mysql # not compatible
query II rowsort label-7670
SELECT - ( 10 ) + + 98 * + 25 AS col0, + ( 80 ) + - + 72 + - + 22 * - COUNT ( * ) * - SUM ( DISTINCT + + 47 ) AS col2
----
2440
-1026

query I rowsort
SELECT ALL - 50 * - NULLIF ( 94, + 61 ) AS col0
----
4700

query II rowsort
SELECT 37 col1, ( 10 )
----
37
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT + 7 + - COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-7673
SELECT + 7 + - COUNT ( * ) col1
----
6

query II rowsort
SELECT - 58 AS col2, 56
----
-58
56

query I rowsort
SELECT + 21 + - 64 * + 27
----
-1707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) - + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) - + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - 42 ) + - 33
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT ALL 91 DIV 43
----
2

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL 91 / 43
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT 21 DIV + ( + + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT 21 / + ( + + 98 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7680
SELECT COUNT( * ) DIV + ( + - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT COUNT ( * ) / + ( + - 60 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT COUNT( * ) * - 15
----
-15

skipif mysql # not compatible
query I rowsort label-7681
SELECT COUNT ( * ) * - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT COUNT( * ) / + CASE + CASE + 48 WHEN + - 5 * - + 73 * - 59 THEN - 26 WHEN + 86 THEN NULL END WHEN + 61 * 16 * - 50 THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT COUNT ( * ) / + CASE + CASE + 48 WHEN + - 5 * - + 73 * - 59 THEN - 26 WHEN + 86 THEN NULL END WHEN + 61 * 16 * - 50 THEN - 43 END
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - ( - 48 ), - 57 )
----
-48

query I rowsort
SELECT DISTINCT 83 + 29 AS col2
----
112

query I rowsort
SELECT + + COALESCE ( - 95, + 17 )
----
-95

query I rowsort
SELECT ALL - 6 + - 26 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT COUNT( * ) * - 83 * + - 56 + - 70 AS col2
----
4578

skipif mysql # not compatible
query I rowsort label-7687
SELECT COUNT ( * ) * - 83 * + - 56 + - 70 AS col2
----
4578

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + COUNT( * ) * - - SUM( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-7688
SELECT + COUNT ( * ) * - - SUM ( ALL 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - CASE - - 16 WHEN + 75 THEN - 94 * + ( - - MIN( ALL + 43 ) ) + - ( + NULLIF ( + 90, + + ( + 44 ) ) ) + + 21 * - 8 ELSE 97 END AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7689
SELECT - CASE - - 16 WHEN + 75 THEN - 94 * + ( - - MIN ( ALL + 43 ) ) + - ( + NULLIF ( + 90, + + ( + 44 ) ) ) + + 21 * - 8 ELSE 97 END AS col2
----
-97

query I rowsort
SELECT ALL + + COALESCE ( - 79, + + 29 ) + - 56 AS col0
----
-135

query II rowsort
SELECT ALL + 63 + + - 0 AS col1, + 66 * - + 88
----
63
-5808

query I rowsort
SELECT + ( 63 ) * - - 80 + - - 48
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL + CASE + COUNT( * ) WHEN + 2 * - 89 + - COUNT( * ) THEN NULL WHEN - ( + 60 ) THEN - - 14 * - 70 WHEN - + 70 * + COALESCE ( + 9, - 29, + 50, SUM( 59 ) ) * 59 - + 35 THEN NULL ELSE + 97 * - 58 END
----
-5626

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + CASE + COUNT ( * ) WHEN + 2 * - 89 + - COUNT ( * ) THEN NULL WHEN - ( + 60 ) THEN - - 14 * - 70 WHEN - + 70 * + COALESCE ( + 9, - 29, + 50, SUM ( 59 ) ) * 59 - + 35 THEN NULL ELSE + 97 * - 58 END
----
-5626

onlyif mysql # aggregate syntax: 
query II rowsort label-7694
SELECT 15 * + + COUNT( * ) * + 90 AS col1, 99 AS col2
----
1350
99

skipif mysql # not compatible
query II rowsort label-7694
SELECT 15 * + + COUNT ( * ) * + 90 AS col1, 99 AS col2
----
1350
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7695
SELECT ALL COUNT( * ) AS col0, + 29 AS col1
----
1
29

skipif mysql # not compatible
query II rowsort label-7695
SELECT ALL COUNT ( * ) AS col0, + 29 AS col1
----
1
29

query I rowsort
SELECT 50 * 99 AS col2
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT 21 + 72 * COALESCE ( - + 78, - 23 ) * - 88 - 84 * 95 + - 51 * + + COALESCE ( + 46, 99 + 33 + 29 ) + - COUNT( * )
----
483902

skipif mysql # not compatible
query I rowsort label-7697
SELECT 21 + 72 * COALESCE ( - + 78, - 23 ) * - 88 - 84 * 95 + - 51 * + + COALESCE ( + 46, 99 + 33 + 29 ) + - COUNT ( * )
----
483902

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT 63 DIV 74 - + 14 DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7698
SELECT 63 / 74 - + 14 / 61 AS col1
----
0

query I rowsort
SELECT - 94 * + - 49 * - 20 + 90 AS col1
----
-92030

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT + MAX( - 70 ) * - 95 + + + 92 * + 64 * 57
----
342266

skipif mysql # not compatible
query I rowsort label-7700
SELECT + MAX ( - 70 ) * - 95 + + + 92 * + 64 * 57
----
342266

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT CASE + 36 WHEN + + 31 THEN NULL WHEN + + 47 THEN MIN( ALL - - 54 ) + MIN( + - 79 ) * + NULLIF ( - 47, - 85 * - COUNT( 26 ) + - 47 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT CASE + 36 WHEN + + 31 THEN NULL WHEN + + 47 THEN MIN ( ALL - - 54 ) + MIN ( + - 79 ) * + NULLIF ( - 47, - 85 * - COUNT ( 26 ) + - 47 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7702
SELECT ALL COUNT( * ) * - - CAST( - 39 AS SIGNED ) * + - 9 + + 85 + SUM( ALL - 23 ) + + 94 * - ( + 69 )
----
-6073

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL COUNT ( * ) * - - CAST ( - 39 AS INTEGER ) * + - 9 + + 85 + SUM ( ALL - 23 ) + + 94 * - ( + 69 )
----
-6073

query I rowsort
SELECT + 84 + - 31 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL - 34 * 20 DIV 23 + 37
----
8

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - 34 * 20 / 23 + 37
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + MAX( - + 91 ) + + COUNT( * ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-7705
SELECT + MAX ( - + 91 ) + + COUNT ( * ) col0
----
-90

query I rowsort
SELECT ALL 71 * + + CASE 90 WHEN - 58 / + 7 + + 80 THEN NULL ELSE + + 95 END * + 19 + - 87 AS col2
----
128068

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT SUM( DISTINCT + - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7707
SELECT SUM ( DISTINCT + - 36 ) AS col2
----
-36

query I rowsort
SELECT + COALESCE ( 86, - - 17, 43 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT + 61 DIV - 88 + - 70 DIV + - ( + 28 ) * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7709
SELECT + 61 / - 88 + - 70 / + - ( + 28 ) * + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT + + 24 * + + 29 * - - COUNT( * ) * + - ( + + 15 ) AS col0
----
-10440

skipif mysql # not compatible
query I rowsort label-7710
SELECT + + 24 * + + 29 * - - COUNT ( * ) * + - ( + + 15 ) AS col0
----
-10440

query I rowsort
SELECT ALL 20 * + 90
----
1800

query I rowsort
SELECT + ( + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + MIN( DISTINCT 66 ) + - - ( + + 79 )
----
145

skipif mysql # not compatible
query I rowsort label-7713
SELECT + MIN ( DISTINCT 66 ) + - - ( + + 79 )
----
145

query II rowsort
SELECT - 63 AS col2, - 33 * - 61 * - 63 AS col2
----
-63
-126819

query II rowsort
SELECT + 63 AS col0, 39 * - - 33 AS col0
----
63
1287

query I rowsort
SELECT ALL + 83 * - - 28 AS col1
----
2324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7717
SELECT + - CAST( NULL AS SIGNED ) AS col2, - COUNT( DISTINCT + NULLIF ( - CAST( 17 AS SIGNED ), + 37 + - 84 ) ) DIV + 25 * + NULLIF ( - ( + 39 ), + + COUNT( * ) ) * MAX( - 8 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7717
SELECT + - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( DISTINCT + NULLIF ( - CAST ( 17 AS INTEGER ), + 37 + - 84 ) ) / + 25 * + NULLIF ( - ( + 39 ), + + COUNT ( * ) ) * MAX ( - 8 ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT MIN( DISTINCT - + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7718
SELECT MIN ( DISTINCT - + 33 )
----
-33

query I rowsort
SELECT ALL - ( 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT ALL + 34 - + + CAST( 68 AS SIGNED ) + SUM( ALL + 53 )
----
19

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + 34 - + + CAST ( 68 AS INTEGER ) + SUM ( ALL + 53 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7721
SELECT + + NULLIF ( + + 55, + COALESCE ( + 64, MIN( ALL + + 27 ) + ( + 3 ) / - 25 + CASE - - 30 WHEN + 83 THEN + 66 * + NULLIF ( - 86, COUNT( * ) ) WHEN - 84 + CASE + 88 + + CAST( NULL AS SIGNED ) * COUNT( 65 ) WHEN 5 THEN NULL ELSE 0 END THEN NULL ELSE NULL END + - 50 * COALESCE ( + COUNT( * ) * + 56, + 46, + CAST( NULL AS DECIMAL ) + + 29 ), + CAST( NULL AS SIGNED ) + COUNT( DISTINCT - 4 ) ) * ( ( 3 ) * - 86 + + 64 ) ) * - 26 AS col2
----
-1430

skipif mysql # not compatible
query I rowsort label-7721
SELECT + + NULLIF ( + + 55, + COALESCE ( + 64, MIN ( ALL + + 27 ) + ( + 3 ) / - 25 + CASE - - 30 WHEN + 83 THEN + 66 * + NULLIF ( - 86, COUNT ( * ) ) WHEN - 84 + CASE + 88 + + CAST ( NULL AS INTEGER ) * COUNT ( 65 ) WHEN 5 THEN NULL ELSE 0 END THEN NULL ELSE NULL END + - 50 * COALESCE ( + COUNT ( * ) * + 56, + 46, + CAST ( NULL AS REAL ) + + 29 ), + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 4 ) ) * ( ( 3 ) * - 86 + + 64 ) ) * - 26 AS col2
----
-1430

query I rowsort
SELECT + 6 + - 34
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT - ( - MIN( ALL - 69 ) ) col1, + COUNT( * ) col1
----
-69
1

skipif mysql # not compatible
query II rowsort label-7723
SELECT - ( - MIN ( ALL - 69 ) ) col1, + COUNT ( * ) col1
----
-69
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT + 19 + + 9 * + 6 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7724
SELECT + 19 + + 9 * + 6 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( - 17 ) - 38
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + 33 * - - COUNT( + + 69 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7726
SELECT + 33 * - - COUNT ( + + 69 ) AS col2
----
33

query I rowsort
SELECT DISTINCT + 40 * - + 28 * + - 9 AS col0
----
10080

onlyif mysql # aggregate syntax: 
query II rowsort label-7728
SELECT ALL ( - + 54 ) AS col0, + SUM( - 51 ) AS col2
----
-54
-51

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL ( - + 54 ) AS col0, + SUM ( - 51 ) AS col2
----
-54
-51

query I rowsort
SELECT - 50 + 15 + - + 64 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT + 20 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT + 20 / + 83 AS col1
----
0

query I rowsort
SELECT - 38 * - 85 AS col0
----
3230

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT ALL COALESCE ( + 49, - COUNT( * ) + - + 44 + - + 33 ) AS col2, COUNT( * )
----
49
1

skipif mysql # not compatible
query II rowsort label-7732
SELECT ALL COALESCE ( + 49, - COUNT ( * ) + - + 44 + - + 33 ) AS col2, COUNT ( * )
----
49
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7733
SELECT ALL - ( COUNT( * ) ) + - - MIN( DISTINCT + 15 ) + CAST( - - 87 AS SIGNED ) DIV COUNT( * ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - ( COUNT ( * ) ) + - - MIN ( DISTINCT + 15 ) + CAST ( - - 87 AS INTEGER ) / COUNT ( * ) AS col2
----
101

query I rowsort
SELECT DISTINCT + 95 * + 64
----
6080

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT DISTINCT - 6 DIV + 62 + ( - 53 ) * + 44 AS col1
----
-2332

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT - 6 / + 62 + ( - 53 ) * + 44 AS col1
----
-2332

query I rowsort
SELECT - NULLIF ( - + 23, + 51 + + + AVG ( - 8 ) * - 60 + + 32 + - 93 ) * - 14 + + COALESCE ( + 86, 54 )
----
-236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7737
SELECT ALL 95 DIV + 39 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL 95 / + 39 + + COUNT ( * )
----
3

query I rowsort
SELECT ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7739
SELECT 5 * 92 * + 29 * + 80 DIV - - COUNT( * ) - + - 33 AS col1
----
1067233

skipif mysql # not compatible
query I rowsort label-7739
SELECT 5 * 92 * + 29 * + 80 / - - COUNT ( * ) - + - 33 AS col1
----
1067233

query I rowsort
SELECT ( 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL + ( - + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT - NULLIF ( + COUNT( * ), + 50 ) * + COUNT( * ) * + 58 + 44 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7742
SELECT - NULLIF ( + COUNT ( * ), + 50 ) * + COUNT ( * ) * + 58 + 44 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL + ( - MIN( + 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + ( - MIN ( + 26 ) )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT + 62 * - 25 * + CASE + - 52 WHEN + - CASE + ( - - COUNT( * ) ) WHEN + NULLIF ( + 23, + 91 ) THEN - 71 - - 65 - - 68 WHEN - MAX( - CAST( ( + ( - NULLIF ( 29, CAST( 94 AS SIGNED ) ) ) ) AS SIGNED ) ) THEN 79 * + 75 + - 16 ELSE NULL END + + 37 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + 71 - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT + 62 * - 25 * + CASE + - 52 WHEN + - CASE + ( - - COUNT ( * ) ) WHEN + NULLIF ( + 23, + 91 ) THEN - 71 - - 65 - - 68 WHEN - MAX ( - CAST ( ( + ( - NULLIF ( 29, CAST ( 94 AS INTEGER ) ) ) ) AS INTEGER ) ) THEN 79 * + 75 + - 16 ELSE NULL END + + 37 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + 71 - 89 AS col1
----
NULL

query I rowsort
SELECT ALL - 7 * 49 * + + 56 + 4
----
-19204

query I rowsort
SELECT DISTINCT + - 93 AS col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT DISTINCT - ( ( + - CAST( NULL AS SIGNED ) ) ) * COALESCE ( - 99, + 13, - + CAST( ( - 67 ) AS SIGNED ), - CAST( NULL AS SIGNED ) * - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT - ( ( + - CAST ( NULL AS INTEGER ) ) ) * COALESCE ( - 99, + 13, - + CAST ( ( - 67 ) AS INTEGER ), - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7748
SELECT - 81 * + 14 + SUM( DISTINCT - 97 ) + + NULLIF ( - CAST( NULL AS SIGNED ), - 88 ) AS col1, - COUNT( * ) DIV 8 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7748
SELECT - 81 * + 14 + SUM ( DISTINCT - 97 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), - 88 ) AS col1, - COUNT ( * ) / 8 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + MIN( ALL 77 ) * ( - 87 ) * 88 + - - COUNT( * )
----
-589511

skipif mysql # not compatible
query I rowsort label-7749
SELECT + MIN ( ALL 77 ) * ( - 87 ) * 88 + - - COUNT ( * )
----
-589511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT + CAST( - 70 AS SIGNED ) * 36 + 74 + + 75
----
-2371

skipif mysql # not compatible
query I rowsort label-7750
SELECT + CAST ( - 70 AS INTEGER ) * 36 + 74 + + 75
----
-2371

query II rowsort
SELECT DISTINCT 39 * 12, ( - 44 ) + - 84 AS col0
----
468
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT + 8 + + COUNT( ALL 74 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7752
SELECT + 8 + + COUNT ( ALL 74 ) AS col0
----
9

query I rowsort
SELECT + + 91 * + 52 * 56 AS col2
----
264992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7754
SELECT DISTINCT CAST( - 66 AS SIGNED ), 34 AS col0
----
-66
34

skipif mysql # not compatible
query II rowsort label-7754
SELECT DISTINCT CAST ( - 66 AS INTEGER ), 34 AS col0
----
-66
34

query I rowsort
SELECT ALL - 11 * - 65
----
715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT - - NULLIF ( ( - 18 ), - CAST( + 34 AS SIGNED ) * - 82 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7756
SELECT - - NULLIF ( ( - 18 ), - CAST ( + 34 AS INTEGER ) * - 82 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + - CASE + 9 WHEN MAX( - + 41 ) THEN - 39 WHEN + MIN( - 11 ) THEN COALESCE ( + COUNT( * ), + MAX( + 62 ) + + - 29 ) WHEN - + 6 * 44 + - 36 THEN NULL END + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT + - CASE + 9 WHEN MAX ( - + 41 ) THEN - 39 WHEN + MIN ( - 11 ) THEN COALESCE ( + COUNT ( * ), + MAX ( + 62 ) + + - 29 ) WHEN - + 6 * 44 + - 36 THEN NULL END + + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT MAX( ALL + + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-7758
SELECT MAX ( ALL + + 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT - CAST( - - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-7759
SELECT - CAST ( - - 58 AS INTEGER )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT ALL CAST( NULL AS SIGNED ) * + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL CAST ( NULL AS INTEGER ) * + - 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT ( - - 31 ) * - 67 DIV + + 1
----
-2077

skipif mysql # not compatible
query I rowsort label-7761
SELECT ( - - 31 ) * - 67 / + + 1
----
-2077

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT 66 * - 64 * - 71 AS col1, 94 + MIN( ALL 15 ) AS col0
----
299904
109

skipif mysql # not compatible
query II rowsort label-7762
SELECT 66 * - 64 * - 71 AS col1, 94 + MIN ( ALL 15 ) AS col0
----
299904
109

query I rowsort
SELECT - 38 col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT COUNT( * ) - + - 65 + 18 * - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7764
SELECT COUNT ( * ) - + - 65 + 18 * - COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT 93 AS col1, CASE - 38 WHEN 35 * 84 THEN - 27 - - CASE + 72 WHEN + ( 11 ) THEN - 83 ELSE - 57 + - 84 + + 74 / + + 64 END WHEN - MAX( ALL 20 ) * 39 + 85 * ( 81 * - 1 ) THEN 14 + 53 END * 83 AS col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-7765
SELECT 93 AS col1, CASE - 38 WHEN 35 * 84 THEN - 27 - - CASE + 72 WHEN + ( 11 ) THEN - 83 ELSE - 57 + - 84 + + 74 / + + 64 END WHEN - MAX ( ALL 20 ) * 39 + 85 * ( 81 * - 1 ) THEN 14 + 53 END * 83 AS col2
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT COUNT( * ) + - 86 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT COUNT ( * ) + - 86 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL - 9 + - + ( + + COUNT( * ) ) * 47 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - 9 + - + ( + + COUNT ( * ) ) * 47 AS col1
----
-56

query I rowsort
SELECT ALL 66 + - 90
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT 75 DIV + 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7769
SELECT 75 / + 55 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT 46 + 43 + - 21 - - - 31 * - 24 * 96 - + 12 DIV 83
----
71492

skipif mysql # not compatible
query I rowsort label-7770
SELECT 46 + 43 + - 21 - - - 31 * - 24 * 96 - + 12 / 83
----
71492

query I rowsort
SELECT 81 * - + 87 AS col0
----
-7047

query I rowsort
SELECT 10 * 27 + - + 82 - 69 * + 19 AS col2
----
-1123

query I rowsort
SELECT 0 - + - 48 AS col1
----
48

query I rowsort
SELECT ALL + 28 - 46
----
-18

query I rowsort
SELECT + - 66 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + SUM( - NULLIF ( 2, + 48 ) ) * + 8 - 20
----
-36

skipif mysql # not compatible
query I rowsort label-7776
SELECT + SUM ( - NULLIF ( 2, + 48 ) ) * + 8 - 20
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT ALL - - COUNT( * ) DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - - COUNT ( * ) / - + 62
----
0

query I rowsort
SELECT DISTINCT + - 76 - 98
----
-174

query I rowsort
SELECT ALL + 78 * 81
----
6318

query I rowsort
SELECT 58 + 0 col1
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7781
SELECT ALL + 67 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL + 67 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - 47 * - COUNT( - 77 ) + - 12
----
35

skipif mysql # not compatible
query I rowsort label-7782
SELECT - 47 * - COUNT ( - 77 ) + - 12
----
35

query I rowsort
SELECT DISTINCT + 34 * - 63 AS col1
----
-2142

query I rowsort
SELECT - 40 + + 61 AS col2
----
21

query I rowsort
SELECT + - CASE + 62 WHEN - NULLIF ( ( + 31 ), 15 ) THEN + 45 + 20 ELSE - 89 END
----
89

query I rowsort
SELECT 27 + 99 + + - 27
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT SUM( DISTINCT + 96 ) + - 13 + - 58 - COALESCE ( + 20, - + 51 - + - 56 - - 47 + - 30 * - + 99 + + 4, + 74 - NULLIF ( + - 67, + COUNT( * ) ) * - 47 ) * - 78
----
1585

skipif mysql # not compatible
query I rowsort label-7787
SELECT SUM ( DISTINCT + 96 ) + - 13 + - 58 - COALESCE ( + 20, - + 51 - + - 56 - - 47 + - 30 * - + 99 + + 4, + 74 - NULLIF ( + - 67, + COUNT ( * ) ) * - 47 ) * - 78
----
1585

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL - NULLIF ( + 28, COUNT( * ) + - ( + + 39 ) / - 57 * - 69 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - NULLIF ( + 28, COUNT ( * ) + - ( + + 39 ) / - 57 * - 69 ) AS col0
----
-28

query I rowsort
SELECT DISTINCT - + 89 AS col2
----
-89

query I rowsort
SELECT DISTINCT - - ( - 55 ) AS col1
----
-55

query I rowsort
SELECT 84 * + - 41 col1
----
-3444

query I rowsort
SELECT DISTINCT + 57 * 14 AS col2
----
798

query I rowsort
SELECT - 70 * - 80 + - - 8 AS col1
----
5608

query I rowsort
SELECT 24 - 31 * 7
----
-193

query I rowsort
SELECT 30 + - 24
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT 26 + + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT 26 + + + COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7797
SELECT 54 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7797
SELECT 54 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
54
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7798
SELECT CAST( COUNT( * ) AS SIGNED ) * - 68 + + 65 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7798
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 68 + + 65 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT DISTINCT CAST( NULL AS SIGNED ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT SUM( + ( - ( + 34 ) ) ) + - 52
----
-86

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT SUM ( + ( - ( + 34 ) ) ) + - 52
----
-86

query I rowsort
SELECT ALL 66 + + 93 AS col1
----
159

query I rowsort
SELECT 55 * 92 AS col2
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT 91 + + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7803
SELECT 91 + + COUNT ( * ) AS col1
----
92

query II rowsort
SELECT - 56 AS col1, 64 - + 32
----
-56
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7805
SELECT 70 AS col2, + 22 + + MIN( ALL - 32 )
----
70
-10

skipif mysql # not compatible
query II rowsort label-7805
SELECT 70 AS col2, + 22 + + MIN ( ALL - 32 )
----
70
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT 0 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7806
SELECT 0 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL 13 - 87 + + 13
----
-61

query I rowsort
SELECT 10 + 4 * + 15 col0
----
70

query II rowsort
SELECT 81 * - + 12 AS col0, 16
----
-972
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7810
SELECT - COUNT( DISTINCT - CAST( ( - - 59 ) AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7810
SELECT - COUNT ( DISTINCT - CAST ( ( - - 59 ) AS INTEGER ) ) col2
----
-1

query I rowsort
SELECT DISTINCT 18 * + ( + 24 ) AS col1
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7812
SELECT 41 DIV - COALESCE ( + 90, - 11 * 37 - - COUNT( * ) - 52 * + MAX( + 57 ) * - ( + - 64 ) * 1 ) * - 76 - + - COALESCE ( - - CASE + + 66 WHEN + CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) - - 56 THEN 82 WHEN 40 * - CAST( NULL AS SIGNED ) THEN - 75 + CAST( NULL AS SIGNED ) END, 93, + COUNT( * ) + - MIN( + 30 ), COUNT( * ) ) DIV COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7812
SELECT 41 / - COALESCE ( + 90, - 11 * 37 - - COUNT ( * ) - 52 * + MAX ( + 57 ) * - ( + - 64 ) * 1 ) * - 76 - + - COALESCE ( - - CASE + + 66 WHEN + CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) - - 56 THEN 82 WHEN 40 * - CAST ( NULL AS INTEGER ) THEN - 75 + CAST ( NULL AS INTEGER ) END, 93, + COUNT ( * ) + - MIN ( + 30 ), COUNT ( * ) ) / COUNT ( * ) AS col1
----
93

query I rowsort
SELECT + 55 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT 83 * + 38 - + MIN( ALL - 4 ) - - 7 AS col2
----
3165

skipif mysql # not compatible
query I rowsort label-7814
SELECT 83 * + 38 - + MIN ( ALL - 4 ) - - 7 AS col2
----
3165

query I rowsort
SELECT ALL - - 86 * + ( - 72 )
----
-6192

query II rowsort
SELECT ALL - 19 AS col0, + 10
----
-19
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7817
SELECT + 22 * + CAST( NULL AS SIGNED ) + + COUNT( * ) + - COUNT( * ) / - COALESCE ( - 17, 66 * - 32, CAST( - - CASE - - 32 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 39 THEN NULL WHEN - CAST( + COUNT( * ) AS DECIMAL ) THEN + 73 * 39 END AS SIGNED ) - + COUNT( + 65 ) ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT + 22 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - COUNT ( * ) / - COALESCE ( - 17, 66 * - 32, CAST ( - - CASE - - 32 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 39 THEN NULL WHEN - CAST ( + COUNT ( * ) AS REAL ) THEN + 73 * 39 END AS INTEGER ) - + COUNT ( + 65 ) ) * + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - 27 * + + 83 - + - COUNT( DISTINCT 79 ) + + MAX( ALL + 11 ) - - 25 - - 30 col1
----
-2174

skipif mysql # not compatible
query I rowsort label-7818
SELECT - 27 * + + 83 - + - COUNT ( DISTINCT 79 ) + + MAX ( ALL + 11 ) - - 25 - - 30 col1
----
-2174

query II rowsort
SELECT DISTINCT - 81, 6 * + 16 AS col1
----
-81
96

query I rowsort
SELECT - ( + - 47 ) * 46
----
2162

query I rowsort
SELECT + COALESCE ( 60, + + 36 + 0, 42 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL - 28 + + COUNT( * ) + 49
----
22

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - 28 + + COUNT ( * ) + 49
----
22

query II rowsort
SELECT - ( + 92 ) * + COALESCE ( 15, - 23 ) - + + 76 + - 39 + + 67 * + 69 AS col0, 88
----
3128
88

query I rowsort
SELECT - ( + - 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7825
SELECT + COALESCE ( 91, + 49 + - 29, - 46, + 54 + 49 + 98 * + COUNT( ALL - 36 ) ) + + - 22 + - + CAST( NULL AS SIGNED ) / + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT + COALESCE ( 91, + 49 + - 29, - 46, + 54 + 49 + 98 * + COUNT ( ALL - 36 ) ) + + - 22 + - + CAST ( NULL AS INTEGER ) / + 92 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT + 36 + COALESCE ( + - CAST( MAX( + 1 ) AS SIGNED ), + COUNT( * ) + NULLIF ( - 28, - + 64 ) - + 75 - + COUNT( * ) * - 26 )
----
35

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT + 36 + COALESCE ( + - CAST ( MAX ( + 1 ) AS INTEGER ), + COUNT ( * ) + NULLIF ( - 28, - + 64 ) - + 75 - + COUNT ( * ) * - 26 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL NULLIF ( + CAST( + 41 AS SIGNED ), + 44 + + - CAST( - - 66 AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL NULLIF ( + CAST ( + 41 AS INTEGER ), + 44 + + - CAST ( - - 66 AS INTEGER ) )
----
41

query I rowsort
SELECT + 97 * - 96
----
-9312

query I rowsort
SELECT ALL 79 + 45
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COALESCE ( - 79, - - 27, - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COALESCE ( - 79, - - 27, - 34 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT DISTINCT COUNT( * ) + + 62 + - - 51 + + - 44 DIV 48
----
114

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT COUNT ( * ) + + 62 + - - 51 + + - 44 / 48
----
114

query I rowsort
SELECT + 27 * - 46 + + - 93 * - 24 * + + 61
----
134910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT ALL CASE - 21 WHEN 99 * + 23 * 73 * COUNT( * ) THEN 7 - - - CAST( + 60 AS SIGNED ) WHEN 22 - + + 24 + - 3 THEN + 5 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL CASE - 21 WHEN 99 * + 23 * 73 * COUNT ( * ) THEN 7 - - - CAST ( + 60 AS INTEGER ) WHEN 22 - + + 24 + - 3 THEN + 5 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7834
SELECT DISTINCT - 64 DIV - 81 AS col1, COUNT( - 8 ) * 29 DIV - COUNT( * )
----
0
-29

skipif mysql # not compatible
query II rowsort label-7834
SELECT DISTINCT - 64 / - 81 AS col1, COUNT ( - 8 ) * 29 / - COUNT ( * )
----
0
-29

query I rowsort
SELECT - COALESCE ( 94, + - 17 + + 23 * 25 * 52 ) - + + 9 * + 93
----
-931

query II rowsort
SELECT - 8 * + 78, - 83 AS col2
----
-624
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7837
SELECT ALL - 46 * + + 1 AS col0, - 21 + - CAST( NULL AS DECIMAL )
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL - 46 * + + 1 AS col0, - 21 + - CAST ( NULL AS REAL )
----
-46
NULL

query I rowsort
SELECT - 25 + ( + 68 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT + 29 * + + 59 * + - COUNT( ALL 49 )
----
-1711

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT + 29 * + + 59 * + - COUNT ( ALL 49 )
----
-1711

query I rowsort
SELECT ALL - 74 - + 97 * + 79 AS col0
----
-7737

query I rowsort
SELECT + 47 + - 81 - + - 17 - 87
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT ALL + CASE 62 WHEN - - CAST( - + 12 AS SIGNED ) THEN + + 15 WHEN - 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + CASE 62 WHEN - - CAST ( - + 12 AS INTEGER ) THEN + + 15 WHEN - 39 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT - CASE MIN( ALL - ( - - COALESCE ( - 37, + 29 * - CAST( NULL AS SIGNED ) - + 69, - - 78 ) ) ) WHEN + - 11 / + ( - ( - 37 ) ) - + CASE + 96 WHEN - COUNT( DISTINCT + - 17 ) * + 21 THEN - 97 * 24 - + 22 ELSE NULL END THEN 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT - CASE MIN ( ALL - ( - - COALESCE ( - 37, + 29 * - CAST ( NULL AS INTEGER ) - + 69, - - 78 ) ) ) WHEN + - 11 / + ( - ( - 37 ) ) - + CASE + 96 WHEN - COUNT ( DISTINCT + - 17 ) * + 21 THEN - 97 * 24 - + 22 ELSE NULL END THEN 92 END AS col2
----
NULL

query I rowsort
SELECT - - 45 + + 72
----
117

query I rowsort
SELECT + 4 * + 99
----
396

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7846
SELECT - 55 / - + CAST( NULL AS DECIMAL ) - + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT - 55 / - + CAST ( NULL AS REAL ) - + + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT 95 * - - 84 + + CAST( 55 AS SIGNED ) + + COUNT( * ) * + 52 AS col2
----
8087

skipif mysql # not compatible
query I rowsort label-7847
SELECT 95 * - - 84 + + CAST ( 55 AS INTEGER ) + + COUNT ( * ) * + 52 AS col2
----
8087

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT + 31 - - COUNT( * ) + 46 * + 86 AS col2
----
3988

skipif mysql # not compatible
query I rowsort label-7848
SELECT + 31 - - COUNT ( * ) + 46 * + 86 AS col2
----
3988

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT ALL 0 * + + 98 DIV - - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL 0 * + + 98 / - - 29 AS col0
----
0

query I rowsort
SELECT + 70 * + + 29
----
2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7851
SELECT - + 93 DIV - 91 + + 22 AS col1, - COUNT( * )
----
23
-1

skipif mysql # not compatible
query II rowsort label-7851
SELECT - + 93 / - 91 + + 22 AS col1, - COUNT ( * )
----
23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT ALL 79 * CASE + 71 WHEN NULLIF ( - 92, + 71 ) + 56 THEN 15 WHEN - 86 - - + 49 THEN NULL END + + - CASE + - 61 WHEN - CAST( NULL AS SIGNED ) THEN + 22 ELSE - COALESCE ( - 79, + 37 + + ( 58 ) * + 81, 21 ) + CAST( - 73 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL 79 * CASE + 71 WHEN NULLIF ( - 92, + 71 ) + 56 THEN 15 WHEN - 86 - - + 49 THEN NULL END + + - CASE + - 61 WHEN - CAST ( NULL AS INTEGER ) THEN + 22 ELSE - COALESCE ( - 79, + 37 + + ( 58 ) * + 81, 21 ) + CAST ( - 73 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + - COALESCE ( + NULLIF ( + 47, - 69 ), + 64 ) + + 16 + - ( + + 62 )
----
-93

query I rowsort
SELECT ALL + ( 83 ) * 82 AS col0
----
6806

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT + 87 * + SUM( ALL - 6 ) + + - MAX( 47 )
----
-569

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 87 * + SUM ( ALL - 6 ) + + - MAX ( 47 )
----
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL - + MAX( DISTINCT + ( 64 ) ) * - NULLIF ( + 22, + SUM( DISTINCT - 71 ) * 27 + + 75 ) + + 25 + - 38 - - 82 - - 57 - - - 10
----
1524

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - + MAX ( DISTINCT + ( 64 ) ) * - NULLIF ( + 22, + SUM ( DISTINCT - 71 ) * 27 + + 75 ) + + 25 + - 38 - - 82 - - 57 - - - 10
----
1524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT ALL + 35 * - 44 + - - AVG ( + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + 35 * - 44 + - - AVG ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 86 + ( 37 ) * - 98
----
-3540

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT + + 19 DIV - 8 + - + 15 * + 18 * - - 50 AS col1
----
-13502

skipif mysql # not compatible
query I rowsort label-7859
SELECT + + 19 / - 8 + - + 15 * + 18 * - - 50 AS col1
----
-13502

query I rowsort
SELECT ALL + 30 * + 68 + + - 90 AS col0
----
1950

query II rowsort
SELECT ALL + 20 col2, 5 AS col2
----
20
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT ALL 36 * + - COUNT( * ) + - 65 AS col1, + 43
----
-101
43

skipif mysql # not compatible
query II rowsort label-7862
SELECT ALL 36 * + - COUNT ( * ) + - 65 AS col1, + 43
----
-101
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7863
SELECT ALL CAST( + 69 AS SIGNED ) DIV + 75 + 75 DIV 19 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL CAST ( + 69 AS INTEGER ) / + 75 + 75 / 19 AS col0
----
3

query I rowsort
SELECT - 20 * + 49 * - 69
----
67620

query I rowsort
SELECT ALL - 50 * + - 50 col1
----
2500

query I rowsort
SELECT ALL - 77 * - 66 AS col0
----
5082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT ALL 73 * AVG ( ALL CAST( - 3 AS SIGNED ) ) - - CASE COUNT( * ) WHEN + 52 / + + 80 * - - ( - - COUNT( * ) ) * - 65 + + 89 + + 21 - + 32 * 54 * 7 * - 23 * - 28 + + CASE 4 WHEN - 66 THEN NULL ELSE - ( 44 ) END THEN NULL WHEN + 94 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL 73 * AVG ( ALL CAST ( - 3 AS INTEGER ) ) - - CASE COUNT ( * ) WHEN + 52 / + + 80 * - - ( - - COUNT ( * ) ) * - 65 + + 89 + + 21 - + 32 * 54 * 7 * - 23 * - 28 + + CASE 4 WHEN - 66 THEN NULL ELSE - ( 44 ) END THEN NULL WHEN + 94 THEN 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT COUNT( + - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-7868
SELECT COUNT ( + - 53 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT - CAST( NULL AS SIGNED ) + - + 1 * - ( + ( + + MAX( ALL - NULLIF ( 83, + 34 ) ) ) ) + - MIN( 98 ) - SUM( DISTINCT 95 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT - CAST ( NULL AS INTEGER ) + - + 1 * - ( + ( + + MAX ( ALL - NULLIF ( 83, + 34 ) ) ) ) + - MIN ( 98 ) - SUM ( DISTINCT 95 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT - 7 + CASE + 89 WHEN + - 66 + + 53 + + + ( - 67 ) - 0 * - 93 + + 76 THEN + COUNT( * ) * + 21 + + + NULLIF ( - 82, + - 12 + + 57 ) ELSE NULL END + 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 7 + CASE + 89 WHEN + - 66 + + 53 + + + ( - 67 ) - 0 * - 93 + + 76 THEN + COUNT ( * ) * + 21 + + + NULLIF ( - 82, + - 12 + + 57 ) ELSE NULL END + 60 col1
----
NULL

query I rowsort
SELECT ALL ( 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT DISTINCT CAST( 59 AS SIGNED ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT CAST ( 59 AS INTEGER ) AS col2
----
59

query I rowsort
SELECT DISTINCT + 60 * 35 AS col1
----
2100

query I rowsort
SELECT DISTINCT NULLIF ( 11, + 88 ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7875
SELECT ALL CAST( + ( 11 ) AS SIGNED ) AS col2, - 36 AS col2
----
11
-36

skipif mysql # not compatible
query II rowsort label-7875
SELECT ALL CAST ( + ( 11 ) AS INTEGER ) AS col2, - 36 AS col2
----
11
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT - CASE WHEN COUNT( * ) IS NULL THEN 76 / + ( + COALESCE ( + + 18, 9, - + 45 ) ) END + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT - CASE WHEN COUNT ( * ) IS NULL THEN 76 / + ( + COALESCE ( + + 18, 9, - + 45 ) ) END + 8
----
NULL

query I rowsort
SELECT ALL ( + - 77 ) AS col0
----
-77

query I rowsort
SELECT - 48 + + 39 + 83 col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT ALL + 15 DIV - 35 * + 55 * 69
----
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + 15 / - 35 * + 55 * 69
----
0

query II rowsort
SELECT - 68 AS col0, + COALESCE ( + - 78, NULLIF ( - ( - 28 ), 73 * 48 + - - 91 + - 54 * - ( - 50 ) + - 17 ) )
----
-68
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7881
SELECT DISTINCT + 46 * + 91 + + + 10 col2, 76 + - COUNT( ALL - 27 )
----
4196
75

skipif mysql # not compatible
query II rowsort label-7881
SELECT DISTINCT + 46 * + 91 + + + 10 col2, 76 + - COUNT ( ALL - 27 )
----
4196
75

query I rowsort
SELECT + 15 + - - 80 + ( + COALESCE ( - 55, + + 3 ) )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7883
SELECT ALL 89 * + COUNT( * ) + 37 * 70 * + - COUNT( * ) * - 47 + + COALESCE ( + 48, - 99, + COALESCE ( + CASE - - 72 WHEN + - 55 THEN NULL WHEN + 58 * + 56 DIV + - 12 * + + 56 * + - 52 + 54 THEN + MIN( ALL + 91 ) + 27 DIV 4 ELSE NULL END, 81 ) )
----
121867

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL 89 * + COUNT ( * ) + 37 * 70 * + - COUNT ( * ) * - 47 + + COALESCE ( + 48, - 99, + COALESCE ( + CASE - - 72 WHEN + - 55 THEN NULL WHEN + 58 * + 56 / + - 12 * + + 56 * + - 52 + 54 THEN + MIN ( ALL + 91 ) + 27 / 4 ELSE NULL END, 81 ) )
----
121867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT DISTINCT + SUM( - 8 ) + 64 - - MIN( ALL - - CAST( + + 88 AS SIGNED ) ) * + 24 AS col0
----
2168

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT + SUM ( - 8 ) + 64 - - MIN ( ALL - - CAST ( + + 88 AS INTEGER ) ) * + 24 AS col0
----
2168

query I rowsort
SELECT ALL - NULLIF ( 23, + ( + + ( - 10 ) ) )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT ALL + 64 + + COALESCE ( - + 2, ( SUM( - 13 ) ) ) + - 44 + + ( - - 61 ) DIV + 63
----
18

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + 64 + + COALESCE ( - + 2, ( SUM ( - 13 ) ) ) + - 44 + + ( - - 61 ) / + 63
----
18

query II rowsort
SELECT + - 58 * + ( - + 96 ) AS col1, 75 col2
----
5568
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT ALL - SUM( ALL - 65 ) * - 44, - 92 * 14 AS col1
----
-2860
-1288

skipif mysql # not compatible
query II rowsort label-7888
SELECT ALL - SUM ( ALL - 65 ) * - 44, - 92 * 14 AS col1
----
-2860
-1288

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT DISTINCT + - 82 DIV + 34 + + 67
----
65

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT + - 82 / + 34 + + 67
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT ALL - - NULLIF ( + 93, + 94 * 55 * COUNT( * ) + - ( 32 ) + CASE COUNT( * ) WHEN - ( + + 59 ) + + + 70 THEN - 34 WHEN 77 THEN NULL ELSE NULL END ) / 33 + - + CASE - 73 WHEN - - CAST( NULL AS SIGNED ) THEN + 76 WHEN 27 THEN NULL WHEN 50 * + SUM( DISTINCT ( - 67 ) ) THEN NULL END + 70 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - - NULLIF ( + 93, + 94 * 55 * COUNT ( * ) + - ( 32 ) + CASE COUNT ( * ) WHEN - ( + + 59 ) + + + 70 THEN - 34 WHEN 77 THEN NULL ELSE NULL END ) / 33 + - + CASE - 73 WHEN - - CAST ( NULL AS INTEGER ) THEN + 76 WHEN 27 THEN NULL WHEN 50 * + SUM ( DISTINCT ( - 67 ) ) THEN NULL END + 70 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7891
SELECT - 56 DIV CAST( + 73 AS SIGNED ) - + COUNT( * ) + - 37 * - ( + ( + 17 ) ) + - + 17
----
611

skipif mysql # not compatible
query I rowsort label-7891
SELECT - 56 / CAST ( + 73 AS INTEGER ) - + COUNT ( * ) + - 37 * - ( + ( + 17 ) ) + - + 17
----
611

query II rowsort
SELECT + 7 AS col0, - 42
----
7
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT CAST( - 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-7893
SELECT CAST ( - 96 AS INTEGER )
----
-96

query I rowsort
SELECT + - 30 col0
----
-30

query I rowsort
SELECT ALL ( - - 85 ) + 37 + 13 - - 0 * - - 94 AS col2
----
135

query I rowsort
SELECT DISTINCT 63 + 65
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + NULLIF ( - 12, - - MAX( DISTINCT + + 44 ) + 25 ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + NULLIF ( - 12, - - MAX ( DISTINCT + + 44 ) + 25 ) * 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ( - - 2 ) - + + COUNT( * ) * - 5 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7898
SELECT ( - - 2 ) - + + COUNT ( * ) * - 5 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL - NULLIF ( + - 48, + ( + + 72 ) * + 53 * - SUM( DISTINCT 78 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL - NULLIF ( + - 48, + ( + + 72 ) * + 53 * - SUM ( DISTINCT 78 ) ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL 44 * - MIN( ALL + 62 )
----
-2728

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL 44 * - MIN ( ALL + 62 )
----
-2728

onlyif mysql # aggregate syntax: 
query III rowsort label-7901
SELECT ALL 2 - - + 38 AS col0, + ( - MIN( DISTINCT - 11 ) ) AS col2, - 9
----
40
11
-9

skipif mysql # not compatible
query III rowsort label-7901
SELECT ALL 2 - - + 38 AS col0, + ( - MIN ( DISTINCT - 11 ) ) AS col2, - 9
----
40
11
-9

query I rowsort
SELECT 55 * - 82 + - 49 AS col2
----
-4559

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ( - MIN( 57 ) ) * 29 * 62 + - 34 AS col1
----
-102520

skipif mysql # not compatible
query I rowsort label-7903
SELECT ( - MIN ( 57 ) ) * 29 * 62 + - 34 AS col1
----
-102520

query I rowsort
SELECT 0 + + - 60
----
-60

query I rowsort
SELECT 93 + - 13
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT DISTINCT 95 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT 95 / 52
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT 80 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT 80 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 19 * - 99 AS col0
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT + 11 * + + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT + 11 * + + COUNT ( * ) AS col0
----
11

query I rowsort
SELECT 58 + + 25 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT 35 - - + MAX( - 97 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7911
SELECT 35 - - + MAX ( - 97 ) AS col0
----
-62

query I rowsort
SELECT DISTINCT + 57 * + COALESCE ( - 82, - - 15, + + 30 + + 19 * + - 11 * + 25 ) col1
----
-4674

query I rowsort
SELECT ALL - 98 + + - 11
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7914
SELECT ALL CAST( + + 98 AS SIGNED ), 62 col1
----
98
62

skipif mysql # not compatible
query II rowsort label-7914
SELECT ALL CAST ( + + 98 AS INTEGER ), 62 col1
----
98
62

query II rowsort
SELECT DISTINCT - 65 + + 37 - 45 * - NULLIF ( - 52, + 62 + + 1 ) AS col0, + 7 AS col0
----
-2368
7

query I rowsort
SELECT ALL - - 12 + + 81 + - + 95 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - NULLIF ( - - COUNT( * ), MIN( 1 ) ) + - COALESCE ( 38, + + 16 * 93, - + 17 * + + 89 + - 2 + - 42 * + - 98 + - 53 + + 57 + 21 * - COALESCE ( - COUNT( * ), - + 89, + COUNT( * ) ) * - 92 + 38 ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT - NULLIF ( - - COUNT ( * ), MIN ( 1 ) ) + - COALESCE ( 38, + + 16 * 93, - + 17 * + + 89 + - 2 + - 42 * + - 98 + - 53 + + 57 + 21 * - COALESCE ( - COUNT ( * ), - + 89, + COUNT ( * ) ) * - 92 + 38 ) * 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - 16 * - + 2 + + + CASE - 81 WHEN - 9 * - 63 THEN - 68 * - - 70 END * - 15 + + 86 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT - 16 * - + 2 + + + CASE - 81 WHEN - 9 * - 63 THEN - 68 * - - 70 END * - 15 + + 86 + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 15 - 1 AS col2, - 88 - - 65 AS col0
----
14
-23

query I rowsort
SELECT ALL + 91 - 28 AS col2
----
63

query I rowsort
SELECT + 82 * - 13 - 53 AS col1
----
-1119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7922
SELECT ALL - + COUNT( * ) * NULLIF ( + 43, - 51 ) * + - MIN( DISTINCT + 36 ) * + 17 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - + COUNT ( * ) * NULLIF ( + 43, - 51 ) * + - MIN ( DISTINCT + 36 ) * + 17 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + + 45 * - + 46 AS col0
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL - 23 - + COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - 23 - + COUNT ( * ) AS col1
----
-24

query I rowsort
SELECT 75 * ( + - 66 ) * - - ( - 11 ) + - 83 col2
----
54367

query I rowsort
SELECT 49 * + 81
----
3969

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT + 78 DIV + 10 + - + 36 + - - 26
----
-3

skipif mysql # not compatible
query I rowsort label-7927
SELECT + 78 / + 10 + - + 36 + - - 26
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7928
SELECT 42, - COUNT( * ) * - COUNT( * ) AS col1, - 74 DIV - COALESCE ( - SUM( + 91 ), - + 86 + - CASE 52 WHEN COUNT( * ) THEN + ( + + ( 41 ) ) WHEN + 56 * + 39 THEN NULL WHEN + - 7 THEN NULL WHEN + CASE + 30 WHEN 21 THEN + COUNT( * ) * COUNT( * ) WHEN 75 * 31 THEN NULL ELSE - 73 END - 11 THEN 99 - 77 * CAST( NULL AS SIGNED ) WHEN 62 THEN NULL ELSE NULL END + 22, 49 ) - + COUNT( * ) + - COUNT( * ) col1
----
42
1
-2

skipif mysql # not compatible
query III rowsort label-7928
SELECT 42, - COUNT ( * ) * - COUNT ( * ) AS col1, - 74 / - COALESCE ( - SUM ( + 91 ), - + 86 + - CASE 52 WHEN COUNT ( * ) THEN + ( + + ( 41 ) ) WHEN + 56 * + 39 THEN NULL WHEN + - 7 THEN NULL WHEN + CASE + 30 WHEN 21 THEN + COUNT ( * ) * COUNT ( * ) WHEN 75 * 31 THEN NULL ELSE - 73 END - 11 THEN 99 - 77 * CAST ( NULL AS INTEGER ) WHEN 62 THEN NULL ELSE NULL END + 22, 49 ) - + COUNT ( * ) + - COUNT ( * ) col1
----
42
1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT 94 + + + CAST( + 84 AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-7929
SELECT 94 + + + CAST ( + 84 AS INTEGER )
----
178

query I rowsort
SELECT 65 + - - 62
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-7931
SELECT ALL - 48, + ( COUNT( * ) ) AS col1
----
-48
1

skipif mysql # not compatible
query II rowsort label-7931
SELECT ALL - 48, + ( COUNT ( * ) ) AS col1
----
-48
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7932
SELECT ALL - COUNT( * ) AS col0, 19 + - 76 AS col2
----
-1
-57

skipif mysql # not compatible
query II rowsort label-7932
SELECT ALL - COUNT ( * ) AS col0, 19 + - 76 AS col2
----
-1
-57

query I rowsort
SELECT ALL ( - - 36 ) * + - 78 - + - 94 AS col1
----
-2714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7934
SELECT CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 54 * 9
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT NULLIF ( + 36, + CASE - 78 WHEN - + 48 + + 9 * - 4 + - 68 + + 73 / 59 THEN - 68 END * - 48 + 8 + - COUNT( * ) + NULLIF ( + 11, 20 ) ) + - - 4
----
40

skipif mysql # not compatible
query I rowsort label-7936
SELECT NULLIF ( + 36, + CASE - 78 WHEN - + 48 + + 9 * - 4 + - 68 + + 73 / 59 THEN - 68 END * - 48 + 8 + - COUNT ( * ) + NULLIF ( + 11, 20 ) ) + - - 4
----
40

query II rowsort
SELECT 58, 26 + ( - ( - + 12 ) ) AS col0
----
58
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7938
SELECT ALL 6 + COUNT( * ) + ( + - 52 ) * CASE - + 91 WHEN + + 33 * - + 9 THEN - - 5 - + ( + 88 ) ELSE - 92 * 18 * - MAX( + + CAST( NULL AS SIGNED ) ) - - 53 * CAST( NULL AS DECIMAL ) END + COALESCE ( + ( + - 59 ), 32 + + MAX( ALL + 69 ), 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL 6 + COUNT ( * ) + ( + - 52 ) * CASE - + 91 WHEN + + 33 * - + 9 THEN - - 5 - + ( + 88 ) ELSE - 92 * 18 * - MAX ( + + CAST ( NULL AS INTEGER ) ) - - 53 * CAST ( NULL AS REAL ) END + COALESCE ( + ( + - 59 ), 32 + + MAX ( ALL + 69 ), 61 ) AS col1
----
NULL

query I rowsort
SELECT 90 * 46
----
4140

query I rowsort
SELECT 25 + - + 28 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7941
SELECT ALL 63 AS col2, 30 * 8 + 88 * + + COUNT( * ) AS col2
----
63
328

skipif mysql # not compatible
query II rowsort label-7941
SELECT ALL 63 AS col2, 30 * 8 + 88 * + + COUNT ( * ) AS col2
----
63
328

query I rowsort
SELECT 4 + + + 67 * ( - + 53 )
----
-3547

query I rowsort
SELECT - ( 77 ) AS col2
----
-77

query III rowsort
SELECT ALL 90 AS col2, - 27 - - 60, 92 AS col1
----
90
33
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT - 69 + CASE - + 64 WHEN 99 * + + 6 + 7 + + 55 * - + MIN( + ( + 84 ) ) THEN + + NULLIF ( + 47, - COUNT( * ) ) * 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - 69 + CASE - + 64 WHEN 99 * + + 6 + 7 + + 55 * - + MIN ( + ( + 84 ) ) THEN + + NULLIF ( + 47, - COUNT ( * ) ) * 68 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL - + CASE CAST( NULL AS SIGNED ) WHEN + 52 THEN + 39 WHEN + 25 THEN + 54 WHEN + CASE - COUNT( * ) WHEN + + CASE 32 WHEN - 58 THEN 62 END - 88 * - 23 THEN NULL WHEN + NULLIF ( - 78, - 18 / + - 65 * + + 1 + - + 59 - SUM( ALL + 85 ) / + AVG ( DISTINCT + 55 * + 67 ) + + 55 ) THEN + 83 END THEN NULL WHEN - NULLIF ( - 8, - 67 ) THEN NULL ELSE NULL END * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - + CASE CAST ( NULL AS INTEGER ) WHEN + 52 THEN + 39 WHEN + 25 THEN + 54 WHEN + CASE - COUNT ( * ) WHEN + + CASE 32 WHEN - 58 THEN 62 END - 88 * - 23 THEN NULL WHEN + NULLIF ( - 78, - 18 / + - 65 * + + 1 + - + 59 - SUM ( ALL + 85 ) / + AVG ( DISTINCT + 55 * + 67 ) + + 55 ) THEN + 83 END THEN NULL WHEN - NULLIF ( - 8, - 67 ) THEN NULL ELSE NULL END * 61 AS col1
----
NULL

query I rowsort
SELECT ALL + 36 + - - 10 * + - 0 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT + - 56 * - - COALESCE ( + 53, 4 * - - 59 DIV - - 60 ) col2
----
-2968

skipif mysql # not compatible
query I rowsort label-7948
SELECT + - 56 * - - COALESCE ( + 53, 4 * - - 59 / - - 60 ) col2
----
-2968

query I rowsort
SELECT DISTINCT + - 47 * - 61 * - - 83
----
237961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT ALL - COALESCE ( - 47, - 44, - 22 * ( 11 ) * MIN( ALL - + CAST( NULL AS SIGNED ) ) + + 27 + + 51 )
----
47

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - COALESCE ( - 47, - 44, - 22 * ( 11 ) * MIN ( ALL - + CAST ( NULL AS INTEGER ) ) + + 27 + + 51 )
----
47

query I rowsort
SELECT - + ( - 4 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7952
SELECT - + 76 + - 30 * 47 * COALESCE ( + 49, + - ( + COUNT( * ) ) + ( COUNT( * ) ) ) DIV + - MAX( + + 99 ) + 64 AS col0
----
685

skipif mysql # not compatible
query I rowsort label-7952
SELECT - + 76 + - 30 * 47 * COALESCE ( + 49, + - ( + COUNT ( * ) ) + ( COUNT ( * ) ) ) / + - MAX ( + + 99 ) + 64 AS col0
----
685

query II rowsort
SELECT ALL + ( 10 ) * ( + ( - - 41 ) ) + - - 64 col1, 14 * + - 70 AS col0
----
474
-980

query I rowsort
SELECT - - 1 + - 48 - - + 15 * - 2 * - 53 AS col2
----
1543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7955
SELECT - COUNT( ALL 15 ) * - - 34 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT - COUNT ( ALL 15 ) * - - 34 / + 83 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 40 * - 7
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7958
SELECT ALL + - 23 AS col1, CAST( 1 AS SIGNED )
----
-23
1

skipif mysql # not compatible
query II rowsort label-7958
SELECT ALL + - 23 AS col1, CAST ( 1 AS INTEGER )
----
-23
1

query I rowsort
SELECT ALL + - 63 col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL - 18 DIV - 49 * + 88
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - 18 / - 49 * + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + COUNT( DISTINCT + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-7961
SELECT + COUNT ( DISTINCT + 21 )
----
1

query I rowsort
SELECT DISTINCT - 1 * + 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT + NULLIF ( + - MIN( + 42 ), + COUNT( * ) + + 93 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + NULLIF ( + - MIN ( + 42 ), + COUNT ( * ) + + 93 ) AS col0
----
-42

query I rowsort
SELECT ALL - 19 * + CASE 13 WHEN + 44 - - 43 THEN - + 75 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT COALESCE ( + 33, - 87 DIV - - 96 )
----
33

skipif mysql # not compatible
query I rowsort label-7965
SELECT COALESCE ( + 33, - 87 / - - 96 )
----
33

query I rowsort
SELECT DISTINCT - 1 * + 86 * + - CASE - 3 WHEN - + COALESCE ( - 43, - 33 * + - 22 ) THEN NULL WHEN - - 24 THEN NULL WHEN + 72 * 17 * - - 54 THEN + + ( + 19 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 47 * - - 72 AS col1
----
3384

query II rowsort
SELECT ALL + 64, - 30 col0
----
64
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT - 48 DIV 42
----
-1

skipif mysql # not compatible
query I rowsort label-7969
SELECT - 48 / 42
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7970
SELECT ALL + CAST( NULL AS SIGNED ), 30 * + 37 AS col2
----
NULL
1110

skipif mysql # not compatible
query II rowsort label-7970
SELECT ALL + CAST ( NULL AS INTEGER ), 30 * + 37 AS col2
----
NULL
1110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7971
SELECT COALESCE ( + COUNT( * ), + COUNT( * ) DIV - - 88 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7971
SELECT COALESCE ( + COUNT ( * ), + COUNT ( * ) / - - 88 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7972
SELECT + 25 * + 16 col2, 75 - + - 41 - - ( + + COUNT( * ) ) AS col2
----
400
117

skipif mysql # not compatible
query II rowsort label-7972
SELECT + 25 * + 16 col2, 75 - + - 41 - - ( + + COUNT ( * ) ) AS col2
----
400
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT + 66 * - + 79 + 5 + - CASE - 50 WHEN - - MAX( ALL - - 70 ) THEN - 53 WHEN - - COUNT( DISTINCT + 91 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT + 66 * - + 79 + 5 + - CASE - 50 WHEN - - MAX ( ALL - - 70 ) THEN - 53 WHEN - - COUNT ( DISTINCT + 91 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT MIN( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7974
SELECT MIN ( 39 )
----
39

query II rowsort
SELECT + 53 AS col0, 81 AS col0
----
53
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + NULLIF ( - 92, + NULLIF ( + 44, - COUNT( * ) ) )
----
-92

skipif mysql # not compatible
query I rowsort label-7976
SELECT + NULLIF ( - 92, + NULLIF ( + 44, - COUNT ( * ) ) )
----
-92

query I rowsort
SELECT - 89 * - 58
----
5162

query I rowsort
SELECT + 95 * 13
----
1235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7979
SELECT ALL - COUNT( + - CAST( NULL AS SIGNED ) ) * + 60 + - - 33 + 83
----
116

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - COUNT ( + - CAST ( NULL AS INTEGER ) ) * + 60 + - - 33 + 83
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL - + 8 + - + COUNT( + 19 ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - + 8 + - + COUNT ( + 19 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT ALL NULLIF ( - 59, - 74 / - + CAST( + ( + + 15 ) AS SIGNED ) + - - COUNT( * ) * + - 84 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL NULLIF ( - 59, - 74 / - + CAST ( + ( + + 15 ) AS INTEGER ) + - - COUNT ( * ) * + - 84 ) AS col0
----
-59

query I rowsort
SELECT ALL - 65 + - + 76 AS col0
----
-141

query I rowsort
SELECT - + 85 + - - 65 - + + 69 AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7984
SELECT + 70 * - - 3 col0, CAST( - + 32 AS SIGNED ) AS col0
----
210
-32

skipif mysql # not compatible
query II rowsort label-7984
SELECT + 70 * - - 3 col0, CAST ( - + 32 AS INTEGER ) AS col0
----
210
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-7985
SELECT DISTINCT 40 * - + 32 AS col2, - COUNT( * )
----
-1280
-1

skipif mysql # not compatible
query II rowsort label-7985
SELECT DISTINCT 40 * - + 32 AS col2, - COUNT ( * )
----
-1280
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT + 14 + + + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7986
SELECT + 14 + + + COUNT ( * ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT + CAST( NULL AS SIGNED ) + 38 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT + CAST ( NULL AS INTEGER ) + 38 * + 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT ALL 67 - ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL 67 - ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + 37 * - ( + NULLIF ( - 31, + + 11 ) )
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT + + COUNT( * ) - + 22 col2
----
-21

skipif mysql # not compatible
query I rowsort label-7990
SELECT + + COUNT ( * ) - + 22 col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT + CAST( - 65 AS SIGNED ) * - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-7991
SELECT + CAST ( - 65 AS INTEGER ) * - - COUNT ( * )
----
-65

query I rowsort
SELECT + - 69 + + 41 * - 18 + - + 93 AS col1
----
-900

query I rowsort
SELECT + + 83 + 47 + - 53 AS col1
----
77

query I rowsort
SELECT - 86 * - 4 * - 89
----
-30616

query II rowsort
SELECT DISTINCT 21, 80 AS col2
----
21
80

query I rowsort
SELECT + - 9 + 34 + 77 + 16 + + - 81 * + 70 * + 70
----
-396782

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT - + 45 * - 48 * 89 * COUNT( * )
----
192240

skipif mysql # not compatible
query I rowsort label-7997
SELECT - + 45 * - 48 * 89 * COUNT ( * )
----
192240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7998
SELECT ALL + ( + 24 ) * - COALESCE ( - 88, - - 40 + + COALESCE ( 92, + 37 ), + COALESCE ( - + ( + COALESCE ( 54, - 82, + 79 ) ), CAST( NULL AS SIGNED ) * 0 * + ( - 99 ) DIV 25 * + 69 - - 3, - 90 * 11 ) * - 6 - COALESCE ( - COUNT( * ), 12 ) ) + 40 * + 99 AS col1
----
6072

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + ( + 24 ) * - COALESCE ( - 88, - - 40 + + COALESCE ( 92, + 37 ), + COALESCE ( - + ( + COALESCE ( 54, - 82, + 79 ) ), CAST ( NULL AS INTEGER ) * 0 * + ( - 99 ) / 25 * + 69 - - 3, - 90 * 11 ) * - 6 - COALESCE ( - COUNT ( * ), 12 ) ) + 40 * + 99 AS col1
----
6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT + COUNT( * ) + - CASE - 97 WHEN + CASE - 43 WHEN + COUNT( * ) + - 74 + 1 * 31 + - - COUNT( DISTINCT + 13 ) + - + 47 THEN - 34 - + + 45 + + 37 * - 98 * 51 * + 7 * 24 * - + 65 WHEN - 7 * + 58 - 80 * COUNT( * ) THEN - 60 ELSE 5 END + 39 * 31 THEN + COALESCE ( + 60, 56 DIV MAX( DISTINCT - 42 ), - 8 ) - 99 DIV + 20 ELSE 34 * 75 END col1
----
-2549

skipif mysql # not compatible
query I rowsort label-7999
SELECT + COUNT ( * ) + - CASE - 97 WHEN + CASE - 43 WHEN + COUNT ( * ) + - 74 + 1 * 31 + - - COUNT ( DISTINCT + 13 ) + - + 47 THEN - 34 - + + 45 + + 37 * - 98 * 51 * + 7 * 24 * - + 65 WHEN - 7 * + 58 - 80 * COUNT ( * ) THEN - 60 ELSE 5 END + 39 * 31 THEN + COALESCE ( + 60, 56 / MAX ( DISTINCT - 42 ), - 8 ) - 99 / + 20 ELSE 34 * 75 END col1
----
-2549

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - 91 - - MAX( DISTINCT 34 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8000
SELECT - 91 - - MAX ( DISTINCT 34 ) AS col0
----
-57

query I rowsort
SELECT + 3 * - ( + 30 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT - ( + 93 ) * - + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT - ( + 93 ) * - + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL + COALESCE ( - MAX( - - 4 ), - 66 )
----
-4

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL + COALESCE ( - MAX ( - - 4 ), - 66 )
----
-4

query I rowsort
SELECT + 38 * - 71 * + 3 AS col1
----
-8094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8005
SELECT - 55 + + CAST( NULL AS SIGNED ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT - 55 + + CAST ( NULL AS INTEGER ) + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8006
SELECT ALL 32 DIV - 48 * - ( - NULLIF ( + + 22, - 80 + + + 16 ) ) * - 96 + + 88 - - 61 * ( 75 ) * + - 33 + + 28 + + COUNT( DISTINCT 9 )
----
-150858

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL 32 / - 48 * - ( - NULLIF ( + + 22, - 80 + + + 16 ) ) * - 96 + + 88 - - 61 * ( 75 ) * + - 33 + + 28 + + COUNT ( DISTINCT 9 )
----
-150858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8007
SELECT DISTINCT 0 DIV - + 41 + MIN( + ( - - 34 ) ) + - 90
----
-56

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT 0 / - + 41 + MIN ( + ( - - 34 ) ) + - 90
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8008
SELECT DISTINCT - COUNT( * ) DIV 78 + COUNT( + 34 ) + + 6, 28 col2
----
7
28

skipif mysql # not compatible
query II rowsort label-8008
SELECT DISTINCT - COUNT ( * ) / 78 + COUNT ( + 34 ) + + 6, 28 col2
----
7
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT + COALESCE ( - ( NULLIF ( 98, - COUNT( 58 ) ) ), + - 87 + + COUNT( * ) + + 6 )
----
-98

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + COALESCE ( - ( NULLIF ( 98, - COUNT ( 58 ) ) ), + - 87 + + COUNT ( * ) + + 6 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8010
SELECT ALL 13 DIV - + CAST( 14 AS SIGNED ) + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL 13 / - + CAST ( 14 AS INTEGER ) + 17 AS col1
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-8011
SELECT ( - 15 ), + 61 DIV + 27 AS col1
----
-15
2

skipif mysql # not compatible
query II rowsort label-8011
SELECT ( - 15 ), + 61 / + 27 AS col1
----
-15
2

query I rowsort
SELECT ALL + ( + + 14 ) col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - CASE 11 WHEN COUNT( * ) THEN NULL ELSE 86 END * - + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8013
SELECT - CASE 11 WHEN COUNT ( * ) THEN NULL ELSE 86 END * - + COUNT ( * ) AS col0
----
86

query II rowsort
SELECT - 77 + + - 78 AS col2, 15
----
-155
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8015
SELECT ( - 90 ) AS col0, 45 * + COUNT( DISTINCT + 24 ) AS col1
----
-90
45

skipif mysql # not compatible
query II rowsort label-8015
SELECT ( - 90 ) AS col0, 45 * + COUNT ( DISTINCT + 24 ) AS col1
----
-90
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT - 95 DIV + + 20 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8016
SELECT - 95 / + + 20 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT - COUNT( * ) * - + 47 + 81 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - COUNT ( * ) * - + 47 + 81 AS col2
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT + 80 DIV - 10 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT + 80 / - 10 AS col2
----
-8

query I rowsort
SELECT DISTINCT + 43 * - ( 68 ) col2
----
-2924

query I rowsort
SELECT DISTINCT 24 * + - 27 + + ( + - NULLIF ( + - 3, - + 70 * - ( 29 ) * + 38 ) )
----
-645

query II rowsort
SELECT - 41 * - 44 AS col0, ( 74 ) + - ( - 25 ) AS col0
----
1804
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8022
SELECT ALL + ( 92 ) AS col0, 78 DIV 62 AS col1
----
92
1

skipif mysql # not compatible
query II rowsort label-8022
SELECT ALL + ( 92 ) AS col0, 78 / 62 AS col1
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT + NULLIF ( CASE - 98 WHEN + - 20 * - 54 * + - 75 + - 29 + - - 22 + + CASE + - 32 WHEN - 95 THEN - 84 * + + 79 + 37 + + - 7 + 59 END THEN NULL WHEN + - COUNT( * ) * + 30 THEN - 95 + 12 + - CASE 5 WHEN NULLIF ( - NULLIF ( 2, 12 ), + 37 + + 8 ) THEN - 84 * + 79 + - COUNT( * ) ELSE NULL END + 72 * - 52 END, 70 + - 32 / + 82 ) * SUM( 77 ) + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + NULLIF ( CASE - 98 WHEN + - 20 * - 54 * + - 75 + - 29 + - - 22 + + CASE + - 32 WHEN - 95 THEN - 84 * + + 79 + 37 + + - 7 + 59 END THEN NULL WHEN + - COUNT ( * ) * + 30 THEN - 95 + 12 + - CASE 5 WHEN NULLIF ( - NULLIF ( 2, 12 ), + 37 + + 8 ) THEN - 84 * + 79 + - COUNT ( * ) ELSE NULL END + 72 * - 52 END, 70 + - 32 / + 82 ) * SUM ( 77 ) + 2 AS col2
----
NULL

query I rowsort
SELECT - + 0 + - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL + 36 - - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + 36 - - COUNT ( * ) AS col1
----
37

query I rowsort
SELECT + 76 * + 66 col2
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8027
SELECT + 45 * CAST( NULL AS SIGNED ), + 6 * - - 97 AS col2
----
NULL
582

skipif mysql # not compatible
query II rowsort label-8027
SELECT + 45 * CAST ( NULL AS INTEGER ), + 6 * - - 97 AS col2
----
NULL
582

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ( COUNT( * ) ) * - CASE - 63 WHEN + + 51 + - ( - COUNT( * ) ) THEN + 98 ELSE - ( - NULLIF ( + + 2, - + 1 * COUNT( * ) ) ) END
----
-2

skipif mysql # not compatible
query I rowsort label-8028
SELECT ( COUNT ( * ) ) * - CASE - 63 WHEN + + 51 + - ( - COUNT ( * ) ) THEN + 98 ELSE - ( - NULLIF ( + + 2, - + 1 * COUNT ( * ) ) ) END
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT - 68 + + + 3 + + COUNT( * ) + - - NULLIF ( + MIN( ALL + + 93 ), + 98 + - 50 ) * - COUNT( * ) + COUNT( + 23 ) + - 15 + + 93 * + + 3 + + CAST( NULL AS SIGNED ) + - 49 + 44 * + 87 * + - 4 * + 68 + 68 * 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 68 + + + 3 + + COUNT ( * ) + - - NULLIF ( + MIN ( ALL + + 93 ), + 98 + - 50 ) * - COUNT ( * ) + COUNT ( + 23 ) + - 15 + + 93 * + + 3 + + CAST ( NULL AS INTEGER ) + - 49 + 44 * + 87 * + - 4 * + 68 + 68 * 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT - 28 - - COUNT( * ) + - 50 + - 84 DIV 42 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - 28 - - COUNT ( * ) + - 50 + - 84 / 42 AS col2
----
-79

query I rowsort
SELECT + NULLIF ( + 99, + 34 ) * - 12 + - 1 + ( 46 ) + + 65 * + 63 AS col2
----
2952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT ALL + COALESCE ( + CAST( - + 1 AS SIGNED ), 25 * - - CASE + - 96 WHEN 42 / + - ( 45 ) THEN - - CAST( - 38 AS SIGNED ) END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL + COALESCE ( + CAST ( - + 1 AS INTEGER ), 25 * - - CASE + - 96 WHEN 42 / + - ( 45 ) THEN - - CAST ( - 38 AS INTEGER ) END ) AS col1
----
-1

query I rowsort
SELECT - 25 * - - 7 col1
----
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT + 34 + 57 DIV - + 46 + 69 - + 72 * NULLIF ( 67, - + 49 ) AS col0
----
-4722

skipif mysql # not compatible
query I rowsort label-8034
SELECT + 34 + 57 / - + 46 + 69 - + 72 * NULLIF ( 67, - + 49 ) AS col0
----
-4722

query I rowsort
SELECT ( - 63 ) + 27 * - 34 + - 45 AS col2
----
-1026

query I rowsort
SELECT - - ( - - 36 )
----
36

query I rowsort
SELECT - 28 * - ( 66 ) + 63
----
1911

query I rowsort
SELECT 51 + 5 * + 47 AS col0
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL + SUM( ALL + - 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + SUM ( ALL + - 96 ) AS col2
----
-96

query I rowsort
SELECT DISTINCT 91 + + - 64 + + - 32 AS col1
----
-5

query I rowsort
SELECT DISTINCT 3 + + - 30
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT ALL 26 + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL 26 + COUNT ( * )
----
27

query I rowsort
SELECT ALL 37 + - 29 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT CAST( NULL AS SIGNED ) * + - AVG ( + - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT CAST ( NULL AS INTEGER ) * + - AVG ( + - 25 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT COUNT( * ) * - + 74
----
-74

skipif mysql # not compatible
query I rowsort label-8045
SELECT COUNT ( * ) * - + 74
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT CAST( + 22 AS SIGNED ) * + 99 - - 32 * + MIN( DISTINCT - 24 ) * + 23 AS col0
----
-15486

skipif mysql # not compatible
query I rowsort label-8046
SELECT CAST ( + 22 AS INTEGER ) * + 99 - - 32 * + MIN ( DISTINCT - 24 ) * + 23 AS col0
----
-15486

onlyif mysql # DIV for integer division: 
query I rowsort label-8047
SELECT ( 87 ) + 28 DIV 84 * 45 * - 83
----
87

skipif mysql # not compatible
query I rowsort label-8047
SELECT ( 87 ) + 28 / 84 * 45 * - 83
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8048
SELECT + 93, - COUNT( * ) * - ( + + 98 ) AS col2
----
93
98

skipif mysql # not compatible
query II rowsort label-8048
SELECT + 93, - COUNT ( * ) * - ( + + 98 ) AS col2
----
93
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL - COUNT( - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - COUNT ( - 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - CASE - COUNT( * ) WHEN + 41 THEN NULL ELSE - 63 * + 91 END * - MAX( ALL - - 34 ) + COUNT( * ) * - 4
----
-194926

skipif mysql # not compatible
query I rowsort label-8050
SELECT - CASE - COUNT ( * ) WHEN + 41 THEN NULL ELSE - 63 * + 91 END * - MAX ( ALL - - 34 ) + COUNT ( * ) * - 4
----
-194926

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL - SUM( DISTINCT - + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL - SUM ( DISTINCT - + 11 )
----
11

query I rowsort
SELECT DISTINCT 89 + 86
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8053
SELECT ALL + 39 - + 60 * + 27 * COALESCE ( 16, + + 94 * - ( - + 44 ) * + CASE - + 14 WHEN - 56 THEN COUNT( * ) - + - 34 * + COUNT( * ) WHEN - + 11 THEN NULL END DIV + 23 * 40 + 5, + CASE - 88 WHEN - 1 THEN NULL WHEN 28 THEN NULL ELSE + 71 DIV - COUNT( * ) + 46 END * 39 )
----
-25881

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL + 39 - + 60 * + 27 * COALESCE ( 16, + + 94 * - ( - + 44 ) * + CASE - + 14 WHEN - 56 THEN COUNT ( * ) - + - 34 * + COUNT ( * ) WHEN - + 11 THEN NULL END / + 23 * 40 + 5, + CASE - 88 WHEN - 1 THEN NULL WHEN 28 THEN NULL ELSE + 71 / - COUNT ( * ) + 46 END * 39 )
----
-25881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8054
SELECT - 83 * + COUNT( * ) * - - 46 * + + 47 - - - 89 DIV COUNT( * ) AS col1
----
-179535

skipif mysql # not compatible
query I rowsort label-8054
SELECT - 83 * + COUNT ( * ) * - - 46 * + + 47 - - - 89 / COUNT ( * ) AS col1
----
-179535

query II rowsort
SELECT + 61, - 48 AS col0
----
61
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - MIN( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - MIN ( - 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT ALL - - CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8058
SELECT - COUNT( * ) * + CAST( SUM( + - 18 ) AS SIGNED ) * + - 8
----
-144

skipif mysql # not compatible
query I rowsort label-8058
SELECT - COUNT ( * ) * + CAST ( SUM ( + - 18 ) AS INTEGER ) * + - 8
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT - MAX( DISTINCT - - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8059
SELECT - MAX ( DISTINCT - - 45 )
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8060
SELECT ALL - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 27 col1
----
-27

query I rowsort
SELECT + + 71 col2
----
71

query I rowsort
SELECT ALL + 24 * + + 77 * + + ( + 59 ) AS col1
----
109032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8064
SELECT ALL + 13 DIV + 77 * + 21 * COALESCE ( + 15, 59 + + + 89, COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + 13 / + 77 * + 21 * COALESCE ( + 15, 59 + + + 89, COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT + - 24 * + 1 - - 10 + + + MIN( + 63 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-8065
SELECT + - 24 * + 1 - - 10 + + + MIN ( + 63 ) col2
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8066
SELECT ALL + - 98 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + - 98 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 36 * - 77
----
-2772

query I rowsort
SELECT 99 * + 26 AS col1
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - 59 * + - 10 + - 39 - - MIN( ALL + 33 ) AS col0
----
584

skipif mysql # not compatible
query I rowsort label-8069
SELECT - 59 * + - 10 + - 39 - - MIN ( ALL + 33 ) AS col0
----
584

query II rowsort
SELECT ALL 50 AS col2, + NULLIF ( - 72, - 41 ) col1
----
50
-72

query I rowsort
SELECT + 99 + ( - 54 ) * - + 59 AS col2
----
3285

query I rowsort
SELECT 76 + - + 55
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT + ( + - COUNT( ALL + 2 ) ), 54 AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-8073
SELECT + ( + - COUNT ( ALL + 2 ) ), 54 AS col0
----
-1
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8074
SELECT ALL - 78 AS col2, + COUNT( * )
----
-78
1

skipif mysql # not compatible
query II rowsort label-8074
SELECT ALL - 78 AS col2, + COUNT ( * )
----
-78
1

query I rowsort
SELECT + 26 + - 37
----
-11

query I rowsort
SELECT ALL + + 94 + ( - - 19 ) * - 78 * + 34 col2
----
-50294

query I rowsort
SELECT DISTINCT 74 + + + 11 * 50 AS col0
----
624

query I rowsort
SELECT ALL - COALESCE ( - + 88, - - 41 ) + - - 32 + 32 AS col1
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8079
SELECT 84 + - ( 3 ) * - 84, 27 DIV + + SUM( ALL + - 19 ) * COUNT( DISTINCT + + 90 ) - + 84 - - 49 + 51 * + + NULLIF ( - - 36, - 18 ) AS col1
----
336
1800

skipif mysql # not compatible
query II rowsort label-8079
SELECT 84 + - ( 3 ) * - 84, 27 / + + SUM ( ALL + - 19 ) * COUNT ( DISTINCT + + 90 ) - + 84 - - 49 + 51 * + + NULLIF ( - - 36, - 18 ) AS col1
----
336
1800

query I rowsort
SELECT ALL + 97 + - 41 + + 48
----
104

query I rowsort
SELECT DISTINCT + 88 + 34
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8082
SELECT COALESCE ( 32, + 49, - COUNT( * ) * 94 / - + 78 * + 62 * 37 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT COALESCE ( 32, + 49, - COUNT ( * ) * 94 / - + 78 * + 62 * 37 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL SUM( - - 90 ) + 5
----
95

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL SUM ( - - 90 ) + 5
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT COUNT( * ) + + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8084
SELECT COUNT ( * ) + + 11 AS col0
----
12

query I rowsort
SELECT NULLIF ( + ( - 79 ), - 2 - 59 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL MAX( ALL - 85 ) * + 39 + COUNT( * ) * - 54
----
-3369

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL MAX ( ALL - 85 ) * + 39 + COUNT ( * ) * - 54
----
-3369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL - NULLIF ( - + CAST( ( 11 ) AS SIGNED ), - 61 )
----
11

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - NULLIF ( - + CAST ( ( 11 ) AS INTEGER ), - 61 )
----
11

query II rowsort
SELECT ALL 12 * - 37 AS col2, ( 3 ) AS col1
----
-444
3

query I rowsort
SELECT 28 + 5
----
33

query I rowsort
SELECT + 36 * - 7
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8091
SELECT DISTINCT 42 DIV - MIN( DISTINCT + 77 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT 42 / - MIN ( DISTINCT + 77 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8092
SELECT + 82 DIV - COALESCE ( 10, ( - + 29 ) ) AS col1, ( - 81 ) col2
----
-8
-81

skipif mysql # not compatible
query II rowsort label-8092
SELECT + 82 / - COALESCE ( 10, ( - + 29 ) ) AS col1, ( - 81 ) col2
----
-8
-81

query I rowsort
SELECT DISTINCT + - 6 AS col0
----
-6

query I rowsort
SELECT ALL - 28 * 29 col0
----
-812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT CAST( - - 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-8095
SELECT CAST ( - - 48 AS INTEGER )
----
48

query I rowsort
SELECT ALL + ( - - 95 )
----
95

query II rowsort
SELECT DISTINCT - 84 * + NULLIF ( ( - 36 ), + 64 - + 68 / 3 ) AS col2, 82
----
3024
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT ALL + NULLIF ( - 82, + - 65 - + 92 * - - CAST( + COUNT( ALL + 95 ) AS SIGNED ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + NULLIF ( - 82, + - 65 - + 92 * - - CAST ( + COUNT ( ALL + 95 ) AS INTEGER ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT ALL 77 * - COUNT( * ) AS col0, 70
----
-77
70

skipif mysql # not compatible
query II rowsort label-8099
SELECT ALL 77 * - COUNT ( * ) AS col0, 70
----
-77
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT + 30 * ( - COUNT( * ) ) + 45
----
15

skipif mysql # not compatible
query I rowsort label-8100
SELECT + 30 * ( - COUNT ( * ) ) + 45
----
15

query I rowsort
SELECT ALL + + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT + + SUM( + CAST( + 78 AS SIGNED ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8102
SELECT + + SUM ( + CAST ( + 78 AS INTEGER ) ) AS col1
----
78

query I rowsort
SELECT ALL - 2 + 5 + + 64 + 80 * - + 46 AS col1
----
-3613

query II rowsort
SELECT - - 91 + + - 21 AS col0, 70
----
70
70

query I rowsort
SELECT - + ( + 16 ) + - 71 col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT + - 46 DIV + 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8106
SELECT + - 46 / + 38 col2
----
-1

query II rowsort
SELECT ALL 80 + + 95 - - + 8 * - - 81, - 51 AS col2
----
823
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT - COUNT( ALL + - 98 ) + 22
----
21

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT - COUNT ( ALL + - 98 ) + 22
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8109
SELECT - ( + 55 ) AS col2, CAST( NULL AS SIGNED ) + - - 49 AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-8109
SELECT - ( + 55 ) AS col2, CAST ( NULL AS INTEGER ) + - - 49 AS col2
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + - MIN( DISTINCT - 78 ) + MIN( 71 )
----
149

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + - MIN ( DISTINCT - 78 ) + MIN ( 71 )
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT - 46 * + + CAST( + + 24 AS SIGNED ) + 27
----
-1077

skipif mysql # not compatible
query I rowsort label-8111
SELECT - 46 * + + CAST ( + + 24 AS INTEGER ) + 27
----
-1077

query I rowsort
SELECT ALL ( - 35 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT - 56 * + 75
----
-4200

query I rowsort
SELECT ALL + 1 + + ( 3 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8115
SELECT + COALESCE ( + + 45, 68 * - - 76 DIV - + COALESCE ( + 75, 22, + - SUM( DISTINCT + 17 ) ) ) - - + 51 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8115
SELECT + COALESCE ( + + 45, 68 * - - 76 / - + COALESCE ( + 75, 22, + - SUM ( DISTINCT + 17 ) ) ) - - + 51 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - ( CASE - COUNT( * ) WHEN - 45 THEN NULL WHEN - + COALESCE ( - 99, - 40 ) THEN 25 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT - ( CASE - COUNT ( * ) WHEN - 45 THEN NULL WHEN - + COALESCE ( - 99, - 40 ) THEN 25 END ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT - 96 DIV COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 96 / COUNT ( * ) AS col1
----
-96

query I rowsort
SELECT - 2 * + + 16
----
-32

query I rowsort
SELECT ALL COALESCE ( - 87, + 79 * - 46 - - 40, + + ( 52 ) ) AS col0
----
-87

query I rowsort
SELECT ALL ( 31 ) AS col2
----
31

query I rowsort
SELECT ALL ( - - 21 )
----
21

query I rowsort
SELECT DISTINCT ( + - 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT DISTINCT + 84 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + 84 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8124
SELECT ALL + COUNT( * ) * 99 DIV + + 24 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + COUNT ( * ) * 99 / + + 24 AS col0
----
4

query I rowsort
SELECT - 42 * - 0 * + 99 AS col2
----
0

query I rowsort
SELECT - 31 * - 4 + 75
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT CAST( + 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-8127
SELECT CAST ( + 5 AS INTEGER )
----
5

query I rowsort
SELECT ALL - 39 * + - 5 AS col0
----
195

query I rowsort
SELECT - 6 * 97
----
-582

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8130
SELECT + 12 * + + CAST( + + 64 AS SIGNED ) AS col0, ( + 60 ) AS col2
----
768
60

skipif mysql # not compatible
query II rowsort label-8130
SELECT + 12 * + + CAST ( + + 64 AS INTEGER ) AS col0, ( + 60 ) AS col2
----
768
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT - MAX( ALL 39 ) DIV ( + + 52 ) * + + 38 + + 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8131
SELECT - MAX ( ALL 39 ) / ( + + 52 ) * + + 38 + + 86 AS col1
----
86

query I rowsort
SELECT ALL + ( + - 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT - 59 + + 80 * ( COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-8133
SELECT - 59 + + 80 * ( COUNT ( * ) )
----
21

query I rowsort
SELECT + ( + + 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT - 76 * - - 43 * + CAST( - 21 AS SIGNED ) * - 21 * - + ( 50 ) AS col2
----
72059400

skipif mysql # not compatible
query I rowsort label-8135
SELECT - 76 * - - 43 * + CAST ( - 21 AS INTEGER ) * - 21 * - + ( 50 ) AS col2
----
72059400

query I rowsort
SELECT DISTINCT - - 57 * + 27
----
1539

query I rowsort
SELECT NULLIF ( + 71, + 37 + + 9 ) * - ( - + 74 ) - + ( + + 18 ) AS col2
----
5236

query I rowsort
SELECT + + 86 * + - COALESCE ( 31, + 61 )
----
-2666

query I rowsort
SELECT + 27 * 1 * 85 * - 17 + - 89
----
-39104

query I rowsort
SELECT ALL + CASE + 15 WHEN 40 THEN 20 * - 8 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT ALL + 87 * ( + - CAST( NULL AS SIGNED ) ) + + CASE - - 46 WHEN COALESCE ( + CAST( ( + 82 ) AS SIGNED ), + 6 ) THEN NULL ELSE 47 END / - AVG ( + ( + 82 ) ) + - 33 - - - COUNT( * ) / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + 87 * ( + - CAST ( NULL AS INTEGER ) ) + + CASE - - 46 WHEN COALESCE ( + CAST ( ( + 82 ) AS INTEGER ), + 6 ) THEN NULL ELSE 47 END / - AVG ( + ( + 82 ) ) + - 33 - - - COUNT ( * ) / + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT ALL - CAST( NULL AS SIGNED ) / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - CAST ( NULL AS INTEGER ) / - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT MAX( - + 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8143
SELECT MAX ( - + 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT + + 36 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT + + 36 / 63
----
0

query I rowsort
SELECT + + 87 * + NULLIF ( + 55, 86 ) + + + 3
----
4788

query II rowsort
SELECT + 81 * - - ( - - 73 ), 26 AS col2
----
5913
26

query I rowsort
SELECT + NULLIF ( - 33, + + 79 ) * 6 + - 36 - + 62 AS col0
----
-296

query I rowsort
SELECT ALL 25 * - 46
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT 69 * + MAX( - 29 ) * - + COUNT( * ) + 91 AS col2
----
2092

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT 69 * + MAX ( - 29 ) * - + COUNT ( * ) + 91 AS col2
----
2092

query I rowsort
SELECT DISTINCT + + 73 col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8151
SELECT ALL - 86 * - - 3 * COALESCE ( 0, + 79 * - ( - - 65 ) DIV + NULLIF ( + + ( MAX( ALL - - CAST( NULL AS SIGNED ) ) ), - ( 64 ) + - 63 + - 30 ), - + COUNT( * ) ) + + + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL - 86 * - - 3 * COALESCE ( 0, + 79 * - ( - - 65 ) / + NULLIF ( + + ( MAX ( ALL - - CAST ( NULL AS INTEGER ) ) ), - ( 64 ) + - 63 + - 30 ), - + COUNT ( * ) ) + + + 7 AS col1
----
7

query I rowsort
SELECT DISTINCT + ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT ( + 66 ) * - + 73 + + 21 + + - ( 78 ) - + COUNT( * ) * + - 57 AS col1
----
-4818

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT ( + 66 ) * - + 73 + + 21 + + - ( 78 ) - + COUNT ( * ) * + - 57 AS col1
----
-4818

query III rowsort
SELECT DISTINCT - 57, + 95 + 39 col0, + 76 + - 63 AS col2
----
-57
134
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT SUM( DISTINCT + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-8155
SELECT SUM ( DISTINCT + 31 )
----
31

query I rowsort
SELECT - 2 - 6
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT MIN( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT MIN ( 45 )
----
45

query II rowsort
SELECT ALL COALESCE ( - 32, + 94 + 28 ) AS col2, 84 AS col0
----
-32
84

query I rowsort
SELECT + 73 + - - ( + 98 ) AS col1
----
171

query I rowsort
SELECT + 49 + + 48
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT DISTINCT MIN( DISTINCT + 73 ) AS col1, - 72 * 61 + - 30 AS col0
----
73
-4422

skipif mysql # not compatible
query II rowsort label-8161
SELECT DISTINCT MIN ( DISTINCT + 73 ) AS col1, - 72 * 61 + - 30 AS col0
----
73
-4422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT - 43 + - 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT - 43 + - 49 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 49 * 29
----
1421

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8164
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-8164
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 83
----
NULL
83

query I rowsort
SELECT DISTINCT 66 * - ( - - 12 ) AS col0
----
-792

query II rowsort
SELECT ALL 91 AS col2, + 7 AS col2
----
91
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT COUNT( * ) * + + 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8167
SELECT COUNT ( * ) * + + 98 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT 38 + - COUNT( + 48 ) + 39 + - 48 * + COUNT( * ) - - 77 + + + 57 - ( - 95 ) - + 1 * + - 36 * + - 54 AS col0
----
-1687

skipif mysql # not compatible
query I rowsort label-8168
SELECT 38 + - COUNT ( + 48 ) + 39 + - 48 * + COUNT ( * ) - - 77 + + + 57 - ( - 95 ) - + 1 * + - 36 * + - 54 AS col0
----
-1687

query I rowsort
SELECT ALL - 7 * - 23
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT COUNT( * ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT COUNT ( * ) / 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT 44 DIV - 9 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8171
SELECT 44 / - 9 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT 47 + + - 66 - 9 - COUNT( * ) + - CAST( NULL AS SIGNED ) * 47 * + - 95 - - 11 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT 47 + + - 66 - 9 - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 47 * + - 95 - - 11 * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 51 AS col1, 40 AS col0
----
51
40

query I rowsort
SELECT 28 * - + 8
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT 34 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT 34 / - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 9, 9 col1
----
9
9

query II rowsort
SELECT ALL - 82, 2 AS col0
----
-82
2

query I rowsort
SELECT DISTINCT - + 21 * - 5 * - 94 AS col1
----
-9870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8179
SELECT DISTINCT - CASE 71 WHEN + CAST( + + 2 AS SIGNED ) THEN NULL WHEN ( 62 ) + + MAX( ALL + 89 ) * - 40 + + + COUNT( * ) * + 21 THEN + 73 * - - 7 END + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - CASE 71 WHEN + CAST ( + + 2 AS INTEGER ) THEN NULL WHEN ( 62 ) + + MAX ( ALL + 89 ) * - 40 + + + COUNT ( * ) * + 21 THEN + 73 * - - 7 END + 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8180
SELECT DISTINCT + 9 + COUNT( * ) AS col2, 77 AS col2
----
10
77

skipif mysql # not compatible
query II rowsort label-8180
SELECT DISTINCT + 9 + COUNT ( * ) AS col2, 77 AS col2
----
10
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT 2 * - 7 * + + 66 DIV - - COUNT( * ) + - + 98 + - 17 + + - 23 + + 94 AS col1
----
-968

skipif mysql # not compatible
query I rowsort label-8181
SELECT 2 * - 7 * + + 66 / - - COUNT ( * ) + - + 98 + - 17 + + - 23 + + 94 AS col1
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL - - 54 + + + 72 + COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - - 54 + + + 72 + COUNT ( * )
----
127

query II rowsort
SELECT 94 AS col2, + 41 AS col2
----
94
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT - 58 DIV - - COALESCE ( + + 31, - + 42 * - 66 + 70 ) + + - ( - - 36 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8184
SELECT - 58 / - - COALESCE ( + + 31, - + 42 * - 66 + 70 ) + + - ( - - 36 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT + - COUNT( * ) + + 82
----
81

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + - COUNT ( * ) + + 82
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8186
SELECT ALL - - CAST( - 23 AS SIGNED ) * + NULLIF ( - - MAX( DISTINCT - 16 ), - + 98 ) col0
----
368

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - - CAST ( - 23 AS INTEGER ) * + NULLIF ( - - MAX ( DISTINCT - 16 ), - + 98 ) col0
----
368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT SUM( DISTINCT - + 4 ) + 67 DIV + + 39
----
-3

skipif mysql # not compatible
query I rowsort label-8187
SELECT SUM ( DISTINCT - + 4 ) + 67 / + + 39
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8188
SELECT 41 + MAX( - 31 ) + - - 25 + + CAST( + CASE - 91 WHEN 44 - + + CASE + - 92 WHEN AVG ( 83 ) THEN NULL ELSE + - 70 END THEN + 26 ELSE 2 * 69 + + + CAST( NULL AS SIGNED ) + 68 * + MAX( DISTINCT + 84 ) END AS SIGNED ) * 96 AS col2, + 24 * + 60 - - ( - ( + - CASE + 75 WHEN + 97 * + MIN( DISTINCT 97 ) THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) ELSE NULL END ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8188
SELECT 41 + MAX ( - 31 ) + - - 25 + + CAST ( + CASE - 91 WHEN 44 - + + CASE + - 92 WHEN AVG ( 83 ) THEN NULL ELSE + - 70 END THEN + 26 ELSE 2 * 69 + + + CAST ( NULL AS INTEGER ) + 68 * + MAX ( DISTINCT + 84 ) END AS INTEGER ) * 96 AS col2, + 24 * + 60 - - ( - ( + - CASE + 75 WHEN + 97 * + MIN ( DISTINCT 97 ) THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END ) ) AS col0
----
NULL
NULL

query II rowsort
SELECT + + 28 AS col1, 83 + - - 50 + - 39 + + - 14
----
28
80

query I rowsort
SELECT ALL + 94 + 13 AS col0
----
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8191
SELECT 13 * + CAST( NULL AS DECIMAL ) * 45 + 8 * - + CAST( ( + 64 ) AS DECIMAL ) * + 55 * + SUM( 44 ) - NULLIF ( + 70, + 21 ) * + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT 13 * + CAST ( NULL AS REAL ) * 45 + 8 * - + CAST ( ( + 64 ) AS REAL ) * + 55 * + SUM ( 44 ) - NULLIF ( + 70, + 21 ) * + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT DISTINCT COUNT( * ) DIV SUM( + + 21 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT COUNT ( * ) / SUM ( + + 21 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + 28 + - 15 + 80 * + MIN( ALL - 5 ) * + COUNT( * ) col0
----
-387

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 28 + - 15 + 80 * + MIN ( ALL - 5 ) * + COUNT ( * ) col0
----
-387

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT ALL 98 DIV + - 78
----
-1

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL 98 / + - 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + CASE - 98 WHEN - 85 * 36 THEN NULL WHEN + NULLIF ( 65, - COUNT( * ) ) THEN - - 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT + CASE - 98 WHEN - 85 * 36 THEN NULL WHEN + NULLIF ( 65, - COUNT ( * ) ) THEN - - 10 END AS col0
----
NULL

query I rowsort
SELECT - - 30 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT MIN( DISTINCT 9 ) + - + 13
----
-4

skipif mysql # not compatible
query I rowsort label-8197
SELECT MIN ( DISTINCT 9 ) + - + 13
----
-4

query I rowsort
SELECT ALL 61 * 72 col0
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT 96 - + + ( + 83 ) + - + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT 96 - + + ( + 83 ) + - + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT ALL 8 * - NULLIF ( - 68, + 22 )
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT NULLIF ( - COUNT( * ), 91 ) - - COUNT( * ) * - + 65 + - 88
----
-154

skipif mysql # not compatible
query I rowsort label-8201
SELECT NULLIF ( - COUNT ( * ), 91 ) - - COUNT ( * ) * - + 65 + - 88
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT COUNT( * ) * - 66, - 86 + + - 47 + + 85 col0
----
-66
-48

skipif mysql # not compatible
query II rowsort label-8202
SELECT COUNT ( * ) * - 66, - 86 + + - 47 + + 85 col0
----
-66
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8203
SELECT DISTINCT COALESCE ( - CASE + - 72 WHEN - 37 THEN - 18 * 64 END, + 99 * + COUNT( * ) ) DIV COUNT( * ) * + 95 AS col1
----
9405

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT COALESCE ( - CASE + - 72 WHEN - 37 THEN - 18 * 64 END, + 99 * + COUNT ( * ) ) / COUNT ( * ) * + 95 AS col1
----
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT NULLIF ( - + COUNT( DISTINCT + 23 ), COUNT( * ) ) * + NULLIF ( + 10, + 50 ) * - - ( - 68 ) + + 99 + + 40 - COALESCE ( 54, - 16 ) * + ( - + CASE - + COUNT( * ) WHEN - AVG ( 26 ) THEN NULL WHEN - 68 + 23 THEN ( - 44 ) * + 13 WHEN ( + 17 ) + + 84 + + 7 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT NULLIF ( - + COUNT ( DISTINCT + 23 ), COUNT ( * ) ) * + NULLIF ( + 10, + 50 ) * - - ( - 68 ) + + 99 + + 40 - COALESCE ( 54, - 16 ) * + ( - + CASE - + COUNT ( * ) WHEN - AVG ( 26 ) THEN NULL WHEN - 68 + 23 THEN ( - 44 ) * + 13 WHEN ( + 17 ) + + 84 + + 7 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 76 * + - 70 AS col1
----
-5320

query I rowsort
SELECT 53 - - + 88 + + 0 + - ( 98 ) + - 92
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT DISTINCT ( - COALESCE ( + CAST( NULL AS SIGNED ), - + 61 * - 13 ) ) + + 84 AS col1
----
-709

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT ( - COALESCE ( + CAST ( NULL AS INTEGER ), - + 61 * - 13 ) ) + + 84 AS col1
----
-709

query II rowsort
SELECT ALL + + 56 + + 56 AS col0, - 13 AS col0
----
112
-13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8209
SELECT CAST( NULL AS DECIMAL ) * + NULLIF ( - 24, CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT CAST ( NULL AS REAL ) * + NULLIF ( - 24, CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT ALL CAST( NULL AS SIGNED ) + + 74 + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL CAST ( NULL AS INTEGER ) + + 74 + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL 52 * COUNT( * ) + - 60 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL 52 * COUNT ( * ) + - 60 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + 44 * + - SUM( ALL + 33 ) + 23
----
-1429

skipif mysql # not compatible
query I rowsort label-8212
SELECT + 44 * + - SUM ( ALL + 33 ) + 23
----
-1429

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL - SUM( ALL ( + 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - SUM ( ALL ( + 56 ) )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8214
SELECT + 56 DIV + MIN( ALL + - ( 16 ) ) + + - 38 + + COUNT( * ) + COALESCE ( 54, - MAX( 41 ) - 46 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 56 / + MIN ( ALL + - ( 16 ) ) + + - 38 + + COUNT ( * ) + COALESCE ( 54, - MAX ( 41 ) - 46 ) AS col1
----
14

query I rowsort
SELECT - 10 * 41
----
-410

query I rowsort
SELECT DISTINCT - - 28 col0
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8217
SELECT ALL + 65 + + + 45 AS col2, 42 DIV CAST( - 68 AS SIGNED ) AS col2
----
110
0

skipif mysql # not compatible
query II rowsort label-8217
SELECT ALL + 65 + + + 45 AS col2, 42 / CAST ( - 68 AS INTEGER ) AS col2
----
110
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT - ( + 61 ) AS col1, COUNT( * ) * + - MAX( 79 ) * + 70 + 29 + - 70 - 27 AS col1
----
-61
-5598

skipif mysql # not compatible
query II rowsort label-8218
SELECT - ( + 61 ) AS col1, COUNT ( * ) * + - MAX ( 79 ) * + 70 + 29 + - 70 - 27 AS col1
----
-61
-5598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT ALL - 73 * + 1 + - 10 - + + 58 * - COUNT( 29 ) + - + 91 + ( CAST( NULL AS SIGNED ) ) / - + 96 + - - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL - 73 * + 1 + - 10 - + + 58 * - COUNT ( 29 ) + - + 91 + ( CAST ( NULL AS INTEGER ) ) / - + 96 + - - 63 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + CASE + - 88 WHEN - 90 THEN + 5 WHEN + 64 + + 46 THEN NULL END - - - 45 * 48 * + 17 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT + CASE + - 88 WHEN - 90 THEN + 5 WHEN + 64 + + 46 THEN NULL END - - - 45 * 48 * + 17 * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT 68 * - SUM( + + 80 ) + - - ( - - 12 ) * + 15 * + + 3 AS col1, 7
----
-4900
7

skipif mysql # not compatible
query II rowsort label-8222
SELECT 68 * - SUM ( + + 80 ) + - - ( - - 12 ) * + 15 * + + 3 AS col1, 7
----
-4900
7

query I rowsort
SELECT ( + 21 ) AS col0
----
21

query II rowsort
SELECT + - ( - 91 ), 24 AS col1
----
91
24

query I rowsort
SELECT ALL - 21 - - - 59 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL - ( - CASE AVG ( 52 ) WHEN - - 19 THEN + + 18 + 66 * + - 64 WHEN - 90 THEN + - SUM( ALL - 88 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - ( - CASE AVG ( 52 ) WHEN - - 19 THEN + + 18 + 66 * + - 64 WHEN - 90 THEN + - SUM ( ALL - 88 ) END ) AS col0
----
NULL

query II rowsort
SELECT ALL - 48, 16 + + 69 col2
----
-48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT DISTINCT MIN( ALL - 43 ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT MIN ( ALL - 43 ) col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT - 2 DIV + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT - 2 / + 17 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL ( + + 14 ) DIV - + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL ( + + 14 ) / - + 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT DISTINCT 27 AS col2, - COUNT( * ) AS col2
----
27
-1

skipif mysql # not compatible
query II rowsort label-8231
SELECT DISTINCT 27 AS col2, - COUNT ( * ) AS col2
----
27
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT - COUNT( * ), + 13 AS col2
----
-1
13

skipif mysql # not compatible
query II rowsort label-8232
SELECT - COUNT ( * ), + 13 AS col2
----
-1
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - 7 + - 33 + - - 9 AS col1, - ( + COUNT( * ) ) + - 27 AS col2
----
-31
-28

skipif mysql # not compatible
query II rowsort label-8233
SELECT - 7 + - 33 + - - 9 AS col1, - ( + COUNT ( * ) ) + - 27 AS col2
----
-31
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8234
SELECT - 66 DIV - + 94 * 17 * + MAX( + 61 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT - 66 / - + 94 * 17 * + MAX ( + 61 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8235
SELECT - 84 + - CASE - NULLIF ( - + ( - 29 ), - NULLIF ( 78, ( - COUNT( * ) ) ) ) WHEN - CAST( + 12 AS SIGNED ) THEN NULL WHEN 50 THEN NULL ELSE + 72 * 29 * - - 20 END - - 74 + + 92 AS col0
----
-41678

skipif mysql # not compatible
query I rowsort label-8235
SELECT - 84 + - CASE - NULLIF ( - + ( - 29 ), - NULLIF ( 78, ( - COUNT ( * ) ) ) ) WHEN - CAST ( + 12 AS INTEGER ) THEN NULL WHEN 50 THEN NULL ELSE + 72 * 29 * - - 20 END - - 74 + + 92 AS col0
----
-41678

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8236
SELECT DISTINCT COALESCE ( - 51, + 12 DIV + NULLIF ( 50, + 16 ), MAX( ALL 12 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT COALESCE ( - 51, + 12 / + NULLIF ( 50, + 16 ), MAX ( ALL 12 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL 48 + + MAX( - - 55 ) * + 4
----
268

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL 48 + + MAX ( - - 55 ) * + 4
----
268

query II rowsort
SELECT 61 AS col1, + 73 AS col0
----
61
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8239
SELECT DISTINCT - ( MAX( ALL + 41 ) ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT - ( MAX ( ALL + 41 ) ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL 0 + 96 + + + COUNT( * ) + + 45 + 87 AS col1
----
229

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL 0 + 96 + + + COUNT ( * ) + + 45 + 87 AS col1
----
229

onlyif mysql # aggregate syntax: 
query II rowsort label-8241
SELECT + 6 + - MIN( - 93 ), + 40 + - 87 * + 6 col1
----
99
-482

skipif mysql # not compatible
query II rowsort label-8241
SELECT + 6 + - MIN ( - 93 ), + 40 + - 87 * + 6 col1
----
99
-482

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT 70 * + COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT 70 * + COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + CASE 97 WHEN + + COALESCE ( - 68, ( + NULLIF ( - + 85, - 37 ) ) ) THEN NULL ELSE + 91 * - - 96 END + - MIN( ALL - - 44 ) AS col2
----
8692

skipif mysql # not compatible
query I rowsort label-8243
SELECT + CASE 97 WHEN + + COALESCE ( - 68, ( + NULLIF ( - + 85, - 37 ) ) ) THEN NULL ELSE + 91 * - - 96 END + - MIN ( ALL - - 44 ) AS col2
----
8692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8244
SELECT NULLIF ( 93, + 98 ), + COALESCE ( - 55, 43 * + CAST( - 31 AS SIGNED ) * - 78 - - - MIN( + 53 ), - - ( - - 80 ) ) AS col0
----
93
-55

skipif mysql # not compatible
query II rowsort label-8244
SELECT NULLIF ( 93, + 98 ), + COALESCE ( - 55, 43 * + CAST ( - 31 AS INTEGER ) * - 78 - - - MIN ( + 53 ), - - ( - - 80 ) ) AS col0
----
93
-55

query I rowsort
SELECT ALL NULLIF ( + 11, 62 ) col0
----
11

query I rowsort
SELECT ALL 55 + - - 74 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT + + COUNT( * ) + - COUNT( DISTINCT 74 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT + + COUNT ( * ) + - COUNT ( DISTINCT 74 ) AS col2
----
0

query I rowsort
SELECT + - 79 * 2
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - - 74 + MIN( DISTINCT + + 66 ) - 46 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8249
SELECT - - 74 + MIN ( DISTINCT + + 66 ) - 46 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT ALL - 68 DIV 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - 68 / 39 AS col2
----
-1

query II rowsort
SELECT ALL + - 17 col2, - 48
----
-17
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8252
SELECT + 91, CAST( NULL AS DECIMAL ) * 38 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8252
SELECT + 91, CAST ( NULL AS REAL ) * 38 AS col2
----
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT DISTINCT - 24 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - 24 / 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT DISTINCT + 91 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + 91 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT - SUM( + 59 ) * + 43
----
-2537

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT - SUM ( + 59 ) * + 43
----
-2537

query II rowsort
SELECT - + 47 * 99 * - 38, 79 * - 61 AS col2
----
176814
-4819

query I rowsort
SELECT ALL + ( 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8259
SELECT + + 30 DIV COUNT( ALL - 87 ) * - 87 + + 98 + - 11, + 67 AS col0
----
-2523
67

skipif mysql # not compatible
query II rowsort label-8259
SELECT + + 30 / COUNT ( ALL - 87 ) * - 87 + + 98 + - 11, + 67 AS col0
----
-2523
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT + - CASE - 97 WHEN + COUNT( * ) THEN NULL WHEN + - CASE 63 WHEN - 22 * - 72 - - AVG ( DISTINCT + 80 ) + COUNT( * ) + + 32 * - + 76 * + 73 + - + 76 THEN - COALESCE ( - 68, + COUNT( * ) * + 6 / + CAST( + 14 AS SIGNED ) * + 97 ) WHEN + + 70 THEN + + 91 + + 21 * 65 END THEN - 8 WHEN + 7 * - - 31 / + 22 + 67 THEN NULL END * - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT + - CASE - 97 WHEN + COUNT ( * ) THEN NULL WHEN + - CASE 63 WHEN - 22 * - 72 - - AVG ( DISTINCT + 80 ) + COUNT ( * ) + + 32 * - + 76 * + 73 + - + 76 THEN - COALESCE ( - 68, + COUNT ( * ) * + 6 / + CAST ( + 14 AS INTEGER ) * + 97 ) WHEN + + 70 THEN + + 91 + + 21 * 65 END THEN - 8 WHEN + 7 * - - 31 / + 22 + 67 THEN NULL END * - 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT + - 61 + MAX( ALL COALESCE ( + 65, - - 42 * - - 68 DIV - - 99 ) )
----
4

skipif mysql # not compatible
query I rowsort label-8261
SELECT + - 61 + MAX ( ALL COALESCE ( + 65, - - 42 * - - 68 / - - 99 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - - 66 * + SUM( 69 ) + + 60
----
4614

skipif mysql # not compatible
query I rowsort label-8262
SELECT - - 66 * + SUM ( 69 ) + + 60
----
4614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8263
SELECT ALL - - 45 DIV + COUNT( * ) * + - ( + COUNT( * ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - - 45 / + COUNT ( * ) * + - ( + COUNT ( * ) ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + + CASE - + 22 WHEN COUNT( ALL ( + - 26 ) ) THEN NULL ELSE 74 END * + 6 * + ( + 51 ) + 32
----
22676

skipif mysql # not compatible
query I rowsort label-8264
SELECT + + CASE - + 22 WHEN COUNT ( ALL ( + - 26 ) ) THEN NULL ELSE 74 END * + 6 * + ( + 51 ) + 32
----
22676

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL + MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + MAX ( 45 )
----
45

query I rowsort
SELECT - 26 * - 91
----
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL + CASE SUM( DISTINCT - - ( - 73 ) ) WHEN - 36 THEN - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + CASE SUM ( DISTINCT - - ( - 73 ) ) WHEN - 36 THEN - 88 END
----
NULL

query II rowsort
SELECT - 20 + 79 col1, + 69 AS col0
----
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL + COUNT( - 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL + COUNT ( - 2 ) AS col1
----
1

query I rowsort
SELECT + 90 * - + 34
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT - MIN( DISTINCT 37 ) + + 99
----
62

skipif mysql # not compatible
query I rowsort label-8271
SELECT - MIN ( DISTINCT 37 ) + + 99
----
62

query I rowsort
SELECT DISTINCT + 3 * ( 79 ) AS col1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT - MAX( - 84 ) * + - 15 + + COUNT( * ) + - 82 AS col0
----
-1341

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - MAX ( - 84 ) * + - 15 + + COUNT ( * ) + - 82 AS col0
----
-1341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT - 60 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 60 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 28 * - 84 * - 86 + + 14
----
202286

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT + ( - 20 ) * - 24 * + COUNT( * ) + 54 + - 36 AS col0
----
498

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + ( - 20 ) * - 24 * + COUNT ( * ) + 54 + - 36 AS col0
----
498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT DISTINCT CAST( + - 6 AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT CAST ( + - 6 AS INTEGER ) AS col2
----
-6

query I rowsort
SELECT - NULLIF ( - 27, - - AVG ( - ( 30 ) ) * + 66 ) * 9 + - ( - 1 ) + + CASE - + 39 WHEN + 50 THEN + 51 ELSE NULL END + 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8279
SELECT ALL + MIN( DISTINCT + ( - - 30 ) ) + - + 32 + 76 + - 25 * 56 DIV + 91 + + 87 AS col0, + MAX( - + 9 ) AS col0
----
146
-9

skipif mysql # not compatible
query II rowsort label-8279
SELECT ALL + MIN ( DISTINCT + ( - - 30 ) ) + - + 32 + 76 + - 25 * 56 / + 91 + + 87 AS col0, + MAX ( - + 9 ) AS col0
----
146
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8280
SELECT DISTINCT CAST( - CASE - - 53 WHEN - 61 THEN + + CAST( 12 AS SIGNED ) / - CAST( NULL AS DECIMAL ) * + + 36 WHEN - - 22 * + 44 + ( - 40 ) + 61 THEN NULL ELSE 41 END AS SIGNED ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT CAST ( - CASE - - 53 WHEN - 61 THEN + + CAST ( 12 AS INTEGER ) / - CAST ( NULL AS REAL ) * + + 36 WHEN - - 22 * + 44 + ( - 40 ) + 61 THEN NULL ELSE 41 END AS INTEGER ) AS col2
----
-41

query I rowsort
SELECT - 94 - - - 68 + - ( 61 ) AS col0
----
-223

query I rowsort
SELECT + 0 * + 36 * + 37
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT ALL - 41 DIV 31
----
-1

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL - 41 / 31
----
-1

query I rowsort
SELECT ALL + 86 + 8 + 62
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT ALL CAST( + 76 AS SIGNED ) + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL CAST ( + 76 AS INTEGER ) + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - COUNT( * ) * + COUNT( + + 49 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8286
SELECT - COUNT ( * ) * + COUNT ( + + 49 ) AS col0
----
-1

query I rowsort
SELECT ALL + ( + 16 ) * 69 * - + 35 + 95 * 11
----
-37595

query II rowsort
SELECT DISTINCT + + 43 - + - 66 * - + 49 * + + 12 AS col1, + 0 + - - 18 + + 21 * - 46
----
-38765
-948

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT - + 57 * + + MIN( ALL 26 ) / + + COUNT( * ) + 33 / + 19 + - + 77 * - CASE 39 WHEN + 70 * 19 - 33 THEN 35 END - + - 3 col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8289
SELECT - + 57 * + + MIN ( ALL 26 ) / + + COUNT ( * ) + 33 / + 19 + - + 77 * - CASE 39 WHEN + 70 * 19 - 33 THEN 35 END - + - 3 col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT 82 * - ( 72 ) * + COUNT( * ) + NULLIF ( + 7, - 6 * CASE + 8 WHEN 51 * 3 THEN - + NULLIF ( 73, + + 43 ) * - 96 END ) + + CASE - 12 WHEN - COUNT( * ) * + + 5 THEN + 63 - + + 85 WHEN + + 10 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT 82 * - ( 72 ) * + COUNT ( * ) + NULLIF ( + 7, - 6 * CASE + 8 WHEN 51 * 3 THEN - + NULLIF ( 73, + + 43 ) * - 96 END ) + + CASE - 12 WHEN - COUNT ( * ) * + + 5 THEN + 63 - + + 85 WHEN + + 10 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT + - 41 DIV + 89 + - MIN( 37 ) * + 59 + ( + 75 ) + + 98 + - ( - - ( - + COUNT( * ) ) )
----
-2009

skipif mysql # not compatible
query I rowsort label-8292
SELECT + - 41 / + 89 + - MIN ( 37 ) * + 59 + ( + 75 ) + + 98 + - ( - - ( - + COUNT ( * ) ) )
----
-2009

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT + 47 * + + COUNT( - - 78 ) + + 50 AS col0, 74
----
97
74

skipif mysql # not compatible
query II rowsort label-8293
SELECT + 47 * + + COUNT ( - - 78 ) + + 50 AS col0, 74
----
97
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT - 76 * - 72 + + CASE + COUNT( ALL + - 61 ) WHEN + - MAX( - NULLIF ( - 13, ( + 38 ) * - - 28 ) ) THEN NULL ELSE - + COUNT( * ) END AS col0
----
5471

skipif mysql # not compatible
query I rowsort label-8294
SELECT - 76 * - 72 + + CASE + COUNT ( ALL + - 61 ) WHEN + - MAX ( - NULLIF ( - 13, ( + 38 ) * - - 28 ) ) THEN NULL ELSE - + COUNT ( * ) END AS col0
----
5471

query I rowsort
SELECT DISTINCT + 69 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL + - MAX( 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + - MAX ( 54 )
----
-54

query I rowsort
SELECT DISTINCT + 63 * 83 AS col1
----
5229

query I rowsort
SELECT ALL - 30 * - + ( - 1 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT DISTINCT - 19 DIV - 19 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT - 19 / - 19 AS col1
----
1

query I rowsort
SELECT ALL - - CASE 92 WHEN 45 THEN NULL WHEN 61 THEN - 34 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - ( - 3 ) * ( + NULLIF ( 8, - 75 ) )
----
24

query I rowsort
SELECT 31 + 77 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT 2 DIV + - 12
----
0

skipif mysql # not compatible
query I rowsort label-8303
SELECT 2 / + - 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT 38 DIV - - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT 38 / - - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT 9 - 20 + + COALESCE ( 47, - + 79 * - - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-8305
SELECT 9 - 20 + + COALESCE ( 47, - + 79 * - - COUNT ( * ) )
----
36

query II rowsort
SELECT + 72, 9 AS col1
----
72
9

query II rowsort
SELECT 5 AS col1, - ( - - 86 )
----
5
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL ( + + SUM( - 75 ) ) + + COUNT( * ) * 70
----
-5

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL ( + + SUM ( - 75 ) ) + + COUNT ( * ) * 70
----
-5

query I rowsort
SELECT 21 * - 46
----
-966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT 28 DIV - 85 * + 16 * CASE + + 21 WHEN + - 50 THEN NULL WHEN + 32 THEN + COUNT( * ) - - 13 ELSE - 77 END col2
----
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT 28 / - 85 * + 16 * CASE + + 21 WHEN + - 50 THEN NULL WHEN + 32 THEN + COUNT ( * ) - - 13 ELSE - 77 END col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT ALL - CAST( NULL AS SIGNED ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL - CAST ( NULL AS INTEGER ) + 18
----
NULL

query I rowsort
SELECT DISTINCT 1 + + 40 + 82 col1
----
123

query I rowsort
SELECT DISTINCT - ( + 58 ) col0
----
-58

query I rowsort
SELECT ALL - 17 + - 79 * - + 62 * - 89
----
-435939

query I rowsort
SELECT 53 - + + 32
----
21

query I rowsort
SELECT 63 * 45 AS col2
----
2835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT - 98 * - + CAST( NULL AS SIGNED ) + 31 * + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT - 98 * - + CAST ( NULL AS INTEGER ) + 31 * + - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8318
SELECT - 50 AS col2, + CASE COALESCE ( - CAST( + 98 AS DECIMAL ), + CASE + 30 WHEN + 52 + + NULLIF ( + 69, COUNT( * ) * - COUNT( * ) ) THEN - - 26 * + AVG ( - 45 ) + NULLIF ( + - MIN( DISTINCT + 40 ), - - 95 - + MAX( 36 ) ) + 80 WHEN - 31 - + 43 THEN + 60 * - + 6 * + + CASE - 21 WHEN - 21 THEN + 48 ELSE - COUNT( * ) * + MIN( + 78 ) END END ) WHEN 75 THEN NULL WHEN NULLIF ( + 0, + 73 - COUNT( * ) ) THEN 80 ELSE NULL END * 12
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-8318
SELECT - 50 AS col2, + CASE COALESCE ( - CAST ( + 98 AS REAL ), + CASE + 30 WHEN + 52 + + NULLIF ( + 69, COUNT ( * ) * - COUNT ( * ) ) THEN - - 26 * + AVG ( - 45 ) + NULLIF ( + - MIN ( DISTINCT + 40 ), - - 95 - + MAX ( 36 ) ) + 80 WHEN - 31 - + 43 THEN + 60 * - + 6 * + + CASE - 21 WHEN - 21 THEN + 48 ELSE - COUNT ( * ) * + MIN ( + 78 ) END END ) WHEN 75 THEN NULL WHEN NULLIF ( + 0, + 73 - COUNT ( * ) ) THEN 80 ELSE NULL END * 12
----
-50
NULL

query I rowsort
SELECT ALL + 18 + - 20
----
-2

query I rowsort
SELECT ALL - 54 * + + 90 AS col2
----
-4860

query I rowsort
SELECT 53 + 78 col2
----
131

query I rowsort
SELECT ALL - 45 * 13
----
-585

query I rowsort
SELECT 62 + 82
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT ALL - + CASE - + 28 WHEN - COALESCE ( CAST( 44 AS SIGNED ), - 36 + 63, + 84 / - + CASE - - MAX( + 31 ) WHEN + 94 THEN 90 + - MAX( - NULLIF ( - - CASE + 65 WHEN - 62 / - - 14 * + ( - 60 ) THEN 18 * + + 93 * - 84 * + 43 * - 88 + + + ( - - 14 ) END, + - 25 ) ) + 20 + - 39 ELSE 5 END + 57 ) THEN NULL WHEN 94 * 36 THEN NULL ELSE + COALESCE ( 95, ( 27 ), 55 ) END * + 75
----
-7125

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - + CASE - + 28 WHEN - COALESCE ( CAST ( 44 AS INTEGER ), - 36 + 63, + 84 / - + CASE - - MAX ( + 31 ) WHEN + 94 THEN 90 + - MAX ( - NULLIF ( - - CASE + 65 WHEN - 62 / - - 14 * + ( - 60 ) THEN 18 * + + 93 * - 84 * + 43 * - 88 + + + ( - - 14 ) END, + - 25 ) ) + 20 + - 39 ELSE 5 END + 57 ) THEN NULL WHEN 94 * 36 THEN NULL ELSE + COALESCE ( 95, ( 27 ), 55 ) END * + 75
----
-7125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8325
SELECT MIN( ALL - 98 ) + - 62 + - ( + 69 ) * + ( + 50 ) DIV + 5 + + - COUNT( * ) + - 18 * 52 * - NULLIF ( + - 79, + 71 - 70 ) - + SUM( ALL - 30 ) * - COUNT( 71 ) AS col0
----
-74825

skipif mysql # not compatible
query I rowsort label-8325
SELECT MIN ( ALL - 98 ) + - 62 + - ( + 69 ) * + ( + 50 ) / + 5 + + - COUNT ( * ) + - 18 * 52 * - NULLIF ( + - 79, + 71 - 70 ) - + SUM ( ALL - 30 ) * - COUNT ( 71 ) AS col0
----
-74825

query I rowsort
SELECT ALL ( - - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + 95 * - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8327
SELECT + 95 * - COUNT ( * ) AS col0
----
-95

query I rowsort
SELECT 71 * + - 21
----
-1491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT ALL - COUNT( * ) DIV - 17 col0
----
0

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - COUNT ( * ) / - 17 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT 64 + - + ( - CAST( 5 AS SIGNED ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8330
SELECT 64 + - + ( - CAST ( 5 AS INTEGER ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8331
SELECT ALL - 25 * + 37 - + 94 AS col0, - COUNT( * ) col2
----
-1019
-1

skipif mysql # not compatible
query II rowsort label-8331
SELECT ALL - 25 * + 37 - + 94 AS col0, - COUNT ( * ) col2
----
-1019
-1

query I rowsort
SELECT 51 * 91
----
4641

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT DISTINCT - + 36 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - + 36 / + - 51
----
0

query I rowsort
SELECT + 45 * - 4 * - 22
----
3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 77 + + ( - 73 ) + CASE + - 68 WHEN - 41 / - 47 + - 88 THEN + + CAST( - 97 AS SIGNED ) + - 67 * - NULLIF ( 47, + + CAST( NULL AS SIGNED ) ) WHEN - - COUNT( * ) * ( CAST( NULL AS SIGNED ) ) * 53 + COUNT( * ) + + + 33 THEN NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 77 + + ( - 73 ) + CASE + - 68 WHEN - 41 / - 47 + - 88 THEN + + CAST ( - 97 AS INTEGER ) + - 67 * - NULLIF ( 47, + + CAST ( NULL AS INTEGER ) ) WHEN - - COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) * 53 + COUNT ( * ) + + + 33 THEN NULL END * 48
----
NULL

query I rowsort
SELECT + + COALESCE ( - - 21, - 55, - ( - 99 ) ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - 32 * - 7 * + 55 + - - 37 + NULLIF ( + 17, SUM( DISTINCT + 44 ) + - - 9 + + - 64 * - + 89 ) AS col0
----
12374

skipif mysql # not compatible
query I rowsort label-8337
SELECT - 32 * - 7 * + 55 + - - 37 + NULLIF ( + 17, SUM ( DISTINCT + 44 ) + - - 9 + + - 64 * - + 89 ) AS col0
----
12374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8338
SELECT COALESCE ( COUNT( * ), + 40, + 55 DIV 69 + + CAST( NULL AS SIGNED ) ) * - 15 - - 94 + + + 56
----
135

skipif mysql # not compatible
query I rowsort label-8338
SELECT COALESCE ( COUNT ( * ), + 40, + 55 / 69 + + CAST ( NULL AS INTEGER ) ) * - 15 - - 94 + + + 56
----
135

query I rowsort
SELECT DISTINCT 96 + - - 30 + + 15 * - 65 AS col1
----
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL + COUNT( * ) + - - 51
----
52

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + COUNT ( * ) + - - 51
----
52

query II rowsort
SELECT DISTINCT - 79 AS col0, + 55 * 80 + + 38 + - - 17 + 42 AS col2
----
-79
4497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT ALL MIN( DISTINCT 76 ) DIV + 17
----
4

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL MIN ( DISTINCT 76 ) / + 17
----
4

query II rowsort
SELECT DISTINCT - 95 AS col2, 3 + + - 32 AS col2
----
-95
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT CASE + CAST( 9 AS SIGNED ) WHEN + 57 THEN NULL ELSE + + 80 * 59 END * - COUNT( * ) + - 51 AS col0
----
-4771

skipif mysql # not compatible
query I rowsort label-8344
SELECT CASE + CAST ( 9 AS INTEGER ) WHEN + 57 THEN NULL ELSE + + 80 * 59 END * - COUNT ( * ) + - 51 AS col0
----
-4771

query II rowsort
SELECT 6, 45 * + ( 43 ) AS col0
----
6
1935

query II rowsort
SELECT 77, + 94 * ( 61 ) AS col1
----
77
5734

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT ALL + 87 DIV - ( - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL + 87 / - ( - 44 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT + 13 DIV + 1 + 6
----
19

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 13 / + 1 + 6
----
19

query I rowsort
SELECT DISTINCT + 48 * + + 26
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - + SUM( + 93 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-8350
SELECT - + SUM ( + 93 ) col2
----
-93

query II rowsort
SELECT 36 AS col0, - 57
----
36
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8352
SELECT COUNT( * ), CAST( NULL AS SIGNED ) * + COUNT( * ) * - CAST( + 9 AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8352
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - CAST ( + 9 AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT - 93 - + 19 AS col2
----
-112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8354
SELECT - 20 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT - 20 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL - CAST( - 13 AS SIGNED ) * + 83
----
1079

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - CAST ( - 13 AS INTEGER ) * + 83
----
1079

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + COALESCE ( - COUNT( * ), 14 ) * - 46
----
46

skipif mysql # not compatible
query I rowsort label-8356
SELECT + COALESCE ( - COUNT ( * ), 14 ) * - 46
----
46

query I rowsort
SELECT DISTINCT 8 * + + 21 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL COALESCE ( - 30, + COUNT( * ) + 23 + - 92 )
----
-30

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL COALESCE ( - 30, + COUNT ( * ) + 23 + - 92 )
----
-30

query I rowsort
SELECT ALL - - 50 + - 0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - + COUNT( * ) - - 47
----
46

skipif mysql # not compatible
query I rowsort label-8360
SELECT - + COUNT ( * ) - - 47
----
46

query I rowsort
SELECT DISTINCT - ( - 40 ) col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8362
SELECT COALESCE ( - 25, CAST( NULL AS SIGNED ) - - + NULLIF ( - - 68, + + COUNT( * ) + - 96 + - 48 ) + + 32 * - - 60 * - 70, 91 + + CAST( COALESCE ( + 55, - CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-8362
SELECT COALESCE ( - 25, CAST ( NULL AS INTEGER ) - - + NULLIF ( - - 68, + + COUNT ( * ) + - 96 + - 48 ) + + 32 * - - 60 * - 70, 91 + + CAST ( COALESCE ( + 55, - CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT ALL + + COUNT( * ) * - CAST( - + 14 AS SIGNED ) * + 63 + - - 25 + 71 AS col2
----
978

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL + + COUNT ( * ) * - CAST ( - + 14 AS INTEGER ) * + 63 + - - 25 + 71 AS col2
----
978

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT - 85 DIV 58 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8364
SELECT - 85 / 58 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT - 43 + ( - - ( SUM( 72 ) ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8365
SELECT - 43 + ( - - ( SUM ( 72 ) ) ) AS col0
----
29

query I rowsort
SELECT DISTINCT - 79 * + 37 + - 58 AS col0
----
-2981

query I rowsort
SELECT COALESCE ( + + ( - 26 ), - ( 30 ) * + + 14 + 29 * - 10 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL 72 * + COUNT( DISTINCT + 54 ) * 41 * ( + SUM( ALL 26 ) ) - + 47 - - 1 + ( + 13 ) * - + 47 * + SUM( DISTINCT - + NULLIF ( + + 18, + 70 * + 97 ) ) / CAST( NULL AS SIGNED ) + - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL 72 * + COUNT ( DISTINCT + 54 ) * 41 * ( + SUM ( ALL 26 ) ) - + 47 - - 1 + ( + 13 ) * - + 47 * + SUM ( DISTINCT - + NULLIF ( + + 18, + 70 * + 97 ) ) / CAST ( NULL AS INTEGER ) + - 46 AS col1
----
NULL

query II rowsort
SELECT - 31 * 28 AS col1, 0
----
-868
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT COALESCE ( 90, MAX( DISTINCT + - 39 ) + - - NULLIF ( 76, 93 * - 70 / + 18 * + 45 + - 64 + - 4 + - 28 ) - 49 )
----
90

skipif mysql # not compatible
query I rowsort label-8370
SELECT COALESCE ( 90, MAX ( DISTINCT + - 39 ) + - - NULLIF ( 76, 93 * - 70 / + 18 * + 45 + - 64 + - 4 + - 28 ) - 49 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT + SUM( 37 ), 69 * - 76 * - 28 AS col1
----
37
146832

skipif mysql # not compatible
query II rowsort label-8371
SELECT + SUM ( 37 ), 69 * - 76 * - 28 AS col1
----
37
146832

query I rowsort
SELECT - 95 + 57
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8373
SELECT + COUNT( DISTINCT 87 ) * + 47 * + COALESCE ( + COUNT( * ), - 16 + - 18 DIV 13 - + CAST( NULL AS SIGNED ) * 88 * + 67 * - 5 ) + NULLIF ( + 23, + 58 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-8373
SELECT + COUNT ( DISTINCT 87 ) * + 47 * + COALESCE ( + COUNT ( * ), - 16 + - 18 / 13 - + CAST ( NULL AS INTEGER ) * 88 * + 67 * - 5 ) + NULLIF ( + 23, + 58 ) col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT COUNT( DISTINCT - - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-8374
SELECT COUNT ( DISTINCT - - 29 )
----
1

query I rowsort
SELECT ALL + ( 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + COALESCE ( - + 19, 58 ) - - + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-8376
SELECT + COALESCE ( - + 19, 58 ) - - + COUNT ( * )
----
-18

query I rowsort
SELECT DISTINCT 50 * 87 * + + 1 AS col2
----
4350

query I rowsort
SELECT DISTINCT - 8 * - 45 AS col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - CASE + 49 WHEN + 8 THEN COALESCE ( 38, + + 49 ) ELSE NULL END * 65 / + 12 + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT - CASE + 49 WHEN + 8 THEN COALESCE ( 38, + + 49 ) ELSE NULL END * 65 / + 12 + + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT + 38 * + - CAST( + - 94 AS SIGNED ) * COUNT( - 99 ) * + 1
----
3572

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 38 * + - CAST ( + - 94 AS INTEGER ) * COUNT ( - 99 ) * + 1
----
3572

onlyif mysql # aggregate syntax: 
query II rowsort label-8381
SELECT + + 89 - + 49 AS col1, 54 + - COUNT( * ) AS col0
----
40
53

skipif mysql # not compatible
query II rowsort label-8381
SELECT + + 89 - + 49 AS col1, 54 + - COUNT ( * ) AS col0
----
40
53

query I rowsort
SELECT ALL - NULLIF ( - 62, + NULLIF ( - 27, 69 + + 36 ) ) AS col2
----
62

query I rowsort
SELECT DISTINCT - CASE + 57 WHEN - 76 THEN 35 WHEN - + 42 THEN NULL END * 73 AS col1
----
NULL

query I rowsort
SELECT + 41 + - 40 AS col1
----
1

query I rowsort
SELECT ALL + 42 * + + 10 AS col1
----
420

query I rowsort
SELECT ALL 24 + - 8
----
16

query I rowsort
SELECT - - 3 col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8388
SELECT ( - 76 ) AS col1, ( - 41 ) / CAST( NULL AS SIGNED ) + - NULLIF ( 33, + 3 + COALESCE ( 51, - + 0 + ( - AVG ( DISTINCT + 7 ) ) ) ) AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-8388
SELECT ( - 76 ) AS col1, ( - 41 ) / CAST ( NULL AS INTEGER ) + - NULLIF ( 33, + 3 + COALESCE ( 51, - + 0 + ( - AVG ( DISTINCT + 7 ) ) ) ) AS col2
----
-76
NULL

query I rowsort
SELECT ALL - CASE - 99 WHEN - 62 THEN NULL WHEN - - 38 + + 18 THEN 66 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8390
SELECT + + 76 + + - 13 - - ( 55 ) DIV 94 + - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8390
SELECT + + 76 + + - 13 - - ( 55 ) / 94 + - COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT + + 18 * - COUNT( * ) * + COUNT( * ) AS col0, 50 * + + 7
----
-18
350

skipif mysql # not compatible
query II rowsort label-8391
SELECT + + 18 * - COUNT ( * ) * + COUNT ( * ) AS col0, 50 * + + 7
----
-18
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 0 * + - 83 * + - 41 + 49 + + CASE + CAST( NULL AS SIGNED ) WHEN - 78 THEN NULL ELSE - - 22 * - 13 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 0 * + - 83 * + - 41 + 49 + + CASE + CAST ( NULL AS INTEGER ) WHEN - 78 THEN NULL ELSE - - 22 * - 13 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT CASE 60 WHEN + 35 THEN - - 18 + + 94 + + 89 ELSE + - COUNT( * ) * 89 END * COUNT( * ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT CASE 60 WHEN + 35 THEN - - 18 + + 94 + + 89 ELSE + - COUNT ( * ) * 89 END * COUNT ( * ) col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8394
SELECT - COUNT( * ) * - CASE - - 47 WHEN - COUNT( * ) THEN NULL ELSE - + AVG ( - CAST( NULL AS SIGNED ) ) END, MAX( CASE - 14 WHEN + - 6 THEN + 56 END )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8394
SELECT - COUNT ( * ) * - CASE - - 47 WHEN - COUNT ( * ) THEN NULL ELSE - + AVG ( - CAST ( NULL AS INTEGER ) ) END, MAX ( CASE - 14 WHEN + - 6 THEN + 56 END )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL ( 80 ) * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL ( 80 ) * + COUNT ( * )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT - 7 + - CAST( + - 19 AS SIGNED ) + ( - COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 7 + - CAST ( + - 19 AS INTEGER ) + ( - COUNT ( * ) )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT ALL 36 DIV 29 * - 70 - + 10 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL 36 / 29 * - 70 - + 10 AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8398
SELECT + COUNT( - 14 ) * + COUNT( 74 ), CAST( NULL AS SIGNED ) * - 33 / 90 * + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8398
SELECT + COUNT ( - 14 ) * + COUNT ( 74 ), CAST ( NULL AS INTEGER ) * - 33 / 90 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2
----
1
NULL

query II rowsort
SELECT - ( + - 55 ) * + - 46, - 38 AS col2
----
-2530
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT - CAST( - 69 AS SIGNED ) * + 86 + - + 72 * + - 90 AS col0
----
12414

skipif mysql # not compatible
query I rowsort label-8400
SELECT - CAST ( - 69 AS INTEGER ) * + 86 + - + 72 * + - 90 AS col0
----
12414

query I rowsort
SELECT - 54 - 42 col0
----
-96

query II rowsort
SELECT ALL + 17 AS col0, + 63 AS col2
----
17
63

query I rowsort
SELECT - 71 + - 99
----
-170

query I rowsort
SELECT ( - 93 ) * 34 + - 83
----
-3245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8405
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - ( - 23 ) * + + 21 AS col0
----
483

query I rowsort
SELECT ALL + 86 * 53 AS col2
----
4558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT DISTINCT + 14 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT + 14 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 23 * 56 AS col0
----
-1288

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT - 0 DIV 88 * + + 23 * - - 16
----
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT - 0 / 88 * + + 23 * - - 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL - 96 * 57 * + 78 * - - COUNT( * )
----
-426816

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - 96 * 57 * + 78 * - - COUNT ( * )
----
-426816

query II rowsort
SELECT DISTINCT + 59, + 76 AS col0
----
59
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT - ( 28 ) + + COUNT( * ) * + 26
----
-2

skipif mysql # not compatible
query I rowsort label-8413
SELECT - ( 28 ) + + COUNT ( * ) * + 26
----
-2

query I rowsort
SELECT - ( - NULLIF ( 87, - 53 + - + 25 ) )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT DISTINCT + - COALESCE ( - 84, 5 DIV + 60 * 72 + + 4, - 79 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT + - COALESCE ( - 84, 5 / + 60 * 72 + + 4, - 79 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT ALL + + ( CAST( + COUNT( * ) AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + + ( CAST ( + COUNT ( * ) AS INTEGER ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL COUNT( * ) + + NULLIF ( 73, - 83 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL COUNT ( * ) + + NULLIF ( 73, - 83 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT COALESCE ( + + 88, + - COUNT( * ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8418
SELECT COALESCE ( + + 88, + - COUNT ( * ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT 18 * - COUNT( * ) * - 67 + - + COUNT( * ) + + 97
----
1302

skipif mysql # not compatible
query I rowsort label-8419
SELECT 18 * - COUNT ( * ) * - 67 + - + COUNT ( * ) + + 97
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL 42 + - 66 * - COUNT( * ) + 6
----
114

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL 42 + - 66 * - COUNT ( * ) + 6
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT + - COUNT( * ) + + - 85
----
-86

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT + - COUNT ( * ) + + - 85
----
-86

query II rowsort
SELECT - ( NULLIF ( - 60, - - 5 + - + AVG ( ALL + 14 ) + - 56 + + 32 / - - 23 * + + 76 * 35 ) ) AS col0, 36 * + 9
----
60
324

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8423
SELECT + 39 * + 58 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT + 39 * + 58 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 2 + - - 17 + - 32 * - 37 / - 81 * - 32 + 90 + - CASE + 63 WHEN 5 THEN - - 52 * - - 51 ELSE NULL END * - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT COUNT( * ) * + - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8425
SELECT COUNT ( * ) * + - 82 AS col1
----
-82

query I rowsort
SELECT ALL - 53 * + - 8 AS col0
----
424

query I rowsort
SELECT DISTINCT - 20 + + 34 AS col1
----
14

query II rowsort
SELECT ALL 58 + - - 81 + - - 84 * - 57 * 63 * + 83, 89 col1
----
-25036313
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL 97 * + 59 * - - 17 * - 67 + - MIN( 5 ) * + 32
----
-6518657

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL 97 * + 59 * - - 17 * - 67 + - MIN ( 5 ) * + 32
----
-6518657

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL 8 - - - 48 + - + 62 + 37 + - 44 + 85 * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL 8 - - - 48 + - + 62 + 37 + - 44 + 85 * COUNT ( * )
----
-24

query I rowsort
SELECT 47 - 42 + + - 59 AS col1
----
-54

query I rowsort
SELECT DISTINCT 37 - + 44
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT 66 - + - NULLIF ( - 10, + - COUNT( * ) + + 2 + + COUNT( + + 11 ) )
----
56

skipif mysql # not compatible
query I rowsort label-8433
SELECT 66 - + - NULLIF ( - 10, + - COUNT ( * ) + + 2 + + COUNT ( + + 11 ) )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT - 82 DIV + + 28 + - 80 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8434
SELECT - 82 / + + 28 + - 80 AS col0
----
-82

query II rowsort
SELECT 82 * + 77 AS col2, ( + 92 ) AS col1
----
6314
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT COUNT( * ) * 61 - - 94
----
155

skipif mysql # not compatible
query I rowsort label-8436
SELECT COUNT ( * ) * 61 - - 94
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT CAST( + - 70 AS SIGNED ) * - - 15
----
-1050

skipif mysql # not compatible
query I rowsort label-8437
SELECT CAST ( + - 70 AS INTEGER ) * - - 15
----
-1050

query I rowsort
SELECT ALL 30 * + 67
----
2010

query I rowsort
SELECT DISTINCT - ( 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8440
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) col2, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8440
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 62 * + 38
----
2356

query I rowsort
SELECT 97 * - 27
----
-2619

query I rowsort
SELECT 68 - + 14
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT ALL - CAST( 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL - CAST ( 53 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL - 9 * NULLIF ( + ( - 79 ), + COUNT( * ) )
----
711

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - 9 * NULLIF ( + ( - 79 ), + COUNT ( * ) )
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL - - COALESCE ( + 23, + + 51 ) + - 64 + MIN( ALL + + 30 ) * 89 AS col1
----
2629

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - - COALESCE ( + 23, + + 51 ) + - 64 + MIN ( ALL + + 30 ) * 89 AS col1
----
2629

query I rowsort
SELECT + 96 - + - 44
----
140

query I rowsort
SELECT DISTINCT - 76 * + 58 + - - ( + 20 ) AS col0
----
-4388

query I rowsort
SELECT 64 + + 50 + - 55 AS col2
----
59

query I rowsort
SELECT ALL + 6 + - - 20 + + 71
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - 35 * + 93 + COUNT( * ) * - + 9
----
-3264

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 35 * + 93 + COUNT ( * ) * - + 9
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT 43 + - ( - + 81 ) + 49 * 27 - + - COUNT( DISTINCT + 81 ) AS col2
----
1448

skipif mysql # not compatible
query I rowsort label-8452
SELECT 43 + - ( - + 81 ) + 49 * 27 - + - COUNT ( DISTINCT + 81 ) AS col2
----
1448

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT - 89 + - 65 * - - COUNT( * ) AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-8453
SELECT - 89 + - 65 * - - COUNT ( * ) AS col1
----
-154

query I rowsort
SELECT 35 + - - 11 AS col1
----
46

query I rowsort
SELECT ALL 42 - + + 40 * + + 87
----
-3438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8456
SELECT 12 + COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8456
SELECT 12 + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
12

query I rowsort
SELECT ALL 85 * 41 col1
----
3485

query I rowsort
SELECT 27 * - 8 col1
----
-216

query I rowsort
SELECT 63 * 75 AS col2
----
4725

query I rowsort
SELECT DISTINCT 31 * + 98
----
3038

query II rowsort
SELECT ALL 69, 98 AS col1
----
69
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT - 76 AS col0, SUM( ALL 43 ) AS col2
----
-76
43

skipif mysql # not compatible
query II rowsort label-8462
SELECT - 76 AS col0, SUM ( ALL 43 ) AS col2
----
-76
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8463
SELECT ALL COUNT( + - CAST( + 61 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL COUNT ( + - CAST ( + 61 AS INTEGER ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT 72 DIV 31 col0
----
2

skipif mysql # not compatible
query I rowsort label-8464
SELECT 72 / 31 col0
----
2

query I rowsort
SELECT ALL - 96 * + + 11 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT 89 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT 89 * COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT MIN( DISTINCT + 66 ) col0
----
66

skipif mysql # not compatible
query I rowsort label-8467
SELECT MIN ( DISTINCT + 66 ) col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT 62 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-8468
SELECT 62 / - 61
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT COUNT( ALL + 7 ) + - 57, - 24 AS col0
----
-56
-24

skipif mysql # not compatible
query II rowsort label-8469
SELECT COUNT ( ALL + 7 ) + - 57, - 24 AS col0
----
-56
-24

query I rowsort
SELECT 7 * - + 92
----
-644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL CAST( NULL AS SIGNED ) * + + ( + 90 ) + + - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL CAST ( NULL AS INTEGER ) * + + ( + 90 ) + + - 7 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT ( + + 22 ) DIV + - NULLIF ( + 24, + 74 ) + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-8472
SELECT ( + + 22 ) / + - NULLIF ( + 24, + 74 ) + - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT MIN( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-8473
SELECT MIN ( DISTINCT + 22 )
----
22

query I rowsort
SELECT DISTINCT + + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + NULLIF ( 94, + ( + COALESCE ( - 5, + + ( 26 ) * 89, - 66 - 98 + + COUNT( ALL 64 ) * - 95 * - 38 * + 21 * 29 / - 57 ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + NULLIF ( 94, + ( + COALESCE ( - 5, + + ( 26 ) * 89, - 66 - 98 + + COUNT ( ALL 64 ) * - 95 * - 38 * + 21 * 29 / - 57 ) ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - 79 * - COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - 79 * - COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT COUNT( * ) * 0 * + - 45 + ( - 0 ) + + 44 * + ( + 12 ) AS col0
----
528

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT COUNT ( * ) * 0 * + - 45 + ( - 0 ) + + 44 * + ( + 12 ) AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT DISTINCT + - NULLIF ( SUM( + 50 ), - 76 )
----
-50

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT + - NULLIF ( SUM ( + 50 ), - 76 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - MAX( + 64 ) * + COUNT( * ) + - + 28 col0
----
-92

skipif mysql # not compatible
query I rowsort label-8479
SELECT - MAX ( + 64 ) * + COUNT ( * ) + - + 28 col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT DISTINCT + + CASE + 36 WHEN 2 + 19 * - CAST( NULL AS SIGNED ) THEN - NULLIF ( + CASE + 89 WHEN ( 9 ) * - - 55 + CASE + CAST( 60 AS SIGNED ) WHEN - COUNT( * ) THEN 57 END THEN + 31 / + 84 / 13 + - 90 + - 49 END, - + 31 * 53 ) + + COALESCE ( 54, - COUNT( * ), - COUNT( DISTINCT + + 38 ) + 20 ) + + - 81 WHEN + 28 * - 15 + 36 THEN 46 * + ( - 5 ) / + 52 + 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + + CASE + 36 WHEN 2 + 19 * - CAST ( NULL AS INTEGER ) THEN - NULLIF ( + CASE + 89 WHEN ( 9 ) * - - 55 + CASE + CAST ( 60 AS INTEGER ) WHEN - COUNT ( * ) THEN 57 END THEN + 31 / + 84 / 13 + - 90 + - 49 END, - + 31 * 53 ) + + COALESCE ( 54, - COUNT ( * ), - COUNT ( DISTINCT + + 38 ) + 20 ) + + - 81 WHEN + 28 * - 15 + 36 THEN 46 * + ( - 5 ) / + 52 + 72 END AS col0
----
NULL

query I rowsort
SELECT - - 75 + + + 44 - 38 AS col0
----
81

query I rowsort
SELECT DISTINCT - - 49 - 96
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT - - COUNT( * ) * - 95 + - - 95 col0
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT - - COUNT ( * ) * - 95 + - - 95 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT DISTINCT 75 DIV + + 14
----
5

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT 75 / + + 14
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL - COUNT( * ) * + COALESCE ( + 38, + + 83, + MAX( + - 65 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - COUNT ( * ) * + COALESCE ( + 38, + + 83, + MAX ( + - 65 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + MIN( ALL + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + MIN ( ALL + 15 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT - - NULLIF ( - - CAST( - 99 AS SIGNED ), CAST( NULL AS SIGNED ) * MAX( DISTINCT - 44 ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8487
SELECT - - NULLIF ( - - CAST ( - 99 AS INTEGER ), CAST ( NULL AS INTEGER ) * MAX ( DISTINCT - 44 ) ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT + 62 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-8488
SELECT + 62 / + 47
----
1

query I rowsort
SELECT - NULLIF ( 71, - 15 * - 19 + 24 ) * + - 50 col1
----
3550

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT 31, - MIN( ALL + - 39 ) - COUNT( * ) * + 81 AS col0
----
31
-42

skipif mysql # not compatible
query II rowsort label-8490
SELECT 31, - MIN ( ALL + - 39 ) - COUNT ( * ) * + 81 AS col0
----
31
-42

query I rowsort
SELECT - 79 - 81 + - 46
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - 84 * - 54 * + COUNT( * )
----
4536

skipif mysql # not compatible
query I rowsort label-8492
SELECT - 84 * - 54 * + COUNT ( * )
----
4536

query I rowsort
SELECT ALL - 27 * - + 52 * + 96
----
134784

query III rowsort
SELECT 45 col0, 16 AS col2, + 25 AS col2
----
45
16
25

query I rowsort
SELECT ALL ( 59 ) AS col0
----
59

query I rowsort
SELECT - 49 * + 53 AS col2
----
-2597

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL 13 * - + 84 * + + MAX( - - ( - 8 ) )
----
8736

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL 13 * - + 84 * + + MAX ( - - ( - 8 ) )
----
8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8499
SELECT - COUNT( * ) * 71 AS col1, 8 * - - CAST( NULL AS SIGNED ) - + + 99 AS col1
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-8499
SELECT - COUNT ( * ) * 71 AS col1, 8 * - - CAST ( NULL AS INTEGER ) - + + 99 AS col1
----
-71
NULL

query I rowsort
SELECT DISTINCT ( - 69 ) AS col0
----
-69

query I rowsort
SELECT + 53 + + 70
----
123

query II rowsort
SELECT - 42 AS col0, + 16
----
-42
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT - MAX( ALL - - 68 ) * - - ( + 73 )
----
-4964

skipif mysql # not compatible
query I rowsort label-8503
SELECT - MAX ( ALL - - 68 ) * - - ( + 73 )
----
-4964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8504
SELECT + COUNT( * ) DIV 75 + 89
----
89

skipif mysql # not compatible
query I rowsort label-8504
SELECT + COUNT ( * ) / 75 + 89
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT CAST( + 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-8505
SELECT CAST ( + 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ( + MAX( ALL 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-8506
SELECT ( + MAX ( ALL 97 ) )
----
97

query II rowsort
SELECT ALL + 61, - 4 AS col2
----
61
-4

query I rowsort
SELECT ( - + 78 ) AS col2
----
-78

query II rowsort
SELECT 85 AS col1, 42
----
85
42

query II rowsort
SELECT ALL - + 33 * + - 58 * + 41 + + 24 AS col2, 26 * 63 AS col1
----
78498
1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8511
SELECT + 78 DIV - + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8511
SELECT + 78 / - + COUNT ( * ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT DISTINCT + CAST( - 74 AS SIGNED ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + CAST ( - 74 AS INTEGER ) col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - - 84 + - 37 + + 30 * + + COUNT( * ) * 61
----
1877

skipif mysql # not compatible
query I rowsort label-8513
SELECT - - 84 + - 37 + + 30 * + + COUNT ( * ) * 61
----
1877

query I rowsort
SELECT + 35 * + COALESCE ( - - 12, + 18 ) col1
----
420

query II rowsort
SELECT + NULLIF ( - 92, + 31 ) * + 79, 35 AS col1
----
-7268
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT ALL + 15 DIV + 13
----
1

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + 15 / + 13
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + + COUNT( * ) + 16
----
17

skipif mysql # not compatible
query I rowsort label-8517
SELECT + + COUNT ( * ) + 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - MAX( - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8518
SELECT - MAX ( - 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT 35 * - 22 + - MIN( - - 68 ) * ( - 72 ) DIV 68
----
-698

skipif mysql # not compatible
query I rowsort label-8519
SELECT 35 * - 22 + - MIN ( - - 68 ) * ( - 72 ) / 68
----
-698

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8520
SELECT ALL + - 83 * CASE + 67 WHEN + + 99 THEN - COUNT( * ) ELSE + 18 END * - 79 + - - 49 - - 85 DIV + 68 + - 26 AS col1, 63 + 93 * + MIN( ALL - 84 )
----
118050
-7749

skipif mysql # not compatible
query II rowsort label-8520
SELECT ALL + - 83 * CASE + 67 WHEN + + 99 THEN - COUNT ( * ) ELSE + 18 END * - 79 + - - 49 - - 85 / + 68 + - 26 AS col1, 63 + 93 * + MIN ( ALL - 84 )
----
118050
-7749

query I rowsort
SELECT ALL + + 2 col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8522
SELECT ALL + CAST( NULL AS SIGNED ) col1, 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8522
SELECT ALL + CAST ( NULL AS INTEGER ) col1, 71 AS col0
----
NULL
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT - MIN( DISTINCT - 46 ) * + 63 - 39 + 32 * + - 37 * + 12 AS col2, - COUNT( * )
----
-11349
-1

skipif mysql # not compatible
query II rowsort label-8523
SELECT - MIN ( DISTINCT - 46 ) * + 63 - 39 + 32 * + - 37 * + 12 AS col2, - COUNT ( * )
----
-11349
-1

query I rowsort
SELECT ALL - 74 * - 41
----
3034

query I rowsort
SELECT + 94 + + 24 + - 65 * 62
----
-3912

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT + 7 + + - 31 DIV + 81
----
7

skipif mysql # not compatible
query I rowsort label-8526
SELECT + 7 + + - 31 / + 81
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT + 88 * 49 - 0 + 85 DIV - + 80 + + 95 + + - 30
----
4376

skipif mysql # not compatible
query I rowsort label-8527
SELECT + 88 * 49 - 0 + 85 / - + 80 + + 95 + + - 30
----
4376

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT + + 8 + - + COUNT( * ) AS col1, + 14
----
7
14

skipif mysql # not compatible
query II rowsort label-8528
SELECT + + 8 + - + COUNT ( * ) AS col1, + 14
----
7
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - + 2 * + - 15 + COUNT( * ) * + - MIN( - 67 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8529
SELECT - + 2 * + - 15 + COUNT ( * ) * + - MIN ( - 67 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + 55 + 19 + - COUNT( * ) + + 90 AS col0
----
163

skipif mysql # not compatible
query I rowsort label-8530
SELECT + 55 + 19 + - COUNT ( * ) + + 90 AS col0
----
163

query I rowsort
SELECT - 61 - - 46 * + 95
----
4309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT + COUNT( * ) + - + CAST( NULL AS SIGNED ) + - + 71 * + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - + 71 * + + 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8533
SELECT + COUNT( * ) DIV 79 * + 13, + ( 82 ) DIV - + 90 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-8533
SELECT + COUNT ( * ) / 79 * + 13, + ( 82 ) / - + 90 AS col0
----
0
0

query I rowsort
SELECT ALL 13 + + 65 * ( 77 ) + + - 33 AS col0
----
4985

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT - 96 + - CASE - COALESCE ( + 55, - + 81 + + + 9 ) WHEN - 92 THEN 31 ELSE + 45 END + MAX( DISTINCT 97 ) * - 84 + - 23
----
-8312

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - 96 + - CASE - COALESCE ( + 55, - + 81 + + + 9 ) WHEN - 92 THEN 31 ELSE + 45 END + MAX ( DISTINCT 97 ) * - 84 + - 23
----
-8312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL + NULLIF ( - - COUNT( * ), + 76 ) + - 33 + CAST( 98 AS SIGNED ) * - 65 AS col1
----
-6402

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL + NULLIF ( - - COUNT ( * ), + 76 ) + - 33 + CAST ( 98 AS INTEGER ) * - 65 AS col1
----
-6402

query I rowsort
SELECT - 77 + + 21
----
-56

query I rowsort
SELECT DISTINCT + 51 * 12 AS col1
----
612

query II rowsort
SELECT DISTINCT - 96 + - 1 - 40 * + 40 - 64 * ( 48 ) AS col2, 66
----
-4769
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT + ( - + COUNT( * ) ) * + 54 + + MIN( ALL + COALESCE ( + + 68, + + 9 * - 74 + 91, - ( + - 18 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-8540
SELECT + ( - + COUNT ( * ) ) * + 54 + + MIN ( ALL + COALESCE ( + + 68, + + 9 * - 74 + 91, - ( + - 18 ) ) )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8541
SELECT ALL - 78 + - 11 * + + CASE + 68 WHEN - - 48 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + - 69 END AS col1, 35 DIV 12 + 82
----
681
84

skipif mysql # not compatible
query II rowsort label-8541
SELECT ALL - 78 + - 11 * + + CASE + 68 WHEN - - 48 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + - 69 END AS col1, 35 / 12 + 82
----
681
84

query I rowsort
SELECT DISTINCT + NULLIF ( 63, 54 ) + 87
----
150

query II rowsort
SELECT 87 + - ( - CASE WHEN ( NOT + 51 < - ( + - 74 ) ) THEN - 11 * + 74 * + - 20 END ) AS col1, + 58 + - 80 AS col0
----
NULL
-22

query I rowsort
SELECT DISTINCT 65 + + 0 + - + 75 + + 10 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT ALL + 79 + - COUNT( * ) DIV - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + 79 + - COUNT ( * ) / - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL - CASE 86 WHEN 82 * + - 0 / + + 84 + - - COUNT( DISTINCT - 10 ) * + 35 * + COALESCE ( + COUNT( * ), + 36 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - CASE 86 WHEN 82 * + - 0 / + + 84 + - - COUNT ( DISTINCT - 10 ) * + 35 * + COALESCE ( + COUNT ( * ), + 36 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8547
SELECT - COUNT( * ) DIV - 35 + 23 + + 42 * + 25, 77 * - 69 AS col0
----
1073
-5313

skipif mysql # not compatible
query II rowsort label-8547
SELECT - COUNT ( * ) / - 35 + 23 + + 42 * + 25, 77 * - 69 AS col0
----
1073
-5313

query I rowsort
SELECT 70 + 16 * + + 54 AS col1
----
934

query I rowsort
SELECT DISTINCT - - 41 col0
----
41

query I rowsort
SELECT + 15 * - 69 - - 79 * + 21 * - 35 * - 43 AS col2
----
2495760

query I rowsort
SELECT + - 62 AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8552
SELECT DISTINCT + 86 * - + 9 * - CAST( + 6 AS SIGNED ) + - + 43 col1, 45 AS col1
----
4601
45

skipif mysql # not compatible
query II rowsort label-8552
SELECT DISTINCT + 86 * - + 9 * - CAST ( + 6 AS INTEGER ) + - + 43 col1, 45 AS col1
----
4601
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT + 33 - 16 * - 93 * + - 43 * ( + COUNT( * ) ) col2
----
-63951

skipif mysql # not compatible
query I rowsort label-8553
SELECT + 33 - 16 * - 93 * + - 43 * ( + COUNT ( * ) ) col2
----
-63951

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT COUNT( * ) * 34 * + 16 col0
----
544

skipif mysql # not compatible
query I rowsort label-8554
SELECT COUNT ( * ) * 34 * + 16 col0
----
544

onlyif mysql # aggregate syntax: 
query II rowsort label-8555
SELECT DISTINCT + - 66 * + 29 AS col1, MIN( + 90 ) AS col2
----
-1914
90

skipif mysql # not compatible
query II rowsort label-8555
SELECT DISTINCT + - 66 * + 29 AS col1, MIN ( + 90 ) AS col2
----
-1914
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT 87 * - + COUNT( * ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-8556
SELECT 87 * - + COUNT ( * ) col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8557
SELECT - CAST( NULL AS DECIMAL ) * + - 4 * + 31 + + - MIN( DISTINCT 97 ) + + 55 * - - ( + 65 ) / COUNT( * ) * + + COUNT( * ) * + ( - 34 ) * 97 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT - CAST ( NULL AS REAL ) * + - 4 * + 31 + + - MIN ( DISTINCT 97 ) + + 55 * - - ( + 65 ) / COUNT ( * ) * + + COUNT ( * ) * + ( - 34 ) * 97 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + SUM( ALL 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8558
SELECT + SUM ( ALL 67 ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT CASE - 10 WHEN + - CAST( - 45 AS SIGNED ) * - + 62 THEN - 44 + + 72 WHEN + 61 THEN NULL ELSE NULL END / + 72 * CAST( NULL AS SIGNED ) * 20 - - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT CASE - 10 WHEN + - CAST ( - 45 AS INTEGER ) * - + 62 THEN - 44 + + 72 WHEN + 61 THEN NULL ELSE NULL END / + 72 * CAST ( NULL AS INTEGER ) * 20 - - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8560
SELECT 10 * + COUNT( * ) DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8560
SELECT 10 * + COUNT ( * ) / - 68 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8561
SELECT ALL - COUNT( * ) DIV - ( - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL - COUNT ( * ) / - ( - 64 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8562
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * - - CASE - COUNT( * ) WHEN + 61 + 37 + - 26 THEN 67 END + + 18 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - - CASE - COUNT ( * ) WHEN + 61 + 37 + - 26 THEN 67 END + + 18 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT + ( - - CAST( + + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8563
SELECT + ( - - CAST ( + + COUNT ( * ) AS INTEGER ) )
----
1

query II rowsort
SELECT DISTINCT + 40 + - 31 AS col0, 27
----
9
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL 2 * + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL 2 * + + COUNT ( * )
----
2

query I rowsort
SELECT ALL 14 + + + 93
----
107

query I rowsort
SELECT ALL 96 + + + 28
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT SUM( - 41 ) + - 86 + - + 47 * + 39
----
-1960

skipif mysql # not compatible
query I rowsort label-8568
SELECT SUM ( - 41 ) + - 86 + - + 47 * + 39
----
-1960

query I rowsort
SELECT ( - 64 ) * + - 10 + + 74
----
714

query II rowsort
SELECT - 76 AS col2, 57 + - 44 col2
----
-76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT 1 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT 1 + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT ALL 60 + - COUNT( DISTINCT - 54 ), COUNT( * ) AS col1
----
59
1

skipif mysql # not compatible
query II rowsort label-8572
SELECT ALL 60 + - COUNT ( DISTINCT - 54 ), COUNT ( * ) AS col1
----
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ( COUNT( * ) ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-8573
SELECT ( COUNT ( * ) ) + + 10
----
11

query I rowsort
SELECT 17 * + 86 * + 19 AS col0
----
27778

query I rowsort
SELECT ALL 24 + - 83 AS col2
----
-59

query II rowsort
SELECT 86, - ( - - 22 ) AS col2
----
86
-22

query I rowsort
SELECT 16 - - 2 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT DISTINCT 52 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT 52 / - 46
----
-1

query I rowsort
SELECT 26 - + 87
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT 84 * + COUNT( 91 ) * + CAST( + CASE + 62 WHEN + ( - 60 ) + + 46 * + COALESCE ( 15, + 52 ) THEN NULL WHEN 31 * + 67 + - - 25 THEN NULL WHEN + COUNT( * ) THEN - 1 END AS SIGNED ) * - - 17 * 60 / COALESCE ( - 20, + COALESCE ( - 46, - 99 * + COUNT( * ) + - NULLIF ( - - COUNT( * ), + COUNT( + 46 ) * + 25 ) ) ) + 14 * 81 + - COUNT( * ) - 39 + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT 84 * + COUNT ( 91 ) * + CAST ( + CASE + 62 WHEN + ( - 60 ) + + 46 * + COALESCE ( 15, + 52 ) THEN NULL WHEN 31 * + 67 + - - 25 THEN NULL WHEN + COUNT ( * ) THEN - 1 END AS INTEGER ) * - - 17 * 60 / COALESCE ( - 20, + COALESCE ( - 46, - 99 * + COUNT ( * ) + - NULLIF ( - - COUNT ( * ), + COUNT ( + 46 ) * + 25 ) ) ) + 14 * 81 + - COUNT ( * ) - 39 + 9 AS col0
----
NULL

query I rowsort
SELECT ALL - 48 * + + 19 AS col0
----
-912

query I rowsort
SELECT ALL + 90 - + 87 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT - 9 DIV + 46 * - - COALESCE ( - + 68, + 39, - 75 ) + 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8583
SELECT - 9 / + 46 * - - COALESCE ( - + 68, + 39, - 75 ) + 98 AS col1
----
98

query II rowsort
SELECT ALL - - 57 col1, ( 62 ) * 10 - 74 - - ( - + 83 ) + 41
----
57
504

query II rowsort
SELECT ALL - 7 col2, + 58 AS col0
----
-7
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT - 40 * - COUNT( ALL - - 26 )
----
40

skipif mysql # not compatible
query I rowsort label-8586
SELECT - 40 * - COUNT ( ALL - - 26 )
----
40

query I rowsort
SELECT DISTINCT - - 14 AS col2
----
14

query I rowsort
SELECT DISTINCT + 96 * + + 92 col1
----
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - - SUM( - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - - SUM ( - 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - NULLIF ( - COUNT( * ), + - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - NULLIF ( - COUNT ( * ), + - 75 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8591
SELECT - - 87 DIV 87 + + 7 + + 22 AS col0, + 54 + + 43
----
30
97

skipif mysql # not compatible
query II rowsort label-8591
SELECT - - 87 / 87 + + 7 + + 22 AS col0, + 54 + + 43
----
30
97

query I rowsort
SELECT + + ( 55 )
----
55

query I rowsort
SELECT 66 + - + 25
----
41

query I rowsort
SELECT 25 * 25 col1
----
625

onlyif mysql # aggregate syntax: 
query III rowsort label-8595
SELECT + 50 AS col2, + NULLIF ( + 25, - + 80 ), - - NULLIF ( + COALESCE ( + 7, + + 27 + - + 46, - - 95 ), + COUNT( * ) * - COUNT( * ) ) + + + 58 - COUNT( - + 12 ) - COALESCE ( + - COUNT( * ), + 40, - 69 ) * - NULLIF ( 76, - COUNT( DISTINCT 20 ) * COUNT( * ) + - - 27 ) AS col2
----
50
25
-12

skipif mysql # not compatible
query III rowsort label-8595
SELECT + 50 AS col2, + NULLIF ( + 25, - + 80 ), - - NULLIF ( + COALESCE ( + 7, + + 27 + - + 46, - - 95 ), + COUNT ( * ) * - COUNT ( * ) ) + + + 58 - COUNT ( - + 12 ) - COALESCE ( + - COUNT ( * ), + 40, - 69 ) * - NULLIF ( 76, - COUNT ( DISTINCT 20 ) * COUNT ( * ) + - - 27 ) AS col2
----
50
25
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT DISTINCT + + ( + ( - 39 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT + + ( + ( - 39 ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8597
SELECT DISTINCT - 53 * 2 * - 78 * - 90 * - + 0 DIV + + 33 AS col2, - 71
----
0
-71

skipif mysql # not compatible
query II rowsort label-8597
SELECT DISTINCT - 53 * 2 * - 78 * - 90 * - + 0 / + + 33 AS col2, - 71
----
0
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT 4 + CASE - ( 53 ) WHEN 96 * + CAST( - 59 AS SIGNED ) - - 81 + COUNT( * ) THEN NULL WHEN + 44 / - 68 * - - 35 * + 96 + + + 0 THEN + + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT 4 + CASE - ( 53 ) WHEN 96 * + CAST ( - 59 AS INTEGER ) - - 81 + COUNT ( * ) THEN NULL WHEN + 44 / - 68 * - - 35 * + 96 + + + 0 THEN + + 66 END
----
NULL

query I rowsort
SELECT ALL 20 + + - 18
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT 4 * + ( 14 ) + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-8600
SELECT 4 * + ( 14 ) + COUNT ( * )
----
57

query I rowsort
SELECT ALL - 68 * + + NULLIF ( - 87, + 10 * 79 + - 8 ) AS col0
----
5916

query I rowsort
SELECT 91 + - 28 * - 82 + + - 78
----
2309

query I rowsort
SELECT 62 * - - COALESCE ( - 83, - 5 )
----
-5146

query I rowsort
SELECT - 86 * + 79 + - 58 AS col1
----
-6852

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT 72 + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8605
SELECT 72 + COUNT ( * ) AS col1
----
73

query I rowsort
SELECT 10 + + + 32 AS col0
----
42

query I rowsort
SELECT + 48 - 77
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT ALL 54 DIV 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL 54 / 32 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT + CAST( NULL AS SIGNED ) + - ( - 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT + CAST ( NULL AS INTEGER ) + - ( - 72 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 78 - + NULLIF ( + 86, - NULLIF ( - 79, - - 30 ) + + 11 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT DISTINCT ( + ( CAST( + 14 AS SIGNED ) ) ) * 90 + - + 90 AS col1
----
1170

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT ( + ( CAST ( + 14 AS INTEGER ) ) ) * 90 + - + 90 AS col1
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL 6 - + 87 * - - COUNT( * ) + + - ( 12 ) - + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL 6 - + 87 * - - COUNT ( * ) + + - ( 12 ) - + COUNT ( * ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL NULLIF ( - COUNT( * ), + + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL NULLIF ( - COUNT ( * ), + + 74 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT + 88 + - ( - COALESCE ( 91, + CASE + 30 WHEN 22 THEN - 36 - - 74 END * 98 + - 41, 65 ) ) + + ( + NULLIF ( CAST( - 56 AS SIGNED ), + + 66 * + - 68 ) ) * + - 39
----
2363

skipif mysql # not compatible
query I rowsort label-8614
SELECT + 88 + - ( - COALESCE ( 91, + CASE + 30 WHEN 22 THEN - 36 - - 74 END * 98 + - 41, 65 ) ) + + ( + NULLIF ( CAST ( - 56 AS INTEGER ), + + 66 * + - 68 ) ) * + - 39
----
2363

query I rowsort
SELECT DISTINCT ( 49 ) * + - 46
----
-2254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT + 41 + + CASE + + COUNT( * ) WHEN + - 39 THEN - 43 * - 35 / - CAST( + COALESCE ( 18, + + 46 ) AS SIGNED ) + + + ( + 45 ) * - - 62 + + - 72 END * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT + 41 + + CASE + + COUNT ( * ) WHEN + - 39 THEN - 43 * - 35 / - CAST ( + COALESCE ( 18, + + 46 ) AS INTEGER ) + + + ( + 45 ) * - - 62 + + - 72 END * + 19 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8617
SELECT ALL 46 * 16, 76 - COALESCE ( - 75, - - COUNT( * ) * - + 87 + CAST( 82 AS SIGNED ) + + COUNT( * ) + 88 ) + - + CAST( NULL AS SIGNED ) + + 61 * 84 AS col1
----
736
NULL

skipif mysql # not compatible
query II rowsort label-8617
SELECT ALL 46 * 16, 76 - COALESCE ( - 75, - - COUNT ( * ) * - + 87 + CAST ( 82 AS INTEGER ) + + COUNT ( * ) + 88 ) + - + CAST ( NULL AS INTEGER ) + + 61 * 84 AS col1
----
736
NULL

query I rowsort
SELECT + 52 * - - 23 AS col2
----
1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT + COUNT( - 9 ) + + - MIN( - + COALESCE ( - 23, + 1 * - 38 * - 98 * - ( - 61 ) ) ) + - + CAST( + + 73 AS SIGNED ) + - 69 AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-8619
SELECT + COUNT ( - 9 ) + + - MIN ( - + COALESCE ( - 23, + 1 * - 38 * - 98 * - ( - 61 ) ) ) + - + CAST ( + + 73 AS INTEGER ) + - 69 AS col2
----
-164

query I rowsort
SELECT + + 22 + - CASE + 16 WHEN - 70 * - 38 * + - ( - + ( 6 ) ) THEN - 71 * - 2 * - - 56 / + 11 END + + 90
----
NULL

query I rowsort
SELECT ALL + ( + - 5 ) AS col2
----
-5

query II rowsort
SELECT + - 47 * + 77 col1, + 92
----
-3619
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL - SUM( DISTINCT 31 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - SUM ( DISTINCT 31 ) col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL SUM( + - CAST( - - 60 AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL SUM ( + - CAST ( - - 60 AS INTEGER ) )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT - - 83 DIV 96 * + - 71 + 18 + 66
----
84

skipif mysql # not compatible
query I rowsort label-8625
SELECT - - 83 / 96 * + - 71 + 18 + 66
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - 60 + 45 * - - MAX( - 11 ) AS col2
----
-555

skipif mysql # not compatible
query I rowsort label-8626
SELECT - 60 + 45 * - - MAX ( - 11 ) AS col2
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL COUNT( * ) * - + COALESCE ( - 35, - 92 * + + 92 ) * 4
----
140

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL COUNT ( * ) * - + COALESCE ( - 35, - 92 * + + 92 ) * 4
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT + 42 * + 83 * - ( CASE - - COUNT( * ) WHEN - 27 + 74 + ( - 90 ) + 10 THEN + COALESCE ( + + NULLIF ( 26, + 84 ), 9, - COUNT( * ) + - 73 + + 23 ) WHEN + - 9 THEN NULL END ) + 95 - - + NULLIF ( + + 60, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT + 42 * + 83 * - ( CASE - - COUNT ( * ) WHEN - 27 + 74 + ( - 90 ) + 10 THEN + COALESCE ( + + NULLIF ( 26, + 84 ), 9, - COUNT ( * ) + - 73 + + 23 ) WHEN + - 9 THEN NULL END ) + 95 - - + NULLIF ( + + 60, COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + 84 * + 80 * 50 AS col2
----
336000

query I rowsort
SELECT + - 46 * - 78 * - - 60
----
215280

query I rowsort
SELECT ALL - 82 * - 35 + 75
----
2945

query I rowsort
SELECT DISTINCT + 47 * + 71 + + 84
----
3421

query I rowsort
SELECT DISTINCT 19 * + 91
----
1729

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8634
SELECT ALL + NULLIF ( - 66, - 69 ) * - 52 + ( 44 ) DIV 35 AS col0, CASE + ( - + 47 ) WHEN - NULLIF ( + - COUNT( * ), ( - + NULLIF ( + 39, + 41 ) ) DIV - 79 + - 29 ) THEN - COUNT( - - 46 ) * + 17 - + + 5 WHEN 27 THEN NULL WHEN AVG ( DISTINCT 90 ) * + - 56 * + 48 * 29 * 99 THEN - 2 + - 57 WHEN 28 THEN NULL END
----
3433
NULL

skipif mysql # not compatible
query II rowsort label-8634
SELECT ALL + NULLIF ( - 66, - 69 ) * - 52 + ( 44 ) / 35 AS col0, CASE + ( - + 47 ) WHEN - NULLIF ( + - COUNT ( * ), ( - + NULLIF ( + 39, + 41 ) ) / - 79 + - 29 ) THEN - COUNT ( - - 46 ) * + 17 - + + 5 WHEN 27 THEN NULL WHEN AVG ( DISTINCT 90 ) * + - 56 * + 48 * 29 * 99 THEN - 2 + - 57 WHEN 28 THEN NULL END
----
3433
NULL

query I rowsort
SELECT - ( + + ( - 10 ) )
----
10

query I rowsort
SELECT CASE 30 WHEN + 67 * - 57 THEN 3 * - 9 * - 87 END
----
NULL

query I rowsort
SELECT - 66 * 75
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT - COUNT( * ) * - 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - COUNT ( * ) * - 12 AS col2
----
12

query I rowsort
SELECT ALL - 19 * ( - 16 )
----
304

query I rowsort
SELECT DISTINCT + ( - + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT - 38 * + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT - 38 * + COUNT ( * ) AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8642
SELECT ALL - MIN( - - 15 ) * - CAST( + 52 AS SIGNED ) - - - ( 18 ), + 6 AS col0
----
762
6

skipif mysql # not compatible
query II rowsort label-8642
SELECT ALL - MIN ( - - 15 ) * - CAST ( + 52 AS INTEGER ) - - - ( 18 ), + 6 AS col0
----
762
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL - COUNT( * ) * - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - COUNT ( * ) * - 23 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT - 88 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-8644
SELECT - 88 / 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - COUNT( * ) * - COUNT( DISTINCT + 57 ) * 53 * - 83 AS col0
----
-4399

skipif mysql # not compatible
query I rowsort label-8645
SELECT - COUNT ( * ) * - COUNT ( DISTINCT + 57 ) * 53 * - 83 AS col0
----
-4399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT - CAST( COUNT( DISTINCT - 97 ) AS SIGNED ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8646
SELECT - CAST ( COUNT ( DISTINCT - 97 ) AS INTEGER ) + + COUNT ( * )
----
0

query I rowsort
SELECT ALL + NULLIF ( - 34, 8 * + ( 39 ) ) - - - 72 col2
----
-106

query I rowsort
SELECT - CASE - 61 WHEN 61 * + 14 THEN NULL WHEN 49 * + 85 * + - 58 THEN - 1 END AS col1
----
NULL

query I rowsort
SELECT - 53 + - 1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT + 58 DIV 17
----
3

skipif mysql # not compatible
query I rowsort label-8650
SELECT + 58 / 17
----
3

query I rowsort
SELECT - 29 + + + 8 * - 86 AS col0
----
-717

query I rowsort
SELECT - ( 29 ) col0
----
-29

query I rowsort
SELECT - 99 + + + 97 * + 8
----
677

query I rowsort
SELECT ALL - 7 * + 19
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL 14 + + 17 + + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL 14 + + 17 + + COUNT ( * ) AS col2
----
32

query I rowsort
SELECT ALL 19 * + 55 * + + 12
----
12540

query I rowsort
SELECT + 58 * NULLIF ( - + 85, 12 * + 84 + + 6 )
----
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT - - 24 - + NULLIF ( + COUNT( * ), - + ( + 21 ) * + 75 * 94 + 24 - - 81 - + + COUNT( * ) + + 74 )
----
23

skipif mysql # not compatible
query I rowsort label-8658
SELECT - - 24 - + NULLIF ( + COUNT ( * ), - + ( + 21 ) * + 75 * 94 + 24 - - 81 - + + COUNT ( * ) + + 74 )
----
23

query I rowsort
SELECT ALL - 55 + + 49 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + COUNT( ALL + 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8660
SELECT + COUNT ( ALL + 74 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT + - 75 DIV 87 * - 29 + + + 94 * + ( 58 ) + - + 29 * + COUNT( * ) * + + 62 AS col0
----
3654

skipif mysql # not compatible
query I rowsort label-8661
SELECT + - 75 / 87 * - 29 + + + 94 * + ( 58 ) + - + 29 * + COUNT ( * ) * + + 62 AS col0
----
3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8662
SELECT ALL - COUNT( * ) DIV + 76 + - - 80 AS col2, - 82 * 2 AS col0
----
80
-164

skipif mysql # not compatible
query II rowsort label-8662
SELECT ALL - COUNT ( * ) / + 76 + - - 80 AS col2, - 82 * 2 AS col0
----
80
-164

query II rowsort
SELECT DISTINCT + - 86 AS col2, 37
----
-86
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT DISTINCT 91 DIV + ( + 87 ) + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT 91 / + ( + 87 ) + 74 AS col2
----
75

query I rowsort
SELECT + 4 + - 78
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8666
SELECT + CASE + - 40 WHEN - - 65 + AVG ( 42 ) THEN + ( + + 10 ) * + + NULLIF ( + - CASE + AVG ( ALL + 17 ) WHEN MIN( ALL - 72 ) DIV 44 * - - 71 THEN 70 END, - + 39 ) + - - 96 + + 0 END * 27, + 47 DIV + 89 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8666
SELECT + CASE + - 40 WHEN - - 65 + AVG ( 42 ) THEN + ( + + 10 ) * + + NULLIF ( + - CASE + AVG ( ALL + 17 ) WHEN MIN ( ALL - 72 ) / 44 * - - 71 THEN 70 END, - + 39 ) + - - 96 + + 0 END * 27, + 47 / + 89 col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL 41 DIV ( 41 ) + + 19 * 79 DIV 14 + 36
----
144

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL 41 / ( 41 ) + + 19 * 79 / 14 + 36
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT CAST( COUNT( ALL + - 1 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT CAST ( COUNT ( ALL + - 1 ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT 78 * + 87 * - - 77 col1
----
522522

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL 37 * + COUNT( * ) * - - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL 37 * + COUNT ( * ) * - - COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT COUNT( * ) * - - 34 * + - 70 + + + 83 * - + 14 * 49 + - 49 + + + 67 AS col1
----
-59300

skipif mysql # not compatible
query I rowsort label-8671
SELECT COUNT ( * ) * - - 34 * + - 70 + + + 83 * - + 14 * 49 + - 49 + + + 67 AS col1
----
-59300

query I rowsort
SELECT ALL 7 * ( 53 )
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL + 78 - + - COUNT( * ) + + COUNT( * ) + - 27 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL + 78 - + - COUNT ( * ) + + COUNT ( * ) + - 27 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT 0 + 44 DIV + COUNT( - + 50 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8674
SELECT 0 + 44 / + COUNT ( - + 50 ) AS col2
----
44

query I rowsort
SELECT ALL 1 * + + ( - - 80 ) AS col0
----
80

query I rowsort
SELECT 7 + + 88
----
95

query II rowsort
SELECT 4 AS col0, - 5 + - 14
----
4
-19

query I rowsort
SELECT 16 + + 73 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL - COUNT( ALL - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - COUNT ( ALL - 86 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT 83, - COUNT( * ) AS col0
----
83
-1

skipif mysql # not compatible
query II rowsort label-8680
SELECT 83, - COUNT ( * ) AS col0
----
83
-1

query I rowsort
SELECT 52 * + 59 + 98
----
3166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8682
SELECT SUM( DISTINCT ( + 38 ) ) * + CAST( 27 AS SIGNED ) AS col2
----
1026

skipif mysql # not compatible
query I rowsort label-8682
SELECT SUM ( DISTINCT ( + 38 ) ) * + CAST ( 27 AS INTEGER ) AS col2
----
1026

query I rowsort
SELECT 32 * - NULLIF ( - 48, ( - - 14 ) ) AS col0
----
1536

query II rowsort
SELECT ALL 94 AS col2, - 93 AS col1
----
94
-93

query I rowsort
SELECT ALL - 89 * + + CASE + + 60 WHEN 94 THEN - 57 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 51 + + - 57
----
-6

query II rowsort
SELECT DISTINCT 99 col1, 26 AS col1
----
99
26

query II rowsort
SELECT ALL 3 AS col0, 24 AS col2
----
3
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8689
SELECT ALL 5 AS col0, + CAST( NULL AS SIGNED ) - - ( - 24 ) + - ( - 94 )
----
5
NULL

skipif mysql # not compatible
query II rowsort label-8689
SELECT ALL 5 AS col0, + CAST ( NULL AS INTEGER ) - - ( - 24 ) + - ( - 94 )
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL + + 7 + - 90 + COUNT( * ) + - COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + + 7 + - 90 + COUNT ( * ) + - COUNT ( * ) AS col1
----
-83

query I rowsort
SELECT ALL + 20 + - + 40 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT - + MIN( + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8692
SELECT - + MIN ( + 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + MAX( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8693
SELECT + MAX ( 36 )
----
36

query II rowsort
SELECT - 33 + - 5, - 21 AS col2
----
-38
-21

query I rowsort
SELECT ALL + 75 + - 6
----
69

query I rowsort
SELECT - - 41 col0
----
41

query II rowsort
SELECT - + 85, ( - 74 ) AS col0
----
-85
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL + CAST( - - 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + CAST ( - - 31 AS INTEGER ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT + 0 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8700
SELECT DISTINCT COUNT( * ) + - + 70 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT COUNT ( * ) + - + 70 / + 68
----
0

query II rowsort
SELECT ALL 18 AS col0, 73 * + - 2
----
18
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT DISTINCT + ( + - 92 ) + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) - + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + ( + - 92 ) + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) - + - 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 1 * - + 3
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT ALL + COUNT( * ) AS col0, 97
----
1
97

skipif mysql # not compatible
query II rowsort label-8704
SELECT ALL + COUNT ( * ) AS col0, 97
----
1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8705
SELECT + - COUNT( * ) DIV - 89 * - + CAST( - COUNT( * ) AS SIGNED ) + - 49 * SUM( ALL - + 80 ) DIV - + 60 + + COUNT( + + 60 )
----
-64

skipif mysql # not compatible
query I rowsort label-8705
SELECT + - COUNT ( * ) / - 89 * - + CAST ( - COUNT ( * ) AS INTEGER ) + - 49 * SUM ( ALL - + 80 ) / - + 60 + + COUNT ( + + 60 )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8706
SELECT + - 90 AS col2, + SUM( DISTINCT + - ( + 59 ) ) + 89 + + 61 AS col0
----
-90
91

skipif mysql # not compatible
query II rowsort label-8706
SELECT + - 90 AS col2, + SUM ( DISTINCT + - ( + 59 ) ) + 89 + + 61 AS col0
----
-90
91

query I rowsort
SELECT + 58 + 36 AS col1
----
94

query I rowsort
SELECT ALL - - ( 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + MAX( + ( 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-8709
SELECT + MAX ( + ( 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT NULLIF ( - COUNT( * ), 27 * - COUNT( * ) ) * + - 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8710
SELECT NULLIF ( - COUNT ( * ), 27 * - COUNT ( * ) ) * + - 5 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT - 12 * + 42 + + 91 AS col1, - ( + COUNT( - - ( 26 ) ) ) AS col0
----
-413
-1

skipif mysql # not compatible
query II rowsort label-8711
SELECT - 12 * + 42 + + 91 AS col1, - ( + COUNT ( - - ( 26 ) ) ) AS col0
----
-413
-1

query I rowsort
SELECT ALL 31 - ( + + 62 ) + - 29 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT COALESCE ( - 48, 17 + + 84 ) * COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-8713
SELECT COALESCE ( - 48, 17 + + 84 ) * COUNT ( * ) col2
----
-48

query I rowsort
SELECT DISTINCT - 39 col2
----
-39

query I rowsort
SELECT ALL CASE 6 WHEN + 79 THEN COALESCE ( + 92, - 30 ) + COALESCE ( - 84, - - 1 ) + 38 ELSE NULL END / + 90 * - - ( - + ( + 87 ) ) * 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT 84 * + + COUNT( * ) - - + MIN( + 26 ) + + - 9 + + 20 + - MIN( 99 ) + + + 84 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-8716
SELECT 84 * + + COUNT ( * ) - - + MIN ( + 26 ) + + - 9 + + 20 + - MIN ( 99 ) + + + 84 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT 45 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT 45 / 93 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT ALL CAST( NULL AS SIGNED ) * ( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL CAST ( NULL AS INTEGER ) * ( + 35 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT ( - COALESCE ( 99, - 8 ) ) * 64 + - + CAST( NULL AS SIGNED ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT ( - COALESCE ( 99, - 8 ) ) * 64 + - + CAST ( NULL AS INTEGER ) + - 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT CAST( NULL AS SIGNED ) / 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT CAST ( NULL AS INTEGER ) / 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL COUNT ( * ) * 32
----
32

query I rowsort
SELECT ALL 88 + 80 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + - MIN( DISTINCT + 51 ) + - 41 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + - MIN ( DISTINCT + 51 ) + - 41 AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8724
SELECT CASE + - CASE - 15 WHEN COUNT( * ) - 58 + 72 + COUNT( * ) THEN NULL WHEN - 28 + + 58 THEN 74 ELSE NULL END WHEN 32 * + CAST( NULL AS DECIMAL ) + - + 48 / + - 23 THEN + 53 WHEN - + 62 * + 14 THEN + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT CASE + - CASE - 15 WHEN COUNT ( * ) - 58 + 72 + COUNT ( * ) THEN NULL WHEN - 28 + + 58 THEN 74 ELSE NULL END WHEN 32 * + CAST ( NULL AS REAL ) + - + 48 / + - 23 THEN + 53 WHEN - + 62 * + 14 THEN + 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT COUNT( * ) * - 99
----
-99

skipif mysql # not compatible
query I rowsort label-8725
SELECT COUNT ( * ) * - 99
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8726
SELECT CASE + - COUNT( * ) WHEN 56 THEN - 87 * + + 92 WHEN + 38 * - 48 THEN NULL ELSE NULL END AS col0, + 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-8726
SELECT CASE + - COUNT ( * ) WHEN 56 THEN - 87 * + + 92 WHEN + 38 * - 48 THEN NULL ELSE NULL END AS col0, + 83
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT + CASE + 11 WHEN COUNT( * ) THEN + 74 * + + ( - + 23 ) WHEN 46 + - + 90 THEN - 1 WHEN - + ( - ( + 56 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT + CASE + 11 WHEN COUNT ( * ) THEN + 74 * + + ( - + 23 ) WHEN 46 + - + 90 THEN - 1 WHEN - + ( - ( + 56 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 63 + 38 + 82 AS col1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL + - 79 * + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + - 79 * + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - SUM( - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8730
SELECT - SUM ( - 86 )
----
86

query I rowsort
SELECT ALL + - 4 - 44 AS col2
----
-48

query I rowsort
SELECT + NULLIF ( - 59, - 82 ) + + 33 AS col2
----
-26

query II rowsort
SELECT + 47 + + 61, 20 * - 36 AS col0
----
108
-720

query I rowsort
SELECT CASE - 12 WHEN - 22 + + ( - - 87 ) THEN - 75 + - + 51 + - + 38 * - 64 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8735
SELECT DISTINCT + 40 * 60 * + + 77 + - - 51 - + + 82 * + 79 * - CAST( NULL AS DECIMAL ) * COUNT( * ) - + 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + 40 * 60 * + + 77 + - - 51 - + + 82 * + 79 * - CAST ( NULL AS REAL ) * COUNT ( * ) - + 65 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8736
SELECT DISTINCT + 23 AS col1, CASE + 92 WHEN 61 - - + 27 THEN NULL WHEN + - CAST( NULL AS SIGNED ) * - 56 THEN NULL ELSE - 98 * - 83 END AS col0
----
23
8134

skipif mysql # not compatible
query II rowsort label-8736
SELECT DISTINCT + 23 AS col1, CASE + 92 WHEN 61 - - + 27 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) * - 56 THEN NULL ELSE - 98 * - 83 END AS col0
----
23
8134

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL 90 * - + 42 * - COUNT( ALL - 45 )
----
3780

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL 90 * - + 42 * - COUNT ( ALL - 45 )
----
3780

query I rowsort
SELECT - 96 * - 64 AS col2
----
6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT + COALESCE ( 80, + CASE + - COALESCE ( - 12, 66 * + - 27 ) WHEN + - 53 THEN NULL WHEN NULLIF ( + 66, - 46 * 22 ) THEN NULL ELSE CAST( + 9 AS SIGNED ) * - 69 + 61 + - 76 END ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT + COALESCE ( 80, + CASE + - COALESCE ( - 12, 66 * + - 27 ) WHEN + - 53 THEN NULL WHEN NULLIF ( + 66, - 46 * 22 ) THEN NULL ELSE CAST ( + 9 AS INTEGER ) * - 69 + 61 + - 76 END ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT DISTINCT + 42, MIN( DISTINCT - 44 ) AS col1
----
42
-44

skipif mysql # not compatible
query II rowsort label-8740
SELECT DISTINCT + 42, MIN ( DISTINCT - 44 ) AS col1
----
42
-44

query I rowsort
SELECT NULLIF ( - 73, - 66 )
----
-73

query I rowsort
SELECT - 36 * + 10 AS col2
----
-360

query I rowsort
SELECT + 42 * 25 * 94 AS col1
----
98700

query I rowsort
SELECT - 53 + 85
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT + MIN( ALL + + 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-8745
SELECT + MIN ( ALL + + 92 ) col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8746
SELECT CASE + CASE 93 WHEN ( + 81 ) THEN 76 * + 42 - - 47 + - 48 - + - CAST( NULL AS SIGNED ) * - + 95 + CASE - 93 WHEN 73 THEN + COUNT( * ) ELSE NULL END ELSE NULL END WHEN + - NULLIF ( + + 9, COUNT( * ) ) - 26 THEN 2 ELSE + 89 END
----
89

skipif mysql # not compatible
query I rowsort label-8746
SELECT CASE + CASE 93 WHEN ( + 81 ) THEN 76 * + 42 - - 47 + - 48 - + - CAST ( NULL AS INTEGER ) * - + 95 + CASE - 93 WHEN 73 THEN + COUNT ( * ) ELSE NULL END ELSE NULL END WHEN + - NULLIF ( + + 9, COUNT ( * ) ) - 26 THEN 2 ELSE + 89 END
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL + 89 * + COALESCE ( + 61, + - 70 * - + 38 ) + + + 98 + + 68 * - COUNT( * )
----
5459

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL + 89 * + COALESCE ( + 61, + - 70 * - + 38 ) + + + 98 + + 68 * - COUNT ( * )
----
5459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT - 6 * ( - COUNT( ALL COALESCE ( + + 32, CAST( 52 AS SIGNED ) * - 30 + - 25 + 94 ) ) ) + + 58 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - 6 * ( - COUNT ( ALL COALESCE ( + + 32, CAST ( 52 AS INTEGER ) * - 30 + - 25 + 94 ) ) ) + + 58 AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT + 76 + - 83 / AVG ( DISTINCT CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT + 76 + - 83 / AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT DISTINCT + 89, + COUNT( + 52 ) AS col0
----
89
1

skipif mysql # not compatible
query II rowsort label-8750
SELECT DISTINCT + 89, + COUNT ( + 52 ) AS col0
----
89
1

query I rowsort
SELECT + + 64 + - + 38
----
26

query I rowsort
SELECT + 55 * - - 38 * - 67 AS col1
----
-140030

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + ( 95 ) * - COUNT( * ) - + 32
----
-127

skipif mysql # not compatible
query I rowsort label-8753
SELECT + ( 95 ) * - COUNT ( * ) - + 32
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL COUNT( * ) * - + 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL COUNT ( * ) * - + 60 AS col2
----
-60

query I rowsort
SELECT DISTINCT ( - 51 ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT + - CASE - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 31 THEN + - 95 * + NULLIF ( - 60, + 42 ) * + 83 + COUNT( * ) + COALESCE ( 41, 21 ) ELSE 92 END * 91 * + 57 AS col0
----
-477204

skipif mysql # not compatible
query I rowsort label-8756
SELECT + - CASE - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 31 THEN + - 95 * + NULLIF ( - 60, + 42 ) * + 83 + COUNT ( * ) + COALESCE ( 41, 21 ) ELSE 92 END * 91 * + 57 AS col0
----
-477204

onlyif mysql # DIV for integer division: 
query II rowsort label-8757
SELECT ALL 65 * ( 67 ) AS col2, 44 + 54 DIV - 1 AS col1
----
4355
-10

skipif mysql # not compatible
query II rowsort label-8757
SELECT ALL 65 * ( 67 ) AS col2, 44 + 54 / - 1 AS col1
----
4355
-10

query I rowsort
SELECT ALL + 7 * + 80
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL + COUNT( + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + COUNT ( + 57 )
----
1

query I rowsort
SELECT DISTINCT 47 col2
----
47

query II rowsort
SELECT ALL + 14 AS col2, + 95 col2
----
14
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT + 80 + MAX( + 63 ) AS col2, 39 + + + 59 * - 21 + 42 + + 32
----
143
-1126

skipif mysql # not compatible
query II rowsort label-8762
SELECT + 80 + MAX ( + 63 ) AS col2, 39 + + + 59 * - 21 + 42 + + 32
----
143
-1126

query I rowsort
SELECT + - 86 * + + 87
----
-7482

query II rowsort
SELECT ALL 37, + 72 AS col2
----
37
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT DISTINCT - MAX( ALL - - 59 ) * 12 * 47
----
-33276

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT - MAX ( ALL - - 59 ) * 12 * 47
----
-33276

query I rowsort
SELECT ALL ( - 53 ) AS col1
----
-53

query I rowsort
SELECT - 13 + 59 AS col1
----
46

query I rowsort
SELECT ALL 78 * + - 84
----
-6552

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT 20 DIV - 45 + - 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-8769
SELECT 20 / - 45 + - 31 AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8770
SELECT ALL + MIN( - + CAST( NULL AS SIGNED ) ) AS col0, 9 + + 47 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0, 9 + + 47 AS col0
----
NULL
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT + CAST( + 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-8771
SELECT + CAST ( + 37 AS INTEGER )
----
37

query I rowsort
SELECT - 66 + - ( 52 ) + - - 93 + + - ( + 79 ) AS col2
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT + CAST( + + 69 AS SIGNED ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8773
SELECT + CAST ( + + 69 AS INTEGER ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8774
SELECT + 36 DIV + 89 AS col1, 45 * + 48 * COUNT( * ) + + SUM( ALL + 87 ) AS col2
----
0
2247

skipif mysql # not compatible
query II rowsort label-8774
SELECT + 36 / + 89 AS col1, 45 * + 48 * COUNT ( * ) + + SUM ( ALL + 87 ) AS col2
----
0
2247

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT ALL - 72 DIV - 34 + + 1 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - 72 / - 34 + + 1 AS col1
----
3

query II rowsort
SELECT - 54 * + 91 AS col0, ( 43 ) AS col2
----
-4914
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8777
SELECT 84 * + 5 + + CAST( + 39 AS SIGNED )
----
459

skipif mysql # not compatible
query I rowsort label-8777
SELECT 84 * + 5 + + CAST ( + 39 AS INTEGER )
----
459

query I rowsort
SELECT ALL + ( - 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT ALL - 30 DIV - 16
----
1

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - 30 / - 16
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8780
SELECT - 6 DIV + + 46
----
0

skipif mysql # not compatible
query I rowsort label-8780
SELECT - 6 / + + 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8781
SELECT ALL - MAX( - - 91 ) DIV + 13 + + - 72 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL - MAX ( - - 91 ) / + 13 + + - 72 AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT 21 DIV 49 * - COUNT( * ) + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT 21 / 49 * - COUNT ( * ) + - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT + MIN( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8783
SELECT + MIN ( 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL + SUM( CASE - 25 WHEN 33 THEN + - 66 - + - 24 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + SUM ( CASE - 25 WHEN 33 THEN + - 66 - + - 24 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ( + MAX( DISTINCT + 7 ) )
----
7

skipif mysql # not compatible
query I rowsort label-8785
SELECT ( + MAX ( DISTINCT + 7 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8786
SELECT DISTINCT + 63 * + - 39 + + MIN( + CAST( NULL AS DECIMAL ) ), - 10 AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8786
SELECT DISTINCT + 63 * + - 39 + + MIN ( + CAST ( NULL AS REAL ) ), - 10 AS col0
----
NULL
-10

query I rowsort
SELECT ALL + 79 * + 11 + - 62
----
807

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT - 64 - - - MIN( ALL - 26 )
----
-38

skipif mysql # not compatible
query I rowsort label-8788
SELECT - 64 - - - MIN ( ALL - 26 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT DISTINCT + CAST( 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT + CAST ( 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8790
SELECT DISTINCT - 86 * - - 0 * + - 54 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT - 86 * - - 0 * + - 54 / + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - - 45 * 97
----
4365

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT + 88 - - MAX( DISTINCT 0 ) + - + 23 + + 80 * 48 * + + 95 AS col2, 23 * + 50 col2
----
364865
1150

skipif mysql # not compatible
query II rowsort label-8792
SELECT + 88 - - MAX ( DISTINCT 0 ) + - + 23 + + 80 * 48 * + + 95 AS col2, 23 * + 50 col2
----
364865
1150

query I rowsort
SELECT - + 72 + - ( - 12 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT MAX( ALL + - 30 ) * + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8794
SELECT MAX ( ALL + - 30 ) * + - COUNT ( * )
----
30

query I rowsort
SELECT ALL + 20 * 40 AS col1
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT CAST( - 55 AS SIGNED ) * - 12
----
660

skipif mysql # not compatible
query I rowsort label-8796
SELECT CAST ( - 55 AS INTEGER ) * - 12
----
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT ALL 61 * COUNT( * ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL 61 * COUNT ( * ) / + 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT ALL + 71 DIV 5
----
14

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + 71 / 5
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT - + CAST( ( - 41 ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-8799
SELECT - + CAST ( ( - 41 ) AS INTEGER )
----
41

query I rowsort
SELECT DISTINCT 37 + 70 AS col2
----
107

query I rowsort
SELECT 20 + 28
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT 90 * + CASE + 25 WHEN + + ( - 34 ) THEN + + MAX( DISTINCT - 0 ) END * COUNT( * ) - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT 90 * + CASE + 25 WHEN + + ( - 34 ) THEN + + MAX ( DISTINCT - 0 ) END * COUNT ( * ) - + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT 26 * - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8803
SELECT 26 * - - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL 72 + + 2 * + MIN( DISTINCT ( 84 ) ) * COUNT( * ) AS col2
----
240

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL 72 + + 2 * + MIN ( DISTINCT ( 84 ) ) * COUNT ( * ) AS col2
----
240

query II rowsort
SELECT ALL 63 AS col0, 88
----
63
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT COALESCE ( - CASE WHEN 78 IS NOT NULL THEN NULL ELSE + COUNT( * ) END, + - 7 ) - 41
----
-48

skipif mysql # not compatible
query I rowsort label-8806
SELECT COALESCE ( - CASE WHEN 78 IS NOT NULL THEN NULL ELSE + COUNT ( * ) END, + - 7 ) - 41
----
-48

query I rowsort
SELECT ALL 24 + 72 * 97 AS col0
----
7008

query I rowsort
SELECT 16 * 17
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT ALL 36 + - + ( - 64 ) DIV 72 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL 36 + - + ( - 64 ) / 72 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT - NULLIF ( COUNT( * ), + 76 * + AVG ( DISTINCT + + 21 ) * 72 * + 81 + SUM( 61 ) ) + - 56 * NULLIF ( 29, - NULLIF ( - NULLIF ( + - 55, - 48 ), + 22 * - COUNT( * ) + + 56 ) ) AS col1
----
-1625

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 76 * + AVG ( DISTINCT + + 21 ) * 72 * + 81 + SUM ( 61 ) ) + - 56 * NULLIF ( 29, - NULLIF ( - NULLIF ( + - 55, - 48 ), + 22 * - COUNT ( * ) + + 56 ) ) AS col1
----
-1625

query I rowsort
SELECT ALL - 25 + + ( 56 ) AS col1
----
31

query I rowsort
SELECT 41 - 83
----
-42

query I rowsort
SELECT DISTINCT 6 * - 51
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - SUM( ALL 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - SUM ( ALL 27 ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8815
SELECT - COALESCE ( - NULLIF ( ( - - ( - - 73 ) ), - + 26 ), + 75 - + ( + - 45 ), - 59 * - COUNT( * ) DIV + COALESCE ( + + CAST( - 52 AS SIGNED ), + 89 * - 54 ) ) DIV + 33 + COUNT( DISTINCT - 75 )
----
3

skipif mysql # not compatible
query I rowsort label-8815
SELECT - COALESCE ( - NULLIF ( ( - - ( - - 73 ) ), - + 26 ), + 75 - + ( + - 45 ), - 59 * - COUNT ( * ) / + COALESCE ( + + CAST ( - 52 AS INTEGER ), + 89 * - 54 ) ) / + 33 + COUNT ( DISTINCT - 75 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8816
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN 34 * + MAX( DISTINCT + + 72 ) * CAST( NULL AS DECIMAL ) + COUNT( * ) + - CASE - COALESCE ( + 39, + + 23 * + - 14 + + - 68 + - MIN( - - 3 ), 56 * + COUNT( * ) + + - 38 ) WHEN - 80 * - - 52 - ( + + COUNT( * ) ) * + ( + COUNT( * ) ) THEN + COUNT( + 27 ) WHEN - COALESCE ( - + 23, + - 23, - 6, 3 ) * - 16 THEN NULL ELSE + 45 - - 10 * + 29 END + + + NULLIF ( + 40, 72 - - - ( - + COUNT( ALL + + 46 ) ) + - 44 ) * + 87 / - CAST( 89 AS SIGNED ) * + CAST( - 13 + COUNT( * ) AS DECIMAL ) + 87 * 55 THEN CAST( NULL AS SIGNED ) * 85 + 77 WHEN - 43 * COUNT( * ) THEN - 65 + 81 ELSE 65 - 76 * 98 END col0
----
7383

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN 34 * + MAX ( DISTINCT + + 72 ) * CAST ( NULL AS REAL ) + COUNT ( * ) + - CASE - COALESCE ( + 39, + + 23 * + - 14 + + - 68 + - MIN ( - - 3 ), 56 * + COUNT ( * ) + + - 38 ) WHEN - 80 * - - 52 - ( + + COUNT ( * ) ) * + ( + COUNT ( * ) ) THEN + COUNT ( + 27 ) WHEN - COALESCE ( - + 23, + - 23, - 6, 3 ) * - 16 THEN NULL ELSE + 45 - - 10 * + 29 END + + + NULLIF ( + 40, 72 - - - ( - + COUNT ( ALL + + 46 ) ) + - 44 ) * + 87 / - CAST ( 89 AS INTEGER ) * + CAST ( - 13 + COUNT ( * ) AS REAL ) + 87 * 55 THEN CAST ( NULL AS INTEGER ) * 85 + 77 WHEN - 43 * COUNT ( * ) THEN - 65 + 81 ELSE 65 - 76 * 98 END col0
----
7383

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT COUNT( * ) + - COUNT( * ) * 1, - 57 - - + 61 AS col2
----
0
4

skipif mysql # not compatible
query II rowsort label-8817
SELECT COUNT ( * ) + - COUNT ( * ) * 1, - 57 - - + 61 AS col2
----
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT 67 * + CAST( + COUNT( * ) AS SIGNED ) * 69 col0
----
4623

skipif mysql # not compatible
query I rowsort label-8818
SELECT 67 * + CAST ( + COUNT ( * ) AS INTEGER ) * 69 col0
----
4623

query I rowsort
SELECT 79 * - 16 AS col1
----
-1264

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT + 79 * + 86 + - 27 - - - MIN( - 57 ) * 48 * - + 21 + + 55
----
-50634

skipif mysql # not compatible
query I rowsort label-8820
SELECT + 79 * + 86 + - 27 - - - MIN ( - 57 ) * 48 * - + 21 + + 55
----
-50634

query I rowsort
SELECT ALL + 31 - - + 22 + 86 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - COUNT( * ) * ( 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8822
SELECT - COUNT ( * ) * ( 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT COALESCE ( + 82, + 56 * - + COUNT( * ) - NULLIF ( - - 47, + 95 ) DIV 83 ) * - 24
----
-1968

skipif mysql # not compatible
query I rowsort label-8823
SELECT COALESCE ( + 82, + 56 * - + COUNT ( * ) - NULLIF ( - - 47, + 95 ) / 83 ) * - 24
----
-1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8824
SELECT ALL + + 72 * + COALESCE ( 95, + CAST( + 84 AS SIGNED ), - 60 * - COUNT( * ) ) * 51 + ( + COUNT( * ) ) + - 68 DIV 41
----
348840

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + + 72 * + COALESCE ( 95, + CAST ( + 84 AS INTEGER ), - 60 * - COUNT ( * ) ) * 51 + ( + COUNT ( * ) ) + - 68 / 41
----
348840

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + + 55 / - CASE + COALESCE ( + ( - + 3 ), - 25, - + SUM( - - 10 ) + - + 53 ) WHEN - COUNT( * ) THEN NULL WHEN - 51 THEN + + 61 + 66 + + COALESCE ( 43, + 87 + + 11, - 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + + 55 / - CASE + COALESCE ( + ( - + 3 ), - 25, - + SUM ( - - 10 ) + - + 53 ) WHEN - COUNT ( * ) THEN NULL WHEN - 51 THEN + + 61 + 66 + + COALESCE ( 43, + 87 + + 11, - 18 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT + COUNT( * ) * + ( - + 87 ) + + CAST( NULL AS SIGNED ) + + 24 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT + COUNT ( * ) * + ( - + 87 ) + + CAST ( NULL AS INTEGER ) + + 24 * 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT ALL - + ( - SUM( DISTINCT 77 ) ), + SUM( 54 ) AS col1
----
77
54

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL - + ( - SUM ( DISTINCT 77 ) ), + SUM ( 54 ) AS col1
----
77
54

query I rowsort
SELECT 69 + 49 + 5 AS col2
----
123

query I rowsort
SELECT NULLIF ( - ( + + 46 ), ( + 43 ) ) * 30
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL - - 67 * - + COUNT( * ) * - 16 * + + 71 AS col1
----
76112

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - - 67 * - + COUNT ( * ) * - 16 * + + 71 AS col1
----
76112

query I rowsort
SELECT DISTINCT - - 51 * 49 AS col0
----
2499

query I rowsort
SELECT ALL ( - 87 ) col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT COALESCE ( + - 67, 95 + - CAST( NULL AS SIGNED ) ) * - 27 AS col1
----
1809

skipif mysql # not compatible
query I rowsort label-8833
SELECT COALESCE ( + - 67, 95 + - CAST ( NULL AS INTEGER ) ) * - 27 AS col1
----
1809

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT ALL - + COUNT( * ) * - 80 * - COUNT( * ) + 88 * - 9 AS col2, + 21 + COALESCE ( COUNT( * ), - COUNT( * ) * 92 + + 62, - 10 + 96 + 78 * + 42 * + COUNT( * ) + - 68 ) AS col2
----
-872
22

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL - + COUNT ( * ) * - 80 * - COUNT ( * ) + 88 * - 9 AS col2, + 21 + COALESCE ( COUNT ( * ), - COUNT ( * ) * 92 + + 62, - 10 + 96 + 78 * + 42 * + COUNT ( * ) + - 68 ) AS col2
----
-872
22

query I rowsort
SELECT ALL - 64 * - - 77 * 44 AS col1
----
-216832

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT + COUNT( * ) + COUNT( DISTINCT 69 ) * NULLIF ( COUNT( * ), - - 59 - - 79 - - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-8836
SELECT + COUNT ( * ) + COUNT ( DISTINCT 69 ) * NULLIF ( COUNT ( * ), - - 59 - - 79 - - COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8837
SELECT COUNT( * ) DIV + CAST( - + 72 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8837
SELECT COUNT ( * ) / + CAST ( - + 72 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL 31 + + 46 + + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL 31 + + 46 + + COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 6 + - 22 + - - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8839
SELECT 6 + - 22 + - - COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT COUNT( * ) - - COUNT( * ) + - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8840
SELECT COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL NULLIF ( - ( + 48 ), + NULLIF ( - + 24, - + COUNT( ALL - + 47 ) * - + 36 / + COUNT( * ) ) + 54 ) * 77 AS col2
----
-3696

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL NULLIF ( - ( + 48 ), + NULLIF ( - + 24, - + COUNT ( ALL - + 47 ) * - + 36 / + COUNT ( * ) ) + 54 ) * 77 AS col2
----
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT ALL COUNT( * ) AS col2, - 39 AS col0
----
1
-39

skipif mysql # not compatible
query II rowsort label-8842
SELECT ALL COUNT ( * ) AS col2, - 39 AS col0
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL 18 + MAX( ALL + + 19 )
----
37

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 18 + MAX ( ALL + + 19 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8844
SELECT - 74, COUNT( * ) AS col1
----
-74
1

skipif mysql # not compatible
query II rowsort label-8844
SELECT - 74, COUNT ( * ) AS col1
----
-74
1

query II rowsort
SELECT 75, 63 AS col2
----
75
63

query I rowsort
SELECT ALL 65 * - NULLIF ( + 85, 16 ) AS col0
----
-5525

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT 51 + - + 57 DIV + 35
----
50

skipif mysql # not compatible
query I rowsort label-8847
SELECT 51 + - + 57 / + 35
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT CAST( - + 78 AS SIGNED ) + + - 10 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8848
SELECT CAST ( - + 78 AS INTEGER ) + + - 10 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8849
SELECT ALL + CAST( CAST( - 60 AS DECIMAL ) AS SIGNED ) * - - 39 DIV 13 - + ( - + 8 ) AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL + CAST ( CAST ( - 60 AS REAL ) AS INTEGER ) * - - 39 / 13 - + ( - + 8 ) AS col1
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8850
SELECT + 88, 99 - + CAST( NULL AS SIGNED ) AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-8850
SELECT + 88, 99 - + CAST ( NULL AS INTEGER ) AS col0
----
88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT AVG ( DISTINCT - 41 ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) + + COUNT( * ) * 51 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT AVG ( DISTINCT - 41 ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + COUNT ( * ) * 51 * 71
----
NULL

query I rowsort
SELECT ALL - 14 * 89 - - 44
----
-1202

query II rowsort
SELECT DISTINCT - 89 AS col0, 25 AS col2
----
-89
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + SUM( DISTINCT 62 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-8854
SELECT + SUM ( DISTINCT 62 ) col0
----
62

query I rowsort
SELECT ALL + - ( + 76 ) * - 76 * + 68
----
392768

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT DISTINCT - ( + MIN( - 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT - ( + MIN ( - 94 ) )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT + MAX( ALL - + CAST( - 22 AS SIGNED ) ) * 71 - - 99 AS col0
----
1661

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT + MAX ( ALL - + CAST ( - 22 AS INTEGER ) ) * 71 - - 99 AS col0
----
1661

onlyif mysql # DIV for integer division: 
query I rowsort label-8858
SELECT + - 14 DIV ( - NULLIF ( - 80, - + ( 65 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8858
SELECT + - 14 / ( - NULLIF ( - 80, - + ( 65 ) ) ) AS col2
----
0

query I rowsort
SELECT - COALESCE ( + 93, 61, + - 80 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT ALL + COUNT( * ) AS col2, - 71 AS col1
----
1
-71

skipif mysql # not compatible
query II rowsort label-8860
SELECT ALL + COUNT ( * ) AS col2, - 71 AS col1
----
1
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT + 32 * AVG ( + 79 ) + 7 + - CAST( + 71 AS SIGNED ) + - 36 * + - 45 * CAST( NULL AS SIGNED ) * - - ( - CAST( + 48 AS SIGNED ) ) * + 50 - + 11 * - 64 - - + 47 * + + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT + 32 * AVG ( + 79 ) + 7 + - CAST ( + 71 AS INTEGER ) + - 36 * + - 45 * CAST ( NULL AS INTEGER ) * - - ( - CAST ( + 48 AS INTEGER ) ) * + 50 - + 11 * - 64 - - + 47 * + + 86 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 66 AS col0, 31 - 11 AS col0
----
66
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT + 21 AS col1, 52 + - + COUNT( DISTINCT - 59 )
----
21
51

skipif mysql # not compatible
query II rowsort label-8863
SELECT + 21 AS col1, 52 + - + COUNT ( DISTINCT - 59 )
----
21
51

query I rowsort
SELECT ALL + - 76 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + COALESCE ( + 40, + COALESCE ( 68, + 5, 11 + 23 ) - - + 43 * MAX( DISTINCT - + 30 ), - 65, + 47 )
----
40

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + COALESCE ( + 40, + COALESCE ( 68, + 5, 11 + 23 ) - - + 43 * MAX ( DISTINCT - + 30 ), - 65, + 47 )
----
40

query I rowsort
SELECT - 60 * - 92 * 10
----
55200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8867
SELECT ALL + 4 DIV + + COUNT( DISTINCT + 75 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + 4 / + + COUNT ( DISTINCT + 75 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL COUNT( + - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL COUNT ( + - 3 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL - - 73 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - - 73 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT - + CAST( NULL AS SIGNED ) - + NULLIF ( + 26, + + ( ( - + 9 ) ) - CAST( + 61 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT - + CAST ( NULL AS INTEGER ) - + NULLIF ( + 26, + + ( ( - + 9 ) ) - CAST ( + 61 AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 12 * 22
----
-264

query II rowsort
SELECT - - 49 - 40 col0, 76
----
9
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL - SUM( + ( + 78 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL - SUM ( + ( + 78 ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT - + 74 * - SUM( ALL + - 47 ) * 5 + - 57 + + COUNT( * ) AS col1
----
-17446

skipif mysql # not compatible
query I rowsort label-8874
SELECT - + 74 * - SUM ( ALL + - 47 ) * 5 + - 57 + + COUNT ( * ) AS col1
----
-17446

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL + 68 + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + 68 + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT DISTINCT - 45 AS col0, COUNT( 40 ) * + - 58 * - 22 + + - 40 + 81 + + MIN( - 64 ) - - 43 * - + 26 * + NULLIF ( COALESCE ( + 10, + + 2 * - 51 + - - 43 ), 79 + - 30 * - 9 * - 52 / 27 * - - 36 )
----
-45
-9927

skipif mysql # not compatible
query II rowsort label-8876
SELECT DISTINCT - 45 AS col0, COUNT ( 40 ) * + - 58 * - 22 + + - 40 + 81 + + MIN ( - 64 ) - - 43 * - + 26 * + NULLIF ( COALESCE ( + 10, + + 2 * - 51 + - - 43 ), 79 + - 30 * - 9 * - 52 / 27 * - - 36 )
----
-45
-9927

query I rowsort
SELECT - 55 * 87
----
-4785

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8878
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), 38 * - 76 + - CAST( + - 57 AS SIGNED ), + - 85 ) AS col0, + 35
----
-2831
35

skipif mysql # not compatible
query II rowsort label-8878
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), 38 * - 76 + - CAST ( + - 57 AS INTEGER ), + - 85 ) AS col0, + 35
----
-2831
35

query I rowsort
SELECT DISTINCT + ( - 33 ) + 4
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8880
SELECT ALL + CASE + 51 WHEN + + 56 + 59 THEN 77 ELSE + - COALESCE ( SUM( + 22 ), 0 - COUNT( * ) ) * 33 END + + 18 AS col2, + 79 * - - 67
----
-708
5293

skipif mysql # not compatible
query II rowsort label-8880
SELECT ALL + CASE + 51 WHEN + + 56 + 59 THEN 77 ELSE + - COALESCE ( SUM ( + 22 ), 0 - COUNT ( * ) ) * 33 END + + 18 AS col2, + 79 * - - 67
----
-708
5293

query I rowsort
SELECT ALL COALESCE ( - NULLIF ( - 97, + 51 ), + 15 + - 68 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT + COUNT( * ) + 92 + 80
----
173

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + COUNT ( * ) + 92 + 80
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT ALL + CAST( NULL AS SIGNED ) - - NULLIF ( - + 65, 27 ) * MAX( + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 65, 27 ) * MAX ( + 61 )
----
NULL

query II rowsort
SELECT ALL ( 3 ) AS col2, - 38 AS col2
----
3
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT - 65 - + NULLIF ( + - 95, + 50 ) + + - COUNT( * ), - 8 AS col1
----
29
-8

skipif mysql # not compatible
query II rowsort label-8885
SELECT - 65 - + NULLIF ( + - 95, + 50 ) + + - COUNT ( * ), - 8 AS col1
----
29
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8886
SELECT + ( + COUNT( * ) ) DIV - COUNT( * ) col1, 17 AS col2
----
-1
17

skipif mysql # not compatible
query II rowsort label-8886
SELECT + ( + COUNT ( * ) ) / - COUNT ( * ) col1, 17 AS col2
----
-1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT - 17 + - 68 - - + 81 - COUNT( * ) * 50 * - + 27 * - + 81 * - 57 AS col0
----
6232946

skipif mysql # not compatible
query I rowsort label-8887
SELECT - 17 + - 68 - - + 81 - COUNT ( * ) * 50 * - + 27 * - + 81 * - 57 AS col0
----
6232946

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT + MIN( DISTINCT + ( + 27 ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT + MIN ( DISTINCT + ( + 27 ) ) AS col1
----
27

query I rowsort
SELECT DISTINCT + 90 * + + 1 * + 38 * + - 35
----
-119700

query I rowsort
SELECT ALL + 36 * + 94 AS col2
----
3384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8891
SELECT ( + 2 ) DIV - + 37 * + + COUNT( * ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8891
SELECT ( + 2 ) / - + 37 * + + COUNT ( * ) + + COUNT ( * )
----
1

query II rowsort
SELECT 54 * + 96 + - CASE - 70 WHEN + + 77 THEN + 93 END * - NULLIF ( - - 9, + 18 ) * 65 * + 55 - 14 AS col1, 13 * - 65 * + 55
----
NULL
-46475

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL + CASE + 19 WHEN - 84 * - 47 * + 98 * 72 THEN NULL WHEN - + 49 THEN + COUNT( * ) + - ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + CASE + 19 WHEN - 84 * - 47 * + 98 * 72 THEN NULL WHEN - + 49 THEN + COUNT ( * ) + - ( - COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - + 85 * MAX( - 18 ) * + - COUNT( - 10 ) + + 0 AS col2
----
-1530

skipif mysql # not compatible
query I rowsort label-8894
SELECT - + 85 * MAX ( - 18 ) * + - COUNT ( - 10 ) + + 0 AS col2
----
-1530

query I rowsort
SELECT + 8 + 93 * + 73
----
6797

query I rowsort
SELECT DISTINCT + - 47 AS col2
----
-47

query I rowsort
SELECT + ( 99 ) + 30 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + COUNT( DISTINCT - - 66 ) - + 71 + + + 88 * - + COUNT( ALL 28 )
----
-158

skipif mysql # not compatible
query I rowsort label-8898
SELECT + COUNT ( DISTINCT - - 66 ) - + 71 + + + 88 * - + COUNT ( ALL 28 )
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT + 17 * + 10 + - - 71 * - 72 + 39 + - + COUNT( * ) AS col2
----
-4904

skipif mysql # not compatible
query I rowsort label-8899
SELECT + 17 * + 10 + - - 71 * - 72 + 39 + - + COUNT ( * ) AS col2
----
-4904

query I rowsort
SELECT ALL - 8 * ( - + 55 ) col1
----
440

query I rowsort
SELECT ALL + - 71 * - 64 + - 39 + + 32
----
4537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT DISTINCT 92 * + 52 DIV + ( - COUNT( * ) )
----
-4784

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT 92 * + 52 / + ( - COUNT ( * ) )
----
-4784

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT - - COALESCE ( 82, CASE - 89 WHEN + COUNT( * ) THEN - + COUNT( * ) END ) * - 13 + - 58
----
-1124

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT - - COALESCE ( 82, CASE - 89 WHEN + COUNT ( * ) THEN - + COUNT ( * ) END ) * - 13 + - 58
----
-1124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT + - 78 + + - CAST( 1 AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8904
SELECT + - 78 + + - CAST ( 1 AS INTEGER ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) col0
----
-1

query I rowsort
SELECT - + 47 * + - 82 + - 69 * + 53
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + COUNT( * ) * - ( + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-8907
SELECT + COUNT ( * ) * - ( + 93 )
----
-93

query I rowsort
SELECT + 31 + - 77
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT + 90 DIV - - 17
----
5

skipif mysql # not compatible
query I rowsort label-8909
SELECT + 90 / - - 17
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + 85 * - - 30 + + + SUM( 99 ) AS col2
----
2649

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + 85 * - - 30 + + + SUM ( 99 ) AS col2
----
2649

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT ALL - 2 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL - 2 / + 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8912
SELECT DISTINCT - 84 DIV + MAX( - 96 ), - 70 + - 72 AS col0
----
0
-142

skipif mysql # not compatible
query II rowsort label-8912
SELECT DISTINCT - 84 / + MAX ( - 96 ), - 70 + - 72 AS col0
----
0
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT DISTINCT COALESCE ( - COUNT( * ), + - SUM( ALL - 66 ) * + - 41, + 77 ) - + 41
----
-42

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT COALESCE ( - COUNT ( * ), + - SUM ( ALL - 66 ) * + - 41, + 77 ) - + 41
----
-42

query I rowsort
SELECT + 71 * - 55
----
-3905

query I rowsort
SELECT - 77 + + 36
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL CASE + + 82 WHEN + 65 THEN - + NULLIF ( - 61, 94 ) / + COUNT( * ) * + 84 * - + 5 ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL CASE + + 82 WHEN + 65 THEN - + NULLIF ( - 61, 94 ) / + COUNT ( * ) * + 84 * - + 5 ELSE - COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT + 21 * - COUNT( 85 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + 21 * - COUNT ( 85 ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8918
SELECT - 41 + + - 59 - + 32 AS col1, 52 * NULLIF ( - 66, COALESCE ( 11, - - MAX( - 61 ) - + + 77, + NULLIF ( - 74, - 65 * + COUNT( * ) ) ) ) DIV + - 27
----
-132
127

skipif mysql # not compatible
query II rowsort label-8918
SELECT - 41 + + - 59 - + 32 AS col1, 52 * NULLIF ( - 66, COALESCE ( 11, - - MAX ( - 61 ) - + + 77, + NULLIF ( - 74, - 65 * + COUNT ( * ) ) ) ) / + - 27
----
-132
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - COUNT( * ) - + + 86 + 77 + - 39 * + + 43 AS col0
----
-1687

skipif mysql # not compatible
query I rowsort label-8919
SELECT - COUNT ( * ) - + + 86 + 77 + - 39 * + + 43 AS col0
----
-1687

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT DISTINCT CAST( 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT CAST ( 96 AS INTEGER ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT DISTINCT + COUNT( * ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT + COUNT ( * ) * 39
----
39

query I rowsort
SELECT ALL COALESCE ( - - 42, - - 99 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT ALL + 4 * - 86 * + COALESCE ( COALESCE ( + 90, - + 58, - - 4 ), + - MIN( + 99 ) * 71 + + + 15, + + 12 )
----
-30960

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + 4 * - 86 * + COALESCE ( COALESCE ( + 90, - + 58, - - 4 ), + - MIN ( + 99 ) * 71 + + + 15, + + 12 )
----
-30960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT - CAST( - 61 AS SIGNED ) + - - 11 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8924
SELECT - CAST ( - 61 AS INTEGER ) + - - 11 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL - + 13
----
-13

query I rowsort
SELECT 85 * - + 87 + + 37
----
-7358

query I rowsort
SELECT 29 * - 14
----
-406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8929
SELECT ALL + 28 + - COALESCE ( - 40, ( + - COALESCE ( + + COUNT( * ), - + 26, - 98 DIV - 90 * + 21 + CASE 58 WHEN ( + + 47 ) - SUM( - 19 ) THEN + 96 ELSE 76 END + + 84 ) ) * - NULLIF ( + 53, + + AVG ( DISTINCT - 5 ) ) * + SUM( DISTINCT - - 96 ), + 46 * - 33 + - 51 - - + 73 + + + ( - 5 ) + 74 + + 10 DIV + 71 * - COUNT( * ) ) + + + 31 * + 5
----
223

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + 28 + - COALESCE ( - 40, ( + - COALESCE ( + + COUNT ( * ), - + 26, - 98 / - 90 * + 21 + CASE 58 WHEN ( + + 47 ) - SUM ( - 19 ) THEN + 96 ELSE 76 END + + 84 ) ) * - NULLIF ( + 53, + + AVG ( DISTINCT - 5 ) ) * + SUM ( DISTINCT - - 96 ), + 46 * - 33 + - 51 - - + 73 + + + ( - 5 ) + 74 + + 10 / + 71 * - COUNT ( * ) ) + + + 31 * + 5
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT DISTINCT - 70 * CAST( 57 AS SIGNED )
----
-3990

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - 70 * CAST ( 57 AS INTEGER )
----
-3990

query II rowsort
SELECT ALL - - 80 AS col1, 43
----
80
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL + COALESCE ( - + ( - + 21 ), + + 28 * - - 0 ) * + SUM( 79 ) AS col2
----
1659

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL + COALESCE ( - + ( - + 21 ), + + 28 * - - 0 ) * + SUM ( 79 ) AS col2
----
1659

query I rowsort
SELECT ALL - 79 * - 39
----
3081

query I rowsort
SELECT 55 * - 68 + - 30 * - - 13 AS col0
----
-4130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL + 68 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + 68 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT DISTINCT - SUM( + 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT - SUM ( + 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT + + NULLIF ( COUNT( * ), + 44 * 28 + + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-8937
SELECT + + NULLIF ( COUNT ( * ), + 44 * 28 + + 49 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - - 94 + NULLIF ( + - 27, + CAST( - - 12 AS SIGNED ) * + 35 + - + 12 * - 52 + 8 + + + COUNT( * ) + + + 83 )
----
67

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - - 94 + NULLIF ( + - 27, + CAST ( - - 12 AS INTEGER ) * + 35 + - + 12 * - 52 + 8 + + + COUNT ( * ) + + + 83 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8939
SELECT ALL + CAST( 16 AS SIGNED ) + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + CAST ( 16 AS INTEGER ) + + COUNT ( * )
----
17

query I rowsort
SELECT - 55 * + NULLIF ( - 32, + + 53 * 19 )
----
1760

query I rowsort
SELECT ALL - 76 * + 64
----
-4864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT 34 * - 73 * 0 * + - 92 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT 34 * - 73 * 0 * + - 92 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT 78 * - 16 * + 89 * - COUNT( * )
----
111072

skipif mysql # not compatible
query I rowsort label-8943
SELECT 78 * - 16 * + 89 * - COUNT ( * )
----
111072

query I rowsort
SELECT ALL 38 + + 95 AS col2
----
133

query II rowsort
SELECT + 79 AS col2, - 85 * - 38 + 54 + - + 68 col2
----
79
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + + COALESCE ( + - 12, + - MAX( DISTINCT + - 63 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8946
SELECT + + COALESCE ( + - 12, + - MAX ( DISTINCT + - 63 ) )
----
-12

query II rowsort
SELECT 58, ( 59 ) AS col1
----
58
59

query I rowsort
SELECT ALL 65 + 6 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT 3 + + 63 * - ( 78 ) + - COUNT( * ) AS col0
----
-4912

skipif mysql # not compatible
query I rowsort label-8949
SELECT 3 + + 63 * - ( 78 ) + - COUNT ( * ) AS col0
----
-4912

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT 95 AS col1, - COUNT( * )
----
95
-1

skipif mysql # not compatible
query II rowsort label-8950
SELECT 95 AS col1, - COUNT ( * )
----
95
-1

query I rowsort
SELECT ALL 72 - - 48 * 66
----
3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT 35 * + - CAST( 16 AS SIGNED ) * - - 37 AS col0
----
-20720

skipif mysql # not compatible
query I rowsort label-8952
SELECT 35 * + - CAST ( 16 AS INTEGER ) * - - 37 AS col0
----
-20720

query I rowsort
SELECT ALL 96 * - + 43 AS col2
----
-4128

query I rowsort
SELECT DISTINCT 7 - + + 81 AS col0
----
-74

query I rowsort
SELECT - 62 col1
----
-62

query I rowsort
SELECT 54 - 2 col0
----
52

query I rowsort
SELECT ALL 42 - 83 AS col1
----
-41

query I rowsort
SELECT 25 * 56
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT 44 + - CAST( - SUM( DISTINCT 11 ) AS SIGNED ) + - 57
----
-2

skipif mysql # not compatible
query I rowsort label-8959
SELECT 44 + - CAST ( - SUM ( DISTINCT 11 ) AS INTEGER ) + - 57
----
-2

query I rowsort
SELECT ALL 6 * - 12
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL - COUNT( * ) * + 11 * - 64 * 14 AS col0
----
9856

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL - COUNT ( * ) * + 11 * - 64 * 14 AS col0
----
9856

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT ALL - 45 DIV - 98 * - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - 45 / - 98 * - 96 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT MAX( 38 ) DIV 11
----
3

skipif mysql # not compatible
query I rowsort label-8963
SELECT MAX ( 38 ) / 11
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT 95 DIV 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8964
SELECT 95 / 69 AS col0
----
1

query I rowsort
SELECT ALL - 36 + 10 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT CASE 93 WHEN COUNT( * ) THEN + 69 + + 63 * - 45 + - + 39 + - 3 ELSE NULL END + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT CASE 93 WHEN COUNT ( * ) THEN + 69 + + 63 * - 45 + - + 39 + - 3 ELSE NULL END + - 31
----
NULL

query II rowsort
SELECT DISTINCT - 41 * - 56, 63 - + + 40 AS col2
----
2296
23

query I rowsort
SELECT DISTINCT 68 + 95 - 28
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT ALL + + COUNT( * ) + - 79, MAX( DISTINCT + + 55 ) AS col2
----
-78
55

skipif mysql # not compatible
query II rowsort label-8969
SELECT ALL + + COUNT ( * ) + - 79, MAX ( DISTINCT + + 55 ) AS col2
----
-78
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8970
SELECT CAST( NULL AS SIGNED ) * - - 25 AS col0, COUNT( * ) * + COUNT( * ) + + 53 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-8970
SELECT CAST ( NULL AS INTEGER ) * - - 25 AS col0, COUNT ( * ) * + COUNT ( * ) + + 53 AS col2
----
NULL
54

query I rowsort
SELECT ALL + + 46 + + + 52 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8972
SELECT DISTINCT - NULLIF ( CAST( - - 10 AS SIGNED ), + COUNT( * ) / CAST( - - 44 AS SIGNED ) )
----
-10

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - NULLIF ( CAST ( - - 10 AS INTEGER ), + COUNT ( * ) / CAST ( - - 44 AS INTEGER ) )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT ALL - SUM( DISTINCT 99 ) DIV 87
----
-1

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - SUM ( DISTINCT 99 ) / 87
----
-1

query I rowsort
SELECT 75 * - + 98 * - 99 + + - 55 + - 82
----
727513

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - - COUNT( * ) * + 55 + + + 58 col2
----
113

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - - COUNT ( * ) * + 55 + + + 58 col2
----
113

onlyif mysql # DIV for integer division: 
query II rowsort label-8976
SELECT DISTINCT - - COALESCE ( - - 8, - - 60 ) DIV 72 AS col0, - 82 * 21 * + - 64 * + - 36
----
0
-3967488

skipif mysql # not compatible
query II rowsort label-8976
SELECT DISTINCT - - COALESCE ( - - 8, - - 60 ) / 72 AS col0, - 82 * 21 * + - 64 * + - 36
----
0
-3967488

query II rowsort
SELECT DISTINCT - ( + - 99 ) * + 47 * + 50 col0, + 65
----
232650
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT MAX( + - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-8978
SELECT MAX ( + - 46 )
----
-46

query I rowsort
SELECT ALL - 20 * - - 31 AS col0
----
-620

query I rowsort
SELECT DISTINCT + + 12 - - ( + 89 ) AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT - + COUNT( + 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT - + COUNT ( + 54 )
----
-1

query I rowsort
SELECT DISTINCT + 94 * - 94 AS col1
----
-8836

query II rowsort
SELECT ALL - NULLIF ( - ( - 12 ), + 17 ) * + + 45 AS col0, + 7 col2
----
-540
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + 85 * - COUNT( + 48 )
----
-85

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + 85 * - COUNT ( + 48 )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT + 41 * - + SUM( - 72 ) + + - COALESCE ( - 85, CASE + 95 WHEN - 22 THEN 71 DIV 71 - + 89 * ( - - CASE + 2 WHEN MAX( + 87 ) THEN 85 * - 80 + 51 - 45 + - 17 * - + 71 DIV - + MIN( 37 ) * COUNT( * ) ELSE - 37 END ) * COUNT( * ) END + - 32, + ( + 0 ), - 47 - + + 61 + 9 ) * - - 97
----
11197

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 41 * - + SUM ( - 72 ) + + - COALESCE ( - 85, CASE + 95 WHEN - 22 THEN 71 / 71 - + 89 * ( - - CASE + 2 WHEN MAX ( + 87 ) THEN 85 * - 80 + 51 - 45 + - 17 * - + 71 / - + MIN ( 37 ) * COUNT ( * ) ELSE - 37 END ) * COUNT ( * ) END + - 32, + ( + 0 ), - 47 - + + 61 + 9 ) * - - 97
----
11197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8986
SELECT 25 DIV COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-8986
SELECT 25 / COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT MIN( - 22 ) * + 22 AS col2
----
-484

skipif mysql # not compatible
query I rowsort label-8987
SELECT MIN ( - 22 ) * + 22 AS col2
----
-484

query I rowsort
SELECT DISTINCT - 96 col0
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-8989
SELECT 35 * ( 44 ) AS col2, - 28 DIV 7 + - + 22 AS col1
----
1540
-26

skipif mysql # not compatible
query II rowsort label-8989
SELECT 35 * ( 44 ) AS col2, - 28 / 7 + - + 22 AS col1
----
1540
-26

query I rowsort
SELECT 70 * NULLIF ( - + 74, + 44 + + 54 ) AS col2
----
-5180

query II rowsort
SELECT 47 AS col0, - 55 - + 35
----
47
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT AVG ( - 42 ) + + NULLIF ( 80, + + 8 + - - 55 - - NULLIF ( 22, + 88 * + 11 ) * 47 ) * + CAST( NULL AS SIGNED ) / + 85 + + - AVG ( - + 83 ) + 44 * + - 83 + + 23 * + + COUNT( * ) * - 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT AVG ( - 42 ) + + NULLIF ( 80, + + 8 + - - 55 - - NULLIF ( 22, + 88 * + 11 ) * 47 ) * + CAST ( NULL AS INTEGER ) / + 85 + + - AVG ( - + 83 ) + 44 * + - 83 + + 23 * + + COUNT ( * ) * - 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL COUNT( + 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL COUNT ( + 21 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT ALL COALESCE ( + 1, + - 60, + 93 * - + ( + - 63 ) * + + 80 * - + 25 + 31 - + 29 + 20 + + MIN( ALL - 11 ) * MIN( - 70 ) - - - 27 + + - 46 * + + 31 - + - 41 * COUNT( * ) DIV - + 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL COALESCE ( + 1, + - 60, + 93 * - + ( + - 63 ) * + + 80 * - + 25 + 31 - + 29 + 20 + + MIN ( ALL - 11 ) * MIN ( - 70 ) - - - 27 + + - 46 * + + 31 - + - 41 * COUNT ( * ) / - + 63 ) AS col1
----
1

query I rowsort
SELECT ALL 6 * - + ( - + 31 )
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - SUM( DISTINCT - - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8996
SELECT - SUM ( DISTINCT - - 22 ) AS col1
----
-22

query I rowsort
SELECT + ( - 9 ) + + ( 98 )
----
89

query I rowsort
SELECT ALL 53 * - 58 * - 14 * + + 90 AS col0
----
3873240

query II rowsort
SELECT - 58 * ( 2 ), 99 AS col0
----
-116
99

query I rowsort
SELECT - CASE - 33 WHEN - 96 - - + 28 THEN - COALESCE ( + 57, - + 7 / - 71 + + 98 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT - MIN( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9001
SELECT - MIN ( + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL COUNT( * ) + - 53 + 30
----
-22

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL COUNT ( * ) + - 53 + 30
----
-22

query I rowsort
SELECT + ( + - 24 ) + - - 10
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9004
SELECT + COUNT( * ) * + COUNT( 52 ) DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT + COUNT ( * ) * + COUNT ( 52 ) / 69 AS col1
----
0

query II rowsort
SELECT + 87 - - 24 * 16, 27 AS col1
----
471
27

query I rowsort
SELECT DISTINCT 52 * + ( + 35 ) AS col0
----
1820

query I rowsort
SELECT ALL 10 + + 90
----
100

query I rowsort
SELECT ALL 86 + 26
----
112

query I rowsort
SELECT ALL + ( ( 30 ) ) + 82
----
112

query I rowsort
SELECT + 98 + 7 * 72
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - NULLIF ( 71, 63 - COUNT( * ) ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-9011
SELECT - NULLIF ( 71, 63 - COUNT ( * ) ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - COALESCE ( - 24, + 85 ) + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - COALESCE ( - 24, + 85 ) + COUNT ( * ) AS col2
----
25

query I rowsort
SELECT + 74 + 40 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL 80 + - COUNT( * ) * - 15
----
95

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL 80 + - COUNT ( * ) * - 15
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT ALL COUNT( * ) DIV 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL COUNT ( * ) / 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT - COUNT( - 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-9016
SELECT - COUNT ( - 32 )
----
-1

query I rowsort
SELECT - 51 + - 10 AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT + ( + CAST( NULL AS SIGNED ) ) * + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ( - MAX( ALL + 61 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-9019
SELECT ( - MAX ( ALL + 61 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL - COUNT( * ) * 14 + + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - COUNT ( * ) * 14 + + COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT + 38 * 48 AS col2
----
1824

query I rowsort
SELECT ( CASE WHEN ( NULL ) NOT BETWEEN 28 AND 25 THEN + 78 * 14 WHEN - 32 IS NOT NULL THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT ALL - CAST( NULL AS SIGNED ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - CAST ( NULL AS INTEGER ) * - 13
----
NULL

query I rowsort
SELECT NULLIF ( 31, ( NULLIF ( - 3, 85 ) ) ) col1
----
31

query I rowsort
SELECT ALL 97 * 84 AS col2
----
8148

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT DISTINCT - 20 * 72 - COUNT( * ) AS col2
----
-1441

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT - 20 * 72 - COUNT ( * ) AS col2
----
-1441

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + 55 + + 93 * - COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9027
SELECT + 55 + + 93 * - COUNT ( * ) AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9028
SELECT 16 * - ( - ( 38 ) DIV + 87 ) + + COUNT( * ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-9028
SELECT 16 * - ( - ( 38 ) / + 87 ) + + COUNT ( * ) * 30
----
30

query I rowsort
SELECT NULLIF ( ( - 27 ), - 79 * ( + 85 ) )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT NULLIF ( COALESCE ( 57, - CAST( NULL AS SIGNED ) - 99 ), + 23 + 22 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9030
SELECT NULLIF ( COALESCE ( 57, - CAST ( NULL AS INTEGER ) - 99 ), + 23 + 22 ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT COALESCE ( + 55, 4 + - 21, 59, + 48 DIV - 17 ) col1
----
55

skipif mysql # not compatible
query I rowsort label-9031
SELECT COALESCE ( + 55, 4 + - 21, 59, + 48 / - 17 ) col1
----
55

query I rowsort
SELECT - 99 * - 38 - + 41 AS col1
----
3721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT - COUNT( * ) DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT - COUNT ( * ) / 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - 1 - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9034
SELECT - 1 - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT DISTINCT + 53 * + ( NULLIF ( 50, - 18 - - 98 * - 13 ) )
----
2650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9036
SELECT ALL + CAST( + MIN( 8 ) AS SIGNED ) DIV + 31 col2
----
0

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + CAST ( + MIN ( 8 ) AS INTEGER ) / + 31 col2
----
0

query I rowsort
SELECT DISTINCT 74 * + 21 + 64 AS col1
----
1618

query I rowsort
SELECT DISTINCT + 63 * + 15
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT - COUNT( * ) + 93 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9039
SELECT - COUNT ( * ) + 93 AS col1
----
92

query I rowsort
SELECT ALL + 45 * - 82 AS col2
----
-3690

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT + ( + 1 ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT + ( + 1 ) / 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT 11 * - COUNT( * ) + - 51 col2
----
-62

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT 11 * - COUNT ( * ) + - 51 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + COUNT( * ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-9043
SELECT + COUNT ( * ) * 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL - 73 + + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - 73 + + COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT - ( 11 ) * 67 AS col2
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT COUNT( 54 )
----
1

skipif mysql # not compatible
query I rowsort label-9046
SELECT COUNT ( 54 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT DISTINCT - 91 + - 27 DIV - 28
----
-91

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT - 91 + - 27 / - 28
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL - 49 + - COALESCE ( - 43, 95 + 25 * 3, CAST( + 93 AS SIGNED ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - 49 + - COALESCE ( - 43, 95 + 25 * 3, CAST ( + 93 AS INTEGER ) ) AS col1
----
-6

query I rowsort
SELECT - + 6 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL - SUM( DISTINCT 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL - SUM ( DISTINCT 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT - + SUM( 48 ) + ( + 58 + + COUNT( * ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9051
SELECT - + SUM ( 48 ) + ( + 58 + + COUNT ( * ) ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL 91 - CAST( COUNT( * ) AS SIGNED ) * 3
----
88

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL 91 - CAST ( COUNT ( * ) AS INTEGER ) * 3
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT - CAST( - 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-9053
SELECT - CAST ( - 39 AS INTEGER )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT ALL ( 61 ) * - CAST( + 45 AS SIGNED ) AS col2
----
-2745

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL ( 61 ) * - CAST ( + 45 AS INTEGER ) AS col2
----
-2745

query I rowsort
SELECT + 74 + 8
----
82

query I rowsort
SELECT DISTINCT - 98 * 52 AS col1
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + 1 + MAX( 48 ) * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-9057
SELECT + 1 + MAX ( 48 ) * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL - COUNT( - 23 ) * - 63
----
63

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - COUNT ( - 23 ) * - 63
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9059
SELECT DISTINCT + + 58 DIV - 48 - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + + 58 / - 48 - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT + 15 + - 91
----
-76

query I rowsort
SELECT + + 68 - 93
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT + + 9 * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9062
SELECT + + 9 * COUNT ( * )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT + 77 DIV + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9063
SELECT + 77 / + 69 AS col2
----
1

query I rowsort
SELECT - 65 + 10 AS col2
----
-55

query I rowsort
SELECT ALL 19 * 96
----
1824

query I rowsort
SELECT ALL 37 * + 53 * - 60 AS col1
----
-117660

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - 33 * + NULLIF ( - COUNT( * ), + 46 - COUNT( * ) * 70 ) + - SUM( DISTINCT 48 )
----
-15

skipif mysql # not compatible
query I rowsort label-9067
SELECT - 33 * + NULLIF ( - COUNT ( * ), + 46 - COUNT ( * ) * 70 ) + - SUM ( DISTINCT 48 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL + 76 * - 70 * COALESCE ( + COALESCE ( - 24, 9 * 98 ), SUM( ALL 19 ) * 21 )
----
127680

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + 76 * - 70 * COALESCE ( + COALESCE ( - 24, 9 * 98 ), SUM ( ALL 19 ) * 21 )
----
127680

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + COUNT( * ) * 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9069
SELECT + COUNT ( * ) * 54 AS col0
----
54

query I rowsort
SELECT DISTINCT ( + 29 ) * 82
----
2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT ALL MAX( 9 ) DIV 58 + 29
----
29

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL MAX ( 9 ) / 58 + 29
----
29

query I rowsort
SELECT ALL 77 * + 58
----
4466

query I rowsort
SELECT COALESCE ( + 66, - 77, 14 * + 18, 74 ) + + 2 AS col0
----
68

query I rowsort
SELECT 79 + + + 64 AS col1
----
143

query I rowsort
SELECT ( - 68 ) * 73
----
-4964

query I rowsort
SELECT ALL + 50 + 17 AS col2
----
67

query I rowsort
SELECT 23 * - NULLIF ( ( 7 ), + 3 ) * - 1 + - ( 58 ) AS col0
----
103

query I rowsort
SELECT ALL - 86 + + - CASE WHEN NOT + 6 NOT BETWEEN ( + 37 ) AND ( NULL ) THEN - 39 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 42 )
----
-42

query I rowsort
SELECT 75 + - - 71
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL + COALESCE ( COUNT( * ), + ( + 74 ) + - 25, + 73 + - 81 * + 61, - COUNT( * ) ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + COALESCE ( COUNT ( * ), + ( + 74 ) + - 25, + 73 + - 81 * + 61, - COUNT ( * ) ) * 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT 85 + + 83 + - COUNT( * )
----
167

skipif mysql # not compatible
query I rowsort label-9082
SELECT 85 + + 83 + - COUNT ( * )
----
167

query I rowsort
SELECT DISTINCT + 5 + + + 62 AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT DISTINCT + 32 DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT + 32 / - 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT ALL + SUM( ALL - - 84 ) + 26
----
110

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + SUM ( ALL - - 84 ) + 26
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT + CAST( - 76 AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT + CAST ( - 76 AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL - 9 * NULLIF ( + COUNT( * ), SUM( ALL + 28 ) * 75 )
----
-9

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - 9 * NULLIF ( + COUNT ( * ), SUM ( ALL + 28 ) * 75 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT 6 + + - COUNT( * ) DIV + 53 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9088
SELECT 6 + + - COUNT ( * ) / + 53 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT MIN( + + 40 ) col1
----
40

skipif mysql # not compatible
query I rowsort label-9089
SELECT MIN ( + + 40 ) col1
----
40

query I rowsort
SELECT - 50 * + 17
----
-850

query I rowsort
SELECT 98 + 34 + + 49
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL SUM( 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL SUM ( 21 ) AS col0
----
21

query I rowsort
SELECT + 99 * + 19 AS col2
----
1881

query I rowsort
SELECT ALL - 2 * - 19
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT MIN( ALL 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9095
SELECT MIN ( ALL 78 )
----
78

query I rowsort
SELECT DISTINCT ( 64 )
----
64

query I rowsort
SELECT - 66 * + 87 * NULLIF ( + 97, + 50 ) AS col1
----
-556974

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL NULLIF ( - COALESCE ( 61, 82 ), - COUNT( * ) / 90 ) * + 74
----
-4514

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL NULLIF ( - COALESCE ( 61, 82 ), - COUNT ( * ) / 90 ) * + 74
----
-4514

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT COUNT( * ) - ( SUM( ALL - 22 ) )
----
23

skipif mysql # not compatible
query I rowsort label-9099
SELECT COUNT ( * ) - ( SUM ( ALL - 22 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + COALESCE ( + 93, COALESCE ( + ( COALESCE ( - ( - 28 ), - 26 ) ), COUNT( * ) ) * - 17, COALESCE ( + 66, 12 * + 52 ) )
----
93

skipif mysql # not compatible
query I rowsort label-9100
SELECT + COALESCE ( + 93, COALESCE ( + ( COALESCE ( - ( - 28 ), - 26 ) ), COUNT ( * ) ) * - 17, COALESCE ( + 66, 12 * + 52 ) )
----
93

query I rowsort
SELECT NULLIF ( + 41, - 84 * + 45 ) * + 38
----
1558

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT ALL 89 + - + 60 DIV + - 20
----
92

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL 89 + - + 60 / + - 20
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT 63 DIV + 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9103
SELECT 63 / + 11 AS col1
----
5

query I rowsort
SELECT ALL 66 + - - 83 AS col1
----
149

query II rowsort
SELECT + 11 col0, 77 * 60 AS col0
----
11
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT COUNT( * ) + + 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9106
SELECT COUNT ( * ) + + 61 AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT 91 * - 32 DIV 1 + 92
----
-2820

skipif mysql # not compatible
query I rowsort label-9107
SELECT 91 * - 32 / 1 + 92
----
-2820

query I rowsort
SELECT ALL 30 + + 20 AS col2
----
50

query I rowsort
SELECT 60 * COALESCE ( + NULLIF ( + 96, + 72 * 70 ), + 14, + 29 ) AS col1
----
5760

query I rowsort
SELECT 98 * 80 * + - 77 AS col2
----
-603680

query I rowsort
SELECT + 53 * + - 89 - - 82 AS col0
----
-4635

query II rowsort
SELECT 6 AS col2, + 91 * - + 15 - + 42 * 84
----
6
-4893

query I rowsort
SELECT 79 + - 63 * - 39
----
2536

query I rowsort
SELECT ALL 94 + NULLIF ( + + 80, ( - 89 ) ) col1
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - 93 + CAST( NULLIF ( - 6, - COUNT( ALL 65 ) * 69 ) AS SIGNED ) * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 93 + CAST ( NULLIF ( - 6, - COUNT ( ALL 65 ) * 69 ) AS INTEGER ) * + 84 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL 87 * COALESCE ( + 16, CAST( + COALESCE ( + NULLIF ( + 77, COUNT( * ) ), + ( CASE 10 WHEN ( 48 ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END ) * 90 ) AS SIGNED ) * - 30, SUM( - 58 ) * MAX( DISTINCT + ( + ( 49 ) ) + - 16 ) )
----
1392

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 87 * COALESCE ( + 16, CAST ( + COALESCE ( + NULLIF ( + 77, COUNT ( * ) ), + ( CASE 10 WHEN ( 48 ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ) * 90 ) AS INTEGER ) * - 30, SUM ( - 58 ) * MAX ( DISTINCT + ( + ( 49 ) ) + - 16 ) )
----
1392

query I rowsort
SELECT DISTINCT - ( + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT COUNT( * ) * - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT COUNT ( * ) * - 98 AS col0
----
-98

query II rowsort
SELECT - - 21 AS col0, + 84 * - 13 * + 89 AS col1
----
21
-97188

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL - SUM( - + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - SUM ( - + 15 )
----
15

query I rowsort
SELECT ALL + + ( + 35 ) - 71 col1
----
-36

query I rowsort
SELECT + 47 * + 30
----
1410

query I rowsort
SELECT ALL ( + + 71 )
----
71

query I rowsort
SELECT + 61 + - - 51 + + - 80 * 68 AS col2
----
-5328

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT - + 46 AS col2, 25 + + 5 + COUNT( DISTINCT 9 ) * 12
----
-46
42

skipif mysql # not compatible
query II rowsort label-9125
SELECT - + 46 AS col2, 25 + + 5 + COUNT ( DISTINCT 9 ) * 12
----
-46
42

query I rowsort
SELECT ALL - 48 * - 84 + 45
----
4077

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT ALL - - 16 DIV + ( + 98 ) + 42
----
42

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - - 16 / + ( + 98 ) + 42
----
42

query I rowsort
SELECT - 36 + + ( + 35 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - COALESCE ( + 67, - + COUNT( * ) ) + + 2 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9129
SELECT - COALESCE ( + 67, - + COUNT ( * ) ) + + 2 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT MIN( ALL - 20 ) + 3 + + 30
----
13

skipif mysql # not compatible
query I rowsort label-9130
SELECT MIN ( ALL - 20 ) + 3 + + 30
----
13

query I rowsort
SELECT + 20 * - 70
----
-1400

query I rowsort
SELECT - 63 * + 34 AS col2
----
-2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT 61 * + COUNT( - 54 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT 61 * + COUNT ( - 54 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT COALESCE ( + - 86, - 68, 15 + - CAST( NULL AS SIGNED ) ) + + CAST( + ( + 22 ) AS SIGNED ) * + 0 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9134
SELECT COALESCE ( + - 86, - 68, 15 + - CAST ( NULL AS INTEGER ) ) + + CAST ( + ( + 22 ) AS INTEGER ) * + 0 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT CAST( COUNT( * ) AS SIGNED ) - + 87
----
-86

skipif mysql # not compatible
query I rowsort label-9135
SELECT CAST ( COUNT ( * ) AS INTEGER ) - + 87
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT ALL - 21 + + CASE 38 WHEN 33 - 95 * 76 THEN NULL ELSE + ( COUNT( * ) ) DIV + 88 END AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL - 21 + + CASE 38 WHEN 33 - 95 * 76 THEN NULL ELSE + ( COUNT ( * ) ) / + 88 END AS col1
----
-21

query I rowsort
SELECT + 86 + - + 51
----
35

query I rowsort
SELECT ALL - 10 + + 8
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL + SUM( DISTINCT + 15 ) * 89 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + SUM ( DISTINCT + 15 ) * 89 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( 25 ) + - - 44 * 62 AS col1
----
2753

query I rowsort
SELECT ALL 90 + - ( + - 11 )
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9142
SELECT ALL + 29 * 18 * - + 92 + 72 * + ( SUM( ALL CAST( NULL AS SIGNED ) ) + + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL + 29 * 18 * - + 92 + 72 * + ( SUM ( ALL CAST ( NULL AS INTEGER ) ) + + 47 )
----
NULL

query I rowsort
SELECT - 42 * + 84 AS col0
----
-3528

query I rowsort
SELECT ALL 55 * 12 + + + ( - 54 ) AS col2
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + 49 / - - CASE - 88 WHEN - ( COUNT( * ) ) THEN + 80 * COUNT( * ) END * ( 39 ) + - 19 * - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT + 49 / - - CASE - 88 WHEN - ( COUNT ( * ) ) THEN + 80 * COUNT ( * ) END * ( 39 ) + - 19 * - 87 AS col2
----
NULL

query I rowsort
SELECT ALL 61 * + - 17 + - - 89
----
-948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT COALESCE ( + - 36, - 77 + + - CAST( + 74 AS SIGNED ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9147
SELECT COALESCE ( + - 36, - 77 + + - CAST ( + 74 AS INTEGER ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT + COUNT( - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-9148
SELECT + COUNT ( - 11 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9149
SELECT - 12 + - SUM( DISTINCT + - 45 ) DIV - 6 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9149
SELECT - 12 + - SUM ( DISTINCT + - 45 ) / - 6 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT ALL 24 * 61, 2 * + + COUNT( * ) AS col2
----
1464
2

skipif mysql # not compatible
query II rowsort label-9150
SELECT ALL 24 * 61, 2 * + + COUNT ( * ) AS col2
----
1464
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT + 86 * + + 27 + - 93 + + 1 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT + 86 * + + 27 + - 93 + + 1 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) * + 67 - + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) * + 67 - + COUNT ( * ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT + MIN( + + 52 ) * + 35 * - 98
----
-178360

skipif mysql # not compatible
query I rowsort label-9153
SELECT + MIN ( + + 52 ) * + 35 * - 98
----
-178360

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + 34 + + COUNT( * ) + - COUNT( DISTINCT + - 23 ) + ( 34 ) * - 7 AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-9154
SELECT + 34 + + COUNT ( * ) + - COUNT ( DISTINCT + - 23 ) + ( 34 ) * - 7 AS col2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - COUNT( * ) * + - 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COUNT ( * ) * + - 4 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT - 48 * 29 + - - SUM( DISTINCT + + 28 )
----
-1364

skipif mysql # not compatible
query I rowsort label-9156
SELECT - 48 * 29 + - - SUM ( DISTINCT + + 28 )
----
-1364

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + NULLIF ( - 67, - COUNT( * ) + + 57 - 53 * 48 )
----
-67

skipif mysql # not compatible
query I rowsort label-9157
SELECT + NULLIF ( - 67, - COUNT ( * ) + + 57 - 53 * 48 )
----
-67

query I rowsort
SELECT ALL 71 * 26 AS col0
----
1846

query I rowsort
SELECT + 41 + + 57 col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT DISTINCT 80 * NULLIF ( - 75, 45 * + 31 + 17 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT 80 * NULLIF ( - 75, 45 * + 31 + 17 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT DISTINCT CASE + + 77 WHEN - + 92 THEN + CAST( NULL AS SIGNED ) / + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT CASE + + 77 WHEN - + 92 THEN + CAST ( NULL AS INTEGER ) / + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT - 19 * + COUNT( * ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT - 19 * + COUNT ( * ) col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT DISTINCT 42 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT 42 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + - SUM( DISTINCT - 29 ) + + + 60 * + - 66
----
-3931

skipif mysql # not compatible
query I rowsort label-9164
SELECT + - SUM ( DISTINCT - 29 ) + + + 60 * + - 66
----
-3931

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - ( MIN( + 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-9165
SELECT - ( MIN ( + 85 ) )
----
-85

query I rowsort
SELECT - + 5 + - 94 + - 78 * 18 AS col2
----
-1503

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL MIN( ALL - - 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL MIN ( ALL - - 3 ) AS col0
----
3

query I rowsort
SELECT ALL - ( 38 ) + + 5 * 52 * 67
----
17382

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT + 57 * MAX( + 39 )
----
2223

skipif mysql # not compatible
query I rowsort label-9169
SELECT + 57 * MAX ( + 39 )
----
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT CASE 15 WHEN - 22 THEN NULL WHEN - 52 * - MIN( - 92 ) - 29 THEN + 11 * 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT CASE 15 WHEN - 22 THEN NULL WHEN - 52 * - MIN ( - 92 ) - 29 THEN + 11 * 87 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 38 + + + 55 * - 19 AS col2
----
-1007

query II rowsort
SELECT DISTINCT + + 75 + + - 24 col2, + NULLIF ( + ( + 69 ), - 56 ) AS col1
----
51
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9173
SELECT - 84 DIV - - CAST( + + 47 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9173
SELECT - 84 / - - CAST ( + + 47 AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT ALL - 59 + + 88 DIV + 59
----
-58

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - 59 + + 88 / + 59
----
-58

query I rowsort
SELECT - - 55 AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT ALL CAST( 15 AS SIGNED ) + 62 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL CAST ( 15 AS INTEGER ) + 62 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT DISTINCT 19 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT 19 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9178
SELECT - COUNT( * ) DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( * ) / + 30 AS col2
----
0

query I rowsort
SELECT ALL + 18 + + - 69 * - + 88 * - 83
----
-503958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9180
SELECT - CAST( NULL AS SIGNED ), - 20 col0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-9180
SELECT - CAST ( NULL AS INTEGER ), - 20 col0
----
NULL
-20

query I rowsort
SELECT - 24 * + 33 AS col1
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - 36 - - 93 + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9182
SELECT - 36 - - 93 + COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + COUNT( - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9183
SELECT + COUNT ( - + 1 )
----
1

query I rowsort
SELECT ALL + NULLIF ( + 88, - - 94 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT - COALESCE ( - 59, - 69, + 62 ) DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-9185
SELECT - COALESCE ( - 59, - 69, + 62 ) / 20
----
2

query I rowsort
SELECT ALL 18 * 95
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9187
SELECT ALL + 3 DIV + + 78 * - 60 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + 3 / + + 78 * - 60 - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT 7 DIV - + MAX( ALL - + ( - + 53 ) ) * - - 13 + ( + ( 98 ) + COUNT( * ) DIV 45 ) DIV + 68 - + 89 col0
----
-88

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT 7 / - + MAX ( ALL - + ( - + 53 ) ) * - - 13 + ( + ( 98 ) + COUNT ( * ) / 45 ) / + 68 - + 89 col0
----
-88

query II rowsort
SELECT + 32 col2, 55
----
32
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - ( - COUNT( * ) ) + + 90 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9190
SELECT - ( - COUNT ( * ) ) + + 90 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + ( - + CASE ( + 47 ) WHEN ( - 35 ) * 7 THEN - 1 WHEN + 41 * - 81 THEN NULL WHEN - 85 * - 79 - + 41 / COUNT( * ) THEN CASE + COALESCE ( + COUNT( * ), - ( 34 ) ) WHEN 10 THEN - 22 * ( + 86 * + 8 ) ELSE - 52 END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + ( - + CASE ( + 47 ) WHEN ( - 35 ) * 7 THEN - 1 WHEN + 41 * - 81 THEN NULL WHEN - 85 * - 79 - + 41 / COUNT ( * ) THEN CASE + COALESCE ( + COUNT ( * ), - ( 34 ) ) WHEN 10 THEN - 22 * ( + 86 * + 8 ) ELSE - 52 END END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT 65 * + COUNT( * ) * + COUNT( * ) * + + 36 + + + 44
----
2384

skipif mysql # not compatible
query I rowsort label-9192
SELECT 65 * + COUNT ( * ) * + COUNT ( * ) * + + 36 + + + 44
----
2384

query I rowsort
SELECT ( + + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - COUNT( * ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 28 * 46 AS col1
----
1288

query I rowsort
SELECT ALL - 83 * 63
----
-5229

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT - COALESCE ( 23, + 49 DIV - - ( - + 19 ) ) + 99
----
76

skipif mysql # not compatible
query I rowsort label-9197
SELECT - COALESCE ( 23, + 49 / - - ( - + 19 ) ) + 99
----
76

query I rowsort
SELECT ALL + - 69 AS col1
----
-69

query I rowsort
SELECT - 38 * - - 55 AS col2
----
-2090

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT ALL + - CASE + 0 WHEN ( - + 20 ) DIV + 37 THEN NULL WHEN - NULLIF ( - 66, - 5 ) THEN - NULLIF ( - 42, + 1 ) ELSE 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + - CASE + 0 WHEN ( - + 20 ) / + 37 THEN NULL WHEN - NULLIF ( - 66, - 5 ) THEN - NULLIF ( - 42, + 1 ) ELSE 84 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT SUM( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9201
SELECT SUM ( 10 ) AS col2
----
10

query I rowsort
SELECT + ( - + 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT - SUM( + 19 ) * - - COALESCE ( - 34, - 32 + 90 ) * - 27 + CAST( NULL AS SIGNED ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT - SUM ( + 19 ) * - - COALESCE ( - 34, - 32 + 90 ) * - 27 + CAST ( NULL AS INTEGER ) + + 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL CAST( + 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL CAST ( + 79 AS INTEGER ) AS col2
----
79

query I rowsort
SELECT + - ( + 53 ) + + 50
----
-3

query II rowsort
SELECT - 56 AS col1, + 29
----
-56
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL - + 87 * SUM( + - NULLIF ( + 38, - + 82 ) ) + - COUNT( * )
----
3305

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - + 87 * SUM ( + - NULLIF ( + 38, - + 82 ) ) + - COUNT ( * )
----
3305

query I rowsort
SELECT + ( - 73 ) * ( + + 52 ) AS col2
----
-3796

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT + 54 * + - 20 + + 12 + - 19 DIV + 57 * 73 col2
----
-1068

skipif mysql # not compatible
query I rowsort label-9209
SELECT + 54 * + - 20 + + 12 + - 19 / + 57 * 73 col2
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT ( - COALESCE ( + - COUNT( * ), + + 34 ) ) * - 19 + - ( 13 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT ( - COALESCE ( + - COUNT ( * ), + + 34 ) ) * - 19 + - ( 13 ) AS col0
----
-32

query I rowsort
SELECT ALL 98 * + 97 AS col1
----
9506

query I rowsort
SELECT ALL + 94 + ( + - 69 ) * - - 79 + + 45 * - 17 AS col2
----
-6122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL 12 * - CAST( - 31 AS SIGNED )
----
372

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL 12 * - CAST ( - 31 AS INTEGER )
----
372

query I rowsort
SELECT + NULLIF ( + 33, 59 ) col1
----
33

query I rowsort
SELECT ALL + 13 + - 47 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9216
SELECT DISTINCT CAST( - SUM( ALL 32 ) AS SIGNED ) * + - 3 + - 81 + ( - 1 ) DIV 41 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT CAST ( - SUM ( ALL 32 ) AS INTEGER ) * + - 3 + - 81 + ( - 1 ) / 41 AS col2
----
15

query I rowsort
SELECT + 34 + 2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL 13 * + ( + COUNT( * ) ) * - 76 AS col1
----
-988

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL 13 * + ( + COUNT ( * ) ) * - 76 AS col1
----
-988

query II rowsort
SELECT 65 AS col2, 0 + - + 29
----
65
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9220
SELECT - 51 AS col0, - 98 + - COUNT( ALL + - 18 ) + + 13 + 40 DIV 67 AS col2
----
-51
-86

skipif mysql # not compatible
query II rowsort label-9220
SELECT - 51 AS col0, - 98 + - COUNT ( ALL + - 18 ) + + 13 + 40 / 67 AS col2
----
-51
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT MAX( ALL 70 ) + + 57 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-9221
SELECT MAX ( ALL 70 ) + + 57 AS col0
----
127

query I rowsort
SELECT 69 + - 93 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL 18 - - 79 + + 23 + 43 + + CASE - 76 WHEN - 69 * 86 THEN MAX( DISTINCT - 68 ) * + 56 + 97 WHEN + 65 THEN ( - 76 ) * + 32 END * 82 * 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL 18 - - 79 + + 23 + 43 + + CASE - 76 WHEN - 69 * 86 THEN MAX ( DISTINCT - 68 ) * + 56 + 97 WHEN + 65 THEN ( - 76 ) * + 32 END * 82 * 26 AS col1
----
NULL

query II rowsort
SELECT ALL 17, - 87 AS col1
----
17
-87

query I rowsort
SELECT 98 * 18
----
1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9226
SELECT ALL + SUM( 69 ) * - + ( - COUNT( * ) ) DIV - COUNT( * ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL + SUM ( 69 ) * - + ( - COUNT ( * ) ) / - COUNT ( * ) col1
----
-69

query I rowsort
SELECT 4 + - ( + + 95 ) AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT ALL COUNT( + + 84 ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL COUNT ( + + 84 ) / + 29
----
0

query II rowsort
SELECT + 27 AS col2, + 3
----
27
3

query II rowsort
SELECT + 30 AS col0, + ( - - 2 )
----
30
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT CAST( + - CASE - 67 WHEN - - 24 THEN 35 / - 97 * 7 + + 75 + 93 ELSE - 87 - 70 END AS SIGNED ) * - ( 29 ) AS col2
----
-4553

skipif mysql # not compatible
query I rowsort label-9231
SELECT CAST ( + - CASE - 67 WHEN - - 24 THEN 35 / - 97 * 7 + + 75 + 93 ELSE - 87 - 70 END AS INTEGER ) * - ( 29 ) AS col2
----
-4553

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT - 2 DIV 10 + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-9232
SELECT - 2 / 10 + - 50
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9233
SELECT 30 DIV + NULLIF ( 35, + + NULLIF ( - - 63, - + CAST( NULL AS SIGNED ) ) DIV + 39 + 65 * + COUNT( * ) ) * - 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9233
SELECT 30 / + NULLIF ( 35, + + NULLIF ( - - 63, - + CAST ( NULL AS INTEGER ) ) / + 39 + 65 * + COUNT ( * ) ) * - 10 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( 49 ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9235
SELECT DISTINCT SUM( - 85 ) * + - 84 - + MIN( + 72 ) + + 63 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT SUM ( - 85 ) * + - 84 - + MIN ( + 72 ) + + 63 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 13 * + 81
----
1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT ALL + CAST( NULL AS SIGNED ) / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + CAST ( NULL AS INTEGER ) / - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9238
SELECT 20 DIV + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9238
SELECT 20 / + COUNT ( * )
----
20

query I rowsort
SELECT ALL - 41 + + 30 AS col0
----
-11

query II rowsort
SELECT DISTINCT - 70 AS col1, + 81 + - 60
----
-70
21

query I rowsort
SELECT DISTINCT + + 88 + + + 82
----
170

query II rowsort
SELECT + 50 AS col0, 87
----
50
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT - 72 * - CAST( + 95 AS SIGNED ) AS col2
----
6840

skipif mysql # not compatible
query I rowsort label-9243
SELECT - 72 * - CAST ( + 95 AS INTEGER ) AS col2
----
6840

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9244
SELECT ALL + + 96 + - CAST( NULL AS DECIMAL ) AS col1, - 34 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-9244
SELECT ALL + + 96 + - CAST ( NULL AS REAL ) AS col1, - 34 AS col0
----
NULL
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT 78 * + CAST( NULL AS SIGNED ) + - + 80 * CASE - ( + 21 ) WHEN + 45 THEN - 83 / + ( + 53 ) ELSE - 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT 78 * + CAST ( NULL AS INTEGER ) + - + 80 * CASE - ( + 21 ) WHEN + 45 THEN - 83 / + ( + 53 ) ELSE - 99 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 65 AS col2
----
-65

query I rowsort
SELECT DISTINCT - ( - 96 ) + - 11
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9248
SELECT ALL + - 54 + + 43 col0, - CAST( + + ( + 66 ) AS SIGNED )
----
-11
-66

skipif mysql # not compatible
query II rowsort label-9248
SELECT ALL + - 54 + + 43 col0, - CAST ( + + ( + 66 ) AS INTEGER )
----
-11
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT - + ( - 67 ) AS col1, - ( + COUNT( * ) )
----
67
-1

skipif mysql # not compatible
query II rowsort label-9249
SELECT - + ( - 67 ) AS col1, - ( + COUNT ( * ) )
----
67
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - 75 + - 85 + - COALESCE ( COUNT( * ), + 83 ) AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-9250
SELECT - 75 + - 85 + - COALESCE ( COUNT ( * ), + 83 ) AS col2
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT + COUNT( * ) + + COUNT( + 42 )
----
2

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT + COUNT ( * ) + + COUNT ( + 42 )
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9252
SELECT ALL 47 AS col1, + 96 * 6 DIV 71 + - + 3 - - 67
----
47
72

skipif mysql # not compatible
query II rowsort label-9252
SELECT ALL 47 AS col1, + 96 * 6 / 71 + - + 3 - - 67
----
47
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT 16 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9253
SELECT 16 + COUNT ( * )
----
17

query I rowsort
SELECT ALL 1 - - 77 * + + 95 + 4
----
7320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT CASE + CASE - - 71 WHEN 21 * + ( + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) - 26 * + 52 + - 23 * - 42 THEN NULL ELSE + 86 + MAX( DISTINCT + 7 + + 64 ) END WHEN + ( 56 ) - COUNT( * ) THEN NULL WHEN + 8 * MIN( - 19 / 33 ) THEN 90 / 85 END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT CASE + CASE - - 71 WHEN 21 * + ( + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - 26 * + 52 + - 23 * - 42 THEN NULL ELSE + 86 + MAX ( DISTINCT + 7 + + 64 ) END WHEN + ( 56 ) - COUNT ( * ) THEN NULL WHEN + 8 * MIN ( - 19 / 33 ) THEN 90 / 85 END * 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT DISTINCT CASE + 77 WHEN + 19 * 14 THEN NULL ELSE - - 16 * + COUNT( * ) DIV + 53 END * - ( - COUNT( * ) * - 3 - 91 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT CASE + 77 WHEN + 19 * 14 THEN NULL ELSE - - 16 * + COUNT ( * ) / + 53 END * - ( - COUNT ( * ) * - 3 - 91 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9257
SELECT NULLIF ( COUNT( * ), - 46 ) * 36 DIV + + MIN( ALL + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT NULLIF ( COUNT ( * ), - 46 ) * 36 / + + MIN ( ALL + 80 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT MIN( ALL - 42 ) * + + 26
----
-1092

skipif mysql # not compatible
query I rowsort label-9258
SELECT MIN ( ALL - 42 ) * + + 26
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT 94 - + + 90 - + 82 + 36 * COUNT( * ) * - 41 * ( - 25 ) + - MAX( ALL 11 )
----
36811

skipif mysql # not compatible
query I rowsort label-9259
SELECT 94 - + + 90 - + 82 + 36 * COUNT ( * ) * - 41 * ( - 25 ) + - MAX ( ALL 11 )
----
36811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT CASE - CAST( 36 AS SIGNED ) WHEN ( - 6 ) THEN + COUNT( * ) * - 25 + 4 WHEN 0 THEN NULL ELSE CASE + 31 WHEN - 73 THEN ( - 23 ) * - 79 + + 73 WHEN COUNT( * ) + + COUNT( * ) THEN COUNT( * ) + COUNT( * ) ELSE - 2 - + SUM( + 21 ) END END * - 1 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9260
SELECT CASE - CAST ( 36 AS INTEGER ) WHEN ( - 6 ) THEN + COUNT ( * ) * - 25 + 4 WHEN 0 THEN NULL ELSE CASE + 31 WHEN - 73 THEN ( - 23 ) * - 79 + + 73 WHEN COUNT ( * ) + + COUNT ( * ) THEN COUNT ( * ) + COUNT ( * ) ELSE - 2 - + SUM ( + 21 ) END END * - 1 AS col0
----
23

query I rowsort
SELECT 33 * - ( 96 )
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT DISTINCT 10 * - + 40 + - + CAST( + MIN( 29 ) AS SIGNED ) AS col2
----
-429

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT 10 * - + 40 + - + CAST ( + MIN ( 29 ) AS INTEGER ) AS col2
----
-429

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9263
SELECT CAST( NULL AS SIGNED ) * + - 70 / + 71 AS col2, - 99 * - + 42 + 45
----
NULL
4203

skipif mysql # not compatible
query II rowsort label-9263
SELECT CAST ( NULL AS INTEGER ) * + - 70 / + 71 AS col2, - 99 * - + 42 + 45
----
NULL
4203

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT COUNT( - 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9264
SELECT COUNT ( - 43 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT - 64 + 6 + - 85 DIV 16
----
-63

skipif mysql # not compatible
query I rowsort label-9265
SELECT - 64 + 6 + - 85 / 16
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT 84 * + + 10 * + + COUNT( * ) - 94
----
746

skipif mysql # not compatible
query I rowsort label-9266
SELECT 84 * + + 10 * + + COUNT ( * ) - 94
----
746

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT - 70 * + 77 + - 85 * - MIN( + + 5 ) AS col1
----
-4965

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT - 70 * + 77 + - 85 * - MIN ( + + 5 ) AS col1
----
-4965

query I rowsort
SELECT - 98 * 34 + 21 * 2 + - 2 + 9 col0
----
-3283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT - NULLIF ( + ( 19 ), - 10 * + 11 - CASE WHEN NOT NULL IS NOT NULL THEN - CASE - 59 WHEN + ( + CAST( 6 AS SIGNED ) ) + - 3 THEN + 12 * COALESCE ( 90, - ( - 40 ), - 41 + - 32 ) ELSE + CAST( NULL AS SIGNED ) + + 71 END WHEN 63 + + COALESCE ( COUNT( * ), - 95, 15 ) IN ( 48 - 46 ) THEN + 34 ELSE + COUNT( * ) + ( + 28 ) / 69 END ) * + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9269
SELECT - NULLIF ( + ( 19 ), - 10 * + 11 - CASE WHEN NOT NULL IS NOT NULL THEN - CASE - 59 WHEN + ( + CAST ( 6 AS INTEGER ) ) + - 3 THEN + 12 * COALESCE ( 90, - ( - 40 ), - 41 + - 32 ) ELSE + CAST ( NULL AS INTEGER ) + + 71 END WHEN 63 + + COALESCE ( COUNT ( * ), - 95, 15 ) IN ( 48 - 46 ) THEN + 34 ELSE + COUNT ( * ) + ( + 28 ) / 69 END ) * + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT - NULLIF ( MIN( ALL - 7 ), - + COUNT( 0 ) + COUNT( * ) ) * - 58 * CASE COUNT( * ) WHEN + 3 + - 24 THEN - 32 WHEN - 71 * 76 THEN NULL END + MAX( DISTINCT - 3 + 36 ) * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - NULLIF ( MIN ( ALL - 7 ), - + COUNT ( 0 ) + COUNT ( * ) ) * - 58 * CASE COUNT ( * ) WHEN + 3 + - 24 THEN - 32 WHEN - 71 * 76 THEN NULL END + MAX ( DISTINCT - 3 + 36 ) * 87
----
NULL

query I rowsort
SELECT ALL - 91 * + - ( 41 ) * - 86 + - + ( 94 ) + + + 8 * + 70 + 61 AS col0
----
-320339

query I rowsort
SELECT - ( - + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT 49 * - 98 + + ( - + CASE - MIN( 29 ) WHEN - 96 THEN 92 / MAX( - 47 * + ( + 54 ) ) WHEN 73 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT 49 * - 98 + + ( - + CASE - MIN ( 29 ) WHEN - 96 THEN 92 / MAX ( - 47 * + ( + 54 ) ) WHEN 73 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 93 + - 68
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT ALL + CAST( + MAX( 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL + CAST ( + MAX ( 38 ) AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT + 46 + 16 + + + MAX( ALL + - 3 ) + - 52 * - - 79 * + 16
----
-65669

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + 46 + 16 + + + MAX ( ALL + - 3 ) + - 52 * - - 79 * + 16
----
-65669

query I rowsort
SELECT + + 48 col0
----
48

query I rowsort
SELECT - 64 * + NULLIF ( + 30, 37 ) AS col2
----
-1920

query I rowsort
SELECT - 77 + 7
----
-70

query I rowsort
SELECT ALL + 53 - 81 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query III rowsort label-9281
SELECT - - 47 * - 46 AS col1, 1 AS col2, + ( 87 ) * - 23 * + + 92 + 34 * COUNT( * ) AS col2
----
-2162
1
-184058

skipif mysql # not compatible
query III rowsort label-9281
SELECT - - 47 * - 46 AS col1, 1 AS col2, + ( 87 ) * - 23 * + + 92 + 34 * COUNT ( * ) AS col2
----
-2162
1
-184058

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - - 31 - - 26 + - ( - COUNT( * ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-9282
SELECT - - 31 - - 26 + - ( - COUNT ( * ) ) col0
----
58

query I rowsort
SELECT DISTINCT + 86 * - 34 AS col1
----
-2924

query I rowsort
SELECT ALL NULLIF ( + 62, - 43 * + + 23 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9285
SELECT - 49 col2, - CAST( + ( - - 30 ) AS SIGNED )
----
-49
-30

skipif mysql # not compatible
query II rowsort label-9285
SELECT - 49 col2, - CAST ( + ( - - 30 ) AS INTEGER )
----
-49
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL - COUNT( - 61 ) * + + 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - COUNT ( - 61 ) * + + 65 AS col1
----
-65

query I rowsort
SELECT - 66 * - 15
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9288
SELECT ALL 5 AS col0, CAST( AVG ( 0 ) AS SIGNED ) AS col2
----
5
0

skipif mysql # not compatible
query II rowsort label-9288
SELECT ALL 5 AS col0, CAST ( AVG ( 0 ) AS INTEGER ) AS col2
----
5
0

query I rowsort
SELECT DISTINCT - 87 * + + 44 * + 66 * 84
----
-21222432

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT - 59 - 14 - - 72 - + - NULLIF ( 59, + 13 * 70 - + COUNT( * ) + 85 )
----
58

skipif mysql # not compatible
query I rowsort label-9290
SELECT - 59 - 14 - - 72 - + - NULLIF ( 59, + 13 * 70 - + COUNT ( * ) + 85 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT - 18 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT - 18 / 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL NULLIF ( - ( + 1 ), - COUNT( DISTINCT 79 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL NULLIF ( - ( + 1 ), - COUNT ( DISTINCT 79 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT - 30 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT - 30 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 35 * + 25
----
875

query I rowsort
SELECT ALL ( - 52 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT + 88 DIV + 33 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9296
SELECT + 88 / + 33 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT - 0 + + 8 DIV + 30 * + - 31
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT - 0 + + 8 / + 30 * + - 31
----
0

query I rowsort
SELECT ALL 11 * 4
----
44

query I rowsort
SELECT - 76 + + 68 + 5 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9300
SELECT ALL + AVG ( ALL + 46 ) + - 75 + - 93 + + 52 + + CAST( NULL AS SIGNED ) - + - 57 + - CASE 36 WHEN 30 + - 67 THEN NULL WHEN - 82 * 86 + + CAST( + 31 - + 29 AS SIGNED ) THEN COUNT( * ) ELSE NULL END * 92 * + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + AVG ( ALL + 46 ) + - 75 + - 93 + + 52 + + CAST ( NULL AS INTEGER ) - + - 57 + - CASE 36 WHEN 30 + - 67 THEN NULL WHEN - 82 * 86 + + CAST ( + 31 - + 29 AS INTEGER ) THEN COUNT ( * ) ELSE NULL END * 92 * + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - MAX( ALL - 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9301
SELECT - MAX ( ALL - 28 ) AS col0
----
28

query I rowsort
SELECT + 52 + - 10
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT ALL COUNT( - + ( CAST( NULL AS SIGNED ) ) ) + - - 90 * - + ( - 36 ) * + 43 AS col0
----
139320

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL COUNT ( - + ( CAST ( NULL AS INTEGER ) ) ) + - - 90 * - + ( - 36 ) * + 43 AS col0
----
139320

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - 40 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9304
SELECT - 40 * COUNT ( * )
----
-40

query I rowsort
SELECT DISTINCT + + 53 * - 90 * + ( + - 90 ) + + 80
----
429380

query II rowsort
SELECT 43 AS col2, 75
----
43
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL - COUNT( * ) * + MIN( - 36 ) * + 74 - + 78 + - - 29 + - + 95 + - 83 * + ( COUNT( * ) * - 85 + 58 ) * 71
----
161631

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - COUNT ( * ) * + MIN ( - 36 ) * + 74 - + 78 + - - 29 + - + 95 + - 83 * + ( COUNT ( * ) * - 85 + 58 ) * 71
----
161631

query I rowsort
SELECT + ( + 66 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL + + 68 * - 3 + 10 * - + COUNT( * ) - + CAST( + + 70 AS SIGNED ) AS col0
----
-284

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + + 68 * - 3 + 10 * - + COUNT ( * ) - + CAST ( + + 70 AS INTEGER ) AS col0
----
-284

query II rowsort
SELECT - 63 AS col2, - ( + 92 )
----
-63
-92

query I rowsort
SELECT + - 1 + 54 AS col0
----
53

query I rowsort
SELECT - + 20 + 21
----
1

query I rowsort
SELECT DISTINCT + 15 * + 34
----
510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9314
SELECT + CAST( NULL AS SIGNED ) AS col0, 51 + 21 AS col2
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9314
SELECT + CAST ( NULL AS INTEGER ) AS col0, 51 + 21 AS col2
----
NULL
72

onlyif mysql # DIV for integer division: 
query II rowsort label-9315
SELECT - COALESCE ( 19, - 87 ) AS col1, - 89 DIV - - 38 AS col1
----
-19
-2

skipif mysql # not compatible
query II rowsort label-9315
SELECT - COALESCE ( 19, - 87 ) AS col1, - 89 / - - 38 AS col1
----
-19
-2

query I rowsort
SELECT + - 68 col1
----
-68

query II rowsort
SELECT ALL + 82 * - - 82 * + + 78 AS col0, - 71 + - 3 - + 96 AS col0
----
524472
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT + + 76 DIV + - 90 * + + 81
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT + + 76 / + - 90 * + + 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT - + CAST( + CAST( - ( - 66 ) AS SIGNED ) AS SIGNED ) * + + 45 col2
----
-2970

skipif mysql # not compatible
query I rowsort label-9319
SELECT - + CAST ( + CAST ( - ( - 66 ) AS INTEGER ) AS INTEGER ) * + + 45 col2
----
-2970

query I rowsort
SELECT DISTINCT + ( + 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT + - 1 - - + COUNT( * ) + + 93 + 30 + - 79 * - + 75 * + - 95 AS col1
----
-562752

skipif mysql # not compatible
query I rowsort label-9321
SELECT + - 1 - - + COUNT ( * ) + + 93 + 30 + - 79 * - + 75 * + - 95 AS col1
----
-562752

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9322
SELECT + 37 + + 2 * 33 * 66 * + CAST( NULL AS DECIMAL ) + - 14 - - 34 * - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT + 37 + + 2 * 33 * 66 * + CAST ( NULL AS REAL ) + - 14 - - 34 * - 36 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT ALL COALESCE ( 18, - CAST( 99 AS SIGNED ), 6 + + - 7 ) * COUNT( * ) + - COUNT( * ) - MAX( - 1 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL COALESCE ( 18, - CAST ( 99 AS INTEGER ), 6 + + - 7 ) * COUNT ( * ) + - COUNT ( * ) - MAX ( - 1 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9324
SELECT ALL CAST( NULL AS SIGNED ) * - 72 + + - 76 AS col1, 58 * + 4 * - 99 * - - 40
----
NULL
-918720

skipif mysql # not compatible
query II rowsort label-9324
SELECT ALL CAST ( NULL AS INTEGER ) * - 72 + + - 76 AS col1, 58 * + 4 * - 99 * - - 40
----
NULL
-918720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT DISTINCT MAX( DISTINCT + 1 ) AS col1, 19
----
1
19

skipif mysql # not compatible
query II rowsort label-9326
SELECT DISTINCT MAX ( DISTINCT + 1 ) AS col1, 19
----
1
19

query I rowsort
SELECT 28 * + + 49 + 21
----
1393

query I rowsort
SELECT - 36 + - + 42 + + - 49 * 40 * - 52 col0
----
101842

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT + 6 * + 40 AS col0, COUNT( * ) * + 80 + COUNT( * ) AS col0
----
240
81

skipif mysql # not compatible
query II rowsort label-9329
SELECT + 6 * + 40 AS col0, COUNT ( * ) * + 80 + COUNT ( * ) AS col0
----
240
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9330
SELECT - 12 + - - COALESCE ( - 47, 24 * COUNT( * ) DIV - ( 39 ) + + 63 * - 41 + 75, - 54 * 34 - - 25 )
----
-59

skipif mysql # not compatible
query I rowsort label-9330
SELECT - 12 + - - COALESCE ( - 47, 24 * COUNT ( * ) / - ( 39 ) + + 63 * - 41 + 75, - 54 * 34 - - 25 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT - 56 * 56 * + - CASE - - 11 WHEN 88 * - + ( - - 45 ) * + CAST( NULL AS SIGNED ) - - COUNT( * ) + - NULLIF ( + 56 - - MIN( - 86 - - 84 ), NULLIF ( 5, 46 / - CASE 49 WHEN 70 + + 63 THEN 68 WHEN - COUNT( * ) THEN 71 * - 57 + + 54 END ) ) THEN NULL WHEN 46 * - COUNT( * ) THEN - COUNT( * ) ELSE - 45 END * 56 AS col0
----
-7902720

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT - 56 * 56 * + - CASE - - 11 WHEN 88 * - + ( - - 45 ) * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - NULLIF ( + 56 - - MIN ( - 86 - - 84 ), NULLIF ( 5, 46 / - CASE 49 WHEN 70 + + 63 THEN 68 WHEN - COUNT ( * ) THEN 71 * - 57 + + 54 END ) ) THEN NULL WHEN 46 * - COUNT ( * ) THEN - COUNT ( * ) ELSE - 45 END * 56 AS col0
----
-7902720

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL - NULLIF ( + 75, 80 * - 24 + - 10 + 87 * + + COUNT( ALL - 8 ) ) + 28
----
-47

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - NULLIF ( + 75, 80 * - 24 + - 10 + 87 * + + COUNT ( ALL - 8 ) ) + 28
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT - 76 * MIN( + - 38 )
----
2888

skipif mysql # not compatible
query I rowsort label-9333
SELECT - 76 * MIN ( + - 38 )
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL - MAX( - 26 ) + - 20 * + ( + - 59 )
----
1206

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL - MAX ( - 26 ) + - 20 * + ( + - 59 )
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT CASE 37 WHEN - 68 THEN NULL WHEN - 64 THEN 31 - - 24 * + 83 + + - MAX( DISTINCT 47 ) + + 61 * + 48 ELSE CASE - 51 WHEN 65 * 56 + COUNT( * ) * - COUNT( - 75 ) THEN NULL WHEN 67 * + 15 THEN COUNT( * ) * + COUNT( * ) END + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT CASE 37 WHEN - 68 THEN NULL WHEN - 64 THEN 31 - - 24 * + 83 + + - MAX ( DISTINCT 47 ) + + 61 * + 48 ELSE CASE - 51 WHEN 65 * 56 + COUNT ( * ) * - COUNT ( - 75 ) THEN NULL WHEN 67 * + 15 THEN COUNT ( * ) * + COUNT ( * ) END + 23 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL + ( - COUNT( * ) ) + + + 3 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + ( - COUNT ( * ) ) + + + 3 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - MAX( ALL + + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-9337
SELECT - MAX ( ALL + + 98 )
----
-98

query I rowsort
SELECT DISTINCT ( 17 )
----
17

query I rowsort
SELECT ALL - 38 + + 8 AS col0
----
-30

query I rowsort
SELECT - 40 * 30 AS col2
----
-1200

query II rowsort
SELECT - 46 * + + 72 AS col0, + 21 AS col1
----
-3312
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT DISTINCT - - 89 / + CAST( ( - CASE - 31 WHEN 70 + + COUNT( * ) THEN NULL WHEN + 0 THEN + + COUNT( * ) * MIN( DISTINCT + 43 ) ELSE NULL END ) AS SIGNED ) * 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - - 89 / + CAST ( ( - CASE - 31 WHEN 70 + + COUNT ( * ) THEN NULL WHEN + 0 THEN + + COUNT ( * ) * MIN ( DISTINCT + 43 ) ELSE NULL END ) AS INTEGER ) * 6 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT ALL NULLIF ( + 63, - - 87 * - + 72 ) * - 62 AS col0, COUNT( * )
----
-3906
1

skipif mysql # not compatible
query II rowsort label-9343
SELECT ALL NULLIF ( + 63, - - 87 * - + 72 ) * - 62 AS col0, COUNT ( * )
----
-3906
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT 52 * COALESCE ( - - 41, + CAST( - 71 AS SIGNED ) ) col2
----
2132

skipif mysql # not compatible
query I rowsort label-9344
SELECT 52 * COALESCE ( - - 41, + CAST ( - 71 AS INTEGER ) ) col2
----
2132

query I rowsort
SELECT ALL - 46 - - 13
----
-33

query I rowsort
SELECT ALL - COALESCE ( - 40, + - 96 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT + 31 DIV - 1 - 52 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9347
SELECT + 31 / - 1 - 52 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT MIN( DISTINCT + + 87 ) * - + 37 + 15, 3 col1
----
-3204
3

skipif mysql # not compatible
query II rowsort label-9348
SELECT MIN ( DISTINCT + + 87 ) * - + 37 + 15, 3 col1
----
-3204
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT - COUNT( + 75 ) AS col0, + 81
----
-1
81

skipif mysql # not compatible
query II rowsort label-9349
SELECT - COUNT ( + 75 ) AS col0, + 81
----
-1
81

query I rowsort
SELECT + ( 70 ) AS col1
----
70

query I rowsort
SELECT DISTINCT - + ( - 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9352
SELECT 1 * - 2, 1 + - 0 + COUNT( * ) + + COUNT( * ) - + 25 * - - 42 + + ( - 33 ) + 12 AS col0
----
-2
-1068

skipif mysql # not compatible
query II rowsort label-9352
SELECT 1 * - 2, 1 + - 0 + COUNT ( * ) + + COUNT ( * ) - + 25 * - - 42 + + ( - 33 ) + 12 AS col0
----
-2
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT - - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9354
SELECT ALL + MIN( ALL - - 70 ) * 21 DIV CASE 70 WHEN - + 31 * 7 * 97 THEN NULL WHEN - COUNT( * ) + 2 THEN + COUNT( * ) * + 47 ELSE - COUNT( * ) * - 35 END + + 17
----
59

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + MIN ( ALL - - 70 ) * 21 / CASE 70 WHEN - + 31 * 7 * 97 THEN NULL WHEN - COUNT ( * ) + 2 THEN + COUNT ( * ) * + 47 ELSE - COUNT ( * ) * - 35 END + + 17
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT COUNT( * ) * + 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9355
SELECT COUNT ( * ) * + 90 AS col1
----
90

query I rowsort
SELECT ALL 42 + + 5 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL COUNT( * ) * 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL COUNT ( * ) * 14 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT 23 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9358
SELECT 23 / + 92 AS col2
----
0

query I rowsort
SELECT ALL 94 + + NULLIF ( - + 49, 76 )
----
45

query I rowsort
SELECT 4 + ( 96 ) AS col1
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT ( + 62 ) DIV - 21
----
-2

skipif mysql # not compatible
query I rowsort label-9361
SELECT ( + 62 ) / - 21
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9362
SELECT ALL + CAST( + 82 AS SIGNED ) + + MIN( ALL - - 95 ) + 69 AS col1, + 70 + + COUNT( * ) DIV + + 79 + + 95 AS col1
----
246
165

skipif mysql # not compatible
query II rowsort label-9362
SELECT ALL + CAST ( + 82 AS INTEGER ) + + MIN ( ALL - - 95 ) + 69 AS col1, + 70 + + COUNT ( * ) / + + 79 + + 95 AS col1
----
246
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT COUNT( * ) * 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT COUNT ( * ) * 29 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT 29 - + 19 DIV - 11 + - 37
----
-7

skipif mysql # not compatible
query I rowsort label-9364
SELECT 29 - + 19 / - 11 + - 37
----
-7

query I rowsort
SELECT ( - - 52 ) + 93 AS col1
----
145

query I rowsort
SELECT 39 - - 63 col1
----
102

query I rowsort
SELECT 13 + - + 22
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT ALL - 34 + - 50 + + 94 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - 34 + - 50 + + 94 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 90 AS col1, - ( - 8 ) AS col0
----
90
8

query I rowsort
SELECT ALL - 7 * 28 * + + 62
----
-12152

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL + COUNT( * ) - 19 col0
----
-18

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + COUNT ( * ) - 19 col0
----
-18

query I rowsort
SELECT ALL - 50 - 86
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - + COALESCE ( + + 99, + COUNT( * ) * - 19 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9373
SELECT - + COALESCE ( + + 99, + COUNT ( * ) * - 19 ) AS col1
----
-99

query I rowsort
SELECT 67 * + 4 * + 90 + 52 AS col2
----
24172

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT + - COUNT( * ) * 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + - COUNT ( * ) * 36 AS col1
----
-36

query I rowsort
SELECT + - 63 * - 17 + + COALESCE ( + 82, - - 20 ) AS col1
----
1153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT 47 DIV - COUNT( * ) + + - 90 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-9377
SELECT 47 / - COUNT ( * ) + + - 90 AS col2
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT - 16 DIV + - 75 DIV 60 * + + 18 * 91 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT - 16 / + - 75 / 60 * + + 18 * 91 + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL - + MIN( - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - + MIN ( - 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9380
SELECT CASE 98 WHEN - COUNT( - COALESCE ( - 99, + 19 + 14 ) ) THEN COALESCE ( 95, + - 28, COUNT( * ) ) + CAST( 67 + + 76 * - ( 16 ) AS DECIMAL ) ELSE NULL END * ( 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT CASE 98 WHEN - COUNT ( - COALESCE ( - 99, + 19 + 14 ) ) THEN COALESCE ( 95, + - 28, COUNT ( * ) ) + CAST ( 67 + + 76 * - ( 16 ) AS REAL ) ELSE NULL END * ( 18 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT NULLIF ( - ( - - ( + 27 ) ), - 59 * - - 3 ) * COUNT( * ) + + - 1 + - MAX( + - 38 )
----
10

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT NULLIF ( - ( - - ( + 27 ) ), - 59 * - - 3 ) * COUNT ( * ) + + - 1 + - MAX ( + - 38 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9382
SELECT ALL - + 49 AS col1, + 79 + - 96 + - - 75 + CASE COUNT( * ) WHEN - 24 + - 86 - + 94 - - 80 / 32 THEN + ( + 85 ) ELSE 70 END - 97 * + 73 * + COUNT( - 69 * 15 )
----
-49
-6953

skipif mysql # not compatible
query II rowsort label-9382
SELECT ALL - + 49 AS col1, + 79 + - 96 + - - 75 + CASE COUNT ( * ) WHEN - 24 + - 86 - + 94 - - 80 / 32 THEN + ( + 85 ) ELSE 70 END - 97 * + 73 * + COUNT ( - 69 * 15 )
----
-49
-6953

query I rowsort
SELECT 16 * 56 - - + ( - 38 ) * - 59
----
3138

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT 49 DIV + + 75
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT 49 / + + 75
----
0

query I rowsort
SELECT 78 * 93 * 39 * + 41 * 21
----
243582066

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT COUNT( * ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-9386
SELECT COUNT ( * ) + + 76
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL MAX( DISTINCT + 75 ) + - 12
----
63

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL MAX ( DISTINCT + 75 ) + - 12
----
63

query I rowsort
SELECT 4 + + 7
----
11

query II rowsort
SELECT ALL - 42 AS col0, - 57 AS col1
----
-42
-57

query II rowsort
SELECT ALL 65 AS col2, 77
----
65
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - MAX( DISTINCT 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9391
SELECT - MAX ( DISTINCT 42 ) AS col0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-9392
SELECT ALL 67 AS col2, - 98 DIV 63
----
67
-1

skipif mysql # not compatible
query II rowsort label-9392
SELECT ALL 67 AS col2, - 98 / 63
----
67
-1

query I rowsort
SELECT DISTINCT 52 + - + 98 + 55 * ( + 46 ) AS col1
----
2484

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9394
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - COALESCE ( + 25, - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT CAST ( NULL AS REAL ) * - COALESCE ( + 25, - 35 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT ( - + 89 ) * NULLIF ( - 1, CAST( 59 AS SIGNED ) ) * + 34
----
3026

skipif mysql # not compatible
query I rowsort label-9395
SELECT ( - + 89 ) * NULLIF ( - 1, CAST ( 59 AS INTEGER ) ) * + 34
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL ( COUNT( DISTINCT + 12 ) ) - 25
----
-24

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL ( COUNT ( DISTINCT + 12 ) ) - 25
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT ALL 41 AS col1, + COUNT( * ) AS col1
----
41
1

skipif mysql # not compatible
query II rowsort label-9397
SELECT ALL 41 AS col1, + COUNT ( * ) AS col1
----
41
1

query I rowsort
SELECT ALL - 79 - + 75 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT ALL COUNT( * ) AS col2, - 52 AS col0
----
1
-52

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL COUNT ( * ) AS col2, - 52 AS col0
----
1
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + - 16 * + NULLIF ( - 25, + MIN( ALL - 16 ) ) * + 69 + - 63 + + + CASE - + 12 WHEN - - 78 THEN 45 - + 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT + - 16 * + NULLIF ( - 25, + MIN ( ALL - 16 ) ) * + 69 + - 63 + + + CASE - + 12 WHEN - - 78 THEN 45 - + 94 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT + 87 DIV - 84
----
-1

skipif mysql # not compatible
query I rowsort label-9401
SELECT + 87 / - 84
----
-1

query I rowsort
SELECT + 40 * + 3 AS col2
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT + - MIN( DISTINCT - 80 ) - - - 30 DIV - COUNT( - 92 )
----
110

skipif mysql # not compatible
query I rowsort label-9403
SELECT + - MIN ( DISTINCT - 80 ) - - - 30 / - COUNT ( - 92 )
----
110

query I rowsort
SELECT ALL + CASE 66 WHEN - - 97 + - - 52 * - 84 * - ( 60 ) * - 96 - - 56 THEN 11 / + ( - 57 ) + 69 * - 99 - 4 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT ALL + CAST( + 64 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + CAST ( + 64 AS INTEGER ) AS col1
----
64

query I rowsort
SELECT - - COALESCE ( - 48, - 91 ) * + 84 col0
----
-4032

query I rowsort
SELECT ALL + - 67 * + + 15 * - COALESCE ( - 39, - - 28 ) + - 75 * + 95 * - 7 + + 26 AS col1
----
10706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT DISTINCT + + NULLIF ( - 93, + CAST( + + 51 AS SIGNED ) / 58 + - COUNT( * ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + + NULLIF ( - 93, + CAST ( + + 51 AS INTEGER ) / 58 + - COUNT ( * ) ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9409
SELECT + + 18 AS col2, + MIN( 5 ) AS col0
----
18
5

skipif mysql # not compatible
query II rowsort label-9409
SELECT + + 18 AS col2, + MIN ( 5 ) AS col0
----
18
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT + 61 + - - 33 * + + 87 + + ( 20 ) + - 13 DIV 50 AS col1
----
2952

skipif mysql # not compatible
query I rowsort label-9410
SELECT + 61 + - - 33 * + + 87 + + ( 20 ) + - 13 / 50 AS col1
----
2952

query I rowsort
SELECT ALL + - 75 * 49 AS col0
----
-3675

query II rowsort
SELECT - 95 AS col2, + 17 * + 63 * + 34 col2
----
-95
36414

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT - - 31 DIV - 7
----
-4

skipif mysql # not compatible
query I rowsort label-9413
SELECT - - 31 / - 7
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT - 44 - + 56 + + - ( + 4 ) / - COALESCE ( - 86, + 62 ) * + + ( + 74 ) * - - 9 * - + CAST( NULL AS SIGNED ) - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT - 44 - + 56 + + - ( + 4 ) / - COALESCE ( - 86, + 62 ) * + + ( + 74 ) * - - 9 * - + CAST ( NULL AS INTEGER ) - - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT COUNT( * ) * + 64 + 32 + 88
----
184

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT COUNT ( * ) * + 64 + 32 + 88
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT - 1 DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-9416
SELECT - 1 / + + 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT - 60 + + CAST( 51 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9417
SELECT - 60 + + CAST ( 51 AS INTEGER ) AS col0
----
-9

query I rowsort
SELECT - 36 + + 85 * + 39 AS col1
----
3279

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9419
SELECT NULLIF ( - + 59, COUNT( * ) * COALESCE ( + 83, - - 16 ) * + + COUNT( * ) + - 19 + - + CASE + + 32 WHEN - + COUNT( * ) + + CASE 59 WHEN 98 THEN + CAST( NULL AS DECIMAL ) ELSE NULL END THEN - 15 / ( 44 * - 11 ) ELSE 47 END * 72 * 46 + 85 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9419
SELECT NULLIF ( - + 59, COUNT ( * ) * COALESCE ( + 83, - - 16 ) * + + COUNT ( * ) + - 19 + - + CASE + + 32 WHEN - + COUNT ( * ) + + CASE 59 WHEN 98 THEN + CAST ( NULL AS REAL ) ELSE NULL END THEN - 15 / ( 44 * - 11 ) ELSE 47 END * 72 * 46 + 85 ) AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9420
SELECT ALL - COUNT( * ) DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - COUNT ( * ) / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT + MAX( + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9421
SELECT + MAX ( + 56 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT - 40 * 13 + - 36 * - + CAST( NULL AS SIGNED ) - - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT - 40 * 13 + - 36 * - + CAST ( NULL AS INTEGER ) - - + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT - 47 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT - 47 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 25 * - + ( + 35 ) - - 59 col0
----
-816

query II rowsort
SELECT ALL - 79 * 64 AS col0, 60 AS col2
----
-5056
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9426
SELECT - 11 + + 74 + COUNT( * ) * + + COUNT( * ) * - 65 AS col2, ( - + 29 )
----
-2
-29

skipif mysql # not compatible
query II rowsort label-9426
SELECT - 11 + + 74 + COUNT ( * ) * + + COUNT ( * ) * - 65 AS col2, ( - + 29 )
----
-2
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT DISTINCT - 48 * + 53 - CAST( - 44 AS SIGNED )
----
-2500

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT - 48 * + 53 - CAST ( - 44 AS INTEGER )
----
-2500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9428
SELECT - 87 + + - 95 + - 83 + MIN( ALL 64 ) AS col0, ( + - 75 ) DIV + 72 AS col2
----
-201
-1

skipif mysql # not compatible
query II rowsort label-9428
SELECT - 87 + + - 95 + - 83 + MIN ( ALL 64 ) AS col0, ( + - 75 ) / + 72 AS col2
----
-201
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL + COUNT( * ) * - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + COUNT ( * ) * - + 86
----
-86

query I rowsort
SELECT + 71 - - 24 AS col0
----
95

query I rowsort
SELECT + 76 * - + 96 AS col1
----
-7296

query I rowsort
SELECT - 15 + + 97 + - 61
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL CASE WHEN - MAX( ALL 13 ) >= ( + COUNT( * ) - - 0 ) THEN CASE WHEN - 27 IS NOT NULL THEN + COUNT( * ) WHEN NOT ( + 25 ) IS NULL THEN NULL END * COUNT( * ) + - 32 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL CASE WHEN - MAX ( ALL 13 ) >= ( + COUNT ( * ) - - 0 ) THEN CASE WHEN - 27 IS NOT NULL THEN + COUNT ( * ) WHEN NOT ( + 25 ) IS NULL THEN NULL END * COUNT ( * ) + - 32 END col2
----
NULL

query I rowsort
SELECT - ( + 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9435
SELECT + + 4 * + SUM( 37 ) * - MIN( - - 47 ) * + CASE + + 1 WHEN + AVG ( 87 ) / 29 * + COUNT( * ) * CAST( NULL AS DECIMAL ) + 15 THEN - 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT + + 4 * + SUM ( 37 ) * - MIN ( - - 47 ) * + CASE + + 1 WHEN + AVG ( 87 ) / 29 * + COUNT ( * ) * CAST ( NULL AS REAL ) + 15 THEN - 50 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9436
SELECT ALL + ( + NULLIF ( + 22, + + 77 + - 32 + 61 / + 30 ) ) * - - CAST( NULLIF ( - - COALESCE ( 56, + 16 + 35 * 19 ), - 84 * + CAST( + 63 AS DECIMAL ) ) AS SIGNED ) * - 23
----
-28336

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL + ( + NULLIF ( + 22, + + 77 + - 32 + 61 / + 30 ) ) * - - CAST ( NULLIF ( - - COALESCE ( 56, + 16 + 35 * 19 ), - 84 * + CAST ( + 63 AS REAL ) ) AS INTEGER ) * - 23
----
-28336

query I rowsort
SELECT + + 93 + 96 + - 75
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT + - NULLIF ( CAST( + 63 AS SIGNED ), + 33 * + 28 ) + - 52 - + + 62 * + 42 AS col0
----
-2719

skipif mysql # not compatible
query I rowsort label-9438
SELECT + - NULLIF ( CAST ( + 63 AS INTEGER ), + 33 * + 28 ) + - 52 - + + 62 * + 42 AS col0
----
-2719

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT DISTINCT + 54 * - - 37, + 71 * + COUNT( * ) AS col2
----
1998
71

skipif mysql # not compatible
query II rowsort label-9439
SELECT DISTINCT + 54 * - - 37, + 71 * + COUNT ( * ) AS col2
----
1998
71

query I rowsort
SELECT - + 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT + 5 + ( SUM( + + 88 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT + 5 + ( SUM ( + + 88 ) ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-9442
SELECT + 45 DIV + 65 AS col1, 33 AS col2
----
0
33

skipif mysql # not compatible
query II rowsort label-9442
SELECT + 45 / + 65 AS col1, 33 AS col2
----
0
33

query I rowsort
SELECT 77 * 83 + 21 + - + 88
----
6324

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + ( + - CASE + COUNT( * ) WHEN - 95 + - - 7 / + COUNT( * ) * + 30 + + + COUNT( * ) THEN - + 28 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT + ( + - CASE + COUNT ( * ) WHEN - 95 + - - 7 / + COUNT ( * ) * + 30 + + + COUNT ( * ) THEN - + 28 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT + MAX( ALL - COALESCE ( - 41, + - 34 * - 92 ) ) AS col0, 39 * + MAX( DISTINCT + + ( + 65 ) )
----
41
2535

skipif mysql # not compatible
query II rowsort label-9445
SELECT + MAX ( ALL - COALESCE ( - 41, + - 34 * - 92 ) ) AS col0, 39 * + MAX ( DISTINCT + + ( + 65 ) )
----
41
2535

query I rowsort
SELECT + 60 * + + ( + 33 ) * - 1
----
-1980

query I rowsort
SELECT ALL + NULLIF ( + 16, + 18 ) * - 23 * 34 AS col2
----
-12512

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - ( + 98 ) * - 28 + - + CASE + 89 WHEN 1 + + + 75 THEN NULL ELSE + + COUNT( * ) END + - 63
----
2680

skipif mysql # not compatible
query I rowsort label-9448
SELECT - ( + 98 ) * - 28 + - + CASE + 89 WHEN 1 + + + 75 THEN NULL ELSE + + COUNT ( * ) END + - 63
----
2680

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT ALL + 49 AS col1, - COUNT( * ) col0
----
49
-1

skipif mysql # not compatible
query II rowsort label-9449
SELECT ALL + 49 AS col1, - COUNT ( * ) col0
----
49
-1

query I rowsort
SELECT - 30 * + 71
----
-2130

query I rowsort
SELECT ( + - 78 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT 38 DIV + 34 + + 53 DIV - 67 * + - 49
----
1

skipif mysql # not compatible
query I rowsort label-9452
SELECT 38 / + 34 + + 53 / - 67 * + - 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - COUNT( * ) + + 9 * - 33 * 34
----
-10099

skipif mysql # not compatible
query I rowsort label-9453
SELECT - COUNT ( * ) + + 9 * - 33 * 34
----
-10099

query I rowsort
SELECT - 0 * 12 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT 39 * 16 + 97 + - 61 - + - CASE + COUNT( - + 85 ) WHEN + 74 THEN MIN( ALL + + 77 ) * - COUNT( * ) + MIN( DISTINCT - + 42 ) END * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT 39 * 16 + 97 + - 61 - + - CASE + COUNT ( - + 85 ) WHEN + 74 THEN MIN ( ALL + + 77 ) * - COUNT ( * ) + MIN ( DISTINCT - + 42 ) END * 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT DISTINCT - 3 * + CAST( NULL AS SIGNED ) - - 49 * - NULLIF ( + 40, 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT - 3 * + CAST ( NULL AS INTEGER ) - - 49 * - NULLIF ( + 40, 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL - SUM( - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - SUM ( - 88 ) AS col0
----
88

query I rowsort
SELECT 42 - + - 88
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9459
SELECT ALL - 48 DIV 89 * - 71 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - 48 / 89 * - 71 * - COUNT ( * )
----
0

query I rowsort
SELECT 48 * - ( 58 )
----
-2784

query I rowsort
SELECT DISTINCT - 30 * - 85 AS col0
----
2550

query II rowsort
SELECT 98 AS col2, 74 * - - 51 + + + 34
----
98
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + MIN( - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + MIN ( - 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9464
SELECT NULLIF ( - 28, + 84 + COUNT( * ) ) * + 37 * + 43, + 57 * 51 col0
----
-44548
2907

skipif mysql # not compatible
query II rowsort label-9464
SELECT NULLIF ( - 28, + 84 + COUNT ( * ) ) * + 37 * + 43, + 57 * 51 col0
----
-44548
2907

query I rowsort
SELECT ( - 20 ) + 67
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT - 0 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-9466
SELECT - 0 AS col2, COUNT ( * )
----
0
1

query I rowsort
SELECT DISTINCT - + NULLIF ( - - 21, + ( + 47 ) ) * - 49 AS col0
----
1029

query I rowsort
SELECT ALL - + 9 * + 90
----
-810

query I rowsort
SELECT ALL 93 + + 58 AS col0
----
151

query I rowsort
SELECT ALL + - 96 + - - 86
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT DISTINCT 78 AS col1, + MIN( - 48 ) AS col0
----
78
-48

skipif mysql # not compatible
query II rowsort label-9471
SELECT DISTINCT 78 AS col1, + MIN ( - 48 ) AS col0
----
78
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9472
SELECT - COUNT( * ), - 83 + + 16 * - + 4 * - - 94 + - 90 + + 69 AS col1
----
-1
-6120

skipif mysql # not compatible
query II rowsort label-9472
SELECT - COUNT ( * ), - 83 + + 16 * - + 4 * - - 94 + - 90 + + 69 AS col1
----
-1
-6120

query I rowsort
SELECT 24 - + 93 col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT ALL COUNT( * ), + 65 AS col0
----
1
65

skipif mysql # not compatible
query II rowsort label-9474
SELECT ALL COUNT ( * ), + 65 AS col0
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + NULLIF ( + 58, - 66 + + 70 ) + + 68 + - COUNT( ALL - 1 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-9475
SELECT + NULLIF ( + 58, - 66 + + 70 ) + + 68 + - COUNT ( ALL - 1 ) AS col1
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT - 7, MAX( ALL 14 ) AS col2
----
-7
14

skipif mysql # not compatible
query II rowsort label-9476
SELECT - 7, MAX ( ALL 14 ) AS col2
----
-7
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT 77 + + 27 * - COUNT( * ) + 83 * - 15
----
-1195

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT 77 + + 27 * - COUNT ( * ) + 83 * - 15
----
-1195

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - 52 * ( - + CASE WHEN NOT ( NOT ( NOT ( - 93 IN ( + 65, - COUNT( * ) ) ) ) ) THEN - + 86 WHEN NOT ( + 87 ) NOT IN ( - 79 ) THEN 51 + + 83 ELSE - 94 END ) AS col1
----
-4472

skipif mysql # not compatible
query I rowsort label-9478
SELECT - 52 * ( - + CASE WHEN NOT ( NOT ( NOT ( - 93 IN ( + 65, - COUNT ( * ) ) ) ) ) THEN - + 86 WHEN NOT ( + 87 ) NOT IN ( - 79 ) THEN 51 + + 83 ELSE - 94 END ) AS col1
----
-4472

query II rowsort
SELECT 21 AS col0, + 6
----
21
6

query I rowsort
SELECT 93 - - 64 + COALESCE ( + + 87, NULLIF ( + 13, - - 97 + - - 19 + + - 52 ) ) + - 18 - ( + 76 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + + 79 + - COUNT( * ) col2
----
78

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + + 79 + - COUNT ( * ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL COALESCE ( 99, - 22 ) - + COALESCE ( + + 9, + ( + COALESCE ( - - ( - 17 ), 46, - COUNT( * ) ) ) * + - 97 * - - 35, - 64 ) + 31 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL COALESCE ( 99, - 22 ) - + COALESCE ( + + 9, + ( + COALESCE ( - - ( - 17 ), 46, - COUNT ( * ) ) ) * + - 97 * - - 35, - 64 ) + 31 AS col0
----
121

query I rowsort
SELECT DISTINCT 1 * - - 84 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT - CASE - 28 WHEN - - NULLIF ( - 91, ( 81 ) ) - + COUNT( * ) THEN - + ( + CASE 5 WHEN + 12 THEN + - CAST( NULL AS SIGNED ) WHEN - 16 - + + 80 THEN NULL WHEN 25 THEN 65 ELSE 79 END ) WHEN + NULLIF ( 24, ( ( 26 ) ) * 58 ) THEN - 90 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - CASE - 28 WHEN - - NULLIF ( - 91, ( 81 ) ) - + COUNT ( * ) THEN - + ( + CASE 5 WHEN + 12 THEN + - CAST ( NULL AS INTEGER ) WHEN - 16 - + + 80 THEN NULL WHEN 25 THEN 65 ELSE 79 END ) WHEN + NULLIF ( 24, ( ( 26 ) ) * 58 ) THEN - 90 END col0
----
NULL

query I rowsort
SELECT 97 + + ( 10 ) AS col0
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9486
SELECT 3 * + 44 col2, COUNT( * ) DIV + 60 * - - 72 + - + 51 + - 68 * + 68
----
132
-4675

skipif mysql # not compatible
query II rowsort label-9486
SELECT 3 * + 44 col2, COUNT ( * ) / + 60 * - - 72 + - + 51 + - 68 * + 68
----
132
-4675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9487
SELECT 52 DIV - COUNT( * ) - - 63
----
11

skipif mysql # not compatible
query I rowsort label-9487
SELECT 52 / - COUNT ( * ) - - 63
----
11

query I rowsort
SELECT ( - - 54 ) - + + 18 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT 52 * NULLIF ( 41, - AVG ( 76 ) * + ( + + 93 ) + - 11 ) * + 27 + - + CASE COUNT( * ) WHEN 41 THEN NULL WHEN 71 * + 32 * 69 - + ( 84 ) * - 94 THEN - 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT 52 * NULLIF ( 41, - AVG ( 76 ) * + ( + + 93 ) + - 11 ) * + 27 + - + CASE COUNT ( * ) WHEN 41 THEN NULL WHEN 71 * + 32 * 69 - + ( 84 ) * - 94 THEN - 13 END AS col2
----
NULL

query I rowsort
SELECT ( 91 ) + - + ( 64 ) AS col2
----
27

query I rowsort
SELECT 57 * 33
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT DISTINCT SUM( + 80 ) * + 44 AS col2
----
3520

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT SUM ( + 80 ) * + 44 AS col2
----
3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9493
SELECT CAST( - + COALESCE ( - ( - ( + + 54 ) ), + 14 ) AS SIGNED ) * 11 + 91 + - 66 + - - 89 * - + 63 * + NULLIF ( + CASE + 8 WHEN 87 THEN + MAX( ALL 31 ) END, + 68 * 24 ) * COUNT( * ) / 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT CAST ( - + COALESCE ( - ( - ( + + 54 ) ), + 14 ) AS INTEGER ) * 11 + 91 + - 66 + - - 89 * - + 63 * + NULLIF ( + CASE + 8 WHEN 87 THEN + MAX ( ALL 31 ) END, + 68 * 24 ) * COUNT ( * ) / 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT COUNT( * ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-9494
SELECT COUNT ( * ) * - 97
----
-97

query I rowsort
SELECT ALL - 45 + - - 73 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT + COUNT( * ) + - 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + COUNT ( * ) + - 3 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL + 71 + - + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + 71 + - + COUNT ( * ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT 59 + - MAX( 88 ) + - - 33 * - SUM( - + 5 ) * COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-9498
SELECT 59 + - MAX ( 88 ) + - - 33 * - SUM ( - + 5 ) * COUNT ( * )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - 96 + - NULLIF ( MAX( DISTINCT 63 ), + 94 / + - 23 ) AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - 96 + - NULLIF ( MAX ( DISTINCT 63 ), + 94 / + - 23 ) AS col2
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT + 38 + - + CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + 38 + - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9501
SELECT + CAST( NULL AS SIGNED ) + - + SUM( ALL + + 99 ) + 44 - - ( 48 ) / 88 - 77 * + 82 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT + CAST ( NULL AS INTEGER ) + - + SUM ( ALL + + 99 ) + 44 - - ( 48 ) / 88 - 77 * + 82 + 96
----
NULL

query I rowsort
SELECT 39 + + - 13
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - MAX( ALL - 10 ) + 42 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9503
SELECT - MAX ( ALL - 10 ) + 42 AS col2
----
52

query I rowsort
SELECT 29 + 81 * - 17 * 53 * + 49 * 12 AS col0
----
-42912799

query I rowsort
SELECT 16 * ( - 39 ) AS col1
----
-624

query I rowsort
SELECT 59 * - 3 AS col1
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9507
SELECT - COUNT( * ) + - + CAST( + 60 AS SIGNED ) DIV 97 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9507
SELECT - COUNT ( * ) + - + CAST ( + 60 AS INTEGER ) / 97 AS col0
----
-1

query III rowsort
SELECT ALL + 94 - 6 - - 69 + - + 88 AS col0, - 55 AS col1, - 85
----
69
-55
-85

query I rowsort
SELECT ALL - + 89 * 3 col1
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT 4 + + COUNT( ALL - + 79 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9510
SELECT 4 + + COUNT ( ALL - + 79 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT 20 * + COUNT( * ) + - + 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT 20 * + COUNT ( * ) + - + 20 AS col0
----
0

query I rowsort
SELECT 13 * - ( CASE + 41 WHEN 46 THEN NULL ELSE + 47 END ) AS col1
----
-611

query I rowsort
SELECT NULLIF ( + + 87, - ( AVG ( ALL + 64 ) ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT CASE - 1 WHEN + + 76 * + - 9 THEN + 50 + - - 62 WHEN - - COUNT( * ) THEN NULL ELSE NULL END / - 8 + + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT CASE - 1 WHEN + + 76 * + - 9 THEN + 50 + - - 62 WHEN - - COUNT ( * ) THEN NULL ELSE NULL END / - 8 + + - 82 AS col1
----
NULL

query II rowsort
SELECT ALL - 87 AS col1, - 32 AS col0
----
-87
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9516
SELECT NULLIF ( + COALESCE ( - 27, NULLIF ( COUNT( * ), 92 ) * - 66, - 91 DIV 9 + + 91 + - - 17 ), + + CAST( 22 AS SIGNED ) )
----
-27

skipif mysql # not compatible
query I rowsort label-9516
SELECT NULLIF ( + COALESCE ( - 27, NULLIF ( COUNT ( * ), 92 ) * - 66, - 91 / 9 + + 91 + - - 17 ), + + CAST ( 22 AS INTEGER ) )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9517
SELECT COALESCE ( + - COUNT( * ), ( + 93 ) DIV + ( - 98 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9517
SELECT COALESCE ( + - COUNT ( * ), ( + 93 ) / + ( - 98 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9518
SELECT + 88 + + 94 - - 74 - + 29 DIV 76 DIV 93, 84 AS col2
----
256
84

skipif mysql # not compatible
query II rowsort label-9518
SELECT + 88 + + 94 - - 74 - + 29 / 76 / 93, 84 AS col2
----
256
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT DISTINCT + ( + 6 ) DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT + ( + 6 ) / + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT COUNT( * ) * - - 96 + - SUM( + - 74 ) - - + 74 * + 21 + + 62 AS col0
----
1786

skipif mysql # not compatible
query I rowsort label-9520
SELECT COUNT ( * ) * - - 96 + - SUM ( + - 74 ) - - + 74 * + 21 + + 62 AS col0
----
1786

query I rowsort
SELECT ALL + 57 * - + 47 AS col0
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL ( - COUNT( * ) ) * - - 40 * MIN( - 39 ) + 34 - - 64
----
1658

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL ( - COUNT ( * ) ) * - - 40 * MIN ( - 39 ) + 34 - - 64
----
1658

query I rowsort
SELECT 58 * + 56 - + 45 col0
----
3203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9524
SELECT MAX( ALL - ( - - CASE + - 33 WHEN + CAST( NULL AS SIGNED ) THEN - 7 ELSE - + 32 END ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9524
SELECT MAX ( ALL - ( - - CASE + - 33 WHEN + CAST ( NULL AS INTEGER ) THEN - 7 ELSE - + 32 END ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT COUNT( DISTINCT - + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9525
SELECT COUNT ( DISTINCT - + 50 )
----
1

query I rowsort
SELECT + ( + + 72 ) + + + 35 * 65
----
2347

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT MAX( DISTINCT - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9527
SELECT MAX ( DISTINCT - 36 ) AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT CAST( 54 AS SIGNED ) * + + 11 + + COUNT( * ) AS col0
----
595

skipif mysql # not compatible
query I rowsort label-9528
SELECT CAST ( 54 AS INTEGER ) * + + 11 + + COUNT ( * ) AS col0
----
595

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9529
SELECT ALL 4 * + CAST( NULL AS DECIMAL ) + + 55 * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL 4 * + CAST ( NULL AS REAL ) + + 55 * 46 AS col1
----
NULL

query I rowsort
SELECT + + NULLIF ( - 66, + 98 ) AS col1
----
-66

query I rowsort
SELECT ALL + - 8 + - + 50
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT 39 * + 99 + - 0 + + COUNT( * ) AS col0
----
3862

skipif mysql # not compatible
query I rowsort label-9532
SELECT 39 * + 99 + - 0 + + COUNT ( * ) AS col0
----
3862

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT - 85, + 39 + + COUNT( * ) AS col0
----
-85
40

skipif mysql # not compatible
query II rowsort label-9533
SELECT - 85, + 39 + + COUNT ( * ) AS col0
----
-85
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT - CASE COUNT( * ) WHEN + 91 THEN NULL ELSE + + 46 DIV - 72 * - COUNT( * ) END + COUNT( * ) * 80 + - 82 * + + 3 * - - 9 AS col2
----
-2134

skipif mysql # not compatible
query I rowsort label-9534
SELECT - CASE COUNT ( * ) WHEN + 91 THEN NULL ELSE + + 46 / - 72 * - COUNT ( * ) END + COUNT ( * ) * 80 + - 82 * + + 3 * - - 9 AS col2
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL + 84 - - COUNT( * ) + - 42
----
43

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL + 84 - - COUNT ( * ) + - 42
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9536
SELECT + 25 * 17 DIV + 42 col2, - 30 + - - NULLIF ( - 6, - CAST( COALESCE ( - 14, 2 * + 90 - + 10, 46 + 63 * + + COUNT( * ) ) AS SIGNED ) ) * ( + 3 ) AS col2
----
10
-48

skipif mysql # not compatible
query II rowsort label-9536
SELECT + 25 * 17 / + 42 col2, - 30 + - - NULLIF ( - 6, - CAST ( COALESCE ( - 14, 2 * + 90 - + 10, 46 + 63 * + + COUNT ( * ) ) AS INTEGER ) ) * ( + 3 ) AS col2
----
10
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT + - 4 DIV + 32 * - 94
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT + - 4 / + 32 * - 94
----
0

query I rowsort
SELECT ALL + 43 - + 59
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT + COALESCE ( - - COUNT( * ), + - 13 ) + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9539
SELECT + COALESCE ( - - COUNT ( * ), + - 13 ) + 32 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - 83 * - + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9540
SELECT - 83 * - + COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9541
SELECT ALL + SUM( ALL 89 ) DIV 43 col0
----
2

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL + SUM ( ALL 89 ) / 43 col0
----
2

query I rowsort
SELECT - 77 + - 90 AS col1
----
-167

query II rowsort
SELECT 36, - 85 AS col1
----
36
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - COUNT( * ) * - COALESCE ( - - ( + 81 ), + + 1 * - COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-9544
SELECT - COUNT ( * ) * - COALESCE ( - - ( + 81 ), + + 1 * - COUNT ( * ) )
----
81

query I rowsort
SELECT ALL 59 * - - 71
----
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT DISTINCT SUM( - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT SUM ( - - 68 )
----
68

query I rowsort
SELECT ALL + NULLIF ( + + 84, + - 86 ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + COUNT( - - 96 ) * + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + COUNT ( - - 96 ) * + 47 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT DISTINCT + CAST( 74 AS SIGNED ) * - COUNT( * ) * + + 42 * + CASE - 59 WHEN 49 THEN - COUNT( * ) WHEN - - SUM( ALL - - 6 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + CAST ( 74 AS INTEGER ) * - COUNT ( * ) * + + 42 * + CASE - 59 WHEN 49 THEN - COUNT ( * ) WHEN - - SUM ( ALL - - 6 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9550
SELECT + 18, MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9550
SELECT + 18, MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
18
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT - 11 + + 7 + + 2 - - + 75 DIV 6
----
10

skipif mysql # not compatible
query I rowsort label-9551
SELECT - 11 + + 7 + + 2 - - + 75 / 6
----
10

query I rowsort
SELECT - 29 * 37 * + 14 AS col1
----
-15022

onlyif mysql # aggregate syntax: 
query II rowsort label-9553
SELECT - COALESCE ( - 48, + 98, + - 35 * 89 + - + COUNT( * ) * 38 + 41 ) * + 60 * + 7 * - 95 AS col2, COUNT( * ) * - - COALESCE ( - 95, + + 90 ) AS col2
----
-1915200
-95

skipif mysql # not compatible
query II rowsort label-9553
SELECT - COALESCE ( - 48, + 98, + - 35 * 89 + - + COUNT ( * ) * 38 + 41 ) * + 60 * + 7 * - 95 AS col2, COUNT ( * ) * - - COALESCE ( - 95, + + 90 ) AS col2
----
-1915200
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT DISTINCT 73 DIV - COUNT( * ) + - 62 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT 73 / - COUNT ( * ) + - 62 AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + COALESCE ( + 64, - COUNT( * ), - + 17 * + 59 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9555
SELECT + COALESCE ( + 64, - COUNT ( * ), - + 17 * + 59 ) AS col0
----
64

query I rowsort
SELECT + ( - 51 ) + + - 0 AS col1
----
-51

query II rowsort
SELECT + 81 col1, 80 - - 14 AS col1
----
81
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9558
SELECT DISTINCT - COUNT( * ) * + 68 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - COUNT ( * ) * + 68 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 29 * 12 + - ( + 68 ) * - 5
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT + COUNT( * ) AS col0, + 4
----
1
4

skipif mysql # not compatible
query II rowsort label-9560
SELECT + COUNT ( * ) AS col0, + 4
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL ( + 77 ) * - - ( + 11 ) + + COUNT( * ) AS col2
----
848

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL ( + 77 ) * - - ( + 11 ) + + COUNT ( * ) AS col2
----
848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL + - ( + 13 ) * + 74 + - CASE - COUNT( * ) WHEN 52 * + COUNT( * ) THEN 37 * - MAX( - ( + + CAST( NULL AS SIGNED ) ) ) * - - 8 + - 42 - 87 + - COUNT( * ) + - - 15 * - CAST( - 54 + 37 AS SIGNED ) WHEN 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + - ( + 13 ) * + 74 + - CASE - COUNT ( * ) WHEN 52 * + COUNT ( * ) THEN 37 * - MAX ( - ( + + CAST ( NULL AS INTEGER ) ) ) * - - 8 + - 42 - 87 + - COUNT ( * ) + - - 15 * - CAST ( - 54 + 37 AS INTEGER ) WHEN 1 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT + + SUM( DISTINCT 29 ) * + 75 AS col1
----
2175

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + + SUM ( DISTINCT 29 ) * + 75 AS col1
----
2175

query I rowsort
SELECT ALL + - ( + 70 ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - + MIN( DISTINCT + 55 ) )
----
55

skipif mysql # not compatible
query I rowsort label-9565
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - + MIN ( DISTINCT + 55 ) )
----
55

query I rowsort
SELECT + 43 * 12 AS col2
----
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9567
SELECT ( - + 16 ) * CAST( + - ( - 22 ) AS SIGNED ) DIV CAST( - + COUNT( * ) AS SIGNED ) + - 9 + 56
----
399

skipif mysql # not compatible
query I rowsort label-9567
SELECT ( - + 16 ) * CAST ( + - ( - 22 ) AS INTEGER ) / CAST ( - + COUNT ( * ) AS INTEGER ) + - 9 + 56
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL - ( + MAX( - 98 ) ) * 87 + + 68 - + + 29
----
8565

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - ( + MAX ( - 98 ) ) * 87 + + 68 - + + 29
----
8565

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT + + 66 AS col0, + ( + - NULLIF ( + 33, + - NULLIF ( - 27, 88 ) ) ) * MAX( ALL + 18 ) + + COUNT( * ) AS col1
----
66
-593

skipif mysql # not compatible
query II rowsort label-9569
SELECT + + 66 AS col0, + ( + - NULLIF ( + 33, + - NULLIF ( - 27, 88 ) ) ) * MAX ( ALL + 18 ) + + COUNT ( * ) AS col1
----
66
-593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9570
SELECT + - 8 + + + 74 - - MIN( 42 ) DIV - - ( 73 ) * + MIN( + 47 )
----
66

skipif mysql # not compatible
query I rowsort label-9570
SELECT + - 8 + + + 74 - - MIN ( 42 ) / - - ( 73 ) * + MIN ( + 47 )
----
66

query I rowsort
SELECT + - 49 * + 96 + 57
----
-4647

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT ALL + COUNT( * ) AS col0, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-9572
SELECT ALL + COUNT ( * ) AS col0, 33
----
1
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9573
SELECT DISTINCT 70, - NULLIF ( + 94, + COUNT( * ) * + NULLIF ( - - 82, 27 ) * + - 31 ) DIV 29 AS col1, + 36 + - 5 AS col1
----
70
-3
31

skipif mysql # not compatible
query III rowsort label-9573
SELECT DISTINCT 70, - NULLIF ( + 94, + COUNT ( * ) * + NULLIF ( - - 82, 27 ) * + - 31 ) / 29 AS col1, + 36 + - 5 AS col1
----
70
-3
31

query I rowsort
SELECT ALL 85 * 25 - - 49
----
2174

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT + 31 + + + MAX( - 28 ) + 87
----
90

skipif mysql # not compatible
query I rowsort label-9575
SELECT + 31 + + + MAX ( - 28 ) + 87
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT ALL 98 col0, MAX( - 89 )
----
98
-89

skipif mysql # not compatible
query II rowsort label-9576
SELECT ALL 98 col0, MAX ( - 89 )
----
98
-89

query II rowsort
SELECT DISTINCT - 66, - 7 AS col0
----
-66
-7

query II rowsort
SELECT + 98 + - + 0, + 46 AS col1
----
98
46

query I rowsort
SELECT + + CASE + 61 WHEN 95 THEN NULL WHEN - 18 THEN NULL ELSE + - ( - 19 ) END + - 99
----
-80

query II rowsort
SELECT - + 84 AS col1, ( + 13 ) + - 48
----
-84
-35

query I rowsort
SELECT - ( - 59 ) AS col1
----
59

query II rowsort
SELECT + - 48 * - 56 AS col0, 61
----
2688
61

query I rowsort
SELECT ( 95 ) + - 91 AS col1
----
4

query I rowsort
SELECT DISTINCT 71 + 27
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + 57 + - + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + 57 + - + COUNT ( * ) AS col0
----
56

query II rowsort
SELECT 57 * + - 88 AS col1, + 26 AS col2
----
-5016
26

query I rowsort
SELECT ALL - 86 * 23 AS col0
----
-1978

onlyif mysql # aggregate syntax: 
query II rowsort label-9588
SELECT DISTINCT + COUNT( * ) + 68 AS col2, - 39
----
69
-39

skipif mysql # not compatible
query II rowsort label-9588
SELECT DISTINCT + COUNT ( * ) + 68 AS col2, - 39
----
69
-39

query I rowsort
SELECT DISTINCT + 41 * + ( - + ( - 21 ) ) AS col2
----
861

query I rowsort
SELECT - ( 58 )
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-9591
SELECT + 36 + - 4 AS col0, + 99 DIV - 44 + - ( + ( + 41 ) ) + - + 70
----
32
-113

skipif mysql # not compatible
query II rowsort label-9591
SELECT + 36 + - 4 AS col0, + 99 / - 44 + - ( + ( + 41 ) ) + - + 70
----
32
-113

query I rowsort
SELECT DISTINCT - 17 - + + 8
----
-25

query I rowsort
SELECT ALL - + 10 col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT + CASE + - COALESCE ( + + 39, + 26 - + NULLIF ( + 16, - 89 ) ) WHEN + 38 THEN 28 WHEN + 75 * + 31 + - 1 * 64 * + + CAST( NULL AS SIGNED ) THEN - 52 END * + 91 + - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT + CASE + - COALESCE ( + + 39, + 26 - + NULLIF ( + 16, - 89 ) ) WHEN + 38 THEN 28 WHEN + 75 * + 31 + - 1 * 64 * + + CAST ( NULL AS INTEGER ) THEN - 52 END * + 91 + - - 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT + CAST( 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9595
SELECT + CAST ( 84 AS INTEGER ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT + 56 - - ( + 49 ) * + COUNT( * ) col2
----
105

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT + 56 - - ( + 49 ) * + COUNT ( * ) col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT DISTINCT - CAST( - NULLIF ( - 30, - 59 * + 57 * + COUNT( * ) - CASE + 59 WHEN - 1 THEN + 78 * + + 72 * - - 83 + + + AVG ( DISTINCT - 56 ) + 42 * + 60 * - 38 ELSE NULL END + + 30 ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - CAST ( - NULLIF ( - 30, - 59 * + 57 * + COUNT ( * ) - CASE + 59 WHEN - 1 THEN + 78 * + + 72 * - - 83 + + + AVG ( DISTINCT - 56 ) + 42 * + 60 * - 38 ELSE NULL END + + 30 ) AS INTEGER )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT DISTINCT - 76 * 92 DIV 57
----
-122

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT - 76 * 92 / 57
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT - 43 * CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT - 43 * CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT 93 * - COALESCE ( + - 79, - CASE + 54 WHEN - 51 THEN 52 + - - 99 WHEN - ( - + 77 ) * 53 * - CAST( - COALESCE ( - 71, + 18 + + 53 + - + 32 * 32 ) AS SIGNED ) + 15 THEN NULL ELSE - 65 END ) * 25 - 4 * 68 AS col0
----
183403

skipif mysql # not compatible
query I rowsort label-9600
SELECT 93 * - COALESCE ( + - 79, - CASE + 54 WHEN - 51 THEN 52 + - - 99 WHEN - ( - + 77 ) * 53 * - CAST ( - COALESCE ( - 71, + 18 + + 53 + - + 32 * 32 ) AS INTEGER ) + 15 THEN NULL ELSE - 65 END ) * 25 - 4 * 68 AS col0
----
183403

onlyif mysql # DIV for integer division: 
query II rowsort label-9601
SELECT - ( 16 ), 91 DIV - 86 col1
----
-16
-1

skipif mysql # not compatible
query II rowsort label-9601
SELECT - ( 16 ), 91 / - 86 col1
----
-16
-1

query I rowsort
SELECT ALL - 16 * + + 27
----
-432

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT ALL - ( - - COUNT( * ) ) AS col2, 54
----
-1
54

skipif mysql # not compatible
query II rowsort label-9603
SELECT ALL - ( - - COUNT ( * ) ) AS col2, 54
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + 79 * + - 4 * - + 52 * + MAX( DISTINCT 29 ) AS col0
----
476528

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 79 * + - 4 * - + 52 * + MAX ( DISTINCT 29 ) AS col0
----
476528

query II rowsort
SELECT DISTINCT 1 + + + 17 * + 73, 68 + - 99 AS col1
----
1242
-31

query II rowsort
SELECT ALL 48, 62 - - 65 AS col0
----
48
127

query I rowsort
SELECT ALL 30 + 12 AS col0
----
42

query I rowsort
SELECT 32 + + - 9
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT 41 + 61 DIV + COALESCE ( 42, - 27 ) - 79 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9609
SELECT 41 + 61 / + COALESCE ( 42, - 27 ) - 79 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT SUM( 74 ) + - 70 + + 27 + ( + COUNT( ALL - 58 ) ) * COALESCE ( 82, + 37 + + + 78 ) * 74 + - COUNT( * ) AS col0
----
6098

skipif mysql # not compatible
query I rowsort label-9610
SELECT SUM ( 74 ) + - 70 + + 27 + ( + COUNT ( ALL - 58 ) ) * COALESCE ( 82, + 37 + + + 78 ) * 74 + - COUNT ( * ) AS col0
----
6098

query II rowsort
SELECT 99 col2, 21 AS col0
----
99
21

query I rowsort
SELECT ALL 52 + 43 AS col2
----
95

query I rowsort
SELECT 67 + + + 75 * - 99 + 87
----
-7271

query I rowsort
SELECT ALL 64 * 79
----
5056

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT - COUNT( * ) AS col1, COUNT( * ) * 21
----
-1
21

skipif mysql # not compatible
query II rowsort label-9615
SELECT - COUNT ( * ) AS col1, COUNT ( * ) * 21
----
-1
21

query II rowsort
SELECT ALL - NULLIF ( 84, - - 79 ) AS col0, + 72
----
-84
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT COUNT( DISTINCT 8 )
----
1

skipif mysql # not compatible
query I rowsort label-9617
SELECT COUNT ( DISTINCT 8 )
----
1

query II rowsort
SELECT ALL - 18 AS col1, 4 * - + 84 * - 30 AS col1
----
-18
10080

query I rowsort
SELECT ALL 46 * + - NULLIF ( + ( - 18 ), - 76 ) - + 84 * 64
----
-4548

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9620
SELECT 63 DIV + 4 + - - 36 * CAST( + + 60 AS SIGNED ) + 54 AS col1
----
2229

skipif mysql # not compatible
query I rowsort label-9620
SELECT 63 / + 4 + - - 36 * CAST ( + + 60 AS INTEGER ) + 54 AS col1
----
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT MAX( + 92 ) * + NULLIF ( 76, - 79 ) AS col1
----
6992

skipif mysql # not compatible
query I rowsort label-9621
SELECT MAX ( + 92 ) * + NULLIF ( 76, - 79 ) AS col1
----
6992

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT ( - 63 ) + + 92 - - 12 col1, - 41 * - COUNT( DISTINCT 86 ) * COUNT( * ) * + COUNT( * )
----
41
41

skipif mysql # not compatible
query II rowsort label-9622
SELECT ( - 63 ) + + 92 - - 12 col1, - 41 * - COUNT ( DISTINCT 86 ) * COUNT ( * ) * + COUNT ( * )
----
41
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT ALL - COUNT( ALL + ( 97 ) ), + 90 + - 30 AS col1
----
-1
60

skipif mysql # not compatible
query II rowsort label-9623
SELECT ALL - COUNT ( ALL + ( 97 ) ), + 90 + - 30 AS col1
----
-1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL - - CAST( NULL AS SIGNED ) * - - NULLIF ( - COUNT( * ), + 36 + 2 ) * 25 + - - CAST( 41 AS SIGNED ) / - 55 + - ( - MIN( + 11 ) ) + + 94 + - - CAST( NULL AS SIGNED ) - ( + 34 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - - CAST ( NULL AS INTEGER ) * - - NULLIF ( - COUNT ( * ), + 36 + 2 ) * 25 + - - CAST ( 41 AS INTEGER ) / - 55 + - ( - MIN ( + 11 ) ) + + 94 + - - CAST ( NULL AS INTEGER ) - ( + 34 ) AS col2
----
NULL

query I rowsort
SELECT 59 * + + 32
----
1888

query I rowsort
SELECT ALL - + 22 * 49 AS col2
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL 61 * 28 * + - 28 + 39 + + COALESCE ( + 57, COUNT( * ) + - ( 8 ), - + ( 41 ) - - 25 + - + CASE - 83 WHEN + - CASE - NULLIF ( + 66, - - 7 * - COUNT( * ) ) WHEN COUNT( + 33 ) / - 86 + + 92 * - 80 THEN - NULLIF ( COALESCE ( - CASE ( + 67 ) WHEN + 19 THEN CASE + 4 WHEN COUNT( * ) THEN NULL WHEN 85 THEN + ( + 44 ) * + MIN( 61 ) WHEN 33 - + MAX( ALL 66 ) THEN - ( - CASE + 98 WHEN 37 + + 14 THEN ( + 28 ) END ) END * MIN( ALL 97 * - 94 ) WHEN 69 + + 29 THEN NULL ELSE NULL END, ( CAST( NULL AS SIGNED ) ) ), 43 / 77 - - 75 / - 30 ) WHEN - 93 THEN NULL END THEN + 68 ELSE NULL END * - 43 ) * CAST( 57 AS SIGNED ) col2
----
-44536

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL 61 * 28 * + - 28 + 39 + + COALESCE ( + 57, COUNT ( * ) + - ( 8 ), - + ( 41 ) - - 25 + - + CASE - 83 WHEN + - CASE - NULLIF ( + 66, - - 7 * - COUNT ( * ) ) WHEN COUNT ( + 33 ) / - 86 + + 92 * - 80 THEN - NULLIF ( COALESCE ( - CASE ( + 67 ) WHEN + 19 THEN CASE + 4 WHEN COUNT ( * ) THEN NULL WHEN 85 THEN + ( + 44 ) * + MIN ( 61 ) WHEN 33 - + MAX ( ALL 66 ) THEN - ( - CASE + 98 WHEN 37 + + 14 THEN ( + 28 ) END ) END * MIN ( ALL 97 * - 94 ) WHEN 69 + + 29 THEN NULL ELSE NULL END, ( CAST ( NULL AS INTEGER ) ) ), 43 / 77 - - 75 / - 30 ) WHEN - 93 THEN NULL END THEN + 68 ELSE NULL END * - 43 ) * CAST ( 57 AS INTEGER ) col2
----
-44536

query I rowsort
SELECT + - ( 5 ) AS col1
----
-5

query I rowsort
SELECT - 50 * - + COALESCE ( - + 15, 16 ) + + 33 AS col1
----
-717

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL + NULLIF ( + - ( - 89 ), - + COUNT( * ) * + 32 )
----
89

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + NULLIF ( + - ( - 89 ), - + COUNT ( * ) * + 32 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9631
SELECT + - 98 AS col2, MIN( + 54 ) AS col0
----
-98
54

skipif mysql # not compatible
query II rowsort label-9631
SELECT + - 98 AS col2, MIN ( + 54 ) AS col0
----
-98
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL + - COUNT( * ) + + 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + - COUNT ( * ) + + 85 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT - CAST( NULL AS SIGNED ) + + 50 + + 26 * - + ( - COUNT( * ) ) * COUNT( * ) + - + 66 * - 5 * + 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT - CAST ( NULL AS INTEGER ) + + 50 + + 26 * - + ( - COUNT ( * ) ) * COUNT ( * ) + - + 66 * - 5 * + 62 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL - COUNT( * ) + - 38 + - 39 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - COUNT ( * ) + - 38 + - 39 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - - 15 + + - CASE + 33 WHEN + + SUM( 58 ) THEN NULL ELSE 52 END AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9635
SELECT - - 15 + + - CASE + 33 WHEN + + SUM ( 58 ) THEN NULL ELSE 52 END AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL - + 38 + + COUNT( * ) + - - 22 * + 13
----
249

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - + 38 + + COUNT ( * ) + - - 22 * + 13
----
249

query II rowsort
SELECT ALL 73 AS col2, 50
----
73
50

query I rowsort
SELECT ALL 60 + - 60 * - - 4 + - ( - 7 ) * + - 7
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL 18 * + 57 * COUNT( * )
----
1026

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL 18 * + 57 * COUNT ( * )
----
1026

onlyif mysql # aggregate syntax: 
query II rowsort label-9640
SELECT - 24 + + 68 + - - COUNT( * ) * ( - 25 ) + - + 16 * - SUM( - 17 ) * - + 35 AS col1, 17 + - 48 AS col1
----
9539
-31

skipif mysql # not compatible
query II rowsort label-9640
SELECT - 24 + + 68 + - - COUNT ( * ) * ( - 25 ) + - + 16 * - SUM ( - 17 ) * - + 35 AS col1, 17 + - 48 AS col1
----
9539
-31

query I rowsort
SELECT DISTINCT + ( + 49 ) + 78 * + + 39
----
3091

query I rowsort
SELECT ALL - 58 * + 78
----
-4524

query II rowsort
SELECT - 6 * - - 93 AS col2, 16
----
-558
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL 76 + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL 76 + - COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT ALL 52 DIV - 70 * 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL 52 / - 70 * 28 AS col1
----
0

query I rowsort
SELECT ALL CASE + 60 WHEN + 83 THEN + COALESCE ( + ( 52 ), - 99 ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9647
SELECT DISTINCT NULLIF ( 34, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - MAX( 92 ) + + 73 + - 64 / + + COUNT( * ) + 84 + - 39 / - 58 + + 12 * 81 * - 47 * + ( 31 ) * - COUNT( * ) - 67 )
----
34

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT NULLIF ( 34, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - MAX ( 92 ) + + 73 + - 64 / + + COUNT ( * ) + 84 + - 39 / - 58 + + 12 * 81 * - 47 * + ( 31 ) * - COUNT ( * ) - 67 )
----
34

query I rowsort
SELECT DISTINCT ( - - 0 ) AS col1
----
0

query I rowsort
SELECT ALL ( 64 ) col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9650
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + + 74 ) + + + 22 col2, 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-9650
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + + 74 ) + + + 22 col2, 42
----
NULL
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT DISTINCT 51 - - 80 AS col2, - COUNT( * ) + + 75 AS col1
----
131
74

skipif mysql # not compatible
query II rowsort label-9651
SELECT DISTINCT 51 - - 80 AS col2, - COUNT ( * ) + + 75 AS col1
----
131
74

query I rowsort
SELECT ALL 10 * - - 49 * 11 col2
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - NULLIF ( + 78, + - 38 ) * COUNT( * ) + + ( ( - 68 ) ) + 40 + + + ( + NULLIF ( - 95, - + COUNT( * ) + - - 9 * + + COALESCE ( 83, - - 16 ) ) ) * - + 80 + 90 + - 74 * 38 col0
----
4772

skipif mysql # not compatible
query I rowsort label-9653
SELECT - NULLIF ( + 78, + - 38 ) * COUNT ( * ) + + ( ( - 68 ) ) + 40 + + + ( + NULLIF ( - 95, - + COUNT ( * ) + - - 9 * + + COALESCE ( 83, - - 16 ) ) ) * - + 80 + 90 + - 74 * 38 col0
----
4772

query I rowsort
SELECT DISTINCT + 59 * 72 AS col2
----
4248

query I rowsort
SELECT ALL + COALESCE ( - 69, + + 53, 28 + + 89 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT + 62 * + COUNT( - 34 ) - - 34 + + CASE + ( - 20 ) WHEN + 32 THEN + 76 WHEN + - COUNT( * ) - - - 30 THEN + - 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 62 * + COUNT ( - 34 ) - - 34 + + CASE + ( - 20 ) WHEN + 32 THEN + 76 WHEN + - COUNT ( * ) - - - 30 THEN + - 86 END AS col0
----
NULL

query I rowsort
SELECT + - 20 + 9 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT DISTINCT ( + - CAST( 98 AS SIGNED ) ) * - 65 - + - 51
----
6421

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT ( + - CAST ( 98 AS INTEGER ) ) * - 65 - + - 51
----
6421

query I rowsort
SELECT ALL + CASE - + 57 WHEN 51 THEN + - 6 ELSE - 68 * + 68 END
----
-4624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT 79 * - 60 / COALESCE ( + 56, + 26 + - 39 * - 35, 44 * - NULLIF ( - - 37, 88 ), + + 18 * - + 96 / + COALESCE ( - 38, - COUNT( * ) ) ) * 76 * - CAST( NULL AS SIGNED ) + - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT 79 * - 60 / COALESCE ( + 56, + 26 + - 39 * - 35, 44 * - NULLIF ( - - 37, 88 ), + + 18 * - + 96 / + COALESCE ( - 38, - COUNT ( * ) ) ) * 76 * - CAST ( NULL AS INTEGER ) + - 50 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 90 col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT ALL 95 DIV 92
----
1

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL 95 / 92
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - 34 + COUNT( ALL + + 50 )
----
-33

skipif mysql # not compatible
query I rowsort label-9663
SELECT - 34 + COUNT ( ALL + + 50 )
----
-33

query I rowsort
SELECT + - 23 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT COUNT( * ) * 68 + + 43 * - - 79
----
3465

skipif mysql # not compatible
query I rowsort label-9665
SELECT COUNT ( * ) * 68 + + 43 * - - 79
----
3465

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9666
SELECT + - COUNT( 3 ) col0, + 74 - + 10 - - CASE WHEN NOT - 24 IN ( + 42, SUM( - - 95 ) * + + 24 ) THEN - MIN( ALL - 38 ) ELSE NULL END * ( ( - 14 ) ) DIV + 62 AS col2, + 82 * - 30 - - 27 * + 9 - 51 * 82
----
-1
56
-6399

skipif mysql # not compatible
query III rowsort label-9666
SELECT + - COUNT ( 3 ) col0, + 74 - + 10 - - CASE WHEN NOT - 24 IN ( + 42, SUM ( - - 95 ) * + + 24 ) THEN - MIN ( ALL - 38 ) ELSE NULL END * ( ( - 14 ) ) / + 62 AS col2, + 82 * - 30 - - 27 * + 9 - 51 * 82
----
-1
56
-6399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT ALL + 55 DIV + COUNT( * ) col2
----
55

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL + 55 / + COUNT ( * ) col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT + - 44 * - 66 * MIN( - 78 ) - - - 47 + - + 5 AS col0
----
-226564

skipif mysql # not compatible
query I rowsort label-9668
SELECT + - 44 * - 66 * MIN ( - 78 ) - - - 47 + - + 5 AS col0
----
-226564

query I rowsort
SELECT ALL - 75 * 28 + - 10 * + - 12 * - 13 AS col0
----
-3660

query I rowsort
SELECT - + 69 * + 99 - - + 28 AS col1
----
-6803

query I rowsort
SELECT ALL + + CASE - - 41 WHEN + AVG ( 70 ) THEN NULL WHEN - 90 * ( + 98 ) THEN + 43 ELSE - + 46 END
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT + COUNT( * ) * + 84 + + 43 + - - MAX( ( + 89 ) ) AS col2
----
216

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + COUNT ( * ) * + 84 + + 43 + - - MAX ( ( + 89 ) ) AS col2
----
216

query I rowsort
SELECT + ( + 62 ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT MIN( - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9674
SELECT MIN ( - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT + 12 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9675
SELECT + 12 * - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - COUNT( * ) * - 81
----
81

skipif mysql # not compatible
query I rowsort label-9676
SELECT - COUNT ( * ) * - 81
----
81

query I rowsort
SELECT ALL NULLIF ( 61, 0 ) AS col1
----
61

query I rowsort
SELECT DISTINCT ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL COUNT( ALL 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL COUNT ( ALL 9 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 81 - + - 53 col2
----
134

query I rowsort
SELECT ALL + 72 * + - 26 * + 15 AS col1
----
-28080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9682
SELECT ALL + 99 - - ( + CAST( NULL AS SIGNED ) ) + - SUM( ALL 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL + 99 - - ( + CAST ( NULL AS INTEGER ) ) + - SUM ( ALL 94 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT - CASE - 89 WHEN COUNT( * ) THEN - CASE - SUM( - 74 ) WHEN ( COALESCE ( - + 39, - - 78, + ( - CASE 42 WHEN + - ( - AVG ( + - NULLIF ( CAST( - - 0 AS SIGNED ), + - 8 * + + 42 ) ) ) * - 35 THEN NULL ELSE - 10 END ) + 33 ) ) + + 72 THEN 13 * AVG ( + 85 ) WHEN 99 + 8 THEN 2 ELSE + 57 / AVG ( 59 ) END ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT - CASE - 89 WHEN COUNT ( * ) THEN - CASE - SUM ( - 74 ) WHEN ( COALESCE ( - + 39, - - 78, + ( - CASE 42 WHEN + - ( - AVG ( + - NULLIF ( CAST ( - - 0 AS INTEGER ), + - 8 * + + 42 ) ) ) * - 35 THEN NULL ELSE - 10 END ) + 33 ) ) + + 72 THEN 13 * AVG ( + 85 ) WHEN 99 + 8 THEN 2 ELSE + 57 / AVG ( 59 ) END ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9684
SELECT - 19 AS col2, CAST( NULL AS SIGNED )
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-9684
SELECT - 19 AS col2, CAST ( NULL AS INTEGER )
----
-19
NULL

query I rowsort
SELECT - 22 + + ( - 69 ) AS col2
----
-91

query I rowsort
SELECT ALL ( 45 ) AS col0
----
45

query I rowsort
SELECT ALL + 64 * 8
----
512

query II rowsort
SELECT - ( + 92 ) * + 41 AS col2, 72 * - + 50
----
-3772
-3600

query I rowsort
SELECT ALL ( + + 84 )
----
84

query I rowsort
SELECT DISTINCT - - 89 * 26 * - 52
----
-120328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT - - CASE + 6 WHEN + + 77 THEN - CAST( NULL AS SIGNED ) WHEN ( 2 ) / - 65 * + 83 * 52 THEN NULL END + - - COALESCE ( + 42, + 31 ) + MIN( 84 ) * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - - CASE + 6 WHEN + + 77 THEN - CAST ( NULL AS INTEGER ) WHEN ( 2 ) / - 65 * + 83 * 52 THEN NULL END + - - COALESCE ( + 42, + 31 ) + MIN ( 84 ) * 81 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT ALL + + 76 DIV + + 3
----
25

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + + 76 / + + 3
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) * - MIN( DISTINCT - + 79 ) / COALESCE ( + 9, MAX( + 61 ) / 81 + + + 34 + + - COUNT( * ) + + NULLIF ( - + 3, ( + 3 ) / - 57 + + 87 + - - CAST( NULL AS SIGNED ) / + 54 ) + 99 + 49 * + COUNT( * ) ) + 86 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - MIN ( DISTINCT - + 79 ) / COALESCE ( + 9, MAX ( + 61 ) / 81 + + + 34 + + - COUNT ( * ) + + NULLIF ( - + 3, ( + 3 ) / - 57 + + 87 + - - CAST ( NULL AS INTEGER ) / + 54 ) + 99 + 49 * + COUNT ( * ) ) + 86 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - 39 + CASE - 48 WHEN - - MAX( DISTINCT - + 78 ) THEN + - 12 * - ( + ( + - 82 ) ) * + 87 END * - + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT - 39 + CASE - 48 WHEN - - MAX ( DISTINCT - + 78 ) THEN + - 12 * - ( + ( + - 82 ) ) * + 87 END * - + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT 50 DIV - 83 - - MIN( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9695
SELECT 50 / - 83 - - MIN ( - 14 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT DISTINCT 83 + 22 + COUNT( * ) DIV 40 col1
----
105

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT 83 + 22 + COUNT ( * ) / 40 col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT - COUNT( * ) + - COUNT( - + 88 ) + + 95 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT - COUNT ( * ) + - COUNT ( - + 88 ) + + 95 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9698
SELECT + COUNT( * ) * + MIN( - 31 ), + 89 * + MAX( + + ( + 87 ) ) AS col1
----
-31
7743

skipif mysql # not compatible
query II rowsort label-9698
SELECT + COUNT ( * ) * + MIN ( - 31 ), + 89 * + MAX ( + + ( + 87 ) ) AS col1
----
-31
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL - 95 + + 35 + + COUNT( * ) + + 0 + + - 44 * + 25
----
-1159

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - 95 + + 35 + + COUNT ( * ) + + 0 + + - 44 * + 25
----
-1159

query I rowsort
SELECT + - 37 col0
----
-37

query I rowsort
SELECT DISTINCT + + 21 + 49 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9702
SELECT + ( CAST( 88 AS SIGNED ) ) + + COUNT( * ) * - ( - 64 ) * - + ( 30 ) * + 0
----
88

skipif mysql # not compatible
query I rowsort label-9702
SELECT + ( CAST ( 88 AS INTEGER ) ) + + COUNT ( * ) * - ( - 64 ) * - + ( 30 ) * + 0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9703
SELECT COUNT( * ) + - 54 - - 32 + 19 * ( - 2 ) + - 98 - 69 * + 41 - COALESCE ( + ( - 38 ), - 60 ), - COUNT( * ) + - - ( - CAST( NULL AS SIGNED ) ) * + - 1 AS col1
----
-2948
NULL

skipif mysql # not compatible
query II rowsort label-9703
SELECT COUNT ( * ) + - 54 - - 32 + 19 * ( - 2 ) + - 98 - 69 * + 41 - COALESCE ( + ( - 38 ), - 60 ), - COUNT ( * ) + - - ( - CAST ( NULL AS INTEGER ) ) * + - 1 AS col1
----
-2948
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT - ( - 85 ) * CAST( + 83 AS SIGNED )
----
7055

skipif mysql # not compatible
query I rowsort label-9704
SELECT - ( - 85 ) * CAST ( + 83 AS INTEGER )
----
7055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9705
SELECT - + COUNT( * ) * + CAST( 89 AS SIGNED ) + MAX( 77 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9705
SELECT - + COUNT ( * ) * + CAST ( 89 AS INTEGER ) + MAX ( 77 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9706
SELECT + 40 col0, COUNT( * )
----
40
1

skipif mysql # not compatible
query II rowsort label-9706
SELECT + 40 col0, COUNT ( * )
----
40
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT 41 + + + CAST( + + 40 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9707
SELECT 41 + + + CAST ( + + 40 AS INTEGER ) AS col0
----
81

query I rowsort
SELECT ALL 0 - + 71 AS col0
----
-71

query I rowsort
SELECT ( + + 15 ) * + 23 + + - 94
----
251

query I rowsort
SELECT ALL 77 * + + 29
----
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT CAST( 35 AS SIGNED ) + 33 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9711
SELECT CAST ( 35 AS INTEGER ) + 33 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT ALL 88 DIV - ( - - 96 ) * - - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL 88 / - ( - - 96 ) * - - 12 AS col0
----
0

query I rowsort
SELECT DISTINCT 94 * - - 19
----
1786

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT DISTINCT 6 DIV - ( - 47 ) * - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT 6 / - ( - 47 ) * - 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL + 95 * 78 * COUNT( * ) * + 51 AS col0
----
377910

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL + 95 * 78 * COUNT ( * ) * + 51 AS col0
----
377910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT 4 * 9 + - - ( - 75 ) - CASE - 14 WHEN + CAST( 31 AS SIGNED ) THEN NULL ELSE + 11 END
----
-50

skipif mysql # not compatible
query I rowsort label-9716
SELECT 4 * 9 + - - ( - 75 ) - CASE - 14 WHEN + CAST ( 31 AS INTEGER ) THEN NULL ELSE + 11 END
----
-50

query I rowsort
SELECT ALL 41 * - 77 AS col0
----
-3157

query I rowsort
SELECT DISTINCT 99 * - 78 AS col0
----
-7722

query I rowsort
SELECT 86 + ( + 25 ) AS col1
----
111

query II rowsort
SELECT ALL 34 * + + 35 AS col1, 8
----
1190
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT ALL 18, NULLIF ( - 37, - + 96 * - NULLIF ( 85, + 35 * + 91 ) * + MAX( ALL 77 ) + 69 ) AS col0
----
18
-37

skipif mysql # not compatible
query II rowsort label-9721
SELECT ALL 18, NULLIF ( - 37, - + 96 * - NULLIF ( 85, + 35 * + 91 ) * + MAX ( ALL 77 ) + 69 ) AS col0
----
18
-37

query I rowsort
SELECT 2 + + 90
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT 11 + - ( CAST( + 40 AS SIGNED ) ) + + 94 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9723
SELECT 11 + - ( CAST ( + 40 AS INTEGER ) ) + + 94 AS col1
----
65

query II rowsort
SELECT ALL 75, - 89 AS col1
----
75
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9725
SELECT CAST( - 10 AS SIGNED ) * + CAST( NULL AS SIGNED ) * 96 + 21 + - COUNT( * ) + + 25 * + + CAST( NULL AS SIGNED ) + + 7 + + 88 / 20 / - + NULLIF ( + - 81, 31 + + + 96 ) + - + ( - COUNT( * ) ), - MIN( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9725
SELECT CAST ( - 10 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 96 + 21 + - COUNT ( * ) + + 25 * + + CAST ( NULL AS INTEGER ) + + 7 + + 88 / 20 / - + NULLIF ( + - 81, 31 + + + 96 ) + - + ( - COUNT ( * ) ), - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT 18 * + + COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-9726
SELECT 18 * + + COUNT ( * ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL + COUNT( * ) * ( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL + COUNT ( * ) * ( - 2 )
----
-2

query I rowsort
SELECT - 53 * 33 * - 16
----
27984

query I rowsort
SELECT DISTINCT - 98 + - 53 * - ( 18 ) AS col0
----
856

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - SUM( DISTINCT 56 ) * + - 58 * - 76 + - - 24 AS col2
----
-246824

skipif mysql # not compatible
query I rowsort label-9730
SELECT - SUM ( DISTINCT 56 ) * + - 58 * - 76 + - - 24 AS col2
----
-246824

query I rowsort
SELECT DISTINCT - + 73 + 56
----
-17

query I rowsort
SELECT + 37 * 18 AS col0
----
666

query I rowsort
SELECT 73 * 75 * + - 76 AS col0
----
-416100

query I rowsort
SELECT ALL - 99 + + + 39
----
-60

query I rowsort
SELECT ALL + + 61 + + 46 + - + ( 69 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9736
SELECT 95 AS col0, COUNT( * ) / + 78 * - + 5 + CAST( NULL AS SIGNED ) + - NULLIF ( - - COUNT( * ), - 89 ) * - + 68 * + 0 * + 39
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9736
SELECT 95 AS col0, COUNT ( * ) / + 78 * - + 5 + CAST ( NULL AS INTEGER ) + - NULLIF ( - - COUNT ( * ), - 89 ) * - + 68 * + 0 * + 39
----
95
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT ALL + + 44 * 55 / + + CAST( NULL AS SIGNED ) * - 45 + 43 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL + + 44 * 55 / + + CAST ( NULL AS INTEGER ) * - 45 + 43 + 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT - 69 + - COUNT( * ) AS col2, - 91
----
-70
-91

skipif mysql # not compatible
query II rowsort label-9738
SELECT - 69 + - COUNT ( * ) AS col2, - 91
----
-70
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT ALL 13 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL 13 / 60
----
0

query I rowsort
SELECT ALL - - 31 + + + 94 AS col2
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9741
SELECT DISTINCT + 16 + 53 col2, - COUNT( * ) DIV 66 * + - 23 * - - 15 * - + 36
----
69
0

skipif mysql # not compatible
query II rowsort label-9741
SELECT DISTINCT + 16 + 53 col2, - COUNT ( * ) / 66 * + - 23 * - - 15 * - + 36
----
69
0

query I rowsort
SELECT ALL - + 79 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT - 39 DIV + + 52 + + 87
----
87

skipif mysql # not compatible
query I rowsort label-9743
SELECT - 39 / + + 52 + + 87
----
87

query I rowsort
SELECT 21 * 19 AS col0
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT 36 - - 93 + COUNT( * ) - 23 - - + 99 * - COUNT( * ) * ( - SUM( + 16 ) ) * - - 39
----
61883

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT 36 - - 93 + COUNT ( * ) - 23 - - + 99 * - COUNT ( * ) * ( - SUM ( + 16 ) ) * - - 39
----
61883

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + NULLIF ( - + 71, - 4 - COUNT( 35 ) * + 55 ) * ( + + 32 ) * COUNT( * )
----
-2272

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + NULLIF ( - + 71, - 4 - COUNT ( 35 ) * + 55 ) * ( + + 32 ) * COUNT ( * )
----
-2272

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL - NULLIF ( - 35, - + 24 * + MAX( ALL 20 ) + ( + 32 ) + 40 )
----
35

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL - NULLIF ( - 35, - + 24 * + MAX ( ALL 20 ) + ( + 32 ) + 40 )
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-9748
SELECT DISTINCT 0 * - 83 DIV + 8 AS col2, + NULLIF ( - 53, + 25 ) AS col0
----
0
-53

skipif mysql # not compatible
query II rowsort label-9748
SELECT DISTINCT 0 * - 83 / + 8 AS col2, + NULLIF ( - 53, + 25 ) AS col0
----
0
-53

query I rowsort
SELECT 86 * ( + 75 )
----
6450

query I rowsort
SELECT 57 - + 66 AS col1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9751
SELECT ALL 87 / CAST( NULL AS DECIMAL ) AS col1, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-9751
SELECT ALL 87 / CAST ( NULL AS REAL ) AS col1, 66
----
NULL
66

query II rowsort
SELECT ALL 58 + + - 28 AS col2, - 94 * 37 * + + 63 AS col0
----
30
-219114

onlyif mysql # DIV for integer division: 
query I rowsort label-9753
SELECT ALL 34 DIV 37 * - 32 * + - 32
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL 34 / 37 * - 32 * + - 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT ALL 40 + + ( - + SUM( ALL + + 29 ) ) + + 0 DIV ( - SUM( 75 ) ) * + 27
----
11

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL 40 + + ( - + SUM ( ALL + + 29 ) ) + + 0 / ( - SUM ( 75 ) ) * + 27
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL + 46 + - 85 + - COUNT( * ) - - SUM( DISTINCT 3 ) * 67 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + 46 + - 85 + - COUNT ( * ) - - SUM ( DISTINCT 3 ) * 67 AS col2
----
161

query I rowsort
SELECT DISTINCT - ( 10 ) + + 89 AS col2
----
79

query I rowsort
SELECT DISTINCT 86 * 57
----
4902

query I rowsort
SELECT DISTINCT - 53 + 5 * - - 45
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + 94 + - - COALESCE ( ( - COUNT( - 65 ) ), + 32 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9759
SELECT + 94 + - - COALESCE ( ( - COUNT ( - 65 ) ), + 32 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT - MIN( DISTINCT + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9760
SELECT - MIN ( DISTINCT + 50 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9761
SELECT ALL + 19 + + 84 AS col0, - 99 * + + ( - + 62 ) * - - COUNT( * ) * + COUNT( * )
----
103
6138

skipif mysql # not compatible
query II rowsort label-9761
SELECT ALL + 19 + + 84 AS col0, - 99 * + + ( - + 62 ) * - - COUNT ( * ) * + COUNT ( * )
----
103
6138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9762
SELECT - - CAST( NULL AS SIGNED ) - - ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT - - CAST ( NULL AS INTEGER ) - - ( + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT - 87 * + COUNT( * ) + 76 * - COUNT( * ) * 24
----
-1911

skipif mysql # not compatible
query I rowsort label-9763
SELECT - 87 * + COUNT ( * ) + 76 * - COUNT ( * ) * 24
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL + + 9 + COUNT( * ) * - - 65
----
74

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + + 9 + COUNT ( * ) * - - 65
----
74

query I rowsort
SELECT ALL - 59 + + 11
----
-48

query I rowsort
SELECT ALL + + ( + 88 ) + - ( 74 ) * - 37
----
2826

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT - 58 + + - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9767
SELECT - 58 + + - COUNT ( * )
----
-59

query I rowsort
SELECT - 71 + - 35 * - 88
----
3009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9769
SELECT + ( 13 ) AS col1, + COALESCE ( + 22, + 41 * - 39 * - - 57 + 53, + 57 * + ( CAST( + + 29 AS SIGNED ) ) + + CASE + 72 WHEN + ( + COUNT( * ) ) + + 67 THEN NULL WHEN 50 + + 84 THEN 90 WHEN - + 91 THEN + 37 END ) AS col2
----
13
22

skipif mysql # not compatible
query II rowsort label-9769
SELECT + ( 13 ) AS col1, + COALESCE ( + 22, + 41 * - 39 * - - 57 + 53, + 57 * + ( CAST ( + + 29 AS INTEGER ) ) + + CASE + 72 WHEN + ( + COUNT ( * ) ) + + 67 THEN NULL WHEN 50 + + 84 THEN 90 WHEN - + 91 THEN + 37 END ) AS col2
----
13
22

query I rowsort
SELECT DISTINCT - 43 * - - 83 * + - 24 + ( ( + 65 ) )
----
85721

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + + 38 / + CASE + + 90 WHEN 63 + COUNT( * ) * - 68 THEN AVG ( + 40 ) WHEN 57 * + + 86 + + 50 THEN + - 58 ELSE NULL END + + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT + + 38 / + CASE + + 90 WHEN 63 + COUNT ( * ) * - 68 THEN AVG ( + 40 ) WHEN 57 * + + 86 + + 50 THEN + - 58 ELSE NULL END + + + 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT + 37 DIV - 66 + ( + 2 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-9772
SELECT + 37 / - 66 + ( + 2 ) col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT - CAST( NULL AS SIGNED ) * - - 13 + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT - CAST ( NULL AS INTEGER ) * - - 13 + + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 22 * + 60
----
1320

query I rowsort
SELECT ALL + ( + 89 ) AS col2
----
89

query II rowsort
SELECT + 95 AS col1, 24
----
95
24

query II rowsort
SELECT ALL + 47, - 33 AS col0
----
47
-33

query I rowsort
SELECT ALL 6 * 17
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT ALL + 40 DIV - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL + 40 / - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT - COALESCE ( + COALESCE ( - - 62, - COUNT( DISTINCT - 80 ), 26 ), + SUM( 68 ) DIV 45 + - 10, - 93 * 81 + + 61 + MIN( 46 ) ) - + 90 * 5 - + 58 * 20
----
-1672

skipif mysql # not compatible
query I rowsort label-9780
SELECT - COALESCE ( + COALESCE ( - - 62, - COUNT ( DISTINCT - 80 ), 26 ), + SUM ( 68 ) / 45 + - 10, - 93 * 81 + + 61 + MIN ( 46 ) ) - + 90 * 5 - + 58 * 20
----
-1672

query I rowsort
SELECT - 88 * COALESCE ( - 76, + 33 ) AS col2
----
6688

query II rowsort
SELECT ALL + 31 col2, 31 col0
----
31
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT 41 * NULLIF ( + + 31, + 60 + - 76 - COUNT( * ) - - 40 + + - 1 + + 14 / + COALESCE ( SUM( 91 ), + 89 ) + + 7 + - + 39 + CASE ( + 52 ) WHEN + CAST( NULL AS SIGNED ) + 91 THEN NULL WHEN + 16 THEN NULL WHEN - COUNT( * ) / - SUM( ALL - 63 ) + 11 THEN 87 ELSE NULL END + 62 * + 26 ) + 58
----
1329

skipif mysql # not compatible
query I rowsort label-9783
SELECT 41 * NULLIF ( + + 31, + 60 + - 76 - COUNT ( * ) - - 40 + + - 1 + + 14 / + COALESCE ( SUM ( 91 ), + 89 ) + + 7 + - + 39 + CASE ( + 52 ) WHEN + CAST ( NULL AS INTEGER ) + 91 THEN NULL WHEN + 16 THEN NULL WHEN - COUNT ( * ) / - SUM ( ALL - 63 ) + 11 THEN 87 ELSE NULL END + 62 * + 26 ) + 58
----
1329

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + 5 - ( + CASE - ( 26 ) WHEN + AVG ( ALL + - ( + 19 ) ) THEN NULL WHEN + ( 30 ) THEN + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT + 5 - ( + CASE - ( 26 ) WHEN + AVG ( ALL + - ( + 19 ) ) THEN NULL WHEN + ( 30 ) THEN + COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9785
SELECT COUNT( * ) col2, - 67 * 28
----
1
-1876

skipif mysql # not compatible
query II rowsort label-9785
SELECT COUNT ( * ) col2, - 67 * 28
----
1
-1876

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9786
SELECT - 52 * + NULLIF ( - 64, - 17 - + 27 * COUNT( * ) ) AS col1, 9 + - + 62 + ( + COALESCE ( - 31, 96 * + 4, - 10 * 18 + - - 87 + + + 53 * + + 47 DIV + AVG ( + - 46 ), + COUNT( COALESCE ( 21, + 80 DIV 36 ) ) + + 31 * 91 ) ) * - 82
----
3328
2489

skipif mysql # not compatible
query II rowsort label-9786
SELECT - 52 * + NULLIF ( - 64, - 17 - + 27 * COUNT ( * ) ) AS col1, 9 + - + 62 + ( + COALESCE ( - 31, 96 * + 4, - 10 * 18 + - - 87 + + + 53 * + + 47 / + AVG ( + - 46 ), + COUNT ( COALESCE ( 21, + 80 / 36 ) ) + + 31 * 91 ) ) * - 82
----
3328
2489

query I rowsort
SELECT ALL NULLIF ( + 22, 97 ) * - - 71 + + + 97 col2
----
1659

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + COUNT( + - ( 14 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9788
SELECT + COUNT ( + - ( 14 ) ) AS col0
----
1

query I rowsort
SELECT - 46 + + - 88
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT DISTINCT - 51 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT - 51 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 78 * - + 53 + 55 AS col0, 7
----
-4079
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT - NULLIF ( COUNT( * ), - - 95 - + COUNT( * ) ) AS col1, COUNT( * ) + + 34
----
-1
35

skipif mysql # not compatible
query II rowsort label-9792
SELECT - NULLIF ( COUNT ( * ), - - 95 - + COUNT ( * ) ) AS col1, COUNT ( * ) + + 34
----
-1
35

query I rowsort
SELECT DISTINCT - 33 * 96 AS col0
----
-3168

query I rowsort
SELECT + 16 + - 7
----
9

query I rowsort
SELECT - 92 * 74
----
-6808

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + CASE + - ( + + 30 ) WHEN - 33 THEN NULLIF ( - ( ( 54 ) ), 35 ) + CASE - MAX( + + ( 14 ) ) WHEN + - MAX( + + 83 ) THEN NULL ELSE - CASE + 36 WHEN + 2 THEN NULL WHEN 52 * + COUNT( * ) THEN NULL ELSE - 96 END END - - 50 ELSE NULL END + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT + CASE + - ( + + 30 ) WHEN - 33 THEN NULLIF ( - ( ( 54 ) ), 35 ) + CASE - MAX ( + + ( 14 ) ) WHEN + - MAX ( + + 83 ) THEN NULL ELSE - CASE + 36 WHEN + 2 THEN NULL WHEN 52 * + COUNT ( * ) THEN NULL ELSE - 96 END END - - 50 ELSE NULL END + 49
----
NULL

query I rowsort
SELECT DISTINCT + + 27 + 81
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - 66 * - - SUM( COALESCE ( - 91, - 86 * + 49 + - 79 ) ) AS col1
----
6006

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - 66 * - - SUM ( COALESCE ( - 91, - 86 * + 49 + - 79 ) ) AS col1
----
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + - COUNT( * ) * - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9799
SELECT + - COUNT ( * ) * - 56 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT ALL + 97 - - - CAST( - + 58 AS SIGNED ) * 3 * + ( NULLIF ( + 91, - - 87 * 44 - + 69 ) ) AS col2
----
15931

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + 97 - - - CAST ( - + 58 AS INTEGER ) * 3 * + ( NULLIF ( + 91, - - 87 * 44 - + 69 ) ) AS col2
----
15931

query I rowsort
SELECT DISTINCT 90 - + 24 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT + - COALESCE ( + - ( + CASE + 42 WHEN COUNT( * ) + 31 THEN - - 85 WHEN - 4 + 3 + - COUNT( * ) THEN - 29 * - 73 * 25 + COUNT( * ) + 86 END ), + - CAST( + ( + MAX( - 16 ) ) AS SIGNED ) ) * + - 47
----
752

skipif mysql # not compatible
query I rowsort label-9802
SELECT + - COALESCE ( + - ( + CASE + 42 WHEN COUNT ( * ) + 31 THEN - - 85 WHEN - 4 + 3 + - COUNT ( * ) THEN - 29 * - 73 * 25 + COUNT ( * ) + 86 END ), + - CAST ( + ( + MAX ( - 16 ) ) AS INTEGER ) ) * + - 47
----
752

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT ALL + 47 * - 35 - - COUNT( * ), 30 AS col1
----
-1644
30

skipif mysql # not compatible
query II rowsort label-9803
SELECT ALL + 47 * - 35 - - COUNT ( * ), 30 AS col1
----
-1644
30

query I rowsort
SELECT + + 42 - - 92 AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT ALL - 2 col2, - COUNT( * )
----
-2
-1

skipif mysql # not compatible
query II rowsort label-9805
SELECT ALL - 2 col2, - COUNT ( * )
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL ( - 63 ) / - COUNT( * ) - + + NULLIF ( - CASE + 73 WHEN - COUNT( * ) THEN - 0 ELSE NULL END, 83 * + - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL ( - 63 ) / - COUNT ( * ) - + + NULLIF ( - CASE + 73 WHEN - COUNT ( * ) THEN - 0 ELSE NULL END, 83 * + - 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT + COALESCE ( + - 49, 92 * + - COALESCE ( COUNT( * ), - 64 ) + - 15, + - 2 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + COALESCE ( + - 49, 92 * + - COALESCE ( COUNT ( * ), - 64 ) + - 15, + - 2 ) AS col1
----
-49

query I rowsort
SELECT DISTINCT - 36 * - 61
----
2196

query I rowsort
SELECT - 6 + - + 7 AS col2
----
-13

query I rowsort
SELECT DISTINCT + 36 * + + 45 AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - 82 + ( COUNT( * ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9811
SELECT - 82 + ( COUNT ( * ) ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9812
SELECT ALL + MIN( 27 ), + 99 + + COUNT( - 63 ) AS col0
----
27
100

skipif mysql # not compatible
query II rowsort label-9812
SELECT ALL + MIN ( 27 ), + 99 + + COUNT ( - 63 ) AS col0
----
27
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - ( + + COUNT( * ) ) * 64
----
-64

skipif mysql # not compatible
query I rowsort label-9813
SELECT - ( + + COUNT ( * ) ) * 64
----
-64

query I rowsort
SELECT ALL 76 * + CASE - 65 WHEN + - 39 + - 57 * 59 THEN NULL WHEN + + 99 THEN - COALESCE ( - 10, - 21 + + 99 - + 38 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT + COUNT( * ) * 53 + + 58 - - COALESCE ( - 88, - 3 ) * - 72 + - - 17 * + 20 * + 75
----
31947

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + COUNT ( * ) * 53 + + 58 - - COALESCE ( - 88, - 3 ) * - 72 + - - 17 * + 20 * + 75
----
31947

query I rowsort
SELECT - 40 * 47
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + CASE + + 35 WHEN 66 * + 5 * - 5 * - 92 + + 38 - - + 97 THEN NULL WHEN + 6 * 71 * - - 59 * + - COUNT( * ) THEN NULL WHEN + 26 + NULLIF ( COUNT( * ), 76 * + - 38 * 14 ) + + + 3 THEN NULL ELSE 82 END
----
82

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + CASE + + 35 WHEN 66 * + 5 * - 5 * - 92 + + 38 - - + 97 THEN NULL WHEN + 6 * 71 * - - 59 * + - COUNT ( * ) THEN NULL WHEN + 26 + NULLIF ( COUNT ( * ), 76 * + - 38 * 14 ) + + + 3 THEN NULL ELSE 82 END
----
82

query I rowsort
SELECT ALL - 51 * + + 47 + - + 21 AS col0
----
-2418

query I rowsort
SELECT - 10 - - - 23 AS col1
----
-33

query II rowsort
SELECT DISTINCT - 29 + - + 94 col2, 52
----
-123
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL + ( - - 77 ) + COUNT( * ) + - + 77 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + ( - - 77 ) + COUNT ( * ) + - + 77 AS col1
----
1

query I rowsort
SELECT DISTINCT - 70 * 41
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL + COUNT( * ) - 66
----
-65

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL + COUNT ( * ) - 66
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - 33 * - ( - COUNT( * ) ) - - 49 * - - 4 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-9824
SELECT - 33 * - ( - COUNT ( * ) ) - - 49 * - - 4 AS col1
----
163

query I rowsort
SELECT ALL + 37 * - - 92 + - + 44
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT CAST( - 0 AS SIGNED ) - - - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-9826
SELECT CAST ( - 0 AS INTEGER ) - - - 52 AS col1
----
-52

query I rowsort
SELECT - ( - 78 ) + 91
----
169

query I rowsort
SELECT - - 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL CASE + + 5 WHEN - - ( + SUM( ALL - 64 ) ) THEN + 80 / - COUNT( + - 3 ) - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL CASE + + 5 WHEN - - ( + SUM ( ALL - 64 ) ) THEN + 80 / - COUNT ( + - 3 ) - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 7 + + - ( - 15 ) AS col2
----
22

query I rowsort
SELECT - - 37 AS col2
----
37

query I rowsort
SELECT ALL 34 * 92 * + + 18 AS col2
----
56304

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL 18 * - - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 18 * - - COUNT ( * ) AS col0
----
18

query I rowsort
SELECT 40 * + - 94 + + 61
----
-3699

query I rowsort
SELECT DISTINCT 36 * + 97 col2
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + 99 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + 99 AS col0
----
101

query I rowsort
SELECT 11 * + + 37
----
407

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ( + 31 ) * + 34 * + 6 - + SUM( ALL - 33 )
----
6357

skipif mysql # not compatible
query I rowsort label-9838
SELECT ( + 31 ) * + 34 * + 6 - + SUM ( ALL - 33 )
----
6357

query I rowsort
SELECT DISTINCT 76 + - - 2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT + COUNT( * ) + - 38
----
-37

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + COUNT ( * ) + - 38
----
-37

query I rowsort
SELECT DISTINCT - 43 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL 28 + - + 14 + + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL 28 + - + 14 + + COUNT ( * )
----
15

query II rowsort
SELECT + 68 col0, 56 AS col2
----
68
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT ALL COUNT( * ) DIV + COUNT( * ) * - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( * ) / + COUNT ( * ) * - COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT + 48 * 87 * - CAST( NULL AS SIGNED ) + 92 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 48 * 87 * - CAST ( NULL AS INTEGER ) + 92 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 27 - - + 13
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT 15 * + 84 + + COUNT( * ) * - + 4 * + ( - 54 ) + 4 col2
----
1480

skipif mysql # not compatible
query I rowsort label-9847
SELECT 15 * + 84 + + COUNT ( * ) * - + 4 * + ( - 54 ) + 4 col2
----
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT SUM( ALL - 50 ) * + + 19 + 75 - 90
----
-965

skipif mysql # not compatible
query I rowsort label-9848
SELECT SUM ( ALL - 50 ) * + + 19 + 75 - 90
----
-965

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - ( + + 68 ) + + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - ( + + 68 ) + + COUNT ( * )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT ALL + CASE + + ( - + 79 ) WHEN + 2 THEN NULL WHEN - 90 + - CAST( - 75 AS SIGNED ) THEN NULLIF ( 46, + + 41 ) + - - 96 * 41 * + 42 + 58 ELSE + 95 END * - ( + - 15 ) AS col1
----
1425

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + CASE + + ( - + 79 ) WHEN + 2 THEN NULL WHEN - 90 + - CAST ( - 75 AS INTEGER ) THEN NULLIF ( 46, + + 41 ) + - - 96 * 41 * + 42 + 58 ELSE + 95 END * - ( + - 15 ) AS col1
----
1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT CAST( NULL AS SIGNED ) + 78 + - - COUNT( + + 93 ) + - - 92 * 48 * - + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT CAST ( NULL AS INTEGER ) + 78 + - - COUNT ( + + 93 ) + - - 92 * 48 * - + 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9852
SELECT ALL - CAST( NULL AS SIGNED ), - 82 * + 90 AS col2
----
NULL
-7380

skipif mysql # not compatible
query II rowsort label-9852
SELECT ALL - CAST ( NULL AS INTEGER ), - 82 * + 90 AS col2
----
NULL
-7380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT ALL - 71 * + CAST( NULL AS SIGNED ) + + + 8 + + NULLIF ( MAX( DISTINCT 84 ), - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - 71 * + CAST ( NULL AS INTEGER ) + + + 8 + + NULLIF ( MAX ( DISTINCT 84 ), - 10 ) AS col1
----
NULL

query I rowsort
SELECT - 6 * - 69 + + - 14
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9855
SELECT ALL + - 89 DIV + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + - 89 / + COUNT ( * )
----
-89

query I rowsort
SELECT - 24 + 20 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9857
SELECT 3 * - 7 + - COUNT( * ), NULLIF ( - - ( - + 47 ), + COUNT( * ) * + CAST( NULL AS SIGNED ) + - + 75 ) col0
----
-22
-47

skipif mysql # not compatible
query II rowsort label-9857
SELECT 3 * - 7 + - COUNT ( * ), NULLIF ( - - ( - + 47 ), + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - + 75 ) col0
----
-22
-47

query I rowsort
SELECT - 37 * 62 AS col1
----
-2294

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT ALL - + 22 DIV - + 4
----
5

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - + 22 / - + 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT + COALESCE ( - 9, - MAX( - 73 ), - 98 * + - MAX( 6 ) ) + - 45
----
-54

skipif mysql # not compatible
query I rowsort label-9860
SELECT + COALESCE ( - 9, - MAX ( - 73 ), - 98 * + - MAX ( 6 ) ) + - 45
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT ALL - + 97 DIV - - 75
----
-1

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL - + 97 / - - 75
----
-1

query I rowsort
SELECT 96 + + 68 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT CASE WHEN NOT NULL NOT BETWEEN + MAX( 12 ) AND - - 88 THEN 42 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT CASE WHEN NOT NULL NOT BETWEEN + MAX ( 12 ) AND - - 88 THEN 42 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9864
SELECT + MIN( 21 ) + - 23 DIV + CAST( + 99 AS SIGNED ), - ( + 34 ) AS col1
----
21
-34

skipif mysql # not compatible
query II rowsort label-9864
SELECT + MIN ( 21 ) + - 23 / + CAST ( + 99 AS INTEGER ), - ( + 34 ) AS col1
----
21
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + 64 * + MAX( DISTINCT 17 )
----
1088

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + 64 * + MAX ( DISTINCT 17 )
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT COUNT( * ) + - 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9866
SELECT COUNT ( * ) + - 74 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT - ( + 8 ) * + CASE + - 10 WHEN - MIN( 70 ) THEN NULL WHEN - + 3 THEN NULL ELSE 75 * 91 + + 26 END * - 28 * - CAST( + 9 AS SIGNED ) AS col2
----
-13811616

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - ( + 8 ) * + CASE + - 10 WHEN - MIN ( 70 ) THEN NULL WHEN - + 3 THEN NULL ELSE 75 * 91 + + 26 END * - 28 * - CAST ( + 9 AS INTEGER ) AS col2
----
-13811616

query I rowsort
SELECT DISTINCT 84 + - + 7 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT - 83 col1, SUM( + 98 )
----
-83
98

skipif mysql # not compatible
query II rowsort label-9869
SELECT - 83 col1, SUM ( + 98 )
----
-83
98

query I rowsort
SELECT 85 + + 93 AS col1
----
178

query I rowsort
SELECT - 6 - + + 84 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT ALL COUNT( * ), 24 * ( - 47 ) + + + COUNT( * ) * 20 AS col1
----
1
-1108

skipif mysql # not compatible
query II rowsort label-9872
SELECT ALL COUNT ( * ), 24 * ( - 47 ) + + + COUNT ( * ) * 20 AS col1
----
1
-1108

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT 2 + + 34 + 36 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT 2 + + 34 + 36 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL CASE - 6 WHEN COUNT( * ) + - SUM( ALL 18 ) - COUNT( + 94 ) * + 46 * - 24 + - + 44 + + + 14 * 33 THEN + - 57 * + + 8 + 4 + 31 - - 16 ELSE + 68 END AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL CASE - 6 WHEN COUNT ( * ) + - SUM ( ALL 18 ) - COUNT ( + 94 ) * + 46 * - 24 + - + 44 + + + 14 * 33 THEN + - 57 * + + 8 + 4 + 31 - - 16 ELSE + 68 END AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT DISTINCT 30 + CAST( COUNT( * ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT 30 + CAST ( COUNT ( * ) AS INTEGER )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9876
SELECT ALL CASE - + 76 WHEN - MAX( ALL + 72 ) / - - 92 THEN - + 18 + - 85 - + 26 * - MIN( - - 19 ) * - 69 ELSE NULL END + - + 40 - - 12 + - 96, + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL CASE - + 76 WHEN - MAX ( ALL + 72 ) / - - 92 THEN - + 18 + - 85 - + 26 * - MIN ( - - 19 ) * - 69 ELSE NULL END + - + 40 - - 12 + - 96, + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9877
SELECT DISTINCT - CAST( NULL AS SIGNED ), 23 AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 23 AS col2
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + 90 * MIN( + 33 ) + + - 76
----
2894

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + 90 * MIN ( + 33 ) + + - 76
----
2894

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9879
SELECT ( + 62 ) DIV + 70 + + COALESCE ( - COUNT( * ), - ( 28 ) DIV + - 1 + + - 68, - 30 ) + - 56 * - COALESCE ( ( + - 63 ), - 95 * + 27 ), - 35 AS col0
----
-3529
-35

skipif mysql # not compatible
query II rowsort label-9879
SELECT ( + 62 ) / + 70 + + COALESCE ( - COUNT ( * ), - ( 28 ) / + - 1 + + - 68, - 30 ) + - 56 * - COALESCE ( ( + - 63 ), - 95 * + 27 ), - 35 AS col0
----
-3529
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT - COALESCE ( + 35, 21, - NULLIF ( - 28, + 97 ), + 74 DIV + - 46 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - COALESCE ( + 35, 21, - NULLIF ( - 28, + 97 ), + 74 / + - 46 ) AS col0
----
-35

query I rowsort
SELECT ALL 57 * 74 + - 6
----
4212

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT 85 * + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9882
SELECT 85 * + COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT - 11 DIV COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9883
SELECT - 11 / COUNT ( * )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT 10 * + ( - + CAST( + ( 23 ) AS SIGNED ) ) + + 13 * 37 AS col2
----
251

skipif mysql # not compatible
query I rowsort label-9884
SELECT 10 * + ( - + CAST ( + ( 23 ) AS INTEGER ) ) + + 13 * 37 AS col2
----
251

query I rowsort
SELECT 92 * + + 58 * - + 56 - + 19 * 22
----
-299234

query I rowsort
SELECT + 69 + - + 60
----
9

query II rowsort
SELECT ALL + 81 AS col2, - 99 + - - 36 * 28 * - + 80 AS col1
----
81
-80739

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL + MIN( ALL - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL + MIN ( ALL - 36 )
----
-36

query I rowsort
SELECT DISTINCT - 64 * 25 - - + 5
----
-1595

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT MAX( - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9890
SELECT MAX ( - 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9891
SELECT ALL + COUNT( * ) * - + 32 + + + 70 DIV 67 * 39 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL + COUNT ( * ) * - + 32 + + + 70 / 67 * 39 * + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL + CASE 2 WHEN - - 20 * 24 * + - 13 + - 25 THEN + ( + COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + CASE 2 WHEN - - 20 * 24 * + - 13 + - 25 THEN + ( + COUNT ( * ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 60 * - - 22 - 37 + ( - + 82 )
----
1201

query I rowsort
SELECT + + 54 * - 2 + 29
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT + CAST( - 59 AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9895
SELECT + CAST ( - 59 AS INTEGER ) AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9896
SELECT + 84 DIV - 77 + + 33 * - MIN( + 38 )
----
-1255

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 84 / - 77 + + 33 * - MIN ( + 38 )
----
-1255

query I rowsort
SELECT - COALESCE ( - 18, - 81 )
----
18

query II rowsort
SELECT + 43, 40 AS col1
----
43
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT DISTINCT + 66 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + 66 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL SUM( ALL - 70 ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL SUM ( ALL - 70 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9901
SELECT - - 97 * + + 83 * - 14 * 51 * + + 46 - 43 AS col2, + COUNT( * )
----
-264427087
1

skipif mysql # not compatible
query II rowsort label-9901
SELECT - - 97 * + + 83 * - 14 * 51 * + + 46 - 43 AS col2, + COUNT ( * )
----
-264427087
1

query I rowsort
SELECT - 38 * + 99
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL - 33 + + 4 + + + COUNT( * ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - 33 + + 4 + + + COUNT ( * ) col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT + - 27 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT + - 27 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT - SUM( + + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-9905
SELECT - SUM ( + + 39 )
----
-39

query II rowsort
SELECT - + 13 AS col1, 51 AS col0
----
-13
51

query I rowsort
SELECT + - 78 + 43
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT - + CASE 82 WHEN + 60 THEN - COUNT( * ) END - + - 68 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT - + CASE 82 WHEN + 60 THEN - COUNT ( * ) END - + - 68 * - 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9909
SELECT DISTINCT - MIN( ALL - 35 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT - MIN ( ALL - 35 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 23 + 19 + - 12 - 8 * + 44 * + ( 89 )
----
-31298

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - COUNT( * ) + - - 60
----
59

skipif mysql # not compatible
query I rowsort label-9911
SELECT - COUNT ( * ) + - - 60
----
59

query I rowsort
SELECT ALL ( - + 82 ) AS col1
----
-82

query I rowsort
SELECT DISTINCT - 78 + 12
----
-66

query I rowsort
SELECT DISTINCT - 5 * 66 * - 61
----
20130

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT + 3 DIV 79 + 69
----
69

skipif mysql # not compatible
query I rowsort label-9915
SELECT + 3 / 79 + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - 87 + + CASE - COUNT( * ) WHEN - ( 91 ) * COUNT( * ) + - 92 THEN + - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT - 87 + + CASE - COUNT ( * ) WHEN - ( 91 ) * COUNT ( * ) + - 92 THEN + - 18 END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9917
SELECT + CASE - 60 WHEN + - CAST( NULL AS DECIMAL ) THEN - - ( 5 ) WHEN + 69 THEN - NULLIF ( - 74, 81 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT + CASE - 60 WHEN + - CAST ( NULL AS REAL ) THEN - - ( 5 ) WHEN + 69 THEN - NULLIF ( - 74, 81 ) END AS col1
----
NULL

query II rowsort
SELECT ALL + ( 24 ) AS col0, + 65
----
24
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT ALL - 70 DIV 75 - 50
----
-50

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - 70 / 75 - 50
----
-50

query I rowsort
SELECT - 40 * 35 * - 35 col1
----
49000

query II rowsort
SELECT ALL + ( + 56 ) AS col0, 31 AS col1
----
56
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT ALL 4 * COUNT( * ), - 86 col2
----
4
-86

skipif mysql # not compatible
query II rowsort label-9922
SELECT ALL 4 * COUNT ( * ), - 86 col2
----
4
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT + 9 * + 82 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT + 9 * + 82 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT - - COUNT( * ) + - - CAST( NULL AS SIGNED ) + + 69 * 41 + 12 + 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT - - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + 69 * 41 + 12 + 2 col1
----
NULL

query I rowsort
SELECT - 34 * + 74 + + ( - 67 ) + - + 42 AS col1
----
-2625

query I rowsort
SELECT 78 * - 50 + 13 * 43 + + 7 AS col2
----
-3334

query I rowsort
SELECT ALL - - 72 * 6 + 49 AS col1
----
481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL MAX( + 13 ) * CAST( + - AVG ( ALL 90 ) AS SIGNED ) + - 72
----
-1242

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL MAX ( + 13 ) * CAST ( + - AVG ( ALL 90 ) AS INTEGER ) + - 72
----
-1242

query I rowsort
SELECT + + 67 + - 48 * + + 45 AS col2
----
-2093

query I rowsort
SELECT + 75 * + - 69 AS col2
----
-5175

query I rowsort
SELECT DISTINCT - 54 + - 38 AS col0
----
-92

query I rowsort
SELECT ( 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL 41 + + COALESCE ( - ( MIN( ALL - - 77 ) ), 9 - - 24 * 67 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL 41 + + COALESCE ( - ( MIN ( ALL - - 77 ) ), 9 - - 24 * 67 ) AS col2
----
-36

query I rowsort
SELECT + + 16 * + - 32 * - - 5 AS col2
----
-2560

query I rowsort
SELECT ALL 59 * 90 col0
----
5310

query I rowsort
SELECT ALL ( + - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT MIN( + 38 ) + 42 + ( - 86 ) + - 58 * 3 * - 14
----
2430

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT MIN ( + 38 ) + 42 + ( - 86 ) + - 58 * 3 * - 14
----
2430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT ALL 12 - + 7 + + 27 DIV - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL 12 - + 7 + + 27 / - COUNT ( * )
----
-22

query I rowsort
SELECT DISTINCT ( 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT CAST( + - 53 AS SIGNED ) - - - 99 AS col0
----
-152

skipif mysql # not compatible
query I rowsort label-9940
SELECT CAST ( + - 53 AS INTEGER ) - - - 99 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT ALL 1 AS col0, ( ( - - ( - 98 ) ) ) * - COUNT( - 55 ) AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-9941
SELECT ALL 1 AS col0, ( ( - - ( - 98 ) ) ) * - COUNT ( - 55 ) AS col0
----
1
98

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9942
SELECT 30 DIV + + 72 * 83 AS col0, - 83 + 61 + + NULLIF ( - + 87, + CAST( NULL AS DECIMAL ) * + 97 ) * - 2 + + - 20 DIV + 58 * + + 19
----
0
152

skipif mysql # not compatible
query II rowsort label-9942
SELECT 30 / + + 72 * 83 AS col0, - 83 + 61 + + NULLIF ( - + 87, + CAST ( NULL AS REAL ) * + 97 ) * - 2 + + - 20 / + 58 * + + 19
----
0
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9943
SELECT 36 + + 8 - - 95 DIV - - MIN( - - 29 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9943
SELECT 36 + + 8 - - 95 / - - MIN ( - - 29 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - NULLIF ( - 76, + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - NULLIF ( - 76, + 40 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT 46 + + 88 + CAST( NULL AS SIGNED ) * - 38 * + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT 46 + + 88 + CAST ( NULL AS INTEGER ) * - 38 * + + 47 AS col2
----
NULL

query I rowsort
SELECT ALL 13 col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9947
SELECT ALL + COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9948
SELECT DISTINCT - CAST( 64 AS SIGNED ) * 55 AS col1
----
-3520

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT - CAST ( 64 AS INTEGER ) * 55 AS col1
----
-3520

query I rowsort
SELECT 26 + + - ( + 26 ) * - 42
----
1118

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT 29 * + COUNT( * ) - - NULLIF ( - - 97, - 43 * + + 37 - + 38 - + 15 ) AS col1, + 96
----
126
96

skipif mysql # not compatible
query II rowsort label-9950
SELECT 29 * + COUNT ( * ) - - NULLIF ( - - 97, - 43 * + + 37 - + 38 - + 15 ) AS col1, + 96
----
126
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT ALL - 56 * - 98 * + 34 / + - CAST( - 21 AS SIGNED ) * + CASE + + COUNT( DISTINCT + 6 ) WHEN - COUNT( * ) * ( + 29 ) + ( - - 55 ) THEN - ( - - 16 ) WHEN - 13 + + 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - 56 * - 98 * + 34 / + - CAST ( - 21 AS INTEGER ) * + CASE + + COUNT ( DISTINCT + 6 ) WHEN - COUNT ( * ) * ( + 29 ) + ( - - 55 ) THEN - ( - - 16 ) WHEN - 13 + + 91 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT DISTINCT - ( - CASE 42 WHEN 66 * 63 THEN 10 WHEN - + 1 THEN - - SUM( - CAST( NULL AS SIGNED ) ) * + MAX( ALL - - 59 ) + ( - - COUNT( * ) ) + - + AVG ( DISTINCT + - 83 ) * 73 * - AVG ( - 60 ) WHEN + 13 * - + 62 * - 41 + 79 + - + 61 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT - ( - CASE 42 WHEN 66 * 63 THEN 10 WHEN - + 1 THEN - - SUM ( - CAST ( NULL AS INTEGER ) ) * + MAX ( ALL - - 59 ) + ( - - COUNT ( * ) ) + - + AVG ( DISTINCT + - 83 ) * 73 * - AVG ( - 60 ) WHEN + 13 * - + 62 * - 41 + 79 + - + 61 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL - COUNT( - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - COUNT ( - 35 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9954
SELECT + CAST( - COALESCE ( - 81, - 71 ) AS SIGNED ) DIV MAX( + 42 ) + - 35 DIV + - 82 col0, 68
----
1
68

skipif mysql # not compatible
query II rowsort label-9954
SELECT + CAST ( - COALESCE ( - 81, - 71 ) AS INTEGER ) / MAX ( + 42 ) + - 35 / + - 82 col0, 68
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + + MIN( - + 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9955
SELECT + + MIN ( - + 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT - 57 * COUNT( * ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-9956
SELECT - 57 * COUNT ( * ) col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL - + 3 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - + 3 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + ( - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9959
SELECT DISTINCT - 99 + + ( + - MIN( DISTINCT 33 ) ) AS col1, - 9
----
-132
-9

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT - 99 + + ( + - MIN ( DISTINCT 33 ) ) AS col1, - 9
----
-132
-9

query I rowsort
SELECT ALL + 77 + + - 61
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9961
SELECT + 93 * - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 93 * - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL + + COUNT( * ) + + 29 * + + NULLIF ( + - 50, - COUNT( + 64 ) * - COUNT( * ) + - - 11 )
----
-1449

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + + COUNT ( * ) + + 29 * + + NULLIF ( + - 50, - COUNT ( + 64 ) * - COUNT ( * ) + - - 11 )
----
-1449

query I rowsort
SELECT + 6 * - CASE 35 WHEN - 92 * 34 * + + 25 + + 10 THEN 72 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT + COUNT( * ) * + SUM( ALL - 7 ) + - 33 - - 77
----
37

skipif mysql # not compatible
query I rowsort label-9964
SELECT + COUNT ( * ) * + SUM ( ALL - 7 ) + - 33 - - 77
----
37

query I rowsort
SELECT ALL + + 36 + - 42 * + 33
----
-1350

query I rowsort
SELECT - 59 + + 59 + 89 col1
----
89

query I rowsort
SELECT 50 * 43 col0
----
2150

query I rowsort
SELECT - 73 + - 46 + + - 31
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT - ( + CASE + 45 WHEN + COALESCE ( COUNT( * ), - - 48 + - 6, - - 46 * - + 87 + - 67 ) + + 52 / 4 * - - 33 - - - 98 * - CASE + CAST( NULL AS SIGNED ) WHEN - + 98 THEN - + 12 WHEN 14 THEN - CASE - 78 WHEN + CAST( NULL AS SIGNED ) + 49 / - 32 / 76 THEN + - CASE - 23 WHEN 42 * 64 + + 97 THEN CASE - ( - 30 ) WHEN - CAST( NULL AS SIGNED ) * - COUNT( * ) THEN + 10 ELSE + 89 / 86 END * - CASE 55 WHEN 62 THEN 2 * 92 END WHEN 41 * - 72 THEN NULL ELSE NULL END * 31 WHEN + ( + COALESCE ( SUM( DISTINCT NULLIF ( - 29, + 86 * 78 ) ), - 90 ) ) THEN NULL END * + 86 END THEN NULL WHEN - 99 * - ( 23 ) THEN COALESCE ( + 36, 31 ) * COUNT( * ) WHEN 79 THEN NULL ELSE + ( 73 ) END ) * + 87
----
-6351

skipif mysql # not compatible
query I rowsort label-9969
SELECT - ( + CASE + 45 WHEN + COALESCE ( COUNT ( * ), - - 48 + - 6, - - 46 * - + 87 + - 67 ) + + 52 / 4 * - - 33 - - - 98 * - CASE + CAST ( NULL AS INTEGER ) WHEN - + 98 THEN - + 12 WHEN 14 THEN - CASE - 78 WHEN + CAST ( NULL AS INTEGER ) + 49 / - 32 / 76 THEN + - CASE - 23 WHEN 42 * 64 + + 97 THEN CASE - ( - 30 ) WHEN - CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN + 10 ELSE + 89 / 86 END * - CASE 55 WHEN 62 THEN 2 * 92 END WHEN 41 * - 72 THEN NULL ELSE NULL END * 31 WHEN + ( + COALESCE ( SUM ( DISTINCT NULLIF ( - 29, + 86 * 78 ) ), - 90 ) ) THEN NULL END * + 86 END THEN NULL WHEN - 99 * - ( 23 ) THEN COALESCE ( + 36, 31 ) * COUNT ( * ) WHEN 79 THEN NULL ELSE + ( 73 ) END ) * + 87
----
-6351

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9970
SELECT ALL + 25 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + 25 + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 2 col1, 68 * + 8 * - 63 * + 30 AS col0
----
-2
-1028160

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - 50 + ( ( COUNT( + 56 ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - 50 + ( ( COUNT ( + 56 ) ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9973
SELECT 29 - MAX( + 75 ) + - - CAST( + 32 AS SIGNED ) * + 99
----
3122

skipif mysql # not compatible
query I rowsort label-9973
SELECT 29 - MAX ( + 75 ) + - - CAST ( + 32 AS INTEGER ) * + 99
----
3122

query I rowsort
SELECT ( 68 ) + - 93 * - 78 AS col2
----
7322

query I rowsort
SELECT 85 + + 59 * + 99 AS col0
----
5926

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT COUNT( * ) * 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( * ) * 33 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT COUNT( * ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-9977
SELECT COUNT ( * ) + + 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL SUM( ALL + - 26 ) * 59 AS col2
----
-1534

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL SUM ( ALL + - 26 ) * 59 AS col2
----
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT COUNT( * ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-9979
SELECT COUNT ( * ) * - 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT COUNT( * ) * + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT COUNT ( * ) * + - 41
----
-41

query I rowsort
SELECT NULLIF ( + 68, + 76 ) + - + 33 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ( NULLIF ( 77, + - 21 + - 65 - - - CASE + + ( - MIN( DISTINCT + 0 ) ) WHEN + 68 * + + 91 - + - 12 + - + 98 + - AVG ( ALL + 27 ) * COUNT( * ) * 64 * - 60 THEN + 47 + + 52 + + 93 ELSE + COUNT( * ) END ) ) * 69
----
5313

skipif mysql # not compatible
query I rowsort label-9982
SELECT ( NULLIF ( 77, + - 21 + - 65 - - - CASE + + ( - MIN ( DISTINCT + 0 ) ) WHEN + 68 * + + 91 - + - 12 + - + 98 + - AVG ( ALL + 27 ) * COUNT ( * ) * 64 * - 60 THEN + 47 + + 52 + + 93 ELSE + COUNT ( * ) END ) ) * 69
----
5313

query I rowsort
SELECT ALL 19 col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL - COUNT( - 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - COUNT ( - 94 ) AS col1
----
-1

query I rowsort
SELECT 61 * - 14 AS col1
----
-854

query I rowsort
SELECT 35 + + - 94 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL 51 * - + 74 / + CAST( NULL AS SIGNED ) * + + SUM( 76 ) + + COUNT( * ) + - 6 + 77 * 56 * + + 10 + - 81 + - 20 * + - 24 + - 76 - - 32 * + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 51 * - + 74 / + CAST ( NULL AS INTEGER ) * + + SUM ( 76 ) + + COUNT ( * ) + - 6 + 77 * 56 * + + 10 + - 81 + - 20 * + - 24 + - 76 - - 32 * + + 58 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL + - CASE + 55 WHEN - - 68 + + 49 * + 86 * - + 47 + + - ( CAST( - 94 AS SIGNED ) ) * 58 / + - 38 + - + 90 + NULLIF ( 54, - 19 ) THEN NULL WHEN - - 14 + + - 53 THEN NULL WHEN - 64 THEN + - 51 * 52 + + 15 END / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL + - CASE + 55 WHEN - - 68 + + 49 * + 86 * - + 47 + + - ( CAST ( - 94 AS INTEGER ) ) * 58 / + - 38 + - + 90 + NULLIF ( 54, - 19 ) THEN NULL WHEN - - 14 + + - 53 THEN NULL WHEN - 64 THEN + - 51 * 52 + + 15 END / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT + 41 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9989
SELECT + 41 / + 90 AS col2
----
0

query I rowsort
SELECT - 50 + 71 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9991
SELECT + CAST( CASE 63 WHEN - 65 / 79 + 14 * - 97 * MAX( + 65 ) * + - 45 * + 13 THEN NULL ELSE 39 * 33 - - - 7 + - 58 END AS SIGNED )
----
1222

skipif mysql # not compatible
query I rowsort label-9991
SELECT + CAST ( CASE 63 WHEN - 65 / 79 + 14 * - 97 * MAX ( + 65 ) * + - 45 * + 13 THEN NULL ELSE 39 * 33 - - - 7 + - 58 END AS INTEGER )
----
1222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT ALL - - CAST( 33 AS SIGNED ) + + 65 col0
----
98

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - - CAST ( 33 AS INTEGER ) + + 65 col0
----
98

query I rowsort
SELECT - 30 + + + 4 + + 19
----
-7

query II rowsort
SELECT + 13 - 81 col1, 34
----
-68
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - - CASE - - 57 WHEN + 20 / - - 53 / - - 28 THEN - 84 ELSE COUNT( * ) END * + + 93 + - 82 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9995
SELECT - - CASE - - 57 WHEN + 20 / - - 53 / - - 28 THEN - 84 ELSE COUNT ( * ) END * + + 93 + - 82 AS col2
----
11

query I rowsort
SELECT ALL + 54 + + 42 AS col1
----
96

query I rowsort
SELECT + 66 * 19 + - + 62 AS col1
----
1192

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT NULLIF ( + 47, + + 51 * - + 96 ) * - 64 * + COUNT( * )
----
-3008

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT NULLIF ( + 47, + + 51 * - + 96 ) * - 64 * + COUNT ( * )
----
-3008

query I rowsort
SELECT ALL - + 40 AS col2
----
-40

