sqllogictest
Artifact Content
Not logged in

Artifact 7fb4a6614249e4831037c22b4d0db7d30478af58:


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 + S