sqllogictest
Artifact Content
Not logged in

Artifact fcbac3c8fb36b5340f28ce71a6fd3f53543b02e1:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 37 + ( - - col2 ) + + col2 * - col0 AS col2 FROM tab1
----
-4837
-4993
-6157

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 8 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2
SELECT - 78 + + col0 * + CAST( NULL AS SIGNED ), col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2
SELECT - 78 + + col0 * + CAST ( NULL AS INTEGER ), col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL - 19 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + SUM( - 66 ) FROM tab0, tab1 AS cor0
----
-594

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + SUM ( - 66 ) FROM tab0, tab1 AS cor0
----
-594

query I rowsort
SELECT - ( - + ( col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT - col0 * - 97 FROM tab1
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL + + 20 * 38 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
757

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL + + 20 * 38 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
757

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 3 + + - col0 * + + 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL + COUNT( * ) * 36 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL + COUNT ( * ) * 36 FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT + COUNT( * ) * + 50 AS col2 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-10
SELECT + COUNT ( * ) * + 50 AS col2 FROM tab0
----
150

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE + 45 IN ( 4 + - 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT - SUM( 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-12
SELECT - SUM ( 0 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-13
SELECT * FROM tab1 WHERE ( + col0 * + CAST( + 33 AS SIGNED ) ) > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-13
SELECT * FROM tab1 WHERE ( + col0 * + CAST ( + 33 AS INTEGER ) ) > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 2 <= col0 * - ( col1 * ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT - COUNT( 58 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - COUNT ( 58 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL 73 FROM tab0 WHERE NOT NULL IS NOT NULL
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-17
SELECT ALL + CAST( NULL AS DECIMAL ) + COUNT( DISTINCT + 72 ) * COUNT( * ) FROM tab0 WHERE NOT 11 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + CAST ( NULL AS REAL ) + COUNT ( DISTINCT + 72 ) * COUNT ( * ) FROM tab0 WHERE NOT 11 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + col1 NOT BETWEEN ( col1 ) AND + col0 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-20
SELECT CAST( 64 AS SIGNED ) AS col0 FROM tab0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-20
SELECT CAST ( 64 AS INTEGER ) AS col0 FROM tab0
----
64
64
64

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 / 72 NOT IN ( - col2 / + 98 )
----

query III rowsort
SELECT * FROM tab1 WHERE 26 + + col0 * - 57 NOT IN ( + 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 61 ) * - col0 - + col2 / + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= + ( col1 ) * - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT - SUM( ALL col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT - SUM ( ALL col2 ) AS col0 FROM tab0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <> + 96
----

query I rowsort
SELECT ALL - 7 * - col0 - + col0 FROM tab2
----
276
384
450

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT - ( + 76 ) + + COUNT( * ) col1 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-29
SELECT DISTINCT - ( + 76 ) + + COUNT ( * ) col1 FROM tab0
----
-73

query I rowsort
SELECT + col2 * col0 AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
705
870
9603

query I rowsort
SELECT col0 * 96 + col1 FROM tab1
----
4910
8165
8783

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - MIN( DISTINCT + 2 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-32
SELECT - MIN ( DISTINCT + 2 ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-33
SELECT - 15 + COUNT( * ) DIV 76 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-33
SELECT - 15 + COUNT ( * ) / 76 FROM tab0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-34
SELECT ALL + CAST( NULL AS DECIMAL ) + 67 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL + CAST ( NULL AS REAL ) + 67 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 15 * + col0 NOT BETWEEN NULL AND col0 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-36
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) > + col1
----

skipif mysql # not compatible
query III rowsort label-36
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-37
SELECT ALL + CAST( 17 AS SIGNED ) FROM tab0 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + CAST ( 17 AS INTEGER ) FROM tab0 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + - col2 col0 FROM tab2
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT col2 DIV + col2 + - 25 FROM tab2
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-39
SELECT col2 / + col2 + - 25 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT + col2 * - 61 + - col2 AS col2 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( col2 * ( - col0 ) ) < + col1
----
59
68
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( + 27 ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) > NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( 88 * col0 ) NOT BETWEEN ( - col1 ) AND - ( col1 )
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - col0 <= - col0 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT + + COUNT( * ) * 32 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-46
SELECT + + COUNT ( * ) * 32 FROM tab0 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + col2 ) + + 18 BETWEEN ( - col0 ) AND - col2 + + col2 * + col2
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-48
SELECT ALL + + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + col2 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL - + 4 + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL - + 4 + COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT COUNT( * ) * + SUM( 71 ) - + 56 AS col2 FROM tab2
----
583

skipif mysql # not compatible
query I rowsort label-51
SELECT COUNT ( * ) * + SUM ( 71 ) - + 56 AS col2 FROM tab2
----
583

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT COUNT( DISTINCT - + 54 ) - + COUNT( * ) AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-52
SELECT COUNT ( DISTINCT - + 54 ) - + COUNT ( * ) AS col2 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT + col0 DIV - 83 - col2 AS col2 FROM tab1
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-53
SELECT + col0 / - 83 - col2 AS col2 FROM tab1
----
-60
-69
-96

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 18 * + ( col2 ) AND ( + col0 * - 42 + 38 ) OR NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT + col1 - col1 DIV - col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-55
SELECT + col1 - col1 / - col1 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT ALL + col1 + col0 + 73 * + CAST( - col2 AS SIGNED ) FROM tab1
----
-4217
-4826
-6943

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + col1 + col0 + 73 * + CAST ( - col2 AS INTEGER ) FROM tab1
----
-4217
-4826
-6943

query III rowsort
SELECT * FROM tab0 WHERE col0 = col1
----

query I rowsort
SELECT DISTINCT + col2 * - 98 + + 59 FROM tab0
----
-4547
-921
-9643

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL COUNT( * ) FROM tab2 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL COUNT ( * ) FROM tab2 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT + + SUM( 28 ) * + ( - COUNT( DISTINCT 83 ) ) FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + + SUM ( 28 ) * + ( - COUNT ( DISTINCT 83 ) ) FROM tab0 cor0
----
-84

query I rowsort
SELECT DISTINCT - 57 * - col0 AS col0 FROM tab0 AS cor0
----
4959
5529
855

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-62
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col1 + col1 * CAST( - ( + col0 ) AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-62
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col1 + col1 * CAST ( - ( + col0 ) AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col2 ) NOT BETWEEN 61 AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 94 BETWEEN NULL AND + col1 * 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-65
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 + + CAST( NULL AS SIGNED ) * - col0 AND + col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-65
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 + + CAST ( NULL AS INTEGER ) * - col0 AND + col2 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 5 BETWEEN + 62 * col1 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - col0 ) * - 74 + + col2 FROM tab2 AS cor0
----
-3381
-4696
-5492

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT 53 DIV col2 + - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-68
SELECT 53 / col2 + - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 77 * + + ( - 9 ) NOT IN ( col0 * 19 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - ( - 52 ) FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - - 81 AS col0 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT ALL + CAST( + col0 AS SIGNED ) * col1 FROM tab0 cor0 WHERE + 69 NOT IN ( col2 - + col1 )
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL + CAST ( + col0 AS INTEGER ) * col1 FROM tab0 cor0 WHERE + 69 NOT IN ( col2 - + col1 )
----
1215
1827
97

query II rowsort
SELECT DISTINCT - + col2 AS col0, - ( 40 ) FROM tab0 AS cor0
----
-10
-40
-47
-40
-99
-40

query I rowsort
SELECT - ( - - ( col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col0 * - - 52 AS col0 FROM tab0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT DISTINCT - SUM( ALL + col0 ) AS col1 FROM tab0 WHERE NOT + - ( - 58 ) BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT - SUM ( ALL + col0 ) AS col1 FROM tab0 WHERE NOT + - ( - 58 ) BETWEEN ( NULL ) AND ( NULL )
----
NULL

query I rowsort
SELECT ALL + - 80 * + col0 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col1 FROM tab2
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ( + + MIN( ALL - - col2 ) ) + - + MIN( DISTINCT 71 ) * 39 col2 FROM tab2
----
-2746

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-80
SELECT ( + + MIN ( ALL - - col2 ) ) + - + MIN ( DISTINCT 71 ) * 39 col2 FROM tab2
----
-2746

query I rowsort
SELECT DISTINCT + - col1 * + - ( + + col2 ) FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-82
SELECT COUNT( * ) * 28 DIV 1 col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-82
SELECT COUNT ( * ) * 28 / 1 col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - 45 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col0 / 68
----

query I rowsort
SELECT ALL col0 + + col0 + + - col1 + col0 FROM tab2
----
115
158
87

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-87
SELECT ALL CAST( NULL AS SIGNED ) col0, - ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-87
SELECT ALL CAST ( NULL AS INTEGER ) col0, - ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT + + col0 + 45 FROM tab0 AS cor0
----
132
142
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - col0 ) > ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 53 + + 57 - - - col2, 91 AS col1 FROM tab2 AS cor0
----
52
91
70
91
87
91

onlyif mysql # DIV for integer division: 
query II rowsort label-91
SELECT ALL - 29 AS col2, ( - col2 ) DIV - - col2 * + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-29
-1
-29
-1
-29
-1

skipif mysql # not compatible
query II rowsort label-91
SELECT ALL - 29 AS col2, ( - col2 ) / - - col2 * + col0 / col0 AS col2 FROM tab2 AS cor0
----
-29
-1
-29
-1
-29
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + MIN( DISTINCT - 92 ) AS col2 FROM tab1 AS cor0 WHERE - col0 * + 72 NOT IN ( - 81 )
----
-92

skipif mysql # not compatible
query I rowsort label-92
SELECT + MIN ( DISTINCT - 92 ) AS col2 FROM tab1 AS cor0 WHERE - col0 * + 72 NOT IN ( - 81 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) * - 49 <= NULL
----

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) * - 49 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT 65 * + - 37 + ( COUNT( * ) ) * COUNT( * ) FROM tab1
----
-2396

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT 65 * + - 37 + ( COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-2396

query I rowsort
SELECT ALL - 97 AS col2 FROM tab2 WHERE ( + col0 >= - col0 )
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + 27 + col2 FROM tab2
----
50
67
85

query I rowsort
SELECT col2 * 92 AS col2 FROM tab0
----
4324
9108
920

query I rowsort
SELECT ALL + col2 + + 90 AS col2 FROM tab2
----
113
130
148

query I rowsort
SELECT col0 FROM tab0 WHERE NULL > col0 * + - 17
----

query I rowsort
SELECT DISTINCT col0 + + - 14 * + + col1 + + col2 AS col2 FROM tab2
----
-645
-805
-974

query I rowsort
SELECT DISTINCT 85 - + - col0 * + col2 FROM tab1
----
4981
5100
6273

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * + col0 + - 99 col1 FROM tab1
----
2094
3556
3814

query I rowsort
SELECT DISTINCT + + 29 FROM tab1 cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 46 * col0 + 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0, + 99 FROM tab0 cor0
----
15
99
87
99
97
99

query I rowsort
SELECT 7 AS col2 FROM tab1 cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col1 FROM tab1 cor0
----
23

query I rowsort
SELECT DISTINCT + col2 * - - col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE + col2 < col1
----
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 0 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 22 + - col2 AS col0 FROM tab2
----
-1
-18
-36

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 57 + + col2 / col1 OR ( - col2 ) - + col2 >= + ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 * + 97 col0 FROM tab1
----
9118

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + + col1 >= - ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL + - ( + - ( + 93 ) ) * + COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT col2 + + col2 + + - col2 > col2
----
276

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + - ( + - ( + 93 ) ) * + COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT col2 + + col2 + + - col2 > col2
----
276

query I rowsort
SELECT ALL - ( col1 ) + + - ( + - 42 ) * - + col0 FROM tab2
----
-1983
-2765
-3217

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT SUM( 48 ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-118
SELECT SUM ( 48 ) FROM tab0
----
144

query II rowsort
SELECT col1 AS col1, 84 AS col1 FROM tab1
----
14
84
47
84
5
84

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL 38 * 71 * + ( COUNT( * ) ) AS col1 FROM tab0
----
8094

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL 38 * 71 * + ( COUNT ( * ) ) AS col1 FROM tab0
----
8094

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-121
SELECT * FROM tab2 WHERE ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-121
SELECT * FROM tab2 WHERE ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ( - col1 ) * - col2 * - - col0 * - col0 FROM tab0
----
-1589490
-856575
-931491

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE 42 + 8 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, - col2 AS col2 FROM tab1 cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT - - col2 + + + 12 FROM tab1 AS cor0
----
108
71
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-126
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + - ( + 47 ) + + col0 * + + 64 / - col2 * - col1 - col0 * + col2 IN ( + 98 * 77 + col2 * col2 )
----

skipif mysql # not compatible
query III rowsort label-126
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + - ( + 47 ) + + col0 * + + 64 / - col2 * - col1 - col0 * + col2 IN ( + 98 * 77 + col2 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-127
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-127
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT - + ( ( + col1 ) ) + + + col2 AS col1 FROM tab2 AS cor0 WHERE - 33 IS NOT NULL
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT 65 DIV COUNT( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-131
SELECT 65 / COUNT ( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - 39 + - col0 * - + 97 * + 49 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT 82 - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
82
83
84

skipif mysql # not compatible
query I rowsort label-133
SELECT 82 - col1 / - col2 AS col2 FROM tab0 AS cor0
----
82
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 56 - - + col1 FROM tab0
----
-35
-55
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 70 col0 FROM tab2
----
116
134
145

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT + 74 + COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-137
SELECT + 74 + COUNT ( * ) FROM tab0
----
77

query I rowsort
SELECT col1 + - col0 * + 86 + 3 AS col0 FROM tab0
----
-1206
-7458
-8338

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE + 69 * col2 IS NOT NULL AND NULL IN ( + 48, 33 * ( - + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE + 69 * col2 IS NOT NULL AND NULL IN ( + 48, 33 * ( - + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT COUNT( ALL + 29 ) + 84 AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-140
SELECT COUNT ( ALL + 29 ) + 84 AS col0 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 + + col1 + - col2 AS col2 FROM tab2
----
114
76
79

query II rowsort
SELECT DISTINCT + col1, col0 FROM tab2
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col2 + col2 col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT MIN( ALL - + 94 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT MIN ( ALL - + 94 ) FROM tab1 AS cor0
----
-94

query II rowsort
SELECT + 57 AS col1, 47 FROM tab1 AS cor0
----
57
47
57
47
57
47

query I rowsort
SELECT - col2 * + 16 FROM tab1 cor0
----
-1088
-1536
-944

query I rowsort
SELECT 32 * - col1 AS col1 FROM tab1
----
-1504
-160
-448

query II rowsort
SELECT ALL - col1 * + - col2, col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-150
SELECT ALL CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-150
SELECT ALL CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT ( + 38 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

skipif mysql # not compatible
query I rowsort label-153
SELECT CAST ( NULL AS INTEGER ) + - + col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + + col2 col1 FROM tab2
----
-2323
-4888
-4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * + 81 + - col0 * + col1 col2 FROM tab2 WHERE NULL IS NULL
----
2022
2119
4701

query I rowsort
SELECT ALL + col0 * - col1 + - + ( + col2 ) AS col2 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col0, ( + MAX( DISTINCT - col1 ) ) - + 30 AS col0 FROM tab0 cor0
----
-15
-31

skipif mysql # not compatible
query II rowsort label-157
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col0, ( + MAX ( DISTINCT - col1 ) ) - + 30 AS col0 FROM tab0 cor0
----
-15
-31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 + - - col2 + + 28 * col2 * - col1 ) IS NOT NULL
----

query I rowsort
SELECT + 58 * + 57 AS col0 FROM tab2 AS cor0
----
3306
3306
3306

onlyif mysql # aggregate syntax: 
query II rowsort label-160
SELECT ALL - MIN( + + 27 ) col0, 22 FROM tab1 AS cor0
----
-27
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-160
SELECT ALL - MIN ( + + 27 ) col0, 22 FROM tab1 AS cor0
----
-27
22

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT ALL + col2 DIV col2 + - col0 AS col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + col2 / col2 + - col0 AS col0 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE 26 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN + 51 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL + + COUNT( * ) + + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL + + COUNT ( * ) + + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
56

query I rowsort
SELECT DISTINCT + col2 * 4 + + 1 + + + ( col1 ) AS col1 FROM tab2 AS cor0
----
144
238
300

query I rowsort
SELECT DISTINCT - - 28 AS col1 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL - 3 - - col2 FROM tab1 AS cor0
----
56
65
93

query I rowsort
SELECT ALL + col1 * - col0 + - col0 * + col1 * - col1 AS col2 FROM tab0 AS cor0
----
0
36540
97200

query I rowsort
SELECT + + col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL col1 + 63 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 51 + + 14 * - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-159
-24
-654

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col1 AND + col1 - + - col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT 84 DIV - col2 + ( - - col1 ) col1 FROM tab2 AS cor0
----
48
66
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-174
SELECT 84 / - col2 + ( - - col1 ) col1 FROM tab2 AS cor0
----
48
66
75

onlyif mysql # DIV for integer division: 
query I rowsort label-175
SELECT + 13 DIV col2 * + - col0 + - 40 FROM tab1 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-175
SELECT + 13 / col2 * + - col0 + - 40 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - col2 - + 35 AS col0 FROM tab0 AS cor0
----
-134
-45
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - 83 * + col2 col0 FROM tab1 cor0 WHERE + 17 NOT BETWEEN + col1 AND + + col1 - + 36
----
-4902
-5691
-7982

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-180
SELECT + ( + 88 ) * + col1 DIV - col1 + + col2 AS col2, col0 FROM tab1 WHERE NOT - 29 * - col0 IS NULL
----
-20
91
-29
85
8
51

skipif mysql # not compatible
query II rowsort label-180
SELECT + ( + 88 ) * + col1 / - col1 + + col2 AS col2, col0 FROM tab1 WHERE NOT - 29 * - col0 IS NULL
----
-20
91
-29
85
8
51

query I rowsort
SELECT DISTINCT 6 * + + 66 * col1 FROM tab0
----
32076
396
8316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT ALL COUNT( * ) DIV - 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL COUNT ( * ) / - 91 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT - ( + COUNT( DISTINCT + ( - col2 ) ) ) AS col0, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-183
SELECT - ( + COUNT ( DISTINCT + ( - col2 ) ) ) AS col0, COUNT ( * ) FROM tab1
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT DISTINCT - 32 DIV + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT - 32 / + col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + col1 NOT BETWEEN ( - + col0 ) AND col1
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 AND + ( 96 ) * + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT + ( + COUNT( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-187
SELECT + ( + COUNT ( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + 79 + - + col0 FROM tab1
----
-12
-6
28

query I rowsort
SELECT ALL + 61 + - 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL col1 + 27 AS col1 FROM tab1 AS cor0
----
32
41
74

query I rowsort
SELECT DISTINCT + 72 * col2 FROM tab0
----
3384
7128
720

query I rowsort
SELECT + col1 + + + col0 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT - col0 * + col1 * + 5 FROM tab0 AS cor0
----
-485
-6075
-9135

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT 37 + + - col2 AS col0 FROM tab1 AS cor0
----
-22
-31
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT - col0 + - col0 - - col0 * + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT - col0 + - col0 - - col0 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL COUNT( + + 65 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 11 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL COUNT ( + + 65 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 11 IS NULL
----
3

query I rowsort
SELECT ALL - col1 * - - col0 AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + + col2 * + + 37 FROM tab1 AS cor0
----
2183
2516
3552

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 72 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 * + + col2 FROM tab1
----
-2992
-3552
-4720

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + - ( col2 )
----

query I rowsort
SELECT DISTINCT col0 + col0 - - + col0 FROM tab1
----
153
255
273

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT DISTINCT + col0 * - - 75 - col2 DIV - ( - 64 ) FROM tab2 cor0
----
3450
4800
5625

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT + col0 * - - 75 - col2 / - ( - 64 ) FROM tab2 cor0
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - + COUNT( * ) * MAX( - - col1 ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-206
SELECT - + COUNT ( * ) * MAX ( - - col1 ) FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT + + 53 * - + MIN( + col1 ) FROM tab1 AS cor0
----
-265

skipif mysql # not compatible
query I rowsort label-207
SELECT + + 53 * - + MIN ( + col1 ) FROM tab1 AS cor0
----
-265

query I rowsort
SELECT - 49 * 42 FROM tab2
----
-2058
-2058
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL MIN( 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL MIN ( 12 ) FROM tab0
----
12

query II rowsort
SELECT DISTINCT + col0, - col2 * + col2 FROM tab2
----
46
-529
64
-1600
75
-3364

query I rowsort
SELECT ALL - 2 * - col0 - + + col1 * + - col0 AS col1 FROM tab2 AS cor0
----
2438
5056
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ( + MIN( - + col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-212
SELECT ( + MIN ( - + col0 ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT - - col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT MIN( + + col2 ) * + SUM( - col1 ) FROM tab0
----
-1030

skipif mysql # not compatible
query I rowsort label-214
SELECT MIN ( + + col2 ) * + SUM ( - col1 ) FROM tab0
----
-1030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT SUM( ALL - - CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-215
SELECT SUM ( ALL - - CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT col0 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 81 + + 61 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL COUNT( DISTINCT + - col2 ) * - 65 col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-219
SELECT ALL COUNT ( DISTINCT + - col2 ) * - 65 col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - - 59 AS col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT - + 79 + col2 FROM tab1 AS cor0
----
-11
-20
17

query I rowsort
SELECT ALL 16 * + - ( + - 92 ) + 41 FROM tab1 AS cor0
----
1513
1513
1513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + + col2 col1 FROM tab2
----
-13
-30
5

query I rowsort
SELECT DISTINCT col0 - + 84 FROM tab1
----
-33
1
7

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 + col0 * col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL 27 * + COUNT( DISTINCT + 82 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL 27 * + COUNT ( DISTINCT + 82 ) FROM tab0
----
27

query I rowsort
SELECT DISTINCT - col1 * - 88 * col1 + + + col2 FROM tab1 WHERE - 93 IS NOT NULL
----
17344
194460
2259

query I rowsort
SELECT DISTINCT - 61 + + col1 AS col1 FROM tab0
----
-40
-60
20

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - COUNT( * ) * 95 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-229
SELECT - COUNT ( * ) * 95 FROM tab1 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL - - MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - - MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 - 16 <= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT DISTINCT + COUNT( 32 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + COUNT ( 32 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 41 + col0 * 29 AS col2 FROM tab2 WHERE ( + col2 / - col0 <> - 55 )
----
1375
1897
2216

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - COUNT( * ) + 44 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - COUNT ( * ) + 44 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-235
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - + MAX( ALL - 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-236
SELECT - + MAX ( ALL - 21 ) FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-238
SELECT ALL + ( + col1 ) AS col1, - CAST( NULL AS SIGNED ) * - ( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-238
SELECT ALL + ( + col1 ) AS col1, - CAST ( NULL AS INTEGER ) * - ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT ALL + + 58 * - + col1 AS col0, col0 AS col0 FROM tab1 AS cor0
----
-2726
91
-290
85
-812
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - 24 + + col2
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT ALL + col1 + - col1 + - 39 * + col2 - + 75 DIV + col2 FROM tab0 cor0
----
-1834
-3861
-397

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL + col1 + - col1 + - 39 * + col2 - + 75 / + col2 FROM tab0 cor0
----
-1834
-3861
-397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - col1 AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + 53 + + col0 * + 19 col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-244
SELECT - CAST( + 12 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-244
SELECT - CAST ( + 12 AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-245
SELECT - 35 AS col1, CAST( - + MIN( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-35
-51

skipif mysql # not compatible
query II rowsort label-245
SELECT - 35 AS col1, CAST ( - + MIN ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-35
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col0 col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT + - COUNT( col2 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-248
SELECT + - COUNT ( col2 ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - + 49
----

query I rowsort
SELECT + col2 - - 12 AS col0 FROM tab2
----
35
52
70

query I rowsort
SELECT - ( col1 ) - - + 39 * + ( - 59 ) * + col1 + + - 28 AS col2 FROM tab0
----
-186490
-2330
-48370

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT ALL - col2 DIV + col0 + col2 FROM tab1
----
59
68
95

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - col2 / + col0 + col2 FROM tab1
----
59
68
95

query I rowsort
SELECT col2 + - 5 * + + col1 AS col1 FROM tab1
----
-167
26
34

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL SUM( DISTINCT 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL SUM ( DISTINCT 6 ) FROM tab0
----
6

query I rowsort
SELECT - col2 * col1 + col2 + col2 + ( ( + col1 ) ) + col1 * + col0 + + ( + + col1 ) FROM tab0 AS cor0
----
-2336
1679
198

query I rowsort
SELECT - 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-257
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) / + - col0 BETWEEN - - col1 AND + + ( col1 ) - 32 - - 49
----

skipif mysql # not compatible
query III rowsort label-257
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) / + - col0 BETWEEN - - col1 AND + + ( col1 ) - 32 - - 49
----

query I rowsort
SELECT 87 * col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT - - CAST( col1 AS SIGNED ) col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-259
SELECT - - CAST ( col1 AS INTEGER ) col0 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT DISTINCT - 7 * - - COUNT( * ) - + + 1 FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT - 7 * - - COUNT ( * ) - + + 1 FROM tab0 cor0
----
-22

query II rowsort
SELECT + + 97, col0 * - col1 AS col2 FROM tab1 AS cor0
----
97
-425
97
-4277
97
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col1, 31 AS col1 FROM tab0 AS cor0
----
10
31
47
31
99
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL - COUNT( DISTINCT 51 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - COUNT ( DISTINCT 51 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-265
SELECT - 41 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-41
NULL
-41
NULL
-41
NULL

skipif mysql # not compatible
query II rowsort label-265
SELECT - 41 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-41
NULL
-41
NULL
-41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT + 31 * - - MIN( CAST( 37 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
1147

skipif mysql # not compatible
query I rowsort label-266
SELECT + 31 * - - MIN ( CAST ( 37 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL + + MAX( + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + + MAX ( + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= - - 74 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT - MAX( ALL 53 ) AS col1 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-269
SELECT - MAX ( ALL 53 ) AS col1 FROM tab2
----
-53

query I rowsort
SELECT 89 * - col0 FROM tab1
----
-4539
-7565
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL + COUNT( DISTINCT 84 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL + COUNT ( DISTINCT 84 ) AS col2 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab2 WHERE NOT - ( - col1 ) NOT IN ( col0, - col0, - 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * - - col0 col0 FROM tab1
----
510
850
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT + CAST( 20 AS SIGNED ) FROM tab2 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-274
SELECT + CAST ( 20 AS INTEGER ) FROM tab2 AS cor0
----
20
20
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 7 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-276
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT DISTINCT 94 * - 31 + + col2 FROM tab1
----
-2818
-2846
-2855

query II rowsort
SELECT - 16 * + 95 AS col2, + 76 + - col2 AS col1 FROM tab0
----
-1520
-23
-1520
29
-1520
66

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT col1 + + + 47 DIV + 42 AS col2 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-279
SELECT col1 + + + 47 / + 42 AS col2 FROM tab2
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + COUNT( * ) + COUNT( * ) - MIN( + 79 ) FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-280
SELECT + COUNT ( * ) + COUNT ( * ) - MIN ( + 79 ) FROM tab2 cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL MIN( ALL - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL MIN ( ALL - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - 33 ) col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT + 13 + col1 FROM tab0 AS cor0
----
14
34
94

query I rowsort
SELECT + - col0 + - - ( + 43 ) + - + 34 FROM tab2 AS cor0
----
-37
-55
-66

query II rowsort
SELECT ALL - - col1 * - col0 * - col2 AS col0, + col2 * - col2 FROM tab1 AS cor0
----
25075
-3481
290836
-4624
68544
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-286
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NULL > ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-288
SELECT ALL + COUNT( DISTINCT col1 ) + 63 AS col1, - COUNT( - + col1 ) FROM tab0
----
66
-3

skipif mysql # not compatible
query II rowsort label-288
SELECT ALL + COUNT ( DISTINCT col1 ) + 63 AS col1, - COUNT ( - + col1 ) FROM tab0
----
66
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-289
SELECT ALL * FROM tab2 WHERE NOT NULL <= - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-289
SELECT ALL * FROM tab2 WHERE NOT NULL <= - CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 + 20 FROM tab2
----
43
60
78

onlyif mysql # DIV for integer division: 
query II rowsort label-291
SELECT ALL - col0 DIV col0 + + 23 + + + 79 AS col0, ( - - 96 ) * col2 * - - col0 FROM tab2
----
101
101568
101
245760
101
417600

skipif mysql # not compatible
query II rowsort label-291
SELECT ALL - col0 / col0 + + 23 + + + 79 AS col0, ( - - 96 ) * col2 * - - col0 FROM tab2
----
101
101568
101
245760
101
417600

query I rowsort
SELECT DISTINCT + 93 + 42 * ( 82 ) + - col1 AS col1 FROM tab1
----
3490
3523
3532

query I rowsort
SELECT DISTINCT - 87 - - col0 AS col1 FROM tab0
----
-72
0
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL + CAST( CAST( + - MAX( ALL - col0 ) AS SIGNED ) AS SIGNED ) + - - ( COUNT( * ) ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + CAST ( CAST ( + - MAX ( ALL - col0 ) AS INTEGER ) AS INTEGER ) + - - ( COUNT ( * ) ) FROM tab0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-295
SELECT COUNT( * ) DIV + 44 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-295
SELECT COUNT ( * ) / + 44 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE 30 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT - SUM( DISTINCT - CAST( + ( + col1 ) AS SIGNED ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-297
SELECT - SUM ( DISTINCT - CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT MIN( DISTINCT - 56 ) AS col1 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-298
SELECT MIN ( DISTINCT - 56 ) AS col1 FROM tab1
----
-56

query I rowsort
SELECT + 46 * + - col0 - col0 * + - 27 * - - col1 FROM tab0 AS cor0
----
-1843
32115
45327

query II rowsort
SELECT + - col1, 66 + - col0 + - col1 * col0 * - col2 FROM tab0 WHERE NOT + 74 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + MIN( - ( + col2 ) ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-301
SELECT + MIN ( - ( + col2 ) ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL - + MIN( col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - + MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-303
SELECT CAST( - col0 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-303
SELECT CAST ( - col0 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + 37 * ( + - col0 ) * col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-15725
-158249
-26418

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT ALL + - col0 * - - col2 + col2 DIV col2 AS col0 FROM tab2 AS cor0
----
-1057
-2559
-4349

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + - col0 * - - col2 + col2 / col2 AS col0 FROM tab2 AS cor0
----
-1057
-2559
-4349

query I rowsort
SELECT DISTINCT - + ( 2 ) FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> col0 * + + col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT COUNT( * ) * - MAX( + col1 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-308
SELECT COUNT ( * ) * - MAX ( + col1 ) FROM tab1
----
-141

query I rowsort
SELECT DISTINCT + col0 * - 44 AS col2 FROM tab0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT DISTINCT COUNT( * ) AS col2, - ( 26 ) AS col1 FROM tab1
----
3
-26

skipif mysql # not compatible
query II rowsort label-310
SELECT DISTINCT COUNT ( * ) AS col2, - ( 26 ) AS col1 FROM tab1
----
3
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-311
SELECT * FROM tab2 AS cor0 WHERE - 59 * - - 44 / col2 * 60 + col2 BETWEEN - CAST( - col0 AS DECIMAL ) + + + ( - - col0 ) * col1 AND + col1
----

skipif mysql # not compatible
query III rowsort label-311
SELECT * FROM tab2 AS cor0 WHERE - 59 * - - 44 / col2 * 60 + col2 BETWEEN - CAST ( - col0 AS REAL ) + + + ( - - col0 ) * col1 AND + col1
----

query II rowsort
SELECT col1 + - col1, - ( + + col1 ) AS col2 FROM tab2 cor0 WHERE col1 < - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT DISTINCT + + 50 * - - 86 + - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
4291

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT + + 50 * - - 86 + - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
4291

query I rowsort
SELECT DISTINCT + - col2 - 12 * - - 60 + + 99 * col1 FROM tab2 WHERE + - col0 >= 29 + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT SUM( ALL - col2 ) + - 75 AS col1 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-315
SELECT SUM ( ALL - col2 ) + - 75 AS col1 FROM tab0
----
-231

query I rowsort
SELECT ALL 18 * + + col0 + + - col1 AS col2 FROM tab0
----
1545
1745
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT + CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) * + - 12 - + COUNT( * ) AS col1 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-317
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) * + - 12 - + COUNT ( * ) AS col1 FROM tab2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE + 6 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE + 6 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + 15 AS col1 FROM tab1 AS cor0
----
51
15
85
15
91
15

query I rowsort
SELECT DISTINCT - col1 + 79 FROM tab2 cor0
----
12
2
28

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col0 * + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 62 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT ALL col0 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL col0 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - col1 + col0 FROM tab2 AS cor0
----
-56
-59
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - 83 col0 FROM tab2 AS cor0
----
-1909
-3320
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT + + 86 * 29 DIV + col0 + - 89 - col0 * - + col1 FROM tab1 AS cor0
----
365
4215
673

skipif mysql # not compatible
query I rowsort label-326
SELECT + + 86 * 29 / + col0 + - 89 - col0 * - + col1 FROM tab1 AS cor0
----
365
4215
673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - + ( col0 ) + col1 * + col0 col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT col1 - + + ( col1 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-329
SELECT - COUNT( * ) - - SUM( - ( - 24 ) ) DIV - + CAST( - + MIN( + - col1 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-329
SELECT - COUNT ( * ) - - SUM ( - ( - 24 ) ) / - + CAST ( - + MIN ( + - col1 ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT ALL 11 * + + 53 * + COUNT( * ) * 80 FROM tab1
----
139920

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL 11 * + + 53 * + COUNT ( * ) * 80 FROM tab1
----
139920

query I rowsort
SELECT DISTINCT col0 + 95 + + 80 + + + col2 AS col0 FROM tab0
----
237
272
371

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT - - col1 - - ( - 54 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 32 ) * - 38 - - col1 AS col1 FROM tab1
----
-1169
-1202
-1211

query I rowsort
SELECT - - col2 AS col0 FROM tab0 WHERE + - col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 24 + + col0 FROM tab2
----
22
40
51

query I rowsort
SELECT - col0 * - - 26 FROM tab0 AS cor0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT + COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-337
SELECT + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 12 col0, 21 AS col2 FROM tab2
----
12
21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * + col2 + - + ( - col0 ) ) NOT BETWEEN + col0 AND - col1 * 21 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT + 52 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-340
SELECT + 52 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-341
SELECT COUNT( * ) DIV + 94 - + 62 col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-341
SELECT COUNT ( * ) / + 94 - + 62 col2 FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-342
SELECT DISTINCT ( COUNT( * ) ) + - - COUNT( * ) DIV 12 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT ( COUNT ( * ) ) + - - COUNT ( * ) / 12 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - + col2 * - 19 AS col0 FROM tab0 AS cor0
----
1881
190
893

query II rowsort
SELECT DISTINCT - col1, 8 AS col0 FROM tab2 AS cor0
----
-51
8
-67
8
-77
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT ALL - CAST( NULL AS SIGNED ) * - MAX( 65 ) / + + 82 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - CAST ( NULL AS INTEGER ) * - MAX ( 65 ) / + + 82 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 45 - + - ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-24
-44
36

query I rowsort
SELECT + 49 AS col2 FROM tab0 cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-349
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-350
SELECT CAST( NULL AS SIGNED ) + - - 70 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT CAST ( NULL AS INTEGER ) + - - 70 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * ( col1 ) AS col1 FROM tab2 WHERE NOT + + ( + 84 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL SUM( + col0 ) + 55 - 39 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL SUM ( + col0 ) + 55 - 39 FROM tab2
----
201

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT + - col2 * + 23 IS NULL
----
51
85
91

query I rowsort
SELECT 72 * + + col1 + - - col0 AS col1 FROM tab0
----
1599
169
5847

query II rowsort
SELECT DISTINCT ( - 79 ) AS col0, + 61 FROM tab2 cor0
----
-79
61

query I rowsort
SELECT ALL + - 48 AS col2 FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT - ( - 19 ) DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-357
SELECT - ( - 19 ) / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL + COUNT( DISTINCT - col0 ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + COUNT ( DISTINCT - col0 ) + - COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL col0 * + 89 * ( + col2 ) + ( + col1 ) AS col0 FROM tab2
----
227917
387217
94213

query I rowsort
SELECT col2 * 94 * + col2 + - - col1 FROM tab1
----
327219
434703
866318

query I rowsort
SELECT ALL col0 - - col2 * + col2 FROM tab0 AS cor0
----
187
2224
9898

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-362
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + + col2 / - 88 * ( CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-362
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + + col2 / - 88 * ( CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 9 * - - col1 FROM tab1 AS cor0
----
-126
-423
-45

query I rowsort
SELECT DISTINCT + col2 - col0 - + 12 FROM tab2 AS cor0
----
-29
-35
-36

query I rowsort
SELECT col1 + - - 9 FROM tab0 AS cor0
----
10
30
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT ALL 87 DIV COUNT( * ) * - - 36 FROM tab0 AS cor0
----
1044

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL 87 / COUNT ( * ) * - - 36 FROM tab0 AS cor0
----
1044

query III rowsort
SELECT * FROM tab1 cor0 WHERE 6 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT 21 + COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT 21 + COUNT ( * ) FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT + 66 * + COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + 66 * + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
198

query I rowsort
SELECT DISTINCT 9 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 38 FROM tab0 WHERE NULL IS NULL
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT - MIN( - 74 ) AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-372
SELECT - MIN ( - 74 ) AS col1 FROM tab0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-373
SELECT col0 AS col1, CAST( col1 AS SIGNED ) * + 55 * + 77 AS col2 FROM tab1
----
51
59290
85
21175
91
199045

skipif mysql # not compatible
query II rowsort label-373
SELECT col0 AS col1, CAST ( col1 AS INTEGER ) * + 55 * + 77 AS col2 FROM tab1
----
51
59290
85
21175
91
199045

query I rowsort
SELECT - + 94 FROM tab2 WHERE NOT 88 > + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT COUNT( * ) * - MIN( DISTINCT + ( - 72 ) ) + COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT COUNT ( * ) * - MIN ( DISTINCT + ( - 72 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
219

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-376
SELECT COUNT( * ) col2, COUNT( * ) DIV - COUNT( * ) col1 FROM tab2 AS cor0
----
3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-376
SELECT COUNT ( * ) col2, COUNT ( * ) / - COUNT ( * ) col1 FROM tab2 AS cor0
----
3
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 32 * - ( + col0 ) * + col0 * + 78 NOT IN ( - - 84, 6, + 99, + - col2 * col2 * + 56 * + 32 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 + - - col1, + 8, + col1 + col0 + col1 * + + col1 )
----

query I rowsort
SELECT ALL + - 78 + - col2 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
-172
-276
-98

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE + ( - - col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-381
SELECT - + SUM( col0 ) AS col0, 23 AS col2 FROM tab1 AS cor0
----
-227
23

skipif mysql # not compatible
query II rowsort label-381
SELECT - + SUM ( col0 ) AS col0, 23 AS col2 FROM tab1 AS cor0
----
-227
23

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT + - COUNT( * ) * COUNT( - 14 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-382
SELECT + - COUNT ( * ) * COUNT ( - 14 ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 - - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-384
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + col1 + 82 + CAST( + col0 AS SIGNED ) < NULL )
----

skipif mysql # not compatible
query III rowsort label-384
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + col1 + 82 + CAST ( + col0 AS INTEGER ) < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL = + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL + COUNT( * ) + - 89 AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + COUNT ( * ) + - 89 AS col2 FROM tab1
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * - - 30 + - col1 col1 FROM tab0
----
2559
2619
2639

onlyif mysql # DIV for integer division: 
query II rowsort label-388
SELECT ALL 26 + - col2 * + col0 + - ( - col0 ) DIV - - col0 AS col1, 3 FROM tab0
----
-678
3
-843
3
-9576
3

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL 26 + - col2 * + col0 + - ( - col0 ) / - - col0 AS col1, 3 FROM tab0
----
-678
3
-843
3
-9576
3

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT + 43 AS col1, ( + 29 ) + - + COUNT( * ) FROM tab0
----
43
26

skipif mysql # not compatible
query II rowsort label-389
SELECT + 43 AS col1, ( + 29 ) + - + COUNT ( * ) FROM tab0
----
43
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - 98 FROM tab1
----
-14
-98
-47
-98
-5
-98

query I rowsort
SELECT ALL + ( - col2 ) + 45 AS col0 FROM tab2
----
-13
22
5

query I rowsort
SELECT - ( - col1 ) * - col0 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ( + col1 ) * col2 + - col1 AS col0 FROM tab1
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT DISTINCT - col1 + + col0 + - + ( - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-394
SELECT DISTINCT - col1 + + col0 + - + ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 20 FROM tab2 cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 + col1 + + ( col0 ) col2 FROM tab1 AS cor0
----
-1279
-205
-3058

query I rowsort
SELECT DISTINCT + 67 / - ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT ALL + 82 DIV - col0 + + + col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL + 82 / - col0 + + + col1 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT ALL 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL + - 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL - + 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query III rowsort
SELECT * FROM tab2 WHERE + ( ( - - col1 ) ) + col1 > NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 AS col1 FROM tab2
----
1104
2624
4425

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-404
SELECT * FROM tab1 WHERE col1 * - - 49 + + CAST( NULL AS DECIMAL ) <> + col0
----

skipif mysql # not compatible
query III rowsort label-404
SELECT * FROM tab1 WHERE col1 * - - 49 + + CAST ( NULL AS REAL ) <> + col0
----

query II rowsort
SELECT + 17 * 37 * 92 - 25 AS col1, - 45 - col2 + - + 0 FROM tab2 AS cor0
----
57843
-103
57843
-68
57843
-85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 + 86 * - 36 > NULL
----

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NULL > col1
----

query I rowsort
SELECT col1 + 83 + - - col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT DISTINCT col0 DIV - 58 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT col0 / - 58 AS col2 FROM tab2 AS cor0
----
-1
0

query II rowsort
SELECT + 29 + - - 98, + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + 56 * - + col2 FROM tab1 AS cor0
----
3245
3740
5280

query I rowsort
SELECT + col1 * + col2 + - - 74 + + col2 FROM tab2 cor0
----
1270
3194
4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-413
SELECT DISTINCT CAST( MAX( - col0 ) AS SIGNED ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT CAST ( MAX ( - col0 ) AS INTEGER ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL SUM( DISTINCT + + 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL SUM ( DISTINCT + + 83 ) FROM tab2
----
83

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 + - 69 + + 4 * 65 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT - CAST( NULL AS SIGNED ) / MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT - CAST ( NULL AS INTEGER ) / MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT DISTINCT col2 DIV col2 - - + col1 + + 2 * + - col2 col0 FROM tab1 AS cor0
----
-112
-177
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-418
SELECT DISTINCT col2 / col2 - - + col1 + + 2 * + - col2 col0 FROM tab1 AS cor0
----
-112
-177
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT col2 FROM tab2 AS cor0 WHERE NOT 61 + - + CAST( + - col0 AS SIGNED ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-419
SELECT col2 FROM tab2 AS cor0 WHERE NOT 61 + - + CAST ( + - col0 AS INTEGER ) NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( - - col1 + + + 72 + + col2 IS NULL ) ) )
----

query I rowsort
SELECT - 16 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT 25 * + col1 * + ( + 17 ) FROM tab1
----
19975
2125
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT ALL col0 DIV 32 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL col0 / 32 FROM tab0
----
0
2
3

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 32 col0 FROM tab1 AS cor0
----
1504
160
448

query I rowsort
SELECT DISTINCT - col2 * - 44 FROM tab2 AS cor0
----
1012
1760
2552

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, + 90 )
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 52 / - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT DISTINCT - col1 DIV col2 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-431
SELECT DISTINCT - col1 / col2 col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 17 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * - 71 col1 FROM tab0 AS cor0
----
-1018
-6167
-6788

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 83 >= + - col1 + - - 37 - + col0 + - 96 * col1 * - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL + COUNT( * ) + - - 59 AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL + COUNT ( * ) + - - 59 AS col0 FROM tab1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT DISTINCT col0 + + col0 DIV + col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT col0 + + col0 / + col2 FROM tab2
----
48
65
76

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * col2 IS NULL )
----

query I rowsort
SELECT ALL + + ( - - 52 ) AS col0 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT + 4 * - 38 + + 70 * - 19 AS col0 FROM tab0 WHERE + CAST( + col1 AS SIGNED ) = - - col1
----
-1482
-1482
-1482

skipif mysql # not compatible
query I rowsort label-439
SELECT + 4 * - 38 + + 70 * - 19 AS col0 FROM tab0 WHERE + CAST ( + col1 AS INTEGER ) = - - col1
----
-1482
-1482
-1482

query I rowsort
SELECT - col0 + - ( + 45 ) AS col2 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT + 38 * col2 + - 35 * + ( 17 ) + + - 86 FROM tab2 AS cor0
----
1523
193
839

query I rowsort
SELECT ALL col1 - 46 * - ( col2 ) + + 8 AS col1 FROM tab2 AS cor0
----
1117
1925
2743

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT - - 9 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL COUNT( ALL + 29 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-444
SELECT ALL COUNT ( ALL + 29 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT DISTINCT + COUNT( * ) * - - MIN( col2 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + 44, col2, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT + COUNT ( * ) * - - MIN ( col2 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + 44, col2, col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT + COUNT( ALL col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT + COUNT ( ALL col2 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( 78 BETWEEN NULL AND 1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + 29 - - + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT 13 = + col2
----
32

skipif mysql # not compatible
query I rowsort label-448
SELECT + 29 - - + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT 13 = + col2
----
32

query I rowsort
SELECT ALL - ( + 39 ) FROM tab1
----
-39
-39
-39

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT ALL col1 * - col1 * + + 3 * - - col0 DIV + ( + col0 ) FROM tab0 AS cor0
----
-1323
-19683
-3

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL col1 * - col1 * + + 3 * - - col0 / + ( + col0 ) FROM tab0 AS cor0
----
-1323
-19683
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT DISTINCT - + COUNT( - + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT - + COUNT ( - + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + AVG ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL = + 13
----
NULL

query I rowsort
SELECT 94 + - - col0 FROM tab1
----
145
179
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT + ( 6 ) DIV - MAX( ALL 8 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + ( 6 ) / - MAX ( ALL 8 ) AS col1 FROM tab2
----
0

query II rowsort
SELECT ALL + - 30 AS col2, col0 AS col0 FROM tab1 AS cor0
----
-30
51
-30
85
-30
91

query I rowsort
SELECT DISTINCT - - 40 - - 35 + - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
28
61
70

query I rowsort
SELECT - 34 FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL - COUNT( * ) * - 29 + + - 70 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - COUNT ( * ) * - 29 + + - 70 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT ALL - COUNT( 29 ) FROM tab0 AS cor0 WHERE NOT - ( - + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - COUNT ( 29 ) FROM tab0 AS cor0 WHERE NOT - ( - + col2 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 60 IS NULL
----

query II rowsort
SELECT ALL col0, col1 * - + 32 FROM tab2 cor0
----
46
-1632
64
-2464
75
-2144

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + 95 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-464
SELECT ALL + CAST( NULL AS DECIMAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col2, - 21 FROM tab1 AS cor0
----
59
-21
68
-21
96
-21

query I rowsort
SELECT - - 75 AS col2 FROM tab2 cor0
----
75
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-467
SELECT CAST( + MAX( ALL + col0 ) AS SIGNED ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-467
SELECT CAST ( + MAX ( ALL + col0 ) AS INTEGER ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-468
SELECT * FROM tab0 WHERE - - 5 * - 97 + - 47 * + CAST( NULL AS SIGNED ) = col0 * - 85 + + col1 + + - col2 * - col1 + + col0
----

skipif mysql # not compatible
query III rowsort label-468
SELECT * FROM tab0 WHERE - - 5 * - 97 + - 47 * + CAST ( NULL AS INTEGER ) = col0 * - 85 + + col1 + + - col2 * - col1 + + col0
----

query I rowsort
SELECT - col0 * - 40 FROM tab0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL + MAX( - col2 ) + - 65 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL + MAX ( - col2 ) + - 65 FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL - MIN( - col0 ) + + 81 AS col1 FROM tab1
----
172

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - MIN ( - col0 ) + + 81 AS col1 FROM tab1
----
172

query I rowsort
SELECT 77 + col0 AS col0 FROM tab1 AS cor0
----
128
162
168

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT 62 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT + col0 + - - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < + col0
----

skipif mysql # not compatible
query I rowsort label-474
SELECT + col0 + - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < + col0
----

query I rowsort
SELECT DISTINCT - col2 * + - col2 + ( - - col2 ) FROM tab0
----
110
2256
9900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 10 * + - col1 + + - 63 + col0 FROM tab0 AS cor0
----
-186
-858
24

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL + SUM( ALL + 28 ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + SUM ( ALL + 28 ) AS col2 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) + - - 2 AS col0 FROM tab2
----
3
-1

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) + - - 2 AS col0 FROM tab2
----
3
-1

query I rowsort
SELECT ALL + 68 * + 85 FROM tab2
----
5780
5780
5780

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT ALL - + COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-481
SELECT ALL - + COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-482
SELECT MAX( DISTINCT col0 ) AS col1 FROM tab1 WHERE NULL IN ( + CAST( NULL AS DECIMAL ) * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT MAX ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NULL IN ( + CAST ( NULL AS REAL ) * col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT - col1 FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) NOT BETWEEN ( + col2 + + col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-483
SELECT - col1 FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) NOT BETWEEN ( + col2 + + col2 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 * - 29 + col0 ) > NULL
----

query I rowsort
SELECT DISTINCT + 99 * ( - col2 ) FROM tab0
----
-4653
-9801
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT DISTINCT - ( COUNT( * ) ) * - 69 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT - ( COUNT ( * ) ) * - 69 FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL SUM( + col0 ) FROM tab2 WHERE NOT 87 NOT BETWEEN ( NULL ) AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL SUM ( + col0 ) FROM tab2 WHERE NOT 87 NOT BETWEEN ( NULL ) AND ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT COUNT( * ) * - MAX( + 6 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT COUNT ( * ) * - MAX ( + 6 ) FROM tab2
----
-18

query I rowsort
SELECT DISTINCT - col0 * 31 FROM tab1
----
-1581
-2635
-2821

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) AS col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * - 94 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 0 / - ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 74 IN ( col2 )
----

query I rowsort
SELECT + 98 * + col1 FROM tab2
----
4998
6566
7546

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT ALL - col0 - col0 DIV - col0 AS col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - col0 - col0 / - col0 AS col0 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL COUNT( * ) + - 3 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL COUNT ( * ) + - 3 FROM tab2
----
0

query I rowsort
SELECT - col1 * - 73 AS col0 FROM tab0
----
1533
5913
73

query I rowsort
SELECT DISTINCT - col1 * 84 FROM tab1 WHERE col1 + - col2 = NULL
----

query I rowsort
SELECT - col1 * + 94 FROM tab0
----
-1974
-7614
-94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL - MAX( DISTINCT col0 ) AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( col0 * 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - MAX ( DISTINCT col0 ) AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( col0 * 87 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT + 82 DIV col1 + + col1 col0 FROM tab0
----
24
82
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-502
SELECT + 82 / col1 + + col1 col0 FROM tab0
----
24
82
83

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT DISTINCT ( + COUNT( * ) ) + - SUM( col0 ) * + 75 AS col2 FROM tab1
----
-17022

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT ( + COUNT ( * ) ) + - SUM ( col0 ) * + 75 AS col2 FROM tab1
----
-17022

query I rowsort
SELECT ALL col2 + - col0 * - col2 FROM tab1
----
4992
5074
6256

onlyif mysql # DIV for integer division: 
query I rowsort label-505
SELECT DISTINCT + col1 DIV - 31 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + col1 / - 31 AS col2 FROM tab2
----
-1
-2

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN + ( - ( + col1 ) ) + col2 * + ( - col0 ) AND + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT SUM( - 63 ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-507
SELECT SUM ( - 63 ) FROM tab2
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab1
----
94
94
94

query I rowsort
SELECT ALL + 93 * col0 AS col2 FROM tab1
----
4743
7905
8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-510
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 88 FROM tab0 AS cor0 WHERE col1 BETWEEN col2 + - 15 AND ( ( - 31 ) + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * ( col1 ) col0 FROM tab2 AS cor0
----
-2244
-2948
-3388

query I rowsort
SELECT - ( + col0 ) * - col2 AS col0 FROM tab1
----
4896
5015
6188

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE + 37 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE 51 = NULL
----

query I rowsort
SELECT + ( 90 ) FROM tab2 AS cor0
----
90
90
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 93 < + 67 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT + + MAX( ALL - CAST( CAST( col0 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-518
SELECT + + MAX ( ALL - CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( 20 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT ALL ( + col1 ) DIV + 48 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL ( + col1 ) / + 48 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 91 - - 91 AS col2 FROM tab1 AS cor0 WHERE 5 NOT BETWEEN NULL AND - 8 / 40
----
182

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT DISTINCT - SUM( DISTINCT + + col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT - SUM ( DISTINCT + + col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT + 54 * + + col2 AS col0 FROM tab1
----
3186
3672
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT COUNT( * ) col2 FROM tab1 WHERE NOT + col2 / + col2 + - col0 = - 58 + col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-526
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 WHERE NOT + col2 / + col2 + - col0 = - 58 + col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-527
SELECT - 21 * + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
-1071
-1407
-1617

skipif mysql # not compatible
query I rowsort label-527
SELECT - 21 * + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT - COUNT( DISTINCT + + 24 ) * 31 AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-528
SELECT - COUNT ( DISTINCT + + 24 ) * 31 AS col1 FROM tab0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-529
SELECT ( - 57 ) DIV - ( col2 ) AS col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-529
SELECT ( - 57 ) / - ( col2 ) AS col1 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT col1 * col1 + + 75 AS col2 FROM tab1 AS cor0 WHERE - ( 63 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-531
SELECT ALL col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + ( - col1 ) + + 38 FROM tab0 cor0
----
-43
17
37

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + col0 + col1 IS NULL AND NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col2 * + - col1 + + + 53 + 6 AS col1 FROM tab2
----
1232
3139
3945

query I rowsort
SELECT DISTINCT 95 + + col0 FROM tab1
----
146
180
186

query III rowsort
SELECT * FROM tab1 WHERE col0 + col0 * - col2 NOT IN ( + col0 / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT + SUM( - - 94 ) + COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
855

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + SUM ( - - 94 ) + COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
855

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 48 AS col0, col0 FROM tab0 AS cor0
----
-48
15
-48
87
-48
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> col1 * + - 99
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-541
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * CAST( col0 AS DECIMAL ) + + 74 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-541
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * CAST ( col0 AS REAL ) + + 74 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-542
SELECT DISTINCT - col0, + col1 * col1 DIV col2 + 47 AS col0 FROM tab1 AS cor0
----
-51
49
-85
47
-91
79

skipif mysql # not compatible
query II rowsort label-542
SELECT DISTINCT - col0, + col1 * col1 / col2 + 47 AS col0 FROM tab1 AS cor0
----
-51
49
-85
47
-91
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT + 61 - CAST( NULL AS SIGNED ) + col0 + 47 * + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-543
SELECT + 61 - CAST ( NULL AS INTEGER ) + col0 + 47 * + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 - + - col0 col2 FROM tab1 cor0
----
110
144
150

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 + + - 98 * + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 39 * + 88 * col1 - - col0 + - col2 FROM tab0
----
-278024
-3434
-71995

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT col1 DIV col0 * col0 - col2 + col0 FROM tab2
----
17
69
88

skipif mysql # not compatible
query I rowsort label-547
SELECT col1 / col0 * col0 - col2 + col0 FROM tab2
----
17
69
88

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + 7 + - COUNT( * ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-548
SELECT + 7 + - COUNT ( * ) AS col2 FROM tab0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-549
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( + col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( + col1 ) FROM tab1
----
NULL

query I rowsort
SELECT - 14 * + + col0 + + - col1 AS col0 FROM tab2
----
-1117
-695
-973

query I rowsort
SELECT DISTINCT - ( + 4 ) + + col0 + - ( 89 ) FROM tab0
----
-6
-78
4

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT - COUNT( * ) + + 60 * - COUNT( * ) AS col1 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-552
SELECT - COUNT ( * ) + + 60 * - COUNT ( * ) AS col1 FROM tab2
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 - + col2 + col2 col1 FROM tab2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-554
SELECT DISTINCT 45 - + CAST( NULL AS SIGNED ) AS col1, - 63 FROM tab1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-554
SELECT DISTINCT 45 - + CAST ( NULL AS INTEGER ) AS col1, - 63 FROM tab1
----
NULL
-63

query I rowsort
SELECT ALL + + col1 * - - col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - + col1 * - - col2 * - - 16 AS col0 FROM tab0 AS cor0
----
-1584
-3360
-60912

onlyif mysql # DIV for integer division: 
query II rowsort label-557
SELECT DISTINCT - col2 DIV + 44, - ( - 92 ) col1 FROM tab2 AS cor0
----
-1
92
0
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-557
SELECT DISTINCT - col2 / + 44, - ( - 92 ) col1 FROM tab2 AS cor0
----
-1
92
0
92

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT + 84 * - COUNT( * ) + SUM( ALL + 35 ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-441

skipif mysql # not compatible
query I rowsort label-559
SELECT + 84 * - COUNT ( * ) + SUM ( ALL + 35 ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * + col2 col2 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT DISTINCT col1 DIV 42 DIV - - col0 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-561
SELECT DISTINCT col1 / 42 / - - col0 col1 FROM tab2
----
0

query I rowsort
SELECT - ( + 91 ) FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE + 60 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-564
SELECT + - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-564
SELECT + - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-565
SELECT CAST( NULL AS SIGNED ) AS col0, CAST( + - 1 AS SIGNED ) FROM tab0 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-565
SELECT CAST ( NULL AS INTEGER ) AS col0, CAST ( + - 1 AS INTEGER ) FROM tab0 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT - COUNT( * ) * - - COUNT( * ) * + 6 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-566
SELECT - COUNT ( * ) * - - COUNT ( * ) * + 6 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE ( 99 * + - col2 ) NOT BETWEEN + 81 AND NULL
----
46
64
75

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-569
SELECT DISTINCT + COUNT( * ) DIV - 62 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT + COUNT ( * ) / - 62 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - COUNT( * ) + + COUNT( * ) * 58 AS col1 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-570
SELECT - COUNT ( * ) + + COUNT ( * ) * 58 AS col1 FROM tab1
----
171

query I rowsort
SELECT - 2 * + 80 + + col2 * - col1 AS col1 FROM tab1 WHERE NOT NULL <> - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL - COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT DISTINCT - COUNT( col1 ) * + + COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-573
SELECT DISTINCT - COUNT ( col1 ) * + + COUNT ( * ) col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL + SUM( - 39 ) AS col1 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + SUM ( - 39 ) AS col1 FROM tab2 AS cor0
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-575
SELECT * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + - col1 ) NOT IN ( + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-575
SELECT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + - col1 ) NOT IN ( + CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT DISTINCT - col2 + - 15 AS col1 FROM tab2
----
-38
-55
-73

query I rowsort
SELECT ALL col1 - - - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - col1 * - col1 * - 61 * - - col1 * col0 AS col1 FROM tab0 AS cor0
----
-486268515
-49148127
-5917

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( - + 63 ) NOT BETWEEN ( NULL ) AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT - COUNT( * ) * + + COUNT( * ) + + 55 AS col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-580
SELECT - COUNT ( * ) * + + COUNT ( * ) + + 55 AS col1 FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 69 )
----
0

skipif mysql # not compatible
query I rowsort label-581
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 69 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT + - col2 * col2 - - col0 DIV - col1 + col2 + 92 AS col2 FROM tab1 AS cor0
----
-3347
-4465
-9031

skipif mysql # not compatible
query I rowsort label-582
SELECT + - col2 * col2 - - col0 / - col1 + col2 + 92 AS col2 FROM tab1 AS cor0
----
-3347
-4465
-9031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + 49 col1 FROM tab0
----
136
146
64

query I rowsort
SELECT - 24 AS col1 FROM tab1 WHERE - - col2 * - col2 * + col0 * col1 * + 73 IS NOT NULL
----
-24
-24
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT + 33 / + CAST( NULL AS SIGNED ) - 61 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT + 33 / + CAST ( NULL AS INTEGER ) - 61 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - + MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT - - col0 AS col1, col1 * - 15 + + col0 + - col1 FROM tab0 AS cor0
----
15
-1281
87
-249
97
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col2 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( ( + 23 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-591
SELECT COUNT( * ) DIV - + 36 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-591
SELECT COUNT ( * ) / - + 36 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-592
SELECT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-592
SELECT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41 * + col2 * col2 * + 14, 48 col0 FROM tab2
----
1930936
48
303646
48
918400
48

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 10 + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ( - - SUM( col2 ) ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-595
SELECT ( - - SUM ( col2 ) ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-596
SELECT - - CAST( + - col2 AS DECIMAL ) AS col1 FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN col0 * col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-596
SELECT - - CAST ( + - col2 AS REAL ) AS col1 FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN col0 * col2 AND NULL
----

query I rowsort
SELECT ALL col0 * - 15 FROM tab0 AS cor0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query II rowsort label-598
SELECT DISTINCT - 87 * - COUNT( * ) AS col0, MIN( + col2 ) FROM tab2 AS cor0
----
261
23

skipif mysql # not compatible
query II rowsort label-598
SELECT DISTINCT - 87 * - COUNT ( * ) AS col0, MIN ( + col2 ) FROM tab2 AS cor0
----
261
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 <= - col0 / - ( - col1 ) * + col1 + 20 * - - 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-600
SELECT ALL 14 + - + ( + + 18 ) DIV + col0 + + col2 + - 16 + + col0 AS col0 FROM tab2
----
102
131
67

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL 14 + - + ( + + 18 ) / + col0 + + col2 + - 16 + + col0 AS col0 FROM tab2
----
102
131
67

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT ALL + 35 DIV - + col1 + - + col1 DIV + 36 + - col0 DIV col1 AS col2 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + 35 / - + col1 + - + col1 / + 36 + - col0 / col1 AS col2 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT col0 * + - col1 AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 41 * - 34 FROM tab2
----
-1394
-1394
-1394

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col1 ) + - col1 NOT IN ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 98 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + 4 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( + 4 ) IS NULL
----
3

query I rowsort
SELECT + ( + + 92 ) * + col1 + 26 + + col1 AS col0 FROM tab1 AS cor0
----
1328
4397
491

query I rowsort
SELECT 3 + + + col1 FROM tab2 AS cor0
----
54
70
80

onlyif mysql # DIV for integer division: 
query I rowsort label-609
SELECT ALL ( + ( + col1 ) ) * 28 + - 47 + - col1 + + col0 * col0 DIV ( - - 73 ) AS col0 FROM tab0
----
108
2143
623

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL ( + ( + col1 ) ) * 28 + - 47 + - col1 + + col0 * col0 / ( - - 73 ) AS col0 FROM tab0
----
108
2143
623

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-610
SELECT 28, + CAST( + col0 AS SIGNED ) + + ( - col1 ) AS col1 FROM tab1
----
28
37
28
44
28
80

skipif mysql # not compatible
query II rowsort label-610
SELECT 28, + CAST ( + col0 AS INTEGER ) + + ( - col1 ) AS col1 FROM tab1
----
28
37
28
44
28
80

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL COUNT( DISTINCT + - 73 ) * + 59 AS col2 FROM tab2 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL COUNT ( DISTINCT + - 73 ) * + 59 AS col2 FROM tab2 WHERE NULL IS NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL MIN( col2 ) * - + SUM( ALL + + col0 ) + + + 65 - - 66 AS col2 FROM tab2
----
-4124

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL MIN ( col2 ) * - + SUM ( ALL + + col0 ) + + + 65 - - 66 AS col2 FROM tab2
----
-4124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 36 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * - - col1 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 25 - - ( - + 77 ) FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
-102
-102
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT ALL + 76 FROM tab2 AS cor0 WHERE + + col2 + - - 61 * + CAST( - col0 AS SIGNED ) + - ( + + col1 ) * - col1 <= + col0 AND 27 < - 12 * col1
----

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + 76 FROM tab2 AS cor0 WHERE + + col2 + - - 61 * + CAST ( - col0 AS INTEGER ) + - ( + + col1 ) * - col1 <= + col0 AND 27 < - 12 * col1
----

query I rowsort
SELECT 31 + col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT - SUM( ALL - + col2 ) * 15 DIV COUNT( * ) - + + 38 AS col2 FROM tab1 cor0
----
1077

skipif mysql # not compatible
query I rowsort label-619
SELECT - SUM ( ALL - + col2 ) * 15 / COUNT ( * ) - + + 38 AS col2 FROM tab1 cor0
----
1077

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT COUNT( * ) col1 FROM tab2 cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-620
SELECT COUNT ( * ) col1 FROM tab2 cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT - 97 + col2 FROM tab1 AS cor0
----
-1
-29
-38

query I rowsort
SELECT + + col2 * 61 + + 96 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
1048
3400
4608

query I rowsort
SELECT + col2 + + 45 AS col1 FROM tab0
----
144
55
92

query I rowsort
SELECT 21 + - - col2 + + - 76 * + 94 * - col2 * col0 AS col0 FROM tab1
----
34977141
35827240
44207161

query I rowsort
SELECT ( - col2 ) + + 0 AS col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col0 col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - SUM( ALL + 86 ) + + COUNT( * ) FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-627
SELECT - SUM ( ALL + 86 ) + + COUNT ( * ) FROM tab1
----
-255

query I rowsort
SELECT ( - 85 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT MAX( ALL + + 4 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-629
SELECT MAX ( ALL + + 4 ) FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT DISTINCT + SUM( - 17 ) col0 FROM tab0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-630
SELECT DISTINCT + SUM ( - 17 ) col0 FROM tab0
----
-51

query I rowsort
SELECT ALL - ( - col2 ) FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + - MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-632
SELECT + - MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-633
SELECT DISTINCT - + MIN( DISTINCT - 13 ) * + - 45, + 82 AS col0 FROM tab2 AS cor0
----
-585
82

skipif mysql # not compatible
query II rowsort label-633
SELECT DISTINCT - + MIN ( DISTINCT - 13 ) * + - 45, + 82 AS col0 FROM tab2 AS cor0
----
-585
82

query I rowsort
SELECT 77 * + - ( - - 92 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 38 * 54 FROM tab0 AS cor0
----
2052
2052
2052

query II rowsort
SELECT 54 AS col1, - 68 AS col0 FROM tab0 AS cor0
----
54
-68
54
-68
54
-68

query II rowsort
SELECT + 54, col0 FROM tab1 AS cor0
----
54
51
54
85
54
91

query I rowsort
SELECT DISTINCT 80 + - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT ALL - + MAX( CAST( NULL AS SIGNED ) ) + - - ( - + COUNT( * ) ) * + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - + MAX ( CAST ( NULL AS INTEGER ) ) + - - ( - + COUNT ( * ) ) * + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + col0 * 48 AS col0 FROM tab2 AS cor0
----
2259
3149
3667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 + 99 col0 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT ALL ( col1 ) + - + col1 + + col0 * + col0 AS col2 FROM tab1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * - col2 * - col2 + col0 - - ( col2 ) - - 94 * + + col1 * - ( + col2 ) col2 FROM tab0
----
-205130
-21643
-401976

query I rowsort
SELECT ALL col2 * + 56 AS col0 FROM tab2
----
1288
2240
3248

query I rowsort
SELECT col2 * + 89 * col2 AS col1 FROM tab2
----
142400
299396
47081

query I rowsort
SELECT DISTINCT - 96 + + col1 FROM tab1
----
-49
-82
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT COUNT( DISTINCT ( + 58 ) ) * + 50 AS col1 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-647
SELECT COUNT ( DISTINCT ( + 58 ) ) * + 50 AS col1 FROM tab2
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 32 * + - ( ( - + col0 ) ) col2, + col1 + ( - ( - + col0 ) ) FROM tab2 AS cor0 WHERE NOT - col2 - - 73 * + col0 / 58 IS NULL
----
1472
97
2048
141
2400
142

query I rowsort
SELECT 93 * - 28 * - col2 FROM tab1 AS cor0
----
153636
177072
249984

query I rowsort
SELECT - + 3 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query II rowsort
SELECT + + 31 AS col1, 39 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 4e23bc68a9c5235568407e14f4145138

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 - - - 10 col1 FROM tab0 AS cor0
----
-235
-7579
-9419

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 68 ) - + + col0 col1 FROM tab2 AS cor0
----
-7
22
4

query I rowsort
SELECT ALL + + 98 * + 99 AS col2 FROM tab1 AS cor0
----
9702
9702
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT 98 * - COUNT( * ) AS col0 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT 98 * - COUNT ( * ) AS col0 FROM tab0
----
-294

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT + ( - 93 ) DIV - col2 - + col2 DIV CAST( + - col0 AS SIGNED ) * - - col1 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT + ( - 93 ) / - col2 - + col2 / CAST ( + - col0 AS INTEGER ) * - - col1 AS col2 FROM tab2
----
1
2
4

query II rowsort
SELECT DISTINCT col2 AS col0, ( col0 ) AS col2 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT col1 * + 55 * - col0 AS col0 FROM tab1
----
-23375
-235235
-39270

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT MAX( 89 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT MAX ( 89 ) FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT - SUM( DISTINCT - + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-662
SELECT - SUM ( DISTINCT - + col0 ) FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT - 28 DIV - - 9 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-663
SELECT - 28 / - - 9 AS col1 FROM tab2
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-664
SELECT + 37, 95 + - col2 - + col1 DIV + 10 AS col0 FROM tab0
----
37
-4
37
40
37
83

skipif mysql # not compatible
query II rowsort label-664
SELECT + 37, 95 + - col2 - + col1 / + 10 AS col0 FROM tab0
----
37
-4
37
40
37
83

query II rowsort
SELECT - 21 AS col0, 40 AS col0 FROM tab2 AS cor0
----
-21
40
-21
40
-21
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-666
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT - ( 29 ) + + + COUNT( * ) AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - ( 29 ) + + + COUNT ( * ) AS col0 FROM tab0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-668
SELECT ALL + COUNT( + + 72 ) AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-668
SELECT ALL + COUNT ( + + 72 ) AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
3
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT + 12 + - + MAX( ALL + col2 ) + - 40 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-127

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT + 12 + - + MAX ( ALL + col2 ) + - 40 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-127

query I rowsort
SELECT DISTINCT - - 90 AS col0 FROM tab1 cor0
----
90

query I rowsort
SELECT DISTINCT 0 + - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT 6 AS col2, - 50 + COUNT( * ) AS col1 FROM tab2
----
6
-47

skipif mysql # not compatible
query II rowsort label-673
SELECT 6 AS col2, - 50 + COUNT ( * ) AS col1 FROM tab2
----
6
-47

query I rowsort
SELECT ALL col2 * + - 97 + - + col0 FROM tab2
----
-2277
-3944
-5701

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT + COUNT( * ) + + 43 AS col1 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-676
SELECT + COUNT ( * ) + + 43 AS col1 FROM tab1
----
46

query I rowsort
SELECT ALL + col1 + 28 FROM tab2
----
105
79
95

query I rowsort
SELECT ALL + 47 * - 98 FROM tab1
----
-4606
-4606
-4606

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - ( 55 ) FROM tab2 cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT - - MAX( DISTINCT + 9 ) FROM tab1 WHERE + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT - - MAX ( DISTINCT + 9 ) FROM tab1 WHERE + - col0 IS NULL
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + col1 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT DISTINCT + - COUNT( * ) * - - COUNT( DISTINCT + + col1 ) * 74 FROM tab2 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + - COUNT ( * ) * - - COUNT ( DISTINCT + + col1 ) * 74 FROM tab2 AS cor0
----
-666

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 45
----

query I rowsort
SELECT - col1 * - + col1 + - 91 FROM tab2 AS cor0
----
2510
4398
5838

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-686
SELECT - ( - 69 ) DIV - CAST( + 48 AS SIGNED ), - col1 AS col1 FROM tab1 AS cor0
----
-1
-14
-1
-47
-1
-5

skipif mysql # not compatible
query II rowsort label-686
SELECT - ( - 69 ) / - CAST ( + 48 AS INTEGER ), - col1 AS col1 FROM tab1 AS cor0
----
-1
-14
-1
-47
-1
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT ALL + 29 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + 29 / - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL 82 AS col0, col0 * + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
82
225
82
7569
82
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT ( + COUNT( * ) ) * + + 52 col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-689
SELECT ( + COUNT ( * ) ) * + + 52 col0 FROM tab0
----
156

query II rowsort
SELECT ALL - col1 AS col2, col2 AS col1 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + - CAST( - col2 AS SIGNED ) + + + col2 + + 28 AS col1 FROM tab2 cor0
----
1668
3450
580

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + - CAST ( - col2 AS INTEGER ) + + + col2 + + 28 AS col1 FROM tab2 cor0
----
1668
3450
580

query I rowsort
SELECT DISTINCT + ( + ( + 48 ) ) * - - col2 FROM tab0 cor0 WHERE 35 < - col1 * col0 / col2
----

query I rowsort
SELECT DISTINCT + 23 + + 21 AS col0 FROM tab0
----
44

query II rowsort
SELECT DISTINCT + col0 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT + COUNT( * ) + 74 - - + 34 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-696
SELECT + COUNT ( * ) + 74 - - + 34 FROM tab0 AS cor0
----
111

query I rowsort
SELECT - 2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

query II rowsort
SELECT DISTINCT col2 AS col2, col1 * ( col1 ) FROM tab0 AS cor0
----
10
441
47
6561
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT COUNT( * ) + + 39 + - 13 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-699
SELECT COUNT ( * ) + + 39 + - 13 FROM tab0 AS cor0
----
29

query I rowsort
SELECT col0 + - 67 - - - 21 AS col1 FROM tab1 AS cor0
----
-3
-37
3

query I rowsort
SELECT col2 + col0 * - 64 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( + + col1 ) + col2 + + - 9 FROM tab2 AS cor0
----
108
116
65

query I rowsort
SELECT - + 91 * - col0 + - col2 + col1 * - 12 + 58 AS col2 FROM tab0 AS cor0
----
404
7713
8774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 89 col0, col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 + + 88 + - 90 FROM tab0 cor0
----
-17
-89
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT ALL 31 + col2 + - - col1 DIV + 22 FROM tab2
----
56
74
92

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL 31 + col2 + - - col1 / + 22 FROM tab2
----
56
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL ( + + ( - MIN( + col1 ) ) ) + - ( + 19 ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL ( + + ( - MIN ( + col1 ) ) ) + - ( + 19 ) AS col0 FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT DISTINCT 18 - + - col0 - + col2 DIV + 39 - - 94 + + 28 + col2 AS col1 FROM tab0
----
201
237
334

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT 18 - + - col0 - + col2 / + 39 - - 94 + + 28 + col2 AS col1 FROM tab0
----
201
237
334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-710
SELECT + CAST( - col1 AS SIGNED ), col2 FROM tab2
----
-51
23
-67
58
-77
40

skipif mysql # not compatible
query II rowsort label-710
SELECT + CAST ( - col1 AS INTEGER ), col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT DISTINCT + col1 DIV - col1 - + 50 AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + col1 / - col1 - + 50 AS col0 FROM tab0
----
-51

query I rowsort
SELECT - col1 - - 48 AS col1 FROM tab2 AS cor0
----
-19
-29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT - 28 - COUNT( * ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-713
SELECT - 28 - COUNT ( * ) FROM tab0 AS cor0
----
-31

query II rowsort
SELECT + col0, + col0 * - + col0 FROM tab1 AS cor0 WHERE + 46 * 21 + - - 45 IS NULL
----

query I rowsort
SELECT ( + 39 ) AS col0 FROM tab0 AS cor0
----
39
39
39

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 50 <> NULL
----

query II rowsort
SELECT 31, + col1 AS col1 FROM tab2 AS cor0
----
31
51
31
67
31
77

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT ALL + COUNT( * ) * 69 AS col0 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL + COUNT ( * ) * 69 AS col0 FROM tab1 AS cor0
----
207

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 75 / ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 * + + 85 - - + 68 AS col2, 50 col2 FROM tab1 AS cor0
----
-1122
50
-357
50
-3927
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * - col1 col1 FROM tab1
----
1120
3760
400

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 16 * + + col1 * - col1 IS NOT NULL )
----

query I rowsort
SELECT ALL + col0 * + col1 * - col0 AS col2 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ( - col0 ) * 8 + col1 FROM tab1
----
-394
-675
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT ( - CAST( ( - col0 ) AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-725
SELECT ( - CAST ( ( - col0 ) AS INTEGER ) ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL CAST( NULL AS SIGNED ) * + SUM( + - 32 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL CAST ( NULL AS INTEGER ) * + SUM ( + - 32 ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT + col2 DIV 60 col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-727
SELECT + col2 / 60 col1 FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT - SUM( ALL - + 21 ) AS col2 FROM tab0 cor0
----
63

skipif mysql # not compatible
query I rowsort label-729
SELECT - SUM ( ALL - + 21 ) AS col2 FROM tab0 cor0
----
63

query I rowsort
SELECT - col2 + 92 AS col2 FROM tab2
----
34
52
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT CAST( + + col2 AS SIGNED ) col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-731
SELECT CAST ( + + col2 AS INTEGER ) col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT ALL + - col2 / CAST( NULL AS SIGNED ) + - 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + - col2 / CAST ( NULL AS INTEGER ) + - 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT - MIN( + 12 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-734
SELECT - MIN ( + 12 ) FROM tab0 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 / + col1 / - 25 + + - col1 NOT BETWEEN - col2 AND - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( - 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT + 75 + - COUNT( * ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-737
SELECT + 75 + - COUNT ( * ) AS col1 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT - 78 - ( COUNT( * ) ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - 78 - ( COUNT ( * ) ) FROM tab2
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-739
SELECT ALL - CAST( NULL AS DECIMAL ) - + col0 * + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-739
SELECT ALL - CAST ( NULL AS REAL ) - + col0 * + col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - + ( + col1 ) FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-741
SELECT ALL - COUNT( 29 ) - - CAST( - ( + - MIN( + col1 ) ) AS SIGNED ), - 11 * + 27 AS col0 FROM tab1
----
2
-297

skipif mysql # not compatible
query II rowsort label-741
SELECT ALL - COUNT ( 29 ) - - CAST ( - ( + - MIN ( + col1 ) ) AS INTEGER ), - 11 * + 27 AS col0 FROM tab1
----
2
-297

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-742
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( - - ( 71 ) AS SIGNED ) + + 86 >= + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-742
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - ( 71 ) AS INTEGER ) + + 86 >= + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - + 3 FROM tab2
----
138
192
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-744
SELECT - - CAST( NULL AS SIGNED ) * - - col1 AS col0, 14 FROM tab2 AS cor0
----
NULL
14
NULL
14
NULL
14

skipif mysql # not compatible
query II rowsort label-744
SELECT - - CAST ( NULL AS INTEGER ) * - - col1 AS col0, 14 FROM tab2 AS cor0
----
NULL
14
NULL
14
NULL
14

query I rowsort
SELECT + col0 * 41 + + ( + - 58 ) AS col1 FROM tab2 AS cor0
----
1828
2566
3017

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT - col1 * - 36 * - col2 AS col2 FROM tab0
----
-137052
-3564
-7560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT CAST( - - ( + 98 ) AS SIGNED ) FROM tab1
----
98
98
98

skipif mysql # not compatible
query I rowsort label-748
SELECT CAST ( - - ( + 98 ) AS INTEGER ) FROM tab1
----
98
98
98

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT DISTINCT 34, MIN( ALL col0 ) AS col2 FROM tab2
----
34
46

skipif mysql # not compatible
query II rowsort label-749
SELECT DISTINCT 34, MIN ( ALL col0 ) AS col2 FROM tab2
----
34
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( 66 ) * - 94 col2 FROM tab1
----
-316404
-527340
-564564

query I rowsort
SELECT DISTINCT 20 * - 93 FROM tab0
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT - MAX( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT - MAX ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT + + SUM( - + col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-753
SELECT + + SUM ( - + col2 ) col0 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - col0 - col1, - 22 + + 6 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-108
-16
-96
-16
-98
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - 99 ) col2 FROM tab0 AS cor0
----
99
99
99

query II rowsort
SELECT + - 34, col2 AS col1 FROM tab1 AS cor0
----
-34
59
-34
68
-34
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT + CAST( NULL AS SIGNED ) + 81 FROM tab2 AS cor0 WHERE col0 = - col0
----

skipif mysql # not compatible
query I rowsort label-757
SELECT + CAST ( NULL AS INTEGER ) + 81 FROM tab2 AS cor0 WHERE col0 = - col0
----

query I rowsort
SELECT col0 + ( + + col0 ) FROM tab2
----
128
150
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT DISTINCT 0 DIV - - col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT 0 / - - col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - - 57 + + MAX( DISTINCT - - col0 ) FROM tab0 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-761
SELECT - - 57 + + MAX ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
154

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col1 ) = + + col0
----

query I rowsort
SELECT ALL 27 * + + 5 + + col0 FROM tab0 AS cor0
----
150
222
232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-764
SELECT CAST( NULL AS SIGNED ) * - - 87 + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-764
SELECT CAST ( NULL AS INTEGER ) * - - 87 + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( - 42 ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT - 27 + col2 AS col2 FROM tab2 AS cor0
----
-4
13
31

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 / - col0
----

query I rowsort
SELECT ALL - col0 + - - 9 FROM tab1
----
-42
-76
-82

query III rowsort
SELECT * FROM tab0 WHERE - 74 + 86 > col0 - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT MIN( DISTINCT 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-770
SELECT MIN ( DISTINCT 54 ) FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-771
SELECT ALL 38 - - MAX( ALL - 86 ), + 85 AS col1 FROM tab2
----
-48
85

skipif mysql # not compatible
query II rowsort label-771
SELECT ALL 38 - - MAX ( ALL - 86 ), + 85 AS col1 FROM tab2
----
-48
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 - - - ( - - col2 ) col0 FROM tab1
----
-20
17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT ALL CAST( 53 AS SIGNED ) * - col0 + - - ( 42 ) FROM tab2
----
-2396
-3350
-3933

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL CAST ( 53 AS INTEGER ) * - col0 + - - ( 42 ) FROM tab2
----
-2396
-3350
-3933

query I rowsort
SELECT ALL col0 * col1 FROM tab1 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT col0 - + CAST( NULL AS SIGNED ) * + ( + 20 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT col0 - + CAST ( NULL AS INTEGER ) * + ( + 20 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT + + col0 - - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-776
SELECT + + col0 - - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 46 + + col2 - - col1 FROM tab1 AS cor0
----
-2650
-3013
-4306

query I rowsort
SELECT + col2 * col2 * - - col1 AS col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT ALL + col1 + 98 + + col2 AS col1 FROM tab0 WHERE NOT NULL >= + - 90
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-780
SELECT + - 67 DIV COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-780
SELECT + - 67 / COUNT ( * ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT DISTINCT + col2 + col1 * - col2 FROM tab2 cor0 WHERE - 50 IS NOT NULL
----
-1150
-3040
-3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 80 col0, 92 AS col2 FROM tab1 AS cor0
----
-80
92
-80
92
-80
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col0 ) col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-784
SELECT ALL + col1, col1 DIV - - col1 AS col2 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL + col1, col1 / - - col1 AS col2 FROM tab2 AS cor0
----
51
1
67
1
77
1

query I rowsort
SELECT - AVG ( DISTINCT col0 ) * + + 41 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - col0 ) - 42 NOT BETWEEN 6 AND - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT + SUM( - + 31 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + SUM ( - + 31 ) FROM tab0 AS cor0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-787
SELECT - MAX( + CAST( - 8 AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + + 46 * - col0 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT - MAX ( + CAST ( - 8 AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + + 46 * - col0 AND - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT DISTINCT - col1 / + 35 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT - col1 / + 35 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 15 col0 FROM tab1
----
1020
1440
885

query I rowsort
SELECT ALL + col2 * col1 AS col0 FROM tab0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-791
SELECT SUM( - 55 ) * + - 91 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT SUM ( - 55 ) * + - 91 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col2 * - + 62 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT ALL - + ( - + col2 ) AS col2 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL - + 4 * - - ( 5 ) + - 84 * + - col1 - + - col0 AS col2 FROM tab0 AS cor0
----
161
1831
6799

query III rowsort
SELECT * FROM tab0 WHERE + ( ( col1 ) ) * - + 0 NOT BETWEEN col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - + 91 AS col2 FROM tab0
----
-44
-81
8

query III rowsort
SELECT * FROM tab0 WHERE col1 * - + col2 IS NULL
----

query I rowsort
SELECT + 88 FROM tab0 AS cor0 WHERE 32 IS NULL
----

query I rowsort
SELECT ALL - 68 * + 87 FROM tab0 AS cor0
----
-5916
-5916
-5916

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 88 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * 42 * + 32 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 <= - - 62
----

query I rowsort
SELECT - col1 - + - col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL COUNT( * ) * - + COUNT( * ) * 3 + + + 83 AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * 3 + + + 83 AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - col1 + + 46 AS col1 FROM tab0 AS cor0
----
-35
25
45

query III rowsort
SELECT ALL * FROM tab1 WHERE - 78 >= NULL
----

query I rowsort
SELECT 45 + + - 38 AS col1 FROM tab0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT - MIN( DISTINCT - 74 ) AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - MIN ( DISTINCT - 74 ) AS col1 FROM tab0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 81 + - - col2, + col0 col1 FROM tab0 AS cor0 WHERE - 2 + 60 <> NULL
----

query I rowsort
SELECT + + 5 + - 75 FROM tab1 AS cor0 WHERE NOT + col0 * - col2 - col0 + col2 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * 2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT ALL 46 AS col0, COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
46
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-812
SELECT ALL 46 AS col0, COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
46
3

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT DISTINCT 91 DIV + + 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT 91 / + + 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-814
SELECT ALL - + col0 * col1 DIV - col2, ( + col0 ) AS col2 FROM tab1 AS cor0
----
62
91
7
51
7
85

skipif mysql # not compatible
query II rowsort label-814
SELECT ALL - + col0 * col1 / - col2, ( + col0 ) AS col2 FROM tab1 AS cor0
----
62
91
7
51
7
85

query I rowsort
SELECT ALL 24 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT COUNT( ALL + 96 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-816
SELECT COUNT ( ALL + 96 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT - COUNT( + + ( + col2 ) ) AS col2, + 89 AS col0 FROM tab1 cor0
----
-3
89

skipif mysql # not compatible
query II rowsort label-817
SELECT - COUNT ( + + ( + col2 ) ) AS col2, + 89 AS col0 FROM tab1 cor0
----
-3
89

query I rowsort
SELECT DISTINCT - ( - 23 ) + + - col0 FROM tab0 AS cor0
----
-64
-74
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-819
SELECT ALL - 54 AS col1, CAST( + + col2 AS SIGNED ) * + + col2 + - 19 AS col2 FROM tab0
----
-54
2190
-54
81
-54
9782

skipif mysql # not compatible
query II rowsort label-819
SELECT ALL - 54 AS col1, CAST ( + + col2 AS INTEGER ) * + + col2 + - 19 AS col2 FROM tab0
----
-54
2190
-54
81
-54
9782

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT + 84 DIV + 13 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
6
6
6

skipif mysql # not compatible
query I rowsort label-820
SELECT + 84 / + 13 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + col2, col2 col1 FROM tab1
----
0
59
0
68
0
96

query II rowsort
SELECT 59, + col0 FROM tab0 AS cor0
----
59
15
59
87
59
97

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT + + ( 18 ) DIV 13 * - - col1 AS col2 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-823
SELECT + + ( 18 ) / 13 * - - col1 AS col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT + + ( + - 48 ) * - 51 * - + col2 AS col2 FROM tab1 cor0
----
-144432
-166464
-235008

query II rowsort
SELECT col2 AS col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab2 WHERE + - 97 * - col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 18 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-22
-40
-5

query I rowsort
SELECT DISTINCT - col0 * + + 52 - - 85 - + col2 - - 71 * - 22 FROM tab1 AS cor0
----
-4225
-5956
-6277

query I rowsort
SELECT + + 32 + + col0 FROM tab2 AS cor0
----
107
78
96

query I rowsort
SELECT ALL - - 83 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 IS NOT NULL )
----
83
83
83

query I rowsort
SELECT + ( 45 ) + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-36
24
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * - - col1 col0 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT - AVG ( DISTINCT + 58 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-834
SELECT * FROM tab2 WHERE - col2 / + 60 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-834
SELECT * FROM tab2 WHERE - col2 / + 60 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 18 * - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE + - col0 BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-836
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE + - col0 BETWEEN col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT ( - 12 ) AS col1 FROM tab0
----
-12

query III rowsort
SELECT * FROM tab0 WHERE col0 IS NOT NULL OR NOT ( NOT ( + 21 ) <> NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - + 95
----

query I rowsort
SELECT col0 * - - 38 AS col0 FROM tab1
----
1938
3230
3458

query I rowsort
SELECT ALL 31 * col1 FROM tab1
----
1457
155
434

query I rowsort
SELECT DISTINCT - + col0 * + 42 AS col0 FROM tab0 AS cor0
----
-3654
-4074
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT ALL - CAST( 81 AS SIGNED ) * - - 65 FROM tab2 AS cor0
----
-5265
-5265
-5265

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - CAST ( 81 AS INTEGER ) * - - 65 FROM tab2 AS cor0
----
-5265
-5265
-5265

query I rowsort
SELECT ALL - 18 * col1 * - col1 FROM tab2 AS cor0
----
106722
46818
80802

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL - 80 - 86 * - COUNT( * ) * - 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-7820

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL - 80 - 86 * - COUNT ( * ) * - 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-7820

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-846
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-846
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT - 70 DIV + 72 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-847
SELECT - 70 / + 72 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-849
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + + 89 AND NULL
----

skipif mysql # not compatible
query III rowsort label-849
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL + COUNT( * ) + + 16 AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + COUNT ( * ) + + 16 AS col1 FROM tab0
----
19

query I rowsort
SELECT - col2 FROM tab2 WHERE + col2 > + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT - 51 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - 51 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT 77 + + col1 AS col2 FROM tab1
----
124
82
91

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 AS col2, 47 * + col0 AS col1 FROM tab2
----
-46
2162
-64
3008
-75
3525

query I rowsort
SELECT DISTINCT + col0 + + - col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT col2 * + ( + col2 ) AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-858
SELECT ( + - 41 ) AS col2, ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-41
3

skipif mysql # not compatible
query II rowsort label-858
SELECT ( + - 41 ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-41
3

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT - COUNT( * ) * - + 22 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-859
SELECT - COUNT ( * ) * - + 22 FROM tab2
----
66

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( 57, + 2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT + COUNT( * ) * + ( + COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-861
SELECT + COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT col2 BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-863
SELECT ALL + - CAST( NULL AS SIGNED ) * SUM( 44 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + - CAST ( NULL AS INTEGER ) * SUM ( 44 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-864
SELECT ALL + MIN( - - col0 ) DIV - ( - + 12 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + MIN ( - - col0 ) / - ( - + 12 ) FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-865
SELECT + col1 AS col0, + CAST( NULL AS SIGNED ) * - + 14 + - col0 + + - 22 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-865
SELECT + col1 AS col0, + CAST ( NULL AS INTEGER ) * - + 14 + - col0 + + - 22 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NOT + - col1 BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT ALL - 32 col0, COUNT( * ) AS col1 FROM tab0
----
-32
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-867
SELECT ALL - 32 col0, COUNT ( * ) AS col1 FROM tab0
----
-32
3

query I rowsort
SELECT DISTINCT + col1 * + - 56 AS col0 FROM tab2
----
-2856
-3752
-4312

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL ( + + 10 ) / MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL ( + + 10 ) / MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( 79 ) BETWEEN + + col2 AND - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + + MIN( - - 89 ) + COUNT( * ) + ( MIN( ALL + col2 ) ) * 29 AS col0 FROM tab0 AS cor0
----
382

skipif mysql # not compatible
query I rowsort label-872
SELECT + + MIN ( - - 89 ) + COUNT ( * ) + ( MIN ( ALL + col2 ) ) * 29 AS col0 FROM tab0 AS cor0
----
382

query I rowsort
SELECT + col1 + 14 + + col0 + col1 AS col0 FROM tab2 AS cor0
----
162
223
232

query I rowsort
SELECT + col2 + + - col1 + + + col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-875
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MAX( + + col2 ), - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( + + col2 ), - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 + - col1 col1 FROM tab2
----
12
2
28

query I rowsort
SELECT ALL - 51 * col0 + - + 24 * - 82 FROM tab1
----
-2367
-2673
-633

query II rowsort
SELECT - - col1 AS col1, + 48 - col2 + - + 0 FROM tab1 WHERE NULL NOT BETWEEN col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-879
SELECT col2 + - - CAST( - col1 AS SIGNED ), ( - col2 ) AS col1 FROM tab2 WHERE NULL = - col0 * - + col2 + + + col1 / 77
----

skipif mysql # not compatible
query II rowsort label-879
SELECT col2 + - - CAST ( - col1 AS INTEGER ), ( - col2 ) AS col1 FROM tab2 WHERE NULL = - col0 * - + col2 + + + col1 / 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-880
SELECT ALL - CAST( NULL AS SIGNED ) * + 60 * + 75 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - CAST ( NULL AS INTEGER ) * + 60 * + 75 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 56 * - col2 + + col0 FROM tab1
----
3389
3899
5427

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + MAX( ALL 52 ) AS col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-882
SELECT + MAX ( ALL 52 ) AS col2 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT + + 52 AS col2, MIN( + + col2 ) FROM tab0 AS cor0 WHERE col0 < col1
----
52
47

skipif mysql # not compatible
query II rowsort label-883
SELECT + + 52 AS col2, MIN ( + + col2 ) FROM tab0 AS cor0 WHERE col0 < col1
----
52
47

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL ( - + MAX( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL ( - + MAX ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT 55 * col1 * + 6 FROM tab0 AS cor0
----
26730
330
6930

query II rowsort
SELECT 5 * + 22 AS col0, + 0 + - + col1 - + col0 - + col1 AS col0 FROM tab2 AS cor0
----
110
-148
110
-209
110
-218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 - ( col0 ) + - col0 col1 FROM tab2 AS cor0
----
1081
2952
3736

query I rowsort
SELECT DISTINCT + ( + 18 ) + - + col0 FROM tab1 AS cor0
----
-33
-67
-73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 31 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-890
SELECT - - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + col2 * - + col1 FROM tab2 cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 87 AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT + COUNT( * ) * + ( COUNT( * ) ) + + + COUNT( * ) * - 45 * + 40 AS col1 FROM tab1 AS cor0
----
-5391

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + COUNT ( * ) * + ( COUNT ( * ) ) + + + COUNT ( * ) * - 45 * + 40 AS col1 FROM tab1 AS cor0
----
-5391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col2 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT + SUM( DISTINCT + - ( ( - col0 ) ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT + SUM ( DISTINCT + - ( ( - col0 ) ) ) FROM tab0
----
199

query I rowsort
SELECT + 4 * + - col2 FROM tab1
----
-236
-272
-384

query II rowsort
SELECT DISTINCT + col1 AS col1, - 60 FROM tab2
----
51
-60
67
-60
77
-60

query I rowsort
SELECT ALL 53 * 35 * col0 FROM tab0
----
161385
179935
27825

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT - COUNT( * ) * COUNT( ALL + 4 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-899
SELECT - COUNT ( * ) * COUNT ( ALL + 4 ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL 92 * + COUNT( * ) AS col2 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 92 * + COUNT ( * ) AS col2 FROM tab1
----
276

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 62 / - col0 >= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL SUM( + - col2 ) AS col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL SUM ( + - col2 ) AS col0 FROM tab2 cor0
----
-121

query I rowsort
SELECT + + 87 * + col2 + 64 AS col0 FROM tab0 AS cor0
----
4153
8677
934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-904
SELECT DISTINCT COUNT( * ) DIV - 18 * + 5 * 3 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT COUNT ( * ) / - 18 * + 5 * 3 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT COUNT( * ) + - 52 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-49

skipif mysql # not compatible
query I rowsort label-907
SELECT COUNT ( * ) + - 52 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-49

query I rowsort
SELECT ALL - 29 * + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 19 ) AS col1 FROM tab1 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-910
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * ( col0 ) + - + 24 AS col0, 48 FROM tab0 AS cor0
----
-121
48
-1239
48
-1851
48

skipif mysql # not compatible
query II rowsort label-910
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * ( col0 ) + - + 24 AS col0, 48 FROM tab0 AS cor0
----
-121
48
-1239
48
-1851
48

query I rowsort
SELECT - col0 - + col2 * - col0 AS col1 FROM tab0
----
690
783
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-912
SELECT 46 - + ( + SUM( - col0 ) ) DIV - - CAST( + + SUM( ALL col2 ) AS SIGNED ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-912
SELECT 46 - + ( + SUM ( - col0 ) ) / - - CAST ( + + SUM ( ALL col2 ) AS INTEGER ) FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT - col1 + - - col1 DIV - col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-913
SELECT - col1 + - - col1 / - col1 FROM tab1
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT + 77 + - COUNT( * ) AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-914
SELECT + 77 + - COUNT ( * ) AS col1 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-915
SELECT DISTINCT + MAX( ( - 59 ) ) col1, 14 FROM tab0
----
-59
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-915
SELECT DISTINCT + MAX ( ( - 59 ) ) col1, 14 FROM tab0
----
-59
14

query I rowsort
SELECT - 44 + + col1 * 3 + col2 FROM tab1
----
165
30
94

query I rowsort
SELECT DISTINCT + col1 * + - col2 - - col0 AS col1 FROM tab0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT SUM( ALL + col0 ) + - 32 AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-918
SELECT SUM ( ALL + col0 ) + - 32 AS col2 FROM tab2
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 - + + col2 * - - 6 * + col1 col2 FROM tab2
----
-18400
-23200
-6992

query III rowsort
SELECT * FROM tab2 WHERE - - ( col1 ) - + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + ( - col1 ) + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1702
-4680
-7250

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( - 31 )
----

query I rowsort
SELECT DISTINCT - col2 + 32 FROM tab0
----
-15
-67
22

query I rowsort
SELECT + col0 + + col0 FROM tab1 WHERE NULL BETWEEN 76 + - col1 AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 50 + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 26 FROM tab0 WHERE + col2 <= - col0
----

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab1 WHERE + 26 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) <> ( 59 )
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-929
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( col1 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-929
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( col1 ) AND CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 + col2 col2 FROM tab0
----
105
142
194

query I rowsort
SELECT col0 * col1 - 97 FROM tab1
----
328
4180
617

query I rowsort
SELECT + col0 - - 80 AS col2 FROM tab0
----
167
177
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 97 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + SUM( DISTINCT + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-934
SELECT + SUM ( DISTINCT + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT COUNT( ALL col1 ) FROM tab1 WHERE NOT ( 0 + col1 * col1 ) BETWEEN - 92 + - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-936
SELECT COUNT ( ALL col1 ) FROM tab1 WHERE NOT ( 0 + col1 * col1 ) BETWEEN - 92 + - col2 AND NULL
----
0

query I rowsort
SELECT ALL + 72 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
72
72
72

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-939
SELECT DISTINCT * FROM tab2 WHERE NOT ( 42 * + CAST( NULL AS SIGNED ) ) NOT BETWEEN 24 AND ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-939
SELECT DISTINCT * FROM tab2 WHERE NOT ( 42 * + CAST ( NULL AS INTEGER ) ) NOT BETWEEN 24 AND ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) NOT IN ( col0 + + 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-941
SELECT * FROM tab0 WHERE NOT + col0 + - CAST( - 38 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-941
SELECT * FROM tab0 WHERE NOT + col0 + - CAST ( - 38 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT - col2 DIV col0 + col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-942
SELECT - col2 / col0 + col0 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT 26 - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-25
-41
-51

query I rowsort
SELECT DISTINCT + col1 * 62 - 51 AS col2 FROM tab0
----
11
1251
4971

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 * - col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT - COUNT( DISTINCT col0 ) FROM tab2 WHERE col2 - - 3 * - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - COUNT ( DISTINCT col0 ) FROM tab2 WHERE col2 - - 3 * - col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col2 * - 45 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 * - 45 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab1 WHERE 37 * - 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + COUNT( * ) * 74 AS col0 FROM tab2 WHERE NOT 62 * col0 + + 35 <= + 23
----
222

skipif mysql # not compatible
query I rowsort label-949
SELECT + COUNT ( * ) * 74 AS col0 FROM tab2 WHERE NOT 62 * col0 + + 35 <= + 23
----
222

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE col1 - - ( 79 ) > 71 + - col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE 86 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE 86 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 83 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + ( 1 ) + col1 AS col1 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL - 53 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab1 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - ( col1 ) col0 FROM tab1 AS cor0
----
-3486
-4671
-9230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-958
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( col1 AS SIGNED ) * 17 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-958
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( col1 AS INTEGER ) * 17 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT ALL - + 86 * 11 + CAST( + col0 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-3292
-5874
-5971

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL - + 86 * 11 + CAST ( + col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-3292
-5874
-5971

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-960
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT + col1 DIV - col1 + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-961
SELECT + col1 / - col1 + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT + - COUNT( * ) + - COUNT( * ) col1 FROM tab1 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-962
SELECT + - COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-963
SELECT ALL + CAST( - COUNT( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + CAST ( - COUNT ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 18 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
18

query I rowsort
SELECT - + 78 + - 86 AS col0 FROM tab0 AS cor0
----
-164
-164
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-966
SELECT + + col2 * - CAST( ( - col0 ) + col1 AS SIGNED ) + + col1 * col0 AS col1 FROM tab1 AS cor0
----
4266
5145
7269

skipif mysql # not compatible
query I rowsort label-966
SELECT + + col2 * - CAST ( ( - col0 ) + col1 AS INTEGER ) + + col1 * col0 AS col1 FROM tab1 AS cor0
----
4266
5145
7269

query I rowsort
SELECT + + col0 + 86 FROM tab0 AS cor0
----
101
173
183

query I rowsort
SELECT DISTINCT + ( ( - 18 ) ) + ( col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
41
50
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * - col2 < col1 / 94
----

query I rowsort
SELECT DISTINCT - col0 * - 39 + col2 AS col1 FROM tab0 AS cor0
----
3403
3882
632

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + COUNT( * ) FROM tab0 WHERE ( col0 ) <= col0 * 23
----
3

skipif mysql # not compatible
query I rowsort label-971
SELECT + COUNT ( * ) FROM tab0 WHERE ( col0 ) <= col0 * 23
----
3

query I rowsort
SELECT DISTINCT col0 + col1 + 90 FROM tab0
----
186
188
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 WHERE NULL > col0
----

query I rowsort
SELECT 64 AS col2 FROM tab2 WHERE ( col0 + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT DISTINCT col0 + + col1 DIV - col1 col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-975
SELECT DISTINCT col0 + + col1 / - col1 col1 FROM tab2
----
45
63
74

query I rowsort
SELECT + 72 * - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - 83 * - 99 FROM tab1 AS cor0
----
115038
386199
41085

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT - 61 DIV + - col1 - col0 AS col2 FROM tab1 AS cor0
----
-47
-73
-90

skipif mysql # not compatible
query I rowsort label-978
SELECT - 61 / + - col1 - col0 AS col2 FROM tab1 AS cor0
----
-47
-73
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT DISTINCT col1 / 46 FROM tab2 AS cor0 WHERE NOT + ( - 59 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND 76 * - 51 - - col1 * - 68
----

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT col1 / 46 FROM tab2 AS cor0 WHERE NOT + ( - 59 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND 76 * - 51 - - col1 * - 68
----

query I rowsort
SELECT 38 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # DIV for integer division: 
query I rowsort label-981
SELECT DISTINCT 94 DIV - col0 col1 FROM tab1 WHERE NOT ( NOT + 2 + - 90 IS NOT NULL )
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-981
SELECT DISTINCT 94 / - col0 col1 FROM tab1 WHERE NOT ( NOT + 2 + - 90 IS NOT NULL )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT col0 * col0 FROM tab1 WHERE NOT ( NULL BETWEEN NULL AND col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( 66 )
----

query II rowsort
SELECT DISTINCT + + 89, 76 AS col0 FROM tab1 AS cor0
----
89
76

query II rowsort
SELECT DISTINCT - col0, 89 AS col2 FROM tab1 AS cor0
----
-51
89
-85
89
-91
89

query I rowsort
SELECT ALL - 62 AS col1 FROM tab0 WHERE ( + 75 * + col2 * + col0 + col2 * 37 ) BETWEEN 15 / 58 AND col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > ( 34 - - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT col1 DIV 51 * col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-989
SELECT col1 / 51 * col2 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT + col1 DIV - + 90 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-990
SELECT + col1 / - + 90 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT col2 * + + col2 AS col2, col1 FROM tab0 AS cor0
----
100
21
2209
81
9801
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 AS cor0 WHERE NOT ( 49 ) <= col1 / - col2 - col0
----
51
67
77

query I rowsort
SELECT + 16 * col1 FROM tab1 AS cor0
----
224
752
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 * - col1 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * - col0 + + col2 ) NOT BETWEEN - col2 AND col0 + - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL COUNT( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 32 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL COUNT ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 32 IS NOT NULL
----
0

query I rowsort
SELECT + col0 + 78 * + col1 AS col0 FROM tab2 AS cor0
----
4024
5301
6070

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( + 86 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col0 AS col0, col2 col1 FROM tab1 AS cor0
----
102
96
170
59
182
68

query I rowsort
SELECT DISTINCT - 77 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-77

query II rowsort
SELECT ALL + + col0 AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ALL - MIN( + 21 ) col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1002
SELECT ALL - MIN ( + 21 ) col2 FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1003
SELECT DISTINCT + - CAST( 56 AS SIGNED ) col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1003
SELECT DISTINCT + - CAST ( 56 AS INTEGER ) col0 FROM tab1 AS cor0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NULL AND + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - COUNT( * ) - + + SUM( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1005
SELECT - COUNT ( * ) - + + SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL - COUNT( * ) + - - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - COUNT ( * ) + - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-6

query I rowsort
SELECT + col1 - + 81 FROM tab1 cor0
----
-34
-67
-76

query I rowsort
SELECT DISTINCT - 72 * + col2 FROM tab0 cor0
----
-3384
-7128
-720

query I rowsort
SELECT ALL ( ( + + col0 ) ) * 97 FROM tab2
----
4462
6208
7275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT + CAST( col0 AS SIGNED ) + - col1 + + 70 AS col2 FROM tab0
----
136
166
4

skipif mysql # not compatible
query I rowsort label-1010
SELECT + CAST ( col0 AS INTEGER ) + - col1 + + 70 AS col2 FROM tab0
----
136
166
4

query I rowsort
SELECT DISTINCT 51 + + col2 FROM tab2
----
109
74
91

query I rowsort
SELECT 49 + + + 65 FROM tab0
----
114
114
114

query I rowsort
SELECT ( - 48 ) + + + col0 + col2 AS col1 FROM tab2
----
21
56
85

query I rowsort
SELECT ALL - ( - col1 ) + + 81 FROM tab2
----
132
148
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT ALL MIN( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE ( 8 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL MIN ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE ( 8 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 33, 56 col2 FROM tab2 cor0
----
-33
56
-33
56
-33
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col1 ) FROM tab1 cor0 WHERE col0 IS NULL OR NOT + col2 NOT IN ( 15 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col2, col2 * 81 col1 FROM tab0 AS cor0
----
-15
3807
-87
810
-97
8019

query I rowsort
SELECT DISTINCT + ( + 67 ) FROM tab1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1021
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ( + + 77 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 35 IS NOT NULL
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT - COUNT( 51 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - COUNT ( 51 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1024
SELECT ALL 35 AS col2 FROM tab1 AS cor0 WHERE - col0 > ( CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL 35 AS col2 FROM tab1 AS cor0 WHERE - col0 > ( CAST ( + col2 AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT col2 + + col0 + - ( ( + col2 ) ) DIV - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 33 >= ( col0 )
----
145
148
160

skipif mysql # not compatible
query I rowsort label-1025
SELECT col2 + + col0 + - ( ( + col2 ) ) / - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 33 >= ( col0 )
----
145
148
160

query I rowsort
SELECT DISTINCT - - 90 * col1 + col0 AS col1 FROM tab1 AS cor0
----
1311
4321
535

onlyif mysql # DIV for integer division: 
query II rowsort label-1027
SELECT - col0 DIV + col0 col2, - col0 AS col2 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1027
SELECT - col0 / + col0 col2, - col0 AS col2 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL COUNT( * ) * 46 AS col0 FROM tab1 AS cor0 WHERE ( + 21 * + + 42 / - 63 * - col0 * 36 + col0 * + col2 NOT BETWEEN + 67 + + col2 * 15 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL COUNT ( * ) * 46 AS col0 FROM tab1 AS cor0 WHERE ( + 21 * + + 42 / - 63 * - col0 * 36 + col0 * + col2 NOT BETWEEN + 67 + + col2 * 15 AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + - COUNT( DISTINCT + + col1 ) * + + 31 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1029
SELECT + - COUNT ( DISTINCT + + col1 ) * + + 31 FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT COUNT( DISTINCT + + 91 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1030
SELECT COUNT ( DISTINCT + + 91 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 7 BETWEEN NULL AND + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT COUNT( * ) + 94 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-1032
SELECT COUNT ( * ) + 94 FROM tab1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT col0 * + col2 + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT col0 * + col2 + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 72 + - ( 80 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT - COUNT( * ) * + 32 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - COUNT ( * ) * + 32 FROM tab2
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - - 36
----

query I rowsort
SELECT + col2 * 34 FROM tab2
----
1360
1972
782

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - + 63
----

query I rowsort
SELECT DISTINCT - 43 FROM tab2 cor0 WHERE NOT 65 BETWEEN col0 AND - - 54
----
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 26 * - col2 )
----

query I rowsort
SELECT + 48 + - 84 AS col2 FROM tab2
----
-36
-36
-36

query I rowsort
SELECT ALL - 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT MIN( - col2 ) * + - 25 * COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT MIN ( - col2 ) * + - 25 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 65 + + + col1 + col1 AS col2 FROM tab2 AS cor0
----
167
199
219

query I rowsort
SELECT - 0 * 70 - + col0 * - col2 + + ( - 11 ) FROM tab1 AS cor0
----
4885
5004
6177

query I rowsort
SELECT + col2 + ( 35 ) AS col2 FROM tab2 AS cor0
----
58
75
93

query I rowsort
SELECT col2 * + col2 * + + col2 FROM tab2 AS cor0
----
12167
195112
64000

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + 88 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col0 IS NULL
----

query II rowsort
SELECT ALL col2 * - col0 + ( - ( col1 ) ) AS col1, + 93 * - col2 AS col2 FROM tab2
----
-1109
-2139
-2637
-3720
-4417
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT 18 - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT 18 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 36 * + - col1 - - 44, + col2 * + - 51 * - - 88 AS col0 FROM tab0
----
-2872
-210936
-712
-44880
8
-444312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE + + ( - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL SUM( DISTINCT - 38 ) * MIN( - 21 ) AS col0 FROM tab0
----
798

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL SUM ( DISTINCT - 38 ) * MIN ( - 21 ) AS col0 FROM tab0
----
798

query I rowsort
SELECT DISTINCT + + col1 * - 91 + - + col2 AS col0 FROM tab2 AS cor0
----
-4664
-6155
-7047

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + - 81 <= + col1 )
----

query I rowsort
SELECT + - 38 AS col0 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + COUNT( * ) * 19 AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-1060
SELECT + COUNT ( * ) * 19 AS col0 FROM tab2
----
57

query I rowsort
SELECT - col0 * - 73 FROM tab2
----
3358
4672
5475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT ALL - 4 DIV - + COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - 4 / - + COUNT ( * ) AS col1 FROM tab1
----
1

query I rowsort
SELECT + 52 * + col2 AS col1 FROM tab0
----
2444
5148
520

query II rowsort
SELECT 95, 58 * + col0 * col1 AS col0 FROM tab2
----
95
136068
95
285824
95
291450

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 48 ) col1 FROM tab2 AS cor0
----
-48
-48
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1068
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - - ( col0 ) + - + col2 / - ( - CAST( NULL AS SIGNED ) ) NOT IN ( - col0, + col1 + + ( - col2 ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-1068
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - - ( col0 ) + - + col2 / - ( - CAST ( NULL AS INTEGER ) ) NOT IN ( - col0, + col1 + + ( - col2 ) * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1069
SELECT ALL + col2 DIV - 33 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + col2 / - 33 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT - CAST( + + 27 AS SIGNED ) FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-1070
SELECT - CAST ( + + 27 AS INTEGER ) FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT - 21 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6
66
76

query I rowsort
SELECT DISTINCT 27 + col1 FROM tab0 AS cor0
----
108
28
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / col2 BETWEEN col0 + - + col0 + - - col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT DISTINCT 76 * - - COUNT( * ) + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT 76 * - - COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1075
SELECT DISTINCT + col2 DIV col2 * - 42 AS col2, + 74 FROM tab2
----
-42
74

skipif mysql # not compatible
query II rowsort label-1075
SELECT DISTINCT + col2 / col2 * - 42 AS col2, + 74 FROM tab2
----
-42
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT + COUNT( * ) + - - 94 AS col2, COUNT( * ) AS col0 FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-1076
SELECT + COUNT ( * ) + - - 94 AS col2, COUNT ( * ) AS col0 FROM tab0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT - ( COUNT( * ) ) + - 33 * + 27 AS col0 FROM tab1 AS cor0
----
-894

skipif mysql # not compatible
query I rowsort label-1077
SELECT - ( COUNT ( * ) ) + - 33 * + 27 AS col0 FROM tab1 AS cor0
----
-894

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1078
SELECT - col2 + CAST( NULL AS SIGNED ) + - col2 AS col2, - col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-1078
SELECT - col2 + CAST ( NULL AS INTEGER ) + - col2 AS col2, - col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE - 10 NOT IN ( + col2, col2 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1080
SELECT * FROM tab1 WHERE - - 90 = + CAST( 73 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1080
SELECT * FROM tab1 WHERE - - 90 = + CAST ( 73 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1081
SELECT ALL + MIN( - col1 ) DIV + COUNT( * ) + + COUNT( * ) DIV + + 32 AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + MIN ( - col1 ) / + COUNT ( * ) + + COUNT ( * ) / + + 32 AS col2 FROM tab1
----
-15

query I rowsort
SELECT + col2 - ( - + col0 ) AS col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + ( col1 ) - - col2 * 66 AS col0 FROM tab2 AS cor0
----
1569
2717
3895

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND 85 * + col1 - col0
----

query II rowsort
SELECT ALL + col2 AS col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1086
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1086
SELECT DISTINCT - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1087
SELECT DISTINCT CAST( - + ( - - ( - 20 ) ) AS SIGNED ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT CAST ( - + ( - - ( - 20 ) ) AS INTEGER ) FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT + ( - COUNT( col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1088
SELECT + ( - COUNT ( col0 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 * + - 86 * col2 FROM tab2
----
-137600
-289304
-45494

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1090
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * 24 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1090
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * 24 IS NOT NULL
----

query I rowsort
SELECT ALL ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1092
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab1 cor0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 + + - 68 + - - 36 ) <= + col0 + + - 11
----
51
14
96

query I rowsort
SELECT - 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # DIV for integer division: 
query I rowsort label-1096
SELECT ALL col0 * 67 DIV col2 FROM tab2
----
107
134
86

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL col0 * 67 / col2 FROM tab2
----
107
134
86

query I rowsort
SELECT DISTINCT - 12 * + col0 * - col1 * + + col2 / col1 * + + ( 13 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND + ( + col1 )
----

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 * col1 + - col1 * - 73 FROM tab2 AS cor0
----
-117579
-220497
-23256

onlyif mysql # DIV for integer division: 
query II rowsort label-1099
SELECT - col2 DIV - col1 - ( + col1 ) + - col2 + + col0, col0 FROM tab2 AS cor0
----
-28
46
-50
75
-53
64

skipif mysql # not compatible
query II rowsort label-1099
SELECT - col2 / - col1 - ( + col1 ) + - col2 + + col0, col0 FROM tab2 AS cor0
----
-28
46
-50
75
-53
64

query I rowsort
SELECT - col2 * + - 12 + col0 AS col2 FROM tab2 AS cor0
----
322
544
771

query I rowsort
SELECT + col0 + - ( + + 50 ) AS col2 FROM tab2 cor0
----
-4
14
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1102
SELECT DISTINCT + - ( - AVG ( - + 16 ) ) + + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1102
SELECT DISTINCT + - ( - AVG ( - + 16 ) ) + + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL - MAX( - 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - MAX ( - 74 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT - 69 + - 87 AS col2 FROM tab2 AS cor0
----
-156
-156
-156

query II rowsort
SELECT ALL - 54 + - col0 * + col0 * col2 AS col0, + col1 AS col1 FROM tab2
----
-163894
77
-326304
67
-48722
51

query II rowsort
SELECT + 24 AS col2, 57 FROM tab0
----
24
57
24
57
24
57

query II rowsort
SELECT DISTINCT 69, col1 FROM tab0
----
69
1
69
21
69
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1108
SELECT col2 AS col1, CAST( NULL AS DECIMAL ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1108
SELECT col2 AS col1, CAST ( NULL AS REAL ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT - col2 * - col0 + - - col1 + 47 AS col0 FROM tab2 AS cor0
----
1156
2684
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL COUNT( * ) * - 25 AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL COUNT ( * ) * - 25 AS col0 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT - - 29 * + 28 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
812
812
812

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT - col1 - + col0 * 13 + + 91 * + 78 FROM tab0 AS cor0
----
5836
5946
6822

query II rowsort
SELECT ALL + col2 + - col0 AS col1, - 99 * + + col0 AS col0 FROM tab0
----
-77
-8613
2
-9603
32
-1485

query I rowsort
SELECT ALL - col1 - + 26 AS col1 FROM tab1
----
-31
-40
-73

query I rowsort
SELECT DISTINCT 70 FROM tab0 cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT ALL + 99 - - CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
100
120
180

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + 99 - - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
100
120
180

query II rowsort
SELECT + col1, + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1120
SELECT + 85 DIV COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
28
3

skipif mysql # not compatible
query II rowsort label-1120
SELECT + 85 / COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
28
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + 59 IS NULL
----

query II rowsort
SELECT - col2, col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 85, + 88 - + 33 + + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1124
SELECT - 52, col0 + + 51 DIV + - col0 AS col1 FROM tab2
----
-52
45
-52
64
-52
75

skipif mysql # not compatible
query II rowsort label-1124
SELECT - 52, col0 + + 51 / + - col0 AS col1 FROM tab2
----
-52
45
-52
64
-52
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1125
SELECT ALL - - COUNT( * ) AS col0, SUM( ALL col2 ) + + 66 AS col0 FROM tab1 AS cor0
----
3
289

skipif mysql # not compatible
query II rowsort label-1125
SELECT ALL - - COUNT ( * ) AS col0, SUM ( ALL col2 ) + + 66 AS col0 FROM tab1 AS cor0
----
3
289

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1126
SELECT ALL * FROM tab0 AS cor0 WHERE 89 NOT BETWEEN - 58 * + - CAST( NULL AS SIGNED ) + 98 AND col0
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-1126
SELECT ALL * FROM tab0 AS cor0 WHERE 89 NOT BETWEEN - 58 * + - CAST ( NULL AS INTEGER ) + 98 AND col0
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL = 96
----
0

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL = 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL 8 + + - COUNT( * ) AS col1 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL 8 + + - COUNT ( * ) AS col1 FROM tab2
----
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 + - - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + 50 * + - col1 * col0 * + ( 89 ) NOT BETWEEN - 2 + - col2 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - col1 < 2
----

query I rowsort
SELECT ALL + 68 AS col2 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT ALL + col1 + 87 AS col0 FROM tab1
----
101
134
92

query I rowsort
SELECT ALL - 90 AS col0 FROM tab0 WHERE + 61 * 87 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + COUNT( * ) * - COUNT( * ) + - 94 FROM tab2
----
-103

skipif mysql # not compatible
query I rowsort label-1135
SELECT + COUNT ( * ) * - COUNT ( * ) + - 94 FROM tab2
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + - 73 - - col2 col2 FROM tab2
----
49
66
84

query I rowsort
SELECT - 15 - + + col1 AS col1 FROM tab2 AS cor0 WHERE + 32 NOT IN ( + 55, + col0, + - 53 + - col2, - col0, 6, - - 10 * col1 )
----
-66
-82
-92

query I rowsort
SELECT ALL + 41 * - 66 FROM tab0
----
-2706
-2706
-2706

query I rowsort
SELECT DISTINCT + 47 * + + 95 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
4465

query I rowsort
SELECT 79 * + col1 - + col0 + col1 + - col2 * + - ( + - col2 ) AS col1 FROM tab2
----
1921
3505
4496

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1141
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col2 - 69 - col1 / + col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1141
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col2 - 69 - col1 / + col0 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 * - + col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT - 54 * + ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-1143
SELECT - 54 * + ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-1144
SELECT ALL - 78 DIV - 6 FROM tab2 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - 78 / - 6 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT DISTINCT + col1 DIV + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT + col1 / + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE - col2 / col1 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1147
SELECT + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - + 15 ) * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1149
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN 95 AND col1 * - - col2 * + + 7 + + - col0 * col2 / - 42 / + - col2 * - col1 * col1 * + 91 / + - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1149
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN 95 AND col1 * - - col2 * + + 7 + + - col0 * col2 / - 42 / + - col2 * - col1 * col1 * + 91 / + - CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT ALL + ( - + 62 ) FROM tab1
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT DISTINCT - MIN( DISTINCT - 11 ), ( + + 57 ) AS col2 FROM tab2 cor0
----
11
57

skipif mysql # not compatible
query II rowsort label-1151
SELECT DISTINCT - MIN ( DISTINCT - 11 ), ( + + 57 ) AS col2 FROM tab2 cor0
----
11
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 + - - 93 ) <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT + COUNT( * ) FROM tab2 WHERE col2 / + col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1153
SELECT + COUNT ( * ) FROM tab2 WHERE col2 / + col1 + col1 IS NULL
----
0

query I rowsort
SELECT - - col2 + - 83 AS col0 FROM tab0 cor0
----
-36
-73
16

query I rowsort
SELECT 73 + - - col2 AS col0 FROM tab1 AS cor0
----
132
141
169

query I rowsort
SELECT - 50 + - 15 * + 87 + - col0 AS col2 FROM tab0 AS cor0
----
-1370
-1442
-1452

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1157
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-1157
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER ) + + col1
----

query I rowsort
SELECT - col2 + + - col2 AS col0 FROM tab2 cor0
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 98 + - col2 IS NULL
----

query II rowsort
SELECT ALL col2 + + + col0, - 0 AS col0 FROM tab1
----
144
0
147
0
159
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL - - COUNT( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL COUNT( * ) - - + COUNT( * ) col2 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1162
SELECT ALL COUNT ( * ) - - + COUNT ( * ) col2 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT ALL + 76 - + CAST( + col0 AS SIGNED ) FROM tab2
----
1
12
30

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL + 76 - + CAST ( + col0 AS INTEGER ) FROM tab2
----
1
12
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( + + col0 ) AS col2, + col1 col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1165
SELECT + - SUM( + + col2 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1165
SELECT + - SUM ( + + col2 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + COUNT( * ) - + SUM( ALL - - col1 ) AS col1 FROM tab0 WHERE NOT - + 12 IS NULL
----
-100

skipif mysql # not compatible
query I rowsort label-1167
SELECT + COUNT ( * ) - + SUM ( ALL - - col1 ) AS col1 FROM tab0 WHERE NOT - + 12 IS NULL
----
-100

query II rowsort
SELECT - 1 AS col0, - 93 FROM tab1
----
-1
-93
-1
-93
-1
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT 87 * - COUNT( DISTINCT - + col0 ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-1169
SELECT 87 * - COUNT ( DISTINCT - + col0 ) FROM tab1
----
-261

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT + + ( 41 ) FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT ALL - - 95 * + 64 * col2 + - - col1 FROM tab2 AS cor0
----
139891
243277
352707

query I rowsort
SELECT DISTINCT + 29 * + col2 AS col1 FROM tab1 AS cor0
----
1711
1972
2784

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT 43 * col1 <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT - COUNT( - - 58 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - COUNT ( - - 58 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT ALL - - 14 DIV + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - - 14 / + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT + + col0 + - 46 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + - 13 + - + col1 + + + col0 * - - 37 * + 98 * 35 AS col1 FROM tab1 WHERE NOT - - 76 IS NOT NULL
----

query II rowsort
SELECT - 57 AS col1, + col0 FROM tab0
----
-57
15
-57
87
-57
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT ALL 19, MIN( DISTINCT + 44 ) + - 61 + - 75 AS col2 FROM tab0
----
19
-92

skipif mysql # not compatible
query II rowsort label-1180
SELECT ALL 19, MIN ( DISTINCT + 44 ) + - 61 + - 75 AS col2 FROM tab0
----
19
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT + 33 * + + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1181
SELECT + 33 * + + COUNT ( * ) FROM tab2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1182
SELECT + COUNT( - + col2 ) DIV + + 9 * - + COUNT( * ) - - 98 + + - 30 * + 60 + + COUNT( * ) AS col1 FROM tab2
----
-1699

skipif mysql # not compatible
query I rowsort label-1182
SELECT + COUNT ( - + col2 ) / + + 9 * - + COUNT ( * ) - - 98 + + - 30 * + 60 + + COUNT ( * ) AS col1 FROM tab2
----
-1699

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + 16 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + + ( + 82 ) AS col2 FROM tab2
----
128
146
157

query III rowsort
SELECT * FROM tab2 WHERE NULL > + ( + 71 )
----

query I rowsort
SELECT DISTINCT - 85 + col1 AS col1 FROM tab2 AS cor0
----
-18
-34
-8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 90 + col0
----

query I rowsort
SELECT + ( - - 85 ) * 10 * - col0 * - + col0 AS col0 FROM tab1 AS cor0
----
2210850
6141250
7038850

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col2, + 96, - col2 / - 9, - col1 / + + col1, + 29, - ( col1 ), + col1 )
----

query I rowsort
SELECT ALL + + 74 * - col0 FROM tab2 AS cor0
----
-3404
-4736
-5550

query I rowsort
SELECT ALL 18 + - - 55 FROM tab0
----
73
73
73

query I rowsort
SELECT - ( - col0 ) + - - col0 FROM tab2
----
128
150
92

query I rowsort
SELECT + 67 + + col1 FROM tab2
----
118
134
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT - 77 DIV col0 * col1 * + + 92 + col2 AS col2 FROM tab0
----
-37213
10
99

skipif mysql # not compatible
query I rowsort label-1197
SELECT - 77 / col0 * col1 * + + 92 + col2 AS col2 FROM tab0
----
-37213
10
99

query I rowsort
SELECT col2 + + 9 * - ( - col2 ) FROM tab1
----
590
680
960

query I rowsort
SELECT + + 47 + - - col1 FROM tab0 WHERE - 72 * - col0 * 84 + + ( + 4 ) / - col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1200
SELECT - COUNT( * ) DIV 94 * CAST( - + 92 AS SIGNED ) + + COUNT( ALL - col1 ) + COUNT( * ) * + - 39 AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-1200
SELECT - COUNT ( * ) / 94 * CAST ( - + 92 AS INTEGER ) + + COUNT ( ALL - col1 ) + COUNT ( * ) * + - 39 AS col2 FROM tab2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT - + COUNT( * ) - + 77 FROM tab1 WHERE col1 + - col0 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - + COUNT ( * ) - + 77 FROM tab1 WHERE col1 + - col0 IS NULL
----
-77

query I rowsort
SELECT 70 + + - col1 FROM tab2
----
-7
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) * 60 col0 FROM tab0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1203
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) * 60 col0 FROM tab0
----
183

query I rowsort
SELECT DISTINCT col1 - - 87 + col1 * - - 83 FROM tab0
----
171
1851
6891

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT + COUNT( * ) FROM tab1 WHERE - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1205
SELECT + COUNT ( * ) FROM tab1 WHERE - col2 <> NULL
----
0

query I rowsort
SELECT - 60 * + - 1 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1207
SELECT DISTINCT - + col2 AS col0, - col0 - col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1207
SELECT DISTINCT - + col2 AS col0, - col0 - col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + COUNT( * ) * - COUNT( * ) * COUNT( * ) * - 58 FROM tab0 AS cor0
----
1566

skipif mysql # not compatible
query I rowsort label-1208
SELECT + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) * - 58 FROM tab0 AS cor0
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT DISTINCT ( + COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1209
SELECT DISTINCT ( + COUNT ( * ) ) col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 80 col0 FROM tab0 cor0
----
1200
6960
7760

query I rowsort
SELECT DISTINCT - - 23 FROM tab2 AS cor0 WHERE 28 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT ALL col1 DIV 37 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL col1 / 37 AS col1 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1214
SELECT + 98 AS col0 FROM tab1 AS cor0 WHERE NOT col0 DIV - 90 IN ( + col0, - col0 DIV + col0 )
----
98
98

skipif mysql # not compatible
query I rowsort label-1214
SELECT + 98 AS col0 FROM tab1 AS cor0 WHERE NOT col0 / - 90 IN ( + col0, - col0 / + col0 )
----
98
98

query I rowsort
SELECT DISTINCT - 80 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) * col2 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL col0 * 6 * + col0 FROM tab2
----
12696
24576
33750

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT - COUNT( * ) * - - COUNT( ALL + col0 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( ALL + col0 ) FROM tab1
----
-9

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT - - 79 = NULL
----

query I rowsort
SELECT col1 * + - 2 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT DISTINCT + 82 * - COUNT( * ) FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + 82 * - COUNT ( * ) FROM tab1
----
-246

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( NOT + 90 IS NOT NULL )
----
-15
-87
-97

query I rowsort
SELECT ALL 96 * 21 AS col2 FROM tab0
----
2016
2016
2016

query III rowsort
SELECT * FROM tab2 WHERE NOT + 53 * - col2 NOT IN ( col1 * - 34 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * + + col0 col2 FROM tab1 AS cor0
----
408
680
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 col0 FROM tab2 AS cor0
----
39

query I rowsort
SELECT + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + - ( + col1 ) * - col2 + - 14 AS col0 FROM tab1 AS cor0
----
1330
281
3182

query II rowsort
SELECT ALL - - 5 AS col0, col1 AS col1 FROM tab2 AS cor0
----
5
51
5
67
5
77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1231
SELECT ALL + - MAX ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT COUNT( * ) + - 71 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1232
SELECT COUNT ( * ) + - 71 FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT MIN( 56 ) + + + 91 * - - 11 FROM tab0 cor0
----
1057

skipif mysql # not compatible
query I rowsort label-1233
SELECT MIN ( 56 ) + + + 91 * - - 11 FROM tab0 cor0
----
1057

query I rowsort
SELECT - + col2 * col1 + col2 - + col0 FROM tab2 AS cor0
----
-1196
-3104
-3903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT - col1 FROM tab1 WHERE - col2 + + CAST( 71 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1236
SELECT - col1 FROM tab1 WHERE - col2 + + CAST ( 71 AS INTEGER ) <= NULL
----

query I rowsort
SELECT col1 - + 13 AS col0 FROM tab2
----
38
54
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT + col1 * + 52 - + col1 DIV + - col1 col0 FROM tab1 AS cor0
----
2445
261
729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1238
SELECT + col1 * + 52 - + col1 / + - col1 col0 FROM tab1 AS cor0
----
2445
261
729

query I rowsort
SELECT - - 20 * + col1 * + col1 FROM tab2 AS cor0
----
118580
52020
89780

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1240
SELECT - CAST( NULL AS DECIMAL ), + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1240
SELECT - CAST ( NULL AS REAL ), + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL - + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1242
SELECT AVG ( - + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT AVG ( - + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 63 * + col2 - col0 * + 49 AS col0 FROM tab1 AS cor0
----
-175
-448
3549

query I rowsort
SELECT DISTINCT - col2 + - col0 + 76 AS col1 FROM tab1 AS cor0
----
-68
-71
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 / 59 col2 FROM tab0 WHERE NOT - col0 * + + 65 + + - col0 >= NULL
----

query I rowsort
SELECT ALL col0 + - - 47 AS col1 FROM tab0
----
134
144
62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT DISTINCT + ( - - col2 ) DIV - + 93 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT + ( - - col2 ) / - + 93 FROM tab1
----
-1
0

query I rowsort
SELECT col0 * + 70 FROM tab2
----
3220
4480
5250

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col1 + ( - 68 ) IN ( - 6 * + + col1 * - col1 * - 91 + - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 48 * + ( - col1 ) * - col1 * + - col0 AS col0 FROM tab0
----
-1841616
-4656
-4723920

query I rowsort
SELECT 15 * + 15 * - + col0 + - - 69 + + col1 + col0 * + + ( - col2 ) * + col0 + col0 - + + 72 + col1 AS col0 FROM tab2 AS cor0
----
-178025
-342919
-58873

query II rowsort
SELECT ALL - col0 * col2 AS col1, + 64 AS col2 FROM tab0 cor0
----
-705
64
-870
64
-9603
64

query I rowsort
SELECT + + ( - col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-1255
SELECT ALL - 58 DIV - - col0 + col1 + - + col1, - col0 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-1255
SELECT ALL - 58 / - - col0 + col1 + - + col1, - col0 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1
0
0
0
0
0

query I rowsort
SELECT ( + + 90 ) FROM tab0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT - 36 * - 46 + + - MAX( DISTINCT + col1 ) * + - 91 AS col2 FROM tab2
----
8663

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - 36 * - 46 + + - MAX ( DISTINCT + col1 ) * + - 91 AS col2 FROM tab2
----
8663

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT - 92 * COUNT( * ) AS col1 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-1258
SELECT - 92 * COUNT ( * ) AS col1 FROM tab0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT COUNT( * ) * + ( + + COUNT( * ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1259
SELECT COUNT ( * ) * + ( + + COUNT ( * ) ) AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT - 37 - + + col1 FROM tab2
----
-104
-114
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND + - 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 / - - col0 ) AND ( NULL )
----

query I rowsort
SELECT + - col0 * - - 8 - - + 44 FROM tab1 AS cor0
----
-364
-636
-684

query I rowsort
SELECT DISTINCT + ( col2 ) - - - col0 + - 99 AS col1 FROM tab0 AS cor0
----
-176
-67
-97

query II rowsort
SELECT ALL - col0 AS col0, col0 + + + 71 FROM tab2 AS cor0
----
-46
117
-64
135
-75
146

query I rowsort
SELECT - col0 + - 51 FROM tab2 AS cor0
----
-115
-126
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT ALL CAST( + 53 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
2703
4505
4823

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL CAST ( + 53 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) + + - SUM( + col1 ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + - SUM ( + col1 ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT - CAST( NULL AS SIGNED ) + - ( - col2 ) + + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1269
SELECT - CAST ( NULL AS INTEGER ) + - ( - col2 ) + + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 + - - col1 * - 47 col2 FROM tab0
----
-3748
-928
12

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + col2 + + + col2 FROM tab1
----
118
136
192

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT + 27, 4 AS col2, col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to 8ea1a806e99309de60af0584121f0b74

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + - COUNT( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1275
SELECT + - COUNT ( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 - + col1 IN ( col0, + 13, - col0 + - col1 * + col0 ) OR NOT 9 + 15 - 37 * - 66 / col2 * - - 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + COUNT( * ) * + + ( + + 68 ) + 78 AS col0 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-1277
SELECT + COUNT ( * ) * + + ( + + 68 ) + 78 AS col0 FROM tab1 AS cor0
----
282

query I rowsort
SELECT - col2 + + col2 AS col0 FROM tab0 cor0 WHERE NOT - 94 < NULL
----

query I rowsort
SELECT - 31 + + col1 + + 12 FROM tab1 AS cor0
----
-14
-5
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT - COUNT( - col2 ) + CAST( 5 AS SIGNED ) * - 43 FROM tab1
----
-218

skipif mysql # not compatible
query I rowsort label-1280
SELECT - COUNT ( - col2 ) + CAST ( 5 AS INTEGER ) * - 43 FROM tab1
----
-218

query I rowsort
SELECT DISTINCT + ( - col1 ) + + - col2 + - + col1 FROM tab1
----
-124
-162
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE + - col1 / + 69 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1282
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE + - col1 / + 69 IS NOT NULL
----
-3

query I rowsort
SELECT - col0 + - col1 * col1 + - col2 FROM tab2 WHERE - - 19 IS NULL
----

query II rowsort
SELECT DISTINCT - - 20 AS col1, - 0 AS col2 FROM tab0 AS cor0
----
20
0

query II rowsort
SELECT ALL col2 * 81 + + 74 AS col0, col0 AS col1 FROM tab0 AS cor0
----
3881
15
8093
97
884
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL + 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1288
SELECT - + COUNT( * ) DIV 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1288
SELECT - + COUNT ( * ) / 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT MAX( ALL 9 ) AS col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1289
SELECT MAX ( ALL 9 ) AS col0 FROM tab1 cor0
----
9

query I rowsort
SELECT + col2 * col2 * + - col2 FROM tab2 cor0
----
-12167
-195112
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - COUNT( DISTINCT - 19 ) - - COUNT( * ) + + COUNT( * ) * + MAX( + 16 ) FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - COUNT ( DISTINCT - 19 ) - - COUNT ( * ) + + COUNT ( * ) * + MAX ( + 16 ) FROM tab1 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL + MIN( col2 ) FROM tab0 AS cor0 WHERE NOT + 79 + 57 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + MIN ( col2 ) FROM tab0 AS cor0 WHERE NOT + 79 + 57 IS NULL
----
10

query I rowsort
SELECT DISTINCT - + 91 * + col2 + col2 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-10245
-4416
-8528

query I rowsort
SELECT DISTINCT + 21 * - 37 * - - col0 * col1 FROM tab2 AS cor0
----
-1822842
-3829056
-3904425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1295
SELECT COUNT( + CAST( 12 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1295
SELECT COUNT ( + CAST ( 12 AS INTEGER ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * 17 FROM tab2 AS cor0
----
-1139
-1309
-867

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( + + 71 + + col2, 87 + 97 * col1, - 31 ) AND col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 ) < + 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, col2 col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT 24 * - - ( ( - SUM( 68 ) ) ) AS col1 FROM tab0
----
-4896

skipif mysql # not compatible
query I rowsort label-1300
SELECT 24 * - - ( ( - SUM ( 68 ) ) ) AS col1 FROM tab0
----
-4896

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 76 >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 76 >= - col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT - - COUNT( * ), COUNT( * ) * - - SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
3
198

skipif mysql # not compatible
query II rowsort label-1303
SELECT - - COUNT ( * ), COUNT ( * ) * - - SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
3
198

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT 36 DIV col0 * + 26 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT 36 / col0 * + 26 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1305
SELECT ALL col2 * + 48 * col0 * + + CAST( NULL AS SIGNED ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), 46 col1 FROM tab2
----
NULL
46
NULL
46
NULL
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1305
SELECT ALL col2 * + 48 * col0 * + + CAST ( NULL AS INTEGER ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), 46 col1 FROM tab2
----
NULL
46
NULL
46
NULL
46

query II rowsort
SELECT 67, - col1 AS col0 FROM tab0 AS cor0
----
67
-1
67
-21
67
-81

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 AS cor0 WHERE 84 * + col2 IS NULL
----

query II rowsort
SELECT - col2 * - col0, + col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 30 IS NOT NULL
----

query I rowsort
SELECT ALL - 90 AS col2 FROM tab2 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + 77 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL COUNT( ALL + 0 ) + + COUNT( * ) + - 23 AS col1 FROM tab0 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL COUNT ( ALL + 0 ) + + COUNT ( * ) + - 23 AS col1 FROM tab0 cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - col0 ) ) col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1314
SELECT DISTINCT AVG ( DISTINCT ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT AVG ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT - col0 DIV + - 46 + + + 73 FROM tab1
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1315
SELECT - col0 / + - 46 + + + 73 FROM tab1
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL MIN( DISTINCT - 66 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL MIN ( DISTINCT - 66 ) FROM tab0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT - col0 + - - 21 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT - col0 + - - 21 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT col2 DIV + col0 + - col2 + + - col1 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-1318
SELECT col2 / + col0 + - col2 + + - col1 FROM tab2 AS cor0
----
-117
-125
-74

query II rowsort
SELECT ALL + + 95, col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 40 > NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 * - 66 FROM tab1
----
3270
5551
5938

query II rowsort
SELECT - 37, col1 AS col0 FROM tab0
----
-37
1
-37
21
-37
81

query I rowsort
SELECT DISTINCT col2 * - + 47 FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1323
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * + + col0 / + + CAST( - col0 AS SIGNED ) * + + CAST( + - col0 AS SIGNED ) * + - col0 + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1323
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * + + col0 / + + CAST ( - col0 AS INTEGER ) * + + CAST ( + - col0 AS INTEGER ) * + - col0 + - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1324
SELECT DISTINCT + - 20 * + CAST( + 58 AS SIGNED ) AS col1, col0 AS col1 FROM tab1 AS cor0
----
-1160
51
-1160
85
-1160
91

skipif mysql # not compatible
query II rowsort label-1324
SELECT DISTINCT + - 20 * + CAST ( + 58 AS INTEGER ) AS col1, col0 AS col1 FROM tab1 AS cor0
----
-1160
51
-1160
85
-1160
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT + + 94 * col0 AS col2 FROM tab0 AS cor0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT 84 DIV - - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1328
SELECT 84 / - - col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 8 FROM tab2 WHERE NOT col1 IS NULL
----
8
8
8

query II rowsort
SELECT - 20 * + - col1, col0 FROM tab0
----
1620
15
20
97
420
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT 93 * + - MIN( + 75 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT 93 * + - MIN ( + 75 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1332
SELECT DISTINCT + 77 * + + CAST( NULL AS SIGNED ) col0, SUM( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1332
SELECT DISTINCT + 77 * + + CAST ( NULL AS INTEGER ) col0, SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN + 87 AND ( + ( + 24 ) + + col1 * + + col2 )
----

query I rowsort
SELECT ALL - col2 * 74 * + col1 FROM tab1 AS cor0
----
-21830
-236504
-99456

query I rowsort
SELECT - ( + col2 ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + + MIN( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-1336
SELECT + + MIN ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-75

query I rowsort
SELECT - 97 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + col2 * + 87 FROM tab2 AS cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1340
SELECT - - 98 + - ( - col1 ) * + col2 + col1 + + 83 DIV ( CAST( CAST( + 13 AS SIGNED ) AS SIGNED ) ) * + col2 + col1 + + 92 FROM tab0 AS cor0
----
4441
502
885

skipif mysql # not compatible
query I rowsort label-1340
SELECT - - 98 + - ( - col1 ) * + col2 + col1 + + 83 / ( CAST ( CAST ( + 13 AS INTEGER ) AS INTEGER ) ) * + col2 + col1 + + 92 FROM tab0 AS cor0
----
4441
502
885

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 3 - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT ALL COUNT( * ), 49 * - SUM( ALL col1 ) AS col0 FROM tab2 cor0
----
3
-9555

skipif mysql # not compatible
query II rowsort label-1342
SELECT ALL COUNT ( * ), 49 * - SUM ( ALL col1 ) AS col0 FROM tab2 cor0
----
3
-9555

query I rowsort
SELECT ALL + ( 43 ) AS col1 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT - - col0 + - + col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT 97 + - - col2 AS col2 FROM tab2 cor0
----
120
137
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT - COUNT( - + 99 ) DIV + 85 + - 97 AS col0 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - COUNT ( - + 99 ) / + 85 + - 97 AS col0 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT + - ( + SUM( + + ( - 44 ) ) ) FROM tab0 WHERE + col2 * 62 - + col1 * 96 * col0 / + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + - ( + SUM ( + + ( - 44 ) ) ) FROM tab0 WHERE + col2 * 62 - + col1 * 96 * col0 / + col2 <= NULL
----
NULL

query II rowsort
SELECT 81 AS col1, - col1 FROM tab2
----
81
-51
81
-67
81
-77

query III rowsort
SELECT * FROM tab2 WHERE 47 > NULL
----

query III rowsort
SELECT 56, + 89 AS col1, col0 + + + ( - ( + - col1 ) ) AS col1 FROM tab1
----
9 values hashing to 2a729ba1b9c07299914322fcfbc307ad

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NULL > ( 51 ) + + col2 * ( - col0 ) * - 46 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NULL > ( 51 ) + + col2 * ( - col0 ) * - 46 * - col0
----
0

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + + col1 - + + col2 - - col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT COUNT( ALL + - 61 ) - 84 FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1354
SELECT COUNT ( ALL + - 61 ) - 84 FROM tab2 cor0
----
-81

query II rowsort
SELECT ALL - col2 AS col0, - col0 AS col1 FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT + - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1356
SELECT + - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1357
SELECT DISTINCT 10 + CAST( + 0 AS SIGNED ), - COUNT( * ) col1 FROM tab1
----
10
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1357
SELECT DISTINCT 10 + CAST ( + 0 AS INTEGER ), - COUNT ( * ) col1 FROM tab1
----
10
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + - 92 * - col2 / - col0 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT - MAX( ALL - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT - MAX ( ALL - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - + col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT - 35 * col0 AS col2, col1 AS col2, + 19 FROM tab0 AS cor0
----
9 values hashing to fe77fa21500022ccc977acf7a7985a46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 85 * col0 * - 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1364
SELECT ALL 87 / + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, + 36 col2 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1364
SELECT ALL 87 / + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1, + 36 col2 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) > ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 84 * + + col0 * col0 * - - 36 FROM tab2
----
12386304
17010000
6398784

query I rowsort
SELECT DISTINCT - col0 * ( col2 ) AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab0 WHERE ( NOT + ( - - ( - 66 ) ) * col2 NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT DISTINCT + col1, - 10 FROM tab0 AS cor0
----
1
-10
21
-10
81
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT + COUNT( * ) * + - MAX( + col0 ) - + COUNT( * ) + - MAX( - - col1 ) + 44 col0 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1370
SELECT + COUNT ( * ) * + - MAX ( + col0 ) - + COUNT ( * ) + - MAX ( - - col1 ) + 44 col0 FROM tab1 AS cor0
----
-279

query I rowsort
SELECT DISTINCT col0 - + 25 FROM tab2
----
21
39
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT DISTINCT + ( 65 ) * - CAST( 13 AS SIGNED ) AS col0 FROM tab1
----
-845

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT + ( 65 ) * - CAST ( 13 AS INTEGER ) AS col0 FROM tab1
----
-845

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 54 + + col2 FROM tab1
----
113
122
150

query III rowsort
SELECT * FROM tab0 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 70 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * col1 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT MAX( DISTINCT - col2 ) + - COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT MAX ( DISTINCT - col2 ) + - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( col2 )
----
NULL

query I rowsort
SELECT ALL + ( col0 ) FROM tab2 WHERE ( col0 ) BETWEEN col1 * + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT - COUNT( - ( col0 ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1380
SELECT - COUNT ( - ( col0 ) ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - SUM( DISTINCT 4 ) FROM tab2 WHERE NOT col1 - - col1 * + col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - SUM ( DISTINCT 4 ) FROM tab2 WHERE NOT col1 - - col1 * + col1 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT - SUM( DISTINCT - 36 ) / COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT - SUM ( DISTINCT - 36 ) / COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT DISTINCT 52 DIV 41 AS col2 FROM tab1 WHERE NOT + col1 * + col0 BETWEEN 39 * 92 + - 53 * + col2 AND col2
----
1

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT 52 / 41 AS col2 FROM tab1 WHERE NOT + col1 * + col0 BETWEEN 39 * 92 + - 53 * + col2 AND col2
----
1

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE NOT NULL BETWEEN - col1 AND col1
----

query I rowsort
SELECT ALL 63 - + col0 AS col0 FROM tab0
----
-24
-34
48

query III rowsort
SELECT ALL * FROM tab2 WHERE - 6 / col2 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - 31 AS col2 FROM tab2
----
-1426
-1984
-2325

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + col0 / col1 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT + 23 * COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + 23 * COUNT ( * ) FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT DISTINCT ( + col1 ) * ( + 24 ) + 62 DIV 61 AS col1 FROM tab1
----
1129
121
337

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT ( + col1 ) * ( + 24 ) + 62 / 61 AS col1 FROM tab1
----
1129
121
337

query I rowsort
SELECT ( 48 ) * 50 AS col1 FROM tab0
----
2400
2400
2400

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( + col0 )
----

query I rowsort
SELECT ALL - 90 + + col0 FROM tab1 WHERE ( + col2 ) <> ( - col2 * + 40 )
----
-39
-5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 46 ) col1 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + col0 + + ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 24 + 3 FROM tab1 WHERE NOT + col1 NOT BETWEEN - 40 * - col0 AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - ( - col0 ) ) - 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 0 NOT BETWEEN ( NULL ) AND + 13
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 37 ) NOT BETWEEN col2 + 57 * - col0 AND col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 9 AND ( col2 )
----

query I rowsort
SELECT + 55 * col0 + + col1 AS col2 FROM tab2 WHERE - 88 - - col1 >= ( + 79 + + col1 )
----

query I rowsort
SELECT 39 + col0 AS col2 FROM tab2
----
103
114
85

query I rowsort
SELECT ALL + col1 * - col1 - col2 * 74 FROM tab1 AS cor0
----
-4391
-7241
-7300

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 7 + - 97 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT + 73 DIV - col2 FROM tab2 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 73 / - col2 FROM tab2 AS cor0
----
-1
-1
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT - 40 DIV COUNT( * ) FROM tab2 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 40 / COUNT ( * ) FROM tab2 cor0
----
-13

query I rowsort
SELECT ALL 24 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1408
SELECT SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1409
SELECT + ( - CAST( NULL AS DECIMAL ) ) * ( 75 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT + ( - CAST ( NULL AS REAL ) ) * ( 75 ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT ALL - - 53 * MAX( DISTINCT - 12 * col2 ) FROM tab0 AS cor0
----
-6360

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL - - 53 * MAX ( DISTINCT - 12 * col2 ) FROM tab0 AS cor0
----
-6360

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) BETWEEN ( - col0 ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT + - MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + - MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT ALL + CAST( + 58 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + CAST ( + 58 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT - + COUNT( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1414
SELECT - + COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + 10 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT - + COUNT( DISTINCT col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1416
SELECT - + COUNT ( DISTINCT col1 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + ( col0 ) * 42 AS col0 FROM tab2 AS cor0
----
1932
2688
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT + MAX( ALL + 34 ) col2 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1418
SELECT DISTINCT + MAX ( ALL + 34 ) col2 FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1419
SELECT 55 DIV - + CAST( + col0 AS SIGNED ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT 55 / - + CAST ( + col0 AS INTEGER ) FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1420
SELECT + 74 * - COUNT( DISTINCT + col2 ) AS col1 FROM tab0 WHERE NOT - ( + col0 ) + col2 IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1420
SELECT + 74 * - COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 WHERE NOT - ( + col0 ) + col2 IN ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL MAX( col1 ) * + 37 FROM tab0
----
2997

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL MAX ( col1 ) * + 37 FROM tab0
----
2997

query I rowsort
SELECT col2 * col1 AS col0 FROM tab1 WHERE NOT + col2 = + 13
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col2 * - - col2 AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1425
SELECT DISTINCT CAST( NULL AS SIGNED ) * 16 * - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 * - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT ( col0 * col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT col2 / 19 FROM tab1 WHERE NOT + 2 * 90 NOT IN ( + CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query I rowsort label-1428
SELECT col2 / 19 FROM tab1 WHERE NOT + 2 * 90 NOT IN ( + CAST ( NULL AS INTEGER ) + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + 47
----

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT - CAST( 15 AS SIGNED ) AS col0 FROM tab1 cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-1430
SELECT - CAST ( 15 AS INTEGER ) AS col0 FROM tab1 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT - MIN( ALL 22 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1431
SELECT - MIN ( ALL 22 ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - - col0 + + + col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT DISTINCT + col1 * + col1 + 96 + + col1 AS col0 FROM tab0 AS cor0
----
558
6738
98

query I rowsort
SELECT ALL - 30 * - 75 + + col1 + col1 FROM tab2
----
2352
2384
2404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT - + COUNT( * ) DIV - 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1435
SELECT - + COUNT ( * ) / - 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 7 + - + col1 IS NULL
----
1344
295
3196

query I rowsort
SELECT DISTINCT + 94 * - col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT + - col0 * 99 + - col2 + 38 * - col0 AS col0 FROM tab0 AS cor0
----
-11929
-13388
-2102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 / - + col0 < ( NULL )
----

query I rowsort
SELECT col0 + - - col0 + col0 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT DISTINCT - - COUNT( * ) col0, 35 FROM tab0 AS cor0
----
3
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1442
SELECT DISTINCT - - COUNT ( * ) col0, 35 FROM tab0 AS cor0
----
3
35

query I rowsort
SELECT ( + 64 ) + - col0 AS col0 FROM tab1 AS cor0
----
-21
-27
13

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 15 + 4 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL 30 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL 30 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 96 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT ALL - CAST( - - 80 AS SIGNED ) + - col1 * col1 AS col2 FROM tab0
----
-521
-6641
-81

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL - CAST ( - - 80 AS INTEGER ) + - col1 * col1 AS col2 FROM tab0
----
-521
-6641
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 56 * - 81 / + col2 + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( + 70 + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - SUM( ALL + 28 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-1450
SELECT - SUM ( ALL + 28 ) FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT ALL + ( + 49 ) + - - 79 + - - 57 DIV + 87 AS col2 FROM tab1
----
128
128
128

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + ( + 49 ) + - - 79 + - - 57 / + 87 AS col2 FROM tab1
----
128
128
128

query I rowsort
SELECT DISTINCT + col2 - - 10 AS col1 FROM tab0
----
109
20
57

query I rowsort
SELECT 88 * - col2 * - + 66 - - col2 FROM tab1
----
342731
395012
557664

query I rowsort
SELECT col0 FROM tab2 WHERE NULL IS NOT NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1455
SELECT ( + 9 ) - CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
108
19
56

skipif mysql # not compatible
query I rowsort label-1455
SELECT ( + 9 ) - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
108
19
56

query I rowsort
SELECT DISTINCT 30 - - col1 FROM tab0
----
111
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 NOT BETWEEN ( col0 ) AND ( col0 + ( - col0 ) )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 57 = + 94
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 IN ( - ( + - col2 ) * 67 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + 73 IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, 81 FROM tab1 AS cor0
----
-59
81
-68
81
-96
81

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 + - - ( - - 75 ) + - - col1 * + 60 FROM tab0 AS cor0
----
-15
4950
-87
1422
-97
232

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL + MIN( ALL - col2 ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1465
SELECT ALL + MIN ( ALL - col2 ) col2 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT DISTINCT + col2 AS col2, + col2 + - col0 + + + col2 + - col0 AS col2 FROM tab2 cor0
----
23
-46
40
-48
58
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 36 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2, - col1 * + - col0 FROM tab2
----
23
2346
40
4928
58
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT ALL - CAST( NULL AS SIGNED ) * - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - ( + + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL 18 FROM tab2 WHERE NOT + ( + - 42 ) BETWEEN ( NULL ) AND ( + col1 + + col1 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 - - + 18 ) BETWEEN col2 AND + 78 + ( 6 )
----
15
81
47
97
1
99

query I rowsort
SELECT - col1 * + - col0 * 81 FROM tab1
----
34425
346437
57834

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT SUM( + ( + + col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1477
SELECT SUM ( + ( + + col1 ) ) FROM tab0
----
103

query I rowsort
SELECT - 88 + col1 + + - 87 FROM tab0 cor0
----
-154
-174
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT 17 DIV - 96 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1479
SELECT 17 / - 96 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL - - COUNT( * ) * 21 FROM tab0 cor0
----
63

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - - COUNT ( * ) * 21 FROM tab0 cor0
----
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - - col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col1 AND + 29 * - col2 + 96
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL < 31 + + 5 )
----

query I rowsort
SELECT ALL col2 * 75 - 31 FROM tab2 AS cor0
----
1694
2969
4319

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT 36 DIV + + 22 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1485
SELECT 36 / + + 22 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <= NULL
----

query I rowsort
SELECT ALL 52 FROM tab0 AS cor0 WHERE NOT ( 12 NOT BETWEEN NULL AND + 24 - + - col1 / - col2 - col1 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT CAST( NULL AS SIGNED ) - - 55 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT CAST ( NULL AS INTEGER ) - - 55 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT DISTINCT + CAST( + ( col2 ) AS SIGNED ) * + 77 AS col2 FROM tab0 cor0
----
3619
7623
770

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT + CAST ( + ( col2 ) AS INTEGER ) * + 77 AS col2 FROM tab0 cor0
----
3619
7623
770

query II rowsort
SELECT ALL col0 * + 95 * + col0, col1 FROM tab2 AS cor0
----
201020
51
389120
77
534375
67

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) NOT IN ( col1 ) )
----

query I rowsort
SELECT col0 * col2 + 75 AS col0 FROM tab1
----
4971
5090
6263

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1493
SELECT CAST( - - 1 AS SIGNED ) + - col1, col0 col2 FROM tab0
----
-20
87
-80
15
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1493
SELECT CAST ( - - 1 AS INTEGER ) + - col1, col0 col2 FROM tab0
----
-20
87
-80
15
0
97

query III rowsort
SELECT * FROM tab1 WHERE + col2 / - 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + + 3 FROM tab0
----
24
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT DISTINCT 28 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT 28 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 - + + 75 * col0 AS col2 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - ( - ( + ( COUNT( * ) ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1498
SELECT - ( - ( + ( COUNT ( * ) ) ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL + 39 + 6 FROM tab2
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT DISTINCT ( - + 26 ) - + 47 DIV col2 * col0 AS col2 FROM tab0
----
-26
-374
-41

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT ( - + 26 ) - + 47 / col2 * col0 AS col2 FROM tab0
----
-26
-374
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1501
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( + 81 ) AS col2 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1503
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < 67 + - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1503
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < 67 + - col1 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL + SUM( DISTINCT col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + SUM ( DISTINCT col2 ) FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL + + MAX( - 61 ) * - COUNT( * ) * + 81 AS col0 FROM tab1 AS cor0
----
14823

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + + MAX ( - 61 ) * - COUNT ( * ) * + 81 AS col0 FROM tab1 AS cor0
----
14823

query I rowsort
SELECT ALL 80 * + 67 AS col0 FROM tab1 AS cor0
----
5360
5360
5360

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT + col1 DIV + 29 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1507
SELECT + col1 / + 29 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT ALL - 11 DIV - MAX( ALL col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL - 11 / - MAX ( ALL col1 ) FROM tab2
----
0

query I rowsort
SELECT 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query III rowsort
SELECT ALL * FROM tab2 WHERE - 17 > - col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - 66 + - + col0, - col2 AS col1 FROM tab2 AS cor0
----
-112
-23
-130
-40
-141
-58

query II rowsort
SELECT ALL + + ( + col0 ) AS col1, - 24 - - - col0 FROM tab2 AS cor0
----
46
-70
64
-88
75
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 75 NOT IN ( col1 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT CAST( 38 AS SIGNED ) + 83 col2 FROM tab2 AS cor0
----
121
121
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1514
SELECT CAST ( 38 AS INTEGER ) + 83 col2 FROM tab2 AS cor0
----
121
121
121

query I rowsort
SELECT + - col1 + - 66 FROM tab1 AS cor0
----
-113
-71
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT DISTINCT 13 DIV - 50 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT 13 / - 50 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT SUM( DISTINCT col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT SUM ( DISTINCT col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 72, + ( + 22 ) AS col1 FROM tab2
----
72
22
72
22
72
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col1 FROM tab0
----
8
8
8

query I rowsort
SELECT + + 64 * + 96 AS col0 FROM tab0 AS cor0
----
6144
6144
6144

query I rowsort
SELECT - 62 * + col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT COUNT( * ) * - COUNT( + + 1 ) + + ( + MIN( DISTINCT 31 ) ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT COUNT ( * ) * - COUNT ( + + 1 ) + + ( + MIN ( DISTINCT 31 ) ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-1524
SELECT - col2 AS col0, + col1 DIV + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-23
2
-40
1
-58
1

skipif mysql # not compatible
query II rowsort label-1524
SELECT - col2 AS col0, + col1 / + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-23
2
-40
1
-58
1

query I rowsort
SELECT DISTINCT col1 + + + 68 * + 45 FROM tab1
----
3065
3074
3107

query I rowsort
SELECT ALL 52 + col2 FROM tab0
----
151
62
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT 21 * - + 27 + - - CAST( col2 AS SIGNED ) + + 16 * + col2 * + + 46 FROM tab2
----
16384
28913
42179

skipif mysql # not compatible
query I rowsort label-1527
SELECT 21 * - + 27 + - - CAST ( col2 AS INTEGER ) + + 16 * + col2 * + + 46 FROM tab2
----
16384
28913
42179

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 50 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 36 + - 35 + - col0 * 63 FROM tab1 AS cor0
----
-3212
-5354
-5732

query I rowsort
SELECT - ( - 61 ) * col1 * + + col1 FROM tab1 AS cor0
----
11956
134749
1525

query I rowsort
SELECT DISTINCT + col2 * + col2 + 37 AS col2 FROM tab2 AS cor0
----
1637
3401
566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT + - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( + CAST( - - 75 AS SIGNED ) ) AND 52
----

skipif mysql # not compatible
query I rowsort label-1532
SELECT + - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( + CAST ( - - 75 AS INTEGER ) ) AND 52
----

query I rowsort
SELECT 78 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + 54 ) + - 86 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT + COUNT( + + 93 ) * - - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1535
SELECT + COUNT ( + + 93 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 26 + + col2 + - ( + + col0 ) FROM tab0 AS cor0
----
-51
28
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 21 - 73 / col2 < col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT ALL - + col1 DIV col1 + + + 62 FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - + col1 / col1 + + + 62 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + + COUNT( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1539
SELECT ALL + + COUNT ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 99 + + + ( - col0 ) AS col1 FROM tab1
----
-150
-184
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT DISTINCT + col0 * - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1541
SELECT DISTINCT + col0 * - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * - - col0 col2 FROM tab0
----
1050
6090
6790

onlyif mysql # DIV for integer division: 
query I rowsort label-1544
SELECT DISTINCT - 41 DIV - - col2 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - 41 / - - col2 AS col1 FROM tab2 AS cor0
----
-1
0

query II rowsort
SELECT 44 AS col2, + col0 FROM tab2 AS cor0
----
44
46
44
64
44
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * - - col0 NOT IN ( - col2 - + - 68, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + 52 col1 FROM tab1 cor0
----
51
52
85
52
91
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT DISTINCT - - 30 * - 52 + 88 + - + MIN( DISTINCT - ( + 85 ) ) FROM tab0 AS cor0
----
-1387

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - - 30 * - 52 + 88 + - + MIN ( DISTINCT - ( + 85 ) ) FROM tab0 AS cor0
----
-1387

query I rowsort
SELECT ALL col1 + - 14 FROM tab2 AS cor0
----
37
53
63

query I rowsort
SELECT DISTINCT col2 * + + 99 + - col0 FROM tab1
----
5756
6641
9453

query I rowsort
SELECT ALL + 72 + + + col2 * + col0 FROM tab2
----
1130
2632
4422

query I rowsort
SELECT ALL + 66 * col2 * - col0 AS col1 FROM tab1
----
-323136
-330990
-408408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 18 * + - 37 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 18 * + - 37 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 38 * - + col0 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT - MIN( ALL - col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1555
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 44 AS col1, col0 col0 FROM tab2
----
108
64
119
75
90
46

query II rowsort
SELECT + col1 + + + 95, col1 FROM tab2
----
146
51
162
67
172
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * - - 45 * + col1 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT + col2 + - - CAST( NULL AS SIGNED ) + - - col0 - col1 * - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT + col2 + - - CAST ( NULL AS INTEGER ) + - - col0 - col1 * - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT col2 DIV + 7 AS col2 FROM tab0 AS cor0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT col2 / + 7 AS col2 FROM tab0 AS cor0
----
1
14
6

query I rowsort
SELECT 19 * + col0 * col1 * col2 + + + 68 AS col1 FROM tab0 AS cor0
----
1085063
182525
347198

query I rowsort
SELECT - + 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT col2 * - + 50 + - ( + + col0 ) FROM tab1
----
-3035
-3491
-4851

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN 85 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1565
SELECT * FROM tab0 WHERE - 49 < + CAST( + 66 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1565
SELECT * FROM tab0 WHERE - 49 < + CAST ( + 66 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 37 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT - 29 - + SUM( - 32 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-1567
SELECT - 29 - + SUM ( - 32 ) FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT + COUNT( * ) FROM tab0 cor0 WHERE 42 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1568
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE 42 + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + + ( ( - - 83 ) ) - + col1 FROM tab2 AS cor0
----
16
32
6

query II rowsort
SELECT ALL - col2, + col0 + 35 * + 4 * - - col2 FROM tab2 AS cor0 WHERE + 75 BETWEEN + col2 + 94 AND NULL
----

query I rowsort
SELECT ALL col2 - + 14 * - col1 FROM tab1 AS cor0
----
129
292
726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT + col0 + + col1 * - CAST( - - col2 AS SIGNED ) - - col1 FROM tab2 AS cor0
----
-1076
-2939
-3744

skipif mysql # not compatible
query I rowsort label-1572
SELECT + col0 + + col1 * - CAST ( - - col2 AS INTEGER ) - - col1 FROM tab2 AS cor0
----
-1076
-2939
-3744

query I rowsort
SELECT + col1 * 3 + + - col2 AS col1 FROM tab2 AS cor0
----
130
143
191

query I rowsort
SELECT + + 0 * + + 82 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + 68 * - COUNT( * ) AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-1575
SELECT + 68 * - COUNT ( * ) AS col0 FROM tab0
----
-204

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NULL BETWEEN - col0 AND + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0, + col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * 38 + - 72 ) NOT IN ( 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col1, ( + + 99 ) AS col0 FROM tab2 AS cor0
----
-23
99
-40
99
-58
99

query I rowsort
SELECT DISTINCT - col1 * + col1 + - + col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

query I rowsort
SELECT + col1 * - - col1 * + col2 AS col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT DISTINCT + + 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT DISTINCT + + 2 DIV col1 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + + 2 / col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT - col1 DIV 41 * col0 * 11 * + col2 + + col2 FROM tab0 AS cor0
----
-7708
10
99

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT - col1 / 41 * col0 * 11 * + col2 + + col2 FROM tab0 AS cor0
----
-7708
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + 76 + - SUM( + col1 ) FROM tab2 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-1587
SELECT + 76 + - SUM ( + col1 ) FROM tab2 AS cor0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1588
SELECT - + 96 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT - + 96 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 73 + - col2 col1 FROM tab0 AS cor0
----
-120
-172
-83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 89 * - col0 / - 22 IS NULL
----

query I rowsort
SELECT + + col1 * col2 + col0 AS col0 FROM tab1 cor0
----
1395
3287
380

query I rowsort
SELECT 14 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT 35 AS col0, 10 AS col1 FROM tab2
----
35
10
35
10
35
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT DISTINCT - col0 DIV - 12 AS col1 FROM tab1
----
4
7

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - col0 / - 12 AS col1 FROM tab1
----
4
7

query I rowsort
SELECT ALL - col2 * + + 60 AS col0 FROM tab2 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + 10 + col2 AS col2 FROM tab0
----
109
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT + 66 * + - COUNT( * ) - + 22 + + - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 66 * + - COUNT ( * ) - + 22 + + - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 + - col1 + col2 col1 FROM tab2 AS cor0
----
-60
-79
-88

query II rowsort
SELECT - col0 - 12 * col1 AS col0, col0 FROM tab0 AS cor0
----
-109
97
-339
87
-987
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + COUNT( * ) * - 52 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-1600
SELECT + COUNT ( * ) * - 52 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-468

query I rowsort
SELECT DISTINCT col0 * 39 - 30 FROM tab2 AS cor0
----
1764
2466
2895

query I rowsort
SELECT - ( - - ( - - 59 ) ) * + - ( col2 ) * + + 72 * - + col1 AS col1 FROM tab1 AS cor0
----
-1253160
-13576608
-5709312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 97 * - - 40 * + 86 < col0 * 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL - + MIN( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT 7 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - + MIN ( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT 7 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT MIN( ALL 79 ) * + 81 * COUNT( - col0 ) * - MIN( col2 ) FROM tab1
----
-1132623

skipif mysql # not compatible
query I rowsort label-1605
SELECT MIN ( ALL 79 ) * + 81 * COUNT ( - col0 ) * - MIN ( col2 ) FROM tab1
----
-1132623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1606
SELECT ALL - + 4 FROM tab1 WHERE NOT - 11 BETWEEN + col2 * + col1 AND - + col2 + - + CAST( NULL AS SIGNED ) / - col0 + col0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL - + 4 FROM tab1 WHERE NOT - 11 BETWEEN + col2 * + col1 AND - + col2 + - + CAST ( NULL AS INTEGER ) / - col0 + col0
----
-4
-4
-4

query I rowsort
SELECT col1 * - col0 * 2 FROM tab1
----
-1428
-850
-8554

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - ( ( - - col2 ) ) ) + + col0 * + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 30, col1 FROM tab2
----
30
51
30
67
30
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1610
SELECT DISTINCT 3 AS col0, + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1610
SELECT DISTINCT 3 AS col0, + COUNT ( * ) AS col1 FROM tab2
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT - + col0 DIV + + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT - + col0 / + + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + - ( + 36 ) FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NOT ( - col1 ) IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT + - COUNT( * ) * - 30 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
270

skipif mysql # not compatible
query I rowsort label-1614
SELECT + - COUNT ( * ) * - 30 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
270

query I rowsort
SELECT DISTINCT - 21 * + 0 + + 33 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - + 87 * + COUNT( * ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1616
SELECT - + 87 * + COUNT ( * ) FROM tab1 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT DISTINCT - SUM( 21 ) FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT - SUM ( 21 ) FROM tab1 cor0
----
-63

query II rowsort
SELECT DISTINCT + col0, - 47 FROM tab1 AS cor0
----
51
-47
85
-47
91
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT ALL - - COUNT( + col2 ) * - CAST( + 15 AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT + col1 * - 73 IS NULL
----
-45

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - - COUNT ( + col2 ) * - CAST ( + 15 AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT + col1 * - 73 IS NULL
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1620
SELECT ALL COUNT( * ), - MAX( DISTINCT + - 16 ) AS col0 FROM tab0 AS cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-1620
SELECT ALL COUNT ( * ), - MAX ( DISTINCT + - 16 ) AS col0 FROM tab0 AS cor0
----
3
16

query I rowsort
SELECT ALL - 71 FROM tab2 AS cor0 WHERE NOT - 11 * - 23 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 NOT BETWEEN ( - - 51 ) AND - col0 * - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + 1 + col0 * - ( 64 ) AS col0, - col0 + col0 + col0 FROM tab1 AS cor0
----
-3263
51
-5439
85
-5823
91

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 + - - 24 AS col2 FROM tab0
----
18294
57129
9627

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT 32 * + COUNT( * ) + 60 AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT 32 * + COUNT ( * ) + 60 AS col2 FROM tab2
----
156

query II rowsort
SELECT 46 + - col2 AS col0, + col2 FROM tab0
----
-1
47
-53
99
36
10

query I rowsort
SELECT + 86 * + - 19 + + 64 FROM tab1
----
-1570
-1570
-1570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1628
SELECT CAST( + col0 AS SIGNED ) + + 10 + + 20 * + col0 * col0 AS col2 FROM tab1
----
144595
165721
52081

skipif mysql # not compatible
query I rowsort label-1628
SELECT CAST ( + col0 AS INTEGER ) + + 10 + + 20 * + col0 * col0 AS col2 FROM tab1
----
144595
165721
52081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT + - col0 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-1629
SELECT + - col0 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col0 * - col0 col2 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT + 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ( + MIN( DISTINCT + 98 ) ) AS col0 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-1632
SELECT ( + MIN ( DISTINCT + 98 ) ) AS col0 FROM tab0
----
98

query I rowsort
SELECT - 23 - - col1 AS col0 FROM tab1
----
-18
-9
24

query II rowsort
SELECT ALL - col2 AS col1, - col0 FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT col1 AS col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT ALL + 97, 37 + + COUNT( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
97
40

skipif mysql # not compatible
query II rowsort label-1636
SELECT ALL + 97, 37 + + COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
97
40

query II rowsort
SELECT - col1 AS col1, 92 FROM tab1 AS cor0
----
-14
92
-47
92
-5
92

query I rowsort
SELECT col1 * + - 93 AS col2 FROM tab0
----
-1953
-7533
-93

query I rowsort
SELECT DISTINCT + 43 * - + 73 FROM tab0
----
-3139

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT DISTINCT + 94 DIV - col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + 94 / - col0 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL COUNT( DISTINCT ( - col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL COUNT ( DISTINCT ( - col1 ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT 86 * + + 97 FROM tab1
----
8342
8342
8342

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1643
SELECT DISTINCT + - col1 FROM tab1 WHERE + - 69 + CAST( + 90 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT + - col1 FROM tab1 WHERE + - 69 + CAST ( + 90 AS REAL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 82 - - col1 ) = ( NULL )
----

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT - col1 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 / + + 26 >= + col2 + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 84 + 66 * - col1 AS col0 FROM tab1
----
-1008
-3186
-414

query I rowsort
SELECT DISTINCT col1 + 90 * - 94 FROM tab2
----
-8383
-8393
-8409

query I rowsort
SELECT ALL + - ( - - 36 ) AS col0 FROM tab2 cor0
----
-36
-36
-36

query I rowsort
SELECT ALL + 46 + + 82 AS col0 FROM tab1 AS cor0
----
128
128
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 42 * - - col0 + 2 * col2 * 9 * + - col1 * - + col0 + - 72 AS col1, + 57 * col0 col0 FROM tab1 AS cor0
----
1235862
2907
454848
4845
5238798
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT - AVG ( DISTINCT + - col2 ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT - AVG ( DISTINCT + - col2 ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + - 27 + 67 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT + + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 * + - 35 * - + col1 + - 67 AS col0 FROM tab1 AS cor0
----
14808
149628
24923

query I rowsort
SELECT ALL - col1 + + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 88 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
194392
862488
8800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1658
SELECT DISTINCT col0 * - col1 + - 5 DIV + - col1 + + CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
-2300
-4864
-4950

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT col0 * - col1 + - 5 / + - col1 + + CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
-2300
-4864
-4950

query I rowsort
SELECT ALL + col0 + 20 - col2 + + ( + 14 ) * - col0 - + col2 * - - 35 AS col1 FROM tab0
----
-1471
-1867
-4805

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - COUNT( + + col1 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT - COUNT ( + + col1 ) col2 FROM tab1
----
-3

query II rowsort
SELECT ALL col1 * - - col1 - - ( col2 ) AS col0, + col1 * + 86 AS col0 FROM tab2
----
2624
4386
4547
5762
5969
6622

query III rowsort
SELECT * FROM tab2 WHERE ( - + col2 ) <= ( NULL )
----

query I rowsort
SELECT - 33 - + - 28 AS col2 FROM tab0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT DISTINCT - col0 * 22 - - + col0 DIV - - col1 + + + col0 AS col2 FROM tab1
----
-1068
-1768
-1910

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - col0 * 22 - - + col0 / - - col1 + + + col0 AS col2 FROM tab1
----
-1068
-1768
-1910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT CAST( NULL AS SIGNED ) - 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT CAST ( NULL AS INTEGER ) - 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND + 6 + - col1 + col0 * + 58 * + col2 + 14 * + + col2 + - col0 / - col2 IS NULL
----

query II rowsort
SELECT + + 97 + - - 64 AS col0, 51 FROM tab0 AS cor0
----
161
51
161
51
161
51

query I rowsort
SELECT col0 + - ( col1 ) - - + col0 FROM tab0 AS cor0
----
-51
153
193

query II rowsort
SELECT ALL ( 96 ), 55 AS col0 FROM tab0
----
96
55
96
55
96
55

query I rowsort
SELECT ALL col2 * - col1 + + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL + + MAX( DISTINCT col0 ) * 40 AS col1 FROM tab1 AS cor0
----
3640

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + + MAX ( DISTINCT col0 ) * 40 AS col1 FROM tab1 AS cor0
----
3640

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT DISTINCT + col1 DIV - col0 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + col1 / - col0 + col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN - 58 AND + col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT ALL + CAST( - 59 AS SIGNED ) AS col0 FROM tab0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + CAST ( - 59 AS INTEGER ) AS col0 FROM tab0
----
-59
-59
-59

query II rowsort
SELECT ALL col1 AS col2, + col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT + 95 * + + col1 AS col2 FROM tab0
----
1995
7695
95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT BETWEEN 60 AND ( - 21 )
----

query II rowsort
SELECT DISTINCT 8, 89 * + - col2 AS col0 FROM tab1
----
8
-5251
8
-6052
8
-8544

query II rowsort
SELECT col2, + ( 20 ) FROM tab2
----
23
20
40
20
58
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1680
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT COUNT( * ) * - - 36 AS col2 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-1682
SELECT COUNT ( * ) * - - 36 AS col2 FROM tab0
----
108

query I rowsort
SELECT DISTINCT - 61 - + + 73 AS col2 FROM tab2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT COUNT( * ) * + 18 + + MAX( DISTINCT col1 ) + + 32 AS col0 FROM tab1
----
133

skipif mysql # not compatible
query I rowsort label-1684
SELECT COUNT ( * ) * + 18 + + MAX ( DISTINCT col1 ) + + 32 AS col0 FROM tab1
----
133

query I rowsort
SELECT ALL ( col1 ) * - 84 + - 76 AS col1 FROM tab2
----
-4360
-5704
-6544

query I rowsort
SELECT DISTINCT col1 - + + 64 FROM tab0
----
-43
-63
17

query I rowsort
SELECT ALL + col0 * col2 - + col0 FROM tab0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NULL = + + col0
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL = + + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 WHERE + col0 * + col2 * + 34 * + col1 + - + ( + + col0 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 - - - col0 col2 FROM tab1 AS cor0
----
-110
-116
-76

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) - 41 > + col2
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT - COUNT( * ) DIV + SUM( + 70 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT - COUNT ( * ) / + SUM ( + 70 ) FROM tab2
----
0

query I rowsort
SELECT + 54 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - - col1 AND ( 74 ) - + col1
----

query I rowsort
SELECT ALL 5 * 5 AS col2 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + col1 col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT DISTINCT + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT + col0 / + col0 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col1 * + + ( + col2 ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1698
SELECT ALL + col2 DIV - + col1 + + - col2 * + 87 col0 FROM tab2 AS cor0
----
-2001
-3480
-5046

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1698
SELECT ALL + col2 / - + col1 + + - col2 * + 87 col0 FROM tab2 AS cor0
----
-2001
-3480
-5046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 3 ) col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT + + ( - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT + + COUNT( DISTINCT - - ( + 43 ) ) col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1701
SELECT + + COUNT ( DISTINCT - - ( + 43 ) ) col2 FROM tab2 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < 72 * - col0 / + + 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT + CAST( NULL AS SIGNED ) * + col0 + - 28 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT + CAST ( NULL AS INTEGER ) * + col0 + - 28 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 7 AS col1 FROM tab2
----
-322
-448
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + ( COUNT( * ) ) * + + MIN( - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1705
SELECT + ( COUNT ( * ) ) * + + MIN ( - - col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1706
SELECT ALL - CAST( NULL AS DECIMAL ) * + - CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL - CAST ( NULL AS REAL ) * + - CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col1 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT ALL + col0 + + - col1 + col0 * + 14 AS col2 FROM tab1 AS cor0
----
1270
1318
751

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 < - col1
----

query I rowsort
SELECT ALL + 43 + - + col0 * - - 72 + + col1 FROM tab0 AS cor0
----
-6200
-6940
-956

query III rowsort
SELECT * FROM tab2 WHERE col0 > - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT COUNT( * ) * 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-1712
SELECT COUNT ( * ) * 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
252

query II rowsort
SELECT ALL + col1, 89 FROM tab0
----
1
89
21
89
81
89

query II rowsort
SELECT - col0 + + ( - 42 ), 60 AS col0 FROM tab1 AS cor0
----
-127
60
-133
60
-93
60

query I rowsort
SELECT ALL - col2 * + - 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + + + col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL ( + 96 ) AS col0 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1718
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1718
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + col0 - - col0 FROM tab0
----
720
957
9700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1720
SELECT CAST( NULL AS DECIMAL ) + - 33 + AVG ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT CAST ( NULL AS REAL ) + - 33 + AVG ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( 45 ) = - col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 22 AS col2 FROM tab2 cor0
----
-22
-22
-22

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 87 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col1 ) + + 45 + - col0 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT + 60 DIV col2 * + col2 * + + 77 AS col2 FROM tab0
----
0
3619
4620

skipif mysql # not compatible
query I rowsort label-1725
SELECT + 60 / col2 * + col2 * + + 77 AS col2 FROM tab0
----
0
3619
4620

query I rowsort
SELECT ALL col1 * + 10 AS col2 FROM tab0
----
10
210
810

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT DISTINCT - MAX( + 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - MAX ( + 89 ) FROM tab2
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col2, 58 AS col1 FROM tab2
----
32
58
32
58
32
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * + 2 IS NOT NULL
----

query I rowsort
SELECT ALL + - 73 AS col1 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + + MIN( DISTINCT + - ( + - 24 ) ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1731
SELECT + + MIN ( DISTINCT + - ( + - 24 ) ) AS col2 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT - + 88 FROM tab2 cor0
----
-88

query II rowsort
SELECT DISTINCT col0, + 55 AS col0 FROM tab1 AS cor0
----
51
55
85
55
91
55

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * - 99 IN ( - col1, - col2 + - col0 )
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - - 82
----

query I rowsort
SELECT ALL - col1 * 12 * col1 * - col2 FROM tab2
----
2845920
3124344
717876

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT DISTINCT - col0 + col1 DIV col0 + + 19 + - ( - - col2 ) * col1 AS col1 FROM tab2
----
-1199
-3124
-3942

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT - col0 + col1 / col0 + + 19 + - ( - - col2 ) * col1 AS col1 FROM tab2
----
-1199
-3124
-3942

query II rowsort
SELECT + col1 * - col2 AS col2, - 30 AS col1 FROM tab0
----
-210
-30
-3807
-30
-99
-30

query I rowsort
SELECT 22 * - 94 AS col2 FROM tab1
----
-2068
-2068
-2068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - col1 + + ( + - 38 ) * - - ( + + col1 ) FROM tab0
----
-1008
-137
-6885

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col1 + + ( + - 38 ) * - - ( + + col1 ) FROM tab0
----
-1008
-137
-6885

query I rowsort
SELECT 40 + - col1 FROM tab2
----
-11
-27
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - COUNT( * ) + 42 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1742
SELECT - COUNT ( * ) + 42 FROM tab1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1743
SELECT 88 DIV col2 + col1 col1 FROM tab2 AS cor0
----
54
68
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1743
SELECT 88 / col2 + col1 col1 FROM tab2 AS cor0
----
54
68
79

query I rowsort
SELECT ALL - - col0 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, 65 * col1 AS col1 FROM tab2 AS cor0
----
23
3315
40
5005
58
4355

query I rowsort
SELECT ( - - col2 ) + + + 9 AS col0 FROM tab1 cor0
----
105
68
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 / - col2 <= - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT ( + - 49 ) - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT ( + - 49 ) - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-58

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE col2 * - col0 * - 20 + + + ( + 94 ) * - + col0 IS NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT ALL CAST( + col0 AS SIGNED ) + - - col2 + + col0 col1 FROM tab0 cor0
----
184
293
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT ALL CAST ( + col0 AS INTEGER ) + - - col2 + + col0 col1 FROM tab0 cor0
----
184
293
77

query I rowsort
SELECT - 35 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1138
3045
3851

query I rowsort
SELECT + + col1 + col2 + + 67 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-1975
-3912
-5433

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL + MAX( - col1 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1754
SELECT ALL + MAX ( - col1 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-1755
SELECT DISTINCT + + col1 DIV col1 + + - ( 57 ) AS col0, col0 FROM tab2 WHERE NOT + + col1 <= + col0
----
-56
46
-56
64

skipif mysql # not compatible
query II rowsort label-1755
SELECT DISTINCT + + col1 / col1 + + - ( 57 ) AS col0, col0 FROM tab2 WHERE NOT + + col1 <= + col0
----
-56
46
-56
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT DISTINCT - col0 DIV col0 * - col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT - col0 / col0 * - col0 AS col0 FROM tab1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 92 + 7 + - 78 * - col0, 53 + - - 51 )
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT + + MIN( + - col1 ) col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1759
SELECT DISTINCT + + MIN ( + - col1 ) col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + - ( + 73 ) AS col1 FROM tab0 AS cor0 WHERE col0 + + 53 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1761
SELECT ALL + - CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL + - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col1 FROM tab2 AS cor0
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND - 88
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN - 83 + + 96 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col0 FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT + + CAST( NULL AS SIGNED ) * - - col0 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT + + CAST ( NULL AS INTEGER ) * - - col0 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT DISTINCT - - col2 + - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - - col2 + - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 94 + + + 32 AS col0 FROM tab0 AS cor0
----
126
126
126

query I rowsort
SELECT ALL 56 * - col0 AS col2 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT COUNT( * ) * 89 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-1770
SELECT COUNT ( * ) * 89 FROM tab2
----
267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1771
SELECT + MAX( DISTINCT - CAST( 99 AS SIGNED ) ) + + + ( + + 97 ) + - + 27 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT + MAX ( DISTINCT - CAST ( 99 AS INTEGER ) ) + + + ( + + 97 ) + - + 27 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col1 / col1 * - 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1773
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 83 col1 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col2 * - 39 AS col2 FROM tab0 AS cor0
----
-1833
-3861
-390

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + col2 * + + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + MAX( col2 ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1778
SELECT + MAX ( col2 ) col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT 67 * + 37 AS col2 FROM tab0 AS cor0
----
2479
2479
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1780
SELECT MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL ( + col2 ) - + col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - col0 col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1783
SELECT DISTINCT - MAX( DISTINCT - + col0 ), CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
-3

skipif mysql # not compatible
query II rowsort label-1783
SELECT DISTINCT - MAX ( DISTINCT - + col0 ), CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
-3

query I rowsort
SELECT ALL col1 * 52 AS col2 FROM tab1
----
2444
260
728

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT - 11 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1785
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 11 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 + col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT 81 DIV - col2 AS col1 FROM tab0 WHERE NOT ( col0 DIV col1 < + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT 81 / - col2 AS col1 FROM tab0 WHERE NOT ( col0 / col1 < + 67 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT DISTINCT - + col0 DIV col2 * + col1 * col1 FROM tab0 AS cor0
----
-3528
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT - + col0 / col2 * + col1 * col1 FROM tab0 AS cor0
----
-3528
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT col1 DIV - col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1790
SELECT col1 / - col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT - CAST( + col0 AS SIGNED ) * 97 - col0 FROM tab2 AS cor0 WHERE NOT - col0 >= - 45 + 25 + 19
----
-4508
-6272
-7350

skipif mysql # not compatible
query I rowsort label-1791
SELECT - CAST ( + col0 AS INTEGER ) * 97 - col0 FROM tab2 AS cor0 WHERE NOT - col0 >= - 45 + 25 + 19
----
-4508
-6272
-7350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - + col0 * + 50 < + col2
----

query I rowsort
SELECT ( - col1 ) * 42 FROM tab2 AS cor0
----
-2142
-2814
-3234

query I rowsort
SELECT ( 47 ) AS col1 FROM tab2 AS cor0
----
47
47
47

query II rowsort
SELECT DISTINCT + - col2 AS col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT ALL - col2 * + - 63 / + 80 / - - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-1797
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 41 <> 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + - col0 + + ( - + col0 ) * col0 AS col2 FROM tab1
----
-2638
-7305
-8325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT col1 + - 4 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT col1 + - 4 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL - COUNT( * ) + + COUNT( + ( - - col1 ) ) * COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - COUNT ( * ) + + COUNT ( + ( - - col1 ) ) * COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT ALL 38 + 97 FROM tab0
----
135
135
135

query II rowsort
SELECT ALL + + col1 * - col2 AS col0, - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-210
-21
-3807
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + COUNT( * ) + - MAX( ALL + 12 ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1806
SELECT + COUNT ( * ) + - MAX ( ALL + 12 ) AS col2 FROM tab0 cor0
----
-9

query I rowsort
SELECT + - 47 AS col1 FROM tab2 AS cor0 WHERE - ( - - col0 ) NOT BETWEEN ( - - ( + col0 ) ) + col2 AND + ( - + 37 ) * + 81 - col2 * + + col1
----
-47
-47
-47

query I rowsort
SELECT + 74 * - 99 * - 89 AS col2 FROM tab1 AS cor0
----
652014
652014
652014

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1809
SELECT DISTINCT - SUM( DISTINCT - + CAST( NULL AS DECIMAL ) ) * + AVG ( DISTINCT + + 22 ) + + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT - SUM ( DISTINCT - + CAST ( NULL AS REAL ) ) * + AVG ( DISTINCT + + 22 ) + + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 - - col1 col1 FROM tab1
----
122
80
89

query I rowsort
SELECT ALL + - 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT - - col0 DIV - - col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-1812
SELECT - - col0 / - - col1 AS col0 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - col2 * - col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND 57
----
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT 44 * + + COUNT( * ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-1815
SELECT 44 * + + COUNT ( * ) FROM tab2
----
132

query I rowsort
SELECT + col0 * + 74 AS col1 FROM tab0
----
1110
6438
7178

query II rowsort
SELECT + col1 AS col0, + col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT ALL - col1 AS col0, col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT + col2 * + - col1 * + col0 AS col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT - COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1820
SELECT - COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL - ( + - 59 ) * - - COUNT( * ) AS col2 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - ( + - 59 ) * - - COUNT ( * ) AS col2 FROM tab2
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1822
SELECT ALL * FROM tab1 WHERE + CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1822
SELECT ALL * FROM tab1 WHERE + CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT ALL - 94 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1823
SELECT ALL - 94 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT MIN( ALL - - 28 ) AS col2 FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT MIN ( ALL - - 28 ) AS col2 FROM tab1 cor0
----
28

query I rowsort
SELECT ALL - ( - 94 ) * + - 59 AS col2 FROM tab1
----
-5546
-5546
-5546

query I rowsort
SELECT ALL + + 76 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - 6 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1828
SELECT ALL - 34 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) <= - col2
----

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - 34 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE 81 = 41 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE 81 = 41 + + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT + 77 + + - COUNT( * ) col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1830
SELECT + 77 + + - COUNT ( * ) col1 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT + 82 + - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1831
SELECT + 82 + - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT + 87 * - 1 + - - COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + 87 * - 1 + - - COUNT ( * ) FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1833
SELECT ALL 91 DIV - - CAST( + 54 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 91 / - - CAST ( + 54 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 * - col2 * - col2 + + 34 AS col2 FROM tab2 AS cor0
----
-102366
-24300
-252266

query I rowsort
SELECT 87 * + col0 * + + 70 * - col0 FROM tab1 AS cor0
----
-15840090
-44000250
-50431290

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL COUNT( * ) + 91 AS col0 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL COUNT ( * ) + 91 AS col0 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT COUNT( * ) * 13 AS col0 FROM tab0, tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT COUNT ( * ) * 13 AS col0 FROM tab0, tab0 AS cor0
----
117

query I rowsort
SELECT ALL ( + - 56 ) FROM tab0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - - MIN( + 4 ) - - + 31 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1840
SELECT - - MIN ( + 4 ) - - + 31 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT COUNT( * ) - + 39 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1841
SELECT COUNT ( * ) - + 39 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT - col1 + - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT - col1 + - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab1 WHERE + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 15 NOT BETWEEN col2 * 47 AND 84
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1846
SELECT - 59 - - COUNT( * ) AS col0 FROM tab2 WHERE + ( + CAST( col2 AS SIGNED ) ) BETWEEN NULL AND - col0 + 52
----
-59

skipif mysql # not compatible
query I rowsort label-1846
SELECT - 59 - - COUNT ( * ) AS col0 FROM tab2 WHERE + ( + CAST ( col2 AS INTEGER ) ) BETWEEN NULL AND - col0 + 52
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT MAX( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT MAX ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 < ( col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab2 WHERE NOT ( + ( - ( col0 ) ) * 15 ) IS NULL
----
28
37
9

query I rowsort
SELECT DISTINCT col0 / + col0 AS col2 FROM tab0 WHERE NOT - col1 NOT BETWEEN col1 + - ( - 50 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 54 + - col1 * + col1 BETWEEN - col1 / 93 AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 54 + col2 FROM tab1
----
113
122
150

query III rowsort
SELECT ALL * FROM tab2 WHERE 25 * col1 IN ( + 65 / - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT + 46 - - COUNT( * ) FROM tab1 WHERE + col0 * + col0 + col0 NOT IN ( + 91 )
----
49

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + 46 - - COUNT ( * ) FROM tab1 WHERE + col0 * + col0 + col0 NOT IN ( + 91 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1855
SELECT ALL * FROM tab0 WHERE + col1 + col2 >= - CAST( 44 AS SIGNED ) * - 30
----

skipif mysql # not compatible
query III rowsort label-1855
SELECT ALL * FROM tab0 WHERE + col1 + col2 >= - CAST ( 44 AS INTEGER ) * - 30
----

query I rowsort
SELECT ALL - 15 + - col0 AS col0 FROM tab1
----
-100
-106
-66

query III rowsort
SELECT ALL * FROM tab2 WHERE + 75 * + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT ALL col0 + col2 DIV col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL col0 + col2 / col0 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT - 29 + + col2 FROM tab0
----
-19
18
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - SUM( DISTINCT + 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-1860
SELECT - SUM ( DISTINCT + 14 ) FROM tab1
----
-14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 92 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1862
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1862
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

query I rowsort
SELECT + 57 AS col1 FROM tab1 cor0 WHERE NOT col1 - col1 * + col0 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL + CAST( + 98 AS SIGNED ) + col0 FROM tab1 AS cor0
----
149
183
189

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + CAST ( + 98 AS INTEGER ) + col0 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT col2 * + col2 FROM tab0 WHERE 98 * - 64 NOT BETWEEN + col2 + 65 AND NULL
----
100
2209
9801

query I rowsort
SELECT - 97 * - col0 FROM tab1 AS cor0
----
4947
8245
8827

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 93 NOT BETWEEN - 10 AND ( + 22 * col0 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT COUNT( 9 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT COUNT ( 9 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT - CAST( 36 AS SIGNED ) * - col0 + col0 * - col1 FROM tab1 AS cor0
----
-1001
1122
2635

skipif mysql # not compatible
query I rowsort label-1869
SELECT - CAST ( 36 AS INTEGER ) * - col0 + col0 * - col1 FROM tab1 AS cor0
----
-1001
1122
2635

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 > col2 / - 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col1 + 18 AS col0 FROM tab2 AS cor0
----
-33
-49
-59

query I rowsort
SELECT ALL - + 86 * - col2 + + col2 FROM tab2 AS cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) + + ( + col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) + + ( + col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 32 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + COUNT( * ) FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT + COUNT ( * ) FROM tab0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + - col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT col0 + - 46 AS col2 FROM tab1
----
39
45
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT - col2 + - CAST( col1 AS SIGNED ) FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-1879
SELECT - col2 + - CAST ( col1 AS INTEGER ) FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT DISTINCT - COUNT( * ) + + 91 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - COUNT ( * ) + + 91 FROM tab0
----
88

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 55 + - col2
----

query I rowsort
SELECT ALL col2 / col2 FROM tab2 WHERE - col2 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT MIN( DISTINCT + - 57 ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT MIN ( DISTINCT + - 57 ) AS col1 FROM tab0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT 66 FROM tab2 WHERE NOT NULL IN ( - + CAST( NULL AS SIGNED ) / - col1 )
----

skipif mysql # not compatible
query I rowsort label-1884
SELECT 66 FROM tab2 WHERE NOT NULL IN ( - + CAST ( NULL AS INTEGER ) / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT + 36 * - + MAX( + col2 ) FROM tab0
----
-3564

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + 36 * - + MAX ( + col2 ) FROM tab0
----
-3564

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 47 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + - MIN( ALL - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1887
SELECT + - MIN ( ALL - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT DISTINCT + CAST( - ( - col1 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1888
SELECT DISTINCT + CAST ( - ( - col1 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1889
SELECT ALL - 85, - CAST( - - COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-85
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1889
SELECT ALL - 85, - CAST ( - - COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-85
-3

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab0 AS cor0 WHERE col2 + col0 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT + - COUNT( ALL + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1891
SELECT + - COUNT ( ALL + - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( 75 ) ) NOT BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT + COUNT( * ) col1, + MIN( + col0 ) AS col1 FROM tab0 cor0
----
3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1893
SELECT + COUNT ( * ) col1, + MIN ( + col0 ) AS col1 FROM tab0 cor0
----
3
15

query I rowsort
SELECT col0 * + col0 * col0 - + 72 * col2 FROM tab1 AS cor0
----
125739
609877
748675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= 88 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= 88 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1896
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST( - col1 AS DECIMAL ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-1896
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST ( - col1 AS REAL ) * col2 )
----

query I rowsort
SELECT - col0 * 2 FROM tab1 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col1 + + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL + - ( + COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + - ( + COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE ( col1 ) NOT BETWEEN + col1 * 48 AND ( + col1 + - col2 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL + COUNT( - + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL + COUNT ( - + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----
0

query I rowsort
SELECT ALL - - col1 FROM tab0 cor0 WHERE 44 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1905
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT ALL - 81 DIV col0 + + - col2 + - col0 * + + 68 AS col2 FROM tab1
----
-3565
-5839
-6256

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL - 81 / col0 + + - col2 + - col0 * + + 68 AS col2 FROM tab1
----
-3565
-5839
-6256

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + 11 + - ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col1 ) AND col0 / - col1 / - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL MIN( - 23 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL MIN ( - 23 ) FROM tab2 cor0
----
-23

query I rowsort
SELECT DISTINCT col1 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT + col1 * - - col1 + - col0 - - 57 AS col0 FROM tab2 AS cor0
----
2612
4471
5922

query I rowsort
SELECT DISTINCT + - 7 FROM tab2 AS cor0 WHERE NOT - 73 * col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT - col1 AS col2, + col2 * col0 AS col1 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

query I rowsort
SELECT DISTINCT + + col1 * 98 FROM tab2 AS cor0
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + 56 * + COUNT( * ) FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1915
SELECT + 56 * + COUNT ( * ) FROM tab2 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + + ( COUNT( * ) ) * + + ( - - 0 ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT + + ( COUNT ( * ) ) * + + ( - - 0 ) AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + col1 + - 45 * + col2 AS col1 FROM tab0 AS cor0
----
-2034
-429
-4454

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT IN ( + + col2, 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * col0 + col0 + + col1 * 53 * - + col1 FROM tab0
----
-22416
-347013
9647

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * col1 + + - col2 AS col1 FROM tab2
----
1150
3040
3828

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1922
SELECT * FROM tab0 WHERE ( NOT ( - 51 ) >= ( - CAST( + - col0 AS DECIMAL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1922
SELECT * FROM tab0 WHERE ( NOT ( - 51 ) >= ( - CAST ( + - col0 AS REAL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1923
SELECT ALL * FROM tab1, tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-1923
SELECT ALL * FROM tab1, tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + - col2 col1 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT 13 * col2 - - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT 13 * col2 - - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + - col0 * + - col2 - - + col2 * col0 AS col2 FROM tab2
----
-161280
-321900
-47610

query I rowsort
SELECT ALL - 24 - - + col1 AS col1 FROM tab2
----
27
43
53

query I rowsort
SELECT col1 - - col2 + + col2 - + col0 * col0 FROM tab0 AS cor0
----
-50
-7528
-9210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1929
SELECT ALL MIN( + - CAST( col1 AS SIGNED ) ) - - + 86 AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL MIN ( + - CAST ( col1 AS INTEGER ) ) - - + 86 AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + col0 - + - 7 > + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= 96 + col1 * - 33 + + 25 + + col0 * - 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col1 FROM tab0
----
40

query I rowsort
SELECT ALL + + 47 AS col1 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1934
SELECT * FROM tab1 cor0 WHERE NOT - col1 + + col1 / - + col2 <= ( col0 - col2 + + + CAST( + col2 AS SIGNED ) * 29 )
----

skipif mysql # not compatible
query III rowsort label-1934
SELECT * FROM tab1 cor0 WHERE NOT - col1 + + col1 / - + col2 <= ( col0 - col2 + + + CAST ( + col2 AS INTEGER ) * 29 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 * + 28 ) >= NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT DISTINCT * FROM tab2 WHERE ( + col0 * + col2 + + col0 + CAST( NULL AS SIGNED ) + - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1937
SELECT DISTINCT * FROM tab2 WHERE ( + col0 * + col2 + + col0 + CAST ( NULL AS INTEGER ) + - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT IN ( - col1, col1 - + col0 * + col2 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + 86 * + + col0 + - col2 FROM tab0
----
-1
8243
-21
7472
-81
1243

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT COUNT( * ) * - + 39 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-1940
SELECT COUNT ( * ) * - + 39 FROM tab1
----
-117

query I rowsort
SELECT - 16 AS col1 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 6 ) IN ( + col2, col1 / + 52 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 93 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 37 * - 63 / 4 * - 38 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1945
SELECT DISTINCT col2, - col2 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1945
SELECT DISTINCT col2, - col2 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT - MAX( DISTINCT - - 46 ) FROM tab2 WHERE ( NULL ) IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - MAX ( DISTINCT - - 46 ) FROM tab2 WHERE ( NULL ) IS NULL
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + - col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - 81 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-81

query II rowsort
SELECT DISTINCT 86 - + col2 AS col2, - col0 FROM tab0
----
-13
-97
39
-15
76
-87

query I rowsort
SELECT - 34 - - 60 - + col0 AS col1 FROM tab2 AS cor0
----
-20
-38
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + + col2 * + + col1 col2 FROM tab0 AS cor0
----
198
420
7614

query I rowsort
SELECT DISTINCT + col0 + col1 AS col0 FROM tab2 cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT DISTINCT - col1 DIV - - col2 AS col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT - col1 / - - col2 AS col1 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT DISTINCT 31 * - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT 31 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + 33 FROM tab1 AS cor0
----
38
47
80

query I rowsort
SELECT + 71 + + - 19 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL - ( - - 63 ) + COUNT( ALL - 22 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - ( - - 63 ) + COUNT ( ALL - 22 ) FROM tab2
----
-60

query II rowsort
SELECT col2 AS col0, - col0 AS col1 FROM tab0 WHERE ( + + ( + col0 ) ) IS NOT NULL
----
10
-87
47
-15
99
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1960
SELECT DISTINCT + + COUNT( * ) AS col2, 19 * - - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
3
60

skipif mysql # not compatible
query II rowsort label-1960
SELECT DISTINCT + + COUNT ( * ) AS col2, 19 * - - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
3
60

query I rowsort
SELECT + col2 * - 6 * 92 FROM tab0 AS cor0
----
-25944
-54648
-5520

query II rowsort
SELECT 4 AS col1, - col1 FROM tab2 AS cor0
----
4
-51
4
-67
4
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT 58 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1963
SELECT 58 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
174

query I rowsort
SELECT + ( - 14 ) AS col2 FROM tab1 WHERE NOT ( - 86 + - + col0 * 95 - 83 * + - col1 * col2 * - - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1965
SELECT DISTINCT + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT DISTINCT + - 6 AS col1, ( - 82 ) FROM tab1 AS cor0
----
-6
-82

query II rowsort
SELECT ALL - + 11 AS col2, + col0 * + + col0 * + 49 FROM tab0 AS cor0
----
-11
11025
-11
370881
-11
461041

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + COUNT( - col0 ) + + 91 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1969
SELECT + COUNT ( - col0 ) + + 91 FROM tab2 AS cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 49 * + - col2 NOT IN ( - - 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL - + 94 DIV - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - + 94 / - col2 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + COUNT( * ) * + 41 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT + COUNT ( * ) * + 41 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ( col0 ) AS col0, + 6 * + + col0 FROM tab0 cor0
----
15
90
87
522
97
582

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ( SUM( + 77 ) ) AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-1975
SELECT ( SUM ( + 77 ) ) AS col2 FROM tab2
----
231

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 < + ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - col0 ), col0 col0 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - + 22 * COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1978
SELECT - + 22 * COUNT ( * ) FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + - MAX( ALL + - col2 ) * + COUNT( * ) - - COUNT( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1979
SELECT + - MAX ( ALL + - col2 ) * + COUNT ( * ) - - COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - MIN( - ( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1980
SELECT - MIN ( - ( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + 3 + + 91 AS col1 FROM tab2 WHERE - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ALL COUNT( ALL - col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL COUNT ( ALL - col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + col0 NOT BETWEEN - col1 + - col2 / - + 87 AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 59 * + - col0 * + - col0 + + col0 + col2 * - col1 AS col2, - 5 AS col1 FROM tab2 cor0
----
123717
-5
238648
-5
328064
-5

query I rowsort
SELECT ALL col1 + ( col2 ) * col2 + - 4 FROM tab2 AS cor0
----
1673
3427
576

query I rowsort
SELECT - col0 - + col2 * + + 61 FROM tab1 AS cor0
----
-3684
-4239
-5907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * - 79 col2 FROM tab0
----
-4977

query III rowsort
SELECT * FROM tab2 WHERE - 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL - 24 + - CAST( - col0 AS SIGNED ) FROM tab1
----
27
61
67

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - 24 + - CAST ( - col0 AS INTEGER ) FROM tab1
----
27
61
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 = 91 / - + 52
----
3

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 = 91 / - + 52
----
3

query I rowsort
SELECT + + 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT + 19 * - - ( - + col1 ) AS col1 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab1 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT - + MAX( ( - - 80 ) ) AS col1 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT - + MAX ( ( - - 80 ) ) AS col1 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT ALL col2 * + col2 * col2 FROM tab1 AS cor0
----
205379
314432
884736

query II rowsort
SELECT DISTINCT - col1 AS col0, + col2 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col0 AND ( + + ( + col0 ) * - + 20 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - - 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 33 col2 FROM tab2 AS cor0
----
56
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2000
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 IN ( - 19, CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2000
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 IN ( - 19, CAST ( + col0 AS INTEGER ) )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2002
SELECT - SUM( DISTINCT - col1 ) + - - MIN( ALL - col0 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT - SUM ( DISTINCT - col1 ) + - - MIN ( ALL - col0 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 6 * - - 25 AS col1 FROM tab2
----
150

query I rowsort
SELECT + 54 + - col2 FROM tab2
----
-4
14
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL COUNT( * ) * + COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2005
SELECT ALL COUNT ( * ) * + COUNT ( * ) col1 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT + CAST( + col2 AS SIGNED ) + + col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2006
SELECT + CAST ( + col2 AS INTEGER ) + + col1 FROM tab1
----
110
115
64

query I rowsort
SELECT 9 * + 0 FROM tab1 WHERE NULL >= + col0 - - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - - 90 + - MAX( ALL + col2 ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2009
SELECT - - 90 + - MAX ( ALL + col2 ) FROM tab0 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT - col2 + + col2 * + 59 * CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT - col2 + + col2 * + 59 * CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col2 + - col0 - + 77 AS col0 FROM tab2 AS cor0
----
-1741
-3516
-652

query I rowsort
SELECT - 69 - col0 FROM tab0 cor0
----
-156
-166
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col1 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( - + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + + COUNT( - - 66 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT + + COUNT ( - - 66 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL ( + - 74 ) * + col0 - + - col0 AS col0 FROM tab2 cor0
----
-3358
-4672
-5475

query I rowsort
SELECT - col0 * col2 * + - col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT + col0 * + - 98 + - col2 * col0 FROM tab2 AS cor0
----
-11700
-5566
-8832

query I rowsort
SELECT + ( 12 ) AS col1 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT ALL ( ( + - ( + col0 ) ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2020
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 <> 83 * - 57 + col2 + + CAST( - - 38 AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-2020
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 <> 83 * - 57 + col2 + + CAST ( - - 38 AS INTEGER ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT 24 * + + COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT 24 * + + COUNT ( * ) FROM tab0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT - COUNT( * ) + + 55 + - 83 * COUNT( * ) FROM tab2 AS cor0
----
-197

skipif mysql # not compatible
query I rowsort label-2023
SELECT - COUNT ( * ) + + 55 + - 83 * COUNT ( * ) FROM tab2 AS cor0
----
-197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2024
SELECT ALL * FROM tab1 cor0 WHERE NULL > CAST( NULL AS SIGNED ) + col1 * col2
----

skipif mysql # not compatible
query III rowsort label-2024
SELECT ALL * FROM tab1 cor0 WHERE NULL > CAST ( NULL AS INTEGER ) + col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT - CAST( NULL AS SIGNED ) * + - col1 + col0 - + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT - CAST ( NULL AS INTEGER ) * + - col1 + col0 - + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 AS col0 FROM tab1 AS cor0 WHERE - 68 IS NULL
----

query II rowsort
SELECT - ( + col1 ) AS col2, + col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL - col0 + 64 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT col0 * - - col2 * + col0 * + col0 + + + col2 DIV - 20 + + 94 + + ( col0 ) + - + col0 DIV + - col1 FROM tab1
----
12734640
36233569
51243011

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT col0 * - - col2 * + col0 * + col0 + + + col2 / - 20 + + 94 + + ( col0 ) + - + col0 / + - col1 FROM tab1
----
12734640
36233569
51243011

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2030
SELECT * FROM tab2 WHERE col2 / + - 17 BETWEEN CAST( - col1 AS SIGNED ) AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2030
SELECT * FROM tab2 WHERE col2 / + - 17 BETWEEN CAST ( - col1 AS INTEGER ) AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2031
SELECT DISTINCT * FROM tab1 WHERE ( 46 ) >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2031
SELECT DISTINCT * FROM tab1 WHERE ( 46 ) >= + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 13 + - - col0 FROM tab0
----
2
74
84

query I rowsort
SELECT ALL col0 + ( - 97 ) FROM tab1
----
-12
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - COUNT( * ) * 75 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-2034
SELECT - COUNT ( * ) * 75 FROM tab0
----
-225

query I rowsort
SELECT ALL + 53 - - col2 FROM tab1 cor0
----
112
121
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2036
SELECT - - COUNT( + 19 ) FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) + - 82 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2036
SELECT - - COUNT ( + 19 ) FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) + - 82 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT + COUNT( * ) * + - CAST( - + 70 AS SIGNED ) - 25 + MIN( - col2 ) col1 FROM tab1 cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2037
SELECT + COUNT ( * ) * + - CAST ( - + 70 AS INTEGER ) - 25 + MIN ( - col2 ) col1 FROM tab1 cor0
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2038
SELECT + 2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT + 2 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2039
SELECT ALL + - CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + - CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, - col0 AS col2 FROM tab0 WHERE - - col0 <= 84 * + col0 + col0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL 3 + + 29 AS col2 FROM tab2
----
32
32
32

query I rowsort
SELECT + - ( - - 41 ) FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - col1 + - - 96 FROM tab0 AS cor0
----
15
75
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 col0 FROM tab2 AS cor0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 80 + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + ( col0 ) IS NOT NULL
----

query II rowsort
SELECT + + col2, 48 FROM tab1 AS cor0
----
59
48
68
48
96
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT + - ( + CAST( - - COUNT( ALL ( - 83 ) ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2048
SELECT + - ( + CAST ( - - COUNT ( ALL ( - 83 ) ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2049
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT - MAX( - col2 ), + MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
59
47

skipif mysql # not compatible
query II rowsort label-2050
SELECT - MAX ( - col2 ), + MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
59
47

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + col1 BETWEEN - col0 * + + 58 AND - ( + - col2 )
----
-14
-47
-5

query I rowsort
SELECT - 52 * - col2 AS col2 FROM tab2 AS cor0
----
1196
2080
3016

query I rowsort
SELECT + col2 * - 43 + + ( - col0 ) FROM tab0 cor0
----
-2036
-4354
-517

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + ( - - col0 )
----

query I rowsort
SELECT + - col2 - - - col1 + + - col2 FROM tab1 AS cor0 WHERE NOT col1 > col1 * + col1
----
-123
-183
-206

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT 65 DIV col1 col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2057
SELECT 65 / col1 col1 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 * + col0 * + + col0 * col0 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - - ( - COUNT( * ) ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT - - ( - COUNT ( * ) ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - + col2 AND col2 * + col2 + + col1
----

query I rowsort
SELECT 6 * col2 AS col1 FROM tab0 cor0
----
282
594
60

query I rowsort
SELECT - 39 * - 92 FROM tab1 AS cor0
----
3588
3588
3588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 12, col0 col0 FROM tab2 AS cor0
----
12
46
12
64
12
75

query I rowsort
SELECT ALL + 17 + col0 AS col1 FROM tab1 AS cor0
----
102
108
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL ( + MAX( - col0 ) ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL ( + MAX ( - col0 ) ) AS col0 FROM tab1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT DISTINCT MAX( DISTINCT col0 ) * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT MAX ( DISTINCT col0 ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col2 * 68 + col1 FROM tab0
----
3277
6733
701

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT DISTINCT 27 + + + 47 DIV - + col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT 27 + + + 47 / - + col0 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - COUNT( DISTINCT 94 ) + 41 AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2069
SELECT - COUNT ( DISTINCT 94 ) + 41 AS col2 FROM tab0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 97 * - 31 - - col2 FROM tab0
----
-2908
-2960
-2997

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 99 AS col0 FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + 29 * - col2 AS col0 FROM tab0
----
-1363
-2871
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) + + + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT - 9 * + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - 9 * + COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT ALL 58 AS col1, + COUNT( * ) AS col0 FROM tab2
----
58
3

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL 58 AS col1, + COUNT ( * ) AS col0 FROM tab2
----
58
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT - 17 * - MAX( + col2 ) AS col1 FROM tab1
----
1632

skipif mysql # not compatible
query I rowsort label-2079
SELECT - 17 * - MAX ( + col2 ) AS col1 FROM tab1
----
1632

query I rowsort
SELECT - + col0 * 15 FROM tab2 WHERE NOT + + col0 + + col0 + - 52 IS NULL
----
-1125
-690
-960

query II rowsort
SELECT - col2 AS col0, - ( + 69 ) AS col1 FROM tab2
----
-23
-69
-40
-69
-58
-69

query II rowsort
SELECT col0, - 69 * ( - 15 ) FROM tab1
----
51
1035
85
1035
91
1035

query II rowsort
SELECT ALL - 83, col0 AS col1 FROM tab2
----
-83
46
-83
64
-83
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL + MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT - + col1 DIV 94 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2085
SELECT - + col1 / 94 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2086
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 43 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2086
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 43 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT + + COUNT( * ) + 21 FROM tab0 WHERE + col0 + - ( - + 41 ) * 79 - + 96 * 60 / + col1 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + + COUNT ( * ) + 21 FROM tab0 WHERE + col0 + - ( - + 41 ) * 79 - + 96 * 60 / + col1 IS NOT NULL
----
24

query I rowsort
SELECT DISTINCT ( + - 41 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT COUNT( col0 ) + + - 6 AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2089
SELECT COUNT ( col0 ) + + - 6 AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2090
SELECT + - CAST( NULL AS SIGNED ) + + + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL - CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + 12 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 12 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT + 26 DIV + + col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT + 26 / + + col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT col0 DIV - - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2093
SELECT col0 / - - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT + col0 + - 20 * - ( col1 ) + ( - - 85 ) + - - 98 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
1214
368
514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab0 WHERE NULL BETWEEN + 95 * - col1 + + 41 AND col0 * + 63 + col1
----

query I rowsort
SELECT ALL + 59 + + + 50 AS col0 FROM tab2
----
109
109
109

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2097
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) + - col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-2097
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) + - col0 >= NULL
----

query I rowsort
SELECT - 53 - col1 AS col2 FROM tab2 AS cor0
----
-104
-120
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) + - 15 FROM tab0 AS cor0 WHERE NULL <= 1
----

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) + - 15 FROM tab0 AS cor0 WHERE NULL <= 1
----

query I rowsort
SELECT 88 + col2 FROM tab2 AS cor0
----
111
128
146

query I rowsort
SELECT DISTINCT + col2 * 55 * - 83 FROM tab0
----
-214555
-451935
-45650

query II rowsort
SELECT - ( - + col1 ), col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + col2 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 85 IS NOT NULL AND NOT - col2 = - 74 * + - col1
----

query I rowsort
SELECT DISTINCT + - 4 AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT ALL + 92 FROM tab1 cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, 57 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2108
SELECT ALL - col1 * - - CAST( NULL AS DECIMAL ) AS col0, + CAST( - + ( col0 ) AS SIGNED ) + + + col1 * - 13 AS col2 FROM tab0 AS cor0
----
NULL
-1068
NULL
-110
NULL
-360

skipif mysql # not compatible
query II rowsort label-2108
SELECT ALL - col1 * - - CAST ( NULL AS REAL ) AS col0, + CAST ( - + ( col0 ) AS INTEGER ) + + + col1 * - 13 AS col2 FROM tab0 AS cor0
----
NULL
-1068
NULL
-110
NULL
-360

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * ( + + ( + + 5 ) ) FROM tab0 AS cor0
----
105
405
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT DISTINCT - - col0 DIV col2 * col1 FROM tab2 cor0
----
102
67
77

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT - - col0 / col2 * col1 FROM tab2 cor0
----
102
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT 98 * - + 57 * + col2 * col0 FROM tab2
----
-14300160
-24299100
-5909988

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + MIN( DISTINCT 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-2114
SELECT + MIN ( DISTINCT 49 ) FROM tab1
----
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + 61 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + col1 + + 2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
16
49
7

query II rowsort
SELECT + 85 AS col1, col2 FROM tab1
----
85
59
85
68
85
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT + col2 DIV + + 98 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT + col2 / + + 98 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 57 * + - col1 * col0 AS col2 FROM tab0
----
104139
5529
69255

query I rowsort
SELECT ALL col2 * + + 80 * + 96 * + 71 FROM tab2 AS cor0
----
12541440
21811200
31626240

query I rowsort
SELECT + - 36 + + col2 AS col0 FROM tab1 AS cor0
----
23
32
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT - MAX( DISTINCT - CAST( + 22 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - MAX ( DISTINCT - CAST ( + 22 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - - 90 * + 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL + + COUNT( * ) * + 41 AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + + COUNT ( * ) * + 41 AS col2 FROM tab0 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL + ( CAST( - + col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + ( CAST ( - + col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT DISTINCT - ( - 67 ) * COUNT( - ( + 79 ) ) AS col2 FROM tab0 cor0
----
201

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - ( - 67 ) * COUNT ( - ( + 79 ) ) AS col2 FROM tab0 cor0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2127
SELECT * FROM tab0 cor0 WHERE NULL > - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2127
SELECT * FROM tab0 cor0 WHERE NULL > - col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 + + 28 * + col2 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT + ( SUM( DISTINCT 20 ) ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + ( SUM ( DISTINCT 20 ) ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT ALL - col1 + - col2 * + col0 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT AVG ( + + 81 ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT ALL - COUNT( * ) + - - COUNT( * ) DIV + - 38 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) / + - 38 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col2 * 78 + - + 66 AS col2, ( + - col0 ) + col2 FROM tab1
----
-4668
-26
-5370
-23
-7554
45

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT ALL + 84 * 71 - col1 AS col0, ( - 28 ) + - - col1 FROM tab2
----
5887
49
5897
39
5913
23

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
51
67
77

query I rowsort
SELECT ALL + col1 * - - 47 FROM tab0 AS cor0
----
3807
47
987

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT DISTINCT + - COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-2139
SELECT DISTINCT + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + COUNT( ALL - - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2140
SELECT + COUNT ( ALL - - col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT DISTINCT MAX( DISTINCT - 20 ) DIV + COUNT( + - 34 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT MAX ( DISTINCT - 20 ) / + COUNT ( + - 34 ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL + 23 * + ( + + col2 ) + 94 FROM tab1 AS cor0
----
1451
1658
2302

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT + col1 * - 43 * col0 / - - 21 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, + col0 col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + 72 * - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2145
SELECT + 72 * - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-216

query I rowsort
SELECT DISTINCT + col1 * - 93 AS col1 FROM tab1
----
-1302
-4371
-465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2147
SELECT ALL * FROM tab0 WHERE NOT CAST( - - col1 AS SIGNED ) - col2 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2147
SELECT ALL * FROM tab0 WHERE NOT CAST ( - - col1 AS INTEGER ) - col2 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 * 31 col1, col1 * + 95 - col1 AS col2 FROM tab2
----
2325
4794
2325
6298
2325
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL SUM( ALL 99 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL SUM ( ALL 99 ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL COUNT( * ) * - - 54 AS col1 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL COUNT ( * ) * - - 54 AS col1 FROM tab0
----
162

query I rowsort
SELECT ALL 38 * - ( + col0 ) FROM tab2
----
-1748
-2432
-2850

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2153
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN + 92 + + - CAST( NULL AS SIGNED ) + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2153
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN + 92 + + - CAST ( NULL AS INTEGER ) + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT DISTINCT 26 * + - 58 + + CAST( - ( + + 34 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-1542

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2154
SELECT DISTINCT 26 * + - 58 + + CAST ( - ( + + 34 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-1542

query I rowsort
SELECT DISTINCT - - col2 + 92 AS col2 FROM tab0 AS cor0
----
102
139
191

query I rowsort
SELECT ( - 13 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL col2 * + col2 - 99 + + col1 * - 66 * + - col1 AS col0 FROM tab2 AS cor0
----
172096
299539
392815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 53 col0, - col1 AS col2 FROM tab1 AS cor0
----
53
-14
53
-47
53
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL COUNT( DISTINCT + 70 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2159
SELECT ALL COUNT ( DISTINCT + 70 ) col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2160
SELECT DISTINCT - 30 + + 68 DIV - 6 AS col0, - MIN( + 1 ) FROM tab2 AS cor0
----
-41
-1

skipif mysql # not compatible
query II rowsort label-2160
SELECT DISTINCT - 30 + + 68 / - 6 AS col0, - MIN ( + 1 ) FROM tab2 AS cor0
----
-41
-1

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * - - 51 ) IS NULL
----
51
67
77

query I rowsort
SELECT ALL - + col2 + + col1 + - 2 * + col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL 44 + - + col0 FROM tab1
----
-41
-47
-7

query I rowsort
SELECT col1 - + ( 75 ) FROM tab2
----
-24
-8
2

query III rowsort
SELECT * FROM tab0 WHERE + - 42 - 71 / - - col2 >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 92 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - ( - + col0 ) * 17
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - 13 ) * + 35 > 48
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL = ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 91 * + - 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2171
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2171
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + + + col0 IS NULL
----

query I rowsort
SELECT + - col0 * - ( + col0 ) * - + col0 FROM tab2 AS cor0
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - + SUM( + 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - + SUM ( + 0 ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE NOT - - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT 1 DIV - + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT 1 / - + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - + col2 * - col2 + - 81 AS col2 FROM tab1 cor0
----
3400
4543
9135

query II rowsort
SELECT col0 * + col0 AS col1, - 30 AS col2 FROM tab1 cor0
----
2601
-30
7225
-30
8281
-30

query I rowsort
SELECT DISTINCT 0 * + 25 + + 37 + + + col0 * + col1 * + - 92 * col2 + - 23 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN 1 AND - + 54
----

query I rowsort
SELECT 95 AS col2 FROM tab2 WHERE NOT - col2 / + - 6 BETWEEN - + 86 * - + 84 / 72 AND NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL - 16 * - - 39 * - - 67 * + + MAX( + col2 ) FROM tab2
----
-2424864

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - 16 * - - 39 * - - 67 * + + MAX ( + col2 ) FROM tab2
----
-2424864

query I rowsort
SELECT - 22 * col1 * 51 FROM tab1
----
-15708
-52734
-5610

onlyif mysql # DIV for integer division: 
query II rowsort label-2182
SELECT ALL + col0 DIV + - col1 - + 48 AS col0, - col0 FROM tab2 WHERE - 68 IS NOT NULL
----
-48
-46
-48
-64
-49
-75

skipif mysql # not compatible
query II rowsort label-2182
SELECT ALL + col0 / + - col1 - + 48 AS col0, - col0 FROM tab2 WHERE - 68 IS NOT NULL
----
-48
-46
-48
-64
-49
-75

query I rowsort
SELECT - col0 + + 8 AS col1 FROM tab0
----
-7
-79
-89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2184
SELECT ALL CAST( NULL AS DECIMAL ) + - CAST( + 48 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL CAST ( NULL AS REAL ) + - CAST ( + 48 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 35 * - 90 AS col0 FROM tab0
----
-3150
-3150
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT DISTINCT - col0 DIV - - col0 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - col0 / - - col0 AS col1 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col2 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT ALL col2 + + - 83 FROM tab1 AS cor0
----
-15
-24
13

query I rowsort
SELECT DISTINCT - col0 - + col2 AS col1 FROM tab1
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT ALL - 23 DIV - 29 * - ( - 49 ) - - - 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 23 / - 29 * - ( - 49 ) - - - 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL - col1 * 7 - col2 AS col0 FROM tab2 cor0
----
-380
-527
-579

query I rowsort
SELECT ALL - 64 AS col2 FROM tab1 cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + MAX( DISTINCT + col1 ) + ( + 94 ) AS col1 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2194
SELECT + MAX ( DISTINCT + col1 ) + ( + 94 ) AS col1 FROM tab2 AS cor0
----
171

query I rowsort
SELECT - 27 + + ( 71 ) FROM tab2
----
44
44
44

query I rowsort
SELECT DISTINCT - col2 * + + col0 * col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT + 7 * - COUNT( * ) * 84 FROM tab1
----
-1764

skipif mysql # not compatible
query I rowsort label-2197
SELECT + 7 * - COUNT ( * ) * 84 FROM tab1
----
-1764

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

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

query II rowsort
SELECT col1 AS col1, col0 * + col1 FROM tab0
----
1
97
21
1827
81
1215

query III rowsort
SELECT ALL * FROM tab1 WHERE + 54 >= + + col0
----
51
14
96

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL = + col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + 77 * - COUNT( * ) FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 77 * - COUNT ( * ) FROM tab2 cor0
----
-231

query I rowsort
SELECT DISTINCT col0 * 69 FROM tab1
----
3519
5865
6279

query I rowsort
SELECT 21 + - - 33 AS col0 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT - + ( col1 ) + - - col1 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
103776
120
2730

onlyif mysql # DIV for integer division: 
query II rowsort label-2207
SELECT ALL + col1 AS col1, 99 DIV - col1 col2 FROM tab0 AS cor0
----
1
-99
21
-4
81
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2207
SELECT ALL + col1 AS col1, 99 / - col1 col2 FROM tab0 AS cor0
----
1
-99
21
-4
81
-1

query II rowsort
SELECT DISTINCT col0 AS col2, + col1 FROM tab1 AS cor0 WHERE + col2 * 83 * col1 * + 70 IS NOT NULL
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL - 46 + MIN( - 45 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - 46 + MIN ( - 45 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT SUM( DISTINCT + col0 ) * COUNT( * ) + + 34 FROM tab0
----
631

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT SUM ( DISTINCT + col0 ) * COUNT ( * ) + + 34 FROM tab0
----
631

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + ( - 14 ) col1 FROM tab2 WHERE - + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL col0 DIV - - ( - col2 ) + - + 74 AS col1 FROM tab1
----
-74
-75
-75

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL col0 / - - ( - col2 ) + - + 74 AS col1 FROM tab1
----
-74
-75
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2213
SELECT ALL + MAX( DISTINCT - + ( + 34 ) ) + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + MAX ( DISTINCT - + ( + 34 ) ) + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT COUNT( DISTINCT - + 94 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT COUNT ( DISTINCT - + 94 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + col1 * + col2 + col1 + - col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + 65 * + col1 + 70 FROM tab1 AS cor0
----
3125
395
980

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 cor0 WHERE NOT - 92 IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( - col0 ) + + col2 * + 88, col2 * + - col1 * - - col2 * - 20 AS col2 FROM tab2
----
1978
539580
3456
2464000
5029
4507760

query I rowsort
SELECT ALL + 82 + 62 * 54 + 36 FROM tab1
----
3466
3466
3466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT ALL - + COUNT( * ) - + 89 + - 44 + + MIN( DISTINCT - + col0 ) * - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - + COUNT ( * ) - + 89 + - 44 + + MIN ( DISTINCT - + col0 ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) - + + 18 col0, + col0 * + 62 AS col1 FROM tab1 AS cor0
----
-23
5270
-32
3162
-65
5642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT DISTINCT - 32 * CAST( NULL AS SIGNED ) + + col2 - + 76 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT - 32 * CAST ( NULL AS INTEGER ) + + col2 - + 76 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT COUNT( 89 ) + + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT COUNT ( 89 ) + + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col0 * + 66 AS col2 FROM tab1 AS cor0
----
3366
5610
6006

query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT DISTINCT - 2 DIV - - MIN( - col0 ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2226
SELECT DISTINCT - 2 / - - MIN ( - col0 ) col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2227
SELECT ALL * FROM tab2 WHERE NOT + + col0 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2227
SELECT ALL * FROM tab2 WHERE NOT + + col0 + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT - col2 DIV - - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2228
SELECT - col2 / - - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT ALL - col1 DIV - + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL - col1 / - + col2 FROM tab2
----
1
1
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 67 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col1 FROM tab1
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 * - + 78 col1, 50 * col2 AS col2 FROM tab2
----
-2340
1150
-2340
2000
-2340
2900

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT + col1 DIV ( + - col1 ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2233
SELECT + col1 / ( + - col1 ) AS col2 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 81 ) < col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT DISTINCT + + ( + - CAST( AVG ( ALL + 87 ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + + ( + - CAST ( AVG ( ALL + 87 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL - 29 + + + COUNT( * ) + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL - 29 + + + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 NOT BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL - COUNT( - + 60 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - COUNT ( - + 60 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL COUNT( * ) + - 2 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL COUNT ( * ) + - 2 AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT + - col1 DIV col1 + + col0 AS col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-2240
SELECT + - col1 / col1 + + col0 AS col0 FROM tab2 AS cor0
----
45
63
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col0 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT + 9 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT + 9 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2245
SELECT * FROM tab0 cor0 WHERE - CAST( - 45 AS SIGNED ) BETWEEN - 98 * + - col1 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-2245
SELECT * FROM tab0 cor0 WHERE - CAST ( - 45 AS INTEGER ) BETWEEN - 98 * + - col1 AND + - col1
----

query I rowsort
SELECT + col2 * - col1 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN - col1 AND + + col0 * col0 * + col1
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2247
SELECT ALL * FROM tab2 AS cor0 WHERE 7 NOT BETWEEN + CAST( col1 AS SIGNED ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2247
SELECT ALL * FROM tab2 AS cor0 WHERE 7 NOT BETWEEN + CAST ( col1 AS INTEGER ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 + + 19 * - col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE - ( col2 ) + - col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + 93 + + 1 FROM tab0
----
94

query I rowsort
SELECT 36 + 42 AS col2 FROM tab1
----
78
78
78

query I rowsort
SELECT DISTINCT + ( - + 41 ) AS col1 FROM tab2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT - - COUNT( * ) - + + 10 * - COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - - COUNT ( * ) - + + 10 * - COUNT ( * ) FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2254
SELECT DISTINCT - col0 AS col0, - col1 * + 84 * - + 97 * + 77 * + - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - 13 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2254
SELECT DISTINCT - col0 AS col0, - col1 * + 84 * - + 97 * + 77 * + - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IN ( col1 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

query I rowsort
SELECT 67 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <= - 87
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT 80 * - - CAST( NULL AS SIGNED ) * - col2 IN ( + 26, + col1 * col2 )
----

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT 80 * - - CAST ( NULL AS INTEGER ) * - col2 IN ( + 26, + col1 * col2 )
----

query I rowsort
SELECT DISTINCT + + AVG ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 29 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * - 74 * - 42 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 24 + - + 25 IS NULL
----
158554
208311
239380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT ALL + 99 AS col1, + COUNT( * ) FROM tab0 WHERE NOT - 42 IS NOT NULL
----
99
0

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL + 99 AS col1, + COUNT ( * ) FROM tab0 WHERE NOT - 42 IS NOT NULL
----
99
0

query I rowsort
SELECT ALL + 88 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - col2 * - 0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2265
SELECT col2, - 96 DIV - col0 FROM tab0
----
10
1
47
6
99
0

skipif mysql # not compatible
query II rowsort label-2265
SELECT col2, - 96 / - col0 FROM tab0
----
10
1
47
6
99
0

query I rowsort
SELECT 68 * 67 FROM tab1
----
4556
4556
4556

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2267
SELECT * FROM tab0 WHERE NOT + ( + col1 ) + - + col1 * - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2267
SELECT * FROM tab0 WHERE NOT + ( + col1 ) + - + col1 * - CAST ( NULL AS INTEGER ) > NULL
----

query II rowsort
SELECT + col0 AS col0, 7 + - + 15 FROM tab2 AS cor0
----
46
-8
64
-8
75
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - + col0 + 76 col1 FROM tab0 AS cor0
----
-629
-794
-9527

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT MIN( ALL 76 ) AS col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2270
SELECT MIN ( ALL 76 ) AS col0 FROM tab2
----
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 59 * + col2 IN ( + col2 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT - MIN( DISTINCT - col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2272
SELECT - MIN ( DISTINCT - col2 ) col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2273
SELECT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2273
SELECT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL - COUNT( * ) * + 58 + + 87 FROM tab1 WHERE NOT col0 >= NULL
----
87

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL - COUNT ( * ) * + 58 + + 87 FROM tab1 WHERE NOT col0 >= NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT COUNT( * ) + + 85 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
85

skipif mysql # not compatible
query I rowsort label-2275
SELECT COUNT ( * ) + + 85 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT COUNT( * ) col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2276
SELECT COUNT ( * ) col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT 73 AS col2 FROM tab2 WHERE NOT ( - col1 * col0 + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT ALL CAST( 45 AS SIGNED ) * + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2279
SELECT ALL CAST ( 45 AS INTEGER ) * + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) * + 24 AS col2 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT 85 * 93 FROM tab2
----
7905
7905
7905

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 / col2 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT col1 * col0 - + col0 FROM tab1
----
340
4186
663

query I rowsort
SELECT DISTINCT 46 + ( col2 + + 62 ) AS col1 FROM tab0
----
118
155
207

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 > - 43 - 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2286
SELECT DISTINCT + COUNT( ALL - CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + COUNT ( ALL - CAST ( NULL AS REAL ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT 77 * ( 33 * + COUNT( * ) ) FROM tab0
----
7623

skipif mysql # not compatible
query I rowsort label-2288
SELECT 77 * ( 33 * + COUNT ( * ) ) FROM tab0
----
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT - COUNT( * ) + + MIN( - col0 ) * + MIN( ALL col1 * + col1 + col0 ) FROM tab2
----
-198528

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT - COUNT ( * ) + + MIN ( - col0 ) * + MIN ( ALL col1 * + col1 + col0 ) FROM tab2
----
-198528

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT + COUNT( * ) * MIN( col0 ) + - 40 * 24 AS col2 FROM tab2
----
-822

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + COUNT ( * ) * MIN ( col0 ) + - 40 * 24 AS col2 FROM tab2
----
-822

query I rowsort
SELECT DISTINCT 80 * 12 AS col0 FROM tab1
----
960

query I rowsort
SELECT - 99 + 70 AS col1 FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT 83 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT 83 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 47 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col2 FROM tab0 WHERE + 67 * + col1 BETWEEN ( 73 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT col0 DIV 48 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2296
SELECT col0 / 48 AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col2 NOT IN ( + col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT ALL col2 - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
2
47
6

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL col2 - col0 / col1 AS col1 FROM tab0 AS cor0
----
2
47
6

query I rowsort
SELECT ALL + 2 / 80 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 * - 9
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + 15 FROM tab0 AS cor0
----
114
25
62

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT - CAST( NULL AS SIGNED ) * - 24 + ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT - CAST ( NULL AS INTEGER ) * - 24 + ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 82 * col1 FROM tab0 AS cor0
----
1722
6642
82

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + 92 AS col1 FROM tab1 AS cor0
----
151
160
188

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * + 94 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( - 45 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT ( 72 ) - + 89 AS col2 FROM tab2
----
-17

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 55 + + col1 >= ( - col2 * col0 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE 3 * - 51 NOT BETWEEN NULL AND 38
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE 3 * - 51 NOT BETWEEN NULL AND 38
----
0

query I rowsort
SELECT ALL col1 * 91 AS col1 FROM tab0
----
1911
7371
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 + 65 ) NOT BETWEEN + col2 AND NULL
----
97
1
99

query I rowsort
SELECT + + 21 * + col0 FROM tab1 AS cor0
----
1071
1785
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT - + MIN( + 28 ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2315
SELECT - + MIN ( + 28 ) FROM tab2 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT COUNT( ALL 43 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT COUNT ( ALL 43 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 44 + + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col1 + 2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ( MAX( DISTINCT + col0 ) ) AS col2 FROM tab1 WHERE NOT + col1 <> ( col2 + col2 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ( MAX ( DISTINCT + col0 ) ) AS col2 FROM tab1 WHERE NOT + col1 <> ( col2 + col2 / col0 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) * + 10 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL ( + CAST( ( col0 ) AS SIGNED ) ) FROM tab0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL ( + CAST ( ( col0 ) AS INTEGER ) ) FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * 14 AS col0 FROM tab2
----
1078
714
938

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + ( COUNT( * ) ) * 74 AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-2323
SELECT + ( COUNT ( * ) ) * 74 AS col2 FROM tab2
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT 37 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT 37 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 93 + + col2 FROM tab1 AS cor0 WHERE ( + col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT + 46 * col0 + - 25 AS col0 FROM tab1 AS cor0
----
2321
3885
4161

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > - ( + ( col2 ) )
----

query I rowsort
SELECT ALL + 54 + - - col0 FROM tab2
----
100
118
129

query I rowsort
SELECT DISTINCT - col0 + + 64 AS col0 FROM tab2
----
-11
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT MIN( DISTINCT + ( + - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2330
SELECT MIN ( DISTINCT + ( + - col0 ) ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL - 27 + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - 27 + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2332
SELECT ALL + col1 DIV - CAST( - 58 AS SIGNED ) AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + col1 / - CAST ( - 58 AS INTEGER ) AS col1 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 - + col2 * - col2 NOT IN ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + COUNT( * ) * - COUNT( - col1 ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2334
SELECT + COUNT ( * ) * - COUNT ( - col1 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT COUNT( * ) DIV - 60 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT COUNT ( * ) / - 60 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT ALL - col1 DIV + + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - col1 / + + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / - 8 NOT IN ( - col1 + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2338
SELECT DISTINCT + + COUNT( * ), - 58 AS col1 FROM tab1 cor0
----
3
-58

skipif mysql # not compatible
query II rowsort label-2338
SELECT DISTINCT + + COUNT ( * ), - 58 AS col1 FROM tab1 cor0
----
3
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT - 0 DIV + + 6 * - + col0 * col2 + + col0 * 17 FROM tab0 AS cor0
----
1479
1649
255

skipif mysql # not compatible
query I rowsort label-2339
SELECT - 0 / + + 6 * - + col0 * col2 + + col0 * 17 FROM tab0 AS cor0
----
1479
1649
255

query II rowsort
SELECT col2 + + col0, col0 AS col1 FROM tab0
----
196
97
62
15
97
87

query III rowsort
SELECT * FROM tab0 WHERE - col0 / - + ( + col0 ) = - col2 + - col1 * - col2
----

query I rowsort
SELECT - col2 * - col0 * - col0 + col0 AS col2 FROM tab0
----
-10560
-75603
-931394

query I rowsort
SELECT DISTINCT col1 + + + 5 AS col2 FROM tab0
----
26
6
86

query I rowsort
SELECT 10 + - 22 FROM tab1
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT col0 + + 4 + + col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT col0 + + 4 + + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL 23 + + COUNT( * ) AS col1 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 23 + + COUNT ( * ) AS col1 FROM tab0
----
26

query I rowsort
SELECT ALL + 2 - col0 * - col0 AS col1 FROM tab0 AS cor0
----
227
7571
9411

query I rowsort
SELECT 54 AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col2 FROM tab1 cor0
----
-8

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE + col0 * - col1 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL + + MAX( ALL 81 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + + MAX ( ALL 81 ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT - ( + ( - col2 ) ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT ALL + SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT + col1, col0 * + col2 FROM tab0
----
1
9603
21
870
81
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT - 21 * + + CAST( + 31 AS SIGNED ) FROM tab0
----
-651
-651
-651

skipif mysql # not compatible
query I rowsort label-2355
SELECT - 21 * + + CAST ( + 31 AS INTEGER ) FROM tab0
----
-651
-651
-651

query I rowsort
SELECT + col0 + - - 68 AS col1 FROM tab1 WHERE NOT - 8 < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( - + col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( - + col0 ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT - COUNT( ALL 69 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - COUNT ( ALL 69 ) FROM tab0
----
-3

query I rowsort
SELECT ALL 41 * - col0 FROM tab1
----
-2091
-3485
-3731

query II rowsort
SELECT + + 85 * col1 AS col2, col2 * col0 FROM tab2 AS cor0
----
4335
1058
5695
4350
6545
2560

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT - col2 DIV - col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2361
SELECT - col2 / - col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL ( - - col2 ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + col2 + + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT col2 DIV - + col2 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2364
SELECT col2 / - + col2 col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 40 - 21 AS col0 FROM tab1 AS cor0 WHERE ( NOT - 92 < col0 * + + col1 )
----

query I rowsort
SELECT ALL + col2 * - + 36 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-2124
-2448
-3456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2367
SELECT ALL + col2 * + CAST( NULL AS DECIMAL ) * + col0 + col1 * + - ( col0 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2367
SELECT ALL + col2 * + CAST ( NULL AS REAL ) * + col0 + col1 * + - ( col0 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT + ( + MAX( 56 ) ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-2369
SELECT + ( + MAX ( 56 ) ) FROM tab0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT ALL - 9 + - + CAST( - MIN( - col1 ) AS SIGNED ) + + 1 AS col1 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - 9 + - + CAST ( - MIN ( - col1 ) AS INTEGER ) + + 1 AS col1 FROM tab1
----
-55

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + 63 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT DISTINCT + ( + + 47 ) + - MAX( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + ( + + 47 ) + - MAX ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT - MAX( DISTINCT + col2 ) FROM tab0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT - MAX ( DISTINCT + col2 ) FROM tab0 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 32 - col1 FROM tab0
----
-49
11
31

query I rowsort
SELECT - col0 - + 90 FROM tab0
----
-105
-177
-187

query I rowsort
SELECT DISTINCT + 1 * col1 FROM tab0 WHERE ( + col1 - col0 * - - col1 ) <= 39 * - col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT MIN( + 51 ) + + COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT MIN ( + 51 ) + + COUNT ( * ) FROM tab0
----
54

query III rowsort
SELECT * FROM tab0 WHERE 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - + col2 col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2380
SELECT + col2 + + col0 + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT + col2 + + col0 + - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, + 15 - - 48 col0 FROM tab1 AS cor0
----
-59
63
-68
63
-96
63

query I rowsort
SELECT ( + 86 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 65 BETWEEN - 49 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL + SUM( DISTINCT + 44 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + SUM ( DISTINCT + 44 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT - SUM( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2385
SELECT - SUM ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + 53 * col1 FROM tab1 cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT CAST( + - COUNT( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2387
SELECT CAST ( + - COUNT ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL - SUM( ALL + + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - SUM ( ALL + + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-2389
SELECT ALL + 55 * + + COUNT( * ) * - COUNT( * ) AS col0, SUM( DISTINCT + col2 ) + + 8 FROM tab0
----
-495
164

skipif mysql # not compatible
query II rowsort label-2389
SELECT ALL + 55 * + + COUNT ( * ) * - COUNT ( * ) AS col0, SUM ( DISTINCT + col2 ) + + 8 FROM tab0
----
-495
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL SUM( + 8 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL SUM ( + 8 ) FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2391
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * - CAST( 97 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2391
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * - CAST ( 97 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT CAST( - ( - 67 ) AS SIGNED ) + + - col2 + + + ( + ( + col1 ) ) FROM tab0
----
-31
101
78

skipif mysql # not compatible
query I rowsort label-2392
SELECT CAST ( - ( - 67 ) AS INTEGER ) + + - col2 + + + ( + ( + col1 ) ) FROM tab0
----
-31
101
78

query I rowsort
SELECT - + col0 + col1 - - + ( - + 41 ) AS col2 FROM tab2 AS cor0
----
-28
-36
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT + COUNT( * ) + - 54 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + COUNT ( * ) + - 54 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL - 89 * - col0 AS col1 FROM tab1 AS cor0
----
4539
7565
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - + col2, col1 )
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 cor0 WHERE NOT 79 + col1 IS NOT NULL AND + 62 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 - 99 FROM tab2 AS cor0
----
-24
-35
-53

query I rowsort
SELECT ALL col2 * - - 27 - - 29 AS col2 FROM tab1 AS cor0
----
1622
1865
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + - 42 * - - 19 - - COUNT( * ) FROM tab0 AS cor0
----
-795

skipif mysql # not compatible
query I rowsort label-2401
SELECT + - 42 * - - 19 - - COUNT ( * ) FROM tab0 AS cor0
----
-795

query I rowsort
SELECT DISTINCT + col0 - + 67 AS col2 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT ALL + col2 * col1 + + - col0 AS col0 FROM tab1 cor0
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT 16 * - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT 16 * - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + - 3 + + - 58
----

query I rowsort
SELECT DISTINCT 72 * + ( + 25 ) AS col1 FROM tab1 AS cor0
----
1800

query I rowsort
SELECT - col2 + 0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2408
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) * 55 * - + 9 / - 77 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 55 * - + 9 / - 77 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 + 40 * col0 FROM tab0
----
3490
3979
647

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT DISTINCT col0 DIV + 73 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT col0 / + 73 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL - 11 * + col0 + 66 * - - col0 AS col1 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL 23 - + 87 + MAX( ALL - ( + - ( col0 ) ) ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL 23 - + 87 + MAX ( ALL - ( + - ( col0 ) ) ) FROM tab1
----
27

query I rowsort
SELECT ALL col2 * + - 11 AS col2 FROM tab2 cor0
----
-253
-440
-638

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
23

query I rowsort
SELECT ALL + + 82 * + 11 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f15fcf408511279ec43f6fa57ab9cc49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL <= 44
----

query I rowsort
SELECT ALL col0 * + 68 AS col1 FROM tab0 AS cor0
----
1020
5916
6596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT DISTINCT - CAST( COUNT( + 80 ) AS SIGNED ) + - 5 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT - CAST ( COUNT ( + 80 ) AS INTEGER ) + - 5 FROM tab1 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT MIN( 89 ) + MAX( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2419
SELECT MIN ( 89 ) + MAX ( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
84

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 cor0 WHERE + col2 * 93 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2421
SELECT DISTINCT + COUNT( * ) AS col0, - MIN( - 13 ) col0 FROM tab1 AS cor0
----
3
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2421
SELECT DISTINCT + COUNT ( * ) AS col0, - MIN ( - 13 ) col0 FROM tab1 AS cor0
----
3
13

query I rowsort
SELECT + 43 * - ( - ( 21 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
903
903
903

query I rowsort
SELECT DISTINCT col0 + - col2 * col0 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT col0 * + - col1 AS col1 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col1 FROM tab0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT col0 * + 91 * CAST( - - 66 AS SIGNED ) FROM tab0
----
522522
582582
90090

skipif mysql # not compatible
query I rowsort label-2426
SELECT col0 * + 91 * CAST ( - - 66 AS INTEGER ) FROM tab0
----
522522
582582
90090

query I rowsort
SELECT 12 AS col1 FROM tab0 cor0 WHERE - 70 * col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL + COUNT( DISTINCT + 44 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL + COUNT ( DISTINCT + 44 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * + 63 AND - col2
----

query I rowsort
SELECT - + col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT - - 61 + + 35 + col2 AS col1 FROM tab1 AS cor0
----
155
164
192

query I rowsort
SELECT - - col0 + - 32 FROM tab1 AS cor0
----
19
53
59

query I rowsort
SELECT 92 * + col2 + - - col2 + - col2 AS col2 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT 31 FROM tab1 WHERE - + 28 IS NULL
----

query I rowsort
SELECT DISTINCT - 92 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT ALL 78 - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1
11
27

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL 78 - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1
11
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT - COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2438
SELECT - COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - + 47 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-2439
SELECT - + 47 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT DISTINCT + CAST( - + 58 AS SIGNED ) * + 97 + - col0 FROM tab0 AS cor0
----
-5641
-5713
-5723

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT + CAST ( - + 58 AS INTEGER ) * + 97 + - col0 FROM tab0 AS cor0
----
-5641
-5713
-5723

query I rowsort
SELECT ALL - col0 * 94 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT ALL col2 + - + col0 + + 77 * - col1 * - col2 AS col2 FROM tab2 AS cor0
----
237136
299205
90298

query I rowsort
SELECT + 68 - 8 AS col2 FROM tab1 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71 AS col2, - col1 col1 FROM tab1
----
71
-14
71
-47
71
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 36 * + - col0 * - + ( - - col2 ) BETWEEN NULL AND 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < 24
----

query II rowsort
SELECT ALL col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT COUNT( + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT COUNT ( + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + 92 * + + col0 AS col0 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT DISTINCT - - ( col2 ) * - - col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL + 12 * - col1 AS col2 FROM tab2 AS cor0
----
-612
-804
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL - col1 DIV + - 49 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - col1 / + - 49 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 = - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - ( 29 ) * - ( + COUNT( * ) ) FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2454
SELECT - ( 29 ) * - ( + COUNT ( * ) ) FROM tab0 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - - 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 14 * + col2 FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
1344
826
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT + COUNT( * ) col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2458
SELECT + COUNT ( * ) col1 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL + ( 76 ) + + - COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + ( 76 ) + + - COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT col0 + - 0 DIV + ( + col1 ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2461
SELECT col0 + - 0 / + ( + col1 ) FROM tab2
----
46
64
75

query I rowsort
SELECT col1 + 38 - 20 * + - col1 AS col0 FROM tab1
----
1025
143
332

query I rowsort
SELECT DISTINCT + 10 + 78 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT SUM( ALL + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT SUM ( ALL + + col1 ) FROM tab0
----
103

query I rowsort
SELECT col1 + 50 AS col2 FROM tab2
----
101
117
127

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL col2 DIV + 61 + - - 44 FROM tab0 AS cor0
----
44
44
45

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL col2 / + 61 + - - 44 FROM tab0 AS cor0
----
44
44
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2467
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + COUNT( + - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2468
SELECT + COUNT ( + - col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT col2 - ( + col2 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 65 - + - col2 FROM tab1
----
124
133
161

query I rowsort
SELECT DISTINCT - ( - - col1 ) - - 81 FROM tab1
----
34
67
76

query I rowsort
SELECT + 70 + + col0 FROM tab2 AS cor0
----
116
134
145

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 70 + + + 0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2474
SELECT DISTINCT + ( - - ( + CAST( COUNT( * ) AS SIGNED ) ) ) * AVG ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT + ( - - ( + CAST ( COUNT ( * ) AS INTEGER ) ) ) * AVG ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + 54
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + + + col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > - ( 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2477
SELECT ALL - - CAST( - col1 AS SIGNED ) AS col1, + col0 * + 18 AS col0 FROM tab0 cor0
----
-1
1746
-21
1566
-81
270

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL - - CAST ( - col1 AS INTEGER ) AS col1, + col0 * + 18 AS col0 FROM tab0 cor0
----
-1
1746
-21
1566
-81
270

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + - col0 <> + 38 * + col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2479
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 39 * - CAST( NULL AS SIGNED ) + - - 97 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2479
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 39 * - CAST ( NULL AS INTEGER ) + - - 97 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT col1 * - 16 * + CAST( - - col2 AS SIGNED ) AS col2 FROM tab0
----
-1584
-3360
-60912

skipif mysql # not compatible
query I rowsort label-2480
SELECT col1 * - 16 * + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0
----
-1584
-3360
-60912

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2481
SELECT - col2 DIV + CAST( - ( col1 ) AS SIGNED ) FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2481
SELECT - col2 / + CAST ( - ( col1 ) AS INTEGER ) FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + 36 * + - MAX( DISTINCT + - col1 ) FROM tab2
----
1836

skipif mysql # not compatible
query I rowsort label-2482
SELECT + 36 * + - MAX ( DISTINCT + - col1 ) FROM tab2
----
1836

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT - col0 + col2 + - col1 < NULL
----

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT CAST( NULL AS SIGNED ) * 26 / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT CAST ( NULL AS INTEGER ) * 26 / col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 74 ) FROM tab2
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT DISTINCT + 77 * - col1 * - col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + 77 * - col1 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 36 * + col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL SUM( ALL + 85 ) AS col2 FROM tab1 cor0
----
255

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL SUM ( ALL + 85 ) AS col2 FROM tab1 cor0
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT ALL - col1 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2490
SELECT ALL - col1 / - col2 col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - col0 AS col0, + ( - - col0 ) * 96 FROM tab1
----
-51
4896
-85
8160
-91
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL + 46 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
37

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + 46 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT DISTINCT - 16 * MAX( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - 16 * MAX ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col0 FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT - + col2 * - col0 AS col0, col1 * + col1 * + + col2 + - col0 AS col2 FROM tab0 AS cor0
----
705
308352
870
4323
9603
2

query I rowsort
SELECT + col1 + - - 38 FROM tab0 AS cor0
----
119
39
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT ALL - col1 DIV - + 2 col1 FROM tab2 AS cor0
----
25
33
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2497
SELECT ALL - col1 / - + 2 col1 FROM tab2 AS cor0
----
25
33
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2499
SELECT ALL COUNT( * ) + - + CAST( NULL AS DECIMAL ) - - 69 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL COUNT ( * ) + - + CAST ( NULL AS REAL ) - - 69 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT - 66 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - 66 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT + ( + - 81 ) AS col2 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + - 11 + 21 AS col2 FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT - 74 + - col2 - - col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 43 / col1 <> + col0 * + 88 * col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 15 * col2 NOT BETWEEN 67 - col2 - col2 AND + col2 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE 99 IS NULL
----

query I rowsort
SELECT - col0 + + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 4 * + + 13 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2510
SELECT ( - + col0 ) * + + col2 DIV - col2 + - + col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

skipif mysql # not compatible
query II rowsort label-2510
SELECT ( - + col0 ) * + + col2 / - col2 + - + col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL ( 40 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
360

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL ( 40 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * - - 30 * 22 ) IN ( - 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 91 * 57 * - col1 AS col0 FROM tab1 cor0
----
-243789
-25935
-72618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + - col0 + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + - col0 + col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + col0 FROM tab1 cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND + + col1
----

query II rowsort
SELECT - + col2 AS col2, ( col1 ) AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + - 65 BETWEEN + - col1 AND 49
----

query I rowsort
SELECT + 4 * + + 9 FROM tab2 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab1 WHERE NOT ( - col0 IS NULL )
----
74
74
74

query II rowsort
SELECT col1 * ( + 47 ) * + col2, col1 FROM tab2
----
144760
77
182642
67
55131
51

query I rowsort
SELECT DISTINCT 13 * + col0 AS col0 FROM tab2
----
598
832
975

query I rowsort
SELECT DISTINCT col0 * + 30 AS col1 FROM tab2 AS cor0
----
1380
1920
2250

query II rowsort
SELECT 21 AS col1, - col0 AS col1 FROM tab2
----
21
-46
21
-64
21
-75

query I rowsort
SELECT DISTINCT 19 * col0 AS col1 FROM tab2
----
1216
1425
874

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2526
SELECT col1, 41 + + + col2 + - CAST( - 61 AS SIGNED ) DIV col2 * - + col1 FROM tab0
----
1
140
21
-75
81
7

skipif mysql # not compatible
query II rowsort label-2526
SELECT col1, 41 + + + col2 + - CAST ( - 61 AS INTEGER ) / col2 * - + col1 FROM tab0
----
1
140
21
-75
81
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT - 69 AS col0, 16 + - + MAX( DISTINCT + 93 ) + 27 AS col2 FROM tab0
----
-69
-50

skipif mysql # not compatible
query II rowsort label-2527
SELECT - 69 AS col0, 16 + - + MAX ( DISTINCT + 93 ) + 27 AS col2 FROM tab0
----
-69
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT 29 + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-2528
SELECT 29 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT ALL - 18 DIV col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - 18 / col1 FROM tab1 AS cor0
----
-1
-3
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL + 27 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
27
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT ALL - col1 DIV + - col2 - + col1 DIV + 14 + + 12 + + col2 AS col2 FROM tab2 AS cor0
----
34
48
67

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - col1 / + - col2 - + col1 / + 14 + + 12 + + col2 AS col2 FROM tab2 AS cor0
----
34
48
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 + + - col1 * + col1 + - 19 AS col1 FROM tab1 AS cor0
----
-2275
-229
-49

query I rowsort
SELECT 5 + + 69 AS col2 FROM tab1 cor0
----
74
74
74

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 AND col1 * - col2
----

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

skipif mysql # not compatible
query I rowsort label-2537
SELECT - COUNT ( * ) + - COUNT ( * ) * + 93 AS col1 FROM tab2
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL CAST( NULL AS SIGNED ) * - col1 + col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2538
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 + col1 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT COUNT( * ) - + 46 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT COUNT ( * ) - + 46 FROM tab0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2540
SELECT - 52 - 7 DIV + MAX( DISTINCT + col1 ), 33 + - 53 AS col0 FROM tab1 AS cor0
----
-52
-20

skipif mysql # not compatible
query II rowsort label-2540
SELECT - 52 - 7 / + MAX ( DISTINCT + col1 ), 33 + - 53 AS col0 FROM tab1 AS cor0
----
-52
-20

query II rowsort
SELECT 1 - col1 AS col1, col2 AS col2 FROM tab1
----
-13
96
-4
59
-46
68

query I rowsort
SELECT + + col2 * - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 62 FROM tab1 WHERE ( NOT ( NULL <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT DISTINCT ( COUNT( * ) ) col0, - MIN( - col1 ) FROM tab0 AS cor0
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2544
SELECT DISTINCT ( COUNT ( * ) ) col0, - MIN ( - col1 ) FROM tab0 AS cor0
----
3
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 96 = NULL
----

query I rowsort
SELECT - 99 + + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 39 + + col0 <= + - col1
----
-109
-146
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT ALL - + COUNT( * ) DIV + - MAX( ALL col1 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - + COUNT ( * ) / + - MAX ( ALL col1 ) FROM tab0 cor0
----
0

query II rowsort
SELECT 20 * + col2 AS col2, 0 * - col2 AS col0 FROM tab2 AS cor0
----
1160
0
460
0
800
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 >= col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2550
SELECT col2, col0 DIV col0 FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-2550
SELECT col2, col0 / col0 FROM tab2
----
23
1
40
1
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL COUNT( DISTINCT - 98 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL COUNT ( DISTINCT - 98 ) FROM tab1
----
1

query I rowsort
SELECT ( - - 63 ) AS col1 FROM tab2
----
63
63
63

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT + + 74 + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + col2 + - ( + 54 ) * - col1 IN ( ( - + col1 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2556
SELECT COUNT( * ) AS col2, COUNT( DISTINCT + + 56 ) AS col1 FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-2556
SELECT COUNT ( * ) AS col2, COUNT ( DISTINCT + + 56 ) AS col1 FROM tab1 AS cor0
----
3
1

query I rowsort
SELECT ALL - - col0 * - col2 AS col1 FROM tab1 cor0 WHERE ( NOT - + ( + col0 ) / col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT - 44 DIV col1 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 44 / col1 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2559
SELECT 7 * - + 11 AS col2, MAX( + CAST( - col0 AS SIGNED ) ) FROM tab0
----
-77
-15

skipif mysql # not compatible
query II rowsort label-2559
SELECT 7 * - + 11 AS col2, MAX ( + CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-77
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT + COUNT( * ) + - 25 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT + COUNT ( * ) + - 25 FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT + COUNT( * ) col1 FROM tab2 WHERE + 63 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2561
SELECT + COUNT ( * ) col1 FROM tab2 WHERE + 63 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 + + + 23 AS col0 FROM tab0 AS cor0
----
-58
2
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2563
SELECT - 85 * - ( - ( - 68 ) ) AS col1, + 23 DIV + 60 * MAX( DISTINCT + ( - col0 ) ) FROM tab0 cor0
----
5780
0

skipif mysql # not compatible
query II rowsort label-2563
SELECT - 85 * - ( - ( - 68 ) ) AS col1, + 23 / + 60 * MAX ( DISTINCT + ( - col0 ) ) FROM tab0 cor0
----
5780
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT 9 * - SUM( ( - col1 ) ) FROM tab1 AS cor0
----
594

skipif mysql # not compatible
query I rowsort label-2564
SELECT 9 * - SUM ( ( - col1 ) ) FROM tab1 AS cor0
----
594

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL col0 * - col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL col0 * - col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 + + col2 * + col0, col2 FROM tab1
----
4947
96
5100
59
6279
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2568
SELECT ALL + col0 DIV + 1 + - + 36 DIV - col0 col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2568
SELECT ALL + col0 / + 1 + - + 36 / - col0 col1 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + - col1 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + + 94 FROM tab2 cor0
----
17
27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT COUNT( * ) + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2571
SELECT COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + col1 + - 2 * col0 AS col0 FROM tab2 AS cor0
----
-41
-51
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT + ( - COUNT( * ) ) + + + 48 DIV 22 col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT + ( - COUNT ( * ) ) + + + 48 / 22 col1 FROM tab2 cor0
----
-1

query II rowsort
SELECT + col0, - ( - + col0 ) FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL - col2 * - + 6 FROM tab1 AS cor0
----
354
408
576

query I rowsort
SELECT ALL 76 * col1 + - ( + 71 ) * + - col1 + - col1 * col1 FROM tab0 AS cor0
----
146
2646
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - SUM( + 8 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2577
SELECT - SUM ( + 8 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT - - 53 AS col1, - COUNT( * ) FROM tab1 cor0
----
53
-3

skipif mysql # not compatible
query II rowsort label-2579
SELECT - - 53 AS col1, - COUNT ( * ) FROM tab1 cor0
----
53
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT - col1 * + CAST( + 91 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1274
-4277
-455

skipif mysql # not compatible
query I rowsort label-2580
SELECT - col1 * + CAST ( + 91 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1274
-4277
-455

query I rowsort
SELECT DISTINCT + 3 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
296
60
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT - + col2 DIV col2 + + col2 + 4 + - col2 AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - + col2 / col2 + + col2 + 4 + - col2 AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 - + ( - col2 ) + + 53 * - col1 * + col0 FROM tab2 AS cor0 WHERE NULL <= - col1 + - col0 - col0
----

query II rowsort
SELECT - 47, - 44 AS col2 FROM tab0 AS cor0
----
-47
-44
-47
-44
-47
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ( - SUM( + col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2586
SELECT ( - SUM ( + col1 ) ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - + 84 FROM tab1 WHERE NOT - 60 IS NULL
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query III rowsort label-2588
SELECT col0 * - + col1 + + 6 AS col0, col0 DIV + 31 AS col1, + col1 * + + col1 FROM tab1
----
9 values hashing to 7024bbfc50f21b043c39b81987203da5

skipif mysql # not compatible
query III rowsort label-2588
SELECT col0 * - + col1 + + 6 AS col0, col0 / + 31 AS col1, + col1 * + + col1 FROM tab1
----
9 values hashing to 7024bbfc50f21b043c39b81987203da5

query I rowsort
SELECT + 17 + - + 76 * - col2 AS col0 FROM tab0 AS cor0
----
3589
7541
777

query I rowsort
SELECT ALL - - col2 + col2 FROM tab2 cor0
----
116
46
80

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT - col1 * + - col2 * CAST( col2 AS SIGNED ) * - col2 AS col1 FROM tab2
----
-13072504
-4928000
-620517

skipif mysql # not compatible
query I rowsort label-2593
SELECT - col1 * + - col2 * CAST ( col2 AS INTEGER ) * - col2 AS col1 FROM tab2
----
-13072504
-4928000
-620517

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 69 > + col1 * + ( + + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - COUNT( * ) + - 49 AS col1 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2595
SELECT - COUNT ( * ) + - 49 AS col1 FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT + - CAST( + - SUM( + - col0 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT + - CAST ( + - SUM ( + - col0 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----
NULL

query I rowsort
SELECT ALL col1 + - 3 AS col0 FROM tab1
----
11
2
44

query I rowsort
SELECT col1 * + + 80 + + + 53 AS col2 FROM tab0
----
133
1733
6533

query III rowsort
SELECT * FROM tab0 WHERE + 40 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 24 AS col0 FROM tab0 WHERE - ( + 17 ) * + + ( - - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT + 88 + - + col0 AS col1 FROM tab1
----
-3
3
37

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab1 WHERE NOT 54 * - - 31 < col0
----
-22

query I rowsort
SELECT ALL 23 - - col2 AS col0 FROM tab2
----
46
63
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2604
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - + col0 ) NOT BETWEEN + col2 * - 60 AND + CAST( NULL AS SIGNED ) - + 77
----

skipif mysql # not compatible
query III rowsort label-2604
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - + col0 ) NOT BETWEEN + col2 * - 60 AND + CAST ( NULL AS INTEGER ) - + 77
----

query I rowsort
SELECT DISTINCT + col0 * - 90 * - col2 AS col1 FROM tab0 AS cor0
----
63450
78300
864270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2606
SELECT ALL COUNT( * ) * - 3 DIV + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 3 - col1 IN ( - col2 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL COUNT ( * ) * - 3 / + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 3 - col1 IN ( - col2 ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT COUNT( * ) AS col1, 33 AS col1 FROM tab2
----
3
33

skipif mysql # not compatible
query II rowsort label-2607
SELECT COUNT ( * ) AS col1, 33 AS col1 FROM tab2
----
3
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - 82 - - col0 - + 31 AS col0 FROM tab0
----
15
-98
87
-26
97
-16

query I rowsort
SELECT DISTINCT - + col2 * 70 FROM tab2 AS cor0
----
-1610
-2800
-4060

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2610
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - 6 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2610
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - 6 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT ALL - SUM( ALL col1 ) * 38 AS col2, - 40 FROM tab1 cor0
----
-2508
-40

skipif mysql # not compatible
query II rowsort label-2611
SELECT ALL - SUM ( ALL col1 ) * 38 AS col2, - 40 FROM tab1 cor0
----
-2508
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2612
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + col1 * - 21 AS col0 FROM tab1 AS cor0
----
105
294
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col1 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 63 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 63 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT SUM( 41 ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT SUM ( 41 ) FROM tab1 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2618
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + COUNT( - col2 ) * + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2619
SELECT + COUNT ( - col2 ) * + + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT 30 * + + 68 FROM tab2
----
2040

query II rowsort
SELECT col1 AS col2, col1 AS col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL COUNT( + 50 ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col1, col1, - 68 + col2 + - + col0, - - 79, 54 * col2 - + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL COUNT ( + 50 ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col1, col1, - 68 + col2 + - + col0, - - 79, 54 * col2 - + - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT - SUM( - 18 ) + ( COUNT( DISTINCT 92 ) ) + COUNT( * ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT - SUM ( - 18 ) + ( COUNT ( DISTINCT 92 ) ) + COUNT ( * ) AS col2 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT 36 + 79 - + COUNT( DISTINCT + + col0 ) FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT 36 + 79 - + COUNT ( DISTINCT + + col0 ) FROM tab2
----
112

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + - 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 65 > col2 / - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT col2 DIV - col2 + - + 68 FROM tab0 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2628
SELECT col2 / - col2 + - + 68 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL 67 + - - 93 AS col2 FROM tab0
----
160
160
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2630
SELECT ( + CAST( - ( - - 75 ) AS SIGNED ) ) - + COUNT( * ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-2630
SELECT ( + CAST ( - ( - - 75 ) AS INTEGER ) ) - + COUNT ( * ) FROM tab1
----
-78

query III rowsort
SELECT * FROM tab1 WHERE - 91 / col1 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - ( - 45 ) FROM tab0
----
144
55
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) * + - col1 * 10 * col0 * col0 IS NULL
----

query I rowsort
SELECT + 65 AS col1 FROM tab2 WHERE NOT - - col2 IN ( 36, - col1, col1 + 31 )
----
65
65
65

query II rowsort
SELECT col1, 73 FROM tab1
----
14
73
47
73
5
73

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 66 / + col0 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, col2 * + - col2 + - - col2 + - col2 + 36 * + col1 * - + col2 + col0 * col1 AS col1 FROM tab0 AS cor0
----
10
-5833
47
-138046
99
-13268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL + COUNT( ALL - + ( + 61 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL + COUNT ( ALL - + ( + 61 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2640
SELECT ALL + 78 DIV COUNT( * ) col2, 74 FROM tab0 AS cor0
----
26
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2640
SELECT ALL + 78 / COUNT ( * ) col2, 74 FROM tab0 AS cor0
----
26
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT DISTINCT + MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + MIN ( col2 ) FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 + - - 43 - - - col0 * - - col1 FROM tab0 AS cor0
----
-1219
-153
-1794

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col2 / + + col2 * col2 = - 92
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col1 FROM tab1
----
1475
150212
18816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2647
SELECT - ( CAST( - + col2 AS DECIMAL ) ) + 15 * - CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2647
SELECT - ( CAST ( - + col2 AS REAL ) ) + 15 * - CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2648
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL < + col2
----
0

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL < + col2
----
0

query I rowsort
SELECT + col1 + + + 51 FROM tab0 AS cor0
----
132
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL - SUM( - + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - SUM ( - + col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT - 3 + + COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT - 3 + + COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col2 * 13 / - + 55 = NULL )
----

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT + ( - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT DISTINCT + SUM( + 2 ), COUNT( * ) AS col0 FROM tab2
----
6
3

skipif mysql # not compatible
query II rowsort label-2655
SELECT DISTINCT + SUM ( + 2 ), COUNT ( * ) AS col0 FROM tab2
----
6
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ( + 43 ) DIV 25 + - col1 AS col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2656
SELECT ( + 43 ) / 25 + - col1 AS col2 FROM tab2
----
-50
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2657
SELECT + CAST( - col0 AS SIGNED ) * + 9, col0 FROM tab1 AS cor0
----
-459
51
-765
85
-819
91

skipif mysql # not compatible
query II rowsort label-2657
SELECT + CAST ( - col0 AS INTEGER ) * + 9, col0 FROM tab1 AS cor0
----
-459
51
-765
85
-819
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = ( col2 + + + 72 )
----

query I rowsort
SELECT DISTINCT + col1 * 59 FROM tab0
----
1239
4779
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2660
SELECT CAST( COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2660
SELECT CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
3

query I rowsort
SELECT col0 * col0 + + col1 FROM tab2 cor0
----
2167
4173
5692

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL MAX( + + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL MAX ( + + col1 ) AS col1 FROM tab0 AS cor0
----
81

query II rowsort
SELECT + col1 + + col1 * - col0 AS col0, col2 - - col2 AS col1 FROM tab0 AS cor0
----
-1134
94
-1806
20
-96
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, 84 + - col2 col0 FROM tab2 cor0
----
51
61
67
26
77
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2665
SELECT ALL + 18 + - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + 18 + - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 55 + - col0 FROM tab1
----
-30
-36
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT DISTINCT 91 + col0 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT 91 + col0 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2668
SELECT SUM( - + 20 ), - 70 * 26 * - 43 AS col1 FROM tab1
----
-60
78260

skipif mysql # not compatible
query II rowsort label-2668
SELECT SUM ( - + 20 ), - 70 * 26 * - 43 AS col1 FROM tab1
----
-60
78260

query I rowsort
SELECT ALL ( + 34 ) AS col1 FROM tab0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT + 34 DIV + 2 - + 89 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-2670
SELECT + 34 / + 2 - + 89 FROM tab0 AS cor0
----
-72
-72
-72

query II rowsort
SELECT 25 + + col0 + + col2 + - col0, col2 FROM tab1 AS cor0
----
121
96
84
59
93
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + MAX( DISTINCT + col2 ) + + 79 FROM tab1 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-2672
SELECT + MAX ( DISTINCT + col2 ) + + 79 FROM tab1 AS cor0
----
175

query I rowsort
SELECT DISTINCT col0 - + col0 FROM tab2 WHERE NOT - - 49 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT - COUNT( * ) + + COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2674
SELECT - COUNT ( * ) + + COUNT ( * ) col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT ALL 43 - + COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL 43 - + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
43

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND 68
----

query I rowsort
SELECT + col0 - + - col2 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query II rowsort label-2678
SELECT - + col0 AS col1, 8 + + + 0 DIV - col0 FROM tab1 AS cor0
----
-51
8
-85
8
-91
8

skipif mysql # not compatible
query II rowsort label-2678
SELECT - + col0 AS col1, 8 + + + 0 / - col0 FROM tab1 AS cor0
----
-51
8
-85
8
-91
8

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 46 + - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL COUNT( + - 11 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL COUNT ( + - 11 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2682
SELECT ALL COUNT( * ) AS col1, 67 AS col1 FROM tab1
----
3
67

skipif mysql # not compatible
query II rowsort label-2682
SELECT ALL COUNT ( * ) AS col1, 67 AS col1 FROM tab1
----
3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL MIN( ( + 7 ) ) AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL MIN ( ( + 7 ) ) AS col0 FROM tab1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL MIN( DISTINCT - CAST( - col2 AS SIGNED ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL MIN ( DISTINCT - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
10

query II rowsort
SELECT - col1, - col0 AS col2 FROM tab0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT - col2 AS col1, - 38 AS col2 FROM tab2 AS cor0
----
-23
-38
-40
-38
-58
-38

query I rowsort
SELECT DISTINCT - - 55 AS col2 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + COUNT( * ) * - SUM( ALL - + col0 ) col0 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2688
SELECT + COUNT ( * ) * - SUM ( ALL - + col0 ) col0 FROM tab0 AS cor0
----
597

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT 90 DIV + col1 AS col1 FROM tab0
----
1
4
90

skipif mysql # not compatible
query I rowsort label-2689
SELECT 90 / + col1 AS col1 FROM tab0
----
1
4
90

query II rowsort
SELECT ALL - ( + - col2 ) AS col1, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL - 55 * 77 + col0 AS col0 FROM tab2 AS cor0
----
-4160
-4171
-4189

query I rowsort
SELECT ALL col0 + - - 61 FROM tab2
----
107
125
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT CAST( - COUNT( * ) AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2694
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
-81

query II rowsort
SELECT - col1 * + 8 + + + col0, col0 AS col1 FROM tab0
----
-633
15
-81
87
89
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL 20 + + - CAST( col0 AS SIGNED ) FROM tab0
----
-67
-77
5

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL 20 + + - CAST ( col0 AS INTEGER ) FROM tab0
----
-67
-77
5

query I rowsort
SELECT ALL + col1 - col2 * + - col0 * - + col1 AS col1 FROM tab1
----
-25070
-290789
-68530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 AS col0, col2 col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - 91 * col1 FROM tab1 cor0
----
-1274
-4277
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL MIN( DISTINCT - 47 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL MIN ( DISTINCT - 47 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT ALL col2 + ( 23 ) DIV 22 AS col1 FROM tab0 WHERE col0 < 49 * - col2 + 68 * ( col1 )
----
11
48

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL col2 + ( 23 ) / 22 AS col1 FROM tab0 WHERE col0 < 49 * - col2 + 68 * ( col1 )
----
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT 85 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2702
SELECT 85 / + col2 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab2 WHERE - col0 + 88 = + col2
----

query I rowsort
SELECT DISTINCT - col1 - - 82 FROM tab2
----
15
31
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT + 7 + - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + 7 + - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 85 * col2 AS col2 FROM tab2
----
1955
3400
4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - col0 AND 85 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT ( 43 ) * ( + COUNT( * ) ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT ( 43 ) * ( + COUNT ( * ) ) FROM tab1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE col1 - col1 BETWEEN NULL AND 7 * - CAST( + col2 / - 12 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE col1 - col1 BETWEEN NULL AND 7 * - CAST ( + col2 / - 12 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL - col0 + + CAST( + col2 AS SIGNED ) / + col0 AS col1 FROM tab1 WHERE col1 BETWEEN 84 AND - col2 + + col0 * + CAST( + 86 - + 76 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - col0 + + CAST ( + col2 AS INTEGER ) / + col0 AS col1 FROM tab1 WHERE col1 BETWEEN 84 AND - col2 + + col0 * + CAST ( + 86 - + 76 AS INTEGER )
----

query I rowsort
SELECT + col0 - 99 FROM tab0
----
-12
-2
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT + ( col1 ) DIV 5 AS col0 FROM tab0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + ( col1 ) / 5 AS col0 FROM tab0
----
0
16
4

query I rowsort
SELECT - col2 * + 73 AS col2 FROM tab1 WHERE col1 * + col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT DISTINCT - col0 DIV 13 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT - col0 / 13 FROM tab2
----
-3
-4
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 72 / 16 + col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT - AVG ( col2 ) AS col0 FROM tab1 WHERE + col2 * col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT - AVG ( col2 ) AS col0 FROM tab1 WHERE + col2 * col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col0 FROM tab1 WHERE NOT NULL <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2720
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2 + col0 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2720
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2 + col0 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND - 24 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT MAX( ALL col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT MAX ( ALL col2 ) AS col1 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT col0 + CAST( col0 AS SIGNED ) * ( col2 ) FROM tab2
----
1104
2624
4425

skipif mysql # not compatible
query I rowsort label-2723
SELECT col0 + CAST ( col0 AS INTEGER ) * ( col2 ) FROM tab2
----
1104
2624
4425

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN - col2 - + col2 AND + 61
----
-1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT MAX( - 52 ) + COUNT( col0 ) FROM tab2 WHERE NULL IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT MAX ( - 52 ) + COUNT ( col0 ) FROM tab2 WHERE NULL IN ( col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT DISTINCT CAST( 65 AS SIGNED ) AS col2 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT CAST ( 65 AS INTEGER ) AS col2 FROM tab2
----
65

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - col0 * - col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 87 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
87

query I rowsort
SELECT + col2 + - col2 * - col1 AS col1 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - 86 + - MIN( DISTINCT 19 + col2 * 20 ) FROM tab0
----
-305

skipif mysql # not compatible
query I rowsort label-2730
SELECT - 86 + - MIN ( DISTINCT 19 + col2 * 20 ) FROM tab0
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + COUNT( + 79 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2731
SELECT + COUNT ( + 79 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT ALL ( col2 ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL ( col2 ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 72 ) FROM tab2
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT COUNT( * ) + 80 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-2734
SELECT COUNT ( * ) + 80 FROM tab1
----
83

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT - 91 + MIN( DISTINCT ( - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + - col0 = col2 / - col2
----
-190

skipif mysql # not compatible
query I rowsort label-2736
SELECT - 91 + MIN ( DISTINCT ( - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + - col0 = col2 / - col2
----
-190

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT - col2 DIV + 63 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT - col2 / + 63 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / col2 + - 29 AND - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL 3 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
27

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL 3 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
27

query I rowsort
SELECT ALL + col1 * 59 + col1 AS col2 FROM tab0
----
1260
4860
60

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND 83
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2745
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN ( + CAST( col2 AS DECIMAL ) + + col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2745
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN ( + CAST ( col2 AS REAL ) + + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( CAST( - ( - col1 ) AS SIGNED ) ) < + ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2746
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( CAST ( - ( - col1 ) AS INTEGER ) ) < + ( col1 )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL IN ( + 90 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT - 33 + - 93 * COUNT( 18 * col2 ) AS col2 FROM tab1 AS cor0
----
-312

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - 33 + - 93 * COUNT ( 18 * col2 ) AS col2 FROM tab1 AS cor0
----
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT DISTINCT + + col1 + - ( 81 ) * ( col1 DIV - col1 ) AS col1 FROM tab1 AS cor0
----
128
86
95

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT + + col1 + - ( 81 ) * ( col1 / - col1 ) AS col1 FROM tab1 AS cor0
----
128
86
95

query I rowsort
SELECT ALL - 3 + col2 AS col0 FROM tab0 AS cor0
----
44
7
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT + MIN( DISTINCT col1 ) * 72 FROM tab1 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT + MIN ( DISTINCT col1 ) * 72 FROM tab1 AS cor0
----
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE + col2 * - 60 BETWEEN 22 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT + 47 + CAST( 31 AS SIGNED ) * COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( ( + 29 ) * - 0 ) IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 47 + CAST ( 31 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( ( + 29 ) * - 0 ) IS NULL
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 10 IN ( col0 )
----

query I rowsort
SELECT ALL + + 49 + col2 FROM tab0 AS cor0
----
148
59
96

query I rowsort
SELECT - - 64 * 65 AS col1 FROM tab1 cor0
----
4160
4160
4160

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = ( col0 )
----

query I rowsort
SELECT - ( - 91 ) AS col0 FROM tab2
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT CAST( + 1 AS SIGNED ) - + col1 / + 84 FROM tab0 WHERE col0 - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2759
SELECT CAST ( + 1 AS INTEGER ) - + col1 / + 84 FROM tab0 WHERE col0 - col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2760
SELECT DISTINCT + ( CAST( NULL AS DECIMAL ) ) + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) + col2 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * + col0 BETWEEN ( NULL ) AND ( col1 * ( - 61 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL 84 + COUNT( * ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL 84 + COUNT ( * ) AS col1 FROM tab2
----
87

query I rowsort
SELECT ALL + col1 / col2 AS col0 FROM tab0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 27 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT - ( col1 ) + col2 * 11 AS col2 FROM tab1 WHERE ( - col2 ) + col2 BETWEEN ( col0 * CAST( NULL AS SIGNED ) ) AND + 79
----

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - ( col1 ) + col2 * 11 AS col2 FROM tab1 WHERE ( - col2 ) + col2 BETWEEN ( col0 * CAST ( NULL AS INTEGER ) ) AND + 79
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2766
SELECT 7 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT 7 - + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 * col2 col0 FROM tab1
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT - + MAX( ALL - + 3 ) + + MIN( col2 - + col0 * + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-1814

skipif mysql # not compatible
query I rowsort label-2768
SELECT - + MAX ( ALL - + 3 ) + + MIN ( col2 - + col0 * + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-1814

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND col0 / - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( - 13 ) > ( NULL )
----

query I rowsort
SELECT + 25 AS col2 FROM tab2, tab1 AS cor0 WHERE NOT 74 / - 58 IS NULL
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL - + 17 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2774
SELECT CAST( + 55 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2774
SELECT CAST ( + 55 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT + col0 ) + ( COUNT( * ) ) * + 29 AS col0 FROM tab2 AS cor0
----
642

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT + col0 ) + ( COUNT ( * ) ) * + 29 AS col0 FROM tab2 AS cor0
----
642

query II rowsort
SELECT 36, + 8 + - col2 * + 34 AS col1 FROM tab1 AS cor0
----
36
-1998
36
-2304
36
-3256

query I rowsort
SELECT ALL + + col2 * + + 36 FROM tab2 AS cor0
----
1440
2088
828

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - MAX( ALL + - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2778
SELECT - MAX ( ALL + - col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2779
SELECT DISTINCT 64 * - MIN( 74 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 / - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT 64 * - MIN ( 74 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 / - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2780
SELECT MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT ALL col2 * - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 >= + col1 * col2
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL col2 * - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 >= + col1 * col2
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT 25 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT 25 / col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < 50
----
0

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < 50
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2784
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + col1 / CAST( NULL AS DECIMAL ) IN ( ( col2 ) - - col1 )
----

skipif mysql # not compatible
query III rowsort label-2784
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + col1 / CAST ( NULL AS REAL ) IN ( ( col2 ) - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - MIN( 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2785
SELECT - MIN ( 97 ) FROM tab2 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 > - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 78 + - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2789
SELECT * FROM tab2 WHERE NOT - col0 * CAST( NULL AS SIGNED ) = - col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-2789
SELECT * FROM tab2 WHERE NOT - col0 * CAST ( NULL AS INTEGER ) = - col0 * + col0
----

query I rowsort
SELECT ALL + 40 * - - col0 * + + col0 * + col2 FROM tab2
----
13050000
1946720
6553600

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT ALL ( + ( - 38 ) ) DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL ( + ( - 38 ) ) / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2792
SELECT - 8 DIV COUNT( * ) col0 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2792
SELECT - 8 / COUNT ( * ) col0 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab1 WHERE 41 BETWEEN + ( col2 ) AND + 59 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2794
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + 56 * + 90 FROM tab0
----
5040
5040
5040

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - + col2 * - - col0 * - 83 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2797
SELECT CAST( - 52 AS SIGNED ) * COUNT( * ) FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-2797
SELECT CAST ( - 52 AS INTEGER ) * COUNT ( * ) FROM tab2
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2798
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 * + col1 NOT IN ( - + col0 + col0 * CAST( - 58 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2798
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 * + col1 NOT IN ( - + col0 + col0 * CAST ( - 58 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT DISTINCT ( - 19 ) + col0 FROM tab1
----
32
66
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + COUNT( * ) * - COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT + COUNT ( * ) * - COUNT ( * ) col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + 19 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + 19 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT + col2 * col2 * col0 DIV 22 FROM tab1
----
13449
19126
21364

skipif mysql # not compatible
query I rowsort label-2803
SELECT + col2 * col2 * col0 / 22 FROM tab1
----
13449
19126
21364

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 42 / 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + + COUNT( * ) + 35 FROM tab2 cor0
----
38

skipif mysql # not compatible
query I rowsort label-2806
SELECT + + COUNT ( * ) + 35 FROM tab2 cor0
----
38

query I rowsort
SELECT + col2 + - 39 FROM tab0 AS cor0
----
-29
60
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2808
SELECT col0 + + col0 DIV 12 * + col2 + - + 89 DIV col2 FROM tab1
----
435
497
566

skipif mysql # not compatible
query I rowsort label-2808
SELECT col0 + + col0 / 12 * + col2 + - + 89 / col2 FROM tab1
----
435
497
566

query I rowsort
SELECT DISTINCT + col0 + + ( + col2 ) AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + COUNT( * ) + 21 AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2810
SELECT + COUNT ( * ) + 21 AS col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT MIN( 2 ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-2811
SELECT MIN ( 2 ) AS col0 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT DISTINCT + COUNT( * ) * 34 - - COUNT( * ) + 34 AS col0 FROM tab0
----
139

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT + COUNT ( * ) * 34 - - COUNT ( * ) + 34 AS col0 FROM tab0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT DISTINCT COUNT( * ) + + MAX( + 15 ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT COUNT ( * ) + + MAX ( + 15 ) AS col2 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2814
SELECT CAST( NULL AS SIGNED ) col1, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2814
SELECT CAST ( NULL AS INTEGER ) col1, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT + 54 DIV COUNT( + col1 ) col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2815
SELECT + 54 / COUNT ( + col1 ) col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT 48 FROM tab2 WHERE NOT NULL NOT IN ( - 48 * - col0 * col2, + col2 )
----

query I rowsort
SELECT ALL + 11 * 33 FROM tab1 cor0
----
363
363
363

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - - 1 * - - col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT + MIN( - 79 ) * + 12 FROM tab2 AS cor0
----
-948

skipif mysql # not compatible
query I rowsort label-2821
SELECT + MIN ( - 79 ) * + 12 FROM tab2 AS cor0
----
-948

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT + col1 DIV - - 64 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2822
SELECT + col1 / - - 64 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2823
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2823
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL - COUNT( ALL - + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - COUNT ( ALL - + col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL + 67 * - COUNT( * ) AS col1 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + 67 * - COUNT ( * ) AS col1 FROM tab2
----
-201

query I rowsort
SELECT col1 * - - col0 * col2 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT DISTINCT + COUNT( + col0 ) * + 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT + COUNT ( + col0 ) * + 3 FROM tab1
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2828
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2829
SELECT ALL - 40 DIV col0 * + 51, + col2 + col1 AS col0 FROM tab0
----
-102
128
0
100
0
31

skipif mysql # not compatible
query II rowsort label-2829
SELECT ALL - 40 / col0 * + 51, + col2 + col1 AS col0 FROM tab0
----
-102
128
0
100
0
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2830
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 IN ( CAST( NULL AS SIGNED ), col0 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-2830
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 IN ( CAST ( NULL AS INTEGER ), col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col2 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - 70 * - 8 * + + col1 AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT 40, + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL - MAX( + + col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - MAX ( + + col2 ) FROM tab1 cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, col2 * + + col2 * - col1 col1 FROM tab0 AS cor0
----
-10
-2100
-47
-178929
-99
-9801

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE - + ( - + 94 ) NOT BETWEEN - - 47 AND NULL
----

query I rowsort
SELECT ALL col0 + 39 FROM tab2
----
103
114
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT ALL - col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + ( - + col0 ) ) * + - 16 + + col0 - + ( - - col2 ) + - 43 <> ( 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2840
SELECT DISTINCT - 88 - - 13 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT - 88 - - 13 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2841
SELECT - - CAST( + 63 AS SIGNED ) DIV - + 9 FROM tab2 cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-2841
SELECT - - CAST ( + 63 AS INTEGER ) / - + 9 FROM tab2 cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-2842
SELECT + col0 * 72, 1 - + col0 + - col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
1080
-15
6264
-88
6984
-96

skipif mysql # not compatible
query II rowsort label-2842
SELECT + col0 * 72, 1 - + col0 + - col1 / + col2 AS col2 FROM tab0 AS cor0
----
1080
-15
6264
-88
6984
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2843
SELECT DISTINCT + + ( + 96 ) + + MIN( - - col2 ) col1, - 1 AS col1 FROM tab0 AS cor0
----
106
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2843
SELECT DISTINCT + + ( + 96 ) + + MIN ( - - col2 ) col1, - 1 AS col1 FROM tab0 AS cor0
----
106
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT + + 24 / MIN( DISTINCT + col0 ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT + + 24 / MIN ( DISTINCT + col0 ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 18 + + col2 * + ( - col1 ) * + col2 AS col2 FROM tab1
----
-130752
-18467
-218552

query I rowsort
SELECT 48 - - col1 FROM tab2
----
115
125
99

query I rowsort
SELECT col0 - col0 + + col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT 45 + + col1 + + + 81 DIV + + col2 FROM tab0
----
127
46
74

skipif mysql # not compatible
query I rowsort label-2848
SELECT 45 + + col1 + + + 81 / + + col2 FROM tab0
----
127
46
74

query I rowsort
SELECT col0 + - 88 FROM tab2
----
-13
-24
-42

query II rowsort
SELECT - - 74 AS col1, + col1 AS col2 FROM tab0 cor0
----
74
1
74
21
74
81

query I rowsort
SELECT ALL + + ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT 29 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + CAST( - col1 AS SIGNED ) + + + col1
----

skipif mysql # not compatible
query I rowsort label-2852
SELECT 29 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + CAST ( - col1 AS INTEGER ) + + + col1
----

query II rowsort
SELECT DISTINCT ( col0 ) AS col2, col1 + - col1 / - col1 FROM tab2 cor0 WHERE ( - col0 - + col1 * - + 59 * col1 + + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - ( COUNT( * ) ) + 94 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2855
SELECT - ( COUNT ( * ) ) + 94 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 12 col0 FROM tab1
----
-1020
-1092
-612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL + - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col1, 45 * + + col2 FROM tab0 AS cor0
----
-10
450
-47
2115
-99
4455

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT DISTINCT - COUNT( * ), - AVG ( + 64 ) - 76 AS col1 FROM tab1 AS cor0 WHERE 58 * + + 52 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2859
SELECT DISTINCT - COUNT ( * ), - AVG ( + 64 ) - 76 AS col1 FROM tab1 AS cor0 WHERE 58 * + + 52 IS NULL
----
0
NULL

query I rowsort
SELECT ALL - col1 / + col0 AS col2 FROM tab1 AS cor0 WHERE ( 37 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 44 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL MAX( ALL + - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL MAX ( ALL + - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2864
SELECT ALL - CAST( NULL AS DECIMAL ) + - - 94 * + + 70 - + - col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - CAST ( NULL AS REAL ) + - - 94 * + + 70 - + - col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - + 97 ) + col0 AS col0 FROM tab0
----
112
184
194

query I rowsort
SELECT + - 60 AS col2 FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT COUNT( * ) * + - 77 AS col2 FROM tab1 WHERE ( + 29 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT COUNT ( * ) * + - 77 AS col2 FROM tab1 WHERE ( + 29 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + - COUNT( ALL ( 26 ) ) + + 90 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2868
SELECT + - COUNT ( ALL ( 26 ) ) + + 90 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2869
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + - col2 + + + CAST( 0 AS SIGNED ) * 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2869
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + - col2 + + + CAST ( 0 AS INTEGER ) * 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT SUM( DISTINCT - - 14 ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2870
SELECT SUM ( DISTINCT - - 14 ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT ALL 61 + + 82 + - col1 * - col0 * + col2 AS col0 FROM tab1
----
25218
290979
68687

query I rowsort
SELECT DISTINCT - 34 + - + 20 AS col0 FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - + 36 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-36

query I rowsort
SELECT + col0 * 72 + col0 AS col0 FROM tab1 AS cor0
----
3723
6205
6643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2875
SELECT ALL + SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + col1 > + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + col1 > + + col0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> - 12
----

query I rowsort
SELECT DISTINCT + ( + 9 ) + col0 FROM tab2 cor0
----
55
73
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 57 * - ( col0 ) col0, col1 FROM tab1 cor0
----
-2907
14
-4845
5
-5187
47

query I rowsort
SELECT - col0 * + col1 + - 12 FROM tab1 AS cor0
----
-4289
-437
-726

query I rowsort
SELECT + 70 FROM tab1 cor0 WHERE col0 <> - + ( col1 )
----
70
70
70

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 75 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT DISTINCT + 88 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + 88 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - + 17 AS col2 FROM tab0 AS cor0
----
-104
-114
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT DISTINCT - col0 + + - col0 DIV - - col2 AS col2 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT - col0 + + - col0 / - - col2 AS col2 FROM tab2
----
-48
-65
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-2886
SELECT DISTINCT + col1 DIV col1 * - 89 + + 61 AS col0, ( + 71 ) FROM tab2
----
-28
71

skipif mysql # not compatible
query II rowsort label-2886
SELECT DISTINCT + col1 / col1 * - 89 + + 61 AS col0, ( + 71 ) FROM tab2
----
-28
71

onlyif mysql # DIV for integer division: 
query II rowsort label-2887
SELECT ALL col1 DIV col0, 27 * - col2 col1 FROM tab1
----
0
-1593
0
-1836
0
-2592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2887
SELECT ALL col1 / col0, 27 * - col2 col1 FROM tab1
----
0
-1593
0
-1836
0
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - ( COUNT( ALL + 71 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2888
SELECT - ( COUNT ( ALL + 71 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT ALL - col0 DIV 32 AS col1 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - col0 / 32 AS col1 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT 65 * 50 FROM tab2
----
3250
3250
3250

query I rowsort
SELECT ALL col1 * + 16 FROM tab2 WHERE NOT col2 * + + 92 * + + 25 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + - 60 ) AS col1 FROM tab0 cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT ALL - col0 AS col0, + col0 + col2 + - - col2 AS col0 FROM tab1 AS cor0
----
-51
243
-85
203
-91
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT ALL - ( - MAX( col1 ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - ( - MAX ( col1 ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 41 * + 98 + - col1 AS col0 FROM tab2 cor0
----
-4069
-4085
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - COUNT( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2897
SELECT - COUNT ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2898
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + col2 AS DECIMAL ) IN ( - col0 + - + 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2898
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + col2 AS REAL ) IN ( - col0 + - + 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT DISTINCT 40 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT 40 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 WHERE + 89 NOT IN ( - 62, 68, + + col0 + col1 * + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 52 AS col2, - 56 FROM tab2
----
52
-56
52
-56
52
-56

query II rowsort
SELECT ALL + 83 AS col2, + 3 FROM tab0
----
83
3
83
3
83
3

query II rowsort
SELECT - col2 AS col1, - col1 AS col2 FROM tab1
----
-59
-5
-68
-47
-96
-14

query I rowsort
SELECT DISTINCT col0 + 6 AS col1 FROM tab1
----
57
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - + COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2906
SELECT - + COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
0

query I rowsort
SELECT DISTINCT - 93 * - 80 FROM tab0 AS cor0
----
7440

query I rowsort
SELECT - col0 + - - col2 AS col0 FROM tab0 cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT ALL - - 99 DIV 87 + + col2 DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - - 99 / 87 + + col2 / - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + ( + MIN( ALL - 28 ) ) + - ( + SUM( DISTINCT ( - 39 ) ) ) AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2910
SELECT + ( + MIN ( ALL - 28 ) ) + - ( + SUM ( DISTINCT ( - 39 ) ) ) AS col2 FROM tab1 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - - 8 col2 FROM tab2 AS cor0
----
-1592
-3356
-521

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - + MIN( ALL + - col2 ) + + MIN( DISTINCT - 73 ) AS col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2913
SELECT - + MIN ( ALL + - col2 ) + + MIN ( DISTINCT - 73 ) AS col0 FROM tab1 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - COUNT( * ) * - 49 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - COUNT ( * ) * - 49 FROM tab0
----
147

query I rowsort
SELECT 62 AS col1 FROM tab2 WHERE - - 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 - col1 col1 FROM tab2 AS cor0
----
-19
-29
-3

query I rowsort
SELECT DISTINCT col2 - - + col0 * col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT + COUNT( * ) - - COUNT( * ) DIV 1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2918
SELECT + COUNT ( * ) - - COUNT ( * ) / 1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT - 41 * - SUM( ALL - col0 ) - + - COUNT( * ) col1 FROM tab1 AS cor0
----
-9304

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2919
SELECT - 41 * - SUM ( ALL - col0 ) - + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-9304

query I rowsort
SELECT col2 - + + 75 FROM tab2 AS cor0
----
-17
-35
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT ALL + ( 15 ) DIV + MIN( ALL - 23 ) + 6 AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL + ( 15 ) / + MIN ( ALL - 23 ) + 6 AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT DISTINCT + col2 DIV - 49 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT + col2 / - 49 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT DISTINCT + 19 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + 19 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - 96 ) FROM tab2 AS cor0
----
-96
-96
-96

query II rowsort
SELECT ALL + 33, col0 FROM tab2 AS cor0
----
33
46
33
64
33
75

query II rowsort
SELECT 38 AS col0, col2 FROM tab2 AS cor0
----
38
23
38
40
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - MAX( ALL - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2928
SELECT - MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE 67 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT - COUNT( DISTINCT - col0 ), 32 col1 FROM tab2 cor0
----
-3
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2930
SELECT - COUNT ( DISTINCT - col0 ), 32 col1 FROM tab2 cor0
----
-3
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( + col2, + col0, - 55 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 8 IS NULL
----

query I rowsort
SELECT DISTINCT - 46 + + col0 FROM tab1 AS cor0
----
39
45
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT SUM( 9 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-2934
SELECT SUM ( 9 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
27

query I rowsort
SELECT col2 * col2 + - 86 AS col1 FROM tab2
----
1514
3278
443

query I rowsort
SELECT ALL 89 + - col2 FROM tab2
----
31
49
66

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 <> NULL
----

query I rowsort
SELECT + col2 + ( + 91 ) FROM tab2
----
114
131
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT ALL - 18 + - col0 + + col1 * - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-2410
-5010
-5118

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - 18 + - col0 + + col1 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-2410
-5010
-5118

query I rowsort
SELECT col2 * + - col1 + - + col0 + ( - 49 ) FROM tab2
----
-1268
-3193
-4010

query I rowsort
SELECT - 22 + + col1 AS col2 FROM tab1
----
-17
-8
25

query III rowsort
SELECT * FROM tab2 WHERE - + col1 = 46
----

query II rowsort
SELECT 18 + - ( 5 ) AS col1, col1 + - col1 FROM tab2
----
13
0
13
0
13
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2944
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 28 * - 14 NOT IN ( + + 68, - col2, - col1, + ( col1 ), - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2944
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 28 * - 14 NOT IN ( + + 68, - col2, - col1, + ( col1 ), - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + - col0 + + 27 AS col1 FROM tab2 cor0
----
-19
-37
-48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + 76 * + ( - col0 ) + - 76 + col1 FROM tab1
----
-3924
-6526
-6898

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + COUNT( + 83 ) * 62 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
558

skipif mysql # not compatible
query I rowsort label-2948
SELECT + COUNT ( + 83 ) * 62 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
558

query II rowsort
SELECT ALL 8 - + col2 * - + col0 + + 82, - col2 * col2 AS col0 FROM tab1
----
4986
-9216
5105
-3481
6278
-4624

query III rowsort
SELECT * FROM tab1 WHERE - ( - 19 ) - + 68 + ( col1 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2952
SELECT DISTINCT COUNT( * ) - - COUNT( * ) DIV + COUNT( * ) FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) / + COUNT ( * ) FROM tab0 cor0
----
4

query I rowsort
SELECT ALL - col2 - + col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT SUM( DISTINCT - 46 ), 45 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
48

skipif mysql # not compatible
query II rowsort label-2954
SELECT SUM ( DISTINCT - 46 ), 45 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
48

query II rowsort
SELECT DISTINCT - 42 * - col0, 69 AS col0 FROM tab2 AS cor0
----
1932
69
2688
69
3150
69

query II rowsort
SELECT ALL - 2 AS col0, col2 FROM tab1 AS cor0
----
-2
59
-2
68
-2
96

query II rowsort
SELECT ALL + 35 AS col2, + ( - - col1 ) * + col2 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
35
-1257
35
-5085
35
-6930

query II rowsort
SELECT + - 81, col2 FROM tab2 AS cor0
----
-81
23
-81
40
-81
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 70 AS col1, + col0 col1 FROM tab0 AS cor0
----
70
15
70
87
70
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT - + col2 * + + CAST( - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2960
SELECT - + col2 * + + CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT + MAX( DISTINCT + - col0 ) * + COUNT( * ), SUM( + 31 ) AS col1 FROM tab2
----
-138
93

skipif mysql # not compatible
query II rowsort label-2961
SELECT + MAX ( DISTINCT + - col0 ) * + COUNT ( * ), SUM ( + 31 ) AS col1 FROM tab2
----
-138
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2962
SELECT ALL - CAST( col1 AS SIGNED ) AS col1, + col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

skipif mysql # not compatible
query II rowsort label-2962
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1, + col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 * - 19 * + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT ALL - COUNT( * ) * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - COUNT ( * ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT + COUNT( * ) * - 30 AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + COUNT ( * ) * - 30 AS col2 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL < - ( - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL < - ( - - col2 )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( NULL <= - ( col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2968
SELECT DISTINCT col1, 39 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2968
SELECT DISTINCT col1, 39 - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL - ( + + 11 ) * - COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - ( + + 11 ) * - COUNT ( * ) FROM tab0
----
33

query I rowsort
SELECT col2 * - col0 * - 25 AS col2 FROM tab2
----
108750
26450
64000

query I rowsort
SELECT ALL - 6 * + - 64 AS col1 FROM tab2
----
384
384
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * - col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * - col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT col2 + + col1 + + 26 FROM tab2
----
100
143
151

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT ALL 26 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL 26 / + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2975
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
9

query I rowsort
SELECT - 40 + - - col0 + 82 * + col0 * ( 41 ) FROM tab2 AS cor0
----
154658
215192
252185

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT DISTINCT - COUNT( * ), + COUNT( * ) AS col1 FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2977
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 cor0
----
-3
3

query I rowsort
SELECT DISTINCT col2 + + - col1 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-200
-3760
0

query II rowsort
SELECT - 35, + col2 AS col1 FROM tab2 AS cor0
----
-35
23
-35
40
-35
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL - 4 + + - ( - - COUNT( * ) ) col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2980
SELECT ALL - 4 + + - ( - - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 83 col2 FROM tab2 AS cor0
----
-25
-43
-60

query II rowsort
SELECT ALL + col0 AS col1, col0 * - 46 * - 59 * - 53 * - col0 FROM tab2 AS cor0
----
46
304369672
64
589176832
75
809111250

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2984
SELECT MAX( + 28 ) col0, - 22 AS col1 FROM tab1
----
28
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2984
SELECT MAX ( + 28 ) col0, - 22 AS col1 FROM tab1
----
28
-22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 2 + col0 + + col1 NOT BETWEEN + col2 AND col0
----

query I rowsort
SELECT ALL - col0 - - - 17 + col1 - - col0 FROM tab2
----
34
50
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2987
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) + col1 + + col1 * 58 + - col1 + 63 * col2 * + + col0 * col1
----

skipif mysql # not compatible
query III rowsort label-2987
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) + col1 + + col1 * 58 + - col1 + 63 * col2 * + + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL 88 + - 59 * + - MAX( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT + 3 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 88 + - 59 * + - MAX ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT + 3 IS NOT NULL
----
NULL

query I rowsort
SELECT - + ( - col0 ) + - col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT 83 + 20 FROM tab1 AS cor0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - - COUNT( DISTINCT + col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2991
SELECT - - COUNT ( DISTINCT + col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= + - col2 - + col0 + - col1 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + + col2 + col0 FROM tab2
----
1104
2624
4425

query II rowsort
SELECT + col0 AS col1, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT + ( - + col1 ) * 85 AS col2 FROM tab2 cor0
----
-4335
-5695
-6545

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 75 - - 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 78 FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT - COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT - COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + 95 AS col0 FROM tab1 AS cor0
----
95

query II rowsort
SELECT ALL - + col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT DISTINCT - COUNT( * ), SUM( - + col0 ) AS col1 FROM tab1 AS cor0
----
-3
-227

skipif mysql # not compatible
query II rowsort label-3001
SELECT DISTINCT - COUNT ( * ), SUM ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-3
-227

query I rowsort
SELECT + + col2 * col0 * - 42 + + col0 AS col0 FROM tab0 AS cor0
----
-29595
-36453
-403229

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT + MAX( - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + MAX ( - col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3004
SELECT DISTINCT + 38 col0, MIN( ALL - col0 ) FROM tab0
----
38
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3004
SELECT DISTINCT + 38 col0, MIN ( ALL - col0 ) FROM tab0
----
38
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL - SUM( DISTINCT + + 90 ) * - COUNT( * ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - SUM ( DISTINCT + + 90 ) * - COUNT ( * ) FROM tab2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT - col2 * 85 AS col1 FROM tab1
----
-5015
-5780
-8160

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 27 col1, + 19 AS col0 FROM tab1 AS cor0
----
27
19
27
19
27
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3010
SELECT + + 42, ( + col1 ) * + CAST( - col1 AS SIGNED ) + 4 * 34 AS col2 FROM tab0 cor0
----
42
-305
42
-6425
42
135

skipif mysql # not compatible
query II rowsort label-3010
SELECT + + 42, ( + col1 ) * + CAST ( - col1 AS INTEGER ) + 4 * 34 AS col2 FROM tab0 cor0
----
42
-305
42
-6425
42
135

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT ALL col2 * 39 DIV - - 40 + - 21 AS col1 FROM tab2 AS cor0
----
1
18
35

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL col2 * 39 / - - 40 + - 21 AS col1 FROM tab2 AS cor0
----
1
18
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + 58 * + 56
----

query I rowsort
SELECT ( + col1 ) * + 92 AS col2 FROM tab1
----
1288
4324
460

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT COUNT( * ) * + + SUM( ALL - 44 ) AS col1 FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT COUNT ( * ) * + + SUM ( ALL - 44 ) AS col1 FROM tab2
----
-396

query I rowsort
SELECT - col0 * + + 31 AS col2 FROM tab0
----
-2697
-3007
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT + + SUM( + + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3016
SELECT + + SUM ( + + col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL + MIN( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT 30 + + - COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3018
SELECT 30 + + - COUNT ( * ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT - col2 * 51 + + col2 AS col0 FROM tab2 AS cor0
----
-1150
-2000
-2900

query II rowsort
SELECT DISTINCT + col0 + col1 AS col2, 98 AS col2 FROM tab1 AS cor0
----
138
98
65
98
90
98

query I rowsort
SELECT DISTINCT - col0 + + - ( + - col0 ) * + col1 * + col2 AS col2 FROM tab0 cor0
----
18183
57090
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT ALL 41 * + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3022
SELECT ALL 41 * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT DISTINCT 29 + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT 29 + COUNT ( * ) FROM tab1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + col0 col1 FROM tab2
----
116
134
145

query III rowsort
SELECT * FROM tab0 WHERE - ( - 51 ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - 40 FROM tab1
----
2040
3400
3640

query I rowsort
SELECT ALL - col1 + 78 AS col2 FROM tab0
----
-3
57
77

query I rowsort
SELECT 18 * 92 FROM tab0
----
1656
1656
1656

query I rowsort
SELECT - col1 * 5 * + col1 FROM tab0 AS cor0
----
-2205
-32805
-5

query I rowsort
SELECT ALL col0 + - col0 FROM tab0 AS cor0 WHERE NOT 42 IS NOT NULL
----

query I rowsort
SELECT 6 - + col2 FROM tab2 AS cor0
----
-17
-34
-52

query I rowsort
SELECT + col2 - - + col1 AS col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT - 61 DIV + + COUNT( * ) col2 FROM tab2
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3033
SELECT - 61 / + + COUNT ( * ) col2 FROM tab2
----
-20

query I rowsort
SELECT DISTINCT 7 * 94 FROM tab2 AS cor0
----
658

query I rowsort
SELECT - - 13 AS col0 FROM tab2 cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL - ( - + MAX( ALL - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - ( - + MAX ( ALL - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 48 AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <= - - 74
----

query I rowsort
SELECT + col1 * + 53 AS col2 FROM tab1 AS cor0
----
2491
265
742

query I rowsort
SELECT ALL - col0 + - col1 - + col2 FROM tab1 WHERE NOT + + col1 + ( + col0 ) IS NULL
----
-149
-161
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3041
SELECT DISTINCT + 76, + COUNT( * ) * + CAST( - MAX( + CAST( NULL AS SIGNED ) ) AS SIGNED ) col0 FROM tab1
----
76
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3041
SELECT DISTINCT + 76, + COUNT ( * ) * + CAST ( - MAX ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col0 FROM tab1
----
76
NULL

query I rowsort
SELECT - + ( ( + ( - col0 ) ) ) * - + 52 - + + col2 FROM tab0 WHERE NOT - col0 + col1 IS NULL
----
-4534
-5143
-827

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 81 BETWEEN NULL AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 14 < NULL
----

query I rowsort
SELECT - ( + ( 50 ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-109
-118
-146

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3046
SELECT - CAST( NULL AS SIGNED ) * col1 * - + col2 + + - 5 AS col0, ( - col0 ) DIV col0 AS col2 FROM tab2
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-3046
SELECT - CAST ( NULL AS INTEGER ) * col1 * - + col2 + + - 5 AS col0, ( - col0 ) / col0 AS col2 FROM tab2
----
NULL
-1
NULL
-1
NULL
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col1 FROM tab1 cor0
----
44
44
44

query II rowsort
SELECT - 87 AS col1, 53 AS col0 FROM tab2 AS cor0
----
-87
53
-87
53
-87
53

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + 47 * - - 65 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 68 * - - col1 AS col2 FROM tab2 AS cor0 WHERE col1 - - col1 NOT BETWEEN + col0 + + col0 AND + col1
----
-3468
-4556
-5236

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT + col2 DIV + 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT + col2 / + 76 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - + col2 ) * + 72 FROM tab2 AS cor0
----
1656
2880
4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3055
SELECT MAX( ALL - - col0 ) DIV - COUNT( ALL + col1 ) AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-3055
SELECT MAX ( ALL - - col0 ) / - COUNT ( ALL + col1 ) AS col2 FROM tab2
----
-25

query I rowsort
SELECT col0 - + ( col1 ) * + + col0 FROM tab0
----
-1200
-1740
0

query III rowsort
SELECT * FROM tab2 WHERE - 30 + - - 92 + col0 * ( col1 ) + - 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 80 - - col1 + + 9 * - + 42 * - + col0 FROM tab1
----
19372
32215
34525

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3059
SELECT ALL + CAST( col2 AS SIGNED ) * + col2 + - 10, - col1 AS col0 FROM tab1 WHERE - col0 >= NULL
----

skipif mysql # not compatible
query II rowsort label-3059
SELECT ALL + CAST ( col2 AS INTEGER ) * + col2 + - 10, - col1 AS col0 FROM tab1 WHERE - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col0 + + - ( - col2 ) FROM tab1
----
-111
-114
-6

query I rowsort
SELECT - 30 + + col0 AS col1 FROM tab2 cor0
----
16
34
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 13 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3063
SELECT + - CAST( NULL AS DECIMAL ) AS col2, 86 DIV - 70 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 70d580a8b929ce07b729fe6677178cb9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3063
SELECT + - CAST ( NULL AS REAL ) AS col2, 86 / - 70 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 70d580a8b929ce07b729fe6677178cb9

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT - col0 DIV 64 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT - col0 / 64 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL - MAX( ALL - col0 ) * 91 + - - 14 AS col1 FROM tab0 AS cor0
----
1379

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - MAX ( ALL - col0 ) * 91 + - - 14 AS col1 FROM tab0 AS cor0
----
1379

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 91 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT + - ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + - ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT MAX( + - 17 ) AS col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3069
SELECT MAX ( + - 17 ) AS col0 FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT ALL + + CAST( 3 AS SIGNED ) AS col1 FROM tab1 cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + + CAST ( 3 AS INTEGER ) AS col1 FROM tab1 cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT MIN( DISTINCT col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT + 72 + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-24
13
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT ALL col0 DIV col1 * - col1 AS col1 FROM tab2
----
-67
0
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL col0 / col1 * - col1 AS col1 FROM tab2
----
-67
0
0

query I rowsort
SELECT DISTINCT col2 + - 18 AS col1 FROM tab1
----
41
50
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT - col2 DIV + - 13 + - + 17 DIV col0 FROM tab0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-3075
SELECT - col2 / + - 13 + - + 17 / col0 FROM tab0
----
0
2
7

query I rowsort
SELECT col2 + col2 + + col1 + + col2 * col0 * 76 FROM tab1 cor0
----
372302
381263
470471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT 85 / col1 * ( + col2 ) + - - ( + + ( - col1 ) ) + - - CAST( NULL AS SIGNED ) * col2 - + - 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT 85 / col1 * ( + col2 ) + - - ( + + ( - col1 ) ) + - - CAST ( NULL AS INTEGER ) * col2 - + - 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT MAX( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT MAX ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + + 3 + - 80 - 0 AS col0 FROM tab1 cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3080
SELECT ALL - + CAST( + col0 AS SIGNED ) DIV - 60 - - col0 FROM tab0 AS cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - + CAST ( + col0 AS INTEGER ) / - 60 - - col0 FROM tab0 AS cor0
----
15
88
98

query I rowsort
SELECT col1 + + col1 + 2 FROM tab1 AS cor0
----
12
30
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL - + 95 * + COUNT( * ) FROM tab1 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - + 95 * + COUNT ( * ) FROM tab1 cor0
----
-285

query I rowsort
SELECT ALL + 63 * col0 + - - col1 AS col2 FROM tab1 AS cor0
----
3227
5360
5780

query I rowsort
SELECT ALL - 6 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 - + + 88 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 - + + 88 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE NOT NULL <= - + col0
----

query I rowsort
SELECT ALL + 2 * - col1 - + + col1 FROM tab2
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + MAX( + - 80 ) FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-3088
SELECT + MAX ( + - 80 ) FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - SUM( 44 ) col1 FROM tab1, tab1 AS cor0
----
-396

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3089
SELECT - SUM ( 44 ) col1 FROM tab1, tab1 AS cor0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + ( + - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3090
SELECT + ( + - COUNT ( * ) ) AS col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 - - col0 col2 FROM tab1
----
-12
-46
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * + col2 + - col0 + + 63 IS NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT + 80 IN ( + col2 + + col0, 83, col2, - col1, + ( - col2 ), + col0 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + - COUNT( * ) * + 38 * - 5 FROM tab1 AS cor0
----
570

skipif mysql # not compatible
query I rowsort label-3094
SELECT + - COUNT ( * ) * + 38 * - 5 FROM tab1 AS cor0
----
570

query II rowsort
SELECT + col0 AS col0, + col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3096
SELECT DISTINCT CAST( MAX( col2 ) AS SIGNED ), - 14 AS col0 FROM tab0
----
99
-14

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT CAST ( MAX ( col2 ) AS INTEGER ), - 14 AS col0 FROM tab0
----
99
-14

query I rowsort
SELECT + - 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT 16 * + SUM( + - col2 ) FROM tab2 AS cor0
----
-1936

skipif mysql # not compatible
query I rowsort label-3098
SELECT 16 * + SUM ( + - col2 ) FROM tab2 AS cor0
----
-1936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / ( + - 45 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 + + + col2 IS NOT NULL
----

query I rowsort
SELECT col2 * - 81 * + col2 FROM tab0 AS cor0
----
-178929
-793881
-8100

query I rowsort
SELECT ALL + col1 + - 9 - + col1 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

query II rowsort
SELECT ALL + col1 + col1 + + col2, - col2 AS col2 FROM tab1
----
124
-96
162
-68
69
-59

query I rowsort
SELECT DISTINCT col0 * 33 AS col0 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL + ( - - 45 ) + COUNT( * ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + ( - - 45 ) + COUNT ( * ) AS col2 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT 55 + ( - - COUNT( * ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 55 + ( - - COUNT ( * ) ) FROM tab2
----
58

query II rowsort
SELECT DISTINCT col1 AS col1, - 22 AS col0 FROM tab1
----
14
-22
47
-22
5
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT col1 FROM tab1 WHERE - CAST( col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3107
SELECT col1 FROM tab1 WHERE - CAST ( col2 AS INTEGER ) = NULL
----

query II rowsort
SELECT + 92, col1 AS col2 FROM tab0 AS cor0
----
92
1
92
21
92
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND - col2
----

query I rowsort
SELECT col0 + - + 66 FROM tab2 AS cor0
----
-2
-20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - COUNT( * ) * + - 41 * - - COUNT( * ) + - MIN( + col0 ) col2 FROM tab1 AS cor0
----
318

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT - COUNT ( * ) * + - 41 * - - COUNT ( * ) + - MIN ( + col0 ) col2 FROM tab1 AS cor0
----
318

query I rowsort
SELECT ALL - ( col2 ) + 19 * - col2 + + col0 + 17 FROM tab1
----
-1078
-1252
-1852

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23

query III rowsort
SELECT * FROM tab0 WHERE - + 40 NOT BETWEEN NULL AND + + 95
----

query I rowsort
SELECT DISTINCT - + col0 - + + ( + - col0 ) + + + col1 + col0 * col1 * + + 79 * 13 AS col2 FROM tab1 AS cor0
----
436480
4392526
733292

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 - - - col0 + + - col0 IS NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 cor0 WHERE col2 NOT BETWEEN NULL AND - - 73 + col1
----
99

query I rowsort
SELECT ALL - 85 * 98 + col2 FROM tab2 AS cor0
----
-8272
-8290
-8307

onlyif mysql # aggregate syntax: 
query II rowsort label-3119
SELECT 78 * - + 58 AS col1, COUNT( * ) + + ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-4524
6

skipif mysql # not compatible
query II rowsort label-3119
SELECT 78 * - + 58 AS col1, COUNT ( * ) + + ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-4524
6

query I rowsort
SELECT DISTINCT + - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL 79 * - + 69 + COUNT( * ) FROM tab0 AS cor0
----
-5448

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL 79 * - + 69 + COUNT ( * ) FROM tab0 AS cor0
----
-5448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 2 col2 FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + ( + - 32 ) - + col0 FROM tab0
----
-119
-129
-47

query I rowsort
SELECT + col1 * 13 * ( + col1 ) AS col0 FROM tab2
----
33813
58357
77077

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 69 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - + col2 ) * ( + col1 ) AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT col2 * col0 DIV 37 FROM tab1
----
132
135
167

skipif mysql # not compatible
query I rowsort label-3128
SELECT col2 * col0 / 37 FROM tab1
----
132
135
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL + MIN( col2 ) col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3129
SELECT ALL + MIN ( col2 ) col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3130
SELECT - - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ALL col2 * + - 50 AS col0 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - COUNT( * ) * - - 59 AS col1 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-3132
SELECT - COUNT ( * ) * - - 59 AS col1 FROM tab0
----
-177

query II rowsort
SELECT + col0 AS col0, 45 * + col2 + - - col1 FROM tab1
----
51
4334
85
2660
91
3107

query I rowsort
SELECT + - 88 + - col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT + col2 * - col1 - col1 DIV 38 + + col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3150

skipif mysql # not compatible
query I rowsort label-3135
SELECT + col2 * - col1 - col1 / 38 + + col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT + 87 * - MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-4002

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT + 87 * - MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-4002

query I rowsort
SELECT 14 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + 61 AS col2, - col0 AS col0 FROM tab1 cor0
----
61
-51
61
-85
61
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT + col2 * - - col1 + col1 * + col1 DIV - col1 FROM tab2
----
1122
3003
3819

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + col2 * - - col1 + col1 * + col1 / - col1 FROM tab2
----
1122
3003
3819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE 6 <= NULL
----

query I rowsort
SELECT ALL - col0 + 91 * - - col0 * - col0 FROM tab1
----
-236742
-657560
-753662

query I rowsort
SELECT ALL - ( + col1 ) * - 20 AS col2 FROM tab0
----
1620
20
420

query I rowsort
SELECT + 56 + col0 * - - col2 * - col2 AS col2 FROM tab2
----
-102344
-24278
-252244

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 63 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT DISTINCT - ( + col1 ) DIV col0 * col0 FROM tab0 AS cor0
----
-75
0

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - ( + col1 ) / col0 * col0 FROM tab0 AS cor0
----
-75
0

query I rowsort
SELECT DISTINCT - - 44 FROM tab2 cor0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL + COUNT( * ) * - + CAST( - 17 AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + COUNT ( * ) * - + CAST ( - 17 AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL - col0 + + 15 + + + col2 AS col1 FROM tab2
----
-2
-8
-9

query I rowsort
SELECT - 38 - - col0 FROM tab2
----
26
37
8

query I rowsort
SELECT DISTINCT col0 + - 3 FROM tab1
----
48
82
88

query I rowsort
SELECT ALL + col0 - - ( - + 17 ) AS col1 FROM tab0
----
-2
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT 12 - + 85 + + + col0 + - col1 AS col0, - 53 FROM tab2 AS cor0
----
-65
-53
-78
-53
-86
-53

query I rowsort
SELECT - - col0 + - + col1 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL - SUM( col1 ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL - SUM ( col1 ) AS col0 FROM tab2 cor0
----
-195

query I rowsort
SELECT ALL + ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT - 9 DIV + + 53 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT - 9 / + + 53 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3162
SELECT + COUNT( ALL - ( + 70 ) ) DIV - 72 DIV + 9 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT + COUNT ( ALL - ( + 70 ) ) / - 72 / + 9 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT CAST( + ( SUM( DISTINCT - 76 ) ) AS SIGNED ) AS col2 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-3163
SELECT CAST ( + ( SUM ( DISTINCT - 76 ) ) AS INTEGER ) AS col2 FROM tab1
----
-76

query I rowsort
SELECT DISTINCT - 70 * 0 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT + MIN( ALL + ( col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + MIN ( ALL + ( col0 ) ) AS col0 FROM tab1
----
51

query I rowsort
SELECT + ( - col0 ) * - col1 + col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT ALL - 53 * - - 48 FROM tab0 cor0
----
-2544
-2544
-2544

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT - COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col2 FROM tab1 WHERE NOT ( NOT NULL < NULL )
----

query I rowsort
SELECT 43 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT ALL - + SUM( ALL 90 ) DIV ( + MAX( ALL + - col0 ) ) DIV - - 27 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - + SUM ( ALL 90 ) / ( + MAX ( ALL + - col0 ) ) / - - 27 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col1 col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + ( 20 ) + 71 * + + 38 + + col1 AS col1 FROM tab0
----
2719
2739
2799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col0 ) AS col2, 90 * - col2 + - 84 col0 FROM tab1
----
-51
-8724
-85
-5394
-91
-6204

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col2 * - 95 + + - col2 FROM tab2
----
-111458
-292640
-369228

query I rowsort
SELECT DISTINCT col0 * - - col0 + + - col2 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL ( + 25 ) * SUM( - col1 ) + - 80 FROM tab0
----
-2655

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL ( + 25 ) * SUM ( - col1 ) + - 80 FROM tab0
----
-2655

query III rowsort
SELECT * FROM tab0 WHERE - 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 - - + col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - COUNT( * ) * - SUM( ALL - + 55 ) - COUNT( * ) - + 26 + + + 39 FROM tab1 AS cor0
----
-485

skipif mysql # not compatible
query I rowsort label-3183
SELECT - COUNT ( * ) * - SUM ( ALL - + 55 ) - COUNT ( * ) - + 26 + + + 39 FROM tab1 AS cor0
----
-485

query I rowsort
SELECT + col0 * - - col0 - - col1 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT DISTINCT + 45 * + 40 + - col0 AS col0 FROM tab2 AS cor0
----
1725
1736
1754

query I rowsort
SELECT DISTINCT + ( + 48 ) FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT MAX( ALL - + 11 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3187
SELECT MAX ( ALL - + 11 ) FROM tab1 AS cor0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT DISTINCT ( - + COUNT( ALL - CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT ( - + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
0

query II rowsort
SELECT ALL col0, + col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL BETWEEN col1 AND NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL IN ( + col2, - col0, - col0, col2 * - col1 + col2, - col2 ) )
----

query I rowsort
SELECT ALL + + 21 AS col2 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT + + 13 AS col2 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT + col1 * col2 + + col2 * + ( - col2 ) * - col2 * - col2 + 57 FROM tab1 AS cor0
----
-12117009
-21378123
-84933255

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT DISTINCT - - 36 AS col0, COUNT( * ) FROM tab2 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-3195
SELECT DISTINCT - - 36 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
36
3

query II rowsort
SELECT DISTINCT + 28, + col0 + - 34 AS col2 FROM tab1 AS cor0
----
28
17
28
51
28
57

query I rowsort
SELECT - 16 * - + 64 * + col0 AS col1 FROM tab2 cor0
----
47104
65536
76800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3199
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3199
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL MIN( 33 ) * 12 AS col2 FROM tab0
----
396

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL MIN ( 33 ) * 12 AS col2 FROM tab0
----
396

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( + 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + - col2 col1 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 < - 94 + col1 * col1
----

query I rowsort
SELECT DISTINCT col0 * - 40 + col0 AS col0 FROM tab1 WHERE NOT ( col1 * 76 ) NOT IN ( - col2 )
----

query I rowsort
SELECT ALL 30 * 61 FROM tab1
----
1830
1830
1830

query I rowsort
SELECT DISTINCT - 37 * col1 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT COUNT( * ) * - 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3207
SELECT COUNT ( * ) * - 10 FROM tab0
----
-30

query I rowsort
SELECT DISTINCT - col0 * - 2 AS col2 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT 24 * + COUNT( * ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3209
SELECT 24 * + COUNT ( * ) AS col1 FROM tab2
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 * col2 + + 6 BETWEEN col0 * + ( - 74 ) AND NULL
----

query I rowsort
SELECT 58 AS col1 FROM tab1 WHERE NOT + 67 + + col2 NOT IN ( 72 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) IN ( + 25 )
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL = ( + 41 )
----

query I rowsort
SELECT + col2 * 97 AS col0 FROM tab2
----
2231
3880
5626

query I rowsort
SELECT + col2 * - col1 + col1 AS col1 FROM tab2
----
-1122
-3003
-3819

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) NOT BETWEEN NULL AND 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT ALL 98 DIV col0 + col2 AS col0 FROM tab0
----
100
11
53

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL 98 / col0 + col2 AS col0 FROM tab0
----
100
11
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col2 FROM tab1 WHERE NOT ( col2 ) + ( - 7 ) BETWEEN col2 AND ( col2 )
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col0 * - col1 + + 5 FROM tab0
----
-1210
-1822
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + 23 + COUNT( * ) AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-3220
SELECT + 23 + COUNT ( * ) AS col0 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - COUNT( * ) * 80 col1 FROM tab0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3221
SELECT - COUNT ( * ) * 80 col1 FROM tab0
----
-240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + 84 FROM tab2
----
1932
3360
4872

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT - 24 * + MIN( ( 7 ) ) AS col0 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-3225
SELECT - 24 * + MIN ( ( 7 ) ) AS col0 FROM tab0
----
-168

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT 56 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT MIN( 81 ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3227
SELECT MIN ( 81 ) AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT DISTINCT 11 * - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT 11 * - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col2 > + ( - 10 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT col1 DIV col1 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3230
SELECT col1 / col1 col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 43 - + col1 = NULL
----

query I rowsort
SELECT DISTINCT 31 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3233
SELECT ALL 66 DIV COUNT( * ) + + ( COUNT( * ) + - COUNT( * ) ) FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL 66 / COUNT ( * ) + + ( COUNT ( * ) + - COUNT ( * ) ) FROM tab2 cor0
----
22

query I rowsort
SELECT - 23 FROM tab0 WHERE ( - col1 * 73 ) IN ( col0 )
----

query I rowsort
SELECT col0 * + 36 + col2 AS col0 FROM tab0
----
3142
3591
587

query I rowsort
SELECT ALL col0 FROM tab0 WHERE 81 <= NULL
----

query I rowsort
SELECT 98 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 > 7 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + ( + ( + col1 ) ) NOT IN ( - col0 + col0 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - MAX( col0 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT - MAX ( col0 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT - 69 DIV COUNT( * ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - 69 / COUNT ( * ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 83 + - 70 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT COUNT( DISTINCT + 9 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3244
SELECT COUNT ( DISTINCT + 9 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + ( - 33 ) AS col1 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3246
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + + CAST( NULL AS SIGNED ) * col2 ) BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3246
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + + CAST ( NULL AS INTEGER ) * col2 ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ( - COUNT( * ) ) * MIN( DISTINCT 15 * col0 + - col2 ) FROM tab0 AS cor0
----
-534

skipif mysql # not compatible
query I rowsort label-3247
SELECT ( - COUNT ( * ) ) * MIN ( DISTINCT 15 * col0 + - col2 ) FROM tab0 AS cor0
----
-534

query I rowsort
SELECT + ( + 10 ) AS col2 FROM tab1
----
10
10
10

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - ( col0 ) * - ( - 9 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( - 99 + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT DISTINCT - COUNT( ALL 75 ) DIV 75 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT - COUNT ( ALL 75 ) / 75 AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + 2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * - - col0 col0 FROM tab1
----
4692
7820
8372

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( - 65 )
----

query I rowsort
SELECT col1 * 34 AS col1 FROM tab2
----
1734
2278
2618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT - COUNT( + col2 ) FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) / - col2 IN ( - col0 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT - COUNT ( + col2 ) FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - col2 IN ( - col0 * + col0 )
----
0

query I rowsort
SELECT + 58 * - col0 FROM tab0 AS cor0 WHERE NOT ( + col1 * - 94 ) <> - col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 27 ) col1 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT MIN( - 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3260
SELECT MIN ( - 52 ) FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT MAX( 19 ) + - 97 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT MAX ( 19 ) + - 97 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT MIN( 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3262
SELECT MIN ( 21 ) FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 54 * + col2 ) BETWEEN ( 58 ) AND - col0 * - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL - MAX( 48 ) + 14 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-34

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - MAX ( 48 ) + 14 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-34

query I rowsort
SELECT ALL + - 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3266
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - CAST( - + col0 AS DECIMAL ) <> ( + ( col1 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3266
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - CAST ( - + col0 AS REAL ) <> ( + ( col1 ) )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3267
SELECT + col1 DIV + - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3267
SELECT + col1 / + - col0 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT ALL - + col0 + + + col0 - - col0 + col0 AS col2 FROM tab1 cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - 55 * MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
1265

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 55 * MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
1265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3270
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( + col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3271
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( + col1 ) IS NOT NULL
----
-3

query II rowsort
SELECT + 40, col1 AS col0 FROM tab2 AS cor0
----
40
51
40
67
40
77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + 67 / 25 + col1 / col0 ) NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT DISTINCT CAST( NULL AS SIGNED ) - SUM( - - col2 ) + + + MIN( ALL - col0 ) + 31 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT CAST ( NULL AS INTEGER ) - SUM ( - - col2 ) + + + MIN ( ALL - col0 ) + 31 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT + COUNT( * ) * 11 + + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + COUNT ( * ) * 11 + + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT + col0 DIV - col1 - - 66 - - col1 + col0 AS col0 FROM tab1
----
128
139
203

skipif mysql # not compatible
query I rowsort label-3276
SELECT + col0 / - col1 - - 66 - - col1 + col0 AS col0 FROM tab1
----
128
139
203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3277
SELECT + 26 - + + 28 * COUNT( * ) DIV + 25 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3277
SELECT + 26 - + + 28 * COUNT ( * ) / + 25 FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL col2 DIV 36 DIV col0 - + + col2 * 40 AS col1 FROM tab2
----
-1600
-2320
-920

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL col2 / 36 / col0 - + + col2 * 40 AS col1 FROM tab2
----
-1600
-2320
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT + - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT + - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 50 + - col1 * - col2 * ( - col1 ) FROM tab2 AS cor0
----
-237110
-260312
-59773

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 * + col0 ) BETWEEN ( col2 / + col2 + col1 ) AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3282
SELECT + CAST( + col2 AS SIGNED ) AS col0, - ( - 42 ) * - col2 AS col1 FROM tab0 AS cor0
----
10
-420
47
-1974
99
-4158

skipif mysql # not compatible
query II rowsort label-3282
SELECT + CAST ( + col2 AS INTEGER ) AS col0, - ( - 42 ) * - col2 AS col1 FROM tab0 AS cor0
----
10
-420
47
-1974
99
-4158

query I rowsort
SELECT DISTINCT - + 77 + 53 - col1 AS col1 FROM tab0 AS cor0
----
-105
-25
-45

query I rowsort
SELECT ALL - col1 - 83 / - 67 AS col0 FROM tab0 WHERE NOT + ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 63 * + 26 AS col1 FROM tab0
----
1638
1638
1638

query I rowsort
SELECT ALL col0 * + ( + 86 ) FROM tab0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT - 30 * - ( + - SUM( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-5850

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - 30 * - ( + - SUM ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-5850

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT ALL + ( - 12 ) DIV - col1 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + ( - 12 ) / - col1 FROM tab1 AS cor0
----
0
0
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - + 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - COUNT( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - COUNT ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL - COUNT( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - COUNT ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 31 * + col0 FROM tab0 cor0
----
2697
3007
465

query I rowsort
SELECT DISTINCT - ( - + col0 ) * + col1 * 89 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
208794
438592
447225

query I rowsort
SELECT DISTINCT - - 1 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 28 * 19 * + 52 * + col0 + - 52 * - col2 FROM tab2 AS cor0
----
1273740
1772576
2077816

query I rowsort
SELECT + + 11 + + 51 AS col2 FROM tab1 WHERE NOT - - col0 IS NULL
----
62
62
62

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + + col2
----

query II rowsort
SELECT DISTINCT ( - col0 ) AS col2, col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - ( + - col1 ) BETWEEN + col1 / CAST( NULL AS SIGNED ) AND + col1 + - col2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - ( + - col1 ) BETWEEN + col1 / CAST ( NULL AS INTEGER ) AND + col1 + - col2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + + ( + col2 ) * + col1 + + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL SUM( ALL - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL SUM ( ALL - col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3302
SELECT + 79 + col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT + 79 + col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 80 FROM tab1 WHERE NOT + col2 IS NULL
----
-80

query I rowsort
SELECT - 91 + + col0 AS col2 FROM tab0 AS cor0
----
-4
-76
6

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT 9 + + col1 - - 11 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( + col1 - - col2 )
----

query II rowsort
SELECT col0 AS col0, - ( - - col1 ) AS col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT + COUNT( * ) * + 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + COUNT ( * ) * + 54 FROM tab1
----
162

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 69 + + + 14 FROM tab1
----
-55

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 30 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3312
SELECT ALL CAST( NULL AS DECIMAL ) + + 53 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL CAST ( NULL AS REAL ) + + 53 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 11 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT col2 + - 18 AS col2 FROM tab0 cor0
----
-8
29
81

query I rowsort
SELECT - + col1 + - 50 * - - col1 * + - 64 AS col0 FROM tab1 AS cor0
----
150353
15995
44786

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - 12 + - COUNT( * ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 12 + - COUNT ( * ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 68 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-3318
SELECT ALL col2 DIV + 71, col0, col0 - - 1 AS col1 FROM tab0 AS cor0
----
9 values hashing to 79206594b8897547a4fb9616dde99d57

skipif mysql # not compatible
query III rowsort label-3318
SELECT ALL col2 / + 71, col0, col0 - - 1 AS col1 FROM tab0 AS cor0
----
9 values hashing to 79206594b8897547a4fb9616dde99d57

query I rowsort
SELECT ALL + col2 + - col1 + col0 FROM tab2 cor0 WHERE NULL > + 32 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT MIN( ALL - col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT MIN ( ALL - col1 ) AS col0 FROM tab2 cor0
----
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col0 FROM tab1
----
-86

query II rowsort
SELECT - 67 AS col2, - col1 FROM tab1
----
-67
-14
-67
-47
-67
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL 18 + - - COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL 18 + - - COUNT ( * ) AS col2 FROM tab2
----
21

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 FROM tab1
----
4910
5020
6235

query II rowsort
SELECT + + col2, 50 FROM tab2 AS cor0
----
23
50
40
50
58
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 < 88
----
1

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 < 88
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3329
SELECT * FROM tab0 WHERE NOT NULL = - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3329
SELECT * FROM tab0 WHERE NOT NULL = - CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT DISTINCT - col0 * + - CAST( col2 AS SIGNED ) + - col2 * + col1 * + - col2 FROM tab0 AS cor0
----
179634
19404
2970

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT - col0 * + - CAST ( col2 AS INTEGER ) + - col2 * + col1 * + - col2 FROM tab0 AS cor0
----
179634
19404
2970

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + 76, col1 * - + col0, - col0 + - - 43 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - - col2, + 90, - + col1 )
----

query I rowsort
SELECT - 63 AS col1 FROM tab0 cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT - CAST( + AVG ( + col0 ) AS SIGNED ) AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-3334
SELECT - CAST ( + AVG ( + col0 ) AS INTEGER ) AS col0 FROM tab0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 36 ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ( + - 37 ) * ( - COUNT( * ) ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-3336
SELECT ( + - 37 ) * ( - COUNT ( * ) ) FROM tab1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - COUNT( * ) * 49 AS col2 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-3337
SELECT - COUNT ( * ) * 49 AS col2 FROM tab1
----
-147

query I rowsort
SELECT ALL + col0 * col1 + col1 AS col0 FROM tab1 WHERE NOT ( + col1 - + - ( - + col2 ) ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT - col1 * + + CAST( 67 AS SIGNED ) FROM tab0
----
-1407
-5427
-67

skipif mysql # not compatible
query I rowsort label-3339
SELECT - col1 * + + CAST ( 67 AS INTEGER ) FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT ALL 9 * + - col0 AS col1 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT ALL - 30 * + + col2 AS col2 FROM tab2
----
-1200
-1740
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT + MIN( ALL 40 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT + MIN ( ALL 40 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL + 9 * 16 FROM tab2 AS cor0
----
144
144
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT + COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - + col0
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT + COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3345
SELECT DISTINCT - 32 + - CAST( NULL AS SIGNED ) * - + CAST( col2 AS DECIMAL ) AS col1, col2 * + col2 FROM tab1
----
NULL
3481
NULL
4624
NULL
9216

skipif mysql # not compatible
query II rowsort label-3345
SELECT DISTINCT - 32 + - CAST ( NULL AS INTEGER ) * - + CAST ( col2 AS REAL ) AS col1, col2 * + col2 FROM tab1
----
NULL
3481
NULL
4624
NULL
9216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 33 + 99 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT + 0 DIV - - 99 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 0 / - - 99 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - - col0 ) + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT 51 DIV - col1 FROM tab0 AS cor0
----
-2
-51
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT 51 / - col1 FROM tab0 AS cor0
----
-2
-51
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 + + - col1 * col1 col0 FROM tab1 AS cor0
----
-450
-6486
-910

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + COUNT( * ) - 44 + + ( 38 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3352
SELECT + COUNT ( * ) - 44 + + ( 38 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 + + col0 - + col1 * + col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT + + SUM( - - col0 ) AS col0, 90 AS col1 FROM tab2 AS cor0
----
185
90

skipif mysql # not compatible
query II rowsort label-3355
SELECT + + SUM ( - - col0 ) AS col0, 90 AS col1 FROM tab2 AS cor0
----
185
90

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - col0, 3, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( + col2 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 57 AS col2 FROM tab2 cor0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - col2 + - col1 * + col1 = + 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - - col1 NOT IN ( - 9 )
----

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col0 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 + + ( - 14 ) FROM tab1
----
-105
-65
-99

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT 53 + + ( + COUNT( * ) ) col0 FROM tab1
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3367
SELECT 53 + + ( + COUNT ( * ) ) col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT - 9 DIV COUNT( * ) + 54 AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3368
SELECT - 9 / COUNT ( * ) + 54 AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT + COUNT( DISTINCT - 96 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT + COUNT ( DISTINCT - 96 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT + + SUM( DISTINCT + 70 ) + + - 34 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT + + SUM ( DISTINCT + 70 ) + + - 34 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE ( 82 + + - col1 + - + 6 ) >= 42
----
-2

skipif mysql # not compatible
query I rowsort label-3371
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( 82 + + - col1 + - + 6 ) >= 42
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 77 <= + col1 * 34
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 29 col0 FROM tab2 AS cor0
----
-11
-29
6

query II rowsort
SELECT - col1 AS col0, + col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - + 59 + - + col2 FROM tab2 AS cor0
----
-117
-82
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 < col2
----

query I rowsort
SELECT DISTINCT col2 * - col0 * 9 FROM tab2 AS cor0
----
-23040
-39150
-9522

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL OR + col1 / - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT COUNT( - + 78 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3380
SELECT COUNT ( - + 78 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3381
SELECT * FROM tab0 WHERE + + col1 + - CAST( - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3381
SELECT * FROM tab0 WHERE + + col1 + - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * + 83 * col2 FROM tab2
----
212480
361050
87814

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT ALL col0 * col0 DIV + - col1 FROM tab2
----
-41
-53
-83

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL col0 * col0 / + - col1 FROM tab2
----
-41
-53
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 52 col0, col0 * + col0 FROM tab1
----
52
2601
52
7225
52
8281

query II rowsort
SELECT - 24, col1 FROM tab2
----
-24
51
-24
67
-24
77

query II rowsort
SELECT + 58 AS col1, col1 FROM tab1
----
58
14
58
47
58
5

query I rowsort
SELECT + 5 + - col0 AS col0 FROM tab1 WHERE NOT NULL IN ( + + col0 * + 81, + col1 * - col0 * - - col2, + col2 )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 87 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT ALL + 4 AS col0, MIN( - + col2 ) + 51 FROM tab1 AS cor0
----
4
-45

skipif mysql # not compatible
query II rowsort label-3389
SELECT ALL + 4 AS col0, MIN ( - + col2 ) + 51 FROM tab1 AS cor0
----
4
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL MIN( DISTINCT - col0 ) * - - 86 FROM tab0 AS cor0
----
-8342

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL MIN ( DISTINCT - col0 ) * - - 86 FROM tab0 AS cor0
----
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL 10 * + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL 10 * + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT + col1 * col2 + - 84 + + col1 AS col2 FROM tab0 AS cor0
----
147
16
3804

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - COUNT( * ) * 74 col1 FROM tab1
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3393
SELECT - COUNT ( * ) * 74 col1 FROM tab1
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3394
SELECT ALL * FROM tab0 WHERE NOT + + CAST( - - col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - col0 BETWEEN ( - 87 ) AND ( - col0 + + ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3394
SELECT ALL * FROM tab0 WHERE NOT + + CAST ( - - col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - col0 BETWEEN ( - 87 ) AND ( - col0 + + ( + col0 ) )
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab0 WHERE NOT - 39 * + col1 IN ( + 64 / - 60 * - col2 * - 98, + col0 + + col2 + + col0 * 97 )
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT ALL SUM( + 63 ) DIV 59 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL SUM ( + 63 ) / 59 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 17 * - - col2 + col1 col2, - 37 + + 88 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT ALL + CAST( + 64 AS SIGNED ) FROM tab1 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + CAST ( + 64 AS INTEGER ) FROM tab1 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 90 / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col1 FROM tab1 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL - COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL COUNT( * ) + - - MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL COUNT ( * ) + - - MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - + 5 ) + + col1, 80 - col1 + - col0 col1 FROM tab2
----
46
-17
62
-62
72
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ( COUNT( * ) ) * 1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3407
SELECT ( COUNT ( * ) ) * 1 FROM tab0
----
3

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( - col0 <= ( - - col1 ) )
----
15
87
97

query I rowsort
SELECT 66 * 52 FROM tab1
----
3432
3432
3432

query III rowsort
SELECT * FROM tab1 WHERE - 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 5 * + ( + col0 ) AS col1, - col1 AS col0 FROM tab0
----
435
-21
485
-1
75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT - 1 + + COUNT( * ) + - ( - 82 ) + - 67 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - 1 + + COUNT ( * ) + - ( - 82 ) + - 67 FROM tab2 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3413
SELECT DISTINCT - CAST( NULL AS SIGNED ), - 98 AS col1 FROM tab0 AS cor0
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-3413
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - 98 AS col1 FROM tab0 AS cor0
----
NULL
-98

query I rowsort
SELECT DISTINCT + 32 + - + col1 FROM tab0
----
-49
11
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL + + 81 * + CAST( col0 AS SIGNED ) FROM tab2 WHERE - + 9 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + + 81 * + CAST ( col0 AS INTEGER ) FROM tab2 WHERE - + 9 IS NULL
----

query I rowsort
SELECT ALL 1 + + 7 * + + col2 FROM tab2
----
162
281
407

query I rowsort
SELECT - 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab1 WHERE + 58 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 - - + col0 + + - col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + col2 - - - col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL - col0 * + col1 * - - col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT col1 - + col1 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT ALL col0 DIV + - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL col0 / + - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + 52 * + + 62 AS col1 FROM tab0 AS cor0
----
-3224
-3224
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT - - MIN( ALL + col2 ) - - 49 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3425
SELECT - - MIN ( ALL + col2 ) - - 49 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + 27 - - - COUNT( * ) FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-3426
SELECT + 27 - - - COUNT ( * ) FROM tab1 cor0
----
24

query I rowsort
SELECT - 30 - + 45 AS col1 FROM tab0 AS cor0
----
-75
-75
-75

query II rowsort
SELECT ALL - col1 * - + 27 + - ( - - 78 ) AS col2, col0 FROM tab0 AS cor0
----
-51
97
2109
15
489
87

query I rowsort
SELECT ALL - - col0 * - - col1 * + + col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT SUM( - 58 ) AS col2 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT SUM ( - 58 ) AS col2 FROM tab1
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3431
SELECT COUNT( * ) DIV + - 61 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3431
SELECT COUNT ( * ) / + - 61 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT DISTINCT 81 DIV - 50 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT 81 / - 50 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT COUNT( ALL - 77 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3433
SELECT COUNT ( ALL - 77 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + 60 * - - col0 AS col0 FROM tab2
----
2760
3840
4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT ( COUNT( * ) ) * AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ( COUNT ( * ) ) * AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / col0 + col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3437
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / col0 + col1 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 0 + ( + ( 59 ) ) + + - 79 * - col0 * 57 FROM tab2 AS cor0
----
207197
288251
337784

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 IN ( + - col0 - + + col0, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT DISTINCT ( - AVG ( DISTINCT - col1 ) ) / - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT ( - AVG ( DISTINCT - col1 ) ) / - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 * + col2 + + - col0 FROM tab2 WHERE NULL BETWEEN NULL AND + 62 * + 47 * - 13 + - 31 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT 87 + - COUNT( ALL - col1 ) * - MIN( + 97 ) FROM tab0
----
378

skipif mysql # not compatible
query I rowsort label-3442
SELECT 87 + - COUNT ( ALL - col1 ) * - MIN ( + 97 ) FROM tab0
----
378

query I rowsort
SELECT ALL + col0 * - col2 + - - col2 AS col1 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT col0 * + 24 + - col0 AS col2 FROM tab2
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE + 34 * - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3445
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE + 34 * - col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col2 * - 9 + - col2 FROM tab0
----
-100
-470
-990

query I rowsort
SELECT ALL + col2 * ( + - 75 ) FROM tab2
----
-1725
-3000
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + 35 col1 FROM tab0
----
-875
-875
-875

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 97 - - col2 <> + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 90 + + ( - + 55 ) - - 93 * + col2 < + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL 45 + + + COUNT( * ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL 45 + + + COUNT ( * ) AS col0 FROM tab1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT 73 - + + 59 + col1 DIV - + 38 FROM tab0
----
12
14
14

skipif mysql # not compatible
query I rowsort label-3452
SELECT 73 - + + 59 + col1 / - + 38 FROM tab0
----
12
14
14

query I rowsort
SELECT ALL + + col2 * - col2 + - - ( col0 ) * 18 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2, 47 + - - col0 AS col0 FROM tab2 AS cor0
----
23
93
40
111
58
122

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + col2
----

query I rowsort
SELECT 79 * + col2 AS col2 FROM tab2 AS cor0
----
1817
3160
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT + MIN( ALL - - 86 ) FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT + MIN ( ALL - - 86 ) FROM tab2 cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * + 7 col0 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL - col1 + + 60 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
13
46
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL - COUNT( ALL ( + - col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - COUNT ( ALL ( + - col0 ) ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * + 45 * 6 * + + 46 * col0 col1 FROM tab0
----
20530260
22890060
3539700

query I rowsort
SELECT DISTINCT + col2 * - 9 AS col1 FROM tab0
----
-423
-891
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT MIN( + + ( - col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3464
SELECT MIN ( + + ( - col2 ) ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL + - 65 FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 27 FROM tab2 AS cor0 WHERE NOT ( 95 ) IS NULL
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab0 WHERE NOT NULL <= - + col1
----

query I rowsort
SELECT + 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT 25 * + 46 * col2 - - + 37 FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query II rowsort
SELECT - - 58, + col0 AS col2 FROM tab2 AS cor0
----
58
46
58
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT DISTINCT CAST( 1 AS SIGNED ) * col1 * - col0 + - 72 FROM tab2 AS cor0
----
-2418
-5000
-5097

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT CAST ( 1 AS INTEGER ) * col1 * - col0 + - 72 FROM tab2 AS cor0
----
-2418
-5000
-5097

query I rowsort
SELECT ALL + ( + + 58 ) * col1 + col0 FROM tab1 AS cor0
----
2817
375
863

query I rowsort
SELECT DISTINCT - + col0 + + col1 * - + ( + col1 ) + - + 34 + - col0 AS col1 FROM tab2 AS cor0
----
-2727
-4673
-6091

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col0 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3477
SELECT + - 41 AS col0, col1 * - col2 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
9 values hashing to 053bf892fc7c27786d519e809ff0859d

skipif mysql # not compatible
query III rowsort label-3477
SELECT + - 41 AS col0, col1 * - col2 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
9 values hashing to 053bf892fc7c27786d519e809ff0859d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + 97 col2 FROM tab1 AS cor0
----
102
111
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT ALL col1 + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL col1 + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 86 * col1 - col1 AS col2 FROM tab2
----
4335
5695
6545

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3481
SELECT + col1 * - - CAST( NULL AS DECIMAL ) / + - col0 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN 38 + - 37 AND - CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3481
SELECT + col1 * - - CAST ( NULL AS REAL ) / + - col0 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN 38 + - 37 AND - CAST ( - col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL + COUNT( - 39 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + COUNT ( - 39 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + MAX( ALL + col2 ) + + COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-3483
SELECT + MAX ( ALL + col2 ) + + COUNT ( * ) FROM tab2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT - col2 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3484
SELECT - col2 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT + ( - - MIN( + col2 ) ) + + 27 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + ( - - MIN ( + col2 ) ) + + 27 FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT - CAST( + + col2 AS SIGNED ) + 86 FROM tab0 AS cor0
----
-13
39
76

skipif mysql # not compatible
query I rowsort label-3486
SELECT - CAST ( + + col2 AS INTEGER ) + 86 FROM tab0 AS cor0
----
-13
39
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - 24 AND NULL
----

query I rowsort
SELECT 84 * col1 * + ( - col1 ) FROM tab1 AS cor0
----
-16464
-185556
-2100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 * + 75 col2, 56 FROM tab0 AS cor0
----
1425
56
1425
56
1425
56

query I rowsort
SELECT ( 99 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT MIN( ALL + + col1 ) + + COUNT( * ) AS col2, 46 AS col2 FROM tab2 WHERE NOT col2 = NULL
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3491
SELECT MIN ( ALL + + col1 ) + + COUNT ( * ) AS col2, 46 AS col2 FROM tab2 WHERE NOT col2 = NULL
----
NULL
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 > + - col1
----

query I rowsort
SELECT DISTINCT 14 * - + col1 AS col0 FROM tab2
----
-1078
-714
-938

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - ( - ( - 13 ) ) * + 65 )
----

query II rowsort
SELECT ALL + col2, col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - col2 ) ) / col2 / - 55 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT + 47 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT + 47 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - 73 ) FROM tab1
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3499
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 49 AS col0 FROM tab0 AS cor0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3499
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 49 AS col0 FROM tab0 AS cor0
----
NULL
49

query I rowsort
SELECT DISTINCT - + ( 94 ) FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT col2 + - 47 * + col2 FROM tab1
----
-2714
-3128
-4416

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) * + col1 NOT IN ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3503
SELECT DISTINCT col0 DIV - CAST( - 3 AS SIGNED ) FROM tab1
----
17
28
30

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT col0 / - CAST ( - 3 AS INTEGER ) FROM tab1
----
17
28
30

query I rowsort
SELECT + col2 * col1 FROM tab1 AS cor0 WHERE 68 IS NOT NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT 11 AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
11
0

skipif mysql # not compatible
query II rowsort label-3505
SELECT 11 AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
11
0

query I rowsort
SELECT ALL + - 22 + - col2 FROM tab0 AS cor0
----
-121
-32
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT SUM( - + col2 ) col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3507
SELECT DISTINCT SUM ( - + col2 ) col2 FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT + col1 - col0 AS col1 FROM tab2 AS cor0 WHERE - 77 <> - - col2
----
-8
13
5

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + MAX( 11 ) * + COUNT( * ) * - + MAX( DISTINCT - col2 ) AS col2 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL + MAX ( 11 ) * + COUNT ( * ) * - + MAX ( DISTINCT - col2 ) AS col2 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND col2
----
NULL

query I rowsort
SELECT DISTINCT 87 + col2 * 38 * - 21 FROM tab2
----
-18267
-31833
-46197

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL - + COUNT( * ) * + + 62 FROM tab1 WHERE NULL >= - - col1 * - col2 * col1
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - + COUNT ( * ) * + + 62 FROM tab1 WHERE NULL >= - - col1 * - col2 * col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT DISTINCT COUNT( * ) + + + MAX( DISTINCT col2 ) + + COUNT( * ) + 57 * - + SUM( DISTINCT col0 ) * - SUM( DISTINCT 45 ) AS col2 FROM tab1
----
582357

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT COUNT ( * ) + + + MAX ( DISTINCT col2 ) + + COUNT ( * ) + 57 * - + SUM ( DISTINCT col0 ) * - SUM ( DISTINCT 45 ) AS col2 FROM tab1
----
582357

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + + 53 * + 48 - - - col2 + - col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT ALL + col0 DIV + - col0 + + col0 AS col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + col0 / + - col0 + + col0 AS col1 FROM tab1
----
50
84
90

query I rowsort
SELECT - 34 * - col2 FROM tab2
----
1360
1972
782

query II rowsort
SELECT 54, + col2 AS col0 FROM tab0
----
54
10
54
47
54
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT - SUM( ALL col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3518
SELECT - SUM ( ALL col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT 34 FROM tab2 WHERE + col1 - col2 NOT IN ( + 98 - - 35, col0 / - - 48 )
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col2 col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT - - 15 - - - SUM( col2 ) AS col0 FROM tab1 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT - - 15 - - - SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
-208

query I rowsort
SELECT 41 AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 + + col0 + + 33 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL + + COUNT( ALL + col2 ) * 90 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + + COUNT ( ALL + col2 ) * 90 FROM tab1 AS cor0
----
270

query I rowsort
SELECT col1 - 35 * + col2 + + - 61 + ( 13 ) AS col2 FROM tab0 AS cor0
----
-1612
-3512
-377

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3526
SELECT ALL + col0 AS col2, CAST( NULL AS SIGNED ) - + col2 - + 54 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3526
SELECT ALL + col0 AS col2, CAST ( NULL AS INTEGER ) - + col2 - + 54 FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT ALL - 52 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-52
59
-52
68
-52
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 83 ) col2 FROM tab2 cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 AS col0, 39 col2 FROM tab1 cor0
----
-14
39
-47
39
-5
39

query II rowsort
SELECT ALL + - col0, col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT DISTINCT col1, + 59 * - col2 + col2 FROM tab0 AS cor0
----
1
-5742
21
-580
81
-2726

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3532
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * col0 - - + 30 < + + col0
----

skipif mysql # not compatible
query III rowsort label-3532
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * col0 - - + 30 < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3533
SELECT + - 1 * - col0 * 99 - + ( + - col2 ) * - col2 + - col1 DIV - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4168
4384
4933

skipif mysql # not compatible
query I rowsort label-3533
SELECT + - 1 * - col0 * 99 - + ( + - col2 ) * - col2 + - col1 / - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4168
4384
4933

onlyif mysql # aggregate syntax: 
query II rowsort label-3534
SELECT - COUNT( * ) AS col1, 83 AS col0 FROM tab2 AS cor0
----
-3
83

skipif mysql # not compatible
query II rowsort label-3534
SELECT - COUNT ( * ) AS col1, 83 AS col0 FROM tab2 AS cor0
----
-3
83

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL - ( ( COUNT( DISTINCT - 55 ) ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - ( ( COUNT ( DISTINCT - 55 ) ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT COUNT( + 89 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT COUNT ( + 89 ) FROM tab1
----
3

query I rowsort
SELECT col2 + + ( + 62 ) * - 49 FROM tab2 AS cor0
----
-2980
-2998
-3015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 + - col1 col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + 14 * - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-126

skipif mysql # not compatible
query I rowsort label-3541
SELECT + 14 * - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-126

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 IS NULL )
----

query I rowsort
SELECT ALL 72 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3544
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) + + MAX( ALL - col0 ) AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-3544
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) + + MAX ( ALL - col0 ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT SUM( ALL - - 62 ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3545
SELECT SUM ( ALL - - 62 ) FROM tab1 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT COUNT( * ) * COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT COUNT ( * ) * COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT col2 AS col1, - 84 + - - col2 AS col0 FROM tab0 AS cor0
----
10
-74
47
-37
99
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT ALL - 92 * col2 DIV col1 FROM tab2 AS cor0
----
-41
-47
-79

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL - 92 * col2 / col1 FROM tab2 AS cor0
----
-41
-47
-79

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 * - 7 NOT IN ( + col1, + 19, - col1, + + col2 * + 96 * + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT COUNT( col2 ) * - + COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-3550
SELECT COUNT ( col2 ) * - + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL + + 51 * + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
1173

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + + 51 * + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + COUNT( * ) * - - 0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT + COUNT ( * ) * - - 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 43 - - 94 AS col2 FROM tab1
----
51
51
51

query I rowsort
SELECT DISTINCT col2 + - + ( - - 10 ) AS col2 FROM tab2
----
13
30
48

query I rowsort
SELECT + col0 - + - col2 * col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT DISTINCT - ( + col2 ) - + col2 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - - ( ( - col1 ) ) NOT IN ( - col0, col2 * + col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT 16 + - COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT 16 + - COUNT ( * ) FROM tab2
----
13

query I rowsort
SELECT col0 + + 88 + - 62 + - 22 FROM tab2
----
50
68
79

query I rowsort
SELECT - + 2 + - col0 FROM tab2 AS cor0
----
-48
-66
-77

query I rowsort
SELECT col0 * col0 + - 34 FROM tab0 AS cor0
----
191
7535
9375

query I rowsort
SELECT col0 * + + col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + - col2 * + - col1
----

query I rowsort
SELECT DISTINCT ( - 44 ) AS col2 FROM tab0
----
-44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 BETWEEN + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL - - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - 23 * + MIN( ALL col0 ) + MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-1114

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 23 * + MIN ( ALL col0 ) + MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-1114

query I rowsort
SELECT - + col1 * - - 95 FROM tab1 AS cor0
----
-1330
-4465
-475

query I rowsort
SELECT ALL 42 + + 18 + + - col0 FROM tab2 AS cor0
----
-15
-4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT + MAX( + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + MAX ( + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3571
SELECT DISTINCT col0, - col0 DIV - ( + + col2 ) AS col2 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-3571
SELECT DISTINCT col0, - col0 / - ( + + col2 ) AS col2 FROM tab2
----
46
2
64
1
75
1

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

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - SUM ( DISTINCT + col1 ) AS col1 FROM tab2
----
-195

query II rowsort
SELECT col2 AS col1, - col0 FROM tab0 cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT MIN( ALL - + 4 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT MIN ( ALL - + 4 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - COUNT( * ) + - + 47 - 93 AS col1 FROM tab1 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - COUNT ( * ) + - + 47 - 93 AS col1 FROM tab1 AS cor0
----
-143

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-27

query II rowsort
SELECT + ( col1 ), + col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT ALL - COUNT( * ) AS col0, 15 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9
15

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL - COUNT ( * ) AS col0, 15 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9
15

query I rowsort
SELECT DISTINCT - 46 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT + COUNT( * ) + + - 61 AS col2, + COUNT( * ) * ( - 93 ) FROM tab1 AS cor0
----
-58
-279

skipif mysql # not compatible
query II rowsort label-3580
SELECT + COUNT ( * ) + + - 61 AS col2, + COUNT ( * ) * ( - 93 ) FROM tab1 AS cor0
----
-58
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 60 * - - 68 col2 FROM tab1 AS cor0
----
4080
4080
4080

query I rowsort
SELECT ALL col2 - 68 + + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1128
3052
3876

query I rowsort
SELECT ALL + ( + col0 ) * 57 FROM tab1 cor0 WHERE NOT ( NOT ( NOT NULL >= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT - SUM( ALL - col1 ) * MIN( DISTINCT + 39 ) AS col0 FROM tab1 cor0
----
2574

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - SUM ( ALL - col1 ) * MIN ( DISTINCT + 39 ) AS col0 FROM tab1 cor0
----
2574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 74 col0 FROM tab1 AS cor0
----
1036
3478
370

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT col0 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - 63 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - 63 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 30 * + col0 + + ( - 48 ) * + 88 AS col1 FROM tab2 AS cor0
----
-5604
-6144
-6474

query I rowsort
SELECT - - col2 * + col1 + + - 15 FROM tab1 WHERE + 73 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL + ( COUNT( * ) ) + + COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3591
SELECT ALL + ( COUNT ( * ) ) + + COUNT ( * ) col2 FROM tab0
----
6

query I rowsort
SELECT DISTINCT + col0 + + ( - 81 ) + + - col2 + - 81 + - - 1 FROM tab0
----
-163
-193
-84

query I rowsort
SELECT DISTINCT + col1 + 41 FROM tab2
----
108
118
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT COUNT( * ) - - + 66 col1 FROM tab1
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT DISTINCT COUNT ( * ) - - + 66 col1 FROM tab1
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 79 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + ( + + col1 ) + + col0 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT DISTINCT - col1 DIV - 67 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - col1 / - 67 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3599
SELECT - 26 * - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3599
SELECT - 26 * - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
78

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * + col1 * col0 col1 FROM tab2
----
138414
290752
296475

query I rowsort
SELECT ALL col2 * - - 62 * - - col0 FROM tab2
----
158720
269700
65596

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 18 <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + 47 AS col2 FROM tab0 AS cor0
----
3807
47
987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3606
SELECT DISTINCT COUNT( DISTINCT + - col0 ) DIV 59 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) / 59 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3607
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + col2 * + + 74 * + + col2 IN ( 50 + 42 / + CAST( col1 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3607
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + col2 * + + 74 * + + col2 IN ( 50 + 42 / + CAST ( col1 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3608
SELECT DISTINCT - col0 DIV - - col0 AS col0, - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-3608
SELECT DISTINCT - col0 / - - col0 AS col0, - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 88 * + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 98 - + 50 + + col0 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + MAX( - 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3611
SELECT + MAX ( - 48 ) FROM tab2
----
-48

query I rowsort
SELECT ALL col1 + + col2 * + col0 - + - 96 * - - col1 FROM tab2
----
10029
10849
6005

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + 20 * - COUNT( * ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + 20 * - COUNT ( * ) FROM tab0
----
-60

query I rowsort
SELECT - + col2 FROM tab1 WHERE NULL NOT BETWEEN ( - 48 * - + col0 ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3615
SELECT ALL - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT + SUM( - col1 ) FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN NULL AND - - 18 + col1 - + 20 + + + col1 + - col1 + - + 24 - + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT + SUM ( - col1 ) FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN NULL AND - - 18 + col1 - + 20 + + + col1 + - col1 + - + 24 - + + 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3617
SELECT ALL + + COUNT( * ), - MIN( - col2 ) AS col2 FROM tab1 cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-3617
SELECT ALL + + COUNT ( * ), - MIN ( - col2 ) AS col2 FROM tab1 cor0
----
3
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT - - 77 * + + COUNT( * ) col2 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3619
SELECT - - 77 * + + COUNT ( * ) col2 FROM tab0 AS cor0
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col2 col0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT - - 7 * + + col1 AS col0 FROM tab0 AS cor0
----
147
567
7

query II rowsort
SELECT DISTINCT + + 20 AS col2, + col0 FROM tab2 cor0
----
20
46
20
64
20
75

query I rowsort
SELECT + 87 - 13 * col0 AS col2 FROM tab2 AS cor0
----
-511
-745
-888

query I rowsort
SELECT DISTINCT - col0 - - 41 AS col1 FROM tab2 AS cor0
----
-23
-34
-5

query II rowsort
SELECT ALL - 45 AS col2, col2 * + 74 AS col2 FROM tab2 AS cor0
----
-45
1702
-45
2960
-45
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL - - SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - - SUM ( - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT - col1 - - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3627
SELECT - col1 - - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT 89 * col0 * - col2 + + col2 - - + CAST( - + col2 AS SIGNED ) + - 87 * col2 FROM tab1 AS cor0
----
-444096
-451468
-556648

skipif mysql # not compatible
query I rowsort label-3628
SELECT 89 * col0 * - col2 + + col2 - - + CAST ( - + col2 AS INTEGER ) + - 87 * col2 FROM tab1 AS cor0
----
-444096
-451468
-556648

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT - col0 DIV col1 - + col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-3629
SELECT - col0 / col1 - + col1 FROM tab2 AS cor0
----
-51
-68
-77

query I rowsort
SELECT + - col2 AS col2 FROM tab1 WHERE NOT NULL >= col2 + - col1 + col1
----

query I rowsort
SELECT ALL + ( - 0 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 19 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 15 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 98 * + - 43 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 56 * - 82 AS col2 FROM tab0
----
-4592
-4592
-4592

query I rowsort
SELECT - ( + 66 ) FROM tab0 AS cor0
----
-66
-66
-66

query II rowsort
SELECT - col1 AS col2, 46 AS col0 FROM tab1 AS cor0
----
-14
46
-47
46
-5
46

query I rowsort
SELECT ALL - + col2 * + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT 23 * - 1 = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL 88 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL 88 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + AVG ( - col2 ) AS col1 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab1 cor0
----
16
16
16

query II rowsort
SELECT - - col0 AS col2, col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT col2 + - - col1 FROM tab0 AS cor0 WHERE NOT 15 - - 73 + 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT ALL col2 + col1 + - col2 FROM tab1 AS cor0 WHERE - col0 * 62 NOT BETWEEN + 21 AND - - col2 + col1 + + CAST( NULL AS SIGNED ) * + - ( - - CAST( - ( - + col2 ) AS SIGNED ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL col2 + col1 + - col2 FROM tab1 AS cor0 WHERE - col0 * 62 NOT BETWEEN + 21 AND - - col2 + col1 + + CAST ( NULL AS INTEGER ) * + - ( - - CAST ( - ( - + col2 ) AS INTEGER ) )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT DISTINCT + col0 DIV + 21 + - - col1 FROM tab2
----
53
70
80

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT + col0 / + 21 + - - col1 FROM tab2
----
53
70
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 78 ), col1 col1 FROM tab1
----
-78
14
-78
47
-78
5

query I rowsort
SELECT ALL col0 + - - 63 AS col0 FROM tab1
----
114
148
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT 70 + - - COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3650
SELECT 70 + - - COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT DISTINCT col0 + col0 + - col1 AS col2 FROM tab1
----
135
165
88

query I rowsort
SELECT ALL - ( + ( col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT DISTINCT col0 DIV - - col1 + + - col0 * + col2 * - 71 FROM tab0
----
50055
61774
681910

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT col0 / - - col1 + + - col0 * + col2 * - 71 FROM tab0
----
50055
61774
681910

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT DISTINCT + MAX( - col0 ) * 68 AS col2 FROM tab2
----
-3128

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + MAX ( - col0 ) * 68 AS col2 FROM tab2
----
-3128

query I rowsort
SELECT + col2 + - + 14 - - col0 * + col2 FROM tab1
----
4978
5060
6242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3656
SELECT + SUM( ALL - col2 ) DIV + 74 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3656
SELECT + SUM ( ALL - col2 ) / + 74 AS col2 FROM tab1
----
-3

query II rowsort
SELECT - 41 * + col0 AS col1, - col1 - - - col2 * - col2 AS col0 FROM tab2
----
-1886
478
-2624
1523
-3075
3297

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3658
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - col1 AND + + 20 + - col1 + - - col1
----

skipif mysql # not compatible
query III rowsort label-3658
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - col1 AND + + 20 + - col1 + - - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3659
SELECT ALL col1 DIV + + col2 + + ( - - 88 ), col1 + col0 - - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
88
107
88
139
88
68

skipif mysql # not compatible
query II rowsort label-3659
SELECT ALL col1 / + + col2 + + ( - - 88 ), col1 + col0 - - col0 / col1 AS col1 FROM tab1 AS cor0
----
88
107
88
139
88
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3660
SELECT DISTINCT + MIN( - 14 ) col1, 79 + + 49 AS col0 FROM tab1 cor0
----
-14
128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3660
SELECT DISTINCT + MIN ( - 14 ) col1, 79 + + 49 AS col0 FROM tab1 cor0
----
-14
128

query I rowsort
SELECT ALL + + 46 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + - - col0 / + 68 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + - - col0 / + 68 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 56 - + col0 FROM tab0 cor0
----
-31
-41
41

query II rowsort
SELECT ALL + col2, + col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT - 32 * 16 FROM tab2
----
-512
-512
-512

query II rowsort
SELECT ALL col1, 57 + col1 - - col2 FROM tab2
----
51
131
67
182
77
174

query I rowsort
SELECT - col0 * + 19 AS col1 FROM tab2
----
-1216
-1425
-874

query II rowsort
SELECT DISTINCT col1 AS col2, 98 FROM tab1
----
14
98
47
98
5
98

query II rowsort
SELECT ( + col0 ), 36 AS col1 FROM tab1
----
51
36
85
36
91
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT - COUNT( - + 24 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT - COUNT ( - + 24 ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT ALL + col1 AS col1, 33 AS col0 FROM tab2 AS cor0
----
51
33
67
33
77
33

query I rowsort
SELECT ALL 11 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT - COUNT( ALL 38 ) AS col1, + 86 AS col0 FROM tab2 AS cor0
----
-3
86

skipif mysql # not compatible
query II rowsort label-3673
SELECT - COUNT ( ALL 38 ) AS col1, + 86 AS col0 FROM tab2 AS cor0
----
-3
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - - 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3675
SELECT AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 * - + ( col0 ) + + + col2 AS col1 FROM tab1
----
-4800
-4956
-6120

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + col2 + + 28 + - col0 * col0
----

query I rowsort
SELECT - col0 + - + 65 * col1 AS col0 FROM tab0 AS cor0
----
-1452
-162
-5280

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND + col1 - + + ( - 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT - COUNT( * ) + - ( 64 ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - COUNT ( * ) + - ( 64 ) FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + - MAX( DISTINCT + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3683
SELECT + - MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3684
SELECT col2, CAST( NULL AS DECIMAL ) / - col0 - - - col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3684
SELECT col2, CAST ( NULL AS REAL ) / - col0 - - - col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL COUNT( * ) * - - 94 AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL COUNT ( * ) * - - 94 AS col1 FROM tab1
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * - + col0 + - + col1 col0 FROM tab1
----
4933
5095
6232

query I rowsort
SELECT DISTINCT col1 - 32 AS col0 FROM tab2 AS cor0
----
19
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3688
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 WHERE 91 * col1 + - col2 < NULL
----

query I rowsort
SELECT ALL 63 AS col2 FROM tab0 WHERE NOT ( - 51 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 85 * 72 + col0 * - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT ALL ( CAST( col1 AS SIGNED ) ) * CAST( + 81 - - col0 AS SIGNED ) FROM tab0
----
178
3528
7776

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL ( CAST ( col1 AS INTEGER ) ) * CAST ( + 81 - - col0 AS INTEGER ) FROM tab0
----
178
3528
7776

query I rowsort
SELECT ALL 49 * + col0 AS col0 FROM tab1
----
2499
4165
4459

query III rowsort
SELECT * FROM tab2 WHERE 18 + - col2 * 26 BETWEEN 35 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( 23 * col2 )
----

query I rowsort
SELECT + 85 FROM tab0 WHERE NOT + col2 * - 2 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT - ( - col2 ) DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3697
SELECT - ( - col2 ) / col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT ALL CAST( col0 AS SIGNED ) - col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL CAST ( col0 AS INTEGER ) - col2 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT + 0 + + 8 AS col1 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL + SUM( + col0 ) FROM tab2 WHERE col2 <= - ( - col2 )
----
185

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + SUM ( + col0 ) FROM tab2 WHERE col2 <= - ( - col2 )
----
185

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 + + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + 31 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + 31 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3703
SELECT - CAST( - 4 AS SIGNED ) DIV + ( - col1 * - col1 ) + - 87 AS col2 FROM tab0 WHERE NOT - 44 IS NULL
----
-83
-87
-87

skipif mysql # not compatible
query I rowsort label-3703
SELECT - CAST ( - 4 AS INTEGER ) / + ( - col1 * - col1 ) + - 87 AS col2 FROM tab0 WHERE NOT - 44 IS NULL
----
-83
-87
-87

query I rowsort
SELECT ALL col0 * + col0 + 67 AS col2 FROM tab0
----
292
7636
9476

query I rowsort
SELECT 41 + col0 AS col0 FROM tab2
----
105
116
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 12 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + 44 + + col0 AND - ( 64 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT ALL CAST( COUNT( ALL col1 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL CAST ( COUNT ( ALL col1 ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT + 49 DIV - col1 + col2 FROM tab0
----
47
50
8

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 49 / - col1 + col2 FROM tab0
----
47
50
8

query I rowsort
SELECT col2 - 93 * + col2 FROM tab2 WHERE ( col1 ) <= col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 41 - + 42 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( - 18 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3712
SELECT COUNT ( - 18 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT 13 * + SUM( - 32 * - ( 94 ) ) AS col2 FROM tab2 cor0 WHERE ( 7 ) BETWEEN ( + 16 * col0 ) AND ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT 13 * + SUM ( - 32 * - ( 94 ) ) AS col2 FROM tab2 cor0 WHERE ( 7 ) BETWEEN ( + 16 * col0 ) AND ( - col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 15 <= col1 * - col1 + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT DISTINCT CAST( MAX( CAST( col0 AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT CAST ( MAX ( CAST ( col0 AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + 47 FROM tab1 AS cor0 WHERE ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL - ( + COUNT( * ) ) * + 57 AS col1 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - ( + COUNT ( * ) ) * + 57 AS col1 FROM tab0 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + COUNT( * ) * - SUM( ALL 73 * 76 ) AS col2 FROM tab2
----
-49932

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + COUNT ( * ) * - SUM ( ALL 73 * 76 ) AS col2 FROM tab2
----
-49932

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT col1 DIV 83 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT col1 / 83 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3720
SELECT COUNT( * ) DIV + MAX( col2 * col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT COUNT ( * ) / + MAX ( col2 * col2 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + COUNT( * ) * MIN( ALL 41 ) AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3721
SELECT + COUNT ( * ) * MIN ( ALL 41 ) AS col1 FROM tab2 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT col0 DIV 78 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT col0 / 78 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL 23 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1196
3103
3909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT + CAST( NULL AS SIGNED ) + 85 * + 87 AS col1 FROM tab2 cor0 WHERE ( col0 * - col1 ) <= col0 * col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT + CAST ( NULL AS INTEGER ) + 85 * + 87 AS col1 FROM tab2 cor0 WHERE ( col0 * - col1 ) <= col0 * col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 75 + - 42 * + col2 FROM tab2 AS cor0
----
-1041
-1755
-2511

query I rowsort
SELECT DISTINCT - 36 * - 37 AS col0 FROM tab2 AS cor0
----
1332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 7 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 7 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT + 29 - + COUNT( ALL - col2 + - col0 * + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0 WHERE - col2 NOT IN ( col0 + col1 )
----
29

skipif mysql # not compatible
query I rowsort label-3728
SELECT + 29 - + COUNT ( ALL - col2 + - col0 * + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 WHERE - col2 NOT IN ( col0 + col1 )
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3729
SELECT ALL - - col0 DIV + CAST( col2 AS SIGNED ) + col1 FROM tab1 cor0
----
14
48
6

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - - col0 / + CAST ( col2 AS INTEGER ) + col1 FROM tab1 cor0
----
14
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL + col1 + CAST( + ( + col0 ) AS SIGNED ) + - col2 AS col1 FROM tab0
----
-1
49
98

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + col1 + CAST ( + ( + col0 ) AS INTEGER ) + - col2 AS col1 FROM tab0
----
-1
49
98

query III rowsort
SELECT * FROM tab1 WHERE + ( + col1 ) NOT IN ( + col0 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 * + col1 * + col2 + 58 AS col0 FROM tab2
----
15458
19488
5923

query I rowsort
SELECT ALL 21 + - - 7 AS col1 FROM tab0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT ALL + CAST( col1 AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 45 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + COUNT( 39 ) + 65 FROM tab2 WHERE ( NULL ) IN ( col0 )
----
65

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + COUNT ( 39 ) + 65 FROM tab2 WHERE ( NULL ) IN ( col0 )
----
65

query I rowsort
SELECT DISTINCT + 16 - - + col0 FROM tab1
----
101
107
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> - col2
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col0 ) col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL ( + + col2 ) - - col2 AS col1 FROM tab0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 75 ) AND NOT ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - - col1 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 + - 93 col0 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL - + 21 * - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - + 21 * - COUNT ( * ) FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT CAST( 5 AS SIGNED ) * - col2 AS col0 FROM tab1 WHERE + 9 + 7 IS NOT NULL
----
-295
-340
-480

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT CAST ( 5 AS INTEGER ) * - col2 AS col0 FROM tab1 WHERE + 9 + 7 IS NOT NULL
----
-295
-340
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT - CAST( + 34 AS SIGNED ) DIV + COUNT( * ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - CAST ( + 34 AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - MAX( 57 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-57

skipif mysql # not compatible
query I rowsort label-3748
SELECT - MAX ( 57 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-57

query I rowsort
SELECT 39 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - MIN( ALL + 10 ) * - MAX( 45 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
450

skipif mysql # not compatible
query I rowsort label-3750
SELECT - MIN ( ALL + 10 ) * - MAX ( 45 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT + 95, - COUNT( * ) AS col1 FROM tab0
----
95
-3

skipif mysql # not compatible
query II rowsort label-3751
SELECT + 95, - COUNT ( * ) AS col1 FROM tab0
----
95
-3

query I rowsort
SELECT 21 + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
72
88
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT DISTINCT - - CAST( + 36 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
36

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - - CAST ( + 36 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
36

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + + col2 * col1 - + col0 IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + col1 * 15 AS col0 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN ( NULL ) AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 77 * + col2 * + + col1 AS col2 FROM tab1 AS cor0
----
-103488
-22715
-246092

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) + - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col0
----

query II rowsort
SELECT ALL 79 AS col2, col0 AS col2 FROM tab2 AS cor0
----
79
46
79
64
79
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT ALL + + ( + 72 ) DIV - col2 + + col0 * + col2 FROM tab0 AS cor0
----
704
863
9603

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + + ( + 72 ) / - col2 + + col0 * + col2 FROM tab0 AS cor0
----
704
863
9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT IN ( - col1 * 96 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT - COUNT( * ) DIV 61 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT - COUNT ( * ) / 61 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT + ( - CAST( - + col0 AS SIGNED ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3765
SELECT + ( - CAST ( - + col0 AS INTEGER ) ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3766
SELECT * FROM tab0 WHERE NOT + col1 + CAST( NULL AS SIGNED ) NOT IN ( 97 )
----

skipif mysql # not compatible
query III rowsort label-3766
SELECT * FROM tab0 WHERE NOT + col1 + CAST ( NULL AS INTEGER ) NOT IN ( 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - MAX( ALL - 52 ) AS col2 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3767
SELECT - MAX ( ALL - 52 ) AS col2 FROM tab0
----
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 + col0 / col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT CAST( + col0 AS SIGNED ) * - col1 - - col2 AS col1 FROM tab0
----
-1168
-1817
2

skipif mysql # not compatible
query I rowsort label-3770
SELECT CAST ( + col0 AS INTEGER ) * - col1 - - col2 AS col1 FROM tab0
----
-1168
-1817
2

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col1 + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 11 NOT IN ( - + 40 )
----

query I rowsort
SELECT ALL col1 * + col1 * + 79 FROM tab2
----
205479
354631
468391

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - MIN( ALL - col1 ) + SUM( ALL - 68 ) * + 91 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + col2 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT - MIN ( ALL - col1 ) + SUM ( ALL - 68 ) * + 91 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + col2 + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT COUNT( - 84 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT COUNT ( - 84 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 88 + - col1 AS col1 FROM tab2
----
11
21
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3777
SELECT ALL * FROM tab1 WHERE + col2 + + col2 * + ( + CAST( NULL AS SIGNED ) ) - col2 * - ( - 71 ) BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-3777
SELECT ALL * FROM tab1 WHERE + col2 + + col2 * + ( + CAST ( NULL AS INTEGER ) ) - col2 * - ( - 71 ) BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 49 NOT IN ( - + 62 + - col1 + - col2 * 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IN ( + col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 55 + - col2 BETWEEN ( - + 13 ) AND ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 89 + col2 * + col1 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 58 ) + - col2 col2 FROM tab0 AS cor0
----
-41
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL - - 31 + - MIN( col0 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - - 31 + - MIN ( col0 ) FROM tab0 AS cor0
----
16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + ( + 78 ) * + col1 + - + 47
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND ( - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3786
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST( + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3786
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST ( + col0 AS REAL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT + 7 DIV + + 37 * col2 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3787
SELECT + 7 / + + 37 * col2 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 50 / + + 89 * - 28 * 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT DISTINCT + COUNT( + col0 ) DIV 3 + + 97 col1 FROM tab1
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT DISTINCT + COUNT ( + col0 ) / 3 + + 97 col1 FROM tab1
----
98

query III rowsort
SELECT * FROM tab0 WHERE + ( - ( + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + + col1 ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + SUM( - ( 25 ) ) AS col2 FROM tab1, tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3792
SELECT + SUM ( - ( 25 ) ) AS col2 FROM tab1, tab2 AS cor0
----
-225

query I rowsort
SELECT col0 - + col1 AS col2 FROM tab0 WHERE + - col2 + + 88 - + col0 - + - 27 * col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT CAST( + 93 AS SIGNED ) * + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT CAST ( + 93 AS INTEGER ) * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 - - - 85 + + ( col2 ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT + - SUM( + col1 ) AS col1 FROM tab2 WHERE NULL <> + col0 + - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT + - SUM ( + col1 ) AS col1 FROM tab2 WHERE NULL <> + col0 + - + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT ALL + 68 DIV + - col0 - - 40 AS col2 FROM tab1
----
39
40
40

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + 68 / + - col0 - - 40 AS col2 FROM tab1
----
39
40
40

query I rowsort
SELECT + 43 * + 58 AS col1 FROM tab1 AS cor0 WHERE ( col0 * col1 + - 9 ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - col0 + + 15 FROM tab1 AS cor0
----
-36
-70
-76

query I rowsort
SELECT col0 + - + col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL - - col0 - + + ( col1 ) FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ( + COUNT( * ) ) * + - 33 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3802
SELECT ( + COUNT ( * ) ) * + - 33 FROM tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT 55 DIV + SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT 55 / + SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * - - col2 * col1 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT + - 68 + - + col1 AS col2 FROM tab1 WHERE NOT - 41 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 76 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + col0 + - col1 IN ( col1 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( 90 ) FROM tab1 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT - MIN( DISTINCT + 32 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT - MIN ( DISTINCT + 32 ) FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT 94 * + 68 + - col1 + - col2 AS col0 FROM tab0 cor0
----
6264
6292
6361

query I rowsort
SELECT - - col1 * + + 9 + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * col0 ) BETWEEN - col1 + - ( 84 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT + col2 + col1 * + + 46 <> NULL )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - 64 + - - 42 + - 67 * - ( col1 )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT + col1 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3817
SELECT - col0 + - col1 * + 89, + col1 DIV - 2 AS col0 FROM tab0
----
-186
0
-1956
-10
-7224
-40

skipif mysql # not compatible
query II rowsort label-3817
SELECT - col0 + - col1 * + 89, + col1 / - 2 AS col0 FROM tab0
----
-186
0
-1956
-10
-7224
-40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT ALL + CAST( NULL AS SIGNED ) * - + COUNT( * ) * MIN( 67 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * MIN ( 67 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + MIN( DISTINCT - 54 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3820
SELECT + MIN ( DISTINCT - 54 ) FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
91

query II rowsort
SELECT + + 1, col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3823
SELECT ALL - 26 DIV - COUNT( * ) - - 0 col1, 4 FROM tab0 AS cor0
----
8
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3823
SELECT ALL - 26 / - COUNT ( * ) - - 0 col1, 4 FROM tab0 AS cor0
----
8
4

query I rowsort
SELECT DISTINCT - 55 FROM tab2 AS cor0 WHERE NULL IN ( - 65, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL - 55 * + SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-12485

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - 55 * + SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-12485

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT - - ( - - col0 ) + + col0 + + col2 DIV - col0 FROM tab0 AS cor0
----
174
193
27

skipif mysql # not compatible
query I rowsort label-3826
SELECT - - ( - - col0 ) + + col0 + + col2 / - col0 FROM tab0 AS cor0
----
174
193
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + col2 * - + 27 - + - col2 NOT BETWEEN 70 * + CAST( NULL AS SIGNED ) * - - col1 - - col1 AND ( + col2 ) OR - col0 * col1 IN ( + 95 )
----

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + col2 * - + 27 - + - col2 NOT BETWEEN 70 * + CAST ( NULL AS INTEGER ) * - - col1 - - col1 AND ( + col2 ) OR - col0 * col1 IN ( + 95 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT + COUNT( * ) - - MIN( + col0 ) + + 34 + + - 6 AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COUNT ( * ) - - MIN ( + col0 ) + + 34 + + - 6 AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
46

query I rowsort
SELECT + + 21 + col2 AS col0 FROM tab2 AS cor0
----
44
61
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT 71 + - + col0 + - + 98 + - CAST( NULL AS SIGNED ) + 11 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT 71 + - + col0 + - + 98 + - CAST ( NULL AS INTEGER ) + 11 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + + 18 * + col2 AS col2 FROM tab2
----
28800
60552
9522

query I rowsort
SELECT + col2 - + + col1 FROM tab1 WHERE NULL IS NULL
----
21
54
82

query I rowsort
SELECT DISTINCT - - 74 * - col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-1702
-2960
-4292

query I rowsort
SELECT DISTINCT col0 / + 61 AS col2 FROM tab1 WHERE - ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( 92 ) - col0 AS col0 FROM tab0
----
-5
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT COUNT( ( + + col1 ) ) FROM tab0 WHERE - 29 > - 3 * + - col0
----
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT COUNT ( ( + + col1 ) ) FROM tab0 WHERE - 29 > - 3 * + - col0
----
0

query II rowsort
SELECT ALL 41 + - + col1 + + + col1 + ( - - col2 ) AS col0, + 24 AS col2 FROM tab1
----
100
24
109
24
137
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT + 21 - + COUNT( - col0 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + 21 - + COUNT ( - col0 ) AS col1 FROM tab0
----
18

query II rowsort
SELECT DISTINCT + col2 - col0 * - 49 AS col1, col2 AS col0 FROM tab0
----
4273
10
4852
99
782
47

query I rowsort
SELECT 75 - 81 + + col1 AS col0 FROM tab0 AS cor0
----
-5
15
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 44 AS col2 FROM tab2 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3843
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + CAST( + col0 AS SIGNED ) / + col2 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3843
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + CAST ( + col0 AS INTEGER ) / + col2 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 11 * - + col2 AS col2 FROM tab2
----
253
440
638

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( - + 56 ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT + 24, - 45 * - COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
24
132

skipif mysql # not compatible
query II rowsort label-3846
SELECT + 24, - 45 * - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
24
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT COUNT( + 54 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3847
SELECT COUNT ( + 54 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col1 + - 98 - - col2 AS col1, 17 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL - CAST( 42 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL - CAST ( 42 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 98 AS col2 FROM tab1 AS cor0
----
51
-98
85
-98
91
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-3851
SELECT DISTINCT - col2 AS col0, col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT - col2 AS col0, col2 / - col1 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3852
SELECT ALL + col2 * + - 51 AS col1, - 71 DIV - col0 FROM tab1
----
-3009
0
-3468
0
-4896
1

skipif mysql # not compatible
query II rowsort label-3852
SELECT ALL + col2 * + - 51 AS col1, - 71 / - col0 FROM tab1
----
-3009
0
-3468
0
-4896
1

query I rowsort
SELECT col1 * - + 26 AS col2 FROM tab0
----
-2106
-26
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT DISTINCT 32 * CAST( - - col1 AS SIGNED ) FROM tab0
----
2592
32
672

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT 32 * CAST ( - - col1 AS INTEGER ) FROM tab0
----
2592
32
672

query II rowsort
SELECT + + 21, + 7 FROM tab1 WHERE NOT ( NOT ( ( NOT col2 IS NOT NULL ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( + col1 ) * col0 AS col1, ( - ( + - col1 ) ) FROM tab2
----
2346
51
4928
77
5025
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3858
SELECT DISTINCT - CAST( + + COUNT( + col2 ) AS SIGNED ) * - - CAST( NULL AS DECIMAL ) + MAX( ALL + col1 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - CAST ( + + COUNT ( + col2 ) AS INTEGER ) * - - CAST ( NULL AS REAL ) + MAX ( ALL + col1 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab2 WHERE NOT ( - 97 >= + col1 )
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT - + col2 * - col0 - + - col1 * + CAST( + ( - 62 ) AS SIGNED ) / col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT - + col2 * - col0 - + - col1 * + CAST ( + ( - 62 ) AS INTEGER ) / col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + + ( - - col0 ) + - col2 * - + col2 FROM tab0 AS cor0
----
197
2271
9997

query I rowsort
SELECT - col0 + - + 90 AS col0 FROM tab2
----
-136
-154
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT - + col0 DIV - + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3863
SELECT - + col0 / - + col0 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 55 * + col2 * + 7 + + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 95, - 27 AS col2 FROM tab1 cor0
----
95
-27
95
-27
95
-27

query I rowsort
SELECT + 53 * + col2 FROM tab0 cor0
----
2491
5247
530

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = ( col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT + MIN( + + col2 ) FROM tab2 cor0 WHERE ( + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT + MIN ( + + col2 ) FROM tab2 cor0 WHERE ( + col1 ) IS NULL
----
NULL

query I rowsort
SELECT col2 - - + col1 * - + col1 FROM tab1 AS cor0
----
-100
-2141
34

query I rowsort
SELECT ALL + col0 * - + 6 + col2 AS col1 FROM tab2 AS cor0
----
-253
-344
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - COUNT( * ) - 92 AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3871
SELECT - COUNT ( * ) - 92 AS col0 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT DISTINCT col1 + col0 + - - 49 AS col0 FROM tab0
----
145
147
157

query I rowsort
SELECT col2 - + 8 AS col0 FROM tab1
----
51
60
88

query I rowsort
SELECT ALL + 60 + - col2 FROM tab0
----
-39
13
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3875
SELECT + - 8, 28 AS col0 FROM tab2 WHERE - 83 BETWEEN NULL AND - ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-3875
SELECT + - 8, 28 AS col0 FROM tab2 WHERE - 83 BETWEEN NULL AND - ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE - col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN NULL AND - col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN NULL AND - col0 * col0
----
0

query I rowsort
SELECT ALL + ( + col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL ( 21 ) AS col0 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + - MIN( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3880
SELECT + - MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3881
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3881
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT + MIN( + col0 ) * + + SUM( DISTINCT - - col1 ) col2 FROM tab0
----
1545

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3882
SELECT DISTINCT + MIN ( + col0 ) * + + SUM ( DISTINCT - - col1 ) col2 FROM tab0
----
1545

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3883
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col2 + CAST( NULL AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3883
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col2 + CAST ( NULL AS REAL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * ( + + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * ( + + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + - col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = + col1
----

skipif mysql # not compatible
query I rowsort label-3887
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 * + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL SUM( ALL col0 ) AS col1 FROM tab2 WHERE NOT NULL = - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL SUM ( ALL col0 ) AS col1 FROM tab2 WHERE NOT NULL = - + col0
----
NULL

query I rowsort
SELECT - 11 + - col1 FROM tab1
----
-16
-25
-58

query I rowsort
SELECT ALL col2 * + 44 FROM tab1
----
2596
2992
4224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + col0 col0 FROM tab1
----
128
162
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3895
SELECT DISTINCT - 1 DIV MAX( DISTINCT - ( - + col0 ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - 1 / MAX ( DISTINCT - ( - + col0 ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT + 8 FROM tab2 WHERE NULL IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT ALL + MAX( - 36 ) DIV - 46 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + MAX ( - 36 ) / - 46 AS col1 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col0, - 37 AS col1 FROM tab0 AS cor0
----
15
-37
87
-37
97
-37

query I rowsort
SELECT ALL - - 10 FROM tab0 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT + COUNT( * ), + COUNT( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3900
SELECT + COUNT ( * ), + COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + col1 col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL 48 * - COUNT( * ) + 69 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL 48 * - COUNT ( * ) + 69 FROM tab1
----
-75

query I rowsort
SELECT 80 - + 17 AS col2 FROM tab1
----
63
63
63

query I rowsort
SELECT - col0 * + 12 FROM tab2 WHERE + + col0 * - col1 IS NULL
----

query I rowsort
SELECT col0 + + - 26 * - 56 FROM tab0
----
1471
1543
1553

query I rowsort
SELECT + col2 * - 19 + 93 AS col0 FROM tab1
----
-1028
-1199
-1731

query I rowsort
SELECT ALL - 22 - ( + + 77 ) FROM tab0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT + CAST( - + col2 AS SIGNED ) + - - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT + CAST ( - + col2 AS INTEGER ) + - - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 * + - col2 * - - col0 - - 80 * - col2 AS col0 FROM tab0 cor0
----
1683
17470
53345

query I rowsort
SELECT ALL - col1 * + col2 * - + col2 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT DISTINCT + 41 * + col2 * - + col0 + ( - + col2 ) * + col0 + - 74 * - col0 FROM tab2 AS cor0
----
-102784
-177150
-41032

query I rowsort
SELECT + 50 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
50
50
50

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col1 + + 71
----

query I rowsort
SELECT + ( - ( + 59 ) ) AS col1 FROM tab2
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3915
SELECT - col0 AS col0, + col0 + + CAST( - col2 AS SIGNED ) col0 FROM tab2
----
-46
23
-64
24
-75
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3915
SELECT - col0 AS col0, + col0 + + CAST ( - col2 AS INTEGER ) col0 FROM tab2
----
-46
23
-64
24
-75
17

query II rowsort
SELECT DISTINCT + ( + ( + + col2 ) ), col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT - col0, ( - col1 ) AS col2 FROM tab2
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT DISTINCT 2 AS col2, col0 AS col2 FROM tab1
----
2
51
2
85
2
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - MIN( - + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3919
SELECT - MIN ( - + col0 ) FROM tab1
----
91

query II rowsort
SELECT DISTINCT + col2, + 21 AS col1 FROM tab1 AS cor0
----
59
21
68
21
96
21

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3922
SELECT COUNT( * ) * - 22 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT COUNT ( * ) * - 22 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - - ( + - MAX( ALL - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3924
SELECT - - ( + - MAX ( ALL - col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + + MAX( ALL + col0 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3925
SELECT + + MAX ( ALL + col0 ) AS col2 FROM tab1 cor0
----
91

query II rowsort
SELECT - col1, - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL - + ( - - ( COUNT( * ) ) ) + - 6 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - + ( - - ( COUNT ( * ) ) ) + - 6 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( 5 ) * - - ( col0 ) + + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( 5 ) * - - ( col0 ) + + col0 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + SUM( ALL 37 ) AS col0 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3929
SELECT + SUM ( ALL 37 ) AS col0 FROM tab2
----
111

query I rowsort
SELECT + 19 * + + 84 FROM tab2
----
1596
1596
1596

query I rowsort
SELECT DISTINCT 93 + + col1 FROM tab0
----
114
174
94

query I rowsort
SELECT DISTINCT col0 + - - col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT - + 23 + - + COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3933
SELECT - + 23 + - + COUNT ( * ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT - col2 * - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE col1 BETWEEN 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT + COUNT( * ) + - + 15 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + COUNT ( * ) + - + 15 FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT - - COUNT( * ) + + COUNT( ALL - CAST( col0 AS SIGNED ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( ALL - CAST ( col0 AS INTEGER ) ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - COUNT( * ) + + 9 col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT - COUNT ( * ) + + 9 col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + - ( col0 ) * - col1 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL > 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT DISTINCT - 47 * MAX( DISTINCT + - 92 ) + + COUNT( * ) + 97 FROM tab2
----
4424

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - 47 * MAX ( DISTINCT + - 92 ) + + COUNT ( * ) + 97 FROM tab2
----
4424

query I rowsort
SELECT ALL 89 + - - ( + 3 ) + + - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + - 14 - - 17 FROM tab2 cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT - - col1 - + col0 FROM tab0 AS cor0 WHERE + CAST( + 47 AS SIGNED ) - - col2 BETWEEN col1 AND - - 68 * - - col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3942
SELECT - - col1 - + col0 FROM tab0 AS cor0 WHERE + CAST ( + 47 AS INTEGER ) - - col2 BETWEEN col1 AND - - 68 * - - col2 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 - + - 71 * col2 FROM tab1 AS cor0
----
4248
4896
6912

query I rowsort
SELECT ALL + col2 * + + col0 * - + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3945
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < col1 + - ( - CAST( NULL AS DECIMAL ) ) * - col1 + - - 55
----

skipif mysql # not compatible
query III rowsort label-3945
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < col1 + - ( - CAST ( NULL AS REAL ) ) * - col1 + - - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT + - 90 * + + 56 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT + - 90 * + + 56 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + - col0 - - col2 AS col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

query II rowsort
SELECT DISTINCT col2 * - col1 AS col1, - 2 FROM tab1 AS cor0
----
-1344
-2
-295
-2
-3196
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3950
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN + col0 AND CAST( + ( + + ( - - col1 ) ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3950
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN + col0 AND CAST ( + ( + + ( - - col1 ) ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 92 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL COUNT( ALL - 44 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL COUNT ( ALL - 44 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT + CAST( - 69 AS SIGNED ) AS col2 FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-3953
SELECT + CAST ( - 69 AS INTEGER ) AS col2 FROM tab2
----
-69
-69
-69

query II rowsort
SELECT - col2 AS col1, - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 * - col0 col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3957
SELECT - CAST( NULL AS SIGNED ) AS col0, 34 FROM tab0 AS cor0
----
NULL
34
NULL
34
NULL
34

skipif mysql # not compatible
query II rowsort label-3957
SELECT - CAST ( NULL AS INTEGER ) AS col0, 34 FROM tab0 AS cor0
----
NULL
34
NULL
34
NULL
34

query I rowsort
SELECT ALL - + 19 FROM tab2 cor0
----
-19
-19
-19

query II rowsort
SELECT DISTINCT col0 AS col1, col1 * + + 56 FROM tab2 AS cor0
----
46
2856
64
4312
75
3752

query I rowsort
SELECT - 12 * col0 * + + col1 - 14 AS col1 FROM tab2 AS cor0 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - + COUNT( * ) + + 50 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3961
SELECT - + COUNT ( * ) + + 50 FROM tab0 AS cor0
----
47

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 col1, - col0 * - col1 AS col2 FROM tab0 AS cor0
----
56
1215
56
1827
56
97

query I rowsort
SELECT 72 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
91
91
91

query I rowsort
SELECT col0 * + + col2 + + col0 AS col2 FROM tab1
----
4947
5100
6279

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN + col0 AND - 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 51 + + + col0 AS col0 FROM tab1
----
102
136
142

query II rowsort
SELECT ALL + col2 * - + col2 + - 14 + - 16, - 79 AS col0 FROM tab1
----
-3511
-79
-4654
-79
-9246
-79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 - - 18 <= + col2 * - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE col2 < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( col0 ) col2 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT + col1 * - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT + col1 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT - COUNT( * ) * + - COUNT( * ), - COUNT( * ) col1 FROM tab0 AS cor0
----
9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3974
SELECT - COUNT ( * ) * + - COUNT ( * ), - COUNT ( * ) col1 FROM tab0 AS cor0
----
9
-3

query I rowsort
SELECT DISTINCT 50 * + col0 + + + col1 FROM tab2 AS cor0
----
2351
3277
3817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT ALL - SUM( DISTINCT - col1 ) DIV + + 93 - - - COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - SUM ( DISTINCT - col1 ) / + + 93 - - - COUNT ( * ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT 88 + - col0 - - - 13 + + col1 * 28 * + + 0 AS col0 FROM tab1
----
-10
-16
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT ALL col1 DIV - 7 FROM tab2 AS cor0
----
-11
-7
-9

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL col1 / - 7 FROM tab2 AS cor0
----
-11
-7
-9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3981
SELECT + ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT + COUNT( DISTINCT - 10 ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT + COUNT ( DISTINCT - 10 ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col0, col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 90 * 4 + - ( - + 18 ) AS col0 FROM tab0 AS cor0
----
378
378
378

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 54 / + - col2 BETWEEN - 22 + + - 38 AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 12 * col2 + - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 33 * + 67 AS col1 FROM tab1 AS cor0
----
2211
2211
2211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 col2 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3989
SELECT + SUM( DISTINCT - + ( + - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT + SUM ( DISTINCT - + ( + - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT - col0 DIV col1 * - + ( - 20 ) FROM tab2
----
-20
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - col0 / col1 * - + ( - 20 ) FROM tab2
----
-20
0

query I rowsort
SELECT + col2 * + ( + - ( - col0 ) ) FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT - col2 AS col0, + col1 AS col2, + col1 AS col2 FROM tab0
----
9 values hashing to 917bb0b909bf55eca876e5ec2f601884

onlyif mysql # DIV for integer division: 
query II rowsort label-3993
SELECT ALL col2, - col2 DIV - 44 FROM tab2
----
23
0
40
0
58
1

skipif mysql # not compatible
query II rowsort label-3993
SELECT ALL col2, - col2 / - 44 FROM tab2
----
23
0
40
0
58
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3994
SELECT + col1, - 77 - - CAST( - ( + - col0 ) AS SIGNED ) FROM tab1
----
14
-26
47
14
5
8

skipif mysql # not compatible
query II rowsort label-3994
SELECT + col1, - 77 - - CAST ( - ( + - col0 ) AS INTEGER ) FROM tab1
----
14
-26
47
14
5
8

query II rowsort
SELECT ALL - col0, col2 * + - col1 AS col1 FROM tab2
----
-46
-1173
-64
-3080
-75
-3886

query I rowsort
SELECT DISTINCT 27 * - + col1 AS col0 FROM tab0
----
-2187
-27
-567

query I rowsort
SELECT DISTINCT - + col0 * - col0 * col0 FROM tab0 AS cor0
----
3375
658503
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + 86 + 83 col0 FROM tab2
----
4039
5587
6533

query I rowsort
SELECT + 74 + - col1 AS col0 FROM tab0
----
-7
53
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * + 69 col0 FROM tab2
----
-6486

query I rowsort
SELECT ALL + - ( col1 ) * + - col2 + - + col0 AS col0 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # DIV for integer division: 
query II rowsort label-4002
SELECT DISTINCT col2 DIV + - col1, + col1 FROM tab1 AS cor0
----
-1
47
-11
5
-6
14

skipif mysql # not compatible
query II rowsort label-4002
SELECT DISTINCT col2 / + - col1, + col1 FROM tab1 AS cor0
----
-1
47
-11
5
-6
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT - ( - + 27 ) DIV + + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4003
SELECT - ( - + 27 ) / + + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT ( - CAST( - 97 AS SIGNED ) ) FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-4004
SELECT ( - CAST ( - 97 AS INTEGER ) ) FROM tab1 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL - MIN( + + CAST( + - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - MIN ( + + CAST ( + - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT + - ( col2 ) AS col1 FROM tab0 WHERE + col0 + + - col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT col0 - + + 24 FROM tab1
----
27
61
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT COUNT( * ) - - 39 AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-4008
SELECT COUNT ( * ) - - 39 AS col2 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT ALL + COUNT( * ) - + 88 * - 36 AS col2, 1 FROM tab1
----
3171
1

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL + COUNT ( * ) - + 88 * - 36 AS col2, 1 FROM tab1
----
3171
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4010
SELECT DISTINCT 42, - CAST( + col0 AS SIGNED ) + + CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-4010
SELECT DISTINCT 42, - CAST ( + col0 AS INTEGER ) + + CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab0
----
42
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 32 col2, - col0 + col1 AS col0 FROM tab0
----
32
-66
32
-96
32
66

query I rowsort
SELECT - - col1 + + col2 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND + col1 )
----

query II rowsort
SELECT ALL + col0 AS col1, 91 FROM tab1 AS cor0
----
51
91
85
91
91
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * - col2 >= - 77
----

query II rowsort
SELECT + 77 AS col0, + col2 FROM tab1 AS cor0
----
77
59
77
68
77
96

query I rowsort
SELECT ( + - 27 ) FROM tab0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + 30 AS col0, col0 col1 FROM tab0
----
-2610
87
-2910
97
-450
15

query I rowsort
SELECT ALL - 66 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-66
-66
-66

query I rowsort
SELECT 23 AS col0 FROM tab0 cor0
----
23
23
23

query I rowsort
SELECT ALL - ( 9 ) FROM tab2 AS cor0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4023
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE NOT - col1 + - 2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 60 + col0 <= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 39 * - + col2 FROM tab0 cor0
----
-1833
-3861
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( 80 ) col2 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT - COUNT( * ) * + 92 + + + COUNT( * ) col0 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4028
SELECT DISTINCT - COUNT ( * ) * + 92 + + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-273

query I rowsort
SELECT ALL - 50 * col2 AS col1 FROM tab0
----
-2350
-4950
-500

query I rowsort
SELECT 12 AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
12
12
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4031
SELECT - COUNT( * ) DIV 87 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT - COUNT ( * ) / 87 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT ALL CAST( NULL AS SIGNED ) * - 66 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL CAST ( NULL AS INTEGER ) * - 66 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 26 * - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + - SUM( DISTINCT + col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4034
SELECT + - SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, 76 col2 FROM tab2 cor0
----
-46
76
-64
76
-75
76

query II rowsort
SELECT DISTINCT 52 + - col0, - col2 AS col2 FROM tab1
----
-33
-59
-39
-68
1
-96

query I rowsort
SELECT col0 + + col0 AS col1 FROM tab2 WHERE NULL > - - col2 * - col1
----

query I rowsort
SELECT DISTINCT col0 * + + col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL + col2 * + 2 AS col2 FROM tab0
----
198
20
94

query II rowsort
SELECT col2 + - 60 AS col1, 34 + col2 FROM tab0
----
-13
81
-50
44
39
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT + MAX( ALL - col0 ) + - CAST( - 1 AS SIGNED ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4041
SELECT + MAX ( ALL - col0 ) + - CAST ( - 1 AS INTEGER ) FROM tab0 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT ALL col1 DIV - 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL col1 / - 87 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT 65, + col1 FROM tab1 AS cor0
----
65
14
65
47
65
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT ALL COUNT( * ) AS col2, COUNT( DISTINCT + 81 ) * 62 col1 FROM tab0 cor0
----
3
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4044
SELECT ALL COUNT ( * ) AS col2, COUNT ( DISTINCT + 81 ) * 62 col1 FROM tab0 cor0
----
3
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col0 >= col1 / + - col2 * - + ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + 91 AS col0 FROM tab2
----
142
158
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL + SUM( ALL - 5 ) + MAX( ALL + - 34 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL + SUM ( ALL - 5 ) + MAX ( ALL + - 34 ) FROM tab1
----
-49

query I rowsort
SELECT ALL 28 - + 34 + + col2 * col1 * - col0 AS col0 FROM tab0
----
-18276
-57111
-9609

query I rowsort
SELECT ALL col2 + ( - 63 ) FROM tab0
----
-16
-53
36

query III rowsort
SELECT * FROM tab0 WHERE + + col2 + + 41 - - ( + 72 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL - ( - + CAST( + - col0 AS SIGNED ) ) * + col1 - - - col1 AS col0 FROM tab2
----
-2397
-5005
-5092

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - ( - + CAST ( + - col0 AS INTEGER ) ) * + col1 - - - col1 AS col0 FROM tab2
----
-2397
-5005
-5092

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE - col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT DISTINCT col1 * 9 DIV - 66 - - col2 FROM tab1
----
59
62
95

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT col1 * 9 / - 66 - - col2 FROM tab1
----
59
62
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL MAX( ALL 54 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL MAX ( ALL 54 ) FROM tab1 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT DISTINCT - 68 AS col0, + ( - MAX( - 36 ) ) AS col0 FROM tab2 cor0
----
-68
36

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT - 68 AS col0, + ( - MAX ( - 36 ) ) AS col0 FROM tab2 cor0
----
-68
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - SUM( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4057
SELECT - SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT 8 * - + COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4058
SELECT 8 * - + COUNT ( * ) FROM tab1
----
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - ( - - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + - + col2 <> + col2 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT ALL - CAST( col0 AS SIGNED ) * + 93 FROM tab1
----
-4743
-7905
-8463

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL - CAST ( col0 AS INTEGER ) * + 93 FROM tab1
----
-4743
-7905
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL + - MAX( DISTINCT 94 ) AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + - MAX ( DISTINCT 94 ) AS col0 FROM tab2 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col1 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT + col0 * - - ( + - CAST( + col2 AS SIGNED ) ) + + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

skipif mysql # not compatible
query I rowsort label-4064
SELECT + col0 * - - ( + - CAST ( + col2 AS INTEGER ) ) + + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT + - 25 FROM tab0 AS cor0 WHERE ( NULL ) >= - col1
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * + - col0 + col1 col1 FROM tab2
----
2719
3789
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL 81 * MIN( DISTINCT - col2 ) + COUNT( * ) FROM tab1
----
-7773

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL 81 * MIN ( DISTINCT - col2 ) + COUNT ( * ) FROM tab1
----
-7773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 WHERE NOT 2 NOT BETWEEN col2 + + 62 AND - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + MAX( + + 81 ) AS col0 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4070
SELECT + MAX ( + + 81 ) AS col0 FROM tab2 cor0
----
81

query I rowsort
SELECT ALL - 95 * 38 AS col2 FROM tab2 AS cor0
----
-3610
-3610
-3610

query II rowsort
SELECT - col1 * col0 + col2, col1 FROM tab2 AS cor0
----
-2323
51
-4888
77
-4967
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + 49 + MAX( + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL <= col0 + - 74 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT + 49 + MAX ( + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL <= col0 + - 74 * + 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT + - col0 - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT + - col0 - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 14 FROM tab2
----
60
78
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col1 FROM tab2
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab0 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + - MAX( ALL - - ( - col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4078
SELECT + - MAX ( ALL - - ( - col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT - + 56 * 81 * - + col1 FROM tab2 AS cor0
----
231336
303912
349272

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 62 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4083
SELECT + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT - ( - COUNT( ALL + - col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4084
SELECT - ( - COUNT ( ALL + - col0 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT - - ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4085
SELECT - - ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 96 * - col0 AS col0 FROM tab1 AS cor0
----
4896
8160
8736

query II rowsort
SELECT DISTINCT col0 AS col0, + 91 FROM tab2
----
46
91
64
91
75
91

query I rowsort
SELECT + col2 * + 17 FROM tab0
----
1683
170
799

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + 19 * - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT - MAX( ALL col2 ) col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4090
SELECT DISTINCT - MAX ( ALL col2 ) col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4091
SELECT * FROM tab0 AS cor0 WHERE - ( + 20 ) >= ( 35 - - - col0 / - - col2 + + 21 + + + col1 + + + col0 + + 29 + + - CAST( - 69 AS SIGNED ) * - ( + - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4091
SELECT * FROM tab0 AS cor0 WHERE - ( + 20 ) >= ( 35 - - - col0 / - - col2 + + 21 + + + col1 + + + col0 + + 29 + + - CAST ( - 69 AS INTEGER ) * - ( + - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT - 78 * + 35 * + col1 * - col0 + col1 DIV + + 71 FROM tab1 AS cor0
----
1160250
11676210
1949220

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT - 78 * + 35 * + col1 * - col0 + col1 / + + 71 FROM tab1 AS cor0
----
1160250
11676210
1949220

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT IN ( + + 9 * - col0, 40, - col0 * - - 26, + col1, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + - - col0 * + + col0 FROM tab1
----
2697
7284
8349

query I rowsort
SELECT DISTINCT 83 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
83

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + + 6 <> - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col2 ) + - - 40 AS col2 FROM tab0 AS cor0
----
139
50
87

query I rowsort
SELECT ALL - 6 - + - 63 + + - col2 AS col0 FROM tab2 AS cor0
----
-1
17
34

query I rowsort
SELECT ALL + - col0 * col0 + + - col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

query I rowsort
SELECT col0 + + col2 + col1 + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-2226
-4747
-4825

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN col0 AND col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT + + 86 * + MAX( 80 ) AS col0 FROM tab0 AS cor0
----
6880

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT + + 86 * + MAX ( 80 ) AS col0 FROM tab0 AS cor0
----
6880

query I rowsort
SELECT ALL + + col2 + - - col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL - CAST( + 73 AS SIGNED ) + + col0 AS col2 FROM tab2
----
-27
-9
2

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - CAST ( + 73 AS INTEGER ) + + col0 AS col2 FROM tab2
----
-27
-9
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL - 80 - - MAX( DISTINCT - + col1 ) AS col1 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - 80 - - MAX ( DISTINCT - + col1 ) AS col1 FROM tab1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + MAX( + col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4106
SELECT + MAX ( + col0 ) col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT + MAX( - - 40 ) col2 FROM tab0 WHERE - 81 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT DISTINCT + MAX ( - - 40 ) col2 FROM tab0 WHERE - 81 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + MAX( DISTINCT - 93 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + MAX ( DISTINCT - 93 ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT - 60 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-4109
SELECT - 60 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
180

query I rowsort
SELECT ALL col2 * + - col0 + - ( 64 ) + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-754
-847
-9570

query I rowsort
SELECT ALL - col0 * - 14 AS col0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT col2 DIV - col0 col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4112
SELECT col2 / - col0 col1 FROM tab0
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT ALL col1 DIV + 84 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL col1 / + 84 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - + MAX( ALL - - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - + MAX ( ALL - - col2 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT COUNT( * ), COUNT( * ) + + 54 AS col1 FROM tab0 AS cor0
----
3
57

skipif mysql # not compatible
query II rowsort label-4116
SELECT COUNT ( * ), COUNT ( * ) + + 54 AS col1 FROM tab0 AS cor0
----
3
57

query I rowsort
SELECT - ( col2 ) FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 47 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - col0 + - 36 AND NULL
----

query I rowsort
SELECT + col2 + - col1 * - col2 * col2 FROM tab2 AS cor0
----
123240
225446
27002

query I rowsort
SELECT col2 * ( - col2 ) * - col1 + - 41 - - col0 FROM tab0 AS cor0
----
178903
2146
9857

query I rowsort
SELECT + + col0 - + col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + - col2 * + - col1 + col2 FROM tab0 cor0 WHERE + col0 IS NOT NULL
----
198
220
3854

query I rowsort
SELECT + - ( + 42 ) - - col0 AS col2 FROM tab1 AS cor0
----
43
49
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - 5 col1 FROM tab2 AS cor0
----
41
59
70

query I rowsort
SELECT + col0 * - + col0 * + 95 AS col1 FROM tab0
----
-21375
-719055
-893855

query I rowsort
SELECT ALL 99 * - 30 * 30 FROM tab1
----
-89100
-89100
-89100

query II rowsort
SELECT + 34 * - + col0, col2 AS col0 FROM tab2 AS cor0
----
-1564
23
-2176
40
-2550
58

query I rowsort
SELECT - col2 * - ( - col1 ) FROM tab0 cor0
----
-210
-3807
-99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4131
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 * + - 54 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT 78 * + - 5 AS col1 FROM tab1 AS cor0
----
-390

query I rowsort
SELECT - + 11 * - + col1 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT COUNT( * ) col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4135
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4136
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) DIV col2 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) / col2 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT DISTINCT + 92 DIV - - 75 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + 92 / - - 75 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 61 * 58 + + col0 + col0 AS col2 FROM tab2 AS cor0
----
3630
3666
3688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4140
SELECT ALL + col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4140
SELECT ALL + col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT - col2 + + col2 / + + CAST( NULL AS SIGNED ) + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - col2 + + col2 / + + CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - col2 >= NULL
----

query I rowsort
SELECT ALL + ( + 19 ) + col1 + - + ( col0 ) AS col0 FROM tab1
----
-18
-25
-61

query I rowsort
SELECT ALL + col1 * 62 * + 98 FROM tab0
----
127596
492156
6076

query II rowsort
SELECT DISTINCT - col0 + + col2 * col2 * col2 + ( col0 ) AS col1, col0 AS col2 FROM tab0
----
1000
87
103823
15
970299
97

query I rowsort
SELECT - col2 + - ( + col0 ) FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT COUNT( * ) * + - 15 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT COUNT ( * ) * + - 15 FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL ( + MAX( + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL ( + MAX ( + col0 ) ) FROM tab0
----
97

query I rowsort
SELECT ALL ( - 40 ) + + col0 FROM tab1
----
11
45
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT 21 + - + COUNT( ALL + 97 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT 21 + - + COUNT ( ALL + 97 ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT col0 + col2 - + + col0 + - col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT - - 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query II rowsort
SELECT + col0 + + col1, 49 AS col2 FROM tab2
----
141
49
142
49
97
49

query II rowsort
SELECT - - col2 + - 78 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
-10
-91
-19
-85
18
-51

query I rowsort
SELECT + + col2 + - - 80 FROM tab2 AS cor0
----
103
120
138

query I rowsort
SELECT ALL 84 - - col2 FROM tab0 AS cor0
----
131
183
94

query I rowsort
SELECT + 55 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( col0 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( col0 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + 79 AS col0 FROM tab2 cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT 60 * + COUNT( * ) AS col1 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-4160
SELECT 60 * + COUNT ( * ) AS col1 FROM tab0
----
180

query II rowsort
SELECT 16 AS col1, + col0 FROM tab2
----
16
46
16
64
16
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT DISTINCT SUM( - col1 ) * + CAST( + 11 AS SIGNED ) FROM tab0
----
-1133

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT SUM ( - col1 ) * + CAST ( + 11 AS INTEGER ) FROM tab0
----
-1133

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT + COUNT( DISTINCT - + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + COUNT ( DISTINCT - + col0 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT 3 AS col0, - 97 AS col1 FROM tab1
----
3
-97
3
-97
3
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 36 + - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 78 col1, + ( + col2 ) FROM tab2 AS cor0
----
-78
23
-78
40
-78
58

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT + col0 * 91 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + 76 AS col0 FROM tab0 WHERE - col1 + - col0 IS NULL
----

query I rowsort
SELECT col1 * - ( - col1 ) FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab0 WHERE + ( + 29 ) + col1 * 6 NOT IN ( 39 )
----
-66
66
96

query I rowsort
SELECT ( + 37 ) * col2 FROM tab1
----
2183
2516
3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - col2 * + 86 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT + SUM( - 14 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4176
SELECT + SUM ( - 14 ) FROM tab2
----
-42

query I rowsort
SELECT ALL col2 * + ( + col1 ) AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT COUNT( * ) * + 42 AS col0 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT COUNT ( * ) * + 42 AS col0 FROM tab0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4179
SELECT * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) ) >= ( - col0 ) * col0
----

skipif mysql # not compatible
query III rowsort label-4179
SELECT * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) ) >= ( - col0 ) * col0
----

query I rowsort
SELECT ALL - 48 * - 85 FROM tab2
----
4080
4080
4080

query I rowsort
SELECT ALL + ( - 62 ) * col1 FROM tab1
----
-2914
-310
-868

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND col2 - 37 * + 64
----

query I rowsort
SELECT - 43 AS col2 FROM tab1 WHERE NOT + col2 * - 8 NOT BETWEEN - col2 / - ( + col2 * 0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT MIN( col0 ) AS col0 FROM tab0 WHERE NULL NOT IN ( 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT MIN ( col0 ) AS col0 FROM tab0 WHERE NULL NOT IN ( 24 )
----
NULL

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT DISTINCT 76 DIV col0 - + col1 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT 76 / col0 - + col1 FROM tab0
----
-1
-21
-76

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN col1 * col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT - col1 * - ( + ( - 80 ) DIV col0 ) FROM tab0
----
-405
0
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT - col1 * - ( + ( - 80 ) / col0 ) FROM tab0
----
-405
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col1 FROM tab0 WHERE NOT col2 * 83 + 55 * - col2 IN ( - 78 )
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT 95 + - col1 DIV col1 FROM tab0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-4190
SELECT 95 + - col1 / col1 FROM tab0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4191
SELECT ALL * FROM tab2 WHERE - CAST( - col0 AS SIGNED ) >= ( + col1 )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-4191
SELECT ALL * FROM tab2 WHERE - CAST ( - col0 AS INTEGER ) >= ( + col1 )
----
75
67
58

query I rowsort
SELECT DISTINCT 42 + 72 AS col0 FROM tab1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE col2 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE col2 >= ( NULL )
----
0

query I rowsort
SELECT ( 87 ) * - col2 + 55 FROM tab0 AS cor0
----
-4034
-815
-8558

query I rowsort
SELECT 3 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT MIN( + 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT MIN ( + 65 ) FROM tab2 AS cor0
----
65

query III rowsort
SELECT * FROM tab2 WHERE 11 * 48 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 64 * col0 BETWEEN ( + col2 - col1 ) AND - col0 * 84 + + ( 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( col0 ) - - col2 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL NOT IN ( + col1 + - col2 )
----

query I rowsort
SELECT + ( + 0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * 39 FROM tab1 AS cor0
----
1833
195
546

query I rowsort
SELECT + + ( 68 ) AS col0 FROM tab0 cor0
----
68
68
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 58 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT + MAX( ALL 95 ) FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-4205
SELECT + MAX ( ALL 95 ) FROM tab0 cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4206
SELECT ( col2 ) DIV 72 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4206
SELECT ( col2 ) / 72 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + COUNT( * ) * ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4207
SELECT + COUNT ( * ) * ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + - ( ( col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + MAX( - 70 ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4209
SELECT + MAX ( - 70 ) FROM tab2 AS cor0
----
-70

query I rowsort
SELECT col2 * - - col1 * - col0 AS col1 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL MIN( 86 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL MIN ( 86 ) FROM tab0
----
86

query III rowsort
SELECT * FROM tab2 WHERE NOT + 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT 57 * col0 NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT NULL <> ( - 61 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL SUM( - 46 ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL SUM ( - 46 ) FROM tab1
----
-138

query I rowsort
SELECT ( - + 67 ) * col2 AS col2 FROM tab0
----
-3149
-6633
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT 96 * - MIN( - col0 ) * + 32 AS col0 FROM tab0
----
297984

skipif mysql # not compatible
query I rowsort label-4217
SELECT 96 * - MIN ( - col0 ) * + 32 AS col0 FROM tab0
----
297984

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col2 * 76 + 2 FROM tab1 AS cor0
----
4486
5170
7298

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + SUM( - + col0 ) col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4221
SELECT DISTINCT + SUM ( - + col0 ) col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - 48 + - col1 - + ( - col1 ) AS col0 FROM tab2 cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT + 16 DIV - col1 + - ( - col1 ) FROM tab0 AS cor0
----
-15
21
81

skipif mysql # not compatible
query I rowsort label-4223
SELECT + 16 / - col1 + - ( - col1 ) FROM tab0 AS cor0
----
-15
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 16 = col1 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT + MIN( ALL + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - + col1 + col1 BETWEEN 14 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 + 31 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
2377
4959
5056

query I rowsort
SELECT DISTINCT + 94 + - col0 FROM tab1 cor0
----
3
43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT 30 * + SUM( + 37 ) + 71 FROM tab2
----
3401

skipif mysql # not compatible
query I rowsort label-4230
SELECT 30 * + SUM ( + 37 ) + 71 FROM tab2
----
3401

query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND - col0
----

query II rowsort
SELECT col1 * + col1 AS col2, col2 + + + col0 * 31 FROM tab0
----
1
3106
441
2707
6561
512

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT ( + + 23 - col2 * - col1 ) NOT IN ( col1 + - col2 * col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + + col0 <> ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 66 + - - 2 + col2 * - - col2 * + col2 FROM tab0 AS cor0
----
103891
1068
970367

query I rowsort
SELECT + + 93 - col0 * - col0 + + 32 FROM tab0 AS cor0
----
350
7694
9534

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL < ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL col0 + + + 29 * CAST( - 29 AS SIGNED ) * 88 FROM tab2 cor0
----
-73933
-73944
-73962

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL col0 + + + 29 * CAST ( - 29 AS INTEGER ) * 88 FROM tab2 cor0
----
-73933
-73944
-73962

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 0 + + 64 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col2 col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT + 47 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
47
-59
47
-68
47
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 72
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < 48 * + ( - - 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4245
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4245
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT + 71 FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN col1 AND ( - 12 )
----
71
71
71

query I rowsort
SELECT ALL - 39 * 82 FROM tab2 AS cor0
----
-3198
-3198
-3198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 53 + - ( - col1 )
----

query I rowsort
SELECT DISTINCT + - col1 * - 30 AS col1 FROM tab1 AS cor0
----
1410
150
420

query II rowsort
SELECT col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT CAST( NULL AS SIGNED ) / + 65 * + AVG ( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT CAST ( NULL AS INTEGER ) / + 65 * + AVG ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 58 * col2 >= ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4253
SELECT - col0 * - col0, + col0 DIV col1 + col1 AS col0 FROM tab1
----
2601
17
7225
22
8281
48

skipif mysql # not compatible
query II rowsort label-4253
SELECT - col0 * - col0, + col0 / col1 + col1 AS col0 FROM tab1
----
2601
17
7225
22
8281
48

query II rowsort
SELECT ALL + col2 AS col0, 3 + + col2 FROM tab1
----
59
62
68
71
96
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ( - col1 ) DIV - 30 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4255
SELECT ( - col1 ) / - 30 FROM tab0
----
0
0
2

query I rowsort
SELECT - 30 * - - col2 FROM tab2
----
-1200
-1740
-690

query II rowsort
SELECT + col1 AS col2, 53 * col2 AS col1 FROM tab0 AS cor0
----
1
5247
21
530
81
2491

query I rowsort
SELECT - 57 + + 40 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT + 61 + - col2 + 38 + + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
299
3859
99

query I rowsort
SELECT + 66 * + col0 + 97 FROM tab0
----
1087
5839
6499

query I rowsort
SELECT col1 + 56 * col2 FROM tab1
----
3309
3855
5390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 + + + ( + + 42 ) col1 FROM tab1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL + ( ( ( COUNT( * ) ) ) ) FROM tab0 WHERE NOT NULL = + 81 * col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL + ( ( ( COUNT ( * ) ) ) ) FROM tab0 WHERE NOT NULL = + 81 * col2 * + col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4264
SELECT + - col0 FROM tab0 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) ) <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4264
SELECT + - col0 FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS REAL ) ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab0 AS cor0 WHERE ( ( NOT col2 NOT BETWEEN NULL AND + col0 * - 1 - - col2 * - 25 ) )
----

query I rowsort
SELECT DISTINCT + 16 + + - col0 AS col0 FROM tab0 AS cor0
----
-71
-81
1

query II rowsort
SELECT + ( col0 ) AS col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT col1 - col2 * - 33 * 9 FROM tab2 AS cor0
----
11957
17293
6882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + col1 AS col1, ( - 76 ) col1 FROM tab1 AS cor0
----
138
-76
65
-76
90
-76

query I rowsort
SELECT ALL 22 - + col0 AS col2 FROM tab0
----
-65
-75
7

query I rowsort
SELECT ALL + col2 + 62 AS col0 FROM tab0
----
109
161
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT ALL + 45 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL + 45 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 49 + col0 * + - col1 FROM tab2 WHERE + 83 = col0
----

query I rowsort
SELECT DISTINCT 23 - col2 - + 5 * col1 - - col0 FROM tab0
----
-414
-5
16

query I rowsort
SELECT ALL - col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT ALL col2 - 40 DIV col2 AS col0 FROM tab2 AS cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL col2 - 40 / col2 AS col0 FROM tab2 AS cor0
----
22
39
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 * col1 * - - col0 * + col1 + + col0 col2 FROM tab2 AS cor0
----
-22220475
-25044032
-7896590

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / + col0 NOT BETWEEN + col1 AND 79 * + col0 * 63 + 14 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL - CAST( - + ( col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - CAST ( - + ( col0 ) AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 22 * + - 13 FROM tab0
----
-286
-286
-286

query I rowsort
SELECT + + 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT - col0 * + - 78 AS col0 FROM tab0 AS cor0
----
1170
6786
7566

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT ALL 60 DIV 47 + - col2 * + col0 * + + col0 + col2 AS col0 FROM tab2 AS cor0
----
-163799
-326191
-48644

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL 60 / 47 + - col2 * + col0 * + + col0 + col2 AS col0 FROM tab2 AS cor0
----
-163799
-326191
-48644

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT + SUM( DISTINCT - - col1 ) * + 23 AS col1 FROM tab0 AS cor0
----
2369

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) * + 23 AS col1 FROM tab0 AS cor0
----
2369

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 <> ( NULL )
----

query I rowsort
SELECT + - col0 + col2 AS col1 FROM tab2 WHERE NOT ( + 10 ) IS NULL
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - COUNT( * ) + + 40 AS col1 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-4289
SELECT - COUNT ( * ) + + 40 AS col1 FROM tab2
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 80 col2 FROM tab1 WHERE NOT + col1 > col2
----
80

query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 * col1 NOT BETWEEN NULL AND + 94
----

query I rowsort
SELECT DISTINCT col2 * col2 * ( - - col1 ) FROM tab0
----
178929
2100
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT col0 DIV - - 40 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4293
SELECT col0 / - - 40 FROM tab1
----
1
2
2

query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 * - - 94 + - col1 FROM tab0
----
-684
-880
8057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT 13 + + 47 AS col1 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT 46 + + MAX( ALL col2 ) FROM tab0
----
145

skipif mysql # not compatible
query I rowsort label-4297
SELECT 46 + + MAX ( ALL col2 ) FROM tab0
----
145

query I rowsort
SELECT ( + col2 ) + + 64 FROM tab2
----
104
122
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL + 56 - - col1 * + + col2 + + col0 + + CAST( NULL AS SIGNED ) + + + 48 + - 16 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + 56 - - col1 * + + col2 + + col0 + + CAST ( NULL AS INTEGER ) + + + 48 + - 16 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 37 * + col1 BETWEEN NULL AND + col2 AND NOT col0 / col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + 84 + + MIN( DISTINCT - 90 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4301
SELECT + 84 + + MIN ( DISTINCT - 90 ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + 16 FROM tab2 AS cor0 WHERE NULL IS NULL
----
16
16
16

query I rowsort
SELECT DISTINCT col0 + + col1 + - - col1 * 21 FROM tab1 AS cor0
----
1125
195
359

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - + MAX( + 39 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - + MAX ( + 39 ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT ALL + - 23 + + - col0 AS col1 FROM tab1 AS cor0
----
-108
-114
-74

query I rowsort
SELECT DISTINCT 16 FROM tab0 AS cor0 WHERE col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT DISTINCT - ( - 93 ) * + CAST( + col2 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
5492
6371
8942

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT - ( - 93 ) * + CAST ( + col2 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
5492
6371
8942

query II rowsort
SELECT ALL - col0 * - 7 * + - 12 + - 48 AS col0, - col0 * + ( - - col1 ) FROM tab0 AS cor0
----
-1308
-1215
-7356
-1827
-8196
-97

query I rowsort
SELECT DISTINCT col1 * + col0 + 67 + + col2 FROM tab0
----
1329
1904
263

query III rowsort
SELECT * FROM tab1 WHERE + 83 <= + 18 / + col0
----

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 AS col2 FROM tab0 WHERE + col2 * + col2 IS NULL
----

query I rowsort
SELECT + col2 - 60 * + + col0 AS col1 FROM tab1
----
-2964
-5041
-5392

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL - + SUM( DISTINCT col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - + SUM ( DISTINCT col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 40 - col2 AS col0 FROM tab2
----
-18
0
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - + col1, col2 col1 FROM tab0 AS cor0
----
-108
10
-96
47
-98
99

query II rowsort
SELECT 85 AS col2, 26 AS col0 FROM tab0
----
85
26
85
26
85
26

query I rowsort
SELECT ( - - col2 ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT 51 * 32 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT 51 * 32 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 96 + - 89 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 96 + - 89 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT DISTINCT col0 * - ( + 12 ) AS col0, - col2 AS col2 FROM tab1 AS cor0
----
-1020
-59
-1092
-68
-612
-96

query II rowsort
SELECT DISTINCT + - col2, + col2 AS col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 18 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 18 = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT + COUNT( * ) AS col1, COUNT( * ) col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4324
SELECT + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT DISTINCT - + CAST( 39 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - + CAST ( 39 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + SUM( 49 ) FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4326
SELECT + SUM ( 49 ) FROM tab1 AS cor0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT ALL + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 24 * - + ( - ( col0 ) ) AS col1 FROM tab0
----
2088
2328
360

query I rowsort
SELECT 90 * - col2 AS col1 FROM tab2
----
-2070
-3600
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT + 72 * + + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4330
SELECT + 72 * + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 * - col1 col0 FROM tab2 WHERE NOT - 49 * - - col1 < - col2
----

query I rowsort
SELECT DISTINCT - 13 * - col0 FROM tab2
----
598
832
975

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT - MAX( + + 63 ) FROM tab2 WHERE NOT NULL NOT IN ( + - 83, - col1, 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - MAX ( + + 63 ) FROM tab2 WHERE NOT NULL NOT IN ( + - 83, - col1, 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT 31 * + + SUM( ALL - - 73 ) FROM tab2
----
6789

skipif mysql # not compatible
query I rowsort label-4334
SELECT 31 * + + SUM ( ALL - - 73 ) FROM tab2
----
6789

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( NULL ) OR NOT + col0 < NULL
----

query I rowsort
SELECT col0 * 66 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE + 17 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT + 87 IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 * col2 + col1 AS col2 FROM tab0 AS cor0
----
100
231
3888

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <= + 68
----

query II rowsort
SELECT col1 + ( col2 ), col2 AS col0 FROM tab1
----
110
96
115
68
64
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 21 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 26 * - - 81 FROM tab1 cor0
----
-2106
-2106
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL MAX( + + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL MAX ( + + col0 ) AS col2 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 - - - 37 FROM tab0 AS cor0
----
-118
-38
-58

query I rowsort
SELECT - col2 - - col1 - col0 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT - col0 * + 10 * - col0 - - 17 FROM tab1 AS cor0
----
26027
72267
82827

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT col1 - - 98 DIV + col1 AS col0 FROM tab1 AS cor0
----
21
24
49

skipif mysql # not compatible
query I rowsort label-4350
SELECT col1 - - 98 / + col1 AS col0 FROM tab1 AS cor0
----
21
24
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT col0 * 26 * + - CAST( - col0 AS SIGNED ) + - + col1 AS col1 FROM tab1 AS cor0
----
187845
215259
67612

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT col0 * 26 * + - CAST ( - col0 AS INTEGER ) + - + col1 AS col1 FROM tab1 AS cor0
----
187845
215259
67612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT ALL col2 + - col0 * - col1 + + col0 + - - CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL col2 + - col0 * - col1 + + col0 + - - CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - COUNT( * ) * - + 43 + + - 21 AS col0 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-4353
SELECT - COUNT ( * ) * - + 43 + + - 21 AS col0 FROM tab1
----
108

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 41 AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4355
SELECT ALL * FROM tab1 WHERE - col1 * + ( - ( + + col2 ) ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4355
SELECT ALL * FROM tab1 WHERE - col1 * + ( - ( + + col2 ) ) < - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 AS col2, + col1 * + 29 col1 FROM tab1 AS cor0
----
-6
1363
-6
145
-6
406

query I rowsort
SELECT - col1 * 93 + + col1 FROM tab2 AS cor0
----
-4692
-6164
-7084

onlyif mysql # DIV for integer division: 
query II rowsort label-4358
SELECT - col1 DIV + + 43 AS col0, - 14 FROM tab1 AS cor0
----
-1
-14
0
-14
0
-14

skipif mysql # not compatible
query II rowsort label-4358
SELECT - col1 / + + 43 AS col0, - 14 FROM tab1 AS cor0
----
-1
-14
0
-14
0
-14

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 79 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - ( - - ( + col1 ) ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT SUM( ALL - + 28 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT SUM ( ALL - + 28 ) FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT - - ( - + COUNT( * ) ) col2, MAX( + - col2 ) AS col2 FROM tab2 AS cor0
----
-3
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4362
SELECT - - ( - + COUNT ( * ) ) col2, MAX ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-3
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT - - COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + col2 + + 50 AS col2 FROM tab1 AS cor0
----
109
118
146

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 + + col2 * + + col2 FROM tab0 AS cor0
----
110
2256
9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 56 col2 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT col1 + + - col2 + + + col0 * - - col1 FROM tab1
----
371
4256
632

query I rowsort
SELECT col0 * col2 * col1 AS col2 FROM tab0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col2 * - + 88 AS col0, - 48 col1 FROM tab2
----
-140800
-48
-296032
-48
-46552
-48

query I rowsort
SELECT + 40 + 89 FROM tab0
----
129
129
129

query I rowsort
SELECT DISTINCT col2 - 1 FROM tab0
----
46
9
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT + + CAST( NULL AS SIGNED ) + + + COUNT( * ) + 52 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + 52 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT + COUNT( * ) - COUNT( * ) * + + 26 AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) * + + 26 AS col0 FROM tab0 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT 93 * - - CAST( NULL AS SIGNED ) * - + 79 + + - 74 * + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT 93 * - - CAST ( NULL AS INTEGER ) * - + 79 + + - 74 * + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col2 + + 39 NOT BETWEEN + 12 AND NULL
----

query I rowsort
SELECT - col2 + - 66 FROM tab0 AS cor0
----
-113
-165
-76

query II rowsort
SELECT DISTINCT + 50 * + col1 * ( - 21 ), + 3 * - col0 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-1050
-291
-22050
-5481
-85050
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - 68 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - 68 AND NULL
----
0

query I rowsort
SELECT 32 - 43 * + 95 * col2 AS col1 FROM tab1 WHERE NOT NULL < + + col2 + - col0
----

query II rowsort
SELECT - 62, + col2 AS col1 FROM tab0
----
-62
10
-62
47
-62
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - MAX( ALL + - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4382
SELECT - MAX ( ALL + - col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT + MAX( + - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4383
SELECT + MAX ( + - col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - MIN( - 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4384
SELECT - MIN ( - 27 ) FROM tab2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT DISTINCT col0 DIV - 84 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT col0 / - 84 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col2, col1 + + 33 AS col0 FROM tab0
----
-10
54
-47
114
-99
34

query I rowsort
SELECT DISTINCT - ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1 cor0
----
-32

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 9 >= - - col1
----
51
14
96
91
47
68

query I rowsort
SELECT + 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, 62 col1 FROM tab0
----
-1
62
-21
62
-81
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 = col2 * 49 / - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT - - ( COUNT( * ) ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4395
SELECT - - ( COUNT ( * ) ) col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL + SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + - 91 col1 FROM tab1 cor0
----
-150
-159
-187

query I rowsort
SELECT DISTINCT 78 + 24 FROM tab1 AS cor0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT SUM( + + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4399
SELECT SUM ( + + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
227

query I rowsort
SELECT 21 * col1 + + 51 AS col0 FROM tab1
----
1038
156
345

query I rowsort
SELECT ALL - 65 AS col2 FROM tab0 WHERE NOT ( NULL ) <> + 7 AND NOT 44 + - 25 * + - 23 BETWEEN - col0 AND - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT COUNT( ALL + col0 ) + - + COUNT( ALL + col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( ALL + col0 ) + - + COUNT ( ALL + col1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT - ( - + col2 ) + + 96 AS col0 FROM tab0 AS cor0
----
106
143
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - 19 + - COUNT( * ) AS col2 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - 19 + - COUNT ( * ) AS col2 FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT ALL CAST( + col1 AS SIGNED ) AS col1 FROM tab0 WHERE + col2 + + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 WHERE + col2 + + + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4406
SELECT - 84 * + - col0 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT - 84 * + - col0 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL + 32 * COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL + 32 * COUNT ( * ) FROM tab2 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 99 * + 26 AS col2 FROM tab1 AS cor0
----
-2574
-2574
-2574

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 < ( + 0 * col2 )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + - col0 / 37 + + 92 >= NULL
----

query I rowsort
SELECT + + col0 * - - 22 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT MAX( DISTINCT col0 ) * - - COUNT( * ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT MAX ( DISTINCT col0 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
273

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 9 IS NOT NULL
----

query I rowsort
SELECT 29 * ( + col1 ) FROM tab2 AS cor0
----
1479
1943
2233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4417
SELECT ALL - col2 DIV col1 AS col1, + col1 - - - 37 AS col2 FROM tab2
----
0
14
0
30
0
40

skipif mysql # not compatible
query II rowsort label-4417
SELECT ALL - col2 / col1 AS col1, + col1 - - - 37 AS col2 FROM tab2
----
0
14
0
30
0
40

query I rowsort
SELECT 46 AS col0 FROM tab1 WHERE NOT col0 * + col0 + col2 * + 23 + + 56 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT 68 DIV 66 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4419
SELECT 68 / 66 AS col2 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 64 IN ( - - 98 - - + col2, col0, 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT - COUNT( * ) * - 6 col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4421
SELECT DISTINCT - COUNT ( * ) * - 6 col2 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT ALL - 99 DIV - 56 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - 99 / - 56 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( + 70 ) / - ( + col0 ) * col1 + + 73 IS NOT NULL
----

query II rowsort
SELECT + col0, - col1 + + col1 AS col2 FROM tab0
----
15
0
87
0
97
0

query II rowsort
SELECT ALL col2, - 58 FROM tab1
----
59
-58
68
-58
96
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT + SUM( + + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + SUM ( + + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT 59 + + COUNT( * ) - 33 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4427
SELECT 59 + + COUNT ( * ) - 33 FROM tab2 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 26 = col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * + + col2 - + col1 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL + 90 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + 90 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT 94 + + col1 AS col2 FROM tab1
----
108
141
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT - col2 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) + + col1 + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4432
SELECT - col2 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) + + col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 94 * - 33 AS col0 FROM tab1 WHERE - col0 / col0 IS NOT NULL
----
-3102
-3102
-3102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT CAST( NULL AS SIGNED ) * - - 38 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4434
SELECT CAST ( NULL AS INTEGER ) * - - 38 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT - COUNT( * ) - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) FROM tab2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4436
SELECT ALL - - COUNT( * ) * + + ( + - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) ) AS col2, ( 21 ) AS col1 FROM tab0 AS cor0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-4436
SELECT ALL - - COUNT ( * ) * + + ( + - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) AS col2, ( 21 ) AS col1 FROM tab0 AS cor0
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + COUNT( * ) * + + ( - 71 ) FROM tab2, tab2 AS cor0
----
-639

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + COUNT ( * ) * + + ( - 71 ) FROM tab2, tab2 AS cor0
----
-639

query I rowsort
SELECT DISTINCT - ( + 69 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL + 78 + - 70 + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + 78 + - 70 + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17

query II rowsort
SELECT col0 + + col1 + + 48 AS col0, + 33 FROM tab0
----
144
33
146
33
156
33

query I rowsort
SELECT - 0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4443
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col1 / - 98 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + - 22 FROM tab0 AS cor0 WHERE NOT 84 IS NULL
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * + + 33 * - + col2 * + + 30 * + - col0 col1 FROM tab0
----
23032350
28422900
313730010

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + SUM( DISTINCT - - 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4447
SELECT + SUM ( DISTINCT - - 11 ) FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT + SUM( - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + SUM ( - col0 ) AS col2 FROM tab2
----
-185

query II rowsort
SELECT + col0 AS col1, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT + col2 AS col2, + 16 FROM tab2
----
23
16
40
16
58
16

query I rowsort
SELECT + + 8 FROM tab0 WHERE NOT - col1 < - col0
----
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT - 46 DIV - - col1 AS col2 FROM tab1
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 46 / - - col1 AS col2 FROM tab1
----
-3
-9
0

query I rowsort
SELECT ALL 86 * + col1 FROM tab0
----
1806
6966
86

query I rowsort
SELECT DISTINCT 1 FROM tab0 WHERE col2 IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT ALL + COUNT( * ) AS col0, 89 FROM tab0 cor0
----
3
89

skipif mysql # not compatible
query II rowsort label-4455
SELECT ALL + COUNT ( * ) AS col0, 89 FROM tab0 cor0
----
3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL + SUM( DISTINCT + + 82 ) AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + SUM ( DISTINCT + + 82 ) AS col2 FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - 1 + + COUNT( * ) AS col1 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - 1 + + COUNT ( * ) AS col1 FROM tab1 cor0
----
2

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT - MIN( 57 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4459
SELECT - MIN ( 57 ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4460
SELECT DISTINCT - + col0 + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - + col0 + - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + + col0 AS col1, + 51 - + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
0
64
-26
75
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 * + - col2 + - + col0 AS col2, ( - 58 ) col0 FROM tab0 AS cor0
----
1207
-58
173
-58
2477
-58

query I rowsort
SELECT - 5 + 11 FROM tab1
----
6
6
6

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 30 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT 32 * - MAX( ALL + 13 ) FROM tab2
----
-416

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT 32 * - MAX ( ALL + 13 ) FROM tab2
----
-416

query I rowsort
SELECT DISTINCT + + 53 FROM tab0 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + COUNT( * ) * + 53 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4467
SELECT + COUNT ( * ) * + 53 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 38 + - col2 AS col0 FROM tab2
----
-2
-20
15

query I rowsort
SELECT DISTINCT col2 * - - col2 + + + 57 AS col2 FROM tab2
----
1657
3421
586

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 - - col2 + + 84 * - col1 * 50 * + col2 AS col2 FROM tab1
----
-1239000
-13423200
-5644800

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) * + + 51 / - col1 NOT BETWEEN - + ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4474
SELECT COUNT( * ) - COUNT( * ) AS col0, COUNT( * ) FROM tab1 WHERE - 90 NOT IN ( - ( + 37 ) * - ( - col2 ) - + - CAST( col0 AS DECIMAL ), col0, - col2 )
----
0
3

skipif mysql # not compatible
query II rowsort label-4474
SELECT COUNT ( * ) - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 WHERE - 90 NOT IN ( - ( + 37 ) * - ( - col2 ) - + - CAST ( col0 AS REAL ), col0, - col2 )
----
0
3

query I rowsort
SELECT ALL + col1 - 69 AS col1 FROM tab2 cor0
----
-18
-2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - + COUNT( * ) + 36 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4476
SELECT - + COUNT ( * ) + 36 FROM tab1 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT - + col0 * 57 * + + col2 DIV col2 * 16 FROM tab0 AS cor0
----
-13680
-79344
-88464

skipif mysql # not compatible
query I rowsort label-4477
SELECT - + col0 * 57 * + + col2 / col2 * 16 FROM tab0 AS cor0
----
-13680
-79344
-88464

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL - 58 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL - 58 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4479
SELECT + 22 DIV - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4479
SELECT + 22 / - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4480
SELECT ALL + - CAST( NULL AS SIGNED ) + + 83 + - COUNT( DISTINCT + 53 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 83 + - COUNT ( DISTINCT + 53 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4481
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE ( 9 + + CAST( NULL AS SIGNED ) ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-4481
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE ( 9 + + CAST ( NULL AS INTEGER ) ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT + col1 * - col1 AS col2 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL + col0 * - col0 + - - ( - 43 ) FROM tab2 AS cor0
----
-2159
-4139
-5668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col1, 49 col1 FROM tab2 AS cor0
----
17
49
17
49
17
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * - 5 - + col2 col2 FROM tab2 AS cor0
----
-293
-310
-328

query II rowsort
SELECT ALL - col2 - col1 AS col0, + 25 / - - col2 AS col1 FROM tab1 AS cor0 WHERE ( + 59 IS NULL )
----

query I rowsort
SELECT - + 9 * 42 * col1 AS col0 FROM tab2 AS cor0
----
-19278
-25326
-29106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 19 ) col1 FROM tab0
----
19
19
19

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL >= col0
----

query I rowsort
SELECT ALL ( col1 ) - + - 29 FROM tab2 WHERE + 66 + col0 + - + col0 IS NOT NULL
----
106
80
96

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4494
SELECT ALL + ( + ( SUM( - + col0 ) ) ) DIV 88 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + ( + ( SUM ( - + col0 ) ) ) / 88 AS col0 FROM tab1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT + col1 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT + col1 / + + col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ( - 2 ), col1 FROM tab0
----
-2
1
-2
21
-2
81

query II rowsort
SELECT 15 * - col2, col0 FROM tab0 AS cor0
----
-1485
97
-150
87
-705
15

query I rowsort
SELECT + - ( - 44 ) AS col1 FROM tab1 AS cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab0 cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + - col2 col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT 29 * col0 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT col2 + - - 3 FROM tab1
----
62
71
99

query I rowsort
SELECT + + 13 + - + 49 AS col0 FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT ALL MAX( + CAST( + + 21 AS SIGNED ) ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL MAX ( + CAST ( + + 21 AS INTEGER ) ) FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL + 50 + + 81 AS col2 FROM tab2 cor0
----
131
131
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT MIN( - - col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4506
SELECT MIN ( - - col1 ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ( + ( - SUM( DISTINCT - - col0 ) ) ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4507
SELECT ( + ( - SUM ( DISTINCT - - col0 ) ) ) col2 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + MIN( DISTINCT - 0 ) - - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4508
SELECT + MIN ( DISTINCT - 0 ) - - COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT col0 - col0 - col0 * + 85 + + - col1 AS col1 FROM tab2
----
-3961
-5517
-6442

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL - - MIN( - 33 ) AS col1 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - - MIN ( - 33 ) AS col1 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT DISTINCT col0 * - - col1 - + 29 FROM tab0 AS cor0
----
1186
1798
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT + SUM( + 52 ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + SUM ( + 52 ) FROM tab2 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4513
SELECT * FROM tab1 AS cor0 WHERE - 12 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4513
SELECT * FROM tab1 AS cor0 WHERE - 12 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 97 - + 30 FROM tab0 cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL COUNT( 72 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL COUNT ( 72 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col2 * - + col2 * + + col1 FROM tab2 WHERE NOT - - col1 IS NULL
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4517
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 80 AS col2 FROM tab1
----
NULL
80
NULL
80
NULL
80

skipif mysql # not compatible
query II rowsort label-4517
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 80 AS col2 FROM tab1
----
NULL
80
NULL
80
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT - ( + + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4519
SELECT ALL - + CAST( + col1 AS SIGNED ) * - 44 AS col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + - col0 IS NULL
----
3564
44
924

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - + CAST ( + col1 AS INTEGER ) * - 44 AS col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) + - col0 IS NULL
----
3564
44
924

query I rowsort
SELECT ALL ( + col1 ) * + 88 FROM tab1 AS cor0
----
1232
4136
440

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT - COUNT( + - 98 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - COUNT ( + - 98 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 54 ) = 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 AS col1, - 15 AS col0 FROM tab0
----
-15
-15
-87
-15
-97
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 55 <> col1
----

query I rowsort
SELECT ALL + col2 * + 78 FROM tab1
----
4602
5304
7488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT + CAST( + + 78 AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-4526
SELECT + CAST ( + + 78 AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0
----
234

query I rowsort
SELECT ( - ( - col2 ) ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4528
SELECT ALL - MIN( + col1 ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - MIN ( + col1 ) * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + 26 * + + COUNT( * ) AS col2 FROM tab2 WHERE - 35 <= col2 * col0
----
78

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + 26 * + + COUNT ( * ) AS col2 FROM tab2 WHERE - 35 <= col2 * col0
----
78

query II rowsort
SELECT DISTINCT - 14, + col2 AS col2 FROM tab1 AS cor0
----
-14
59
-14
68
-14
96

query II rowsort
SELECT ALL - col1, col0 AS col1 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT + + 86 + + col2 FROM tab1 AS cor0
----
145
154
182

query II rowsort
SELECT ( - col2 ), 44 AS col2 FROM tab2
----
-23
44
-40
44
-58
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT DISTINCT - + SUM( + 37 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-333

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT - + SUM ( + 37 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE 17 + - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4535
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE 17 + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT DISTINCT MAX( + 1 ), + 6 + + - 29 AS col0 FROM tab2 AS cor0
----
1
-23

skipif mysql # not compatible
query II rowsort label-4536
SELECT DISTINCT MAX ( + 1 ), + 6 + + - 29 AS col0 FROM tab2 AS cor0
----
1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - + ( + SUM( DISTINCT + col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4537
SELECT - + ( + SUM ( DISTINCT + col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 WHERE ( + 45 ) IS NULL
----

query I rowsort
SELECT - 28 - + - col2 FROM tab1 AS cor0
----
31
40
68

query I rowsort
SELECT + + 78 - col0 + col0 + - 95 * + col2 * + + col1 FROM tab1 AS cor0
----
-127602
-27947
-303542

query I rowsort
SELECT DISTINCT 8 + - + col0 FROM tab2 AS cor0
----
-38
-56
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - + MIN( + col0 ) - + - ( ( + + 98 ) ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4542
SELECT - + MIN ( + col0 ) - + - ( ( + + 98 ) ) FROM tab0 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 + - 9 + col2 * + col0 col2 FROM tab0 AS cor0
----
568
830
9494

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4544
SELECT DISTINCT * FROM tab1 WHERE + + 48 * - col2 + + col2 + + 16 NOT IN ( - col2 * + - 54, ( col0 ) + 79, - - 86, + col2 * CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-4544
SELECT DISTINCT * FROM tab1 WHERE + + 48 * - col2 + + col2 + + 16 NOT IN ( - col2 * + - 54, ( col0 ) + 79, - - 86, + col2 * CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT 95 + + 8 AS col0 FROM tab2
----
103
103
103

query III rowsort
SELECT * FROM tab1 WHERE col2 / - 84 IS NULL
----

query I rowsort
SELECT ALL col1 * + + 2 - - col0 AS col0 FROM tab0
----
129
177
99

query I rowsort
SELECT ALL + ( col0 ) - + - col0 + col1 FROM tab0
----
111
195
195

query I rowsort
SELECT ALL - col2 + - + col2 AS col2 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT MIN( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4550
SELECT DISTINCT MIN ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - + MIN( + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4551
SELECT - + MIN ( + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - 99 * - col2 FROM tab1 AS cor0
----
5841
6732
9504

query I rowsort
SELECT ALL + 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT + col1 DIV + - 8 FROM tab0
----
-10
-2
0

skipif mysql # not compatible
query I rowsort label-4554
SELECT + col1 / + - 8 FROM tab0
----
-10
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col2 + - 24
----

query I rowsort
SELECT + + ( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 66 * - - col2 FROM tab1 AS cor0
----
3894
4488
6336

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL - + 98 + + 13 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL - + 98 + + 13 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 1 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( - col0 ) + - col2 FROM tab2 AS cor0
----
-104
-133
-69

query II rowsort
SELECT ALL + + col0, + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - - col1 + + col1 - + 94 AS col1 FROM tab0
----
-42
115
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = ( + - col1 ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT + - 99 FROM tab0 WHERE NOT 4 * + 21 * + CAST( NULL AS SIGNED ) + 6 + - + col1 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4565
SELECT + - 99 FROM tab0 WHERE NOT 4 * + 21 * + CAST ( NULL AS INTEGER ) + 6 + - + col1 * - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4566
SELECT ( MAX( DISTINCT + col0 ) ) DIV - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4566
SELECT ( MAX ( DISTINCT + col0 ) ) / - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-30

query II rowsort
SELECT DISTINCT - + col0 + col1, + 25 FROM tab2 AS cor0 WHERE ( ( NOT col2 + + ( + col2 ) - + col0 + - col2 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < - + ( - col2 ) * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT 51 + - - MIN( - col2 ) + + COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT 51 + - - MIN ( - col2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT + col2 * - col0 + - + col2 AS col2 FROM tab0
----
-752
-880
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL >= + ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL >= + ( + col2 )
----

query I rowsort
SELECT DISTINCT + - col1 * - col2 * + col2 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 2 * - col1 + + col0 * - - 10 AND col0 / - col2 + col2
----

query I rowsort
SELECT ALL - col2 + 82 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT DISTINCT + COUNT( DISTINCT - 61 ), 18 AS col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
1
18

skipif mysql # not compatible
query II rowsort label-4575
SELECT DISTINCT + COUNT ( DISTINCT - 61 ), 18 AS col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
1
18

query III rowsort
SELECT col1 * - col1 AS col1, + col2, + - col1 AS col0 FROM tab0
----
9 values hashing to f8e5bb87baceb44a6a45d18bb7375c0e

query I rowsort
SELECT DISTINCT - col1 * + + ( + col2 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - 36 FROM tab0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 * - 71 + + 16 > - ( - 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + col2 FROM tab1 AS cor0 WHERE col2 < 95
----
295
3196

query I rowsort
SELECT 96 * + 25 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 69 )
----

query I rowsort
SELECT ALL + + ( + 8 ) AS col1 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4583
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT ALL + ( col1 ) DIV - col2 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + ( col1 ) / - col2 + + col2 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 97 ) NOT BETWEEN - ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 79 * + + COUNT( + ( + 93 ) ) * COUNT( * ) FROM tab1
----
711

skipif mysql # not compatible
query I rowsort label-4586
SELECT 79 * + + COUNT ( + ( + 93 ) ) * COUNT ( * ) FROM tab1
----
711

query I rowsort
SELECT DISTINCT ( - - col2 ) * - col0 - 69 - col1 FROM tab1
----
-4979
-5089
-6304

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 65
----

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE ( NOT col2 IS NOT NULL )
----

query I rowsort
SELECT ALL 77 * + 17 FROM tab0 AS cor0
----
1309
1309
1309

onlyif mysql # DIV for integer division: 
query II rowsort label-4591
SELECT DISTINCT col0 * - col2 + - 71 DIV - col1 AS col2, - 74 FROM tab0 cor0
----
-705
-74
-867
-74
-9532
-74

skipif mysql # not compatible
query II rowsort label-4591
SELECT DISTINCT col0 * - col2 + - 71 / - col1 AS col2, - 74 FROM tab0 cor0
----
-705
-74
-867
-74
-9532
-74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND ( - col1 )
----

query I rowsort
SELECT + ( 39 ) AS col2 FROM tab0 cor0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT - CAST( NULL AS SIGNED ) * + 41 - + col2 col2 FROM tab0 AS cor0 WHERE NOT + col0 <> ( - 12 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4595
SELECT - CAST ( NULL AS INTEGER ) * + 41 - + col2 col2 FROM tab0 AS cor0 WHERE NOT + col0 <> ( - 12 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col1 + + + ( + 91 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT col1 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT col1 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + + 8 * - col2 AS col2 FROM tab2
----
-133
-243
-397

query I rowsort
SELECT col1 * 41 * col0 AS col0 FROM tab0
----
3977
49815
74907

query I rowsort
SELECT ALL - - col2 + - 61 FROM tab1 WHERE NOT + - 68 * + - col2 IS NULL
----
-2
35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT MAX( - 26 ) AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT MAX ( - 26 ) AS col2 FROM tab2
----
-26

query I rowsort
SELECT ALL + - col2 + - + 29 + col1 + - 46 * - 66 AS col1 FROM tab1 cor0
----
2925
2953
2986

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT 58 + + - MIN( + - 68 ) AS col1 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4603
SELECT 58 + + - MIN ( + - 68 ) AS col1 FROM tab0 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT + + CAST( AVG ( DISTINCT 71 ) AS SIGNED ) * - 78 - + 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5552

skipif mysql # not compatible
query I rowsort label-4604
SELECT + + CAST ( AVG ( DISTINCT 71 ) AS INTEGER ) * - 78 - + 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5552

query I rowsort
SELECT DISTINCT + 19 + 67 + - - ( - col1 ) FROM tab1
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT MIN( DISTINCT + 19 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-4606
SELECT MIN ( DISTINCT + 19 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT COUNT( * ) * + + 67 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT COUNT ( * ) * + + 67 FROM tab2 AS cor0
----
201

query I rowsort
SELECT ALL - col0 * - ( + + 1 ) - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 51 < - + ( + - col0 ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - MAX( DISTINCT - col0 ) - + SUM( - + col1 ) AS col0 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4609
SELECT - MAX ( DISTINCT - col0 ) - + SUM ( - + col1 ) AS col0 FROM tab1 AS cor0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT + 56 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT + 56 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 9 * - + col1 FROM tab1 AS cor0
----
126
423
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 + + - col2 * col1 * col1 col0 FROM tab1 AS cor0
----
-150271
-1534
-18875

query I rowsort
SELECT DISTINCT col2 * - col0 + + col2 - + col2 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-2254
-5664
-8253

query I rowsort
SELECT - col1 + - col1 - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-148
-209
-218

query II rowsort
SELECT ALL - col1, - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-51
-529
-67
-3364
-77
-1600

query I rowsort
SELECT + - col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT MAX( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-4617
SELECT MAX ( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4618
SELECT DISTINCT - 86 FROM tab2 WHERE NOT col0 / CAST( NULL AS DECIMAL ) - + col1 <> col0
----

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT - 86 FROM tab2 WHERE NOT col0 / CAST ( NULL AS REAL ) - + col1 <> col0
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT BETWEEN - col1 AND - + ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 86 ) * - + 89 + + col0 col0, col1 AS col1 FROM tab2
----
7700
51
7718
77
7729
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4622
SELECT DISTINCT 91 * + MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT 91 * + MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 15 * + col2 AS col2 FROM tab2
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT + 82 * + COUNT( - col1 ) AS col1 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + 82 * + COUNT ( - col1 ) AS col1 FROM tab1
----
246

query I rowsort
SELECT ALL - ( 58 ) * col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT DISTINCT - - MAX( 86 ), - MIN( ALL - 52 ) AS col0 FROM tab1 AS cor0
----
86
52

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT - - MAX ( 86 ), - MIN ( ALL - 52 ) AS col0 FROM tab1 AS cor0
----
86
52

query I rowsort
SELECT ALL + ( + 19 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT MAX( ALL + col2 ) * + + 14 col1 FROM tab2
----
812

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4629
SELECT DISTINCT MAX ( ALL + col2 ) * + + 14 col1 FROM tab2
----
812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4630
SELECT + 19 * + - ( + SUM( ALL + - col1 ) ) / - - 40 col2 FROM tab2 AS cor0 WHERE NOT - 60 + 24 + - col1 - - 69 + - - 58 * + col0 * 6 - - CAST( NULL AS SIGNED ) BETWEEN + col1 * + + col2 + col0 AND - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4630
SELECT + 19 * + - ( + SUM ( ALL + - col1 ) ) / - - 40 col2 FROM tab2 AS cor0 WHERE NOT - 60 + 24 + - col1 - - 69 + - - 58 * + col0 * 6 - - CAST ( NULL AS INTEGER ) BETWEEN + col1 * + + col2 + col0 AND - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT ALL - + MAX( ALL col1 ) * + 70 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) BETWEEN NULL AND ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - + MAX ( ALL col1 ) * + 70 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) BETWEEN NULL AND ( - - col0 )
----
NULL

query I rowsort
SELECT - col0 + - ( + ( - + col0 ) ) + - 94 * + col0 AS col2 FROM tab1 AS cor0
----
-4794
-7990
-8554

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 <= 37 * + col0 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + + 50 + + + col1 + 31 FROM tab0 AS cor0
----
-15
147
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col2, + col2 * - col0 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
-4896
47
-6188
5
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT - - 5 + ( + COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - - 5 + ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + col0 <> ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * 30 FROM tab2
----
-1200
-1740
-690

query III rowsort
SELECT * FROM tab0 WHERE - 52 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT ALL + col2 * + + col2 * - col0 + + col2 DIV + 81 FROM tab2 WHERE NULL IS NULL
----
-102400
-24334
-252300

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + col2 * + + col2 * - col0 + + col2 / + 81 FROM tab2 WHERE NULL IS NULL
----
-102400
-24334
-252300

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 97 * 96 IS NOT NULL
----

query II rowsort
SELECT 83 AS col2, col1 AS col2 FROM tab0
----
83
1
83
21
83
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT + col2 DIV - - col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4643
SELECT + col2 / - - col1 AS col0 FROM tab1
----
1
11
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT - ( + + col2 ) DIV - ( + col2 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - ( + + col2 ) / - ( + col2 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + SUM( ALL + - col0 ) * + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-4646
SELECT + SUM ( ALL + - col0 ) * + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT + MAX( - + CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4647
SELECT + MAX ( - + CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * - - ( + 47 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 98 - col0 * 97 AS col2 FROM tab2
----
-4364
-6110
-7177

query I rowsort
SELECT 10 * col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( + col0 * col0 ) AND 63
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 * 74 + 80 NOT BETWEEN - 14 AND 40
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT col2 * 69 <> + 2 * - col2 + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT DISTINCT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - 23 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 23 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 74 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL COUNT( * ) + COUNT( * ) * + 72 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL COUNT ( * ) + COUNT ( * ) * + 72 FROM tab0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT ALL + col2 DIV 48 FROM tab2 WHERE - col0 * col0 + col0 < 69 DIV - 94
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + col2 / 48 FROM tab2 WHERE - col0 * col0 + col0 < 69 / - 94
----
0
0
1

query I rowsort
SELECT - ( + col1 ) / - 87 + - col0 FROM tab2 WHERE NOT col0 NOT BETWEEN ( 64 ) AND NULL
----

query I rowsort
SELECT ( + 59 ) * + col0 FROM tab1
----
3009
5015
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ( COUNT( * ) ) * 84 col0 FROM tab0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4659
SELECT ( COUNT ( * ) ) * 84 col0 FROM tab0
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT ALL col0 DIV - col2 col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4660
SELECT ALL col0 / - col2 col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4661
SELECT ALL + 13 DIV COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 13 / COUNT ( * ) FROM tab1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT ALL + 44 DIV col1 col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4662
SELECT ALL + 44 / col1 col1 FROM tab1
----
0
3
8

query I rowsort
SELECT ALL col2 + 32 FROM tab1
----
100
128
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE ( + 5 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( col0 ) ) col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - col1 + - ( col2 ) AS col1 FROM tab2 WHERE NOT - col1 + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + COUNT( ALL - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + COUNT ( ALL - col1 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE + 17 IS NOT NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + 69 * 64 AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col1 FROM tab1 WHERE NULL BETWEEN ( 9 ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT + col0 DIV col1 + 65 FROM tab0
----
162
65
69

skipif mysql # not compatible
query I rowsort label-4672
SELECT + col0 / col1 + 65 FROM tab0
----
162
65
69

query I rowsort
SELECT ( 41 ) AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
41
41
41

query I rowsort
SELECT ALL - 33 + - col2 AS col0 FROM tab2
----
-56
-73
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT - ( + COUNT( DISTINCT - 34 ) ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4675
SELECT - ( + COUNT ( DISTINCT - 34 ) ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT + MAX( DISTINCT col2 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT + MAX ( DISTINCT col2 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( - col0 ) >= col1 + + col1
----

query I rowsort
SELECT DISTINCT + 43 FROM tab1 WHERE ( - col0 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT - MAX( ALL col2 ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT - MAX ( ALL col2 ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL < + col2
----
0

skipif mysql # not compatible
query I rowsort label-4680
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL < + col2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN - 69 * - 34 AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT ALL COUNT( * ) + - 45 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL COUNT ( * ) + - 45 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - 16 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-16
-16
-16

query I rowsort
SELECT ALL + col2 * 77 FROM tab0 AS cor0
----
3619
7623
770

query I rowsort
SELECT 55 FROM tab2 cor0 WHERE NOT col2 > col1 + 95 * 32
----
55
55
55

query I rowsort
SELECT ALL col2 * col2 + - 80 FROM tab0
----
20
2129
9721

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4687
SELECT 61 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT 61 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 18 * col0 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * 44 ) > - 78 * col1
----
97
1
99

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( + col1 + 18 ) > + col0
----
1
21

query I rowsort
SELECT - ( + col1 ) * - col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT DISTINCT COUNT( * ) DIV COUNT( - col1 ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT COUNT ( * ) / COUNT ( - col1 ) AS col1 FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( + 71 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 23 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
23

query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - 43 + + 48 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT + - ( + 11 ) FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( - col1 * col1 ) IN ( - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT + - MIN( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4700
SELECT + - MIN ( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + 91 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + + 22 FROM tab1
----
-25
17
8

query I rowsort
SELECT DISTINCT - 48 + - 43 FROM tab2
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 + - col2 col2 FROM tab1
----
-44
-53
-81

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN NULL AND + col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4706
SELECT 44 * - ( + CAST( - col2 AS SIGNED ) ) + - 21 DIV col1 AS col1 FROM tab2
----
1012
1760
2552

skipif mysql # not compatible
query I rowsort label-4706
SELECT 44 * - ( + CAST ( - col2 AS INTEGER ) ) + - 21 / col1 AS col1 FROM tab2
----
1012
1760
2552

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) * + 74 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT DISTINCT 93 DIV + COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT 93 / + COUNT ( * ) FROM tab1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT ALL + col1 DIV 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + col1 / 90 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 13 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4712
SELECT * FROM tab1 AS cor0 WHERE + col2 * ( CAST( 47 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4712
SELECT * FROM tab1 AS cor0 WHERE + col2 * ( CAST ( 47 AS INTEGER ) ) = NULL
----

query I rowsort
SELECT ALL - 48 FROM tab2 WHERE NOT ( NOT ( - col0 + - col0 * col1 ) > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - MAX( ALL 84 ) + + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-75

skipif mysql # not compatible
query I rowsort label-4714
SELECT - MAX ( ALL 84 ) + + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT - COUNT( * ) DIV + 21 FROM tab2 WHERE NOT - 13 NOT IN ( 92 )
----
0

skipif mysql # not compatible
query I rowsort label-4716
SELECT - COUNT ( * ) / + 21 FROM tab2 WHERE NOT - 13 NOT IN ( 92 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col0 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 25 AS col2 FROM tab1 AS cor0 WHERE 4 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4720
SELECT - - COUNT( * ) AS col0, - 36 DIV - 67 FROM tab2 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4720
SELECT - - COUNT ( * ) AS col0, - 36 / - 67 FROM tab2 cor0
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT col1 * - col0 DIV col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4721
SELECT col1 * - col0 / col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT AVG ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT 30 <= 63
----
NULL

query I rowsort
SELECT + 1 * - - col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col2 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 + - 41 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 + - 41 ) < NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + + col2 NOT BETWEEN + col0 * - ( + 87 ) + col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 11 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - 13 * - ( + col1 ) * 54 + + 38 * col0 AS col1 FROM tab1 AS cor0
----
11766
36452
6740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4730
SELECT + MIN( DISTINCT + col1 ) DIV - 73 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4730
SELECT + MIN ( DISTINCT + col1 ) / - 73 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 82 col0 FROM tab1
----
-4182
-6970
-7462

query II rowsort
SELECT DISTINCT 25 * col0 AS col0, col0 AS col2 FROM tab2
----
1150
46
1600
64
1875
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= col1
----

query I rowsort
SELECT - + ( - 29 ) FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT col0 - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 / + - col2 <= - ( 85 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 75 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT ALL CAST( NULL AS SIGNED ) * + 6 * + - 4 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL CAST ( NULL AS INTEGER ) * + 6 * + - 4 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col2 + - 90 AS col2 FROM tab2
----
1510
3274
439

query I rowsort
SELECT + 65 + 67 FROM tab1
----
132
132
132

query II rowsort
SELECT DISTINCT - + col2 AS col0, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + - col2 col1 FROM tab2 cor0
----
-12
-29
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT col0 * - CAST( NULL AS SIGNED ) * + col2 * + + 8 + 12 + col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT col0 * - CAST ( NULL AS INTEGER ) * + col2 * + + 8 + 12 + col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - 87 + col0 * + + col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, 9 * + col1 FROM tab2 cor0
----
-46
459
-64
693
-75
603

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 / + col1 * + + col1 < + 42 * + 46
----
3

skipif mysql # not compatible
query I rowsort label-4745
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 / + col1 * + + col1 < + 42 * + 46
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + + 21 ) NOT BETWEEN ( NULL ) AND col0 * - 12 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ) + + 43 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + + 43 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + + col1 * - - col1 AS col1 FROM tab1 AS cor0
----
182
20
2162

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT + - col0 DIV 28 DIV - col0 * 17 + col1 + - col1 + 96 AS col0 FROM tab1 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-4749
SELECT + - col0 / 28 / - col0 * 17 + col1 + - col1 + 96 AS col0 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL 54 FROM tab0 AS cor0 WHERE ( - 35 * - + col0 + - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - + col2, 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT CAST( + + 32 AS SIGNED ) AS col1 FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-4752
SELECT CAST ( + + 32 AS INTEGER ) AS col1 FROM tab1
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL - 31 - SUM( + - col0 ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL - 31 - SUM ( + - col0 ) FROM tab0
----
168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4754
SELECT ALL col0 - - - col1 + - + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL col0 - - - col1 + - + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col0 * - col0 AS col1 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT col2 - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT col2 - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < col1
----

query I rowsort
SELECT ALL + - col0 * col2 * col0 FROM tab2 cor0
----
-163840
-326250
-48668

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 67 - - ( - - col1 ) * + - 76 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4762
SELECT * FROM tab2 WHERE NOT col1 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4762
SELECT * FROM tab2 WHERE NOT col1 IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL - CAST( col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - CAST ( col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 * + + col1 AS col0, + col1 * - - 74 AS col0 FROM tab0
----
210
1554
3807
5994
99
74

query II rowsort
SELECT + ( - col1 ), col2 * + 65 AS col0 FROM tab1
----
-14
6240
-47
4420
-5
3835

query I rowsort
SELECT ALL + col0 * - + 61 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT ALL - + col2 * + + col1 + + ( - 80 ) AS col2 FROM tab2 cor0
----
-1253
-3160
-3966

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT + + MIN( ( + - 81 ) ) * - - COUNT( * ) FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + + MIN ( ( + - 81 ) ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col2 FROM tab2 cor0
----
-31

query I rowsort
SELECT ALL ( 93 ) FROM tab2 AS cor0
----
93
93
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( + 99 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN 48 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT COUNT( - - 87 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4773
SELECT COUNT ( - - 87 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col2 * + col1 + + col2 + + 74 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + + col2 / col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 / + col2 + + - 91 ) NOT BETWEEN 27 AND ( + + ( + 57 ) - + 79 )
----

query I rowsort
SELECT col1 * - 1 AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4777
SELECT + 42 DIV + + ( - + COUNT( * ) ) AS col1, - COUNT( * ) * + - COUNT( * ) FROM tab1
----
-14
9

skipif mysql # not compatible
query II rowsort label-4777
SELECT + 42 / + + ( - + COUNT ( * ) ) AS col1, - COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
-14
9

query II rowsort
SELECT 15 * 58 * - ( + - col0 ) AS col1, col0 FROM tab1
----
44370
51
73950
85
79170
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4779
SELECT DISTINCT + 53 AS col1, - COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
53
-3

skipif mysql # not compatible
query II rowsort label-4779
SELECT DISTINCT + 53 AS col1, - COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
53
-3

query I rowsort
SELECT 3 + col1 AS col1 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT + - 83 + col1 FROM tab0 AS cor0
----
-2
-62
-82

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT DISTINCT 20 AS col1 FROM tab2 WHERE + 60 BETWEEN NULL AND + CAST( NULL AS SIGNED ) + + - 26
----

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT 20 AS col1 FROM tab2 WHERE + 60 BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + + - 26
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 / - 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 60 * + col1 + - 49 + + col1 ) >= - 95 * - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT - SUM( ALL + - 35 ) * + - 32 AS col1 FROM tab0 AS cor0
----
-3360

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - SUM ( ALL + - 35 ) * + - 32 AS col1 FROM tab0 AS cor0
----
-3360

query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT - col2 * col0 * CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT - col2 * col0 * CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + col1 + - 73 * - + col1 * - col0 FROM tab1 AS cor0
----
-31015
-312127
-52094

query I rowsort
SELECT DISTINCT - col2 + 49 AS col0 FROM tab1
----
-10
-19
-47

query I rowsort
SELECT + col1 + - - col0 * 48 AS col2 FROM tab1
----
2462
4085
4415

query I rowsort
SELECT ALL 60 + - 94 AS col0 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - 70 + + - col1 AS col0 FROM tab2
----
-121
-137
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT DISTINCT col1 * + 37 * + + col1 * + 10 * + CAST( NULL AS SIGNED ) - - col1 + + ( + col1 ) + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT col1 * + 37 * + + col1 * + 10 * + CAST ( NULL AS INTEGER ) - - col1 + + ( + col1 ) + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 44 - + col2 * - col2 + + col2 FROM tab1
----
3584
4736
9356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4797
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT - 14 * 2 DIV COUNT( * ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4799
SELECT - 14 * 2 / COUNT ( * ) AS col1 FROM tab1 cor0
----
-9

query II rowsort
SELECT - 67 AS col0, 80 FROM tab2 cor0
----
-67
80
-67
80
-67
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT ALL + col1 DIV ( - + col2 ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + col1 / ( - + col2 ) FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT - 87 AS col2, 32 - - 74 FROM tab1 AS cor0
----
-87
106
-87
106
-87
106

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4803
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( 70, + CAST( NULL AS SIGNED ), 24 )
----

skipif mysql # not compatible
query III rowsort label-4803
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( 70, + CAST ( NULL AS INTEGER ), 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT - 55 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + - CAST( ( + 50 ) AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 55 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + - CAST ( ( + 50 ) AS INTEGER ) + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 87 = ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT col1 * 22 + - col0 + - + 78 * + + CAST( 17 AS SIGNED ) FROM tab0
----
-1401
-951
441

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT col1 * 22 + - col0 + - + 78 * + + CAST ( 17 AS INTEGER ) FROM tab0
----
-1401
-951
441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4808
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT 84 * - + 68 AS col1 FROM tab1
----
-5712
-5712
-5712

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 BETWEEN + 41 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT col0 DIV 69 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4811
SELECT col0 / 69 AS col0 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST( NULL AS SIGNED ) * 44
----

skipif mysql # not compatible
query III rowsort label-4812
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * 44
----

query I rowsort
SELECT col0 * - + ( - col2 ) AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL col0 / 89 + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL = - col0 * col1
----

query I rowsort
SELECT ALL - + col2 + - + ( - col2 ) - - 72 FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 54 + - col2 IS NULL OR NULL = - + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT 97 + - COUNT( * ) FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT 97 + - COUNT ( * ) FROM tab1 cor0
----
94

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - ( 85 ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - COUNT( * ) + + 56 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-4819
SELECT - COUNT ( * ) + + 56 FROM tab2
----
53

query I rowsort
SELECT + 43 + - col1 AS col1 FROM tab2 AS cor0
----
-24
-34
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + ( ( - col0 ) ) col2 FROM tab1 AS cor0
----
-38
-4
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - - COUNT( * ) + 42 AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4822
SELECT - - COUNT ( * ) + 42 AS col0 FROM tab0 AS cor0
----
45

query I rowsort
SELECT - col1 + 18 - + col0 * + - 97 FROM tab2 AS cor0
----
4429
6149
7226

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 47 / col2 * + col0 + col2 BETWEEN NULL AND 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT - col2 * 91 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-4324
-9108
-920

skipif mysql # not compatible
query I rowsort label-4825
SELECT - col2 * 91 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 62, - ( col0 ) * + - 15, - - 10 * - 77 + 68 * col1 + + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT + SUM( - 11 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT + SUM ( - 11 ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL col0 + + + 19 AS col0 FROM tab0
----
106
116
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT COUNT( * ) - + COUNT( - - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4829
SELECT COUNT ( * ) - + COUNT ( - - col1 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 89 - - 64, + 87 col0 FROM tab0
----
153
87
153
87
153
87

query I rowsort
SELECT ALL + - col1 * col0 + col0 AS col2 FROM tab0 cor0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT - SUM( - col1 ) * + 60 AS col1 FROM tab2 WHERE NOT + 41 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT - SUM ( - col1 ) * + 60 AS col1 FROM tab2 WHERE NOT + 41 + - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT 52 DIV 94 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT 52 / 94 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + COUNT( + - 99 ) * + - ( - - MAX( DISTINCT col0 ) ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-4834
SELECT + COUNT ( + - 99 ) * + - ( - - MAX ( DISTINCT col0 ) ) FROM tab0
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT ALL - 97 DIV + 56 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - 97 / + 56 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 69 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + + SUM( ALL 85 ) AS col1 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4838
SELECT + + SUM ( ALL 85 ) AS col1 FROM tab2 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - + COUNT( * ) * 25 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4839
SELECT - + COUNT ( * ) * 25 FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4840
SELECT ALL + 77 + - 28 DIV - + COUNT( * ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + 77 + - 28 / - + COUNT ( * ) FROM tab1
----
86

query I rowsort
SELECT DISTINCT 61 * - col2 * + col2 AS col2 FROM tab2
----
-205204
-32269
-97600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT col0 * + + col2 + + - col1 FROM tab0 WHERE NOT NULL <= + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4842
SELECT col0 * + + col2 + + - col1 FROM tab0 WHERE NOT NULL <= + CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + MAX( ALL - col1 ) * + + 65 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-4843
SELECT + MAX ( ALL - col1 ) * + + 65 FROM tab0
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4844
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN - CAST( NULL AS DECIMAL ) + - 89 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-4844
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN - CAST ( NULL AS REAL ) + - 89 AND - + col2
----

query II rowsort
SELECT + 57, col2 + - col0 * + + col1 AS col1 FROM tab2
----
57
-2323
57
-4888
57
-4967

query I rowsort
SELECT - 28 * + + col1 AS col0 FROM tab0
----
-2268
-28
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT 16 * CAST( - - col2 AS SIGNED ) AS col0 FROM tab1
----
1088
1536
944

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 16 * CAST ( - - col2 AS INTEGER ) AS col0 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT 69 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT 69 IS NOT NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT DISTINCT col0 DIV 37 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT col0 / 37 AS col1 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT - COUNT( * ) + + - 6 AS col0 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - COUNT ( * ) + + - 6 AS col0 FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT - col1 + + ( + - 29 ) AS col0 FROM tab0 AS cor0
----
-110
-30
-50

query I rowsort
SELECT + col2 + - 98 + + 81 AS col2 FROM tab1 cor0
----
42
51
79

query I rowsort
SELECT DISTINCT + 75 + col0 + + 38 AS col2 FROM tab0 AS cor0
----
128
200
210

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT DISTINCT + - MIN( + - 2 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
2

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT + - MIN ( + - 2 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
2

query I rowsort
SELECT ALL col2 * + 56 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1288
2240
3248

query I rowsort
SELECT ALL + 15 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT 6 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT 6 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 25 * - col0 + + 3 AS col0 FROM tab0 AS cor0
----
-2172
-2422
-372

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4859
SELECT DISTINCT + - col2 + + 77 + + col1 * CAST( NULL AS DECIMAL ) + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT + - col2 + + 77 + + col1 * CAST ( NULL AS REAL ) + - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - + COUNT( - col1 ) AS col0 FROM tab2 WHERE ( NOT ( NULL ) BETWEEN - 99 * + ( - + ( - col1 ) ) + 31 * 68 * - col2 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT - + COUNT ( - col1 ) AS col0 FROM tab2 WHERE ( NOT ( NULL ) BETWEEN - 99 * + ( - + ( - col1 ) ) + 31 * 68 * - col2 AND NULL )
----
0

query I rowsort
SELECT DISTINCT - 57 * 53 + 57 FROM tab0, tab0 cor0
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL MAX( + 66 ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL MAX ( + 66 ) AS col1 FROM tab2
----
66

query II rowsort
SELECT DISTINCT + col0, + col0 AS col0 FROM tab2
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 AS col1, + col0 col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab0 AS cor0
----
14

query I rowsort
SELECT - - ( + 65 ) FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT COUNT( * ) * - 7 AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4867
SELECT COUNT ( * ) * - 7 AS col0 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT + SUM( DISTINCT + + col1 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT + SUM ( DISTINCT + + col1 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4871
SELECT ALL col1 DIV + - col1, 56 + - 31 AS col0 FROM tab0 AS cor0
----
-1
25
-1
25
-1
25

skipif mysql # not compatible
query II rowsort label-4871
SELECT ALL col1 / + - col1, 56 + - 31 AS col0 FROM tab0 AS cor0
----
-1
25
-1
25
-1
25

onlyif mysql # DIV for integer division: 
query II rowsort label-4872
SELECT + - col2 DIV + + col2 AS col0, - col2 FROM tab1 cor0
----
-1
-59
-1
-68
-1
-96

skipif mysql # not compatible
query II rowsort label-4872
SELECT + - col2 / + + col2 AS col0, - col2 FROM tab1 cor0
----
-1
-59
-1
-68
-1
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT DISTINCT 56 col1, - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
56
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4873
SELECT DISTINCT 56 col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
56
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT MAX( DISTINCT + + 34 ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-4874
SELECT MAX ( DISTINCT + + 34 ) AS col2 FROM tab0
----
34

query I rowsort
SELECT + 77 * - col0 AS col0 FROM tab1
----
-3927
-6545
-7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - 38 - - col1 col0 FROM tab1 WHERE NOT - col0 IS NULL
----
38

query I rowsort
SELECT ALL + 15 * - 83 FROM tab2
----
-1245
-1245
-1245

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4878
SELECT DISTINCT - MAX( DISTINCT - col0 ) DIV - + COUNT( * ) col0, + 41 + + 79 DIV + - COUNT( * ) FROM tab2
----
-15
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4878
SELECT DISTINCT - MAX ( DISTINCT - col0 ) / - + COUNT ( * ) col0, + 41 + + 79 / + - COUNT ( * ) FROM tab2
----
-15
15

query I rowsort
SELECT ( - 61 ) AS col1 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT - ( + MAX( - 84 ) ) AS col1 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4880
SELECT - ( + MAX ( - 84 ) ) AS col1 FROM tab2 AS cor0
----
84

query I rowsort
SELECT - + col0 * - 11 AS col2 FROM tab2 AS cor0
----
506
704
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 - + col1 col1 FROM tab1 AS cor0
----
-102
-60
-69

query I rowsort
SELECT DISTINCT 37 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 + 42 * + col1 AS col0 FROM tab2
----
2165
2872
3274

query I rowsort
SELECT col2 * - col1 + + 41 * col0 + col0 + - - 1 + - col1 * + - col0 + + + col1 + col2 AS col1 FROM tab2 AS cor0
----
3180
4415
4654

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <= + ( - 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT + ( - col1 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4887
SELECT + ( - col1 ) / - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 18 col0, + col2 AS col0 FROM tab1 AS cor0
----
18
59
18
68
18
96

query I rowsort
SELECT ALL - + 87 * + 30 FROM tab0 AS cor0
----
-2610
-2610
-2610

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL + - COUNT( ALL - col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + - COUNT ( ALL - col2 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT COUNT( * ) DIV - 2 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4892
SELECT COUNT ( * ) / - 2 AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + + 82 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 + col0 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4894
SELECT col1, col2 DIV - - 43 FROM tab2 AS cor0
----
51
0
67
1
77
0

skipif mysql # not compatible
query II rowsort label-4894
SELECT col1, col2 / - - 43 FROM tab2 AS cor0
----
51
0
67
1
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT CAST( - 92 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-4895
SELECT CAST ( - 92 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / + 55 > - col2 / + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + col2 AS col2, - col2 + - col2 FROM tab1 AS cor0 WHERE + 79 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 + - + 75 * - col1 + col1 + - col0 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1537
6169
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT DISTINCT + + SUM( DISTINCT - col2 ) DIV 61 AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT + + SUM ( DISTINCT - col2 ) / 61 AS col1 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT col1 * + + 72 FROM tab2
----
3672
4824
5544

query I rowsort
SELECT 20 + - ( + col1 ) FROM tab0
----
-1
-61
19

query I rowsort
SELECT - 23 + 68 + + - col0 FROM tab0
----
-42
-52
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT - CAST( NULL AS SIGNED ) + + 27 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT - CAST ( NULL AS INTEGER ) + + 27 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * + - COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT + col0 + - 62 FROM tab2
----
-16
13
2

query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT 55 + col1 * + 7 FROM tab1 AS cor0
----
153
384
90

query I rowsort
SELECT ALL + + 48 AS col0 FROM tab0 cor0
----
48
48
48

query II rowsort
SELECT DISTINCT 21 + + col0, col2 * - 40 * + + ( + + ( + ( col2 ) ) ) + - 91 AS col1 FROM tab2 AS cor0
----
67
-21251
85
-64091
96
-134651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT + MIN( DISTINCT - col1 ) DIV + - 42 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT + MIN ( DISTINCT - col1 ) / + - 42 FROM tab1
----
1

query I rowsort
SELECT ALL ( + col2 ) + - 37 FROM tab1
----
22
31
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4913
SELECT - + col0 FROM tab2 WHERE - + col2 NOT BETWEEN + + 68 AND + CAST( + - col2 AS DECIMAL )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4913
SELECT - + col0 FROM tab2 WHERE - + col2 NOT BETWEEN + + 68 AND + CAST ( + - col2 AS REAL )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT col2 + - 74 FROM tab0
----
-27
-64
25

query II rowsort
SELECT + - col0 * - 54 - col1, col2 AS col2 FROM tab2 AS cor0
----
2433
23
3379
40
3983
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - ( + 97 ) * + MIN( + - col0 ) FROM tab1 AS cor0
----
8827

skipif mysql # not compatible
query I rowsort label-4917
SELECT - ( + 97 ) * + MIN ( + - col0 ) FROM tab1 AS cor0
----
8827

query I rowsort
SELECT DISTINCT - - col0 * - col1 * - - ( + ( + - col2 ) ) + 87 * + col1 - col2 AS col2 FROM tab2 AS cor0
----
203779
297221
58372

query I rowsort
SELECT ALL + + 15 * + col0 AS col2 FROM tab2 AS cor0
----
1125
690
960

query I rowsort
SELECT + - ( + 68 ) * - + col2 AS col2 FROM tab0 AS cor0
----
3196
6732
680

query I rowsort
SELECT - col0 * col1 + - - 19 * col1 + - col2 FROM tab1 AS cor0
----
-3452
-389
-544

query I rowsort
SELECT - 75 * + - col1 AS col1 FROM tab0 AS cor0
----
1575
6075
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( + + ( col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT DISTINCT + ( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 AS col0 FROM tab1
----
14
-14
47
-47
5
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - - col1 > NULL
----

query II rowsort
SELECT col2, - 70 + - + 71 FROM tab1 AS cor0
----
59
-141
68
-141
96
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT - - COUNT( * ) * + - CAST( + 94 AS SIGNED ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4929
SELECT - - COUNT ( * ) * + - CAST ( + 94 AS INTEGER ) FROM tab0 AS cor0
----
-282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT - SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL + - 78 + - MIN( ALL - 16 ) AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + - 78 + - MIN ( ALL - 16 ) AS col2 FROM tab1 AS cor0
----
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / - col1 + - - col0 * + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + 76 + + + COUNT( * ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 76 + + + COUNT ( * ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT - col0 + + - ( col0 ) + 48 + - 85 * + + col1 + 32 * - col0 AS col1 FROM tab2 AS cor0
----
-5851
-8197
-8673

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2 * + 2 * - 99
----

query II rowsort
SELECT + col0 + 32, col1 AS col0 FROM tab1 AS cor0
----
117
5
123
47
83
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT ALL + + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4938
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT + col1 + 95 AS col1 FROM tab1 AS cor0
----
100
109
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + - 44 * - - col2 col2 FROM tab2 AS cor0
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT col1 + - col0 + ( - col1 ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE col2 + + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE col2 + + col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 - + 10 FROM tab2
----
36
54
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4945
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-4945
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4946
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4946
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - COUNT( * ) - - - SUM( - - col2 ) FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - COUNT ( * ) - - - SUM ( - - col2 ) FROM tab1
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + SUM( DISTINCT + + ( + col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4948
SELECT + SUM ( DISTINCT + + ( + col1 ) ) FROM tab2
----
195

query I rowsort
SELECT ALL 26 * + 13 - col1 FROM tab0 AS cor0
----
257
317
337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT DISTINCT - - 72 - + col0 * - ( - CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-2529
-7153
-8209

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - - 72 - + col0 * - ( - CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-2529
-7153
-8209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT + col2 - CAST( + - 66 AS SIGNED ) + - - col0 FROM tab0 AS cor0
----
128
163
262

skipif mysql # not compatible
query I rowsort label-4951
SELECT + col2 - CAST ( + - 66 AS INTEGER ) + - - col0 FROM tab0 AS cor0
----
128
163
262

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND + + 67
----

query I rowsort
SELECT DISTINCT + 38 + + 45 + col0 - + 60 FROM tab0 AS cor0
----
110
120
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT ALL - + 43 + - 3 + + + 63, + COUNT( * ) AS col2 FROM tab2 cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-4954
SELECT ALL - + 43 + - 3 + + + 63, + COUNT ( * ) AS col2 FROM tab2 cor0
----
17
3

query I rowsort
SELECT DISTINCT 27 * - + col1 AS col0 FROM tab0 AS cor0
----
-2187
-27
-567

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT - col2 + col0 DIV - + 33 FROM tab2
----
-24
-41
-60

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - col2 + col0 / - + 33 FROM tab2
----
-24
-41
-60

query I rowsort
SELECT 89 * - + 20 + + + 36 FROM tab1
----
-1744
-1744
-1744

query I rowsort
SELECT ALL - col1 * - + col2 AS col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + ( - + col0 ) ) < NULL
----

query I rowsort
SELECT DISTINCT 5 - - 26 * + col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 19 NOT BETWEEN NULL AND - 17 * - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT ALL 58 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 58 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 78 * + 73 AS col2 FROM tab2 AS cor0
----
-5694
-5694
-5694

query I rowsort
SELECT DISTINCT + + col1 * ( - - ( - - col2 ) ) * + - col0 * - + col0 FROM tab0 AS cor0
----
1589490
856575
931491

query I rowsort
SELECT ALL - col2 * + + col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col1 * + 11 - - ( + col0 ) FROM tab1 AS cor0
----
-103
-426
30

query I rowsort
SELECT - ( + - col2 ) * + 13 * + 93 AS col1 FROM tab2 cor0
----
27807
48360
70122

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL - SUM( 70 ) FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - SUM ( 70 ) FROM tab2
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4970
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + + CAST( + 42 AS SIGNED ) >= + - col0 + + - col1
----

skipif mysql # not compatible
query III rowsort label-4970
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + + CAST ( + 42 AS INTEGER ) >= + - col0 + + - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4971
SELECT CAST( + + col2 AS SIGNED ) DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4971
SELECT CAST ( + + col2 AS INTEGER ) / - col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + 42 * + - 1 FROM tab2
----
-42
-42
-42

query II rowsort
SELECT ALL col0 AS col1, - col2 * - col1 - - + ( + 9 ) AS col0 FROM tab0
----
15
3816
87
219
97
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT 85 DIV - col0 - - col0 - + 43 DIV 18 FROM tab0 AS cor0
----
8
85
95

skipif mysql # not compatible
query I rowsort label-4974
SELECT 85 / - col0 - - col0 - + 43 / 18 FROM tab0 AS cor0
----
8
85
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4975
SELECT ALL + - ( - col1 ) * col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + - ( - col1 ) * col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4976
SELECT DISTINCT - ( + col2 ) DIV + + 72 AS col0, + 98 col1 FROM tab1 AS cor0
----
-1
98
0
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4976
SELECT DISTINCT - ( + col2 ) / + + 72 AS col0, + 98 col1 FROM tab1 AS cor0
----
-1
98
0
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 25 + + 34 AS col1 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + - col1 + ( - - col2 ) FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL - ( - - col2 ) + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4981
SELECT - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 54 col0 FROM tab0 cor0
----
54
54
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 98 + - col2, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT - ( - + COUNT( col0 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - ( - + COUNT ( col0 ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 80 + - col0 AS col1 FROM tab1 AS cor0
----
-131
-165
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - COUNT( ALL col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4986
SELECT - COUNT ( ALL col1 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 81 * + - col0 * - + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 30 + + - 29 * 63 FROM tab1 cor0
----
-1857
-1857
-1857

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 40 - + 3 * + - col0 * + 16 col0 FROM tab1 AS cor0
----
2408
4040
4328

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT col1 DIV - 21 - + 11 + - col2 - + + col0 * - - col2 * - col1 FROM tab1 AS cor0
----
25005
290755
68437

skipif mysql # not compatible
query I rowsort label-4991
SELECT col1 / - 21 - + 11 + - col2 - + + col0 * - - col2 * - col1 FROM tab1 AS cor0
----
25005
290755
68437

query I rowsort
SELECT ALL 96 + - col0 FROM tab2
----
21
32
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT DISTINCT - ( + 74 ) DIV + - 77 + + col1 + + col0 AS col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - ( + 74 ) / + - 77 + + col1 + + col0 AS col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT COUNT( DISTINCT + col0 ) + - - ( 38 ) * COUNT( * ) AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-4994
SELECT COUNT ( DISTINCT + col0 ) + - - ( 38 ) * COUNT ( * ) AS col2 FROM tab2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT CAST( NULL AS SIGNED ) + + - col0 * + - col2 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT CAST ( NULL AS INTEGER ) + + - col0 * + - col2 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + - - 22 + + - col0 col2 FROM tab1
----
-24
-30
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28 + + - 85 col0, col2 + - + col0 + + col0 + + + col0 FROM tab2
----
-57
104
-57
133
-57
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col0 + + col2 + + 55 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col0 + + col2 + + 55 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * col0 / 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - - + 36 * 50 AS col0 FROM tab1 AS cor0
----
1805
1814
1847

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 96 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT - ( + SUM( col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5002
SELECT - ( + SUM ( col1 ) ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + col0 * 67 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT - 84 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col1 col2 FROM tab2 AS cor0
----
2601
4489
5929

query II rowsort
SELECT - 78 AS col0, 78 FROM tab2 AS cor0
----
-78
78
-78
78
-78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT - + ( - col1 ) DIV + 90 * + ( + ( - + 12 ) ) + + col0 col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT - + ( - col1 ) / + 90 * + ( + ( - + 12 ) ) + + col0 col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) * - - col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5010
SELECT col0 * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT col0 * + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - - col0 AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT 32 * - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT 32 * - COUNT ( * ) FROM tab0
----
-96

query II rowsort
SELECT ALL 21 * + ( - col1 ) * - col2 AS col1, 28 AS col1 FROM tab2
----
24633
28
64680
28
81606
28

query I rowsort
SELECT ALL + 77 * col0 * - col1 AS col1 FROM tab2
----
-180642
-379456
-386925

query I rowsort
SELECT ALL col2 * + col1 * - 16 AS col0 FROM tab0
----
-1584
-3360
-60912

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT ALL col2 DIV col2 * - col0 AS col2 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL col2 / col2 * - col0 AS col2 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT + 53 * + + 91 AS col1, col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4823
1
4823
21
4823
81

query I rowsort
SELECT + ( + col1 ) + + + 7 + - col2 FROM tab0
----
-91
18
41

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab1 cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT - 12 DIV + col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - 12 / + col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 + - + col0 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
-675
-696
-9409

query I rowsort
SELECT DISTINCT + col0 + 6 * - 26 + 61 FROM tab1 AS cor0
----
-10
-4
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - + MIN( 72 ) FROM tab2 AS cor0 WHERE col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT - + MIN ( 72 ) FROM tab2 AS cor0 WHERE col2 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + - col1 + + + 21 AS col1 FROM tab0
----
-13
10
119

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 77 AND - + col0
----

query I rowsort
SELECT DISTINCT + 28 + + col1 FROM tab2
----
105
79
95

query I rowsort
SELECT - ( + col0 ) * col0 AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5030
SELECT 20 AS col0, 35 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
20
NULL
20
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-5030
SELECT 20 AS col0, 35 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
20
NULL
20
NULL
20
NULL

query I rowsort
SELECT - 25 * + 36 FROM tab0
----
-900
-900
-900

query I rowsort
SELECT ( + 84 ) FROM tab1
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 16 * + - COUNT( * ) * - MAX( + - 25 ) - + + COUNT( * ) + + 55 * - - COUNT( * ) AS col2 FROM tab2
----
-1038

skipif mysql # not compatible
query I rowsort label-5033
SELECT 16 * + - COUNT ( * ) * - MAX ( + - 25 ) - + + COUNT ( * ) + + 55 * - - COUNT ( * ) AS col2 FROM tab2
----
-1038

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + + 22 - + + 52 + + 69 * 98 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6735

skipif mysql # not compatible
query I rowsort label-5034
SELECT + + 22 - + + 52 + + 69 * 98 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6735

query I rowsort
SELECT + 64 + 54 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
118
118
118

query I rowsort
SELECT + + 7 - - col0 FROM tab2 AS cor0
----
53
71
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT DISTINCT + 26 + - ( col2 ) + + CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 5 / + col1 IS NULL
----
-172
-194
-3828

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + 26 + - ( col2 ) + + CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 5 / + col1 IS NULL
----
-172
-194
-3828

query I rowsort
SELECT - ( + 64 ) AS col2 FROM tab2 cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5039
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - 5 = col2
----

skipif mysql # not compatible
query III rowsort label-5039
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - 5 = col2
----

query I rowsort
SELECT col1 * - 79 AS col0 FROM tab0
----
-1659
-6399
-79

query I rowsort
SELECT DISTINCT ( - 50 ) AS col1 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ( + 47 ) FROM tab2 cor0
----
47
47
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 74 + - - 68 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL + - COUNT( + + 61 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + - COUNT ( + + 61 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * 48 + - 98 AS col2 FROM tab0 AS cor0
----
4078
4558
622

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5047
SELECT DISTINCT COUNT( * ) + + - 10 + - COUNT( * ) AS col2, COUNT( * ) * + COUNT( * ) DIV + COUNT( col0 ) FROM tab2
----
-10
3

skipif mysql # not compatible
query II rowsort label-5047
SELECT DISTINCT COUNT ( * ) + + - 10 + - COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) / + COUNT ( col0 ) FROM tab2
----
-10
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT + 78 DIV + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5048
SELECT + 78 / + col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL + COUNT( * ) * - + 29 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL + COUNT ( * ) * - + 29 FROM tab0
----
-87

query II rowsort
SELECT col0 AS col1, 38 FROM tab2
----
46
38
64
38
75
38

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - 85 + + + 42 + - col2 AS col1 FROM tab1 AS cor0
----
-102
-111
-139

query I rowsort
SELECT ALL + + ( - 62 ) + col1 AS col0 FROM tab1 AS cor0
----
-15
-48
-57

query I rowsort
SELECT + 59 + - col1 AS col1 FROM tab2 AS cor0
----
-18
-8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT + 63 + + - COUNT( * ) * + COUNT( * ) DIV + 52 FROM tab0 cor0
----
63

skipif mysql # not compatible
query I rowsort label-5055
SELECT + 63 + + - COUNT ( * ) * + COUNT ( * ) / + 52 FROM tab0 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ( - + COUNT( + 86 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5056
SELECT ( - + COUNT ( + 86 ) ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - SUM( ALL - ( col2 ) ) - - 51 col1 FROM tab1 AS cor0
----
274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5058
SELECT - SUM ( ALL - ( col2 ) ) - - 51 col1 FROM tab1 AS cor0
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL MIN( + 95 ) + 88 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL MIN ( + 95 ) + 88 FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT + col1 + - 99 * 75 FROM tab2 AS cor0
----
-7348
-7358
-7374

query III rowsort
SELECT * FROM tab1 WHERE + 61 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT 79 + - col2 - col1 DIV + col0 AS col0 FROM tab0
----
-20
27
69

skipif mysql # not compatible
query I rowsort label-5063
SELECT 79 + - col2 - col1 / + col0 AS col0 FROM tab0
----
-20
27
69

query I rowsort
SELECT DISTINCT 89 * + 7 * 57 FROM tab2
----
35511

query I rowsort
SELECT ALL - ( - 38 ) - ( - + col0 ) AS col2 FROM tab0
----
125
135
53

query I rowsort
SELECT + col1 / - col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + col1 + - ( + col1 ) FROM tab1
----
51
85
91

query I rowsort
SELECT + col2 * + + col0 FROM tab0 WHERE col0 + + 2 * 26 IS NOT NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL > + 65
----
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL > + 65
----
0

query I rowsort
SELECT ALL + 35 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT ALL + - AVG ( + col1 ) FROM tab2 cor0 WHERE - col0 * 93 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT DISTINCT + 41 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT + 41 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
13

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND col1 + col1 + col2 + 4
----

query II rowsort
SELECT DISTINCT col0, - ( - col1 ) + + - col2 FROM tab0 AS cor0
----
15
34
87
11
97
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= - - col0 / col2 + + ( - 34 )
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, - col0 * col1 * - col0 * col1 * + col2 col2 FROM tab0 AS cor0
----
-1
931491
-21
33379290
-81
69382575

onlyif mysql # aggregate syntax: 
query II rowsort label-5077
SELECT - + 74 AS col2, SUM( DISTINCT - + 75 ) FROM tab1 cor0
----
-74
-75

skipif mysql # not compatible
query II rowsort label-5077
SELECT - + 74 AS col2, SUM ( DISTINCT - + 75 ) FROM tab1 cor0
----
-74
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT ALL - + 4 AS col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - - ( - + col0 ) AND - 75 / - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL - + 4 AS col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - - ( - + col0 ) AND - 75 / - col2 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5079
SELECT DISTINCT - + COUNT( * ), SUM( ALL + + 4 ) AS col2 FROM tab2 AS cor0
----
-3
12

skipif mysql # not compatible
query II rowsort label-5079
SELECT DISTINCT - + COUNT ( * ), SUM ( ALL + + 4 ) AS col2 FROM tab2 AS cor0
----
-3
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 94 * - - 91 * 22 * col1 AS col0 FROM tab2 AS cor0
----
46
9597588
64
14490476
75
12608596

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col0 * + col1 NOT IN ( - col0, - 61 * - col0, - col0, - col0 ) )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5082
SELECT + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT 83 - + col1 - col0 * - + col0 AS col0 FROM tab1 WHERE NOT + 13 NOT IN ( - + 21 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL + ( ( - - COUNT( * ) ) ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + ( ( - - COUNT ( * ) ) ) FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5085
SELECT - MAX( DISTINCT + 14 ), 45 + - 18 col1 FROM tab1
----
-14
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5085
SELECT - MAX ( DISTINCT + 14 ), 45 + - 18 col1 FROM tab1
----
-14
27

query I rowsort
SELECT ALL + col1 * + - 3 AS col1 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-5087
SELECT + - 72 DIV + + col1, + col2 col0 FROM tab0 AS cor0
----
-3
10
-72
99
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5087
SELECT + - 72 / + + col1, + col2 col0 FROM tab0 AS cor0
----
-3
10
-72
99
0
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col0 FROM tab2 AS cor0 WHERE col0 + - 71 * - - col0 IS NOT NULL
----
49
49
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5089
SELECT ALL + COUNT( ALL - + col2 ), 10 DIV ( - 21 ) AS col1 FROM tab0 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-5089
SELECT ALL + COUNT ( ALL - + col2 ), 10 / ( - 21 ) AS col1 FROM tab0 cor0
----
3
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, col2 + - col0 + + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT DISTINCT - + ( - col1 ) * 89 * - + 33 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col0, - CAST( 2 AS SIGNED ), + + 60, + col0 )
----

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - + ( - col1 ) * 89 * - + 33 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col0, - CAST ( 2 AS INTEGER ), + + 60, + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 9 > col0
----

query III rowsort
SELECT * FROM tab2 WHERE 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - + col0 ) * col1 - + - col0 AS col1 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT ALL col1 * + + 71 FROM tab2
----
3621
4757
5467

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5098
SELECT ALL + 33 DIV MIN( - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + 33 / MIN ( - col1 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( - 33 ) AS col1 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT + 95 * COUNT( * ) FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT + 95 * COUNT ( * ) FROM tab0
----
285

query I rowsort
SELECT + col1 * 5 FROM tab2
----
255
335
385

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT 89 DIV + col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5102
SELECT 89 / + col2 FROM tab0
----
0
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL SUM( 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL SUM ( 89 ) FROM tab2
----
267

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 68 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col1, 83 * + col1 AS col0 FROM tab2
----
-23
4233
-40
6391
-58
5561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5107
SELECT col0 / - 75 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT col0 / - 75 * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 58 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 1 AS col0, 97 AS col2 FROM tab0
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - COUNT( * ) * - 53 - - + COUNT( * ) + + 57 * - 93 col2 FROM tab0 AS cor0
----
-5139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5110
SELECT - COUNT ( * ) * - 53 - - + COUNT ( * ) + + 57 * - 93 col2 FROM tab0 AS cor0
----
-5139

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 + col0 + - 3 / - - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 42 * col1 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 32 + + col2 NOT BETWEEN NULL AND - col1 OR NULL <= NULL
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + 0 + + col1 + - 81 FROM tab1
----
-34
-67
-76

query II rowsort
SELECT DISTINCT ( ( ( col2 ) ) ) + col0 * - col1 AS col1, 43 FROM tab0
----
-1168
43
-1817
43
2
43

query II rowsort
SELECT ALL col0 AS col1, 29 AS col1 FROM tab1
----
51
29
85
29
91
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ( + - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5117
SELECT ( + - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab1
----
-6

query II rowsort
SELECT DISTINCT - col0 AS col2, + col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL + ( - col2 ) + - 76 FROM tab2 AS cor0
----
-116
-134
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT - COUNT( * ) * + 88 * - 32 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
25344

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - COUNT ( * ) * + 88 * - 32 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
25344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 6 AS col1 FROM tab0 WHERE NOT - col0 + - + col2 - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) - - + col0 AS col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) - - + col0 AS col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5124
SELECT DISTINCT - 11 * - ( COUNT( * ) ) + MIN( col0 ) AS col1, - COUNT( * ) FROM tab1
----
84
-3

skipif mysql # not compatible
query II rowsort label-5124
SELECT DISTINCT - 11 * - ( COUNT ( * ) ) + MIN ( col0 ) AS col1, - COUNT ( * ) FROM tab1
----
84
-3

query I rowsort
SELECT DISTINCT 46 * - col0 AS col1 FROM tab1 AS cor0
----
-2346
-3910
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL - - COUNT( - 26 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - - COUNT ( - 26 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT - CAST( 42 AS SIGNED ) * 2 AS col2 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-5127
SELECT - CAST ( 42 AS INTEGER ) * 2 AS col2 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT DISTINCT + ( + + COUNT( * ) ) * + CAST( + 60 AS SIGNED ) FROM tab0 WHERE - 41 + + 74 = - - col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT + ( + + COUNT ( * ) ) * + CAST ( + 60 AS INTEGER ) FROM tab0 WHERE - 41 + + 74 = - - col0 * + col0
----
0

query I rowsort
SELECT ALL - col2 * - 14 + + col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 3 <= + col1 - + col2 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * - 81 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT DISTINCT + 11 FROM tab1, tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 col0, col1 AS col1 FROM tab1
----
38
14
38
47
38
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + + col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT MIN( + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5135
SELECT MIN ( + + col1 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT + col0, - col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT 66 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
66

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col2 ) + 42 IN ( ( 45 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT CAST( NULL AS SIGNED ) * + 13 + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT CAST ( NULL AS INTEGER ) * + 13 + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT + col0 >= ( col0 )
----

query I rowsort
SELECT ALL - 65 + + col0 AS col0 FROM tab1
----
-14
20
26

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 40 + 21 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL SUM( DISTINCT - 38 ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL SUM ( DISTINCT - 38 ) AS col1 FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT + MAX( DISTINCT + col0 ) * - AVG ( col1 ) AS col0 FROM tab2 WHERE NOT + col2 <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + MAX ( DISTINCT + col0 ) * - AVG ( col1 ) AS col0 FROM tab2 WHERE NOT + col2 <> + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT ( col0 * 8 + - ( 79 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT ( col0 * 8 + - ( 79 ) ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5146
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 23 * - col1 FROM tab1
----
1081
115
322

query I rowsort
SELECT + col1 * - 1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT SUM( DISTINCT - col1 ) + 24 AS col1 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-5149
SELECT SUM ( DISTINCT - col1 ) + 24 AS col1 FROM tab2
----
-171

query I rowsort
SELECT - 13 * - col1 FROM tab1
----
182
611
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT - 93 + - SUM( ALL col2 ) col0 FROM tab0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5151
SELECT DISTINCT - 93 + - SUM ( ALL col2 ) col0 FROM tab0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT COUNT( * ) * 69 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-5152
SELECT COUNT ( * ) * 69 FROM tab0
----
207

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 < col0 * - col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT SUM( 66 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT SUM ( 66 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 64 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + MIN( DISTINCT - col2 ) + + MIN( + 22 - col2 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + MIN ( DISTINCT - col2 ) + + MIN ( + 22 - col2 ) FROM tab2
----
-94

query I rowsort
SELECT DISTINCT + col2 + 35 * - col0 FROM tab2
----
-1587
-2200
-2567

query I rowsort
SELECT DISTINCT - 44 * 41 FROM tab2
----
-1804

query I rowsort
SELECT + col0 FROM tab0 WHERE col1 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 * col2 IN ( + col0 )
----

query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT 80 - 73 AS col2 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5165
SELECT + CAST( + 24 AS DECIMAL ) col2 FROM tab2 cor0 WHERE NULL NOT IN ( - 22 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5165
SELECT + CAST ( + 24 AS REAL ) col2 FROM tab2 cor0 WHERE NULL NOT IN ( - 22 )
----

query I rowsort
SELECT DISTINCT + col0 + + 29 AS col1 FROM tab2 AS cor0
----
104
75
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE ( NULL ) <> CAST( - 27 AS SIGNED ) * - col2 + + ( col0 + 33 / - col0 ) * - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5167
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE ( NULL ) <> CAST ( - 27 AS INTEGER ) * - col2 + + ( col0 + 33 / - col0 ) * - col1
----
0

query I rowsort
SELECT ALL - 55 - - 1 AS col2 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT ALL 93 AS col0 FROM tab0 WHERE col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT COUNT( * ) - + MAX( - col0 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT COUNT ( * ) - + MAX ( - col0 ) FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT - col2 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5171
SELECT - col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) <= ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + 43 * COUNT( * ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5172
SELECT + 43 * COUNT ( * ) FROM tab1 AS cor0
----
129

query I rowsort
SELECT DISTINCT + - col1 * 2 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
10
28
94

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 30 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - + COUNT( ( 58 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5176
SELECT - + COUNT ( ( 58 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL ( - 5 ) FROM tab1 AS cor0
----
-5
-5
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 = ( col2 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT + ( ( - COUNT( * ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5179
SELECT + ( ( - COUNT ( * ) ) ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 + col2 ) > col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT - SUM( col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT - SUM ( col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT ALL col1 * - 44 AS col1 FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT ( + 90 ) FROM tab1
----
90
90
90

query I rowsort
SELECT - col2 * - col1 FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT NULL NOT BETWEEN - col2 * col0 AND ( NULL )
----
1173
3080
3886

query I rowsort
SELECT ALL - col0 * col2 * - 5 FROM tab1
----
24480
25075
30940

query I rowsort
SELECT DISTINCT - ( + 31 ) * - 38 FROM tab1 AS cor0
----
1178

query I rowsort
SELECT - 51 * col1 AS col0 FROM tab0 cor0 WHERE NOT - col2 + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 99 + col2 BETWEEN ( + 99 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5189
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT 22 / 71 - 12 > NULL
----

skipif mysql # not compatible
query I rowsort label-5191
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT 22 / 71 - 12 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT - CAST( + + MAX( col2 ) AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - CAST ( + + MAX ( col2 ) AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5194
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5195
SELECT ALL 19 DIV 49 + + - COUNT( * ) + + COUNT( * ) DIV + 19 AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 19 / 49 + + - COUNT ( * ) + + COUNT ( * ) / + 19 AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT ALL + - 88 + + 25 AS col0 FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT DISTINCT - - MAX( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT DISTINCT 91 DIV + - 67 + + col0 + + 51 AS col1 FROM tab2 AS cor0
----
114
125
96

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT 91 / + - 67 + + col0 + + 51 AS col1 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT ALL + 36 + - + col1 + 73 * + col1 FROM tab1 cor0
----
1044
3420
396

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5201
SELECT * FROM tab0 WHERE NOT ( - CAST( 7 AS SIGNED ) + col1 ) IN ( CAST( col0 AS DECIMAL ) * + col0 ) AND NOT col2 * - ( - col1 ) + + col0 * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5201
SELECT * FROM tab0 WHERE NOT ( - CAST ( 7 AS INTEGER ) + col1 ) IN ( CAST ( col0 AS REAL ) * + col0 ) AND NOT col2 * - ( - col1 ) + + col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT ALL + 82 * - 0 + + MIN( + + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + 82 * - 0 + + MIN ( + + col1 ) AS col1 FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < NULL AND NOT - col2 NOT BETWEEN ( NULL ) AND ( + 62 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT 13 + + COUNT( 9 ) AS col1 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5204
SELECT 13 + + COUNT ( 9 ) AS col1 FROM tab1
----
16

query II rowsort
SELECT DISTINCT - col2 - + col2, col1 FROM tab0
----
-198
1
-20
21
-94
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT col0 DIV + + 57 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT col0 / + + 57 FROM tab1
----
0
1

query I rowsort
SELECT col2 FROM tab1 WHERE + + col0 IN ( 43 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 56 FROM tab1 WHERE NOT - ( + col0 ) * 12 IS NULL
----
56
56
56

query I rowsort
SELECT 80 + col1 AS col1 FROM tab0
----
101
161
81

query I rowsort
SELECT ALL 96 + + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT DISTINCT - 7 * + col2 + + + 41 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - 7 * + col2 + + + 41 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT - col0 * - CAST( + col0 AS SIGNED ) FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5213
SELECT - col0 * - CAST ( + col0 AS INTEGER ) FROM tab0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - + + col2 col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-104
-133
-69

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( - + ( col0 ) ) AND ( + col2 )
----

query I rowsort
SELECT col0 * - col2 * - 75 FROM tab0 WHERE NOT NULL IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * col2 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT MIN( 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5218
SELECT MIN ( 80 ) FROM tab1 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT ALL col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE col1 DIV 58 + col1 IN ( + + col1 )
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE col1 / 58 + col1 IN ( + + col1 )
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 1 IN ( + ( 58 ) * + col0 ) AND ( 56 + 55 * + col0 ) <> + 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL - 93 + COUNT( * ) FROM tab2 cor0 WHERE NOT ( ( col2 ) * 33 + + col2 * - col2 ) NOT BETWEEN + 71 AND - col0
----
-93

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL - 93 + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( ( col2 ) * 33 + + col2 * - col2 ) NOT BETWEEN + 71 AND - col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - + ( - MIN( + + col1 ) ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5222
SELECT - + ( - MIN ( + + col1 ) ) FROM tab1 cor0
----
5

query I rowsort
SELECT col0 * - 50 AS col1 FROM tab2 cor0
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT 52 / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT 52 / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5225
SELECT + ( SUM( ALL - col1 ) ) AS col0, - 85 FROM tab1 AS cor0
----
-66
-85

skipif mysql # not compatible
query II rowsort label-5225
SELECT + ( SUM ( ALL - col1 ) ) AS col0, - 85 FROM tab1 AS cor0
----
-66
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT ( col1 ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < ( 18 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 * + col2 )
----

query I rowsort
SELECT ALL + col0 * + 19 + 40 AS col0 FROM tab2 AS cor0 WHERE NOT ( col0 * - 18 * - col2 ) <= col2
----
1256
1465
914

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT CAST( + + col2 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5231
SELECT CAST ( + + col2 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ( + SUM( DISTINCT + col1 ) ) * - COUNT( * ) + + 11 AS col1 FROM tab2 AS cor0
----
-574

skipif mysql # not compatible
query I rowsort label-5232
SELECT ( + SUM ( DISTINCT + col1 ) ) * - COUNT ( * ) + + 11 AS col1 FROM tab2 AS cor0
----
-574

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 44 IN ( 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT - COUNT( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + ( - 1 ) * col0 * - + col0 + 12 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2128
4108
5637

query I rowsort
SELECT 96 + + 84 - + col2 AS col0 FROM tab1 AS cor0
----
112
121
84

onlyif mysql # DIV for integer division: 
query II rowsort label-5237
SELECT DISTINCT + + 22 * - - 45 AS col2, 26 DIV col2 FROM tab0 AS cor0
----
990
0
990
2

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT + + 22 * - - 45 AS col2, 26 / col2 FROM tab0 AS cor0
----
990
0
990
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT ALL col1 * - - col1 * - col1 + + 18 DIV - col2 * + - col2 FROM tab2
----
-132651
-300763
-456533

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL col1 * - - col1 * - col1 + + 18 / - col2 * + - col2 FROM tab2
----
-132651
-300763
-456533

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + col1 + 70 * - ( + ( + ( + 15 ) ) ) >= ( col1 + col1 )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE - 88 BETWEEN NULL AND ( - + 79 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1 * + - col2 + + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - SUM( + - 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-5243
SELECT - SUM ( + - 89 ) FROM tab2
----
267

query II rowsort
SELECT DISTINCT col2 * + - col1 - - ( 70 ), col1 AS col1 FROM tab0
----
-140
21
-29
1
-3737
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT COUNT( * ) - - + 32 + + ( - COUNT( + - col1 ) ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5245
SELECT COUNT ( * ) - - + 32 + + ( - COUNT ( + - col1 ) ) AS col1 FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT - + COUNT( * ) - + - 92 * - ( - 10 ) AS col2 FROM tab1 AS cor0
----
917

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT - + COUNT ( * ) - + - 92 * - ( - 10 ) AS col2 FROM tab1 AS cor0
----
917

query I rowsort
SELECT - col0 * + col2 - + col0 - - 41 AS col0 FROM tab2 AS cor0
----
-1063
-2583
-4384

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT 59 * 70 - 5 - - col2 DIV - - col0 + + col2 FROM tab0 AS cor0
----
4135
4175
4225

skipif mysql # not compatible
query I rowsort label-5248
SELECT 59 * 70 - 5 - - col2 / - - col0 + + col2 FROM tab0 AS cor0
----
4135
4175
4225

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 90 ) + + col2 + - col0 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 48 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT - 49 * CAST( NULL AS SIGNED ) + + + 61 + + 24 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5251
SELECT DISTINCT - 49 * CAST ( NULL AS INTEGER ) + + + 61 + + 24 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT COUNT( - + ( - - col1 ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5252
SELECT DISTINCT COUNT ( - + ( - - col1 ) ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - - col0 + 42 IS NULL OR - col1 NOT IN ( - col1 / - col1 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT - + 51 DIV ( - COUNT( * ) ) - - - ( + MAX( + col1 ) ) + + + COUNT( + ( - col2 ) ) * 33 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5254
SELECT - + 51 / ( - COUNT ( * ) ) - - - ( + MAX ( + col1 ) ) + + + COUNT ( + ( - col2 ) ) * 33 FROM tab2 AS cor0
----
39

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 > + col0 * + - 91 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 32 * + col0 AS col2 FROM tab0
----
-2784
-3104
-480

query I rowsort
SELECT + col2 * - 15 FROM tab1
----
-1020
-1440
-885

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT - COUNT( * ) AS col2, + COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5258
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL - 35 * - ( SUM( ALL + col1 ) ) * - + ( + - COUNT( ALL - + col1 ) ) AS col1 FROM tab2
----
20475

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - 35 * - ( SUM ( ALL + col1 ) ) * - + ( + - COUNT ( ALL - + col1 ) ) AS col1 FROM tab2
----
20475

query II rowsort
SELECT ALL 40 AS col2, + col1 * - + 94 FROM tab1
----
40
-1316
40
-4418
40
-470

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - ( - col1 ) + col2
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + col2 < NULL
----

query I rowsort
SELECT 49 AS col1 FROM tab2 cor0 WHERE NOT ( col2 <> col2 )
----
49
49
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col0 + - - ( col1 )
----

query I rowsort
SELECT DISTINCT col1 + + 54 FROM tab1 cor0
----
101
59
68

query I rowsort
SELECT ALL + 4 * + + col1 * col0 * - + col1 + + 27 FROM tab0 AS cor0
----
-153441
-361
-393633

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( + col1, + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + COUNT( ALL col1 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5268
SELECT + COUNT ( ALL col1 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL - CAST( NULL AS SIGNED ) + 80 * col0 * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - CAST ( NULL AS INTEGER ) + 80 * col0 * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 + 10 FROM tab2
----
127
135
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + COUNT( - 14 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5271
SELECT + COUNT ( - 14 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + 46 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT SUM( DISTINCT + + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5273
SELECT SUM ( DISTINCT + + col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col0 AS col0, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT + COUNT( * ) * - + 36 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5276
SELECT + COUNT ( * ) * - + 36 FROM tab0 AS cor0
----
-108

query I rowsort
SELECT col2 * + - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + 1 * - 93 * + 77 AS col2 FROM tab0 cor0
----
-7161
-7161
-7161

query I rowsort
SELECT + + col1 - + - col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT 69 + - - col0 + col0 * - col2 FROM tab2 AS cor0
----
-2427
-4206
-943

query I rowsort
SELECT - col0 - + 7 FROM tab2 AS cor0
----
-53
-71
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( + col2, 59, - 21, + col2 )
----
87
21
10

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL SUM( DISTINCT 99 ) - + - COUNT( * ) FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL SUM ( DISTINCT 99 ) - + - COUNT ( * ) FROM tab2 cor0
----
102

query I rowsort
SELECT 76 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) <= - col1
----
76
76
76

query II rowsort
SELECT DISTINCT - - col2 * + ( col0 ), ( - - col0 ) AS col1 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5287
SELECT DISTINCT - + col0 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - + col0 / - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 + col1 ) <> NULL
----

query I rowsort
SELECT ALL - ( + 50 ) FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-5290
SELECT ALL col1 AS col2, - col1 DIV col1 col1 FROM tab1 AS cor0
----
14
-1
47
-1
5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5290
SELECT ALL col1 AS col2, - col1 / col1 col1 FROM tab1 AS cor0
----
14
-1
47
-1
5
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5291
SELECT ALL + - SUM( + col1 ) * + COUNT( * ), 59 + CAST( 86 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-198
145

skipif mysql # not compatible
query II rowsort label-5291
SELECT ALL + - SUM ( + col1 ) * + COUNT ( * ), 59 + CAST ( 86 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-198
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 42 col2 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT - SUM( DISTINCT - 70 ) AS col1 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT - SUM ( DISTINCT - 70 ) AS col1 FROM tab2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT ALL - MIN( + + CAST( col0 AS SIGNED ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - MIN ( + + CAST ( col0 AS INTEGER ) ) FROM tab1
----
-51

query I rowsort
SELECT 76 * - 36 * - col2 * 16 FROM tab0
----
2057472
4333824
437760

query I rowsort
SELECT ( - 12 ) * + col0 AS col1 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT ALL - ( 86 ) FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5298
SELECT ALL - col0 * - col0 - col2 + - col2 col2, col0 * - 49 + + + CAST( col2 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
2070
-2208
4016
-3056
5509
-3559

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5298
SELECT ALL - col0 * - col0 - col2 + - col2 col2, col0 * - 49 + + + CAST ( col2 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
2070
-2208
4016
-3056
5509
-3559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT CAST( + 23 AS SIGNED ) FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5299
SELECT CAST ( + 23 AS INTEGER ) FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL col1 / - col0 * 12 AS col0 FROM tab1 AS cor0 WHERE col0 * + 21 * - - col1 IN ( - + ( - - col1 ) + + - 20 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 25 col0 FROM tab0
----
112
122
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL + 33 * - - ( + COUNT( * ) ) * COUNT( * ) + 19 + + 46 AS col0 FROM tab2 AS cor0
----
362

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL + 33 * - - ( + COUNT ( * ) ) * COUNT ( * ) + 19 + + 46 AS col0 FROM tab2 AS cor0
----
362

query I rowsort
SELECT + col1 * - 16 FROM tab1 AS cor0
----
-224
-752
-80

query I rowsort
SELECT + - 14 * - + col1 + - 90 FROM tab0 AS cor0
----
-76
1044
204

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= ( - col0 ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL + MIN( 16 ) FROM tab2 AS cor0 WHERE NOT NULL <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + MIN ( 16 ) FROM tab2 AS cor0 WHERE NOT NULL <> col0
----
NULL

query I rowsort
SELECT ALL - 70 + ( - - col1 ) FROM tab1 cor0
----
-23
-56
-65

query II rowsort
SELECT - - 19 + + col1 + + col0 AS col1, - 98 AS col0 FROM tab1 WHERE - - 68 IS NULL
----

query I rowsort
SELECT DISTINCT - 68 * 84 FROM tab2
----
-5712

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL + MAX( col1 ) FROM tab2 WHERE col2 BETWEEN 87 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + MAX ( col1 ) FROM tab2 WHERE col2 BETWEEN 87 AND NULL
----
NULL

query I rowsort
SELECT ALL + 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL COUNT( * ) + + 83 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
92

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL COUNT ( * ) + + 83 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT MAX( ALL - + 70 ) * 67 FROM tab1 AS cor0
----
-4690

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT MAX ( ALL - + 70 ) * 67 FROM tab1 AS cor0
----
-4690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2021
215
602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT DISTINCT + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / - ( - MIN( + col0 ) ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5316
SELECT DISTINCT + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / - ( - MIN ( + col0 ) ) col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT MIN( - - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT MIN ( - - col1 ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL 73, col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col2 AS col2, col2 * - 53 + - + col2 * col0 AS col2 FROM tab0
----
10
-1400
47
-3196
99
-14850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5320
SELECT CAST( NULL AS DECIMAL ) * - 38 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5320
SELECT CAST ( NULL AS REAL ) * - 38 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT + COUNT( ALL 56 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5321
SELECT + COUNT ( ALL 56 ) FROM tab1
----
3

query II rowsort
SELECT + col0 AS col0, - col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + COUNT( 21 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5324
SELECT + COUNT ( 21 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 28 * col2 * - 74 * - - col2 AS col0 FROM tab1
----
-19095552
-7212632
-9580928

query I rowsort
SELECT col0 * - 88 * 10 FROM tab1
----
-44880
-74800
-80080

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - MAX( ALL 77 ) AS col2 FROM tab2 WHERE ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT - MAX ( ALL 77 ) AS col2 FROM tab2 WHERE ( - col1 ) IS NULL
----
NULL

query I rowsort
SELECT - - col0 + - col2 + + col0 + col1 FROM tab0 cor0
----
185
64
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT - - col2 DIV - 59 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5329
SELECT - - col2 / - 59 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( - - 68 ) FROM tab0 AS cor0
----
-68
-68
-68

query II rowsort
SELECT DISTINCT ( + 27 ) AS col0, - col1 FROM tab2
----
27
-51
27
-67
27
-77

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN 62 AND NULL
----
46
64
75

query I rowsort
SELECT ALL 78 AS col0 FROM tab0 cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 - + ( - col2 ) + + col1 + + col0 * - col2 * + ( + + 50 ) col0 FROM tab1 AS cor0
----
-244707
-250703
-309302

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5335
SELECT * FROM tab0 AS cor0 WHERE + 15 * + 36 + - col1 * - CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5335
SELECT * FROM tab0 AS cor0 WHERE + 15 * + 36 + - col1 * - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 31 * + col2 + + col0 + + 69 - + - col2 FROM tab0 AS cor0
----
-1326
-144
-2804

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ( + 41 ) + + - COUNT( * ) AS col2 FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-5337
SELECT ( + 41 ) + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
38

query I rowsort
SELECT col0 * - ( + col0 ) + + + col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT + col1 + + 87 / col1 * - col2 + col0 - col0 + - + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5339
SELECT + col1 + + 87 / col1 * - col2 + col0 - col0 + - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT + MIN( ( + 20 ) ) * + COUNT( DISTINCT - + 56 ) + + 31 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5340
SELECT + MIN ( ( + 20 ) ) * + COUNT ( DISTINCT - + 56 ) + + 31 FROM tab0
----
51

query II rowsort
SELECT + 1, 16 AS col1 FROM tab1
----
1
16
1
16
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT MIN( ALL - 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT MIN ( ALL - 39 ) FROM tab2
----
-39

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col2 ) <> 45 * + - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5344
SELECT DISTINCT - col1 col0, CAST( NULL AS SIGNED ) + - ( - col2 ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5344
SELECT DISTINCT - col1 col0, CAST ( NULL AS INTEGER ) + - ( - col2 ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT DISTINCT + col1 * - - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NULL BETWEEN - ( col2 ) * + col2 + + col1 - 82 AND + ( col1 )
----

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT + col1 * - - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NULL BETWEEN - ( col2 ) * + col2 + + col1 - 82 AND + ( col1 )
----

query II rowsort
SELECT ALL + + col2 AS col2, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT + AVG ( + 89 ) FROM tab1 AS cor0 WHERE NOT 3 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + + 40 - - + 51 col2 FROM tab2 AS cor0
----
2692
4580
6020

query I rowsort
SELECT DISTINCT + 96 * + 58 AS col0 FROM tab2
----
5568

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 26 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + 65 FROM tab2 cor0
----
23
65
40
65
58
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL + 98 + + MAX( - 21 ) AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + 98 + + MAX ( - 21 ) AS col2 FROM tab1 AS cor0
----
77

query I rowsort
SELECT + 92 + - 33 AS col0 FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT ALL + + 99 + - 48 - - - col0 AS col1 FROM tab0 AS cor0
----
-36
-46
36

query II rowsort
SELECT ALL - 57 AS col2, 95 * - - col1 AS col2 FROM tab1 AS cor0
----
-57
1330
-57
4465
-57
475

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 * + col1 + - - col1 + - + col2, + col0 FROM tab0 AS cor0
----
-97
97
452
87
6595
15

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 + + col2 col2 FROM tab2 cor0
----
52
69
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5361
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5361
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL >= + 62
----
0

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL >= + 62
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 * + col1 AND NULL
----

query I rowsort
SELECT col1 * - ( - 52 ) FROM tab1
----
2444
260
728

query I rowsort
SELECT ALL ( + col0 ) * - + 29 + col0 FROM tab2
----
-1288
-1792
-2100

query II rowsort
SELECT 76 * 28, col0 AS col1 FROM tab1
----
2128
51
2128
85
2128
91

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN col0 + + col1 + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5368
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5368
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL - SUM( + - col2 ) + - - 17 FROM tab0 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - SUM ( + - col2 ) + - - 17 FROM tab0 AS cor0
----
173

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 1 IS NULL
----

query I rowsort
SELECT - col0 + - - 0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT + + CAST( + 71 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5372
SELECT + + CAST ( + 71 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT col2 * 96 AS col1 FROM tab2 AS cor0
----
2208
3840
5568

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * col0 - + 39 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - col0 - - ( + + col1 ) FROM tab1 cor0
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT + - 10 - col2 FROM tab0 AS cor0 WHERE NOT NULL < 69 * col1
----

query I rowsort
SELECT DISTINCT - col2 + + 72 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - SUM( + col1 ) * + 37 FROM tab0 AS cor0
----
-3811

skipif mysql # not compatible
query I rowsort label-5378
SELECT - SUM ( + col1 ) * + 37 FROM tab0 AS cor0
----
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT SUM( - - col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT SUM ( - - col2 ) AS col1 FROM tab2 cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT + col0 * col0 * - - col0 AS col1 FROM tab0 cor0
----
3375
658503
912673

query I rowsort
SELECT ALL 82 * + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 > + 36 )
----

query I rowsort
SELECT col2 * + ( + 6 ) FROM tab1
----
354
408
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col1 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL + ( + COUNT( * ) ) FROM tab1 WHERE col0 NOT IN ( + + col1 + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 WHERE col0 NOT IN ( + + col1 + col1 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT ALL + CAST( NULL AS SIGNED ) * + 64 + + 8 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL + CAST ( NULL AS INTEGER ) * + 64 + + 8 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5388
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + CAST( 98 AS SIGNED ) * + 51 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-5388
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + CAST ( 98 AS INTEGER ) * + 51 + - col0 )
----

query II rowsort
SELECT ALL - col2 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 = col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT - MAX( ALL + 82 ) FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - MAX ( ALL + 82 ) FROM tab2 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5392
SELECT col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5392
SELECT col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT ALL - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT - col0 DIV - 71 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5394
SELECT - col0 / - 71 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ( - COUNT( * ) ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT - ( + + 17 ) AS col0 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5397
SELECT ALL 28 DIV + 34 + - SUM( col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL 28 / + 34 + - SUM ( col1 ) FROM tab0
----
-103

query II rowsort
SELECT DISTINCT col1 * + 28 AS col1, col2 AS col2 FROM tab2
----
1428
23
1876
58
2156
40

query II rowsort
SELECT col1 + - 85 AS col2, col1 FROM tab1
----
-38
47
-71
14
-80
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col2 FROM tab2 WHERE - col2 NOT IN ( + col0, col2, col0 )
----
52
52
52

query I rowsort
SELECT ALL - ( + 96 ) AS col2 FROM tab1
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT 68 * - 40 + 23 * + + COUNT( col1 ) AS col1 FROM tab2
----
-2651

skipif mysql # not compatible
query I rowsort label-5402
SELECT 68 * - 40 + 23 * + + COUNT ( col1 ) AS col1 FROM tab2
----
-2651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT DISTINCT CAST( NULL AS SIGNED ) - - ( - + 15 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - ( - + 15 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT MIN( ALL - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab2
----
-75

query II rowsort
SELECT DISTINCT - - col1 AS col0, 62 AS col2 FROM tab1 AS cor0
----
14
62
47
62
5
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * - 89 <> - col2 - + col0
----

query I rowsort
SELECT DISTINCT - 47 * + 51 + ( - col1 ) FROM tab0 AS cor0
----
-2398
-2418
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL 4 * COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL <= 63
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL 4 * COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL <= 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT 58 * + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT 58 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + col2 - + + col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 34 + - col2 * + 28 FROM tab2
----
-1086
-1590
-610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT ALL 63 - + 1 + - col1 * + col1 + + CAST( + - col2 AS SIGNED ) FROM tab0
----
-38
-389
-6546

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 63 - + 1 + - col1 * + col1 + + CAST ( + - col2 AS INTEGER ) FROM tab0
----
-38
-389
-6546

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT COUNT( * ) * - 57 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5413
SELECT COUNT ( * ) * - 57 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT + col0 * ( - + col0 ) FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT MAX( - 58 ) * 4 AS col2 FROM tab1 cor0
----
-232

skipif mysql # not compatible
query I rowsort label-5415
SELECT MAX ( - 58 ) * 4 AS col2 FROM tab1 cor0
----
-232

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 * - col0 IS NULL ) OR NOT - col0 BETWEEN NULL AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - - ( + + col0 ) * ( + col1 ) + + + col2 FROM tab1 cor0
----
25134
290904
68640

query I rowsort
SELECT col0 * + 6 * - + col0 * + + col0 AS col2 FROM tab2
----
-1572864
-2531250
-584016

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT + 78 + MIN( - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 78 + MIN ( - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-13

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - ( 72 ) AS col2 FROM tab1 AS cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= 27 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT MIN( DISTINCT + - 81 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5424
SELECT MIN ( DISTINCT + - 81 ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL col1 + - - 3 * 0 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - - 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query II rowsort
SELECT col0 + + + col1 AS col1, 31 * + col2 FROM tab2
----
141
1240
142
1798
97
713

query I rowsort
SELECT col2 * - - col2 + col2 + + col2 FROM tab0
----
120
2303
9999

query I rowsort
SELECT DISTINCT + - 43 AS col1 FROM tab2 cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5430
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 90 = - + CAST( NULL AS SIGNED ) + - CAST( - 81 AS DECIMAL ) * - - col0
----

skipif mysql # not compatible
query III rowsort label-5430
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 90 = - + CAST ( NULL AS INTEGER ) + - CAST ( - 81 AS REAL ) * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT - col2 + + + 99 + + + CAST( + 13 AS SIGNED ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT - col2 + + + 99 + + + CAST ( + 13 AS INTEGER ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 31 + - - 59 FROM tab2 AS cor0
----
-12
-30
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT 17 + - MIN( ALL + col0 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5433
SELECT 17 + - MIN ( ALL + col0 ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NOT col2 <> + col2
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + COUNT( * ) + - 68 * COUNT( * ) FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-5436
SELECT + COUNT ( * ) + - 68 * COUNT ( * ) FROM tab2 AS cor0
----
-201

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND - 15 + + + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT 42 + + COUNT( * ) * - MAX( DISTINCT + 3 ) col1 FROM tab0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5439
SELECT DISTINCT 42 + + COUNT ( * ) * - MAX ( DISTINCT + 3 ) col1 FROM tab0
----
33

query I rowsort
SELECT ALL + - ( + col1 ) + + - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-162
-2
-42

query I rowsort
SELECT ALL + col0 * - - col0 * - col2 - + 81 FROM tab0
----
-10656
-75771
-931572

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL - MIN( - - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - MIN ( - - col0 ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - - col1 ) * + col1 * + 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 - col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT 60 * COUNT( DISTINCT + 94 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5446
SELECT 60 * COUNT ( DISTINCT + 94 ) FROM tab1
----
60

query II rowsort
SELECT ALL - col1, col2 FROM tab0 WHERE - 46 IS NOT NULL
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL col0 * + + col0 * - col2 AS col1 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - 49 + - - col2 / + col2 IS NULL
----

query I rowsort
SELECT - 44 * + + 12 * + 46 FROM tab2 cor0
----
-24288
-24288
-24288

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT DISTINCT - col2 DIV col0 * + col0 FROM tab0 AS cor0
----
-45
-97
0

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - col2 / col0 * + col0 FROM tab0 AS cor0
----
-45
-97
0

query II rowsort
SELECT ALL - col1 AS col0, 37 FROM tab0 AS cor0
----
-1
37
-21
37
-81
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 >= - 58 * - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT col2 + - + col2 * + 13 * - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT - - 76 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT - - 76 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 AS col1 FROM tab0 AS cor0 WHERE NOT 35 + + 83 IS NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5457
SELECT DISTINCT - - col2 DIV + + col2, + CAST( 18 AS SIGNED ) AS col0 FROM tab1 cor0
----
1
18

skipif mysql # not compatible
query II rowsort label-5457
SELECT DISTINCT - - col2 / + + col2, + CAST ( 18 AS INTEGER ) AS col0 FROM tab1 cor0
----
1
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT - col0 * + 26 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT - col0 * + 26 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL 1 * - COUNT ( * ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT ( + - 21 ) AS col1, - col2 - - 79 + 10 * ( 72 ) FROM tab0
----
-21
700
-21
752
-21
789

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT ALL COUNT( * ) * 5, COUNT( * ) AS col0 FROM tab2
----
15
3

skipif mysql # not compatible
query II rowsort label-5461
SELECT ALL COUNT ( * ) * 5, COUNT ( * ) AS col0 FROM tab2
----
15
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT ALL col2 * - - col0 DIV col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL col2 * - - col0 / col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab1 AS cor0 WHERE NULL = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT - COUNT( ALL - 14 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT - COUNT ( ALL - 14 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT 34 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL + SUM( DISTINCT - - 64 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + SUM ( DISTINCT - - 64 ) FROM tab0
----
64

query I rowsort
SELECT + + 58 FROM tab2 AS cor0 WHERE ( 64 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT 30 + - COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT 30 + - COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5470
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE CAST( col2 AS DECIMAL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE CAST ( col2 AS REAL ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + COUNT( * ) + + - 65 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-62

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + COUNT ( * ) + + - 65 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT - 10 + + + COUNT( - - 71 ) + + 36 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 10 + + + COUNT ( - - 71 ) + + 36 FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL - + 32 + + + 73 AS col2 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + 45 FROM tab2 WHERE NOT 11 + col0 IS NULL AND ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * + 21 col0 FROM tab2
----
-1143
-437
-776

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5477
SELECT - col0 * col0 * + col2 / ( col0 ) / + CAST( NULL AS SIGNED ) + + col1 AS col2, + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5477
SELECT - col0 * col0 * + col2 / ( col0 ) / + CAST ( NULL AS INTEGER ) + + col1 AS col2, + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL MAX( + 71 ) + + ( + + 3 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL MAX ( + 71 ) + + ( + + 3 ) AS col2 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE - 19 - + - col0 * 21 NOT BETWEEN ( NULL ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - + COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5482
SELECT - + COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT - + 24 * COUNT( DISTINCT - col0 ) AS col0 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5483
SELECT - + 24 * COUNT ( DISTINCT - col0 ) AS col0 FROM tab2 cor0
----
-72

query I rowsort
SELECT ALL + + 70 AS col2 FROM tab0 WHERE + 28 IS NOT NULL OR NULL IS NOT NULL
----
70
70
70

query I rowsort
SELECT + 13 * + col2 * col0 FROM tab0 AS cor0
----
11310
124839
9165

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 87 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 53 IS NULL
----

query I rowsort
SELECT DISTINCT - 48 * - + 56 AS col1 FROM tab1 AS cor0
----
2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 col2 FROM tab2 AS cor0
----
-99
-99
-99

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * 95 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 98 - - 62 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - col2 + col2 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5494
SELECT + 16 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT + 16 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT + CAST( - + CAST( 9 AS SIGNED ) AS SIGNED ) FROM tab0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5495
SELECT + CAST ( - + CAST ( 9 AS INTEGER ) AS INTEGER ) FROM tab0
----
-9
-9
-9

query II rowsort
SELECT ALL col0, ( 16 ) * - + ( + + 0 ) * - + col1 + + 67 AS col1 FROM tab0
----
15
67
87
67
97
67

query I rowsort
SELECT DISTINCT ( - ( + + col2 ) ) * - 63 AS col2 FROM tab1
----
3717
4284
6048

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT DISTINCT - ( + + col1 ) DIV - col1 + - col1 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - ( + + col1 ) / - col1 + - col1 FROM tab0
----
-20
-80
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + ( - 38 ) col0 FROM tab0
----
-3306
-3686
-570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5500
SELECT COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 88 - - 19 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT - col1 DIV + 13 + + 91 * - - col0 DIV + + col0 AS col0 FROM tab1 AS cor0
----
88
90
91

skipif mysql # not compatible
query I rowsort label-5502
SELECT - col1 / + 13 + + 91 * - - col0 / + + col0 AS col0 FROM tab1 AS cor0
----
88
90
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT - - ( MIN( + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5503
SELECT - - ( MIN ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

query II rowsort
SELECT - - col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5505
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 59 IS NULL
----
0

query I rowsort
SELECT + col0 + - 79 AS col0 FROM tab0 cor0
----
-64
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL + MIN( ALL 8 ) AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + MIN ( ALL 8 ) AS col1 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL + 72 FROM tab1 AS cor0 WHERE NOT + col2 + CAST( - 77 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + 72 FROM tab1 AS cor0 WHERE NOT + col2 + CAST ( - 77 AS INTEGER ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 IS NULL
----

query I rowsort
SELECT ALL + - ( - + col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5511
SELECT 58 - + col1 * CAST( NULL AS SIGNED ) AS col0, 16 AS col2 FROM tab1
----
NULL
16
NULL
16
NULL
16

skipif mysql # not compatible
query II rowsort label-5511
SELECT 58 - + col1 * CAST ( NULL AS INTEGER ) AS col0, 16 AS col2 FROM tab1
----
NULL
16
NULL
16
NULL
16

query III rowsort
SELECT * FROM tab0 WHERE - col0 > NULL
----

query I rowsort
SELECT DISTINCT ( + + 90 ) - ( col2 ) FROM tab0
----
-9
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + MAX( DISTINCT - 57 ) - - + 22 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-5514
SELECT + MAX ( DISTINCT - 57 ) - - + 22 FROM tab0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT DISTINCT col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL - COUNT( * ) - + - 91 + + - 5 + - COUNT( * ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - COUNT ( * ) - + - 91 + + - 5 + - COUNT ( * ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL - - ( + 7 ) FROM tab0 AS cor0
----
7
7
7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE - col0 * - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + + col2
----

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE - col0 * - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + + col2
----

query I rowsort
SELECT DISTINCT + + 29 AS col2 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - - COUNT( * ) * - 98 FROM tab1 cor0 WHERE NOT col0 + + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT - - COUNT ( * ) * - 98 FROM tab1 cor0 WHERE NOT col0 + + col2 <= NULL
----
0

query I rowsort
SELECT - - 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL + SUM( col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + SUM ( col1 ) AS col1 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + COUNT( * ) * 15 AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5524
SELECT + COUNT ( * ) * 15 AS col0 FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT + CAST( - 70 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-5525
SELECT + CAST ( - 70 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT - col0 * + - 83 * - - ( 1 ) AS col2 FROM tab0
----
1245
7221
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL COUNT( col0 ) * COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL COUNT ( col0 ) * COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT - col2 * - + ( col2 ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT col1 * col1 + + - col1 FROM tab0 WHERE NOT - 78 * + + col1 > col1
----
0
420
6480

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 55 * - - ( + col1 ) FROM tab2
----
2805
3685
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT - col1 + CAST( col0 AS SIGNED ) - - 4 * col2 * ( + 9 ) * - ( col1 ) FROM tab1 AS cor0
----
-10540
-115012
-48347

skipif mysql # not compatible
query I rowsort label-5532
SELECT - col1 + CAST ( col0 AS INTEGER ) - - 4 * col2 * ( + 9 ) * - ( col1 ) FROM tab1 AS cor0
----
-10540
-115012
-48347

query I rowsort
SELECT + - col1 * - + col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT - ( + + 99 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT + + MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - col2 + 71 + - - col0 FROM tab0 cor0
----
148
39
69

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

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

query I rowsort
SELECT col2 + + + col0 + + col1 FROM tab0 WHERE NOT - + 69 IS NULL
----
118
143
197

query I rowsort
SELECT col2 * - - col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT - + 51 * + - 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
204

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 92 BETWEEN NULL AND + col2 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT - 18 DIV 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT - 18 / 63 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 72 FROM tab2 cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 col0 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT 62 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + + 13 + - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL - MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col2 * + ( - ( col1 ) ) col0 FROM tab2 AS cor0
----
46
-1173
64
-3080
75
-3886

query I rowsort
SELECT - + 39 + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-137
-28
-5

query I rowsort
SELECT ALL - 70 * - + col1 + col1 + col1 FROM tab1 AS cor0
----
1008
3384
360

query I rowsort
SELECT col2 + + + 52 FROM tab2
----
110
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT + 78 + 4 * + 66 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5551
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + 78 + 4 * + 66 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 81 ) col2 FROM tab0
----
-81
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 >= + col2
----

query I rowsort
SELECT ALL - col1 + - - col0 + - col2 * 10 FROM tab0 AS cor0
----
-34
-536
-894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 41 col0 FROM tab0 AS cor0
----
-40
20
40

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - - col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + - - 61 FROM tab2
----
-14
-3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL - + COUNT( * ) * + - MAX( DISTINCT + - 36 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-333

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - + COUNT ( * ) * + - MAX ( DISTINCT + - 36 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-333

query I rowsort
SELECT 43 + - - col2 AS col0 FROM tab1
----
102
111
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT 82 * + MIN( col0 ) + + + COUNT( * ) col1 FROM tab0 AS cor0
----
1233

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5561
SELECT DISTINCT 82 * + MIN ( col0 ) + + + COUNT ( * ) col1 FROM tab0 AS cor0
----
1233

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col2 <= + 10
----
21

query I rowsort
SELECT DISTINCT - col0 - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT + ( MAX( 14 ) ) AS col2 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5564
SELECT + ( MAX ( 14 ) ) AS col2 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT col0 * + col2 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE + col1 IN ( - 57, - 43 )
----

skipif mysql # not compatible
query I rowsort label-5565
SELECT col0 * + col2 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE + col1 IN ( - 57, - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT - MIN( ALL - col2 ) + - 81 col2 FROM tab0 AS cor0 WHERE NOT NULL <= - ( col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5566
SELECT DISTINCT - MIN ( ALL - col2 ) + - 81 col2 FROM tab0 AS cor0 WHERE NOT NULL <= - ( col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT 53 DIV - 27 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5567
SELECT 53 / - 27 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT ALL CAST( NULL AS SIGNED ) * col1 * - col2 / 46 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL CAST ( NULL AS INTEGER ) * col1 * - col2 / 46 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT + 91 DIV + 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + 91 / + 99 FROM tab2
----
0

query I rowsort
SELECT 59 FROM tab2 WHERE NOT - 84 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT + CAST( - col1 AS SIGNED ) * + + col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5572
SELECT + CAST ( - col1 AS INTEGER ) * + + col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT SUM( col0 ) * ( + MIN( ALL + col0 ) ) FROM tab0
----
2985

skipif mysql # not compatible
query I rowsort label-5573
SELECT SUM ( col0 ) * ( + MIN ( ALL + col0 ) ) FROM tab0
----
2985

query II rowsort
SELECT - 66 AS col0, - col0 + - col2 + + col0 FROM tab1
----
-66
-59
-66
-68
-66
-96

query I rowsort
SELECT ALL - ( + col2 ) * + col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT - 84 AS col2, - COUNT( * ) AS col1 FROM tab0
----
-84
-3

skipif mysql # not compatible
query II rowsort label-5576
SELECT - 84 AS col2, - COUNT ( * ) AS col1 FROM tab0
----
-84
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0, 80 + col0 FROM tab0 AS cor0
----
15
95
87
167
97
177

query II rowsort
SELECT 46 AS col0, col2 FROM tab1 cor0
----
46
59
46
68
46
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT + ( - COUNT( DISTINCT - - col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT + ( - COUNT ( DISTINCT - - col1 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * + 98 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 39 AS col1 FROM tab0 cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 + + ( col2 ) + col0 + col2 col1 FROM tab2 AS cor0
----
1150
2704
4541

query I rowsort
SELECT ALL - 58 + + 45 AS col2 FROM tab1
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - 95 * - MAX( + 99 ) FROM tab2, tab1 AS cor0
----
9405

skipif mysql # not compatible
query I rowsort label-5588
SELECT - 95 * - MAX ( + 99 ) FROM tab2, tab1 AS cor0
----
9405

query I rowsort
SELECT DISTINCT col0 + - 92 FROM tab0
----
-5
-77
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5590
SELECT ALL COUNT( * ) DIV 90 + - MIN( + - 19 ) AS col2 FROM tab1, tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL COUNT ( * ) / 90 + - MIN ( + - 19 ) AS col2 FROM tab1, tab0 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-5591
SELECT - col0 DIV col1 * - col1 AS col2, col0 * + 95 FROM tab0 AS cor0
----
0
1425
84
8265
97
9215

skipif mysql # not compatible
query II rowsort label-5591
SELECT - col0 / col1 * - col1 AS col2, col0 * + 95 FROM tab0 AS cor0
----
0
1425
84
8265
97
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT MIN( ALL 83 ) AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5592
SELECT MIN ( ALL 83 ) AS col1 FROM tab2
----
83

query III rowsort
SELECT * FROM tab0 WHERE col2 * + 81 + col0 NOT BETWEEN 81 + col2 AND - col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * - col2 col1 FROM tab1
----
-5664
-6528
-9216

query I rowsort
SELECT DISTINCT 86 - + col1 AS col0 FROM tab0
----
5
65
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT + col0 DIV ( col0 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5596
SELECT + col0 / ( col0 ) FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT DISTINCT col2 col1 FROM tab2 WHERE - 55 NOT BETWEEN + ( - col2 ) * - CAST( + col1 * 38 - - col0 * col0 AS SIGNED ) AND + col1
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5597
SELECT DISTINCT col2 col1 FROM tab2 WHERE - 55 NOT BETWEEN + ( - col2 ) * - CAST ( + col1 * 38 - - col0 * col0 AS INTEGER ) AND + col1
----
23
40
58

query I rowsort
SELECT DISTINCT - ( 57 ) + col1 FROM tab2
----
-6
10
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT - 40 * - CAST( NULL AS SIGNED ) + + col1 / col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT - 40 * - CAST ( NULL AS INTEGER ) + + col1 / col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 92 FROM tab1 WHERE NULL NOT IN ( 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5601
SELECT CAST( NULL AS SIGNED ) / + col0 - + col2 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5601
SELECT CAST ( NULL AS INTEGER ) / + col0 - + col2 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT DISTINCT 20 + CAST( 26 AS SIGNED ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT 20 + CAST ( 26 AS INTEGER ) FROM tab0
----
46

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - col2 NOT IN ( + col2 * 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - COUNT( ALL + ( - col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5604
SELECT - COUNT ( ALL + ( - col0 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col0 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT ALL CAST( - 83 AS SIGNED ) FROM tab1 WHERE NOT - 41 * - CAST( NULL AS SIGNED ) > - col1
----

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL CAST ( - 83 AS INTEGER ) FROM tab1 WHERE NOT - 41 * - CAST ( NULL AS INTEGER ) > - col1
----

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN ( + 76 ) AND + col0
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * col1 >= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 79 + 43 FROM tab1
----
122
122
122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + + col1 col0 FROM tab2
----
38
54
64

query III rowsort
SELECT * FROM tab1 WHERE ( 54 * 50 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL COUNT( col2 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL COUNT ( col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab0 cor0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT ALL + ( - col2 ) DIV 68 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL + ( - col2 ) / 68 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 18 FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) + - 8 col0 FROM tab0 AS cor0
----
7
79
89

query I rowsort
SELECT DISTINCT + 70 / - ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 59 AS col0 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT + 98 + 98 FROM tab1 cor0
----
196
196
196

query I rowsort
SELECT 62 + 27 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT ALL + - 98 DIV col1 + col1 AS col1 FROM tab1 AS cor0
----
-14
45
7

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL + - 98 / col1 + col1 AS col1 FROM tab1 AS cor0
----
-14
45
7

query I rowsort
SELECT + ( - ( + col1 ) ) + 59 FROM tab1 AS cor0
----
12
45
54

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE 42 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL - 16 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - 16 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 88 + COUNT( * ) FROM tab0 WHERE + col0 * - 66 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-5626
SELECT 88 + COUNT ( * ) FROM tab0 WHERE + col0 * - 66 IS NOT NULL
----
91

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE ( col0 ) >= col1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT ( 12 ) + - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT ( 12 ) + - COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL - ( - ( + SUM( - 14 ) ) ) + ( 15 + COUNT( * ) ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - ( - ( + SUM ( - 14 ) ) ) + ( 15 + COUNT ( * ) ) FROM tab1
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - - col2 col0 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT ALL - MAX( DISTINCT col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - MAX ( DISTINCT col1 ) FROM tab2
----
-77

query I rowsort
SELECT ( - 72 ) * - 75 FROM tab2
----
5400
5400
5400

query I rowsort
SELECT col1 * - col0 * col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5634
SELECT 40 DIV + ( COUNT( * ) ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-5634
SELECT 40 / + ( COUNT ( * ) ) FROM tab1
----
13

query I rowsort
SELECT col2 - - - 81 * + 22 FROM tab2 AS cor0
----
-1724
-1742
-1759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5636
SELECT DISTINCT ( ( + SUM( - col1 ) ) ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT ( ( + SUM ( - col1 ) ) ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * col0 + 37 FROM tab2 AS cor0
----
2383
4965
5062

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT MIN( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NOT NULL AND NOT ( + col0 - + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NOT NULL AND NOT ( + col0 - + col2 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) + col2 * + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) + col2 * + col0 AS col0 FROM tab1