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 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - COUNT( * ) * - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-5640
SELECT - COUNT ( * ) * - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
99

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab2 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 88 NOT IN ( + 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5644
SELECT ALL - 26, COUNT( * ) col1 FROM tab2 AS cor0
----
-26
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5645
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( 58 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5645
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( 58 AS INTEGER ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT 51 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-5646
SELECT 51 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
51
3

query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT DISTINCT + 72 * + col2 FROM tab1 AS cor0
----
4248
4896
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT + MAX( ALL + 41 ) AS col0 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT + MAX ( ALL + 41 ) AS col0 FROM tab2 AS cor0
----
41

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT - 17 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT - 17 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT + col2 DIV + col1 * - - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT + col2 / + col1 * - - col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 15 * + ( - col2 ) AS col0 FROM tab0
----
1485
150
705

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL - COUNT( + + 30 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - COUNT ( + + 30 ) FROM tab0
----
-3

query II rowsort
SELECT + col2 * + + col2 AS col1, col1 FROM tab0
----
100
21
2209
81
9801
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT DISTINCT 30 * ( COUNT( * ) ) AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT 30 * ( COUNT ( * ) ) AS col0 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - COUNT( * ) * + 20 col0 FROM tab0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5657
SELECT - COUNT ( * ) * + 20 col0 FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL + 23 * MAX( ALL col0 ) + - 22 FROM tab0 WHERE - + 35 + + col0 - col1 NOT BETWEEN + 8 AND col2
----
1979

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + 23 * MAX ( ALL col0 ) + - 22 FROM tab0 WHERE - + 35 + + col0 - col1 NOT BETWEEN + 8 AND col2
----
1979

query I rowsort
SELECT ALL + ( 59 ) + col2 * + 66 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 + col0 )
----

query I rowsort
SELECT - col2 * - 30 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT ALL 3 * MIN( ALL - + 88 ), MAX( DISTINCT - - col1 ) col0 FROM tab2
----
-264
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5661
SELECT ALL 3 * MIN ( ALL - + 88 ), MAX ( DISTINCT - - col1 ) col0 FROM tab2
----
-264
77

query I rowsort
SELECT DISTINCT 21 * + - col1 FROM tab1
----
-105
-294
-987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT + col0 FROM tab0 AS cor0 WHERE col1 IN ( col2, CAST( + - col1 AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-5663
SELECT + col0 FROM tab0 AS cor0 WHERE col1 IN ( col2, CAST ( + - col1 AS INTEGER ) + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * 2 AS col2 FROM tab2 cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 76 NOT IN ( + 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT DISTINCT COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5666
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5667
SELECT + + col0 AS col2, CAST( NULL AS SIGNED ) * - col0 + - 80 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5667
SELECT + + col0 AS col2, CAST ( NULL AS INTEGER ) * - col0 + - 80 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

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

query I rowsort
SELECT + 72 + + + 37 * + 76 FROM tab1 AS cor0
----
2884
2884
2884

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT 70 + - + MAX( ALL + + col1 ) FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5670
SELECT 70 + - + MAX ( ALL + + col1 ) FROM tab1 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 2 * - - ( - col1 ) * - 27 ) AND NOT + col0 + CAST( 43 + ( - col2 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 2 * - - ( - col1 ) * - 27 ) AND NOT + col0 + CAST ( 43 + ( - col2 ) AS INTEGER ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT - col1 + + + CAST ( NULL AS INTEGER ) - - - ( - + 26 ) * + 7 * col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 84 * + col0 + - col1 FROM tab1
----
-4298
-7145
-7691

query I rowsort
SELECT ALL - col2 - 33 * - + col1 FROM tab0
----
-66
2626
683

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL + 63 + - 45 - + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + 63 + - 45 - + COUNT ( * ) FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - 18 + - + 96 IS NULL )
----

query I rowsort
SELECT + col2 + + + 32 AS col1 FROM tab2
----
55
72
90

query I rowsort
SELECT 19 * + col0 FROM tab0 WHERE ( NULL ) BETWEEN col0 AND ( + col2 * + 52 * + col0 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE col0 / - - col0 BETWEEN col0 + + col2 * + col0 AND ( NULL )
----

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

query II rowsort
SELECT ALL col0 AS col2, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL + - COUNT( - + 35 ) FROM tab0 WHERE ( col1 <> NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + - COUNT ( - + 35 ) FROM tab0 WHERE ( col1 <> NULL )
----
0

query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab0 WHERE ( + + col1 / + - col1 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5685
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) / - ( 88 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5685
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) / - ( 88 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col2, + col2 + + + col1 + col2 + + col0 * - - col2 * + col0 + + 99 * 57 * col1 FROM tab0 AS cor0
----
10
194234
47
467833
99
937333

query I rowsort
SELECT ALL + 45 + + col0 AS col2 FROM tab2 AS cor0
----
109
120
91

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

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab1
----
-12

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

query I rowsort
SELECT - 0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14 * + col0 col2, 10 FROM tab0 AS cor0
----
1218
10
1358
10
210
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT MAX( - col2 ) AS col1, + ( - - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-5693
SELECT MAX ( - col2 ) AS col1, + ( - - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-23
3

query I rowsort
SELECT 93 * 16 FROM tab2
----
1488
1488
1488

query I rowsort
SELECT ALL col1 * + 81 AS col0 FROM tab1
----
1134
3807
405

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT 27 * - col2 AS col2 FROM tab0
----
-1269
-2673
-270

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 2 + col0 ) IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-5700
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= col0
----
0

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN ( col1 - - 24 + + col1 / - col0 ) AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT + 66 + + 45, + ( - + COUNT( * ) ) AS col2 FROM tab0
----
111
-3

skipif mysql # not compatible
query II rowsort label-5702
SELECT + 66 + + 45, + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
111
-3

query I rowsort
SELECT - 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query II rowsort
SELECT - + ( col0 ) AS col2, 90 * col1 AS col1 FROM tab0 WHERE col1 + + - 8 / col2 IS NOT NULL
----
-15
7290
-87
1890
-97
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT - 33 + + + SUM( ALL - + 75 ) col1 FROM tab0
----
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT - 33 + + + SUM ( ALL - + 75 ) col1 FROM tab0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT + MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - + col0 + + col1 * - 50 + col2 + - col1 * col0 * ( - col1 ) FROM tab2 AS cor0
----
117073
333308
375582

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

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

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE 74 IS NULL
----

query I rowsort
SELECT 61 + + + col0 AS col1 FROM tab1 AS cor0
----
112
146
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL 64 + + ( + COUNT( * ) ) col1 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5711
SELECT ALL 64 + + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
67

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= 84 + + col0 / + 80
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 4 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + col1 + - col0 * + col1 FROM tab1
----
-2068
-400
-518

query I rowsort
SELECT ALL - 14 - 13 AS col2 FROM tab0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT - col2 AS col1 FROM tab2 WHERE + - col1 + - 21 NOT IN ( CAST( + - col0 AS SIGNED ) )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5718
SELECT - col2 AS col1 FROM tab2 WHERE + - col1 + - 21 NOT IN ( CAST ( + - col0 AS INTEGER ) )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT - COUNT( * ) - COUNT( * ) + + 62 - COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) + + 62 - COUNT ( * ) FROM tab2
----
53

query I rowsort
SELECT ALL ( + - ( ( - col1 ) ) ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5721
SELECT DISTINCT 18 - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT 18 - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT + COUNT( * ) * + + 42 AS col1 FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-5724
SELECT + COUNT ( * ) * + + 42 AS col1 FROM tab2 cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5725
SELECT col1 AS col2, 29 DIV CAST( 18 AS SIGNED ) FROM tab0 cor0
----
1
1
21
1
81
1

skipif mysql # not compatible
query II rowsort label-5725
SELECT col1 AS col2, 29 / CAST ( 18 AS INTEGER ) FROM tab0 cor0
----
1
1
21
1
81
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - col1 + 96 <> col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT 91 * - 96 col0, COUNT( * ) FROM tab0
----
-8736
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5727
SELECT 91 * - 96 col0, COUNT ( * ) FROM tab0
----
-8736
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * col1 col0 FROM tab0
----
1470
5670
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 93 * 70 col1 FROM tab2
----
149730
260400
377580

query I rowsort
SELECT 24 * + col0 + + 32 FROM tab1
----
1256
2072
2216

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

query II rowsort
SELECT 45 AS col1, col2 FROM tab1
----
45
59
45
68
45
96

query II rowsort
SELECT + col2 AS col0, - col2 AS col2 FROM tab2 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL - + 38 * + - 54 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0b798a8c506a492831ecb88821db3bf3

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----
0

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

skipif mysql # not compatible
query I rowsort label-5737
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col1 - - col0 IS NULL )
----
0

query I rowsort
SELECT - 57 - col0 AS col2 FROM tab0 AS cor0
----
-144
-154
-72

query I rowsort
SELECT - + col1 - + col1 * - - 68 FROM tab0 AS cor0
----
-1449
-5589
-69

query II rowsort
SELECT ALL + + 57 + 21 + 25, col1 FROM tab1 AS cor0
----
103
14
103
47
103
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT - COUNT( * ) + 19 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT - COUNT ( * ) + 19 FROM tab1 AS cor0
----
16

query I rowsort
SELECT - 16 + - - col1 AS col0 FROM tab0 AS cor0
----
-15
5
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT + col0 * + CAST( + + 91 AS SIGNED ) + + 4 + 11 FROM tab1 AS cor0
----
4656
7750
8296

skipif mysql # not compatible
query I rowsort label-5743
SELECT + col0 * + CAST ( + + 91 AS INTEGER ) + + 4 + 11 FROM tab1 AS cor0
----
4656
7750
8296

query I rowsort
SELECT + col2 * 72 + + col0 * 32 FROM tab0
----
10232
3504
3864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5745
SELECT DISTINCT COUNT( - 59 ) DIV + + 28 + - + COUNT( * ) col0, 76 FROM tab2
----
-3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5745
SELECT DISTINCT COUNT ( - 59 ) / + + 28 + - + COUNT ( * ) col0, 76 FROM tab2
----
-3
76

query III rowsort
SELECT * FROM tab1 WHERE - 73 - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 86 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT 38 * + COUNT( * ) + - - 30 - 35 FROM tab1
----
109

skipif mysql # not compatible
query I rowsort label-5748
SELECT 38 * + COUNT ( * ) + - - 30 - 35 FROM tab1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT 82 - + COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT 82 - + COUNT ( * ) FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL 14 - COUNT( * ) AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL 14 - COUNT ( * ) AS col0 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT - MIN( ALL - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5751
SELECT - MIN ( ALL - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5752
SELECT - - col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT - - col1 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT col1 DIV col1 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5753
SELECT DISTINCT col1 / col1 col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 - - + col1 * + + 66 * + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 - - + col1 * + + 66 * + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT DISTINCT + 59 AS col0, SUM( DISTINCT + 1 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5755
SELECT DISTINCT + 59 AS col0, SUM ( DISTINCT + 1 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT + COUNT( * ) * 66 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5756
SELECT + COUNT ( * ) * 66 FROM tab2 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT ALL + + 17 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + + 17 / col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( + + 61 ) + - 24 AS col0 FROM tab1 AS cor0
----
37
37
37

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

query II rowsort
SELECT - col0 AS col0, + col2 * - 41 + + col0 AS col0 FROM tab0 AS cor0
----
-15
-1912
-87
-323
-97
-3962

query II rowsort
SELECT ALL col1, + 15 AS col2 FROM tab0
----
1
15
21
15
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT COUNT( * ) * 86 + + COUNT( DISTINCT + 35 ) AS col1 FROM tab1 AS cor0
----
259

skipif mysql # not compatible
query I rowsort label-5762
SELECT COUNT ( * ) * 86 + + COUNT ( DISTINCT + 35 ) AS col1 FROM tab1 AS cor0
----
259

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5763
SELECT - col1 AS col0, + 28 * + CAST( 24 AS SIGNED ) FROM tab2 AS cor0
----
-51
672
-67
672
-77
672

skipif mysql # not compatible
query II rowsort label-5763
SELECT - col1 AS col0, + 28 * + CAST ( 24 AS INTEGER ) FROM tab2 AS cor0
----
-51
672
-67
672
-77
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT DISTINCT + - ( col0 ) + - CAST( + + 10 AS SIGNED ) + + + 87 AS col1 FROM tab1 AS cor0
----
-14
-8
26

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + - ( col0 ) + - CAST ( + + 10 AS INTEGER ) + + + 87 AS col1 FROM tab1 AS cor0
----
-14
-8
26

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

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

query I rowsort
SELECT - col2 + 58 AS col0 FROM tab1 AS cor0
----
-1
-10
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5767
SELECT ALL * FROM tab1 cor0 WHERE NOT 92 >= - col2 + CAST( NULL AS SIGNED ) * - - 18
----

skipif mysql # not compatible
query III rowsort label-5767
SELECT ALL * FROM tab1 cor0 WHERE NOT 92 >= - col2 + CAST ( NULL AS INTEGER ) * - - 18
----

query I rowsort
SELECT + - 64 / - col0 AS col2 FROM tab1 AS cor0 WHERE + col2 * - - col1 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT + ( + + CAST( col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5769
SELECT + ( + + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT - 33 * - + 27 * 90 FROM tab2 cor0
----
80190

query I rowsort
SELECT DISTINCT col0 + col1 * - 95 AS col2 FROM tab1 AS cor0
----
-1279
-390
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL ( 4 ) * + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL ( 4 ) * + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT DISTINCT - 19 - + + CAST( + + 59 AS SIGNED ) col2 FROM tab2
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5775
SELECT DISTINCT - 19 - + + CAST ( + + 59 AS INTEGER ) col2 FROM tab2
----
-78

query I rowsort
SELECT ( + 39 ) AS col2 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT 69 * 51 * MAX( 45 ) FROM tab2 AS cor0
----
158355

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT 69 * 51 * MAX ( 45 ) FROM tab2 AS cor0
----
158355

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab1 AS cor0 WHERE 33 * + 49 IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 52 * col1 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 52 * col1 * col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5782
SELECT - SUM( DISTINCT + col1 ) * - ( - COUNT( * ) ), + 16 AS col0 FROM tab2
----
-585
16

skipif mysql # not compatible
query II rowsort label-5782
SELECT - SUM ( DISTINCT + col1 ) * - ( - COUNT ( * ) ), + 16 AS col0 FROM tab2
----
-585
16

query II rowsort
SELECT + col1 * col1 AS col1, - 62 + col2 AS col2 FROM tab0
----
1
37
441
-52
6561
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 88
----

query I rowsort
SELECT - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + 36 IS NULL
----
59
68
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT ALL - - col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - - col1 / - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

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

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

query I rowsort
SELECT - col0 * + col0 * - col1 * col1 FROM tab2
----
24285184
25250625
5503716

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL SUM( DISTINCT - col0 ) * + - COUNT( * ) AS col1 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL SUM ( DISTINCT - col0 ) * + - COUNT ( * ) AS col1 FROM tab1
----
681

query I rowsort
SELECT - 30 * - 24 FROM tab2
----
720
720
720

query I rowsort
SELECT 70 + col2 + - - col0 AS col2 FROM tab2
----
139
174
203

query I rowsort
SELECT - col0 + col1 + + + 36 AS col1 FROM tab1
----
-1
-44
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( 89 ) NOT BETWEEN - col2 * 88 * ( - col1 ) AND ( - col0 ) ) OR col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 50 ) col0 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT + - 99 + - 2 AS col2 FROM tab0 cor0
----
-101

query I rowsort
SELECT ALL + 14 + - 49 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1138
3045
3851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT - 26 * COUNT( ALL + 90 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-234

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - 26 * COUNT ( ALL + 90 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-234

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

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

query II rowsort
SELECT ALL col0 AS col2, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - + 17 AS col1 FROM tab2 AS cor0
----
-17

query II rowsort
SELECT DISTINCT 30, 34 AS col2 FROM tab2 AS cor0
----
30
34

query I rowsort
SELECT + - col2 * + + 70 + + col2 FROM tab2 AS cor0
----
-1587
-2760
-4002

query I rowsort
SELECT + col0 + + ( - - col1 ) FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT - col1 + + - col0 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT + col0 * + 6 + + + col2 + - + 17 * + 52 FROM tab0 AS cor0
----
-203
-352
-747

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5808
SELECT + CAST ( 7 AS INTEGER ) col0 FROM tab1
----
7
7
7

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( - 33 ) + 29 - - - col0 * 9 NOT BETWEEN ( NULL ) AND col1 * col1
----

query I rowsort
SELECT DISTINCT ( 39 ) AS col0 FROM tab1
----
39

query I rowsort
SELECT - 7 AS col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ( + MAX( ALL + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5812
SELECT ( + MAX ( ALL + col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT col0 + - ( + + CAST( col1 AS SIGNED ) ) * - + col1 FROM tab2 AS cor0 WHERE NOT - 1 IS NULL
----
2647
4564
5993

skipif mysql # not compatible
query I rowsort label-5813
SELECT col0 + - ( + + CAST ( col1 AS INTEGER ) ) * - + col1 FROM tab2 AS cor0 WHERE NOT - 1 IS NULL
----
2647
4564
5993

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT DISTINCT col1 DIV + - col1 + + col0 + + 90 FROM tab1 AS cor0
----
140
174
180

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT col1 / + - col1 + + col0 + + 90 FROM tab1 AS cor0
----
140
174
180

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

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

query I rowsort
SELECT DISTINCT + + ( + 10 ) AS col1 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 91 + - ( col2 ) * + 63 * - col2 + - - col2 FROM tab2 AS cor0
----
100931
212081
33441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT DISTINCT - COUNT( * ) * + - CAST( + MAX( + + col1 ) AS SIGNED ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT - COUNT ( * ) * + - CAST ( + MAX ( + + col1 ) AS INTEGER ) AS col0 FROM tab0
----
243

query I rowsort
SELECT + 62 / + 6 AS col0 FROM tab0 WHERE + - col0 / - col0 * + 37 <= - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT MAX( - 2 ) FROM tab1, tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT MAX ( - 2 ) FROM tab1, tab2 AS cor0
----
-2

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

query I rowsort
SELECT ALL col1 + - + 16 FROM tab2
----
35
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT COUNT( * ) * - 31 FROM tab1 WHERE - - 59 NOT BETWEEN - - col0 AND NULL
----
-62

skipif mysql # not compatible
query I rowsort label-5825
SELECT COUNT ( * ) * - 31 FROM tab1 WHERE - - 59 NOT BETWEEN - - col0 AND NULL
----
-62

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

skipif mysql # not compatible
query I rowsort label-5826
SELECT col2 * + col0 + 26 * + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5827
SELECT DISTINCT - COUNT( * ) * - + CAST( NULL AS SIGNED ) + COUNT( ALL - ( 93 ) ), - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5827
SELECT DISTINCT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + COUNT ( ALL - ( 93 ) ), - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL

query I rowsort
SELECT + 96 - + - col0 + + col1 * 25 FROM tab2 WHERE 31 = - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL 92 * - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL 92 * - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT + MAX( ALL col1 ) * - + 88 FROM tab2 cor0
----
-6776

skipif mysql # not compatible
query I rowsort label-5830
SELECT + MAX ( ALL col1 ) * - + 88 FROM tab2 cor0
----
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT SUM( ALL + + 83 ) AS col1 FROM tab1 cor0
----
249

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT SUM ( ALL + + 83 ) AS col1 FROM tab1 cor0
----
249

query I rowsort
SELECT ALL - 52 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND col1
----

query I rowsort
SELECT - 68 * - - col0 AS col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT + MIN( DISTINCT 98 ) AS col1 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + MIN ( DISTINCT 98 ) AS col1 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT - + MIN( DISTINCT col1 ) FROM tab0 WHERE NOT - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - + MIN ( DISTINCT col1 ) FROM tab0 WHERE NOT - col0 <= NULL
----
NULL

query II rowsort
SELECT ALL col0, - 36 AS col0 FROM tab1
----
51
-36
85
-36
91
-36

query I rowsort
SELECT + col1 * 30 * - 19 AS col1 FROM tab2
----
-29070
-38190
-43890

query II rowsort
SELECT + + 50, col0 FROM tab1 AS cor0
----
50
51
50
85
50
91

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

skipif mysql # not compatible
query I rowsort label-5839
SELECT - col1 AS col1 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 col0 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT ALL + col2 + + ( - + 54 ) FROM tab0 cor0
----
-44
-7
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5845
SELECT DISTINCT - 50 + - - CAST( NULL AS SIGNED ) * + MAX( DISTINCT + + 59 ) + + AVG ( 85 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - 50 + - - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + + 59 ) + + AVG ( 85 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 + + 92 - 86 AS col1 FROM tab0 AS cor0
----
105
16
53

query I rowsort
SELECT - 24 + + col2 AS col2 FROM tab2
----
-1
16
34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT ALL - col1 DIV col1 + - + col2 + - col0 + + 24 FROM tab1
----
-121
-124
-136

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - col1 / col1 + - + col2 + - col0 + + 24 FROM tab1
----
-121
-124
-136

query I rowsort
SELECT ALL + ( + 50 ) FROM tab0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT ( - + 25 ) FROM tab2
----
-25

query I rowsort
SELECT ALL + col1 * col1 + + col0 * + + col0 + + - col0 AS col0 FROM tab1 AS cor0
----
10399
2746
7165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT + MIN( ALL + + col0 ) DIV + + SUM( col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5854
SELECT + MIN ( ALL + + col0 ) / + + SUM ( col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT DISTINCT CAST( col2 AS SIGNED ) * col0 + + col0 + col1 FROM tab1 AS cor0
----
4961
5105
6326

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col0 + + col0 + col1 FROM tab1 AS cor0
----
4961
5105
6326

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5857
SELECT - COUNT ( * ) col1, + COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query II rowsort
SELECT ALL col1 AS col0, - 77 AS col0 FROM tab0 WHERE - 71 BETWEEN NULL AND ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - - 7 * - ( + col1 ) * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5860
SELECT ALL CAST( - 8 AS SIGNED ) AS col2 FROM tab2 cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL CAST ( - 8 AS INTEGER ) AS col2 FROM tab2 cor0
----
-8
-8
-8

query I rowsort
SELECT + - 15 * - - 93 + + col1 FROM tab2 AS cor0
----
-1318
-1328
-1344

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5862
SELECT DISTINCT - col1 / + + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT - col1 / + + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 * - + 69 FROM tab0 cor0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL COUNT( * ) * - SUM( DISTINCT 27 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT 27 ) FROM tab0 AS cor0
----
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT + - 6 DIV + ( + col0 ) 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-5866
SELECT + - 6 / + ( + col0 ) col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 42 * + - col1 * - 92 FROM tab0 AS cor0
----
312984
3864
81144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT DISTINCT MAX( DISTINCT 41 ) col1 FROM tab1
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5869
SELECT DISTINCT MAX ( DISTINCT 41 ) col1 FROM tab1
----
41

query I rowsort
SELECT DISTINCT ( + + ( - - col0 ) ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT 7 + + COUNT( * ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-5872
SELECT 7 + + COUNT ( * ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
7

query III rowsort
SELECT ALL * FROM tab0 WHERE - 26 + + - col1 IN ( col1 + + col1 - col0, - col1 * 22 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5874
SELECT DISTINCT - + CAST( NULL AS DECIMAL ), 89 - + - COUNT( * ) col0 FROM tab0 AS cor0
----
NULL
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5874
SELECT DISTINCT - + CAST ( NULL AS REAL ), 89 - + - COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL
92

query I rowsort
SELECT + + 82 * + - 15 + col1 FROM tab0 cor0
----
-1149
-1209
-1229

onlyif mysql # aggregate syntax: 
query II rowsort label-5876
SELECT - + SUM( col2 ) AS col0, MIN( DISTINCT - ( - 37 ) ) FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5876
SELECT - + SUM ( col2 ) AS col0, MIN ( DISTINCT - ( - 37 ) ) FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL
----
NULL
NULL

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

query I rowsort
SELECT DISTINCT - + col2 / + col1 FROM tab0 AS cor0 WHERE 1 = NULL
----

query I rowsort
SELECT + + col2 + + col2 + 99 FROM tab0 AS cor0
----
119
193
297

query II rowsort
SELECT ALL + - 9, col2 AS col0 FROM tab2 AS cor0
----
-9
23
-9
40
-9
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL - + MIN( 97 ) + + MAX( + col0 ) + - 75 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL - + MIN ( 97 ) + + MAX ( + col0 ) + - 75 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + col0 + col0 * + + col1 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT ALL - col1 + + + ( + col1 ) AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL - + COUNT( + col1 ) + 5 AS col1 FROM tab0 AS cor0 WHERE + col0 * + + col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - + COUNT ( + col1 ) + 5 AS col1 FROM tab0 AS cor0 WHERE + col0 * + + col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
5

query I rowsort
SELECT ALL - col1 * - + col0 + 23 AS col1 FROM tab1
----
4300
448
737

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 32 * 17 AND + col0 + 61
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) + + 15 + - col0 FROM tab2
----
-2
-8
-9

query I rowsort
SELECT + col0 * + + col1 * - col1 AS col2 FROM tab0 WHERE - col1 + + col2 IS NOT NULL
----
-38367
-97
-98415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5889
SELECT DISTINCT COUNT( * ) + + CAST( 83 AS SIGNED ) * 89 / CAST( NULL AS SIGNED ) AS col1, - 12 AS col1 FROM tab2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-5889
SELECT DISTINCT COUNT ( * ) + + CAST ( 83 AS INTEGER ) * 89 / CAST ( NULL AS INTEGER ) AS col1, - 12 AS col1 FROM tab2
----
NULL
-12

query I rowsort
SELECT + col1 * + 93 * + col1 * 24 - ( - + 55 ) FROM tab2
----
10019503
13233583
5805487

query II rowsort
SELECT col1 - - 15, + col2 AS col2 FROM tab1
----
20
59
29
96
62
68

query I rowsort
SELECT DISTINCT + 61 - + col2 * + col0 FROM tab0 AS cor0
----
-644
-809
-9542

query I rowsort
SELECT DISTINCT col2 * + + 4 AS col2 FROM tab2 AS cor0
----
160
232
92

query II rowsort
SELECT ALL - col1 * - + 65, - col0 AS col2 FROM tab1 AS cor0
----
3055
-91
325
-85
910
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT DISTINCT + COUNT( * ) * - - MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + COUNT ( * ) * - - MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
153

query I rowsort
SELECT + - col0 + + + 86 AS col2 FROM tab0 cor0
----
-1
-11
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - - col0 + - + col0 FROM tab0 cor0
----
690
783
9506

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - - col0 + - + col0 FROM tab0 cor0
----
690
783
9506

query I rowsort
SELECT DISTINCT ( - 36 ) * + + 58 + - + col0 + + col0 + + col2 * - col0 - + col1 * col0 AS col1 FROM tab0 AS cor0
----
-11788
-4008
-4785

query I rowsort
SELECT - - 6 AS col1 FROM tab1 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL - 78 * MAX( - col2 ) FROM tab2 AS cor0
----
1794

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - 78 * MAX ( - col2 ) FROM tab2 AS cor0
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT + COUNT( * ) * - + 48 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5901
SELECT + COUNT ( * ) * - + 48 FROM tab2 AS cor0
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5902
SELECT ALL - 39 DIV SUM( - - 22 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5902
SELECT ALL - 39 / SUM ( - - 22 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5903
SELECT ALL 98, - col1 + - col0 DIV - 34 AS col0 FROM tab0 cor0
----
98
-19
98
-81
98
1

skipif mysql # not compatible
query II rowsort label-5903
SELECT ALL 98, - col1 + - col0 / - 34 AS col0 FROM tab0 cor0
----
98
-19
98
-81
98
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - 82 IN ( - col0, 56, col1, + - 89 + + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - 26 * + - COUNT( * ) AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 26 * + - COUNT ( * ) AS col0 FROM tab1
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5906
SELECT ALL - ( - - CAST( NULL AS DECIMAL ) ) * 90 + col1 * - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - ( - - CAST ( NULL AS REAL ) ) * 90 + col1 * - + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL COUNT( * ) + COUNT( * ) col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5907
SELECT ALL COUNT ( * ) + COUNT ( * ) col1 FROM tab2 cor0
----
6

query I rowsort
SELECT DISTINCT + ( - 34 ) + - 33 FROM tab0
----
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + - col1 * - col2 - - col2 + - - col2 BETWEEN NULL AND + ( - col1 ) + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + - 77 * 81 AS col2 FROM tab2
----
-318087
-417879
-480249

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

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT - COUNT ( * ) / - + 49 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 16 + + + col1 - + - col2 + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) / - col1 * col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 16 + + + col1 - + - col2 + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) / - col1 * col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 95 * + - col1 FROM tab0 AS cor0
----
1995
7695
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - COUNT( DISTINCT + + 76 ) + + - SUM( 61 ) AS col2 FROM tab0 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-5914
SELECT - COUNT ( DISTINCT + + 76 ) + + - SUM ( 61 ) AS col2 FROM tab0 AS cor0
----
-184

query I rowsort
SELECT ALL - 26 + ( - 0 ) AS col2 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - 41 AS col2 FROM tab1 AS cor0 WHERE col1 * + col2 IS NULL
----

query I rowsort
SELECT ( + col0 ) * - - 76 + + col0 FROM tab0
----
1155
6699
7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 22 * + col0 col0 FROM tab0
----
-1904
-2035
-283

query I rowsort
SELECT DISTINCT + - col1 * - 90 + + col0 - - - col0 AS col0 FROM tab1 AS cor0
----
1260
4230
450

query II rowsort
SELECT 47, 30 AS col0 FROM tab0 WHERE NULL <= 95 + - - col1 AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT NULL <= + 59
----

query I rowsort
SELECT ALL - 16 * + col1 AS col1 FROM tab0
----
-1296
-16
-336

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

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

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab2 cor0
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL + COUNT( * ) * 40 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL + COUNT ( * ) * 40 FROM tab1 AS cor0
----
120

query I rowsort
SELECT col0 * + col2 + + + 56 AS col1 FROM tab0 AS cor0
----
761
926
9659

query I rowsort
SELECT - ( 91 ) * - col0 * - ( + - col1 ) * - col0 FROM tab2 AS cor0
----
-28700672
-34295625
-9820356

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ( - + 13 ) * - COUNT( * ) + + - 4 col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5929
SELECT ( - + 13 ) * - COUNT ( * ) + + - 4 col2 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT + 79 * + COUNT( * ) col1 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5930
SELECT + 79 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5931
SELECT ALL + COUNT( * ) col1, CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5931
SELECT ALL + COUNT ( * ) col1, CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL col2 * - 42 + - 90 / - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL col2 * - 42 + - 90 / - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT + SUM( ALL + 52 ) AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + SUM ( ALL + 52 ) AS col2 FROM tab2
----
156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 8 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 50 >= - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 / + col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT DISTINCT 34 DIV + 42 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT 34 / + 42 FROM tab0
----
0

query II rowsort
SELECT ALL 76, col2 AS col2 FROM tab0
----
76
10
76
47
76
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 AS col1, - col2 col2 FROM tab2
----
8
-23
8
-40
8
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 6 col0, 3 FROM tab1 AS cor0
----
6
3
6
3
6
3

query I rowsort
SELECT 8 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 9
----

query I rowsort
SELECT col1 + 94 AS col1 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT - COUNT( col0 ) + COUNT( * ) + MIN( - - 40 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5943
SELECT - COUNT ( col0 ) + COUNT ( * ) + MIN ( - - 40 ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT + - ( + + col2 ) + - 20 AS col2 FROM tab0 AS cor0
----
-119
-30
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col2 + - ( - 87 ) ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col2 + - ( - 87 ) ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5946
SELECT + - CAST( + 10 AS SIGNED ) DIV COUNT( * ) * + - SUM( + 23 ) FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5946
SELECT + - CAST ( + 10 AS INTEGER ) / COUNT ( * ) * + - SUM ( + 23 ) FROM tab1 AS cor0
----
207

query I rowsort
SELECT DISTINCT - col1 + - - 73 FROM tab0 cor0
----
-8
52
72

query III rowsort
SELECT ALL * FROM tab2 WHERE + 24 IN ( - col2 + - col1, col2 / + 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + + + col0 * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + + + col0 * + col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - 15 + col1 col0 FROM tab2
----
-6
13
22

query I rowsort
SELECT col0 - + 13 AS col1 FROM tab1
----
38
72
78

query III rowsort
SELECT * FROM tab1 WHERE 9 + - 94 * + 94 > - col0
----

query I rowsort
SELECT DISTINCT col0 - + - ( + col0 ) + + col1 AS col2 FROM tab2
----
143
205
217

query I rowsort
SELECT ALL + col0 - - 68 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL SUM( - - 29 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL SUM ( - - 29 ) FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5956
SELECT DISTINCT - CAST( - 92 AS SIGNED ) * - 17 + + col2 FROM tab2
----
-1506
-1524
-1541

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT - CAST ( - 92 AS INTEGER ) * - 17 + + col2 FROM tab2
----
-1506
-1524
-1541

query I rowsort
SELECT ALL col0 - - 70 AS col2 FROM tab0 AS cor0 WHERE NOT col0 / + col2 IS NULL
----
157
167
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5958
SELECT - COUNT( * ) AS col0, + 66 FROM tab2 cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-5958
SELECT - COUNT ( * ) AS col0, + 66 FROM tab2 cor0
----
-3
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT DISTINCT COUNT( * ) AS col2, COUNT( 94 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5959
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( 94 ) FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT ALL col2 AS col1, + ( - + col2 ) FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL + SUM( DISTINCT + 31 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL + SUM ( DISTINCT + 31 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 47 ) * - - 16 col1 FROM tab0
----
-752
-752
-752

query I rowsort
SELECT ALL col0 * + - col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT + - 34 + SUM( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT + - 34 + SUM ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT COUNT ( * ) * 95 FROM tab1
----
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * - + 38 col1 FROM tab1
----
-2090
-2090
-2090

query I rowsort
SELECT ALL - 10 * - col0 FROM tab0
----
150
870
970

query I rowsort
SELECT DISTINCT + col2 + - 89 FROM tab1
----
-21
-30
7

query I rowsort
SELECT ALL col0 * - col1 * - 14 FROM tab0
----
1358
17010
25578

query I rowsort
SELECT col0 + + 42 + - 82 AS col0 FROM tab2
----
24
35
6

query II rowsort
SELECT ALL + col0 + - col2 + + col1 AS col1, col0 AS col0 FROM tab2 AS cor0
----
101
64
74
46
84
75

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE 28 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT DISTINCT - + MIN( 1 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT - + MIN ( 1 ) AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + + 84 * - col0 * + col2 + - 20 AS col0 FROM tab0 cor0
----
-59240
-73100
-806672

query I rowsort
SELECT ALL 98 + - + col2 + + 74 AS col2 FROM tab0 AS cor0
----
125
162
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5978
SELECT + 10 col0, + col2 * + - col0 DIV - - col0, + col0 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
9 values hashing to d29f5f7ca463e5f3f847ca2a1d97e466

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5978
SELECT + 10 col0, + col2 * + - col0 / - - col0, + col0 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
9 values hashing to d29f5f7ca463e5f3f847ca2a1d97e466

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT DISTINCT + COUNT( * ) * + 64 AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT + COUNT ( * ) * + 64 AS col1 FROM tab1
----
192

query II rowsort
SELECT + 79, + col1 FROM tab0
----
79
1
79
21
79
81

query II rowsort
SELECT DISTINCT col1 AS col1, + col2 + + - 25 + 3 FROM tab0 cor0
----
1
77
21
-12
81
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 68 col2 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 + + - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 + + - col2 <> NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col1 + ( - + col0 ) / - - 91 > + - col2 )
----

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT DISTINCT + 50 * COUNT( * ), + 13 AS col0 FROM tab1
----
150
13

skipif mysql # not compatible
query II rowsort label-5987
SELECT DISTINCT + 50 * COUNT ( * ), + 13 AS col0 FROM tab1
----
150
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5988
SELECT - CAST( - col0 AS SIGNED ), 83 AS col1 FROM tab2 AS cor0
----
46
83
64
83
75
83

skipif mysql # not compatible
query II rowsort label-5988
SELECT - CAST ( - col0 AS INTEGER ), 83 AS col1 FROM tab2 AS cor0
----
46
83
64
83
75
83

query I rowsort
SELECT - col1 * - + ( + + col1 ) AS col2 FROM tab2 AS cor0
----
2601
4489
5929

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT COUNT( * ) * 13 * ( + + COUNT( - ( - col0 ) ) ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT COUNT ( * ) * 13 * ( + + COUNT ( - ( - col0 ) ) ) FROM tab2
----
117

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 + + col2 ) <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 71 * + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
3266
4544
5325

query I rowsort
SELECT - 53 + - ( + + col0 ) + - 95 FROM tab2 AS cor0
----
-194
-212
-223

query I rowsort
SELECT ALL - ( - 8 ) FROM tab2 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT + col2 + + + 52 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-3009
-3468
-4896

skipif mysql # not compatible
query I rowsort label-5997
SELECT + col2 + + + 52 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-3009
-3468
-4896

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT col0 DIV - 61 - + - 64 + col2 FROM tab1 AS cor0
----
122
131
160

skipif mysql # not compatible
query I rowsort label-5998
SELECT col0 / - 61 - + - 64 + col2 FROM tab1 AS cor0
----
122
131
160

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT DISTINCT - 44 * + col0 FROM tab1
----
-2244
-3740
-4004

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + col2 + + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + + 9 * - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6003
SELECT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6003
SELECT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL + 9 FROM tab2 WHERE NOT - 20 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT col2 DIV + col1 * + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT col2 / + col1 * + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT - ( - ( col1 ) ) * - CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT - ( - ( col1 ) ) * - CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT 55 - + - COUNT( * ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6008
SELECT 55 - + - COUNT ( * ) col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT + + COUNT( * ) + - 88 AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + + COUNT ( * ) + - 88 AS col2 FROM tab2 AS cor0
----
-85

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND - col2
----

query I rowsort
SELECT DISTINCT - col1 - 93 AS col0 FROM tab2
----
-144
-160
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT COUNT( * ) + - SUM( ALL col1 ) col0 FROM tab0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6013
SELECT COUNT ( * ) + - SUM ( ALL col1 ) col0 FROM tab0
----
-100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6014
SELECT ALL - + CAST( NULL AS DECIMAL ) - - + 65 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - + CAST ( NULL AS REAL ) - - + 65 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6015
SELECT DISTINCT + - col0 + - - col0 AS col2, + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
-4
0
-97
0
0

skipif mysql # not compatible
query II rowsort label-6015
SELECT DISTINCT + - col0 + - - col0 AS col2, + col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
-4
0
-97
0
0

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
117
125
74

query I rowsort
SELECT DISTINCT col1 * - col1 * col2 FROM tab2 cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT COUNT( DISTINCT - 53 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6018
SELECT DISTINCT COUNT ( DISTINCT - 53 ) col2 FROM tab1
----
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6019
SELECT 42 AS col2, COUNT ( * ) col0 FROM tab1
----
42
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT + col1 DIV col0 * + 71 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT + col1 / col0 * + 71 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / + + col0 > + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 15 * 24 AS col0 FROM tab1
----
360

query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab2 cor0 WHERE NULL BETWEEN - ( 8 ) * + + 42 AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 19 <= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6027
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE ( CAST( NULL AS SIGNED ) + - col2 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) + - col2 ) > NULL
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col0 * - 12
----

query I rowsort
SELECT DISTINCT - col0 + - 75 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + col0 * 41 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT + ( + COUNT( * ) ) FROM tab1 WHERE col1 * + 44 + col1 > - 18 - + col2
----
3

skipif mysql # not compatible
query I rowsort label-6031
SELECT + ( + COUNT ( * ) ) FROM tab1 WHERE col1 * + 44 + col1 > - 18 - + col2
----
3

query I rowsort
SELECT ALL col2 + 88 FROM tab2
----
111
128
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab1 WHERE NOT col0 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab1 WHERE NOT col0 IS NULL
----
91

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

skipif mysql # not compatible
query I rowsort label-6034
SELECT + CAST ( 19 AS INTEGER ) FROM tab2
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 21 IS NOT NULL
----

query I rowsort
SELECT 34 FROM tab0 WHERE NOT - 45 <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT - col1 * col2 + + ( + col0 ) FROM tab0 WHERE col1 * col0 + + 30 BETWEEN ( CAST( NULL AS SIGNED ) ) AND + col2 / col0
----

skipif mysql # not compatible
query I rowsort label-6038
SELECT - col1 * col2 + + ( + col0 ) FROM tab0 WHERE col1 * col0 + + 30 BETWEEN ( CAST ( NULL AS INTEGER ) ) AND + col2 / col0
----

query I rowsort
SELECT ALL - 96 * 42 AS col1 FROM tab1
----
-4032
-4032
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT ALL + ( - CAST( 70 AS SIGNED ) ) * 6 AS col2 FROM tab1
----
-420
-420
-420

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + ( - CAST ( 70 AS INTEGER ) ) * 6 AS col2 FROM tab1
----
-420
-420
-420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT COUNT( + col2 ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT COUNT ( + col2 ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
3

query I rowsort
SELECT - 11 * + col0 AS col1 FROM tab1
----
-1001
-561
-935

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT - MAX( ALL col1 ) * COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-6045
SELECT - MAX ( ALL col1 ) * COUNT ( * ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT + COUNT( * ) * MIN( ALL + col0 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6046
SELECT + COUNT ( * ) * MIN ( ALL + col0 ) FROM tab0
----
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT DISTINCT + 1 DIV col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + 1 / col0 AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 + col2 ) = 61 * 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 78 - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6052
SELECT + MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT ALL - CAST( + col2 AS SIGNED ) - col2 AS col1 FROM tab0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - CAST ( + col2 AS INTEGER ) - col2 AS col1 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT - col1 * + col0 - ( 71 ) FROM tab2
----
-2417
-4999
-5096

query I rowsort
SELECT DISTINCT - col1 * + ( + col0 ) AS col0 FROM tab0 WHERE col2 / col2 NOT BETWEEN + 95 + - col1 AND ( col1 + + col0 / 7 )
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - 78 - + 90 FROM tab0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6057
SELECT - 63 DIV - 42 + COUNT( + col0 + col1 ) * - 15 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6057
SELECT - 63 / - 42 + COUNT ( + col0 + col1 ) * - 15 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6058
SELECT DISTINCT - - 38 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - - 38 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6059
SELECT ( 74 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6059
SELECT ( 74 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
24

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

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

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT - 58 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT + 8 DIV 90 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6062
SELECT + 8 / 90 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + ( + col2 ) * + col2 FROM tab2 cor0
----
1600
3364
529

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

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT + col0 / - 98 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6066
SELECT ALL col0 DIV + ( ( 17 ) ) FROM tab0 AS cor0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL col0 / + ( ( 17 ) ) FROM tab0 AS cor0
----
0
5
5

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

skipif mysql # not compatible
query I rowsort label-6067
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT MIN( + + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6068
SELECT MIN ( + + col0 ) AS col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ( - 38 ) * COUNT( * ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-6069
SELECT ( - 38 ) * COUNT ( * ) FROM tab1
----
-114

query I rowsort
SELECT 18 * col0 FROM tab0
----
1566
1746
270

query I rowsort
SELECT ALL col1 * 71 AS col1 FROM tab0
----
1491
5751
71

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( - 87 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 44 = - col1 * + 9 + 68
----

query I rowsort
SELECT col0 * + col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN + 12 * + col1 AND col0 * + 4
----

query I rowsort
SELECT col0 * 53 AS col2 FROM tab1
----
2703
4505
4823

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

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

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

query I rowsort
SELECT ALL ( - 52 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + COUNT( DISTINCT 72 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6079
SELECT + COUNT ( DISTINCT 72 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * + col0 col0 FROM tab0 AS cor0
----
3915
4365
675

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 58 col2 FROM tab0 AS cor0 WHERE NOT 99 IS NULL
----
-1218
-4698
-58

query I rowsort
SELECT - ( - 34 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 + 0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT DISTINCT - MIN( ALL col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT - MIN ( ALL col1 ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT col1 * - col1 AS col1 FROM tab2 WHERE NOT - col0 IS NULL
----
-2601
-4489
-5929

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

query I rowsort
SELECT DISTINCT 41 FROM tab1 WHERE NOT - col2 * col0 NOT BETWEEN + 45 AND + col0 + + 32 * col1
----

query I rowsort
SELECT - col0 * - 66 + - - col2 FROM tab0
----
1037
5752
6501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT - 6 * - col2 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + 60 * col0 + 32 BETWEEN col1 AND - col2 / + col2
----

skipif mysql # not compatible
query I rowsort label-6089
SELECT - 6 * - col2 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + 60 * col0 + 32 BETWEEN col1 AND - col2 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + + MIN( ALL - col1 ) + + - 51 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-6090
SELECT + + MIN ( ALL - col1 ) + + - 51 FROM tab0 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + MIN( ALL + + col2 ) + + 3 * SUM( - ( 39 ) ) col2 FROM tab2 AS cor0
----
-328

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6091
SELECT + MIN ( ALL + + col2 ) + + 3 * SUM ( - ( 39 ) ) col2 FROM tab2 AS cor0
----
-328

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

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL CAST ( NULL AS INTEGER ) + + - 53 * + ( 58 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 55 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT + 99 + + + 94 AS col0 FROM tab2 AS cor0
----
193
193
193

query I rowsort
SELECT ALL + + col0 + 34 FROM tab0 AS cor0
----
121
131
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 18 col0 FROM tab2 AS cor0
----
28
46
57

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE col1 / - col1 * - col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + MAX( DISTINCT - col2 ) * 12 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + MAX ( DISTINCT - col2 ) * 12 FROM tab0 AS cor0
----
-117

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT IN ( + + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6102
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 35 + + col0 + + 8 * + col2 * col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 35 + + col0 + + 8 * + col2 * col0 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6103
SELECT ALL * FROM tab1 WHERE + col0 + - 10 <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6103
SELECT ALL * FROM tab1 WHERE + col0 + - 10 <> ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL - col1 + + col1 AS col2, 4 FROM tab2
----
0
4
0
4
0
4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + ( 96 )
----

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

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

query I rowsort
SELECT ALL + col2 - + 64 AS col2 FROM tab2
----
-24
-41
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL MIN( DISTINCT - 46 ) col1 FROM tab1
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6109
SELECT ALL MIN ( DISTINCT - 46 ) col1 FROM tab1
----
-46

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col2 col1 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 35 + + col2 NOT BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - - col2 ) + + col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - 25 + 98 FROM tab1 AS cor0
----
73
73
73

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6117
SELECT COUNT( * ) DIV + 52 + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( CAST( - ( - - col2 ) AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT COUNT ( * ) / + 52 + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( CAST ( - ( - - col2 ) AS REAL ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * + col0 - + col1 * 18 col0 FROM tab1 cor0 WHERE NOT - col1 + - col1 / - ( - + 58 ) IS NULL
----
258
64
760

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL + 24 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + 24 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT - col1 * - + col1 * col0 AS col2 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT DISTINCT + col0 * col1 - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL - MAX( ALL - 35 ) * + 90 AS col2 FROM tab2 cor0
----
3150

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL - MAX ( ALL - 35 ) * + 90 AS col2 FROM tab2 cor0
----
3150

query I rowsort
SELECT + ( 16 ) AS col1 FROM tab0
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6124
SELECT + 45 * - ( COUNT( * ) ) FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) + - col0 <= ( + - 6 )
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT + 45 * - ( COUNT ( * ) ) FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) + - col0 <= ( + - 6 )
----
0

query II rowsort
SELECT DISTINCT 6 * + col1 AS col1, - 8 + - - 86 FROM tab1
----
282
78
30
78
84
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6126
SELECT SUM( 9 ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - + 81 NOT IN ( - col0 * - col1 ) OR NOT + col2 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6126
SELECT SUM ( 9 ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - + 81 NOT IN ( - col0 * - col1 ) OR NOT + col2 IS NULL
----
9

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

query I rowsort
SELECT DISTINCT + col1 * 76 + + col2 AS col1 FROM tab2 AS cor0
----
3899
5150
5892

query II rowsort
SELECT ALL - col0 * - - col0 AS col0, col0 FROM tab0
----
-225
15
-7569
87
-9409
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6131
SELECT DISTINCT + COUNT( + col1 ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( + - 55 ) IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-6131
SELECT DISTINCT + COUNT ( + col1 ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( + - 55 ) IS NULL
----
3
3

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - 69 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - - ( 2 ) + + SUM( col1 ) AS col0 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6133
SELECT - - ( 2 ) + + SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
68

query I rowsort
SELECT 60 + + + col1 * - col2 AS col2 FROM tab0
----
-150
-3747
-39

query I rowsort
SELECT 86 + - col2 AS col1 FROM tab2
----
28
46
63

query II rowsort
SELECT col1 + - 78 + - 0 AS col2, + col2 AS col1 FROM tab0
----
-57
10
-77
99
3
47

query I rowsort
SELECT ALL + 93 - - col1 + + col1 AS col1 FROM tab0
----
135
255
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL + - 72 - - SUM( - col1 ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL + - 72 - - SUM ( - col1 ) FROM tab2 AS cor0
----
-267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6139
SELECT + 40 AS col2, + CAST( ( - - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
40
3

skipif mysql # not compatible
query II rowsort label-6139
SELECT + 40 AS col2, + CAST ( ( - - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
40
3

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE - 33 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT 72 DIV ( - 76 ) - - ( + 14 ) AS col0 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-6141
SELECT 72 / ( - 76 ) - - ( + 14 ) AS col0 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT - col2 * - col1 + 96 AS col1 FROM tab2 AS cor0
----
1269
3176
3982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 / + col0 col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( + col1 ) + + - 9 NOT IN ( - - col1 * - 81 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + + 40 AS col2 FROM tab1 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT + MAX( + 84 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6148
SELECT + MAX ( + 84 ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT 93 + col0 FROM tab2 cor0 WHERE NOT ( NULL ) < ( NULL )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + - 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL + COUNT( * ) * + 26 col0 FROM tab0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6152
SELECT ALL + COUNT ( * ) * + 26 col0 FROM tab0
----
78

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6154
SELECT DISTINCT + 5 FROM tab2 WHERE NOT NULL < - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT + 5 FROM tab2 WHERE NOT NULL < - - CAST ( NULL AS REAL )
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT + col1 - + col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + - ( + 38 ) FROM tab2 WHERE NOT + col1 IS NULL
----
-38
-38
-38

query I rowsort
SELECT ALL col0 + - ( - - col0 ) + + - ( 76 ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL - col2 + + 14 FROM tab1 AS cor0
----
-45
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + MIN( ALL + col0 ) - 58 FROM tab2 WHERE + col2 NOT BETWEEN + + 81 / - - col0 + - + col0 + col1 * - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT + MIN ( ALL + col0 ) - 58 FROM tab2 WHERE + col2 NOT BETWEEN + + 81 / - - col0 + - + col0 + col1 * - col1 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + 9 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT DISTINCT + MIN( ALL - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT + MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col0 + + + col1 * - + col2 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 60 col2 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT 17 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
17
17
17

query I rowsort
SELECT DISTINCT - 39 + + - col1 - - col0 * + col0 * - - 76 AS col1 FROM tab0 AS cor0
----
16980
575184
715044

query I rowsort
SELECT - 35 * - - 18 AS col0 FROM tab1 AS cor0
----
-630
-630
-630

query I rowsort
SELECT ( - 13 ) AS col0 FROM tab2 AS cor0 WHERE col0 > + col1
----
-13

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE col1 <> - col2
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT + col0 DIV + - 10 AS col1 FROM tab2 AS cor0 WHERE col0 >= ( + col0 )
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-6169
SELECT + col0 / + - 10 AS col1 FROM tab2 AS cor0 WHERE col0 >= ( + col0 )
----
-4
-6
-7

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NOT NULL BETWEEN - col2 + + - col0 + - col2 / + 25 - ( - - 94 ) AND NULL ) )
----

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NULL IN ( + - col0, - col0, + 64, - col1 + - + 77 )
----

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

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

query I rowsort
SELECT + col1 - - 51 FROM tab0
----
132
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + SUM( col0 ) FROM tab1 WHERE ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT + SUM ( col0 ) FROM tab1 WHERE ( - col2 ) IS NULL
----
NULL

query I rowsort
SELECT col0 + - - 35 FROM tab0 cor0
----
122
132
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT - + 75 DIV + 73 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6176
SELECT - + 75 / + 73 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT + ( - 54 ) * + - col0 FROM tab1 AS cor0 WHERE NOT - col2 * col0 * - CAST( + 55 AS SIGNED ) NOT BETWEEN col2 AND col0 * - col1
----

skipif mysql # not compatible
query I rowsort label-6177
SELECT + ( - 54 ) * + - col0 FROM tab1 AS cor0 WHERE NOT - col2 * col0 * - CAST ( + 55 AS INTEGER ) NOT BETWEEN col2 AND col0 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 21 BETWEEN - - col0 * col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6179
SELECT * FROM tab0 WHERE NOT + 60 * - + col2 + 21 / - col0 BETWEEN - col0 * + 28 + + 20 + + col2 + - col0 - 88 + - + col0 * col2 AND ( - CAST( NULL AS SIGNED ) )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-6179
SELECT * FROM tab0 WHERE NOT + 60 * - + col2 + 21 / - col0 BETWEEN - col0 * + 28 + + 20 + + col2 + - col0 - 88 + - + col0 * col2 AND ( - CAST ( NULL AS INTEGER ) )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - MIN( ALL - 1 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6180
SELECT - MIN ( ALL - 1 ) AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6181
SELECT ALL - col2 col2, 92 DIV col0 col0 FROM tab1
----
-59
1
-68
1
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6181
SELECT ALL - col2 col2, 92 / col0 col0 FROM tab1
----
-59
1
-68
1
-96
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 19 IS NOT NULL
----

query I rowsort
SELECT ALL - 17 AS col2 FROM tab2 WHERE col2 + + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT DISTINCT - 28 AS col0, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-28
3

skipif mysql # not compatible
query II rowsort label-6184
SELECT DISTINCT - 28 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-28
3

query I rowsort
SELECT ALL + 12 FROM tab0 AS cor0 WHERE 64 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col1 = - 2 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - + col1 * - 66 AS col0 FROM tab0 cor0
----
1386
5346
66

query I rowsort
SELECT - 13 * - col0 * + - col1 AS col1 FROM tab1
----
-5525
-55601
-9282

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL - COUNT( * ) * - 72 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - COUNT ( * ) * - 72 FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT - COUNT( * ) * + - 17 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6191
SELECT - COUNT ( * ) * + - 17 FROM tab1
----
51

query II rowsort
SELECT + 80 * + - col1 AS col0, col2 * - col2 FROM tab2
----
-4080
-529
-5360
-3364
-6160
-1600

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 52 NOT BETWEEN - - 57 AND + ( ( 96 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6194
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 5
----

query I rowsort
SELECT - - 47 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT - 47 * + col1 AS col2 FROM tab1
----
-2209
-235
-658

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= + + col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 AS cor0 WHERE NOT NULL <> 7
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6200
SELECT ALL - col0, + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 20 * + + CAST( - + col1 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query II rowsort label-6200
SELECT ALL - col0, + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 20 * + + CAST ( - + col1 AS REAL ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 74 * + col2 / + 40 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( + - 56 ) + 33 col2, - col2 AS col1 FROM tab0 AS cor0
----
-23
-10
-23
-47
-23
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT DISTINCT + MAX( - - col1 ) + + 34 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + MAX ( - - col1 ) + + 34 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 23 + - - col2 AS col1 FROM tab2 AS cor0
----
0
17
35

query I rowsort
SELECT ALL 42 * - col2 + + 4 FROM tab2
----
-1676
-2432
-962

query I rowsort
SELECT - 79 AS col0 FROM tab0 WHERE - 13 IN ( - 81 * - - col2 / + + 63 * ( 78 ) + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + - 19 col0 FROM tab1
----
67
67
67

query I rowsort
SELECT - col1 + + - 71 + - col0 * + col0 + + col2 AS col2 FROM tab2
----
-2215
-4204
-5705

query I rowsort
SELECT col2 * - col2 + - col2 AS col2 FROM tab0
----
-110
-2256
-9900

query II rowsort
SELECT col0, 82 FROM tab0
----
15
82
87
82
97
82

query I rowsort
SELECT DISTINCT 6 - + 7 FROM tab0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL COUNT( * ) * + 31 * + 15 FROM tab2 AS cor0
----
1395

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL COUNT ( * ) * + 31 * + 15 FROM tab2 AS cor0
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT + - COUNT( DISTINCT - col1 ) * - - 26 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6214
SELECT + - COUNT ( DISTINCT - col1 ) * - - 26 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + 87 * + 33 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT - MAX( DISTINCT - + 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT - MAX ( DISTINCT - + 72 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - col2 * ( - - 26 ) >= col1 + - col1
----
15
87
97

query I rowsort
SELECT ALL - col0 * - - ( col0 ) * - col1 AS col0 FROM tab2
----
107916
315392
376875

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - 28 + MAX( ALL - - col2 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6221
SELECT - 28 + MAX ( ALL - - col2 ) FROM tab1 AS cor0
----
68

query II rowsort
SELECT ALL + col0 + + col1 AS col1, col1 * col0 AS col2 FROM tab2 AS cor0
----
141
4928
142
5025
97
2346

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 16, + ( + col0 ) / - - 9 + - col2 * + 68 - - + 76 )
----

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

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT COUNT ( * ) / 24 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL col1 * + 86 FROM tab0 WHERE NOT - ( + + col0 ) * - - ( + ( + + 30 ) ) - - 43 + - - 45 - - ( + col1 ) * + - col1 - 31 NOT BETWEEN + col0 AND - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT - ( COUNT( * ) ) * + 26 - + - ( + 81 ) + + COUNT( - + col1 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6226
SELECT - ( COUNT ( * ) ) * + 26 - + - ( + 81 ) + + COUNT ( - + col1 ) AS col0 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT + col1 * col1 DIV col2 FROM tab2
----
113
148
77

skipif mysql # not compatible
query I rowsort label-6227
SELECT + col1 * col1 / col2 FROM tab2
----
113
148
77

query II rowsort
SELECT - col1, col0 * - col0 AS col0 FROM tab1
----
-14
-2601
-47
-8281
-5
-7225

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6230
SELECT DISTINCT + col0 col2, CAST( 76 AS SIGNED ) FROM tab0 AS cor0
----
15
76
87
76
97
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6230
SELECT DISTINCT + col0 col2, CAST ( 76 AS INTEGER ) FROM tab0 AS cor0
----
15
76
87
76
97
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE - 98 + - - col2 * - col0 > NULL AND NOT + col2 + + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6231
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE - 98 + - - col2 * - col0 > NULL AND NOT + col2 + + col2 < NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6232
SELECT ALL - ( - + CAST( + - col2 AS DECIMAL ) ) + - - 96 AS col1 FROM tab1 WHERE NOT - col1 - + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL - ( - + CAST ( + - col2 AS REAL ) ) + - - 96 AS col1 FROM tab1 WHERE NOT - col1 - + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + COUNT( DISTINCT col2 ) * + 53 AS col1 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-6233
SELECT + COUNT ( DISTINCT col2 ) * + 53 AS col1 FROM tab2
----
159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 38 >= NULL
----

query I rowsort
SELECT ALL col1 * 30 + + 65 AS col0 FROM tab0 AS cor0
----
2495
695
95

query II rowsort
SELECT + + 82, col0 / col1 AS col0 FROM tab0 cor0 WHERE 29 * + col2 <> NULL
----

query I rowsort
SELECT + + 34 * + 81 AS col0 FROM tab1 AS cor0
----
2754
2754
2754

query I rowsort
SELECT + col1 * col1 + col1 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
135
443
4509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 44 col1 FROM tab2 cor0
----
2024
2816
3300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( - - col1 ) col2 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL + 82 * 78 AS col2 FROM tab1
----
6396
6396
6396

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT ALL + 4 DIV - - col2 - + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + 4 / - - col2 - + col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + col0 IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col0 + + col0 AS col2 FROM tab1
----
-340
-4186
-663

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col0 + + col0 AS col2 FROM tab1
----
-340
-4186
-663

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6246
SELECT * FROM tab1 WHERE NOT + + 23 * - ( - col0 ) + + col0 * - CAST( NULL AS SIGNED ) + - - 31 < NULL
----

skipif mysql # not compatible
query III rowsort label-6246
SELECT * FROM tab1 WHERE NOT + + 23 * - ( - col0 ) + + col0 * - CAST ( NULL AS INTEGER ) + - - 31 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 88 col1, col0 * col2 AS col2 FROM tab0 cor0
----
88
705
88
870
88
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ALL + + COUNT( * ) * - COUNT( ALL 79 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL + + COUNT ( * ) * - COUNT ( ALL 79 ) AS col1 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 9 ) IN ( - ( + 73 ), col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - col1 + - col1 NOT IN ( + + 78 / + col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT DISTINCT 31 * MIN( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT 31 * MIN ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT - MAX( - 26 ) * + 31 AS col1 FROM tab0
----
806

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT - MAX ( - 26 ) * + 31 AS col1 FROM tab0
----
806

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col2 - - + 44, ( ( col1 ) ) + - + col2 )
----

query I rowsort
SELECT ALL - 32 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query II rowsort
SELECT DISTINCT 10, 87 AS col2 FROM tab2
----
10
87

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 25 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 * + 88 col1 FROM tab1 AS cor0
----
-17248
-194392
-2200

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT ALL + - 3 DIV - col1 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + - 3 / - col1 FROM tab0 AS cor0
----
0
0
3

query II rowsort
SELECT col0, + ( col2 ) FROM tab1 AS cor0
----
51
96
85
59
91
68

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

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

query I rowsort
SELECT DISTINCT col2 + - 68 * + 37 FROM tab0 AS cor0
----
-2417
-2469
-2506

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

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

query I rowsort
SELECT 92 * + - ( - - col1 ) + + 92 FROM tab2
----
-4600
-6072
-6992

query I rowsort
SELECT + - 49 + - 20 FROM tab2 AS cor0 WHERE ( NULL ) > - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT + CAST( + SUM( - 20 ) AS SIGNED ) + 91 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6268
SELECT + CAST ( + SUM ( - 20 ) AS INTEGER ) + 91 FROM tab0 AS cor0
----
31

query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab1 cor0 WHERE col1 > - 92
----
2601
7225
8281

query I rowsort
SELECT - - 93 AS col0 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT - - 75 + - col2 FROM tab1 AS cor0
----
-21
16
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6272
SELECT ALL col1 + + col0 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-6272
SELECT ALL col1 + + col0 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

query I rowsort
SELECT DISTINCT 93 + 89 AS col0 FROM tab0
----
182

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6274
SELECT + CAST( NULL AS DECIMAL ) AS col0, - SUM( DISTINCT - col2 ) AS col1 FROM tab0
----
NULL
156

skipif mysql # not compatible
query II rowsort label-6274
SELECT + CAST ( NULL AS REAL ) AS col0, - SUM ( DISTINCT - col2 ) AS col1 FROM tab0
----
NULL
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 95 * + col0 + - 4 col0 FROM tab1
----
-4900
-8164
-8740

query I rowsort
SELECT - 89 + - col0 + + col0 + + col0 + + 32 * 36 AS col1 FROM tab1 AS cor0
----
1114
1148
1154

query I rowsort
SELECT + + 53 * col2 + + 95 FROM tab1 AS cor0
----
3222
3699
5183

query I rowsort
SELECT + col0 + - col1 * col0 + - ( 94 ) FROM tab2 cor0
----
-2394
-4958
-5044

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 46 NOT IN ( + 48, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND ( - + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - + 69 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-6283
SELECT - + 69 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6284
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2, - ( - + 39 ) + col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6284
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2, - ( - + 39 ) + col2 * - CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN - 70 + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6287
SELECT ALL + + 71 + ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 WHERE NOT - - 57 < - - 18
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + + 71 + ( CAST ( NULL AS REAL ) ) AS col2 FROM tab2 WHERE NOT - - 57 < - - 18
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 * - 47 AS col0, col2 FROM tab2
----
-1081
23
-1880
40
-2726
58

query I rowsort
SELECT col2 * + col2 + - + col2 + + 58 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
148
2220
9760

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6290
SELECT - - CAST( NULL AS SIGNED ) * + - 38 + - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT - - CAST ( NULL AS INTEGER ) * + - 38 + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6291
SELECT ALL SUM( ALL + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - MIN ( - - 10 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 85 FROM tab2 WHERE NOT NULL NOT BETWEEN - - 98 AND - col1 * - 29 + - 56
----

query I rowsort
SELECT DISTINCT ( 9 ) * + 45 FROM tab0
----
405

query I rowsort
SELECT ALL + 97 FROM tab2 WHERE NULL IS NULL
----
97
97
97

query I rowsort
SELECT - - col2 / col0 * + col2 FROM tab2 WHERE NOT - - ( + col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + col2 + - col0 AS col1 FROM tab1 cor0
----
4845
4930
6097

query I rowsort
SELECT + - col2 * - + col2 * 79 + + col2 FROM tab0 cor0
----
174558
774378
7910

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT ALL col2 + + col0 DIV - 36 FROM tab2 AS cor0
----
22
39
56

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL col2 + + col0 / - 36 FROM tab2 AS cor0
----
22
39
56

query I rowsort
SELECT - col2 * col2 + - - col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query II rowsort
SELECT ALL + - col0, ( col0 ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + - col1 col0 FROM tab1 cor0
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT + col0 + + 8 * + + col1 AS col2 FROM tab2 AS cor0
----
454
611
680

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + + COUNT( ALL - ( 36 ) ) FROM tab2 AS cor0 WHERE ( + 13 ) / - col1 * + - ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6306
SELECT + + COUNT ( ALL - ( 36 ) ) FROM tab2 AS cor0 WHERE ( + 13 ) / - col1 * + - ( + col1 ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col2 * col2 <= - col1 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 46 - - 62 - col0 * + col2 + - 51 * + col2 FROM tab1
----
-7916
-9548
-9684

query I rowsort
SELECT DISTINCT col1 * - - ( - - col0 ) * col0 * 10 FROM tab1
----
361250
364140
3892070

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT + SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ( - ( + 37 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 95 * 5 col2 FROM tab2 AS cor0
----
475
475
475

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL + COUNT( + 31 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL + COUNT ( + 31 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col2, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1, + col1 * - col0 FROM tab2
----
51
-2346
67
-5025
77
-4928

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + - col0 / - - col0 * + + col0 >= + col2 * - + col0 + col2
----

query I rowsort
SELECT ( + + 11 ) FROM tab1
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6320
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + CAST( + - col1 AS SIGNED ) AS col0, + 24 FROM tab1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6320
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + CAST ( + - col1 AS INTEGER ) AS col0, + 24 FROM tab1
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL COUNT( * ) / + 35 / + MAX( DISTINCT + col1 ) col2 FROM tab2 WHERE col2 = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6321
SELECT ALL COUNT ( * ) / + 35 / + MAX ( DISTINCT + col1 ) col2 FROM tab2 WHERE col2 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT DISTINCT MIN( ALL + 47 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT MIN ( ALL + 47 ) FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT + COUNT( * ) * 82 AS col0 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT + COUNT ( * ) * 82 AS col0 FROM tab2 AS cor0
----
246

query I rowsort
SELECT ALL 55 FROM tab1 AS cor0 WHERE ( - col1 / - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 16 + - + 1 - + col1 FROM tab1 AS cor0
----
-22
-31
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6326
SELECT * FROM tab2 WHERE NOT ( col2 ) <> CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6326
SELECT * FROM tab2 WHERE NOT ( col2 ) <> CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT 56 * - MAX( DISTINCT - col2 ) col1 FROM tab2
----
1288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6327
SELECT DISTINCT 56 * - MAX ( DISTINCT - col2 ) col1 FROM tab2
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT - COUNT( col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6328
SELECT - COUNT ( col0 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT DISTINCT MIN( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT MIN ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - 36 AS col2, col0 * - col0 col1 FROM tab0 AS cor0
----
-15
-7569
-35
-9409
45
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6331
SELECT MAX( + + col0 ) + - MIN( + col2 ) DIV + COUNT( * ) AS col1 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-6331
SELECT MAX ( + + col0 ) + - MIN ( + col2 ) / + COUNT ( * ) AS col1 FROM tab0 cor0
----
94

query I rowsort
SELECT DISTINCT + col2 * - + col2 + - - col2 FROM tab0 cor0
----
-2162
-90
-9702

query I rowsort
SELECT + col2 + + - 0 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 + - col1 col0 FROM tab2 AS cor0
----
-100
-74
-90

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

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

query II rowsort
SELECT - col2, + col2 * - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 94 + + col1 FROM tab1
----
108
141
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT 20 + - 5 * + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT 20 + - 5 * + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - col0 + + col2 + - col2 AS col1 FROM tab0
----
-225
-7569
-9409

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

query I rowsort
SELECT DISTINCT + 77 - + col2 + - col1 * + col0 FROM tab2
----
-2292
-4891
-5006

query I rowsort
SELECT ALL 13 - col2 FROM tab2
----
-10
-27
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - 82 + + - COUNT( DISTINCT + ( col0 ) ) - - COUNT( * ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6343
SELECT - 82 + + - COUNT ( DISTINCT + ( col0 ) ) - - COUNT ( * ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT + + COUNT( * ) * - 25 FROM tab0 WHERE NOT - 2 IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-6345
SELECT + + COUNT ( * ) * - 25 FROM tab0 WHERE NOT - 2 IS NULL
----
-75

query I rowsort
SELECT ALL - col0 + col1 - 9 * + 45 * 15 * + + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-127641
-492009
-6171

query I rowsort
SELECT ALL + - col2 * col0 * - col0 FROM tab0 cor0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT CAST( - - 68 AS SIGNED ) FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-6348
SELECT CAST ( - - 68 AS INTEGER ) FROM tab0 AS cor0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + 93 AS col0 FROM tab1 AS cor0
----
14
93
47
93
5
93

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

query II rowsort
SELECT DISTINCT - - 19, + 21 * - + col2 + col1 + - col0 * - - 61 * - col1 AS col2 FROM tab1 AS cor0
----
19
24691
19
259516
19
41552

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT MAX( ALL + 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-6352
SELECT MAX ( ALL + 32 ) FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT + MAX( DISTINCT - ( 66 ) ) AS col0, 1 * 60 FROM tab1
----
-66
60

skipif mysql # not compatible
query II rowsort label-6353
SELECT + MAX ( DISTINCT - ( 66 ) ) AS col0, 1 * 60 FROM tab1
----
-66
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT ( - SUM( DISTINCT 72 ) ) AS col1 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT ( - SUM ( DISTINCT 72 ) ) AS col1 FROM tab1
----
-72

query I rowsort
SELECT 14 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + - ( - 39 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

skipif mysql # not compatible
query I rowsort label-6357
SELECT 49 * + col1 / - - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - 12 * - ( + 0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + col2 + - ( - ( - 58 ) ) FROM tab1 AS cor0
----
1
10
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ALL + 45 + - 13 * + ( - + ( 11 ) ) AS col1 FROM tab0 AS cor0
----
188
188
188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT + 53 * 69 - + + COUNT( * ) AS col1 FROM tab2
----
3654

skipif mysql # not compatible
query I rowsort label-6363
SELECT + 53 * 69 - + + COUNT ( * ) AS col1 FROM tab2
----
3654

query II rowsort
SELECT col1 + - - col0 * - col1 * + + col0 AS col0, - col1 * col0 AS col0 FROM tab2 AS cor0
----
-107865
-2346
-315315
-4928
-376808
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL MAX( ALL + 17 ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL MAX ( ALL + 17 ) AS col0 FROM tab2
----
17

query I rowsort
SELECT - 16 * + + 48 + + - col1 AS col0 FROM tab0 AS cor0
----
-769
-789
-849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6369
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED ) * SUM( + col1 ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER ) * SUM ( + col1 ) FROM tab2 AS cor0
----
-585

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( - 45 ) FROM tab1 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-6372
SELECT DISTINCT 71, + col0 DIV + 89 AS col2 FROM tab2
----
71
0

skipif mysql # not compatible
query II rowsort label-6372
SELECT DISTINCT 71, + col0 / + 89 AS col2 FROM tab2
----
71
0

query II rowsort
SELECT DISTINCT + col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

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

query I rowsort
SELECT col2 + 85 FROM tab2 AS cor0
----
108
125
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 16 AS col2 FROM tab2 AS cor0
----
23
-16
40
-16
58
-16

query I rowsort
SELECT ALL 1 + - + col0 AS col0 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL SUM( ALL 66 ) AS col1 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL SUM ( ALL 66 ) AS col1 FROM tab0 AS cor0
----
198

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6380
SELECT ALL - + ( + + CAST( - - 82 AS SIGNED ) ) + - CAST( + ( - col0 ) AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN - 0 + - 13 AND - + col1 )
----

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL - + ( + + CAST ( - - 82 AS INTEGER ) ) + - CAST ( + ( - col0 ) AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN - 0 + - 13 AND - + col1 )
----

query I rowsort
SELECT + + 88 + - 19 - col2 + col1 - + col1 * - col2 * + + col1 * 27 * - col1 AS col1 FROM tab0 AS cor0
----
-2500390
-2702
-674398526

query I rowsort
SELECT 50 * - col2 + + col0 AS col2 FROM tab2
----
-1104
-1936
-2825

query I rowsort
SELECT ALL col1 * + col0 + - ( - 45 ) AS col1 FROM tab1
----
4322
470
759

query I rowsort
SELECT ( col1 ) + + - 74 + - + col1 AS col2 FROM tab0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT + 2 + + ( 17 ) / - + 2 * + - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6385
SELECT + 2 + + ( 17 ) / - + 2 * + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - ( + col0 ) + + col0 + - col2 AS col0 FROM tab2
----
120
159
165

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6389
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1, SUM( - 3 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6389
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1, SUM ( - 3 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0
NULL

query I rowsort
SELECT DISTINCT - 24 * col2 FROM tab0 AS cor0
----
-1128
-2376
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT + col2 DIV 27 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6391
SELECT + col2 / 27 FROM tab2
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL COUNT( * ) * - - ( - - ( + + 71 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
639

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL COUNT ( * ) * - - ( - - ( + + 71 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
639

query I rowsort
SELECT + col0 * - 21 FROM tab0
----
-1827
-2037
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL - 6 * ( - - COUNT( * ) ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - 6 * ( - - COUNT ( * ) ) AS col0 FROM tab2
----
-18

query I rowsort
SELECT ALL 13 * + + 31 AS col0 FROM tab0 AS cor0 WHERE + col1 * col0 IS NOT NULL
----
403
403
403

query I rowsort
SELECT DISTINCT - - 65 AS col0 FROM tab2 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * col2 - + 20 + + 39 * + col0 * - col2 * - + ( + col1 ) + + col0 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL + - col2 * 71 * + - col0 - - 32 * col0 AS col2 FROM tab1 AS cor0
----
349248
358785
442260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT + 84 + + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + 84 + + COUNT ( * ) FROM tab0
----
87

query II rowsort
SELECT ALL col0 * + - ( + col2 ), + col0 - - col2 + + col1 AS col2 FROM tab2
----
-1058
120
-2560
181
-4350
200

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - COUNT( - - 84 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6405
SELECT - COUNT ( - - 84 ) FROM tab0
----
-3

query I rowsort
SELECT ALL ( + 32 ) AS col1 FROM tab2
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 66 ) col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT SUM( + 86 ) AS col0 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT SUM ( + 86 ) AS col0 FROM tab0
----
258

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 18
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE + col2 <> + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6411
SELECT - col2 DIV - - col2 + + col1 col0, + col1 AS col0 FROM tab0 AS cor0
----
0
1
20
21
80
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6411
SELECT - col2 / - - col2 + + col1 col0, + col1 AS col0 FROM tab0 AS cor0
----
0
1
20
21
80
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL SUM( col2 ) * - COUNT( * ) + 81 AS col1 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL SUM ( col2 ) * - COUNT ( * ) + 81 AS col1 FROM tab2
----
-282

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + col2 + - 40 > NULL
----

query II rowsort
SELECT - 82 * col0, - 81 AS col1 FROM tab2 AS cor0
----
-3772
-81
-5248
-81
-6150
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT - ( + MAX( + col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6416
SELECT - ( + MAX ( + col1 ) ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6417
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + CAST( NULL AS DECIMAL ) ) + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6417
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + CAST ( NULL AS REAL ) ) + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 65 AS col0 FROM tab0 AS cor0
----
-5655
-6305
-975

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

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

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL + - COUNT( * ) * 79 + 83 AS col0 FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + - COUNT ( * ) * 79 + 83 AS col0 FROM tab2 AS cor0
----
-154

query I rowsort
SELECT DISTINCT col0 + - 34 + - col1 FROM tab1
----
10
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL 69 + + COUNT( * ) col2 FROM tab0 WHERE NULL IS NULL
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6423
SELECT ALL 69 + + COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL
----
72

query I rowsort
SELECT DISTINCT 17 - - 92 + + + 46 AS col0 FROM tab0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - MIN( + - 33 ) * + 31 AS col1 FROM tab2
----
1023

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - MIN ( + - 33 ) * + 31 AS col1 FROM tab2
----
1023

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - + col2 AND - col0
----

query II rowsort
SELECT 81 * + + 90 AS col2, col1 FROM tab2
----
7290
51
7290
67
7290
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6428
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6429
SELECT COUNT ( col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + - 18 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query II rowsort
SELECT col2, col2 + + - col0 FROM tab2
----
23
-23
40
-24
58
-17

query II rowsort
SELECT col1, 56 - - 58 FROM tab0 AS cor0
----
1
114
21
114
81
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL + SUM( ALL - + 35 ) AS col1 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + SUM ( ALL - + 35 ) AS col1 FROM tab0 AS cor0
----
-105

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

query I rowsort
SELECT DISTINCT + - 42 AS col2 FROM tab2 cor0
----
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 <= + + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - col0 + - - col1 FROM tab1
----
2615
7230
8328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6438
SELECT + 69 + + ( 67 ) + - MAX( + + CAST( + - col1 AS SIGNED ) ) - + COUNT( ALL + + 88 ) + - 33, SUM( DISTINCT + + col1 ) AS col0 FROM tab0
----
101
103

skipif mysql # not compatible
query II rowsort label-6438
SELECT + 69 + + ( 67 ) + - MAX ( + + CAST ( + - col1 AS INTEGER ) ) - + COUNT ( ALL + + 88 ) + - 33, SUM ( DISTINCT + + col1 ) AS col0 FROM tab0
----
101
103

onlyif mysql # DIV for integer division: 
query II rowsort label-6439
SELECT DISTINCT ( + col1 ) * - 59 * col0, - 92 * - ( - col1 ) DIV - col1 AS col2 FROM tab0
----
-107793
92
-5723
92
-71685
92

skipif mysql # not compatible
query II rowsort label-6439
SELECT DISTINCT ( + col1 ) * - 59 * col0, - 92 * - ( - col1 ) / - col1 AS col2 FROM tab0
----
-107793
92
-5723
92
-71685
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + - col0 + + 10 * - + col1 col1 FROM tab2
----
-545
-734
-823

query I rowsort
SELECT - col2 + - - 14 + col2 AS col0 FROM tab0
----
14
14
14

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE NULL = 42 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - 35 + COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-6443
SELECT - 35 + COUNT ( * ) FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT + ( + COUNT( * ) ) + MAX( + col0 ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6444
SELECT + ( + COUNT ( * ) ) + MAX ( + col0 ) AS col0 FROM tab1
----
94

query II rowsort
SELECT - + col2 - + col2, + col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col0 col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + - col0 * - 18 + + col1 AS col2 FROM tab1 AS cor0
----
1535
1685
932

query I rowsort
SELECT DISTINCT - - col2 + - col2 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL - COUNT( * ) + - 2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - COUNT ( * ) + - 2 FROM tab2
----
-5

query II rowsort
SELECT DISTINCT + 54, col1 * + - ( col2 ) AS col1 FROM tab1
----
54
-1344
54
-295
54
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT - + col2 DIV - + 2 + - - col2 + - + ( - col2 ) + - col0 + col2 AS col0 FROM tab0 AS cor0
----
-52
149
249

skipif mysql # not compatible
query I rowsort label-6451
SELECT - + col2 / - + 2 + - - col2 + - + ( - col2 ) + - col0 + col2 AS col0 FROM tab0 AS cor0
----
-52
149
249

query I rowsort
SELECT - - col2 * - 88 * - - 30 + col1 + + col1 + - - col0 AS col0 FROM tab2 AS cor0
----
-105382
-152911
-60572

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 23 - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 23 - COUNT ( * ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT col2 AS col1, ( col2 ) * col2 + + - col0 * - - 35 AS col1 FROM tab2
----
23
-1081
40
-640
58
739

query I rowsort
SELECT ALL + ( col1 ) * col2 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT ALL col0 AS col0, - 4 AS col2 FROM tab0
----
15
-4
87
-4
97
-4

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

query II rowsort
SELECT DISTINCT + 17 AS col2, col0 FROM tab2
----
17
46
17
64
17
75

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( 93 ) 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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT col1 + - 97 * - + CAST( - 50 AS SIGNED ) + - col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 <> - - 75
----

skipif mysql # not compatible
query I rowsort label-6463
SELECT col1 + - 97 * - + CAST ( - 50 AS INTEGER ) + - col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 <> - - 75
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6464
SELECT + - 95 * - + col2 + - + 91 + - + col1 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT + - 95 * - + col2 + - + 91 + - + col1 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - - SUM( DISTINCT + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-6465
SELECT - - SUM ( DISTINCT + col2 ) FROM tab1 cor0
----
223

query I rowsort
SELECT ALL col1 + ( + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL 93 / - - 72 AS col1 FROM tab2 WHERE ( NOT ( NULL = NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - - 36 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + + 38 FROM tab1
----
123
129
89

query III rowsort
SELECT * FROM tab0 WHERE 46 * - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6471
SELECT DISTINCT - CAST( - 61 AS SIGNED ) * + COUNT( * ) AS col1, + ( - COUNT( * ) ) AS col1 FROM tab2
----
183
-3

skipif mysql # not compatible
query II rowsort label-6471
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) * + COUNT ( * ) AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab2
----
183
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT DISTINCT - + 18 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-8
29
81

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - + 18 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-8
29
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 37 col0, col2 * - - col1 AS col2 FROM tab0 AS cor0
----
37
210
37
3807
37
99

query I rowsort
SELECT ALL - ( + - 15 ) AS col1 FROM tab0 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT ALL - - 88 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - - 88 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
85

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL < ( + 92 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 AND - 93 * + col2
----

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

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT - COUNT ( * ) / 21 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL MAX( DISTINCT ( - 92 ) ) * + MIN( DISTINCT col1 ) AS col1 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL MAX ( DISTINCT ( - 92 ) ) * + MIN ( DISTINCT col1 ) AS col1 FROM tab0
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 / col0 col1 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6481
SELECT ALL col0 DIV CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL col0 / CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - 36 + 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 14 ) <= + col0 * + 70 - - 87
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - ( - col2 ) * + 62 col2 FROM tab0 WHERE NOT col2 = ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT DISTINCT + 33 DIV - col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT + 33 / - col2 FROM tab0
----
-3
0

query I rowsort
SELECT col2 * + ( ( + col0 ) * col1 ) - - col0 FROM tab1 WHERE NULL BETWEEN 31 AND - col1
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT col1 DIV col1 AS col2 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6490
SELECT col1 / col1 AS col2 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6491
SELECT DISTINCT CAST( NULL AS DECIMAL ) / SUM( ALL - 32 * + col0 ) FROM tab2 WHERE col2 - + 10 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT CAST ( NULL AS REAL ) / SUM ( ALL - 32 * + col0 ) FROM tab2 WHERE col2 - + 10 IS NULL
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( 1 ) >= 22
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6493
SELECT DISTINCT + CAST( + 28 AS SIGNED ) DIV - col1 + - col1 AS col1 FROM tab0
----
-22
-29
-81

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + CAST ( + 28 AS INTEGER ) / - col1 + - col1 AS col1 FROM tab0
----
-22
-29
-81

query I rowsort
SELECT - 98 + col2 FROM tab1
----
-2
-30
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - 82 ) / col0 <= ( col0 )
----

query I rowsort
SELECT DISTINCT - ( 82 ) AS col0 FROM tab1
----
-82

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 75 ) BETWEEN NULL AND + col1
----
46
51
23
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NULL NOT BETWEEN ( + 70 * - col1 ) AND + col1
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + col2 > - col1
----

query I rowsort
SELECT - col0 + 6 / - ( 35 ) FROM tab2 WHERE ( NULL ) NOT IN ( + 70 )
----

query I rowsort
SELECT + 55 * - col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 / + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT ALL col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL - 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT + COUNT( ALL col2 ) * - 73 col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6507
SELECT + COUNT ( ALL col2 ) * - 73 col1 FROM tab1 AS cor0
----
-219

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = ( + 37 * 87 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 * 21 <= + col2 + - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 11 ) = col1 / 39
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * col2 <> - col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + - ( - 50 ) * 78 FROM tab2 AS cor0
----
3823
3833
3849

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1 AS cor0 WHERE + 30 IS NULL
----

query I rowsort
SELECT - col1 + col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT ALL - col1 * col0 + 19 FROM tab1
----
-406
-4258
-695

query I rowsort
SELECT DISTINCT + 73 + - col1 AS col1 FROM tab0
----
-8
52
72

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 IN ( col1 - col1 * + col0 )
----

query I rowsort
SELECT DISTINCT col2 * - col1 + + col2 * - col2 AS col1 FROM tab0
----
-310
-6016
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT ALL - col2 * + col2 + + 45 * col2 FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( col0 AS SIGNED ) * - 56 + 43 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - col2 * + col2 + + 45 * col2 FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( col0 AS INTEGER ) * - 56 + 43 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - COUNT( * ) * - 74 + - 54 col0 FROM tab2
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6520
SELECT - COUNT ( * ) * - 74 + - 54 col0 FROM tab2
----
168

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

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

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

skipif mysql # not compatible
query I rowsort label-6522
SELECT CAST ( NULL AS INTEGER ) * - 67 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 28 + - 10 AS col2 FROM tab2
----
-38
-38
-38

query I rowsort
SELECT - col1 * - 77 + 95 AS col2 FROM tab2
----
4022
5254
6024

query I rowsort
SELECT DISTINCT col2 / 36 + + col0 AS col1 FROM tab2 WHERE NOT NULL = ( 41 * + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + col2 ) * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT + 52 AS col2 FROM tab2 AS cor0 WHERE CAST( 38 AS SIGNED ) * - col1 <= col1 + col0 * - col1
----

skipif mysql # not compatible
query I rowsort label-6527
SELECT + 52 AS col2 FROM tab2 AS cor0 WHERE CAST ( 38 AS INTEGER ) * - col1 <= col1 + col0 * - col1
----

query I rowsort
SELECT col0 + - col0 / + col1 FROM tab0 AS cor0 WHERE ( + col0 / col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - 74 + + col1 FROM tab2 cor0
----
-23
-7
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * ( + 63 ) col1 FROM tab1 AS cor0
----
1575
1575
1575

query I rowsort
SELECT DISTINCT - + 12 * col1 FROM tab0 cor0
----
-12
-252
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL - + 60 * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-540

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - + 60 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-540

query I rowsort
SELECT col2 - + + 55 - - - 27 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT COUNT( col1 ) + - COUNT( * ) FROM tab2 WHERE ( + col1 * col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT COUNT ( col1 ) + - COUNT ( * ) FROM tab2 WHERE ( + col1 * col1 ) IS NOT NULL
----
0

query I rowsort
SELECT 97 - col1 AS col0 FROM tab1
----
50
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT CAST( - - col1 AS SIGNED ) * - 93 * + col0 + CAST( col1 AS SIGNED ) - col1 AS col0 FROM tab2
----
-218178
-458304
-467325

skipif mysql # not compatible
query I rowsort label-6536
SELECT CAST ( - - col1 AS INTEGER ) * - 93 * + col0 + CAST ( col1 AS INTEGER ) - col1 AS col0 FROM tab2
----
-218178
-458304
-467325

query I rowsort
SELECT ALL - 67 - + 42 FROM tab2
----
-109
-109
-109

query I rowsort
SELECT + 95 + 62 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 93e725bb36fefb7e2c3eba395d50fc7f

query II rowsort
SELECT DISTINCT + 60, - 39 AS col2 FROM tab1 cor0
----
60
-39

query I rowsort
SELECT ALL + + col0 * - col2 - 48 FROM tab0 AS cor0
----
-753
-918
-9651

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

query I rowsort
SELECT DISTINCT - col0 * + 73 * - col2 * 89 + + 23 AS col0 FROM tab2 AS cor0
----
16632343
28261973
6873849

query I rowsort
SELECT ALL col0 * - - 73 AS col1 FROM tab2 AS cor0
----
3358
4672
5475

query I rowsort
SELECT DISTINCT + col1 * - 36 AS col0 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT ALL - - 13 * - col2 FROM tab1 AS cor0
----
-1248
-767
-884

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

query I rowsort
SELECT - ( 74 ) AS col1 FROM tab0 cor0
----
-74
-74
-74

query I rowsort
SELECT - + col1 * + 15 - + col0 AS col2 FROM tab2 cor0
----
-1080
-1219
-811

query I rowsort
SELECT DISTINCT - ( 38 ) * + col0 FROM tab0 AS cor0
----
-3306
-3686
-570

query I rowsort
SELECT - col0 * + col2 + col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT DISTINCT - CAST( + - COUNT( DISTINCT - 59 ) AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - CAST ( + - COUNT ( DISTINCT - 59 ) AS INTEGER ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT col0 DIV + - 73 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT col0 / + - 73 AS col0 FROM tab2
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * + + col2 col2 FROM tab0
----
2679
5643
570

query I rowsort
SELECT ALL 42 - - col1 FROM tab1 WHERE NOT + 26 - - + col1 / - 13 IS NOT NULL
----

query I rowsort
SELECT 21 FROM tab0 AS cor0 WHERE NOT ( - col0 + col0 ) <= - col1 * 51
----
21
21
21

query I rowsort
SELECT ALL - col0 * - + col1 * 7 FROM tab1 cor0
----
2975
29939
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 * 27 > ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 * 27 > ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 < - 12 * + - 48 * - col0
----
3

skipif mysql # not compatible
query I rowsort label-6558
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 < - 12 * + - 48 * - col0
----
3

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

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL - COUNT ( * ) / - 53 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 45 FROM tab1 AS cor0 WHERE NOT - 25 IN ( col0 + col0 + - 46 )
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT COUNT( DISTINCT - 3 ) * + 88 * - 32 * + - 98 + 90 FROM tab0 AS cor0
----
276058

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT COUNT ( DISTINCT - 3 ) * + 88 * - 32 * + - 98 + 90 FROM tab0 AS cor0
----
276058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 + - - col0 * - ( + 9 ) col0 FROM tab0 AS cor0
----
-65
-713
-803

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + col1 + - 68 NOT BETWEEN - col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL + ( - - ( + 54 ) ) + - CAST( - 28 AS SIGNED ) col1 FROM tab2 cor0
----
82
82
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6565
SELECT ALL + ( - - ( + 54 ) ) + - CAST ( - 28 AS INTEGER ) col1 FROM tab2 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + + 61 AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + 61 AS col2 FROM tab2
----
64

query I rowsort
SELECT ALL - 47 * + col1 + col1 AS col0 FROM tab1
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT 11 * + COUNT( * ) FROM tab1 WHERE ( NOT NULL NOT IN ( col1 * + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT 11 * + COUNT ( * ) FROM tab1 WHERE ( NOT NULL NOT IN ( col1 * + col1 ) )
----
0

query I rowsort
SELECT ALL + col0 - + ( - 52 ) FROM tab2
----
116
127
98

query I rowsort
SELECT DISTINCT - 97 * + + col1 FROM tab1
----
-1358
-4559
-485

query III rowsort
SELECT * FROM tab0 WHERE + 68 + + - col1 + + ( - + col0 ) * 40 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT - COUNT( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6573
SELECT - COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 36 + col0 FROM tab0 AS cor0
----
123
133
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + 77
----

query I rowsort
SELECT - col2 + + 30 AS col1 FROM tab1 AS cor0
----
-29
-38
-66

query I rowsort
SELECT DISTINCT + col1 * - + 2 + + 70 FROM tab0 AS cor0
----
-92
28
68

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL > - 19
----

query I rowsort
SELECT - ( - 89 ) AS col1 FROM tab1
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT DISTINCT + - col0 DIV col1 + - - col0 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT + - col0 / col1 + - - col0 FROM tab0 AS cor0
----
0
15
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + - col1 <= - col0 / 55 * 89 - + + col0
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT DISTINCT + col1 DIV col1 * col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + col1 / col1 * col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6583
SELECT DISTINCT 32 * col0 DIV CAST( + 5 AS SIGNED ) AS col0, col0 AS col1 FROM tab1
----
326
51
544
85
582
91

skipif mysql # not compatible
query II rowsort label-6583
SELECT DISTINCT 32 * col0 / CAST ( + 5 AS INTEGER ) AS col0, col0 AS col1 FROM tab1
----
326
51
544
85
582
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - COUNT( * ) * 94 AS col0 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - COUNT ( * ) * 94 AS col0 FROM tab2
----
-282

query I rowsort
SELECT ( - - 37 ) FROM tab2
----
37
37
37

query I rowsort
SELECT ALL col0 * + - col2 AS col1 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT - ( + 74 ) + - + col0, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-161
87
-171
97
-89
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT ALL + - CAST( + ( + col1 ) AS SIGNED ) + col2 * col2 AS col1 FROM tab0 AS cor0
----
2128
79
9800

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + - CAST ( + ( + col1 ) AS INTEGER ) + col2 * col2 AS col1 FROM tab0 AS cor0
----
2128
79
9800

query I rowsort
SELECT ALL col2 * + ( + 6 ) + col0 AS col0 FROM tab0 cor0
----
147
297
691

query I rowsort
SELECT DISTINCT + 26 * - 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1768

query I rowsort
SELECT - col1 * - - col1 AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT + - 76 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL - 22 AS col2 FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT SUM( - + 58 ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-174

skipif mysql # not compatible
query I rowsort label-6594
SELECT SUM ( - + 58 ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-174

query I rowsort
SELECT + 7 * + col2 + - + col2 AS col0 FROM tab0 cor0
----
282
594
60

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2 WHERE + 23 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - - 97 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE - - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE - - col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL + + 52 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + + 52 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
156

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + 95 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-855

skipif mysql # not compatible
query I rowsort label-6602
SELECT + 95 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL + MAX( - - 9 ) * + 49 FROM tab0
----
441

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + MAX ( - - 9 ) * + 49 FROM tab0
----
441

query I rowsort
SELECT ALL col1 * + ( - + 30 ) FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-6605
SELECT 22 col0, + COUNT( * ) FROM tab1 AS cor0
----
22
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6605
SELECT 22 col0, + COUNT ( * ) FROM tab1 AS cor0
----
22
3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * col0 / + ( - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, - col2 AS col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT + MIN( DISTINCT + - 76 ) AS col2 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6609
SELECT + MIN ( DISTINCT + - 76 ) AS col2 FROM tab1 AS cor0
----
-76

query II rowsort
SELECT DISTINCT col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6611
SELECT + CAST( NULL AS SIGNED ) AS col2, COUNT( DISTINCT 62 ) AS col2 FROM tab1 AS cor0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6611
SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( DISTINCT 62 ) AS col2 FROM tab1 AS cor0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT MAX( 8 ) * + COUNT( * ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-6612
SELECT MAX ( 8 ) * + COUNT ( * ) AS col1 FROM tab2
----
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + 59 + col2 * - col0 * - col2 / col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6614
SELECT DISTINCT - COUNT( col0 ), CAST( + - 95 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
-95

skipif mysql # not compatible
query II rowsort label-6614
SELECT DISTINCT - COUNT ( col0 ), CAST ( + - 95 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + - SUM( col2 ) + + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6615
SELECT + - SUM ( col2 ) + + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-159

query I rowsort
SELECT ALL col1 * ( ( + 95 ) ) FROM tab2
----
4845
6365
7315

query I rowsort
SELECT DISTINCT 26 * col1 * + ( - 57 ) FROM tab1
----
-20748
-69654
-7410

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT - - SUM( + + col0 ) FROM tab0 WHERE - col0 BETWEEN - + 19 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT - - SUM ( + + col0 ) FROM tab0 WHERE - col0 BETWEEN - + 19 AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL - 50 / col1 + col2 + - - col2 * 67 * col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 74 * col1 AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NULL ) NOT BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT DISTINCT - + 35 AS col1 FROM tab2 cor0 WHERE NOT ( NOT - 41 + + 60 IS NULL )
----

query II rowsort
SELECT ALL + col1, col0 * col1 AS col2 FROM tab1 AS cor0
----
14
714
47
4277
5
425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6624
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - - col0 ) - + + col1 + - - 89 + + CAST( + 70 AS SIGNED ) * + col1 * - + 96 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6624
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - - col0 ) - + + col1 + - - 89 + + CAST ( + 70 AS INTEGER ) * + col1 * - + 96 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT + col2 DIV + - 8 FROM tab1 AS cor0
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-6626
SELECT + col2 / + - 8 FROM tab1 AS cor0
----
-12
-7
-8

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 37 IS NOT NULL )
----

query I rowsort
SELECT col0 - 82 FROM tab1
----
-31
3
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 27 >= - 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT DISTINCT + 29 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT + 29 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT - + COUNT( * ) + - 54 FROM tab0 WHERE - 69 < - col1 / + - 32 + col2
----
-57

skipif mysql # not compatible
query I rowsort label-6632
SELECT - + COUNT ( * ) + - 54 FROM tab0 WHERE - 69 < - col1 / + - 32 + col2
----
-57

query I rowsort
SELECT DISTINCT 87 * + col0 - - - col1 AS col0 FROM tab1
----
4423
7390
7870

query III rowsort
SELECT * FROM tab0 WHERE + 68 * 44 + - + col1 * + ( col2 ) / + + 28 - - col0 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - - 51 col1, + ( - col2 ) AS col0 FROM tab1
----
102
-96
136
-59
142
-68

query I rowsort
SELECT - + 57 * - - 64 FROM tab2 WHERE NULL IS NULL
----
-3648
-3648
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - - 43 * COUNT( * ) + 22 + 74 * + + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6637
SELECT - - 43 * COUNT ( * ) + 22 + 74 * + + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-6638
SELECT + + 6 * col2 DIV - ( 32 ) col2, + col0 * - col2 * + ( col1 ) * - col1 col2 FROM tab2 AS cor0
----
-10
19527150
-4
2751858
-7
15178240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6638
SELECT + + 6 * col2 / - ( 32 ) col2, + col0 * - col2 * + ( col1 ) * - col1 col2 FROM tab2 AS cor0
----
-10
19527150
-4
2751858
-7
15178240

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab1 cor0
----
-37

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6641
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT 47 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6641
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT 47 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - + SUM( - - 62 ) FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6642
SELECT - + SUM ( - - 62 ) FROM tab1 AS cor0
----
-186

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6643
SELECT DISTINCT COUNT( CAST( + col1 AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT - 98 + + - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT - 98 + + - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT ( - + ( - 87 ) ) * ( + 2 ) + COUNT( col0 ) col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6645
SELECT DISTINCT ( - + ( - 87 ) ) * ( + 2 ) + COUNT ( col0 ) col2 FROM tab0 AS cor0
----
177

query I rowsort
SELECT ALL - 59 * + col0 AS col0 FROM tab0 AS cor0
----
-5133
-5723
-885

query I rowsort
SELECT col2 * 19 AS col1 FROM tab2
----
1102
437
760

query II rowsort
SELECT - 98, - 29 AS col2 FROM tab1
----
-98
-29
-98
-29
-98
-29

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + + 41 - - - col1 / + + col1 + + col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT MAX( ALL col2 ) + - + 63 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-6650
SELECT MAX ( ALL col2 ) + - + 63 FROM tab1
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 27 * 74 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + 46 + + col2 FROM tab1
----
110
156
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT DISTINCT + CAST( + col0 AS SIGNED ) - - 99 AS col2 FROM tab0 AS cor0
----
114
186
196

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) - - 99 AS col2 FROM tab0 AS cor0
----
114
186
196

query I rowsort
SELECT col0 + - 2 * col1 + + col1 * + col2 FROM tab1 AS cor0
----
1367
3193
370

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 >= - 48 - - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 85 + + col0 AS col1 FROM tab0 AS cor0
----
100
172
182

query II rowsort
SELECT + + col0 + - - 97 AS col2, 32 AS col0 FROM tab0 AS cor0
----
112
32
184
32
194
32

query I rowsort
SELECT + col2 + col1 - - col0 * - + col0 * - col2 * - - col0 + - 80 FROM tab1
----
12734526
36233359
51242863

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL - 68 + COUNT( * ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - 68 + COUNT ( * ) FROM tab1
----
-65

query I rowsort
SELECT + 17 * 18 AS col1 FROM tab0 WHERE - 25 BETWEEN NULL AND - 8
----

query II rowsort
SELECT - 17, 20 AS col2 FROM tab0
----
-17
20
-17
20
-17
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + SUM( - + 42 ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-6663
SELECT + SUM ( - + 42 ) FROM tab2
----
-126

query I rowsort
SELECT DISTINCT 23 + - col1 FROM tab2 WHERE + col2 + 22 <= + col1
----
-28
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6665
SELECT ALL + - col2 * ( 18 ) + + - 1 + - - col0, - col1 FROM tab2 AS cor0 WHERE 18 * + - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-6665
SELECT ALL + - col2 * ( 18 ) + + - 1 + - - col0, - col1 FROM tab2 AS cor0 WHERE 18 * + - CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - 64 * + ( col0 ) + - 8 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT - SUM( - 90 ) AS col1 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-6667
SELECT - SUM ( - 90 ) AS col1 FROM tab2 AS cor0
----
270

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 22 ) = ( NULL )
----

query I rowsort
SELECT + 87 + 86 FROM tab0 AS cor0
----
173
173
173

query I rowsort
SELECT DISTINCT + 15 * col0 * 54 + + col2 + + 47 + + + ( + 17 ) AS col1 FROM tab0 AS cor0
----
12261
70544
78733

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 42 * col2 <> NULL
----

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

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

query I rowsort
SELECT ALL 1 + - - 22 AS col0 FROM tab1
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6675
SELECT ALL * FROM tab1 WHERE + + col1 + - + col2 - - - col1 * - CAST( 26 AS SIGNED ) * - col2 + col1 * - 94 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6675
SELECT ALL * FROM tab1 WHERE + + col1 + - + col2 - - - col1 * - CAST ( 26 AS INTEGER ) * - col2 + col1 * - 94 IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT col0 / - - ( - - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT COUNT( * ) + 64 + + COUNT( * ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT COUNT ( * ) + 64 + + COUNT ( * ) FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT + 37 FROM tab2 WHERE - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6678
SELECT + 37 FROM tab2 WHERE - CAST ( + col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL + col1, + col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT + col2 * - + 59 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT + col2 * - + 59 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col0 * + - 20 >= + 2 - - + 88
----

query I rowsort
SELECT - 88 * - 67 FROM tab1
----
5896
5896
5896

query I rowsort
SELECT DISTINCT + + col0 + + 19 AS col1 FROM tab2 cor0
----
65
83
94

query I rowsort
SELECT DISTINCT col0 + - 90 FROM tab1
----
-39
-5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col1 * + - col2 * + col1 col2 FROM tab2
----
51
59823
67
260362
77
237160

query I rowsort
SELECT 1 * - + col2 FROM tab0
----
-10
-47
-99

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

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

query I rowsort
SELECT DISTINCT - + 15 + - + col0 FROM tab2 AS cor0
----
-61
-79
-90

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

query I rowsort
SELECT col0 * 68 * col0 FROM tab0 cor0
----
15300
514692
639812

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT col0 DIV - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6691
SELECT col0 / - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT col2 * + col2 - - + col0 FROM tab2 cor0
----
1664
3439
575

query I rowsort
SELECT DISTINCT col1 * - + col0 * - - col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL + SUM( DISTINCT + + 21 ) * - SUM( - 32 ) - + + 12 + + 61 * 37 col1 FROM tab0 AS cor0
----
4261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6694
SELECT ALL + SUM ( DISTINCT + + 21 ) * - SUM ( - 32 ) - + + 12 + + 61 * 37 col1 FROM tab0 AS cor0
----
4261

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT - col2 DIV - col1 + col2 * + + col2 FROM tab0 cor0
----
100
2209
9900

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - col2 / - col1 + col2 * + + col2 FROM tab0 cor0
----
100
2209
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT - col0 * col0 * + 3 + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT - col0 * col0 * + 3 + - col0 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6697
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6697
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE col0 * - - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE col0 * - - col1 > NULL
----
0

query I rowsort
SELECT DISTINCT + col2 * + - 76 FROM tab1 AS cor0
----
-4484
-5168
-7296

query I rowsort
SELECT DISTINCT - 13 * - + col2 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6702
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 60 * - 58 + - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6702
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 60 * - 58 + - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 IS NOT NULL
----

query I rowsort
SELECT ALL - 27 AS col1 FROM tab1 WHERE 11 IS NULL
----

query I rowsort
SELECT + 80 * - + ( col1 ) FROM tab2
----
-4080
-5360
-6160

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6708
SELECT + col0 DIV + CAST( col2 AS SIGNED ) FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6708
SELECT + col0 / + CAST ( col2 AS INTEGER ) FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT + + 98 * - COUNT( * ) + - 10 AS col1 FROM tab2 AS cor0
----
-304

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + + 98 * - COUNT ( * ) + - 10 AS col1 FROM tab2 AS cor0
----
-304

query I rowsort
SELECT DISTINCT 32 * - 12 + - col0 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
-2985
-7609
-8665

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL - COUNT( * ) * ( - MAX( DISTINCT 34 ) ) FROM tab1 cor0
----
102

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - COUNT ( * ) * ( - MAX ( DISTINCT 34 ) ) FROM tab1 cor0
----
102

query I rowsort
SELECT DISTINCT + - 37 + + + 28 FROM tab0 AS cor0
----
-9

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

query I rowsort
SELECT + + col0 FROM tab0 WHERE - col2 / - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT ALL 58 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL 58 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT DISTINCT - ( + + ( + 76 ) ) + - COUNT( * ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT - ( + + ( + 76 ) ) + - COUNT ( * ) FROM tab1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT DISTINCT col2 col2 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND col0 * - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6718
SELECT DISTINCT col2 col2 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND col0 * - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + - - col2 col1 FROM tab1
----
127
136
164

query II rowsort
SELECT + ( + - col2 ) + - col1 * 77, + col0 AS col0 FROM tab2
----
-3950
46
-5217
75
-5969
64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT DISTINCT + COUNT( * ), - COUNT( ALL - 96 ) AS col1 FROM tab2 WHERE NOT + + col1 + + col0 * ( ( - col0 ) ) BETWEEN + col2 AND - col2 / - col2 * - col1
----
3
-3

skipif mysql # not compatible
query II rowsort label-6723
SELECT DISTINCT + COUNT ( * ), - COUNT ( ALL - 96 ) AS col1 FROM tab2 WHERE NOT + + col1 + + col0 * ( ( - col0 ) ) BETWEEN + col2 AND - col2 / - col2 * - col1
----
3
-3

query I rowsort
SELECT ALL 44 * - col1 * - - ( - col1 ) FROM tab2
----
114444
197516
260876

onlyif mysql # DIV for integer division: 
query II rowsort label-6725
SELECT col2 DIV 30 + - - col0 * - 92 AS col2, - 54 FROM tab2
----
-4232
-54
-5887
-54
-6899
-54

skipif mysql # not compatible
query II rowsort label-6725
SELECT col2 / 30 + - - col0 * - 92 AS col2, - 54 FROM tab2
----
-4232
-54
-5887
-54
-6899
-54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 77 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT - col0 DIV + ( - col0 ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6727
SELECT - col0 / + ( - col0 ) AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT - MIN( ALL col1 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6728
SELECT - MIN ( ALL col1 ) AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col2 * - col2 AS col2 FROM tab0 cor0
----
178944
2187
9898

query III rowsort
SELECT * FROM tab0 WHERE + col2 / - 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT ALL + col1 DIV + - 60 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + col1 / + - 60 + col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE 18 + + col0 IN ( - + 22 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT + MAX( DISTINCT 38 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT + MAX ( DISTINCT 38 ) AS col2 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6735
SELECT - - 30 AS col1, 52 * - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
30
468

skipif mysql # not compatible
query II rowsort label-6735
SELECT - - 30 AS col1, 52 * - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
30
468

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL + - 98 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL + - 98 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-294

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT DISTINCT ( + SUM( + + col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT ( + SUM ( + + col2 ) ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6739
SELECT 50 AS col0, + CAST( COUNT( + - 74 ) AS SIGNED ) FROM tab0
----
50
3

skipif mysql # not compatible
query II rowsort label-6739
SELECT 50 AS col0, + CAST ( COUNT ( + - 74 ) AS INTEGER ) FROM tab0
----
50
3

query II rowsort
SELECT DISTINCT + col2, - 26 FROM tab0
----
10
-26
47
-26
99
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * + col0 col1 FROM tab2
----
138
192
225

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

skipif mysql # not compatible
query II rowsort label-6742
SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( + col2 ) + + 0 AS col2 FROM tab1
----
3
-59

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

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

skipif mysql # not compatible
query I rowsort label-6744
SELECT - 49 / + col2 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN + col2 AND + col2 + + col2 + + + col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 21 + - 7 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col2 / + + col2 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6747
SELECT - 90 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT - 90 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT + ( col2 ) AS col1, 10, - col0 - + col1 FROM tab0 WHERE NOT - - col2 * + - col0 * col1 * - ( - 48 ) < + 0 * 34 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT COUNT( ALL + 21 ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6749
SELECT COUNT ( ALL + 21 ) AS col2 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-6750
SELECT - - col1 + - - col1 DIV col2, - ( col0 ) + + - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
-96
23
-66
82
66

skipif mysql # not compatible
query II rowsort label-6750
SELECT - - col1 + - - col1 / col2, - ( col0 ) + + - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
-96
23
-66
82
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 80 * col0, - col2 col1 FROM tab1 AS cor0
----
4080
-96
6800
-59
7280
-68

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

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

query I rowsort
SELECT ALL + ( - 89 ) * col0 + + 91 AS col1 FROM tab0 AS cor0
----
-1244
-7652
-8542

query I rowsort
SELECT + col1 + + + 38 + + - col0 * col2 FROM tab2 AS cor0
----
-2445
-4245
-969

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

skipif mysql # not compatible
query II rowsort label-6755
SELECT CAST ( - 80 AS INTEGER ), - ( - - col2 ) AS col0 FROM tab1 cor0
----
-80
-59
-80
-68
-80
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + 89 >= + col2
----
46
51
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6757
SELECT DISTINCT - SUM( - ( col1 ) ) DIV COUNT( * ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT - SUM ( - ( col1 ) ) / COUNT ( * ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT + - 61 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ( - - 82 ) AS col1 FROM tab0
----
82
82
82

query I rowsort
SELECT ALL ( + col1 ) * col2 + - - col1 * + col0 + 28 + - - col2 AS col0 FROM tab2
----
3570
8076
8997

query II rowsort
SELECT ALL - 40 AS col2, col0 + 69 FROM tab1
----
-40
120
-40
154
-40
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + 58 / col1 + + 99 * + + 73 / - ( + - 59 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT DISTINCT - 63 DIV - col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - 63 / - col2 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL 41 - col0 FROM tab0
----
-46
-56
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT ALL ( 46 ) DIV + + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL ( 46 ) / + + col1 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT - ( - 11 ) AS col1 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT + col0 * - 30 * - ( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6769
SELECT - + CAST( 77 AS SIGNED ) * + - 73 + + 66, 27 col2 FROM tab2 AS cor0
----
5687
27
5687
27
5687
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6769
SELECT - + CAST ( 77 AS INTEGER ) * + - 73 + + 66, 27 col2 FROM tab2 AS cor0
----
5687
27
5687
27
5687
27

query I rowsort
SELECT + - 3 * - + 64 FROM tab2 AS cor0
----
192
192
192

query I rowsort
SELECT - 43 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6772
SELECT DISTINCT - col0, - col1 * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6772
SELECT DISTINCT - col0, - col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT col0 DIV 89 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6773
SELECT col0 / 89 col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 * + + col1 FROM tab0
----
10
441
47
6561
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab0
----
10
10
10

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT DISTINCT 74 * col0 FROM tab1 cor0
----
3774
6290
6734

query I rowsort
SELECT DISTINCT 29 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - 8 ) / 80 + + - 1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - COUNT( * ) FROM tab0 WHERE NOT - col0 * - - col2 NOT BETWEEN 79 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - col0 * - - col2 NOT BETWEEN 79 AND NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * + + 79 FROM tab0 AS cor0
----
1659
6399
79

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

query II rowsort
SELECT 19 + + + 73 + + + col2 AS col1, col2 AS col1 FROM tab1
----
151
59
160
68
188
96

query I rowsort
SELECT ALL - col0 + - + 68 FROM tab1
----
-119
-153
-159

query I rowsort
SELECT + col0 FROM tab1 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL + COUNT( * ) * + - COUNT( * ) * - - COUNT( * ) + - COUNT( col0 ) FROM tab0 WHERE + + 36 IS NOT NULL
----
-30

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * - - COUNT ( * ) + - COUNT ( col0 ) FROM tab0 WHERE + + 36 IS NOT NULL
----
-30

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + 39 col1 FROM tab2
----
103
114
85

query I rowsort
SELECT ALL col1 + + - col2 + + col1 + - + col1 - + + 73 * ( col0 ) AS col1 FROM tab2 cor0
----
-3330
-4635
-5466

query I rowsort
SELECT - - 62 + - 37 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 44 - + - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6792
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 44 - + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT ALL - COUNT ( col2 ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + ( col2 ) FROM tab0 AS cor0 WHERE NOT 65 < NULL
----

query I rowsort
SELECT - ( - AVG ( + - 44 ) ) FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----
NULL

query I rowsort
SELECT - - 96 * + + col2 * 56 + 56 AS col2 FROM tab2 AS cor0
----
123704
215096
311864

query II rowsort
SELECT - 1 * - col0 - + col0, 6 + col1 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
0
18276
0
57111
0
9609

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT DISTINCT - - SUM( - 2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT - - SUM ( - 2 ) FROM tab2 AS cor0
----
-6

query II rowsort
SELECT DISTINCT + col1, - col1 + col0 FROM tab1 AS cor0
----
14
37
47
44
5
80

query I rowsort
SELECT - 11 * - ( 15 ) * - + col0 AS col1 FROM tab2 AS cor0
----
-10560
-12375
-7590

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

query I rowsort
SELECT DISTINCT - col2 + - + col1 FROM tab1 WHERE NOT 50 * - col2 NOT BETWEEN + col0 AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6803
SELECT ALL + - ( - - SUM( ALL + + CAST( NULL AS DECIMAL ) ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + - ( - - SUM ( ALL + + CAST ( NULL AS REAL ) ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL 59 + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL 59 + COUNT ( * ) FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + + COUNT( * ) * - + 57 AS col0 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + + COUNT ( * ) * - + 57 AS col0 FROM tab1 AS cor0
----
-171

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 92 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * + - col2 col2 FROM tab0
----
-1504
-3168
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT - - MAX( ALL - + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT - - MAX ( ALL - + col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT + MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6809
SELECT + MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col0 * + 3 col2 FROM tab2 AS cor0
----
46
138
64
192
75
225

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT - col0 DIV - 73 AS col0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6811
SELECT - col0 / - 73 AS col0 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col2 * 2 * - col2 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 40, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - + col2 col2, col2 AS col0 FROM tab2 WHERE + ( 27 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - ( 27 ) ) + - + 98 FROM tab1
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT + + 25 DIV col1 FROM tab0 WHERE NULL IS NULL
----
0
1
25

skipif mysql # not compatible
query I rowsort label-6816
SELECT + + 25 / col1 FROM tab0 WHERE NULL IS NULL
----
0
1
25

query I rowsort
SELECT ALL + col0 - + 70 AS col1 FROM tab2
----
-24
-6
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6818
SELECT col2 + CAST( NULL AS DECIMAL ) + - 14 + + - 84 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT col2 + CAST ( NULL AS REAL ) + - 14 + + - 84 * - col1 FROM tab0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + col1 - - 83 FROM tab1 AS cor0
----
36
69
78

query I rowsort
SELECT DISTINCT - 62 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-287
-7631
-9471

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + + COUNT( * ) + + - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6822
SELECT + + COUNT ( * ) + + - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6823
SELECT ALL COUNT( ALL + 22 ) DIV - 31 * + + 69 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL COUNT ( ALL + 22 ) / - 31 * + + 69 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - ( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT - SUM( DISTINCT + 51 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6826
SELECT - SUM ( DISTINCT + 51 ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col0 FROM tab1 cor0
----
-62

query I rowsort
SELECT col1 * + 46 AS col0 FROM tab2 AS cor0
----
2346
3082
3542

query I rowsort
SELECT DISTINCT + - col0 * + + 36 FROM tab0 AS cor0
----
-3132
-3492
-540

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT ALL + 50 DIV 72 + + - 33 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + 50 / 72 + + - 33 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6832
SELECT + MAX( - + col1 ) + ( - 31 ) AS col2 FROM tab2 WHERE NOT - CAST( col0 AS SIGNED ) BETWEEN col0 AND NULL
----
-82

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6833
SELECT - COUNT( * ) col0, 43 FROM tab0
----
-3
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6833
SELECT - COUNT ( * ) col0, 43 FROM tab0
----
-3
43

query II rowsort
SELECT col0 * + 63 * 62, + col0 AS col2 FROM tab2
----
179676
46
249984
64
292950
75

query II rowsort
SELECT + col1 AS col0, - col0 * + col0 * col2 FROM tab1
----
14
-249696
47
-563108
5
-426275

query I rowsort
SELECT DISTINCT - + col0 - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-141
-142
-97

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

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

query I rowsort
SELECT DISTINCT + - col1 + 95 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> + col2
----

query I rowsort
SELECT - col1 * col1 - + - 9 * col1 FROM tab1
----
-1786
-70
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( - col2 ) < NULL
----

query I rowsort
SELECT 2 + + col1 + col2 AS col2 FROM tab2 AS cor0
----
119
127
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT - COUNT( * ) + COUNT( * ) DIV 13 + 29 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6844
SELECT - COUNT ( * ) + COUNT ( * ) / 13 + 29 FROM tab0 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + + ( + col1 ) + col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT - + CAST( + col0 AS SIGNED ) * 33 + + col2 + 86 FROM tab0 cor0
----
-2775
-3016
-362

skipif mysql # not compatible
query I rowsort label-6847
SELECT - + CAST ( + col0 AS INTEGER ) * 33 + + col2 + 86 FROM tab0 cor0
----
-2775
-3016
-362

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT DISTINCT col0 + 15 DIV - col1 AS col1 FROM tab0 cor0
----
15
82
87

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT col0 + 15 / - col1 AS col1 FROM tab0 cor0
----
15
82
87

query I rowsort
SELECT + col2 + - 15 FROM tab1 AS cor0
----
44
53
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT 8 / - 33 * + MAX( + - col2 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6850
SELECT 8 / - 33 * + MAX ( + - col2 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 19 + - 67 + - 55 + + col1 * col0 FROM tab0
----
-6
1112
1724

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6852
SELECT COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE 89 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + + ( - col1 ) + col1 col1 FROM tab2
----
148
209
218

query III rowsort
SELECT * FROM tab0 WHERE - - 89 IS NULL
----

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND + + col1 + - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT + SUM( DISTINCT + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + SUM ( DISTINCT + col0 ) FROM tab0
----
199

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6859
SELECT ALL COUNT ( * ) - - + 83 col2 FROM tab1
----
86

query I rowsort
SELECT ALL col0 - 57 AS col2 FROM tab0
----
-42
30
40

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

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

query I rowsort
SELECT DISTINCT + - 96 AS col0 FROM tab2 AS cor0
----
-96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + col1 + + col0 FROM tab1
----
59
90
68
138
96
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT MIN( DISTINCT - 27 ) * - - SUM( DISTINCT + 66 ) FROM tab1 AS cor0
----
-1782

skipif mysql # not compatible
query I rowsort label-6865
SELECT MIN ( DISTINCT - 27 ) * - - SUM ( DISTINCT + 66 ) FROM tab1 AS cor0
----
-1782

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT SUM( - 59 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * + col0 / + - col2 AND 13 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT SUM ( - 59 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * + col0 / + - col2 AND 13 * - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL - + SUM( ALL ( + col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - + SUM ( ALL ( + col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + 41 * 60 AS col0 FROM tab2 AS cor0
----
2460

query I rowsort
SELECT + ( col2 ) * 75 AS col0 FROM tab0 AS cor0
----
3525
7425
750

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL + COUNT( * ) * 12 AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL + COUNT ( * ) * 12 AS col1 FROM tab2 AS cor0
----
36

query I rowsort
SELECT 17 * - 29 + col1 - 36 FROM tab2 AS cor0
----
-452
-462
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL COUNT( * ) * - - 4 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL COUNT ( * ) * - - 4 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL col0 + - - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
196
62
97

query II rowsort
SELECT col2 * 29, + col1 FROM tab0 cor0
----
1363
81
2871
1
290
21

query II rowsort
SELECT ALL col0, 30 FROM tab2 AS cor0
----
46
30
64
30
75
30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT DISTINCT - CAST( 93 AS SIGNED ) * + col0 FROM tab2
----
-4278
-5952
-6975

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - CAST ( 93 AS INTEGER ) * + col0 FROM tab2
----
-4278
-5952
-6975

query II rowsort
SELECT + col0 * + col0 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
2116
51
4096
77
5625
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT - 15 AS col0, - MIN( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-15
-1

skipif mysql # not compatible
query II rowsort label-6880
SELECT - 15 AS col0, - MIN ( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-15
-1

query I rowsort
SELECT + - 73 + col2 + - - 80 FROM tab2 AS cor0
----
30
47
65

query II rowsort
SELECT 60, col0 + + col0 AS col1 FROM tab2
----
60
128
60
150
60
92

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

skipif mysql # not compatible
query I rowsort label-6883
SELECT - - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 25 * 17 AS col1 FROM tab1 AS cor0
----
425
425
425

query I rowsort
SELECT - 56 * - col2 FROM tab2 AS cor0
----
1288
2240
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT - - MIN( DISTINCT + + 56 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6886
SELECT - - MIN ( DISTINCT + + 56 ) FROM tab2 AS cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 62 AS col2, 28 * col2 * + + 86 + - col1 + + - col1 * + + col1 * - + 99 col2 FROM tab1 AS cor0
----
-62
144542
-62
250558
-62
382388

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + - SUM( 32 ) AS col0 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6888
SELECT + - SUM ( 32 ) AS col0 FROM tab2 cor0
----
-96

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 29 * col0 + col2 AND NULL
----

query I rowsort
SELECT ALL 9 - - + col2 * + 26 FROM tab0
----
1231
2583
269

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6891
SELECT DISTINCT + col0 * - col1 + 29 - - + col2 + - - col0 * CAST( NULL AS SIGNED ) / col2 AS col0, col0 * col0 FROM tab0
----
NULL
225
NULL
7569
NULL
9409

skipif mysql # not compatible
query II rowsort label-6891
SELECT DISTINCT + col0 * - col1 + 29 - - + col2 + - - col0 * CAST ( NULL AS INTEGER ) / col2 AS col0, col0 * col0 FROM tab0
----
NULL
225
NULL
7569
NULL
9409

query I rowsort
SELECT - col0 * - - 82 * - col1 FROM tab1
----
34850
350714
58548

query II rowsort
SELECT - col0 * + 37, col1 AS col2 FROM tab0
----
-3219
21
-3589
1
-555
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 * - + col1 col2 FROM tab0 AS cor0
----
-243
-3
-63

query I rowsort
SELECT + + 70 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + - ( - 54 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - - 13 * + COUNT( * ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6897
SELECT - - 13 * + COUNT ( * ) FROM tab0 AS cor0
----
39

query I rowsort
SELECT ALL + 24 * + - col0 - col0 + + 61 * 42 * + 14 FROM tab2 AS cor0
----
33993
34268
34718

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL - COUNT( * ) + COUNT( * ) + - + MIN( ALL - col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - COUNT ( * ) + COUNT ( * ) + - + MIN ( ALL - col2 ) FROM tab2 cor0
----
58

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

query I rowsort
SELECT - col0 * col1 + + 37 * - col0 AS col2 FROM tab1 AS cor0
----
-2601
-3570
-7644

query I rowsort
SELECT col1 + 51 * + col0 AS col1 FROM tab1
----
2615
4340
4688

query I rowsort
SELECT DISTINCT - 24 * col0 AS col0 FROM tab2
----
-1104
-1536
-1800

query I rowsort
SELECT + col0 * + 76 + + col2 FROM tab2
----
3519
4904
5758

query I rowsort
SELECT ALL - col2 + - 88 + col1 * + 32 * - - col0 AS col0 FROM tab2
----
157568
160654
74961

query II rowsort
SELECT DISTINCT 46 * col1 * + 71 * col1 AS col1, 18 FROM tab1
----
640136
18
7214594
18
81650
18

query I rowsort
SELECT ( col1 ) + col2 * + 13 AS col1 FROM tab2
----
350
597
821

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6910
SELECT DISTINCT + CAST( - - 92 AS SIGNED ) DIV - 70 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + CAST ( - - 92 AS INTEGER ) / - 70 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - ( col2 ) + + 22 FROM tab1 AS cor0
----
-37
-46
-74

query I rowsort
SELECT DISTINCT 70 + + col1 + 29 FROM tab2 AS cor0
----
150
166
176

query II rowsort
SELECT - + col1 + col0 + + 60, col0 AS col1 FROM tab1 cor0
----
104
91
140
85
97
51

query I rowsort
SELECT DISTINCT - 0 + + 11 AS col1 FROM tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 + - col0 + col1 col2 FROM tab0 AS cor0
----
1
1281
1761

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL + SUM( col0 ) col1 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6916
SELECT ALL + SUM ( col0 ) col1 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT - COUNT( * ) * + + 59 + COUNT( + - ( + col0 ) ) - - 27 * + COUNT( * ) + 15 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - COUNT ( * ) * + + 59 + COUNT ( + - ( + col0 ) ) - - 27 * + COUNT ( * ) + 15 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 cor0 WHERE NOT - col1 + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT SUM( DISTINCT 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6919
SELECT SUM ( DISTINCT 3 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT + col2 DIV - + col2 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6920
SELECT + col2 / - + col2 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col0 * - 86 AS col1 FROM tab1
----
-4386
-7310
-7826

query II rowsort
SELECT DISTINCT col1 AS col0, col0 AS col1 FROM tab0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 28 col1 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # DIV for integer division: 
query II rowsort label-6924
SELECT ALL 45 DIV - col2 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-6924
SELECT ALL 45 / - col2 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4
21
0
1
0
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 79 * + 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 41 ) AS col1 FROM tab0
----
41

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

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

query I rowsort
SELECT ALL + col1 + 60 AS col2 FROM tab0 WHERE NOT - 6 IS NULL
----
141
61
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 >= + 57 * - col2
----

query I rowsort
SELECT - col2 * col0 AS col1 FROM tab0 WHERE NOT - 4 IS NOT NULL
----

query I rowsort
SELECT col1 - 24 * col0 FROM tab0
----
-2067
-2327
-279

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col0 ) + + 47 / col0 BETWEEN NULL AND 32 + + col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6934
SELECT DISTINCT - 81 AS col1 FROM tab0 WHERE col2 + 93 BETWEEN NULL AND + 64 * col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - 81 AS col1 FROM tab0 WHERE col2 + 93 BETWEEN NULL AND + 64 * col0 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) <> - 30 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( 78 ) * col0 col1 FROM tab0
----
-1251
-6807
-7567

query I rowsort
SELECT - col0 + - ( 37 ) AS col2 FROM tab0 WHERE ( + ( col0 ) ) < col2
----
-134
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT DISTINCT col0 + col2 AS col0 FROM tab0 WHERE - 79 NOT IN ( CAST( + ( col0 ) AS SIGNED ) + 69 )
----
196
62
97

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT col0 + col2 AS col0 FROM tab0 WHERE - 79 NOT IN ( CAST ( + ( col0 ) AS INTEGER ) + 69 )
----
196
62
97

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

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

query I rowsort
SELECT + 25 * col1 AS col0 FROM tab0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT COUNT( * ) FROM tab1 WHERE NOT ( col2 ) <> ( - ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6941
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( col2 ) <> ( - ( col0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT + col1 DIV + col1 + + col1 col1 FROM tab0 WHERE NOT col1 * col2 BETWEEN ( NULL ) AND + 40 * col0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6942
SELECT + col1 / + col1 + + col1 col1 FROM tab0 WHERE NOT col1 * col2 BETWEEN ( NULL ) AND + 40 * col0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL + SUM( DISTINCT - col2 ) * + SUM( DISTINCT - col2 ) FROM tab2
----
14641

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + SUM ( DISTINCT - col2 ) * + SUM ( DISTINCT - col2 ) FROM tab2
----
14641

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

query III rowsort
SELECT * FROM tab0 WHERE + 2 + + 17 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT + col0 - - 81 <> ( col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT + MIN( ALL ( col1 ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6948
SELECT + MIN ( ALL ( col1 ) ) AS col0 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6949
SELECT * FROM tab1 WHERE NOT 71 / + CAST( + 97 * - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6949
SELECT * FROM tab1 WHERE NOT 71 / + CAST ( + 97 * - col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 64 * - col1 FROM tab0
----
-1344
-5184
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT col0 + col1 DIV col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6951
SELECT col0 + col1 / col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - 85 FROM tab1 WHERE NOT + col0 * col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6953
SELECT 62 DIV - COUNT( * ) col1 FROM tab1
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6953
SELECT 62 / - COUNT ( * ) col1 FROM tab1
----
-20

query I rowsort
SELECT col0 * - col0 + - 7 AS col1 FROM tab0 cor0
----
-232
-7576
-9416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT ALL - CAST( col2 AS SIGNED ) + 45 col1 FROM tab2 AS cor0
----
-13
22
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6955
SELECT ALL - CAST ( col2 AS INTEGER ) + 45 col1 FROM tab2 AS cor0
----
-13
22
5

query I rowsort
SELECT 56 * col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3304
3808
5376

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT + col0 DIV 58 + + 3 AS col0 FROM tab0 AS cor0
----
3
4
4

skipif mysql # not compatible
query I rowsort label-6957
SELECT + col0 / 58 + + 3 AS col0 FROM tab0 AS cor0
----
3
4
4

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 NOT BETWEEN ( col0 - col2 * + 12 ) AND 69 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT SUM( + 29 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-6959
SELECT SUM ( + 29 ) FROM tab1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6960
SELECT CAST( COUNT( * ) AS SIGNED ) * COUNT( - col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6960
SELECT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( - col1 ) FROM tab0
----
9

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

query I rowsort
SELECT DISTINCT 44 * col1 - col0 FROM tab2 AS cor0
----
2198
2873
3324

query I rowsort
SELECT - + col1 - + col2 * col1 AS col0 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT 95 FROM tab1 AS cor0 WHERE NOT ( col0 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL - + SUM( ALL - col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - + SUM ( ALL - col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( 8 + - col1 ) <= NULL
----

query I rowsort
SELECT 71 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <= + 94 - - ( 63 + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 70
----

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + 32 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + 90 ) AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6972
SELECT DISTINCT - 31 DIV - - ( MAX( - ( col1 ) ) ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT - 31 / - - ( MAX ( - ( col1 ) ) ) FROM tab0
----
31

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col0 * - col1 + 65
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT col0 + col1 * + col1 IN ( col0 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT COUNT( DISTINCT 58 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6975
SELECT COUNT ( DISTINCT 58 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT - ( - ( - col0 ) ) AS col2 FROM tab1 WHERE NOT 7 * 40 IS NOT NULL
----

query I rowsort
SELECT col1 * - 48 * 34 FROM tab0
----
-132192
-1632
-34272

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT - 36 DIV 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 36 / 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT 88 AS col0, COUNT( * ) AS col2 FROM tab2
----
88
3

skipif mysql # not compatible
query II rowsort label-6979
SELECT 88 AS col0, COUNT ( * ) AS col2 FROM tab2
----
88
3

query II rowsort
SELECT 81 AS col0, 39 FROM tab0
----
81
39
81
39
81
39

query I rowsort
SELECT + 67 * - col0 FROM tab2
----
-3082
-4288
-5025

query II rowsort
SELECT - 66, + col1 AS col2 FROM tab1
----
-66
14
-66
47
-66
5

query I rowsort
SELECT DISTINCT + - 4 + col1 * - 4 * + col1 - col2 FROM tab0 cor0
----
-107
-1778
-26295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col0 <= + 35 + 88 * - col0
----

skipif mysql # not compatible
query I rowsort label-6984
SELECT CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col0 <= + 35 + 88 * - col0
----

query I rowsort
SELECT ALL col0 + - 23 FROM tab2 AS cor0
----
23
41
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6986
SELECT * FROM tab1 AS cor0 WHERE ( 66 * - col0 ) = ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6986
SELECT * FROM tab1 AS cor0 WHERE ( 66 * - col0 ) = ( - CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + ( + col0 )
----

query I rowsort
SELECT DISTINCT - 98 + + + col1 + - col2 * + col2 FROM tab0
----
-177
-2226
-9898

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL MAX( + 11 ) + COUNT( * ) AS col0 FROM tab0 WHERE + 43 + col1 + col1 / col1 >= + col1
----
14

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL MAX ( + 11 ) + COUNT ( * ) AS col0 FROM tab0 WHERE + 43 + col1 + col1 / col1 >= + col1
----
14

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( + 32 * - col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 - + + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 + + col1 AS col2, - col2 AS col2 FROM tab1
----
10
-59
28
-96
94
-68

query I rowsort
SELECT 51 + - ( + col2 ) FROM tab0
----
-48
4
41

query I rowsort
SELECT - col1 + 21 FROM tab2
----
-30
-46
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6999
SELECT ALL * FROM tab0 WHERE NOT - col1 <= - col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6999
SELECT ALL * FROM tab0 WHERE NOT - col1 <= - col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT 41 * - MAX( + - col2 ) + - COUNT( * ) * - 6 AS col2 FROM tab1
----
2437

skipif mysql # not compatible
query I rowsort label-7000
SELECT 41 * - MAX ( + - col2 ) + - COUNT ( * ) * - 6 AS col2 FROM tab1
----
2437

query I rowsort
SELECT DISTINCT + col0 / - col2 + + col0 * - col2 AS col0 FROM tab0 WHERE NULL IN ( - col1 + - col1 )
----

query I rowsort
SELECT ALL - 66 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 > - 21 * + 44
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7003
SELECT ALL + - col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + - col2 + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * col1 + 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 84 - - ( - - 38 ) col1 FROM tab1 AS cor0
----
-131
-137
-97

query I rowsort
SELECT + + 17 * - 59 FROM tab2 WHERE NULL IS NULL
----
-1003
-1003
-1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-7007
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

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

query II rowsort
SELECT ALL + + col0, - 65 FROM tab2 AS cor0
----
46
-65
64
-65
75
-65

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + 79 * - col0 < col2
----

query I rowsort
SELECT col2 * + 9 AS col2 FROM tab2 AS cor0
----
207
360
522

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT - col1 DIV - col1 + col0 + - col0 + + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-16
-22
-23

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT - col1 / - col1 + col0 + - col0 + + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-16
-22
-23

query I rowsort
SELECT 29 FROM tab1 cor0 WHERE NOT - col2 - + - 64 NOT BETWEEN NULL AND col1 + + - 88 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL - COUNT( * ) * COUNT( * ) * - 24 AS col1 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - 24 AS col1 FROM tab0 AS cor0
----
216

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 19 * + col1 + + + col1 + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7016
SELECT 50 * col1 DIV - + col1 FROM tab1
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-7016
SELECT 50 * col1 / - + col1 FROM tab1
----
-50
-50
-50

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 * + col2 AS col2 FROM tab0
----
15
-705
87
-870
97
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL + MAX( ALL - + col1 ) * 31 - + - 50 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL + MAX ( ALL - + col1 ) * 31 - + - 50 FROM tab0 AS cor0
----
19

query I rowsort
SELECT - 85 * + 13 * - 22 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
24310
24310
24310

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7020
SELECT - col1 DIV + CAST( - 46 AS SIGNED ), ( + col1 ) FROM tab0
----
0
1
0
21
1
81

skipif mysql # not compatible
query II rowsort label-7020
SELECT - col1 / + CAST ( - 46 AS INTEGER ), ( + col1 ) FROM tab0
----
0
1
0
21
1
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 27 col2, ( - 76 ) * + 20 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
27
-1520

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 = + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( + - col1 ) + col2 AS col0, 65 * + + 95 FROM tab2
----
-28
6175
-37
6175
-9
6175

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT ( - col1 * + + col1 + - col2 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT - COUNT( col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT - COUNT ( col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT CAST( 62 AS SIGNED ) + 34 - + col0 FROM tab1 AS cor0
----
11
45
5

skipif mysql # not compatible
query I rowsort label-7026
SELECT CAST ( 62 AS INTEGER ) + 34 - + col0 FROM tab1 AS cor0
----
11
45
5

query II rowsort
SELECT col2 * - + 78, col2 AS col1 FROM tab1 AS cor0
----
-4602
59
-5304
68
-7488
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT + + col2 * - 4 + - 89 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT + + col2 * - 4 + - 89 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - 69 ) AS col0 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL - col2 + + 83 FROM tab1
----
-13
15
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT col2 / - CAST( NULL AS SIGNED ) - - ( - - col1 ) FROM tab0 WHERE col2 - + - 32 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7031
SELECT col2 / - CAST ( NULL AS INTEGER ) - - ( - - col1 ) FROM tab0 WHERE col2 - + - 32 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 58 >= NULL
----

query I rowsort
SELECT ALL ( + col1 ) * col2 + - col0 + + col1 FROM tab2
----
1178
3093
3878

query I rowsort
SELECT + - col1 FROM tab1 WHERE - col2 <= col2
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL + col1 * + 34 - + col0 + + col0 * 87 + - + CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7035
SELECT ALL + col1 * + 34 - + col0 + + col0 * 87 + - + CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ( + 55 ) - + COUNT( * ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7036
SELECT ( + 55 ) - + COUNT ( * ) AS col1 FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT 89 + - COUNT( DISTINCT 49 ) AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-7037
SELECT 89 + - COUNT ( DISTINCT 49 ) AS col2 FROM tab1
----
88

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7039
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 IN ( - + col0, - 54, + + CAST( NULL AS DECIMAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7039
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 IN ( - + col0, - 54, + + CAST ( NULL AS REAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 3 + + + col2 AS col0 FROM tab2
----
26
43
61

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL COUNT( * ) * + MIN( + - col2 ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL COUNT ( * ) * + MIN ( + - col2 ) FROM tab2
----
-174

query I rowsort
SELECT + col2 * col2 + - 74 - 64 FROM tab0 cor0
----
-38
2071
9663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT DISTINCT + col1 * - 75 - - CAST( + + 84 AS SIGNED ) FROM tab0 AS cor0
----
-1491
-5991
9

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + col1 * - 75 - - CAST ( + + 84 AS INTEGER ) FROM tab0 AS cor0
----
-1491
-5991
9

query I rowsort
SELECT DISTINCT + col0 * - + 31 * - col0 AS col0 FROM tab2 AS cor0
----
126976
174375
65596

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7047
SELECT ALL col0 DIV col1 + - col1 AS col1 FROM tab1 AS cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL col0 / col1 + - col1 AS col1 FROM tab1 AS cor0
----
-11
-46
12

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT + - 33 * + - 36 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 54 IS NULL
----
1247
1256
1284

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7051
SELECT COUNT( * ) DIV - 88 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7051
SELECT COUNT ( * ) / - 88 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT - COUNT( * ) * - ( - SUM( ALL - - 21 ) ) AS col0 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-7052
SELECT - COUNT ( * ) * - ( - SUM ( ALL - - 21 ) ) AS col0 FROM tab1
----
-189

query I rowsort
SELECT + - 21 FROM tab2 WHERE NOT NULL <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-7054
SELECT - CAST ( 49 AS INTEGER ) AS col1 FROM tab1
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + 59 * col1 AS col0 FROM tab0
----
1239
4779
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + 0 col0 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT + - col1 + + 57 * 94 * - col0 FROM tab2 AS cor0
----
-246519
-342989
-401917

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + ( 75 ) + 87 NOT IN ( col1 + + 68 ) )
----

query I rowsort
SELECT DISTINCT - - col0 + - + col1 + + col0 FROM tab2 cor0
----
41
51
83

query I rowsort
SELECT DISTINCT 97 * - col2 + col0 + col2 FROM tab0
----
-4497
-873
-9407

onlyif mysql # DIV for integer division: 
query II rowsort label-7061
SELECT col0 DIV 67, col0 FROM tab1
----
0
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-7061
SELECT col0 / 67, col0 FROM tab1
----
0
51
1
85
1
91

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

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

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

query I rowsort
SELECT col1 - + + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 29 AS col2 FROM tab2 AS cor0
----
22
38
48

query I rowsort
SELECT ALL - 53 - col2 FROM tab1
----
-112
-121
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7067
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + col0 + - 38 / - 39 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + col0 + - 38 / - 39 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7068
SELECT + 11, + COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
11
9

skipif mysql # not compatible
query II rowsort label-7068
SELECT + 11, + COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
11
9

query I rowsort
SELECT ALL + 26 - + col1 AS col1 FROM tab2
----
-25
-41
-51

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

query III rowsort
SELECT DISTINCT col1, - col0 * col1 AS col0, - 23 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to ebff0be71f19ca9a31d6c43035a8056b

query I rowsort
SELECT 58 + - - col2 * + 92 * - 51 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-107858
-187622
-272078

query I rowsort
SELECT DISTINCT + 11 * col1 * - 48 FROM tab0 AS cor0
----
-11088
-42768
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - - MAX( - + 80 ) col1 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7074
SELECT - - MAX ( - + 80 ) col1 FROM tab0 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * + col0 col1 FROM tab1
----
2040
3400
3640

query II rowsort
SELECT DISTINCT 62, + 53 * col2 AS col2 FROM tab0
----
62
2491
62
5247
62
530

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

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT + MAX( DISTINCT - col0 ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7078
SELECT + MAX ( DISTINCT - col0 ) AS col0 FROM tab2 cor0
----
-46

query I rowsort
SELECT + col1 * 8 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + col1 IS NULL
----
112
376
40

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

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

query II rowsort
SELECT col1 AS col0, 74 AS col2 FROM tab0 AS cor0
----
1
74
21
74
81
74

query I rowsort
SELECT - col0 * + ( + col0 ) FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT - 33 * + - col0 FROM tab2
----
1518
2112
2475

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7085
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + - 0 * + CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-7085
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + - 0 * + CAST ( NULL AS INTEGER ) + col1
----

query I rowsort
SELECT DISTINCT 18 * + - col2 * + col0 AS col0 FROM tab2
----
-19044
-46080
-78300

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7088
SELECT ALL - col0 * col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

skipif mysql # not compatible
query II rowsort label-7088
SELECT ALL - col0 * col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT MAX( ALL + 79 ) + - + COUNT( * ) col1 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7089
SELECT MAX ( ALL + 79 ) + - + COUNT ( * ) col1 FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL + 47 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - 83 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT + + MIN( - - 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT + + MIN ( - - 69 ) FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT - - SUM( + 70 ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7093
SELECT - - SUM ( + 70 ) FROM tab0 AS cor0
----
210

query I rowsort
SELECT - - col2 * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT - MIN( ALL + + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7095
SELECT - MIN ( ALL + + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT ( COUNT( ALL + col1 ) ) + 18 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT ( COUNT ( ALL + col1 ) ) + 18 FROM tab1 cor0
----
21

query I rowsort
SELECT ALL - ( + 92 ) AS col2 FROM tab1 cor0
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - - col1 * + - col1, + ( - - col2 ) + + 28 + + col0 / + - 39 - - col0 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 - + col0 * + 32 + col0 AS col1, 49 + - col2 FROM tab1
----
-1530
-47
-2550
-10
-2730
-19

query I rowsort
SELECT ALL ( - - 47 ) + + col0 FROM tab2
----
111
122
93

query I rowsort
SELECT DISTINCT 25 - - col0 AS col0 FROM tab2
----
100
71
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7102
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 - + - col0 * + + col2 / + col2 / - + col1 AS col2, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-7102
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 - + - col0 * + + col2 / + col2 / - + col1 AS col2, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT 74 col1, COUNT( * ) AS col0 FROM tab2 WHERE + 80 NOT IN ( + col0 + + - 22, 35, + col2 - - - col1 )
----
74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7103
SELECT 74 col1, COUNT ( * ) AS col0 FROM tab2 WHERE + 80 NOT IN ( + col0 + + - 22, 35, + col2 - - - col1 )
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT - + COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - col1
----
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT - + COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7105
SELECT DISTINCT 43 * COUNT( * ) - ( CAST( - - COUNT( * ) AS SIGNED ) ) + COUNT( * ) DIV - - 72 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT 43 * COUNT ( * ) - ( CAST ( - - COUNT ( * ) AS INTEGER ) ) + COUNT ( * ) / - - 72 FROM tab0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT 12 + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7106
SELECT 12 + COUNT ( * ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT ALL ( - COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL ( - COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90 col2, col0 FROM tab1 AS cor0
----
-90
51
-90
85
-90
91

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - col1 AND NULL
----

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

query I rowsort
SELECT + 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query II rowsort
SELECT - 8 * col1, + 20 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - - 0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT ALL - CAST( + + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7115
SELECT ALL - CAST ( + + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT DISTINCT 69 + + 69 DIV + col0 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30
26
59

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT 69 + + 69 / + col0 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30
26
59

query I rowsort
SELECT DISTINCT - 36 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL COUNT( ALL - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL COUNT ( ALL - - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT MIN( + 28 ) AS col2, COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7119
SELECT MIN ( + 28 ) AS col2, COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7120
SELECT ALL + CAST( MAX( ALL + ( + + CAST( - col0 AS SIGNED ) ) ) AS SIGNED ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + CAST ( MAX ( ALL + ( + + CAST ( - col0 AS INTEGER ) ) ) AS INTEGER ) FROM tab1
----
-51

query II rowsort
SELECT DISTINCT + 32 * - 41 * - - col2 AS col1, col2 * - - 45 FROM tab1
----
-125952
4320
-77408
2655
-89216
3060

onlyif mysql # aggregate syntax: 
query II rowsort label-7122
SELECT + + 1, COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----
1
0

skipif mysql # not compatible
query II rowsort label-7122
SELECT + + 1, COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----
1
0

query I rowsort
SELECT + 76 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 + - 42 FROM tab0
----
-27
45
55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT ALL + + col0 DIV 89 DIV + col0 * + 14 + - 30 AS col2 FROM tab2 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + + col0 / 89 / + col0 * + 14 + - 30 AS col2 FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT + MIN( ALL + 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7127
SELECT + MIN ( ALL + 29 ) FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7128
SELECT - + COUNT( * ) col2 FROM tab0 AS cor0 WHERE + 4 * + - CAST( NULL AS SIGNED ) <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7128
SELECT - + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE + 4 * + - CAST ( NULL AS INTEGER ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT COUNT( col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7129
SELECT COUNT ( col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - 29 - col2 * - col0 FROM tab2
----
1029
2531
4321

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7131
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT + col2 * - col2 + - + 0 + - col0 * col2 AS col1, - col1 AS col0 FROM tab2
----
-1587
-51
-4160
-77
-7714
-67

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - col0 + - col0 = + 95 + - col1
----

query I rowsort
SELECT ALL - col1 + + - col1 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL COUNT( * ) + - + SUM( ALL + col2 ) + 28 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL COUNT ( * ) + - + SUM ( ALL + col2 ) + 28 FROM tab2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7137
SELECT col2, + CAST( NULL AS SIGNED ) - + 31 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7137
SELECT col2, + CAST ( NULL AS INTEGER ) - + 31 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT - col1 + + 3 FROM tab1
----
-11
-2
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT col1 DIV col2 * - 80 FROM tab2
----
-160
-80
-80

skipif mysql # not compatible
query I rowsort label-7139
SELECT col1 / col2 * - 80 FROM tab2
----
-160
-80
-80

query I rowsort
SELECT DISTINCT 63 * + - col2 + + ( + - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL OR ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 45 * col2 FROM tab1 cor0
----
2655
3060
4320

query I rowsort
SELECT DISTINCT + col2 / - 15 + - 32 + - + col2 FROM tab2 WHERE NOT ( NOT 54 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT 78 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT 78 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - + 53 * - 83 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9caa9b7e699bd5bdcee4b45ceb7a4c67

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

query I rowsort
SELECT DISTINCT + 33 + - + col1 FROM tab0 AS cor0
----
-48
12
32

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7149
SELECT ALL + MIN ( ALL - col0 ) col2 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT COUNT( * ) AS col0, - 71 col2 FROM tab2 AS cor0
----
3
-71

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7151
SELECT + + col2, + col0 * - 47 + + + 39 DIV + - col0 * + col1 FROM tab1 AS cor0
----
59
-3995
68
-4277
96
-2397

skipif mysql # not compatible
query II rowsort label-7151
SELECT + + col2, + col0 * - 47 + + + 39 / + - col0 * + col1 FROM tab1 AS cor0
----
59
-3995
68
-4277
96
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT ALL 81 * col0 + - col0 + col0 + - + CAST( + + col0 AS SIGNED ) * + 39 * - - 99 + + col2 * col0 FROM tab2 AS cor0
----
-172822
-239360
-279150

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL 81 * col0 + - col0 + col0 + - + CAST ( + + col0 AS INTEGER ) * + 39 * - - 99 + + col2 * col0 FROM tab2 AS cor0
----
-172822
-239360
-279150

query I rowsort
SELECT ALL col2 * - 93 + + - col0 AS col2 FROM tab2 AS cor0
----
-2185
-3784
-5469

query I rowsort
SELECT DISTINCT + - 90 + - + col0 FROM tab1 cor0 WHERE 84 BETWEEN col0 AND NULL
----

query II rowsort
SELECT DISTINCT - - col2 AS col1, ( col1 ) FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT DISTINCT ( - MIN( - + 21 ) ) FROM tab1 AS cor0 WHERE - 91 + + + col1 < - + 68 * - col0 + col2
----
21

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT ( - MIN ( - + 21 ) ) FROM tab1 AS cor0 WHERE - 91 + + + col1 < - + 68 * - col0 + col2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 86 col2 FROM tab0
----
-1806
-6966
-86

query I rowsort
SELECT 16 * - 49 * 63 AS col2 FROM tab0
----
-49392
-49392
-49392

query I rowsort
SELECT 54 * + - col0 AS col1 FROM tab2
----
-2484
-3456
-4050

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 36 / - col1
----

query I rowsort
SELECT - 12 + - 5 + - col1 FROM tab0 AS cor0
----
-18
-38
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - COUNT( ALL ( - + col1 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7164
SELECT - COUNT ( ALL ( - + col1 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7166
SELECT + 26 + + col0 - 70 + CAST( + 76 AS SIGNED ) * - - 13 AS col2 FROM tab1 cor0
----
1029
1035
995

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 26 + + col0 - 70 + CAST ( + 76 AS INTEGER ) * - - 13 AS col2 FROM tab1 cor0
----
1029
1035
995

query I rowsort
SELECT - col2 + - - col2 * - 38 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
-2006
-2400
544

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT DISTINCT 11 + - + col2 + + col2 + + col0 DIV - col2 FROM tab0
----
11
3

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT 11 + - + col2 + + col2 + + col0 / - col2 FROM tab0
----
11
3

query II rowsort
SELECT DISTINCT col0 * 5 * - + ( + col1 ), - col2 + - 20 * + + col0 AS col0 FROM tab2 AS cor0
----
-11730
-943
-24640
-1320
-25125
-1558

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL + SUM( ALL - 23 ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + SUM ( ALL - 23 ) AS col2 FROM tab2 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + + 58 + + - 83 - 59 + 20 + col0 col0 FROM tab1 cor0
----
116
122
82

query I rowsort
SELECT + col0 - - col0 + - col1 FROM tab1 cor0
----
135
165
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7174
SELECT ALL + 96 DIV - COUNT( * ) col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7174
SELECT ALL + 96 / - COUNT ( * ) col1 FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ALL - + MIN( DISTINCT - 92 ) AS col2 FROM tab2 WHERE - 7 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL - + MIN ( DISTINCT - 92 ) AS col2 FROM tab2 WHERE - 7 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + MIN( col2 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT + MIN ( col2 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT - MAX( CAST( 66 AS SIGNED ) ) * - CAST( + - SUM( DISTINCT - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
14982

skipif mysql # not compatible
query I rowsort label-7177
SELECT - MAX ( CAST ( 66 AS INTEGER ) ) * - CAST ( + - SUM ( DISTINCT - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
14982

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 <> ( + col0 ) + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + MAX( DISTINCT + 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7179
SELECT + MAX ( DISTINCT + 6 ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7180
SELECT 76 / CAST( NULL AS SIGNED ) + + + CAST( + - col2 AS DECIMAL ) + + col1 col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7180
SELECT 76 / CAST ( NULL AS INTEGER ) + + + CAST ( + - col2 AS REAL ) + + col1 col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7181
SELECT CAST( NULL AS DECIMAL ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-7181
SELECT CAST ( NULL AS REAL ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - - 35 * + col2 - - 96 * + - col0 < 79 )
----

query I rowsort
SELECT - ( 71 ) FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-7184
SELECT ALL 39 + + MAX( ALL + col2 ) AS col2, 48 FROM tab0 cor0
----
138
48

skipif mysql # not compatible
query II rowsort label-7184
SELECT ALL 39 + + MAX ( ALL + col2 ) AS col2, 48 FROM tab0 cor0
----
138
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - + ( + 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE - 17 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT 65 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7187
SELECT 65 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - 43 ) IS NOT NULL
----

query I rowsort
SELECT ALL 16 * - col1 + 33 FROM tab2
----
-1039
-1199
-783

query I rowsort
SELECT col1 + 63 FROM tab0
----
144
64
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + 47 col2 FROM tab1
----
4943
5062
6235

query II rowsort
SELECT ALL + ( - - 10 ) + + + col2 * + - col0, col0 FROM tab1
----
-4886
51
-5005
85
-6178
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7193
SELECT + CAST( NULL AS SIGNED ) - + col2 + - col1 FROM tab2 WHERE ( NOT - col0 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND - + col2 * - col0 ) OR NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-7193
SELECT + CAST ( NULL AS INTEGER ) - + col2 + - col1 FROM tab2 WHERE ( NOT - col0 NOT BETWEEN - CAST ( NULL AS REAL ) AND - + col2 * - col0 ) OR NULL = NULL
----

query I rowsort
SELECT ALL ( 87 ) * + 87 FROM tab0
----
7569
7569
7569

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 51 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL 77 - + COUNT( ( - col2 ) ) FROM tab2 WHERE NOT NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL 77 - + COUNT ( ( - col2 ) ) FROM tab2 WHERE NOT NULL IS NULL
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT col0 DIV + + 82 + - + 96 AS col2 FROM tab0
----
-95
-95
-96

skipif mysql # not compatible
query I rowsort label-7197
SELECT col0 / + + 82 + - + 96 AS col2 FROM tab0
----
-95
-95
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT MIN( + 37 ) * 99 AS col0 FROM tab1
----
3663

skipif mysql # not compatible
query I rowsort label-7198
SELECT MIN ( + 37 ) * 99 AS col0 FROM tab1
----
3663

query I rowsort
SELECT col1 * - ( + 57 ) FROM tab0 WHERE - - 12 + + ( + col1 ) BETWEEN 30 AND + + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 81 )
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7202
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 - CAST( NULL AS SIGNED ) AND ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 - CAST ( NULL AS INTEGER ) AND ( 82 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - COUNT( * ) - + COUNT( - col1 ) + COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7203
SELECT - COUNT ( * ) - + COUNT ( - col1 ) + COUNT ( * ) AS col0 FROM tab2
----
-3

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

query I rowsort
SELECT DISTINCT + - 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

query I rowsort
SELECT DISTINCT - 99 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 15 IS NULL
----
-104
-113
-146

query II rowsort
SELECT + col2 * + col1 - + + col0 AS col0, - ( + col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
1127
-2601
3016
-5929
3811
-4489

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col2 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT + col2 * + ( - - 21 ) + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1298
1496
2112

skipif mysql # not compatible
query I rowsort label-7209
SELECT + col2 * + ( - - 21 ) + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1298
1496
2112

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

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

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

skipif mysql # not compatible
query I rowsort label-7211
SELECT - - COUNT ( ( col1 ) ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 70 FROM tab0 WHERE - 38 < 41
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT + 44 col1, - COUNT( * ) AS col1 FROM tab1
----
44
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7213
SELECT + 44 col1, - COUNT ( * ) AS col1 FROM tab1
----
44
-3

query II rowsort
SELECT + col2 AS col1, 15 - + + 68 * + col2 FROM tab2
----
23
-1549
40
-2705
58
-3929

query I rowsort
SELECT DISTINCT - 30 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-30

query I rowsort
SELECT + + 17 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 - + 22 BETWEEN NULL AND - col0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT DISTINCT - + 70 DIV - col2 + - col0 + 28 FROM tab2 AS cor0
----
-15
-35
-46

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT - + 70 / - col2 + - col0 + 28 FROM tab2 AS cor0
----
-15
-35
-46

query II rowsort
SELECT ALL col0 * - col2 AS col0, + 76 AS col1 FROM tab0
----
-705
76
-870
76
-9603
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( + 61 ) col1 FROM tab0
----
108
160
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7221
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT IN ( + - 6 * + CAST( NULL AS SIGNED ), 37 )
----

skipif mysql # not compatible
query III rowsort label-7221
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT IN ( + - 6 * + CAST ( NULL AS INTEGER ), 37 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( 82 + - - 41, 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL - 84 + + MAX( + + col2 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL - 84 + + MAX ( + + col2 ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT + - 70 * + 9 AS col2 FROM tab1 AS cor0
----
-630
-630
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT - MAX( col1 ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7225
SELECT - MAX ( col1 ) AS col0 FROM tab0 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 41 + - 46 col2 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL - COUNT( * ) * + COUNT( * ) * - - ( - 95 ) AS col0 FROM tab2
----
855

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - - ( - 95 ) AS col0 FROM tab2
----
855

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( - col1 - col1 )
----

query I rowsort
SELECT + 79 * - col0 AS col1 FROM tab0
----
-1185
-6873
-7663

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN - 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL + SUM( - 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL + SUM ( - 0 ) FROM tab2
----
0

query I rowsort
SELECT - col0 + + col1 + + col0 + + col1 + - col1 * - 35 * col0 AS col1 FROM tab1
----
14885
149789
25018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7233
SELECT ALL - ( - 62 ) + + 27 + - COUNT( * ) * + - CAST( - 18 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL - ( - 62 ) + + 27 + - COUNT ( * ) * + - CAST ( - 18 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT + 62 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7234
SELECT + 62 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
59

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

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

query I rowsort
SELECT - 6 * 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 37e9ec78c376614ce21291acb63ff3e1

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT COUNT( * ) + + SUM( + col2 ) AS col0 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT COUNT ( * ) + + SUM ( + col2 ) AS col0 FROM tab2
----
124

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL <> - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT + MAX( + col0 ) * 82 FROM tab1 AS cor0
----
7462

skipif mysql # not compatible
query I rowsort label-7239
SELECT + MAX ( + col0 ) * 82 FROM tab1 AS cor0
----
7462

onlyif mysql # DIV for integer division: 
query II rowsort label-7240
SELECT + col0, col0 DIV col0 FROM tab1 AS cor0
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-7240
SELECT + col0, col0 / col0 FROM tab1 AS cor0
----
51
1
85
1
91
1

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

query I rowsort
SELECT ALL - 30 * + + col0 AS col2 FROM tab2 AS cor0
----
-1380
-1920
-2250

query I rowsort
SELECT - col0 * - 84 FROM tab1 AS cor0
----
4284
7140
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL + - COUNT( ALL - - col1 ) col0 FROM tab0 cor0
----
-3

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

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT DISTINCT - - COUNT( * ) + SUM( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT - - COUNT ( * ) + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7247
SELECT MAX( - + ( + 56 ) ), + CAST( - 73 AS SIGNED ) - CAST( + 9 AS SIGNED ) AS col2 FROM tab2
----
-56
-82

skipif mysql # not compatible
query II rowsort label-7247
SELECT MAX ( - + ( + 56 ) ), + CAST ( - 73 AS INTEGER ) - CAST ( + 9 AS INTEGER ) AS col2 FROM tab2
----
-56
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT - + ( - SUM( DISTINCT + 33 ) ) AS col0 FROM tab1 WHERE + col1 / - col0 NOT BETWEEN - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT - + ( - SUM ( DISTINCT + 33 ) ) AS col0 FROM tab1 WHERE + col1 / - col0 NOT BETWEEN - col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT ALL CAST( + 75 AS SIGNED ) AS col2 FROM tab0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL CAST ( + 75 AS INTEGER ) AS col2 FROM tab0
----
75
75
75

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT COUNT( * ) * + 71 col0 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7251
SELECT DISTINCT COUNT ( * ) * + 71 col0 FROM tab0
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT + - COUNT( * ), 49 AS col0 FROM tab2 AS cor0
----
-3
49

skipif mysql # not compatible
query II rowsort label-7252
SELECT + - COUNT ( * ), 49 AS col0 FROM tab2 AS cor0
----
-3
49

query II rowsort
SELECT DISTINCT - + col0, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 95 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

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

query I rowsort
SELECT DISTINCT - col0 + - 99 AS col0 FROM tab1
----
-150
-184
-190

query I rowsort
SELECT DISTINCT col0 - + - 56 AS col0 FROM tab0
----
143
153
71

query I rowsort
SELECT ALL + ( - - col0 ) + + col1 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT ALL + col2 DIV + - 37 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + col2 / + - 37 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - COUNT( * ) + ( COUNT( ALL - col1 ) ) + MIN( ALL - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7261
SELECT - COUNT ( * ) + ( COUNT ( ALL - col1 ) ) + MIN ( ALL - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL 15 - - MAX( - ( + 41 ) ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL 15 - - MAX ( - ( + 41 ) ) FROM tab2
----
-26

query III rowsort
SELECT * FROM tab1 WHERE + - 40 IS NULL
----

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

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

query I rowsort
SELECT - 43 * + - col0 FROM tab2
----
1978
2752
3225

query I rowsort
SELECT - ( + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT ALL 41 - 94 + col1 - - col2 DIV col2 FROM tab0 AS cor0
----
-31
-51
29

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL 41 - 94 + col1 - - col2 / col2 FROM tab0 AS cor0
----
-31
-51
29

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab2 cor0
----
26

query I rowsort
SELECT col0 - 46 FROM tab1 cor0
----
39
45
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + ( - - 33 ), col1, - col0 col2 FROM tab2 cor0 WHERE NULL = col0
----

query II rowsort
SELECT 81, 40 AS col1 FROM tab1
----
81
40
81
40
81
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT DISTINCT + COUNT( * ) DIV - COUNT( + col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT + COUNT ( * ) / - COUNT ( + col0 ) FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - + col1 ) * + col0 NOT IN ( - ( col1 ), 97, - col1 )
----

query I rowsort
SELECT - + 58 * + col0 AS col0 FROM tab1 AS cor0
----
-2958
-4930
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - MAX( ALL + + 97 ) * - ( + - 55 ) AS col2 FROM tab1 AS cor0
----
-5335

skipif mysql # not compatible
query I rowsort label-7275
SELECT - MAX ( ALL + + 97 ) * - ( + - 55 ) AS col2 FROM tab1 AS cor0
----
-5335

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

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL <= col1 * - col0
----

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

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

query II rowsort
SELECT ALL col2, + 5 AS col0 FROM tab1
----
59
5
68
5
96
5

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT + 54 IS NOT NULL
----

query I rowsort
SELECT + col0 + + col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT - + 80 * - COUNT( * ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT - + 80 * - COUNT ( * ) FROM tab1 AS cor0
----
240

query I rowsort
SELECT col1 * + col0 + 77 AS col0 FROM tab0
----
1292
174
1904

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col2 * col0 IS NULL AND NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + COUNT( * ) * - + COUNT( * ) + + - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7285
SELECT + COUNT ( * ) * - + COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT + + 83 AS col0 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL COUNT( ALL col1 ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL COUNT ( ALL col1 ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT + col1 DIV + col2 + - + 78 * - + 1 AS col1 FROM tab0 AS cor0
----
78
79
80

skipif mysql # not compatible
query I rowsort label-7288
SELECT + col1 / + col2 + - + 78 * - + 1 AS col1 FROM tab0 AS cor0
----
78
79
80

query II rowsort
SELECT DISTINCT - col2 + - 24 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-123
99
-34
10
-71
47

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 >= + + col0 / + 66 * + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT ALL + col1 + - - 0 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT + + col1 * - + col1 AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN + + 46 AND + - CAST( - - 63 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7293
SELECT + + col1 * - + col1 AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN + + 46 AND + - CAST ( - - 63 AS INTEGER )
----

query I rowsort
SELECT - col2 FROM tab0 WHERE - + 38 <= + 72 * - - 28 * - ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 89 + + 90 * + 19 AS col2, + col0 col1 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT 98 * - + col0 + + - CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT 98 * - + col0 + + - CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7297
SELECT CAST( - + col1 AS SIGNED ) + 77 AS col1, col1 FROM tab0
----
-4
81
56
21
76
1

skipif mysql # not compatible
query II rowsort label-7297
SELECT CAST ( - + col1 AS INTEGER ) + 77 AS col1, col1 FROM tab0
----
-4
81
56
21
76
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> 9
----

query I rowsort
SELECT ALL + AVG ( + - col2 ) AS col2 FROM tab0 WHERE NOT - 78 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT + 38 + + col2 AS col1 FROM tab0 AS cor0
----
137
48
85

query I rowsort
SELECT - - col2 + + 23 + + ( col1 ) + + 66 + - + col2 * + 14 * + + 83 * + 77 AS col1 FROM tab2 AS cor0
----
-2057739
-3578754
-5189278

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT - 76 * - col2 * + col1 DIV col1 + 80 FROM tab2 AS cor0
----
1828
3120
4488

skipif mysql # not compatible
query I rowsort label-7304
SELECT - 76 * - col2 * + col1 / col1 + 80 FROM tab2 AS cor0
----
1828
3120
4488

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7305
SELECT DISTINCT + COUNT( * ), - ( ( ( - + COUNT( * ) ) ) ) DIV + 46 + - COUNT( * ) * - 9 * + - SUM( DISTINCT + + 51 ) AS col2 FROM tab1 AS cor0
----
3
-1377

skipif mysql # not compatible
query II rowsort label-7305
SELECT DISTINCT + COUNT ( * ), - ( ( ( - + COUNT ( * ) ) ) ) / + 46 + - COUNT ( * ) * - 9 * + - SUM ( DISTINCT + + 51 ) AS col2 FROM tab1 AS cor0
----
3
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT - COUNT( ALL + col1 ) * - 97 AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - COUNT ( ALL + col1 ) * - 97 AS col2 FROM tab0 AS cor0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL - - 86 * - - 20 FROM tab1 AS cor0
----
1720
1720
1720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + ( col2 ) ) col2 FROM tab1 cor0
----
59
68
96

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

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

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

query I rowsort
SELECT ALL - col1 * - ( 60 ) FROM tab0
----
1260
4860
60

query II rowsort
SELECT + 75 * col1 + + 94 AS col1, col1 FROM tab1
----
1144
14
3619
47
469
5

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

query I rowsort
SELECT 71 * + col1 + + ( 11 ) AS col0 FROM tab0
----
1502
5762
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col1 * - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7317
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) > - col2
----

skipif mysql # not compatible
query III rowsort label-7317
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) > - col2
----

query I rowsort
SELECT ALL - + 86 + + col1 FROM tab2 AS cor0
----
-19
-35
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT DISTINCT - ( + - col0 ) DIV col1 FROM tab2 WHERE ( NULL ) IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT - ( + - col0 ) / col1 FROM tab2 WHERE ( NULL ) IS NULL
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 2 col2 FROM tab2
----
21
38
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT DISTINCT - COUNT( * ) AS col1, - 43 FROM tab0 AS cor0
----
-3
-43

skipif mysql # not compatible
query II rowsort label-7321
SELECT DISTINCT - COUNT ( * ) AS col1, - 43 FROM tab0 AS cor0
----
-3
-43

query I rowsort
SELECT ALL col2 + - - 30 * + col1 AS col0 FROM tab0 cor0
----
129
2477
640

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 + + col0 + + col1 col1 FROM tab0 AS cor0
----
135
137
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT CAST( - col1 AS SIGNED ) + - + ( - col0 ) * + col1 FROM tab2 AS cor0
----
2295
4851
4958

skipif mysql # not compatible
query I rowsort label-7326
SELECT CAST ( - col1 AS INTEGER ) + - + ( - col0 ) * + col1 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT DISTINCT 35 - + col2 - - 81 FROM tab0
----
106
17
69

query III rowsort
SELECT ALL * FROM tab0 WHERE 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7329
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( + col1 AS DECIMAL ) - - - 94 * + col2 NOT IN ( + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7329
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( + col1 AS REAL ) - - - 94 * + col2 NOT IN ( + CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL - MIN( - 62 ) * - 97 col0 FROM tab1 AS cor0
----
-6014

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7330
SELECT ALL - MIN ( - 62 ) * - 97 col0 FROM tab1 AS cor0
----
-6014

query II rowsort
SELECT ALL ( - + 82 ) AS col1, col1 FROM tab2 AS cor0
----
-82
51
-82
67
-82
77

query II rowsort
SELECT + col0 * + col2 AS col1, col0 FROM tab2 AS cor0
----
1058
46
2560
64
4350
75

query I rowsort
SELECT ALL + - col0 * - + col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL col0 * - + col1 + 32 FROM tab0 AS cor0
----
-1183
-1795
-65

query I rowsort
SELECT DISTINCT - - col0 * - 63 FROM tab2 AS cor0
----
-2898
-4032
-4725

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT DISTINCT - - col0 DIV - + 55 AS col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT - - col0 / - + 55 AS col0 FROM tab1 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT + COUNT( * ) * - 3 col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7337
SELECT + COUNT ( * ) * - 3 col1 FROM tab1 AS cor0
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT - ( + MAX( + - 12 ) ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT - ( + MAX ( + - 12 ) ) AS col2 FROM tab0 AS cor0
----
12

query II rowsort
SELECT - - col2 AS col0, + 26 FROM tab0 AS cor0
----
10
26
47
26
99
26

query I rowsort
SELECT ALL - - 39 AS col0 FROM tab0 WHERE NOT - + 82 - - 69 IS NULL
----
39
39
39

query III rowsort
SELECT * FROM tab2 WHERE + 90 <= - + col0
----

query I rowsort
SELECT - - ( - + col2 ) + - ( - - col1 ) + + ( - col2 ) FROM tab0 AS cor0
----
-175
-199
-41

query I rowsort
SELECT - col2 * + 16 + 79 AS col1 FROM tab1 AS cor0
----
-1009
-1457
-865

query I rowsort
SELECT - col2 + - col2 * - - col2 FROM tab2 AS cor0
----
-1640
-3422
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL + COUNT( * ) + + - 54 AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL + COUNT ( * ) + + - 54 AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 93 + + col2 FROM tab2 cor0
----
116
133
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7348
SELECT ALL col0 + - col2 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-7348
SELECT ALL col0 + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

query I rowsort
SELECT + 19 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT COUNT( * ) * 64 * - 62 * COUNT( * ) * - - 76 * 85 FROM tab2 cor0
----
-230699520

skipif mysql # not compatible
query I rowsort label-7350
SELECT COUNT ( * ) * 64 * - 62 * COUNT ( * ) * - - 76 * 85 FROM tab2 cor0
----
-230699520

query I rowsort
SELECT ALL - + col1 - - ( + 57 ) FROM tab2 AS cor0
----
-10
-20
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col0 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + col1 * - - ( + 19 ) AS col2 FROM tab0 cor0
----
1539
19
399

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT col1 DIV + ( - + 25 ) AS col2 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-7354
SELECT col1 / + ( - + 25 ) AS col2 FROM tab2 AS cor0
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT 87 - COUNT( col1 ) col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7355
SELECT 87 - COUNT ( col1 ) col2 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - 9 - - 1 FROM tab0 AS cor0
----
-8
-8
-8

query II rowsort
SELECT ALL + - 84 + - + col1 * - 30, 28 AS col2 FROM tab2 AS cor0
----
1446
28
1926
28
2226
28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + col2 - - - 91 IN ( - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT DISTINCT - 32 + 83 + - COUNT( * ) DIV + 46 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - 32 + 83 + - COUNT ( * ) / + 46 FROM tab1 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT ALL - col2 * + - col0 - - col2 DIV - - 14 FROM tab0
----
708
870
9610

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - col2 * + - col0 - - col2 / - - 14 FROM tab0
----
708
870
9610

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL COUNT( DISTINCT col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL COUNT ( DISTINCT col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT + col1 AS col2, col2 + - col1 AS col0 FROM tab0
----
1
98
21
-11
81
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7363
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN 14 + + - 25 + - col0 * CAST( + + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7363
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN 14 + + - 25 + - col0 * CAST ( + + col2 AS INTEGER ) AND NULL
----

query II rowsort
SELECT 83 AS col0, 97 * col2 FROM tab1
----
83
5723
83
6596
83
9312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7365
SELECT + CAST( NULL AS SIGNED ) AS col0, + 38 + + - 9 AS col2 FROM tab2 AS cor0
----
NULL
29
NULL
29
NULL
29

skipif mysql # not compatible
query II rowsort label-7365
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 38 + + - 9 AS col2 FROM tab2 AS cor0
----
NULL
29
NULL
29
NULL
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7366
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) * + - col2 - ( - col0 ) - - 76 + + + 62 + - col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7366
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) * + - col2 - ( - col0 ) - - 76 + + + 62 + - col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + COUNT( * ) FROM tab0 WHERE NOT + - col2 * + col1 > col1
----
3

skipif mysql # not compatible
query I rowsort label-7367
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + - col2 * + col1 > col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7368
SELECT + 71 DIV col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 71 / col1 FROM tab2
----
0
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + MAX ( 39 ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 94 * 71 + col0 * - + col2 AS col0 FROM tab0 AS cor0
----
-2929
5804
5969

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT + col0 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT + col0 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col1 * - col2 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT ALL col0 - - 17 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
104
114
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7376
SELECT ALL + col2 col2 FROM tab0 AS cor0 WHERE col1 BETWEEN col2 AND + col2 * - CAST( + 6 AS DECIMAL ) * col1 + + 28 * + + col0 / - + col0 + + - 55 / - + 14
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7376
SELECT ALL + col2 col2 FROM tab0 AS cor0 WHERE col1 BETWEEN col2 AND + col2 * - CAST ( + 6 AS REAL ) * col1 + + 28 * + + col0 / - + col0 + + - 55 / - + 14
----

query I rowsort
SELECT - col0 * - - col1 * + 37 + - + col1 AS col2 FROM tab0 AS cor0
----
-3590
-45036
-67620

query I rowsort
SELECT DISTINCT - 82 * - + col0 AS col2 FROM tab2
----
3772
5248
6150

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT 77 DIV - col1 + col0 FROM tab0
----
15
20
84

skipif mysql # not compatible
query I rowsort label-7379
SELECT 77 / - col1 + col0 FROM tab0
----
15
20
84

query I rowsort
SELECT DISTINCT col0 + - 41 AS col0 FROM tab2
----
23
34
5

query I rowsort
SELECT DISTINCT + 56 * + - ( - - col0 ) AS col0 FROM tab1
----
-2856
-4760
-5096

query I rowsort
SELECT col1 + - + 87 FROM tab2
----
-10
-20
-36

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

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

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 BETWEEN 91 AND col0
----
-51
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT SUM( 16 ) AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT SUM ( 16 ) AS col1 FROM tab0
----
48

query I rowsort
SELECT ALL - 55 * col2 AS col0 FROM tab0
----
-2585
-5445
-550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL + CAST( + 43 AS SIGNED ) + - 34 col0 FROM tab2
----
9
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7387
SELECT ALL + CAST ( + 43 AS INTEGER ) + - 34 col0 FROM tab2
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * 30 col2 FROM tab0
----
1020
1020
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT + 96 + - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + 96 + - COUNT ( * ) FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT COUNT( * ) * + 82 col2 FROM tab1
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7390
SELECT COUNT ( * ) * + 82 col2 FROM tab1
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT DISTINCT - COUNT( * ) DIV COUNT( - col1 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT - COUNT ( * ) / COUNT ( - col1 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7393
SELECT DISTINCT * FROM tab0 WHERE col0 * CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7393
SELECT DISTINCT * FROM tab0 WHERE col0 * CAST ( + col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - ( + 39 ) * MAX( DISTINCT - 70 ) col0 FROM tab2
----
2730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7394
SELECT - ( + 39 ) * MAX ( DISTINCT - 70 ) col0 FROM tab2
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT DISTINCT col2 DIV col1 + ( 61 ) FROM tab0
----
160
61

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT col2 / col1 + ( 61 ) FROM tab0
----
160
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 40 / 74 AND + col2 * 88
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 / 26 AND 70 * - col2 + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT - COUNT( * ) * + SUM( ALL - col1 * 46 ) - COUNT( * ) FROM tab1
----
9105

skipif mysql # not compatible
query I rowsort label-7398
SELECT - COUNT ( * ) * + SUM ( ALL - col1 * 46 ) - COUNT ( * ) FROM tab1
----
9105

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - 85 * + col1 + + col0 <= 86
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 55 * col2 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 64 ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7402
SELECT - CAST( 90 AS SIGNED ) FROM tab1
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-7402
SELECT - CAST ( 90 AS INTEGER ) FROM tab1
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT - MIN( DISTINCT col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - MIN ( DISTINCT col1 ) FROM tab2
----
-51

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 * col2 ) NOT BETWEEN 35 AND col1 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + 54 ) * 30 + col1 FROM tab1
----
1625
1634
1667

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT COUNT( * ) - 28 AS col2 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT COUNT ( * ) - 28 AS col2 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT 36 + + 57 * COUNT( * ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-7408
SELECT 36 + + 57 * COUNT ( * ) FROM tab1
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT + 0 + + col2 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + 0 + + col2 / - col0 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT col1 * 93 FROM tab2 WHERE ( + 90 ) IS NOT NULL
----
4743
6231
7161

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NULL < ( col2 )
----

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

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( + 84 / - col1 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE 71 IS NOT NULL
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL 29 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL 29 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT - SUM( - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7417
SELECT - SUM ( - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-198

query I rowsort
SELECT DISTINCT col1 + col2 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ( + MAX( DISTINCT col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7419
SELECT ( + MAX ( DISTINCT col2 ) ) FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7420
SELECT DISTINCT COUNT( * ) * - CAST( 48 DIV + 28 AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT COUNT ( * ) * - CAST ( 48 / + 28 AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT 5 AS col2 FROM tab2 WHERE NOT ( - col1 * - 13 ) <= ( + 89 )
----
5
5
5

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 * + col2 col2 FROM tab2 cor0
----
1127
1960
2842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT - ( ( ( MIN( - col0 ) ) ) ) DIV 23 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7425
SELECT - ( ( ( MIN ( - col0 ) ) ) ) / 23 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 93 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1953
-7533
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT - SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7427
SELECT - SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - 2 * + col0 AS col0 FROM tab1 AS cor0
----
-102
-170
-182

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

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

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

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

query I rowsort
SELECT ALL 78 + 65 FROM tab2 AS cor0
----
143
143
143

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

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

query I rowsort
SELECT DISTINCT + 36 * 40 FROM tab1 AS cor0
----
1440

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col0 ) IN ( 99 )
----

query I rowsort
SELECT 48 * - 72 FROM tab2
----
-3456
-3456
-3456

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT ALL col0 DIV 63 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL col0 / 63 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL + 95 + + 69 + - col1 AS col0 FROM tab0
----
143
163
83

query I rowsort
SELECT DISTINCT 87 * + + col1 * - col1 AS col1 FROM tab2
----
-226287
-390543
-515823

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT ALL + 45 DIV col1 * col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + 45 / col1 * col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 IS NOT NULL OR NOT - col0 = NULL
----

query I rowsort
SELECT + col0 / col1 FROM tab1 WHERE NULL NOT IN ( 96 + col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7445
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 * CAST( NULL AS SIGNED ) ) IS NOT NULL AND NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7445
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 * CAST ( NULL AS INTEGER ) ) IS NOT NULL AND NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col2 + + 11 + - 24 FROM tab1 AS cor0
----
-109
-72
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL - col2 FROM tab1 cor0 WHERE NOT CAST( - 95 AS SIGNED ) * col1 BETWEEN - col1 + 70 AND col0 * - col1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - col2 FROM tab1 cor0 WHERE NOT CAST ( - 95 AS INTEGER ) * col1 BETWEEN - col1 + 70 AND col0 * - col1
----
-59
-68
-96

query I rowsort
SELECT + + col1 + col1 + + col0 FROM tab0 cor0
----
129
177
99

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

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

query I rowsort
SELECT ( col2 ) + - 49 FROM tab1 WHERE NULL NOT IN ( - 30 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT COUNT( + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7452
SELECT COUNT ( + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - ( + - col1 ) FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + - col1 <= ( NULL ) OR col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2 - + col2 / - 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + COUNT( DISTINCT ( - 66 ) ) col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7456
SELECT + COUNT ( DISTINCT ( - 66 ) ) col1 FROM tab1 cor0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT col1 DIV 33 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7458
SELECT col1 / 33 FROM tab2 AS cor0
----
1
2
2

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

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) * - 1 AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( + col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + + col0 ) BETWEEN 16 AND 68 + 96
----

query I rowsort
SELECT DISTINCT + ( - 1 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + 87 FROM tab2 WHERE ( + col0 ) IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT ( col0 ) + ( - 77 ) * col1 AS col0 FROM tab2 WHERE NOT NULL IN ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + MIN( + 76 ) + ( SUM( + 12 ) ) * - 11 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT + MIN ( + 76 ) + ( SUM ( + 12 ) ) * - 11 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT col1 DIV 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT col1 / 98 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - 19 NOT IN ( - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT DISTINCT + 93 DIV - - COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + 93 / - - COUNT ( * ) FROM tab1
----
31

query I rowsort
SELECT - - 26 * + 96 FROM tab0 AS cor0
----
2496
2496
2496

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( - 51 - - col2 )
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col1 < + 64 * 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT - 24 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7475
SELECT - 24 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT col1 DIV - - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7476
SELECT col1 / - - col2 FROM tab2
----
1
1
2

query I rowsort
SELECT ALL col2 + + + 93 + + 88 + - 98 * + 53 * 34 FROM tab2 AS cor0
----
-176357
-176375
-176392

query II rowsort
SELECT DISTINCT + col1, - col0 FROM tab0 cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 <= col0
----
87
21
10
97
1
99

query I rowsort
SELECT 7 FROM tab1 cor0 WHERE col2 * + 2 + + col2 BETWEEN - col0 + + ( col2 ) * col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( + + 60 ) AND NULL
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL + - 69 * 61 + MAX( ALL - - col2 ) FROM tab0 AS cor0
----
-4110

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL + - 69 * 61 + MAX ( ALL - - col2 ) FROM tab0 AS cor0
----
-4110

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 < ( - col2 * + 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT - 78 + + COUNT( ALL - col2 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT - 78 + + COUNT ( ALL - col2 ) AS col2 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab0 WHERE ( col0 * ( col0 ) ) <= ( + col0 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( + + col2 + + - 42 * - col1 * 80 ) IS NOT NULL
----
14
47
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT - 11 + MIN( - + CAST( NULL AS SIGNED ) ) + + MIN( ALL - - ( - ( - col0 ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT - 11 + MIN ( - + CAST ( NULL AS INTEGER ) ) + + MIN ( ALL - - ( - ( - col0 ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT col1 * + 23 + 55 FROM tab0
----
1918
538
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7490
SELECT * FROM tab0 WHERE + + 28 NOT BETWEEN + CAST( NULL AS SIGNED ) AND - col0 + col0 + col1 * + col2 * + col1
----

skipif mysql # not compatible
query III rowsort label-7490
SELECT * FROM tab0 WHERE + + 28 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - col0 + col0 + col1 * + col2 * + col1
----

query I rowsort
SELECT DISTINCT col0 + col0 * col2 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT ALL + 60 - + col1 AS col0 FROM tab0
----
-21
39
59

query I rowsort
SELECT - col1 * 39 AS col0 FROM tab1 cor0
----
-1833
-195
-546

query I rowsort
SELECT col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT ALL col0 + - - 40 + - col2 DIV - + col0 FROM tab0
----
127
138
58

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL col0 + - - 40 + - col2 / - + col0 FROM tab0
----
127
138
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - COUNT( * ) - - ( + - 73 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-7496
SELECT - COUNT ( * ) - - ( + - 73 ) FROM tab1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT 3 - - + MIN( col2 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-7497
SELECT 3 - - + MIN ( col2 ) FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT COUNT( * ) + + MIN( ALL + - col0 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL + - col0 ) AS col2 FROM tab2
----
-72

query I rowsort
SELECT ALL - + 86 AS col1 FROM tab2 AS cor0
----
-86
-86
-86

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

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

query I rowsort
SELECT DISTINCT col0 * + 86 FROM tab0 AS cor0
----
1290
7482
8342

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = + - 37 + col0 * + 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT DISTINCT + col1 DIV col1 * - 48 AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT + col1 / col1 * - 48 AS col2 FROM tab2 AS cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT - - 95 * col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-26
-49
-5

skipif mysql # not compatible
query I rowsort label-7504
SELECT - - 95 * col1 / - col0 AS col1 FROM tab1 AS cor0
----
-26
-49
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT - ( - col1 ) DIV col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7506
SELECT - ( - col1 ) / col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col2 * + + col0 * - - col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT + col0 * CAST( - 90 AS SIGNED ) + - 0 FROM tab0 AS cor0
----
-1350
-7830
-8730

skipif mysql # not compatible
query I rowsort label-7508
SELECT + col0 * CAST ( - 90 AS INTEGER ) + - 0 FROM tab0 AS cor0
----
-1350
-7830
-8730

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + 87 FROM tab1
----
14
87
47
87
5
87

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7511
SELECT DISTINCT COUNT ( * ), COUNT ( * ) col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7512
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT - SUM( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT - SUM ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
121

query II rowsort
SELECT + - ( - 23 ) * - 37, col2 AS col0 FROM tab1 AS cor0
----
-851
59
-851
68
-851
96

query I rowsort
SELECT ALL - + 64 + col0 AS col0 FROM tab0 AS cor0
----
-49
23
33

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab1 WHERE ( NOT ( - ( - col1 ) NOT BETWEEN col1 * col0 AND ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT 77 * + COUNT( * ) * + 33 AS col1 FROM tab2 AS cor0
----
7623

skipif mysql # not compatible
query I rowsort label-7517
SELECT 77 * + COUNT ( * ) * + 33 AS col1 FROM tab2 AS cor0
----
7623

query I rowsort
SELECT ALL 53 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT + - ( SUM( + col1 ) ) AS col2 FROM tab0 AS cor0 WHERE 7 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT + - ( SUM ( + col1 ) ) AS col2 FROM tab0 AS cor0 WHERE 7 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7520
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - 59 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT col2 DIV - + col2 + + col0 * ( + col1 ) col1 FROM tab0
----
1214
1826
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7521
SELECT col2 / - + col2 + + col0 * ( + col1 ) col1 FROM tab0
----
1214
1826
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT SUM( ALL ( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT SUM ( ALL ( + col0 ) ) FROM tab0
----
199

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

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

query I rowsort
SELECT col0 + - - col2 AS col2 FROM tab1
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT ALL - 47 DIV COUNT( * ) + 46 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - 47 / COUNT ( * ) + 46 FROM tab1 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 63 + - + col2 + col0 + - 56 col2 FROM tab1 AS cor0
----
-38
30
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT + 91 * + ( - + COUNT( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + 91 * + ( - + COUNT ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + - col1 col0 FROM tab2 AS cor0
----
-7
19
3

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 46 <= NULL
----

query I rowsort
SELECT ALL - 24 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query II rowsort
SELECT 9 AS col1, col0 * - + col0 AS col0 FROM tab0
----
9
-225
9
-7569
9
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col2 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # DIV for integer division: 
query II rowsort label-7535
SELECT - 88 AS col2, - 99 + - 66 + 42 DIV + col1 AS col0 FROM tab2 AS cor0
----
-88
-165
-88
-165
-88
-165

skipif mysql # not compatible
query II rowsort label-7535
SELECT - 88 AS col2, - 99 + - 66 + 42 / + col1 AS col0 FROM tab2 AS cor0
----
-88
-165
-88
-165
-88
-165

query I rowsort
SELECT DISTINCT col1 * - + col0 + - 59 FROM tab2 AS cor0
----
-2405
-4987
-5084

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT - - SUM( - - 24 ) FROM tab1 AS cor0 WHERE NOT 44 + + 9 / - col0 IS NULL
----
72

skipif mysql # not compatible
query I rowsort label-7537
SELECT - - SUM ( - - 24 ) FROM tab1 AS cor0 WHERE NOT 44 + + 9 / - col0 IS NULL
----
72

query I rowsort
SELECT - 4 * - + col1 FROM tab2 AS cor0
----
204
268
308

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 83, + col0 + col1 )
----

query I rowsort
SELECT col0 + + + 77 AS col0 FROM tab2
----
123
141
152

query I rowsort
SELECT DISTINCT ( + + 91 ) * col2 AS col2 FROM tab2
----
2093
3640
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + + 8 + - + col1 * + col0 * + col2 col0 FROM tab0
----
-18361
-57196
-9694

query II rowsort
SELECT DISTINCT + ( - 7 ) AS col0, col1 FROM tab2 AS cor0
----
-7
51
-7
67
-7
77

query I rowsort
SELECT col1 - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT ALL - + 23 / - 49 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - + 23 / - 49 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + col0 > NULL
----

query I rowsort
SELECT ALL - - 62 AS col2 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT - col2 + col2 * + 44 * - - col0 AS col0 FROM tab0
----
30973
38270
422433

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 65 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * + col0 col0 FROM tab0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + - 27 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7550
SELECT + - 27 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * + 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 46 FROM tab0 AS cor0 WHERE ( - - col0 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 64 + - col0 * + - 17 AS col1, ( + col1 ) * + - ( - col1 ) + - col2 * col0 + + + 45 FROM tab0 cor0
----
1543
-384
1713
-9557
319
5901

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - 87 )
----

query I rowsort
SELECT col1 + - col2 - + col0 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT ALL + col2 - - 37 + - 21 - col1 * + col2 FROM tab0
----
-184
-3744
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT - ( CAST( - + COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7559
SELECT - ( CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT SUM( - + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7561
SELECT SUM ( - + col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT DISTINCT + ( + col0 ) DIV - 15 - - col2 - + 70 FROM tab0
----
-24
-65
23

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT + ( + col0 ) / - 15 - - col2 - + 70 FROM tab0
----
-24
-65
23

query I rowsort
SELECT ALL col0 + - ( + - col0 ) + - col1 FROM tab0
----
-51
153
193

onlyif mysql # DIV for integer division: 
query II rowsort label-7564
SELECT col2 DIV col2 AS col2, 8 + + col1 FROM tab0 cor0
----
1
29
1
89
1
9

skipif mysql # not compatible
query II rowsort label-7564
SELECT col2 / col2 AS col2, 8 + + col1 FROM tab0 cor0
----
1
29
1
89
1
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + 8 col0 FROM tab1 AS cor0 JOIN tab0 cor1 ON NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 25 + - col0 NOT BETWEEN ( - + 81 ) AND - col1 * col2
----

query I rowsort
SELECT DISTINCT - 49 * + col0 FROM tab2 AS cor0
----
-2254
-3136
-3675

query I rowsort
SELECT ALL - 76 AS col1 FROM tab1 cor0
----
-76
-76
-76

query I rowsort
SELECT ALL col0 * + col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

query II rowsort
SELECT DISTINCT col0, 86 * + col2 + - - 65 FROM tab0 AS cor0
----
15
4107
87
925
97
8579

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT ALL + 10 DIV + 73 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + 10 / + 73 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT + COUNT( * ) AS col1, 92 + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
92

skipif mysql # not compatible
query II rowsort label-7573
SELECT + COUNT ( * ) AS col1, 92 + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
92

query I rowsort
SELECT + col0 * + 98 AS col2 FROM tab2 AS cor0
----
4508
6272
7350

query II rowsort
SELECT - col1 AS col2, + col1 FROM tab0
----
-1
1
-21
21
-81
81

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> + col1
----

query I rowsort
SELECT + 55 FROM tab0 WHERE NOT + 52 BETWEEN + + col1 AND NULL
----
55

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

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
3

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

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

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL ( + col1 ) * - CAST ( NULL AS INTEGER ) + - ( + ( + + col0 ) ) + col1 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col1 ) * - 63 + + col2 AS col0 FROM tab0 AS cor0
----
-1313
-5056
36

query I rowsort
SELECT ALL - 77 + + col0 FROM tab0 AS cor0
----
-62
10
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col2 FROM tab1 cor0 WHERE NOT ( NULL <> ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT DISTINCT + + col1 DIV + + col2 + col2 + - + col1 col1 FROM tab2 AS cor0
----
-26
-36
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT DISTINCT + + col1 / + + col2 + col2 + - + col1 col1 FROM tab2 AS cor0
----
-26
-36
-8

query I rowsort
SELECT + col2 + + + 63 AS col2 FROM tab0
----
110
162
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7587
SELECT ALL + COUNT( * ) DIV - 4 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL + COUNT ( * ) / - 4 + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7588
SELECT DISTINCT - COUNT( - - CAST( NULL AS SIGNED ) ) DIV 49 * + COUNT( DISTINCT col2 ) - - 76 AS col1 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - COUNT ( - - CAST ( NULL AS INTEGER ) ) / 49 * + COUNT ( DISTINCT col2 ) - - 76 AS col1 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + COUNT( * ) * + 75 + + 44 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
719

skipif mysql # not compatible
query I rowsort label-7589
SELECT + COUNT ( * ) * + 75 + + 44 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * - col0 col2 FROM tab2 cor0
----
1152
1350
828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( - col2 ) col1, + col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * 55 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + + SUM( ALL - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7593
SELECT + + SUM ( ALL - - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( + col0 * + col2 / + 10 ) IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT DISTINCT col0 + - CAST( - ( - - 72 ) AS SIGNED ) * - col2 * col0 col1 FROM tab1
----
-352461
-360995
-445445

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT DISTINCT col0 + - CAST ( - ( - - 72 ) AS INTEGER ) * - col2 * col0 col1 FROM tab1
----
-352461
-360995
-445445

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1, tab2 AS cor0 WHERE NULL IS NULL
----
80

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

query I rowsort
SELECT col2 * - ( - 60 ) * + 28 AS col0 FROM tab0 AS cor0
----
166320
16800
78960

query I rowsort
SELECT DISTINCT - 2 * ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 40 IS NULL
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT ALL - CAST( MAX( col0 ) AS SIGNED ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - CAST ( MAX ( col0 ) AS INTEGER ) AS col2 FROM tab1
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col0 + - - 63 + - col2 <= NULL
----

query I rowsort
SELECT - + col1 / + + 4 + - 1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT 56 + MIN( DISTINCT 54 ) FROM tab2 cor0
----
110

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT 56 + MIN ( DISTINCT 54 ) FROM tab2 cor0
----
110

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

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

query I rowsort
SELECT - col0 + + - 51 + + + col2 FROM tab0
----
-128
-19
-49

query I rowsort
SELECT 69 + - - 14 AS col0 FROM tab2
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT + col0 * + col0 FROM tab2 WHERE NOT + ( - ( - CAST( NULL AS SIGNED ) ) ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-7608
SELECT + col0 * + col0 FROM tab2 WHERE NOT + ( - ( - CAST ( NULL AS INTEGER ) ) ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col1 * + 8 AS col0, - col2 col0 FROM tab0
----
-3528
-10
-52488
-47
-8
-99

query I rowsort
SELECT col1 + + + 49 AS col1 FROM tab0
----
130
50
70

query I rowsort
SELECT 10 + - 18 AS col1 FROM tab2
----
-8
-8
-8

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7613
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col2 + + 19 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7613
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col2 + + 19 / CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55

query I rowsort
SELECT 86 + 93 AS col1 FROM tab0
----
179
179
179

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL MIN( ALL col0 ) col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7617
SELECT ALL MIN ( ALL col0 ) col2 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT + - 67 AS col2 FROM tab0 AS cor0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT col0 * - col0 * + 88 + + col1 - - + 56 AS col0 FROM tab1 AS cor0
----
-228818
-635739
-728625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT + CAST( NULL AS SIGNED ) / - 37 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT + CAST ( NULL AS INTEGER ) / - 37 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT - ( + - 55 ) DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7623
SELECT - ( + - 55 ) / col0 AS col1 FROM tab0 AS cor0
----
0
0
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) <= 49 / - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT COUNT( * ) + - 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT COUNT ( * ) + - 52 FROM tab2 AS cor0
----
-49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 23 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT COUNT( * ) AS col0, - 74 AS col1 FROM tab2 cor0
----
3
-74

skipif mysql # not compatible
query II rowsort label-7628
SELECT COUNT ( * ) AS col0, - 74 AS col1 FROM tab2 cor0
----
3
-74

query I rowsort
SELECT ( + 69 ) FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT DISTINCT col2 * - col0 * - 10 + + ( - - 39 ) AS col2 FROM tab0 AS cor0
----
7089
8739
96069

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

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

query I rowsort
SELECT DISTINCT - col2 + 87 * - col0 AS col0 FROM tab2
----
-4025
-5608
-6583

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7633
SELECT ALL ( CAST( + col2 AS SIGNED ) ) * - 61 * col1 - + - col1 DIV + 69 AS col1 FROM tab2
----
-187879
-237046
-71553

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL ( CAST ( + col2 AS INTEGER ) ) * - 61 * col1 - + - col1 / + 69 AS col1 FROM tab2
----
-187879
-237046
-71553

query I rowsort
SELECT 34 * col1 + col0 AS col1 FROM tab1
----
1689
255
527

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <> + - 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + 86 + 34 AS col2 FROM tab1 AS cor0
----
179
188
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 WHERE NULL >= 52
----

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

query II rowsort
SELECT DISTINCT col2, + col0 + col1 + + + col2 AS col2 FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - 72
----

query I rowsort
SELECT DISTINCT col0 + - + col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 97 - col2 FROM tab0 AS cor0
----
-107
-144
-196

query I rowsort
SELECT 63 - + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-36
16
53

query I rowsort
SELECT ALL - + col1 * - + 85 - - col0 + 2 - - + col0 FROM tab1 AS cor0
----
1294
4179
597

query I rowsort
SELECT 99 - + ( 48 ) AS col2 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT ALL + 28 * col1 AS col1 FROM tab1 AS cor0
----
1316
140
392

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 68 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + ( - 51 ) col1 FROM tab0
----
15
-51
87
-51
97
-51

query I rowsort
SELECT ALL - col2 * + 58 AS col2 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # aggregate syntax: 
query II rowsort label-7650
SELECT DISTINCT 94, + MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
94
-58

skipif mysql # not compatible
query II rowsort label-7650
SELECT DISTINCT 94, + MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
94
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7651
SELECT + 8 AS col0, + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-7651
SELECT + 8 AS col0, + CAST ( NULL AS REAL ) FROM tab2 cor0
----
8
NULL
8
NULL
8
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 3 col0 FROM tab2 AS cor0
----
-23
3
-40
3
-58
3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - ( + 26 ) IS NULL
----
23
40
58

query I rowsort
SELECT col2 * 10 FROM tab2
----
230
400
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL + SUM( - col0 ) + - MIN( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + SUM ( - col0 ) + - MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7656
SELECT ( + 92 ) AS col0, col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
92
NULL
92
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-7656
SELECT ( + 92 ) AS col0, col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
92
NULL
92
NULL
92
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 29 ) * col0 + + + col2 NOT BETWEEN NULL AND + 96
----

query I rowsort
SELECT col2 + + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
117
125
74

query I rowsort
SELECT ALL - 80 * - 44 + - + ( col1 ) FROM tab1
----
3473
3506
3515

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL + ( - COUNT( ALL + col2 ) ) + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + ( - COUNT ( ALL + col2 ) ) + - COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab0 WHERE - col0 + - 39 IS NULL
----

query II rowsort
SELECT col0 AS col2, - 8 + - col0 FROM tab1
----
51
-59
85
-93
91
-99

query II rowsort
SELECT col1 AS col0, col2 * 27 * + + 99 AS col1 FROM tab1
----
14
256608
47
181764
5
157707

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT MIN( ALL - 59 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT MIN ( ALL - 59 ) AS col2 FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 72 ) + - col2 + - ( col2 ) * col0 col0 FROM tab0
----
-824
-952
-9774

query I rowsort
SELECT 9 + 55 AS col2 FROM tab1 AS cor0 WHERE NULL < col1 / - col2
----

query I rowsort
SELECT 50 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 37, - 4 / 87, col2 )
----

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

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

query I rowsort
SELECT 66 - - + 46 + + - 8 AS col1 FROM tab2 AS cor0
----
104
104
104

query II rowsort
SELECT DISTINCT - + 12 AS col0, ( 4 ) FROM tab1 WHERE col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7672
SELECT - AVG ( ( - + 93 ) ) * + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7673
SELECT DISTINCT - 1 DIV CAST( col1 AS SIGNED ) + + 76 AS col1, - col0 + - 59 FROM tab2 AS cor0
----
76
-105
76
-123
76
-134

skipif mysql # not compatible
query II rowsort label-7673
SELECT DISTINCT - 1 / CAST ( col1 AS INTEGER ) + + 76 AS col1, - col0 + - 59 FROM tab2 AS cor0
----
76
-105
76
-123
76
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT COUNT( * ) DIV + 32 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) / + 32 AS col2 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7676
SELECT + CAST( - col2 AS DECIMAL ) / - 6 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7676
SELECT + CAST ( - col2 AS REAL ) / - 6 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

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

query II rowsort
SELECT ALL + 57 AS col1, col1 FROM tab1
----
57
14
57
47
57
5

query I rowsort
SELECT + 67 AS col2 FROM tab1 WHERE NOT ( NOT - col1 < NULL )
----

query I rowsort
SELECT ALL ( + + col1 ) * + ( + col1 ) AS col0 FROM tab0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL BETWEEN NULL AND col0 )
----

query I rowsort
SELECT DISTINCT - 13 * - 58 AS col0 FROM tab2
----
754

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT 73 DIV - 22 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7683
SELECT 73 / - 22 AS col1 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + 82 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT - COUNT( ( - 67 ) ) * COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT - COUNT ( ( - 67 ) ) * COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL - ( + col2 ) * + - 28 FROM tab1
----
1652
1904
2688

query III rowsort
SELECT * FROM tab1 WHERE col2 > - 86 + - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 29 * + 33 + 67 + + col1 * 19 AS col1 FROM tab0
----
1043
1423
2563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT - col0 FROM tab0 WHERE + col0 * - col1 + - + col1 * + 31 + col1 <= CAST( + col2 AS SIGNED ) - - 39
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7689
SELECT - col0 FROM tab0 WHERE + col0 * - col1 + - + col1 * + 31 + col1 <= CAST ( + col2 AS INTEGER ) - - 39
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT - ( SUM( DISTINCT - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT - ( SUM ( DISTINCT - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT DISTINCT - 44 DIV + col2 + + col1 + 91 FROM tab2 AS cor0
----
141
158
167

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT - 44 / + col2 + + col1 + 91 FROM tab2 AS cor0
----
141
158
167

onlyif mysql # aggregate syntax: 
query II rowsort label-7692
SELECT + COUNT( * ), 43 AS col0 FROM tab0 AS cor0
----
3
43

skipif mysql # not compatible
query II rowsort label-7692
SELECT + COUNT ( * ), 43 AS col0 FROM tab0 AS cor0
----
3
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL + - ( + col0 ) * - + 45 + - 1 FROM tab2 AS cor0
----
2069
2879
3374

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

skipif mysql # not compatible
query I rowsort label-7695
SELECT - - COUNT ( ALL + CAST ( - col0 AS INTEGER ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT - - COUNT( * ) AS col0, + ( COUNT( * ) ) + MIN( 9 ) AS col0 FROM tab2 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-7696
SELECT - - COUNT ( * ) AS col0, + ( COUNT ( * ) ) + MIN ( 9 ) AS col0 FROM tab2 AS cor0
----
3
12

query I rowsort
SELECT DISTINCT + col0 - - col0 + col1 FROM tab1
----
116
175
229

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT COUNT( * ) - - 26 AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT COUNT ( * ) - - 26 AS col1 FROM tab2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT ALL + - 42 DIV 85 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + - 42 / 85 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT 20 + + - col1, + col1 AS col2 FROM tab0 AS cor0
----
-1
21
-61
81
19
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, ( - col2 ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + + col1 + - col2 AND NULL
----

query I rowsort
SELECT + col2 + - 5 AS col0 FROM tab0 AS cor0
----
42
5
94

query I rowsort
SELECT DISTINCT - - 88 * + col1 + - col2 * + + 22 * - - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-28384
-68054
-7127

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL - ( - SUM( ALL + - 48 ) ) AS col1 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - ( - SUM ( ALL + - 48 ) ) AS col1 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - MIN( DISTINCT 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7705
SELECT - MIN ( DISTINCT 97 ) FROM tab2 AS cor0
----
-97

query I rowsort
SELECT ALL + - col1 * - col2 * - 78 + - + col1 AS col0 FROM tab1 AS cor0
----
-104846
-23015
-249335

onlyif mysql # DIV for integer division: 
query II rowsort label-7707
SELECT + col0 AS col1, col0 DIV - col1 FROM tab0 AS cor0
----
15
0
87
-4
97
-97

skipif mysql # not compatible
query II rowsort label-7707
SELECT + col0 AS col1, col0 / - col1 FROM tab0 AS cor0
----
15
0
87
-4
97
-97

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE ( - col0 * - + col2 ) IS NOT NULL
----
59
68
96

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

query II rowsort
SELECT DISTINCT - ( 36 ) * + col2 + col2, - col0 AS col1 FROM tab0
----
-1645
-15
-3465
-97
-350
-87

query I rowsort
SELECT DISTINCT + 85 * - col1 AS col2 FROM tab2
----
-4335
-5695
-6545

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - ( - - col0 ) * - + col1 / - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT col0 DIV col2 * 5 AS col0 FROM tab2
----
10
5
5

skipif mysql # not compatible
query I rowsort label-7713
SELECT col0 / col2 * 5 AS col0 FROM tab2
----
10
5
5

query I rowsort
SELECT DISTINCT + 70 + 68 FROM tab0 AS cor0
----
138

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * - + ( 44 ) IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 35 < - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT DISTINCT + COUNT( * ) - + + 13 AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT + COUNT ( * ) - + + 13 AS col1 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 34 * + col1
----

query II rowsort
SELECT col2, + col2 * - - col1 AS col1 FROM tab2
----
23
1173
40
3080
58
3886

query I rowsort
SELECT DISTINCT - 58 + + col1 AS col0 FROM tab0
----
-37
-57
23

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
-14
-47
-5

query II rowsort
SELECT DISTINCT col0 - - col2 + + 90 + + + 46 + + col1 - - - 18 + col2 * + 39 + + + 41 AS col0, col2 AS col1 FROM tab1
----
2609
59
3017
68
4064
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT CAST( NULL AS SIGNED ) * - + col0 * 44 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT CAST ( NULL AS INTEGER ) * - + col0 * 44 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT ALL ( - - 34 ) DIV + col2 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL ( - - 34 ) / + col2 AS col2 FROM tab0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * 86 col1 FROM tab0
----
3526
3526
3526

onlyif mysql # aggregate syntax: 
query II rowsort label-7728
SELECT ALL - 75, + MAX( DISTINCT 37 ) col0 FROM tab1 cor0
----
-75
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7728
SELECT ALL - 75, + MAX ( DISTINCT 37 ) col0 FROM tab1 cor0
----
-75
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT - + 16 DIV + 21 - + ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7729
SELECT - + 16 / + 21 - + ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 90 col0, - ( col1 ) AS col2 FROM tab0 AS cor0
----
-90
-1
-90
-21
-90
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT MIN( ALL + 89 ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-7732
SELECT MIN ( ALL + 89 ) AS col0 FROM tab2
----
89

query I rowsort
SELECT + - col1 * - ( + + 98 ) FROM tab2 AS cor0
----
4998
6566
7546

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 51 NOT BETWEEN + 22 * + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7735
SELECT ALL + col1 - col0 - + ( + CAST( + col1 AS SIGNED ) ) AS col2, col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 52 / col2 - + col1 * col0
----

skipif mysql # not compatible
query II rowsort label-7735
SELECT ALL + col1 - col0 - + ( + CAST ( + col1 AS INTEGER ) ) AS col2, col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 52 / col2 - + col1 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7736
SELECT ALL MIN( + col0 ) AS col0, ( - + 1 ) AS col0 FROM tab1 AS cor0
----
51
-1

skipif mysql # not compatible
query II rowsort label-7736
SELECT ALL MIN ( + col0 ) AS col0, ( - + 1 ) AS col0 FROM tab1 AS cor0
----
51
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT COUNT( DISTINCT 30 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7737
SELECT COUNT ( DISTINCT 30 ) col0 FROM tab2 AS cor0
----
1

query II rowsort
SELECT - col2 * - col1 - - + col0, col1 FROM tab2 AS cor0
----
1219
51
3144
77
3961
67

query II rowsort
SELECT 98, col1 FROM tab0
----
98
1
98
21
98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT 6 * - COUNT( * ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-7740
SELECT 6 * - COUNT ( * ) AS col1 FROM tab1
----
-18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT DISTINCT - AVG ( - - CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT - col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT - AVG ( - - CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT - col0 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT DISTINCT 17, - COUNT( * ) AS col0 FROM tab0
----
17
-3

skipif mysql # not compatible
query II rowsort label-7743
SELECT DISTINCT 17, - COUNT ( * ) AS col0 FROM tab0
----
17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + COUNT( * ) * 0 + + 46 FROM tab2 AS cor0 WHERE NOT - col2 * 55 * - col0 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-7744
SELECT + COUNT ( * ) * 0 + + 46 FROM tab2 AS cor0 WHERE NOT - col2 * 55 * - col0 IS NOT NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7745
SELECT + SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT + + COUNT( col0 ) + + 2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7746
SELECT + + COUNT ( col0 ) + + 2 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 7 BETWEEN + + 5 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 7 BETWEEN + + 5 AND NULL
----
0

query I rowsort
SELECT - 7 + - col1 AS col0 FROM tab1 cor0
----
-12
-21
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT ALL - 46 * col1 DIV - col0 FROM tab2
----
41
51
55

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - 46 * col1 / - col0 FROM tab2
----
41
51
55

query I rowsort
SELECT DISTINCT + ( - - 16 ) * 92 AS col1 FROM tab1
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT DISTINCT + SUM( 19 ) * 52 + + 76 FROM tab1
----
3040

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + SUM ( 19 ) * 52 + + 76 FROM tab1
----
3040

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT - col2 DIV - 4 AS col0 FROM tab0 AS cor0
----
11
2
24

skipif mysql # not compatible
query I rowsort label-7752
SELECT - col2 / - 4 AS col0 FROM tab0 AS cor0
----
11
2
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7753
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( + col2 AS DECIMAL ) * + 22 * - 90 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7753
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( + col2 AS REAL ) * + 22 * - 90 AND NULL
----

query I rowsort
SELECT ALL + 7 + - col1 FROM tab1 AS cor0
----
-40
-7
2

query I rowsort
SELECT + - ( 77 ) FROM tab0 cor0
----
-77
-77
-77

query II rowsort
SELECT col0 * - - col1 AS col0, + 15 AS col1 FROM tab2 AS cor0
----
2346
15
4928
15
5025
15

query I rowsort
SELECT + col2 - - + 95 FROM tab2 AS cor0
----
118
135
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL - COUNT( * ) + 38 AS col0 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - COUNT ( * ) + 38 AS col0 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT - COUNT( ALL - col0 ) - + 74 AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7759
SELECT - COUNT ( ALL - col0 ) - + 74 AS col2 FROM tab0 AS cor0
----
-77

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

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

query II rowsort
SELECT + - col1 AS col0, - 85 AS col2 FROM tab0 AS cor0
----
-1
-85
-21
-85
-81
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT - col0 DIV + 14 AS col0 FROM tab1
----
-3
-6
-6

skipif mysql # not compatible
query I rowsort label-7762
SELECT - col0 / + 14 AS col0 FROM tab1
----
-3
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7763
SELECT * FROM tab0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) + - - 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7763
SELECT * FROM tab0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) + - - 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7764
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0, CAST( 62 AS DECIMAL ), - - col1, col1 / + col0 / + - 16 )
----

skipif mysql # not compatible
query III rowsort label-7764
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0, CAST ( 62 AS REAL ), - - col1, col1 / + col0 / + - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7765
SELECT - col1 AS col0, - CAST( ( - - CAST( + col0 AS SIGNED ) ) AS SIGNED ) DIV + 15 FROM tab0 AS cor0
----
-1
-6
-21
-5
-81
-1

skipif mysql # not compatible
query II rowsort label-7765
SELECT - col1 AS col0, - CAST ( ( - - CAST ( + col0 AS INTEGER ) ) AS INTEGER ) / + 15 FROM tab0 AS cor0
----
-1
-6
-21
-5
-81
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 * - col1 * + col0 / - col1 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

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

query I rowsort
SELECT col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + - col2 + - 2 + + col2 ) >= col2 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT col1 / + col0 + + CAST( col1 AS SIGNED ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7771
SELECT col1 / + col0 + + CAST ( col1 AS INTEGER ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT + COUNT( col2 ) DIV SUM( + 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7772
SELECT + COUNT ( col2 ) / SUM ( + 1 ) FROM tab0
----
1

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NOT + 52 * - col0 - col0 IS NOT NULL )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - MAX( DISTINCT 62 ) AS col1 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - MAX ( DISTINCT 62 ) AS col1 FROM tab1
----
-62

query I rowsort
SELECT col2 * 48 + - 93 + + - 50 AS col1 FROM tab1
----
2689
3121
4465

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE NOT ( - + col0 ) >= + 47 / + col1
----
-51
-85
-91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT - CAST( NULL AS SIGNED ) * 57 + + col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7778
SELECT - CAST ( NULL AS INTEGER ) * 57 + + col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - ( - 46 ) ) FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL MAX( - col1 ) AS col1 FROM tab1 WHERE NOT NULL <> NULL AND NOT + col0 / + - ( - col0 ) * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL MAX ( - col1 ) AS col1 FROM tab1 WHERE NOT NULL <> NULL AND NOT + col0 / + - ( - col0 ) * + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT - col2 + - 32 - - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT - col2 + - 32 - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT ( + - 71 ) AS col0 FROM tab2 AS cor0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT ALL - 21 + - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - 21 + - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT - 2 AS col2 FROM tab0 AS cor0 WHERE ( NOT - - col2 IS NULL )
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col1 <= + + 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT + col1 DIV - + 20 col0 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7788
SELECT + col1 / - + 20 col0 FROM tab0 AS cor0
----
-1
-4
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7790
SELECT MIN( DISTINCT 11 ), COUNT( * ) AS col1 FROM tab1
----
11
3

skipif mysql # not compatible
query II rowsort label-7790
SELECT MIN ( DISTINCT 11 ), COUNT ( * ) AS col1 FROM tab1
----
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT + ( + 34 ) + + COUNT( + col1 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + ( + 34 ) + + COUNT ( + col1 ) FROM tab0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT 24 DIV + col2 AS col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7792
SELECT 24 / + col2 AS col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7793
SELECT ALL + CAST( NULL AS DECIMAL ) + + COUNT( * ) - - 78 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + CAST ( NULL AS REAL ) + + COUNT ( * ) - - 78 FROM tab2
----
NULL

query II rowsort
SELECT + 60 * + 28, - col1 - 39 AS col1 FROM tab1
----
1680
-44
1680
-53
1680
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT - ( - - ( + COUNT( * ) ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7795
SELECT - ( - - ( + COUNT ( * ) ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - COUNT( DISTINCT - - 45 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7796
SELECT - COUNT ( DISTINCT - - 45 ) FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 24 + + 26 col1 FROM tab1 AS cor0
----
-1102
-310
-94

query I rowsort
SELECT DISTINCT + col1 * + 72 + + 53 FROM tab0 cor0
----
125
1565
5885

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + COUNT( * ) * + COUNT( * ) * + 48 AS col2 FROM tab0 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-7799
SELECT + COUNT ( * ) * + COUNT ( * ) * + 48 AS col2 FROM tab0 AS cor0
----
432

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT - 81 DIV 58 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7801
SELECT - 81 / 58 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE 56 * + CAST( + 98 AS SIGNED ) <> - + col1 * col2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE 56 * + CAST ( + 98 AS INTEGER ) <> - + col1 * col2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT DISTINCT 25 * + 59 + ( ( - col1 ) ) DIV + 41 AS col1 FROM tab2 AS cor0
----
1474

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT 25 * + 59 + ( ( - col1 ) ) / + 41 AS col1 FROM tab2 AS cor0
----
1474

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab1 cor0
----
10

query II rowsort
SELECT 32 AS col0, - col0 * + col0 AS col0 FROM tab2 AS cor0
----
32
-2116
32
-4096
32
-5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1 / - - col0
----

query II rowsort
SELECT ALL col1 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

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

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL + + COUNT( * ) + + 20 AS col1 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + + COUNT ( * ) + + 20 AS col1 FROM tab0 AS cor0
----
23

query II rowsort
SELECT ALL + col1 AS col1, 8 + + + col1 AS col2 FROM tab2
----
51
59
67
75
77
85

query I rowsort
SELECT 73 * col2 AS col1 FROM tab1
----
4307
4964
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL < + - col2
----
0

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL < + - col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + 54 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7814
SELECT + 54 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT + 69 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT + ( 44 ) + - - COUNT( ALL - col2 ), + 35 AS col0 FROM tab0 AS cor0
----
47
35

skipif mysql # not compatible
query II rowsort label-7817
SELECT + ( 44 ) + - - COUNT ( ALL - col2 ), + 35 AS col0 FROM tab0 AS cor0
----
47
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT 79 + - - MIN( DISTINCT - + 89 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7818
SELECT 79 + - - MIN ( DISTINCT - + 89 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT ALL col0 + + col1 * ( + - col2 ) FROM tab2
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7820
SELECT - 19 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT - 19 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7821
SELECT ALL 0 + + - col2 * - col0 col2, col0 - - col1 DIV 4 FROM tab0 AS cor0
----
705
35
870
92
9603
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7821
SELECT ALL 0 + + - col2 * - col0 col2, col0 - - col1 / 4 FROM tab0 AS cor0
----
705
35
870
92
9603
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT + col0 - + + CAST( col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7823
SELECT + col0 - + + CAST ( col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT ALL 45 + col1 AS col2, + col0 + - col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ( + 22 ) FROM tab2
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT - CAST( + AVG ( DISTINCT - col0 ) AS SIGNED ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7827
SELECT - CAST ( + AVG ( DISTINCT - col0 ) AS INTEGER ) FROM tab0
----
66

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

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT + MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL + COUNT( * ) * 40 AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + COUNT ( * ) * 40 AS col1 FROM tab1
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + SUM( - + 27 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7831
SELECT + SUM ( - + 27 ) FROM tab2 AS cor0
----
-81

query I rowsort
SELECT + col2 + - 11 FROM tab0
----
-1
36
88

query I rowsort
SELECT + col1 * - 14 + ( col1 + col1 ) FROM tab1
----
-168
-564
-60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT CAST( NULL AS SIGNED ) - - 55 * 10 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT CAST ( NULL AS INTEGER ) - - 55 * 10 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 44 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * 21 FROM tab1
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT COUNT( + 60 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7838
SELECT COUNT ( + 60 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT COUNT( * ) + + 67 FROM tab1 WHERE col0 + + col2 * col0 IS NULL
----
67

skipif mysql # not compatible
query I rowsort label-7840
SELECT COUNT ( * ) + + 67 FROM tab1 WHERE col0 + + col2 * col0 IS NULL
----
67

query I rowsort
SELECT - col1 * + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 68 * - 82 AND - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - ( - 27 ) * col0 ) BETWEEN - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - 24 * COUNT( * ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-7843
SELECT - 24 * COUNT ( * ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + COUNT( * ) * - 70 AS col2 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-7844
SELECT + COUNT ( * ) * - 70 AS col2 FROM tab2
----
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * col1 col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT MAX( ALL col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-7846
SELECT MAX ( ALL col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
96

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 / - 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 81 ) col2 FROM tab0
----
81

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

query I rowsort
SELECT 85 FROM tab1 WHERE NOT NULL IS NOT NULL
----
85
85
85

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( 97 ) FROM tab2
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 56 col0 FROM tab0 AS cor0
----
-31
-41
41

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

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

query I rowsort
SELECT ALL 90 AS col0 FROM tab0 AS cor0
----
90
90
90

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col2 ) <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT + 9 + - SUM( 82 + 69 ) col0 FROM tab1 AS cor0
----
-444

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7858
SELECT DISTINCT + 9 + - SUM ( 82 + 69 ) col0 FROM tab1 AS cor0
----
-444

query I rowsort
SELECT + ( col2 ) - + ( + col2 + - col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT - AVG ( 17 ) FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT - 13 + - col0 DIV col2 AS col2 FROM tab1
----
-13
-14
-14

skipif mysql # not compatible
query I rowsort label-7861
SELECT - 13 + - col0 / col2 AS col2 FROM tab1
----
-13
-14
-14

query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab1 WHERE ( - 82 ) + + 47 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT 15 - COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT 15 - COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL - 85 - MAX( ALL 74 + - col1 ) FROM tab0 cor0
----
-158

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL - 85 - MAX ( ALL 74 + - col1 ) FROM tab0 cor0
----
-158

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 / col0 ) NOT BETWEEN 27 AND ( - col0 * 45 + - 39 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - + COUNT( * ) * - COUNT( ALL + 82 + + col2 * 10 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7867
SELECT - + COUNT ( * ) * - COUNT ( ALL + 82 + + col2 * 10 ) FROM tab0 AS cor0
----
9

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - 54 ) NOT BETWEEN CAST( - col1 AS SIGNED ) AND + 26
----
1

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - 54 ) NOT BETWEEN CAST ( - col1 AS INTEGER ) AND + 26
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + col1 ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT SUM( - 8 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7872
SELECT SUM ( - 8 ) FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL COUNT( + col2 ) AS col2 FROM tab1 WHERE ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL COUNT ( + col2 ) AS col2 FROM tab1 WHERE ( - col2 ) IS NULL
----
0

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + ( ( col2 ) ) * col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + - SUM( - + 78 ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7876
SELECT + - SUM ( - + 78 ) FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT - - 44 DIV + COUNT( * ) + 21 col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT - - 44 / + COUNT ( * ) + 21 col2 FROM tab0 AS cor0
----
35

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL >= ( - 68 ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT ALL - col1 DIV 46 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7880
SELECT ALL - col1 / 46 col0 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 + + col0 ) > ( 38 + - 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE ( - 42 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 + + - col0 + + 74 )
----

query II rowsort
SELECT + - col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7886
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE + ( - - col0 ) - - col2 = ( col1 / - col0 )
----

skipif mysql # not compatible
query I rowsort label-7886
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE + ( - - col0 ) - - col2 = ( col1 / - col0 )
----

query I rowsort
SELECT + - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - - col0 * - + 73 - - col1 FROM tab0 cor0
----
-1014
-6330
-7080

query I rowsort
SELECT ALL + col1 + + 18 - + col0 AS col1 FROM tab1 cor0
----
-19
-26
-62

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

query I rowsort
SELECT DISTINCT ( - col0 ) * + ( + + 26 ) AS col2 FROM tab0
----
-2262
-2522
-390

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - + col1 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT ( - 81 ) * col1 * - col0 + col2 FROM tab1
----
34484
346505
57930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT + - 61 * + - 34 + + + 9 - - CAST( + 60 AS SIGNED ) FROM tab1 AS cor0
----
2143
2143
2143

skipif mysql # not compatible
query I rowsort label-7896
SELECT + - 61 * + - 34 + + + 9 - - CAST ( + 60 AS INTEGER ) FROM tab1 AS cor0
----
2143
2143
2143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 55 / + col0 col2 FROM tab1 cor0 WHERE 71 BETWEEN + 64 AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 + - col0 col1 FROM tab2
----
-17
-6
12

query I rowsort
SELECT col1 - - - 16 FROM tab2
----
35
51
61

onlyif mysql # DIV for integer division: 
query II rowsort label-7900
SELECT DISTINCT + col1, - 58 - - - col0 + + col0 * 21 DIV + col2 FROM tab1
----
14
-98
47
-121
5
-113

skipif mysql # not compatible
query II rowsort label-7900
SELECT DISTINCT + col1, - 58 - - - col0 + + col0 * 21 / + col2 FROM tab1
----
14
-98
47
-121
5
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT MAX( DISTINCT + - 31 ) col1 FROM tab1 cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7901
SELECT DISTINCT MAX ( DISTINCT + - 31 ) col1 FROM tab1 cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7902
SELECT ALL + col1 DIV ( + - ( + CAST( - 59 AS SIGNED ) ) ) - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL + col1 / ( + - ( + CAST ( - 59 AS INTEGER ) ) ) - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL COUNT( DISTINCT 0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL COUNT ( DISTINCT 0 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + ( + 5 ) FROM tab2 cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT col2 DIV + 15 AS col1 FROM tab1 AS cor0
----
3
4
6

skipif mysql # not compatible
query I rowsort label-7905
SELECT col2 / + 15 AS col1 FROM tab1 AS cor0
----
3
4
6

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL MIN( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 93 AS col1, col2 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
93
1219
93
3144
93
3961

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> ( 83 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7911
SELECT CAST( NULL AS SIGNED ) * + ( + col2 ) col0, ( + + 84 ) AS col1 FROM tab2 AS cor0
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7911
SELECT CAST ( NULL AS INTEGER ) * + ( + col2 ) col0, ( + + 84 ) AS col1 FROM tab2 AS cor0
----
NULL
84
NULL
84
NULL
84

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

query I rowsort
SELECT col1 FROM tab2 WHERE NOT 31 BETWEEN - + col1 AND + + col1
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( NOT - ( - - col2 ) IS NOT NULL )
----
-51
-67
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT COUNT( * ) * + COUNT( * ) col1 FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND col1 - col2 * + col1 + - 67 * 15 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7916
SELECT COUNT ( * ) * + COUNT ( * ) col1 FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND col1 - col2 * + col1 + - 67 * 15 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7917
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) * + col1 + - - col2 )
----

skipif mysql # not compatible
query III rowsort label-7917
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * + col1 + - - col2 )
----

query I rowsort
SELECT ( col0 ) * + + 59 * 16 FROM tab2
----
43424
60416
70800

query II rowsort
SELECT + 25 AS col1, ( + + col2 ) AS col0 FROM tab1
----
25
59
25
68
25
96

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

query I rowsort
SELECT DISTINCT 76 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 71 * 93 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT COUNT( * ) FROM tab1 WHERE NOT + 97 BETWEEN + col2 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT COUNT ( * ) FROM tab1 WHERE NOT + 97 BETWEEN + col2 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + ( COUNT( * ) ) * MAX( ALL - col2 + 40 ) AS col0 FROM tab2 WHERE + col2 / + col0 + + ( + + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT + ( COUNT ( * ) ) * MAX ( ALL - col2 + 40 ) AS col0 FROM tab2 WHERE + col2 / + col0 + + ( + + col0 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # DIV for integer division: 
query II rowsort label-7926
SELECT + col2 DIV - 35, + col2 DIV + 18 AS col2 FROM tab2
----
-1
2
-1
3
0
1

skipif mysql # not compatible
query II rowsort label-7926
SELECT + col2 / - 35, + col2 / + 18 AS col2 FROM tab2
----
-1
2
-1
3
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + 11 AS col1 FROM tab1 AS cor0
----
16
25
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT 87 + COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7930
SELECT 87 + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7931
SELECT + col2 + + col0 + CAST( + - 12 AS SIGNED ) * + col0 AS col1, 56 + col2 FROM tab1 AS cor0
----
-465
152
-876
115
-933
124

skipif mysql # not compatible
query II rowsort label-7931
SELECT + col2 + + col0 + CAST ( + - 12 AS INTEGER ) * + col0 AS col1, 56 + col2 FROM tab1 AS cor0
----
-465
152
-876
115
-933
124

query I rowsort
SELECT col1 + ( + - col2 ) AS col0 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT DISTINCT col0 + - col0 * col1 + + ( - - ( - + 21 ) ) + - 17 DIV + col0 * col1 AS col2 FROM tab2
----
-2321
-4885
-4971

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT col0 + - col0 * col1 + + ( - - ( - + 21 ) ) + - 17 / + col0 * col1 AS col2 FROM tab2
----
-2321
-4885
-4971

query III rowsort
SELECT * FROM tab2 WHERE ( - 73 ) IN ( - col2, col0, - 59 )
----

query II rowsort
SELECT DISTINCT 99 AS col0, col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
99
10
99
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = ( NULL )
----

query I rowsort
SELECT ALL + col1 * - 15 - + col1 + + - col2 + + 56 + 88 FROM tab2
----
-1128
-695
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT - 57 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
513

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - 57 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
513

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE - 29 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7941
SELECT - 85 * + col2 + - ( - 89 ) + + CAST( NULL AS DECIMAL ) * 62 FROM tab0 AS cor0 WHERE NOT NULL < col0 / - col1 + 46
----

skipif mysql # not compatible
query I rowsort label-7941
SELECT - 85 * + col2 + - ( - 89 ) + + CAST ( NULL AS REAL ) * 62 FROM tab0 AS cor0 WHERE NOT NULL < col0 / - col1 + 46
----

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

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

query I rowsort
SELECT + - col0 * 53 AS col0 FROM tab0 AS cor0
----
-4611
-5141
-795

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7944
SELECT - COUNT ( - + col0 ) * + 32 col0 FROM tab0 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col2 FROM tab0 cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT COUNT( * ) * - 9 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-7946
SELECT COUNT ( * ) * - 9 FROM tab0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT ( 65 ) DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT ( 65 ) / - col1 FROM tab2
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL + - COUNT( * ) + + - 79 col1 FROM tab1 WHERE - + 54 <> col1
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7949
SELECT ALL + - COUNT ( * ) + + - 79 col1 FROM tab1 WHERE - + 54 <> col1
----
-82

query II rowsort
SELECT DISTINCT 99 AS col1, + 69 + + - 66 AS col0 FROM tab2
----
99
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - 45 / - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7951
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - 45 / - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col1 - - col1 + - 5 AS col0 FROM tab0 WHERE 6 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ALL - col1 * - + 77 + + ( + - col2 ) + col0 * - 50 * col2 FROM tab0 AS cor0
----
-29060
-41893
-480172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7955
SELECT + SUM( DISTINCT 41 ) AS col2, + CAST( - SUM( DISTINCT - + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
41
223

skipif mysql # not compatible
query II rowsort label-7955
SELECT + SUM ( DISTINCT 41 ) AS col2, + CAST ( - SUM ( DISTINCT - + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
41
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT 27 AS col2, col2 FROM tab0 AS cor0
----
27
10
27
47
27
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 * - col2 ) IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 * + col1 col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT 23 FROM tab1, tab0 cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT + SUM( + col0 ) AS col1 FROM tab2 WHERE + CAST( col1 AS SIGNED ) IS NOT NULL
----
185

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT + SUM ( + col0 ) AS col1 FROM tab2 WHERE + CAST ( col1 AS INTEGER ) IS NOT NULL
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL + MIN( col2 ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7963
SELECT ALL + MIN ( col2 ) col0 FROM tab1
----
59

query I rowsort
SELECT - col2 + - + col2 * - col1 * + 34 AS col0 FROM tab1
----
108596
45600
9971

query I rowsort
SELECT + col2 + ( col1 ) + ( - + col2 ) + + 14 * + ( + 70 ) AS col0 FROM tab1
----
1027
985
994

query I rowsort
SELECT DISTINCT col0 - + + col0 FROM tab0
----
0

query I rowsort
SELECT - ( - col1 ) + - 61 AS col1 FROM tab1 AS cor0
----
-14
-47
-56

query I rowsort
SELECT + 80 + col1 + col0 FROM tab2 AS cor0
----
177
221
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT - MAX( + - 11 ) FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-7969
SELECT - MAX ( + - 11 ) FROM tab2 cor0
----
11

query I rowsort
SELECT ALL ( 84 ) FROM tab0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col2, + col0 col1 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT - - 61 * + ( - MIN( ALL - - 49 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2989

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - - 61 * + ( - MIN ( ALL - - 49 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2989

onlyif mysql # aggregate syntax: 
query II rowsort label-7973
SELECT COUNT( * ) AS col1, + 2 AS col1 FROM tab0
----
3
2

skipif mysql # not compatible
query II rowsort label-7973
SELECT COUNT ( * ) AS col1, + 2 AS col1 FROM tab0
----
3
2

query I rowsort
SELECT ALL + col2 * + col0 * + col1 * 66 AS col2 FROM tab0 AS cor0
----
1205820
3768930
633798

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT ALL + 40 DIV - + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL + 40 / - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 38 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7977
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 38 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 11 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
110
21
58

query II rowsort
SELECT - col0 * - 44, col1 AS col1 FROM tab2
----
2024
51
2816
77
3300
67

query I rowsort
SELECT ALL + 42 * - 43 * col2 AS col0 FROM tab0
----
-178794
-18060
-84882

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7981
SELECT + 57 * - 56, col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-3192
NULL
-3192
NULL
-3192
NULL

skipif mysql # not compatible
query II rowsort label-7981
SELECT + 57 * - 56, col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-3192
NULL
-3192
NULL
-3192
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * - - col2 AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + - 67 = + col0
----
-3

skipif mysql # not compatible
query I rowsort label-7983
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + - 67 = + col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * col1 / col0 * - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL COUNT ( + 12 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7987
SELECT 4 + CAST( - col1 AS SIGNED ), + col2 FROM tab0
----
-17
10
-77
47
3
99

skipif mysql # not compatible
query II rowsort label-7987
SELECT 4 + CAST ( - col1 AS INTEGER ), + col2 FROM tab0
----
-17
10
-77
47
3
99

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= NULL
----

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN - ( - 56 ) AND ( - 60 ) * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 86 * - col1 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 * - - col2 * - col0 * col2 - + col0 FROM tab0
----
-1557360
-87087
-94119100

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + 31 + ( + - col2 ) + + - col2 / + - col2, - col2, col2 * - col0 )
----

query I rowsort
SELECT ALL + col1 * - - col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT SUM( - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7998
SELECT SUM ( - - col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + 75 - - 39 + + + col2 * - + col0 FROM tab1
----
-4782
-4901
-6074

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT DISTINCT col0 - col0 DIV + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT col0 - col0 / + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
50
84
90

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT - COUNT( * ) * - 86 AS col1 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8004
SELECT - COUNT ( * ) * - 86 AS col1 FROM tab2 AS cor0
----
258

query II rowsort
SELECT - 32 AS col2, 91 FROM tab1 AS cor0
----
-32
91
-32
91
-32
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col0 / col2
----

query II rowsort
SELECT col1, - col1 FROM tab1 cor0 WHERE NOT 8 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT ALL + + ( - col2 ) * 37 DIV + col2 AS col1 FROM tab1 AS cor0 WHERE - col0 + - col2 IS NOT NULL
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + + ( - col2 ) * 37 / + col2 AS col1 FROM tab1 AS cor0 WHERE - col0 + - col2 IS NOT NULL
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT DISTINCT - + col2 * - ( 99 ) + col0 DIV - - col2 AS col2 FROM tab0 AS cor0 WHERE + 5 * - col1 IS NOT NULL
----
4653
9801
998

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - + col2 * - ( 99 ) + col0 / - - col2 AS col2 FROM tab0 AS cor0 WHERE + 5 * - col1 IS NOT NULL
----
4653
9801
998

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT + - MIN( ALL - 54 ) AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + - MIN ( ALL - 54 ) AS col0 FROM tab0 AS cor0
----
54

query I rowsort
SELECT - col0 * + 96 FROM tab0
----
-1440
-8352
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8013
SELECT DISTINCT - COUNT( * ) * + SUM( DISTINCT + col2 ) AS col1, + ( CAST( NULL AS SIGNED ) ) + - + ( 93 ) AS col1 FROM tab2
----
-363
NULL

skipif mysql # not compatible
query II rowsort label-8013
SELECT DISTINCT - COUNT ( * ) * + SUM ( DISTINCT + col2 ) AS col1, + ( CAST ( NULL AS INTEGER ) ) + - + ( 93 ) AS col1 FROM tab2
----
-363
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + MAX( + col1 ) * + + COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-8014
SELECT + MAX ( + col1 ) * + + COUNT ( * ) FROM tab0
----
243

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8015
SELECT DISTINCT + col1, 54 / + CAST( NULL AS DECIMAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8015
SELECT DISTINCT + col1, 54 / + CAST ( NULL AS REAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT - col0 * col1 DIV 21 FROM tab1
----
-20
-203
-34

skipif mysql # not compatible
query I rowsort label-8016
SELECT - col0 * col1 / 21 FROM tab1
----
-20
-203
-34

query II rowsort
SELECT DISTINCT col1, col1 FROM tab0 WHERE col2 + + col1 NOT BETWEEN + 36 AND NULL
----
21
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + 35 * - 18
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + 73 * - + 91 * - COUNT( ALL col2 ) FROM tab0
----
19929

skipif mysql # not compatible
query I rowsort label-8021
SELECT + 73 * - + 91 * - COUNT ( ALL col2 ) FROM tab0
----
19929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT + 86 / 60 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT + 86 / 60 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT DISTINCT CAST( - + MAX( + 77 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-77

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT CAST ( - + MAX ( + 77 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + + 74 <= + col0 * - + col2 + + 86 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT DISTINCT + COUNT( * ) + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT + COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT + COUNT( * ) DIV - ( + - 62 ) * - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT + COUNT ( * ) / - ( + - 62 ) * - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8027
SELECT + 5 * + MIN( - col2 ) + + + CAST( + 41 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + CAST( NULL AS DECIMAL ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT + 5 * + MIN ( - col2 ) + + + CAST ( + 41 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + CAST ( NULL AS REAL ) IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + COUNT( * ) - 86 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8028
SELECT + COUNT ( * ) - 86 FROM tab0 AS cor0
----
-83

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

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

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

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

query I rowsort
SELECT DISTINCT 93 + - - 3 * - col1 FROM tab2
----
-108
-138
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - + MAX( + col0 ) FROM tab1 WHERE - - col1 >= + 69 * col1 - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT - + MAX ( + col0 ) FROM tab1 WHERE - - col1 >= + 69 * col1 - + 30
----
NULL

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

query I rowsort
SELECT - + col2 * + 5 * + + ( - + 41 ) FROM tab1 AS cor0
----
12095
13940
19680

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT + 19 * + col0 DIV + col0 + - 24 * - + col0 AS col1 FROM tab2 AS cor0
----
1123
1555
1819

skipif mysql # not compatible
query I rowsort label-8035
SELECT + 19 * + col0 / + col0 + - 24 * - + col0 AS col1 FROM tab2 AS cor0
----
1123
1555
1819

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 55 / - - 27 * - - ( - - col2 ) + 70 + - col2 * - - col1 - + 70 < ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT + COUNT( - 37 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + COUNT ( - 37 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 57 col1, col0 * + - ( - + col1 ) - + col0 FROM tab2 AS cor0
----
57
2300
57
4864
57
4950

query I rowsort
SELECT DISTINCT - + col2 + + + 69 AS col0 FROM tab1 AS cor0
----
-27
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8040
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8040
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 + - 13 - col0 AS col0, - ( col0 ) FROM tab0
----
-11
-97
-90
-87
19
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT 26 > - col1 * - 84 * - col2
----

query I rowsort
SELECT col0 + 54 * + col2 + - - 56 AS col0 FROM tab1
----
3327
3819
5291

query I rowsort
SELECT col1 * + - col2 * col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT COUNT( * ) * + + 10 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-8045
SELECT COUNT ( * ) * + + 10 FROM tab2
----
30

query I rowsort
SELECT AVG ( ALL - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL - col2 + - + col2 AS col2 FROM tab2 cor0
----
-116
-46
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col2 ) - - - ( + 44 ) col1 FROM tab1
----
15
24
52

query I rowsort
SELECT - 63 + 62 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 89 FROM tab2 WHERE NOT - 36 NOT IN ( - col0 * + - col2, col1 )
----

query I rowsort
SELECT DISTINCT - 82 - + 48 AS col1 FROM tab0
----
-130

query I rowsort
SELECT DISTINCT + - ( - - ( - col1 ) ) FROM tab2 WHERE NOT 60 <> + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 - - - 40 / col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 83 FROM tab2 AS cor0 WHERE NOT 18 - - + 41 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col1, - col1 * + ( + col2 ) + + + col1 + + col1 FROM tab0 AS cor0
----
15
-3645
87
-168
97
-97

query I rowsort
SELECT DISTINCT + + ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - ( + - ( - - col2 ) ) FROM tab0
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - COUNT( 42 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8060
SELECT - COUNT ( 42 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - + col0 + 93 AS col0 FROM tab1 WHERE ( col1 * + 50 + - - 20 + col1 ) < 42
----

query I rowsort
SELECT ALL col1 * - 72 FROM tab0 AS cor0
----
-1512
-5832
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT - ( - 92 ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-8064
SELECT - ( - 92 ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
92
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT + SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT + SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 86 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND + col0
----

query I rowsort
SELECT 54 * + col1 FROM tab2
----
2754
3618
4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8068
SELECT - + COUNT( * ) FROM tab2 WHERE NOT + 97 * + + col1 - - + 13 + - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) + - col2 + + 19 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8068
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT + 97 * + + col1 - - + 13 + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) + - col2 + + 19 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT SUM( + col1 ) col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8069
SELECT DISTINCT SUM ( + col1 ) col2 FROM tab1 cor0
----
66

query I rowsort
SELECT DISTINCT - 53 + - ( - col2 ) FROM tab2 cor0
----
-13
-30
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + - col1 col2 FROM tab1 AS cor0
----
-108
-141
-99

query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
240
7656
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL - 5 * + COUNT( * ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - 5 * + COUNT ( * ) FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL - ( 6 ) AS col0 FROM tab0 AS cor0 WHERE + 86 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + + - 39 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL - MAX( + 16 ) AS col2 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - MAX ( + 16 ) AS col2 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT col0 * CAST( + ( 93 ) AS SIGNED ) * - col0 col1 FROM tab0
----
-20925
-703917
-875037

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8077
SELECT col0 * CAST ( + ( 93 ) AS INTEGER ) * - col0 col1 FROM tab0
----
-20925
-703917
-875037

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT col2 + - col1 DIV col2 * - - col2 + - col1 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-8079
SELECT col2 + - col1 / col2 * - - col2 + - col1 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 5 ) <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL - 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND - + col2
----

query I rowsort
SELECT 39 - + 48 AS col1 FROM tab2 cor0
----
-9
-9
-9

query I rowsort
SELECT 28 - - 61 AS col1 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT - - 20 - - 64 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - 40 * + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT ALL 6 DIV - 8 - col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL 6 / - 8 - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 44 * + - 99 FROM tab0 AS cor0
----
-4356

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - 15 * - - ( - MIN( DISTINCT - col0 ) ) FROM tab2 cor0
----
-1125

skipif mysql # not compatible
query I rowsort label-8090
SELECT - 15 * - - ( - MIN ( DISTINCT - col0 ) ) FROM tab2 cor0
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * ( + 59 ) IN ( + 54 * - 26 * col1 * + + 3, 74 * - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8091
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * ( + 59 ) IN ( + 54 * - 26 * col1 * + + 3, 74 * - col0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT MIN( DISTINCT - - col0 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( + col1 * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT MIN ( DISTINCT - - col0 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( + col1 * - col1 )
----
NULL

query I rowsort
SELECT + + col0 + + - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-66
66
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( + 81 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8095
SELECT ALL - COUNT( * ) DIV + MAX( DISTINCT col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - COUNT ( * ) / + MAX ( DISTINCT col2 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 - - - 94 * - 72 - + - col1 + 35 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 37 * - 12 AS col0 FROM tab2
----
444

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL + COUNT( - ( 17 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + COUNT ( - ( 17 ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL - SUM( + + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - SUM ( + + col0 ) AS col1 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, 26 * + col2 + + col1 FROM tab0
----
1
2575
21
281
81
1303

onlyif mysql # aggregate syntax: 
query II rowsort label-8101
SELECT + 97, ( - + COUNT( * ) ) AS col0 FROM tab2
----
97
-3

skipif mysql # not compatible
query II rowsort label-8101
SELECT + 97, ( - + COUNT ( * ) ) AS col0 FROM tab2
----
97
-3

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NOT - 72 NOT BETWEEN NULL AND + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT DISTINCT + col1 * col1 DIV + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + col1 * col1 / + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT ALL 86 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL 86 / - col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT ALL + 12 / 57 FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) * - + col0 + col0 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + 12 / 57 FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) * - + col0 + col0 < CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + col2, col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + + col0 + - col1 FROM tab2 WHERE NOT + - col2 IS NULL
----
-13
-5
8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT ALL - 77 DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - 77 / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8111
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + 15 + + CAST( NULL AS SIGNED ) > + col0
----

skipif mysql # not compatible
query III rowsort label-8111
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + 15 + + CAST ( NULL AS INTEGER ) > + col0
----

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

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

query I rowsort
SELECT ALL - 96 + + col2 AS col2 FROM tab0 AS cor0
----
-49
-86
3

query II rowsort
SELECT + 31 + - - 21 AS col0, col0 AS col1 FROM tab1 cor0
----
52
51
52
85
52
91

query II rowsort
SELECT DISTINCT - col2, col0 * - col0 / - - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + 1 FROM tab0
----
-20
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT CAST( + ( + col0 ) AS SIGNED ) + + col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-8117
SELECT CAST ( + ( + col0 ) AS INTEGER ) + + col1 FROM tab0
----
108
96
98

query I rowsort
SELECT col2 * + col2 * + 77 AS col0 FROM tab1
----
268037
356048
709632

query I rowsort
SELECT - 36 * col0 AS col1 FROM tab2
----
-1656
-2304
-2700

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT DISTINCT + ( col2 ) DIV + col2 + + col1 - - col2 FROM tab1 AS cor0
----
111
116
65

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + ( col2 ) / + col2 + + col1 - - col2 FROM tab1 AS cor0
----
111
116
65

query I rowsort
SELECT + + 88 - + col1 AS col1 FROM tab1 AS cor0
----
41
74
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( 87 ) + - 68 + + col1 + - ( + col1 ) col1 FROM tab0 AS cor0
----
1759
19
6979

query I rowsort
SELECT DISTINCT - + col0 - - col2 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT col0 - - + CAST( - col1 AS SIGNED ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-8125
SELECT col0 - - + CAST ( - col1 AS INTEGER ) FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 21 * - + 74 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL - CAST( - 46 AS SIGNED ) - + + col1 FROM tab0
----
-35
25
45

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - CAST ( - 46 AS INTEGER ) - + + col1 FROM tab0
----
-35
25
45

query I rowsort
SELECT DISTINCT - + col2 * + + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - col0 * + col0 col0 FROM tab2 cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT COUNT( * ) * - MAX( DISTINCT - col1 ) * - COUNT( * ) AS col0, 81 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-459
78

skipif mysql # not compatible
query II rowsort label-8130
SELECT COUNT ( * ) * - MAX ( DISTINCT - col1 ) * - COUNT ( * ) AS col0, 81 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-459
78

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

query II rowsort
SELECT - col0 AS col1, + ( - 15 ) - + col2 FROM tab0 AS cor0
----
-15
-62
-87
-25
-97
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT ALL + 20 - - - COUNT( * ) FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col0 > col0 + - - col1 + col0 + - col1 * - + col2 * col2
----
20

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + 20 - - - COUNT ( * ) FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 > col0 + - - col1 + col0 + - col1 * - + col2 * col2
----
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 + - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + col0 * ( + col0 ) FROM tab2 cor0
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT ( - + 80 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( - + 89 AS SIGNED ) * + 11 - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8136
SELECT ( - + 80 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( - + 89 AS INTEGER ) * + 11 - + col1 AND NULL
----

query I rowsort
SELECT 68 * + - 72 FROM tab0 AS cor0
----
-4896
-4896
-4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8138
SELECT - 55 DIV MAX( + 95 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT - 55 / MAX ( + 95 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8139
SELECT - COUNT( * ) DIV - + MAX( DISTINCT + 79 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT - COUNT ( * ) / - + MAX ( DISTINCT + 79 ) FROM tab0
----
0

query I rowsort
SELECT + 72 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT COUNT( * ) * + + COUNT( DISTINCT - + 38 ) + + 23 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT COUNT ( * ) * + + COUNT ( DISTINCT - + 38 ) + + 23 FROM tab1 cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 5 IS NOT NULL
----

query II rowsort
SELECT col1, - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT COUNT( * ) + - 45 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-8144
SELECT COUNT ( * ) + - 45 FROM tab1
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8145
SELECT - 27 DIV CAST( + + col0 AS SIGNED ) + - + col1 + + 64 FROM tab2
----
-13
-3
13

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 27 / CAST ( + + col0 AS INTEGER ) + - + col1 + + 64 FROM tab2
----
-13
-3
13

query II rowsort
SELECT col1, - col2 + 52 AS col0 FROM tab1
----
14
-44
47
-16
5
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT + col1 DIV - 28 + - ( + 45 ) AS col2 FROM tab0 AS cor0
----
-45
-45
-47

skipif mysql # not compatible
query I rowsort label-8147
SELECT + col1 / - 28 + - ( + 45 ) AS col2 FROM tab0 AS cor0
----
-45
-45
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + MIN( + - 20 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR - 17 <> - col0
----
-20

skipif mysql # not compatible
query I rowsort label-8148
SELECT + MIN ( + - 20 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR - 17 <> - col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL + 58 * - - COUNT( * ) + - COUNT( * ) * + ( - COUNT( ALL - - 59 ) ) AS col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + 58 * - - COUNT ( * ) + - COUNT ( * ) * + ( - COUNT ( ALL - - 59 ) ) AS col2 FROM tab0 AS cor0
----
183

query II rowsort
SELECT ALL ( - 60 ), col0 * + - 99 AS col2 FROM tab1
----
-60
-5049
-60
-8415
-60
-9009

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

skipif mysql # not compatible
query I rowsort label-8151
SELECT + CAST ( NULL AS INTEGER ) * col1 - 61 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + MAX( DISTINCT + - col2 ) + 73 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8152
SELECT + MAX ( DISTINCT + - col2 ) + 73 FROM tab0
----
63

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

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

query I rowsort
SELECT ALL col0 * 68 + 21 + - + 82 FROM tab1 AS cor0
----
3407
5719
6127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8155
SELECT 52 AS col0, 67 DIV + MAX( DISTINCT - + 87 ) AS col1 FROM tab2
----
52
0

skipif mysql # not compatible
query II rowsort label-8155
SELECT 52 AS col0, 67 / + MAX ( DISTINCT - + 87 ) AS col1 FROM tab2
----
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT 87 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT 87 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
261

query I rowsort
SELECT ALL + 65 * 34 AS col0 FROM tab2 AS cor0
----
2210
2210
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL ( + - SUM( ALL + - col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL ( + - SUM ( ALL + - col2 ) ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT + col1 * col1 * + - col0 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

query II rowsort
SELECT col0, + col0 * - - col0 AS col0 FROM tab1 cor0
----
51
2601
85
7225
91
8281

query I rowsort
SELECT ( - + 13 ) * + - 61 + + ( - 73 ) * + 48 * + col2 FROM tab2 AS cor0
----
-139367
-202439
-79799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 40 col0, col1 FROM tab0
----
40
1
40
21
40
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( col2 * - col2 NOT BETWEEN NULL AND col2 + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( col2 * - col2 NOT BETWEEN NULL AND col2 + 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL - 42 * - MIN( + - col0 ) FROM tab1
----
-3822

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - 42 * - MIN ( + - col0 ) FROM tab1
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT COUNT( * ) * SUM( - col2 ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-8165
SELECT COUNT ( * ) * SUM ( - col2 ) FROM tab2
----
-363

query I rowsort
SELECT ALL col2 * + + 18 FROM tab0
----
1782
180
846

query II rowsort
SELECT DISTINCT - - col2 AS col1, - 19 FROM tab2 AS cor0
----
23
-19
40
-19
58
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT DISTINCT 11 DIV col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT 11 / col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT ALL - 32 DIV - + col1 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - 32 / - + col1 FROM tab1 AS cor0
----
0
2
6

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

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL MIN( - 47 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-47

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL MIN ( - 47 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT COUNT( * ) + - 26 - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8173
SELECT COUNT ( * ) + - 26 - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-26

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( - col1 * col0 * - 11 )
----

query I rowsort
SELECT ALL 96 - 86 * - 56 + - 51 * - col1 * - 6 AS col2 FROM tab1
----
-9470
3382
628

query II rowsort
SELECT - 45 * - col1 * - col0, col1 FROM tab0
----
-4365
1
-54675
81
-82215
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 11 * - col0 FROM tab1
----
1001
561
935

query II rowsort
SELECT ALL col0, - col0 AS col1 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT DISTINCT col2 - - + 97 AS col2 FROM tab0
----
107
144
196

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8182
SELECT COUNT( * ) DIV 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8182
SELECT COUNT ( * ) / 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + - 57 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT - COUNT( DISTINCT - - 22 ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT - COUNT ( DISTINCT - - 22 ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-1

query I rowsort
SELECT - col2 * + col2 * - 68 * col2 + + - 39 AS col2 FROM tab1 AS cor0
----
13965733
21381337
60162009

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8186
SELECT - - CAST( col0 AS SIGNED ), col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-8186
SELECT - - CAST ( col0 AS INTEGER ), col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + - 18 * - 47 + - + col1 FROM tab1 AS cor0
----
799
832
841

query I rowsort
SELECT - col1 * 63 FROM tab0
----
-1323
-5103
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8189
SELECT CAST( - MIN( DISTINCT + - col0 ) AS SIGNED ) DIV - COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-8189
SELECT CAST ( - MIN ( DISTINCT + - col0 ) AS INTEGER ) / - COUNT ( * ) FROM tab0
----
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - - col1 / 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - COUNT( ALL - - col2 ) AS col1 FROM tab2 WHERE NOT 8 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT - COUNT ( ALL - - col2 ) AS col1 FROM tab2 WHERE NOT 8 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT - col1 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8192
SELECT - col1 / - + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT COUNT( * ) + 30 col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8194
SELECT COUNT ( * ) + 30 col2 FROM tab2 AS cor0
----
33

query III rowsort
SELECT * FROM tab0 cor0 WHERE 64 NOT BETWEEN - col2 * col1 AND - - 93
----

query I rowsort
SELECT ALL - col2 * + - 58 FROM tab0 AS cor0
----
2726
5742
580

query I rowsort
SELECT ALL 66 AS col0 FROM tab2 AS cor0 WHERE NOT + 93 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT - col2 * 52 * + 26 AS col0 FROM tab0 AS cor0
----
-133848
-13520
-63544

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT - col1 DIV col1 + - col0 col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8200
SELECT - col1 / col1 + - col0 col2 FROM tab0 AS cor0
----
-16
-88
-98

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

query I rowsort
SELECT - - 11 - + - 68 AS col1 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT - - 96 - COUNT( * ) AS col2, COUNT( + 88 ) FROM tab1 AS cor0
----
93
3

skipif mysql # not compatible
query II rowsort label-8203
SELECT - - 96 - COUNT ( * ) AS col2, COUNT ( + 88 ) FROM tab1 AS cor0
----
93
3

query II rowsort
SELECT ALL + - 82, + 58 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 63 + + col0 FROM tab1
----
114
148
154

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8207
SELECT 78 + + col0 * col1 AS col0, col0 DIV col2 col2 FROM tab1
----
4355
1
503
1
792
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8207
SELECT 78 + + col0 * col1 AS col0, col0 / col2 col2 FROM tab1
----
4355
1
503
1
792
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 / - 30 * col0 AS col1, + col1 * - 47 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT DISTINCT - + MAX( + + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - + MAX ( + + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT 9 DIV ( + - col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT 9 / ( + - col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT COUNT( + - 18 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8211
SELECT COUNT ( + - 18 ) AS col0 FROM tab0
----
3

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

query I rowsort
SELECT - + 95 AS col2 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT + - col2 * + col0 + col2 - + - 98 + + col0 FROM tab1 AS cor0
----
-4651
-4773
-5931

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE - col1 <> + col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT MIN( DISTINCT + 13 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT MIN ( DISTINCT + 13 ) AS col1 FROM tab0 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 col1 FROM tab0 AS cor0 WHERE NOT + 73 + - col0 < 95
----

query I rowsort
SELECT 44 + - 52 + + col2 AS col0 FROM tab1
----
51
60
88

query I rowsort
SELECT 51 + + - col1 + col1 + - col1 * + col1 * - 52 FROM tab0
----
103
22983
341223

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL COUNT( * ) * - MAX( ALL - col1 ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL COUNT ( * ) * - MAX ( ALL - col1 ) AS col1 FROM tab1
----
15

query I rowsort
SELECT - 26 * - 80 AS col0 FROM tab2
----
2080
2080
2080

query I rowsort
SELECT + ( + - col1 ) FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT - 30 + + 57 AS col2 FROM tab0
----
27
27
27

query I rowsort
SELECT + ( col1 ) + - + col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT - - 87 + col0 AS col0 FROM tab1 AS cor0
----
138
172
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT ALL - CAST( + + col1 AS SIGNED ) * - col1 FROM tab1 AS cor0 WHERE NOT 98 = NULL
----

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - CAST ( + + col1 AS INTEGER ) * - col1 FROM tab1 AS cor0 WHERE NOT 98 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 + - ( - col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT + 59 + - col2 AS col0 FROM tab0 AS cor0
----
-40
12
49

query II rowsort
SELECT + col2, - ( 39 ) FROM tab0
----
10
-39
47
-39
99
-39

query I rowsort
SELECT DISTINCT 36 - + 18 + 50 * - col2 * + - col2 AS col1 FROM tab0
----
110468
490068
5018

query I rowsort
SELECT col0 FROM tab0 WHERE - col1 * - 94 IS NULL AND NULL <> ( col0 / - 57 )
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + + - col2 * - - 30 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL col0 * - + CAST( - 45 AS SIGNED ) - + - col1 FROM tab0 cor0
----
3936
4366
756

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL col0 * - + CAST ( - 45 AS INTEGER ) - + - col1 FROM tab0 cor0
----
3936
4366
756

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

query I rowsort
SELECT - 49 + + 78 / - 1 FROM tab1 AS cor0 WHERE NOT ( NOT 75 >= + col0 * - - col1 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col0 / 53 / 92 * - 36 + - col2 IS NULL ) )
----
51
85
91

query I rowsort
SELECT DISTINCT + 79 * - col2 FROM tab2 AS cor0
----
-1817
-3160
-4582

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT ALL + 0 DIV + - col1 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + 0 / + - col1 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + MIN( - 79 ) FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8240
SELECT + MIN ( - 79 ) FROM tab0 cor0
----
-79

query I rowsort
SELECT + ( - - col2 ) * - 15 - - + col1 FROM tab0
----
-129
-1484
-624

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8243
SELECT DISTINCT - SUM( 20 ) AS col2, 35 AS col1 FROM tab2
----
-60
35

skipif mysql # not compatible
query II rowsort label-8243
SELECT DISTINCT - SUM ( 20 ) AS col2, 35 AS col1 FROM tab2
----
-60
35

query I rowsort
SELECT DISTINCT - 76 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - COUNT( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8245
SELECT - COUNT ( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query II rowsort
SELECT + - col2 AS col0, col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + 73 = + col0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 76 + + + col2 BETWEEN 26 AND + 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( ( col1 ), col2 )
----

query I rowsort
SELECT ALL - - col1 + + - col0 * + + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT DISTINCT - 10 AS col2, COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
3

skipif mysql # not compatible
query II rowsort label-8250
SELECT DISTINCT - 10 AS col2, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT - 16 + SUM( - + 83 ) FROM tab2 AS cor0
----
-265

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT - 16 + SUM ( - + 83 ) FROM tab2 AS cor0
----
-265

query I rowsort
SELECT - ( 51 ) FROM tab1 AS cor0
----
-51
-51
-51

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

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

query I rowsort
SELECT + + ( - col1 ) + - col1 + + 67 * - col2 AS col1 FROM tab0 AS cor0
----
-3311
-6635
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * col2 col0 FROM tab2
----
1127
1960
2842

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

query I rowsort
SELECT ALL - 46 * + col2 + + 8 AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
-2706
-3120
-4408

query I rowsort
SELECT + col2 + - 17 AS col2 FROM tab2
----
23
41
6

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * col1 + + 68 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( 24 ) + col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8263
SELECT - MIN( - col1 ) AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( col0 * CAST( NULL AS DECIMAL ) + 96 * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT - MIN ( - col1 ) AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( col0 * CAST ( NULL AS REAL ) + 96 * - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT - ( - MAX( DISTINCT - col1 ) ) * 99 AS col1 FROM tab1
----
-495

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT - ( - MAX ( DISTINCT - col1 ) ) * 99 AS col1 FROM tab1
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - ( + MIN( DISTINCT ( - ( col0 ) ) ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8265
SELECT - ( + MIN ( DISTINCT ( - ( col0 ) ) ) ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT + col1 DIV + 4 AS col0 FROM tab2
----
12
16
19

skipif mysql # not compatible
query I rowsort label-8266
SELECT + col1 / + 4 AS col0 FROM tab2
----
12
16
19

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT ALL col0 * 93 + col2 * - col2 AS col0 FROM tab0
----
-780
-814
7991

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

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

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

query I rowsort
SELECT + 10 FROM tab2 WHERE NOT + 0 / 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT + COUNT( * ) DIV COUNT( ALL + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT + COUNT ( * ) / COUNT ( ALL + col1 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT 73 DIV - 80 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT 73 / - 80 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL + col1 + col0 * + col0 AS col0 FROM tab1
----
2615
7230
8328

query I rowsort
SELECT 85 * - col0 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT DISTINCT + ( 7 ) DIV col1 + + 90 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + ( 7 ) / col1 + + 90 FROM tab2
----
90

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 69 * - col1
----

query I rowsort
SELECT + 55 AS col1 FROM tab1 WHERE NOT ( col2 ) > ( col0 )
----
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8280
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col2 + col0 ) AND 1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8280
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col2 + col0 ) AND 1 * - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT - 1 - + 45 * col2 AS col0 FROM tab1
----
-2656
-3061
-4321

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( - col0 )
----

query I rowsort
SELECT + 54 FROM tab2 WHERE NOT col2 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + 70 + col1 * col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1243
3150
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL MAX( col0 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL MAX ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

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

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

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

query I rowsort
SELECT ALL + 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL + 64 FROM tab0 WHERE NOT + 34 * col2 NOT IN ( + col2 + - col0 )
----

query I rowsort
SELECT ( - ( + 50 ) ) / 66 - col2 * 75 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT 39 * 75 AS col1 FROM tab0
----
2925
2925
2925

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL - ( - SUM( + 88 ) ) + ( - MIN( ALL + col1 ) ) FROM tab1 AS cor0
----
259

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - ( - SUM ( + 88 ) ) + ( - MIN ( ALL + col1 ) ) FROM tab1 AS cor0
----
259

query I rowsort
SELECT col2 + 6 AS col1 FROM tab1 AS cor0
----
102
65
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT ALL - + col0 DIV + 51 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL - + col0 / + 51 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 61 + 90 col1 FROM tab1 cor0
----
-215
-2777
-764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 * - 65 + + ( - col1 - - col2 ) * 87 col0 FROM tab0 AS cor0
----
-1203
10281
798

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT col0 + col1 DIV - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8302
SELECT col0 + col1 / - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col1 OR NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 + 40 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT MIN( DISTINCT + - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8305
SELECT MIN ( DISTINCT + - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT ALL - 70 * 29 DIV - 19 AS col2 FROM tab0
----
106
106
106

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - 70 * 29 / - 19 AS col2 FROM tab0
----
106
106
106

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT - 52 DIV - 51 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8307
SELECT - 52 / - 51 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8308
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 + + 0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 + + 0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

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

query I rowsort
SELECT DISTINCT - col2 + + + col1 * + col1 FROM tab1 cor0
----
-34
100
2141

query I rowsort
SELECT ALL 65 * 87 FROM tab1, tab0 cor0
----
9 values hashing to 9307210e658b042dd51d99f0d65bd693

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 / 4 < ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8317
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 > CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 > CAST ( NULL AS REAL )
----
0

query II rowsort
SELECT 91 AS col2, + col0 FROM tab0 cor0
----
91
15
91
87
91
97

query I rowsort
SELECT + - col1 * + col1 + - + col2 * - col1 FROM tab1 AS cor0
----
1148
270
987

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT col1 DIV - - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT col1 / - - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT + 58 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT + 58 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - COUNT( * ) * - 39 * + MIN( - + ( 41 ) ) col0 FROM tab2
----
-4797

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8322
SELECT - COUNT ( * ) * - 39 * + MIN ( - + ( 41 ) ) col0 FROM tab2
----
-4797

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / + 81 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + MIN( DISTINCT - + col2 ) * + 18 * - MIN( DISTINCT - 82 ) - + COUNT( * ) * 31 AS col2 FROM tab2
----
-85701

skipif mysql # not compatible
query I rowsort label-8324
SELECT + MIN ( DISTINCT - + col2 ) * + 18 * - MIN ( DISTINCT - 82 ) - + COUNT ( * ) * 31 AS col2 FROM tab2
----
-85701

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT 76 - COUNT( * ) * 10 FROM tab1 WHERE ( col0 * - col1 * ( - col0 ) ) NOT BETWEEN - 52 AND NULL AND NULL IS NOT NULL
----
76

skipif mysql # not compatible
query I rowsort label-8325
SELECT 76 - COUNT ( * ) * 10 FROM tab1 WHERE ( col0 * - col1 * ( - col0 ) ) NOT BETWEEN - 52 AND NULL AND NULL IS NOT NULL
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-8326
SELECT 22 DIV - col1, col2 * col1 * col1 col2 FROM tab2
----
0
237160
0
260362
0
59823

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8326
SELECT 22 / - col1, col2 * col1 * col1 col2 FROM tab2
----
0
237160
0
260362
0
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT COUNT( ALL + + ( + - col0 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8327
SELECT COUNT ( ALL + + ( + - col0 ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT - ( + SUM( ALL 27 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - ( + SUM ( ALL 27 ) ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT 91 FROM tab1 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND - 90
----

skipif mysql # not compatible
query I rowsort label-8329
SELECT 91 FROM tab1 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8330
SELECT DISTINCT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8330
SELECT DISTINCT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 - - - col2 )
----

query I rowsort
SELECT DISTINCT 4 * + 99 * - 84 AS col0 FROM tab0 AS cor0
----
-33264

query II rowsort
SELECT ALL - 94 * - col1 AS col0, + col2 * + col0 + - 87 FROM tab1 AS cor0
----
1316
4809
4418
6101
470
4928

query I rowsort
SELECT DISTINCT col2 * - 5 FROM tab2 AS cor0 WHERE ( col0 * col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( 38 ) >= - col0
----
3

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( 38 ) >= - col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 65 + + - col2 IN ( + + col2 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col1 ) * - col0 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT 31 * + + col2 AS col0 FROM tab0
----
1457
3069
310

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + MIN( + col1 ) * + ( - + 45 ) AS col1 FROM tab2 AS cor0
----
-2295

skipif mysql # not compatible
query I rowsort label-8339
SELECT + MIN ( + col1 ) * + ( - + 45 ) AS col1 FROM tab2 AS cor0
----
-2295

query I rowsort
SELECT ALL - 69 * col0 + 9 AS col0 FROM tab2 AS cor0
----
-3165
-4407
-5166

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

query I rowsort
SELECT + + 41 AS col2 FROM tab2 AS cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( - + 3 + col0 ) AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT - MIN( + col0 ) + ( 66 ) FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - MIN ( + col0 ) + ( 66 ) FROM tab2 cor0
----
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT ALL + col1 AS col0 FROM tab1 cor0 WHERE col2 NOT BETWEEN - + col2 * CAST( NULL AS SIGNED ) * - col1 AND ( + col0 - col2 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + col1 AS col0 FROM tab1 cor0 WHERE col2 NOT BETWEEN - + col2 * CAST ( NULL AS INTEGER ) * - col1 AND ( + col0 - col2 )
----
14
47
5

query I rowsort
SELECT ALL - col0 + 55 AS col0 FROM tab2 AS cor0
----
-20
-9
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8348
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( + col0 AS SIGNED ) * - col2 NOT BETWEEN - col0 * - col0 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8348
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) * - col2 NOT BETWEEN - col0 * - col0 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - col2 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT DISTINCT + 90 * - 97 + + CAST( - col2 AS SIGNED ) FROM tab0
----
-8740
-8777
-8829

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT + 90 * - 97 + + CAST ( - col2 AS INTEGER ) FROM tab0
----
-8740
-8777
-8829

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL - COUNT( * ) + - 59 AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - COUNT ( * ) + - 59 AS col1 FROM tab0
----
-62

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + + col2 + col2 + - - 69 + 49 * + ( 52 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - ( + col2 ) > ( - - 20 )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 60 * + + col0 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT col2 + - - 31 AS col1 FROM tab2
----
54
71
89

query I rowsort
SELECT col2 + col2 - + col0 + + - col1 FROM tab0 AS cor0
----
-2
-88
100

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

query I rowsort
SELECT col0 * ( + 35 ) FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ( - 89 ) * COUNT( - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > col1
----
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT ( - 89 ) * COUNT ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL - MAX( ( + col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - MAX ( ( + col2 ) ) AS col0 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-8362
SELECT ALL - - 1 DIV - - col0 * + col0, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-8362
SELECT ALL - - 1 / - - col0 * + col0, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL + MAX( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL + MAX ( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col0 * 43 + - - ( - - col0 ) + + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT COUNT( DISTINCT + - 73 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT COUNT ( DISTINCT + - 73 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - 83 * - col0 AS col0 FROM tab0 cor0
----
1245
7221
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT COUNT( DISTINCT + + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT COUNT ( DISTINCT + + col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT + COUNT( * ) + - - 80 col0 FROM tab1 WHERE NULL NOT IN ( + col1 + + ( 15 ) + - 46 )
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8368
SELECT DISTINCT + COUNT ( * ) + - - 80 col0 FROM tab1 WHERE NULL NOT IN ( + col1 + + ( 15 ) + - 46 )
----
80

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - col0 NOT BETWEEN - col2 AND + - 52
----

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 WHERE - + 44 * - + 17 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT IN ( - + col1 * - 9 )
----

query II rowsort
SELECT ALL 41 AS col0, - col1 * col0 - col0 AS col1 FROM tab0
----
41
-1230
41
-1914
41
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT SUM( - 35 ) AS col1 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-8373
SELECT SUM ( - 35 ) AS col1 FROM tab1
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, + 82 FROM tab0
----
-15
82
-87
82
-97
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col2 + col1, col1 / 21 )
----

query II rowsort
SELECT 6, + col0 FROM tab0
----
6
15
6
87
6
97

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

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL COUNT ( - col0 ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 29 / + ( 4 ) - + - 37 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

skipif mysql # not compatible
query I rowsort label-8381
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 12 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8382
SELECT 88 DIV MIN( DISTINCT + 66 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8382
SELECT 88 / MIN ( DISTINCT + 66 ) FROM tab2
----
1

query I rowsort
SELECT ALL + 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT COUNT( - col1 ) + - ( + MIN( - col1 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8384
SELECT COUNT ( - col1 ) + - ( + MIN ( - col1 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL + ( col1 ) + + ( - + col0 ) FROM tab1 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT - - col2 + - - col2 FROM tab1 AS cor0
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 + + 67 col2 FROM tab0 AS cor0
----
146
146
146

query I rowsort
SELECT - 2 * - col2 AS col1 FROM tab2 AS cor0 WHERE col2 * + ( + + col1 ) >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + 46 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
46

query I rowsort
SELECT col2 + + 52 + - 51 AS col1 FROM tab1
----
60
69
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT - CAST( + + MIN( + col2 ) AS SIGNED ) FROM tab2 WHERE - 44 + + + col1 NOT IN ( + ( 81 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8391
SELECT - CAST ( + + MIN ( + col2 ) AS INTEGER ) FROM tab2 WHERE - 44 + + + col1 NOT IN ( + ( 81 ) )
----
-23

query I rowsort
SELECT - col2 * - 28 AS col1 FROM tab0
----
1316
2772
280

query III rowsort
SELECT * FROM tab0 WHERE + 85 BETWEEN NULL AND - - col0 * - col1 + - col0 + - - col0 / - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8394
SELECT + CAST( NULL AS DECIMAL ) * 62 * - + col2 * 17 * + - 23, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8394
SELECT + CAST ( NULL AS REAL ) * 62 * - + col2 * 17 * + - 23, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 - - col2 col2 FROM tab0
----
125
36
73

query I rowsort
SELECT ALL col1 - - - ( - 90 ) AS col1 FROM tab2
----
141
157
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT COUNT( * ) * - 84 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-8397
SELECT COUNT ( * ) * - 84 FROM tab0
----
-252

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + ( - 30 ) * - col0 BETWEEN NULL AND ( - + 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT COUNT( ALL - - col1 ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8399
SELECT COUNT ( ALL - - col1 ) + + COUNT ( * ) FROM tab2
----
6

query II rowsort
SELECT 64, - 13 + - - 16 * - col1 AS col0 FROM tab1
----
64
-237
64
-765
64
-93

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 27 * + 88 IS NULL
----

query I rowsort
SELECT ALL col0 * - 61 AS col2 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 1 * - col2 - - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL + SUM( 53 ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL + SUM ( 53 ) FROM tab2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + - COUNT( - 17 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8407
SELECT + - COUNT ( - 17 ) AS col0 FROM tab0 AS cor0
----
-3

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 - - 64 NOT IN ( + + col0, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 12 * - col0 / col2 / + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 12 * - col0 / col2 / + col1 >= NULL
----
0

query I rowsort
SELECT DISTINCT + - 9 + + col2 FROM tab2 AS cor0 WHERE NOT ( 19 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - - col0 * + col1 - + + 82 col0 FROM tab2 AS cor0
----
133640
280814
286343

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT - col1 DIV + + ( - - col1 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8413
SELECT - col1 / + + ( - - col1 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8414
SELECT ALL - - 1 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - - 1 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT + 84 * - col2 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT + SUM( ALL - ( + + col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8417
SELECT + SUM ( ALL - ( + + col1 ) ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT 65 * + + CAST( - 34 AS SIGNED ) AS col2 FROM tab0
----
-2210
-2210
-2210

skipif mysql # not compatible
query I rowsort label-8418
SELECT 65 * + + CAST ( - 34 AS INTEGER ) AS col2 FROM tab0
----
-2210
-2210
-2210

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

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

query II rowsort
SELECT ALL 26, - col2 AS col1 FROM tab2 WHERE NOT ( NULL <= ( NULL ) )
----

query I rowsort
SELECT 6 * + 1 AS col1 FROM tab0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 < col1 + + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT - COUNT( * ) - COUNT( * ) FROM tab2, tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8424
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab2, tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT - COUNT( DISTINCT + - 30 ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - COUNT ( DISTINCT + - 30 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8426
SELECT ( + CAST( - + col1 AS DECIMAL ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 3 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8426
SELECT ( + CAST ( - + col1 AS REAL ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 3 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT col0 + + CAST( col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
138
192
225

skipif mysql # not compatible
query I rowsort label-8427
SELECT col0 + + CAST ( col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
138
192
225

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + col0
----

query I rowsort
SELECT + col1 * + - 65 + + 69 FROM tab2
----
-3246
-4286
-4936

query I rowsort
SELECT - ( ( + col1 ) ) + 60 * - col2 + - 98 FROM tab2
----
-1529
-2575
-3645

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT col1 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL SUM( ALL + + col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL SUM ( ALL + + col2 ) AS col1 FROM tab0 cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT ALL + 76 + - 10 DIV col0 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
1
12
30

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + 76 + - 10 / col0 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
1
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT - COUNT( ALL - 60 ) FROM tab0 AS cor0 WHERE NOT - 31 IN ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - COUNT ( ALL - 60 ) FROM tab0 AS cor0 WHERE NOT - 31 IN ( col1 )
----
-3

query I rowsort
SELECT + ( + 97 ) AS col0 FROM tab1 AS cor0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + ( 71 ) BETWEEN + 18 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + - + col1 FROM tab1 AS cor0
----
37
44
80

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

skipif mysql # not compatible
query I rowsort label-8442
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * - 46 - + col2 * + col1 FROM tab1 AS cor0
----
-3690
-4205
-7382

query I rowsort
SELECT ALL 13 AS col2 FROM tab0 AS cor0 WHERE NULL = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT + + col2 FROM tab2 WHERE - + col0 * - col1 * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8445
SELECT + + col2 FROM tab2 WHERE - + col0 * - col1 * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + col1 IS NOT NULL
----

query I rowsort
SELECT ( + 42 ) + 44 FROM tab0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT + MIN( col1 ) + - - MAX( DISTINCT - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + MIN ( col1 ) + - - MAX ( DISTINCT - col1 ) FROM tab2
----
0

query I rowsort
SELECT ALL 8 - col0 AS col0 FROM tab1
----
-43
-77
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL + col1 * - col1 DIV + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + col1 * - col1 / + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT CAST( + + COUNT( * ) AS SIGNED ) * AVG ( ALL + 92 ) + - + ( - SUM( ALL + - 36 ) ) AS col2 FROM tab0 WHERE 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * AVG ( ALL + 92 ) + - + ( - SUM ( ALL + - 36 ) ) AS col2 FROM tab0 WHERE 41 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + col1 - + + col1 FROM tab2
----
-2652
-4556
-6006

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT COUNT( * ) + 74 AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT COUNT ( * ) + 74 AS col2 FROM tab0 AS cor0
----
77

query I rowsort
SELECT - - 92 * - + 7 AS col0 FROM tab0 cor0
----
-644
-644
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + COUNT( ALL - ( + - 2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8456
SELECT + COUNT ( ALL - ( + - 2 ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - + col2 * 26 AS col1, col1 - - - col1 AS col0 FROM tab2 AS cor0
----
-1040
0
-1508
0
-598
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * 45 col0 FROM tab1 cor0
----
1800
1800
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - COUNT( * ) * - 78 * - 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-28080

skipif mysql # not compatible
query I rowsort label-8459
SELECT - COUNT ( * ) * - 78 * - 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-28080

query I rowsort
SELECT 30 FROM tab0 WHERE NOT - col0 IS NULL
----
30
30
30

query III rowsort
SELECT * FROM tab0 WHERE NOT - 76 = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) < ( NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT MIN( DISTINCT - + ( + col2 ) ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8465
SELECT MIN ( DISTINCT - + ( + col2 ) ) col1 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT col1 AS col2, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

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

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

query I rowsort
SELECT DISTINCT + - ( - col2 ) * col0 FROM tab0 AS cor0
----
705
870
9603

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

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

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

query I rowsort
SELECT col0 * + 92 AS col0 FROM tab2
----
4232
5888
6900

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

query II rowsort
SELECT ALL col0, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 32 BETWEEN + col0 AND + col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT + 67 DIV - ( + col0 ) AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT + 67 / - ( + col0 ) AS col1 FROM tab0
----
-4
0
0

query II rowsort
SELECT + col0, col0 - - col0 AS col2 FROM tab0 AS cor0
----
15
30
87
174
97
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL 26 + + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL 26 + + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT CAST( 49 AS SIGNED ) + - col0 AS col2 FROM tab2
----
-15
-26
3

skipif mysql # not compatible
query I rowsort label-8479
SELECT CAST ( 49 AS INTEGER ) + - col0 AS col2 FROM tab2
----
-15
-26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + SUM( + col2 ) + + COUNT( * ) + + COUNT( + + col1 ) * - - MAX( 12 ) AS col0 FROM tab2 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-8480
SELECT + SUM ( + col2 ) + + COUNT ( * ) + + COUNT ( + + col1 ) * - - MAX ( 12 ) AS col0 FROM tab2 AS cor0
----
160

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - col2 * 50 * - col1 * - 52
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT DISTINCT + + 80 + CAST( NULL AS SIGNED ) + - col1 * + 16 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT + + 80 + CAST ( NULL AS INTEGER ) + - col1 * + 16 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
NULL

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

query II rowsort
SELECT - col1 AS col2, - 97 AS col0 FROM tab0
----
-1
-97
-21
-97
-81
-97

query I rowsort
SELECT DISTINCT + - 83 / + col1 AS col1 FROM tab1 WHERE - col1 >= + ( + col1 )
----

query II rowsort
SELECT col1 AS col0, + 10 FROM tab2
----
51
10
67
10
77
10

query II rowsort
SELECT col2 * + - 51 * + ( col2 ) - - col0 - - col2, ( 47 ) AS col2 FROM tab0
----
-112597
47
-499655
47
-5003
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT COUNT( * ) - + - 85 AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-8489
SELECT COUNT ( * ) - + - 85 AS col2 FROM tab1
----
88

query I rowsort
SELECT ALL col1 - + 9 * 78 + + col0 FROM tab1
----
-564
-612
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT COUNT( ( + - col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT COUNT ( ( + - col1 ) ) FROM tab0
----
3

query I rowsort
SELECT + col2 * - 20 FROM tab1 AS cor0 WHERE NOT col0 + - col0 - + + col0 * + - 99 BETWEEN - col2 AND + ( + 42 )
----
-1180
-1360
-1920

query I rowsort
SELECT DISTINCT - 25 * - - col1 AS col1 FROM tab1 AS cor0
----
-1175
-125
-350

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ALL - - col2 DIV - 69 - + col0 * + col0 + + + 81 AS col0 FROM tab0 AS cor0
----
-144
-7488
-9329

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - - col2 / - 69 - + col0 * + col0 + + + 81 AS col0 FROM tab0 AS cor0
----
-144
-7488
-9329

query I rowsort
SELECT ALL - 31 * - 76 FROM tab0 AS cor0
----
2356
2356
2356

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT ALL + col0 DIV + + 79 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + col0 / + + 79 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT + + col1 AS col0 FROM tab1 cor0 WHERE NOT 2 * - col1 BETWEEN NULL AND - + col0
----
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT DISTINCT MIN( DISTINCT - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT MIN ( DISTINCT - 40 ) FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT SUM( - + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8499
SELECT SUM ( - + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + ( - col1 ) * 22 AS col1 FROM tab1 AS cor0
----
-1034
-110
-308

query I rowsort
SELECT col0 * + 40 FROM tab1 AS cor0
----
2040
3400
3640

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT col2, + 40 AS col2 FROM tab2
----
23
40
40
40
58
40

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN col1 AND - 58 OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 50 * col0 + col1 + + ( 39 ) AS col0 FROM tab2 AS cor0
----
-2210
-3084
-3644

query I rowsort
SELECT - - 27 + + + col0 AS col0 FROM tab1 AS cor0
----
112
118
78

query I rowsort
SELECT DISTINCT col1 * + + col0 + - 27 + - - col1 + - col1 + + col0 FROM tab0
----
1203
167
1887

query I rowsort
SELECT ALL + 22 AS col2 FROM tab2 WHERE NOT 50 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col0 - + 93 IN ( - - col1 / - ( 48 ) * + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col0 - + 93 IN ( - - col1 / - ( 48 ) * + - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT DISTINCT + 36 + - COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + 36 + - COUNT ( * ) FROM tab2 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT DISTINCT ( col0 ) DIV + col1 - - + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
59

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT ( col0 ) / + col1 - - + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
59

query I rowsort
SELECT 94 - 1 + + ( + 27 ) AS col1 FROM tab0 AS cor0
----
120
120
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) + + - 45 - + col1 col0 FROM tab1 AS cor0
----
-24
37
9

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

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

query I rowsort
SELECT + - col1 * col0 - col1 FROM tab1 AS cor0
----
-430
-4324
-728

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

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

query I rowsort
SELECT DISTINCT - + col1 * + col0 - - - col2 AS col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

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

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

query I rowsort
SELECT DISTINCT 43 - 26 AS col2 FROM tab0
----
17

query II rowsort
SELECT DISTINCT + 38 + + + 39 AS col1, + col0 * + 33 FROM tab1
----
77
1683
77
2805
77
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NOT - + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NOT - + col1 IS NULL )
----
0

query I rowsort
SELECT DISTINCT 21 * - 14 * col0 * - + 51 FROM tab0
----
1304478
1454418
224910

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

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

query I rowsort
SELECT - + 39 AS col1 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT - + col2 + 76 FROM tab2 cor0 WHERE NOT + col1 / + 28 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + COUNT( - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8527
SELECT + COUNT ( - col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT - + 34 * + 70 FROM tab0 WHERE ( 84 <> - - col1 )
----
-2380
-2380
-2380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 95 + 60 col0 FROM tab0
----
140
58
68

query I rowsort
SELECT - 8 FROM tab1 WHERE ( NULL ) < + ( + 2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + col1 col2 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT COUNT( * ) * 26 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT COUNT ( * ) * 26 FROM tab1
----
78

query I rowsort
SELECT + 88 * - col1 AS col1 FROM tab0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT 83 * - + COUNT( DISTINCT - + col0 ) AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-8534
SELECT 83 * - + COUNT ( DISTINCT - + col0 ) AS col2 FROM tab0
----
-249

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

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 17 - 0 * - col0 * - 47 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT DISTINCT - MAX( ALL - CAST( NULL AS SIGNED ) ) + - + MIN( DISTINCT col2 ) * 54 + 95 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) + - + MIN ( DISTINCT col2 ) * 54 + 95 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT COUNT( * ) - - - 35 + 15 AS col0 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-8539
SELECT COUNT ( * ) - - - 35 + 15 AS col0 FROM tab1
----
-17

query I rowsort
SELECT 63 + + 45 FROM tab1 AS cor0
----
108
108
108

query I rowsort
SELECT DISTINCT + + 30 FROM tab0 cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT CAST( NULL AS SIGNED ) + - - col1 / + 36 + - - 69 * + col2 AS col2 FROM tab1 AS cor0 WHERE ( - col0 < NULL )
----

skipif mysql # not compatible
query I rowsort label-8542
SELECT CAST ( NULL AS INTEGER ) + - - col1 / + 36 + - - 69 * + col2 AS col2 FROM tab1 AS cor0 WHERE ( - col0 < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + + 15 * 99 * - col0 BETWEEN - + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + 65 AND NULL
----
87
21
10
97
1
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8546
SELECT ALL + CAST( - 59 AS SIGNED ) FROM tab2 WHERE NULL > + - col0 * - - col2 + - - 90
----

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL + CAST ( - 59 AS INTEGER ) FROM tab2 WHERE NULL > + - col0 * - - col2 + - - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ALL + COUNT( 1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8547
SELECT ALL + COUNT ( 1 ) col2 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT MAX( - + col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8549
SELECT MAX ( - + col1 ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT ALL col2, + 65 AS col0, 49 AS col1 FROM tab1
----
9 values hashing to ef553b8b5edd91ae3192cda73992b54f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = col0 * col1
----

query I rowsort
SELECT + + 39 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL - CAST( - + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + 41 * - COUNT( DISTINCT 92 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8554
SELECT + 41 * - COUNT ( DISTINCT 92 ) FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + - 78 * COUNT( - - 35 ) + - 77 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-779

skipif mysql # not compatible
query I rowsort label-8555
SELECT + - 78 * COUNT ( - - 35 ) + - 77 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-779

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 36 < col2
----
15
87
97

query II rowsort
SELECT DISTINCT col2 * - + col2 * + ( + + col2 ) + + 63 AS col0, ( + col1 ) FROM tab1 cor0
----
-205316
5
-314369
47
-884673
14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8559
SELECT ALL + MIN( - + 42 ) + - + ( CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL + MIN ( - + 42 ) + - + ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + MIN( + ( 97 ) ) + 56 * + COUNT( * ) FROM tab0 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + MIN ( + ( 97 ) ) + 56 * + COUNT ( * ) FROM tab0 AS cor0
----
265

query I rowsort
SELECT ALL + ( - col0 ) + 43 FROM tab0 cor0
----
-44
-54
28

query I rowsort
SELECT DISTINCT col0 * - + 41 AS col2 FROM tab0
----
-3567
-3977
-615

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT ALL col0 DIV + - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL col0 / + - col1 FROM tab0
----
-4
-97
0

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col1 <> + - ( - - col2 ) AND NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - col2 + + 71 FROM tab2
----
13
31
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8567
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + CAST( + + col1 AS SIGNED ), + col2 * + - 36 AS col0 FROM tab2 AS cor0
----
NULL
-1440
NULL
-2088
NULL
-828

skipif mysql # not compatible
query II rowsort label-8567
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + CAST ( + + col1 AS INTEGER ), + col2 * + - 36 AS col0 FROM tab2 AS cor0
----
NULL
-1440
NULL
-2088
NULL
-828

query I rowsort
SELECT - 57 + + col0 * + ( + 35 ) * + col1 FROM tab0 AS cor0
----
3338
42468
63888

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + 33 + - 71 + MIN( DISTINCT - 92 ) AS col0 FROM tab1 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + 33 + - 71 + MIN ( DISTINCT - 92 ) AS col0 FROM tab1 AS cor0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL - + COUNT( * ) * - MAX( + + col0 ) + ( 74 ) FROM tab2 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - + COUNT ( * ) * - MAX ( + + col0 ) + ( 74 ) FROM tab2 AS cor0
----
299

query I rowsort
SELECT - - ( + col0 ) * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL - - col0 * - 86 - + col2 FROM tab2 AS cor0
----
-3979
-5544
-6508

query I rowsort
SELECT + col2 * - + 59 AS col2 FROM tab0 cor0
----
-2773
-5841
-590

query I rowsort
SELECT DISTINCT - 69 * + col1 FROM tab0 AS cor0
----
-1449
-5589
-69

query I rowsort
SELECT DISTINCT col1 * - ( - 65 ) + 26 FROM tab2 AS cor0
----
3341
4381
5031

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8576
SELECT ALL col0 DIV - ( 30 ) + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
50
83
88

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL col0 / - ( 30 ) + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
50
83
88

query I rowsort
SELECT DISTINCT - - 13 * - - col0 + + col2 + + 39 FROM tab2 AS cor0
----
1072
660
911

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8578
SELECT * FROM tab2 WHERE NOT - - 97 * col0 * - - CAST( 8 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8578
SELECT * FROM tab2 WHERE NOT - - 97 * col0 * - - CAST ( 8 AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT DISTINCT 4 DIV + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT 4 / + col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 73 * - + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
1095
6351
7081

query I rowsort
SELECT ALL ( - 91 ) FROM tab1
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 WHERE - col2 <= NULL
----

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

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

query I rowsort
SELECT 69 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT + - ( + - 37 ) FROM tab1 AS cor0
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col1 * + col2
----

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

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

query I rowsort
SELECT - 89 + - col0 + - col0 + + + 35 AS col1 FROM tab2 AS cor0
----
-146
-182
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT + + 89 + COUNT( * ) col2 FROM tab1 AS cor0
----
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + ( + 54 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8591
SELECT + ( + 54 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + 2 + + - col2 FROM tab0 AS cor0
----
-45
-8
-97

query I rowsort
SELECT - + col0 + + col0 + - - col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + - - col1 + 92 + col1 - - 83 + + 15 FROM tab1 AS cor0
----
269
285
375

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

query I rowsort
SELECT ALL ( - col2 ) + 8 + 33 FROM tab0
----
-58
-6
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 8 * - col0 * 70 * + 50 * + col2 AS col1 FROM tab0
----
-19740000
-24360000
-268884000

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( - col0 ) * - col0 <> NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE - + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT + - COUNT( * ) * - - 53 AS col2 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-8601
SELECT + - COUNT ( * ) * - - 53 AS col2 FROM tab1 AS cor0
----
-159

query II rowsort
SELECT DISTINCT - col2 AS col2, + 81 + + col1 AS col1 FROM tab0 AS cor0
----
-10
102
-47
162
-99
82

query I rowsort
SELECT - col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT - col2, 84 AS col0 FROM tab0 cor0
----
-10
84
-47
84
-99
84

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 94 NOT BETWEEN - 89 * + - col1 * - col1 AND + col1
----

query I rowsort
SELECT 17 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 95 * - - ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT - 63 * - 15 + - + col0 AS col2 FROM tab1
----
854
860
894

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT - 58 DIV + - 5 col2 FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8610
SELECT - 58 / + - 5 col2 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ALL - + 79 * + + col0 AS col0 FROM tab2 AS cor0
----
-3634
-5056
-5925

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT DISTINCT + + 83 DIV col2 * - ( + col0 ) FROM tab1 AS cor0
----
-85
-91
0

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT + + 83 / col2 * - ( + col0 ) FROM tab1 AS cor0
----
-85
-91
0

query II rowsort
SELECT col1 AS col2, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

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

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

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

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

query II rowsort
SELECT - 50 AS col1, - col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-50
-1
-50
-21
-50
-81

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8619
SELECT ALL col1 - + 98 DIV + - col0 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
15
-14
48
-47
6
-5

skipif mysql # not compatible
query II rowsort label-8619
SELECT ALL col1 - + 98 / + - col0 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
15
-14
48
-47
6
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT + SUM( DISTINCT - + 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + SUM ( DISTINCT - + 15 ) FROM tab2
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL CAST( NULL AS SIGNED ) - + - 60 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL CAST ( NULL AS INTEGER ) - + - 60 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 41 + col1 AS col1 FROM tab2 AS cor0
----
10
26
36

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 77 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT + 92, + 51 * - - MAX( + ( + - col2 ) ) AS col2 FROM tab1 AS cor0
----
92
-3009

skipif mysql # not compatible
query II rowsort label-8625
SELECT + 92, + 51 * - - MAX ( + ( + - col2 ) ) AS col2 FROM tab1 AS cor0
----
92
-3009

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

skipif mysql # not compatible
query I rowsort label-8626
SELECT + + COUNT ( * ) / + 5 AS col1 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT - MAX( DISTINCT - + col0 ), + MIN( + + 32 ) col2 FROM tab0 AS cor0
----
15
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8628
SELECT - MAX ( DISTINCT - + col0 ), + MIN ( + + 32 ) col2 FROM tab0 AS cor0
----
15
32

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

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

query I rowsort
SELECT ALL + - 52 * - 73 + - col1 + - - col1 FROM tab2 cor0
----
3796
3796
3796

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT SUM( ALL - + 65 ) FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8632
SELECT SUM ( ALL - + 65 ) FROM tab1 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 28 AS col2, col2 col1 FROM tab1
----
-28
59
-28
68
-28
96

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

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

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

query II rowsort
SELECT col0 AS col0, col2 + + col0 AS col0 FROM tab1
----
51
147
85
144
91
159

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + COUNT( * ) + + 72 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8640
SELECT + COUNT ( * ) + + 72 FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL + 49 * - col1 AS col1 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL + - COUNT( * ) + + - COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + - COUNT ( * ) + + - COUNT ( * ) FROM tab2 cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - col0 col0 FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8644
SELECT DISTINCT MAX( + col1 ) DIV COUNT( * ) + + 47 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT MAX ( + col1 ) / COUNT ( * ) + + 47 FROM tab0 AS cor0
----
74

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

query I rowsort
SELECT DISTINCT + - col0 + + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col1 <> col2 * + 38 * col2
----
1
21
81

query II rowsort
SELECT DISTINCT + col2 + col0 AS col0, ( + 82 ) + + 34 - + col2 AS col0 FROM tab0 cor0
----
196
17
62
69
97
106

query I rowsort
SELECT DISTINCT - col0 * col1 * + 15 - - - col1 AS col1 FROM tab2 AS cor0
----
-35241
-73997
-75442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * - - col2 * - 84 col2 FROM tab2
----
-10348800
-18932592
-2266236

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8651
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) - + col0 - - col2 AND - 50
----

skipif mysql # not compatible
query III rowsort label-8651
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) - + col0 - - col2 AND - 50
----

query I rowsort
SELECT DISTINCT - col2 - col0 + - 52 * col0 AS col0 FROM tab0
----
-4621
-5240
-842

query I rowsort
SELECT 16 - - 5 FROM tab0
----
21
21
21

query II rowsort
SELECT + 1 - + col1 + - col2 AS col2, col0 * + 14 FROM tab1
----
-109
714
-114
1274
-63
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT - + MAX( col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT - + MAX ( col2 ) FROM tab1 AS cor0
----
-96

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

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

query II rowsort
SELECT 58 AS col2, + col0 AS col2 FROM tab1
----
58
51
58
85
58
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8659
SELECT 54 * - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT 54 * - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT - + 3 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT - col1 * col1 * + col0 + col0 FROM tab0 AS cor0
----
-38280
-98400
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8664
SELECT + col2 DIV - - 33 AS col0, - col2 FROM tab0
----
0
-10
1
-47
3
-99

skipif mysql # not compatible
query II rowsort label-8664
SELECT + col2 / - - 33 AS col0, - col2 FROM tab0
----
0
-10
1
-47
3
-99

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col2 * + col0 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT * FROM tab2 WHERE NULL > 34
----

query I rowsort
SELECT DISTINCT - 67 * - + col1 AS col0 FROM tab0
----
1407
5427
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL - col1 DIV col0 col0 FROM tab2
----
-1
-1
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT DISTINCT + 92 DIV col2 + + + col2 + 66 * + + 34 AS col0 FROM tab1 AS cor0
----
2304
2313
2340

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + 92 / col2 + + + col2 + 66 * + + 34 AS col0 FROM tab1 AS cor0
----
2304
2313
2340

query I rowsort
SELECT DISTINCT - 13 + - 34 AS col1 FROM tab0 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT 79 DIV - 90 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8672
SELECT 79 / - 90 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT + + MIN( 3 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT + + MIN ( 3 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT 58 * - + col0 - - 91 DIV + col0 FROM tab0 AS cor0
----
-5045
-5626
-864

skipif mysql # not compatible
query I rowsort label-8674
SELECT 58 * - + col0 - - 91 / + col0 FROM tab0 AS cor0
----
-5045
-5626
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT + 12 - CAST( NULL AS SIGNED ) / + COUNT( col1 ) col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT 30 + - + col0 FROM tab2 AS cor0
----
-16
-34
-45

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 < + - col0
----

query I rowsort
SELECT - 44 + + col0 + - col2 FROM tab0
----
-46
-76
33

query II rowsort
SELECT ALL col0 + 45, + col2 AS col2 FROM tab0
----
132
10
142
99
60
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8680
SELECT * FROM tab1 WHERE - 82 * + + col1 * - + CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8680
SELECT * FROM tab1 WHERE - 82 * + + col1 * - + CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + + ( + col0 ) col0 FROM tab0
----
138
148
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8682
SELECT DISTINCT 30 - + CAST( CAST( + 61 AS SIGNED ) AS SIGNED ) * - + COUNT( * ) + + + 16 FROM tab1
----
229

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT 30 - + CAST ( CAST ( + 61 AS INTEGER ) AS INTEGER ) * - + COUNT ( * ) + + + 16 FROM tab1
----
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT - 18 + - CAST( NULL AS SIGNED ) * + 57 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - 18 + - CAST ( NULL AS INTEGER ) * + 57 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + + col0 AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT - ( - SUM( ALL col1 ) ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - ( - SUM ( ALL col1 ) ) AS col0 FROM tab0
----
103

query I rowsort
SELECT + col2 * col2 * col2 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-17457156
-28613244
-45121440

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) = col2
----
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) = col2
----
0

query I rowsort
SELECT + - 81 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - - ( + + col2 ) AS col1 FROM tab1 WHERE NOT 7 / + col2 + ( + + col2 ) IN ( col2 + + - col1, 48, - - 24 + col1 )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 29 ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT - COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8691
SELECT - COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
-9

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

query I rowsort
SELECT 71 * - col1 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3575
-4682
-5403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8694
SELECT SUM( ALL - 79 ) * COUNT( DISTINCT - CAST( col1 AS SIGNED ) ) AS col2, MAX( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-711
96

skipif mysql # not compatible
query II rowsort label-8694
SELECT SUM ( ALL - 79 ) * COUNT ( DISTINCT - CAST ( col1 AS INTEGER ) ) AS col2, MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-711
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE - col0 NOT IN ( CAST( - + col0 AS SIGNED ), col2, + col2 + - - col0 * - 73 * + - 14, - - col2 / - col0 + ( col0 ), + + col2, - + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE - col0 NOT IN ( CAST ( - + col0 AS INTEGER ), col2, + col2 + - - col0 * - 73 * + - 14, - - col2 / - col0 + ( col0 ), + + col2, - + CAST ( col1 AS INTEGER ) )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col0 ) + - col1 BETWEEN NULL AND + col2
----
87
21
10

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

query I rowsort
SELECT ALL col1 * - + 69 AS col1 FROM tab1
----
-3243
-345
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col1 * - col0 + - + ( - col1 ) col1 FROM tab0
----
1
1281
1761

query I rowsort
SELECT ALL 3 * - - 88 AS col1 FROM tab1
----
264
264
264

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL - + ( + COUNT( DISTINCT col0 ) ) FROM tab1 WHERE + + ( + col0 ) <= 83
----
-1

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - + ( + COUNT ( DISTINCT col0 ) ) FROM tab1 WHERE + + ( + col0 ) <= 83
----
-1

query I rowsort
SELECT ALL - ( - ( - col0 ) ) + + col0 FROM tab1
----
0
0
0

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab0 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8710
SELECT ALL - col0 + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8710
SELECT ALL - col0 + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT + col2 + + - 61 FROM tab2
----
-21
-3
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT - COUNT( * ) + - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - COUNT ( * ) + - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE ( 21 + col2 IS NOT NULL )
----
15
87
97

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT - - 80 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT DISTINCT + - COUNT( * ) * 66 AS col2 FROM tab0 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + - COUNT ( * ) * 66 AS col2 FROM tab0 cor0
----
-198

query I rowsort
SELECT - col2 * + 87 AS col2 FROM tab0 AS cor0
----
-4089
-8613
-870

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

skipif mysql # not compatible
query I rowsort label-8719
SELECT - COUNT ( DISTINCT col2 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 34 ) BETWEEN 20 * - ( - col2 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL - MAX( + ( + col0 ) ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL - MAX ( + ( + col0 ) ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL MAX( ALL + col1 ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL MAX ( ALL + col1 ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE col2 - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT - MIN( ALL col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8724
SELECT - MIN ( ALL col2 ) col2 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT COUNT( * ) + 10 AS col2 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT COUNT ( * ) + 10 AS col2 FROM tab1
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - ( 9 ) + col2 BETWEEN + 65 AND ( 28 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * 6 FROM tab1
----
306
510
546

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL - COUNT( DISTINCT - 3 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - COUNT ( DISTINCT - 3 ) AS col2 FROM tab0
----
-1

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

query I rowsort
SELECT DISTINCT - 12 * 26 FROM tab0
----
-312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT - 42 AS col1 FROM tab1 WHERE NOT + col2 * - CAST( NULL AS SIGNED ) IN ( ( - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - 42 AS col1 FROM tab1 WHERE NOT + col2 * - CAST ( NULL AS INTEGER ) IN ( ( - col0 ) )
----

query I rowsort
SELECT + 88 * col2 AS col1 FROM tab1
----
5192
5984
8448

query I rowsort
SELECT DISTINCT col0 - 81 * col2 AS col2 FROM tab1
----
-4694
-5417
-7725

query I rowsort
SELECT - 77 * + 4 AS col0 FROM tab0
----
-308
-308
-308

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE + col0 = - col1 + 84
----

query I rowsort
SELECT 0 * + col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 59 / col1 BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT ALL 19 DIV - col2 + 56 FROM tab2 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL 19 / - col2 + 56 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL > col1 * 44
----

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

skipif mysql # not compatible
query I rowsort label-8740
SELECT 78 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT - COUNT( * ) * 78 + COUNT( * ) col1 FROM tab1 cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8741
SELECT DISTINCT - COUNT ( * ) * 78 + COUNT ( * ) col1 FROM tab1 cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT - SUM( col2 ) + 27 AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT - SUM ( col2 ) + 27 AS col0 FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE ( - 0 ) BETWEEN ( 82 ) AND ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NULL BETWEEN NULL AND - 81
----

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

query I rowsort
SELECT - 87 - col2 AS col1 FROM tab2 cor0
----
-110
-127
-145

query I rowsort
SELECT + col2 - + ( ( 64 ) ) AS col1 FROM tab2 AS cor0
----
-24
-41
-6

query I rowsort
SELECT - col1 - - ( ( - col2 ) ) FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 45 * - col2 + + 48 NOT BETWEEN ( NULL ) AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 19 - + col1 AS col0 FROM tab1 AS cor0
----
-28
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + COUNT( * ) + 39 AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8752
SELECT + COUNT ( * ) + 39 AS col1 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL + MAX( - 10 ) + - 71 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + MAX ( - 10 ) + - 71 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( col0 + - col1 / + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + col0 * + col0 FROM tab2 cor0
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT COUNT( * ) * 11 AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT COUNT ( * ) * 11 AS col1 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT 55 + + col1 = col0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT - CAST( col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-8758
SELECT - CAST ( col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) <> - col2 OR NOT NULL <= ( col2 + + col0 * + 79 )
----

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) <> - col2 OR NOT NULL <= ( col2 + + col0 * + 79 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 < ( + 44 )
----

query I rowsort
SELECT DISTINCT col2 * + 34 AS col2 FROM tab2
----
1360
1972
782

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + - 35 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 WHERE + col1 IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT ALL - + COUNT( * ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - + COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT DISTINCT - 74 DIV + col1 col2 FROM tab0 AS cor0
----
-3
-74
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8765
SELECT DISTINCT - 74 / + col1 col2 FROM tab0 AS cor0
----
-3
-74
0

query I rowsort
SELECT ALL - + 41 * + col2 FROM tab0 AS cor0
----
-1927
-4059
-410

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL - SUM( - - 16 ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - SUM ( - - 16 ) AS col2 FROM tab2 AS cor0
----
-48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL - CAST( + ( 41 ) AS SIGNED ) * col0 col1 FROM tab2 AS cor0
----
-1886
-2624
-3075

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8770
SELECT ALL - CAST ( + ( 41 ) AS INTEGER ) * col0 col1 FROM tab2 AS cor0
----
-1886
-2624
-3075

query I rowsort
SELECT - 10 * - col1 AS col0 FROM tab2
----
510
670
770

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

query I rowsort
SELECT + col1 * + ( 64 ) * ( + ( + 54 ) ) AS col1 FROM tab2
----
176256
231552
266112

query I rowsort
SELECT ALL - 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT - MAX( DISTINCT - 81 ) col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8775
SELECT - MAX ( DISTINCT - 81 ) col0 FROM tab2 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT + col2 DIV col0 * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8776
SELECT + col2 / col0 * + col0 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL - ( + - col0 ) * + col2 + 24 FROM tab2 AS cor0
----
1082
2584
4374

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 57 + + 18 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col2 * + + 6 FROM tab2 AS cor0
----
-138
-240
-348

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 22 * + 83 AND ( NULL )
----

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

query I rowsort
SELECT ALL + 1 + - col1 AS col1 FROM tab0 AS cor0
----
-20
-80
0

query I rowsort
SELECT DISTINCT - col2 + - + col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT 45 FROM tab1 AS cor0 WHERE NOT ( 19 - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL 2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IS NULL AND - col0 / col1 IS NULL
----

query I rowsort
SELECT ALL + 20 * 35 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
700
700
700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - 73 >= + 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-8790
SELECT COUNT ( * ) / - + MIN ( DISTINCT col1 ) FROM tab1
----
0

query I rowsort
SELECT col1 * 75 AS col2 FROM tab2
----
3825
5025
5775

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT DISTINCT 96 + + ( 85 ) + + col1 + col2 DIV - 47 FROM tab0
----
180
202
261

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT 96 + + ( 85 ) + + col1 + col2 / - 47 FROM tab0
----
180
202
261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8793
SELECT DISTINCT + CAST( + col0 AS SIGNED ), - 99 DIV - 90 AS col0 FROM tab2
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-8793
SELECT DISTINCT + CAST ( + col0 AS INTEGER ), - 99 / - 90 AS col0 FROM tab2
----
46
1
64
1
75
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT DISTINCT CAST( - CAST( - 96 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT CAST ( - CAST ( - 96 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
96

query I rowsort
SELECT col0 * + - 89 FROM tab0
----
-1335
-7743
-8633

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

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

query I rowsort
SELECT - 86 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-86
-86
-86

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

query I rowsort
SELECT DISTINCT - col1 + - + 70 * + col1 AS col2 FROM tab0 cor0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + COUNT( * ) + + - SUM( + 52 ) + + 62 + - COUNT( * ) AS col0 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-8800
SELECT + COUNT ( * ) + + - SUM ( + 52 ) + + 62 + - COUNT ( * ) AS col0 FROM tab2
----
-94

query I rowsort
SELECT DISTINCT + 26 * + col0 + 4 AS col0 FROM tab2
----
1200
1668
1954

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, col1 col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8804
SELECT - - col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE - + col1 >= + col1
----

skipif mysql # not compatible
query I rowsort label-8804
SELECT - - col0 / CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE - + col1 >= + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT - col2 DIV 31 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8806
SELECT - col2 / 31 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - 81 + + 26 FROM tab0 AS cor0 WHERE NOT ( col1 * - + ( - - 21 ) + - col0 + + col0 * col1 ) NOT BETWEEN - col2 + + col0 AND ( col0 * - col1 )
----

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

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

query I rowsort
SELECT ( - ( - col0 ) ) * + - 14 * + ( ( - col1 ) ) FROM tab1 AS cor0
----
5950
59878
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT 82 * - COUNT( + 24 ) FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-8810
SELECT 82 * - COUNT ( + 24 ) FROM tab0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT + MAX( ALL + 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-8811
SELECT + MAX ( ALL + 27 ) FROM tab2
----
27

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( ( NULL ) <> NULL ) )
----

query II rowsort
SELECT DISTINCT col0, + 7 FROM tab2
----
46
7
64
7
75
7

query I rowsort
SELECT ( col0 ) * + ( - col2 ) * + ( col1 ) FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT 31 * - col2 AS col0 FROM tab1
----
-1829
-2108
-2976

query I rowsort
SELECT ALL 13 AS col0 FROM tab2 cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT ALL 23 DIV col0 + + col1 AS col2 FROM tab0 AS cor0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL 23 / col0 + + col1 AS col2 FROM tab0 AS cor0
----
1
21
82

query I rowsort
SELECT DISTINCT 87 * - col2 + - col0 * 1 AS col2 FROM tab2
----
-2047
-3544
-5121

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

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

query I rowsort
SELECT + - ( + 38 ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT + col2 * col1 * - + 35 AS col2 FROM tab2
----
-107800
-136010
-41055

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT DISTINCT - col2 DIV col0 + + - 87 + - - col0 FROM tab0 AS cor0
----
-75
0
9

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - col2 / col0 + + - 87 + - - col0 FROM tab0 AS cor0
----
-75
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8824
SELECT ALL + 87 * - CAST( - + col2 AS SIGNED ) AS col1, 56 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL + 87 * - CAST ( - + col2 AS INTEGER ) AS col1, 56 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT DISTINCT + 53 DIV - 97 * - 32 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + 53 / - 97 * - 32 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 92 NOT IN ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + + 15 + + + 80 AS col1 FROM tab2 AS cor0
----
-265
-520
-790

query I rowsort
SELECT + + 21 AS col0 FROM tab2 cor0
----
21
21
21

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) + col2 FROM tab1 AS cor0
----
-21
24
59

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col0 * + 17 NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col0 * + 17 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + col0 * - 88 * + + 26 FROM tab2
----
-105248
-146432
-171600

query I rowsort
SELECT 89 + - - 63 AS col1 FROM tab0
----
152
152
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT 22 + - - COUNT( * ) col0 FROM tab1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8835
SELECT 22 + - - COUNT ( * ) col0 FROM tab1
----
25

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( + 13 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 30 + + col0 + - - col0, - ( - - ( ( + col0 ) ) ) AS col1 FROM tab0
----
204
-87
224
-97
60
-15

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

query I rowsort
SELECT + - col0 + ( - col0 ) FROM tab1 AS cor0 WHERE 16 IN ( 82 + + col2, - col1 / 51 * - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + - 12 * + 31 col1 FROM tab0 AS cor0
----
-365
-365
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL SUM( ( + 7 ) ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL SUM ( ( + 7 ) ) FROM tab1 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT ALL + 30 - ( 26 ) - col0 DIV col1 AS col2 FROM tab0 cor0
----
-93
0
4

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + 30 - ( 26 ) - col0 / col1 AS col2 FROM tab0 cor0
----
-93
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8843
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL CAST( COUNT( - col0 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL CAST ( COUNT ( - col0 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ( - 87 ) AS col2 FROM tab0 AS cor0
----
-87
-87
-87

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

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

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
40

query I rowsort
SELECT - 31 * - + col0 + col2 FROM tab2 AS cor0
----
1449
2024
2383

query II rowsort
SELECT 12 * - col2 AS col0, - col2 FROM tab2 AS cor0
----
-276
-23
-480
-40
-696
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8850
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) / - col1 NOT BETWEEN NULL AND 22 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8850
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - col1 NOT BETWEEN NULL AND 22 - + CAST ( NULL AS INTEGER )
----

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

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

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

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

query I rowsort
SELECT 59 * - col2 AS col0 FROM tab2
----
-1357
-2360
-3422

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT DISTINCT - 32 * CAST( NULL AS SIGNED ) * + 1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT - 32 * CAST ( NULL AS INTEGER ) * + 1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + - col1 + + 91 * 1 AS col1 FROM tab1 WHERE - 19 + - 38 IS NOT NULL
----
44
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT CAST( + col1 AS SIGNED ) + - - col2 col0 FROM tab0
----
100
128
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8859
SELECT CAST ( + col1 AS INTEGER ) + - - col2 col0 FROM tab0
----
100
128
31

query I rowsort
SELECT 99 * + col1 * col1 + + col1 * 63 FROM tab1
----
20286
221652
2790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + - col2 col2 FROM tab1 AS cor0
----
-35
-44
-72

query I rowsort
SELECT 57 + + - ( col2 ) FROM tab2 AS cor0
----
-1
17
34

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8864
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT ALL col1 - 7 * col2 DIV - col2 FROM tab0
----
28
8
88

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL col1 - 7 * col2 / - col2 FROM tab0
----
28
8
88

query I rowsort
SELECT + 84 * + 49 AS col2 FROM tab2
----
4116
4116
4116

onlyif mysql # DIV for integer division: 
query I rowsort label-8868
SELECT ALL - col1 DIV + + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - col1 / + + col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - ( - 32 ) * + + col2 * + - col0 AS col2 FROM tab0
----
-22560
-27840
-307296

query I rowsort
SELECT 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query II rowsort
SELECT 54, col0 AS col2 FROM tab1
----
54
51
54
85
54
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col2 / + 20 FROM tab0 AS cor0 WHERE NOT ( + col0 ) / + col1 * col1 + ( col0 ) >= NULL
----

query I rowsort
SELECT ALL + 28 * - + col0 AS col0 FROM tab2 AS cor0
----
-1288
-1792
-2100

query I rowsort
SELECT + + 40 * + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 66 <> NULL
----

query II rowsort
SELECT DISTINCT 2, + col0 FROM tab1 AS cor0
----
2
51
2
85
2
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8876
SELECT DISTINCT + - col0, col1 + - col0 - col1 DIV 49 AS col1 FROM tab1 cor0
----
-51
-37
-85
-80
-91
-44

skipif mysql # not compatible
query II rowsort label-8876
SELECT DISTINCT + - col0, col1 + - col0 - col1 / 49 AS col1 FROM tab1 cor0
----
-51
-37
-85
-80
-91
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT MAX( DISTINCT + + col0 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT MAX ( DISTINCT + + col0 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE + 20 * - + col1 + + 19 <= ( 68 + + - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE + 20 * - + col1 + + 19 <= ( 68 + + - 53 )
----
NULL

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

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

query I rowsort
SELECT - - 43 + - col0 FROM tab0 cor0
----
-44
-54
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT - col1 / - col1 * + + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-8881
SELECT - col1 / - col1 * + + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 79 + 95 AS col1 FROM tab2 AS cor0
----
174

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 36 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT DISTINCT CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - ( - 30 ) + + 93 AS col0 FROM tab2 AS cor0
----
123

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

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8887
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * - col2 NOT IN ( + col0, + 90 )
----

skipif mysql # not compatible
query III rowsort label-8887
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * - col2 NOT IN ( + col0, + 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL + COUNT( * ) * + 56 + - 37 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + COUNT ( * ) * + 56 + - 37 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
134

query I rowsort
SELECT - 60 + col0 + + 23 FROM tab2
----
27
38
9

query I rowsort
SELECT ALL - 31 + col2 + + - 41 AS col0 FROM tab2
----
-14
-32
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL COUNT( * ) - - 8 col2 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8891
SELECT ALL COUNT ( * ) - - 8 col2 FROM tab1
----
11

query I rowsort
SELECT DISTINCT - ( - col1 ) + - 84 AS col1 FROM tab1
----
-37
-70
-79

query I rowsort
SELECT DISTINCT + 27 FROM tab0 WHERE NOT 91 * col1 + - - col2 + + col2 + - - col1 IS NULL AND NOT ( NULL ) NOT BETWEEN - + 64 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT + COUNT( * ) - 16 AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + COUNT ( * ) - 16 AS col0 FROM tab0
----
-13

query I rowsort
SELECT DISTINCT + 59 FROM tab0 WHERE - 19 > + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 AS col1, + 43 col2 FROM tab2 AS cor0
----
97
43
97
43
97
43

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col0 ) col1, 91 FROM tab0 AS cor0
----
-15
91
-87
91
-97
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * + COUNT( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + + MIN( + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8901
SELECT + + MIN ( + - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + ( 93 ) * - col2 AS col0 FROM tab0 AS cor0
----
-4371
-9207
-930

query I rowsort
SELECT ALL 97 * + 86 AS col0 FROM tab1 AS cor0
----
8342
8342
8342

query I rowsort
SELECT DISTINCT + col1 * + - 19 AS col1 FROM tab0 AS cor0
----
-1539
-19
-399

query I rowsort
SELECT ALL + col2 * + - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT ALL + + col2 DIV - + col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + + col2 / - + col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab1 cor0
----
9

query I rowsort
SELECT DISTINCT 24 * 4 AS col2 FROM tab2, tab1 AS cor0
----
96

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE 93 > NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 39 col0 FROM tab2
----
62
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT 4 + - MIN( DISTINCT - col0 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-8913
SELECT 4 + - MIN ( DISTINCT - col0 ) FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8914
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT + + col2 + + + col2, ( - + 8 ) AS col0 FROM tab0 AS cor0
----
198
-8
20
-8
94
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NOT ( NOT NULL > + 4 - 0 ) ) ) )
----

query I rowsort
SELECT + 77 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / - 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT ALL + 89 DIV + 51 - 52 + + col2 - + 70 * + ( - 87 ) AS col0 FROM tab2
----
6062
6079
6097

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + 89 / + 51 - 52 + + col2 - + 70 * + ( - 87 ) AS col0 FROM tab2
----
6062
6079
6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT + 77 - - col2 AS col1 FROM tab0
----
124
176
87

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * ( - col0 ) * + + 16 col1 FROM tab0 AS cor0
----
-121104
-150544
-3600

query I rowsort
SELECT ALL col2 * - col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8925
SELECT COUNT( * ) * COUNT( - - CAST( NULL AS SIGNED ) ) * + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT COUNT ( * ) * COUNT ( - - CAST ( NULL AS INTEGER ) ) * + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8926
SELECT - MIN ( DISTINCT + 61 ) AS col1 FROM tab1
----
-61

query I rowsort
SELECT ( 41 ) FROM tab0
----
41
41
41

query II rowsort
SELECT + 25 AS col0, col1 AS col2 FROM tab0
----
25
1
25
21
25
81

query I rowsort
SELECT ALL + 59 * col2 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE - col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL + + col0 * + + col2 + - - col1 AS col0 FROM tab0 cor0
----
786
891
9604

query II rowsort
SELECT - col2 AS col1, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

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

query I rowsort
SELECT 59 * - 8 AS col1 FROM tab2 AS cor0
----
-472
-472
-472

query I rowsort
SELECT DISTINCT - 94 + - 39 FROM tab0 AS cor0
----
-133

query I rowsort
SELECT col2 * - col2 + + 11 FROM tab1 AS cor0
----
-3470
-4613
-9205

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8937
SELECT - 53, - CAST( 72 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-53
-72
-53
-72
-53
-72

skipif mysql # not compatible
query II rowsort label-8937
SELECT - 53, - CAST ( 72 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-53
-72
-53
-72
-53
-72

query I rowsort
SELECT + col1 * + 67 * - col0 AS col0 FROM tab0 AS cor0
----
-122409
-6499
-81405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8939
SELECT 95 * COUNT( * ), COUNT( * ) + ( CAST( + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1
----
285
6

skipif mysql # not compatible
query II rowsort label-8939
SELECT 95 * COUNT ( * ), COUNT ( * ) + ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1
----
285
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 12 * - 98 + - 89 + - 2 NOT IN ( - - 79 + + 35 + + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( - - 37 ) + - 11 - + - col1 * - - col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 43 * 95 * ( + - col0 ) AS col2 FROM tab2
----
-187910
-261440
-306375

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT SUM( - col2 ) + MAX( - 59 ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-8943
SELECT SUM ( - col2 ) + MAX ( - 59 ) FROM tab1
----
-282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8944
SELECT DISTINCT + COUNT( * ) DIV + 19 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT + COUNT ( * ) / + 19 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 15 + + 44 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT - 53 * + col0 + - 98 AS col1 FROM tab1 AS cor0 WHERE + col0 - + - 88 * ( + col2 ) IS NOT NULL
----
-2801
-4603
-4921

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + COUNT( * ) + - 82 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8947
SELECT + COUNT ( * ) + - 82 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT ALL 68 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8949
SELECT col1 AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT IN ( + ( + 50 ) * + - col0, - col0, - + 15 )
----

skipif mysql # not compatible
query II rowsort label-8949
SELECT col1 AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT IN ( + ( + 50 ) * + - col0, - col0, - + 15 )
----

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

query I rowsort
SELECT col2 - + + col0 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT + col1 + + + 89 + 24 FROM tab1 AS cor0
----
118
127
160

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

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

query I rowsort
SELECT - + col0 * + 58 * + 85 + - col1 * - col2 * + 20 - - ( - 66 ) AS col0 FROM tab0 AS cor0
----
-424776
-476296
2124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8955
SELECT CAST( col0 AS SIGNED ), 69 AS col2 FROM tab1
----
51
69
85
69
91
69

skipif mysql # not compatible
query II rowsort label-8955
SELECT CAST ( col0 AS INTEGER ), 69 AS col2 FROM tab1
----
51
69
85
69
91
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL COUNT( DISTINCT 59 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL COUNT ( DISTINCT 59 ) FROM tab2
----
1

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

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8959
SELECT + CAST ( + ( - 73 ) AS INTEGER ) col0 FROM tab1
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + 6 + - col1 AS col1 FROM tab0 AS cor0
----
-15
-75
5

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

query II rowsort
SELECT ALL - - col1 AS col0, col1 AS col0 FROM tab1 cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) > + col2 * - + ( - col0 ) + col1 + + + 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT 97 DIV col2 * - + 1 + + col2 col1 FROM tab1 cor0
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8964
SELECT 97 / col2 * - + 1 + + col2 col1 FROM tab1 cor0
----
58
67
95

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 62 AND + 72
----

query II rowsort
SELECT col2 + 64 + + + col2 AS col1, col2 AS col0 FROM tab2 WHERE NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * - col2 col2 FROM tab2
----
-1357
-2360
-3422

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8969
SELECT DISTINCT + ( - + 29 ) DIV - - 90 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + ( - + 29 ) / - - 90 FROM tab1
----
0

query I rowsort
SELECT col0 * + - 12 FROM tab1
----
-1020
-1092
-612

query II rowsort
SELECT col2, + col0 + + + 73 - 8 AS col0 FROM tab2
----
23
111
40
129
58
140

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 WHERE ( - + col0 ) IN ( - col0, + 33, + 46, + - col2 * col0 )
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + - 22, + col0 col2 FROM tab0 AS cor0
----
-109
87
-119
97
-37
15

query I rowsort
SELECT DISTINCT 65 + + col2 FROM tab0 cor0
----
112
164
75

query I rowsort
SELECT - 57 * 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 359fe825e1c1a5790a591e18ef9b5a71

query I rowsort
SELECT 46 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT COUNT( * ) + + 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-8977
SELECT COUNT ( * ) + + 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT + 1 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT - ( - 28 ) AS col0 FROM tab0 AS cor0
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL - 89 * + - COUNT( * ) AS col2 FROM tab0 cor0
----
267

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - 89 * + - COUNT ( * ) AS col2 FROM tab0 cor0
----
267

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 29 col0, col2 * + col0 * + + col1 * col0 + + - ( - col1 ) FROM tab1
----
29
2131380
29
26466123
29
3495758

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) BETWEEN + col2 AND ( ( 40 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col2, + 4 FROM tab2
----
51
4
67
4
77
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8987
SELECT - COUNT( * ) col1, CAST( NULL AS SIGNED ) + - 65 col2 FROM tab1
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8987
SELECT - COUNT ( * ) col1, CAST ( NULL AS INTEGER ) + - 65 col2 FROM tab1
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 19, col2 col2 FROM tab0
----
19
10
19
47
19
99

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

query I rowsort
SELECT ALL + ( - col1 ) * + col1 AS col0 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL + MIN( ALL col2 ) AS col2 FROM tab2 WHERE NULL NOT IN ( - + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + MIN ( ALL col2 ) AS col2 FROM tab2 WHERE NULL NOT IN ( - + 35 )
----
NULL

query I rowsort
SELECT DISTINCT - ( + + col0 ) FROM tab2
----
-46
-64
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + MIN( DISTINCT + col0 ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8994
SELECT + MIN ( DISTINCT + col0 ) col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL - 49 + MIN( + col1 ) FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - 49 + MIN ( + col1 ) FROM tab1 cor0
----
-44

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

query I rowsort
SELECT - + 29 * - 77 AS col0 FROM tab2 AS cor0
----
2233
2233
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT MIN( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8998
SELECT MIN ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - 5 + + col2 - - col0 + - 96 - + 26 * + col2 FROM tab0 AS cor0
----
-1261
-2479
-264

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

skipif mysql # not compatible
query I rowsort label-9000
SELECT - ( + MAX ( - - col0 ) ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT SUM( - 11 ) AS col2 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-9001
SELECT SUM ( - 11 ) AS col2 FROM tab0
----
-33

query I rowsort
SELECT 92 * ( + - col0 ) + - 61 + 7 AS col0 FROM tab0
----
-1434
-8058
-8978

query I rowsort
SELECT 2 + 55 AS col2 FROM tab0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL COUNT( * ) + ( 98 ) AS col2 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL COUNT ( * ) + ( 98 ) AS col2 FROM tab0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT - - CAST( + col1 AS SIGNED ) + col2 AS col0 FROM tab2 WHERE 66 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9005
SELECT - - CAST ( + col1 AS INTEGER ) + col2 AS col0 FROM tab2 WHERE 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT + MAX( ( - col0 ) ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT + MAX ( ( - col0 ) ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT - 52 + - 9 - + + col1 + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT - 52 + - 9 - + + col1 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 23 + col0 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 + + col2 + - 55 AS col2 FROM tab0 AS cor0
----
143
165
3799

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 16 * - + 31 IS NOT NULL
----

query I rowsort
SELECT ALL + - 70 * - - 80 FROM tab2 AS cor0
----
-5600
-5600
-5600

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT col0 < - 23
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT COUNT( ALL - - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT COUNT ( ALL - - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9017
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9017
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT - col0, col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + 9 * 21, col2 * + + col2, - col1 )
----

query I rowsort
SELECT + - 7 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab1 WHERE 6 + + CAST( - col0 AS SIGNED ) * - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab1 WHERE 6 + + CAST ( - col0 AS INTEGER ) * - - col2 IS NULL
----
NULL

query I rowsort
SELECT + ( + + 70 ) * + + col1 AS col2 FROM tab1 AS cor0
----
3290
350
980

query II rowsort
SELECT ALL 74 AS col1, col0 FROM tab1
----
74
51
74
85
74
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <= + 7 + 81 + + 95
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT - 94 + + - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT - 94 + + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = - col2
----

query I rowsort
SELECT - - ( col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 82 * + - col0 - + col2 * - 8, ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 94 ) < col0 - - col0
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - 20 * - - MIN( + col1 ) AS col0 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-9029
SELECT - 20 * - - MIN ( + col1 ) AS col0 FROM tab1
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9030
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 24 * + col1 / + - 46 + col0 + - + col2 + col1 - 14 AND - CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-9030
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 24 * + col1 / + - 46 + col0 + - + col2 + col1 - 14 AND - CAST ( NULL AS INTEGER ) * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT col1 DIV 15 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9031
SELECT col1 / 15 FROM tab0
----
0
1
5

query III rowsort
SELECT * FROM tab0 WHERE NULL >= 26 * - + col1
----

query I rowsort
SELECT + ( - 18 ) FROM tab0
----
-18
-18
-18

query I rowsort
SELECT 41 * - - 67 AS col1 FROM tab2
----
2747
2747
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL COUNT( * ) + + 25 + + 41 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL COUNT ( * ) + + 25 + + 41 FROM tab0 AS cor0
----
69

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - 42 / ( - col2 ) - + - col1 AND NULL
----

query II rowsort
SELECT col1 + - col0, 6 * - col2 * - + 42 AS col1 FROM tab2 cor0
----
-8
14616
13
10080
5
5796

query I rowsort
SELECT - 25 + - col1 FROM tab1
----
-30
-39
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( + 49 ) + - 44 * - col0
----

query I rowsort
SELECT ALL - col2 * + + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT DISTINCT + - 96 DIV col0 col2 FROM tab0 cor0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9041
SELECT DISTINCT + - 96 / col0 col2 FROM tab0 cor0
----
-1
-6
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 col0, 40 FROM tab0
----
80
40
80
40
80
40

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

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE col0 BETWEEN - col1 AND - col0
----

query I rowsort
SELECT col0 * + col2 * - 34 FROM tab1
----
-166464
-170510
-210392

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT - 57 DIV col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT - 57 / col0 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9048
SELECT DISTINCT + 29, COUNT( * ) + + 49 col2 FROM tab0
----
29
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9048
SELECT DISTINCT + 29, COUNT ( * ) + + 49 col2 FROM tab0
----
29
52

query I rowsort
SELECT DISTINCT ( 5 ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 42 NOT BETWEEN + col1 AND + - col1 / - 78 - - 8
----

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

query I rowsort
SELECT col2 + + col1 - col2 + col1 * - col1 * + col0 AS col0 FROM tab2 cor0
----
-119595
-336608
-379379

query I rowsort
SELECT - + 95 + + - col2 FROM tab1 AS cor0
----
-154
-163
-191

query I rowsort
SELECT - 69 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 94 FROM tab2 WHERE NOT - + 3 IS NULL
----
94

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

query II rowsort
SELECT ALL col0 + + 73 + col2, col1 FROM tab2 AS cor0
----
142
51
177
77
206
67

query I rowsort
SELECT - 61 * col2 - - col0 AS col1 FROM tab1 AS cor0
----
-3514
-4057
-5805

query I rowsort
SELECT ALL + 51 + - col0 * + - col1 AS col0 FROM tab2 AS cor0
----
2397
4979
5076

query I rowsort
SELECT ( - col1 ) FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT - ( + col2 ) - - - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-9061
SELECT - ( + col2 ) - - - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-196
-62
-97

query II rowsort
SELECT DISTINCT + 66 + col0, + 67 AS col1 FROM tab1 AS cor0
----
117
67
151
67
157
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * col1 + + col0 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL + 26 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + 26 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT col1 DIV col1 * + 48 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9065
SELECT col1 / col1 * + 48 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

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

query II rowsort
SELECT + 69 * + col2, col0 AS col2 FROM tab0
----
3243
15
6831
97
690
87

query I rowsort
SELECT ALL + ( + 47 ) * - 48 + - 57 AS col2 FROM tab0 AS cor0
----
-2313
-2313
-2313

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + - 92 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 31 >= - col2
----

query I rowsort
SELECT DISTINCT - - 20 AS col1 FROM tab0 cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT COUNT( * ) * - 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT COUNT ( * ) * - 10 FROM tab0
----
-30

query I rowsort
SELECT ALL - col2 + - + col0 + - col1 FROM tab1 AS cor0
----
-149
-161
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT - COUNT( * ) * - + MAX( + 16 ) col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9076
SELECT DISTINCT - COUNT ( * ) * - + MAX ( + 16 ) col0 FROM tab1 AS cor0
----
48

query I rowsort
SELECT + 68 * + + col1 FROM tab1 AS cor0
----
3196
340
952

query I rowsort
SELECT - - col2 FROM tab2 WHERE NULL NOT BETWEEN - col2 AND NULL
----

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

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

query I rowsort
SELECT ALL + 68 * - col0 AS col1 FROM tab0 AS cor0 WHERE - 66 * 5 = col0 - - + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT + COUNT( ALL - + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT + COUNT ( ALL - + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 + 19 col2 FROM tab0 cor0
----
-18

query I rowsort
SELECT - + col1 AS col0 FROM tab0 AS cor0 WHERE col1 * + col2 <> + - 8
----
-1
-21
-81

query I rowsort
SELECT ALL 46 * col1 + - 13 FROM tab2 AS cor0
----
2333
3069
3529

query I rowsort
SELECT ALL 25 - - col1 FROM tab0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT - SUM( DISTINCT - - col0 ) + + - COUNT( * ) * COUNT( * ) FROM tab1
----
-236

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - SUM ( DISTINCT - - col0 ) + + - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-236

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9088
SELECT + 31 - + 40 AS col1, ( - SUM( DISTINCT + - col1 ) ) FROM tab2
----
-9
195

skipif mysql # not compatible
query II rowsort label-9088
SELECT + 31 - + 40 AS col1, ( - SUM ( DISTINCT + - col1 ) ) FROM tab2
----
-9
195

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 = ( + 8 )
----

query I rowsort
SELECT 23 - - - ( - 46 ) FROM tab0
----
69
69
69

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

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

query I rowsort
SELECT - 82 FROM tab2 AS cor0 WHERE NOT ( 84 ) IS NULL
----
-82
-82
-82

query I rowsort
SELECT + - col1 * col1 + - col2 * + + 90 AS col0 FROM tab0 AS cor0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9094
SELECT + CAST( + + col1 AS SIGNED ) AS col0, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

skipif mysql # not compatible
query II rowsort label-9094
SELECT + CAST ( + + col1 AS INTEGER ) AS col0, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

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

query II rowsort
SELECT DISTINCT - col0 * - 82 * - + 45 AS col1, col0 * col1 - + col2 FROM tab2 AS cor0
----
-169740
2323
-236160
4888
-276750
4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, 53 + - col0 - + col0 AS col0 FROM tab0 AS cor0
----
1
-141
21
-121
81
23

query I rowsort
SELECT - - col2 * + + col2 AS col1 FROM tab2 AS cor0
----
1600
3364
529

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT ALL 31 * + + col2 * + col0 AS col2 FROM tab0
----
21855
26970
297693

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL COUNT( * ) * + - COUNT( * ) * 23 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * 23 FROM tab2
----
-207

query I rowsort
SELECT DISTINCT 49 * - col0 AS col2 FROM tab2
----
-2254
-3136
-3675

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT DISTINCT 18 DIV - col2 * + - 61 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT 18 / - col2 * + - 61 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9104
SELECT 23 * + 15 * + - 99 AS col1, + MIN( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( - col0 ) <> + CAST( - - col1 AS SIGNED ) * col1 * 50
----
-34155
NULL

skipif mysql # not compatible
query II rowsort label-9104
SELECT 23 * + 15 * + - 99 AS col1, + MIN ( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( - col0 ) <> + CAST ( - - col1 AS INTEGER ) * col1 * 50
----
-34155
NULL

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

query I rowsort
SELECT DISTINCT - - col2 * - - 49 FROM tab0 AS cor0
----
2303
4851
490

query I rowsort
SELECT - col0 + - + 21 FROM tab1 AS cor0 WHERE + 96 + + col1 IS NOT NULL
----
-106
-112
-72

query I rowsort
SELECT ALL 57 + + col0 AS col1 FROM tab1 AS cor0
----
108
142
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - COUNT( * ) + - - 31 AS col2 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9109
SELECT - COUNT ( * ) + - - 31 AS col2 FROM tab0 cor0
----
28

query I rowsort
SELECT 7 + - col2 AS col0 FROM tab2 AS cor0
----
-16
-33
-51

query I rowsort
SELECT DISTINCT 89 * + + 29 AS col0 FROM tab0
----
2581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT DISTINCT - + CAST( + 71 AS SIGNED ) / 91 FROM tab1 WHERE NOT + col2 * + CAST( col0 AS SIGNED ) * col2 - - 64 NOT BETWEEN - 64 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - + CAST ( + 71 AS INTEGER ) / 91 FROM tab1 WHERE NOT + col2 * + CAST ( col0 AS INTEGER ) * col2 - - 64 NOT BETWEEN - 64 AND NULL
----

query I rowsort
SELECT 54 + - + col2 FROM tab2 WHERE ( NOT 58 = + 43 )
----
-4
14
31

query I rowsort
SELECT - col2 - + - col0 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL - + col1 + + 78 FROM tab2 AS cor0
----
1
11
27

query I rowsort
SELECT DISTINCT col1 + - - 87 FROM tab1 AS cor0
----
101
134
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT + - SUM( ALL - + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + - SUM ( ALL - + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL - 81 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL - 81 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT - col2 * - col0 + - 70 FROM tab2
----
2490
4280
988

query I rowsort
SELECT ALL + col2 * - - col0 - col0 AS col0 FROM tab2
----
1012
2496
4275

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 17 * + col0 * + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL 22 + + col0 * - col2 FROM tab2
----
-1036
-2538
-4328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9124
SELECT DISTINCT COUNT( * ) DIV + MAX( + 46 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT COUNT ( * ) / + MAX ( + 46 ) AS col2 FROM tab0
----
0

query II rowsort
SELECT DISTINCT + col2 AS col0, 36 FROM tab2
----
23
36
40
36
58
36

query I rowsort
SELECT col0 * + - 19 AS col1 FROM tab2
----
-1216
-1425
-874

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT ALL ( - 80 ) DIV + - 61 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL ( - 80 ) / + - 61 AS col0 FROM tab0
----
1
1
1

query II rowsort
SELECT - 95 AS col1, col2 + + + 85 AS col1 FROM tab2 AS cor0
----
-95
108
-95
125
-95
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT - - COUNT( * ) * 91 FROM tab0 WHERE NOT + 40 + + 35 IS NULL
----
273

skipif mysql # not compatible
query I rowsort label-9130
SELECT - - COUNT ( * ) * 91 FROM tab0 WHERE NOT + 40 + + 35 IS NULL
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - MAX( - 41 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
41

skipif mysql # not compatible
query I rowsort label-9131
SELECT - MAX ( - 41 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - 7 + SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT - 7 + SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - - col0
----
NULL

query I rowsort
SELECT + col2 * col1 + + col1 + - + 90 AS col0 FROM tab2 AS cor0
----
1134
3067
3863

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 - col2 AND - col2 / - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - 28 * COUNT( DISTINCT 73 ) AS col2 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-9136
SELECT - 28 * COUNT ( DISTINCT 73 ) AS col2 FROM tab1
----
-28

query I rowsort
SELECT + 94 * + + 99 FROM tab2
----
9306
9306
9306

query II rowsort
SELECT + 63 AS col2, col2 FROM tab0
----
63
10
63
47
63
99

query II rowsort
SELECT ALL - 75, col2 FROM tab1
----
-75
59
-75
68
-75
96

query I rowsort
SELECT col2 + - 86 FROM tab0 WHERE ( col1 ) BETWEEN ( - 95 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT COUNT( * ) + SUM( ALL + col1 ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9141
SELECT COUNT ( * ) + SUM ( ALL + col1 ) FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT ALL - 82 DIV col1 + - col2 AS col1 FROM tab1
----
-101
-69
-75

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - 82 / col1 + - col2 AS col1 FROM tab1
----
-101
-69
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT - ( - ( AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) ) - 66 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT - ( - ( AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) ) - 66 AS col1 FROM tab2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT + col1 * + CAST( 28 AS SIGNED ) AS col0 FROM tab1
----
1316
140
392

skipif mysql # not compatible
query I rowsort label-9147
SELECT + col1 * + CAST ( 28 AS INTEGER ) AS col0 FROM tab1
----
1316
140
392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT ALL - CAST( NULL AS SIGNED ) / 89 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL - CAST ( NULL AS INTEGER ) / 89 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT - col0 + 64 * 77 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col0 + 64 * 77 IS NULL
----
3

query I rowsort
SELECT + 5 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT MIN( col0 ) / COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN ( col0 / + 12 + - col2 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT MIN ( col0 ) / COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN ( col0 / + 12 + - col2 ) AND ( NULL )
----
NULL

query I rowsort
SELECT ALL - col1 * - 80 FROM tab2
----
4080
5360
6160

query I rowsort
SELECT ALL col0 * - 67 AS col1 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT 58 - 90 * col1 AS col2 FROM tab2
----
-4532
-5972
-6872

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT 15 * MIN( col0 ) - - 59 col2 FROM tab2
----
749

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9155
SELECT 15 * MIN ( col0 ) - - 59 col2 FROM tab2
----
749

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9156
SELECT col1 + col2 col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - 98 * + CAST ( NULL AS INTEGER ) + - col2 * col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT - 66 FROM tab2 WHERE + 51 > ( CAST( NULL AS SIGNED ) + col0 / + 12 )
----

skipif mysql # not compatible
query I rowsort label-9157
SELECT - 66 FROM tab2 WHERE + 51 > ( CAST ( NULL AS INTEGER ) + col0 / + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ( COUNT( * ) ) AS col1 FROM tab0 WHERE NOT 40 < + col2
----
1

skipif mysql # not compatible
query I rowsort label-9158
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT 40 < + col2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - 82 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 24 * - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + AVG ( DISTINCT + col1 ) FROM tab2 WHERE col0 / ( + col2 ) NOT BETWEEN - 96 AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT col2 + ( + col0 ) DIV - col0 AS col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-9163
SELECT col2 + ( + col0 ) / - col0 AS col0 FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - COUNT( * ) * COUNT( DISTINCT + col2 ) + - 8 AS col0 FROM tab2 cor0 WHERE NOT 83 + col1 BETWEEN ( NULL ) AND ( NULL )
----
-8

skipif mysql # not compatible
query I rowsort label-9164
SELECT - COUNT ( * ) * COUNT ( DISTINCT + col2 ) + - 8 AS col0 FROM tab2 cor0 WHERE NOT 83 + col1 BETWEEN ( NULL ) AND ( NULL )
----
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9166
SELECT + CAST( 44 AS SIGNED ) DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9166
SELECT + CAST ( 44 AS INTEGER ) / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT + 38 * - col2 + 38 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1482
-2166
-836

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT ALL + 75 DIV ( 90 * 89 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL + 75 / ( 90 * 89 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9171
SELECT + CAST( col0 AS SIGNED ) DIV col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9171
SELECT + CAST ( col0 AS INTEGER ) / col2 FROM tab2
----
1
1
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL - MAX( + 99 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - MAX ( + 99 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-297

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * - col1 + col0 * - 81 col1 FROM tab0 cor0
----
-7371
-7933
-8643

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + MIN( - ( - col2 ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-9177
SELECT + MIN ( - ( - col2 ) ) FROM tab1 cor0
----
59

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col1 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL MIN( - 64 ) * + 11 - AVG ( DISTINCT + col2 + CAST( NULL AS SIGNED ) ) col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 63 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9183
SELECT ALL MIN ( - 64 ) * + 11 - AVG ( DISTINCT + col2 + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 63 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) NOT IN ( 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE - col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= NULL
----

query I rowsort
SELECT - + col1 + + + col0 AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - col1 + col0 FROM tab0 AS cor0 WHERE ( col2 * col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL 2 + + COUNT( * ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL 2 + + COUNT ( * ) FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT ALL + - CAST( + 47 AS SIGNED ) * - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-423

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + - CAST ( + 47 AS INTEGER ) * - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL - - 29 + 92 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dfa0f831d17333454e95a98d4cb1bd0f

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT COUNT( * ) col2 FROM tab1, tab2 AS cor0 WHERE NOT NULL < - 30
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9200
SELECT COUNT ( * ) col2 FROM tab1, tab2 AS cor0 WHERE NOT NULL < - 30
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - ( + 17 ) + col0 * + 87 ) <= ( + ( - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT 81 - col2 * + CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-4815
-4934
-6107

skipif mysql # not compatible
query I rowsort label-9202
SELECT 81 - col2 * + CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-4815
-4934
-6107

query I rowsort
SELECT + + 57 + 51 AS col1 FROM tab0 AS cor0
----
108
108
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL CAST( - - 77 AS SIGNED ) * ( col1 ) - - col1 AS col0 FROM tab1 AS cor0
----
1092
3666
390

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL CAST ( - - 77 AS INTEGER ) * ( col1 ) - - col1 AS col0 FROM tab1 AS cor0
----
1092
3666
390

query I rowsort
SELECT + 62 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9207
SELECT DISTINCT - 87 DIV col2 + + 35 FROM tab0 AS cor0
----
27
34
35

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - 87 / col2 + + 35 FROM tab0 AS cor0
----
27
34
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9208
SELECT - 39 + - col2 FROM tab2 AS cor0 WHERE NOT ( col0 * + + CAST( ( - col1 ) AS DECIMAL ) ) BETWEEN col1 AND NULL
----
-62
-79
-97

skipif mysql # not compatible
query I rowsort label-9208
SELECT - 39 + - col2 FROM tab2 AS cor0 WHERE NOT ( col0 * + + CAST ( ( - col1 ) AS REAL ) ) BETWEEN col1 AND NULL
----
-62
-79
-97

query I rowsort
SELECT ALL + + col0 * + col0 * 87 + + col2 AS col2 FROM tab1 AS cor0
----
226383
628634
720515

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT + col1 DIV - + 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9210
SELECT + col1 / - + 92 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT DISTINCT - col0 DIV col2 * - - col1 AS col2 FROM tab0 cor0
----
-168
0

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT - col0 / col2 * - - col1 AS col2 FROM tab0 cor0
----
-168
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 - + col1 + - col1 ) BETWEEN ( 28 ) AND ( col0 / - col0 + + col1 * - 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 9 * 48 FROM tab2
----
432
432
432

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

query I rowsort
SELECT ALL - 37 * + + col0 AS col0 FROM tab0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + 10 * - - SUM( + + col0 ) col2 FROM tab1
----
2270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9217
SELECT ALL + 10 * - - SUM ( + + col0 ) col2 FROM tab1
----
2270

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - 80 <= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT - + 82 * - col2 * + ( - CAST( 7 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-26978
-56826
-5740

skipif mysql # not compatible
query I rowsort label-9219
SELECT - + 82 * - col2 * + ( - CAST ( 7 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-26978
-56826
-5740

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9220
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 6 * CAST( col0 AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9220
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 6 * CAST ( col0 AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab1 WHERE col1 + - col0 * col2 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab1 WHERE col1 + - col0 * col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 20 BETWEEN - - col2 AND + - 43 * + 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL COUNT( * ) * 31 AS col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL COUNT ( * ) * 31 AS col0 FROM tab0 AS cor0
----
93

query II rowsort
SELECT ALL col2 + + 55 * col2, + 48 AS col1 FROM tab2 AS cor0
----
1288
48
2240
48
3248
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9227
SELECT + col0 DIV - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - - col0 AND NULL
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9228
SELECT DISTINCT + 22 * + 90 / - CAST( NULL AS SIGNED ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9228
SELECT DISTINCT + 22 * + 90 / - CAST ( NULL AS INTEGER ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT + COUNT( * ) * - 18 + 36 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT + COUNT ( * ) * - 18 + 36 FROM tab1 AS cor0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT - COUNT( * ) + + - MIN( + - col2 ) - COUNT( * ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9232
SELECT - COUNT ( * ) + + - MIN ( + - col2 ) - COUNT ( * ) FROM tab1 AS cor0
----
90

query II rowsort
SELECT DISTINCT - 83 + - ( col2 ) AS col1, - col2 * - 13 FROM tab1 AS cor0
----
-142
767
-151
884
-179
1248

query I rowsort
SELECT col0 + + - 9 FROM tab0 AS cor0
----
6
78
88

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

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

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

query II rowsort
SELECT DISTINCT + + col2, - col0 * + 77 FROM tab0 AS cor0
----
10
-6699
47
-1155
99
-7469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT ALL + + CAST( 22 AS SIGNED ) + + ( - SUM( DISTINCT - 70 ) ) + - 42 AS col1 FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + + CAST ( 22 AS INTEGER ) + + ( - SUM ( DISTINCT - 70 ) ) + - 42 AS col1 FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - + ( - MIN( ALL + - 37 ) ) + - - COUNT( * ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - + ( - MIN ( ALL + - 37 ) ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-34

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

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

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

skipif mysql # not compatible
query I rowsort label-9241
SELECT 16 * + COUNT ( * ) / + - COUNT ( * ) FROM tab1
----
-16

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE 17 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 77 )
----

query I rowsort
SELECT ALL 76 + + col1 + - + col0 FROM tab2 AS cor0
----
68
81
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT COUNT( * ) - - COUNT( ALL 10 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT COUNT ( * ) - - COUNT ( ALL 10 ) AS col0 FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 85 >= - - 72 + + col0 AND ( 60 * - col0 * ( col1 ) ) < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9247
SELECT * FROM tab0 WHERE NULL <> + + ( - col0 ) * 81 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9247
SELECT * FROM tab0 WHERE NULL <> + + ( - col0 ) * 81 * CAST ( NULL AS REAL )
----

query I rowsort
SELECT - 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT + ( - 97 ) * - - ( MAX( col1 ) ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT + ( - 97 ) * - - ( MAX ( col1 ) ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 <> col2
----
NULL

query I rowsort
SELECT ALL col0 * - 38 FROM tab1 AS cor0
----
-1938
-3230
-3458

query I rowsort
SELECT DISTINCT - - 26 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 44, - col0 * + - col1 - 6 )
----

query I rowsort
SELECT - - col0 * - col1 + 12 + - col0 FROM tab1 AS cor0
----
-4356
-498
-753

query I rowsort
SELECT - col0 + col2 AS col2 FROM tab0 cor0 WHERE NOT ( NOT + + col2 IS NULL )
----

query I rowsort
SELECT + col2 * - + col1 AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL COUNT( * ) * - 24 AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL COUNT ( * ) * - 24 AS col2 FROM tab1
----
-72

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE NOT NULL > NULL
----

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

skipif mysql # not compatible
query I rowsort label-9257
SELECT CAST ( + 35 AS INTEGER ) FROM tab1
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT + MIN( DISTINCT - ( col2 ) ) * - 27 * - COUNT( - col2 ) FROM tab1
----
-7776

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + MIN ( DISTINCT - ( col2 ) ) * - 27 * - COUNT ( - col2 ) FROM tab1
----
-7776

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 col0, + ( - col1 ) + col2 AS col1 FROM tab2 WHERE + 96 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL - 37 + COUNT( * ) + + 56 col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9264
SELECT ALL - 37 + COUNT ( * ) + + 56 col2 FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT - + CAST( col1 AS SIGNED ) * 3 FROM tab1 AS cor0
----
-141
-15
-42

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) * 3 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT DISTINCT - + 27 + + col2 AS col2 FROM tab0 AS cor0 WHERE - 82 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + SUM( ALL - 16 ) AS col0 FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9269
SELECT + SUM ( ALL - 16 ) AS col0 FROM tab0 cor0
----
-48

query I rowsort
SELECT DISTINCT col1 + - 99 + + col2 FROM tab2
----
-25
18
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9271
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) col1 FROM tab1 AS cor0
----
6

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

query I rowsort
SELECT ALL + col0 - 28 FROM tab2
----
18
36
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9274
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + col0 ) OR NULL NOT BETWEEN - col1 / + col1 + col0 * + + 67 AND + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - COUNT( * ) * 67 * + + COUNT( * ) FROM tab0 cor0
----
-603

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - COUNT ( * ) * 67 * + + COUNT ( * ) FROM tab0 cor0
----
-603

query I rowsort
SELECT ALL + - 23 AS col0 FROM tab1 AS cor0
----
-23
-23
-23

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

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

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

query II rowsort
SELECT ALL col0, + 12 + 63 AS col1 FROM tab1 AS cor0
----
51
75
85
75
91
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT DISTINCT col0 DIV + 88 + + col0 * - col2 FROM tab1 AS cor0 WHERE NOT ( - 16 * - 26 ) IS NULL
----
-4896
-5015
-6187

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT col0 / + 88 + + col0 * - col2 FROM tab1 AS cor0 WHERE NOT ( - 16 * - 26 ) IS NULL
----
-4896
-5015
-6187

query II rowsort
SELECT DISTINCT - col1 AS col0, + col0 - - col1 AS col1 FROM tab0 AS cor0
----
-1
98
-21
108
-81
96

query II rowsort
SELECT + col0, + 29 FROM tab2 AS cor0
----
46
29
64
29
75
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - 85 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - ( - 68 ) * - col2 FROM tab1 AS cor0
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT COUNT( - - 37 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT COUNT ( - - 37 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col0 / + col0 * - + col0 / + col0 + ( col1 ) * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) * + col0 + - 78 col1 FROM tab2
----
-1136
-2638
-4428

query I rowsort
SELECT ( + 75 ) AS col2 FROM tab1
----
75
75
75

query I rowsort
SELECT 9 * - 94 * - col0 AS col1 FROM tab2
----
38916
54144
63450

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9294
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + col2 * - CAST( + - 14 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9294
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + col2 * - CAST ( + - 14 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9295
SELECT col1 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT col1 + - + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9296
SELECT 33 * - col2 + 72 + - + col0 - - 18 + - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT 33 * - col2 + 72 + - + col0 - - 18 + - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col0 * + 78 < - col0 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + + 75 col2 FROM tab1 cor0
----
165
165
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT - + 80 + - CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-131
-165
-171

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT - + 80 + - CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-131
-165
-171

query II rowsort
SELECT ALL col0 + + 96 AS col0, 38 AS col2 FROM tab0
----
111
38
183
38
193
38

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

skipif mysql # not compatible
query I rowsort label-9301
SELECT - MIN ( DISTINCT - col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT DISTINCT 27 - col0 * + - col2 * + + col1 - 95 AS col0 FROM tab0
----
18202
57037
9535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - col2 ) col2, col2 * - col1 FROM tab0
----
10
-210
47
-3807
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT DISTINCT col1 DIV col1 DIV + 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT col1 / col1 / + 85 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9305
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col0 + + - CAST( NULL AS SIGNED ) / - col0
----

skipif mysql # not compatible
query III rowsort label-9305
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col0 + + - CAST ( NULL AS INTEGER ) / - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 - + col2 col1 FROM tab0
----
658
860
9504

query II rowsort
SELECT ALL - col0 - - col2 AS col1, 14 FROM tab0 AS cor0
----
-77
14
2
14
32
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ( - + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9308
SELECT ( - + COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT ALL + 90 * + 12 DIV + + 4 - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
261

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + 90 * + 12 / + + 4 - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
261

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 42 + - col0 * - + col1 + + ( - - col0 ) < 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT - + MIN( - + 45 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9311
SELECT - + MIN ( - + 45 ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT ALL + - 76 AS col0 FROM tab2 cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT SUM( ALL + col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-9313
SELECT SUM ( ALL + col0 ) AS col1 FROM tab2 cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT - + MIN( - 14 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9317
SELECT - + MIN ( - 14 ) FROM tab0 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT + + 57 DIV + 74 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT + + 57 / + 74 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT + col2 * - + CAST( - - col2 AS SIGNED ) FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-9319
SELECT + col2 * - + CAST ( - - col2 AS INTEGER ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL - - COUNT( * ) col0 FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9320
SELECT ALL - - COUNT ( * ) col0 FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL CAST( - + 73 AS SIGNED ) FROM tab2
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL CAST ( - + 73 AS INTEGER ) FROM tab2
----
-73
-73
-73

query II rowsort
SELECT ALL ( + - col0 ) AS col0, 82 FROM tab1
----
-51
82
-85
82
-91
82

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT 47 * - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT 47 * - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 7 + col1 FROM tab2 cor0
----
44
60
70

query II rowsort
SELECT + col1, col0 AS col0 FROM tab1 cor0
----
14
51
47
91
5
85

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 + + col1 col0 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT - col0 + 33 FROM tab1 AS cor0
----
-18
-52
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9334
SELECT - COUNT( * ) AS col1, - ( - 26 ) * - COUNT( * ) FROM tab0 AS cor0 WHERE + CAST( - col2 AS SIGNED ) - - col1 <> - col0 AND ( 5 ) IS NOT NULL
----
-3
-78

skipif mysql # not compatible
query II rowsort label-9334
SELECT - COUNT ( * ) AS col1, - ( - 26 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) - - col1 <> - col0 AND ( 5 ) IS NOT NULL
----
-3
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT - COUNT( * ) + + - SUM( - - col2 ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-9336
SELECT - COUNT ( * ) + + - SUM ( - - col2 ) FROM tab2 AS cor0
----
-124

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( + 22 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + + ( - - 66 ) + - col2 * 45 AS col0 FROM tab0 cor0
----
2079
210
987

query II rowsort
SELECT DISTINCT - col0, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT + col1 * - ( col2 ) + col1 FROM tab2 cor0
----
-1122
-3003
-3819

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

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

query I rowsort
SELECT DISTINCT + - ( col0 ) * + + 98 * 91 + - 50 FROM tab0 cor0
----
-133820
-775916
-865096

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL - MIN( - col2 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - MIN ( - col2 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-288

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9344
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab2 cor0 WHERE - 38 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9344
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab2 cor0 WHERE - 38 IS NULL
----

query II rowsort
SELECT ALL - + col1 * + - col2, col2 FROM tab1 AS cor0
----
1344
96
295
59
3196
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( - ( col0 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT DISTINCT - SUM( DISTINCT + col1 ) + + 56 FROM tab2 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT - SUM ( DISTINCT + col1 ) + + 56 FROM tab2 AS cor0
----
-139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9349
SELECT - + col1 * col0 * 49 * - + col0 DIV + - CAST( - + col0 AS SIGNED ) + + 90 + + col1 col0 FROM tab1 AS cor0
----
20920
209710
35090

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9349
SELECT - + col1 * col0 * 49 * - + col0 / + - CAST ( - + col0 AS INTEGER ) + + 90 + + col1 col0 FROM tab1 AS cor0
----
20920
209710
35090

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

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-3

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND + - col0 * + 21
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT COUNT( * ) * - COUNT( ALL + + 31 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9355
SELECT COUNT ( * ) * - COUNT ( ALL + + 31 ) AS col2 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT - ( - SUM( - col0 ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL OR NULL = NULL
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9356
SELECT DISTINCT - ( - SUM ( - col0 ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL OR NULL = NULL
----
-185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT - ( - + COUNT( DISTINCT col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - ( - + COUNT ( DISTINCT col1 ) ) FROM tab0
----
3

query I rowsort
SELECT + ( + 45 ) FROM tab2
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + SUM( ALL + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9361
SELECT + SUM ( ALL + col2 ) AS col1 FROM tab2
----
121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + ( MAX( DISTINCT + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9363
SELECT + ( MAX ( DISTINCT + col2 ) ) FROM tab1
----
96

query I rowsort
SELECT - 11 AS col2 FROM tab1 AS cor0 WHERE - 70 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT COUNT( DISTINCT 88 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9365
SELECT COUNT ( DISTINCT 88 ) FROM tab0 AS cor0
----
1

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col1 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9368
SELECT - MIN( DISTINCT + - CAST( col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9368
SELECT - MIN ( DISTINCT + - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9369
SELECT ALL 65, col1 / + col0 + - - col0 * - CAST( NULL AS SIGNED ) * 41 FROM tab2 AS cor0 WHERE ( NULL ) <> + col2 * + + 3
----

skipif mysql # not compatible
query II rowsort label-9369
SELECT ALL 65, col1 / + col0 + - - col0 * - CAST ( NULL AS INTEGER ) * 41 FROM tab2 AS cor0 WHERE ( NULL ) <> + col2 * + + 3
----

query I rowsort
SELECT ALL + + 25 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT - - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ( MAX( ALL + col2 ) ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9373
SELECT ( MAX ( ALL + col2 ) ) col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - ( - + 28 ) FROM tab1 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * - col1 + - + col0 + - col1 * + col0 + - col1 * + col0 col1 FROM tab2 AS cor0
----
-2902
-7148
-7713

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9376
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 IN ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9376
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 IN ( - + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col2 * 92 FROM tab2 cor0
----
-2116
-3680
-5336

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT ALL col0 + - - 88 DIV col1 FROM tab0 AS cor0
----
16
185
91

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL col0 + - - 88 / col1 FROM tab0 AS cor0
----
16
185
91

query I rowsort
SELECT + col2 FROM tab2 WHERE - 87 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL col1 * + + CAST ( NULL AS INTEGER ) * col0 * - 78 + col0 - + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * + - col0 - col2 * - 7 FROM tab1
----
-1929
-6812
-7805

query I rowsort
SELECT ALL + - 11 * + ( + - col2 ) FROM tab2 WHERE NOT - 41 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + - 78 AS col1 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT DISTINCT col1 * - 62 AS col0 FROM tab2
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: 
query II rowsort label-9385
SELECT DISTINCT + 15 * + - 28 + - + COUNT( * ) AS col1, MIN( ALL - + 11 ) FROM tab0 AS cor0
----
-423
-11

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT + 15 * + - 28 + - + COUNT ( * ) AS col1, MIN ( ALL - + 11 ) FROM tab0 AS cor0
----
-423
-11

query I rowsort
SELECT + - 70 FROM tab2 cor0
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT DISTINCT + + 84 DIV col2 DIV col2 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + + 84 / col2 / col2 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - 78 * + + col2 * col0 + + - col2 FROM tab0 AS cor0
----
-55037
-67870
-749133

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * col2 < - col1 OR NULL BETWEEN col2 * 85 - col1 + + col0 AND + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9390
SELECT * FROM tab1 WHERE NOT + - col2 >= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9390
SELECT * FROM tab1 WHERE NOT + - col2 >= CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9391
SELECT ALL * FROM tab2 WHERE NULL < + col1 * + col1 + col2 * + - CAST( + CAST( col1 AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9391
SELECT ALL * FROM tab2 WHERE NULL < + col1 * + col1 + col2 * + - CAST ( + CAST ( col1 AS INTEGER ) AS REAL )
----

query I rowsort
SELECT ALL - + col0 * col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - SUM( - 42 ) AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9393
SELECT - SUM ( - 42 ) AS col2 FROM tab1
----
126

query I rowsort
SELECT ALL - col0 * + - col2 AS col2 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * + + 30 col1 FROM tab2 cor0
----
-450

query I rowsort
SELECT ALL - 65 * + - col1 FROM tab0 cor0
----
1365
5265
65

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

skipif mysql # not compatible
query I rowsort label-9397
SELECT + + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
3

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

query I rowsort
SELECT + ( + ( - col0 ) ) * - col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL - 2 + col1 FROM tab2 AS cor0
----
49
65
75

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

query I rowsort
SELECT - ( 86 ) FROM tab0
----
-86
-86
-86

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT ( ( + col1 ) ) + - col2 * col1 / - 17 NOT IN ( - 50 + + + col0 + + + ( + col0 ) )
----

query I rowsort
SELECT DISTINCT - col1 + - ( + + col0 ) AS col1 FROM tab0 WHERE NOT + - 47 NOT BETWEEN - col0 AND + col0
----
-108
-98

query I rowsort
SELECT col0 + - - 33 AS col0 FROM tab2
----
108
79
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT DISTINCT col1 DIV - ( + col0 ) FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT col1 / - ( + col0 ) FROM tab0 AS cor0
----
-5
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + 22 = 37 ) )
----

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

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

query I rowsort
SELECT 81 + - col0 FROM tab1 AS cor0
----
-10
-4
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT - - col2 + ( + + col1 ) DIV col1 AS col1 FROM tab2 cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-9410
SELECT - - col2 + ( + + col1 ) / col1 AS col1 FROM tab2 cor0
----
24
41
59

query I rowsort
SELECT DISTINCT - - ( + col1 ) + - - col0 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT ALL + col2 AS col0, 20 AS col1 FROM tab0
----
10
20
47
20
99
20

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 = - + 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - - col0 * - 74
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + col0 = NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL COUNT ( - 72 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL ( - - col0 ) FROM tab1 WHERE NOT 16 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT - + SUM( ALL - 67 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
603

skipif mysql # not compatible
query I rowsort label-9419
SELECT - + SUM ( ALL - 67 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT COUNT( - 21 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9420
SELECT COUNT ( - 21 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9421
SELECT DISTINCT - - COUNT( col2 ) DIV 55 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT - - COUNT ( col2 ) / 55 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 94 * col2 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT DISTINCT - - col1 + + 7 AS col2 FROM tab2 AS cor0
----
58
74
84

query I rowsort
SELECT - col0 + - + col2 + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL ( - 95 ) * + 3 + MIN( + - 10 ) FROM tab1 cor0
----
-295

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL ( - 95 ) * + 3 + MIN ( + - 10 ) FROM tab1 cor0
----
-295

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - COUNT( * ) * + + 46 * - MIN( 16 ) AS col1 FROM tab0
----
2208

skipif mysql # not compatible
query I rowsort label-9427
SELECT - COUNT ( * ) * + + 46 * - MIN ( 16 ) AS col1 FROM tab0
----
2208

query I rowsort
SELECT ALL + ( - 72 ) * 5 FROM tab0
----
-360
-360
-360

query I rowsort
SELECT col1 FROM tab2 WHERE col0 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT DISTINCT + col1 DIV + - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT + col1 / + - col1 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT - 50 DIV col2 * - - col0 AS col1 FROM tab0 cor0
----
-15
-435
0

skipif mysql # not compatible
query I rowsort label-9431
SELECT - 50 / col2 * - - col0 AS col1 FROM tab0 cor0
----
-15
-435
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * 76 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT - MAX( - col1 ) - - ( 57 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT - MAX ( - col1 ) - - ( 57 ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT + + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ( + + col2 ) + col2 FROM tab1
----
118
136
192

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

query I rowsort
SELECT 42 + - + 60 AS col2 FROM tab2 WHERE NULL IN ( + - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - + 31 + col2 * - + 73 + - + col1 col0 FROM tab2 AS cor0
----
-1013
-1976
-304

query I rowsort
SELECT + ( - + 88 ) * - + 5 - - col0 AS col0 FROM tab2 AS cor0
----
486
504
515

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT + 74 DIV + col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-9448
SELECT + 74 / + col1 FROM tab1
----
1
14
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9449
SELECT - 41 DIV MIN( - + ( - col1 ) ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-9449
SELECT - 41 / MIN ( - + ( - col1 ) ) AS col0 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - SUM( DISTINCT - - ( - col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9450
SELECT - SUM ( DISTINCT - - ( - col0 ) ) FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 15, col1 col2 FROM tab0
----
15
1
15
21
15
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9452
SELECT + + COUNT( * ), ( + COUNT( * ) ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9452
SELECT + + COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 cor0
----
3
3

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

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

query II rowsort
SELECT - col0 AS col2, 93 AS col0 FROM tab2 AS cor0
----
-46
93
-64
93
-75
93

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

query I rowsort
SELECT - 58 * col2 FROM tab2 cor0
----
-1334
-2320
-3364

query I rowsort
SELECT ALL col0 * 88 FROM tab1
----
4488
7480
8008

query I rowsort
SELECT ALL - + 87 AS col0 FROM tab1 WHERE + + col1 IS NOT NULL
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT ALL col0 * 92 DIV - + col0 + + col0 FROM tab1
----
-1
-41
-7

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL col0 * 92 / - + col0 + + col0 FROM tab1
----
-1
-41
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-9460
SELECT DISTINCT + 11 DIV + col2, col1 * - - col1 AS col0 FROM tab0
----
0
1
0
6561
1
441

skipif mysql # not compatible
query II rowsort label-9460
SELECT DISTINCT + 11 / + col2, col1 * - - col1 AS col0 FROM tab0
----
0
1
0
6561
1
441

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT - col0 + col2 DIV - col1 + col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9461
SELECT - col0 + col2 / - col1 + col0 FROM tab1
----
-1
-11
-6

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

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

query II rowsort
SELECT DISTINCT - ( + 66 ) AS col1, 50 AS col2 FROM tab1
----
-66
50

query I rowsort
SELECT DISTINCT col0 * + + 89 AS col1 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT 16 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

skipif mysql # not compatible
query I rowsort label-9466
SELECT COUNT ( * ) + + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON - + 73 IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT - + col1 IN ( + 36 - - 41, col2 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT - + col1 IN ( + 36 - - 41, col2 + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - 94 * - - 24 + + - COUNT( * ) * 41 AS col0 FROM tab2 AS cor0
----
-2379

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 94 * - - 24 + + - COUNT ( * ) * 41 AS col0 FROM tab2 AS cor0
----
-2379

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9470
SELECT + + CAST( CAST( - 65 AS DECIMAL ) AS SIGNED ) * 2 FROM tab1 AS cor0
----
-130
-130
-130

skipif mysql # not compatible
query I rowsort label-9470
SELECT + + CAST ( CAST ( - 65 AS REAL ) AS INTEGER ) * 2 FROM tab1 AS cor0
----
-130
-130
-130

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) > col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT DISTINCT - 11 AS col0, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-11
-3

skipif mysql # not compatible
query II rowsort label-9473
SELECT DISTINCT - 11 AS col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-11
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT DISTINCT + - COUNT( * ) AS col1, 46 FROM tab1 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-9474
SELECT DISTINCT + - COUNT ( * ) AS col1, 46 FROM tab1 AS cor0
----
-3
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9475
SELECT 89 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
89
NULL
89
NULL
89
NULL

skipif mysql # not compatible
query II rowsort label-9475
SELECT 89 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
89
NULL
89
NULL
89
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT - col2 * - col2 < ( - col1 / - + 6 + - col2 + - col1 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT 34 DIV - col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT 34 / - col1 FROM tab1
----
-2
-6
0

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

query I rowsort
SELECT DISTINCT - col0 * + + col2 * + ( - - col1 ) * + - col1 + + col2 - col1 AS col1 FROM tab2 AS cor0
----
15178203
19527141
2751830

query I rowsort
SELECT DISTINCT - 11 * 43 AS col1 FROM tab0
----
-473

query III rowsort
SELECT * FROM tab1 WHERE - - 85 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9484
SELECT COUNT( * ) DIV - + 55 + + 18 + + - ( CAST( + COUNT( * ) AS SIGNED ) ) * 59 AS col1 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-9484
SELECT COUNT ( * ) / - + 55 + + 18 + + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) * 59 AS col1 FROM tab0
----
-159

query II rowsort
SELECT DISTINCT - 85, col1 AS col1 FROM tab1 AS cor0
----
-85
14
-85
47
-85
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT DISTINCT + col2 DIV + 88 + 25 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + col2 / + 88 + 25 FROM tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT 27 * - + col0 FROM tab0 AS cor0 WHERE NOT - col2 * 96 < ( col0 )
----

query I rowsort
SELECT + + col2 + + 81 FROM tab1 AS cor0
----
140
149
177

query I rowsort
SELECT - col0 + + + col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + 80 + + + col1 - + col2 + 60 FROM tab0 cor0
----
151
174
42

query I rowsort
SELECT - + 29 AS col1 FROM tab2 AS cor0 WHERE NULL >= 63
----

query I rowsort
SELECT ALL - col2 * + 72 * - col0 + + + 7 FROM tab2
----
184327
313207
76183

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9493
SELECT ALL - 13 col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + - col2 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9493
SELECT ALL - 13 col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + - col2 * + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT + ( + - 64 ) - 50 * ( - 88 ) * - COUNT( * ) AS col1 FROM tab0
----
-13264

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + ( + - 64 ) - 50 * ( - 88 ) * - COUNT ( * ) AS col1 FROM tab0
----
-13264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * + col1 col2 FROM tab0
----
38367
97
98415

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT col0 DIV + col1 - - col2 FROM tab0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-9496
SELECT col0 / + col1 - - col2 FROM tab0
----
14
196
47

query II rowsort
SELECT ALL - 43, + col0 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
-43
102
-43
170
-43
182

query I rowsort
SELECT col0 - - ( + col1 ) - - col2 * + - col1 * 77 + ( - col0 ) + + - col1 FROM tab1 AS cor0
----
-103488
-22715
-246092

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT + col2 - + col0 + + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-76
3
33

skipif mysql # not compatible
query I rowsort label-9499
SELECT + col2 - + col0 + + col1 / col1 AS col1 FROM tab0 AS cor0
----
-76
3
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) + - - 26 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - - 26 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL + SUM( DISTINCT + col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + SUM ( DISTINCT + col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT + COUNT( * ) * + - ( - + 70 ) AS col1 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT + COUNT ( * ) * + - ( - + 70 ) AS col1 FROM tab2 AS cor0
----
210

query I rowsort
SELECT ALL ( - ( col0 ) ) * - + 17 FROM tab1 cor0
----
1445
1547
867

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT + 65 * - col0 + - col1 + col0 - + col2 DIV col2 FROM tab1 AS cor0
----
-3279
-5446
-5872

skipif mysql # not compatible
query I rowsort label-9504
SELECT + 65 * - col0 + - col1 + col0 - + col2 / col2 FROM tab1 AS cor0
----
-3279
-5446
-5872

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - COUNT( * ) * - MIN( DISTINCT + col1 ) + + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9505
SELECT - COUNT ( * ) * - MIN ( DISTINCT + col1 ) + + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT + COUNT( col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + COUNT ( col2 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT 31 DIV + 60 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9508
SELECT 31 / + 60 col0 FROM tab1
----
0
0
0

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

query II rowsort
SELECT col0 AS col0, col2 - - col0 + + + col2 AS col2 FROM tab2
----
46
92
64
144
75
191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + + 6 + - 84 * + 74 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT col2 DIV col2 * - col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9512
SELECT col2 / col2 * - col0 AS col1 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 >= + + 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NOT ( col1 ) > 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT ALL + CAST( + - col2 AS SIGNED ) + - 41 AS col1 FROM tab2 AS cor0
----
-64
-81
-99

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL + CAST ( + - col2 AS INTEGER ) + - 41 AS col1 FROM tab2 AS cor0
----
-64
-81
-99

query I rowsort
SELECT 86 / col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT DISTINCT + col1 * 96 FROM tab1 AS cor0 WHERE col1 * + col1 NOT IN ( - ( CAST( NULL AS SIGNED ) ) - - - ( col2 ) * col0 + col0 + + col0 + + - col1 )
----

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT + col1 * 96 FROM tab1 AS cor0 WHERE col1 * + col1 NOT IN ( - ( CAST ( NULL AS INTEGER ) ) - - - ( col2 ) * col0 + col0 + + col0 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + 97 + - - COUNT( * ) FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-9518
SELECT + 97 + - - COUNT ( * ) FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9519
SELECT ALL + - ( - ( + 80 ) ) + COUNT( * ) DIV - MAX( DISTINCT + col2 ) + 68 AS col0 FROM tab0 cor0
----
148

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + - ( - ( + 80 ) ) + COUNT ( * ) / - MAX ( DISTINCT + col2 ) + 68 AS col0 FROM tab0 cor0
----
148

query I rowsort
SELECT - col0 + + + 60 AS col1 FROM tab2 AS cor0
----
-15
-4
14

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 67 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab2 WHERE ( 39 IS NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col2 FROM tab0 AS cor0
----
-98
11
34

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 51 AND + + col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT ALL + col1 + + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL + col1 + + col2 / + col2 AS col2 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT DISTINCT 90 * + col2 * - - col0 * - col2 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 * + col1 + + - col0 - + - 96 / + - 55 - + col0 + - 40 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT 90 * + col2 * - - col0 * - col2 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 * + col1 + + - col0 - + - 96 / + - 55 - + col0 + - 40 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * + - col2 * - col2 + col1 + - col0 AS col1 FROM tab1
----
128987
17325
217284

query I rowsort
SELECT DISTINCT col1 - + 33 AS col2 FROM tab2
----
18
34
44

query I rowsort
SELECT col1 * + col1 + - - ( - 93 ) FROM tab2
----
2508
4396
5836

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96

query I rowsort
SELECT ALL 45 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND - - ( - 55 ) * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 9 < + - col1
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT DISTINCT + + CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT + + CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT - 68 * 67 - + col0 AS col2, + col0 FROM tab0 AS cor0
----
-4571
15
-4643
87
-4653
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + MIN( + 58 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9538
SELECT DISTINCT + MIN ( + 58 ) col1 FROM tab2 AS cor0
----
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9540
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9540
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 11 * - - 72 FROM tab1
----
-792
-792
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL CAST( ( + 87 ) AS SIGNED ) * + - col2 col2 FROM tab0
----
-4089
-8613
-870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9542
SELECT ALL CAST ( ( + 87 ) AS INTEGER ) * + - col2 col2 FROM tab0
----
-4089
-8613
-870

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

query I rowsort
SELECT 53 * - - col0 + - col2 FROM tab2 AS cor0
----
2415
3352
3917

query I rowsort
SELECT ALL - 58 * - col1 FROM tab0 AS cor0
----
1218
4698
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9546
SELECT * FROM tab0 AS cor0 WHERE NOT 79 NOT IN ( 85, CAST( - 92 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9546
SELECT * FROM tab0 AS cor0 WHERE NOT 79 NOT IN ( 85, CAST ( - 92 AS INTEGER ) )
----

query II rowsort
SELECT 29 AS col1, 90 FROM tab2 AS cor0
----
29
90
29
90
29
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT - 2 * + COUNT( * ) - + + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9548
SELECT - 2 * + COUNT ( * ) - + + COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 * + - 89 > - - 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 + - - col0 IS NOT NULL
----

query I rowsort
SELECT ( 74 ) FROM tab2
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT DISTINCT 77 DIV + + col0 + col0 + + col0 DIV - + ( 88 ) FROM tab1
----
52
85
90

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT 77 / + + col0 + col0 + + col0 / - + ( 88 ) FROM tab1
----
52
85
90

query II rowsort
SELECT DISTINCT 56 + + ( - ( + - col2 ) ) + + col1, + col1 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
130
2346
173
4928
181
5025

query I rowsort
SELECT ALL - + col1 + 55 AS col2 FROM tab1 AS cor0
----
41
50
8

query I rowsort
SELECT col0 + - col0 - - ( + col1 ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT - col1 + - col2 * - 5 FROM tab1
----
290
293
466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + + + col2 + col1 + + col0 col2 FROM tab0
----
202
227
281

query I rowsort
SELECT col2 * - 49 + - - col2 FROM tab1 AS cor0
----
-2832
-3264
-4608

query I rowsort
SELECT - - 86 * + - col2 FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
-4042
-8514
-860

query I rowsort
SELECT + 3 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

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

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

query I rowsort
SELECT + 79 * - - 41 AS col1 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL col1 + + - col2 * - - col2 - - 5 AS col1 FROM tab0
----
-2123
-74
-9795

query I rowsort
SELECT ALL col0 - + 5 AS col0 FROM tab2
----
41
59
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT - 16 - col1 DIV 94 AS col0 FROM tab1
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-9566
SELECT - 16 - col1 / 94 AS col0 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT + 82 - + 90 AS col1 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT + + 45 AS col2 FROM tab1 WHERE NULL IS NULL
----
45
45
45

query I rowsort
SELECT + col0 + - col2 * col1 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 64 <> col0 * 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE ( NOT ( NOT + col2 + - col1 * col0 * + col0 - - - col0 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT ( NOT + col2 + - col1 * col0 * + col0 - - - col0 IS NULL ) )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9575
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + 65 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - - col1 * col1 * - 10 FROM tab0 AS cor0
----
-10
-4410
-65610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col2 col0 FROM tab2 cor0
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT 87 + CAST( - ( + ( col2 ) ) AS SIGNED ) * - 52 AS col2 FROM tab2 AS cor0
----
1283
2167
3103

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT 87 + CAST ( - ( + ( col2 ) ) AS INTEGER ) * - 52 AS col2 FROM tab2 AS cor0
----
1283
2167
3103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 col2 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT - col0 * CAST( NULL AS SIGNED ) + + 36 - + + 56 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT - col0 * CAST ( NULL AS INTEGER ) + + 36 - + + 56 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + ( col1 ) FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT + ( - col2 ) DIV - ( + ( - col0 ) ) col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9583
SELECT + ( - col2 ) / - ( + ( - col0 ) ) col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT ( MAX( col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT ( MAX ( col1 ) ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT 8 * + 41 * + COUNT( * ) AS col1 FROM tab0
----
984

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT 8 * + 41 * + COUNT ( * ) AS col1 FROM tab0
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - - MAX( ALL - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9586
SELECT - - MAX ( ALL - - col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - 59 AS col2 FROM tab0 AS cor0 WHERE - 19 + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT COUNT( * ) + + + MAX( - 15 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-9588
SELECT COUNT ( * ) + + + MAX ( - 15 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

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

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

query I rowsort
SELECT ALL + - 28 + - - col2 + - 8 * 24 AS col0 FROM tab1 AS cor0
----
-124
-152
-161

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9591
SELECT + - col2 + + CAST( NULL AS DECIMAL ), col1 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
query II rowsort label-9591
SELECT + - col2 + + CAST ( NULL AS REAL ), col1 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

query I rowsort
SELECT + 80 + - + col1 FROM tab0 AS cor0
----
-1
59
79

query I rowsort
SELECT - col2 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL 14 + COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL 14 + COUNT ( * ) FROM tab2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT DISTINCT - col2 * - col1 * + col1 DIV col1 - - col1 * - - 68 AS col1 FROM tab1
----
2296
635
6392

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT - col2 * - col1 * + col1 / col1 - - col1 * - - 68 AS col1 FROM tab1
----
2296
635
6392

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE - col1 * - - col2 * - + col0 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN col2 + - 74 AND + - 29
----
46
51
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9598
SELECT ALL + COUNT( * ) AS col0, + 40 FROM tab2
----
3
40

skipif mysql # not compatible
query II rowsort label-9598
SELECT ALL + COUNT ( * ) AS col0, + 40 FROM tab2
----
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - + COUNT( + col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9599
SELECT - + COUNT ( + col0 ) AS col2 FROM tab0 AS cor0
----
-3

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

skipif mysql # not compatible
query I rowsort label-9600
SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT COUNT( - ( - col1 ) ) FROM tab2 WHERE NULL > + 62
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT COUNT ( - ( - col1 ) ) FROM tab2 WHERE NULL > + 62
----
0

query I rowsort
SELECT 72 + col1 AS col1 FROM tab0
----
153
73
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT COUNT( * ) + + COUNT( * ) * + 22 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9603
SELECT COUNT ( * ) + + COUNT ( * ) * + 22 FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9606
SELECT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9606
SELECT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT - COUNT( DISTINCT col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT - COUNT ( DISTINCT col0 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - col2 * + 87 FROM tab2 WHERE + col1 <> - 80
----
-2001
-3480
-5046

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 / 94 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + COUNT( * ) * - MIN( DISTINCT + 46 * 26 ) FROM tab0
----
-3588

skipif mysql # not compatible
query I rowsort label-9611
SELECT + COUNT ( * ) * - MIN ( DISTINCT + 46 * 26 ) FROM tab0
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - ( + COUNT( * ) ) * SUM( - col2 ) col0 FROM tab1
----
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9612
SELECT - ( + COUNT ( * ) ) * SUM ( - col2 ) col0 FROM tab1
----
669

query I rowsort
SELECT DISTINCT - 34 + col2 * + 58 AS col0 FROM tab0
----
2692
546
5708

query I rowsort
SELECT 44 * 18 FROM tab0
----
792
792
792

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 33 <> + col0
----

query I rowsort
SELECT ALL + 19 * col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL - MIN( DISTINCT col1 ) col0 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9618
SELECT ALL - MIN ( DISTINCT col1 ) col0 FROM tab1
----
-5

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT col0 + - col1 * col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT ( - col0 ) DIV - 91 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9620
SELECT ( - col0 ) / - 91 FROM tab0 cor0
----
0
0
1

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

query I rowsort
SELECT ( - col0 ) + + col2 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col1 FROM tab2 WHERE - 31 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT DISTINCT - 37 - - COUNT( * ) FROM tab2 WHERE NOT 25 * 98 IN ( CAST( - col1 AS SIGNED ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT - 37 - - COUNT ( * ) FROM tab2 WHERE NOT 25 * 98 IN ( CAST ( - col1 AS INTEGER ) )
----
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <> NULL
----

query I rowsort
SELECT - col2 * - 64 FROM tab0 cor0
----
3008
6336
640

query I rowsort
SELECT + col0 + - 18 * col2 AS col0 FROM tab2 cor0 WHERE col2 / col2 + col0 * 95 <= ( + 12 + + 92 )
----

query I rowsort
SELECT ALL 51 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * ( 52 * - ( 98 * + 77 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( col2 ) > - 48
----

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( col2 ) > - 48
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL - - 74 * 98 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
7249

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL - - 74 * 98 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7249

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT MAX( DISTINCT - col2 ) * 83 + - 19 AS col0 FROM tab0 AS cor0 WHERE NOT + 96 * + 78 > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT MAX ( DISTINCT - col2 ) * 83 + - 19 AS col0 FROM tab0 AS cor0 WHERE NOT + 96 * + 78 > col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 24 col2 FROM tab0 cor0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT - COUNT( * ) * - 58 * + 37 AS col0 FROM tab0
----
6438

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - COUNT ( * ) * - 58 * + 37 AS col0 FROM tab0
----
6438

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT DISTINCT + 11 DIV - col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT + 11 / - col0 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT + ( 57 ) DIV 10 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-9636
SELECT + ( 57 ) / 10 FROM tab0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT - 87 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-9637
SELECT - 87 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-87
-87
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9638
SELECT ALL SUM( + + col2 ) DIV - 7 AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL SUM ( + + col2 ) / - 7 AS col1 FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query III rowsort label-9639
SELECT * FROM tab0 WHERE NOT col0 - - 10 DIV 11 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9639
SELECT * FROM tab0 WHERE NOT col0 - - 10 / 11 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT + MIN( ALL col0 ) AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) >= + col0 - + 3 * - ( - col2 + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT + MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) >= + col0 - + 3 * - ( - col2 + 36 )
----
NULL

query I rowsort
SELECT DISTINCT + 42 * col0 * col1 FROM tab1 AS cor0
----
17850
179634
29988

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT 67 DIV + + col1 AS col0 FROM tab0
----
0
3
67

skipif mysql # not compatible
query I rowsort label-9643
SELECT 67 / + + col1 AS col0 FROM tab0
----
0
3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT - COUNT( DISTINCT 28 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT - COUNT ( DISTINCT 28 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-1

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

query I rowsort
SELECT + 41 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) > - 36 / + 11
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) > - 36 / + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT - 63 + + - SUM( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT - 63 + + - SUM ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-258

query I rowsort
SELECT DISTINCT + - col1 * + col1 + + col0 FROM tab1 AS cor0
----
-145
-2118
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT - 24 AS col0, COUNT( * ) + - 35 FROM tab2 AS cor0
----
-24
-32

skipif mysql # not compatible
query II rowsort label-9651
SELECT - 24 AS col0, COUNT ( * ) + - 35 FROM tab2 AS cor0
----
-24
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL COUNT( * ) + 54 AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL COUNT ( * ) + 54 AS col2 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - ( col2 ) FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT DISTINCT - 39 + - COUNT( * ) * - - 40 AS col1 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - 39 + - COUNT ( * ) * - - 40 AS col1 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT ALL - col2 * + col2 * - 17 + - + col1 + + col0 FROM tab2
----
27187
57196
8988

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

query I rowsort
SELECT 54 + col2 + - col1 FROM tab1
----
108
136
75

query I rowsort
SELECT ALL + col0 * col0 FROM tab1 WHERE NOT NULL <= NULL AND NOT 38 NOT BETWEEN col0 / + 12 AND NULL
----

query II rowsort
SELECT - 15 + col0 AS col0, - 75 AS col2 FROM tab2
----
31
-75
49
-75
60
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT CAST( NULL AS SIGNED ) * - - col0 + + col0 / + - ( 50 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT CAST ( NULL AS INTEGER ) * - - col0 + + col0 / + - ( 50 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - 5 ) FROM tab0
----
5
5
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE - 48 = ( - col2 * 43 )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 29 > col1
----
46
51
23
75
67
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < ( 89 )
----

query I rowsort
SELECT DISTINCT 23 - + 6 AS col2 FROM tab0 AS cor0 WHERE ( ( NULL IS NULL ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + COUNT( * ) + + 5 AS col0 FROM tab0 cor0 WHERE ( NOT ( + - col0 ) IS NOT NULL )
----
5

skipif mysql # not compatible
query I rowsort label-9667
SELECT + COUNT ( * ) + + 5 AS col0 FROM tab0 cor0 WHERE ( NOT ( + - col0 ) IS NOT NULL )
----
5

query I rowsort
SELECT + ( ( 97 ) ) * + col1 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT MAX( DISTINCT - + 10 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9669
SELECT MAX ( DISTINCT - + 10 ) FROM tab1 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + MAX( DISTINCT 20 ) col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9670
SELECT DISTINCT + MAX ( DISTINCT 20 ) col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT + + ( + col0 ) + col2 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9672
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN + + 75 AND + - 98 / - 68
----
1
441
6561

query I rowsort
SELECT DISTINCT + 19 * + + col1 AS col1 FROM tab1 AS cor0
----
266
893
95

query II rowsort
SELECT - col0 * col1 * + col1 AS col0, col2 * col2 FROM tab2 AS cor0
----
-119646
529
-336675
3364
-379456
1600

query I rowsort
SELECT col1 - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 30 NOT IN ( + 59, - 61 * 72 )
----

query I rowsort
SELECT + 53 FROM tab0 AS cor0 WHERE NOT - ( col1 ) + col1 IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL - + SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - + SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL col0 AS col2, + 94 + + col1 FROM tab1
----
51
108
85
99
91
141

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT ALL 6 DIV col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL 6 / col1 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT DISTINCT col1 * - col2 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + col0 + 93 * + 15 AND col1 * col0
----

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT col1 * - col2 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 + 93 * + 15 AND col1 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT SUM( 21 ) AS col2 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-9684
SELECT SUM ( 21 ) AS col2 FROM tab2
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 60 col0 FROM tab1
----
59
60
68
60
96
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9686
SELECT + + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9686
SELECT + + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

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

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

query I rowsort
SELECT - 13 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + - 69 FROM tab1 cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL > - col1
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL > - col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 / - + 46 - + col2 ) IS NOT NULL
----

query I rowsort
SELECT - 98 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( 30 + 35 + + 87 ) > + 14
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT - COUNT( * ) + + MAX( ALL - 11 ) * 56 * + - COUNT( * ) FROM tab1 AS cor0
----
1845

skipif mysql # not compatible
query I rowsort label-9693
SELECT - COUNT ( * ) + + MAX ( ALL - 11 ) * 56 * + - COUNT ( * ) FROM tab1 AS cor0
----
1845

query I rowsort
SELECT DISTINCT + 95 + + col0 - + + 1 + - col2 - - - col2 FROM tab1 AS cor0
----
-47
49
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT + - 95 + CAST( NULL AS SIGNED ) + - col2 + - 61 * 25 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT + - 95 + CAST ( NULL AS INTEGER ) + - col2 + - 61 * 25 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col0 + - - col0 AS col2 FROM tab0 AS cor0
----
261
291
45

query I rowsort
SELECT ALL col1 + - 10 + + col1 * - - col0 AS col0 FROM tab1 AS cor0
----
420
4314
718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - - col1 * - 86 col1 FROM tab2 AS cor0
----
-4363
-5704
-6582

query I rowsort
SELECT DISTINCT 97 + col0 * - + col1 AS col1 FROM tab0
----
-1118
-1730
0

query II rowsort
SELECT ALL - ( + + 84 ), col2 FROM tab0 WHERE NULL IS NULL
----
-84
10
-84
47
-84
99

query I rowsort
SELECT 96 + col0 FROM tab1 WHERE + 79 / - col2 - - col1 IS NOT NULL
----
147
181
187

query III rowsort
SELECT * FROM tab1 WHERE - - 5 * + col1 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL + MAX( DISTINCT + col0 ) col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT ALL + MAX ( DISTINCT + col0 ) col1 FROM tab1 cor0
----
91

query I rowsort
SELECT ALL col0 * - col1 - + col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT 85 * - + 69 + + col1 + col1 FROM tab0
----
-5703
-5823
-5863

query I rowsort
SELECT ALL col0 - + 37 FROM tab1
----
14
48
54

query I rowsort
SELECT ( + - ( 0 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - 26 - - 59
----

query II rowsort
SELECT + col1, + col1 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT ALL + - 89 * - - col2 AS col0 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9712
SELECT ALL - CAST( NULL AS DECIMAL ) + - AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 25 NOT BETWEEN NULL AND - - ( ( col1 ) ) * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - CAST ( NULL AS REAL ) + - AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 25 NOT BETWEEN NULL AND - - ( ( col1 ) ) * + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT SUM( DISTINCT - 46 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-9713
SELECT SUM ( DISTINCT - 46 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT - MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT SUM( - 67 ) FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-9716
SELECT SUM ( - 67 ) FROM tab2
----
-201

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * + + col2 * + 73 * col2 FROM tab0
----
13061817
153300
715473

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL COUNT( - 96 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL COUNT ( - 96 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT 76, + col0 AS col1 FROM tab1
----
76
51
76
85
76
91

query I rowsort
SELECT DISTINCT ( - 37 ) / - col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT ALL col1 * - col2 + + col2 DIV - 72 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL col1 * - col2 + + col2 / - 72 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9723
SELECT + COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab1
----
3
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 48 + - 43 + - 42 * + col0 / - + col1 * - 3 + - - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT + MIN( - 76 ) col0 FROM tab0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9725
SELECT DISTINCT + MIN ( - 76 ) col0 FROM tab0
----
-76

query I rowsort
SELECT + 24 * - 45 + - - col1 + 62 FROM tab1 AS cor0
----
-1004
-1013
-971

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( col2 ) AND col0
----

query I rowsort
SELECT ALL - - 6 + + 4 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT ALL + col1 DIV + col2 * - col2 - + ( col0 ) + - 19 * - - 39 + 83 FROM tab1 AS cor0
----
-709
-743
-749

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL + col1 / + col2 * - col2 - + ( col0 ) + - 19 * - - 39 + 83 FROM tab1 AS cor0
----
-709
-743
-749

query I rowsort
SELECT ALL + col1 * - col1 + - 30 FROM tab0 cor0
----
-31
-471
-6591

query I rowsort
SELECT + col0 * col0 + + ( - col1 ) AS col0 FROM tab0 cor0
----
144
7548
9408

query I rowsort
SELECT DISTINCT col0 + - col1 - - + col0 FROM tab1 AS cor0
----
135
165
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + COUNT( + col2 ) + - COUNT( * ) * - 53 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9734
SELECT + COUNT ( + col2 ) + - COUNT ( * ) * - 53 FROM tab0 AS cor0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9735
SELECT + MIN( DISTINCT - 67 ) + + SUM( DISTINCT - ( + col2 ) ) * - CAST( 56 AS SIGNED ) AS col1 FROM tab0
----
8669

skipif mysql # not compatible
query I rowsort label-9735
SELECT + MIN ( DISTINCT - 67 ) + + SUM ( DISTINCT - ( + col2 ) ) * - CAST ( 56 AS INTEGER ) AS col1 FROM tab0
----
8669

query I rowsort
SELECT ALL 55 + - col0 - + col1 AS col1 FROM tab1
----
-10
-35
-83

query I rowsort
SELECT DISTINCT ( - col0 ) / + - col1 FROM tab1 WHERE + ( + col0 ) <= 40
----

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

query I rowsort
SELECT ALL - 45 * - - col1 FROM tab2 WHERE ( NOT ( + 44 ) > ( NULL ) )
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 81 * col2 NOT IN ( + + col2, col1 + - 79 * + + 76 - ( col0 ) )
----

query II rowsort
SELECT DISTINCT + col2 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9742
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT ALL - col1, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT + - COUNT( * ) * 91 FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9744
SELECT + - COUNT ( * ) * 91 FROM tab2 cor0
----
-273

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 - + + col2 <= col1
----

query I rowsort
SELECT DISTINCT + 7 * - + col2 * - col2 FROM tab0
----
15463
68607
700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9747
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col1 > - CAST( NULL AS SIGNED ) + - col2 * - + 99 / 73
----

skipif mysql # not compatible
query III rowsort label-9747
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col1 > - CAST ( NULL AS INTEGER ) + - col2 * - + 99 / 73
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT + SUM( DISTINCT - 74 ) AS col0, - MAX( + + col0 ) * + SUM( DISTINCT - 23 ) * + 95 AS col0 FROM tab2 AS cor0
----
-74
163875

skipif mysql # not compatible
query II rowsort label-9749
SELECT + SUM ( DISTINCT - 74 ) AS col0, - MAX ( + + col0 ) * + SUM ( DISTINCT - 23 ) * + 95 AS col0 FROM tab2 AS cor0
----
-74
163875

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - MIN( ( 19 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-9750
SELECT - MIN ( ( 19 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * col2 + 82 IN ( + ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - col0 + + 57 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL + - ( + ( - - MAX( - col1 ) ) ) + + SUM( ALL + + col2 ) + + COUNT( * ) * - - 14 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL + - ( + ( - - MAX ( - col1 ) ) ) + + SUM ( ALL + + col2 ) + + COUNT ( * ) * - - 14 FROM tab1 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT - COUNT( * ) + - 54 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT - COUNT ( * ) + - 54 FROM tab0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + - 96 col1 FROM tab2
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL + MIN( DISTINCT + - 52 ) * - 77 FROM tab1
----
4004

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + MIN ( DISTINCT + - 52 ) * - 77 FROM tab1
----
4004

query I rowsort
SELECT col2 - 45 + + - col1 AS col0 FROM tab2
----
-54
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL - COUNT( DISTINCT - col0 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9759
SELECT ALL - COUNT ( DISTINCT - col0 ) col1 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - col1, + col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT - + CAST( + 79 AS SIGNED ) + + + SUM( DISTINCT ( + - 68 ) ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9761
SELECT - + CAST ( + 79 AS INTEGER ) + + + SUM ( DISTINCT ( + - 68 ) ) FROM tab2 AS cor0
----
-147

query I rowsort
SELECT DISTINCT - col0 * - - ( 12 ) AS col1 FROM tab2 AS cor0
----
-552
-768
-900

query I rowsort
SELECT DISTINCT - 33 * 87 * - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-114840
-166518
-66033

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT - - COUNT( 82 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT - - COUNT ( 82 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - 77 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > ( 7 * - col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-9767
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT + 64 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT + 64 IS NOT NULL
----
0

query I rowsort
SELECT + + 19 * + 52 FROM tab2 AS cor0
----
988
988
988

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + COUNT( * ) * 82 AS col0 FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9770
SELECT + COUNT ( * ) * 82 AS col0 FROM tab1 AS cor0
----
246

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL - ( - - MIN( DISTINCT + col2 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - ( - - MIN ( DISTINCT + col2 ) ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT - col0 * + col0 * - col1 FROM tab2
----
107916
315392
376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, + col2 * col2 col0 FROM tab2
----
23
529
40
1600
58
3364

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 19, - 75 + - - col0 + 15 col1 FROM tab0 cor0
----
19
-45
19
27
19
37

query I rowsort
SELECT + col0 + + + col2 + + + 64 AS col0 FROM tab0 AS cor0
----
126
161
260

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9779
SELECT * FROM tab0 cor0 WHERE - col0 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9779
SELECT * FROM tab0 cor0 WHERE - col0 >= - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 60 * - 0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + 23 * col0 AS col1, col1 AS col2 FROM tab1
----
1173
14
1955
5
2093
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT - CAST( - 26 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif mysql # not compatible
query I rowsort label-9782
SELECT - CAST ( - 26 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT 21 * - 94 AS col2 FROM tab1
----
-1974
-1974
-1974

query I rowsort
SELECT ALL + 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - - MIN( 32 ) + + - COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - - MIN ( 32 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL = + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL = + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL - 60 + + COUNT( * ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - 60 + + COUNT ( * ) FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + - SUM( ALL + col1 ) + + 23 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9789
SELECT + - SUM ( ALL + col1 ) + + 23 FROM tab0 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT - 96 + - SUM( + - 2 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT - 96 + - SUM ( + - 2 ) FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + MIN( - col0 ) + + - COUNT( * ) AS col0 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9791
SELECT + MIN ( - col0 ) + + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-78

query I rowsort
SELECT - col2 * + col2 + - 58 FROM tab1
----
-3539
-4682
-9274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT ALL - 68 * - CAST( 45 AS SIGNED ) + + + 33 * + col2 + - col2 FROM tab1
----
4948
5236
6132

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL - 68 * - CAST ( 45 AS INTEGER ) + + + 33 * + col2 + - col2 FROM tab1
----
4948
5236
6132

query I rowsort
SELECT ALL col2 - 21 AS col1 FROM tab0
----
-11
26
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( 82 ) col1 FROM tab0
----
-1
-61
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 * - col0 col0 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT ALL - ( + + 20 ) - 62 + + col2 FROM tab1
----
-14
-23
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9798
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < - - CAST( + 60 AS SIGNED ) - - CAST( NULL AS SIGNED ) * - + 22
----

skipif mysql # not compatible
query III rowsort label-9798
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < - - CAST ( + 60 AS INTEGER ) - - CAST ( NULL AS INTEGER ) * - + 22
----

query I rowsort
SELECT DISTINCT col2 * - col1 - + col0 AS col1 FROM tab1 AS cor0
----
-1395
-3287
-380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT - MIN( ALL 16 ) * - 76 AS col2 FROM tab1 AS cor0
----
1216

skipif mysql # not compatible
query I rowsort label-9802
SELECT - MIN ( ALL 16 ) * - 76 AS col2 FROM tab1 AS cor0
----
1216

query II rowsort
SELECT DISTINCT col0, - ( + col2 ) AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / 93 * col2 > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 + - col0 col0 FROM tab0 AS cor0
----
-132
-142
-60

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

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + col1 / + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9809
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - CAST( - + col0 AS SIGNED ) + - - 8
----

skipif mysql # not compatible
query III rowsort label-9809
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - CAST ( - + col0 AS INTEGER ) + - - 8
----

query I rowsort
SELECT + col2 * + + 96 * + 91 FROM tab2 AS cor0
----
200928
349440
506688

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT + 32 DIV + - col2 AS col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + 32 / + - col2 AS col0 FROM tab0 AS cor0
----
-3
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND - 12 / + - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL MAX( 74 ) FROM tab2 WHERE NOT 73 * col0 * - col0 NOT BETWEEN - ( col0 ) + - col0 AND + ( - col2 ) * - - col2 * + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL MAX ( 74 ) FROM tab2 WHERE NOT 73 * col0 * - col0 NOT BETWEEN - ( col0 ) + - col0 AND + ( - col2 ) * - - col2 * + + 68
----
NULL

query I rowsort
SELECT DISTINCT + ( - + col2 ) * + - col2 AS col2 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 87 NOT BETWEEN + 5 AND NULL
----

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

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

query I rowsort
SELECT col2 + - + col1 * - + 66 AS col1 FROM tab1
----
1020
3170
389

query I rowsort
SELECT ALL + col0 + - col2 - + + 95 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-2281
-336
-94

query I rowsort
SELECT DISTINCT col2 + + 96 FROM tab1 AS cor0
----
155
164
192

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

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

query I rowsort
SELECT + - ( - col1 ) + + - col1 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT - CAST( - 18 AS SIGNED ) AS col2 FROM tab2
----
18
18
18

skipif mysql # not compatible
query I rowsort label-9824
SELECT - CAST ( - 18 AS INTEGER ) AS col2 FROM tab2
----
18
18
18

query I rowsort
SELECT ALL - ( + col2 ) * + + col2 AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9826
SELECT ALL - CAST( + col1 AS SIGNED ) AS col1, + col0 * - col1 FROM tab2
----
-51
-2346
-67
-5025
-77
-4928

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col1, + col0 * - col1 FROM tab2
----
-51
-2346
-67
-5025
-77
-4928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 + + col0 * + col1 col1 FROM tab2 WHERE ( - col0 ) >= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9828
SELECT ALL - + 24 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-24
NULL
-24
NULL
-24
NULL

skipif mysql # not compatible
query II rowsort label-9828
SELECT ALL - + 24 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-24
NULL
-24
NULL
-24
NULL

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

query I rowsort
SELECT DISTINCT + + 93 AS col2 FROM tab2 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col0 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - MAX( DISTINCT ( - 37 ) ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-9832
SELECT - MAX ( DISTINCT ( - 37 ) ) FROM tab1
----
37

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT 94 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9835
SELECT DISTINCT - 78 col1, COUNT( * ) FROM tab0
----
-78
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9835
SELECT DISTINCT - 78 col1, COUNT ( * ) FROM tab0
----
-78
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9836
SELECT ALL * FROM tab0 WHERE NOT - col1 * - 25 + - - col1 <> CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9836
SELECT ALL * FROM tab0 WHERE NOT - col1 * - 25 + - - col1 <> CAST ( + - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * 10 AS col1 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT DISTINCT - col2 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT - col2 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 13 ) + 43 * col2 col0 FROM tab0
----
2008
417
4244

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9840
SELECT col0 / - + 7 * + CAST( NULL AS DECIMAL ) - 92 - + 33 FROM tab2 WHERE NULL BETWEEN - ( - + col0 ) AND - col2 * + CAST( NULL AS SIGNED ) * col2 * + 37
----

skipif mysql # not compatible
query I rowsort label-9840
SELECT col0 / - + 7 * + CAST ( NULL AS REAL ) - 92 - + 33 FROM tab2 WHERE NULL BETWEEN - ( - + col0 ) AND - col2 * + CAST ( NULL AS INTEGER ) * col2 * + 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL - COUNT( * ) col0 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9841
SELECT ALL - COUNT ( * ) col0 FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9842
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 0 + col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT + - col1 + - + col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL col1 + - ( + col1 ) * + col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9846
SELECT - CAST( NULL AS DECIMAL ) + + col2, col2 AS col0, - - CAST( + - col1 AS SIGNED ) * + + 82 AS col2 FROM tab0 AS cor0
----
9 values hashing to 1d509b62842b7940f2ac00b2cf3f439f

skipif mysql # not compatible
query III rowsort label-9846
SELECT - CAST ( NULL AS REAL ) + + col2, col2 AS col0, - - CAST ( + - col1 AS INTEGER ) * + + 82 AS col2 FROM tab0 AS cor0
----
9 values hashing to 1d509b62842b7940f2ac00b2cf3f439f

query I rowsort
SELECT + - col2 * + col2 + + + 44 FROM tab2 AS cor0
----
-1556
-3320
-485

query II rowsort
SELECT ALL + 1 * - 30 AS col2, - 85 FROM tab2 AS cor0
----
-30
-85
-30
-85
-30
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab2 WHERE 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT COUNT( * ) * COUNT( - col2 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT COUNT ( * ) * COUNT ( - col2 ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT DISTINCT col0 * CAST( col1 AS SIGNED ) * + - 46 * + + col2 FROM tab0
----
-2626830
-441738
-840420

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT col0 * CAST ( col1 AS INTEGER ) * + - 46 * + + col2 FROM tab0
----
-2626830
-441738
-840420

query I rowsort
SELECT ALL col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529

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

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

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

query I rowsort
SELECT ALL + col1 * + col1 * + ( - col0 ) AS col2 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT 28 * + COUNT( * ) * - + 74 FROM tab0
----
-6216

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT 28 * + COUNT ( * ) * - + 74 FROM tab0
----
-6216

query I rowsort
SELECT ALL + - col0 * + - col1 + - + 83 + col0 FROM tab1 AS cor0
----
427
4285
682

query I rowsort
SELECT + - col2 * 54 + + col0 AS col1 FROM tab2 AS cor0
----
-1196
-2096
-3057

query I rowsort
SELECT DISTINCT 97 * - 37 * + col0 FROM tab0 AS cor0
----
-312243
-348133
-53835

query I rowsort
SELECT DISTINCT 21 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT 41 + + + COUNT( * ) * - + MAX( + 64 ) FROM tab2 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-9863
SELECT 41 + + + COUNT ( * ) * - + MAX ( + 64 ) FROM tab2 AS cor0
----
-151

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 + + 92 <= - - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 88 / - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + 33 * + col2 FROM tab2 cor0
----
-1320
-1914
-759

query I rowsort
SELECT ALL + 28 + + - col2 FROM tab0 AS cor0
----
-19
-71
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT - col1 DIV 23 FROM tab2 WHERE + + col2 - col1 < + col2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-9868
SELECT - col1 / 23 FROM tab2 WHERE + + col2 - col1 < + col2
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT 40 + + COUNT( * ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT 40 + + COUNT ( * ) FROM tab1
----
43

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

query I rowsort
SELECT col0 * + - col0 * - - 17 * col2 FROM tab1
----
-4244832
-7246675
-9572836

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

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

query I rowsort
SELECT 98 * + col0 * + col0 FROM tab1
----
254898
708050
811538

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT DISTINCT 12 DIV + col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT 12 / + col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9875
SELECT ALL + 40 DIV CAST( + + ( - 35 ) AS SIGNED ) DIV - 48, - 49 DIV SUM( DISTINCT col2 ) FROM tab2
----
0
0

skipif mysql # not compatible
query II rowsort label-9875
SELECT ALL + 40 / CAST ( + + ( - 35 ) AS INTEGER ) / - 48, - 49 / SUM ( DISTINCT col2 ) FROM tab2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL COUNT( * ) + - - 43 AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL COUNT ( * ) + - - 43 AS col0 FROM tab1
----
46

query I rowsort
SELECT - 45 - + 15 + col1 AS col1 FROM tab2 AS cor0
----
-9
17
7

query I rowsort
SELECT DISTINCT - - 82 + + 10 FROM tab2 AS cor0
----
92

query I rowsort
SELECT ALL 37 + + col0 AS col0 FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT - 26 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT 27 - col0 FROM tab1
----
-24
-58
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 75 AS col2, col0 * 1 * - 70 * - + col1 col1 FROM tab2 AS cor0
----
-75
164220
-75
344960
-75
351750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 3 col1, - ( + col1 ) + + col2 * - 71 * 74 col1 FROM tab2 cor0
----
3
-120893
3
-210237
3
-304799

query II rowsort
SELECT ALL - 85, - col0 - + + col0 AS col2 FROM tab1 AS cor0
----
-85
-102
-85
-170
-85
-182

query I rowsort
SELECT DISTINCT + + col0 + + 30 * + col0 AS col0 FROM tab1 WHERE NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT DISTINCT - 7 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT - 7 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9887
SELECT * FROM tab0 WHERE NOT - 27 * + + CAST( NULL AS SIGNED ) + col1 + - - 59 + + + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9887
SELECT * FROM tab0 WHERE NOT - 27 * + + CAST ( NULL AS INTEGER ) + col1 + - - 59 + + + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * - - 13 AS col2 FROM tab1
----
-1248
-767
-884

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 94 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 95 <> + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 55 * - col2 IS NULL
----

query I rowsort
SELECT + col1 * - - 48 FROM tab0
----
1008
3888
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT - COUNT( * ) * - - 41 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-369

skipif mysql # not compatible
query I rowsort label-9893
SELECT - COUNT ( * ) * - - 41 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT - + col2 AS col0, + CAST( 3 AS SIGNED ) FROM tab0 AS cor0
----
-10
3
-47
3
-99
3

skipif mysql # not compatible
query II rowsort label-9894
SELECT - + col2 AS col0, + CAST ( 3 AS INTEGER ) FROM tab0 AS cor0
----
-10
3
-47
3
-99
3

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

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

query I rowsort
SELECT ALL - 60 + 26 AS col0 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9897
SELECT col1 + CAST( NULL AS SIGNED ) + - col1 * + - col0 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9897
SELECT col1 + CAST ( NULL AS INTEGER ) + - col1 * + - col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

query I rowsort
SELECT - 63 + col1 AS col2 FROM tab0 AS cor0
----
-42
-62
18

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9900
SELECT - COUNT ( * ) + 26 + COUNT ( * ) col1 FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 - + 65 col0 FROM tab0
----
-3
131
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL - ( - + 48 ) + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - ( - + 48 ) + COUNT ( * ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9903
SELECT ALL + col2 DIV - - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + col2 / - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
1
11
6

query I rowsort
SELECT + col2 + 58 FROM tab2
----
116
81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT + MIN( ALL - ( + + 7 ) ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + MIN ( ALL - ( + + 7 ) ) FROM tab0
----
-7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + ( - - 55 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT 9 DIV COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT 9 / COUNT ( * ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 <> - - 14 / 55 + - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT 55 + - - 9 + SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
-131

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT 55 + - - 9 + SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT ALL - CAST( NULL AS SIGNED ) / col2 * - 44 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9911
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 * - 44 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * + 73 col2 FROM tab2 AS cor0
----
-4161
-4161
-4161

query I rowsort
SELECT col2 * - ( 59 ) + - 97 FROM tab1 AS cor0
----
-3578
-4109
-5761

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT - SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9915
SELECT - SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + COUNT( * ) * + - ( + - 28 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9916
SELECT + COUNT ( * ) * + - ( + - 28 ) FROM tab1 AS cor0
----
84

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 99 * + ( 34 ) > NULL
----

query II rowsort
SELECT - + col0, - 74 FROM tab2 cor0 WHERE NOT NULL <= ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab1, tab0 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + MIN( + + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9922
SELECT + MIN ( + + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9923
SELECT DISTINCT + COUNT( + col0 ) AS col1, ( 2 ) AS col2 FROM tab0
----
3
2

skipif mysql # not compatible
query II rowsort label-9923
SELECT DISTINCT + COUNT ( + col0 ) AS col1, ( 2 ) AS col2 FROM tab0
----
3
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT 51 * col0 + - + 47 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT 51 * col0 + - + 47 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9925
SELECT ALL - + col0 AS col0 FROM tab1 WHERE NOT - col1 + - CAST( + col1 AS DECIMAL ) * + + ( col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - + col0 AS col0 FROM tab1 WHERE NOT - col1 + - CAST ( + col1 AS REAL ) * + + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT 35 + col0 + + col2 AS col0 FROM tab2
----
104
139
168

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

skipif mysql # not compatible
query I rowsort label-9927
SELECT + col0 / + - col2 + + col1 * + col1 - CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( ( + 9 ) < + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - 66 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9929
SELECT - 66 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT - col2 + 95 AS col0 FROM tab2 AS cor0
----
37
55
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9931
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) col1, 16 AS col0 FROM tab2 AS cor0
----
NULL
16
NULL
16
NULL
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9931
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) col1, 16 AS col0 FROM tab2 AS cor0
----
NULL
16
NULL
16
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT + 88 + COUNT( * ) AS col1 FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + 88 + COUNT ( * ) AS col1 FROM tab2 cor0
----
91

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

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

query I rowsort
SELECT DISTINCT - col0 * col2 + + - col2 * + - col2 * col2 FROM tab2
----
11109
190762
61440

query II rowsort
SELECT DISTINCT + col0, 61 FROM tab1
----
51
61
85
61
91
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT ALL 58 / + - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL 58 / + - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 4 ) AS col1 FROM tab1
----
4
4
4

query I rowsort
SELECT - 19 * + 49 FROM tab1
----
-931
-931
-931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9939
SELECT + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9939
SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query I rowsort
SELECT DISTINCT - col2 * + + 85 + - ( + col0 ) FROM tab0
----
-4010
-8512
-937

query I rowsort
SELECT + col2 - + 57 AS col2 FROM tab2
----
-17
-34
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT - SUM( ALL + col0 ) * + + CAST( NULL AS SIGNED ) / - COUNT( * ) / - AVG ( 30 ) - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT - SUM ( ALL + col0 ) * + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) / - AVG ( 30 ) - - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9943
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9943
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col2 / + 4 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 45 = NULL
----

query I rowsort
SELECT col2 + - col0 + col1 FROM tab1 cor0
----
-21
24
59

query I rowsort
SELECT DISTINCT - - col1 * - 24 + - col1 FROM tab0 cor0
----
-2025
-25
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT col1 DIV col2 * col0 FROM tab2
----
64
75
92

skipif mysql # not compatible
query I rowsort label-9948
SELECT col1 / col2 * col0 FROM tab2
----
64
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - 32 * + - COUNT( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT - 32 * + - COUNT ( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 3 * - col2 col0, col0 FROM tab0
----
-141
15
-297
97
-30
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * + col0 col2 FROM tab2
----
1886
2624
3075

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE - 97 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + 86 * 70 AS col0 FROM tab2
----
6020
6020
6020

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 24 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * + ( - col2 ) col2 FROM tab0 cor0
----
-423
-891
-90

query I rowsort
SELECT ALL + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL - - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT DISTINCT + col1 DIV + + 46 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT + col1 / + + 46 AS col1 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT ALL + COUNT( ALL + col1 ) * - SUM( ALL col2 ) AS col0, + 86 FROM tab2 AS cor0
----
-363
86

skipif mysql # not compatible
query II rowsort label-9960
SELECT ALL + COUNT ( ALL + col1 ) * - SUM ( ALL col2 ) AS col0, + 86 FROM tab2 AS cor0
----
-363
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT + col2 DIV 15 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT + col2 / 15 / - col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT ALL + 7 DIV + - 95 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + 7 / + - 95 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 76 * + - col0 AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN - col0 AND - col1
----
-6612
-7372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9964
SELECT + SUM( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT + SUM ( ALL - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col0 * col1 AS col2 FROM tab0
----
-158949
-18225
-9409

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 4 <> NULL
----

query I rowsort
SELECT DISTINCT + 66 + + col2 + - - 90 FROM tab0 AS cor0
----
166
203
255

query II rowsort
SELECT ALL col0 AS col1, - col1 * + + col1 AS col1 FROM tab0
----
15
-6561
87
-441
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT ALL CAST( - + SUM( DISTINCT - col2 ) AS SIGNED ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL CAST ( - + SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9970
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - - CAST( col1 AS SIGNED ) ) AND + + 12
----

skipif mysql # not compatible
query III rowsort label-9970
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - - CAST ( col1 AS INTEGER ) ) AND + + 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT DISTINCT - COUNT( * ), - 71 AS col0 FROM tab2 AS cor0
----
-3
-71

skipif mysql # not compatible
query II rowsort label-9971
SELECT DISTINCT - COUNT ( * ), - 71 AS col0 FROM tab2 AS cor0
----
-3
-71

query I rowsort
SELECT DISTINCT - 20 + - 43 + - + col0 + - col2 + - col2 * + 18 + - - col1 * 99 AS col1 FROM tab1 AS cor0
----
-552
-774
3207

query II rowsort
SELECT - ( - + col0 ) + + 63 + + + col1, col0 AS col0 FROM tab2 AS cor0
----
160
46
204
64
205
75

query I rowsort
SELECT 70 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - 41 * - 30 FROM tab0 AS cor0
----
1245
1317
1327

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

query II rowsort
SELECT ALL col2 + + 28 AS col2, - ( col2 ) AS col0 FROM tab0
----
127
-99
38
-10
75
-47

query I rowsort
SELECT + 52 * - col0 + - col2 - 22 - - col1 + + col0 FROM tab0
----
-4448
-5067
-753

query I rowsort
SELECT DISTINCT col0 - 61 AS col0 FROM tab0
----
-46
26
36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 90 * - + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9981
SELECT CAST( - col0 AS SIGNED ) DIV + col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT CAST ( - col0 AS INTEGER ) / + col2 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - 55 FROM tab1 WHERE NOT - col0 + + col0 = col0
----
-55
-55
-55

query I rowsort
SELECT - - 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - ( - 29 ) FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL + CAST( NULL AS SIGNED ) * - + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT DISTINCT + + 12 DIV - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT + + 12 / - col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + col2 AS col0, 77 AS col2 FROM tab0 AS cor0
----
10
77
47
77
99
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - - MIN( - 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9988
SELECT - - MIN ( - 61 ) FROM tab0 AS cor0
----
-61

query II rowsort
SELECT ALL + 64 AS col1, 16 FROM tab1 AS cor0
----
64
16
64
16
64
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9990
SELECT DISTINCT ( + ( + COUNT( col0 ) ) ) AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9990
SELECT DISTINCT ( + ( + COUNT ( col0 ) ) ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab2 WHERE NOT + ( - 95 ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT 89 * + + col0 * col0 FROM tab2
----
188324
364544
500625

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

skipif mysql # not compatible
query I rowsort label-9993
SELECT CAST ( + 9 AS INTEGER ) AS col1 FROM tab0
----
9
9
9

query III rowsort
SELECT * FROM tab1 WHERE NOT 71 * + 85 / col0 NOT BETWEEN ( NULL ) AND + 33 * 19 + + col1
----

query I rowsort
SELECT DISTINCT col1 * ( - - 89 ) FROM tab1
----
1246
4183
445

onlyif mysql # DIV for integer division: 
query I rowsort label-9996
SELECT - - col0 DIV + + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9996
SELECT - - col0 / + + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 * + col0 + 34 FROM tab2 AS cor0
----
2380
4962
5059

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + MIN( DISTINCT - - 27 ) AS col0 FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-9998
SELECT + MIN ( DISTINCT - - 27 ) AS col0 FROM tab0 cor0
----
27

query I rowsort
SELECT ALL - col0 - - 29 + - 78 FROM tab0
----
-136
-146
-64

