sqllogictest
Artifact Content
Not logged in

Artifact 20f2f2cea268fc7a39c36439113002b924a70c61:


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 ALL + + 90 * col0 * + + col0 * - col0 + - - col0 * - col2 * + + col0 * - + 69 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-12288000
-15457500
-5402148

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3
SELECT - MAX ( - - col0 ) FROM tab1 AS cor0
----
-91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - COUNT( ALL - - 85 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6
SELECT - COUNT ( ALL - - 85 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT DISTINCT - MAX( ALL - + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7
SELECT DISTINCT - MAX ( ALL - + col0 ) col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + + col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col2, - col0 + - 43 AS col1 FROM tab0 cor0
----
10
-130
47
-58
99
-140

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( 66 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL ( - 70 ) * + col1 FROM tab2
----
-3570
-4690
-5390

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

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

query I rowsort
SELECT ALL 60 * 74 FROM tab2
----
4440
4440
4440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 89 ) col0 FROM tab1
----
89
89
89

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-22
SELECT COUNT( * ), 4 * - - COUNT( * ) AS col1 FROM tab1
----
3
12

skipif mysql # not compatible
query II rowsort label-22
SELECT COUNT ( * ), 4 * - - COUNT ( * ) AS col1 FROM tab1
----
3
12

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

query I rowsort
SELECT + - col0 * - 78 AS col0 FROM tab1 AS cor0
----
3978
6630
7098

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

query I rowsort
SELECT - AVG ( - - col1 ) AS col0 FROM tab2 WHERE NULL = col1 + + + 69 * - + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT ALL COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL COUNT ( * ) AS col1 FROM tab1
----
3

query II rowsort
SELECT ALL + 52 + 36, + col0 FROM tab2
----
88
46
88
64
88
75

query I rowsort
SELECT - col1 * + + col1 + + col0 + ( col1 ) AS col1 FROM tab2
----
-2504
-4347
-5788

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

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

query I rowsort
SELECT + - 43 AS col1 FROM tab2 AS cor0
----
-43
-43
-43

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + col2 col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT - 0 - + col2 FROM tab0
----
-10
-47
-99

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

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

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

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

query I rowsort
SELECT col1 + + - 15 + + col0 * + - 6 AS col0 FROM tab1
----
-307
-514
-520

query II rowsort
SELECT ( + 33 ) * - 29, - col0 AS col0 FROM tab2
----
-957
-46
-957
-64
-957
-75

query I rowsort
SELECT 34 * - col1 AS col2 FROM tab1
----
-1598
-170
-476

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * 33 / - col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT col2 DIV 30 col2 FROM tab1
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-45
SELECT col2 / 30 col2 FROM tab1
----
1
2
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 57 * 64 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL 54 + COUNT( * ) * - COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL 54 + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-49
SELECT COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-50
SELECT COUNT ( * ) FROM tab1
----
3

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

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT DISTINCT SUM( ALL col1 ) + MAX( + col1 ) FROM tab1
----
113

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT SUM ( ALL col1 ) + MAX ( + col1 ) FROM tab1
----
113

query I rowsort
SELECT ALL - col0 * 12 + col0 * + col2 FROM tab1 WHERE ( - ( - col1 ) ) - 77 NOT IN ( + 10 )
----
3995
4284
5096

query I rowsort
SELECT ALL 51 + + 59 AS col2 FROM tab2
----
110
110
110

query III rowsort
SELECT ALL * FROM tab0 WHERE 84 * - ( - col2 ) > 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col0 * - 7 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT ALL col1 * ( 78 DIV 76 ) + - col2 AS col0 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL col1 * ( 78 / 76 ) + - col2 AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT 81 + col2 * 1 AS col1 FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 89 + 73 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col0 >= ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT - MAX( col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-62
SELECT - MAX ( col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT 46 DIV 67 FROM tab0 WHERE ( + 16 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-63
SELECT 46 / 67 FROM tab0 WHERE ( + 16 ) IS NOT NULL
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT 61 BETWEEN col0 AND ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT 61 BETWEEN col0 AND ( - col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-67
SELECT + COUNT ( * ) FROM tab1
----
3

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col0 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT + col2 * 64 + + col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( 19 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT + ( + 51 ) = 50
----
9

skipif mysql # not compatible
query I rowsort label-75
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT + ( + 51 ) = 50
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL + SUM( ALL + col0 ) + COUNT( ALL col1 - col1 ) AS col0 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL + SUM ( ALL + col0 ) + COUNT ( ALL col1 - col1 ) AS col0 FROM tab2
----
188

query I rowsort
SELECT col0 + ( - 71 - - col1 ) AS col2 FROM tab1
----
-6
19
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <> col0 * + 51 + col2 * 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - col2 AS col2 FROM tab2 WHERE col0 + col0 IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT 8 * - col0 AS col0 FROM tab2
----
-368
-512
-600

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

query I rowsort
SELECT ALL + col2 * - 22 AS col2 FROM tab1
----
-1298
-1496
-2112

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - 80
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 * - 79 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 * - 79 < ( NULL )
----
0

query I rowsort
SELECT DISTINCT - col0 * 71 FROM tab2
----
-3266
-4544
-5325

query I rowsort
SELECT DISTINCT 88 * - col0 FROM tab2
----
-4048
-5632
-6600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL + COUNT( * ) * + 12 + - 10 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL + COUNT ( * ) * + 12 + - 10 FROM tab0
----
26

query I rowsort
SELECT DISTINCT 50 * 72 + col2 FROM tab2
----
3623
3640
3658

query I rowsort
SELECT - - 8 * + 1 + - 4 AS col0 FROM tab2 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - 63 + - col0 AS col1 FROM tab1 AS cor0
----
-114
-148
-154

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE NULL <> 59
----

query I rowsort
SELECT + 56 + - col1 * col2 FROM tab0 AS cor0
----
-154
-3751
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + + COUNT( * ) + + 76 AS col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-95
SELECT + + COUNT ( * ) + + 76 AS col0 FROM tab1 AS cor0
----
79

query I rowsort
SELECT ALL - 69 + + col1 AS col0 FROM tab0 AS cor0
----
-48
-68
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-97
SELECT ALL + MAX( col0 ) FROM tab2 AS cor0 WHERE col2 * + CAST( NULL AS DECIMAL ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + MAX ( col0 ) FROM tab2 AS cor0 WHERE col2 * + CAST ( NULL AS REAL ) IS NULL
----
75

query I rowsort
SELECT ( - 19 ) + ( + ( - col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) > ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT ALL COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT DISTINCT - COUNT( * ) - MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT - COUNT ( * ) - MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT - + COUNT( * ) + + 60 AS col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-102
SELECT - + COUNT ( * ) + + 60 AS col0 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ( + col1 ) + 3 FROM tab2 AS cor0 WHERE ( col1 + col2 ) >= + 23
----
54
70
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-105
SELECT COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT ( - + 56 ) FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT - SUM( ALL - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - SUM ( ALL - col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT - AVG ( col2 ) AS col0 FROM tab1 WHERE NOT 12 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-111
SELECT ALL COUNT ( * ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT - SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
-66

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

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

skipif mysql # not compatible
query I rowsort label-114
SELECT COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 50 * + 35 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e2ea215bdf5c9f77a6101ee2849536f3

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

query I rowsort
SELECT + + 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

query I rowsort
SELECT + col1 + + col1 + 79 * 5 FROM tab2
----
497
529
549

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

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

query I rowsort
SELECT - - 65 + 13 AS col2 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-122
SELECT DISTINCT - - CAST( MAX( ALL + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT - - CAST ( MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT + 23 + + col0 AS col2 FROM tab0 AS cor0
----
110
120
38

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

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

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

query I rowsort
SELECT ALL - col1 * - + 89 + + col0 FROM tab1 AS cor0
----
1297
4274
530

query I rowsort
SELECT ALL - col2 * - - 67 FROM tab1 AS cor0
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT 8 * + - 99 AS col0 FROM tab0 AS cor0
----
-792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + col2 * + - col2 + + 86 * col2 AS col1 FROM tab0 AS cor0
----
-1287
1833
760

query I rowsort
SELECT DISTINCT - col0 * + - 0 * + ( + 95 ) + col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - 89
----

query I rowsort
SELECT DISTINCT - col2 + col2 + + col0 * col0 AS col2 FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( - + col2 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL MAX( DISTINCT + ( - col1 ) ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-136
SELECT ALL MAX ( DISTINCT + ( - col1 ) ) col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 68 + - + col0 + col0 + - col2 AS col1 FROM tab2
----
10
28
45

query II rowsort
SELECT ( + col2 ), - col0 FROM tab0
----
10
-87
47
-15
99
-97

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

query I rowsort
SELECT DISTINCT + col1 + col2 + col2 + + col1 * 82 * 51 AS col1 FROM tab1
----
196737
21033
58754

query I rowsort
SELECT 43 + + col2 * 25 FROM tab2 cor0
----
1043
1493
618

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT ALL + - 72 DIV + col1 AS col2 FROM tab0 AS cor0
----
-3
-72
0

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + - 72 / + col1 AS col2 FROM tab0 AS cor0
----
-3
-72
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 + + + col2 - col0 * - col2 AND NULL
----

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

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

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

query I rowsort
SELECT ALL + 76 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 79 < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-149
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-149
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL 66 * - col2 + + col1 FROM tab1
----
-3889
-4441
-6322

query III rowsort
SELECT * FROM tab1 WHERE 41 - + 67 IS NULL OR + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT COUNT( * ) + - 39 AS col2 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT COUNT ( * ) + - 39 AS col2 FROM tab0
----
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL - 91 + + SUM( 17 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - 91 + + SUM ( 17 ) FROM tab1 AS cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - col1 col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT 7 FROM tab0 AS cor0 WHERE ( - - 14 ) * - 57 > + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-158
SELECT ALL col0 AS col1, col2 DIV - - col0 FROM tab0 cor0
----
15
3
87
0
97
1

skipif mysql # not compatible
query II rowsort label-158
SELECT ALL col0 AS col1, col2 / - - col0 FROM tab0 cor0
----
15
3
87
0
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT - - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-159
SELECT - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - col1 * 28 AS col2 FROM tab2 cor0
----
-1428
-1876
-2156

query II rowsort
SELECT - 38 AS col0, - col1 FROM tab0
----
-38
-1
-38
-21
-38
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - - col1 * col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, - col1 col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT + SUM( DISTINCT col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-166
SELECT + SUM ( DISTINCT col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-167
SELECT - 62, + COUNT( * ) AS col0 FROM tab0
----
-62
3

skipif mysql # not compatible
query II rowsort label-167
SELECT - 62, + COUNT ( * ) AS col0 FROM tab0
----
-62
3

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT MAX( ALL - ( + - col1 ) ) / 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT MAX ( ALL - ( + - col1 ) ) / 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-169
SELECT DISTINCT 71 AS col2, - 3 - 70 * CAST( NULL AS SIGNED ) + 57 AS col0 FROM tab1 AS cor0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-169
SELECT DISTINCT 71 AS col2, - 3 - 70 * CAST ( NULL AS INTEGER ) + 57 AS col0 FROM tab1 AS cor0
----
71
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - col0 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - - 88 ) FROM tab2
----
-88
-88
-88

query I rowsort
SELECT + - 17 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT - MIN( ALL - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-173
SELECT - MIN ( ALL - col1 ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NOT - 62 + + 6 * col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT ALL COUNT( * ) + + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-175
SELECT ALL COUNT ( * ) + + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

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

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT + 26 - col1 >= + 42
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT 30 * + 36 * + - 25 + + 0 - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-27009

skipif mysql # not compatible
query I rowsort label-178
SELECT 30 * + 36 * + - 25 + + 0 - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-27009

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + 98 + - - 32 * - 31 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT 81 + - col0 FROM tab0 cor0
----
-16
-6
66

query II rowsort
SELECT 37 AS col1, + ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
37
15
37
87
37
97

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

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

query II rowsort
SELECT + col1 + ( 3 ) AS col0, - 7 FROM tab2 cor0
----
54
-7
70
-7
80
-7

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

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

query I rowsort
SELECT - 26 * + - col1 + - 5 FROM tab1
----
1217
125
359

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT - COUNT( * ) + 92 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-190
SELECT - COUNT ( * ) + 92 FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT + - COUNT( * ) AS col1 FROM tab1 WHERE ( + ( + col2 ) - col2 ) BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-191
SELECT + - COUNT ( * ) AS col1 FROM tab1 WHERE ( + ( + col2 ) - col2 ) BETWEEN col0 AND NULL
----
0

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

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

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

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

query II rowsort
SELECT ALL - col0 AS col2, col0 * + col0 AS col2 FROM tab1 AS cor0
----
-51
2601
-85
7225
-91
8281

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

onlyif mysql # DIV for integer division: 
query II rowsort label-198
SELECT DISTINCT + col1 DIV - - col0 AS col1, + col2 FROM tab2 AS cor0
----
0
58
1
23
1
40

skipif mysql # not compatible
query II rowsort label-198
SELECT DISTINCT + col1 / - - col0 AS col1, + col2 FROM tab2 AS cor0
----
0
58
1
23
1
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-200
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-200
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0
----
3

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

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

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

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

query II rowsort
SELECT - ( - col0 ) AS col0, 24 FROM tab2 AS cor0
----
46
24
64
24
75
24

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

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

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

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

skipif mysql # not compatible
query I rowsort label-207
SELECT - COUNT ( * ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 72 AND + + col1 AND NOT ( 62 * - - col2 < ( col0 ) )
----

query II rowsort
SELECT + col1, + col2 AS col0 FROM tab1 WHERE ( NULL ) >= - 46 AND col0 NOT IN ( - col1, col2 )
----

query I rowsort
SELECT ALL - col2 * + - 88 FROM tab1
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab2
----
75

query I rowsort
SELECT ALL 1 * - col1 FROM tab1
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-214
SELECT DISTINCT COUNT( * ) col2, - 81 * 68 * - 18 FROM tab1
----
3
99144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-214
SELECT DISTINCT COUNT ( * ) col2, - 81 * 68 * - 18 FROM tab1
----
3
99144

query I rowsort
SELECT 94 * - col1 FROM tab1 AS cor0
----
-1316
-4418
-470

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT - SUM( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-217
SELECT - SUM ( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
-185

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-219
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col2 > + ( 97 ) * + + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-219
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col2 > + ( 97 ) * + + ( CAST ( NULL AS INTEGER ) )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 81 + 20 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + - 88 AS col0 FROM tab2 AS cor0
----
-88
-88
-88

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

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

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

query I rowsort
SELECT - - 50 AS col0 FROM tab1 cor0
----
50
50
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT + MIN( ALL ( - - col2 ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + MIN ( ALL ( - - col2 ) ) AS col0 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < 16 - - col1 + + - col2 / + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT COUNT( 73 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-234
SELECT COUNT ( 73 ) FROM tab0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - 60 AS col1, + 76 col2 FROM tab0
----
-147
76
-157
76
-75
76

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE ( col1 + + + col0 IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL + COUNT( * ) * COUNT( * ) - - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT ALL col1 + - ( - 22 ) * - 98 AS col0 FROM tab0 AS cor0
----
-2075
-2135
-2155

query I rowsort
SELECT ALL + + 44 * - col0 + col2 + 78 + + col2 * ( col0 ) * col0 FROM tab0 AS cor0
----
10040
71950
927400

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1 * ( + 64 ), col0 * col2 + + col2 AS col0 FROM tab0 WHERE NOT col1 * - col1 + col0 <> NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-243
SELECT + 27 - COUNT ( * ), - COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + SUM( ALL col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-244
SELECT + SUM ( ALL col0 ) FROM tab2
----
185

query II rowsort
SELECT + + col1 AS col0, 70 + - + 14 AS col2 FROM tab2 cor0
----
51
56
67
56
77
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, + 90 col1 FROM tab0 AS cor0
----
-1
90
-21
90
-81
90

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT DISTINCT + 97 DIV + + col1 FROM tab1 cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT + 97 / + + col1 FROM tab1 cor0
----
19
2
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-248
SELECT ALL + 75 AS col0, - col0 * + col2 * CAST( NULL AS SIGNED ) * + ( - + col2 ) FROM tab0 AS cor0
----
75
NULL
75
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-248
SELECT ALL + 75 AS col0, - col0 * + col2 * CAST ( NULL AS INTEGER ) * + ( - + col2 ) FROM tab0 AS cor0
----
75
NULL
75
NULL
75
NULL

query I rowsort
SELECT ALL - ( + + 75 ) AS col1 FROM tab2 AS cor0
----
-75
-75
-75

query II rowsort
SELECT DISTINCT col1 * + col0 + 33, + col1 * - - 49 / - col1 FROM tab1 AS cor0 WHERE col1 * + col1 * + - col0 > + col2
----

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

skipif mysql # not compatible
query I rowsort label-251
SELECT COUNT ( * ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + ( + 10 ) * 25 + 21 FROM tab0
----
271

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 57 <= 40
----

onlyif mysql # DIV for integer division: 
query II rowsort label-254
SELECT ALL 93 DIV col0 * - - 78 DIV - col2 AS col2, 88 FROM tab2
----
-1
88
-1
88
-6
88

skipif mysql # not compatible
query II rowsort label-254
SELECT ALL 93 / col0 * - - 78 / - col2 AS col2, 88 FROM tab2
----
-1
88
-1
88
-6
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 33 BETWEEN col0 AND + + col1
----
3

skipif mysql # not compatible
query I rowsort label-256
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 33 BETWEEN col0 AND + + col1
----
3

query I rowsort
SELECT col1 * - + 38 FROM tab0
----
-3078
-38
-798

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-258
SELECT ALL SUM ( - ( - col0 ) ) col2 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT 39 * SUM( - 91 ) FROM tab0
----
-10647

skipif mysql # not compatible
query I rowsort label-259
SELECT 39 * SUM ( - 91 ) FROM tab0
----
-10647

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

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-261
SELECT 16 AS col0 FROM tab0 WHERE NOT + 71 * + + CAST( NULL AS SIGNED ) * - 24 + - ( - col2 ) IS NOT NULL
----
16
16
16

skipif mysql # not compatible
query I rowsort label-261
SELECT 16 AS col0 FROM tab0 WHERE NOT + 71 * + + CAST ( NULL AS INTEGER ) * - 24 + - ( - col2 ) IS NOT NULL
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT + col2 * - col0 * - 63 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - 77 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT + col2 * - col0 * - 63 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - 77 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT DISTINCT + + SUM( + 85 ) FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT + + SUM ( + 85 ) FROM tab2 AS cor0
----
255

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 7 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-267
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-268
SELECT DISTINCT - MAX( + + 21 ) + + 85 - COUNT( * ) + + COUNT( * ) col2, + 59 col0 FROM tab1 AS cor0
----
64
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-268
SELECT DISTINCT - MAX ( + + 21 ) + + 85 - COUNT ( * ) + + COUNT ( * ) col2, + 59 col0 FROM tab1 AS cor0
----
64
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 19 + + 36 + - - 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 39 + - col1 FROM tab0 AS cor0
----
-120
-40
-60

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + + 23 + - - col0 * - - 50 IS NULL
----

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

query I rowsort
SELECT + - 18 * + 74 + col1 FROM tab1 AS cor0
----
-1285
-1318
-1327

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL COUNT( * ) - 13 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL COUNT ( * ) - 13 FROM tab1 AS cor0
----
-10

query II rowsort
SELECT ALL - 40 AS col2, col0 * 57 AS col1 FROM tab0 AS cor0
----
-40
4959
-40
5529
-40
855

query I rowsort
SELECT + + col2 + - + col1 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT DISTINCT col0 AS col0, 86 AS col0 FROM tab0 AS cor0
----
15
86
87
86
97
86

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT - 17 + - + col1 DIV 14 FROM tab0
----
-17
-18
-22

skipif mysql # not compatible
query I rowsort label-280
SELECT - 17 + - + col1 / 14 FROM tab0
----
-17
-18
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT COUNT( ALL - 76 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT COUNT ( ALL - 76 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col2, col2 + + 57 + + + col2 AS col1 FROM tab2
----
23
103
40
137
58
173

query I rowsort
SELECT + ( + col0 ) * + + col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT + 50 + - col1 FROM tab0
----
-31
29
49

query I rowsort
SELECT ALL - ( - 35 ) + - col1 AS col0 FROM tab0
----
-46
14
34

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

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT COUNT( ALL 20 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-290
SELECT COUNT ( ALL 20 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col1 > + 21
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT - 70, + COUNT( + col0 ) col0 FROM tab1 cor0
----
-70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-292
SELECT - 70, + COUNT ( + col0 ) col0 FROM tab1 cor0
----
-70
3

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-293
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 58 * - 13 <> - col0
----

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

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

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

query I rowsort
SELECT + + col0 * + + col0 - col0 + + 51 - col2 + 57 FROM tab2 AS cor0
----
2155
4100
5600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT - ( - SUM( + + 24 ) ) FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-301
SELECT - ( - SUM ( + + 24 ) ) FROM tab0 cor0
----
72

query I rowsort
SELECT ALL - + 57 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT + col1 DIV - 82 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-304
SELECT + col1 / - 82 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 6 * + - ( 37 ) * - 4 FROM tab0 AS cor0
----
-888
-888
-888

query I rowsort
SELECT ALL - col1 * + + 8 FROM tab2 AS cor0
----
-408
-536
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-307
SELECT MIN( DISTINCT + - 48 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT MIN ( DISTINCT + - 48 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - ( - - col0 ) FROM tab2
----
-46
-64
-75

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

query II rowsort
SELECT + ( 32 ) * - col0 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
-1472
23
-2048
40
-2400
58

query I rowsort
SELECT ALL - + 98 AS col0 FROM tab0 AS cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < 60
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT + 82 DIV 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-316
SELECT + 82 / 99 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + - 47 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT col0 + - 8 + col2 FROM tab1 cor0
----
136
139
151

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

onlyif mysql # aggregate syntax: 
query II rowsort label-320
SELECT + COUNT( * ) + 27 AS col1, - 55 * 90 + MIN( ALL + + col1 ) AS col2 FROM tab2
----
30
-4899

skipif mysql # not compatible
query II rowsort label-320
SELECT + COUNT ( * ) + 27 AS col1, - 55 * 90 + MIN ( ALL + + col1 ) AS col2 FROM tab2
----
30
-4899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT DISTINCT - 50 + + CAST( NULL AS SIGNED ) + col2 - - col0 + - + 80 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - 50 + + CAST ( NULL AS INTEGER ) + col2 - - col0 + - + 80 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * - col2 + col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( + 18 ) + + 37
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + ( + - col0 ) * - 65 * + + col2 IS NOT NULL ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT + + COUNT( * ) - - 14 AS col1 FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT + + COUNT ( * ) - - 14 AS col1 FROM tab2 cor0
----
17

query I rowsort
SELECT ALL - + 85 FROM tab1 AS cor0
----
-85
-85
-85

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - MIN( - + 8 ) - + - COUNT( * ) + - + 90 AS col0 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-334
SELECT - MIN ( - + 8 ) - + - COUNT ( * ) + - + 90 AS col0 FROM tab1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT - ( - col0 ) DIV + + 35 + - - 67 - + + col2 FROM tab0
----
-30
20
59

skipif mysql # not compatible
query I rowsort label-335
SELECT - ( - col0 ) / + + 35 + - - 67 - + + col2 FROM tab0
----
-30
20
59

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT DISTINCT - COUNT( * ) DIV - 54 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT - COUNT ( * ) / - 54 AS col2 FROM tab0
----
0

query II rowsort
SELECT ALL 71, ( + col2 ) FROM tab2
----
71
23
71
40
71
58

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL + COUNT( - col0 ) + - COUNT( * ) + + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL + COUNT ( - col0 ) + - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
3

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

query I rowsort
SELECT - 82 + col0 AS col2 FROM tab2
----
-18
-36
-7

query III rowsort
SELECT * FROM tab0 WHERE + 58 = col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT - col1 DIV + + 72 + col2 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-343
SELECT - col1 / + + 72 + col2 FROM tab0
----
10
46
99

query II rowsort
SELECT ALL col0, 71 - col2 FROM tab1
----
51
-25
85
12
91
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 = - ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 AS col0, - col0 * col0 FROM tab1 AS cor0
----
-59
-7225
-68
-8281
-96
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT ( - + ( + SUM( - - ( + col2 ) ) ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT ( - + ( + SUM ( - - ( + col2 ) ) ) ) FROM tab2 cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-348
SELECT ALL - + 64, 80 / col0 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-348
SELECT ALL - + 64, 80 / col0 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-64
NULL
-64
NULL
-64
NULL

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

skipif mysql # not compatible
query I rowsort label-349
SELECT + MIN ( + 18 ) FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT MIN( DISTINCT 18 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT MIN ( DISTINCT 18 ) FROM tab0
----
18

query II rowsort
SELECT ALL + col0, 17 AS col2 FROM tab2
----
46
17
64
17
75
17

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT ALL COUNT( DISTINCT - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL COUNT ( DISTINCT - col0 ) FROM tab2
----
3

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 27 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT + - 32 * - CAST( - 88 AS SIGNED ) AS col2 FROM tab1 cor0
----
-2816
-2816
-2816

skipif mysql # not compatible
query I rowsort label-356
SELECT + - 32 * - CAST ( - 88 AS INTEGER ) AS col2 FROM tab1 cor0
----
-2816
-2816
-2816

query I rowsort
SELECT + col1 * - col2 + 51 AS col0 FROM tab2 cor0
----
-1122
-3029
-3835

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE ( + col0 ) <= + + col2
----
51

query I rowsort
SELECT ALL + + col2 * + - 68 + + col2 FROM tab1 cor0
----
-3953
-4556
-6432

onlyif mysql # DIV for integer division: 
query I rowsort label-361
SELECT + 10 * col2 DIV + col2 FROM tab1 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-361
SELECT + 10 * col2 / + col2 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT + ( + - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL COUNT( * ) * - COUNT( * ) + - - SUM( DISTINCT + col1 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - - SUM ( DISTINCT + col1 ) FROM tab1
----
57

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-364
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col0 + - - col1 AND + col1 <= + + 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-366
SELECT + CAST( NULL AS SIGNED ) * + - 75 * - 28 / + - 19 + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT + CAST ( NULL AS INTEGER ) * + - 75 * - 28 / + - 19 + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

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

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

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

query II rowsort
SELECT col2 * + - col2 AS col0, 32 FROM tab1 AS cor0
----
-3481
32
-4624
32
-9216
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 >= - - col1
----
0

skipif mysql # not compatible
query I rowsort label-373
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 >= - - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL - - COUNT( * ) + 57 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - - COUNT ( * ) + 57 FROM tab0 AS cor0
----
60

query I rowsort
SELECT ALL - 84 - col0 AS col1 FROM tab2 cor0
----
-130
-148
-159

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT DISTINCT + 2 * + - 30 - - CAST( NULL AS SIGNED ) + - + 93 * - + 49 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT + 2 * + - 30 - - CAST ( NULL AS INTEGER ) + - + 93 * - + 49 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 96 + 0 FROM tab1 AS cor0
----
96
96
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 BETWEEN + - 16 AND - - 67
----
46
51
23
75
67
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT col1 + col2 DIV - col1 + + col2 AS col0 FROM tab1 AS cor0
----
104
114
53

skipif mysql # not compatible
query I rowsort label-381
SELECT col1 + col2 / - col1 + + col2 AS col0 FROM tab1 AS cor0
----
104
114
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-383
SELECT - + col0 AS col0, CAST( - 47 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-15
-2209
-87
-470
-97
-4653

skipif mysql # not compatible
query II rowsort label-383
SELECT - + col0 AS col0, CAST ( - 47 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-15
-2209
-87
-470
-97
-4653

query I rowsort
SELECT col2 * col1 * - - col2 AS col2 FROM tab2
----
123200
225388
26979

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - ( + - 89 )
----

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

query I rowsort
SELECT col0 * + - 54 FROM tab2
----
-2484
-3456
-4050

query I rowsort
SELECT ALL col0 - + col1 * - col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL 11 * 13 / - - col0 * + 19 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT COUNT( * ) * - 18 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-390
SELECT COUNT ( * ) * - 18 FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col2 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col2 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - ( + 62 ) AS col1, col0 FROM tab2 AS cor0
----
-62
46
-62
64
-62
75

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

skipif mysql # not compatible
query I rowsort label-393
SELECT - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 57 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT - MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + + col1 AS col2 FROM tab2 cor0 WHERE NOT ( NOT - 52 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT SUM( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-400
SELECT - col0 AS col0, col0 DIV - - 97 AS col0 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-400
SELECT - col0 AS col0, col0 / - - 97 AS col0 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL SUM( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT ALL SUM ( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
199

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab0
----
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + col2 ) col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col0 + + - 65 FROM tab1
----
-14
20
26

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT 15 * + COUNT( - col0 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT 15 * + COUNT ( - col0 ) AS col0 FROM tab2
----
45

query I rowsort
SELECT - ( + + 58 ) + col0 AS col2 FROM tab0 AS cor0
----
-43
29
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-411
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT - col0 - - + 2 * + - col0 * - 14 AS col0 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT DISTINCT + 98 - + col0 AS col1 FROM tab2 AS cor0
----
23
34
52

query I rowsort
SELECT - - 8 AS col1 FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
8
8
8

query I rowsort
SELECT 38 - + 13 AS col2 FROM tab1 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 - + col2 col1 FROM tab2 AS cor0
----
12
30
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE + 45 + + - 19 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE + 45 + + - 19 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + 16 FROM tab1
----
224
752
80

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT col2 DIV + col1 col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-422
SELECT col2 / + col1 col1 FROM tab1
----
1
11
6

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 40 + - + col0 * + col0 * + 96 / + 77 + - + col1 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT DISTINCT - col0 DIV - col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT - col0 / - col2 FROM tab0
----
0
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT CAST( - COUNT( col0 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-426
SELECT CAST ( - COUNT ( col0 ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - ( + - 47 ) AS col2 FROM tab0
----
47

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

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-430
SELECT - COUNT ( * ) FROM tab2
----
-3

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

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

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

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

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

query I rowsort
SELECT ( ( + + col2 ) ) * - 71 + - col0 FROM tab0
----
-3352
-7126
-797

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 51 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + col0 + + col1 * + - 55 FROM tab2 AS cor0
----
-2759
-3610
-4171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * - - 47 + col0 col0 FROM tab0
----
1801
1873
1883

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN NULL AND - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT + COUNT( - 93 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + COUNT ( - 93 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-448
SELECT CAST( + col1 AS SIGNED ) + col0 col2 FROM tab1
----
138
65
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-448
SELECT CAST ( + col1 AS INTEGER ) + col0 col2 FROM tab1
----
138
65
90

query I rowsort
SELECT + 72 + + 19 + col2 FROM tab2
----
114
131
149

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT COUNT( * ) + + 75 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-450
SELECT COUNT ( * ) + + 75 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT DISTINCT col0 + + - CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT col0 + + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
108
96
98

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

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

query I rowsort
SELECT DISTINCT 91 + - col0 FROM tab0
----
-6
4
76

query I rowsort
SELECT DISTINCT - 78 + + col2 FROM tab2
----
-20
-38
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT ALL - COUNT( * ) FROM tab0 WHERE + 19 + + col0 NOT IN ( + col0, 28, - - 61 + + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + 19 + + col0 NOT IN ( + col0, 28, - - 61 + + col1 )
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 50 BETWEEN + ( ( - col0 ) ) AND - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-458
SELECT - col0 + ( + - 56 ) DIV - CAST( + col1 AS SIGNED ), col2 FROM tab2
----
-45
23
-64
40
-75
58

skipif mysql # not compatible
query II rowsort label-458
SELECT - col0 + ( + - 56 ) / - CAST ( + col1 AS INTEGER ), col2 FROM tab2
----
-45
23
-64
40
-75
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + - col1 + col0 + + col1 * col0 / + + col2 >= NULL
----

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

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

query I rowsort
SELECT + - 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL + ( - 14 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL + ( + 60 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL + ( + 60 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT - col1 + + - col0 + col2 + + + 76 FROM tab0 AS cor0 WHERE ( NOT 42 IS NULL )
----
-22
27
77

query I rowsort
SELECT 75 + + 75 FROM tab1 AS cor0
----
150
150
150

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT MAX( + col1 ) + + COUNT( * ) FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-469
SELECT MAX ( + col1 ) + + COUNT ( * ) FROM tab0 cor0
----
84

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

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

query I rowsort
SELECT ALL - + 38 AS col0 FROM tab0 AS cor0
----
-38
-38
-38

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 0 + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * 31 AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * 31 AS col0 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT MAX( DISTINCT - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-480
SELECT MAX ( DISTINCT - col1 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + 84 * + - 25 FROM tab0
----
-2100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT DISTINCT ( col0 ) DIV 9 DIV + - col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT ( col0 ) / 9 / + - col0 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 15 * col0 col1, col1 col1 FROM tab1
----
1275
5
1365
47
765
14

query I rowsort
SELECT DISTINCT + ( - 93 ) FROM tab0
----
-93

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

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

query I rowsort
SELECT 23 + - + 22 - col0 + + col2 + - col1 + - + 36 - col0 / - - col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-492
SELECT col0 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-492
SELECT col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-495
SELECT DISTINCT + CAST( - 64 AS SIGNED ) + col1 - col2 * + + 14 AS col2 FROM tab2
----
-335
-547
-809

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT + CAST ( - 64 AS INTEGER ) + col1 - col2 * + + 14 AS col2 FROM tab2
----
-335
-547
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL - COUNT( * ) + - 12 * - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - COUNT ( * ) + - 12 * - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
99

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

query I rowsort
SELECT - col2 + - - col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT MAX( ALL + col0 ) + + - COUNT( * ) + + - 82 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-499
SELECT MAX ( ALL + col0 ) + + - COUNT ( * ) + + - 82 FROM tab0 cor0
----
12

query I rowsort
SELECT col2 * + ( + 36 ) AS col1 FROM tab2 cor0
----
1440
2088
828

query II rowsort
SELECT col2 AS col0, - 61 FROM tab0 AS cor0
----
10
-61
47
-61
99
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 81 * + 52 + + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 <> - col0 + + col0 - col1
----
4215

skipif mysql # not compatible
query I rowsort label-502
SELECT 81 * + 52 + + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 <> - col0 + + col0 - col1
----
4215

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

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

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT DISTINCT 36 DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT 36 / col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + - 36 AS col1 FROM tab0
----
-21
51
61

query I rowsort
SELECT ALL + 82 + - - 7 - - 60 + + col0 * + 69 * + + 74 FROM tab0
----
444371
495431
76739

query I rowsort
SELECT col0 - + col0 + - + 56 FROM tab1
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT 8 + + SUM( ALL + - col1 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-511
SELECT 8 + + SUM ( ALL + - col1 ) FROM tab1
----
-58

query I rowsort
SELECT - col0 * + col0 + - + col2 * + ( - col1 ) - - 49 + + - ( - 11 ) AS col0 FROM tab1 AS cor0
----
-1197
-5025
-6870

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * - + 68 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-514
SELECT MIN( ALL + 99 ) + - - 62 + - 25 DIV 98 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-514
SELECT MIN ( ALL + 99 ) + - - 62 + - 25 / 98 FROM tab2 AS cor0
----
161

query I rowsort
SELECT - + col0 + - col1 + - + 86 + - - col2 FROM tab0 AS cor0
----
-135
-184
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT + 12 AS col0, 40 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
12
40

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

query I rowsort
SELECT - col0 * + col1 * + col2 AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL - - 48 AS col2 FROM tab0 AS cor0
----
48
48
48

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL + + ( - COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE + col0 + - + col2 > 73
----
0

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + + ( - COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE + col0 + - + col2 > 73
----
0

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

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

query II rowsort
SELECT - 73 AS col0, + col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN 8 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-527
SELECT ALL + col0 DIV - 92 * + + col0 AS col0, col1 * col1 * ( + ( + + 41 ) ) FROM tab2 AS cor0 WHERE NOT - 0 * 41 IS NULL
----
0
106641
0
184049
0
243089

skipif mysql # not compatible
query II rowsort label-527
SELECT ALL + col0 / - 92 * + + col0 AS col0, col1 * col1 * ( + ( + + 41 ) ) FROM tab2 AS cor0 WHERE NOT - 0 * 41 IS NULL
----
0
106641
0
184049
0
243089

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

onlyif mysql # aggregate syntax: 
query II rowsort label-529
SELECT + 88 col2, + COUNT( * ) FROM tab0
----
88
3

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

query III rowsort
SELECT DISTINCT 16, 54 AS col0, - col0 AS col2 FROM tab0
----
9 values hashing to d4c7917dfc27a0eab697248b3a163f8a

query I rowsort
SELECT + col1 * - + col2 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT - COUNT( * ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-532
SELECT - COUNT ( * ) col0 FROM tab1
----
-3

query II rowsort
SELECT col0, - col0 * col2 FROM tab1
----
51
-4896
85
-5015
91
-6188

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

skipif mysql # not compatible
query II rowsort label-534
SELECT - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT - 79 * - ( + - 40 ) AS col2 FROM tab2
----
-3160
-3160
-3160

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL COUNT( col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL COUNT ( col0 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-539
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-539
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col1 IS NULL
----

query I rowsort
SELECT - ( + + ( col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 50 * - 22 - + col0 >= NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, + ( - + col0 ) FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT + 64 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
64

query I rowsort
SELECT ALL - 12 AS col0 FROM tab0 WHERE NULL IS NULL
----
-12
-12
-12

query II rowsort
SELECT DISTINCT 15 + col1 + + 72, col0 FROM tab2 AS cor0
----
138
46
154
75
164
64

query I rowsort
SELECT ALL - col2 * - - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 - + col1 NOT IN ( + col0 + + 13, 58, - 13 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 * + 29 AS col0, 32 + - col1 AS col2 FROM tab0 cor0
----
-2349
-49
-29
31
-609
11

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-550
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 47 - + 78 col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT ALL 83 DIV - 78 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL 83 / - 78 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + 14 ) + + + 53 AS col0 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT ALL + 39 AS col2 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL + 8 + COUNT( + - 24 ) FROM tab0 WHERE NULL IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + 8 + COUNT ( + - 24 ) FROM tab0 WHERE NULL IS NULL
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col1 * - 76 col1, 83 col2 FROM tab0
----
-1575
83
-6075
83
-75
83

query III rowsort
SELECT * FROM tab0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col1 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-558
SELECT COUNT( col0 ) DIV COUNT( + ( + col0 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-558
SELECT COUNT ( col0 ) / COUNT ( + ( + col0 ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - MAX( ALL + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-559
SELECT - MAX ( ALL + col0 ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 + - - col1 * - col2 col0 FROM tab2
----
-1157
-3064
-3870

query II rowsort
SELECT DISTINCT col0 + - col1 * + col2, col2 AS col2 FROM tab2
----
-1127
23
-3016
40
-3811
58

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

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

query I rowsort
SELECT ALL + col0 + + 1 AS col0 FROM tab1
----
52
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 + - 21 - + + ( col2 ) col1 FROM tab0
----
-120
-157
-209

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE 94 NOT BETWEEN col0 * 96 AND - 77
----
-46
-64
-75

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

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

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

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 49 / col0 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-572
SELECT - COUNT ( * ) FROM tab2 cor0
----
-3

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

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

query I rowsort
SELECT - + 50 AS col2 FROM tab2 AS cor0
----
-50
-50
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
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-576
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT ALL + 19 AS col0 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL AVG ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE - col0 IN ( + - 39 + - 56 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-580
SELECT * FROM tab1 cor0 WHERE NOT - CAST( ( 4 ) AS SIGNED ) + + 81 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-580
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( ( 4 ) AS INTEGER ) + + 81 IS NOT NULL
----

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

query II rowsort
SELECT - - col1, - col1 FROM tab1 WHERE - 95 NOT IN ( col2, + ( - + ( - col0 ) ), col2 ) AND ( - 68 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab2
----
-60

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

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

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

query II rowsort
SELECT ALL col2 AS col2, + col0 FROM tab1
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - - 18 col2 FROM tab1
----
936
936
936

query I rowsort
SELECT 42 * + - 56 * 12 FROM tab1
----
-28224
-28224
-28224

query I rowsort
SELECT ALL col1 * 35 AS col1 FROM tab2
----
1785
2345
2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col2 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT + - COUNT( DISTINCT + col0 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-593
SELECT + - COUNT ( DISTINCT + col0 ) / - COUNT ( * ) FROM tab1 AS cor0
----
1

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > 69
----

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

query I rowsort
SELECT DISTINCT - col2 * + col0 * - 9 * - - 55 AS col2 FROM tab0 AS cor0
----
348975
430650
4753485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, + col0 + + + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-46
-5
-64
-13
-75
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-600
SELECT + CAST( NULL AS SIGNED ) * col1, + col2 DIV col2 AS col2 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-600
SELECT + CAST ( NULL AS INTEGER ) * col1, + col2 / col2 AS col2 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-601
SELECT + - col2 * - + col0 AS col0, 52 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4896
-728
5015
-260
6188
-2444

skipif mysql # not compatible
query II rowsort label-601
SELECT + - col2 * - + col0 AS col0, 52 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4896
-728
5015
-260
6188
-2444

query I rowsort
SELECT DISTINCT ( - - col2 ) + + col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - - col0 * + - 96 + - col1 AS col1 FROM tab2 AS cor0
----
-4467
-6221
-7267

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

query II rowsort
SELECT ALL + col1, col2 + - + col0 FROM tab0 AS cor0
----
1
2
21
-77
81
32

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT + col0 DIV - col1 + + - 85 AS col2 FROM tab1 AS cor0
----
-102
-86
-88

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + col0 / - col1 + + - 85 AS col2 FROM tab1 AS cor0
----
-102
-86
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL SUM( col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL SUM ( col0 ) AS col0 FROM tab0 cor0
----
199

query I rowsort
SELECT + 84 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
84
84
84

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

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

query I rowsort
SELECT col2 - + - 34 AS col0 FROM tab1
----
102
130
93

query I rowsort
SELECT + col1 FROM tab0 WHERE - - col2 NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT col1 + 98 AS col1, 91 AS col2 FROM tab1
----
103
91
112
91
145
91

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( ( + 57 ) <= + col2 ) )
----
97
1
99

query I rowsort
SELECT DISTINCT - col0 * - - col2 * - - col0 FROM tab0 WHERE NOT + - col2 IN ( - col0, col1 * 37 )
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT + col1 * + col1 + + ( col2 ) AS col1 FROM tab2
----
2624
4547
5969

query I rowsort
SELECT DISTINCT 29 - - + col0 AS col2 FROM tab1
----
114
120
80

query I rowsort
SELECT col0 + - ( - 47 ) AS col1 FROM tab0
----
134
144
62

query I rowsort
SELECT DISTINCT + col0 + - + col2 * col1 + - col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - 48 + - col0 * - + col2 FROM tab1 AS cor0
----
4848
4967
6140

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - MAX( + - 73 ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-623
SELECT - MAX ( + - 73 ) AS col0 FROM tab2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT col1 * - CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-624
SELECT col1 * - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
1173
3080
3886

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT + 50 * COUNT( * ) col0 FROM tab0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-626
SELECT DISTINCT + 50 * COUNT ( * ) col0 FROM tab0
----
150

query II rowsort
SELECT DISTINCT 32 AS col0, col1 FROM tab1 cor0
----
32
14
32
47
32
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT col2 * + - col1 AS col0 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 64 <> + 79
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT + 80 BETWEEN NULL AND col2
----
85
91

query I rowsort
SELECT col1 / + - col0 FROM tab0 WHERE NOT + + ( - - col2 ) NOT BETWEEN + col2 * - col0 + - col2 * - 72 AND - 9
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 21 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT 29 + + COUNT( * ) AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-637
SELECT 29 + + COUNT ( * ) AS col1 FROM tab0
----
32

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

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

query I rowsort
SELECT ALL - col2 * + - 21 * - ( - - col0 ) + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 56 IS NULL
----
-14852
-18280
-201762

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT + + col0 DIV - 31 + + col2 + - - col2 AS col2 FROM tab2 AS cor0
----
114
45
78

skipif mysql # not compatible
query I rowsort label-641
SELECT + + col0 / - 31 + + col2 + - - col2 AS col2 FROM tab2 AS cor0
----
114
45
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL - MAX( DISTINCT + - col0 ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-643
SELECT ALL - MAX ( DISTINCT + - col0 ) col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ( - + 42 ) * + col1 + + - 4 FROM tab2
----
-2146
-2818
-3238

query I rowsort
SELECT DISTINCT 34 * col2 + - - 34 FROM tab0
----
1632
3400
374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-646
SELECT ALL - CAST( NULL AS SIGNED ) * - 75 + + - 26 * - + col1 * col1 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - CAST ( NULL AS INTEGER ) * - 75 + + - 26 * - + col1 * col1 + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - 71 FROM tab2 cor0
----
-117
-135
-146

query I rowsort
SELECT col0 + - + 39 FROM tab1 AS cor0 WHERE NULL IS NULL
----
12
46
52

query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1058
-2560
-4350

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

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

query I rowsort
SELECT DISTINCT + col2 - - col2 + col1 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT + 47 + + col1 FROM tab1 AS cor0
----
52
61
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 90, 23 * 82 col0 FROM tab0
----
90
1886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * col1 + col0 col2 FROM tab2
----
-3983
-5218
-6019

query II rowsort
SELECT col0 AS col2, 93 * - col2 AS col2 FROM tab2
----
46
-2139
64
-3720
75
-5394

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT col1 / - col1 * + 52 - + 44 = col1 * - - col2
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT - + 24 AS col2, + COUNT( DISTINCT + 62 ) FROM tab1 AS cor0
----
-24
1

skipif mysql # not compatible
query II rowsort label-658
SELECT - + 24 AS col2, + COUNT ( DISTINCT + 62 ) FROM tab1 AS cor0
----
-24
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL 3 * + + MAX( DISTINCT + col1 ) col1 FROM tab1 cor0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-660
SELECT ALL 3 * + + MAX ( DISTINCT + col1 ) col1 FROM tab1 cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT + - CAST( 6 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-661
SELECT + - CAST ( 6 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT - 82 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-82

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

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT MIN( - col1 ), MAX( + + 6 ) AS col0 FROM tab2 AS cor0
----
-77
6

skipif mysql # not compatible
query II rowsort label-664
SELECT MIN ( - col1 ), MAX ( + + 6 ) AS col0 FROM tab2 AS cor0
----
-77
6

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL CAST( + + 62 AS SIGNED ) AS col0 FROM tab2
----
62
62
62

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

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

query I rowsort
SELECT - 75 + + col1 + - col1 FROM tab2 WHERE + 94 * - col2 IS NOT NULL
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT SUM( + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-673
SELECT SUM ( + col0 ) AS col2 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT ALL - 54 DIV + + col1 + - ( - col2 ) FROM tab2
----
22
40
58

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL - 54 / + + col1 + - ( - col2 ) FROM tab2
----
22
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-675
SELECT col1, + col2 + + - CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
14
82
47
21
5
54

skipif mysql # not compatible
query II rowsort label-675
SELECT col1, + col2 + + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
14
82
47
21
5
54

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( 76 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-681
SELECT col1 * CAST( + ( 82 ) AS SIGNED ) FROM tab1
----
1148
3854
410

skipif mysql # not compatible
query I rowsort label-681
SELECT col1 * CAST ( + ( 82 ) AS INTEGER ) FROM tab1
----
1148
3854
410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-682
SELECT CAST( col0 AS SIGNED ) * 29 AS col1 FROM tab1
----
1479
2465
2639

skipif mysql # not compatible
query I rowsort label-682
SELECT CAST ( col0 AS INTEGER ) * 29 AS col1 FROM tab1
----
1479
2465
2639

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> ( - col0 )
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT SUM( DISTINCT col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-690
SELECT SUM ( DISTINCT col2 ) col1 FROM tab0
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT 99 + MAX( + 98 ) AS col1 FROM tab1 WHERE NOT ( NULL ) <> ( col2 / col1 - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT 99 + MAX ( + 98 ) AS col1 FROM tab1 WHERE NOT ( NULL ) <> ( col2 / col1 - - col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT DISTINCT - 87 DIV 41 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - 87 / 41 AS col0 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT MIN( ALL col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-695
SELECT MIN ( ALL col0 ) FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT 96 DIV - ( 73 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT 96 / - ( 73 ) FROM tab0
----
-1

query I rowsort
SELECT col0 * 87 + + col1 AS col1 FROM tab0 WHERE ( + col0 ) BETWEEN ( + 19 * + col0 - 54 ) AND col1 / - col0
----

query I rowsort
SELECT col2 * col1 AS col0 FROM tab0 WHERE NOT 11 NOT IN ( - ( + col1 ) * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT 21 DIV 84 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-699
SELECT 21 / 84 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT COUNT( ALL - 72 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT COUNT ( ALL - 72 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT + col0 DIV - 61 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-701
SELECT + col0 / - 61 FROM tab0
----
-1
-1
0

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

skipif mysql # not compatible
query I rowsort label-702
SELECT COUNT ( * ) / 34 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-703
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( - CAST( NULL AS DECIMAL ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-703
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( - CAST ( NULL AS REAL ) * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT 32 DIV 90 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-704
SELECT 32 / 90 AS col1 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col0 * - 72 + 82 * 93 AS col1 FROM tab0
----
1362
642
6546

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + COUNT( ALL + ( - col0 ) ) FROM tab1 WHERE NOT - 56 - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-708
SELECT + COUNT ( ALL + ( - col0 ) ) FROM tab1 WHERE NOT - 56 - col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT col0 * 66 FROM tab1
----
3366
5610
6006

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * - 28 col0 FROM tab0 AS cor0
----
308
308
308

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

query I rowsort
SELECT ALL - 36 * 19 FROM tab1 AS cor0
----
-684
-684
-684

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

skipif mysql # not compatible
query I rowsort label-715
SELECT COUNT ( * ) / 98 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - ( col0 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 94 * 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( col2 ) ) + col2 * col0 col0 FROM tab0
----
658
860
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 23 col0 FROM tab1
----
119
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT - ( - - 62 ) + MAX( + 3 ) * MAX( - 94 - - 16 ) AS col0 FROM tab2
----
-296

skipif mysql # not compatible
query I rowsort label-720
SELECT - ( - - 62 ) + MAX ( + 3 ) * MAX ( - 94 - - 16 ) AS col0 FROM tab2
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - 85 * + COUNT( * ) + + ( 63 ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-721
SELECT - 85 * + COUNT ( * ) + + ( 63 ) FROM tab1
----
-192

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col0 / col1 NOT BETWEEN ( col0 ) AND NULL
----
51
85
91

query I rowsort
SELECT col1 * + + 83 + col0 AS col2 FROM tab2
----
4279
5636
6455

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * - 40 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT + COUNT( - 64 ) + ( + 15 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-726
SELECT + COUNT ( - 64 ) + ( + 15 ) AS col1 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT col0 * + 11 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) > + col2 * - 5 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-727
SELECT col0 * + 11 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) > + col2 * - 5 - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 * + ( + col0 ) - 78 FROM tab0 cor0
----
-783
-948
-9681

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

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT - 66 DIV + - col1 + col1 FROM tab2 AS cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-730
SELECT - 66 / + - col1 + col1 FROM tab2 AS cor0
----
52
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT 11 - + SUM( + - col2 ) - + MAX( ALL 12 + 93 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-732
SELECT 11 - + SUM ( + - col2 ) - + MAX ( ALL 12 + 93 ) FROM tab0
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE ( CAST( col1 AS SIGNED ) / - col2 ) > ( + col2 * 34 + col1 / + col1 )
----

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE ( CAST ( col1 AS INTEGER ) / - col2 ) > ( + col2 * 34 + col1 / + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT DISTINCT SUM( ALL 13 ) + COUNT( * ) FROM tab2 AS cor0 WHERE ( - 83 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT SUM ( ALL 13 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 83 ) = NULL
----
NULL

query I rowsort
SELECT col2 + + - col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT DISTINCT + + 79 * - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) * - COUNT( * ) + - MAX( - 47 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + + 79 * - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - MAX ( - 47 ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT SUM( DISTINCT - + 38 ) + 10 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-740
SELECT SUM ( DISTINCT - + 38 ) + 10 FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT - col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col2 * CAST( 23 AS SIGNED ) AND ( 21 ) OR NOT ( col0 ) NOT BETWEEN 84 AND NULL
----

skipif mysql # not compatible
query I rowsort label-741
SELECT - col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col2 * CAST ( 23 AS INTEGER ) AND ( 21 ) OR NOT ( col0 ) NOT BETWEEN 84 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-742
SELECT COUNT ( * ) FROM tab2 cor0
----
3

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

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

query I rowsort
SELECT DISTINCT + 73 * + + ( - + 50 ) FROM tab0 AS cor0
----
-3650

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE - col2 * + - col0 <= - 33 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT SUM( + ( - + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-746
SELECT SUM ( + ( - + col0 ) ) FROM tab0
----
-199

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 32 * + + col0 ) BETWEEN 14 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-750
SELECT ( col0 ) AS col2, + CAST( col1 AS SIGNED ) FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-750
SELECT ( col0 ) AS col2, + CAST ( col1 AS INTEGER ) FROM tab2
----
46
51
64
77
75
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT NULL <= ( - col0 + + col0 + + col0 / col1 )
----

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

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

query I rowsort
SELECT ALL - + 84 * + 28 FROM tab0 AS cor0
----
-2352
-2352
-2352

query I rowsort
SELECT - 48 * + col1 FROM tab1 AS cor0
----
-2256
-240
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT + col1 FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) * 53 + + 9 BETWEEN - col2 / + ( col1 ) + + 71 AND + 38
----
14
47
5

skipif mysql # not compatible
query I rowsort label-760
SELECT + col1 FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) * 53 + + 9 BETWEEN - col2 / + ( col1 ) + + 71 AND + 38
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col1 FROM tab1 AS cor0
----
83
83
83

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 1 ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-765
SELECT + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

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

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

query I rowsort
SELECT 27 * col0 + - col1 + 34 * + + col1 FROM tab2 cor0
----
2925
4236
4269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-768
SELECT ALL + - ( - + COUNT( * ) ) DIV - 42 col1 FROM tab1 cor0 WHERE NOT NULL >= col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-768
SELECT ALL + - ( - + COUNT ( * ) ) / - 42 col1 FROM tab1 cor0 WHERE NOT NULL >= col2
----
0

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

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

query I rowsort
SELECT - - col1 * 57 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # DIV for integer division: 
query II rowsort label-771
SELECT - - 8 * col2 * - col0 AS col2, - col2 DIV 45 + - col2 AS col1 FROM tab2 AS cor0
----
-20480
-40
-34800
-59
-8464
-23

skipif mysql # not compatible
query II rowsort label-771
SELECT - - 8 * col2 * - col0 AS col2, - col2 / 45 + - col2 AS col1 FROM tab2 AS cor0
----
-20480
-40
-34800
-59
-8464
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT + SUM( 9 ) AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + SUM ( 9 ) AS col1 FROM tab2 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT + - col2 DIV + col1 + + col0 AS col2 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-774
SELECT + - col2 / + col1 + + col0 AS col2 FROM tab1 AS cor0
----
45
74
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT DISTINCT - col2 DIV + + col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT - col2 / + + col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-778
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) - ( - col0 ), + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-778
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) - ( - col0 ), + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE + + col0 / col1 * + - col2 * + col0 * - col0 + ( col0 ) IN ( - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE + + col0 / col1 * + - col2 * + col0 * - col0 + ( col0 ) IN ( - 50 )
----
0

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

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

query I rowsort
SELECT + 29 * + col2 + - 95 AS col1 FROM tab1
----
1616
1877
2689

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-782
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) * + col0 * - col0 + 43 + - col1 <= 23
----

skipif mysql # not compatible
query III rowsort label-782
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) * + col0 * - col0 + 43 + - col1 <= 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT 24 + CAST( - 89 AS SIGNED ) * - - 74 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-6563
-6583
-6643

skipif mysql # not compatible
query I rowsort label-783
SELECT 24 + CAST ( - 89 AS INTEGER ) * - - 74 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-6563
-6583
-6643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-784
SELECT DISTINCT - 44 DIV COUNT( * ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - 44 / COUNT ( * ) FROM tab1 AS cor0
----
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 71 * + col0 ) <= ( col2 + - + col1 )
----

query I rowsort
SELECT col0 * + 46 AS col1 FROM tab2
----
2116
2944
3450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + + COUNT( * ) - + ( + + 84 ) col2 FROM tab0 AS cor0
----
-81

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

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

query I rowsort
SELECT ALL + 61 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
61
61
61

query I rowsort
SELECT ALL + + 76 AS col1 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT ( - 18 ) DIV - COUNT( * ) + - + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT ( - 18 ) / - COUNT ( * ) + - + COUNT ( * ) FROM tab2 cor0
----
3

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / + + 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-796
SELECT ALL 26 AS col1, COUNT( + col1 ) AS col2 FROM tab0
----
26
3

skipif mysql # not compatible
query II rowsort label-796
SELECT ALL 26 AS col1, COUNT ( + col1 ) AS col2 FROM tab0
----
26
3

query I rowsort
SELECT - 97 * - col0 FROM tab2
----
4462
6208
7275

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 16, col0 FROM tab2
----
16
46
16
64
16
75

query II rowsort
SELECT + col1 AS col2, + col0 - + col0 - - 97 AS col2 FROM tab1
----
14
97
47
97
5
97

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT SUM( + - 12 ) AS col0 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-801
SELECT SUM ( + - 12 ) AS col0 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT 64 * MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
1472

skipif mysql # not compatible
query I rowsort label-802
SELECT 64 * MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
1472

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1 WHERE NOT - + col1 IS NULL
----
48

query I rowsort
SELECT col0 * - + 97 FROM tab0 AS cor0
----
-1455
-8439
-9409

query I rowsort
SELECT - ( - 85 ) * - col1 * + 78 AS col2 FROM tab0 AS cor0
----
-139230
-537030
-6630

query I rowsort
SELECT ALL 1 * + ( + col0 ) AS col0 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IS NULL AND NOT 35 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-808
SELECT - COUNT ( * ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-811
SELECT ALL + + 58 + + + CAST( NULL AS SIGNED ), + 37 * col2 + - + col2 - + col0 AS col0 FROM tab1 cor0
----
NULL
2039
NULL
2357
NULL
3405

skipif mysql # not compatible
query II rowsort label-811
SELECT ALL + + 58 + + + CAST ( NULL AS INTEGER ), + 37 * col2 + - + col2 - + col0 AS col0 FROM tab1 cor0
----
NULL
2039
NULL
2357
NULL
3405

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT + - col0 + - 44 DIV + col0 + + col1 * + + col2 DIV + - col2 FROM tab2 cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-814
SELECT + - col0 + - 44 / + col0 + + col1 * + + col2 / + - col2 FROM tab2 cor0
----
-141
-142
-97

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-816
SELECT 56 DIV - + ( + + col1 ) + - col2 DIV - col1, 76 AS col1 FROM tab0
----
-2
76
0
76
43
76

skipif mysql # not compatible
query II rowsort label-816
SELECT 56 / - + ( + + col1 ) + - col2 / - col1, 76 AS col1 FROM tab0
----
-2
76
0
76
43
76

query II rowsort
SELECT DISTINCT - 73 AS col2, 12 FROM tab2
----
-73
12

query I rowsort
SELECT DISTINCT + col1 + + + 56 AS col0 FROM tab2
----
107
123
133

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

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
-6

query III rowsort
SELECT * FROM tab2 WHERE col2 = - - 10
----

query I rowsort
SELECT DISTINCT - col0 + + 2 * col2 AS col2 FROM tab0
----
-67
101
79

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 IN ( col0 )
----

query I rowsort
SELECT DISTINCT - + col0 + - - col2 AS col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT MAX( - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-824
SELECT MAX ( - 0 ) FROM tab0 AS cor0
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 94 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 41 * 49 IS NOT NULL
----

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

skipif mysql # not compatible
query II rowsort label-827
SELECT + ( - COUNT ( * ) ) AS col2, - MIN ( - 92 ) AS col1 FROM tab1 AS cor0
----
-3
92

query II rowsort
SELECT + - 69 AS col1, col2 * - 62 FROM tab2 AS cor0
----
-69
-1426
-69
-2480
-69
-3596

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT 16 DIV 85 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-831
SELECT 16 / 85 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT + col2, - col0 + - col2 + - col1 FROM tab0 AS cor0
----
10
-118
47
-143
99
-197

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-834
SELECT ALL * FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) IN ( col2 - + col2 * col0, 84 )
----

skipif mysql # not compatible
query III rowsort label-834
SELECT ALL * FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( col2 - + col2 * col0, 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0
----
3

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

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

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

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

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + COUNT ( * ) FROM tab0
----
3

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

onlyif mysql # DIV for integer division: 
query III rowsort label-839
SELECT * FROM tab1 WHERE NOT ( - - 95 ) < - col2 * - 2 + + 55 DIV 79 * - - col1 + - col2
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-839
SELECT * FROM tab1 WHERE NOT ( - - 95 ) < - col2 * - 2 + + 55 / 79 * - - col1 + - col2
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 40 BETWEEN - 58 AND + - 0
----

query I rowsort
SELECT + - 18 * - col1 + + col1 AS col0 FROM tab2 AS cor0
----
1273
1463
969

query I rowsort
SELECT 27 * + 80 AS col2 FROM tab1 AS cor0
----
2160
2160
2160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL SUM( ALL - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL SUM ( ALL - col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT + - ( - 72 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72

query I rowsort
SELECT 13 * + col2 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT 71 * col1 * col2 + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT ( + col2 ) NOT BETWEEN + 89 + - + col2 AND ( 49 ) * 80 * + - col0 - + col1 )
----

skipif mysql # not compatible
query I rowsort label-847
SELECT 71 * col1 * col2 + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT ( + col2 ) NOT BETWEEN + 89 + - + col2 AND ( 49 ) * 80 * + - col0 - + col1 )
----

query I rowsort
SELECT DISTINCT - - 53 AS col0 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL MAX( + col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 / + col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL MAX ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 / + col0 > NULL
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT DISTINCT - 57 * + 74 * + col1 + - 42 AS col1 FROM tab2
----
-215160
-282648
-324828

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL COUNT ( * ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - 41 + - 25 + + 22 + + - col0 * + col1 * - - col2 - + col2 - + - col1 FROM tab1
----
-25173
-290901
-68670

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

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

query I rowsort
SELECT - - col1 AS col1 FROM tab0 WHERE 64 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT + 93 * + - COUNT( * ) * 98 + + 83 + COUNT( * ) DIV - 56 AS col0 FROM tab0
----
-27259

skipif mysql # not compatible
query I rowsort label-859
SELECT + 93 * + - COUNT ( * ) * 98 + + 83 + COUNT ( * ) / - 56 AS col0 FROM tab0
----
-27259

query I rowsort
SELECT ALL - + 36 - - - col2 * 26 FROM tab2 AS cor0
----
-1076
-1544
-634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT ALL COUNT( - 81 ) + - + COUNT( * ) DIV MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL COUNT ( - 81 ) + - + COUNT ( * ) / MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT - CAST( + col1 AS SIGNED ) - + - col1 * - 88 col2 FROM tab1 AS cor0
----
-1246
-4183
-445

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-862
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) - + - col1 * - 88 col2 FROM tab1 AS cor0
----
-1246
-4183
-445

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 BETWEEN ( col0 / + 35 * + col1 + col0 ) AND NULL
----

query II rowsort
SELECT DISTINCT + 0 + + col2 AS col0, + col0 + + col1 AS col2 FROM tab1 cor0
----
59
90
68
138
96
65

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

query I rowsort
SELECT DISTINCT - ( - 3 ) * - 5 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL 85 * - col1 AS col0 FROM tab0
----
-1785
-6885
-85

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

query I rowsort
SELECT - - 95 * + + col0 AS col2 FROM tab1 cor0
----
4845
8075
8645

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

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

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

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query II rowsort
SELECT - 12, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-875
SELECT COUNT ( * ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - col0 * + 14 + + + col0 * + col2 * + col2 + 57 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + - col0 * col0 AS col1 FROM tab0 cor0
----
-225
-7569
-9409

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

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL ( - col0 ) * CAST ( NULL AS REAL ) + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT DISTINCT 2 DIV + ( col2 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT 2 / + ( col2 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + + + col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + COUNT( * ) * + 86 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-882
SELECT + COUNT ( * ) * + 86 FROM tab1
----
258

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

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

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

query I rowsort
SELECT + 34 AS col0 FROM tab0
----
34
34
34

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT - COUNT( * ) + + 34 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT - COUNT ( * ) + + 34 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT ( - COUNT( 36 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT ( - COUNT ( 36 ) ) FROM tab1
----
-3

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

query II rowsort
SELECT DISTINCT + - 81 AS col1, + col1 + 16 FROM tab1 AS cor0
----
-81
21
-81
30
-81
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT - 74 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col2 * + col2 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-893
SELECT - 74 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col2 * + col2 BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - col0 * + - 15 * - - col0 * + 64 FROM tab1 AS cor0
----
2496960
6936000
7949760

query I rowsort
SELECT DISTINCT ( col2 ) * col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT - COUNT ( * ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 41 + col0 AS col1 FROM tab1
----
126
132
92

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

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

query I rowsort
SELECT + 41 + + 60 FROM tab2 AS cor0
----
101
101
101

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

query I rowsort
SELECT + - 16 * col2 * + col2 + - - 2 AS col0 FROM tab1 cor0
----
-147454
-55694
-73982

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT - ( COUNT( * ) ) + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT - ( COUNT ( * ) ) + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT + + col0 + + + col0 * + - col1 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT ( - 72 ) AS col2 FROM tab2
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT col2 * CAST( 45 AS SIGNED ) FROM tab1
----
2655
3060
4320

skipif mysql # not compatible
query I rowsort label-907
SELECT col2 * CAST ( 45 AS INTEGER ) FROM tab1
----
2655
3060
4320

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE ( + + CAST( + col0 AS SIGNED ) * + - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE ( + + CAST ( + col0 AS INTEGER ) * + - col1 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT BETWEEN 86 / 71 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-911
SELECT COUNT( * ) FROM tab2 WHERE + col0 * - - CAST( NULL AS DECIMAL ) + ( - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-911
SELECT COUNT ( * ) FROM tab2 WHERE + col0 * - - CAST ( NULL AS REAL ) + ( - col1 ) IS NULL
----
3

query I rowsort
SELECT ALL - col1 + + - col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT + + col2 - - 70 - - + col1 AS col1 FROM tab0 AS cor0
----
101
170
198

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL = - col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT + CAST( 38 AS SIGNED ) * 95 AS col2 FROM tab2 cor0
----
3610
3610
3610

skipif mysql # not compatible
query I rowsort label-916
SELECT + CAST ( 38 AS INTEGER ) * 95 AS col2 FROM tab2 cor0
----
3610
3610
3610

query I rowsort
SELECT DISTINCT - 35 * - - col2 FROM tab2
----
-1400
-2030
-805

query I rowsort
SELECT DISTINCT col0 * + + col0 * + + col2 * - col2 AS col2 FROM tab1
----
-23970816
-25150225
-38291344

query I rowsort
SELECT ALL 55 AS col0 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT 88 + + - 1 + + + 66 FROM tab1 AS cor0 WHERE NOT col1 < - - 34
----
153

query I rowsort
SELECT - 99 * 31 AS col1 FROM tab1 cor0
----
-3069
-3069
-3069

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

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

query I rowsort
SELECT ALL + + 34 * - col2 AS col2 FROM tab2 AS cor0
----
-1360
-1972
-782

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

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

query I rowsort
SELECT DISTINCT - 29 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT - 89 + + col0 * + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - ( - COUNT( * ) ) * - COUNT( + 74 ) + - 63 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - ( - COUNT ( * ) ) * - COUNT ( + 74 ) + - 63 FROM tab2 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT ALL - 80 DIV + col0 AS col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL - 80 / + col0 AS col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT 95 * - 29 FROM tab0
----
-2755

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

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT - 12 IS NULL
----
23
40
58

query I rowsort
SELECT ALL 9 AS col0 FROM tab1
----
9
9
9

query I rowsort
SELECT + col1 * - 52 FROM tab1
----
-2444
-260
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL ( + - 0 ) * 58 * ( - SUM( + 44 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL ( + - 0 ) * 58 * ( - SUM ( + 44 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 8 * + 41 + col1 + - + col2 * col0 FROM tab1 AS cor0 WHERE NULL <= - 50
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND - + col2
----

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

skipif mysql # not compatible
query I rowsort label-937
SELECT - col2 + - 58 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-938
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ( COUNT( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-939
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - 23 FROM tab0, tab2 cor0 WHERE NULL >= - 85
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-941
SELECT ALL COUNT( * ) + - + 38 + 46 DIV SUM( ALL 22 ) AS col1 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL COUNT ( * ) + - + 38 + 46 / SUM ( ALL 22 ) AS col1 FROM tab0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-942
SELECT + - CAST( NULL AS SIGNED ) AS col0, 0 + - MAX( ALL - - 53 ) AS col1, - 3 col0 FROM tab0 AS cor0
----
NULL
-53
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-942
SELECT + - CAST ( NULL AS INTEGER ) AS col0, 0 + - MAX ( ALL - - 53 ) AS col1, - 3 col0 FROM tab0 AS cor0
----
NULL
-53
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT + SUM( col0 ) AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) - + - 86 * + + col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT + SUM ( col0 ) AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) - + - 86 * + + col1 > NULL
----
NULL

query I rowsort
SELECT + col0 * - col0 * + col2 + - col2 FROM tab1 AS cor0
----
-249792
-426334
-563176

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

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

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

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

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

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

query I rowsort
SELECT ALL 8 FROM tab0 cor0
----
8
8
8

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + 6 * - col2 + + 79 AS col2 FROM tab1
----
-280
-376
-511

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT - MAX( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL < col0 * - col0 * - - ( 68 ) + + - col0 / - ( 19 ) + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT - MAX ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL < col0 * - col0 * - - ( 68 ) + + - col0 / - ( 19 ) + - col0
----
NULL

query I rowsort
SELECT - + col2 * + + 66 FROM tab0 AS cor0
----
-3102
-6534
-660

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 93 + - + 28 IS NULL
----

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

query II rowsort
SELECT ALL - col1, col2 AS col1 FROM tab0
----
-1
99
-21
10
-81
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-964
SELECT CAST( NULL AS SIGNED ) * - 59 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT CAST ( NULL AS INTEGER ) * - 59 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-965
SELECT MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-966
SELECT DISTINCT - + ( - CAST( - 16 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT - + ( - CAST ( - 16 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 < - 43 * 68
----
3

skipif mysql # not compatible
query I rowsort label-968
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 < - 43 * 68
----
3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - col1
----

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

query I rowsort
SELECT ALL - col0 * - + 77 * - + 36 * - 39 AS col2 FROM tab1 AS cor0
----
5513508
9189180
9837828

query I rowsort
SELECT DISTINCT + col2 * + - 22 AS col1 FROM tab0 AS cor0
----
-1034
-2178
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL - + 63 * - MAX( DISTINCT + + col1 ) * 88 AS col0 FROM tab1 AS cor0
----
260568

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - + 63 * - MAX ( DISTINCT + + col1 ) * 88 AS col0 FROM tab1 AS cor0
----
260568

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL + - MAX( + col1 ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL + - MAX ( + col1 ) AS col0 FROM tab0 cor0
----
-81

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

skipif mysql # not compatible
query III rowsort label-976
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT col1 + - 29 + col1 + 68 AS col1 FROM tab1
----
133
49
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-979
SELECT ( SUM( + ( + - 22 ) ) ) DIV + 9 FROM tab2, tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-979
SELECT ( SUM ( + ( + - 22 ) ) ) / + 9 FROM tab2, tab0 AS cor0
----
-22

query I rowsort
SELECT ALL + 51 * + + 20 AS col1 FROM tab1
----
1020
1020
1020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + col0 col1, - col2 AS col0 FROM tab0
----
108
-10
96
-47
98
-99

query I rowsort
SELECT ALL - 55 * - 4 * 2 * - 10 * 89 + col1 FROM tab2
----
-391523
-391533
-391549

query I rowsort
SELECT + 90 + + 91 - + col2 + - 59 * + 10 - + - col1 + col0 AS col0 FROM tab2
----
-308
-325
-335

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 / + 78 NOT BETWEEN - - col2 AND 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col0 * - col1 + - 42 + - 95 AS col2 FROM tab0 AS cor0
----
-40
1078
1690

query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + col1, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT + ( - - 7 ) DIV - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-987
SELECT + ( - - 7 ) / - + col0 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE + 70 IS NULL
----

query I rowsort
SELECT ALL + - 3 + - col2 FROM tab0 AS cor0
----
-102
-13
-50

query I rowsort
SELECT DISTINCT + col2 - - col0 + + - 53 FROM tab1 cor0
----
106
91
94

query I rowsort
SELECT DISTINCT col0 * - + 44 - + + 54 AS col1 FROM tab1 AS cor0
----
-2298
-3794
-4058

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 67 * + - 38 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 67 * + - 38 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 72 AS col2 FROM tab0 cor0
----
72

query I rowsort
SELECT 76 + + col1 * + ( + + 30 ) + - ( + col1 ) FROM tab2 AS cor0
----
1555
2019
2309

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-998
SELECT ALL - col0, 88 * + col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-998
SELECT ALL - col0, 88 * + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

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

skipif mysql # not compatible
query I rowsort label-999
SELECT - col2 / + - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL - 17 * + MIN( ALL + 9 ) + + COUNT( * ) - + + MIN( - + col1 ) + - 48 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL - 17 * + MIN ( ALL + 9 ) + + COUNT ( * ) - + + MIN ( - + col1 ) + - 48 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + ( - 0 ) * col1 * col2 - col1 AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0
----
-39
-39
-39

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + - col1 / - 77 + + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT ALL COUNT( * ) AS col2, 85 FROM tab1
----
3
85

skipif mysql # not compatible
query II rowsort label-1005
SELECT ALL COUNT ( * ) AS col2, 85 FROM tab1
----
3
85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + MAX( + 57 ) col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1008
SELECT + MAX ( + 57 ) col2 FROM tab1 AS cor0
----
57

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT DISTINCT + - 93 + CAST( - - col2 AS SIGNED ) FROM tab1 WHERE - - 61 = NULL
----

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT + - 93 + CAST ( - - col2 AS INTEGER ) FROM tab1 WHERE - - 61 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab0
----
58
58
58

query I rowsort
SELECT + AVG ( + col1 ) FROM tab2 WHERE NOT NULL >= - col1 + - 72
----
NULL

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

query I rowsort
SELECT + 84 * col2 * + + 36 AS col0 FROM tab0 AS cor0
----
142128
299376
30240

query I rowsort
SELECT + + 33 * + 8 + + - col1 FROM tab1 AS cor0
----
217
250
259

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT 20 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT 20 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT - - 64 * + col2 AS col0 FROM tab1 AS cor0
----
3776
4352
6144

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

query I rowsort
SELECT + - col2 * - - col2 * - col0 - - - col1 FROM tab1 AS cor0
----
295880
420737
470002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - - col2 ), 58 col1 FROM tab1 cor0
----
-59
58
-68
58
-96
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 69 ) col1 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1028
SELECT - col0 AS col1, CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-1028
SELECT - col0 AS col1, CAST ( NULL AS REAL ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT ALL + 79 + col1 FROM tab1 WHERE + ( + 14 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT COUNT( col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1030
SELECT COUNT ( col0 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT ALL col2 AS col1 FROM tab0 WHERE + col2 + + + col1 - CAST( 40 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL col2 AS col1 FROM tab0 WHERE + col2 + + + col1 - CAST ( 40 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 + - - col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT ALL 7 * COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL 7 * COUNT ( * ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT COUNT( * ) col0 FROM tab0
----
3

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

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

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

query I rowsort
SELECT DISTINCT 15 * - ( col1 ) + - col1 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT ( + 56 ) + - 39 * + ( + col0 ) + + col0 AS col1 FROM tab0
----
-3250
-3630
-514

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

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

query III rowsort
SELECT * FROM tab2 WHERE 79 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT ALL - 6 + - + 7 DIV col2 * + - col2 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 6 + - + 7 / col2 * + - col2 FROM tab0
----
-6
-6
-6

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

query I rowsort
SELECT DISTINCT - 13 + - 11 + + + 38 FROM tab2
----
14

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

query I rowsort
SELECT DISTINCT + + 29 + + col1 AS col2 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT ALL - - col2 * + + col1 - col0 AS col1 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT col1 * - 71 - - 71 AS col2 FROM tab0 AS cor0
----
-1420
-5680
0

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

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - 70 + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-67

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

query I rowsort
SELECT - + 5 - 94 + + - col2 FROM tab2 AS cor0
----
-122
-139
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + COUNT( * ) - - + MAX( DISTINCT - - ( col2 ) ) * - COUNT( * ) + + COUNT( * ) col1 FROM tab0 AS cor0
----
-291

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 44 col0 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT ALL - 69 DIV - col1 FROM tab0
----
0
3
69

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - 69 / - col1 FROM tab0
----
0
3
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT - 7 - + ( + MAX( DISTINCT + 4 ) ) col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + ( ( col0 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1059
SELECT - 7 - + ( + MAX ( DISTINCT + 4 ) ) col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + ( ( col0 ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT 8 * ( + COUNT( * ) ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1061
SELECT 8 * ( + COUNT ( * ) ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT + 1 * - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + 1 * - COUNT ( * ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 0 * + + 51 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT ( - 32 ) FROM tab1 AS cor0
----
-32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 AS col1, - col1 col1 FROM tab0
----
10
-1
10
-21
10
-81

query I rowsort
SELECT ALL - 13 - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
33
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT - 55 * - - SUM( - 94 ) AS col2 FROM tab0 AS cor0
----
15510

skipif mysql # not compatible
query I rowsort label-1069
SELECT - 55 * - - SUM ( - 94 ) AS col2 FROM tab0 AS cor0
----
15510

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT DISTINCT - 4 AS col0, COUNT( * ) AS col0 FROM tab1 cor0
----
-4
3

skipif mysql # not compatible
query II rowsort label-1070
SELECT DISTINCT - 4 AS col0, COUNT ( * ) AS col0 FROM tab1 cor0
----
-4
3

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

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

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

query II rowsort
SELECT ALL - col2 AS col0, col0 - col2 FROM tab1 AS cor0
----
-59
26
-68
23
-96
-45

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

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

query I rowsort
SELECT - col0 + + 85 FROM tab1
----
-6
0
34

query II rowsort
SELECT col0 + + 2 AS col2, 52 FROM tab0
----
17
52
89
52
99
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( - - 51 ) * - + col1 col1 FROM tab1
----
2465
314
810

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT COUNT ( * ) FROM tab0
----
3

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

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

query I rowsort
SELECT - + col1 * + - col2 * col0 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT DISTINCT + 38 + + - col2 - col1 DIV - 6 AS col0 FROM tab2 AS cor0
----
-9
10
23

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT + 38 + + - col2 - col1 / - 6 AS col0 FROM tab2 AS cor0
----
-9
10
23

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 col0, ( - 11 ) FROM tab0 AS cor0
----
36
-11

query I rowsort
SELECT col1 * - 60 * + 29 FROM tab1 AS cor0
----
-24360
-81780
-8700

query I rowsort
SELECT col1 * 31 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT SUM( DISTINCT + - 78 ) FROM tab1 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1092
SELECT SUM ( DISTINCT + - 78 ) FROM tab1 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT + MAX( - col0 ) * - COUNT( * ) * SUM( DISTINCT + ( + 8 ) ) FROM tab1 AS cor0
----
1224

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT + MAX ( - col0 ) * - COUNT ( * ) * SUM ( DISTINCT + ( + 8 ) ) FROM tab1 AS cor0
----
1224

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

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT COUNT ( * ) * + COUNT ( + 73 ) FROM tab0
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT 80 * + COUNT( * ) col1 FROM tab2
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1097
SELECT 80 * + COUNT ( * ) col1 FROM tab2
----
240

query I rowsort
SELECT DISTINCT 74 * 48 AS col0 FROM tab2
----
3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1099
SELECT MIN( ALL - col2 ) * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1099
SELECT MIN ( ALL - col2 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT - MAX( - ( + - 49 ) ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT - MAX ( - ( + - 49 ) ) FROM tab0
----
-49

query II rowsort
SELECT DISTINCT + 73 * + - 72 * + 21 * + col0 AS col0, 12 * + col2 AS col2 FROM tab2
----
-5077296
276
-7064064
480
-8278200
696

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL - MAX( col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT - + SUM( DISTINCT - 5 ) * - COUNT( * ) + 79 AS col2, + 49 AS col2 FROM tab1 AS cor0
----
64
49

skipif mysql # not compatible
query II rowsort label-1104
SELECT - + SUM ( DISTINCT - 5 ) * - COUNT ( * ) + 79 AS col2, + 49 AS col2 FROM tab1 AS cor0
----
64
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT SUM( col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1106
SELECT SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + col0 + + + 6 FROM tab1
----
57
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1108
SELECT ALL * FROM tab1 cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-1108
SELECT ALL * FROM tab1 cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL - 94 + + 41 FROM tab1 AS cor0
----
-53
-53
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT CAST( NULL AS SIGNED ) * CAST( 22 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT CAST ( NULL AS INTEGER ) * CAST ( 22 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 46 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, - col0 - - 12 col2 FROM tab1 AS cor0
----
59
-73
68
-79
96
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1115
SELECT + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT + col0 FROM tab0 AS cor0 WHERE - 69 + + 52 - - CAST( - - col1 AS SIGNED ) * col0 * + 21 BETWEEN + - col2 AND - col2 + 37 + 61
----

skipif mysql # not compatible
query I rowsort label-1116
SELECT + col0 FROM tab0 AS cor0 WHERE - 69 + + 52 - - CAST ( - - col1 AS INTEGER ) * col0 * + 21 BETWEEN + - col2 AND - col2 + 37 + 61
----

query I rowsort
SELECT ALL 14 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 * + col2 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT - col0 + + col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-60
145
2118

skipif mysql # not compatible
query I rowsort label-1119
SELECT - col0 + + col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-60
145
2118

query I rowsort
SELECT + col2 + + 17 + + 24 + col1 FROM tab0
----
141
169
72

query I rowsort
SELECT - col2 * col2 + - - 36 AS col2 FROM tab2 cor0
----
-1564
-3328
-493

query II rowsort
SELECT DISTINCT + col2 + - col1, col1 FROM tab2
----
-28
51
-37
77
-9
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL - SUM( + 58 ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL - SUM ( + 58 ) FROM tab1
----
-174

query I rowsort
SELECT + ( col1 ) * - col0 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT - + CAST( - 62 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-1125
SELECT - + CAST ( - 62 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1126
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1126
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL <> + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT COUNT( + + 17 ) * - + 1 AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT COUNT ( + + 17 ) * - + 1 AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT 84 AS col2 FROM tab2 cor0 WHERE NOT col1 > col0
----
84

query I rowsort
SELECT ALL - ( - + 63 ) * + col1 * - col1 FROM tab2 AS cor0
----
-163863
-282807
-373527

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

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

query II rowsort
SELECT ALL 21 AS col0, col1 * + 29 * - 18 FROM tab1
----
21
-24534
21
-2610
21
-7308

query II rowsort
SELECT 50, col1 AS col0 FROM tab0
----
50
1
50
21
50
81

query I rowsort
SELECT DISTINCT 18 * - 53 FROM tab1
----
-954

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

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

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

query II rowsort
SELECT DISTINCT col0, 82 AS col2 FROM tab2
----
46
82
64
82
75
82

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

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

query I rowsort
SELECT + 51 * col1 AS col1 FROM tab2
----
2601
3417
3927

query I rowsort
SELECT col1 * + 11 AS col2 FROM tab1
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1140
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 76 col1 FROM tab1
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1140
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 76 col1 FROM tab1
----
NULL
76
NULL
76
NULL
76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1142
SELECT DISTINCT ( + CAST( - col2 AS SIGNED ) ), ( 89 ) AS col0 FROM tab1 AS cor0
----
-59
89
-68
89
-96
89

skipif mysql # not compatible
query II rowsort label-1142
SELECT DISTINCT ( + CAST ( - col2 AS INTEGER ) ), ( 89 ) AS col0 FROM tab1 AS cor0
----
-59
89
-68
89
-96
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT + + MAX( col2 ) col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1144
SELECT DISTINCT + + MAX ( col2 ) col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT DISTINCT COUNT( * ) DIV - MAX( - 19 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT COUNT ( * ) / - MAX ( - 19 ) FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - COUNT( * ) FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1147
SELECT - COUNT ( * ) FROM tab2, tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT + col2 * 52 * + col1 + + col1 FROM tab2
----
160237
202139
61047

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 59 NOT BETWEEN col1 AND + 22
----

query I rowsort
SELECT DISTINCT + col0 + - - col2 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1151
SELECT DISTINCT - + 99 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
1485
8613
9603

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - + 99 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
1485
8613
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT ALL col1 DIV - ( - - 96 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL col1 / - ( - - 96 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + 79 + + col0 / ( + 44 ) * - col2 IS NOT NULL ) OR NOT NULL IS NULL
----
46
64
75

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

query I rowsort
SELECT ALL + 26 * + col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT - col0 + + 87 FROM tab2
----
12
23
41

query I rowsort
SELECT + 59 FROM tab0 WHERE - + col2 IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1161
SELECT ALL - 80 DIV + COUNT( * ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - 80 / + COUNT ( * ) FROM tab0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + - 35 + + - col2
----

query I rowsort
SELECT ALL - 41 + + col2 * col2 + - col2 * 0 + - 17 AS col1 FROM tab1
----
3423
4566
9158

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT DISTINCT 96 + + + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT 96 + + + COUNT ( * ) FROM tab0
----
99

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col2 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - - col1 - + + col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( 16 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1168
SELECT + col2 - + col2 * + - 95 + + col0 DIV + + CAST( + ( 26 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
2209
3842
5570

skipif mysql # not compatible
query I rowsort label-1168
SELECT + col2 - + col2 * + - 95 + + col0 / + + CAST ( + ( 26 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
2209
3842
5570

query I rowsort
SELECT DISTINCT + col0 + - col2 * + 19 + - - 98 + + 93 * - ( + - 16 ) FROM tab1 AS cor0
----
-187
385
550

query I rowsort
SELECT ALL - 74 - + + col2 + - 54 FROM tab0 cor0
----
-138
-175
-227

query I rowsort
SELECT - 33 - + - 63 + - - 55 * - - col1 AS col0 FROM tab2 AS cor0
----
2835
3715
4265

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 53 AS col0 FROM tab0 AS cor0
----
15
53
87
53
97
53

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

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

query II rowsort
SELECT DISTINCT 99 * col1 AS col0, + col1 FROM tab2 AS cor0
----
5049
51
6633
67
7623
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT DISTINCT - - col1 * 94 DIV + col0 FROM tab1 AS cor0
----
25
48
5

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - - col1 * 94 / + col0 FROM tab1 AS cor0
----
25
48
5

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

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

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

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

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

query I rowsort
SELECT ALL + 60 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT - 68 * COUNT( * ) AS col0 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 68 * COUNT ( * ) AS col0 FROM tab2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT SUM( ALL + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT SUM ( ALL + col2 ) FROM tab1
----
223

query I rowsort
SELECT ( - 46 ) AS col1 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT ALL col0 * - col0 * + col0 + - 50 AS col2 FROM tab0 AS cor0
----
-3425
-658553
-912723

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1190
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1190
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > + CAST ( - col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 29 + col0 NOT BETWEEN NULL AND - 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col1 * + col1 * + col2 + col1 * col0 = - col0
----

query I rowsort
SELECT DISTINCT + col2 * 83 - - col1 * + 95 FROM tab2 AS cor0
----
10635
11179
6754

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT ALL - - ( + col0 ) + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL - - ( + col0 ) + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-66
66
96

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

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

query I rowsort
SELECT 53 * + col2 AS col1 FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT COUNT( * ) * - COUNT( - + col0 ) + + 16 AS col2 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1198
SELECT COUNT ( * ) * - COUNT ( - + col0 ) + + 16 AS col2 FROM tab1 AS cor0
----
7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col2 ) col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 * - 56 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-1202
SELECT DISTINCT + col0, ( + 38 ) DIV + + 2 + - - ( - - col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
46
-9
64
-18
75
10

skipif mysql # not compatible
query II rowsort label-1202
SELECT DISTINCT + col0, ( + 38 ) / + + 2 + - - ( - - col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
46
-9
64
-18
75
10

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col0 FROM tab2 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1206
SELECT - COUNT( * ) - + - COUNT( * ) AS col0, - CAST( - + ( + - 34 ) AS SIGNED ) FROM tab2
----
0
-34

skipif mysql # not compatible
query II rowsort label-1206
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col0, - CAST ( - + ( + - 34 ) AS INTEGER ) FROM tab2
----
0
-34

query I rowsort
SELECT ALL + 31 + - ( + col1 ) AS col1 FROM tab0
----
-50
10
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - 73 + ( - COUNT( + col0 ) ) * COUNT( * ) FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 73 + ( - COUNT ( + col0 ) ) * COUNT ( * ) FROM tab2
----
-82

query I rowsort
SELECT - 86 + + col2 AS col0 FROM tab1
----
-18
-27
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + 14 + + col2 * + - ( - col2 ) * + 5 col2 FROM tab0
----
11074
49116
601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + 12, + 38 * - + 8 col1 FROM tab1
----
103
-304
63
-304
97
-304

query I rowsort
SELECT + col2 + + col2 + col1 FROM tab1
----
123
183
206

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT + COUNT( * ) * - + MIN( ALL col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1214
SELECT + COUNT ( * ) * - + MIN ( ALL col1 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1215
SELECT DISTINCT + col2 AS col0, col0 AS col2 FROM tab1 WHERE NOT ( - - col1 * + + CAST( col2 AS SIGNED ) + col0 + + + col1 ) IS NULL
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-1215
SELECT DISTINCT + col2 AS col0, col0 AS col2 FROM tab1 WHERE NOT ( - - col1 * + + CAST ( col2 AS INTEGER ) + col0 + + + col1 ) IS NULL
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT - 93 * - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-1216
SELECT - 93 * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-279

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT + + MAX( DISTINCT - 42 ) AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT + + MAX ( DISTINCT - 42 ) AS col1 FROM tab2 AS cor0
----
-42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE + 9 NOT BETWEEN col0 AND NULL
----
23
40
58

query II rowsort
SELECT ALL col2 AS col2, 85 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23
85
40
85
58
85

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

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

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

query II rowsort
SELECT DISTINCT col2, col1 * - + 87 FROM tab1
----
59
-435
68
-4089
96
-1218

query I rowsort
SELECT ALL + col1 * col0 + col0 FROM tab2 WHERE - 48 IS NOT NULL
----
2392
4992
5100

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

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

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

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2
----
3

query II rowsort
SELECT DISTINCT - col1 + - 38 AS col2, - 20 FROM tab2
----
-105
-20
-115
-20
-89
-20

query I rowsort
SELECT col0 * + col1 + + col2 + col1 * - col2 FROM tab2
----
1196
1197
1888

query I rowsort
SELECT ALL + col0 + - col1 * col1 AS col1 FROM tab1
----
-145
-2118
60

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

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

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

query II rowsort
SELECT DISTINCT - col2 AS col1, - 80 FROM tab0 AS cor0
----
-10
-80
-47
-80
-99
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT 95 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1237
SELECT 95 / - col1 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL + 69 + - + ( - ( - - COUNT( * ) ) ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL + 69 + - + ( - ( - - COUNT ( * ) ) ) FROM tab0
----
72

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

query I rowsort
SELECT col1 + + + col1 AS col2 FROM tab0
----
162
2
42

query I rowsort
SELECT + 41 * + - 18 * + + col0 + + 88 - - - col1 * - + col2 AS col0 FROM tab1 AS cor0
----
-36206
-62347
-63874

query I rowsort
SELECT DISTINCT col2 - + 13 AS col2 FROM tab2 AS cor0
----
10
27
45

query I rowsort
SELECT - 15 + - - col1 FROM tab1 AS cor0
----
-1
-10
32

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT - 60 - 96 - + CAST ( - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL ( - + col1 ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL - COUNT( - col0 ) + 91 * + - 81 * - COUNT( * ) FROM tab2
----
22110

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL - COUNT ( - col0 ) + 91 * + - 81 * - COUNT ( * ) FROM tab2
----
22110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1247
SELECT - CAST( + ( + COUNT( ALL - ( - col1 ) ) ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1247
SELECT - CAST ( + ( + COUNT ( ALL - ( - col1 ) ) ) AS INTEGER ) FROM tab2
----
-3

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

skipif mysql # not compatible
query II rowsort label-1248
SELECT - COUNT ( * ), 45 AS col0 FROM tab1
----
-3
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col1 * - col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT + COUNT( * ) + + 90 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT + COUNT ( * ) + + 90 FROM tab0
----
93

query I rowsort
SELECT - 66 FROM tab0 AS cor0 WHERE NOT col0 + - 29 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT 84 * col2 + CAST( - 53 AS SIGNED ) - + col0 * + 39 AS col2 FROM tab1 AS cor0
----
1588
2110
6022

skipif mysql # not compatible
query I rowsort label-1252
SELECT 84 * col2 + CAST ( - 53 AS INTEGER ) - + col0 * + 39 AS col2 FROM tab1 AS cor0
----
1588
2110
6022

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT - COUNT( * ) + - 64 * 83 FROM tab1
----
-5315

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - COUNT ( * ) + - 64 * 83 FROM tab1
----
-5315

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1255
SELECT COUNT ( * ) AS col0 FROM tab1
----
3

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT 78 - - 22 FROM tab1
----
100
100
100

query I rowsort
SELECT DISTINCT 91 * + 30 AS col1 FROM tab1 WHERE NOT 58 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - 49 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - 49 IS NULL
----
0

query I rowsort
SELECT ALL 59 + col2 AS col0 FROM tab2
----
117
82
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT + MAX( + 32 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-1265
SELECT + MAX ( + 32 ) FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1266
SELECT - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + MIN( col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1267
SELECT + MIN ( col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT 36 * - col0 + 98 AS col0 FROM tab1 WHERE 75 NOT BETWEEN NULL AND ( 97 * 16 )
----

query III rowsort
SELECT * FROM tab2 WHERE 47 * 29 + + 51 NOT IN ( - 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 78 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1271
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 78 col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1272
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL >= - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1272
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL >= - CAST ( col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 82
----

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

skipif mysql # not compatible
query I rowsort label-1274
SELECT - COUNT ( + col1 ) FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + col1 > ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1279
SELECT CAST( ( - col0 ) AS SIGNED ) + - col1 AS col1 FROM tab1 cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-1279
SELECT CAST ( ( - col0 ) AS INTEGER ) + - col1 AS col1 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT + SUM( ALL col1 ) * - 72 + + CAST( + 96 AS SIGNED ) FROM tab0 AS cor0
----
-7320

skipif mysql # not compatible
query I rowsort label-1280
SELECT + SUM ( ALL col1 ) * - 72 + + CAST ( + 96 AS INTEGER ) FROM tab0 AS cor0
----
-7320

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

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

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

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

query I rowsort
SELECT col1 + + 22 * 95 AS col2 FROM tab2 AS cor0
----
2141
2157
2167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT 64 + + COUNT( * ) DIV + COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-1284
SELECT 64 + + COUNT ( * ) / + COUNT ( * ) FROM tab2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT + MAX( col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT + MAX ( col0 ) col0 FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 * col2 ) = ( NULL )
----

query I rowsort
SELECT + 61 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col0 )
----

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

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

query I rowsort
SELECT + 29 AS col0 FROM tab1 cor0
----
29
29
29

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

query I rowsort
SELECT + 25 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
2175
2425
375

query I rowsort
SELECT - col2 * - 28 - + 54 FROM tab1 AS cor0
----
1598
1850
2634

query I rowsort
SELECT ALL 31 + 79 FROM tab1 cor0
----
110
110
110

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 50 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + col0 * - 26 NOT BETWEEN col1 AND - col1
----

query I rowsort
SELECT ALL - 12 - 5 FROM tab0 AS cor0
----
-17
-17
-17

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> 89 * 41 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 94 * + col1 <= ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + MIN( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + 93 ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT + MIN ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + 93 ) AND col1
----
NULL

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

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

query I rowsort
SELECT + 21 - col2 FROM tab0 AS cor0
----
-26
-78
11

query I rowsort
SELECT ALL ( - 50 ) - col1 FROM tab2
----
-101
-117
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( * ) FROM tab1 WHERE ( - 69 + + 31 * col1 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT COUNT ( * ) FROM tab1 WHERE ( - 69 + + 31 * col1 ) NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col2 FROM tab0 WHERE NOT NULL NOT BETWEEN 78 * col2 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT COUNT( * ) col2 FROM tab1
----
3

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

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

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

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

query I rowsort
SELECT DISTINCT - 35 * col2 FROM tab2
----
-1400
-2030
-805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT COUNT( * ) DIV + + 42 DIV ( + COUNT( * ) ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1312
SELECT COUNT ( * ) / + + 42 / ( + COUNT ( * ) ) col0 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT - COUNT ( DISTINCT - + 81 ) * COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE ( NULL ) <> - col2 * + 77
----

query I rowsort
SELECT 89 * + 44 AS col0 FROM tab1
----
3916
3916
3916

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( - col0 * - col1 ) OR NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1317
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 54 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query III rowsort
SELECT * FROM tab2 WHERE NOT 44 * col2 BETWEEN col2 AND NULL
----

query I rowsort
SELECT + - 97 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

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

skipif mysql # not compatible
query I rowsort label-1322
SELECT COUNT ( - + col1 ) FROM tab2
----
3

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * + col1 )
----

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

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

query I rowsort
SELECT - col1 * 69 AS col0 FROM tab2 AS cor0 WHERE NOT col1 >= ( + - col2 - - col2 * 22 )
----
-3519
-4623
-5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT - SUM( DISTINCT - 83 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT - SUM ( DISTINCT - 83 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1, 20 * 9 AS col2 FROM tab2 cor0
----
-51
180
-67
180
-77
180

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT + 88 + - - COUNT( * ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1332
SELECT + 88 + - - COUNT ( * ) FROM tab1 cor0
----
91

query I rowsort
SELECT ALL col0 * 16 AS col2 FROM tab0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT 33 * - - COUNT( * ) AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT 33 * - - COUNT ( * ) AS col0 FROM tab2
----
99

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

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

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - - col0 IS NULL
----

query I rowsort
SELECT + col0 + + 57 FROM tab1
----
108
142
148

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 85 * 98 ) AND ( + col2 + col1 ) IS NULL
----

query II rowsort
SELECT DISTINCT col2 * + 70, - 83 AS col1 FROM tab2
----
1610
-83
2800
-83
4060
-83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT COUNT( * ) * - + 31 * + COUNT( * ) + - ( COUNT( ALL + col2 ) ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-1341
SELECT COUNT ( * ) * - + 31 * + COUNT ( * ) + - ( COUNT ( ALL + col2 ) ) FROM tab1
----
-282

query I rowsort
SELECT 98 + + col2 AS col0 FROM tab2
----
121
138
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT SUM( 33 ) + - 65 AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT SUM ( 33 ) + - 65 AS col1 FROM tab0
----
34

query I rowsort
SELECT 10 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + col0 * - col1 + + col1 + col2 FROM tab0
----
18301
57233
9703

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1347
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1347
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 72 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1349
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 72 BETWEEN NULL AND NULL
----
0

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

query I rowsort
SELECT ALL 18 - 26 AS col2 FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 77 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + + col0 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1354
SELECT + + ( + COUNT( ALL - col2 ) ) AS col0, MIN( DISTINCT 79 ) AS col0 FROM tab0 AS cor0
----
3
79

skipif mysql # not compatible
query II rowsort label-1354
SELECT + + ( + COUNT ( ALL - col2 ) ) AS col0, MIN ( DISTINCT 79 ) AS col0 FROM tab0 AS cor0
----
3
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 + 60 * - col2 col0, col1 col2 FROM tab2 AS cor0
----
-1329
51
-2323
77
-3413
67

query I rowsort
SELECT - col1 * col2 * + + ( 99 ) AS col2 FROM tab1 cor0
----
-133056
-29205
-316404

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

skipif mysql # not compatible
query II rowsort label-1357
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - MAX( DISTINCT + + col1 ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1359
SELECT - MAX ( DISTINCT + + col1 ) col2 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT 50, col2 AS col0 FROM tab0 AS cor0
----
50
10
50
47
50
99

query II rowsort
SELECT - 56 AS col1, col1 * col1 AS col2 FROM tab0
----
-56
1
-56
441
-56
6561

query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab2
----
-53

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT COUNT( * ) * 55 * 29 AS col2 FROM tab1
----
4785

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT COUNT ( * ) * 55 * 29 AS col2 FROM tab1
----
4785

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

query II rowsort
SELECT 62, 52 AS col2 FROM tab1
----
62
52
62
52
62
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT ALL COUNT( * ) AS col2, 99 AS col1 FROM tab0, tab0 AS cor0
----
9
99

skipif mysql # not compatible
query II rowsort label-1367
SELECT ALL COUNT ( * ) AS col2, 99 AS col1 FROM tab0, tab0 AS cor0
----
9
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + ( - - 98 ) + + col0 + - col1 + + CAST( + col0 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + ( - - 98 ) + + col0 + - col1 + + CAST ( + col0 AS INTEGER ) > ( NULL )
----

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

query I rowsort
SELECT + + col1 * + col0 * + 80 FROM tab1 AS cor0
----
34000
342160
57120

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( 71 ) IS NOT NULL OR NOT col1 = ( - 49 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT ALL + ( COUNT( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1372
SELECT ALL + ( COUNT ( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1373
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 50 - + 69 / - + CAST( 22 AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-1373
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 50 - + 69 / - + CAST ( 22 AS INTEGER ), + col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT - CAST( NULL AS SIGNED ) / 21 * 55 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT - CAST ( NULL AS INTEGER ) / 21 * 55 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN ( + - col1 * 56 ) AND col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT 85 * + + MAX( - 11 ) col1 FROM tab1 cor0
----
-935

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1379
SELECT DISTINCT 85 * + + MAX ( - 11 ) col1 FROM tab1 cor0
----
-935

query I rowsort
SELECT - col2 + + + ( + 89 ) FROM tab0 WHERE + col0 - + col1 * col1 IS NOT NULL
----
-10
42
79

query I rowsort
SELECT DISTINCT - col2 + ( - col2 ) FROM tab0
----
-198
-20
-94

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

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

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

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

query II rowsort
SELECT DISTINCT + ( + 51 ) + + 15, col0 AS col1 FROM tab2
----
66
46
66
64
66
75

query I rowsort
SELECT col0 FROM tab0 WHERE - 14 <> + - col0
----
15
87
97

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 51 IN ( + + col1, + col1, + col0 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL + - 11 + COUNT( * ) * + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
70

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL + - 11 + COUNT ( * ) * + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT + COUNT( * ) * SUM( DISTINCT + 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
837

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + COUNT ( * ) * SUM ( DISTINCT + 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
837

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 73, ( 72 ) / + col2 * ( - - 41 ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 91 + - col0 IN ( + col1, 2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 59 + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 42 AS col2, 48 * - + ( - col0 ) AS col2 FROM tab0
----
-42
4176
-42
4656
-42
720

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( col2 ), col2 + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL SUM( ALL + 85 ) AS col1 FROM tab2 WHERE NOT + col2 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL SUM ( ALL + 85 ) AS col1 FROM tab2 WHERE NOT + col2 BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT ALL 55 AS col0 FROM tab0 WHERE NULL IN ( col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT - SUM( DISTINCT + 54 ) col0 FROM tab2
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1400
SELECT - SUM ( DISTINCT + 54 ) col0 FROM tab2
----
-54

query I rowsort
SELECT 73 * col2 * - col1 AS col2 FROM tab0
----
-15330
-277911
-7227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1403
SELECT + COUNT ( * ) FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-1404
SELECT COUNT ( * ) AS col0 FROM tab0
----
3

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

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

query I rowsort
SELECT ALL ( - 17 ) FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1407
SELECT * FROM tab2 cor0 WHERE NOT + 91 NOT BETWEEN ( 66 ) AND CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-1407
SELECT * FROM tab2 cor0 WHERE NOT + 91 NOT BETWEEN ( 66 ) AND CAST ( NULL AS INTEGER ) * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT + - 64 * col1 AS col2 FROM tab1 AS cor0
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT - SUM( ALL col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1411
SELECT - SUM ( ALL col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT 6 + + col1 * - col1 FROM tab2
----
-2595
-4483
-5923

query I rowsort
SELECT DISTINCT - 40 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1416
SELECT DISTINCT - COUNT( * ), + COUNT( ALL col0 ) * - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-1416
SELECT DISTINCT - COUNT ( * ), + COUNT ( ALL col0 ) * - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT ALL AVG ( col1 ) * - + 11 FROM tab0 AS cor0 WHERE NOT col2 * - + CAST( NULL AS SIGNED ) = + col0 * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL AVG ( col1 ) * - + 11 FROM tab0 AS cor0 WHERE NOT col2 * - + CAST ( NULL AS INTEGER ) = + col0 * 56
----
NULL

query I rowsort
SELECT ALL 44 * 51 FROM tab1 AS cor0
----
2244
2244
2244

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

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 65 + - col2 AS col0 FROM tab0
----
-112
-164
-75

query I rowsort
SELECT - 23 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL - SUM( - col0 ) + - COUNT( * ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - SUM ( - col0 ) + - COUNT ( * ) FROM tab2
----
182

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

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

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

query I rowsort
SELECT - + col1 * + col1 * - col1 * + - col1 - - 0 * - - col2 * - col0 - - col2 + - 84 AS col1 FROM tab0 AS cor0
----
-194555
-43046758
14

query I rowsort
SELECT col0 - 71 FROM tab1
----
-20
14
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT + - MAX( DISTINCT + + col1 ) AS col0 FROM tab0 WHERE NOT + 76 - + - col0 = + - ( - col0 )
----
-81

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + - MAX ( DISTINCT + + col1 ) AS col0 FROM tab0 WHERE NOT + 76 - + - col0 = + - ( - col0 )
----
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
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-1433
SELECT DISTINCT - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT + + COUNT( * ) * ( + + 18 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + + COUNT ( * ) * ( + + 18 ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + + col0 / + 51 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 67 * 24, col1 / col0 - - 92, + - col0, - 32 )
----

query I rowsort
SELECT ALL - 35 * + col2 AS col1 FROM tab1 AS cor0
----
-2065
-2380
-3360

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

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

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

query I rowsort
SELECT ( + 27 ) FROM tab0 cor0
----
27
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT DISTINCT - - 55 DIV col2 col1 FROM tab0 AS cor0
----
0
1
5

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

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

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

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

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

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1448
SELECT * FROM tab2 WHERE NOT NULL <> CAST( 57 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1448
SELECT * FROM tab2 WHERE NOT NULL <> CAST ( 57 AS INTEGER )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL 63 + col0 AS col2 FROM tab0 WHERE NOT col2 / + + col2 + + ( + ( + col0 ) ) * - col0 / col2 + - 5 * + col0 NOT BETWEEN + + CAST( NULL AS SIGNED ) * - - col0 AND + ( 87 )
----

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL 63 + col0 AS col2 FROM tab0 WHERE NOT col2 / + + col2 + + ( + ( + col0 ) ) * - col0 / col2 + - 5 * + col0 NOT BETWEEN + + CAST ( NULL AS INTEGER ) * - - col0 AND + ( 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT 16 - MAX( ALL - 91 ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND col0 - - - col2 * - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT 16 - MAX ( ALL - 91 ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND col0 - - - col2 * - + col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT - MIN( col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1454
SELECT - MIN ( col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - - 60 AS col2 FROM tab0 AS cor0
----
60

query I rowsort
SELECT ALL + 39 AS col0 FROM tab2 AS cor0
----
39
39
39

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

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

query I rowsort
SELECT DISTINCT + col0 + - + 78 AS col1 FROM tab0 AS cor0
----
-63
19
9

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

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

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

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

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

query I rowsort
SELECT DISTINCT 21 + col1 FROM tab2
----
72
88
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT + 22 + COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1465
SELECT + 22 + COUNT ( * ) FROM tab1
----
25

query I rowsort
SELECT - 89 + + - 62 AS col0 FROM tab1
----
-151
-151
-151

query II rowsort
SELECT DISTINCT - 31 + + col2 - + ( + col2 ) AS col0, ( + col2 ) * + - col0 FROM tab0
----
-31
-705
-31
-870
-31
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT - + 31 + - COUNT( * ) FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
-31

skipif mysql # not compatible
query I rowsort label-1468
SELECT - + 31 + - COUNT ( * ) FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT ALL + COUNT( * ) + - - 9 + + CAST( NULL AS SIGNED ) + AVG ( + col2 ) + + 2 + + MIN( 16 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + COUNT ( * ) + - - 9 + + CAST ( NULL AS INTEGER ) + AVG ( + col2 ) + + 2 + + MIN ( 16 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 + + ( + col0 ) + - col1 AS col0 FROM tab0
----
-19
195
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1471
SELECT DISTINCT COUNT( * ) - - CAST( - 58 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT COUNT ( * ) - - CAST ( - 58 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT 56 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT 56 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-168

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

skipif mysql # not compatible
query I rowsort label-1473
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 70 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL MAX( + col0 ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1474
SELECT ALL MAX ( + col0 ) col0 FROM tab2
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT DISTINCT 3 + - - 93 + + SUM( ALL col1 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT 3 + - - 93 + + SUM ( ALL col1 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1477
SELECT col0 DIV col0, col1 AS col0 FROM tab2
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-1477
SELECT col0 / col0, col1 AS col0 FROM tab2
----
1
51
1
67
1
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col0 ) col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + - 18 AS col2 FROM tab0 cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + + 21 AS col1 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - - ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col0 * + + 38 FROM tab1 AS cor0 WHERE NOT - 0 + col0 = ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 col0, col1 + - 20 AS col0 FROM tab0
----
19
-19
19
1
19
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT SUM( - + 68 ) * - - 92 * - + COUNT( * ) AS col1 FROM tab1
----
56304

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT SUM ( - + 68 ) * - - 92 * - + COUNT ( * ) AS col1 FROM tab1
----
56304

query I rowsort
SELECT ( - 16 ) FROM tab0
----
-16
-16
-16

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

query I rowsort
SELECT 40 + - col2 AS col0 FROM tab0
----
-59
-7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT - 93 + + - COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1491
SELECT - 93 + + - COUNT ( * ) FROM tab2
----
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT 95 DIV + col0 AS col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT 95 / + col0 AS col2 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-1494
SELECT col2 AS col0, col0 DIV 60 + 0 FROM tab1
----
59
1
68
1
96
0

skipif mysql # not compatible
query II rowsort label-1494
SELECT col2 AS col0, col0 / 60 + 0 FROM tab1
----
59
1
68
1
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1495
SELECT + CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1495
SELECT + CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1496
SELECT DISTINCT - - CAST( NULL AS SIGNED ), - col1 AS col1 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-1496
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), - col1 AS col1 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + + 45 + - col1 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1499
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) DIV - 75 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) / - 75 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT SUM( ALL col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1500
SELECT SUM ( ALL col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT 12 + - + col0 FROM tab1
----
-39
-73
-79

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT DISTINCT + 44 DIV + 46 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1505
SELECT DISTINCT + 44 / + 46 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT 79 - MAX( DISTINCT - - col0 ) + + + 50 col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1506
SELECT DISTINCT 79 - MAX ( DISTINCT - - col0 ) + + + 50 col0 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1507
SELECT 54 * + 25 * col0 * ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT 54 * + 25 * col0 * ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - - MIN( + col0 ) AS col0 FROM tab0 WHERE - col1 * - - col0 < - col2
----
15

skipif mysql # not compatible
query I rowsort label-1508
SELECT - - MIN ( + col0 ) AS col0 FROM tab0 WHERE - col1 * - - col0 < - col2
----
15

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT + ( + - CAST( - + col2 AS SIGNED ) ) * - ( + 43 ) AS col1 FROM tab2
----
-1720
-2494
-989

skipif mysql # not compatible
query I rowsort label-1510
SELECT + ( + - CAST ( - + col2 AS INTEGER ) ) * - ( + 43 ) AS col1 FROM tab2
----
-1720
-2494
-989

query I rowsort
SELECT + 1 * - col2 FROM tab1 WHERE + col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 41 * + col0 + - col2 * - - col0 AS col1 FROM tab2
----
-1275
64
828

query I rowsort
SELECT ALL 86 + - - col1 FROM tab1
----
100
133
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * - + col1 col2 FROM tab2
----
3876
5092
5852

query II rowsort
SELECT DISTINCT col0 + - - col1 * + col1, col1 FROM tab1
----
110
5
2300
47
247
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT 13 - - + ( + - COUNT( ALL - + col0 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT 13 - - + ( + - COUNT ( ALL - + col0 ) ) FROM tab0
----
10

query I rowsort
SELECT ALL + 43 + + 92 FROM tab1
----
135
135
135

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT - + 55 DIV + 30 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-1521
SELECT - + 55 / + 30 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 20 * + + col2 FROM tab1 AS cor0
----
-1180
-1360
-1920

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 58 = - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 89 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL - col0 * - 59 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3009
5015
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1530
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT DISTINCT - - COUNT( * ) * - - 41 AS col2 FROM tab1 AS cor0 WHERE col1 * 86 IN ( + 31 * + - CAST( col1 AS SIGNED ) / col2, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - - COUNT ( * ) * - - 41 AS col2 FROM tab1 AS cor0 WHERE col1 * 86 IN ( + 31 * + - CAST ( col1 AS INTEGER ) / col2, col1 )
----
0

query II rowsort
SELECT - col2 AS col0, col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT DISTINCT COUNT( * ) * + - ( + - MIN( ALL col1 ) ) col1 FROM tab2
----
153

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1536
SELECT + - MAX( DISTINCT + col1 ) DIV + + CAST( 82 AS SIGNED ) + + - 98 + 95 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1536
SELECT + - MAX ( DISTINCT + col1 ) / + + CAST ( 82 AS INTEGER ) + + - 98 + 95 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL - 37 + - col0 FROM tab2
----
-101
-112
-83

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

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

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

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

query I rowsort
SELECT DISTINCT - 46 * + col0 * + 49 FROM tab1 AS cor0
----
-114954
-191590
-205114

query I rowsort
SELECT col2 + - col1 * - + col2 AS col0 FROM tab2 AS cor0
----
1196
3120
3944

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN + 53 AND NULL
----

query II rowsort
SELECT DISTINCT col0 * + col2 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
705
47
870
10
9603
99

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + col2 BETWEEN - col2 - + - col0 AND + 54
----
15
81
47
97
1
99

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + - col1 + 5, + ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT DISTINCT 59 DIV + col2 + - col2 AS col1 FROM tab1
----
-58
-68
-96

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT 59 / + col2 + - col2 AS col1 FROM tab1
----
-58
-68
-96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT ALL 86 + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL 86 + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL col1 - + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-153
-193
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1553
SELECT DISTINCT + - col1 - + CAST( - col0 AS SIGNED ) AS col1, col2 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

skipif mysql # not compatible
query II rowsort label-1553
SELECT DISTINCT + - col1 - + CAST ( - col0 AS INTEGER ) AS col1, col2 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT DISTINCT + col0 DIV - 32 AS col1 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + col0 / - 32 AS col1 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT 48 - - col1 + + col0 FROM tab0 AS cor0
----
144
146
156

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT ALL - col2 DIV col2 * col0 - - 8 FROM tab2 cor0
----
-38
-56
-67

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL - col2 / col2 * col0 - - 8 FROM tab2 cor0
----
-38
-56
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col0 FROM tab1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT ( 82 ) + - col0 + + CAST( NULL AS SIGNED ) * + ( - col0 ) / - col1 + col1 + - + 38 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT ( 82 ) + - col0 + + CAST ( NULL AS INTEGER ) * + ( - col0 ) / - col1 + col1 + - + 38 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 40 * col2 AS col1 FROM tab1
----
-11800
-127840
-53760

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

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab2
----
-23

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - COUNT ( - col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col0 * + col2 AS col0 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL SUM( DISTINCT - 63 ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL SUM ( DISTINCT - 63 ) FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL + - 20 * - col2 AS col0 FROM tab1 cor0
----
1180
1360
1920

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1569
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / - CAST( NULL AS DECIMAL ) + - ( - 17 ) * + col1 * + - col1 >= + col0 * - 6
----

skipif mysql # not compatible
query III rowsort label-1569
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / - CAST ( NULL AS REAL ) + - ( - 17 ) * + col1 * + - col1 >= + col0 * - 6
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 24 IN ( - 61 - - - ( - col1 ), + 74 )
----

query I rowsort
SELECT + 82 * + 77 + col2 FROM tab1 AS cor0
----
6373
6382
6410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT + 55 * + + COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 * - col2 * - col1 * col1 + col0 * + + CAST( NULL AS SIGNED ) + - col1 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 55 * + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 * - col2 * - col1 * col1 + col0 * + + CAST ( NULL AS INTEGER ) + - col1 NOT IN ( col1 )
----
0

query I rowsort
SELECT ALL - 9 * + 4 FROM tab2
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1575
SELECT * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) * - CAST( - col1 AS SIGNED ) * - + 72 - - 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1575
SELECT * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) * - CAST ( - col1 AS INTEGER ) * - + 72 - - 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + 76 * + ( COUNT ( * ) ) FROM tab1
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT ALL col0 + + + CAST( + 77 AS SIGNED ) AS col0 FROM tab0
----
164
174
92

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL col0 + + + CAST ( + 77 AS INTEGER ) AS col0 FROM tab0
----
164
174
92

query I rowsort
SELECT col1 * - col0 + 10 * + col2 AS col1 FROM tab0
----
-1727
-745
893

query II rowsort
SELECT ALL + 88 AS col1, + col2 * + col0 FROM tab0
----
88
705
88
870
88
9603

onlyif mysql # DIV for integer division: 
query II rowsort label-1580
SELECT ALL 77 * - 10 + + 71 DIV col0, + col2 AS col0 FROM tab0
----
-766
47
-770
10
-770
99

skipif mysql # not compatible
query II rowsort label-1580
SELECT ALL 77 * - 10 + + 71 / col0, + col2 AS col0 FROM tab0
----
-766
47
-770
10
-770
99

query III rowsort
SELECT * FROM tab0 WHERE - 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT 14 + - SUM( col1 ) AS col0 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-1582
SELECT 14 + - SUM ( col1 ) AS col0 FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1583
SELECT DISTINCT * FROM tab0 WHERE col1 * - CAST( - 64 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1583
SELECT DISTINCT * FROM tab0 WHERE col1 * - CAST ( - 64 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL - + 49 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - + 49 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1587
SELECT - col0 * + + col2 AS col2, CAST( NULL AS SIGNED ) * + 85 * col0 * - - col1 FROM tab0 AS cor0
----
-705
NULL
-870
NULL
-9603
NULL

skipif mysql # not compatible
query II rowsort label-1587
SELECT - col0 * + + col2 AS col2, CAST ( NULL AS INTEGER ) * + 85 * col0 * - - col1 FROM tab0 AS cor0
----
-705
NULL
-870
NULL
-9603
NULL

query I rowsort
SELECT ALL col2 * + col1 + - ( 14 ) FROM tab2
----
1159
3066
3872

query I rowsort
SELECT ALL + - 93 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - + 49 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL - SUM( - col0 ) + ( + 50 ) FROM tab1 AS cor0
----
277

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - SUM ( - col0 ) + ( + 50 ) FROM tab1 AS cor0
----
277

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( + col1 ) BETWEEN NULL AND + 60
----

query I rowsort
SELECT ALL + - ( + + col2 ) - col1 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

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

query I rowsort
SELECT - 48 * - col0 AS col0 FROM tab1 AS cor0
----
2448
4080
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT 56 * + - MIN( - + col0 ) col0 FROM tab1 AS cor0
----
5096

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1597
SELECT 56 * + - MIN ( - + col0 ) col0 FROM tab1 AS cor0
----
5096

query I rowsort
SELECT DISTINCT - 98 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-98

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

skipif mysql # not compatible
query III rowsort label-1599
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) + col2 - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL + COUNT( ALL - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + COUNT ( ALL - col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT - COUNT( ALL - + col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1601
SELECT - COUNT ( ALL - + col1 ) AS col0 FROM tab0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT - COUNT( * ) * - 39 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-1603
SELECT - COUNT ( * ) * - 39 FROM tab0
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * col1 * + ( + col1 ) col2 FROM tab1
----
11045
125
980

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT COUNT( * ) * - - COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1605
SELECT COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2
----
9

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

query I rowsort
SELECT DISTINCT col0 * + col0 * ( + col2 ) FROM tab0
----
10575
75690
931491

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

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT COUNT ( ALL - 59 ) FROM tab1
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1610
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 6 IN ( + ( - 0 ) + - col2 * 58, CAST( NULL AS SIGNED ), + + col0, ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-1610
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 6 IN ( + ( - 0 ) + - col2 * 58, CAST ( NULL AS INTEGER ), + + col0, ( col1 ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * - - col0 col0 FROM tab0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT MIN( DISTINCT 94 ) AS col0 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-1613
SELECT MIN ( DISTINCT 94 ) AS col0 FROM tab0 cor0
----
94

query I rowsort
SELECT col2 * + - col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

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

query II rowsort
SELECT ( - + 42 ), 11 AS col0 FROM tab1 AS cor0
----
-42
11
-42
11
-42
11

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 16 > + - col0
----

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

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

query I rowsort
SELECT DISTINCT col2 + 14 FROM tab1
----
110
73
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) BETWEEN ( + col0 ) + ( + col0 ) AND + + col2
----
15
81
47

query I rowsort
SELECT col0 + + 71 FROM tab2
----
117
135
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1622
SELECT COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1622
SELECT COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 35 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
35

query I rowsort
SELECT DISTINCT col2 * - 44 + - col1 AS col0 FROM tab1
----
-2601
-3039
-4238

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

query I rowsort
SELECT col0 * - 18 - - ( + 96 ) + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1383
-1553
-159

query I rowsort
SELECT ALL - 28 - - - col2 FROM tab1 AS cor0
----
-124
-87
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1630
SELECT * FROM tab2 AS cor0 WHERE + col1 + - col0 * + 73 IN ( + + CAST( + - col1 AS DECIMAL ), 63 * col0 * - - col0 * + - col0 )
----

skipif mysql # not compatible
query III rowsort label-1630
SELECT * FROM tab2 AS cor0 WHERE + col1 + - col0 * + 73 IN ( + + CAST ( + - col1 AS REAL ), 63 * col0 * - - col0 * + - col0 )
----

query I rowsort
SELECT DISTINCT - 78 + - 52 AS col2 FROM tab2 AS cor0
----
-130

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT ALL - - 61 DIV 44 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - - 61 / 44 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1634
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL + MIN( - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + MIN ( - col1 ) AS col2 FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL <= col1 * + - col2 * - col2 * ( ( - col1 ) )
----

query I rowsort
SELECT + 37 * - 47 AS col2 FROM tab0
----
-1739
-1739
-1739

query I rowsort
SELECT DISTINCT - 59 * - col1 AS col1 FROM tab2
----
3009
3953
4543

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT ALL - MAX( DISTINCT + col0 ) DIV - 27 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL - MAX ( DISTINCT + col0 ) / - 27 AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT - + COUNT( - + 15 ), + 8 AS col0 FROM tab2 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-1644
SELECT - + COUNT ( - + 15 ), + 8 AS col0 FROM tab2 AS cor0
----
-3
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT DISTINCT - col2 * col1 DIV - 95 + - + 78 FROM tab0 AS cor0
----
-38
-76
-77

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT - col2 * col1 / - 95 + - + 78 FROM tab0 AS cor0
----
-38
-76
-77

query I rowsort
SELECT ALL + + 30 * + col2 + + col1 FROM tab0 AS cor0
----
1491
2971
321

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT ALL - 3 DIV - - col2 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1647
SELECT ALL - 3 / - - col2 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - 3 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - 3 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
0

query II rowsort
SELECT ALL - - col1 AS col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * + 86 IS NULL
----

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + + COUNT( ALL + col1 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1652
SELECT + + COUNT ( ALL + col1 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT ( + col1 ) DIV col2 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1653
SELECT ( + col1 ) / col2 + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT + 72 DIV - col0 + - col0 FROM tab1
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 72 / - col0 + - col0 FROM tab1
----
-52
-85
-91

query I rowsort
SELECT col0 + + - 99 AS col0 FROM tab2
----
-24
-35
-53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT - col0 + - + CAST( - + col1 AS SIGNED ) * - col0 * col2 AS col1 FROM tab1
----
-25160
-290927
-68595

skipif mysql # not compatible
query I rowsort label-1657
SELECT - col0 + - + CAST ( - + col1 AS INTEGER ) * - col0 * col2 AS col1 FROM tab1
----
-25160
-290927
-68595

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT 65 + - COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-1658
SELECT 65 + - COUNT ( * ) FROM tab1
----
62

query II rowsort
SELECT ALL - ( - - col0 ), - col1 AS col0 FROM tab0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL + MIN( ALL + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + MIN ( ALL + col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1661
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT NULL > col2 * + 48 * col0 * + col0 - + col1 + + 10 * ( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT NULL > col2 * + 48 * col0 * + col0 - + col1 + + 10 * ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT - MIN( ALL - 80 ) FROM tab2 WHERE - col1 <= - col0 - + ( 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - MIN ( ALL - 80 ) FROM tab2 WHERE - col1 <= - col0 - + ( 48 )
----
NULL

query I rowsort
SELECT DISTINCT ( + 85 ) AS col2 FROM tab2
----
85

query I rowsort
SELECT DISTINCT - 26 + + col1 AS col2 FROM tab1
----
-12
-21
21

query I rowsort
SELECT ALL - col0 + - - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 69 + col1 FROM tab0 cor0
----
150
70
90

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

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

query I rowsort
SELECT - 69 - - 67 - + col1 FROM tab0 AS cor0
----
-23
-3
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( 64 + + 98 IS NOT NULL ) )
----

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

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

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

query I rowsort
SELECT ALL ( col2 ) * + col2 FROM tab1
----
3481
4624
9216

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

query I rowsort
SELECT DISTINCT - 63 + + 78 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
15

query I rowsort
SELECT ALL + 45 FROM tab0 cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 81 - col1 NOT BETWEEN NULL AND + col0 + + 54
----

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 32 ) col1 FROM tab2 cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col2 * col0 col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1682
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) * - 44 FROM tab2
----
-2024
-2816
-3300

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) * - 44 FROM tab2
----
-2024
-2816
-3300

query I rowsort
SELECT 19 FROM tab1 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1684
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT ALL + 71 DIV + 2 FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL + 71 / + 2 FROM tab0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT DISTINCT 85 DIV col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT 85 / col0 AS col2 FROM tab2
----
1

query II rowsort
SELECT - col1, - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT + + col0, col2 AS col1 FROM tab1 cor0
----
51
96
85
59
91
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col2 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + - 29 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL + 75 + - - col2 AS col1 FROM tab2
----
115
133
98

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 IS NULL )
----

query I rowsort
SELECT ALL + + 20 AS col2 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT - + ( + - ( + - 65 ) ) FROM tab1 AS cor0
----
-65
-65
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT + - SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + - SUM ( col2 ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT ALL col2 * - + col0, ( + 62 ) * 24 FROM tab1 cor0 WHERE NOT ( + 55 ) >= - col1
----

query I rowsort
SELECT + col1 * + - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-196
-297
-3822

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT - col1 * - 87 * - CAST( 88 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-160776
-620136
-7656

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - col1 * - 87 * - CAST ( 88 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-160776
-620136
-7656

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

query III rowsort
SELECT * FROM tab0 WHERE col1 < + + col2
----
97
1
99

query I rowsort
SELECT ALL + 65 + 1 AS col0 FROM tab1
----
66
66
66

query II rowsort
SELECT + col0 + col0 * + col0, - col0 - - col2 AS col2 FROM tab1
----
2652
45
7310
-26
8372
-23

query I rowsort
SELECT + 56 + 69 AS col2 FROM tab2
----
125
125
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT + SUM( - col1 ) + + - COUNT( ALL + - col2 ) + + + 26 * - + 49 - - 25 AS col0 FROM tab0
----
-1355

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT + SUM ( - col1 ) + + - COUNT ( ALL + - col2 ) + + + 26 * - + 49 - - 25 AS col0 FROM tab0
----
-1355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL 11 * col1 + + CAST( NULL AS SIGNED ) * - 22 * + - 53 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT ALL 11 * col1 + + CAST ( NULL AS INTEGER ) * - 22 * + - 53 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT 97 * + 40 + + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT 97 * + 40 + + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1714
SELECT 21 * 79 * - CAST( - 56 AS SIGNED ) * + 11 FROM tab2
----
1021944
1021944
1021944

skipif mysql # not compatible
query I rowsort label-1714
SELECT 21 * 79 * - CAST ( - 56 AS INTEGER ) * + 11 FROM tab2
----
1021944
1021944
1021944

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT - 95 + + - 61 + + + COUNT( DISTINCT - 97 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----
-156

skipif mysql # not compatible
query I rowsort label-1715
SELECT - 95 + + - 61 + + + COUNT ( DISTINCT - 97 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - col1 IS NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT - MAX( col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - MAX ( col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT + 0 * + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1722
SELECT DISTINCT 10 * - + CAST( NULL AS DECIMAL ) / + col1 * + 56 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT 10 * - + CAST ( NULL AS REAL ) / + col1 * + 56 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT COUNT( * ) col2 FROM tab0
----
3

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

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

skipif mysql # not compatible
query I rowsort label-1724
SELECT COUNT ( * ) AS col2 FROM tab2
----
3

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

query II rowsort
SELECT ALL 54, - col0 AS col1 FROM tab2
----
54
-46
54
-64
54
-75

query I rowsort
SELECT DISTINCT col0 * - + col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

query II rowsort
SELECT + 16, + 86 + + col1 + 33 AS col2 FROM tab1
----
16
124
16
133
16
166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL - SUM( ALL + 8 ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - SUM ( ALL + 8 ) AS col0 FROM tab0
----
-24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT 12 DIV + + 58 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1733
SELECT 12 / + + 58 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT DISTINCT - 42 * - 83 + - - CAST( + - 3 AS SIGNED ) col0 FROM tab0
----
3483

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1734
SELECT DISTINCT - 42 * - 83 + - - CAST ( + - 3 AS INTEGER ) col0 FROM tab0
----
3483

query I rowsort
SELECT ALL col2 + - col0 + col0 * - col0 + col1 FROM tab0
----
-112
-7625
-9406

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT ALL - - 59 + col2 DIV - - ( 58 ) AS col1 FROM tab1 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL - - 59 + col2 / - - ( 58 ) AS col1 FROM tab1 AS cor0
----
60
60
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL + COUNT( DISTINCT 14 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL + COUNT ( DISTINCT 14 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col2 * col2 * + col1 + + 58 FROM tab0 AS cor0
----
-178871
-2042
-9743

query I rowsort
SELECT ALL - col0 * - 64 * + col0 AS col0 FROM tab1 AS cor0
----
166464
462400
529984

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT ALL + 57 DIV - col2 * + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + 57 / - col2 * + col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + - col2 + - col2, col0 FROM tab0 AS cor0
----
-198
97
-20
87
-94
15

query I rowsort
SELECT + 60 FROM tab1 AS cor0 WHERE 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT - CAST( + col2 AS SIGNED ) + - - col2 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1745
SELECT - CAST ( + col2 AS INTEGER ) + - - col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * - - col0 + - 32 * 7 FROM tab0
----
481
646
9379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT 88 DIV - COUNT( - - col1 ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1747
SELECT 88 / - COUNT ( - - col1 ) FROM tab0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col0 col0 FROM tab1
----
-2601
-7225
-8281

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

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

query I rowsort
SELECT col2 * - + col2 * 88 * + 23 AS col0 FROM tab2
----
-1070696
-3238400
-6808736

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

query I rowsort
SELECT DISTINCT - col1 + + col2 * - 47 FROM tab0
----
-2290
-4654
-491

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

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE 54 >= + - ( - 61 ) / - col1
----
-14
-47
-5

query I rowsort
SELECT ALL + 68 * - - col2 - col1 FROM tab2 AS cor0
----
1513
2643
3877

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT col1 + - - col1 DIV 44 * - col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-1756
SELECT col1 + - - col1 / 44 * - col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT DISTINCT + ( - 80 ), + MAX( col0 ) AS col1 FROM tab2 AS cor0
----
-80
75

skipif mysql # not compatible
query II rowsort label-1758
SELECT DISTINCT + ( - 80 ), + MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
-80
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL COUNT( * ) col1 FROM tab1
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT - - col2 DIV - 56 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT - - col2 / - 56 FROM tab0 cor0
----
-1
0
0

query II rowsort
SELECT - col2 AS col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 77 > NULL
----

query I rowsort
SELECT 24 AS col1 FROM tab2 AS cor0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 74 >= 71
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( ( 47 ) ) AND NULL
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 86, - 19 col2 FROM tab0 cor0
----
86
-19
86
-19
86
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-1769
SELECT col2, - 55 DIV col1 col1 FROM tab0 AS cor0
----
10
-2
47
0
99
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1769
SELECT col2, - 55 / col1 col1 FROM tab0 AS cor0
----
10
-2
47
0
99
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-1770
SELECT col1 AS col0, + col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
51
-2
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-1770
SELECT col1 AS col0, + col1 / - col2 AS col1 FROM tab2 AS cor0
----
51
-2
67
-1
77
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col2 col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-1773
SELECT ALL - col2, + col2 - - + col1 DIV 2 AS col0 FROM tab2 AS cor0
----
-23
48
-40
78
-58
91

skipif mysql # not compatible
query II rowsort label-1773
SELECT ALL - col2, + col2 - - + col1 / 2 AS col0 FROM tab2 AS cor0
----
-23
48
-40
78
-58
91

query I rowsort
SELECT ALL - - 97 * - 68 AS col0 FROM tab0 AS cor0
----
-6596
-6596
-6596

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 - - col2 IS NULL
----

query I rowsort
SELECT col1 * - col1 * col1 * - col2 FROM tab1
----
263424
7059964
7375

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT ALL ( CAST( - col0 AS SIGNED ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL ( CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + col1 * + 51 FROM tab1
----
112659
1275
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT COUNT( + 72 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT COUNT ( + 72 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col0 * + + col1 + col0 - ( + + 77 ) FROM tab0 AS cor0
----
1153
117
1837

query I rowsort
SELECT ALL col2 * - 91 FROM tab0 AS cor0
----
-4277
-9009
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT DISTINCT - ( - col0 ) DIV col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT - ( - col0 ) / col0 FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT ALL col2 + + - 74 FROM tab2
----
-16
-34
-51

query I rowsort
SELECT - col1 + + 63 FROM tab2
----
-14
-4
12

query I rowsort
SELECT DISTINCT 77 + 86 + - ( - col1 ) - + 61 * - 77 * col0 FROM tab1
----
239724
399413
427637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) / - 15 + 66 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) / - 15 + 66 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL + col2 * + col1 - col2 FROM tab1 AS cor0
----
1248
236
3128

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT - col0 / 22 + - 75 NOT BETWEEN NULL AND - col1 + - - col1
----

query I rowsort
SELECT ALL col0 + 60 AS col1 FROM tab1 AS cor0
----
111
145
151

query I rowsort
SELECT DISTINCT + 14 * + - 77 - - - 59 AS col1 FROM tab0 AS cor0
----
-1137

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT ALL - col0 DIV + 11 AS col2 FROM tab0 AS cor0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - col0 / + 11 AS col2 FROM tab0 AS cor0
----
-1
-7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT 65 + ( + 29 ) * - SUM( DISTINCT + 65 ) AS col2 FROM tab2
----
-1820

skipif mysql # not compatible
query I rowsort label-1799
SELECT 65 + ( + 29 ) * - SUM ( DISTINCT + 65 ) AS col2 FROM tab2
----
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT ALL CAST( col0 AS SIGNED ) * - - 22 + 30 AS col2 FROM tab1
----
1152
1900
2032

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL CAST ( col0 AS INTEGER ) * - - 22 + 30 AS col2 FROM tab1
----
1152
1900
2032

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

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT - 48 * + - COUNT( ALL - ( col2 ) ) + + + 34 FROM tab0
----
178

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - 48 * + - COUNT ( ALL - ( col2 ) ) + + + 34 FROM tab0
----
178

query III rowsort
SELECT * FROM tab0 WHERE NULL < - - 31
----

query I rowsort
SELECT col2 + - 66 + - - col1 FROM tab1
----
-2
44
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, + 21 * 0 AS col2 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query II rowsort
SELECT DISTINCT - + col2, 68 AS col1 FROM tab2 AS cor0
----
-23
68
-40
68
-58
68

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + + 25 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 98bedf60306e75ea4aa4a1ba9062752d

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT col2 DIV + + ( + 1 ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1812
SELECT col2 / + + ( + 1 ) AS col1 FROM tab2
----
23
40
58

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

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

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

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

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

query I rowsort
SELECT - 0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 58 * - col2 / - + 89 + + 69 + + 29 + + 28 <> NULL
----

query I rowsort
SELECT DISTINCT + - 22 AS col0 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT + - MAX( col1 ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + - MAX ( col1 ) AS col0 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1821
SELECT ALL COUNT( * ), + 37 col0 FROM tab0
----
3
37

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

query I rowsort
SELECT 56 + + + 86 * - col2 AS col1 FROM tab2
----
-1922
-3384
-4932

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 31 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL - 91 * - 88 + + COUNT( * ) FROM tab2
----
8011

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - 91 * - 88 + + COUNT ( * ) FROM tab2
----
8011

query I rowsort
SELECT col0 * - + col2 * + col1 + - + col1 FROM tab2
----
-197197
-291517
-54009

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

query I rowsort
SELECT col2 + - ( - col1 ) FROM tab2
----
117
125
74

query II rowsort
SELECT + col1 AS col1, 18 * - col0 AS col0 FROM tab1 WHERE NOT NULL > NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT 53 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT ALL col1 + - + col0 + + 23 AS col1, col0 - + - col2 AS col0 FROM tab0 AS cor0
----
-43
97
-73
196
89
62

query I rowsort
SELECT DISTINCT + 25 + + 24 FROM tab2 AS cor0
----
49

query II rowsort
SELECT ALL col0 AS col0, 26 * - col1 FROM tab0 AS cor0
----
15
-2106
87
-546
97
-26

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1837
SELECT ALL + col0, + ( - - ( - col0 ) ) + + CAST( NULL AS DECIMAL ) + + 76 col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1837
SELECT ALL + col0, + ( - - ( - col0 ) ) + + CAST ( NULL AS REAL ) + + 76 col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT DISTINCT + CAST( 28 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + CAST ( 28 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
28

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 54 col0 FROM tab1
----
-40
-49
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1843
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1843
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * 94 col2 FROM tab2
----
4888
4888
4888

query I rowsort
SELECT + 40 * - 0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col1 / 40 + col2
----

query I rowsort
SELECT 64 * - col0 AS col0 FROM tab2
----
-2944
-4096
-4800

query I rowsort
SELECT + 7 AS col1 FROM tab2 WHERE NOT col1 BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - ( col0 ) )
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL NOT IN ( - col0 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT + 24 * + SUM( 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-1851
SELECT + 24 * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * col2 col0 FROM tab2
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 + col1 * + 30 <= ( + 30 )
----
3

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 + col1 * + 30 <= ( + 30 )
----
3

query I rowsort
SELECT ALL col2 * + 45 AS col1 FROM tab1 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT COUNT( * ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1855
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT DISTINCT ( 32 ) + col2 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-3449
-4592
-9184

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT ( 32 ) + col2 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-3449
-4592
-9184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT DISTINCT - MIN( DISTINCT + 42 ) DIV + 85 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT - MIN ( DISTINCT + 42 ) / + 85 AS col2 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT MAX( + 68 ) + - COUNT( * ) FROM tab2 WHERE - col2 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT MAX ( + 68 ) + - COUNT ( * ) FROM tab2 WHERE - col2 * - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + COUNT( ALL 97 ) AS col1 FROM tab1 WHERE NOT NULL IN ( - col2 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1860
SELECT + COUNT ( ALL 97 ) AS col1 FROM tab1 WHERE NOT NULL IN ( - col2 + col0 )
----
0

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

query I rowsort
SELECT DISTINCT - 30 FROM tab1 WHERE NOT col2 >= ( - 90 - col1 * + 95 )
----

query I rowsort
SELECT ALL - 6 * col0 AS col1 FROM tab1
----
-306
-510
-546

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1864
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - 41 - + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1864
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - 41 - + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + 70 + - 14 AS col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL COUNT( * ) FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL COUNT ( * ) FROM tab0 WHERE + col1 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT + col0 * - 0 - col1 FROM tab0
----
-1
-21
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT + SUM( - col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1872
SELECT + SUM ( - col2 ) FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT col0 * - 55 AS col0 FROM tab0 AS cor0
----
-4785
-5335
-825

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 54 * 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1875
SELECT - COUNT ( * ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - 67 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT - col2 DIV ( + col0 * - col1 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - col2 / ( + col0 * - col1 ) FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT SUM( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1881
SELECT SUM ( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1882
SELECT + col1 DIV - 19 AS col0 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT + col1 / - 19 AS col0 FROM tab1 AS cor0
----
-2
0
0

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

skipif mysql # not compatible
query I rowsort label-1883
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL + COUNT( - 95 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL + COUNT ( - 95 ) AS col1 FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT + col2 * 30 FROM tab2 cor0
----
1200
1740
690

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT COUNT( ALL col1 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT COUNT ( ALL col1 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT DISTINCT - CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 + - 93 / 95 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT - CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 + - 93 / 95 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT - 15 * COUNT( * ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1892
SELECT - 15 * COUNT ( * ) FROM tab2 AS cor0
----
-45

query I rowsort
SELECT ALL - ( 29 ) FROM tab2 WHERE NOT - 50 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL COUNT( * ) + + - 17 * - 45 AS col1 FROM tab1
----
768

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL COUNT ( * ) + + - 17 * - 45 AS col1 FROM tab1
----
768

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 = col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NOT NULL OR ( col1 * 31 + 94 * col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col0 FROM tab1
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL 81 + + COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL 81 + + COUNT ( * ) AS col0 FROM tab2
----
84

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

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

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

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

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

query I rowsort
SELECT - + 53 + + 61 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT - + 38 + ( - 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-1905
SELECT - + 38 + ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 33 AS col2 FROM tab0 AS cor0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab0 WHERE - - 82 < col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL - COUNT( * ) FROM tab2, tab2 AS cor0 WHERE NULL NOT BETWEEN + 34 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - COUNT ( * ) FROM tab2, tab2 AS cor0 WHERE NULL NOT BETWEEN + 34 AND NULL
----
0

query I rowsort
SELECT + + 15 * + 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1c6b9cbe81eee756e8280c9f64ee7f26

query I rowsort
SELECT ALL col1 + 97 * 18 FROM tab1 AS cor0 WHERE - 55 * + col0 + - 65 > NULL
----

query I rowsort
SELECT - col1 * + 90 * - col0 - 13 FROM tab1 AS cor0
----
38237
384917
64247

query I rowsort
SELECT DISTINCT col2 + - - 50 AS col2 FROM tab0 AS cor0
----
149
60
97

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

query I rowsort
SELECT col2 - - + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT - col2 - - ( + 87 ) AS col1 FROM tab2 AS cor0
----
29
47
64

query I rowsort
SELECT ALL + col1 + 95 FROM tab0 AS cor0
----
116
176
96

query I rowsort
SELECT DISTINCT col0 * + 13 FROM tab1 AS cor0
----
1105
1183
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1918
SELECT COUNT( DISTINCT 57 ) FROM tab1 WHERE NOT ( + CAST( col1 AS SIGNED ) * ( 94 + - col1 ) ) <= col1 * - col1
----
1

skipif mysql # not compatible
query I rowsort label-1918
SELECT COUNT ( DISTINCT 57 ) FROM tab1 WHERE NOT ( + CAST ( col1 AS INTEGER ) * ( 94 + - col1 ) ) <= col1 * - col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT COUNT( ALL + + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1919
SELECT COUNT ( ALL + + col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + col0 * - 37 * + 76 AS col1 FROM tab2
----
-129352
-179968
-210900

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT COUNT( * ) * - 27 * COUNT( * ) AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-1921
SELECT COUNT ( * ) * - 27 * COUNT ( * ) AS col1 FROM tab0
----
-243

query I rowsort
SELECT ( + + col1 ) * - + col0 AS col0 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col0 col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 72 * + + 30 FROM tab1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT COUNT( - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1925
SELECT COUNT ( - col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL 58 * + + col0 * - col1 FROM tab2 AS cor0 WHERE NOT ( - 88 ) <> NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1928
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1929
SELECT ALL + MAX( DISTINCT - + col2 ) AS col1, + 85 FROM tab0 AS cor0
----
-10
85

skipif mysql # not compatible
query II rowsort label-1929
SELECT ALL + MAX ( DISTINCT - + col2 ) AS col1, + 85 FROM tab0 AS cor0
----
-10
85

onlyif mysql # DIV for integer division: 
query II rowsort label-1930
SELECT col1, + col0 DIV + col1 FROM tab0
----
1
97
21
4
81
0

skipif mysql # not compatible
query II rowsort label-1930
SELECT col1, + col0 / + col1 FROM tab0
----
1
97
21
4
81
0

query I rowsort
SELECT + col1 * + - col1 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT col2 AS col0, - col2 AS col2 FROM tab0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 33 <> - - col0
----

query II rowsort
SELECT col2 * + 5 * + col1 AS col0, 50 FROM tab0
----
1050
50
19035
50
495
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 + - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT + SUM( DISTINCT + - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT + SUM ( DISTINCT + - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT MAX( col0 ) FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= col1 * ( + col0 )
----
75

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT MAX ( col0 ) FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= col1 * ( + col0 )
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 7 col2 FROM tab2 cor0
----
7

query I rowsort
SELECT DISTINCT - + 75 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL ( - col1 ) * + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + 21 - - col1 AS col2 FROM tab2 WHERE NULL NOT IN ( - col0, col0 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 * + col1 AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT col1 + - - col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL 9 * col1 FROM tab2
----
459
603
693

query I rowsort
SELECT + + col1 FROM tab1 WHERE + 55 IN ( + col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ( + 78 ) - - 80 + + ( - COUNT( * ) ) AS col2 FROM tab2, tab0 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-1949
SELECT ( + 78 ) - - 80 + + ( - COUNT ( * ) ) AS col2 FROM tab2, tab0 AS cor0
----
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 col0 FROM tab1
----
144
147
159

query I rowsort
SELECT 20 + + + col2 FROM tab0
----
119
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT + COUNT( * ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1952
SELECT + COUNT ( * ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 + col0 * + col1 * + col1 * - 66 FROM tab1
----
-13267186
-140191
-659640

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT 63 + MIN( DISTINCT + + 31 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT 63 + MIN ( DISTINCT + + 31 ) FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - ( - - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1955
SELECT - ( - - COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT DISTINCT 40 - - COUNT( * ) FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT 40 - - COUNT ( * ) FROM tab1 cor0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1957
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT + + CAST ( NULL AS REAL ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - COUNT( DISTINCT + 62 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1958
SELECT - COUNT ( DISTINCT + 62 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + - 7 - + 7 AS col1 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT col2 - + - col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + col2 * - 69 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4071
-4692
-6624

query I rowsort
SELECT DISTINCT + - col0 + + col0 * + col1 - + ( - 99 ) AS col1 FROM tab2 AS cor0
----
2399
4963
5049

query I rowsort
SELECT + col2 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - - col2 - ( + col1 ) - + col1 FROM tab1 AS cor0
----
-4924
-5025
-6282

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 44 AND + - col1
----

query I rowsort
SELECT - 70 AS col2 FROM tab1 cor0
----
-70
-70
-70

query I rowsort
SELECT + col0 * - col0 + - + col2 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0 WHERE - 73 + + 41 + + - 3 = col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1969
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE - 73 + + 41 + + - 3 = col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col2 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT col1 + + CAST( NULL AS SIGNED ) * - col1 / + 10 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN - 74 + + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1971
SELECT col1 + + CAST ( NULL AS INTEGER ) * - col1 / + 10 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN - 74 + + + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT ( - + col1 ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL 0 * 97 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab2
----
65
65
65

query I rowsort
SELECT + col1 + - - 41 + - 23 + + 54 * - col2 * col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 82 FROM tab0
----
3854
8118
820

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 1 + - + col2 * - - 13 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 * - + col2 AS col1 FROM tab0
----
1000
103823
970299

query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL + MIN( - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + MIN ( - - col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1982
SELECT + ( + COUNT( * ) ) DIV ( - + CAST( + + 14 AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1982
SELECT + ( + COUNT ( * ) ) / ( - + CAST ( + + 14 AS INTEGER ) ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1984
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 5 / + - col0 * col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 5 / + - col0 * col1 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 + 68 FROM tab1
----
127
136
164

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col2 / - 57 AS col2 FROM tab0 WHERE NULL <> - 64
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1989
SELECT ALL ( - 18 ) + col0 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL ( - 18 ) + col0 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 38 + - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2
-20
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) * col0 * + - col0 col1 FROM tab0 cor0
----
10575
75690
931491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1991
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) * col0 * + - col0 col1 FROM tab0 cor0
----
10575
75690
931491

query I rowsort
SELECT ALL - 43 * - 65 - - col2 AS col1 FROM tab1 AS cor0
----
2854
2863
2891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT + 61 DIV + + COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1993
SELECT + 61 / + + COUNT ( * ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT DISTINCT 62 * + + AVG ( ALL - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - col1 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col2 * col2 col0 FROM tab1 AS cor0
----
205379
314432
884736

query I rowsort
SELECT 25 * - col0 FROM tab2 AS cor0
----
-1150
-1600
-1875

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT ALL 48 DIV + ( + - col2 ) AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL 48 / + ( + - col2 ) AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL - col0 * + - col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col2 < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - col0 * + - col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col2 < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1999
SELECT + - 70 DIV COUNT( * ) DIV - 65 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT + - 70 / COUNT ( * ) / - 65 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 8 FROM tab2 WHERE NULL IS NULL
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT MIN( 71 ) + - 67 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2001
SELECT MIN ( 71 ) + - 67 FROM tab1
----
4

query I rowsort
SELECT col0 * - - col0 + - col0 FROM tab2
----
2070
4032
5550

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT col2 DIV - col0 + - col0 FROM tab1
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT col2 / - col0 + - col0 FROM tab1
----
-52
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 93
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT ALL + - COUNT( * ) DIV - 84 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL + - COUNT ( * ) / - 84 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0 AS col1, + 95 AS col2 FROM tab1
----
-51
95
-85
95
-91
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT col2 - - + CAST( 94 AS SIGNED ) / + CAST( NULL AS SIGNED ) * - 33 * 48 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT col2 - - + CAST ( 94 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * - 33 * 48 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + col1 / - + col2 * + + ( + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT MIN( ALL 37 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2009
SELECT MIN ( ALL 37 ) FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT DISTINCT - ( CAST( - 76 AS SIGNED ) ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - ( CAST ( - 76 AS INTEGER ) ) FROM tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2011
SELECT MAX ( + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT DISTINCT MAX( col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT MAX ( col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2013
SELECT ALL - col1, CAST( col2 AS SIGNED ) * - col2 - - - ( + 4 ) - - col1 + - col2 * col0 * + 24 AS col1 FROM tab1 cor0
----
-14
-126710
-47
-153093
-5
-123840

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL - col1, CAST ( col2 AS INTEGER ) * - col2 - - - ( + 4 ) - - col1 + - col2 * col0 * + 24 AS col1 FROM tab1 cor0
----
-14
-126710
-47
-153093
-5
-123840

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - COUNT( * ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2017
SELECT - COUNT ( * ) col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT - - col2 DIV col1 DIV + + ( - + col1 ) AS col0 FROM tab2 WHERE NOT + - col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT - - col2 / col1 / + + ( - + col1 ) AS col0 FROM tab2 WHERE NOT + - col1 IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL COUNT( col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL COUNT ( col0 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col1 FROM tab0
----
54

query I rowsort
SELECT ALL + ( + + ( + - col0 ) ) AS col1 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT - ( + col2 ) AS col0, - col2 FROM tab1
----
-59
-59
-68
-68
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT 26 DIV - ( - 85 ) + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2024
SELECT 26 / - ( - 85 ) + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + - 46 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - 54 FROM tab2 cor0
----
2754
3618
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL - SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT - col2 AS col0 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ( 29 ) FROM tab0
----
29
29
29

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <> - 1
----

query I rowsort
SELECT - ( + 60 ) AS col0 FROM tab1
----
-60
-60
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-2032
SELECT + 44 AS col0, 57 DIV + 31 + + col1 FROM tab1
----
44
15
44
48
44
6

skipif mysql # not compatible
query II rowsort label-2032
SELECT + 44 AS col0, 57 / + 31 + + col1 FROM tab1
----
44
15
44
48
44
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2034
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + + - col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - + CAST ( NULL AS REAL ) + + - col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 49 ) col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
49
49
49

query I rowsort
SELECT DISTINCT - + col1 * - - col2 + - + 50 + ( col2 ) FROM tab0 AS cor0
----
-250
-3810
-50

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 + - + 55 FROM tab0 AS cor0
----
-53
407
6587

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 > NULL )
----

query I rowsort
SELECT col2 * col1 * - col0 * - 27 + - 74 FROM tab1 AS cor0
----
1850614
676951
7852498

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + COUNT( ALL - + col1 ) + 12 col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2040
SELECT + COUNT ( ALL - + col1 ) + 12 col1 FROM tab2 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - + ( + 64 ) * - col1 + 60
----

query I rowsort
SELECT ALL + 23 + - 44 + col1 AS col1 FROM tab1
----
-16
-7
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2043
SELECT + CAST( NULL AS SIGNED ) / - - CAST( NULL AS DECIMAL ) / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT + CAST ( NULL AS INTEGER ) / - - CAST ( NULL AS REAL ) / col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2044
SELECT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT ALL - col0 * 3 - + 22 DIV 21 AS col2 FROM tab0 AS cor0
----
-262
-292
-46

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - col0 * 3 - + 22 / 21 AS col2 FROM tab0 AS cor0
----
-262
-292
-46

query I rowsort
SELECT ALL 80 - - + 90 AS col1 FROM tab0 AS cor0
----
170
170
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + 1 col2, + 75 FROM tab0 cor0
----
-14
75
-86
75
-96
75

query I rowsort
SELECT ALL - + 82 - 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e3b868e41a1e1492f8e943f834b42803

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 11 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT DISTINCT - - 6 DIV + - col1 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT - - 6 / + - col1 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + col0 / - col2 + - col0 + 27 FROM tab0 AS cor0 WHERE NOT 60 <> + col2
----

query I rowsort
SELECT + col0 * - 85 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-36130
-363592
-60704

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL - - SUM( - 60 ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL - - SUM ( - 60 ) FROM tab2 AS cor0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2056
SELECT ALL - CAST( NULL AS SIGNED ), + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2056
SELECT ALL - CAST ( NULL AS INTEGER ), + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2057
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = 1 + CAST( NULL AS SIGNED ) * col1 * + col0 * 88
----

skipif mysql # not compatible
query III rowsort label-2057
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = 1 + CAST ( NULL AS INTEGER ) * col1 * + col0 * 88
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col0, ( + 98 ) AS col1 FROM tab2 AS cor0
----
-23
98
-40
98
-58
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( + col2 * - col0 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT + MIN( DISTINCT - 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + MIN ( DISTINCT - 12 ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT - col0 * - + ( - - col2 ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - col2 * + - col0 FROM tab1 WHERE NOT NULL > + + col2
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT ALL + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2067
SELECT - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT - - COUNT( * ) * + ( - - 49 ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - - COUNT ( * ) * + ( - - 49 ) FROM tab2 AS cor0
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col0 col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT + 83 * + ( + - col0 ) + - col2 FROM tab2 AS cor0
----
-3841
-5352
-6283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col1 FROM tab0 AS cor0
----
-30
-30
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - ( 18 ) AS col0, - col0 + - 80 FROM tab2 AS cor0
----
18
-126
18
-144
18
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT + + 75 + 85 * - CAST( NULL AS SIGNED ) * + MAX( 56 ) * + COUNT( - col2 ) * - 18 - - 71 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT + + 75 + 85 * - CAST ( NULL AS INTEGER ) * + MAX ( 56 ) * + COUNT ( - col2 ) * - 18 - - 71 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT COUNT( - 41 ) * + 35 col2 FROM tab2 cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2075
SELECT COUNT ( - 41 ) * + 35 col2 FROM tab2 cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2076
SELECT + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + 2 * - + col0 AS col2, col2 * + col0 AS col0 FROM tab0 AS cor0
----
-174
870
-194
9603
-30
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col1 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0 cor0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2080
SELECT - 95 AS col0, + ( + SUM( col2 ) ) + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 WHERE NULL <= NULL
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-2080
SELECT - 95 AS col0, + ( + SUM ( col2 ) ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE NULL <= NULL
----
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL + COUNT( * ) * - 62 - SUM( DISTINCT - + ( + 91 ) ) AS col1 FROM tab2, tab0 cor0
----
-467

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + COUNT ( * ) * - 62 - SUM ( DISTINCT - + ( + 91 ) ) AS col1 FROM tab2, tab0 cor0
----
-467

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT + SUM( ALL + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + SUM ( ALL + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL 53 * - COUNT( * ) + 97 + - COUNT( * ) + + COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL 53 * - COUNT ( * ) + 97 + - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT DISTINCT col0 + + + col1 AS col1 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query II rowsort label-2085
SELECT 50 + + col0 DIV - col2 AS col0, 40 * + col2 AS col0 FROM tab2
----
48
920
49
1600
49
2320

skipif mysql # not compatible
query II rowsort label-2085
SELECT 50 + + col0 / - col2 AS col0, 40 * + col2 AS col0 FROM tab2
----
48
920
49
1600
49
2320

query I rowsort
SELECT ALL + 62 + col0 - + col2 AS col0 FROM tab2
----
79
85
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - COUNT( * ) + - 58 + + + 24 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-2087
SELECT - COUNT ( * ) + - 58 + + + 24 FROM tab2
----
-37

query II rowsort
SELECT - + col2 + + - 62 - + - 48 AS col1, - col1 + - + 69 AS col1 FROM tab2 AS cor0
----
-37
-120
-54
-146
-72
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE + ( + - col2 ) * col0 / - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2089
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE + ( + - col2 ) * col0 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + COUNT( 41 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2090
SELECT + COUNT ( 41 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT ALL 13 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL 13 / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col1 AS col2, col1 col0 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT - - 60 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - - 60 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT col0 * - 42 AS col1 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT DISTINCT + 56 DIV + col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT + 56 / + col2 AS col0 FROM tab0
----
0
1
5

query I rowsort
SELECT - 99 * col0 * - 45 * col1 AS col1 FROM tab2
----
10451430
21954240
22386375

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - SUM( col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - SUM ( col1 ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT col2 + + 91 * + col1 * col2 AS col1 FROM tab0
----
19120
346484
9108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2103
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2103
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT - SUM( + 76 ) FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-2104
SELECT - SUM ( + 76 ) FROM tab1
----
-228

query I rowsort
SELECT DISTINCT - 34 + 68 AS col0 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT + MAX( - 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + MAX ( - 15 ) FROM tab1
----
-15

query I rowsort
SELECT ALL col2 + + + col0 FROM tab2
----
104
133
69

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1 AS cor0 WHERE NOT - col2 * - 54 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - ( - col0 ) ), + 79 col2 FROM tab2 cor0
----
46
79
64
79
75
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - COUNT ( * ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - col1 * + col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - COUNT( + + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2114
SELECT - COUNT ( + + col2 ) FROM tab1 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL COUNT( * ) + - MIN( DISTINCT 47 ) AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL COUNT ( * ) + - MIN ( DISTINCT 47 ) AS col0 FROM tab0
----
-44

query I rowsort
SELECT col1 * col0 + + + 43 + col1 FROM tab0 AS cor0
----
1339
141
1891

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - col0 - - - col0 + + col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT + CAST( + MAX( DISTINCT + - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2120
SELECT + CAST ( + MAX ( DISTINCT + - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT + + COUNT( ALL - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + + COUNT ( ALL - + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 42 FROM tab0 WHERE NOT - - ( - 97 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT COUNT( col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT COUNT ( col0 ) col1 FROM tab2
----
3

query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab1 WHERE col0 * 83 > NULL
----

query II rowsort
SELECT col1 * - 15 AS col2, - col1 FROM tab0
----
-1215
-81
-15
-1
-315
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2126
SELECT - CAST( NULL AS DECIMAL ) * - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT - CAST ( NULL AS REAL ) * - - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 34 * col1 * + + 85 FROM tab2
----
147390
193630
222530

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NULL ) >= col0
----

query II rowsort
SELECT - col0, + 23 FROM tab2 AS cor0 WHERE NOT NULL = col1 + - 14 + - + 29
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT + MIN( col0 ) * 6 - - + MIN( + 78 ) AS col2, + 93 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----
NULL
93

skipif mysql # not compatible
query II rowsort label-2130
SELECT + MIN ( col0 ) * 6 - - + MIN ( + 78 ) AS col2, + 93 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----
NULL
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ( - - COUNT( * ) ) * 52 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2132
SELECT ( - - COUNT ( * ) ) * 52 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT ALL col2 DIV + - col1 * - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL col2 / + - col1 * - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * col0 * - col1 col2 FROM tab1 AS cor0
----
-10710
-6375
-64155

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 * - 11 FROM tab1 AS cor0
----
-1056
-649
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT DISTINCT - + col1 AS col0 FROM tab1 cor0 WHERE col2 + - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - + col1 AS col0 FROM tab1 cor0 WHERE col2 + - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT + 57, + col2 AS col1 FROM tab0 AS cor0
----
57
10
57
47
57
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - COUNT( * ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2140
SELECT - COUNT ( * ) col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT + MAX( DISTINCT col0 ) * - 39 FROM tab1 AS cor0
----
-3549

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT + MAX ( DISTINCT col0 ) * - 39 FROM tab1 AS cor0
----
-3549

query II rowsort
SELECT + - 97 AS col0, col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 + + + col1 + + col1 * 96 + + col2 AND - col0
----

query II rowsort
SELECT ( + - col1 ) AS col0, - col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT ALL 81 * - col1 FROM tab0
----
-1701
-6561
-81

query I rowsort
SELECT DISTINCT - col1 + + - col2 AS col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT + 58 + - col2 FROM tab1 WHERE col2 * - - col0 * + 97 + + - 69 IS NULL
----

query I rowsort
SELECT - col0 * 66 + + + col2 AS col1 FROM tab0 AS cor0
----
-5732
-6303
-943

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + 16 + - MAX( + + col1 ) AS col2 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2148
SELECT + 16 + - MAX ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-61

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * ( - + col1 ) NOT BETWEEN - 22 * - - 44 AND + - col0 * - + col2 + - col0
----
87
21
10
97
1
99

query I rowsort
SELECT col1 + 86 * - 49 + + col2 AS col2 FROM tab2 cor0
----
-4089
-4097
-4140

query I rowsort
SELECT DISTINCT 87 - - - col1 AS col1 FROM tab0
----
6
66
86

query I rowsort
SELECT - + col0 - + + col2 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT ( - ( 49 ) ) + - col0 FROM tab2 AS cor0
----
-113
-124
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT DISTINCT 72 DIV + MIN( 37 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT 72 / + MIN ( 37 ) AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL - MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL - MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 1 col2 FROM tab2
----
-45
-63
-74

query III rowsort
SELECT * FROM tab1 WHERE col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL MAX( + - 55 ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL MAX ( + - 55 ) AS col0 FROM tab2
----
-55

query II rowsort
SELECT DISTINCT 32, + col0 FROM tab0
----
32
15
32
87
32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT SUM( + col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2161
SELECT DISTINCT SUM ( + col2 ) col0 FROM tab1
----
223

query II rowsort
SELECT - col1 AS col2, 40 FROM tab1 AS cor0
----
-14
40
-47
40
-5
40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND + col2 / 84
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 68 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - SUM( 47 ) FROM tab0, tab0 AS cor0
----
-423

skipif mysql # not compatible
query I rowsort label-2165
SELECT - SUM ( 47 ) FROM tab0, tab0 AS cor0
----
-423

query I rowsort
SELECT col2 - + col2 FROM tab1 WHERE NOT ( + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col0 * + 67 FROM tab0
----
-1005
-5829
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col1 FROM tab2 AS cor0 WHERE ( NULL ) <= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT ALL + ( ( + 17 ) ) * - - 50 * - CAST( + + 76 AS SIGNED ) col1 FROM tab2 AS cor0
----
-64600
-64600
-64600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2174
SELECT ALL + ( ( + 17 ) ) * - - 50 * - CAST ( + + 76 AS INTEGER ) col1 FROM tab2 AS cor0
----
-64600
-64600
-64600

query I rowsort
SELECT col0 + - + col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - MIN( DISTINCT + col2 ) AS col2 FROM tab0 WHERE NOT + + 7 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-2176
SELECT - MIN ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE NOT + + 7 IS NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT - 25 + 39 + + + MAX( ALL + col2 ) col1 FROM tab0
----
113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2177
SELECT - 25 + 39 + + + MAX ( ALL + col2 ) col1 FROM tab0
----
113

query I rowsort
SELECT - col2 + - - 59 FROM tab1
----
-37
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2179
SELECT + COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2180
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) + + 15 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) + + 15 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, - 13 AS col2 FROM tab1
----
51
-13
85
-13
91
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT 6 + + ( - - CAST( NULL AS SIGNED ) ) * - 45 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT 6 + + ( - - CAST ( NULL AS INTEGER ) ) * - 45 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col1 + - ( col1 ) AS col1, - col0 AS col1 FROM tab1 cor0
----
0
-51
0
-85
0
-91

query I rowsort
SELECT DISTINCT + - col1 * 22 * ( - + 3 ) FROM tab2 cor0
----
3366
4422
5082

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND 30
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL + 53 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + 53 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col1 / 89 + col1 + - - 79 + - col1 + + + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL + 29 + + - MAX( DISTINCT - col0 ) AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + 29 + + - MAX ( DISTINCT - col0 ) AS col1 FROM tab0
----
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 - + col0 + + col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2190
SELECT DISTINCT - 69 DIV + col1 + - + CAST( - col2 AS SIGNED ) - + + col0 + + - col2 FROM tab1 cor0
----
-55
-92
-98

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - 69 / + col1 + - + CAST ( - col2 AS INTEGER ) - + + col0 + + - col2 FROM tab1 cor0
----
-55
-92
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2192
SELECT ALL + - col1 * + CAST( col2 AS SIGNED ) + - 56, col2 AS col1 FROM tab0 AS cor0
----
-155
99
-266
10
-3863
47

skipif mysql # not compatible
query II rowsort label-2192
SELECT ALL + - col1 * + CAST ( col2 AS INTEGER ) + - 56, col2 AS col1 FROM tab0 AS cor0
----
-155
99
-266
10
-3863
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2193
SELECT DISTINCT col2 - - ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT col2 - - ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( 30 ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND - 46
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 58 col2 FROM tab1
----
3422
3944
5568

query I rowsort
SELECT - 98 * + + col0 AS col0 FROM tab2
----
-4508
-6272
-7350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2198
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL ) OR + ( + 93 ) - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 9 * - col1 AS col1 FROM tab0 AS cor0
----
-189
-729
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col0 ) * - + 42 IS NULL
----

query I rowsort
SELECT + 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query II rowsort
SELECT ALL + col1 AS col2, - 64 FROM tab0 AS cor0
----
1
-64
21
-64
81
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 5 * - 53 + - + col1 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 * - 67 * + col1 - + col2 AS col1, - col0 + col0 + col2 * - 74 AS col0 FROM tab0 cor0
----
-32
-7326
29537
-740
439540
-3478

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col1 + + 67 + - + col2 * + - col1 FROM tab2 AS cor0
----
46
1189
64
3070
75
3886

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + + ( - col0 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( + 71 ) * 8 * 42 AS col1 FROM tab1 AS cor0
----
-23856
-23856
-23856

query I rowsort
SELECT + - col2 * - + 52 + + col2 FROM tab2 AS cor0
----
1219
2120
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2213
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + + 39 * - 79 + - - col0, col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT DISTINCT - COUNT( * ) * - - 2 / + 53 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - COUNT ( * ) * - - 2 / + 53 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 20 * col2 + + + col0 AS col1 FROM tab0
----
2077
287
955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col2 + + col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col2 + + col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * col1 + + + col2 + 66 AS col0 FROM tab1
----
-300
-4143
-552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2222
SELECT - CAST( NULL AS DECIMAL ) + AVG ( + col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT - CAST ( NULL AS REAL ) + AVG ( + col2 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 1 + col1 + + - 98 + - col2 FROM tab2 cor0
----
-60
-69
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) / + 23 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) / + 23 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - - COUNT( * ) - - 92 AS col0 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - - COUNT ( * ) - - 92 AS col0 FROM tab2 AS cor0
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + col1 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 74 col2, + col2 + col0 AS col2 FROM tab1
----
74
144
74
147
74
159

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * - 12 + + - 72 IS NULL
----

query I rowsort
SELECT DISTINCT 21 + - 49 AS col2 FROM tab1
----
-28

query I rowsort
SELECT 28 - 52 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL + COUNT( * ) - + 80 AS col0 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + COUNT ( * ) - + 80 AS col0 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT + + col1 - - col1 + col0 AS col0 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT ALL - + col1 * - 9 * - col0 + col2 AS col2 FROM tab2 cor0
----
-21091
-44312
-45167

query I rowsort
SELECT - ( + - col2 ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + 50 AS col1 FROM tab0 AS cor0 WHERE col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55 AS col1, col0 + + - ( + - col1 ) col2 FROM tab0 cor0
----
55
108
55
96
55
98

query I rowsort
SELECT 40 AS col0 FROM tab0 AS cor0 WHERE NOT 49 + col2 IS NULL
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 20 AS col1, + 37 col1 FROM tab2 AS cor0
----
20
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col2 FROM tab2 AS cor0 WHERE NOT - col1 + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL COUNT ( * ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT COUNT( * ) * + 48 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-2242
SELECT COUNT ( * ) * + 48 FROM tab0
----
144

query II rowsort
SELECT col1 * - col2 AS col1, 33 AS col2 FROM tab1
----
-1344
33
-295
33
-3196
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + COUNT ( * ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2245
SELECT ALL - 84 DIV - COUNT( DISTINCT + - col2 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - 84 / - COUNT ( DISTINCT + - col2 ) FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + COUNT( * ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2246
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT col0 * - 1 * - 50 FROM tab2
----
2300
3200
3750

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + - col1, - col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT SUM( ALL - col0 ) * COUNT( DISTINCT - 89 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2249
SELECT SUM ( ALL - col0 ) * COUNT ( DISTINCT - 89 ) FROM tab1
----
-227

query II rowsort
SELECT col0 * + col2 AS col1, col1 AS col2 FROM tab2
----
1058
51
2560
77
4350
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT DISTINCT - COUNT( DISTINCT 94 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT - COUNT ( DISTINCT 94 ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - 44 FROM tab0 cor0
----
-44

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT DISTINCT - col1 DIV + + col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT - col1 / + + col2 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + MAX( DISTINCT + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2257
SELECT + MAX ( DISTINCT + col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2258
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT COUNT( col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2259
SELECT COUNT ( col1 ) FROM tab0
----
3

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT MAX( ALL + 92 ) + + - COUNT( * ) AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT MAX ( ALL + 92 ) + + - COUNT ( * ) AS col2 FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2262
SELECT - - 21 * CAST( - col0 AS SIGNED ), + col2 AS col0 FROM tab2 AS cor0
----
-1344
40
-1575
58
-966
23

skipif mysql # not compatible
query II rowsort label-2262
SELECT - - 21 * CAST ( - col0 AS INTEGER ), + col2 AS col0 FROM tab2 AS cor0
----
-1344
40
-1575
58
-966
23

query I rowsort
SELECT col0 + + - 5 + col0 AS col0 FROM tab2 AS cor0
----
123
145
87

query I rowsort
SELECT ALL 27 AS col2 FROM tab2 AS cor0
----
27
27
27

query III rowsort
SELECT ALL col2 AS col2, + ( col0 ) AS col0, + col1 + - 60 FROM tab1 cor0
----
9 values hashing to a7c85d8e68da6067f151d59a5f1c448a

query I rowsort
SELECT ALL col0 / col2 - col1 FROM tab1 AS cor0 WHERE - ( - - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2267
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 52 * - 35 + + ( + + col0 ) FROM tab0 AS cor0
----
-1723
-1733
-1805

query I rowsort
SELECT + - col1 + + - 44 FROM tab0 AS cor0
----
-125
-45
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2271
SELECT DISTINCT - COUNT( * ) AS col1, 75 col2 FROM tab0
----
-3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2271
SELECT DISTINCT - COUNT ( * ) AS col1, 75 col2 FROM tab0
----
-3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT + MAX( col2 ) + + 47 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + MAX ( col2 ) + + 47 FROM tab2
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT ( - - 36 ) DIV - - 33 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2273
SELECT ( - - 36 ) / - - 33 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT MIN( - 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-2274
SELECT MIN ( - 23 ) FROM tab1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2275
SELECT 86 AS col2, 38 - - CAST( NULL AS SIGNED ) col0 FROM tab0
----
86
NULL
86
NULL
86
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2275
SELECT 86 AS col2, 38 - - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
86
NULL
86
NULL
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT - MIN( + + col1 ) + - 19 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - MIN ( + + col1 ) + - 19 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT - SUM( + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - SUM ( + col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT - MIN( + + ( - - col0 ) ) + + COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT - MIN ( + + ( - - col0 ) ) + + COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + SUM( col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-2280
SELECT + SUM ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2281
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + + 45 * + col2 FROM tab1 AS cor0
----
2655
3060
4320

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-2284
SELECT ALL + col0 DIV col1 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
0
-81
4
-21
97
-1

skipif mysql # not compatible
query II rowsort label-2284
SELECT ALL + col0 / col1 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
0
-81
4
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT DISTINCT - col2 + - + 93 * - CAST( NULL AS SIGNED ) * col1 + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + col2
----

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT - col2 + - + 93 * - CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + col2
----

query I rowsort
SELECT ALL ( + 99 ) FROM tab2 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - + MAX( + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2287
SELECT - + MAX ( + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT - col0 * CAST( - + 77 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3542
4928
5775

skipif mysql # not compatible
query I rowsort label-2288
SELECT - col0 * CAST ( - + 77 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3542
4928
5775

query I rowsort
SELECT ALL 13 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - + 85 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2291
SELECT + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NOT - + 51 < + ( 1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2293
SELECT DISTINCT CAST( 54 AS SIGNED ) DIV - + COUNT( * ) + - - MAX( - col0 ) + - 14 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT CAST ( 54 AS INTEGER ) / - + COUNT ( * ) + - - MAX ( - col0 ) + - 14 FROM tab1
----
-83

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - 49 NOT BETWEEN - 20 + + 89 AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2295
SELECT DISTINCT - COUNT( * ) DIV + 55 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - COUNT ( * ) / + 55 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2296
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0
----
-3
-3

query II rowsort
SELECT ALL - - col0 AS col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query II rowsort
SELECT + col1, + col1 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL - + 51 AS col1 FROM tab0 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 80 AS col1 FROM tab2 AS cor0
----
80
80
80

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 47 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 55 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - 95 * - - MIN( col2 ) AS col0 FROM tab2
----
-2185

skipif mysql # not compatible
query I rowsort label-2306
SELECT - 95 * - - MIN ( col2 ) AS col0 FROM tab2
----
-2185

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT + + 5 + COUNT( * ) + + - COUNT( * ) * 48 AS col1 FROM tab0 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + + 5 + COUNT ( * ) + + - COUNT ( * ) * 48 AS col1 FROM tab0 AS cor0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2308
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - + ( - + MAX( 52 ) ) AS col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2310
SELECT - + ( - + MAX ( 52 ) ) AS col2 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT COUNT( col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT COUNT ( col2 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 75 col2 FROM tab0 cor0
----
1575
6075
75

query I rowsort
SELECT ALL - col0 * - - 56 * - - 69 AS col0 FROM tab0 AS cor0
----
-336168
-374808
-57960

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 53 / - - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT - COUNT( * ) - - 38 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2316
SELECT - COUNT ( * ) - - 38 / + - COUNT ( * ) FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL + MIN( - 27 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + MIN ( - 27 ) FROM tab1
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab1
----
13

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 IS NULL AND NOT ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL - SUM( ALL - col2 ) + + 97 FROM tab2
----
218

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - SUM ( ALL - col2 ) + + 97 FROM tab2
----
218

query I rowsort
SELECT + col1 + 96 FROM tab2
----
147
163
173

query I rowsort
SELECT col1 * + 50 + + col1 + col0 AS col0 FROM tab0
----
1158
148
4146

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - - COUNT( * ) + + - 51 col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2323
SELECT - - COUNT ( * ) + + - 51 col2 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL - col1 + + + 6 AS col1 FROM tab0 AS cor0
----
-15
-75
5

query I rowsort
SELECT DISTINCT col0 - - 23 AS col0 FROM tab0 AS cor0
----
110
120
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT + col0 - + - col1 - + + col0 - + 33 DIV + ( - 48 ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + col0 - + - col1 - + + col0 - + 33 / + ( - 48 ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * + col0 - + col0 + - col2 + - ( - - ( - col2 ) ) FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-2329
SELECT COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query II rowsort
SELECT DISTINCT + + 88, - col1 AS col2 FROM tab1 AS cor0
----
88
-14
88
-47
88
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 58 * + - col1 * - col1 - - col0 + + - 64 FROM tab2 AS cor0
----
150840
260373
343882

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT - COUNT( + col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2333
SELECT - COUNT ( + col1 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 22 < - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL - MAX( + - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - MAX ( + - col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL MAX( col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL MAX ( col2 ) FROM tab1 cor0
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - 3
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 * - - 38 col1 FROM tab1 AS cor0
----
1634
1634
1634

query I rowsort
SELECT DISTINCT col2 * - 56 FROM tab1
----
-3304
-3808
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT 81 * - MIN( DISTINCT + 92 ) FROM tab1
----
-7452

skipif mysql # not compatible
query I rowsort label-2342
SELECT 81 * - MIN ( DISTINCT + 92 ) FROM tab1
----
-7452

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2343
SELECT ALL COUNT( * ) DIV + - 69, - COUNT( * ) AS col2 FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-2343
SELECT ALL COUNT ( * ) / + - 69, - COUNT ( * ) AS col2 FROM tab2
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2344
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IN ( 56, 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * - col2 col1 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT + col0 + 11 FROM tab2 WHERE NOT NULL IS NOT NULL
----
57
75
86

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col1 * col1 AND - col1
----

query I rowsort
SELECT + col2 * + col0 * + + 42 * + col2 AS col2 FROM tab2
----
1022028
10596600
4300800

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT - MAX( ALL col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - MAX ( ALL col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL + SUM( 97 ) FROM tab2 cor0
----
291

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + SUM ( 97 ) FROM tab2 cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT - 72 * - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - 72 * - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0 WHERE 93 IS NULL
----

query II rowsort
SELECT ALL col1 + + 5 + col0 AS col1, - col1 FROM tab1 AS cor0
----
143
-47
70
-14
95
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT DISTINCT + 74 - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT + 74 - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT + + 68 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT 16 + - COUNT( * ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-2358
SELECT 16 + - COUNT ( * ) AS col1 FROM tab2
----
13

query I rowsort
SELECT ALL - - col2 * 26 + + col1 AS col0 FROM tab1 cor0
----
1539
1815
2510

query I rowsort
SELECT + 70 + + - col0 FROM tab1 AS cor0
----
-15
-21
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT COUNT( * ) + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2361
SELECT COUNT ( * ) + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT ALL col2 * - 36 - - 61 + - 7 * 96 DIV col1 + - + 71 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1387
-2038
-781

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL col2 * - 36 - - 61 + - 7 * 96 / col1 + - + 71 / + col1 AS col0 FROM tab2 AS cor0
----
-1387
-2038
-781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT CAST( NULL AS SIGNED ) * - col0 * + col1 / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT CAST ( NULL AS INTEGER ) * - col0 * + col1 / - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT col1 * + col0 + - 65 FROM tab2
----
2281
4863
4960

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + ( MIN( ALL - + col2 ) ) * - - COUNT( * ) + + COUNT( * ) FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-2367
SELECT + ( MIN ( ALL - + col2 ) ) * - - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-294

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 68 * ( + 62 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT - 6 DIV - + 28 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2369
SELECT - 6 / - + 28 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT DISTINCT col2 DIV + - col1 AS col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT col2 / + - col1 AS col0 FROM tab1
----
-1
-11
-6

query II rowsort
SELECT ALL + col0, col1 - - col1 + + + col0 * - col0 * + col1 * + 72 FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT + 72 / 48 * + ( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT + 72 / 48 * + ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT col2 * - col0 * CAST( NULL AS SIGNED ) * + col1 + + 17 / - - ( - 96 ) * 98 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT col2 * - col0 * CAST ( NULL AS INTEGER ) * + col1 + + 17 / - - ( - 96 ) * 98 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = ( NULL )
----

query I rowsort
SELECT + - col2 - + - 47 AS col1 FROM tab0 AS cor0
----
-52
0
37

query I rowsort
SELECT ALL col0 + + + 36 AS col0 FROM tab0 AS cor0
----
123
133
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + MIN( ALL - ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2377
SELECT + MIN ( ALL - ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + 71 * - 47 * MIN( + 77 ) * - 0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2378
SELECT + 71 * - 47 * MIN ( + 77 ) * - 0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT + col2 * - 43 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT ( - 15 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 85 * - col1 >= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2387
SELECT COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT COUNT( * ) + + MIN( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT COUNT ( * ) + + MIN ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + 62 AS col2, + 12 AS col1 FROM tab2 AS cor0
----
62
12
62
12
62
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT MIN( DISTINCT - col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2390
SELECT MIN ( DISTINCT - col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT COUNT( ALL + + 48 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT COUNT ( ALL + + 48 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 15 AS col2 FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT - + COUNT( * ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2393
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col1 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + col1 * + - 17 * + 91 AS col1 FROM tab0 AS cor0
----
-125307
-1547
-32487

query I rowsort
SELECT ALL + 26 * - - col2 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE + 53 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT DISTINCT + 17 AS col1, - 90 + COUNT( * ) AS col2 FROM tab0
----
17
-87

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT + 17 AS col1, - 90 + COUNT ( * ) AS col2 FROM tab0
----
17
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2399
SELECT ALL + COUNT( * ) DIV COUNT( * ) + - - ( 94 ) AS col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + COUNT ( * ) / COUNT ( * ) + - - ( 94 ) AS col1 FROM tab0
----
95

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT DISTINCT col2 - - 79 col2 FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND + ( - + CAST( + col1 AS SIGNED ) ) * col2 * - 73
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT DISTINCT col2 - - 79 col2 FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND + ( - + CAST ( + col1 AS INTEGER ) ) * col2 * - 73
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 78 <> NULL
----

query I rowsort
SELECT - col1 / col2 FROM tab1 WHERE NOT 36 * - + ( 36 ) * col1 * + 98 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT - CAST( + MIN( ALL col0 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2404
SELECT - CAST ( + MIN ( ALL col0 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 IS NULL )
----

query I rowsort
SELECT ALL + 15 * - 76 * 93 + 0 FROM tab2 AS cor0
----
-106020
-106020
-106020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2407
SELECT DISTINCT COUNT( ALL 63 ) DIV - 56 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT COUNT ( ALL 63 ) / - 56 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 + - - col2 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT + - 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT ALL 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2411
SELECT MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT DISTINCT + col1 + - col1, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query II rowsort
SELECT ALL + col0, + ( + 55 ) FROM tab1 cor0 WHERE NULL IS NULL
----
51
55
85
55
91
55

query II rowsort
SELECT ALL col2 - 51 AS col1, col2 FROM tab1 AS cor0
----
17
68
45
96
8
59

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE - col0 * + 9 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - col2 * - - col0 + col0 + + 40 FROM tab1 AS cor0 WHERE + col2 * - 61 / - + 49 IS NULL
----

query II rowsort
SELECT ALL col2 AS col2, 85 FROM tab1
----
59
85
68
85
96
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT ALL SUM( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL SUM ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + 23 + + SUM( ALL ( + col2 ) ) AS col0 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-2419
SELECT + 23 + + SUM ( ALL ( + col2 ) ) AS col0 FROM tab2
----
144

onlyif mysql # DIV for integer division: 
query II rowsort label-2420
SELECT ALL + col1, col2 DIV + - col0 FROM tab0
----
1
-1
21
0
81
-3

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL + col1, col2 / + - col0 FROM tab0
----
1
-1
21
0
81
-3

query I rowsort
SELECT DISTINCT + col2 * + 93 FROM tab2 WHERE NOT + - 93 IS NULL
----
2139
3720
5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT CAST( + 65 AS SIGNED ) AS col2 FROM tab0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-2422
SELECT CAST ( + 65 AS INTEGER ) AS col2 FROM tab0
----
65
65
65

query II rowsort
SELECT col0, + 24 AS col2 FROM tab0 AS cor0
----
15
24
87
24
97
24

query I rowsort
SELECT - 91 * + + col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ( + + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2425
SELECT ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT MIN( DISTINCT col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2427
SELECT MIN ( DISTINCT col1 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - COUNT ( * ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( + ( 92 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2432
SELECT * FROM tab1 WHERE + CAST( 62 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2432
SELECT * FROM tab1 WHERE + CAST ( 62 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT CAST( NULL AS SIGNED ) + - MAX( + 28 ) AS col2 FROM tab1 WHERE NOT ( 35 ) NOT IN ( + col1 + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT CAST ( NULL AS INTEGER ) + - MAX ( + 28 ) AS col2 FROM tab1 WHERE NOT ( 35 ) NOT IN ( + col1 + 45 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2435
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 + + col2 * + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = col1 + - col2 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT COUNT ( * ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 48 NOT IN ( col0 * - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2440
SELECT COUNT( DISTINCT + col0 ) * CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE ( col1 - 49 ) <> - col1 * + col1 + ( - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2440
SELECT COUNT ( DISTINCT + col0 ) * CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE ( col1 - 49 ) <> - col1 * + col1 + ( - col2 )
----
NULL

query I rowsort
SELECT - col1 + 13 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - col1 AND ( col2 * + 26 )
----

query I rowsort
SELECT ALL + 1 FROM tab1 WHERE + 92 * - col1 + 70 NOT IN ( + col0 * - col2 )
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN - 50 AND 25 - 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL 47 + - ( col2 ) DIV + col0 AS col0 FROM tab0
----
44
46
47

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL 47 + - ( col2 ) / + col0 AS col0 FROM tab0
----
44
46
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + 36 * COUNT( * ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-2445
SELECT + 36 * COUNT ( * ) FROM tab2
----
108

query I rowsort
SELECT - 58 * + col1 - - col2 AS col0 FROM tab1 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT + ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT + ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( 48 ) + - 28 AS col2 FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 9 * - 85 FROM tab1
----
-765
-765
-765

query I rowsort
SELECT + col0 * - ( - col0 ) FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL col1 * - 33 FROM tab1 WHERE + 55 BETWEEN - CAST( NULL AS SIGNED ) AND 56
----

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL col1 * - 33 FROM tab1 WHERE + 55 BETWEEN - CAST ( NULL AS INTEGER ) AND 56
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 56 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - 26 * COUNT( * ) + 8 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - 26 * COUNT ( * ) + 8 FROM tab1
----
-70

query I rowsort
SELECT + col2 * ( - 95 ) AS col2 FROM tab2 AS cor0
----
-2185
-3800
-5510

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * col0 ) BETWEEN NULL AND 98 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL 81 * - 31 + MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-2506

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL 81 * - 31 + MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-2506

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT col1 DIV 79 FROM tab0 AS cor0 WHERE - col0 * - col2 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2457
SELECT col1 / 79 FROM tab0 AS cor0 WHERE - col0 * - col2 IS NOT NULL
----
0
0
1

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab2 WHERE NOT col0 * - col0 BETWEEN - col0 AND - 63
----
-2116
-4096
-5625

query I rowsort
SELECT - 93 - 55 AS col1 FROM tab0
----
-148
-148
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT ALL + col1 + CAST( col2 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL + col1 + CAST ( col2 AS INTEGER ) FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT MAX( DISTINCT col1 ) * 59 + 93 FROM tab0
----
4872

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT MAX ( DISTINCT col1 ) * 59 + 93 FROM tab0
----
4872

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT ALL + 30 * col2 + 21 DIV col1 FROM tab0 AS cor0
----
1410
2991
301

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + 30 * col2 + 21 / col1 FROM tab0 AS cor0
----
1410
2991
301

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT + MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2465
SELECT + MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + 12 FROM tab1 AS cor0 WHERE NOT col0 + - col2 <> + 69 + col1 * col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL 18 * COUNT( * ) FROM tab0 AS cor0 WHERE 81 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL 18 * COUNT ( * ) FROM tab0 AS cor0 WHERE 81 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - MAX( ALL col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2469
SELECT - MAX ( ALL col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - + col2 * col0 - col0 * col2 FROM tab0 AS cor0
----
-1410
-1740
-19206

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2471
SELECT + + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab0 AS cor0 WHERE col0 * col1 + 1 * 67 < ( 71 )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL + SUM( col1 ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + SUM ( col1 ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( + col0 ) IN ( + col0 * + col0 + + col1 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + 32 - + - CAST( col2 AS SIGNED ) + + col1 AS col2 FROM tab0
----
132
160
63

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 32 - + - CAST ( col2 AS INTEGER ) + + col1 AS col2 FROM tab0
----
132
160
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT + COUNT( ALL + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2478
SELECT + COUNT ( ALL + - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL + SUM( col0 ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2479
SELECT ALL + SUM ( col0 ) col2 FROM tab1
----
227

query I rowsort
SELECT ALL + col0 * + + col0 AS col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2481
SELECT ALL * FROM tab2 WHERE col2 + 76 / ( CAST( NULL AS SIGNED ) + CAST( col1 AS SIGNED ) ) <> + 19
----

skipif mysql # not compatible
query III rowsort label-2481
SELECT ALL * FROM tab2 WHERE col2 + 76 / ( CAST ( NULL AS INTEGER ) + CAST ( col1 AS INTEGER ) ) <> + 19
----

query I rowsort
SELECT ALL col0 * + 13 AS col0 FROM tab2
----
598
832
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT ALL MIN( DISTINCT - + 6 ) DIV + 87 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL MIN ( DISTINCT - + 6 ) / + 87 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT col2 DIV - 58 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT col2 / - 58 col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + 36 - 34 * - col0 ) AND + col1 * col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2487
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 + CAST( + 81 + - 43 AS SIGNED ) <= + 42
----

skipif mysql # not compatible
query III rowsort label-2487
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 + CAST ( + 81 + - 43 AS INTEGER ) <= + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ( - MAX( ALL - 20 ) ) FROM tab2 AS cor0 WHERE NOT 17 + + col2 * - 3 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-2489
SELECT ( - MAX ( ALL - 20 ) ) FROM tab2 AS cor0 WHERE NOT 17 + + col2 * - 3 IS NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ( COUNT( * ) ) * 3 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( 62 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT ( COUNT ( * ) ) * 3 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( 62 + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2493
SELECT + COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT - SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2494
SELECT - SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 / col1 + 31 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT + col1 + + col1 NOT BETWEEN - col1 AND col0
----
14
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT ALL + COUNT( * ) AS col1, 65 col0 FROM tab1 AS cor0
----
3
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2498
SELECT ALL + COUNT ( * ) AS col1, 65 col0 FROM tab1 AS cor0
----
3
65

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = col1 * 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT MIN( DISTINCT - 35 ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2501
SELECT MIN ( DISTINCT - 35 ) FROM tab2 AS cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT + + CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2502
SELECT + + CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - + 56 * + 92 FROM tab0 AS cor0
----
-5152
-5152
-5152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2504
SELECT + - 9, SUM( ALL - ( 69 ) ) - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-2504
SELECT + - 9, SUM ( ALL - ( 69 ) ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-9
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 6 * - 19 * col1 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT DISTINCT CAST( - + col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL ( + 54 ) + col0 * + col1 FROM tab2
----
2400
4982
5079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col0 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = + ( 44 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( - 91 )
----

query I rowsort
SELECT ALL + 82 * - - 32 * + col0 + + 99 AS col1 FROM tab2
----
120803
168035
196899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + col0 col0 FROM tab1
----
142
176
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - ( - - col0 ) col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + col1 + + 87 AS col2 FROM tab1
----
101
134
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * col2 + + + col0 AND col1
----

skipif mysql # not compatible
query I rowsort label-2518
SELECT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * col2 + + + col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT - COUNT( * ) + + COUNT( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT - COUNT ( * ) + + COUNT ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * - - col2 + - 30 AS col0 FROM tab1 AS cor0
----
3451
4594
9186

query I rowsort
SELECT ALL - - ( 60 ) FROM tab2 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - 56 + SUM( - + col0 ) AS col1 FROM tab1 AS cor0
----
-283

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - 56 + SUM ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-283

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2523
SELECT ALL CAST( NULL AS DECIMAL ) / - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 21 AND ( + + col1 )
----

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL CAST ( NULL AS REAL ) / - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 21 AND ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - + COUNT( * ) FROM tab1 cor0 WHERE 63 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT - + COUNT ( * ) FROM tab1 cor0 WHERE 63 + + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + COUNT( * ) * + + 54 AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2525
SELECT + COUNT ( * ) * + + 54 AS col2 FROM tab1
----
162

query I rowsort
SELECT ALL col0 + 53 AS col1 FROM tab2
----
117
128
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2527
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 87 - + col2 FROM tab1 cor0
----
-9
19
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT + COUNT( * ) + 99 * + 59 FROM tab1 AS cor0
----
5844

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + COUNT ( * ) + 99 * + 59 FROM tab1 AS cor0
----
5844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 39 col2 FROM tab1 AS cor0
----
-44
-53
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + col0 + - col2 + + - col1 * + col0 * col0 AS col0 FROM tab1 AS cor0
----
-36099
-36459
-389184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 37 ) col0 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT COUNT( * ) * - - MIN( ALL - ( + 9 ) ) AS col0 FROM tab0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT COUNT ( * ) * - - MIN ( ALL - ( + 9 ) ) AS col0 FROM tab0 WHERE NOT NULL > ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 <> + 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT + col1 FROM tab1 WHERE NOT NULL = ( + - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2536
SELECT + col1 FROM tab1 WHERE NOT NULL = ( + - CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col1 * - + col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - MIN( DISTINCT - - col0 ) + 76 FROM tab1 WHERE NOT - 15 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT - MIN ( DISTINCT - - col0 ) + 76 FROM tab1 WHERE NOT - 15 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT COUNT( * ) * - COUNT( DISTINCT + col0 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2539
SELECT COUNT ( * ) * - COUNT ( DISTINCT + col0 ) AS col0 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + col2 AS col0 FROM tab2 AS cor0 WHERE 26 BETWEEN + col0 * + + 96 AND col1
----

query I rowsort
SELECT + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 61 NOT BETWEEN + 8 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col2 * + ( + col2 ) FROM tab0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= - col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT MAX( ALL col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2547
SELECT MAX ( ALL col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - COUNT( DISTINCT - 20 ) AS col0 FROM tab2 cor0 WHERE NOT 8 + col1 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2548
SELECT - COUNT ( DISTINCT - 20 ) AS col0 FROM tab2 cor0 WHERE NOT 8 + col1 IS NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT + + MAX( + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + + MAX ( + col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT - + COUNT ( * ) AS col0 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 tab2 AS cor0 WHERE ( NOT + ( 26 ) + - - 81 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - 81 AS col0 FROM tab1 AS cor0 WHERE NULL >= - col1
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + 83 = + col2 * + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT COUNT( * ) + + 57 AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2556
SELECT COUNT ( * ) + + 57 AS col2 FROM tab0
----
60

query I rowsort
SELECT ALL col0 * + - col2 + col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 / + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2559
SELECT - MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col1 FROM tab1
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT COUNT( * ) * 21 + + COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT COUNT ( * ) * 21 + + COUNT ( * ) FROM tab0
----
66

query I rowsort
SELECT col1 * - + col2 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 AS col1 FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT + 79 * - SUM( + col1 ) - + 15 + - + ( + 71 ) FROM tab1 WHERE NULL IS NULL
----
-5300

skipif mysql # not compatible
query I rowsort label-2564
SELECT + 79 * - SUM ( + col1 ) - + 15 + - + ( + 71 ) FROM tab1 WHERE NULL IS NULL
----
-5300

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT - COUNT( * ) + 85 AS col0 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2565
SELECT - COUNT ( * ) + 85 AS col0 FROM tab2 AS cor0
----
82

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL 73 + - col0 * + col0 * col0 FROM tab2
----
-262071
-421802
-97263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 - col1 col1 FROM tab1 AS cor0
----
39
72
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 80 + - 43 + - col2 col1 FROM tab2 AS cor0
----
-146
-163
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + SUM( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2571
SELECT + SUM ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - - 42 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT + COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT + COUNT ( + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT MAX( DISTINCT + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2574
SELECT MAX ( DISTINCT + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2575
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + ( - - col2 ) AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - col2 * + 81 AS col1 FROM tab1
----
-4779
-5508
-7776

query I rowsort
SELECT - + 80 AS col0 FROM tab1 WHERE NOT + + col0 IS NULL
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT MIN( col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2580
SELECT MIN ( col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT ( + ( + + col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL COUNT ( * ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 12 <> + + 96
----

query I rowsort
SELECT DISTINCT - ( + 3 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - + 97 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT + CAST( NULL AS SIGNED ) / - + SUM( + + CAST( NULL AS SIGNED ) ) * - AVG ( - - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT + CAST ( NULL AS INTEGER ) / - + SUM ( + + CAST ( NULL AS INTEGER ) ) * - AVG ( - - col1 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + COUNT( + + ( + ( + 77 ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( + + ( + ( + 77 ) ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2590
SELECT + MIN( - col0 ) * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT + MIN ( - col0 ) * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 = NULL
----

query I rowsort
SELECT + - col0 + 37 FROM tab0 AS cor0
----
-50
-60
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2593
SELECT ALL CAST( NULL AS SIGNED ) - - - col0 AS col0, - 66 AS col2 FROM tab2 AS cor0 WHERE NULL = ( 76 ) + + - 16
----

skipif mysql # not compatible
query II rowsort label-2593
SELECT ALL CAST ( NULL AS INTEGER ) - - - col0 AS col0, - 66 AS col2 FROM tab2 AS cor0 WHERE NULL = ( 76 ) + + - 16
----

query I rowsort
SELECT ALL + col0 * col0 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ( 82 ) AS col0 FROM tab1 cor0
----
82
82
82

query I rowsort
SELECT - + col1 AS col2 FROM tab0 cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL COUNT( * ) * + + 79 col1 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2597
SELECT ALL COUNT ( * ) * + + 79 col1 FROM tab2 AS cor0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-2598
SELECT - col2 DIV - 60 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2598
SELECT - col2 / - 60 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + 20 AS col0 FROM tab0 AS cor0
----
1740
1940
300

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT + ( col0 ) DIV + - col1 AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT + ( col0 ) / + - col1 AS col0 FROM tab2 cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT ALL + 82 DIV - 30 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + 82 / - 30 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT 39 DIV + 43 * col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT 39 / + 43 * col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 15 * col1 * + col1 FROM tab1 cor0
----
-2940
-33135
-375

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2605
SELECT ( - col0 ) * + - col2 AS col2, 8 DIV - - 14 * - CAST( col1 AS SIGNED ) FROM tab1
----
4896
0
5015
0
6188
0

skipif mysql # not compatible
query II rowsort label-2605
SELECT ( - col0 ) * + - col2 AS col2, 8 / - - 14 * - CAST ( col1 AS INTEGER ) FROM tab1
----
4896
0
5015
0
6188
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - ( - - col0 ) - - 91 + + col0 * - - col0 * + col0 + - col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT col0 DIV - ( - col2 ) + - + 27 FROM tab2
----
-25
-26
-26

skipif mysql # not compatible
query I rowsort label-2608
SELECT col0 / - ( - col2 ) + - + 27 FROM tab2
----
-25
-26
-26

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT - SUM( col1 ) + + - COUNT( * ) AS col0 FROM tab0
----
-106

skipif mysql # not compatible
query I rowsort label-2610
SELECT - SUM ( col1 ) + + - COUNT ( * ) AS col0 FROM tab0
----
-106

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT COUNT( - 39 ) * + AVG ( ALL + col0 ) col1 FROM tab2 AS cor0 WHERE ( 14 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2612
SELECT DISTINCT COUNT ( - 39 ) * + AVG ( ALL + col0 ) col1 FROM tab2 AS cor0 WHERE ( 14 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 * + - col2 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT ALL 12 + + COUNT( * ) AS col0, - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 - - ( + + col2 ) NOT IN ( + + col1 * - + col0 )
----
12
0

skipif mysql # not compatible
query II rowsort label-2614
SELECT ALL 12 + + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 - - ( + + col2 ) NOT IN ( + + col1 * - + col0 )
----
12
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2615
SELECT ALL - 52 AS col2, + CAST( NULL AS SIGNED ) + + col1 * col2 + - - col2 * 27 FROM tab0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-2615
SELECT ALL - 52 AS col2, + CAST ( NULL AS INTEGER ) + + col1 * col2 + - - col2 * 27 FROM tab0
----
-52
NULL
-52
NULL
-52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2616
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) * + col0 / + ( - 22 ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2616
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) * + col0 / + ( - 22 ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT - + MAX( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - + MAX ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 30 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT 33, - 20 AS col1 FROM tab1 AS cor0
----
33
-20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2624
SELECT + COUNT ( * ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + 81 * - - 14 FROM tab1 WHERE NOT + + col2 IS NULL
----
1134
1134
1134

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT + MIN( DISTINCT - 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-2629
SELECT + MIN ( DISTINCT - 15 ) FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT DISTINCT 1 + - - CAST( NULL AS SIGNED ) + + 48 + + 6 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT 1 + - - CAST ( NULL AS INTEGER ) + + 48 + + 6 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT DISTINCT col0 * + ( + - CAST( NULL AS SIGNED ) ) + + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT col0 * + ( + - CAST ( NULL AS INTEGER ) ) + + col2 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE - col1 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2632
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - + 62 * - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
558

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2633
SELECT ALL - + 62 * - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT COUNT( * ) - 6 + - + 0 * + - 83 + 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-2634
SELECT COUNT ( * ) - 6 + - + 0 * + - 83 + 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 1 + col2 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT DISTINCT + 82 * - - col2 + - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + 82 * - - col2 + - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab2 AS cor0 WHERE 92 * + ( + col0 ) NOT IN ( col1 )
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT + SUM( ALL + 56 ) col0 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2639
SELECT DISTINCT + SUM ( ALL + 56 ) col0 FROM tab2 AS cor0
----
168

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE 26 + + + col1 IS NULL
----

query I rowsort
SELECT - col1 * - 46 + col1 + + col2 FROM tab0 AS cor0
----
146
3854
997

query I rowsort
SELECT + 31 FROM tab1 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT - 71 * + MAX( + 10 ) AS col1 FROM tab2 AS cor0
----
-710

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - 71 * + MAX ( + 10 ) AS col1 FROM tab2 AS cor0
----
-710

query I rowsort
SELECT ALL + col0 + - ( + 10 ) - - 85 + 28 + + - col0 + - - col2 AS col1 FROM tab1
----
162
171
199

query I rowsort
SELECT ALL 75 AS col2 FROM tab0 WHERE + col2 - - 16 BETWEEN - col0 + - 14 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT + 42 * + - COUNT( * ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-2647
SELECT + 42 * + - COUNT ( * ) FROM tab2
----
-126

query I rowsort
SELECT DISTINCT - ( 22 ) FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + MAX( DISTINCT + ( + - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2649
SELECT + MAX ( DISTINCT + ( + - col1 ) ) FROM tab0
----
-1

query II rowsort
SELECT + 33 AS col2, col0 + - + col0 - - - col0 FROM tab1
----
33
-51
33
-85
33
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2651
SELECT - CAST( NULL AS SIGNED ) AS col1, + col0 * col1 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
query II rowsort label-2651
SELECT - CAST ( NULL AS INTEGER ) AS col1, + col0 * col1 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 53 + - 94 AS col2 FROM tab1
----
-41
-41
-41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT col0 FROM tab1 cor0 WHERE col2 * CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2655
SELECT col0 FROM tab1 cor0 WHERE col2 * CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - 37 * + COUNT( * ) + 32 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2656
SELECT - 37 * + COUNT ( * ) + 32 FROM tab2 AS cor0
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2657
SELECT + 32 + - - CAST( NULL AS DECIMAL ) / - col0 + col2 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT + 32 + - - CAST ( NULL AS REAL ) / - col0 + col2 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 78 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT COUNT( * ) + - - SUM( col2 ) + - 29 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2659
SELECT COUNT ( * ) + - - SUM ( col2 ) + - 29 FROM tab2 AS cor0
----
95

query I rowsort
SELECT + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT COUNT( ALL + + 87 ) * - 98 + - 60 + + 44 AS col2 FROM tab2 AS cor0
----
-310

skipif mysql # not compatible
query I rowsort label-2661
SELECT COUNT ( ALL + + 87 ) * - 98 + - 60 + + 44 AS col2 FROM tab2 AS cor0
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - - MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - - MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 75 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2664
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT + + COUNT( ALL - ( col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + + COUNT ( ALL - ( col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT + + MIN( - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2666
SELECT + + MIN ( - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT - SUM( DISTINCT - + col1 ) * 87 FROM tab1 AS cor0
----
5742

skipif mysql # not compatible
query I rowsort label-2667
SELECT - SUM ( DISTINCT - + col1 ) * 87 FROM tab1 AS cor0
----
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - COUNT( * ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2669
SELECT - COUNT ( * ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT CAST( - + col0 AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2670
SELECT CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL COUNT ( * ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT + COUNT( + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT + COUNT ( + col1 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 13 = NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 IN ( - 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( 83 ) ) * - + col2 * + + col2 col1 FROM tab2
----
-132800
-279212
-43907

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 66 / - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + 37 + + - 75 * ( COUNT( * ) ) FROM tab0 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-2678
SELECT + 37 + + - 75 * ( COUNT ( * ) ) FROM tab0 AS cor0
----
-188

query III rowsort
SELECT * FROM tab0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < - 61 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col1 FROM tab0
----
-91
-91
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - SUM( + col1 ) * - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-2683
SELECT - SUM ( + col1 ) * - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT - + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL > - + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + 33
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - 86 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL - COUNT( ALL + col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL - COUNT ( ALL + col0 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 5 + + 49 FROM tab0
----
54

query I rowsort
SELECT col1 + - 87 - - col2 + - 33 FROM tab2
----
-3
-46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL - 20 + + COUNT( * ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 20 + + COUNT ( * ) FROM tab0
----
-17

query I rowsort
SELECT ALL 3 + + col2 AS col1 FROM tab2
----
26
43
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - COUNT( * ) * + SUM( + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-468

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - COUNT ( * ) * + SUM ( + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-468

query II rowsort
SELECT + 30, col0 FROM tab2
----
30
46
30
64
30
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT DISTINCT CAST( NULL AS SIGNED ) + 97 AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 97 AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( + col1 )
----

query I rowsort
SELECT + col0 * + 68 FROM tab0
----
1020
5916
6596

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL IN ( + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 WHERE ( - col2 ) >= + - col1 + - col1 / + + col2
----
3

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 WHERE ( - col2 ) >= + - col1 + - col1 / + + col2
----
3

query II rowsort
SELECT + col1 * 90, col2 FROM tab2 AS cor0
----
4590
23
6030
58
6930
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT - + MIN( DISTINCT + + col0 ) * 89 FROM tab1 AS cor0
----
-4539

skipif mysql # not compatible
query I rowsort label-2702
SELECT - + MIN ( DISTINCT + + col0 ) * 89 FROM tab1 AS cor0
----
-4539

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col0 FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2703
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT MIN( DISTINCT + col0 ) * 10 FROM tab1
----
510

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT MIN ( DISTINCT + col0 ) * 10 FROM tab1
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT 63 + - + COUNT( * ) * - 54 + + COUNT( + 4 ) FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT 63 + - + COUNT ( * ) * - 54 + + COUNT ( + 4 ) FROM tab2
----
228

query I rowsort
SELECT col0 * 92 * 85 FROM tab1
----
398820
664700
711620

query I rowsort
SELECT 4 * - + ( + col2 ) FROM tab1
----
-236
-272
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT COUNT( * ) DIV 49 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT COUNT ( * ) / 49 AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 >= col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2710
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2710
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 25 + 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + + 89 + + ( col2 ) * - - 1 AS col1 FROM tab2 AS cor0
----
112
129
147

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + ( ( - col2 ) ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2714
SELECT * FROM tab0 AS cor0 WHERE + col1 - CAST( NULL AS SIGNED ) - + 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2714
SELECT * FROM tab0 AS cor0 WHERE + col1 - CAST ( NULL AS INTEGER ) - + 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 AS col2, col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 + + - ( + + col2 ) + - col0 AND 45
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2716
SELECT ALL - + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2716
SELECT ALL - + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-3
NULL

query I rowsort
SELECT ALL col1 - - - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT + 61 FROM tab1 cor0 WHERE + ( - - CAST( 19 AS SIGNED ) ) <> - - 40 + + col2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2718
SELECT + 61 FROM tab1 cor0 WHERE + ( - - CAST ( 19 AS INTEGER ) ) <> - - 40 + + col2
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - 53 * + 10 * + COUNT( * ) AS col2 FROM tab0
----
-1590

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - 53 * + 10 * + COUNT ( * ) AS col2 FROM tab0
----
-1590

query I rowsort
SELECT DISTINCT - 3 + - 24 * + col0 FROM tab2
----
-1107
-1539
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT 70 * COUNT( ALL + - col1 ) AS col1 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2721
SELECT 70 * COUNT ( ALL + - col1 ) AS col1 FROM tab2
----
210

query I rowsort
SELECT ALL - col2 * - - col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 52 >= + 34 - + 20 + + - col2
----
51
14
96
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col0 + - - col2 * 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 14 - 91 FROM tab1, tab2 AS cor0
----
9 values hashing to c0af328d38b82a55707e7cbb373586e8

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL SUM( col1 ) * - 99 FROM tab0 AS cor0
----
-10197

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL SUM ( col1 ) * - 99 FROM tab0 AS cor0
----
-10197

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2727
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 83 ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-83

query I rowsort
SELECT ALL - 72 AS col0 FROM tab2
----
-72
-72
-72

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab2
----
-13

query I rowsort
SELECT - col2 * + 77 + + col0 * - 26 AS col0 FROM tab2 cor0
----
-2967
-4744
-6416

query I rowsort
SELECT 89 FROM tab2 cor0 WHERE NOT ( - + col2 NOT BETWEEN - ( - - 89 ) + - col1 AND col2 * - + col0 )
----

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT + COUNT( - 35 ) * - ( + 41 ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT + COUNT ( - 35 ) * - ( + 41 ) FROM tab1 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - ( col0 ) * + + 83 FROM tab0 AS cor0
----
-1245
-7221
-8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2738
SELECT - + CAST( - CAST( - + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2738
SELECT - + CAST ( - CAST ( - + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 72 FROM tab0 cor0
----
72
72
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2740
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab1 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2740
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL
3

query I rowsort
SELECT ALL + col2 * - + col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + + 11 AS col2 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2743
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 53 * col1 AS col1 FROM tab0 AS cor0
----
-1113
-4293
-53

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2746
SELECT * FROM tab1 WHERE NOT + - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2746
SELECT * FROM tab1 WHERE NOT + - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2747
SELECT ALL - 28, CAST( 79 AS SIGNED ) + + col2 AS col0 FROM tab2
----
-28
102
-28
119
-28
137

skipif mysql # not compatible
query II rowsort label-2747
SELECT ALL - 28, CAST ( 79 AS INTEGER ) + + col2 AS col0 FROM tab2
----
-28
102
-28
119
-28
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT 46 * + ( + COUNT( * ) ) + 66 AS col0 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT 46 * + ( + COUNT ( * ) ) + 66 AS col0 FROM tab1
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT ALL col2 * + CAST( - + col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL col2 * + CAST ( - + col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE - col1 + - col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col0 + col1 + col1 * + col2 + + col1 AS col0 FROM tab0
----
198
339
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + 49 - + COUNT( * ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 49 - + COUNT ( * ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 77 * 95 IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 17 + + - 88 AS col0 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT - ( 31 ) + - MAX( DISTINCT 37 ) AS col2 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - ( 31 ) + - MAX ( DISTINCT 37 ) AS col2 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT + + col0 * + + 65 + + col1 AS col1 FROM tab1 AS cor0
----
3329
5530
5962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT - CAST( NULL AS SIGNED ) + - 34 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT - CAST ( NULL AS INTEGER ) + - 34 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 74 + col2 AS col2 FROM tab0
----
-27
-64
25

query I rowsort
SELECT ALL ( - - 34 ) FROM tab1 WHERE NOT ( ( + ( - col2 ) IS NOT NULL ) )
----

query I rowsort
SELECT 39 * + 14 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 85624eb540d3b75807a94ffde3664ded

query III rowsort
SELECT * FROM tab1 WHERE + 10 IS NULL
----

query I rowsort
SELECT + 53 - + col1 FROM tab2 AS cor0
----
-14
-24
2

query I rowsort
SELECT DISTINCT + 55 * - 81 * col2 * - ( 52 ) - - col1 FROM tab2 AS cor0
----
13436347
5328231
9266477

query I rowsort
SELECT 10 - - - 57 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2765
SELECT DISTINCT + CAST( + - 35 AS SIGNED ) AS col1, col0 + col0 * + + col0 + - - col1 * col0 AS col1 FROM tab2 AS cor0
----
-35
10725
-35
4508
-35
9088

skipif mysql # not compatible
query II rowsort label-2765
SELECT DISTINCT + CAST ( + - 35 AS INTEGER ) AS col1, col0 + col0 * + + col0 + - - col1 * col0 AS col1 FROM tab2 AS cor0
----
-35
10725
-35
4508
-35
9088

query I rowsort
SELECT + col1 + + 52 AS col0 FROM tab0 AS cor0
----
133
53
73

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 29 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT col0 * + ( - - col1 ) FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - COUNT( DISTINCT - + 52 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2770
SELECT - COUNT ( DISTINCT - + 52 ) AS col0 FROM tab0
----
-1

query II rowsort
SELECT - col2, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab1
----
3

query II rowsort
SELECT col0 * col2 * + - 96, + 66 * + 10 AS col2 FROM tab1
----
-470016
660
-481440
660
-594048
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col0 FROM tab2
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT DISTINCT CAST( + - 58 AS SIGNED ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT CAST ( + - 58 AS INTEGER ) FROM tab0 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2777
SELECT SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 10 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - + col2 * col1 BETWEEN + - col2 AND - + col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT - 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 57 ) FROM tab1
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + MAX( - - col1 ) * + 98 AS col0 FROM tab2
----
7546

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + MAX ( - - col1 ) * + 98 AS col0 FROM tab2
----
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT - + 79 * + 11 + 87 - + - ( - - COUNT( * ) ) * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-863

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - + 79 * + 11 + 87 - + - ( - - COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - MAX( + ( + + 89 ) ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-2786
SELECT - MAX ( + ( + + 89 ) ) FROM tab1
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 * + - col2 col2, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT COUNT( * ) + 87 - + + 87 * + 24 FROM tab2 AS cor0
----
-1998

skipif mysql # not compatible
query I rowsort label-2789
SELECT COUNT ( * ) + 87 - + + 87 * + 24 FROM tab2 AS cor0
----
-1998

query I rowsort
SELECT DISTINCT + 10 + + - col2 AS col0 FROM tab0
----
-37
-89
0

query I rowsort
SELECT ( + - 90 ) + col2 * + col2 + - - 81 AS col2 FROM tab0
----
2200
91
9792

query I rowsort
SELECT + col1 + + + col2 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT + 24 * - ( + MIN( + + col1 ) ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + 24 * - ( + MIN ( + + col1 ) ) FROM tab1
----
-120

query III rowsort
SELECT * FROM tab0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab1
----
15
15
15

query I rowsort
SELECT ALL - col2 * + - 12 AS col0 FROM tab0
----
1188
120
564

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT ALL - col1 + + + col1 DIV - 17 AS col0 FROM tab2
----
-54
-70
-81

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - col1 + + + col1 / - 17 AS col0 FROM tab2
----
-54
-70
-81

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT - + 94 * + col1 * col0 * - 69 IS NULL
----
10
47
99

query II rowsort
SELECT + 22, 52 AS col1 FROM tab2
----
22
52
22
52
22
52

query I rowsort
SELECT DISTINCT + col0 * + 82 - - - ( - + col1 ) AS col0 FROM tab1 cor0
----
4196
6975
7509

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 * col2 + - col2 IN ( - 35, - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT DISTINCT col0 DIV + + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT col0 / + + col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL COUNT( * ) + + 32 col0 FROM tab0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2803
SELECT ALL COUNT ( * ) + + 32 col0 FROM tab0
----
35

query I rowsort
SELECT col0 + col2 + col2 AS col0 FROM tab1
----
203
227
243

query I rowsort
SELECT DISTINCT + ( - + 14 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-14

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col1 * ( + + col1 ) * + col1 + - - 77 FROM tab2
----
132728
300840
456610

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT + ( + + 29 ) + + COUNT( * ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT + ( + + 29 ) + + COUNT ( * ) AS col1 FROM tab2
----
32

query I rowsort
SELECT ALL - - 67 + - col1 FROM tab1 cor0
----
20
53
62

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2812
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) BETWEEN NULL AND + - 17
----

skipif mysql # not compatible
query III rowsort label-2812
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2813
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
196
62
97

query II rowsort
SELECT DISTINCT + 10, ( + col2 ) FROM tab1 AS cor0
----
10
59
10
68
10
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, 75 FROM tab0 AS cor0
----
-1
75
-21
75
-81
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT ALL + 7 DIV col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL + 7 / col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT DISTINCT + 91 DIV col0 DIV + + col2 * - - 82 * - + 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT + 91 / col0 / + + col2 * - - 82 * - + 97 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT COUNT( * ) * - 44 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-2819
SELECT COUNT ( * ) * - 44 FROM tab2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT + MIN( + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + MIN ( + col0 ) FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 15 / - + col2 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 49 + + col1 + 99 + + 23 * - col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - + COUNT( DISTINCT + 87 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2824
SELECT - + COUNT ( DISTINCT + 87 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query II rowsort
SELECT ALL - 64, ( - 47 ) + + 58 - - + col1 AS col1 FROM tab0
----
-64
12
-64
32
-64
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - col2 + col2 AND - + col2 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col0 * + - 50
----

query I rowsort
SELECT col1 * 59 FROM tab2 AS cor0
----
3009
3953
4543

query II rowsort
SELECT ALL - col1 AS col2, col1 * - 72 FROM tab2 AS cor0
----
-51
-3672
-67
-4824
-77
-5544

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 BETWEEN 5 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT + CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT + CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 75 AS col2, 6 * - 79 AS col2 FROM tab1 cor0
----
-75
-474
-75
-474
-75
-474

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + MIN( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2833
SELECT + MIN ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2834
SELECT + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2835
SELECT + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 17 FROM tab2 AS cor0
----
-17

query II rowsort
SELECT + col1 AS col1, ( - + ( - + col2 ) ) FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT COUNT( + 11 ) AS col1 FROM tab1 WHERE - 64 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT COUNT ( + 11 ) AS col1 FROM tab1 WHERE - 64 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2839
SELECT 7 DIV COUNT( * ) AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-2839
SELECT 7 / COUNT ( * ) AS col1 FROM tab2
----
2

query I rowsort
SELECT + col0 + - 85 * + 46 AS col2 FROM tab2
----
-3835
-3846
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT DISTINCT + 48 + - + COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT + 48 + - + COUNT ( * ) FROM tab2
----
45

query I rowsort
SELECT ALL - 0 * col2 + + 30 + col0 * col0 * + col1 AS col2 FROM tab2
----
107946
315422
376905

query I rowsort
SELECT DISTINCT + col2 + + ( + 82 ) AS col0 FROM tab1
----
141
150
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT - - col2 + 46 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - - col2 + 46 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 + 88 AS col2 FROM tab0 AS cor0
----
-9
1
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2847
SELECT * FROM tab2 AS cor0 WHERE + col2 * - CAST( - col0 AS SIGNED ) NOT BETWEEN - + col0 AND + - 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2847
SELECT * FROM tab2 AS cor0 WHERE + col2 * - CAST ( - col0 AS INTEGER ) NOT BETWEEN - + col0 AND + - 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT COUNT( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT COUNT ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 93 IS NOT NULL
----

query I rowsort
SELECT 83 - - col0 FROM tab2
----
129
147
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT MIN( ALL - + col2 ) - - CAST( + 89 AS SIGNED ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-2852
SELECT MIN ( ALL - + col2 ) - - CAST ( + 89 AS INTEGER ) FROM tab2
----
31

query II rowsort
SELECT ( - col1 ) - + col1, col2 * col1 AS col0 FROM tab2 AS cor0
----
-102
1173
-134
3886
-154
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT DISTINCT - 53 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT - 53 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 23 * + col2 * col0 + col2 * col0 + - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - SUM( col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - + ( + ( col2 ) ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL + - COUNT( + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL + - COUNT ( + - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2860
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST( - - col0 AS SIGNED ) * + 97 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2860
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST ( - - col0 AS INTEGER ) * + 97 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL - SUM( DISTINCT + col0 ) * - - 19 AS col2 FROM tab0
----
-3781

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL - SUM ( DISTINCT + col0 ) * - - 19 AS col2 FROM tab0
----
-3781

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - 5 * + + SUM( + ( - 83 ) ) AS col1 FROM tab2
----
1245

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 5 * + + SUM ( + ( - 83 ) ) AS col1 FROM tab2
----
1245

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT + COUNT( * ) * - COUNT( * ) col2 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2863
SELECT + COUNT ( * ) * - COUNT ( * ) col2 FROM tab0
----
-9

query I rowsort
SELECT + col1 * 41 AS col0 FROM tab2
----
2091
2747
3157

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT 39 DIV + + 90 * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT 39 / + + 90 * col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + col2 + + ( + - 73 ) * - + col0 AS col0 FROM tab0
----
1157
6448
7277

query I rowsort
SELECT DISTINCT ( 82 ) + + - col2 AS col1 FROM tab2
----
24
42
59

query II rowsort
SELECT 34 AS col1, 25 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to db365f51ceba0880adbcc4e0e1490df9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2870
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col2 + + - CAST( 80 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2870
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col2 + + - CAST ( 80 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 - 76 - - 74 col0 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL + MAX( DISTINCT + ( + col0 ) ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + MAX ( DISTINCT + ( + col0 ) ) FROM tab2 cor0
----
75

query II rowsort
SELECT DISTINCT 66 * + col2 AS col0, col1 * - col2 AS col1 FROM tab0 cor0
----
3102
-3807
6534
-99
660
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL SUM( ALL - 8 ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL SUM ( ALL - 8 ) AS col0 FROM tab2 AS cor0
----
-24

query II rowsort
SELECT + + 50 + - - col0 + - 76 AS col0, + ( - - col1 ) AS col0 FROM tab1 AS cor0
----
25
14
59
5
65
47

query II rowsort
SELECT - - col1 + - - col0 AS col0, - col1 FROM tab1 cor0
----
138
-47
65
-14
90
-5

query II rowsort
SELECT + - col2 * - 68 * + + 9 * + col2 + - + col2, col1 FROM tab2 AS cor0
----
2058710
67
323725
51
979160
77

query I rowsort
SELECT DISTINCT col2 + + 48 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - col1 <> 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col2, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 5 col1 FROM tab2
----
-255
-335
-385

query I rowsort
SELECT DISTINCT ( - 60 ) FROM tab2
----
-60

query I rowsort
SELECT ALL 10 + - col1 AS col1 FROM tab1
----
-37
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL + MIN( + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + MIN ( + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT SUM( DISTINCT col2 ) FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT SUM ( DISTINCT col2 ) FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 - - - 52 FROM tab2 AS cor0
----
-116
-127
-98

query II rowsort
SELECT ALL + - 6 AS col1, 94 * col0 AS col2 FROM tab2 cor0
----
-6
4324
-6
6016
-6
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT 8 + - MAX( DISTINCT ( - 74 ) ) AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT 8 + - MAX ( DISTINCT ( - 74 ) ) AS col2 FROM tab2
----
82

query I rowsort
SELECT - + ( - 66 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + + 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2892
SELECT + ( col1 ), + col1 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - ( + - col1 ) AS col2, col2 * + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to e826d82495162893c4b032160010dc9b

skipif mysql # not compatible
query III rowsort label-2892
SELECT + ( col1 ), + col1 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( + - col1 ) AS col2, col2 * + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to e826d82495162893c4b032160010dc9b

query I rowsort
SELECT + + 21 AS col2 FROM tab1 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT SUM( + - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT SUM ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 62 * col2 NOT BETWEEN NULL AND + 91
----
0

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 62 * col2 NOT BETWEEN NULL AND + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT + 22 * + + MIN( ALL - + 94 ) AS col0 FROM tab2 AS cor0
----
-2068

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + 22 * + + MIN ( ALL - + 94 ) AS col0 FROM tab2 AS cor0
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT + - ( + MIN( col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2898
SELECT + - ( + MIN ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - 53 * - col2 AS col2 FROM tab2 AS cor0
----
1219
2120
3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT - CAST( - col2 AS SIGNED ) * - col1 + 55 FROM tab1
----
-1289
-240
-3141

skipif mysql # not compatible
query I rowsort label-2900
SELECT - CAST ( - col2 AS INTEGER ) * - col1 + 55 FROM tab1
----
-1289
-240
-3141

query I rowsort
SELECT ALL + 81 * - 16 FROM tab2
----
-1296
-1296
-1296

query I rowsort
SELECT - col1 * - + 80 * - col0 FROM tab2
----
-187680
-394240
-402000

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT NULL <> - col2
----

query I rowsort
SELECT + col1 * col0 * - col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT ALL - col0 * + 79 * col0 * + - 33 AS col2 FROM tab1
----
18835575
21588567
6780807

query I rowsort
SELECT ALL - 12 * - ( col0 ) * + col1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT - MIN( ALL col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - MIN ( ALL col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT DISTINCT CAST( + + 36 AS SIGNED ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT CAST ( + + 36 AS INTEGER ) FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT COUNT( * ) * + 35 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT COUNT ( * ) * + 35 FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL - COUNT( * ) * - + 6 AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - COUNT ( * ) * - + 6 AS col1 FROM tab2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT DISTINCT + 86 DIV - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + 86 / - col1 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT + MIN( DISTINCT - ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT + MIN ( DISTINCT - ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2914
SELECT + col0 + + - 39 DIV + col2 col2, ( col0 ) DIV - col0 + 5 * - 97 + + 40 AS col2 FROM tab1 AS cor0
----
51
-446
85
-446
91
-446

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2914
SELECT + col0 + + - 39 / + col2 col2, ( col0 ) / - col0 + 5 * - 97 + + 40 AS col2 FROM tab1 AS cor0
----
51
-446
85
-446
91
-446

query I rowsort
SELECT + col0 + 68 FROM tab1 cor0
----
119
153
159

query I rowsort
SELECT + 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query II rowsort
SELECT DISTINCT col0 AS col2, + 80 * - - 83 AS col2 FROM tab1
----
51
6640
85
6640
91
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab1
----
0

query II rowsort
SELECT col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - + col0 * + 64 + - - 92 + - 52 FROM tab2 AS cor0 WHERE NULL < 11
----

query I rowsort
SELECT 46 * + + col1 AS col2 FROM tab1 AS cor0
----
2162
230
644

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT - - 29 + + + col1 AS col2 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT - ( + 7 ) + + - col0 FROM tab2
----
-53
-71
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2926
SELECT DISTINCT col0 + col0 + - col2 + - CAST( NULL AS DECIMAL ) + + 86 * + 76 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT col0 + col0 + - col2 + - CAST ( NULL AS REAL ) + + 86 * + 76 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 + - 52 AS col2 FROM tab0
----
-31
-51
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + COUNT( * ) col1 FROM tab1 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-2929
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 86, - ( 40 ) col0 FROM tab2
----
-86
-40

query I rowsort
SELECT ALL - 27 AS col2 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT ALL - 34 AS col2 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT DISTINCT col2 * + col2 * - 49 * col0 FROM tab2 AS cor0
----
-1192366
-12362700
-5017600

query II rowsort
SELECT DISTINCT - col1 AS col2, + 57 AS col1 FROM tab0 AS cor0
----
-1
57
-21
57
-81
57

query I rowsort
SELECT DISTINCT - 67 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT - SUM( - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2936
SELECT - SUM ( - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT - ( + + COUNT( - col0 ) ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2937
SELECT DISTINCT - ( + + COUNT ( - col0 ) ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - + 45 AS col1 FROM tab2 AS cor0
----
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 54 AS col1 FROM tab2
----
1242
2160
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT MIN( ALL - - 98 ) * - COUNT( * ) AS col2 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-2941
SELECT MIN ( ALL - - 98 ) * - COUNT ( * ) AS col2 FROM tab0
----
-294

query I rowsort
SELECT ALL 12 * - + col0 FROM tab1
----
-1020
-1092
-612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 28 * 52 col2 FROM tab2
----
-33488
-58240
-84448

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 - + col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL + ( - - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + ( - - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT - COUNT( * ) + + + 54 AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT - COUNT ( * ) + + + 54 AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - COUNT( * ) + + 62 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-2949
SELECT - COUNT ( * ) + + 62 FROM tab0
----
59

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT DISTINCT + MAX( + + 41 ) * - + COUNT( * ) + - CAST( NULL AS SIGNED ) - + 18 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + MAX ( + + 41 ) * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + 18 FROM tab1
----
NULL

query I rowsort
SELECT - col1 + + - col1 AS col0 FROM tab1
----
-10
-28
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 73 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query II rowsort
SELECT DISTINCT 64 AS col2, - ( 26 ) AS col0 FROM tab0 AS cor0
----
64
-26

query I rowsort
SELECT 20 * + - col1 FROM tab1
----
-100
-280
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL MIN( DISTINCT 98 ) + - + 38 - - 8 + + + 48 FROM tab2 WHERE NOT NULL IS NOT NULL
----
116

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL MIN ( DISTINCT 98 ) + - + 38 - - 8 + + + 48 FROM tab2 WHERE NOT NULL IS NOT NULL
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT ALL - 19 DIV + col0 * 72 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - 19 / + col0 * 72 FROM tab2
----
0
0
0

query II rowsort
SELECT 75, col2 FROM tab1
----
75
59
75
68
75
96

query I rowsort
SELECT ALL + 27 AS col2 FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT DISTINCT + + MIN( 39 ) - - - 97 AS col0 FROM tab0 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + + MIN ( 39 ) - - - 97 AS col0 FROM tab0 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL MAX( ALL - 70 ) AS col0 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL MAX ( ALL - 70 ) AS col0 FROM tab0 cor0
----
-70

query II rowsort
SELECT - + 20 + - - 54, - col1 + + + 66 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT - + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + 76 * + COUNT( * ) FROM tab1 cor0
----
228

skipif mysql # not compatible
query I rowsort label-2966
SELECT + 76 * + COUNT ( * ) FROM tab1 cor0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2967
SELECT ALL * FROM tab0 WHERE - ( - - CAST( NULL AS SIGNED ) ) < 47
----

skipif mysql # not compatible
query III rowsort label-2967
SELECT ALL * FROM tab0 WHERE - ( - - CAST ( NULL AS INTEGER ) ) < 47
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 68
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2969
SELECT ALL - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT + COUNT( DISTINCT + 94 ) DIV + - COUNT( * ) * - + 62 * + + COUNT( * ) * - COUNT( * ) + + 45 + + 33 + - - ( - - ( - COUNT( - + col1 ) ) ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2971
SELECT + COUNT ( DISTINCT + 94 ) / + - COUNT ( * ) * - + 62 * + + COUNT ( * ) * - COUNT ( * ) + + 45 + + 33 + - - ( - - ( - COUNT ( - + col1 ) ) ) FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2972
SELECT ALL + CAST( - - col1 AS SIGNED ), + col0 - - - col2 AS col1 FROM tab1 AS cor0
----
14
-45
47
23
5
26

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL + CAST ( - - col1 AS INTEGER ), + col0 - - - col2 AS col1 FROM tab1 AS cor0
----
14
-45
47
23
5
26

query I rowsort
SELECT + col1 * - col1 + + col1 FROM tab2 cor0
----
-2550
-4422
-5852

query II rowsort
SELECT ( + col0 ), + 32 FROM tab1 AS cor0
----
51
32
85
32
91
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT - + COUNT( * ) * + 75 AS col2 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT - + COUNT ( * ) * + 75 AS col2 FROM tab0 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 21 * - col2 + col0 FROM tab2 AS cor0
----
-1143
-437
-776

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 AS cor0 WHERE col0 - + 91 <= col0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * col1 * col1 col1 FROM tab1
----
1025
8036
90569

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT - COUNT( * ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2981
SELECT - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT MIN( + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-2982
SELECT MIN ( + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
5

query II rowsort
SELECT 39 * + - ( + col0 ), + col1 FROM tab1
----
-1989
14
-3315
5
-3549
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT ALL 94 / + + col0 + - + col1 + + CAST( NULL AS SIGNED ) * + 18 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL 94 / + + col0 + - + col1 + + CAST ( NULL AS INTEGER ) * + 18 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 FROM tab1 cor0 WHERE NOT + 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2986
SELECT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - col1 * + 81 FROM tab0 cor0
----
-1701
-6561
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2988
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) * + 38 FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-2988
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * + 38 FROM tab0 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + SUM( + 84 ) AS col1 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-2989
SELECT + SUM ( + 84 ) AS col1 FROM tab1
----
252

query I rowsort
SELECT ( + col1 ) * col0 - - col2 * - 83 AS col1 FROM tab0
----
-2686
-8120
997

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL COUNT( + 20 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL COUNT ( + 20 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ( - COUNT( ALL 57 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2992
SELECT ( - COUNT ( ALL 57 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL + col0 * col2 + + 33 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 4 * + 90 AS col1 FROM tab0 WHERE NOT 41 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ( CAST( col0 AS SIGNED ) ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2995
SELECT ( CAST ( col0 AS INTEGER ) ) FROM tab2
----
46
64
75

query I rowsort
SELECT ALL - 18 * + col1 AS col0 FROM tab0
----
-1458
-18
-378

query I rowsort
SELECT ALL - 94 * + 22 AS col1 FROM tab2
----
-2068
-2068
-2068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT DISTINCT col2 - - 67 * + 32 AS col2 FROM tab1 WHERE NOT ( - col1 * 95 ) NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT col2 - - 67 * + 32 AS col2 FROM tab1 WHERE NOT ( - col1 * 95 ) NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2999
SELECT ALL ( 32 ) DIV - 22 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL ( 32 ) / - 22 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 * + 69 FROM tab2
----
3519
4623
5313

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT ALL - 66 DIV + col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - 66 / + col0 FROM tab0
----
-4
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT col2 DIV + 62 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3002
SELECT col2 / + 62 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 * 39 - col1 AS col2 FROM tab0
----
3372
3782
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3004
SELECT COUNT( * ) DIV 77 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3004
SELECT COUNT ( * ) / 77 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT 4 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT 4 / col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT COUNT( * ) * 83 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3007
SELECT COUNT ( * ) * 83 FROM tab1
----
249

query I rowsort
SELECT ALL ( - col2 ) + col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL + 15 * - col2 FROM tab2
----
-345
-600
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT + COUNT( * ) * - CAST( COUNT( * ) * + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3011
SELECT + COUNT ( * ) * - CAST ( COUNT ( * ) * + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT - 32 + - 11 AS col2 FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + ( + COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3013
SELECT + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT - 13 * + col1 AS col1 FROM tab2
----
-1001
-663
-871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT - CAST( - col1 AS SIGNED ) * col2 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3016
SELECT - CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * col0 ) >= 88 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 82 - + col2 FROM tab1 WHERE NOT ( - 68 ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 / + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT DISTINCT ( col0 ) * + ( + col2 DIV 30 ) AS col1 FROM tab1 AS cor0
----
153
182
85

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT ( col0 ) * + ( + col2 / 30 ) AS col1 FROM tab1 AS cor0
----
153
182
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT ALL 13 DIV 97 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL 13 / 97 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 41 ) AS col0 FROM tab1 AS cor0
----
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT SUM( DISTINCT 39 ) col2 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3024
SELECT SUM ( DISTINCT 39 ) col2 FROM tab2 AS cor0
----
39

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - 20 ) FROM tab2
----
-20

query I rowsort
SELECT ( - col2 ) * col0 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3028
SELECT * FROM tab0 AS cor0 WHERE NOT ( 35 ) BETWEEN NULL AND ( - 43 * - ( col1 ) + 59 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3028
SELECT * FROM tab0 AS cor0 WHERE NOT ( 35 ) BETWEEN NULL AND ( - 43 * - ( col1 ) + 59 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT SUM( - 38 ) DIV 77 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3029
SELECT SUM ( - 38 ) / 77 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 60 / 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT + MIN( DISTINCT ( + ( 69 ) ) ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT + MIN ( DISTINCT ( + ( 69 ) ) ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 77 + + col0 FROM tab1 AS cor0
----
-26
14
8

query I rowsort
SELECT ALL 22 + col2 * col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col1 FROM tab0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE + col2 * 73 >= col2
----
3

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE + col2 * 73 >= col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL + COUNT( DISTINCT - col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3038
SELECT ALL + COUNT ( DISTINCT - col0 ) col0 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 + col1 * - col1 AS col0 FROM tab0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT MIN( + col0 ) * + 31 AS col2 FROM tab2
----
1426

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT MIN ( + col0 ) * + 31 AS col2 FROM tab2
----
1426

query I rowsort
SELECT ALL col0 * col0 FROM tab0 WHERE NULL = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - 52 * col1 col2 FROM tab2 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT + ( + + COUNT( * ) ) * 36 AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-3043
SELECT + ( + + COUNT ( * ) ) * 36 AS col0 FROM tab0
----
108

query I rowsort
SELECT DISTINCT + 83 + + col2 AS col0 FROM tab2
----
106
123
141

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 - + 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - 3 + - col1 )
----

query I rowsort
SELECT DISTINCT + + col0 * + col0 * + 75 + col2 FROM tab0 cor0
----
16922
567685
705774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT + COUNT( * ) DIV + 13 FROM tab1 WHERE NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-3048
SELECT + COUNT ( * ) / + 13 FROM tab1 WHERE NULL >= col1
----
0

query I rowsort
SELECT ALL - 32 FROM tab2, tab1 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT - MIN( + col1 ) FROM tab1 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT - MIN ( + col1 ) FROM tab1 WHERE NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT ALL 91 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL 91 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT + 86 * + MAX( col1 ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT + 86 * + MAX ( col1 ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + 69 * + 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 6 + 96 AND - 13 + col2 * col0
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3056
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( col1 + + col2 ) AND col2 + CAST( NULL AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3056
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( col1 + + col2 ) AND col2 + CAST ( NULL AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + ( - + col2 ) ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + 51 IS NULL
----

query II rowsort
SELECT + - col2 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT + col2 * + ( CAST( - 10 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-100
-470
-990

skipif mysql # not compatible
query I rowsort label-3060
SELECT + col2 * + ( CAST ( - 10 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - MIN( + - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3061
SELECT - MIN ( + - col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - 37 - 89 FROM tab0
----
-126
-126
-126

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < ( col1 * + col1 + - 2 )
----

query I rowsort
SELECT + ( 17 ) * col2 FROM tab1
----
1003
1156
1632

onlyif mysql # DIV for integer division: 
query II rowsort label-3065
SELECT - 4 DIV + - 8 col2, + col1 DIV + col2 FROM tab1
----
0
0
0
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3065
SELECT - 4 / + - 8 col2, + col1 / + col2 FROM tab1
----
0
0
0
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - SUM( DISTINCT - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3066
SELECT - SUM ( DISTINCT - col2 ) AS col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL + ( MIN( + + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + ( MIN ( + + col0 ) ) FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL COUNT( * ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3069
SELECT ALL COUNT ( * ) col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3071
SELECT DISTINCT + COUNT( * ) DIV + 14 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3071
SELECT DISTINCT + COUNT ( * ) / + 14 col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) + - 11 col0 FROM tab0
----
-1
36
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 30 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 7 ) col0 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT ALL ( + 93 ) DIV - + 99 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL ( + 93 ) / - + 99 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + col1 - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( 41 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 + col1 + 8 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * + col2 col1 FROM tab2 AS cor0
----
-2001
-3480
-5046

query I rowsort
SELECT ALL - 81 * + + ( + - col2 ) + - col2 FROM tab1 AS cor0 WHERE NOT + 67 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col1 col2 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT col2 + 35 * + col1 FROM tab0
----
134
2882
745

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT - COUNT( DISTINCT + col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3086
SELECT - COUNT ( DISTINCT + col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT - COUNT( * ) * 85 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-3087
SELECT - COUNT ( * ) * 85 FROM tab1
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + COUNT( * ) + + MIN( - col0 ) * - 87 + + COUNT( * ) + + 97 FROM tab0
----
8542

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + COUNT ( * ) + + MIN ( - col0 ) * - 87 + + COUNT ( * ) + + 97 FROM tab0
----
8542

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( col2 + + + 14 * col0 + + - col1 ) AND 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL - COUNT( * ) + 94 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - COUNT ( * ) + 94 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 90 ) col0 FROM tab0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE + col0 IN ( + - 57 + - - col1 + - col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT 80 + COUNT( * ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT 80 + COUNT ( * ) FROM tab0
----
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + ( - MIN( DISTINCT - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + ( - MIN ( DISTINCT - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT DISTINCT - ( + - col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT 7 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT - ( + - col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT 7 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( 3 ) * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT 1 + SUM( + ( + + col1 ) ) * 76 FROM tab1
----
5017

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT 1 + SUM ( + ( + + col1 ) ) * 76 FROM tab1
----
5017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT - CAST( - - 82 AS SIGNED ) - + MAX( 93 ) FROM tab0 cor0
----
-175

skipif mysql # not compatible
query I rowsort label-3102
SELECT - CAST ( - - 82 AS INTEGER ) - + MAX ( 93 ) FROM tab0 cor0
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT DISTINCT col2 * - - col0 * + - 33 * col0 col1 FROM tab0 AS cor0 WHERE + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3103
SELECT DISTINCT col2 * - - col0 * + - 33 * col0 col1 FROM tab0 AS cor0 WHERE + CAST ( col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + + 69 FROM tab1 AS cor0 WHERE + col0 / + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col2, - col2 + + 36 col2 FROM tab0 AS cor0
----
100
26
2209
-11
9801
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) = ( + - 59 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT - MAX( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + - col0 - + col0 AS col1 FROM tab2 WHERE NOT NULL >= + 36
----

query I rowsort
SELECT DISTINCT + 16 * 37 AS col2 FROM tab2
----
592

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT COUNT( * ) * - - 30 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-3112
SELECT COUNT ( * ) * - - 30 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT MIN( DISTINCT col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3113
SELECT MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * - col0 + - + 47 - - col2 - col1 + col2 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab0 WHERE NOT NULL IN ( + 35 * + 2 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL COUNT( col1 ) * - CAST( NULL AS SIGNED ) * + COUNT( * ) * + - COUNT( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL COUNT ( col1 ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + + col0 FROM tab0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT col2 DIV ( - col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT col2 / ( - col1 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT MAX( ALL col2 ) AS col0 FROM tab0 WHERE NOT NULL <> + col0 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT MAX ( ALL col2 ) AS col0 FROM tab0 WHERE NOT NULL <> + col0 + - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL CAST( - - 20 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL CAST ( - - 20 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 10 AS col0, + 69 col2 FROM tab0 AS cor0
----
10
69

query II rowsort
SELECT DISTINCT col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT + SUM( 82 ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3124
SELECT + SUM ( 82 ) FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3125
SELECT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE NOT + - col1 NOT BETWEEN + col1 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3128
SELECT ALL col2 DIV + - CAST( - col2 AS SIGNED ) col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3128
SELECT ALL col2 / + - CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - col1 * - + 86 AS col2 FROM tab1
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT - SUM( ALL - + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT - SUM ( ALL - + col0 ) FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT - col2 + + CAST( - 84 AS SIGNED ) FROM tab2 AS cor0
----
-107
-124
-142

skipif mysql # not compatible
query I rowsort label-3131
SELECT - col2 + + CAST ( - 84 AS INTEGER ) FROM tab2 AS cor0
----
-107
-124
-142

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - ( + + col2 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 + col1 FROM tab1 AS cor0 WHERE NOT col1 * + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT - SUM( + 60 ) FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT - SUM ( + 60 ) FROM tab1 AS cor0
----
-180

query I rowsort
SELECT + - 37 + - ( col2 ) FROM tab2 AS cor0
----
-60
-77
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col0 + - - col1 - + col1 + col2 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
112
133
139

query I rowsort
SELECT DISTINCT + 33 + col1 FROM tab0
----
114
34
54

query I rowsort
SELECT ( - 77 ) FROM tab0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 + + - 95 col1 FROM tab2
----
23
-49
40
-31
58
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT - MIN( DISTINCT col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3141
SELECT - MIN ( DISTINCT col1 ) FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN col0 AND ( NULL )
----

query II rowsort
SELECT - 54, col0 FROM tab1
----
-54
51
-54
85
-54
91

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL ( - col0 ) FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT + CAST( NULL AS SIGNED ) + + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3148
SELECT + CAST ( NULL AS INTEGER ) + + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + + col0 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL 55 * 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c6dd12efc56ebcc796dc2d9bbecbd269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3151
SELECT DISTINCT - MAX( + 49 ) * + CAST( + 90 AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - MAX ( + 49 ) * + CAST ( + 90 AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + ( + ( SUM( + col1 ) ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3153
SELECT + ( + ( SUM ( + col1 ) ) ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 42 - - + 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT + + COUNT( * ) AS col1, 70 FROM tab0 cor0
----
3
70

skipif mysql # not compatible
query II rowsort label-3155
SELECT + + COUNT ( * ) AS col1, 70 FROM tab0 cor0
----
3
70

query I rowsort
SELECT ALL + 18 * 40 AS col0 FROM tab2 cor0
----
720
720
720

query I rowsort
SELECT + col2 * - + col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT - MAX( DISTINCT - col2 ) * + - 85 AS col0 FROM tab1 AS cor0
----
-5015

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - MAX ( DISTINCT - col2 ) * + - 85 AS col0 FROM tab1 AS cor0
----
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT - + MIN( col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - + MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL col1 * - col0 * col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + col0 * + 95 AS col0 FROM tab1
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT COUNT( ALL - ( + - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3162
SELECT COUNT ( ALL - ( + - col1 ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 + + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT COUNT( * ) * + - ( - 12 ) AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT COUNT ( * ) * + - ( - 12 ) AS col2 FROM tab2
----
36

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 6 AS col0 FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - + MIN( - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3167
SELECT - + MIN ( - col2 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 * + 2 - - + 65 * - col0 * + - col0 ) < + col2 + + 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT + 94 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > - 9
----
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT + 94 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > - 9
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT ALL + CAST( 11 AS SIGNED ) FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + CAST ( 11 AS INTEGER ) FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT + 92 * + - col2 FROM tab2 cor0
----
-2116
-3680
-5336

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 >= - + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) * + ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) * + ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT + col0 + + + col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL ( - MAX( DISTINCT - + col0 ) ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3176
SELECT ALL ( - MAX ( DISTINCT - + col0 ) ) col0 FROM tab1
----
51

query II rowsort
SELECT DISTINCT + col2 AS col0, + 20 FROM tab0 AS cor0
----
10
20
47
20
99
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL COUNT( * ) * - + 8 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 = col0
----
-21

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL COUNT ( * ) * - + 8 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 = col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT ALL ( - col1 ) * col1 DIV - + col0 + 37 * + - ( + col1 ) FROM tab1 AS cor0
----
-1715
-185
-515

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL ( - col1 ) * col1 / - + col0 + 37 * + - ( + col1 ) FROM tab1 AS cor0
----
-1715
-185
-515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL - 93 * + MIN( DISTINCT CAST( + - 98 AS SIGNED ) ) FROM tab0 AS cor0
----
9114

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - 93 * + MIN ( DISTINCT CAST ( + - 98 AS INTEGER ) ) FROM tab0 AS cor0
----
9114

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT ( + + 54 + - col0 ) = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL - + COUNT( + col1 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - + COUNT ( + col1 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + 28 * 15 FROM tab1 AS cor0
----
420
420
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT 67 * - - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-603

skipif mysql # not compatible
query I rowsort label-3184
SELECT 67 * - - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-603

query I rowsort
SELECT DISTINCT - col2 * - - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + col0 + + col0 + - col2 + + 70 + - 2 FROM tab0 AS cor0
----
163
232
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) + col2 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
1
21
81

query I rowsort
SELECT ALL + col1 + + - col2 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT - col1 * 10 AS col2 FROM tab2
----
-510
-670
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT 60 * - col1 + col0 DIV - col1 FROM tab0
----
-1264
-157
-4860

skipif mysql # not compatible
query I rowsort label-3191
SELECT 60 * - col1 + col0 / - col1 FROM tab0
----
-1264
-157
-4860

query I rowsort
SELECT ALL col0 + + - col1 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT col1 + + col0 DIV - 87 + + 19 FROM tab0
----
100
19
39

skipif mysql # not compatible
query I rowsort label-3193
SELECT col1 + + col0 / - 87 + + 19 FROM tab0
----
100
19
39

query I rowsort
SELECT DISTINCT + 72 - col1 FROM tab2
----
-5
21
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 IS NULL
----

query I rowsort
SELECT - col0 + + 2 AS col2 FROM tab1 cor0
----
-49
-83
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL 83 - + COUNT( * ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL 83 - + COUNT ( * ) FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT - 30 AS col1, + 59 AS col1 FROM tab1
----
-30
59
-30
59
-30
59

query II rowsort
SELECT + 54, col1 AS col2 FROM tab2
----
54
51
54
67
54
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3201
SELECT + + COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT - - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3202
SELECT - - COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT - - SUM( + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT - - SUM ( + - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT MIN( - + 79 ) AS col0 FROM tab2 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3205
SELECT MIN ( - + 79 ) AS col0 FROM tab2 cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3206
SELECT SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT - COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3207
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT SUM( col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3209
SELECT SUM ( col0 ) FROM tab2
----
185

query II rowsort
SELECT - col0, col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL COUNT( ALL 4 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL COUNT ( ALL 4 ) FROM tab0
----
3

query I rowsort
SELECT 85 FROM tab1 WHERE NOT - col2 + 80 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + COUNT( DISTINCT col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3213
SELECT + COUNT ( DISTINCT col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT DISTINCT 65, ( + COUNT( * ) ) AS col2 FROM tab2
----
65
3

skipif mysql # not compatible
query II rowsort label-3214
SELECT DISTINCT 65, ( + COUNT ( * ) ) AS col2 FROM tab2
----
65
3

query I rowsort
SELECT DISTINCT + 39 * - + col1 FROM tab1
----
-1833
-195
-546

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT + ( - - col2 ) * 75 * col1 FROM tab0 cor0
----
15750
285525
7425

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT - 32 AS col0, + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-32
-3

skipif mysql # not compatible
query II rowsort label-3218
SELECT - 32 AS col0, + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-32
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3219
SELECT DISTINCT - CAST( + MAX( + - col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - CAST ( + MAX ( + - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 81 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3222
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 + - col2 col0 FROM tab2 AS cor0
----
33
51
68

query I rowsort
SELECT - 86 * 31 * col1 + col1 AS col2 FROM tab1 AS cor0 WHERE + 91 BETWEEN - 58 * - 37 / - col1 - + col1 AND + 57
----

query I rowsort
SELECT + col1 + - 13 AS col2 FROM tab0 AS cor0
----
-12
68
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 >= ( NULL )
----

query I rowsort
SELECT + - 25 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( + - 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3230
SELECT - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL - - col1 * col1 DIV ( - + col2 ) FROM tab2 AS cor0
----
-113
-148
-77

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - - col1 * col1 / ( - + col2 ) FROM tab2 AS cor0
----
-113
-148
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3232
SELECT ALL - CAST( + + MIN( DISTINCT + col1 ) AS SIGNED ) + - 47 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - CAST ( + + MIN ( DISTINCT + col1 ) AS INTEGER ) + - 47 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT 12 DIV MIN( DISTINCT col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT 12 / MIN ( DISTINCT col2 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 38 + col2 + - col2 FROM tab0
----
-38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 + + 69 FROM tab2
----
115
133
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + MIN( DISTINCT + col1 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3237
SELECT + MIN ( DISTINCT + col1 ) col0 FROM tab0
----
1

query I rowsort
SELECT ALL + 44 + + col2 FROM tab2
----
102
67
84

query I rowsort
SELECT - ( + - ( 40 ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT col2 * + col0 - CAST( NULL AS SIGNED ) + - + 37 + + + ( - + col0 ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT col2 * + col0 - CAST ( NULL AS INTEGER ) + - + 37 + + + ( - + col0 ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE 69 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT COUNT( * ) + - 27 - SUM( DISTINCT - + 67 ) AS col1 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT COUNT ( * ) + - 27 - SUM ( DISTINCT - + 67 ) AS col1 FROM tab0 AS cor0
----
43

query I rowsort
SELECT + - 92 - - + col1 + + col2 AS col2 FROM tab0 AS cor0
----
-61
36
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3245
SELECT - col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-3245
SELECT - col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 92 + + COUNT( * ) FROM tab2 WHERE NOT - - col0 + col1 < - + col1 / - col0 * - col2
----
-89

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 92 + + COUNT ( * ) FROM tab2 WHERE NOT - - col0 + col1 < - + col1 / - col0 * - col2
----
-89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 12 + + col0 BETWEEN NULL AND + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + ( MAX( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3250
SELECT + ( MAX ( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3251
SELECT 77 AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
77
0

skipif mysql # not compatible
query II rowsort label-3251
SELECT 77 AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3252
SELECT MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - + ( + 32 ), col2 AS col1 FROM tab0 cor0
----
-32
10
-32
47
-32
99

query II rowsort
SELECT - 27, + 68 AS col0 FROM tab1
----
-27
68
-27
68
-27
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3256
SELECT col1 * + - col1, + col1 AS col0 FROM tab2 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-2601
51
-4489
67
-5929
77

skipif mysql # not compatible
query II rowsort label-3256
SELECT col1 * + - col1, + col1 AS col0 FROM tab2 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-2601
51
-4489
67
-5929
77

query I rowsort
SELECT ALL - ( + 16 ) FROM tab0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL + CAST( + 56 AS SIGNED ) AS col2 FROM tab2
----
56
56
56

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + CAST ( + 56 AS INTEGER ) AS col2 FROM tab2
----
56
56
56

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL SUM( ( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL SUM ( ( + col0 ) ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT SUM( DISTINCT - col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT DISTINCT SUM ( DISTINCT - col0 ) col0 FROM tab2
----
-185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, 0, - + col0, 86, + + 23, 20 )
----

query I rowsort
SELECT DISTINCT + 29 * + 47 FROM tab0 AS cor0
----
1363

query I rowsort
SELECT - col0 + + col2 - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - SUM( ALL ( + col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - SUM ( ALL ( + col1 ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + col1 + + - 73 FROM tab2 AS cor0
----
-22
-6
4

query I rowsort
SELECT ALL + 45 AS col2 FROM tab1 WHERE NOT + + 46 + + + 61 IS NULL
----
45
45
45

query I rowsort
SELECT DISTINCT 94 + col2 FROM tab0
----
104
141
193

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 = + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3272
SELECT + COUNT( * ) DIV 28 + - + 91 AS col0, - COUNT( * ) * - 99 col2 FROM tab1, tab1 AS cor0
----
-91
891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3272
SELECT + COUNT ( * ) / 28 + - + 91 AS col0, - COUNT ( * ) * - 99 col2 FROM tab1, tab1 AS cor0
----
-91
891

query I rowsort
SELECT col1 - - 83 FROM tab0 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - - col0 - + col0 + + + col1 * - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + + 12 + + 97 FROM tab0 AS cor0
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT COUNT( * ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3276
SELECT COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT col1 - - + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - 79 - ( + 64 ) FROM tab0 cor0
----
-143
-143
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) >= + 40 * - - ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - + 51 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT ALL - 50 * + ( - col1 ) * - 74 FROM tab0
----
-299700
-3700
-77700

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT + COUNT( * ) + - 56 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + - col0 - - - col2
----
-56

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + COUNT ( * ) + - 56 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + - col0 - - - col2
----
-56

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3285
SELECT ALL + SUM( ALL - + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + SUM ( ALL - + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 56 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3287
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT + 87 FROM tab0 AS cor0 WHERE + col0 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col0 * + + col1 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT ALL - 16 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - 16 / + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT DISTINCT 13 * CAST( + MAX( CAST( NULL AS SIGNED ) ) AS SIGNED ) / 26 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT 13 * CAST ( + MAX ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) / 26 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT 51 * SUM( + col0 ) FROM tab2
----
9435

skipif mysql # not compatible
query I rowsort label-3293
SELECT 51 * SUM ( + col0 ) FROM tab2
----
9435

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL - COUNT( + - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - COUNT ( + - col2 ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + ( 21 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT - COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3299
SELECT - COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col2 + col2 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT ALL + 92 DIV 52 col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT ALL + 92 / 52 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col0 * 44 FROM tab2 AS cor0
----
2024
2816
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL MAX( DISTINCT - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL MAX ( DISTINCT - col0 ) FROM tab2 cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / + col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT MIN( col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3306
SELECT MIN ( col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - MAX( DISTINCT - 16 ) AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - MAX ( DISTINCT - 16 ) AS col0 FROM tab0
----
16

query II rowsort
SELECT ALL - 76 * - 15 AS col0, + col2 FROM tab0
----
1140
10
1140
47
1140
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT ALL - 70 DIV + + MIN( + col1 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - 70 / + + MIN ( + col1 ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT + ( + + col1 ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3311
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2, ( col2 ) col1 FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3311
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2, ( col2 ) col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT - col0 * col2 * - col1 + + col2 + - 54 FROM tab0 AS cor0
----
18226
57098
9648

query I rowsort
SELECT DISTINCT 65 FROM tab1 AS cor0 WHERE NOT - 40 IS NULL
----
65

query I rowsort
SELECT ALL - 82 * + ( + + 78 ) + - + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-10282
-7569
-9476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT ALL CAST( + 4 AS SIGNED ) AS col0 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL CAST ( + 4 AS INTEGER ) AS col0 FROM tab2
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3316
SELECT - CAST( - - 99 AS SIGNED ) + col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
-52
NULL
-89
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3316
SELECT - CAST ( - - 99 AS INTEGER ) + col2, CAST ( NULL AS REAL ) AS col0 FROM tab0
----
-52
NULL
-89
NULL
0
NULL

query I rowsort
SELECT ALL - col2 + + col2 * - + 4 - - - col2 FROM tab0
----
-282
-594
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT DISTINCT - col1 - + 26 DIV + + col2 + + col0 * - col1 AS col0 FROM tab1
----
-430
-4324
-728

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - col1 - + 26 / + + col2 + + col0 * - col1 AS col0 FROM tab1
----
-430
-4324
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT MIN( ALL + - col0 ) FROM tab1 cor0 WHERE col0 * - col0 + - 60 + - ( + + col0 ) / - col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT MIN ( ALL + - col0 ) FROM tab1 cor0 WHERE col0 * - col0 + - 60 + - ( + + col0 ) / - col2 > NULL
----
NULL

query I rowsort
SELECT - + 78 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + - 79 * + ( col1 ) FROM tab0 cor0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL MAX ( col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT + CAST( + col0 AS SIGNED ) * + + 61 FROM tab0 AS cor0
----
5307
5917
915

skipif mysql # not compatible
query I rowsort label-3323
SELECT + CAST ( + col0 AS INTEGER ) * + + 61 FROM tab0 AS cor0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - - COUNT( * ) * ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3324
SELECT - - COUNT ( * ) * ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT + CAST( NULL AS SIGNED ) * + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT + CAST ( NULL AS INTEGER ) * + - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3326
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3326
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - col0 - 81 FROM tab2
----
-127
-145
-156

query I rowsort
SELECT DISTINCT + col0 + ( + - 98 ) + - col1 + 37 + + ( + col0 ) AS col2 FROM tab1
----
104
27
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - 38 - + - COUNT( - col2 ) + + - 12 * + - 31 FROM tab2
----
337

skipif mysql # not compatible
query I rowsort label-3329
SELECT - 38 - + - COUNT ( - col2 ) + + - 12 * + - 31 FROM tab2
----
337

query I rowsort
SELECT + col1 / + 53 FROM tab2 WHERE NULL NOT BETWEEN + col1 + - + col0 * + + col0 AND NULL
----

query I rowsort
SELECT ALL + 16 * - - 56 * - + col1 FROM tab0
----
-18816
-72576
-896

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL ( 93 ) FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT + COUNT( DISTINCT - 71 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + COUNT ( DISTINCT - 71 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + 68 FROM tab1 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT - + 51 AS col1, + COUNT( * ) FROM tab2 cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-3337
SELECT - + 51 AS col1, + COUNT ( * ) FROM tab2 cor0
----
-51
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col2 FROM tab1
----
97

query II rowsort
SELECT + col2 * + 53, - col2 * col0 AS col0 FROM tab1 cor0
----
3127
-5015
3604
-6188
5088
-4896

query I rowsort
SELECT DISTINCT col1 * - 7 + + col0 AS col1 FROM tab0 cor0
----
-552
-60
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 58 AS col1 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + ( COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3343
SELECT + ( COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT + - COUNT( * ) DIV + MIN( ALL + col2 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT + - COUNT ( * ) / + MIN ( ALL + col2 ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + + COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT + + COUNT ( * ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 48 * col1 + + col2 FROM tab2 AS cor0
----
2471
3274
3736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 25 col2 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT 77 - - ( 8 ) AS col0 FROM tab0 WHERE NOT + 8 - - col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab2
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 45 - - - col2 - 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL COUNT( DISTINCT - 19 ) * - COUNT( * ) * + COUNT( * ) - + COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL COUNT ( DISTINCT - 19 ) * - COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) FROM tab1
----
-12

query I rowsort
SELECT ALL - col0 * + col1 + 28 FROM tab0
----
-1187
-1799
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3353
SELECT + 46 * + - 71 + + col0 AS col0, CAST( NULL AS SIGNED ) FROM tab2 WHERE + col2 + + 71 * + 83 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3353
SELECT + 46 * + - 71 + + col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col2 + + 71 * + 83 IS NULL
----

query I rowsort
SELECT - 83 + + 71 + col2 + + - 49 + + col2 * 45 + - + col0 AS col1 FROM tab2
----
1715
2532
951

query I rowsort
SELECT ALL 39 AS col0 FROM tab2 WHERE - + 21 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 89 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * - + 7 + col0 * + 56 FROM tab2
----
2737
3864
4606

query I rowsort
SELECT DISTINCT - col0 + + + 47 FROM tab1
----
-38
-4
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3359
SELECT - MIN( DISTINCT col1 ) AS col0, 88 + - 70 FROM tab1
----
-5
18

skipif mysql # not compatible
query II rowsort label-3359
SELECT - MIN ( DISTINCT col1 ) AS col0, 88 + - 70 FROM tab1
----
-5
18

query I rowsort
SELECT DISTINCT - col0 * - - col1 + + col0 * + ( - col2 ) * 0 * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 80 - - col0 AS col0 FROM tab1 AS cor0
----
131
165
171

query I rowsort
SELECT col0 * - col1 - 39 FROM tab0 AS cor0
----
-1254
-136
-1866

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL - COUNT( * ) + - 7 AS col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - COUNT ( * ) + - 7 AS col0 FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3364
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - - 40 col0, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3364
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - - 40 col0, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT + + 65 * + 20 - - col0 FROM tab2 AS cor0
----
1346
1364
1375

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - ( + COUNT( * ) ) + + COUNT( * ) * - 45 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-3366
SELECT - ( + COUNT ( * ) ) + + COUNT ( * ) * - 45 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT ( NOT - col1 <> + col1 )
----
46
64
75

query I rowsort
SELECT + ( + 27 ) * + col0 + col0 AS col0 FROM tab2
----
1288
1792
2100

query II rowsort
SELECT col1, 89 - - + col0 + - col2 + 99 FROM tab0
----
1
186
21
265
81
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + MAX( DISTINCT + ( + - 62 ) ) col0 FROM tab1
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3370
SELECT + MAX ( DISTINCT + ( + - 62 ) ) col0 FROM tab1
----
-62

query I rowsort
SELECT DISTINCT + 6 * 12 AS col1 FROM tab2
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab0
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + ( - - col1 ) * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 7 * + col2 AS col0 FROM tab2
----
161
280
406

query I rowsort
SELECT - 22 * 21 * + + col2 AS col0 FROM tab1
----
-27258
-31416
-44352

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - 21 * col2 FROM tab2 AS cor0
----
-1218
-483
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT - + MIN( ALL + + 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - + MIN ( ALL + + 51 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - ( - 31 ) AS col0 FROM tab1 AS cor0
----
31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - - col2 NOT IN ( - 19 * 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - 37 * + - COUNT( * ) + - 61 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - 37 * + - COUNT ( * ) + - 61 FROM tab2 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT + + col0 + + col2 DIV 57 AS col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-3383
SELECT + + col0 + + col2 / 57 AS col0 FROM tab1 AS cor0
----
52
86
92

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col2 FROM tab1
----
20
20
20

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + - 5 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT 93 * + COUNT( DISTINCT - CAST( + 14 AS SIGNED ) ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3387
SELECT 93 * + COUNT ( DISTINCT - CAST ( + 14 AS INTEGER ) ) AS col1 FROM tab2
----
93

query III rowsort
SELECT * FROM tab2 WHERE - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - COUNT( DISTINCT 35 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3389
SELECT - COUNT ( DISTINCT 35 ) AS col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3391
SELECT DISTINCT + MAX( ALL + col0 ) * + 37 * + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + MAX ( ALL + col0 ) * + 37 * + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT ALL ( 24 ), + COUNT( * ) + - COUNT( * ) * - 93 AS col0 FROM tab2 AS cor0
----
24
282

skipif mysql # not compatible
query II rowsort label-3392
SELECT ALL ( 24 ), + COUNT ( * ) + - COUNT ( * ) * - 93 AS col0 FROM tab2 AS cor0
----
24
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3393
SELECT ALL - MIN( col2 ) + - - 78 DIV - COUNT( * ) + + 15 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - MIN ( col2 ) + - - 78 / - COUNT ( * ) + + 15 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0 WHERE 53 IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0 WHERE 53 IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - COUNT( * ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3395
SELECT - COUNT ( * ) FROM tab0, tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3397
SELECT - MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 92 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 92 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3399
SELECT * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3399
SELECT * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT 59 * - - CAST( NULL AS SIGNED ) / - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT 59 * - - CAST ( NULL AS INTEGER ) / - + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( ALL - - 29 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3403
SELECT COUNT ( ALL - - 29 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT COUNT( * ) * + ( + - 6 ) * + COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3404
SELECT COUNT ( * ) * + ( + - 6 ) * + COUNT ( * ) FROM tab0
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-3405
SELECT + col1 * - - 81 AS col1, 34 DIV + col1 FROM tab0
----
1701
1
6561
0
81
34

skipif mysql # not compatible
query II rowsort label-3405
SELECT + col1 * - - 81 AS col1, 34 / + col1 FROM tab0
----
1701
1
6561
0
81
34

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL < - 1 / - - col0 + + col2 - + + ( + - col0 )
----

query II rowsort
SELECT 7 * - 22 AS col0, + 1 AS col2 FROM tab1
----
-154
1
-154
1
-154
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3409
SELECT - - COUNT ( * ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col1 FROM tab0 AS cor0
----
95

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3412
SELECT COUNT( * ) DIV 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT COUNT ( * ) / 70 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - col2 + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

query I rowsort
SELECT + + col0 * + - 63 - - 62 + col2 FROM tab1 AS cor0
----
-3055
-5234
-5603

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( col2 * + col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT + + col0 * 6 DIV col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT + + col0 * 6 / col0 FROM tab1 AS cor0
----
6

query II rowsort
SELECT col2 AS col1, - ( + ( - col1 ) ) FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3419
SELECT DISTINCT + col2, col0 + - col0 + + col1 + - + 96 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3419
SELECT DISTINCT + col2, col0 + - col0 + + col1 + - + 96 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3420
SELECT + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT DISTINCT ( - - 82 ) * - col0 DIV + col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT ( - - 82 ) * - col0 / + col0 FROM tab0 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT - 88 DIV - col1 FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
query I rowsort label-3422
SELECT - 88 / - col1 FROM tab1 AS cor0
----
1
17
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3424
SELECT DISTINCT - col0 + + col0 - - - col2 AS col0, - col0 + - 75 DIV + 55 FROM tab1 AS cor0
----
-59
-86
-68
-92
-96
-52

skipif mysql # not compatible
query II rowsort label-3424
SELECT DISTINCT - col0 + + col0 - - - col2 AS col0, - col0 + - 75 / + 55 FROM tab1 AS cor0
----
-59
-86
-68
-92
-96
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3425
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * - col1 * - col0 * + + CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3425
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * - col1 * - col0 * + + CAST ( + + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + + COUNT( * ) + + + 0 + - 52 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
-52

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + + COUNT ( * ) + + + 0 + - 52 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
-52

query I rowsort
SELECT DISTINCT col2 + ( - col1 ) + + - col1 - - 71 - 95 + + col0 AS col2 FROM tab1
----
110
41
95

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE col0 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT ( CAST( col2 AS SIGNED ) ) + + + 82 AS col0 FROM tab0 AS cor0
----
129
181
92

skipif mysql # not compatible
query I rowsort label-3429
SELECT ( CAST ( col2 AS INTEGER ) ) + + + 82 AS col0 FROM tab0 AS cor0
----
129
181
92

query I rowsort
SELECT - 25 * ( 20 ) FROM tab0 AS cor0
----
-500
-500
-500

query I rowsort
SELECT col2 + col1 FROM tab0 AS cor0 WHERE + 29 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( - 89 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL - MIN( ALL - CAST( NULL AS SIGNED ) ) + 46 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - MIN ( ALL - CAST ( NULL AS INTEGER ) ) + 46 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL + - ( - - SUM( DISTINCT col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + - ( - - SUM ( DISTINCT col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3436
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT - - COUNT( * ) * + 23 + + - 9 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - - COUNT ( * ) * + 23 + + - 9 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT - - COUNT( * ) * - - 49 * + COUNT( DISTINCT - + col0 ) FROM tab0 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - - COUNT ( * ) * - - 49 * + COUNT ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
441

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL + SUM( + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + SUM ( + col1 ) AS col0 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT + ( - col2 ) DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT + ( - col2 ) / col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 * - 92 AS col2 FROM tab0
----
-1380
-8004
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT + 76 DIV col2 AS col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3444
SELECT + 76 / col2 AS col2 FROM tab0
----
0
1
7

query II rowsort
SELECT DISTINCT col1, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3447
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3447
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 19 * + + 58 * - ( + 33 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5874d8ff27427481408b4d653c212c28

query I rowsort
SELECT DISTINCT + 52 * - col0 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT + CAST( col2 AS SIGNED ) + + ( - + col2 ) * 50 * + - col1 col0 FROM tab0 AS cor0
----
10510
190397
5049

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3450
SELECT + CAST ( col2 AS INTEGER ) + + ( - + col2 ) * 50 * + - col1 col0 FROM tab0 AS cor0
----
10510
190397
5049

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 30 / + col1 * col0 * col1 * - col1 * + 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT DISTINCT + 58 + - col1 * col2 - CAST( NULL AS SIGNED ) - col2 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + 58 + - col1 * col2 - CAST ( NULL AS INTEGER ) - col2 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3455
SELECT + col0 DIV - + col0 AS col1, + 5 FROM tab1 AS cor0
----
-1
5
-1
5
-1
5

skipif mysql # not compatible
query II rowsort label-3455
SELECT + col0 / - + col0 AS col1, + 5 FROM tab1 AS cor0
----
-1
5
-1
5
-1
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3457
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT MAX( ( 18 ) ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT MAX ( ( 18 ) ) FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT ALL col0 + col0 * - + col2 - + + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-4859
-4935
-6144

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL col0 + col0 * - + col2 - + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-4859
-4935
-6144

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT - COUNT( * ), + COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3460
SELECT - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0
----
-3
3

query I rowsort
SELECT DISTINCT - col1 * - - col1 + - col2 * col2 FROM tab1
----
-3506
-6833
-9412

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT + 47 DIV col1 AS col2 FROM tab0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-3462
SELECT + 47 / col1 AS col2 FROM tab0
----
0
2
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + ( + + ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3463
SELECT + ( + + ( + COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT 86 DIV + - col2 AS col1 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT 86 / + - col2 AS col1 FROM tab0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT 85 + + COUNT( * ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT 85 + + COUNT ( * ) AS col1 FROM tab2
----
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT - - col1 + - CAST( 55 AS SIGNED ) FROM tab0 cor0
----
-34
-54
26

skipif mysql # not compatible
query I rowsort label-3467
SELECT - - col1 + - CAST ( 55 AS INTEGER ) FROM tab0 cor0
----
-34
-54
26

query I rowsort
SELECT - col0 * + + 96 + + - col0 FROM tab2
----
-4462
-6208
-7275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 78 + col0 BETWEEN + 23 * - + 20 AND 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 35 + - + col0 + + 50 * + - 64 * - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
188750
217544
307184

query II rowsort
SELECT DISTINCT + ( - + 72 ), col0 FROM tab1 AS cor0
----
-72
51
-72
85
-72
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT + 0 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3472
SELECT + 0 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT - MIN( ALL + 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT - MIN ( ALL + 91 ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT + 4 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
4
4
4

query I rowsort
SELECT + + col1 * + col1 * col0 + 84 FROM tab2 AS cor0
----
119730
336759
379540

query II rowsort
SELECT + - 35 AS col1, + 92 FROM tab0 AS cor0
----
-35
92
-35
92
-35
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL - COUNT( DISTINCT + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - COUNT ( DISTINCT + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + - col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - + 60 + - + 16 / 58 <= + - ( + col1 ) * - 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * 76 AS col0 FROM tab0
----
3572
7524
760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3481
SELECT ALL col0 * - CAST( + col2 AS SIGNED ), col0 FROM tab0
----
-705
15
-870
87
-9603
97

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL col0 * - CAST ( + col2 AS INTEGER ), col0 FROM tab0
----
-705
15
-870
87
-9603
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * col0 col1 FROM tab2
----
4186
5824
6825

onlyif mysql # DIV for integer division: 
query II rowsort label-3483
SELECT ALL - col2 DIV col2 AS col0, - col2 FROM tab2
----
-1
-23
-1
-40
-1
-58

skipif mysql # not compatible
query II rowsort label-3483
SELECT ALL - col2 / col2 AS col0, - col2 FROM tab2
----
-1
-23
-1
-40
-1
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3484
SELECT ALL 18 DIV + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL 18 / + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT ALL col2 DIV 38 AS col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL col2 / 38 AS col0 FROM tab1
----
1
1
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL ) >= - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - COUNT( - 45 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT - COUNT ( - 45 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = col0 - col2
----

query II rowsort
SELECT + - col1 + + col1, - col0 AS col1 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT - + col0 * 59 * 76 + - col2 + + + ( + + col1 ) FROM tab2 AS cor0
----
-206236
-286939
-336291

query I rowsort
SELECT - - col1 + + col0 + + + 91 FROM tab0 AS cor0
----
187
189
199

query I rowsort
SELECT ALL - col0 * - col2 * 53 + 29 - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
135749
230637
56126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT 32 * - - COUNT( * ) + + 79 AS col2 FROM tab2 WHERE + col0 > CAST( NULL AS SIGNED ) + - + 46
----
79

skipif mysql # not compatible
query I rowsort label-3494
SELECT 32 * - - COUNT ( * ) + + 79 AS col2 FROM tab2 WHERE + col0 > CAST ( NULL AS INTEGER ) + - + 46
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT + + COUNT( DISTINCT - 26 ) * - - 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-3495
SELECT + + COUNT ( DISTINCT - 26 ) * - - 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - COUNT( * ) + + - COUNT( * ) + - - 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-3496
SELECT - COUNT ( * ) + + - COUNT ( * ) + - - 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 9, col0 col1 FROM tab2 AS cor0
----
-9
46
-9
64
-9
75

query I rowsort
SELECT DISTINCT - + col2 + + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - COUNT( * ) * + MAX( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3499
SELECT - COUNT ( * ) * + MAX ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT DISTINCT + - COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL + col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT + + col0 * + 98 / - - col0 + + + 46 + - + col0 - - + 68 + + col2 + - col1 + + 95 * + CAST( NULL AS SIGNED ) * + + col1 * + - 99 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT + + col0 * + 98 / - - col0 + + + 46 + - + col0 - - + 68 + + col2 + - col1 + + 95 * + CAST ( NULL AS INTEGER ) * + + col1 * + - 99 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT + + CAST( + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + + CAST ( + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 41 < + - col2
----

query I rowsort
SELECT ALL + col1 + - + 71 AS col2 FROM tab2
----
-20
-4
6

query I rowsort
SELECT + col1 + + + col1 * 52 AS col2 FROM tab2
----
2703
3551
4081

query II rowsort
SELECT ALL col2 - col2, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3509
SELECT - COUNT ( * ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 42 + 67 + - col1 * - col0 + + col2 + + col0 AS col2 FROM tab0
----
1386
2033
402

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT - + COUNT( * ) - + - COUNT( * ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3511
SELECT DISTINCT - + COUNT ( * ) - + - COUNT ( * ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - - MIN( col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3512
SELECT - - MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - 91 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - 25 * + - col2 AS col1 FROM tab0 AS cor0
----
1175
2475
250

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + col2 * + - col0 * + 28 + + - 6 * + col1 * - col1 NOT BETWEEN col1 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3518
SELECT + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + - col1 ) > NULL
----

query I rowsort
SELECT DISTINCT + - col2 * - + col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 34 + 25 - + col2 BETWEEN + 71 * - - col0 + - col0 AND - + ( 75 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 49 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT MAX( ALL col1 ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3524
SELECT DISTINCT MAX ( ALL col1 ) col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT + COUNT( * ) * - - 92 AS col2 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + COUNT ( * ) * - - 92 AS col2 FROM tab2
----
276

query I rowsort
SELECT + col1 * + ( - col0 ) FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - COUNT( * ) * + + 1 * + ( MIN( - + col2 ) ) col2 FROM tab1
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3528
SELECT - COUNT ( * ) * + + 1 * + ( MIN ( - + col2 ) ) col2 FROM tab1
----
288

query I rowsort
SELECT ALL col2 * - + col1 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3530
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * col1 col2 FROM tab2
----
3468
4556
5236

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 >= 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - col1 * 30 FROM tab2 AS cor0
----
-147840
-150750
-70380

query I rowsort
SELECT ALL + 34 * ( - 43 ) FROM tab2 AS cor0
----
-1462
-1462
-1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT DISTINCT + COUNT( * ) + CAST( 36 AS SIGNED ) AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + COUNT ( * ) + CAST ( 36 AS INTEGER ) AS col0 FROM tab1
----
39

query II rowsort
SELECT ALL + + 32 AS col2, 2 * + + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col2 AND + + 21
----

query I rowsort
SELECT - ( + col0 ) + - 8 FROM tab0
----
-105
-23
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL + COUNT( * ) + + 62 AS col0 FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + COUNT ( * ) + + 62 AS col0 FROM tab2 cor0
----
65

query I rowsort
SELECT + col1 * + col1 + 18 AS col1 FROM tab2 AS cor0
----
2619
4507
5947

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT ALL + - col1 - col1 + + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-21
-34
-95

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + - col1 - col1 + + - col2 / col1 AS col2 FROM tab1 AS cor0
----
-21
-34
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3541
SELECT + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

query II rowsort
SELECT DISTINCT - col0 * - col1 AS col1, + 12 FROM tab0 AS cor0
----
1215
12
1827
12
97
12

query III rowsort
SELECT * FROM tab2 WHERE + 44 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT MAX( + + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3544
SELECT MAX ( + + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT COUNT( DISTINCT - - 46 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3545
SELECT COUNT ( DISTINCT - - 46 ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 52 * + - col1 IS NOT NULL
----

query I rowsort
SELECT ( + - col2 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT - MIN( DISTINCT col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - MIN ( DISTINCT col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col0 + + - col1 FROM tab0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL COUNT( * ) + - 56 AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL COUNT ( * ) + - 56 AS col2 FROM tab1
----
-53

query I rowsort
SELECT DISTINCT - col0 - - - col1 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - - COUNT( * ) * + 87 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-3553
SELECT - - COUNT ( * ) * + 87 FROM tab1 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + ( COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + ( COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT COUNT( * ) - + COUNT( 44 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT COUNT ( * ) - + COUNT ( 44 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + COUNT ( * ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 - 15 FROM tab0
----
-114
-25
-62

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 + + col0 AS col1 FROM tab1 WHERE ( + 74 * col0 + col0 ) IS NULL
----

query I rowsort
SELECT - col0 - + ( + col2 ) FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + col2 - CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT + col2 - CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL + MAX( - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + MAX ( - col1 ) FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 58 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 32 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( col0 / col2 ) = + 38 + + col2 * - col2
----
-3

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( col0 / col2 ) = + 38 + + col2 * - col2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND + 81 * - col2
----

query I rowsort
SELECT DISTINCT + col0 * + 93 FROM tab2
----
4278
5952
6975

query I rowsort
SELECT + col0 - col0 * 81 FROM tab0
----
-1200
-6960
-7760

query I rowsort
SELECT - ( + 78 ) * - col2 AS col0 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL - 66 - 80 * - COUNT( * ) FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL - 66 - 80 * - COUNT ( * ) FROM tab1
----
174

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 35 * col0 AS col0 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT col1 + - 14 * 35 AS col0 FROM tab1 AS cor0
----
-443
-476
-485

query I rowsort
SELECT col0 + + ( - 27 - 79 ) FROM tab2 AS cor0
----
-31
-42
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT - COUNT( * ) + + MIN( col1 ) AS col0 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-3576
SELECT - COUNT ( * ) + + MIN ( col1 ) AS col0 FROM tab1 cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT col1 DIV 67 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3577
SELECT col1 / 67 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3578
SELECT ALL COUNT( * ) DIV CAST( + 9 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL COUNT ( * ) / CAST ( + 9 AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT - 76 / AVG ( 94 * + 34 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) - col2 * col2 AS col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT ALL - - col1 * - 80 - + 68 FROM tab0 AS cor0
----
-148
-1748
-6548

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT + 76 + + COUNT( * ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + 76 + + COUNT ( * ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT DISTINCT + + 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 54 - - ( col0 ) AS col0 FROM tab2 AS cor0
----
-8
10
21

query I rowsort
SELECT - col0 + + 78 * col0 AS col1 FROM tab0 cor0
----
1155
6699
7469

query I rowsort
SELECT ( ( - col0 ) ) + + col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL 86 - col1 FROM tab1 AS cor0
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL MAX( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - 85 * col0 + col0 BETWEEN - 82 AND NULL
----
99

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - 85 * col0 + col0 BETWEEN - 82 AND NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT 23 * + col1 AS col0 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT ( + col0 ) DIV 38 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3591
SELECT ( + col0 ) / 38 AS col2 FROM tab1
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 38 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT - col2 DIV + 35 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT - col2 / + 35 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL COUNT( DISTINCT + 47 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL COUNT ( DISTINCT + 47 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT col1 * - 22 * + 60 AS col2 FROM tab1
----
-18480
-62040
-6600

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3596
SELECT + 34 col1 FROM tab1 WHERE NOT CAST( col0 AS DECIMAL ) - - col2 * - ( col2 + col0 ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3596
SELECT + 34 col1 FROM tab1 WHERE NOT CAST ( col0 AS REAL ) - - col2 * - ( col2 + col0 ) <= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT + col1 DIV - + col2 col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT + col1 / - + col2 col0 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT 47 * + - ( + MAX( 87 ) ) AS col2 FROM tab2
----
-4089

skipif mysql # not compatible
query I rowsort label-3598
SELECT 47 * + - ( + MAX ( 87 ) ) AS col2 FROM tab2
----
-4089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3599
SELECT + 56 DIV + COUNT( * ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3599
SELECT + 56 / + COUNT ( * ) AS col0 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT COUNT( 66 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3600
SELECT COUNT ( 66 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT + + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 91 AS col1 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - 14 * - col2 * col2 AS col1 FROM tab2 cor0
----
22400
47096
7406

query I rowsort
SELECT DISTINCT + - 96 + 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + - COUNT( * ) - COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT + - COUNT ( * ) - COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

query II rowsort
SELECT ALL col2, 61 + - col2 FROM tab0 AS cor0
----
10
51
47
14
99
-38

query I rowsort
SELECT DISTINCT col1 * - col2 * - 64 FROM tab2 AS cor0
----
197120
248704
75072

query I rowsort
SELECT + 66 FROM tab1 AS cor0 WHERE NOT col0 - - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + - col2 ) * - - 60 * - col0 - + 72 FROM tab2 AS cor0
----
153528
260928
63408

query I rowsort
SELECT ALL + ( + col2 ) * - + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT SUM( DISTINCT - 42 ) AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3612
SELECT SUM ( DISTINCT - 42 ) AS col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT + col2 + - - col2 + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
16
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 84 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3615
SELECT ALL + - col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-3615
SELECT ALL + - col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT ALL + col1 + + + 92 FROM tab2 AS cor0
----
143
159
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT + + CAST( - - col2 AS SIGNED ) + CAST( + col1 AS SIGNED ) - col2 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3617
SELECT + + CAST ( - - col2 AS INTEGER ) + CAST ( + col1 AS INTEGER ) - col2 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - col0 + col0 AS col0 FROM tab0 AS cor0 WHERE + 6 IS NOT NULL
----
0

query I rowsort
SELECT - col2 * + + col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 68 + + 85 - - col1 - - col2 * col0 AS col2 FROM tab1
----
5063
5173
6388

query I rowsort
SELECT - 86 * col2 AS col2 FROM tab2 WHERE NOT - - col2 / + - col2 IS NULL
----
-1978
-3440
-4988

query I rowsort
SELECT DISTINCT + col2 * + 13 + col0 AS col0 FROM tab0
----
1384
217
626

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + MIN( - 93 ) AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-3623
SELECT + MIN ( - 93 ) AS col0 FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3624
SELECT ALL col0 DIV CAST( + col1 AS SIGNED ) * - + col1 + + col0 FROM tab0
----
0
15
3

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL col0 / CAST ( + col1 AS INTEGER ) * - + col1 + + col0 FROM tab0
----
0
15
3

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE col2 * col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT 20 * - col1 * col0 AS col2 FROM tab1
----
-14280
-8500
-85540

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT COUNT( DISTINCT + + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3627
SELECT COUNT ( DISTINCT + + col0 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN + 79 AND 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT ALL - 38 + - col1 + + col1 DIV - 10 AS col0 FROM tab0
----
-127
-39
-61

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL - 38 + - col1 + + col1 / - 10 AS col0 FROM tab0
----
-127
-39
-61

query I rowsort
SELECT DISTINCT col0 + col2 + - - 63 + - 86 + + col1 * col2 AS col2 FROM tab2
----
1219
3161
3996

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT SUM( col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3631
SELECT SUM ( col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL - + CAST( - 60 AS SIGNED ) * + + 13 * - col2 * - col0 FROM tab0 cor0
----
549900
678600
7490340

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL - + CAST ( - 60 AS INTEGER ) * + + 13 * - col2 * - col0 FROM tab0 cor0
----
549900
678600
7490340

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT ALL - - col2 + - - ( + col1 ) DIV - col0 + col1 * 87 FROM tab0 AS cor0
----
1837
186
7089

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - - col2 + - - ( + col1 ) / - col0 + col1 * 87 FROM tab0 AS cor0
----
1837
186
7089

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 17 * + 50 * col0 + 43 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3635
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0, col1 * - 40 * + CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-3635
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0, col1 * - 40 * + CAST ( NULL AS INTEGER ) + col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 + + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col2 col1 FROM tab1
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + - 82 * - col0 + + + 95 FROM tab2 AS cor0
----
3867
5343
6245

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3640
SELECT ALL * FROM tab0 AS cor0 WHERE + 93 BETWEEN 10 + + ( - + col1 ) + 68 * 42 AND CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3640
SELECT ALL * FROM tab0 AS cor0 WHERE + 93 BETWEEN 10 + + ( - + col1 ) + 68 * 42 AND CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT + CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3641
SELECT + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - + col0 - - 33 AS col0 FROM tab0 cor0
----
-54
-64
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3643
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - COUNT( * ) * 93 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-3644
SELECT - COUNT ( * ) * 93 FROM tab1 AS cor0
----
-279

query I rowsort
SELECT DISTINCT - - col1 + col0 FROM tab0 AS cor0 WHERE 18 * - col1 IS NULL
----

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT ALL + col1 - + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + col1 - + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT - MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col0 AS col0, + col0 AS col2 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3652
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 >= NULL
----

query I rowsort
SELECT 19 * ( col0 ) FROM tab0 WHERE NOT - 28 NOT BETWEEN - col0 AND + 9 / col0
----
1653
1843

query I rowsort
SELECT DISTINCT - ( - + col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL + - MAX( + 58 ) FROM tab0 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + - MAX ( + 58 ) FROM tab0 cor0
----
-58

query II rowsort
SELECT DISTINCT - 14 AS col0, col1 AS col0 FROM tab2 AS cor0
----
-14
51
-14
67
-14
77

query II rowsort
SELECT DISTINCT 7, col0 AS col2 FROM tab1 AS cor0
----
7
51
7
85
7
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 28 + col1 / - + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL + + MIN( + + col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + + MIN ( + + col1 ) FROM tab1 cor0
----
5

query II rowsort
SELECT col1, - col1 - 28 AS col0 FROM tab2 AS cor0
----
51
-79
67
-95
77
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col1 ) col0, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT + + ( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + col1 + + col0 - - col1 * - 99 * col0 = ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 56 + 26 + + - 21 AS col2, 31 FROM tab1 AS cor0
----
61
31
61
31
61
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
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-3669
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT MIN( - + col0 ) col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3670
SELECT MIN ( - + col0 ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT 17 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3671
SELECT 17 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
51

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 39 / + col2 - - col2 * + - 99, 0 )
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( + col1 + - col1 * + - col0 + - 13 + ( + col0 ) * - col2 ) IN ( + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT + 50 DIV 35 DIV - + col0 + 96 + - + col0 - col1 + - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-12
-3
-3

skipif mysql # not compatible
query I rowsort label-3674
SELECT + 50 / 35 / - + col0 + 96 + - + col0 - col1 + - col2 / + col0 AS col2 FROM tab0 AS cor0
----
-12
-3
-3

query I rowsort
SELECT 34 * - + col1 * - ( - col0 ) * - col1 + - + ( + - 69 ) AS col1 FROM tab2 cor0
----
11447019
12901573
4068033

query I rowsort
SELECT + + 67 AS col1 FROM tab2 cor0
----
67
67
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + col0 * + + col2 * + - 9 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab0 AS cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - COUNT( * ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3679
SELECT - COUNT ( * ) col1 FROM tab1
----
-3

query I rowsort
SELECT col2 * col2 * - - col1 AS col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT + 57 - + - 30 AS col2 FROM tab2 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + 89 * MIN( ALL + - col1 ) + MIN( - - col0 ) AS col2 FROM tab0 AS cor0
----
-7194

skipif mysql # not compatible
query I rowsort label-3682
SELECT + 89 * MIN ( ALL + - col1 ) + MIN ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-7194

query II rowsort
SELECT col0 AS col1, 8 AS col1 FROM tab0 cor0
----
15
8
87
8
97
8

query I rowsort
SELECT - + 10 AS col1 FROM tab1 AS cor0
----
-10
-10
-10

query II rowsort
SELECT ALL col0 AS col1, 86 FROM tab0 cor0
----
15
86
87
86
97
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3687
SELECT ALL + - CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL + - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 87 IS NULL
----

query I rowsort
SELECT ALL 91 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN NULL AND - ( + col1 ) / + ( - 10 ) + - 49 + - 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + - col2, 13 col2 FROM tab0 AS cor0
----
-98
13
11
13
34
13

query I rowsort
SELECT DISTINCT 32 - col1 + - col0 FROM tab2 AS cor0
----
-109
-110
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3693
SELECT * FROM tab1 AS cor0 WHERE + 64 IN ( - ( 7 ) * col0 / col0 - - col1 - - - CAST( NULL AS SIGNED ) / - - col0 )
----

skipif mysql # not compatible
query III rowsort label-3693
SELECT * FROM tab1 AS cor0 WHERE + 64 IN ( - ( 7 ) * col0 / col0 - - col1 - - - CAST ( NULL AS INTEGER ) / - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 67 + + col2 FROM tab2 AS cor0
----
107
125
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL - - SUM( + ( + + 70 ) ) - COUNT( * ) FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - - SUM ( + ( + + 70 ) ) - COUNT ( * ) FROM tab1 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3697
SELECT DISTINCT + col0 + CAST( - col0 AS SIGNED ) + 21 + col2 / - col1 * - + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT + col0 + CAST ( - col0 AS INTEGER ) + 21 + col2 / - col1 * - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT + SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3698
SELECT + SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT ALL - + col0 + - - CAST( - 52 AS SIGNED ) + - - ( + col0 ) * - col2 FROM tab0 AS cor0 WHERE + ( + - ( 97 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - + col0 + - - CAST ( - 52 AS INTEGER ) + - - ( + col0 ) * - col2 FROM tab0 AS cor0 WHERE + ( + - ( 97 ) ) IS NULL
----

query I rowsort
SELECT ( + AVG ( - col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( + - col2 )
----
NULL

query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + col2 * 87 AS col2 FROM tab1
----
5133
5916
8352

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3704
SELECT - col2 * + col1 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT - col2 * + col1 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 63 * col2 AS col2 FROM tab0
----
2961
6237
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL CAST( NULL AS SIGNED ) * + 60 * - 60 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL CAST ( NULL AS INTEGER ) * + 60 * - 60 * col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT DISTINCT + 29 DIV + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + 29 / + COUNT ( * ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT 29 DIV - 12 col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3709
SELECT 29 / - 12 col0 FROM tab0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col2 FROM tab1 WHERE NOT - ( 43 ) + + 98 = + col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT - MAX( DISTINCT CAST( col0 AS SIGNED ) ) + + + MAX( ALL + col2 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3711
SELECT - MAX ( DISTINCT CAST ( col0 AS INTEGER ) ) + + + MAX ( ALL + col2 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 55 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3714
SELECT + MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT col1 AS col0, 10 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
10
47
10
5
10

query I rowsort
SELECT 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query II rowsort
SELECT col2 AS col2, 15 AS col1 FROM tab0
----
10
15
47
15
99
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT ALL + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT DISTINCT - col0 DIV col0 + - 89 AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - col0 / col0 + - 89 AS col1 FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3721
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3721
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL MAX( - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL MAX ( - col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL - COUNT( - 20 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - COUNT ( - 20 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * + col1 * - ( + col1 ) AS col2 FROM tab0
----
-1
-531441
-9261

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3728
SELECT MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ( - + 65 ) FROM tab1
----
-65
-65
-65

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN ( + col1 - - + col1 ) AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + ( + col0 ) AS col1 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 col0 FROM tab2 WHERE + + 15 IS NOT NULL
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 4 ) col1, col2 FROM tab0
----
4
10
4
47
4
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 * + col1 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 63 - 4 AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 70 - + 95 * + + col1 col2 FROM tab2 cor0
----
-4915
-6435
-7385

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + - ( ( - + COUNT( * ) ) ) - - + COUNT( * ) AS col0 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + - ( ( - + COUNT ( * ) ) ) - - + COUNT ( * ) AS col0 FROM tab1 cor0
----
6

query I rowsort
SELECT - 2 * col2 FROM tab0
----
-198
-20
-94

query II rowsort
SELECT ALL col2 AS col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL - 23 * COUNT( * ) FROM tab2 AS cor0 WHERE ( + + 65 ) NOT IN ( - CAST( + col0 AS SIGNED ) )
----
-69

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL - 23 * COUNT ( * ) FROM tab2 AS cor0 WHERE ( + + 65 ) NOT IN ( - CAST ( + col0 AS INTEGER ) )
----
-69

query I rowsort
SELECT DISTINCT 13 * col1 + col2 * col1 AS col0 FROM tab1 cor0
----
1526
360
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT + MIN( ALL - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3744
SELECT + MIN ( ALL - col1 ) FROM tab2 cor0
----
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + 3 FROM tab1 cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT col2 + - col0 * - 67 FROM tab1 WHERE NOT CAST( - + col1 AS SIGNED ) - + col2 >= - 48 + - - col1
----
3513
5754
6165

skipif mysql # not compatible
query I rowsort label-3747
SELECT col2 + - col0 * - 67 FROM tab1 WHERE NOT CAST ( - + col1 AS INTEGER ) - + col2 >= - 48 + - - col1
----
3513
5754
6165

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3748
SELECT COUNT ( * ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3749
SELECT CAST( + col2 AS SIGNED ) col2, 9 + - 83 FROM tab0
----
10
-74
47
-74
99
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3749
SELECT CAST ( + col2 AS INTEGER ) col2, 9 + - 83 FROM tab0
----
10
-74
47
-74
99
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3751
SELECT * FROM tab2 WHERE NOT + - 21 IN ( - 67 * + col0 / - + col0 * + CAST( 97 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3751
SELECT * FROM tab2 WHERE NOT + - 21 IN ( - 67 * + col0 / - + col0 * + CAST ( 97 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + MIN( + 51 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + MIN ( + 51 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3753
SELECT + 27 * COUNT( * ) DIV COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3753
SELECT + 27 * COUNT ( * ) / COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL CAST( + col1 AS SIGNED ) * - - col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL CAST ( + col1 AS INTEGER ) * - - col0 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT + 64 * col0 + - col1, - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
5547
-21
6207
-1
879
-81

query I rowsort
SELECT - 60 + - - ( col0 ) FROM tab2 AS cor0
----
-14
15
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT DISTINCT - 77 * 10 DIV + COUNT( * ) FROM tab2 AS cor0
----
-256

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - 77 * 10 / + COUNT ( * ) FROM tab2 AS cor0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + SUM( col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3758
SELECT + SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - col2 * - + col1 * - 68 FROM tab2 AS cor0
----
-209440
-264248
-79764

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + COUNT( * ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3760
SELECT + COUNT ( * ) FROM tab0, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + + + 34 * - + 62 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 58e9f3902c238258a25fa87e37d76735

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT col2 DIV - 82 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT col2 / - 82 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * - - col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3764
SELECT COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT 17 + - CAST( col1 AS SIGNED ) - col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-3765
SELECT 17 + - CAST ( col1 AS INTEGER ) - col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - 90 + - 79 FROM tab0 cor0
----
-169
-169
-169

query I rowsort
SELECT + + 98 + - + 25 AS col1 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT ALL + - 6 * - col1 AS col1 FROM tab0 AS cor0
----
126
486
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3769
SELECT ALL + 62 DIV 11 * + - COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL + 62 / 11 * + - COUNT ( * ) FROM tab2
----
-15

query I rowsort
SELECT - col1 + - 79 FROM tab2
----
-130
-146
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT + 50 * - COUNT( * ) FROM tab0 WHERE col1 IS NOT NULL
----
-150

skipif mysql # not compatible
query I rowsort label-3771
SELECT + 50 * - COUNT ( * ) FROM tab0 WHERE col1 IS NOT NULL
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3773
SELECT * FROM tab2 WHERE ( - 56 + + col0 + - col2 * + ( + - col1 ) ) IN ( col0, CAST( + col0 AS SIGNED ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-3773
SELECT * FROM tab2 WHERE ( - 56 + + col0 + - col2 * + ( + - col1 ) ) IN ( col0, CAST ( + col0 AS INTEGER ) + + col0 )
----

query I rowsort
SELECT DISTINCT 12 + - - col0 * col2 AS col1 FROM tab0
----
717
882
9615

query I rowsort
SELECT ALL - 35 + - 89 AS col1 FROM tab0
----
-124
-124
-124

query I rowsort
SELECT ALL - 30 + + + 77 AS col0 FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + 31 + - COUNT( * ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-3777
SELECT + 31 + - COUNT ( * ) AS col1 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT + COUNT( * ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3778
SELECT + COUNT ( * ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + - SUM( - col1 ) - COUNT( * ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + - SUM ( - col1 ) - COUNT ( * ) FROM tab0 AS cor0
----
100

query II rowsort
SELECT DISTINCT + + 51 AS col2, - col0 FROM tab2 AS cor0
----
51
-46
51
-64
51
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3781
SELECT DISTINCT - COUNT( * ) - - 62, MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
59
46

skipif mysql # not compatible
query II rowsort label-3781
SELECT DISTINCT - COUNT ( * ) - - 62, MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
59
46

query I rowsort
SELECT ALL 41 - + 69 + - - 62 AS col2 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT col1 DIV + 7 FROM tab0
----
0
11
3

skipif mysql # not compatible
query I rowsort label-3783
SELECT col1 / + 7 FROM tab0
----
0
11
3

query II rowsort
SELECT DISTINCT col0 * 34 AS col2, - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2958
-21
3298
-1
510
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3785
SELECT + col2 DIV 25 AS col0, + col0 + + 12 * + col1 FROM tab1 AS cor0
----
2
145
2
655
3
219

skipif mysql # not compatible
query II rowsort label-3785
SELECT + col2 / 25 AS col0, + col0 + + 12 * + col1 FROM tab1 AS cor0
----
2
145
2
655
3
219

query I rowsort
SELECT DISTINCT + + 96 * - col0 AS col2 FROM tab1 AS cor0
----
-4896
-8160
-8736

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 NOT IN ( + 8, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT CAST( 33 AS SIGNED ) FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3789
SELECT CAST ( 33 AS INTEGER ) FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL col0 + + 86 AS col0 FROM tab2 AS cor0 WHERE NULL > col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) >= + 57 + - + col2 * + ( + + col2 ) * + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 47 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT - SUM( DISTINCT 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3795
SELECT - SUM ( DISTINCT 32 ) FROM tab0
----
-32

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( 3 ) FROM tab1
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3800
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT DISTINCT - col1 DIV + + col0 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3801
SELECT DISTINCT - col1 / + + col0 col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL - 23 + + 38 + + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - 23 + + 38 + + COUNT ( * ) FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + 83 col0 FROM tab2
----
157
157
157

query I rowsort
SELECT col0 + 1 AS col0 FROM tab0
----
16
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT - ( + ( col1 ) ) * col1 - - col2 + + 69 DIV 91 * 40 FROM tab0
----
-431
-6514
98

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - ( + ( col1 ) ) * col1 - - col2 + + 69 / 91 * 40 FROM tab0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * col2 * 50 + col0 + + - col0 + - col0 col0 FROM tab0 AS cor0
----
126885
267203
26913

query I rowsort
SELECT + 54 * - - col0 FROM tab2 AS cor0
----
2484
3456
4050

query I rowsort
SELECT DISTINCT col1 * - ( - - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + - ( - 16 ) > - + 60 + - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3810
SELECT ALL - COUNT( * ) DIV 33 AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-3810
SELECT ALL - COUNT ( * ) / 33 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0
3

query I rowsort
SELECT - + 56 * - col2 - + - col0 AS col2 FROM tab1 AS cor0
----
3389
3899
5427

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT DISTINCT + + 31 DIV col1 FROM tab1 cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT + + 31 / col1 FROM tab1 cor0
----
0
2
6

query I rowsort
SELECT DISTINCT - 99 * + 71 + - + col2 AS col1 FROM tab0
----
-7039
-7076
-7128

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT - col0 DIV - 37 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3814
SELECT - col0 / - 37 FROM tab1
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT ALL 88 DIV + col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL 88 / + col0 FROM tab0
----
0
1
5

query I rowsort
SELECT + 41 * + + 57 FROM tab2
----
2337
2337
2337

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3817
SELECT + col1 AS col2, CAST( NULL AS SIGNED ) col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3817
SELECT + col1 AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL + ( - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + ( - COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT - CAST( - 58 AS SIGNED ) - + + col0 AS col1 FROM tab0
----
-29
-39
43

skipif mysql # not compatible
query I rowsort label-3819
SELECT - CAST ( - 58 AS INTEGER ) - + + col0 AS col1 FROM tab0
----
-29
-39
43

query I rowsort
SELECT DISTINCT - 47 * col0 + - - col2 AS col2 FROM tab1
----
-2301
-3936
-4209

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COUNT( * ) - 16 AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-3822
SELECT COUNT ( * ) - 16 AS col0 FROM tab2
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3823
SELECT ALL - col0 * - col1 + - col0 + - + 28 DIV - col0 AS col2, - col1 * + - CAST( 48 AS SIGNED ) * col2 * - 17 FROM tab0
----
0
-80784
1201
-3106512
1740
-171360

skipif mysql # not compatible
query II rowsort label-3823
SELECT ALL - col0 * - col1 + - col0 + - + 28 / - col0 AS col2, - col1 * + - CAST ( 48 AS INTEGER ) * col2 * - 17 FROM tab0
----
0
-80784
1201
-3106512
1740
-171360

query I rowsort
SELECT DISTINCT - + col0 + + 94 AS col0 FROM tab2 AS cor0
----
19
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 + + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 + + col2 >= NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( 45 + + col1 - + 32, col2, col2 + 74, - - col2 )
----

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab0
----
70

query I rowsort
SELECT ALL - col2 * - + col2 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT - - col0 + - ( - col1 ), 70 * + col0 * - - col2 AS col0, - 7 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL + col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 69 * + - ( col0 ) >= NULL
----

query II rowsort
SELECT 76 AS col1, col1 FROM tab1 AS cor0
----
76
14
76
47
76
5

query I rowsort
SELECT - 25 FROM tab1 cor0 WHERE NOT ( + col2 ) IS NULL
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, 52 col2 FROM tab1 AS cor0
----
51
52
85
52
91
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT ALL CAST( 39 AS SIGNED ) col2 FROM tab0 AS cor0
----
39
39
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3837
SELECT ALL CAST ( 39 AS INTEGER ) col2 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT + ( - 23 ) AS col2 FROM tab0 cor0
----
-23
-23
-23

query I rowsort
SELECT - 14 * - col0 FROM tab1
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT COUNT( DISTINCT - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3840
SELECT COUNT ( DISTINCT - col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3841
SELECT DISTINCT * FROM tab2 WHERE - col0 - col1 IN ( 88, - col1, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3841
SELECT DISTINCT * FROM tab2 WHERE - col0 - col1 IN ( 88, - col1, + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / - col2 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 39 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + ( - col0 ) IN ( ( - col0 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT 12 + - + COUNT( + col0 ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3846
SELECT 12 + - + COUNT ( + col0 ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT - 91 + + col0 * - - col0 FROM tab1 AS cor0
----
2510
7134
8190

query I rowsort
SELECT - 94 + + 88 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT 82 + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3849
SELECT 82 + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
73

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT DISTINCT CAST( col2 AS SIGNED ) + - col1 + + 53 * - + col2 AS col2 FROM tab2 AS cor0
----
-1247
-2157
-3083

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - col1 + + 53 * - + col2 AS col2 FROM tab2 AS cor0
----
-1247
-2157
-3083

query II rowsort
SELECT ALL - col2 AS col0, col1 + col1 AS col2 FROM tab1 AS cor0
----
-59
10
-68
94
-96
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT DISTINCT - 17 - + - COUNT( * ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT - 17 - + - COUNT ( * ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT col2 * + col0 - ( col2 ) FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3856
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + col2 + + CAST( + 80 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3856
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + col2 + + CAST ( + 80 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( ( col2 ) ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL + SUM( - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + SUM ( - col0 ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT ALL 5 + col0 * + col1 * - col1 + + 87 FROM tab2
----
-119554
-336583
-379364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col1 col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT - 23 * + col0 * col0 + - col2 AS col0 FROM tab2 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - - COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3862
SELECT - - COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT ALL + + 97 DIV + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + + 97 / + col2 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT ALL 10 AS col2, 68 AS col1 FROM tab0 AS cor0
----
10
68
10
68
10
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3866
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3868
SELECT - + SUM( ALL 34 ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
-102

skipif mysql # not compatible
query I rowsort label-3868
SELECT - + SUM ( ALL 34 ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
-102

query II rowsort
SELECT col1 AS col2, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ( ( + COUNT( * ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3870
SELECT ( ( + COUNT ( * ) ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col2 FROM tab2
----
36
36
36

query II rowsort
SELECT col0 AS col1, + col0 + + - ( col1 ) + - 24 FROM tab2
----
46
-29
64
-37
75
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab1 WHERE - + col1 BETWEEN - - col1 AND + 22 + 8
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - + 58 * - 9 + + 11 + col1 FROM tab1 AS cor0
----
538
547
580

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + - 46 * col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3880
SELECT COUNT ( * ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT - col0 * col0 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3375
-658503
-912673

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT COUNT( * ) * - - 17 + + 79 AS col0, - COUNT( * ) + 21 col0 FROM tab1 AS cor0
----
130
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3882
SELECT COUNT ( * ) * - - 17 + + 79 AS col0, - COUNT ( * ) + 21 col0 FROM tab1 AS cor0
----
130
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL CAST( - - col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT - col0 - - + 0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col0 - + - col1 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT DISTINCT + 49 - COUNT( * ) FROM tab1 WHERE NOT + col0 / - col1 + - col2 NOT BETWEEN NULL AND + 36
----
49

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT + 49 - COUNT ( * ) FROM tab1 WHERE NOT + col0 / - col1 + - col2 NOT BETWEEN NULL AND + 36
----
49

query I rowsort
SELECT 25 * + - col2 AS col1 FROM tab2
----
-1000
-1450
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT ALL - 74 * col1 DIV + col1 FROM tab1
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - 74 * col1 / + col1 FROM tab1
----
-74
-74
-74

query I rowsort
SELECT 43 * col2 * col1 FROM tab0
----
163701
4257
9030

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT + col0 + - col0 / - col0 AS col0 FROM tab1 WHERE NOT col1 * + + col1 IS NOT NULL
----

query I rowsort
SELECT - 73 + - 92 FROM tab0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL MIN( - 84 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL MIN ( - 84 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-84

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE - 42 BETWEEN NULL AND + - col0
----

query II rowsort
SELECT col2, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - - 65 AS col0 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT 70 * + 68 FROM tab2
----
4760
4760
4760

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3900
SELECT + + COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT - ( COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT + - 42 * - 88 - - CAST( - 7 AS SIGNED ) FROM tab0 AS cor0
----
3689
3689
3689

skipif mysql # not compatible
query I rowsort label-3902
SELECT + - 42 * - 88 - - CAST ( - 7 AS INTEGER ) FROM tab0 AS cor0
----
3689
3689
3689

query I rowsort
SELECT DISTINCT col0 + - + ( + col1 ) + + col1 + - col1 * - col1 - + col0 * 89 FROM tab1
----
-4292
-5799
-7455

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL + COUNT( * ) + - - 23 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL + COUNT ( * ) + - - 23 FROM tab0
----
26

query II rowsort
SELECT + col1, + col2 AS col0 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL col0 + - col0 * col0 + 24 - col2 * - col2 AS col2 FROM tab0
----
-7358
2023
513

query I rowsort
SELECT + col0 FROM tab2 WHERE + col1 * + 92 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + 76 + + col1 FROM tab0 cor0
----
157
77
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 9 IN ( - ( + - ( 16 ) ), - 86 * - col1 / 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col0 + - 63 col0 FROM tab0 AS cor0
----
642
807
9540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT - + col2 AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3911
SELECT - + col2 AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT - 62 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - 62 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL 32 * 75 + - COUNT( * ) col0 FROM tab2
----
2397

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3913
SELECT ALL 32 * 75 + - COUNT ( * ) col0 FROM tab2
----
2397

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 26 + 71 - col0 * col2 FROM tab2 AS cor0
----
-2463
-4253
-961

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT + col1 + + 44 DIV 47 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3916
SELECT + col1 + + 44 / 47 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL + - 13 FROM tab1 cor0 WHERE - col1 + - col0 IS NOT NULL
----
-13
-13
-13

query I rowsort
SELECT DISTINCT col2 * col1 * col0 - + col1 AS col2 FROM tab1 AS cor0
----
25070
290789
68530

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - col2 < NULL
----

query I rowsort
SELECT + col1 * 49 + + col0 FROM tab0 AS cor0
----
1116
146
3984

query II rowsort
SELECT DISTINCT - 12 AS col0, col1 * col0 AS col2 FROM tab2 AS cor0
----
-12
2346
-12
4928
-12
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 7 + + col1 + + - col2 * - + col1 * - col1 * + - col1 col2 FROM tab2 AS cor0
----
17444253
18261340
3050985

query I rowsort
SELECT + col0 * 84 AS col0 FROM tab0 cor0
----
1260
7308
8148

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL MIN( DISTINCT - 1 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL MIN ( DISTINCT - 1 ) AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT COUNT( * ) * - COUNT( ALL - + col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3925
SELECT COUNT ( * ) * - COUNT ( ALL - + col2 ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - MIN( - 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-3926
SELECT - MIN ( - 37 ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - + col0 )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ( + - col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 56 < NULL
----

query I rowsort
SELECT ALL + 34 * + col0 FROM tab0
----
2958
3298
510

query I rowsort
SELECT col0 * 17 * col1 * - col2 FROM tab0
----
-163251
-310590
-970785

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3934
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-3934
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT col2 * - - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT DISTINCT + 86 AS col2, + 71 + MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
86
20

skipif mysql # not compatible
query II rowsort label-3936
SELECT DISTINCT + 86 AS col2, + 71 + MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
86
20

query I rowsort
SELECT ALL + 19 * 95 FROM tab0 AS cor0
----
1805
1805
1805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + - - col1 * + + col2 + col0 col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + 8 * col2 FROM tab1 cor0
----
472
544
768

query III rowsort
SELECT * FROM tab0 cor0 WHERE 17 / 89 + + - col0 BETWEEN NULL AND col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col0 FROM tab0 AS cor0
----
38
38
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 18 ) * + 11 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE 28 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 21 * - + col2 + - col0 - - col2 FROM tab2
----
-1235
-506
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL + MAX( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 / 72 / + 87 * - + 80 + col0 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + MAX ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 / 72 / + 87 * - + 80 + col0 IS NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT CAST( + col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-3947
SELECT CAST ( + col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + + col0 + - + ( + 67 ) FROM tab1 AS cor0
----
-16
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

query I rowsort
SELECT ALL col0 * + + 5 FROM tab1
----
255
425
455

query I rowsort
SELECT + 38 + 62 AS col0 FROM tab2
----
100
100
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 38 col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 16
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3955
SELECT - COUNT( * ) col0, 66 FROM tab2 AS cor0
----
-3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3955
SELECT - COUNT ( * ) col0, 66 FROM tab2 AS cor0
----
-3
66

query II rowsort
SELECT col2 AS col2, 90 FROM tab0 AS cor0
----
10
90
47
90
99
90

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + 38 * + col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ( - COUNT( * ) ) * + - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3958
SELECT ( - COUNT ( * ) ) * + - COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT - 4 * - col1 AS col2 FROM tab2
----
204
268
308

query II rowsort
SELECT DISTINCT - col2 AS col0, - ( + - col0 ) AS col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL ( ( SUM( DISTINCT + col1 ) ) ) * - COUNT( * ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL ( ( SUM ( DISTINCT + col1 ) ) ) * - COUNT ( * ) AS col2 FROM tab1
----
-198

query I rowsort
SELECT + col1 * 8 * 77 * - 6 * + + col2 AS col0 FROM tab0
----
-14070672
-365904
-776160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL SUM( ALL - - CAST( - + ( 95 ) AS SIGNED ) ) col0 FROM tab2
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3963
SELECT ALL SUM ( ALL - - CAST ( - + ( 95 ) AS INTEGER ) ) col0 FROM tab2
----
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3964
SELECT DISTINCT + + 50 col2, + MIN( - + ( - 18 ) ) DIV SUM( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
----
50
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3964
SELECT DISTINCT + + 50 col2, + MIN ( - + ( - 18 ) ) / SUM ( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
----
50
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT col1 * 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT + + COUNT( * ) * + + 59 FROM tab0 WHERE ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + + COUNT ( * ) * + + 59 FROM tab0 WHERE ( - col2 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT col2 * - col0 + + col2 * - + 73, + col1 FROM tab2 WHERE NOT - 86 IS NULL
----
-2737
51
-5480
77
-8584
67

query I rowsort
SELECT ALL - col2 * + + col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ( 33 ) AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL ( + 32 ) FROM tab2 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + 47 * - COUNT( * ) AS col2 FROM tab0 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + 47 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + COUNT( * ) * + MIN( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3973
SELECT + COUNT ( * ) * + MIN ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT - - col1 DIV + - col0 AS col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT - - col1 / + - col0 AS col2 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - ( - - 30 ) * 33 * - col0 FROM tab0 AS cor0
----
-14850
-86130
-96030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT 79 * - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT 79 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - COUNT( * ) * - - SUM( + + col1 ) FROM tab0 cor0
----
-309

skipif mysql # not compatible
query I rowsort label-3977
SELECT - COUNT ( * ) * - - SUM ( + + col1 ) FROM tab0 cor0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT MAX( col2 ) FROM tab0 cor0 WHERE 90 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT MAX ( col2 ) FROM tab0 cor0 WHERE 90 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - 25 * - 73 + - + SUM( DISTINCT + col1 ) AS col1 FROM tab2
----
1630

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 25 * - 73 + - + SUM ( DISTINCT + col1 ) AS col1 FROM tab2
----
1630

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN - col0 AND + + col1
----
75
67
58

query I rowsort
SELECT ALL col2 * - + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 79 + + col2 * - + ( + 30 ) - - col0 + - col0 * + col2 FROM tab1
----
-6621
-7646
-8058

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT - COUNT( + col2 ) + + 44 AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - COUNT ( + col2 ) + + 44 AS col2 FROM tab1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT CAST( - 2 AS SIGNED ) - + 95 AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT CAST ( - 2 AS INTEGER ) - + 95 AS col2 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( + 75 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3986
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( + 75 ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT COUNT( * ) DIV + 29 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT COUNT ( * ) / + 29 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <= + col1
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <= + col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT + COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3989
SELECT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1, col0 col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT - - 24 * + + 38 FROM tab0 AS cor0
----
912
912
912

query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT ALL - 21 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3994
SELECT ALL - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3994
SELECT ALL - CAST ( CAST ( NULL AS REAL ) AS INTEGER ), COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT SUM( + + col0 ) - COUNT( * ) * + + 25 FROM tab1
----
152

skipif mysql # not compatible
query I rowsort label-3995
SELECT SUM ( + + col0 ) - COUNT ( * ) * + + 25 FROM tab1
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 3 * 78 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 3 * 78 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT - COUNT( * ) DIV + 90 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT - COUNT ( * ) / + 90 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3999
SELECT DISTINCT + 73 * + CAST( NULL AS DECIMAL ) * - 86 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT + 73 * + CAST ( NULL AS REAL ) * - 86 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 78 * ( col1 ), 68 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT - SUM( DISTINCT + ( - + ( col1 ) ) ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4001
SELECT - SUM ( DISTINCT + ( - + ( col1 ) ) ) AS col1 FROM tab2 cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT DISTINCT + 34 DIV + + col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT + 34 / + + col2 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4004
SELECT + + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL + SUM( col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + SUM ( col2 ) FROM tab0
----
156

query II rowsort
SELECT ALL 40, col2 AS col1 FROM tab2
----
40
23
40
40
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT - ( + MAX( - 69 ) ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4007
SELECT - ( + MAX ( - 69 ) ) AS col2 FROM tab0
----
69

query I rowsort
SELECT + col1 * - - col2 * col0 * + col2 AS col2 FROM tab0
----
182700
2683935
950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT + CAST( - 55 AS SIGNED ) * col1 + - ( - col2 ) FROM tab0
----
-1145
-4408
44

skipif mysql # not compatible
query I rowsort label-4009
SELECT + CAST ( - 55 AS INTEGER ) * col1 + - ( - col2 ) FROM tab0
----
-1145
-4408
44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - 38 FROM tab1
----
1938
3230
3458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * - col1 col2 FROM tab0
----
-3078
-38
-798

query I rowsort
SELECT - 87 * 21 * + col1 FROM tab1
----
-25578
-85869
-9135

onlyif mysql # DIV for integer division: 
query I rowsort label-4014
SELECT 44 DIV 8 AS col0 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4014
SELECT 44 / 8 AS col0 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT col0 DIV + + 56 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT col0 / + + 56 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4016
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / col0 + ( - 9 ) + - col2 * + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4016
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / col0 + ( - 9 ) + - col2 * + - CAST ( NULL AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL - SUM( col1 ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL - SUM ( col1 ) AS col1 FROM tab2 cor0
----
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT + col2 + + 2 + - col2 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4025
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT - 51 * - - COUNT( * ) FROM tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - 51 * - - COUNT ( * ) FROM tab1 cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ( + + MIN( ALL - 79 ) ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-79

skipif mysql # not compatible
query I rowsort label-4029
SELECT ( + + MIN ( ALL - 79 ) ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + - MAX( DISTINCT - ( - + col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + - MAX ( DISTINCT - ( - + col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4031
SELECT ALL * FROM tab2 WHERE NOT - 67 * + col1 NOT BETWEEN - + col0 AND CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4031
SELECT ALL * FROM tab2 WHERE NOT - 67 * + col1 NOT BETWEEN - + col0 AND CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - MAX( ALL + col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4032
SELECT - MAX ( ALL + col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4033
SELECT - COUNT ( * ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - - 25 * - 73 + + 14
----

query I rowsort
SELECT DISTINCT 76 + + - col2 + col0 FROM tab0
----
153
44
74

query II rowsort
SELECT - 25 - - - 5 AS col1, + col1 * 78 FROM tab1
----
-30
1092
-30
3666
-30
390

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col1 + + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT + col2 - CAST( + + 46 AS SIGNED ) * - + 62 col1 FROM tab2
----
2875
2892
2910

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4039
SELECT + col2 - CAST ( + + 46 AS INTEGER ) * - + 62 col1 FROM tab2
----
2875
2892
2910

query I rowsort
SELECT + - col1 AS col1 FROM tab0 AS cor0 WHERE - col2 IN ( - col0 * - + col1, + 12, 69 )
----

query I rowsort
SELECT - col1 + + col0 + 48 * - col1 AS col0 FROM tab0 AS cor0
----
-3954
-942
48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4042
SELECT + col0 / CAST( NULL AS SIGNED ) + + + 74 + - - CAST( + col2 AS DECIMAL ) 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-4042
SELECT + col0 / CAST ( NULL AS INTEGER ) + + + 74 + - - CAST ( + col2 AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT COUNT( + col1 ) + - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT COUNT ( + col1 ) + - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + col1 * + + col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT 10 * - + COUNT( * ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT 10 * - + COUNT ( * ) AS col2 FROM tab2
----
-30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT DISTINCT + COUNT( * ) * COUNT( - - col2 ) AS col2, 66 AS col1 FROM tab2 cor0
----
9
66

skipif mysql # not compatible
query II rowsort label-4047
SELECT DISTINCT + COUNT ( * ) * COUNT ( - - col2 ) AS col2, 66 AS col1 FROM tab2 cor0
----
9
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4048
SELECT DISTINCT + 39 AS col2, + MIN( ALL - col2 ) DIV + 64 AS col0 FROM tab1 AS cor0
----
39
-1

skipif mysql # not compatible
query II rowsort label-4048
SELECT DISTINCT + 39 AS col2, + MIN ( ALL - col2 ) / + 64 AS col0 FROM tab1 AS cor0
----
39
-1

query I rowsort
SELECT ALL + ( - - col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + ( + + COUNT( DISTINCT 60 ) ) * - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4050
SELECT + ( + + COUNT ( DISTINCT 60 ) ) * - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0 AS cor0
----
59
59
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4054
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 <> col2 + + - 34 + - col2 / - + CAST( - 95 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4054
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 <> col2 + + - 34 + - col2 / - + CAST ( - 95 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4056
SELECT ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + ( + - col2 ) AS col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT - 46 * + COUNT( * ) AS col0 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT - 46 * + COUNT ( * ) AS col0 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 95 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL COUNT ( * ) AS col2 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL - ( - + col2 ), col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4063
SELECT 48 + + col2 AS col0, 47 + - + col2 + CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab2 AS cor0
----
106
NULL
71
NULL
88
NULL

skipif mysql # not compatible
query II rowsort label-4063
SELECT 48 + + col2 AS col0, 47 + - + col2 + CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab2 AS cor0
----
106
NULL
71
NULL
88
NULL

query II rowsort
SELECT ALL 43, col2 * 8 AS col2 FROM tab2
----
43
184
43
320
43
464

query I rowsort
SELECT - - 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - 5 + - - COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4066
SELECT - 5 + - - COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
4

query I rowsort
SELECT ( col2 ) FROM tab0 WHERE col2 BETWEEN NULL AND + col1 / + col1 - - ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4068
SELECT ALL + + CAST( - CAST( col2 AS DECIMAL ) AS SIGNED ) AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

skipif mysql # not compatible
query II rowsort label-4068
SELECT ALL + + CAST ( - CAST ( col2 AS REAL ) AS INTEGER ) AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query II rowsort
SELECT DISTINCT - + col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 cor0 WHERE NOT 9 IS NULL
----
-46
-64
-75

query I rowsort
SELECT - col1 + + col2 + + + 11 + - - 10 AS col0 FROM tab0 AS cor0
----
-13
10
119

onlyif mysql # DIV for integer division: 
query II rowsort label-4072
SELECT ALL - col1, 46 DIV - col1 col2 FROM tab2 cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4072
SELECT ALL - col1, 46 / - col1 col2 FROM tab2 cor0
----
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col0 + + 2 col0 FROM tab1 AS cor0
----
39
46
82

query I rowsort
SELECT DISTINCT + ( + + 31 ) FROM tab1 AS cor0
----
31

query II rowsort
SELECT DISTINCT col2, - col2 AS col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4076
SELECT col1 AS col2, ( - col2 ) + col2 * + col0 * CAST( - 36 AS SIGNED ) FROM tab2
----
51
-38111
67
-156658
77
-92200

skipif mysql # not compatible
query II rowsort label-4076
SELECT col1 AS col2, ( - col2 ) + col2 * + col0 * CAST ( - 36 AS INTEGER ) FROM tab2
----
51
-38111
67
-156658
77
-92200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + + col0 * + 23 col0 FROM tab0
----
2035
2265
379

query II rowsort
SELECT - col1, col0 * col1 * - col1 AS col1 FROM tab2
----
-51
-119646
-67
-336675
-77
-379456

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT DISTINCT col0 * + + 43 * col0 + - 49 DIV 33 FROM tab0
----
325466
404586
9674

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT col0 * + + 43 * col0 + - 49 / 33 FROM tab0
----
325466
404586
9674

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL <> + ( + col0 )
----

query I rowsort
SELECT - ( + 79 ) FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT + 51 FROM tab2 AS cor0 WHERE + 99 IS NOT NULL
----
51
51
51

query I rowsort
SELECT ALL - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL - col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + col2 * + - col1 * + col2 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT col1 * - ( - - col0 ) * 84 FROM tab1 AS cor0
----
-35700
-359268
-59976

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT - - MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - - MIN ( - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT - - 80 / - CAST( NULL AS SIGNED ) + 22 + - 33 * + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT - - 80 / - CAST ( NULL AS INTEGER ) + 22 + - 33 * + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4090
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 78 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4090
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 78 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT ALL - col0 DIV 81 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - col0 / 81 AS col0 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL - SUM( + 52 ) * - COUNT( * ) AS col0 FROM tab1
----
468

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - SUM ( + 52 ) * - COUNT ( * ) AS col0 FROM tab1
----
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, 92 AS col1 FROM tab0
----
-10
92
-47
92
-99
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT MAX( + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4095
SELECT MAX ( + - col0 ) FROM tab2
----
-46

query I rowsort
SELECT 45 * + 10 FROM tab0
----
450
450
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT - COUNT( DISTINCT - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4097
SELECT - COUNT ( DISTINCT - col2 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL COUNT( ALL - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL COUNT ( ALL - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT + SUM( + 11 ) FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-4100
SELECT + SUM ( + 11 ) FROM tab0 cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT + col2 DIV + - col2 - 79 * + col0 AS col2 FROM tab0 AS cor0
----
-1186
-6874
-7664

skipif mysql # not compatible
query I rowsort label-4101
SELECT + col2 / + - col2 - 79 * + col0 AS col2 FROM tab0 AS cor0
----
-1186
-6874
-7664

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT 35 * COUNT( * ) col2 FROM tab2
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4102
SELECT 35 * COUNT ( * ) col2 FROM tab2
----
105

query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 * col0 AS col0 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT 41 * - 7 FROM tab0
----
-287
-287
-287

query I rowsort
SELECT 47 + - col2 FROM tab2
----
-11
24
7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) IN ( ( 14 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * 21 FROM tab0
----
1827
2037
315

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 49 + + 75 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > ( col0 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL - 29 * CAST( 19 * + col1 AS SIGNED ) col0 FROM tab0
----
-11571
-44631
-551

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4110
SELECT ALL - 29 * CAST ( 19 * + col1 AS INTEGER ) col0 FROM tab0
----
-11571
-44631
-551

query III rowsort
SELECT * FROM tab2 WHERE + ( + col1 ) * 28 BETWEEN - 3 * + 73 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT DISTINCT 13 + MIN( ALL - col1 ) col2 FROM tab2 WHERE NOT col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4112
SELECT DISTINCT 13 + MIN ( ALL - col1 ) col2 FROM tab2 WHERE NOT col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT MAX( ( col1 ) ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4113
SELECT MAX ( ( col1 ) ) AS col2 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 * + col0 col0 FROM tab2
----
-3220
-4480
-5250

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT ALL ( - 2 ) DIV - ( + 1 ) FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL ( - 2 ) / - ( + 1 ) FROM tab1
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT ALL 73 DIV 93 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL 73 / 93 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4118
SELECT + COUNT ( * ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( + col1 + + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( + col1 + + col0 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col0 FROM tab1
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT + 87 DIV col0 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 87 / col0 AS col2 FROM tab0
----
0
1
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT IN ( 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT 49 DIV col1 FROM tab0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-4123
SELECT 49 / col1 FROM tab0
----
0
2
49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < col1
----

query I rowsort
SELECT ALL - 99 * - col0 FROM tab1 WHERE NULL < + 98
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 65 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT - ( - col1 ) DIV 91 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT - ( - col1 ) / 91 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 72 * + col0 + col0 FROM tab2 WHERE NOT ( + 15 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND ( 37 * 54 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT MAX( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4132
SELECT MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * - col2 col0 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT 27 + - 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL - 59 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT BETWEEN col1 AND + 63
----

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - 59 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN col1 AND + 63
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( 2 ) ) NOT BETWEEN ( + col0 + + col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT col0 DIV + col2 AS col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT col0 / + col2 AS col2 FROM tab1 cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> + 74 / 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT + CAST( NULL AS SIGNED ) / + 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT + CAST ( NULL AS INTEGER ) / + 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * 66 )
----

query I rowsort
SELECT ALL + - 19 * - 92 FROM tab1 AS cor0
----
1748
1748
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + ( + 70 ) FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT COUNT( * ) * + + 80 * - 1 AS col1 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT COUNT ( * ) * + + 80 * - 1 AS col1 FROM tab0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT col2 DIV + 84 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT col2 / + 84 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2 WHERE col1 NOT BETWEEN - col1 * - col0 AND NULL
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT COUNT( * ) * 74 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( * ) * 74 FROM tab1
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL + COUNT( * ) + + COUNT( 45 ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + COUNT ( * ) + + COUNT ( 45 ) AS col2 FROM tab2
----
6

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE 57 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4151
SELECT ALL COUNT( * ) DIV - MIN( ALL 64 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL COUNT ( * ) / - MIN ( ALL 64 ) FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4152
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col1 + + 77 * 48 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT CAST ( NULL AS REAL ) * + col1 + + 77 * 48 FROM tab1
----
NULL

query I rowsort
SELECT col0 * + 97 AS col1 FROM tab2
----
4462
6208
7275

query I rowsort
SELECT DISTINCT - 65 + col2 AS col1 FROM tab2
----
-25
-42
-7

query I rowsort
SELECT DISTINCT 18 * - col0 FROM tab1 WHERE - 41 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 16 NOT IN ( col2 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT + CAST( - 30 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-4157
SELECT + CAST ( - 30 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT - ( + col1 ) DIV col1 + col0 AS col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-4158
SELECT - ( + col1 ) / col1 + col0 AS col0 FROM tab2
----
45
63
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT ALL - COUNT( * ) * - COUNT( * ) DIV 16 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - COUNT ( * ) * - COUNT ( * ) / 16 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 46 + - - 91 * - col2 FROM tab0 AS cor0
----
-4323
-9055
-956

query I rowsort
SELECT ALL 17 * - + col1 AS col1 FROM tab1 AS cor0
----
-238
-799
-85

query I rowsort
SELECT DISTINCT - col1 * col1 - 13 FROM tab1 AS cor0
----
-209
-2222
-38

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 NOT IN ( 21 )
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT + col1 DIV 52 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT + col1 / 52 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 79 BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + 61 col2 FROM tab2 AS cor0
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + MAX( 62 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
62

skipif mysql # not compatible
query I rowsort label-4167
SELECT + MAX ( 62 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT DISTINCT + col1 DIV - + col1 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT + col1 / - + col1 AS col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - 89 + - + col2 col2 FROM tab2
----
4516
5905
6813

query I rowsort
SELECT 93 * col1 AS col1 FROM tab0
----
1953
7533
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 / + ( - 89 ) * - 98 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 / + ( - 89 ) * - 98 ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - COUNT( * ) + 28 AS col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4174
SELECT - COUNT ( * ) + 28 AS col2 FROM tab2 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT + col2 + CAST( - col1 AS SIGNED ) + - ( + 44 ) * - 23 AS col2 FROM tab2 AS cor0
----
1003
975
984

skipif mysql # not compatible
query I rowsort label-4175
SELECT + col2 + CAST ( - col1 AS INTEGER ) + - ( + 44 ) * - 23 AS col2 FROM tab2 AS cor0
----
1003
975
984

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 80 ) NOT BETWEEN - col0 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= - col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT MAX( ALL col2 ) + 41 + - 50 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4178
SELECT MAX ( ALL col2 ) + 41 + - 50 FROM tab1 AS cor0
----
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT col0 * - - 83 - - 55 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3873
5367
6280

query III rowsort
SELECT * FROM tab1 WHERE - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT - col1 DIV - - 30 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT - col1 / - - 30 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 43 * - col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col1 BETWEEN + col2 AND ( 41 + 28 )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT + 62 * col0 DIV + + col0 AS col0 FROM tab0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-4185
SELECT + 62 * col0 / + + col0 AS col0 FROM tab0
----
62
62
62

query I rowsort
SELECT ALL ( + + col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT - 41 * - col2 FROM tab0 AS cor0
----
1927
4059
410

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - 24 )
----

query I rowsort
SELECT ALL ( + 84 ) AS col0 FROM tab2
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT MIN( + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT MIN ( + col2 ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + col0 / - + 45
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 55 * + 27 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT 88 + - + COUNT( * ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4195
SELECT 88 + - + COUNT ( * ) FROM tab0 AS cor0
----
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 46 IS NOT NULL
----

query I rowsort
SELECT ALL - + 48 * col2 AS col2 FROM tab0 cor0
----
-2256
-4752
-480

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT ALL SUM( - col2 ) DIV - 18 AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL SUM ( - col2 ) / - 18 AS col0 FROM tab1
----
12

query I rowsort
SELECT DISTINCT col0 + + col2 + + - 61 FROM tab1
----
83
86
98

query II rowsort
SELECT - 2, + col1 + + - col2 * - + col1 AS col0 FROM tab1
----
-2
1358
-2
300
-2
3243

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT + CAST( NULL AS SIGNED ) * - COUNT( - 48 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( - 48 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT MAX( - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4204
SELECT MAX ( - + col2 ) FROM tab1
----
-59

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - + col2 FROM tab1
----
-118
-136
-192

query II rowsort
SELECT - 32 AS col0, + 22 - - - col2 AS col0 FROM tab1 AS cor0
----
-32
-37
-32
-46
-32
-74

query I rowsort
SELECT ALL - 17 * ( + + 35 ) + + - col0 FROM tab1 cor0
----
-646
-680
-686

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

query II rowsort
SELECT + col1 + - - col0, col1 FROM tab2
----
141
77
142
67
97
51

query I rowsort
SELECT DISTINCT + ( + 9 ) AS col2 FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE ( - 6 ) > + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT 13 * - - MAX( DISTINCT - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-104

skipif mysql # not compatible
query I rowsort label-4213
SELECT 13 * - - MAX ( DISTINCT - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-104

query I rowsort
SELECT DISTINCT + 16 + + + 8 FROM tab1 AS cor0
----
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - 53 )
----

query I rowsort
SELECT + + col0 + + ( col0 ) * - 87 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - col2 * - 44, - 41 + - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL - ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 - - - col2 + - - 58 AS col0 FROM tab2 AS cor0
----
-22
-58
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT - - AVG ( + CAST( - ( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - - AVG ( + CAST ( - ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 75 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
75
75
75

query I rowsort
SELECT col2 * - + col0 + + 2 FROM tab0 AS cor0
----
-703
-868
-9601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 / - col2 * 33 - + 20 col1, - 60 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4224
SELECT - CAST( NULL AS SIGNED ), col1 * 93 AS col1 FROM tab0
----
NULL
1953
NULL
7533
NULL
93

skipif mysql # not compatible
query II rowsort label-4224
SELECT - CAST ( NULL AS INTEGER ), col1 * 93 AS col1 FROM tab0
----
NULL
1953
NULL
7533
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT 67 * + + MAX( ALL - 46 ) FROM tab1
----
-3082

skipif mysql # not compatible
query I rowsort label-4225
SELECT 67 * + + MAX ( ALL - 46 ) FROM tab1
----
-3082

query I rowsort
SELECT 59 * - col2 FROM tab2
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4227
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT + col2 * 0 * - col0 * - col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT - 3 DIV + + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4229
SELECT - 3 / + + col1 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL - col1 * + - col0 * + col0 AS col2, col1 FROM tab1
----
36125
5
36414
14
389207
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4231
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4231
SELECT - COUNT ( * ) / + COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 91 * col2 AS col1 FROM tab1
----
5369
6188
8736

query I rowsort
SELECT + col2 * + 76 * + ( - - col2 ) AS col0 FROM tab1
----
264556
351424
700416

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN + ( ( - 13 ) ) + + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL COUNT( * ) * + + 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL COUNT ( * ) * + + 40 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + SUM( DISTINCT - 57 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-4236
SELECT + SUM ( DISTINCT - 57 ) FROM tab1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4237
SELECT - col0 * - col2 * + CAST( NULL AS SIGNED ), - col0 + - - col1 - + + 28 * + 48 AS col2 FROM tab2
----
NULL
-1331
NULL
-1339
NULL
-1352

skipif mysql # not compatible
query II rowsort label-4237
SELECT - col0 * - col2 * + CAST ( NULL AS INTEGER ), - col0 + - - col1 - + + 28 * + 48 AS col2 FROM tab2
----
NULL
-1331
NULL
-1339
NULL
-1352

query I rowsort
SELECT col2 * + 17 FROM tab1 AS cor0 WHERE NOT 54 NOT BETWEEN col1 * + col1 + 90 AND + 45 + + + col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT + - 44 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT ALL 80 + 83 DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL 80 + 83 / - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT 26 * - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
234

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT 26 * - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 NOT IN ( + 3, col0 * - ( - 96 ) * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + COUNT ( * ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT + COUNT( * ) FROM tab1 cor0 WHERE 32 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE 32 + - col2 IS NULL
----
0

query I rowsort
SELECT - + 32 FROM tab2 cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT + - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4247
SELECT + - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + 70 * + 87 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
6090
6090
6090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT - col1 / + col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL <= ( - - col1 )
----

skipif mysql # not compatible
query I rowsort label-4251
SELECT - col1 / + col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL <= ( - - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT DISTINCT 52 DIV - 79 + - MIN( + - col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT 52 / - 79 + - MIN ( + - col2 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT - 15 + + col0 * + col0 AS col2 FROM tab2
----
2101
4081
5610

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 54 <= + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL = col0 - col2
----

query I rowsort
SELECT - 90 * col0 AS col2 FROM tab2 AS cor0
----
-4140
-5760
-6750

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4257
SELECT - CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT - CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - + 58 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT 0 + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4260
SELECT 0 + COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT ALL + + col0 - + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + + col0 - + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - - 18 * - col2 + - + col2 FROM tab2 AS cor0
----
-1102
-437
-760

query II rowsort
SELECT + col2 AS col0, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COUNT( - - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4264
SELECT COUNT ( - - col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col2 * + 79 FROM tab2 AS cor0
----
-1817
-3160
-4582

query II rowsort
SELECT ALL + col0, col0 + - + col1 + - col2 AS col2 FROM tab0 AS cor0
----
15
-113
87
56
97
-3

query I rowsort
SELECT + - 96 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT DISTINCT + ( 34 ) DIV - 34 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + ( 34 ) / - 34 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - col0 AS col2, - 68 AS col0 FROM tab1 cor0
----
-51
-68
-85
-68
-91
-68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4271
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( - + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4271
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( - + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 31 + + + 9 + - + col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT SUM( ALL + 71 ) AS col0 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-4273
SELECT SUM ( ALL + 71 ) AS col0 FROM tab0
----
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 25 col0 FROM tab2
----
1150
1600
1875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT DISTINCT - 37 * col2 * - CAST( - col1 AS SIGNED ) FROM tab0
----
-140859
-3663
-7770

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - 37 * col2 * - CAST ( - col1 AS INTEGER ) FROM tab0
----
-140859
-3663
-7770

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4277
SELECT - 88 DIV - COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4277
SELECT - 88 / - COUNT ( * ) FROM tab1
----
29

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0 + + col2 * - - col1, 4 * + 69 )
----

query II rowsort
SELECT ( col1 ), + 3 AS col0 FROM tab1
----
14
3
47
3
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT MIN( col0 ) * + 90 AS col2 FROM tab0 AS cor0
----
1350

skipif mysql # not compatible
query I rowsort label-4280
SELECT MIN ( col0 ) * + 90 AS col2 FROM tab0 AS cor0
----
1350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 79 - - col0 > + col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT DISTINCT CAST( - + 72 AS SIGNED ) FROM tab0 AS cor0 WHERE + 24 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT CAST ( - + 72 AS INTEGER ) FROM tab0 AS cor0 WHERE + 24 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT MAX( DISTINCT 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-4284
SELECT MAX ( DISTINCT 95 ) FROM tab1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT col2 + CAST( 39 AS SIGNED ) + 48 FROM tab2
----
110
127
145

skipif mysql # not compatible
query I rowsort label-4285
SELECT col2 + CAST ( 39 AS INTEGER ) + 48 FROM tab2
----
110
127
145

query I rowsort
SELECT ( + 91 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col0 FROM tab2
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT - col2 * col0 DIV + col2 + + - col0 + + + 80 * col0 FROM tab2 AS cor0
----
3588
4992
5850

skipif mysql # not compatible
query I rowsort label-4288
SELECT - col2 * col0 / + col2 + + - col0 + + + 80 * col0 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT ALL + col1 + col1 * col1 DIV + + ( - col2 ) FROM tab2 AS cor0
----
-10
-62
-71

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + col1 + col1 * col1 / + + ( - col2 ) FROM tab2 AS cor0
----
-10
-62
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4290
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4290
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4291
SELECT - - 86 + + COUNT( * ) / CAST( NULL AS SIGNED ) + - 80 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT - - 86 + + COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 80 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4292
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4292
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + col0 col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL - 48 + + col0 FROM tab2
----
-2
16
27

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > - col2 + - + ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT + 87 DIV - 88 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4296
SELECT + 87 / - 88 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - COUNT( ALL - 79 ) * + - 95 AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-4297
SELECT - COUNT ( ALL - 79 ) * + - 95 AS col0 FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4298
SELECT COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL + CAST( NULL AS SIGNED ) + - 97 * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + CAST ( NULL AS INTEGER ) + - 97 * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL + 21 + + - col2 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + 21 + + - col2 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT 24 - + COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4301
SELECT 24 - + COUNT ( * ) FROM tab2 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 57 AS col0 FROM tab1 AS cor0 WHERE + 0 >= + - col0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - COUNT( * ) + 49 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-4305
SELECT - COUNT ( * ) + 49 FROM tab1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT ( - - COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4306
SELECT DISTINCT ( - - COUNT ( * ) ) col1 FROM tab1
----
3

query I rowsort
SELECT + 91 * 40 AS col1 FROM tab2
----
3640
3640
3640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - - col2 * 1, - ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - + MAX( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4309
SELECT - + MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 27 * - col0 BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4311
SELECT ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + - COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4312
SELECT + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4313
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT DISTINCT COUNT( * ) * - ( + - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT COUNT ( * ) * - ( + - COUNT ( * ) ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4315
SELECT COUNT ( * ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4316
SELECT + CAST( NULL AS SIGNED ), + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4316
SELECT + CAST ( NULL AS INTEGER ), + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT 58 AS col2, col0 FROM tab1
----
58
51
58
85
58
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * + col0 col2 FROM tab1
----
3366
5610
6006

query III rowsort
SELECT ALL - 0 AS col0, + ( ( + + 11 ) ), - col1 + - col2 AS col2 FROM tab2
----
9 values hashing to 042757564f5a60bdb68b6e538b5e9cfc

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT - MAX( DISTINCT + 87 ) + + - 33 - - + 34 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT - MAX ( DISTINCT + 87 ) + + - 33 - - + 34 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT 11 * + - SUM( ALL - 89 ) AS col0 FROM tab0
----
2937

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT 11 * + - SUM ( ALL - 89 ) AS col0 FROM tab0
----
2937

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT + 30 AS col0, - COUNT( * ) + - 90 FROM tab0 AS cor0
----
30
-93

skipif mysql # not compatible
query II rowsort label-4323
SELECT + 30 AS col0, - COUNT ( * ) + - 90 FROM tab0 AS cor0
----
30
-93

query II rowsort
SELECT col1, 39 FROM tab1 AS cor0
----
14
39
47
39
5
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT DISTINCT + ( CAST( - col2 AS SIGNED ) ) * + ( - col1 ) + + 22 FROM tab1
----
1366
317
3218

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT + ( CAST ( - col2 AS INTEGER ) ) * + ( - col1 ) + + 22 FROM tab1
----
1366
317
3218

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT DISTINCT MIN( 23 ) + - 71 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT MIN ( 23 ) + - 71 FROM tab0
----
-48

query I rowsort
SELECT DISTINCT + 97 * - + col1 AS col1 FROM tab0
----
-2037
-7857
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + + 73 ) col0 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL + - MIN( DISTINCT 18 ) AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL + - MIN ( DISTINCT 18 ) AS col1 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 < - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT + + col2 DIV + + col1 AS col2 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4333
SELECT + + col2 / + + col1 AS col2 FROM tab1 cor0
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4334
SELECT DISTINCT + ( - col0 ) * - 22 AS col2, CAST( NULL AS SIGNED ) * + col2 * col1 col2 FROM tab1 AS cor0
----
1122
NULL
1870
NULL
2002
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4334
SELECT DISTINCT + ( - col0 ) * - 22 AS col2, CAST ( NULL AS INTEGER ) * + col2 * col1 col2 FROM tab1 AS cor0
----
1122
NULL
1870
NULL
2002
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE - 50 * col1 IS NULL AND NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE - 50 * col1 IS NULL AND NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col0 + 33 * + col0 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT col1 + + - CAST( - 74 AS SIGNED ) - + col1 AS col1 FROM tab0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4337
SELECT col1 + + - CAST ( - 74 AS INTEGER ) - + col1 AS col1 FROM tab0
----
74
74
74

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT + 65 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4340
SELECT - CAST( - MIN( - col1 ) AS DECIMAL ) FROM tab0 WHERE + + col2 + col0 * + - 42 / 92 * - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT - CAST ( - MIN ( - col1 ) AS REAL ) FROM tab0 WHERE + + col2 + col0 * + - 42 / 92 * - - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL + + ( col0 ) + - col2 AS col2 FROM tab1 WHERE col0 + + 18 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT 41 + - col0 FROM tab1 AS cor0
----
-10
-44
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT COUNT( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4344
SELECT COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col2 - 89 FROM tab1 AS cor0
----
-21
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + col1 * - + 62 FROM tab2
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - ( - SUM( - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4349
SELECT - ( - SUM ( - col1 ) ) FROM tab2
----
-195

query I rowsort
SELECT + col2 * + - col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - + COUNT( + col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4351
SELECT - + COUNT ( + col1 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 35 * - + col0 - col0 FROM tab2 AS cor0
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL - MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT ( - 18 ) AS col0 FROM tab0 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, col0, 20, - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 73 AS col2, 60 AS col1 FROM tab0
----
73
60
73
60
73
60

query I rowsort
SELECT DISTINCT col0 * - 77 AS col0 FROM tab0
----
-1155
-6699
-7469

query III rowsort
SELECT ALL * FROM tab0 WHERE 8 IS NULL
----

query I rowsort
SELECT ALL ( + 72 ) AS col1 FROM tab2
----
72
72
72

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 92 + + - col2 FROM tab1
----
-151
-160
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - 7 * - MAX( DISTINCT col1 ) FROM tab0
----
567

skipif mysql # not compatible
query I rowsort label-4364
SELECT - 7 * - MAX ( DISTINCT col1 ) FROM tab0
----
567

query I rowsort
SELECT + col2 * - col1 * col0 FROM tab1 cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT - - col0 * + - col1 AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab1 cor0
----
-425
-4277
-714

query II rowsort
SELECT ALL - 22, + 46 AS col1 FROM tab0 cor0
----
-22
46
-22
46
-22
46

query I rowsort
SELECT DISTINCT + - 99 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-99

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4373
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
-3

query II rowsort
SELECT + col2 AS col1, ( col0 ) AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 38 NOT IN ( - - 39, - col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col2 FROM tab1 cor0
----
80

query I rowsort
SELECT 59 * - col2 FROM tab0 AS cor0
----
-2773
-5841
-590

query III rowsort
SELECT * FROM tab0 WHERE - ( + col2 ) BETWEEN - col0 + + 67 - 96 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4379
SELECT * FROM tab1 WHERE - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4379
SELECT * FROM tab1 WHERE - CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + MIN( ALL col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4380
SELECT + MIN ( ALL col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT ALL - 59 + - col1 * ( + col0 ) * - col2 - + + 41 + 79 * - CAST( col2 AS SIGNED ) FROM tab0
----
1682
17380
53292

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - 59 + - col1 * ( + col0 ) * - col2 - + + 41 + 79 * - CAST ( col2 AS INTEGER ) FROM tab0
----
1682
17380
53292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4382
SELECT DISTINCT + 26 + 91 + - COUNT( * ) DIV 98 AS col0 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT + 26 + 91 + - COUNT ( * ) / 98 AS col0 FROM tab0
----
117

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col0 <= 31 / col0 AND NOT + col1 * 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL - CAST( NULL AS SIGNED ) / col1 + - 25 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 + - 25 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4385
SELECT * FROM tab1 AS cor0 WHERE 88 NOT BETWEEN CAST( NULL AS SIGNED ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4385
SELECT * FROM tab1 AS cor0 WHERE 88 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - ( 12 ) ) FROM tab2 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL + + MAX( ALL 83 ) AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + + MAX ( ALL 83 ) AS col1 FROM tab1 AS cor0
----
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 43 + - - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 10 ) col2 FROM tab2
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - + col1
----

query I rowsort
SELECT - 0 * col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 92 / + col1 + + col2 - - 4 * + col1 AS col1 FROM tab2 WHERE NOT - col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4394
SELECT * FROM tab0 AS cor0 WHERE NOT - 7 + - col1 * - - col0 NOT BETWEEN ( + CAST( - col2 AS SIGNED ) * + 26 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4394
SELECT * FROM tab0 AS cor0 WHERE NOT - 7 + - col1 * - - col0 NOT BETWEEN ( + CAST ( - col2 AS INTEGER ) * + 26 ) AND NULL
----

query I rowsort
SELECT ALL + - 45 AS col2 FROM tab1 cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 * + - col2 * col0 AS col0, - col1 col0 FROM tab0 AS cor0
----
-18270
-21
-57105
-81
-9603
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + ( + - COUNT( col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4397
SELECT + ( + - COUNT ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col1 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL ( + + col1 ) + col1 AS col2 FROM tab1
----
10
28
94

query III rowsort
SELECT * FROM tab2 WHERE NOT + 35 + 65 - + 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT COUNT ( * ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL - COUNT( DISTINCT + 32 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - COUNT ( DISTINCT + 32 ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col2 + + + 47 FROM tab0
----
146
57
94

query I rowsort
SELECT + - 69 + - col1 AS col1 FROM tab0 AS cor0
----
-150
-70
-90

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL IN ( - 47, col2 )
----

query I rowsort
SELECT - + 54 + + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-105
-121
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT - MIN( ALL - 58 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT - MIN ( ALL - 58 ) FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + MIN( ALL + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4408
SELECT + MIN ( ALL + col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT 77 - + - 5 AS col0 FROM tab2 AS cor0
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col0 * 28 - + col1 + + - 13 + 23 FROM tab1 AS cor0
----
1424
2385
2511

query II rowsort
SELECT col0 - ( + col0 ), - ( - col1 ) AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT ALL - + ( 96 ) + + - 99 FROM tab2 AS cor0
----
-195
-195
-195

query I rowsort
SELECT + - 90 + - + col2 - + col2 FROM tab2 cor0
----
-136
-170
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT + col2 BETWEEN - 54 * + ( + + col0 ) AND + col0 )
----
15
81
47
97
1
99

query I rowsort
SELECT - - 21 + - 83 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT col1 - - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + ( - ( + SUM( 35 ) ) ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + ( - ( + SUM ( 35 ) ) ) FROM tab1 AS cor0
----
-105

onlyif mysql # DIV for integer division: 
query II rowsort label-4420
SELECT 99 + - ( + + ( 80 ) ) DIV + col1, col0 FROM tab1 AS cor0
----
83
85
94
51
98
91

skipif mysql # not compatible
query II rowsort label-4420
SELECT 99 + - ( + + ( 80 ) ) / + col1, col0 FROM tab1 AS cor0
----
83
85
94
51
98
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - SUM( DISTINCT + 82 ) AS col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - SUM ( DISTINCT + 82 ) AS col1 FROM tab1 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < col0
----

query II rowsort
SELECT DISTINCT col0, col1 * 95 FROM tab1
----
51
1330
85
475
91
4465

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT SUM( ALL - 91 ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-4425
SELECT SUM ( ALL - 91 ) FROM tab0
----
-273

query II rowsort
SELECT DISTINCT - col1, + col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT ALL - col2 AS col1, col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT - col0 AS col1, ( + - 32 ) AS col1 FROM tab2 AS cor0
----
-46
-32
-64
-32
-75
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4429
SELECT DISTINCT - COUNT( * ) * - 37 AS col2, COUNT( * ) + + 91 DIV - SUM( DISTINCT + ( + col1 ) ), + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
111
3
-3

skipif mysql # not compatible
query III rowsort label-4429
SELECT DISTINCT - COUNT ( * ) * - 37 AS col2, COUNT ( * ) + + 91 / - SUM ( DISTINCT + ( + col1 ) ), + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
111
3
-3

query II rowsort
SELECT DISTINCT + + col0, 43 * + - 47 FROM tab2 AS cor0
----
46
-2021
64
-2021
75
-2021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4431
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col2, + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4431
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT + - col2 AS col2 FROM tab2 WHERE NOT + 57 IS NOT NULL
----

query I rowsort
SELECT ALL + 14 * + col2 * 23 AS col1 FROM tab2
----
12880
18676
7406

query I rowsort
SELECT ALL col2 * + + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT COUNT( - col2 ) * 36 AS col1 FROM tab0 cor0
----
108

skipif mysql # not compatible
query I rowsort label-4435
SELECT COUNT ( - col2 ) * 36 AS col1 FROM tab0 cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT - COUNT( * ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4436
SELECT - COUNT ( * ) col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + SUM( + - col1 ) col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4437
SELECT DISTINCT + SUM ( + - col1 ) col1 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + 33 * col1 AS col0, col1 AS col1 FROM tab0 cor0
----
2673
81
33
1
693
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4439
SELECT - ( - col0 ) - col1 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
37
NULL
44
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-4439
SELECT - ( - col0 ) - col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
37
NULL
44
NULL
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT DISTINCT - 65 + - col2 + - + col2 * + col0 AS col0 FROM tab2
----
-1146
-2665
-4473

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT COUNT( * ) col1, + COUNT( 7 ) + - 50 FROM tab0
----
3
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4443
SELECT COUNT ( * ) col1, + COUNT ( 7 ) + - 50 FROM tab0
----
3
-47

query I rowsort
SELECT ALL + 32 + + + 76 FROM tab1
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - COUNT( * ) + + 93 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - COUNT ( * ) + + 93 FROM tab1
----
90

query II rowsort
SELECT ALL + 82 + + 68 + + 53 AS col2, 23 FROM tab0
----
203
23
203
23
203
23

query II rowsort
SELECT col2 AS col2, + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 1 + - 43 FROM tab2 AS cor0
----
-44
-44
-44

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( 16 ) AS col0 FROM tab1 AS cor0
----
16
16
16

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - + 59 IS NULL
----

query II rowsort
SELECT DISTINCT 43 AS col0, + col1 - - col1 FROM tab1 AS cor0
----
43
10
43
28
43
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 51 IN ( - col0 * + - 42 + + col0 + 73 * - 39 + - - col1 * + col2, + ( - col0 ) * - 25, - col2 + - 84 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col0 ) col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT 7 DIV - + col0 * + col0 + col0 - - col0 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4456
SELECT 7 / - + col0 * + col0 + col0 - - col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL + 86 + SUM( ALL - + col0 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + 86 + SUM ( ALL - + col0 ) FROM tab2
----
-99

query I rowsort
SELECT DISTINCT - col1 + col1 + 28 FROM tab2
----
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, 72 + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
25
87
62
97
-27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 * - 5 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT + 42 DIV - col2 - + col2 FROM tab2 AS cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-4462
SELECT + 42 / - col2 - + col2 FROM tab2 AS cor0
----
-24
-41
-58

query I rowsort
SELECT - col0 - + col2 AS col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-4464
SELECT DISTINCT 69 col2, + MAX( DISTINCT + + col1 ) FROM tab2
----
69
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4464
SELECT DISTINCT 69 col2, + MAX ( DISTINCT + + col1 ) FROM tab2
----
69
77

query I rowsort
SELECT + 39 - + 34 * + - 0 AS col1 FROM tab0
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + + 31 = + + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4467
SELECT DISTINCT 20 * 19 * + - CAST( NULL AS DECIMAL ) AS col0, + col1 + - + ( - - col1 ) + - - col0 * + - 13 AS col0, + col2 + - col1 + 32 * + - col1 AS col0 FROM tab0
----
9 values hashing to 47dc5a8e4c9b03ed51f64582a1d89df0

skipif mysql # not compatible
query III rowsort label-4467
SELECT DISTINCT 20 * 19 * + - CAST ( NULL AS REAL ) AS col0, + col1 + - + ( - - col1 ) + - - col0 * + - 13 AS col0, + col2 + - col1 + 32 * + - col1 AS col0 FROM tab0
----
9 values hashing to 47dc5a8e4c9b03ed51f64582a1d89df0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN + col0 AND col1 * - col0 - + col0 - + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - col0 * + col0 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT DISTINCT col1 * + 16 AS col1 FROM tab1 AS cor0
----
224
752
80

query I rowsort
SELECT ALL + + ( + + 19 ) * + 60 + ( + + col0 ) AS col0 FROM tab0 AS cor0
----
1155
1227
1237

query II rowsort
SELECT DISTINCT 31 AS col2, + ( - - col2 ) + - - ( - + col1 ) + + 31 * + + ( - col1 ) FROM tab0 cor0
----
31
-2545
31
-662
31
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 66
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4474
SELECT ALL + CAST( CAST( - ( + + col2 ) AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + CAST ( CAST ( - ( + + col2 ) AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE + CAST( - col1 AS SIGNED ) IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col2, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - + SUM( DISTINCT - col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-4477
SELECT - + SUM ( DISTINCT - col0 ) FROM tab2 cor0
----
185

query I rowsort
SELECT ALL + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT + col1 <> 65
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4481
SELECT - COUNT( * ), - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4481
SELECT - COUNT ( * ), - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE + col1 * + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT + col0 DIV col0 * + - 49 * - col0 * + col1 FROM tab1 AS cor0
----
20825
209573
34986

skipif mysql # not compatible
query I rowsort label-4483
SELECT + col0 / col0 * + - 49 * - col0 * + col1 FROM tab1 AS cor0
----
20825
209573
34986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT - CAST( NULL AS SIGNED ) * col1 * - 32 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4484
SELECT - CAST ( NULL AS INTEGER ) * col1 * - 32 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + - MAX( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4485
SELECT + - MAX ( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NULL > col0
----

query I rowsort
SELECT ALL - ( + - col2 ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4488
SELECT + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT COUNT( * ) + + - 77 * 66 - - - COUNT( * ) + - MIN( DISTINCT - 59 ) FROM tab0
----
-5023

skipif mysql # not compatible
query I rowsort label-4489
SELECT COUNT ( * ) + + - 77 * 66 - - - COUNT ( * ) + - MIN ( DISTINCT - 59 ) FROM tab0
----
-5023

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL 11 + ( COUNT( * ) ) + + MAX( + 65 ) AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL 11 + ( COUNT ( * ) ) + + MAX ( + 65 ) AS col2 FROM tab2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT col1 DIV + col1 + + 76 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT col1 / + col1 + + 76 FROM tab1
----
77

query I rowsort
SELECT ( - 45 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT 71 + - + MIN( + + col0 ) * - COUNT( * ) * + 33 * - 17 FROM tab2
----
-77347

skipif mysql # not compatible
query I rowsort label-4493
SELECT 71 + - + MIN ( + + col0 ) * - COUNT ( * ) * + 33 * - 17 FROM tab2
----
-77347

query II rowsort
SELECT 42 * col1 + - col2, col0 AS col1 FROM tab0
----
-57
97
3355
15
872
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col0 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT ALL - 87 + + - 67 FROM tab0
----
-154
-154
-154

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 + - col1 col2 FROM tab1 AS cor0
----
44
77
86

query I rowsort
SELECT + + col2 + + col0 AS col2 FROM tab2 cor0
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IN ( - col2, col1, col0 * + + col1 * - ( - ( col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 * + col1 + 65 AS col1 FROM tab1 AS cor0
----
-1279
-230
-3131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT ALL - col1 * + ( col2 ) - + CAST( NULL AS SIGNED ) + ( + col0 ) + col1 + + col0 * 38 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - col1 * + ( col2 ) - + CAST ( NULL AS INTEGER ) + ( + col0 ) + col1 + + col0 * 38 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 86 * col1 * - - col0 FROM tab2 AS cor0
----
201756
423808
432150

query I rowsort
SELECT - - col2 * - col0 * - col2 FROM tab2 AS cor0 WHERE NOT 21 NOT BETWEEN NULL AND + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL COUNT( * ) * - 1 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL COUNT ( * ) * - 1 AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + COUNT( * ) * COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4508
SELECT ALL + COUNT ( * ) * COUNT ( * ) col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4509
SELECT ALL * FROM tab2 WHERE NOT col1 * - ( + + col0 ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4509
SELECT ALL * FROM tab2 WHERE NOT col1 * - ( + + col0 ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 84 * + col0 FROM tab2
----
3864
5376
6300

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 74 * - col2 FROM tab1
----
-257594
-342176
-681984

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL MAX( DISTINCT + + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL MAX ( DISTINCT + + col0 ) FROM tab1
----
91

query I rowsort
SELECT + col0 * + 43 AS col2 FROM tab2
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT ALL + + MIN( + + col1 ), - 83 AS col2 FROM tab1 AS cor0
----
5
-83

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL + + MIN ( + + col1 ), - 83 AS col2 FROM tab1 AS cor0
----
5
-83

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 / - col0 - - 79 * col2 )
----

query I rowsort
SELECT + 93 + ( 23 ) + + 88 AS col1 FROM tab2 AS cor0
----
204
204
204

query I rowsort
SELECT - + 77 + + - col0 FROM tab0 AS cor0
----
-164
-174
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL ( - CAST( - + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL ( - CAST ( - + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 * + - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT ALL COUNT( * ) + - COUNT( * ) DIV COUNT( * ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL COUNT ( * ) + - COUNT ( * ) / COUNT ( * ) FROM tab2 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL + MIN( ALL + ( + 29 ) ) + + 35 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + MIN ( ALL + ( + 29 ) ) + + 35 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT COUNT( * ) * + - 37 * + COUNT( * ), 23 AS col2 FROM tab1, tab0 AS cor0
----
-2997
23

skipif mysql # not compatible
query II rowsort label-4523
SELECT COUNT ( * ) * + - 37 * + COUNT ( * ), 23 AS col2 FROM tab1, tab0 AS cor0
----
-2997
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col1 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4525
SELECT + COUNT( ALL + - 30 ) AS col2, CAST( NULL AS SIGNED ) - + SUM( - + col0 ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4525
SELECT + COUNT ( ALL + - 30 ) AS col2, CAST ( NULL AS INTEGER ) - + SUM ( - + col0 ) AS col2 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - ( + 18 ) * - COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4526
SELECT - ( + 18 ) * - COUNT ( * ) AS col1 FROM tab0
----
54

query III rowsort
SELECT * FROM tab0 WHERE ( NULL IN ( + col1, 91 * - col0, - + col1, col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT DISTINCT + 15 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT + 15 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - MIN( ALL + ( + col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - MIN ( ALL + ( + col2 ) ) FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 * - 94 + - - col0 * 92 - 32 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + col0 * + 43 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT + + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT + + COUNT ( * ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ( + MAX( - 50 ) ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4534
SELECT ( + MAX ( - 50 ) ) AS col1 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT DISTINCT ( - - ( + + 94 ) ) FROM tab1
----
94

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT SUM( ALL + 13 ) * 13 + + 22 AS col1 FROM tab0
----
529

skipif mysql # not compatible
query I rowsort label-4537
SELECT SUM ( ALL + 13 ) * 13 + + 22 AS col1 FROM tab0
----
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4538
SELECT - col2, CAST( - 46 AS SIGNED ) AS col0 FROM tab1
----
-59
-46
-68
-46
-96
-46

skipif mysql # not compatible
query II rowsort label-4538
SELECT - col2, CAST ( - 46 AS INTEGER ) AS col0 FROM tab1
----
-59
-46
-68
-46
-96
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4539
SELECT MAX ( col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4540
SELECT + 98, col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
98
-1
98
0
98
0

skipif mysql # not compatible
query II rowsort label-4540
SELECT + 98, col0 / - col1 AS col0 FROM tab2 AS cor0
----
98
-1
98
0
98
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - 62 * + - col1 FROM tab0 cor0
----
1302
5022
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - COUNT( ALL - col1 ) * + COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - COUNT ( ALL - col1 ) * + COUNT ( * ) FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT - COUNT( * ) + - - ( SUM( ALL + + 81 ) ) AS col2 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - COUNT ( * ) + - - ( SUM ( ALL + + 81 ) ) AS col2 FROM tab1 AS cor0
----
240

query I rowsort
SELECT ALL - ( - - col2 ) * col0 * - - col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + + - 25 AS col2 FROM tab1 AS cor0
----
-110
-116
-76

query I rowsort
SELECT 56 + - col1 AS col2 FROM tab1 AS cor0
----
42
51
9

query I rowsort
SELECT ALL col2 * - + col2 * - 20 - + col2 FROM tab2 AS cor0
----
10557
31960
67222

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL <= 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + 22 + + COUNT( * ) FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-4552
SELECT + 22 + + COUNT ( * ) FROM tab0 cor0
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col0 + - col2 IS NULL
----

query I rowsort
SELECT - 60 + - col0 AS col1 FROM tab1 AS cor0
----
-111
-145
-151

query II rowsort
SELECT ALL + - col0 * + col0 AS col1, + col2 + - - col2 AS col1 FROM tab2 AS cor0
----
-2116
46
-4096
80
-5625
116

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 27 + - + col0 <> col1
----

query I rowsort
SELECT col2 + + 25 * + + col2 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
122400
125375
154700

query III rowsort
SELECT * FROM tab1 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT 30 + - COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4559
SELECT 30 + - COUNT ( * ) FROM tab2
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4560
SELECT DISTINCT - col1 + + ( - 66 ), col0 DIV - col2 AS col2 FROM tab0
----
-147
0
-67
0
-87
-8

skipif mysql # not compatible
query II rowsort label-4560
SELECT DISTINCT - col1 + + ( - 66 ), col0 / - col2 AS col2 FROM tab0
----
-147
0
-67
0
-87
-8

query I rowsort
SELECT DISTINCT - 6 - 97 FROM tab1 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-4562
SELECT ALL + 26 DIV + 37 + 15, - 31 AS col0 FROM tab0 AS cor0
----
15
-31
15
-31
15
-31

skipif mysql # not compatible
query II rowsort label-4562
SELECT ALL + 26 / + 37 + 15, - 31 AS col0 FROM tab0 AS cor0
----
15
-31
15
-31
15
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 99 * + col0
----

query I rowsort
SELECT + + 87 * + + col1 AS col1 FROM tab2 AS cor0
----
4437
5829
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT DISTINCT + + col2 DIV - col2 + - 23 + - 72 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT + + col2 / - col2 + - 23 + - 72 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + COUNT( * ) - - MAX( DISTINCT - - col2 ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-4567
SELECT + COUNT ( * ) - - MAX ( DISTINCT - - col2 ) AS col0 FROM tab2
----
61

query I rowsort
SELECT DISTINCT ( - 88 ) AS col2 FROM tab0 AS cor0
----
-88

query II rowsort
SELECT + 72, + col0 * - 71 AS col1 FROM tab1 AS cor0
----
72
-3621
72
-6035
72
-6461

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT DISTINCT + COUNT( * ) * + MIN( DISTINCT - 96 ) AS col2, SUM( - 35 ) FROM tab2 AS cor0 WHERE - col2 + col2 IS NOT NULL
----
-288
-105

skipif mysql # not compatible
query II rowsort label-4570
SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT - 96 ) AS col2, SUM ( - 35 ) FROM tab2 AS cor0 WHERE - col2 + col2 IS NOT NULL
----
-288
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4571
SELECT - col1 AS col1, 24 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-4571
SELECT - col1 AS col1, 24 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col1 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT + 57 DIV - ( col2 ) * - 71 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT + 57 / - ( col2 ) * - 71 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE col1 * col1 > + col1
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT 89 + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
92

skipif mysql # not compatible
query I rowsort label-4575
SELECT 89 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = - 99 * col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + COUNT( * ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4577
SELECT + COUNT ( * ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL - col0 * - 11 AS col0 FROM tab1
----
1001
561
935

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT col2 DIV - col1 + 12 DIV col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4579
SELECT col2 / - col1 + 12 / col2 FROM tab1
----
-1
-11
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - - col0 col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 + - + CAST( 32 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 + - + CAST ( 32 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT ALL + col1 DIV col0 AS col0 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL + col1 / col0 AS col0 FROM tab0 cor0
----
0
0
5

query I rowsort
SELECT + 21 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
21
21
21

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT ALL 2 + + col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 2 + + col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) + + - 59 * + + col1 * + + col1 FROM tab0
----
-156
-26106
-387114

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * 2 + col0 AS col1 FROM tab2
----
148
209
218

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT + col0 DIV - + col1 - + - 86 + + 39 FROM tab0
----
121
125
28

skipif mysql # not compatible
query I rowsort label-4591
SELECT + col0 / - + col1 - + - 86 + + 39 FROM tab0
----
121
125
28

query I rowsort
SELECT DISTINCT 13 + + col2 * + - 54 AS col0 FROM tab1
----
-3173
-3659
-5171

query II rowsort
SELECT ALL + col1 AS col1, col0 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL MIN( ALL col2 ) * MAX( DISTINCT col2 ) FROM tab2
----
1334

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL MIN ( ALL col2 ) * MAX ( DISTINCT col2 ) FROM tab2
----
1334

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT DISTINCT + col0 DIV - 35 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + col0 / - 35 FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4597
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE - 70 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-4597
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE - 70 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL - + COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - + COUNT ( * ) FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + 97 FROM tab1 AS cor0 WHERE NOT - col0 * - col2 IS NULL
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT 88 DIV - 11 FROM tab0 cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4603
SELECT 88 / - 11 FROM tab0 cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + + MIN( DISTINCT - 94 ) AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4604
SELECT + + MIN ( DISTINCT - 94 ) AS col2 FROM tab1 AS cor0
----
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 82 IS NULL
----

query II rowsort
SELECT + 89, - col1 AS col1 FROM tab1 AS cor0
----
89
-14
89
-47
89
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - - col1 col0 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM tab0 cor0
----
-46
-46
-46

query II rowsort
SELECT DISTINCT 89, + col0 AS col2 FROM tab1 AS cor0
----
89
51
89
85
89
91

query II rowsort
SELECT 53 AS col1, + col2 AS col0 FROM tab2
----
53
23
53
40
53
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col1 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL + col0 AS col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT - col0 AS col1, col0 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT + 72 AS col0, 50 AS col1 FROM tab2
----
72
50
72
50
72
50

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 49 NOT BETWEEN NULL AND - 1 + 89 + + + col2 + - ( col0 )
----

query III rowsort
SELECT DISTINCT col2, + ( - 83 ) + col1, + - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 2315af83c95e865b98d92d7abb7b5a41

query I rowsort
SELECT - col0 + + col0 - - col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col1 * + 58 + - 87 * 66 FROM tab1 cor0
----
-6032
-6554
-8468

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + 65 * + + 13 * - 66 * + - MIN( ALL - - col2 ) FROM tab1 cor0
----
3290430

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 65 * + + 13 * - 66 * + - MIN ( ALL - - col2 ) FROM tab1 cor0
----
3290430

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT - 49, MAX( ALL + 91 ) AS col2 FROM tab2 AS cor0
----
-49
91

skipif mysql # not compatible
query II rowsort label-4620
SELECT - 49, MAX ( ALL + 91 ) AS col2 FROM tab2 AS cor0
----
-49
91

query I rowsort
SELECT 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - 15 + - + 91 AS col2 FROM tab1 AS cor0
----
-106
-106
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 15 + - col0 * 94 * + col0 col1 FROM tab2 AS cor0
----
-198559
-384424
-527880

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - 8 + + MIN( + col0 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4624
SELECT - 8 + + MIN ( + col0 ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col1 * - 71 + + col0 AS col0 FROM tab2 AS cor0
----
4840
8611
8718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( + 28 AS SIGNED ) - + 51 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4626
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( + 28 AS INTEGER ) - + 51 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 * + col1 AND NULL AND NOT + 63 / col0 > + 28 - col2 + - + col0
----

query II rowsort
SELECT + - col1 + - - col1, col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

query II rowsort
SELECT ALL - + 1 - - col0, + col1 FROM tab2 AS cor0
----
45
51
63
77
74
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * 82 + + + col1 * col0 col1 FROM tab2 AS cor0
----
2592
5174
5271

query I rowsort
SELECT + 96 + + - col2 AS col0 FROM tab0 AS cor0
----
-3
49
86

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT + 58 + + col2 * + - col1 AS col0 FROM tab0
----
-152
-3749
-41

query I rowsort
SELECT DISTINCT - - col0 + - col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 84 + + 95 AS col0 FROM tab0
----
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col1 FROM tab0
----
45

query I rowsort
SELECT ALL - col1 + - - 21 AS col2 FROM tab0
----
-60
0
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE + 16 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE + 16 + + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT DISTINCT - col0 DIV - 84 + - col2 FROM tab0
----
-47
-9
-98

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - col0 / - 84 + - col2 FROM tab0
----
-47
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT COUNT( 21 ) FROM tab2 WHERE + ( + 54 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4641
SELECT COUNT ( 21 ) FROM tab2 WHERE + ( + 54 ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <> 10 + + 30
----
46
51
23
75
67
58

query III rowsort
SELECT ALL * FROM tab2 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - col2 + - col1 AS col0 FROM tab1
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4645
SELECT ALL * FROM tab2 WHERE NOT ( col0 + CAST( col1 AS SIGNED ) ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4645
SELECT ALL * FROM tab2 WHERE NOT ( col0 + CAST ( col1 AS INTEGER ) ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 - 17 * col1 FROM tab1
----
-144
-334
-867

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 IN ( - 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col1 - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( - 64 * col2 ) > - col0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL SUM( - 81 ) AS col1 FROM tab1 WHERE - col0 + - ( col0 + 43 ) BETWEEN ( - 89 + - 69 * + col2 ) AND col2
----
-243

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL SUM ( - 81 ) AS col1 FROM tab1 WHERE - col0 + - ( col0 + 43 ) BETWEEN ( - 89 + - 69 * + col2 ) AND col2
----
-243

query III rowsort
SELECT * FROM tab0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT + COUNT( * ) * 60 AS col1 FROM tab1 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT + COUNT ( * ) * 60 AS col1 FROM tab1 WHERE NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT MIN( ALL col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4653
SELECT MIN ( ALL col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL SUM( col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL SUM ( col0 ) FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT - col0 * 57 AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col1 * col0 AS col1 FROM tab2 WHERE 78 IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE 1 * col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT 35 + col0 FROM tab1
----
120
126
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + col0 ) AND + col2 * + col1 + 73
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col2 - + col0
----

query I rowsort
SELECT DISTINCT col0 + 65 FROM tab0 AS cor0
----
152
162
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4667
SELECT ALL * FROM tab2 WHERE ( + CAST( + col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4667
SELECT ALL * FROM tab2 WHERE ( + CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 33 * 14 + - 11 FROM tab0
----
451
451
451

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) NOT IN ( - 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - col0 > ( - CAST( NULL AS SIGNED ) - - 44 )
----

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - col0 > ( - CAST ( NULL AS INTEGER ) - - 44 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT ALL - col0 DIV 34 - 56 * col2 FROM tab1 cor0
----
-3306
-3810
-5377

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - col0 / 34 - 56 * col2 FROM tab1 cor0
----
-3306
-3810
-5377

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT - - 62 * CAST( + col1 AS SIGNED ) - col1 AS col2 FROM tab0 AS cor0
----
1281
4941
61

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - - 62 * CAST ( + col1 AS INTEGER ) - col1 AS col2 FROM tab0 AS cor0
----
1281
4941
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) - 16 col2 FROM tab2 cor0
----
24
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT - MIN( ALL - 96 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT - MIN ( ALL - 96 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + 7 * + 5 FROM tab2 AS cor0 WHERE col1 + + col2 * 14 BETWEEN col2 AND ( 28 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( - + 52 ) * col1 AS col1 FROM tab0
----
-1092
-4212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + 41 - 19 + - COUNT( ALL col0 + 49 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4681
SELECT + 41 - 19 + - COUNT ( ALL col0 + 49 ) FROM tab0
----
19

query I rowsort
SELECT col0 - + + col2 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 + 96 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 + 96 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 35 * + 43 + - 66 AS col0 FROM tab0 WHERE NOT 64 + col1 IS NOT NULL
----

query I rowsort
SELECT 84 - + col1 FROM tab0
----
3
63
83

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * + col0 NOT BETWEEN col2 + 53 * - 17 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - 28 + 54 * col2 AS col1 FROM tab0
----
2495
425
5221

query III rowsort
SELECT * FROM tab0 WHERE ( col2 / 51 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 91 * + - col1 + col1 FROM tab2
----
4692
6164
7084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT 25 DIV - + COUNT( * ) AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-4690
SELECT 25 / - + COUNT ( * ) AS col0 FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT - - ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + 14 = col2 * ( col2 ) + - 33 * 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - - COUNT( DISTINCT - 35 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - - COUNT ( DISTINCT - 35 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( NULL = 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 >= + col0 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT MAX( - 0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4700
SELECT MAX ( - 0 ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 4 ) IN ( - col2 * - 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4702
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT NULL < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4702
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT NULL < CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - - col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 56 * + - col2 FROM tab1 AS cor0
----
-3304
-3808
-5376

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT - col0 DIV + 33 AS col1 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-4706
SELECT - col0 / + 33 AS col1 FROM tab0 AS cor0
----
-2
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT 1 AS col2 FROM tab0 cor0 WHERE NOT + col0 * + ( - CAST( 56 AS SIGNED ) ) * col1 = ( 42 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4708
SELECT 1 AS col2 FROM tab0 cor0 WHERE NOT + col0 * + ( - CAST ( 56 AS INTEGER ) ) * col1 = ( 42 )
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 8 col1 FROM tab0
----
120
696
776

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 99 ) FROM tab0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT CAST( col0 AS SIGNED ) * - + ( + 62 ) + + col1 * - col1 + col2 FROM tab2
----
-5430
-9081
-9857

skipif mysql # not compatible
query I rowsort label-4712
SELECT CAST ( col0 AS INTEGER ) * - + ( + 62 ) + + col1 * - col1 + col2 FROM tab2
----
-5430
-9081
-9857

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 * col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL - 53 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - 53 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL + ( + 85 ) + - + col0 + + CAST( 47 AS SIGNED ) AS col2 FROM tab2
----
57
68
86

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + ( + 85 ) + - + col0 + + CAST ( 47 AS INTEGER ) AS col2 FROM tab2
----
57
68
86

query III rowsort
SELECT * FROM tab1 WHERE 62 * - col2 / - ( - col1 ) + - 70 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT 85 DIV - ( - - col0 ) + - col1 - col1 AS col2 FROM tab0 AS cor0
----
-167
-2
-42

skipif mysql # not compatible
query I rowsort label-4718
SELECT 85 / - ( - - col0 ) + - col1 - col1 AS col2 FROM tab0 AS cor0
----
-167
-2
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT - 11 DIV + COUNT( ALL - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4719
SELECT - 11 / + COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL > col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 / - col1 IN ( - ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4723
SELECT + col0 + col0 + - col2, - 16 DIV + + col2 AS col0 FROM tab1 AS cor0
----
111
0
114
0
6
0

skipif mysql # not compatible
query II rowsort label-4723
SELECT + col0 + col0 + - col2, - 16 / + + col2 AS col0 FROM tab1 AS cor0
----
111
0
114
0
6
0

query I rowsort
SELECT - 58 * col1 AS col0 FROM tab0 AS cor0 WHERE + col1 < ( + 52 * - col2 + 37 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT DISTINCT - 6 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - 6 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT ALL - 17 DIV - col1 - + col1 - + + col0 * + col1 * - 61 FROM tab1 AS cor0
----
25923
260850
43541

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - 17 / - col1 - + col1 - + + col0 * + col1 * - 61 FROM tab1 AS cor0
----
25923
260850
43541

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + 52 + - 59 * 10 AS col1 FROM tab2 AS cor0
----
-538
-538
-538

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 25 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 IN ( + col0 / col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 94 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT 53 * + + 20 AS col1, SUM( - col2 ) FROM tab1
----
1060
-223

skipif mysql # not compatible
query II rowsort label-4734
SELECT 53 * + + 20 AS col1, SUM ( - col2 ) FROM tab1
----
1060
-223

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND ( 10 + - 79 * col0 ) )
----

query II rowsort
SELECT DISTINCT col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT col2 DIV ( col1 ) FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4737
SELECT col2 / ( col1 ) FROM tab1
----
1
11
6

query I rowsort
SELECT 59 * col0 AS col2 FROM tab0 AS cor0
----
5133
5723
885

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 71 ) IN ( + col2 / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col1 / + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-4740
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col1 / + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL col2 * col0 + col1 * - col0 FROM tab0 AS cor0 WHERE NOT + col2 + - col2 * col1 / - 29 * - 60 <= CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL col2 * col0 + col1 * - col0 FROM tab0 AS cor0 WHERE NOT + col2 + - col2 * col1 / - 29 * - 60 <= CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT + 78 * + - 19 AS col2 FROM tab2 cor0
----
-1482
-1482
-1482

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT - ( + 61 ) DIV + + 63 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT - ( + 61 ) / + + 63 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4745
SELECT + col1 + - ( - CAST( NULL AS DECIMAL ) ) + - - col0 + col0 * + - 58 + + + 13 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT + col1 + - ( - CAST ( NULL AS REAL ) ) + - - col0 + col0 * + - 58 + + + 13 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL + COUNT( * ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4747
SELECT ALL + COUNT ( * ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT 40 IS NULL )
----

query I rowsort
SELECT - + col2 + 54 FROM tab2 AS cor0
----
-4
14
31

query II rowsort
SELECT ALL + + col0 * 47, - col2 AS col0 FROM tab0 AS cor0
----
4089
-10
4559
-99
705
-47

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT + 24 * - COUNT( * ) + + SUM( ALL 69 ) FROM tab2 cor0
----
135

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + 24 * - COUNT ( * ) + + SUM ( ALL 69 ) FROM tab2 cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4753
SELECT ALL - - col1 / + 36 + col2 + - 55 / + CAST( NULL AS SIGNED ), ( + col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL - - col1 / + 36 + col2 + - 55 / + CAST ( NULL AS INTEGER ), ( + col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + + col2 - col2 * + 4 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + + col2 - col2 * + 4 <> NULL
----
0

query I rowsort
SELECT ALL - col2 * - - 22 AS col0 FROM tab1
----
-1298
-1496
-2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 * col1 col0 FROM tab0
----
-98
431
6514

query I rowsort
SELECT 75 * - + 11 AS col1 FROM tab1
----
-825
-825
-825

query I rowsort
SELECT ALL + 6 * + 78 FROM tab0
----
468
468
468

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT + 99 * + MIN( 81 ) FROM tab2 cor0
----
8019

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + 99 * + MIN ( 81 ) FROM tab2 cor0
----
8019

query I rowsort
SELECT ALL - col0 * - + col2 * + + 96 + col0 AS col2 FROM tab1 AS cor0
----
470067
481525
594139

query I rowsort
SELECT ALL 9 + col1 FROM tab1
----
14
23
56

query I rowsort
SELECT - ( + - col2 ) + - col1 AS col0 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4764
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - AVG ( ALL - 85 ) AS col2 FROM tab0 cor0 WHERE + col0 NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - + 61 - - 75 FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT + col2 FROM tab1 AS cor0 WHERE col1 / + - 32 = ( col2 * - col0 - + CAST( - col0 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-4767
SELECT + col2 FROM tab1 AS cor0 WHERE col1 / + - 32 = ( col2 * - col0 - + CAST ( - col0 AS INTEGER ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL + SUM( col1 ) - - 12 AS col2 FROM tab2 cor0
----
207

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL + SUM ( col1 ) - - 12 AS col2 FROM tab2 cor0
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 63 col1 FROM tab0 cor0
----
110
162
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 col0 FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT ALL - + col2 - - col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - + col2 - - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 53 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) * + - col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + + col2 ) / - - 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT - SUM( 13 ) AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - SUM ( 13 ) AS col1 FROM tab0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 62 col1 FROM tab0
----
1302
5022
62

query III rowsort
SELECT * FROM tab2 WHERE NOT - 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 53 AS col0, col1 col0 FROM tab2
----
-53
51
-53
67
-53
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT + 94 - - COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 IN ( - col1 * + col0 )
----
97

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT + 94 - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 IN ( - col1 * + col0 )
----
97

query I rowsort
SELECT 91 * col1 FROM tab0
----
1911
7371
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + + 84 ) * 32 + + col0 + col2 * + col2 AS col1 FROM tab1
----
11955
6254
7403

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL + - col0 DIV 42 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + - col0 / 42 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT DISTINCT + 25 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + 25 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - - 66 ) AS col1 FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 40 IN ( 9, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 58 * 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6d16b59f6725d1eaad88f522f5c1d638

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT 60 DIV + col0 col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4790
SELECT 60 / + col0 col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT + ( + SUM( + col2 ) ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + ( + SUM ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4792
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 + + 37 * + + 61 AS col0 FROM tab0 cor0
----
2160
2170
2242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4794
SELECT ALL - - col2 col2, CAST( NULL AS SIGNED ) * + - 42 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4794
SELECT ALL - - col2 col2, CAST ( NULL AS INTEGER ) * + - 42 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT DISTINCT 69, - COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0
----
69
-3

skipif mysql # not compatible
query II rowsort label-4795
SELECT DISTINCT 69, - COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
69
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT 13 + - - CAST( - - col0 AS SIGNED ) + CAST( - + col0 AS SIGNED ) FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-4796
SELECT 13 + - - CAST ( - - col0 AS INTEGER ) + CAST ( - + col0 AS INTEGER ) FROM tab2
----
13
13
13

query I rowsort
SELECT - 88 FROM tab1 WHERE NULL IS NULL
----
-88
-88
-88

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col2 - - col2 - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= col0
----

query I rowsort
SELECT ALL - col0 - + col0 + + - col0 FROM tab1
----
-153
-255
-273

query I rowsort
SELECT DISTINCT + 31 * col0 + + 45 AS col1 FROM tab2
----
1471
2029
2370

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 52 - - 86 * - - col1 + + 73 FROM tab0 cor0
----
1931
211
7091

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4804
SELECT + 62 AS col2, - col1 * - CAST( + 32 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
62
1504
62
160
62
448

skipif mysql # not compatible
query II rowsort label-4804
SELECT + 62 AS col2, - col1 * - CAST ( + 32 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
62
1504
62
160
62
448

query I rowsort
SELECT DISTINCT - - 43 * + 73 FROM tab1 AS cor0
----
3139

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + MIN( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4806
SELECT + MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL + 48 * COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + 48 * COUNT ( * ) FROM tab0 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL MAX( - - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL MAX ( - - col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT ALL COUNT( * ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4810
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT - 39 * - col0 * - + col2 AS col2 FROM tab0
----
-27495
-33930
-374517

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL + COUNT( * ) * - SUM( ALL ( + ( + col1 ) ) ) col2 FROM tab1
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4812
SELECT ALL + COUNT ( * ) * - SUM ( ALL ( + ( + col1 ) ) ) col2 FROM tab1
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT + CAST( - col1 AS SIGNED ) * 95 FROM tab1
----
-1330
-4465
-475

skipif mysql # not compatible
query I rowsort label-4813
SELECT + CAST ( - col1 AS INTEGER ) * 95 FROM tab1
----
-1330
-4465
-475

query I rowsort
SELECT ALL + col2 * + - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 47 BETWEEN - col1 AND 63 * + 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT DISTINCT + + col0 + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4816
SELECT DISTINCT + + col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - COUNT( col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-4819
SELECT - COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT ALL - - COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-4820
SELECT ALL - - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - ( - col2 ) AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT - col1 DIV - 99 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT - col1 / - 99 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT - - col0 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT - - col0 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 BETWEEN - - 95 AND + 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL - + MIN( col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL - + MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) >= + col1
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL + CAST( + 19 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4827
SELECT ALL + CAST ( + 19 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4828
SELECT ALL * FROM tab0 WHERE NOT + CAST( + col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4828
SELECT ALL * FROM tab0 WHERE NOT + CAST ( + col0 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT SUM( ALL - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4829
SELECT SUM ( ALL - col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT - 83 * - col1 FROM tab0
----
1743
6723
83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4831
SELECT * FROM tab0 WHERE NULL NOT IN ( - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4831
SELECT * FROM tab0 WHERE NULL NOT IN ( - + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - + col0 + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-17
-23
-24

query I rowsort
SELECT + col0 - - - col2 * - col1 FROM tab1
----
1395
3287
380

query I rowsort
SELECT ALL 2 + col2 + - - 17 * + - col1 AS col0 FROM tab1
----
-140
-24
-729

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT ALL + col0 DIV + - 69 - 49 AS col1 FROM tab0
----
-49
-50
-50

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + col0 / + - 69 - 49 AS col1 FROM tab0
----
-49
-50
-50

query I rowsort
SELECT DISTINCT 29 + col1 AS col0 FROM tab0
----
110
30
50

query III rowsort
SELECT * FROM tab0 WHERE + - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - 30 + COUNT( * ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 30 + COUNT ( * ) AS col0 FROM tab2
----
-27

query I rowsort
SELECT ALL - 75 - + + col1 + + col0 FROM tab0 AS cor0
----
-141
-9
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL ( + - ( - CAST( + col1 AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL ( + - ( - CAST ( + col1 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT DISTINCT 21 * - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT 21 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT SUM( DISTINCT + + col0 ) * - + COUNT( * ) AS col2 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-4842
SELECT SUM ( DISTINCT + + col0 ) * - + COUNT ( * ) AS col2 FROM tab2
----
-555

query I rowsort
SELECT DISTINCT 39 * + col1 + + + col0 + - ( - col2 ) AS col0 FROM tab2
----
2058
2746
3107

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT MIN( DISTINCT - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4844
SELECT MIN ( DISTINCT - col2 ) FROM tab2
----
-58

query I rowsort
SELECT ALL - 56 * - + col2 FROM tab1
----
3304
3808
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT 16 * + MIN( - 3 ) FROM tab2 AS cor0 WHERE col1 / - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT 16 * + MIN ( - 3 ) FROM tab2 AS cor0 WHERE col1 / - - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4847
SELECT DISTINCT ( - + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT ( - + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - MIN( ALL - + 72 ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - MIN ( ALL - + 72 ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 * - 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + 62 col2 FROM tab0 AS cor0
----
2914
6138
620

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - COUNT( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4851
SELECT - COUNT ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - 63 * - col0 AS col2, 80 FROM tab1 AS cor0
----
3213
80
5355
80
5733
80

query I rowsort
SELECT ALL col0 * 57 FROM tab1
----
2907
4845
5187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT col2 * - CAST( col2 AS SIGNED ) FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-4854
SELECT col2 * - CAST ( col2 AS INTEGER ) FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT - 1 * + - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT 75 * + col2 AS col1 FROM tab1
----
4425
5100
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - ( + COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4857
SELECT - ( + COUNT ( * ) ) col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 29, - 20 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + + ( - col2 ), - col2 AS col2 FROM tab0 WHERE NOT - col1 * col1 + + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----
3

query I rowsort
SELECT ALL + 62 AS col2 FROM tab2 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT - - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT - - COUNT( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - - COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1, - col2 col0 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT + + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT - col1, + 35 + col2 AS col2 FROM tab2 AS cor0
----
-51
58
-67
93
-77
75

query I rowsort
SELECT 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + col0 * col2 + + ( + col1 ) FROM tab2
----
1109
2637
4417

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 * + + col0 * + 38 FROM tab1
----
16155
162573
27146

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 / 33 < 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + col0 + + 34 AS col0 FROM tab2 AS cor0
----
109
80
98

query I rowsort
SELECT ALL 73 + col2 + col1 FROM tab1 AS cor0
----
137
183
188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 / col2 * + + 39 * 18 FROM tab1 AS cor0 WHERE - col1 + - - col0 + + - col1 BETWEEN - 26 AND NULL
----

query I rowsort
SELECT + 74 + - col0 FROM tab2
----
-1
10
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 + + ( + 41 ) FROM tab0
----
122
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 WHERE NOT - 28 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 28 IS NOT NULL
----
0

query I rowsort
SELECT - 40 + col1 FROM tab2
----
11
27
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT + col0 DIV - + 42 + - - col1 * + + col2 FROM tab1 WHERE - 3 IS NOT NULL
----
1343
293
3194

skipif mysql # not compatible
query I rowsort label-4882
SELECT + col0 / - + 42 + - - col1 * + + col2 FROM tab1 WHERE - 3 IS NOT NULL
----
1343
293
3194

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( NOT NULL IS NULL ) OR NOT - - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( NOT NULL IS NULL ) OR NOT - - col1 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 - + - col2 col1 FROM tab1
----
103
112
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT CAST( + ( - col0 ) AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4885
SELECT CAST ( + ( - col0 ) AS INTEGER ) FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 55 col0 FROM tab1
----
13
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT - COUNT( + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4887
SELECT - COUNT ( + col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 * + - 43 - - 20 AS col0 FROM tab0 AS cor0
----
2041
4277
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT col1 * - col2 - - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1224
-3157
-3953

skipif mysql # not compatible
query I rowsort label-4889
SELECT col1 * - col2 - - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + COUNT( - + col1 ) - - 79 AS col0 FROM tab1 cor0
----
82

skipif mysql # not compatible
query I rowsort label-4890
SELECT + COUNT ( - + col1 ) - - 79 AS col0 FROM tab1 cor0
----
82

query I rowsort
SELECT ALL - - ( - 53 ) * 99 - ( col1 ) + - - col0 + col2 AS col2 FROM tab1 AS cor0
----
-5108
-5114
-5135

query I rowsort
SELECT - col1 - + - 78 FROM tab0 AS cor0
----
-3
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT COUNT( * ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4893
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT 89 * + 56 FROM tab1
----
4984
4984
4984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL + CAST( + + MIN( ALL 42 ) AS SIGNED ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + CAST ( + + MIN ( ALL 42 ) AS INTEGER ) FROM tab0
----
42

query II rowsort
SELECT DISTINCT - 40 AS col2, - col1 - col1 AS col1 FROM tab2
----
-40
-102
-40
-134
-40
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 AS col2, col2 col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 19 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 < - 24
----
19
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4900
SELECT ALL 59 * + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL 59 * + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - ( + ( + 64 ) ) >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4902
SELECT * FROM tab0 WHERE NOT col0 - col1 + - col1 + - + col0 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4902
SELECT * FROM tab0 WHERE NOT col0 - col1 + - col1 + - + col0 * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT COUNT( ALL + - col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4903
SELECT COUNT ( ALL + - col1 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL - 68 AS col0 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT col1 * + + 27 AS col2 FROM tab1
----
1269
135
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col1 FROM tab0
----
9

query I rowsort
SELECT col0 * + 64 * + 19 AS col0 FROM tab1
----
103360
110656
62016

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT COUNT( * ) * - MAX( - col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4908
SELECT COUNT ( * ) * - MAX ( - col2 ) FROM tab2
----
69

query I rowsort
SELECT DISTINCT - col0 * 88 + + col1 FROM tab0
----
-1239
-7635
-8535

query I rowsort
SELECT + col1 * - 29 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ( 51 ) * ( COUNT( * ) ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4911
SELECT ( 51 ) * ( COUNT ( * ) ) FROM tab2 AS cor0
----
153

query I rowsort
SELECT DISTINCT col1 + - 46 FROM tab2 AS cor0
----
21
31
5

query I rowsort
SELECT DISTINCT + col1 - + 73 FROM tab2 AS cor0 WHERE NOT ( + col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT COUNT( * ) + + + COUNT( + col0 ) * - + COUNT( * ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4914
SELECT COUNT ( * ) + + + COUNT ( + col0 ) * - + COUNT ( * ) AS col2 FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT 99 DIV col2 + col0 * - 16 FROM tab2
----
-1022
-1199
-732

skipif mysql # not compatible
query I rowsort label-4915
SELECT 99 / col2 + col0 * - 16 FROM tab2
----
-1022
-1199
-732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 + + col2 col0 FROM tab1
----
-26
-35
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT CAST( - 24 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-4917
SELECT CAST ( - 24 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 64 * + - 77 BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT DISTINCT + MAX( DISTINCT + col2 ) * CAST( + + 3 AS SIGNED ) - - + 14 AS col0 FROM tab0 AS cor0
----
311

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + MAX ( DISTINCT + col2 ) * CAST ( + + 3 AS INTEGER ) - - + 14 AS col0 FROM tab0 AS cor0
----
311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT + - CAST( + 34 AS SIGNED ) FROM tab0 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-4920
SELECT + - CAST ( + 34 AS INTEGER ) FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT DISTINCT + col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 67 - - col1 <> + 14
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col1 <= NULL
----

query I rowsort
SELECT - 26 * - - 87 AS col1 FROM tab2 AS cor0
----
-2262
-2262
-2262

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col1, col0 * 9 * + 16, + 29 * + - col2 )
----

query I rowsort
SELECT - + col1 * + 26 * + 2 + - col1 * - 10 + + col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query I rowsort
SELECT ALL + col0 * + ( col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL - 10 + - 74 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT + col0 - - 80 FROM tab1
----
131
165
171

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col1 * col2 FROM tab1
----
150280
1534
18912

onlyif mysql # aggregate syntax: 
query II rowsort label-4931
SELECT - COUNT( * ), AVG ( - col1 ) col0 FROM tab1 WHERE 18 IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4931
SELECT - COUNT ( * ), AVG ( - col1 ) col0 FROM tab1 WHERE 18 IS NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT ALL col0 DIV + 15 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL col0 / + 15 FROM tab2
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4933
SELECT + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT ALL + 84 + - + col0 * - col1 DIV + col1 FROM tab0
----
171
181
99

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL + 84 + - + col0 * - col1 / + col1 FROM tab0
----
171
181
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col0 FROM tab0 WHERE NULL IS NULL
----
38
38
38

query I rowsort
SELECT ALL + 80 * - col2 + - 41 * - col2 * - col1 AS col2 FROM tab2
----
-129480
-163966
-49933

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT ALL col1 DIV + col2 + col2 FROM tab0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL col1 / + col2 + col2 FROM tab0
----
12
48
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT + col2 + - CAST( col2 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + col2 + - CAST ( col2 AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + + col0 * col1 - - 28 FROM tab0 AS cor0
----
1243
125
1855

query II rowsort
SELECT ALL - col0 * 7 AS col0, col2 FROM tab1 AS cor0
----
-357
96
-595
59
-637
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT + 86 * COUNT( * ) - + ( - - 82 ) FROM tab0 cor0
----
176

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + 86 * COUNT ( * ) - + ( - - 82 ) FROM tab0 cor0
----
176

query I rowsort
SELECT ALL - + 95 FROM tab2 cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4943
SELECT COUNT( ALL ( CAST( + - 70 AS SIGNED ) ) ) AS col0, + 72 FROM tab0 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-4943
SELECT COUNT ( ALL ( CAST ( + - 70 AS INTEGER ) ) ) AS col0, + 72 FROM tab0 AS cor0
----
3
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4944
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - + col0 AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + - 2 AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + COUNT( - col1 ) * + SUM( + col0 ) AS col1 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-4948
SELECT + COUNT ( - col1 ) * + SUM ( + col0 ) AS col1 FROM tab0
----
597

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4949
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 51 + 43 / - + col0 + col1 * + CAST( - + col0 AS SIGNED ) + - - col0 NOT BETWEEN NULL AND ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4949
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 51 + 43 / - + col0 + col1 * + CAST ( - + col0 AS INTEGER ) + - - col0 NOT BETWEEN NULL AND ( - col2 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2 AS cor0
----
45

query I rowsort
SELECT + col2 * - - col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT COUNT( + ( + - col0 ) ), + MAX( ALL 42 ) AS col0 FROM tab2 cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-4953
SELECT COUNT ( + ( + - col0 ) ), + MAX ( ALL 42 ) AS col0 FROM tab2 cor0
----
3
42

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT + col2 * col1 IS NOT NULL
----

query I rowsort
SELECT - 24 AS col2 FROM tab2 AS cor0 WHERE NOT + 61 IN ( - col0, + col0, 54 )
----
-24
-24
-24

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - + ( - - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT COUNT( DISTINCT + 53 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT COUNT ( DISTINCT + 53 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT 97, + COUNT( * ) AS col1 FROM tab2
----
97
3

skipif mysql # not compatible
query II rowsort label-4959
SELECT 97, + COUNT ( * ) AS col1 FROM tab2
----
97
3

query II rowsort
SELECT col1, ( col1 ) * + - ( + - 28 ) - - + col1 FROM tab0
----
1
29
21
609
81
2349

query II rowsort
SELECT + 70, + col2 AS col2 FROM tab1
----
70
59
70
68
70
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT + CAST( - 32 AS SIGNED ) AS col1 FROM tab0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-4962
SELECT + CAST ( - 32 AS INTEGER ) AS col1 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - 98 + - + 49 AND NULL
----

query I rowsort
SELECT ALL 81 + - 84 FROM tab0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT COUNT( DISTINCT - col0 ) + MIN( ALL + col2 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT COUNT ( DISTINCT - col0 ) + MIN ( ALL + col2 ) FROM tab2
----
26

query I rowsort
SELECT + 5 AS col0 FROM tab2 WHERE NOT - col1 = - col0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4967
SELECT DISTINCT + 43 * + + col2, - col0 - - + 69 + col2 * - + CAST( NULL AS SIGNED ) * - 7 * + col0 AS col2 FROM tab1 AS cor0
----
2537
NULL
2924
NULL
4128
NULL

skipif mysql # not compatible
query II rowsort label-4967
SELECT DISTINCT + 43 * + + col2, - col0 - - + 69 + col2 * - + CAST ( NULL AS INTEGER ) * - 7 * + col0 AS col2 FROM tab1 AS cor0
----
2537
NULL
2924
NULL
4128
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 81 ) IS NULL
----

query I rowsort
SELECT 24 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) + - col2 + + + 67 * + - 71 * 7 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT col1 + - col1 * - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1470
-150165
-18802

query I rowsort
SELECT + col1 + - 71 + + col0 AS col2 FROM tab0 AS cor0
----
25
27
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4974
SELECT DISTINCT + col0 - + col2 col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4974
SELECT DISTINCT + col0 - + col2 col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

query II rowsort
SELECT ALL - col0 * ( col2 ), - col2 AS col1 FROM tab2 AS cor0
----
-1058
-23
-2560
-40
-4350
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT - + 11 * MAX( - + col2 ) + + CAST( NULL AS SIGNED ) + + 23 + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4976
SELECT - + 11 * MAX ( - + col2 ) + + CAST ( NULL AS INTEGER ) + + 23 + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 44 + - col2 AS col2 FROM tab1 AS cor0
----
-15
-24
-52

query I rowsort
SELECT ALL + ( - ( + + 74 ) ) AS col1 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT col0 + + + col0 FROM tab2
----
128
150
92

query II rowsort
SELECT 94 AS col1, col1 * + 43 FROM tab2
----
94
2193
94
2881
94
3311

query II rowsort
SELECT col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

query II rowsort
SELECT DISTINCT 51 AS col2, col0 FROM tab0
----
51
15
51
87
51
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL + SUM( 67 ) * MIN( 34 ) FROM tab2
----
6834

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + SUM ( 67 ) * MIN ( 34 ) FROM tab2
----
6834

query I rowsort
SELECT ALL col2 * - 29 AS col1 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT ( - - 45 ) FROM tab0 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - + COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4986
SELECT - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + + col1 / col2 * - col2 AND col1 / + - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 97 + - 50 BETWEEN + - col1 AND - col1 / + + 70 * col1 + 63 / + col1
----

query II rowsort
SELECT col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - + MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4990
SELECT - + MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - - 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT ( - 40 ) FROM tab1
----
-40

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT - + ( - + CAST( NULL AS SIGNED ) ) * CAST( - - 32 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT - + ( - + CAST ( NULL AS INTEGER ) ) * CAST ( - - 32 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT + SUM( 66 ) AS col1 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT + SUM ( 66 ) AS col1 FROM tab0 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + SUM( col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT + SUM ( col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + - 59 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT DISTINCT 39 + + CAST( + col0 AS SIGNED ) FROM tab0
----
126
136
54

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT 39 + + CAST ( + col0 AS INTEGER ) FROM tab0
----
126
136
54

query I rowsort
SELECT ALL + 21 + + 41 FROM tab0
----
62
62
62

query II rowsort
SELECT col1, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL col1 + - - 83 AS col1 FROM tab0
----
104
164
84

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT DISTINCT + 84 + + + col0 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + 84 + + + col0 - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 87 * 27 + col0 FROM tab0 AS cor0
----
2379
2523
2543

query II rowsort
SELECT ALL - + 48 - 48 * + ( - 53 ) AS col1, col0 FROM tab2 AS cor0
----
2496
46
2496
64
2496
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5011
SELECT ALL col1 AS col1, - 83 - - - 87 DIV - col1 FROM tab1 AS cor0
----
14
-77
47
-82
5
-66

skipif mysql # not compatible
query II rowsort label-5011
SELECT ALL col1 AS col1, - 83 - - - 87 / - col1 FROM tab1 AS cor0
----
14
-77
47
-82
5
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - 46 IS NULL
----

query I rowsort
SELECT ALL - 41 - + - 27 AS col0 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT ALL + - ( - - col2 ) - - + col0 + ( ( - 1 ) ) + + - col0 FROM tab0 AS cor0
----
-100
-11
-48

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 50 BETWEEN + + 75 AND - - 19 * - + col0 / - - col2 + - col0
----

query I rowsort
SELECT ALL + col2 + - + ( 92 ) * - + col1 AS col1 FROM tab1 cor0
----
1384
4392
519

query I rowsort
SELECT 1 * + - col2 * + col1 - - col0 AS col1 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT ALL col0 * - + 80 FROM tab1
----
-4080
-6800
-7280

query I rowsort
SELECT col1 * - ( - - 28 ) FROM tab1
----
-1316
-140
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5021
SELECT DISTINCT col2 / + + CAST( NULL AS SIGNED ) AS col0, col2 * - - col1 FROM tab2
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
query II rowsort label-5021
SELECT DISTINCT col2 / + + CAST ( NULL AS INTEGER ) AS col0, col2 * - - col1 FROM tab2
----
NULL
1173
NULL
3080
NULL
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5022
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5022
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT DISTINCT + 88 * - col2 * + 22 FROM tab2
----
-112288
-44528
-77440

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ( + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5024
SELECT ( + COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + - ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + - ( + col1 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL - + col1 + 94 AS col1 FROM tab0 cor0 WHERE - 43 / ( ( + 52 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5028
SELECT - + COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL - CAST( 76 AS SIGNED ) FROM tab2
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL - CAST ( 76 AS INTEGER ) FROM tab2
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 33 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5030
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 33 + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 2 FROM tab0 AS cor0
----
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 + - col1 * + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT + + col0 DIV + 39 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-5035
SELECT + + col0 / + 39 col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL + - MAX( - - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + - MAX ( - - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5037
SELECT col2 col1, - CAST( NULL AS SIGNED ) + 87 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5037
SELECT col2 col1, - CAST ( NULL AS INTEGER ) + 87 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT col0 + col1 * + col1, + col2 FROM tab2 AS cor0
----
2647
23
4564
58
5993
40

query I rowsort
SELECT DISTINCT + + col2 * + 84 + - col2 FROM tab1 cor0 WHERE + 18 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 + 47 * + col0 FROM tab0
----
4176
4656
720

query I rowsort
SELECT - col0 + col1 * - + col2 AS col0 FROM tab1
----
-1395
-3287
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL + 1 * + + col1 DIV 61 * + - col2 + col1 * + 37 AS col0 FROM tab2
----
1887
2421
2809

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL + 1 * + + col1 / 61 * + - col2 + col1 * + 37 AS col0 FROM tab2
----
1887
2421
2809

query I rowsort
SELECT ALL 1 + + - 98 * - + col2 * + col1 AS col2 FROM tab1
----
131713
28911
313209

query I rowsort
SELECT ALL + 29 AS col2 FROM tab0
----
29
29
29

query I rowsort
SELECT ALL + - 11 + - 99 AS col0 FROM tab0 cor0
----
-110
-110
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - 15 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 15 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, 36 + - 69 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5049
SELECT + + ( col1 ) AS col0, - 84 DIV + - col0 AS col2 FROM tab1 AS cor0
----
14
1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-5049
SELECT + + ( col1 ) AS col0, - 84 / + - col0 AS col2 FROM tab1 AS cor0
----
14
1
47
0
5
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT - 62 AS col0 FROM tab1 cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT - - COUNT( * ) * 26 AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5052
SELECT - - COUNT ( * ) * 26 AS col2 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5053
SELECT ALL 83 AS col2, COUNT( * ) FROM tab0
----
83
3

skipif mysql # not compatible
query II rowsort label-5053
SELECT ALL 83 AS col2, COUNT ( * ) FROM tab0
----
83
3

query I rowsort
SELECT DISTINCT - 83 + + col2 AS col1 FROM tab1
----
-15
-24
13

query I rowsort
SELECT - col2 + + ( - col0 ) * - col0 FROM tab1 AS cor0
----
2505
7166
8213

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT DISTINCT - 19 DIV + 27 + 22 AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - 19 / + 27 + 22 AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT + col1 + + col0 + col0 * col0 * + 2 AS col1 FROM tab1 AS cor0
----
14540
16700
5267

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5060
SELECT + 65, CAST( NULL AS DECIMAL ) * - col1 * col1 AS col0 FROM tab0 AS cor0
----
65
NULL
65
NULL
65
NULL

skipif mysql # not compatible
query II rowsort label-5060
SELECT + 65, CAST ( NULL AS REAL ) * - col1 * col1 AS col0 FROM tab0 AS cor0
----
65
NULL
65
NULL
65
NULL

query I rowsort
SELECT DISTINCT - 35 * + + 13 + + col1 AS col0 FROM tab0 AS cor0
----
-374
-434
-454

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 - - 35 col0 FROM tab1 cor0 WHERE NULL IS NULL
----
1379
3231
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * + + col2 col2 FROM tab1
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL - 56 - + ( + COUNT( DISTINCT + col2 ) ) FROM tab1 WHERE NOT ( NOT + 7 IS NOT NULL )
----
-59

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - 56 - + ( + COUNT ( DISTINCT + col2 ) ) FROM tab1 WHERE NOT ( NOT + 7 IS NOT NULL )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT - col1 AS col0, 10 + col0 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT DISTINCT ( - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT ( - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT ( + col1 ) DIV - + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5068
SELECT ( + col1 ) / - + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 48 AS col2 FROM tab0 cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT - + SUM( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - + SUM ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT + 68 AS col1, + col2 FROM tab2 AS cor0
----
68
23
68
40
68
58

query II rowsort
SELECT DISTINCT + col1, + 86 + + col2 AS col2 FROM tab2 AS cor0
----
51
109
67
144
77
126

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT ALL COUNT( col2 ) AS col1, SUM( + + col0 ) FROM tab2 AS cor0
----
3
185

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL COUNT ( col2 ) AS col1, SUM ( + + col0 ) FROM tab2 AS cor0
----
3
185

query I rowsort
SELECT + col2 + - + 23 AS col2 FROM tab1 AS cor0
----
36
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL + SUM( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + SUM ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - - 82 AS col1 FROM tab2 cor0 WHERE NOT ( col1 ) + + 35 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT - + CAST( - col1 AS SIGNED ) + - + col0 * - col2 + - col0 * 26 AS col0 FROM tab0 AS cor0
----
-1371
396
7082

skipif mysql # not compatible
query I rowsort label-5077
SELECT - + CAST ( - col1 AS INTEGER ) + - + col0 * - col2 + - col0 * 26 AS col0 FROM tab0 AS cor0
----
-1371
396
7082

query I rowsort
SELECT col2 * + 90 + - col2 AS col1 FROM tab2 AS cor0
----
2047
3560
5162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL col0 * - 10 * - - 2 AS col0 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT ( + + 88 ) FROM tab0
----
88
88
88

query I rowsort
SELECT + 80 - + + ( - col0 ) * - col0 - col0 AS col1 FROM tab1
----
-2572
-7230
-8292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5085
SELECT DISTINCT - SUM( - 25 ) + + 18 DIV + 88 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT - SUM ( - 25 ) + + 18 / + 88 FROM tab2
----
75

query I rowsort
SELECT - col2 + + col0 - + col0 + - col1 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5087
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 - + 89 - col1 + - 46 FROM tab0 AS cor0
----
-135
-135
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 + + + col1 + col0 col2 FROM tab0
----
30
32
42

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> 51
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) > + - ( - col1 ) + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT + SUM( + + col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + SUM ( + + col0 ) AS col0 FROM tab0 cor0
----
199

query I rowsort
SELECT - + ( - - 66 ) AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + col2 AND - 9 + + + col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT + CAST( 43 AS SIGNED ) FROM tab0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-5096
SELECT + CAST ( 43 AS INTEGER ) FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT col0 * + + col0 AS col1 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col1 col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab1 WHERE NOT + 22 < - col0 * + 43 / - - col0 * + 28 + col1 * 78 * - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 * - - col1 AS col2 FROM tab2 cor0 WHERE NOT + col2 BETWEEN - col1 AND - ( - 21 )
----
2346
4928
5025

query I rowsort
SELECT col1 * + 55 AS col0 FROM tab1 AS cor0
----
2585
275
770

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <> 58 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT DISTINCT + col0 * + - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + col0 * + - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col0 AS col1, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 44 + - 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL MAX( 45 ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL MAX ( 45 ) AS col0 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - - 63 + MAX( ALL - 14 ) AS col2 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5110
SELECT - - 63 + MAX ( ALL - 14 ) AS col2 FROM tab2 AS cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT DISTINCT 48 DIV + + col1 AS col2 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT 48 / + + col1 AS col2 FROM tab1 AS cor0
----
1
3
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 7 + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 7 + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL + COUNT( * ) + 38 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + COUNT ( * ) + 38 FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT + 89 * col2 AS col2 FROM tab1 AS cor0
----
5251
6052
8544

query II rowsort
SELECT + col1 + + col0, col2 AS col1 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT 68 * - + 39 FROM tab2 WHERE ( ( + CAST( - col0 AS SIGNED ) * + + col0 * + col1 IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-5117
SELECT 68 * - + 39 FROM tab2 WHERE ( ( + CAST ( - col0 AS INTEGER ) * + + col0 * + col1 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT ALL 92 DIV + col2 + + - col1 AS col2 FROM tab0
----
-1
-12
-80

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL 92 / + col2 + + - col1 AS col2 FROM tab0
----
-1
-12
-80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL 0 * - 27 + - SUM( DISTINCT - + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL 0 * - 27 + - SUM ( DISTINCT - + col2 ) FROM tab0
----
156

query II rowsort
SELECT ALL col0 + + col0 AS col2, col0 FROM tab2
----
128
64
150
75
92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT DISTINCT + 78 - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
125
177
88

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT + 78 - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
125
177
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT DISTINCT - + 24 DIV - 92 + COUNT( DISTINCT 87 ) * - 24 AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT - + 24 / - 92 + COUNT ( DISTINCT 87 ) * - 24 AS col1 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT - CAST( NULL AS SIGNED ) - - - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - CAST ( NULL AS INTEGER ) - - - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 - 7 * col2 * + 22 AS col1 FROM tab1 AS cor0
----
-10399
-14711
-9013

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5126
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) >= - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5126
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) >= - col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5127
SELECT + col1 AS col1, 29 DIV col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-5127
SELECT + col1 AS col1, 29 / col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5128
SELECT - - COUNT( * ) DIV + - 25 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT - - COUNT ( * ) / + - 25 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT MIN( + 78 ) FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-5129
SELECT MIN ( + 78 ) FROM tab1 cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5130
SELECT DISTINCT col0 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5130
SELECT DISTINCT col0 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN + col2 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT col0 >= + CAST( + col2 AS SIGNED )
----
47
99

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT col0 >= + CAST ( + col2 AS INTEGER )
----
47
99

query II rowsort
SELECT + col2 * + 79 + - col1 AS col1, + 94 + - - col0 FROM tab0 AS cor0
----
3632
109
769
181
7820
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT - + COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5134
SELECT - + COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT ALL + ( COUNT( * ) ) AS col1, + MAX( col2 ) AS col2 FROM tab1
----
3
96

skipif mysql # not compatible
query II rowsort label-5135
SELECT ALL + ( COUNT ( * ) ) AS col1, + MAX ( col2 ) AS col2 FROM tab1
----
3
96

query II rowsort
SELECT - col0 * + - col0, - col1 AS col1 FROM tab2
----
2116
-51
4096
-77
5625
-67

query I rowsort
SELECT + 53 * - 42 FROM tab0
----
-2226
-2226
-2226

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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-5141
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5141
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT COUNT( * ) DIV - + 27 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT COUNT ( * ) / - + 27 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col0 * + - 53 FROM tab1 AS cor0 WHERE NOT col1 * + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 <= ( + col1 )
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5146
SELECT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT + + 79 * + col2 - + + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
1818
3161
4582

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + + 79 * + col2 - + + col1 / - col0 AS col2 FROM tab2 AS cor0
----
1818
3161
4582

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 * - ( col1 ) col2 FROM tab1 AS cor0
----
-2115
-225
-630

query II rowsort
SELECT + col0 - col1 AS col1, 89 * - - 78 AS col2 FROM tab2 AS cor0 WHERE - 34 BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + 83 ) * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 32 * - 29 AS col1 FROM tab2 AS cor0
----
-928
-928
-928

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5154
SELECT ALL * FROM tab1 WHERE NOT - col0 + - 20 < CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5154
SELECT ALL * FROM tab1 WHERE NOT - col0 + - 20 < CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT + 63 * 4 - + + col2 AS col2 FROM tab2
----
194
212
229

query I rowsort
SELECT ALL ( + - col1 ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col2 + - col2 + - ( + - 22 ) FROM tab2
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT ALL col2 DIV + 16 + + 14 FROM tab1
----
17
18
20

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL col2 / + 16 + + 14 FROM tab1
----
17
18
20

query I rowsort
SELECT - 24 + - - col1 * - 42 FROM tab1
----
-1998
-234
-612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5160
SELECT DISTINCT CAST( - col1 AS SIGNED ) + col0 + - col0 AS col1, col0 FROM tab1
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-5160
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + col0 + - col0 AS col1, col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT 50 + - 94 * - 99 AS col0 FROM tab2
----
9356
9356
9356

query I rowsort
SELECT ALL ( ( + 18 ) ) - - 16 AS col0 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5163
SELECT DISTINCT 53 DIV COUNT( * ) * 91 * COUNT( - col2 ) - + 16 FROM tab1 AS cor0
----
4625

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT 53 / COUNT ( * ) * 91 * COUNT ( - col2 ) - + 16 FROM tab1 AS cor0
----
4625

query I rowsort
SELECT ALL - 5 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + + 91 AND - col1
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) < + - 4
----

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT + + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT + + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT - AVG ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT - AVG ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5170
SELECT ALL - CAST( - col0 AS SIGNED ) DIV col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - CAST ( - col0 AS INTEGER ) / col1 FROM tab2 cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - + ( + + col2 ) + + - 64 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 71 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - ( + - col2 ) + 60 IS NOT NULL
----

query I rowsort
SELECT - - 4 AS col2 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT COUNT( * ) - - + 33 * - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-96

skipif mysql # not compatible
query I rowsort label-5175
SELECT COUNT ( * ) - - + 33 * - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT ( + - MIN( + + CAST( NULL AS SIGNED ) ) ) * + + SUM( DISTINCT + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT ( + - MIN ( + + CAST ( NULL AS INTEGER ) ) ) * + + SUM ( DISTINCT + col0 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT - CAST( - 81 AS SIGNED ) AS col1 FROM tab0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-5177
SELECT - CAST ( - 81 AS INTEGER ) AS col1 FROM tab0
----
81
81
81

query II rowsort
SELECT + 14, - col2 * + 30 AS col1 FROM tab2
----
14
-1200
14
-1740
14
-690

query I rowsort
SELECT ( + col0 ) * col0 AS col1 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5180
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT ( NOT 28 NOT BETWEEN ( - CAST( NULL AS SIGNED ) / - col2 ) AND + col1 / - 56 + + - 21 + - 25 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5180
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT ( NOT 28 NOT BETWEEN ( - CAST ( NULL AS INTEGER ) / - col2 ) AND + col1 / - 56 + + - 21 + - 25 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT + - 71 AS col0, SUM( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL = NULL
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-5181
SELECT + - 71 AS col0, SUM ( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL = NULL
----
-71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT 48 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT 48 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT ALL - col0 + + + col0 DIV + 42 + - + ( - + ( + col0 ) ) + 51 * col1 * + - col2 + 70 FROM tab0
----
-10638
-194087
-4977

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - col0 + + + col0 / + 42 + - + ( - + ( + col0 ) ) + 51 * col1 * + - col2 + 70 FROM tab0
----
-10638
-194087
-4977

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT - col2 + 64 DIV + + 41 AS col1 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5185
SELECT - col2 + 64 / + + 41 AS col1 FROM tab0 AS cor0
----
-46
-9
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + 29 + - col1 FROM tab2 AS cor0
----
-22
-38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT + - SUM( DISTINCT + + 63 ) AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5188
SELECT + - SUM ( DISTINCT + + 63 ) AS col1 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL + 21 * 79 + col1 FROM tab1 WHERE NOT 1 + col2 < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 > ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5191
SELECT ALL * FROM tab0 WHERE NOT CAST( col0 AS DECIMAL ) + - col0 * col1 BETWEEN 74 * col1 + 86 * col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5191
SELECT ALL * FROM tab0 WHERE NOT CAST ( col0 AS REAL ) + - col0 * col1 BETWEEN 74 * col1 + 86 * col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5192
SELECT * FROM tab1 WHERE 81 * col0 NOT BETWEEN ( - 38 * CAST( - col1 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5192
SELECT * FROM tab1 WHERE 81 * col0 NOT BETWEEN ( - 38 * CAST ( - col1 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT - 13 + col2 FROM tab0 WHERE NULL = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT ALL 15 AS col2 FROM tab0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL - COUNT( * ) FROM tab1 WHERE 17 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - COUNT ( * ) FROM tab1 WHERE 17 IS NULL
----
0

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE + col1 / + col1 IS NULL
----

query I rowsort
SELECT - 12 * col1 FROM tab2
----
-612
-804
-924

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - 49 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + ( 38 ) * SUM( ALL col2 ) FROM tab1
----
8474

skipif mysql # not compatible
query I rowsort label-5201
SELECT + ( 38 ) * SUM ( ALL col2 ) FROM tab1
----
8474

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT 80 * COUNT( ALL 46 / col0 ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-5203
SELECT 80 * COUNT ( ALL 46 / col0 ) FROM tab2
----
240

query I rowsort
SELECT ALL - col0 + + 23 AS col2 FROM tab0
----
-64
-74
8

query I rowsort
SELECT - 2 * + col1 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT - ( COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT 92 * - COUNT( * ) AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-5207
SELECT 92 * - COUNT ( * ) AS col0 FROM tab1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL - 40 + + COUNT( * ) * COUNT( * ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - 40 + + COUNT ( * ) * COUNT ( * ) FROM tab0
----
-31

query I rowsort
SELECT ALL - col1 * ( - col1 ) FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5210
SELECT ALL CAST( NULL AS DECIMAL ) + + 31 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL CAST ( NULL AS REAL ) + + 31 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 78 AS col0 FROM tab0
----
1638
6318
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 6 + - 86 ) BETWEEN NULL AND + 99
----

query I rowsort
SELECT ( - ( - 78 ) ) - 15 FROM tab1
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5215
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN col1 AND CAST( 65 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-5215
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN col1 AND CAST ( 65 AS INTEGER )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col1 * 67 FROM tab1
----
3149
335
938

query III rowsort
SELECT * FROM tab2 WHERE col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < col1
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / ( col2 ) + - col1 BETWEEN ( - col0 ) AND ( ( + col1 ) + + 76 )
----

query I rowsort
SELECT 19 - + ( - col1 + - col1 * + col2 ) FROM tab0 AS cor0
----
119
250
3907

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 84 + 77 / 98 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - SUM( ALL + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5223
SELECT - SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - MAX( 69 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5224
SELECT - MAX ( 69 ) FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5225
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT COUNT( ALL + 57 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5226
SELECT COUNT ( ALL + 57 ) FROM tab2
----
3

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT col2 NOT IN ( - 55 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5228
SELECT ( MAX( DISTINCT 98 ) ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5228
SELECT ( MAX ( DISTINCT 98 ) ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT DISTINCT - col2 DIV 68 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - col2 / 68 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT col0 DIV CAST( 76 AS SIGNED ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT col0 / CAST ( 76 AS INTEGER ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT - col0 DIV - col1 col2 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5231
SELECT - col0 / - col1 col2 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT - MIN( col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - MIN ( col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT + ( + col0 ) DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5233
SELECT + ( + col0 ) / col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * 38 IS NULL
----

query I rowsort
SELECT ALL + 91 * 62 AS col0 FROM tab2 cor0
----
5642
5642
5642

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE ( + col0 / col1 ) NOT BETWEEN ( 40 + - 21 * col0 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5238
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) = col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5238
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) = col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + col0 <= - 61 * - 15 OR ( 20 * - 60 ) <> NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( col0 + + col1 ) NOT BETWEEN ( NULL ) AND + 53 + col0 * ( - col0 + + 32 )
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 48 ) BETWEEN ( + col1 + col1 ) AND + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT MIN( ALL 58 ) * ( 5 ) AS col0 FROM tab2
----
290

skipif mysql # not compatible
query I rowsort label-5242
SELECT MIN ( ALL 58 ) * ( 5 ) AS col0 FROM tab2
----
290

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <> ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT ALL 61 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL 61 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( col0 + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col0 - col2 * col0 AND NULL
----

query I rowsort
SELECT ALL + ( - col2 ) * + 1 AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT + col1 DIV 76 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + col1 / 76 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT col0 + - col0 + + 14 FROM tab2
----
14

query I rowsort
SELECT 10 * - - col0 FROM tab0
----
150
870
970

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 15 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - - 18 + + 67 * col1 FROM tab2
----
4335
5695
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL > + ( + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL > + ( + 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT MAX( - 63 ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT MAX ( - 63 ) FROM tab2 AS cor0
----
-63

query I rowsort
SELECT + col1 + 71 FROM tab1
----
118
76
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT - col1 * + 98 + - 64 FROM tab0
----
-162
-2122
-8002

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT DISTINCT - COUNT( * ) - - 7 + ( 88 ) col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5258
SELECT DISTINCT - COUNT ( * ) - - 7 + ( 88 ) col2 FROM tab1 AS cor0
----
92

query I rowsort
SELECT ALL + 26 - - 34 AS col1 FROM tab1 AS cor0
----
60
60
60

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col1 + - 74 * col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT DISTINCT + col2 + + 51 DIV - + col2 + - 94 FROM tab1 AS cor0
----
-26
-35
2

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + col2 + + 51 / - + col2 + - 94 FROM tab1 AS cor0
----
-26
-35
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5262
SELECT col1 - 76 + + col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5262
SELECT col1 - 76 + + col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + 61 AS col1, 14 + - col2 FROM tab1 AS cor0
----
61
-45
61
-54
61
-82

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT MAX( - ( 10 ) ) - - COUNT( * ) AS col1 FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT MAX ( - ( 10 ) ) - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-7

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT ( + - ( 91 ) ) * + col1 + 91 DIV col0 AS col1 FROM tab0
----
-1910
-7365
-91

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT ( + - ( 91 ) ) * + col1 + 91 / col0 AS col1 FROM tab0
----
-1910
-7365
-91

query I rowsort
SELECT + col2 - - col2 * col0 FROM tab1
----
4992
5074
6256

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 66 + - col1 / + col0 IS NULL AND 37 = 13 * + ( 50 )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NULL NOT IN ( - 88 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 8 ) col1 FROM tab2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5272
SELECT CAST( NULL AS SIGNED ) + MAX( 62 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT CAST ( NULL AS INTEGER ) + MAX ( 62 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col0 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 72 + - col1 + + col1 AS col0 FROM tab0
----
3384
7128
720

query I rowsort
SELECT ALL + ( col0 ) * + 45 + + + col2 FROM tab2
----
2093
2920
3433

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT ALL MAX( + - 50 ), COUNT( * ) AS col2 FROM tab1
----
-50
3

skipif mysql # not compatible
query II rowsort label-5276
SELECT ALL MAX ( + - 50 ), COUNT ( * ) AS col2 FROM tab1
----
-50
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) * + - col1 + - col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) * + - col1 + - col2 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT - COUNT( * ) FROM tab2 WHERE NOT + + 13 * + ( 69 ) + + col0 NOT IN ( - col0 * - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + + 13 * + ( 69 ) + + col0 NOT IN ( - col0 * - 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT - + SUM( + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - + SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5281
SELECT COUNT ( * ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT - MIN( DISTINCT + 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT - MIN ( DISTINCT + 41 ) FROM tab2 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5283
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT + ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-5283
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT + ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 * - + col0 )
----

query I rowsort
SELECT ALL + col2 * + + col2 * - + col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 / 44 ) = ( col2 + 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - COUNT( * ) * + - 18 AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - COUNT ( * ) * + - 18 AS col1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT - ( 6 ) + 11 AS col0 FROM tab2
----
5
5
5

query I rowsort
SELECT - 18 + - col2 FROM tab1
----
-114
-77
-86

query I rowsort
SELECT - 83 FROM tab0 WHERE NOT 58 IS NULL
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5291
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col2, + MIN( CAST( NULL AS SIGNED ) ) FROM tab1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5291
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col2, + MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT - col2 * col2 + col0 * - + col2 * - col0 / - - col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT - col2 * col2 + col0 * - + col2 * - col0 / - - col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MIN( - col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MIN ( - col1 ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT DISTINCT + 80 + - + ( - + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + 80 + - + ( - + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL - col1 + 47 * + 4 FROM tab0
----
107
167
187

query I rowsort
SELECT DISTINCT - col2 * col2 * - col1 + + 69 * - col1 FROM tab2
----
117887
220765
23460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5298
SELECT - + CAST( NULL AS SIGNED ) AS col0, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5298
SELECT - + CAST ( NULL AS INTEGER ) AS col0, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT CAST( NULL AS SIGNED ) / col1 + 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT CAST ( NULL AS INTEGER ) / col1 + 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 * + col0, - col0 AS col2 FROM tab2 AS cor0
----
-1058
-46
-2560
-64
-4350
-75

query I rowsort
SELECT + col1 * - + 88 * + 49 FROM tab0 AS cor0 WHERE + col1 > + 41 + 22
----
-349272

query I rowsort
SELECT DISTINCT - col0 + + col0 + + 63 AS col2 FROM tab1 AS cor0
----
63

query II rowsort
SELECT 96, col1 - - 93 - 54 * + col2 + + col1 AS col1 FROM tab1 AS cor0
----
96
-3083
96
-3485
96
-5063

query I rowsort
SELECT 68 * - col2 * col1 * + 62 FROM tab0
----
-16050312
-417384
-885360

query I rowsort
SELECT ALL col0 * col1 + + ( - col0 ) AS col2 FROM tab2
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL MAX( + col2 ) - COUNT( * ) AS col2 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL MAX ( + col2 ) - COUNT ( * ) AS col2 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT MIN( + col2 ) + - 48 * SUM( DISTINCT + - ( col1 ) ) FROM tab1
----
3227

skipif mysql # not compatible
query I rowsort label-5307
SELECT MIN ( + col2 ) + - 48 * SUM ( DISTINCT + - ( col1 ) ) FROM tab1
----
3227

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 69 - - + col1 FROM tab2 AS cor0
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - COUNT( * ) + + 24 AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5310
SELECT - COUNT ( * ) + + 24 AS col0 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL col2 - - 7 AS col0 FROM tab1 AS cor0
----
103
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT 79 * - col2 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5312
SELECT 79 * - col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + 42 <= + col2 + + col2 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + - 50 + COUNT( * ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5314
SELECT + - 50 + COUNT ( * ) AS col1 FROM tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT - 60 - + 67 FROM tab0 AS cor0
----
-127

query I rowsort
SELECT + 4 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND - 44 * col2 + + col1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
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-5317
SELECT COUNT ( * ) col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL 49 AS col2, col2 * 87 + + col1 FROM tab2
----
49
2052
49
3557
49
5113

query I rowsort
SELECT DISTINCT - - col0 + - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL 94, + 21 * - 39 AS col1 FROM tab2
----
94
-819
94
-819
94
-819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5321
SELECT DISTINCT CAST( + - SUM( ALL - 82 ) AS SIGNED ) AS col1 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT CAST ( + - SUM ( ALL - 82 ) AS INTEGER ) AS col1 FROM tab0
----
246

query II rowsort
SELECT + 73, col1 FROM tab0
----
73
1
73
21
73
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) > - col2 ) OR col2 * + - 40 + - col2 IS NULL
----

query I rowsort
SELECT 62 * + col0 AS col1 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT + + 92 AS col1 FROM tab0 cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5327
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ), + 40 )
----

skipif mysql # not compatible
query III rowsort label-5327
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ), + 40 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-51
1344
-85
295
-91
3196

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab2 WHERE NOT + + col1 + - col1 IS NULL
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT DISTINCT ( + - MAX( DISTINCT + 40 ) ) AS col1, + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-40
81

skipif mysql # not compatible
query II rowsort label-5330
SELECT DISTINCT ( + - MAX ( DISTINCT + 40 ) ) AS col1, + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-40
81

query I rowsort
SELECT ALL ( + ( - + col0 ) ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL col2 * - + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col1 + 57 + - - 42 + col1 + + col1 * col1 + col1 * + col1 + - col2 FROM tab0 cor0
----
13174
2
971

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL COUNT( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT ALL 36 * col2 * CAST( NULL AS SIGNED ) - + 86 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL 36 * col2 * CAST ( NULL AS INTEGER ) - + 86 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT + COUNT( * ) * - 2 AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5338
SELECT + COUNT ( * ) * - 2 AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT + 56 * - COUNT( * ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT + 56 * - COUNT ( * ) FROM tab1 AS cor0
----
-168

query I rowsort
SELECT - col1 * + 13 FROM tab1 AS cor0
----
-182
-611
-65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col1 * - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 82 * - col1 + + - col2 FROM tab1 AS cor0
----
-1244
-3922
-469

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 46 * + col2 + - col1, ( - - ( + col2 ) ) )
----

query I rowsort
SELECT DISTINCT + col0 + - + col2 FROM tab0
----
-2
-32
77

query II rowsort
SELECT + col2 AS col2, col2 + + - col0 FROM tab1 WHERE + ( 50 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5347
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5347
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5348
SELECT CAST( NULL AS DECIMAL ) * + ( + + 0 ) AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT CAST ( NULL AS REAL ) * + ( + + 0 ) AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + 40, col0 FROM tab2
----
40
46
40
64
40
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT ALL col2 DIV + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL col2 / + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 31 * + 6 AS col1 FROM tab0
----
-186
-186
-186

query I rowsort
SELECT + 34 * col2 AS col2 FROM tab0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT + COUNT( DISTINCT - + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5353
SELECT + COUNT ( DISTINCT - + col2 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + COUNT( - 71 ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5354
SELECT + COUNT ( - 71 ) * - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT 40 + - 90 + - col0 * - + 95 AS col2 FROM tab2
----
4320
6030
7075

query I rowsort
SELECT ALL + col0 + - - col0 AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT - col0 * - 56 + - col1 FROM tab2
----
2525
3507
4133

query I rowsort
SELECT ALL + 61 + + - 49 FROM tab2 AS cor0
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 2 <= + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT - + SUM( + col1 ) / CAST( - - 38 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE col1 < - 18 * - - col2 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT - + SUM ( + col1 ) / CAST ( - - 38 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE col1 < - 18 * - - col2 + + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + COUNT( * ) + - + 69 * + COUNT( * ) * - + 33 AS col0 FROM tab2 AS cor0
----
6834

skipif mysql # not compatible
query I rowsort label-5362
SELECT + COUNT ( * ) + - + 69 * + COUNT ( * ) * - + 33 AS col0 FROM tab2 AS cor0
----
6834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT ( + - CAST( + col0 AS SIGNED ) ) + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT ( + - CAST ( + col0 AS INTEGER ) ) + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT ( + MIN( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT ( + MIN ( + col0 ) ) FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT 37 DIV + - col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5365
SELECT 37 / + - col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( + ( - col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 89 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5369
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL BETWEEN 89 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL BETWEEN 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query II rowsort
SELECT 22 AS col0, col1 FROM tab1 cor0
----
22
14
22
47
22
5

query I rowsort
SELECT ALL 26 + - col1 AS col0 FROM tab1 AS cor0
----
-21
12
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL - + CAST( NULL AS SIGNED ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - + CAST ( NULL AS INTEGER ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT + COUNT( * ) + - + 86 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT + COUNT ( * ) + - + 86 FROM tab0 AS cor0
----
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 9 + + + col2 AND + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT ALL col2 * - CAST( - col2 AS SIGNED ) col1 FROM tab2 cor0
----
1600
3364
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5377
SELECT ALL col2 * - CAST ( - col2 AS INTEGER ) col1 FROM tab2 cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + - + col1 NOT IN ( col1, + col2 )
----

query II rowsort
SELECT ALL - 74 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-74
51
-74
67
-74
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT + ( - SUM( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + ( - SUM ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ( - + col0 ) AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + ( - - 34 ) FROM tab2
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col0 FROM tab2
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT ( - - col0 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT ( - - col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT + 87 DIV + + col0 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5385
SELECT + 87 / + + col0 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT - SUM( ALL + col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5387
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT - + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

query I rowsort
SELECT DISTINCT + 75 * - 26 * col1 AS col2 FROM tab0
----
-157950
-1950
-40950

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col1 BETWEEN col0 + - col2 * col2 + - - 6 AND + - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT DISTINCT - + ( + - MAX( + col1 ) ) AS col2, + COUNT( * ) * 57 * - 34 FROM tab2 AS cor0
----
77
-5814

skipif mysql # not compatible
query II rowsort label-5391
SELECT DISTINCT - + ( + - MAX ( + col1 ) ) AS col2, + COUNT ( * ) * 57 * - 34 FROM tab2 AS cor0
----
77
-5814

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT + col0 * + + 94 <> + col2 )
----

query II rowsort
SELECT ALL - col0, + col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, col0 col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - col1 * + + col2 * + - col0 + - 67 FROM tab2 AS cor0
----
197053
291383
53891

query I rowsort
SELECT - col0 + + + col1 + + - 66 * - ( + col1 ) AS col1 FROM tab1 AS cor0
----
250
3058
887

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + 81 + + col0 + - 24 * col2 + + 91 AS col1 FROM tab1
----
-1218
-1437
-2177

query I rowsort
SELECT - col0 * col0 + - - col0 AS col0 FROM tab1
----
-2550
-7140
-8190

query I rowsort
SELECT ALL + col0 * - col1 + - + 53 AS col2 FROM tab0
----
-1268
-150
-1880

query I rowsort
SELECT DISTINCT + 84 + + col2 AS col1 FROM tab0
----
131
183
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 * - + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5405
SELECT 3 col2 FROM tab2 WHERE + 6 * + - ( - - CAST( NULL AS DECIMAL ) ) < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5405
SELECT 3 col2 FROM tab2 WHERE + 6 * + - ( - - CAST ( NULL AS REAL ) ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 24 ) FROM tab1 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT - 55 - - 20 + - - CAST( + + col1 AS SIGNED ) + - 25 FROM tab2 AS cor0
----
-9
17
7

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - 55 - - 20 + - - CAST ( + + col1 AS INTEGER ) + - 25 FROM tab2 AS cor0
----
-9
17
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT - col0 * - 95 * col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5409
SELECT - col0 * - 95 * col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5410
SELECT DISTINCT + 45 * + col2 + - col2 AS col1, - col1 DIV col2 AS col2 FROM tab2
----
1012
-2
1760
-1
2552
-1

skipif mysql # not compatible
query II rowsort label-5410
SELECT DISTINCT + 45 * + col2 + - col2 AS col1, - col1 / col2 AS col2 FROM tab2
----
1012
-2
1760
-1
2552
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT - MAX( DISTINCT + col1 ) + + CAST( - - 38 AS SIGNED ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-5411
SELECT - MAX ( DISTINCT + col1 ) + + CAST ( - - 38 AS INTEGER ) FROM tab0
----
-43

query I rowsort
SELECT ALL 80 * + col2 * + col0 + + - col2 * 72 AS col0 FROM tab0
----
53016
68880
761112

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + ( - 47 ) col0 FROM tab0
----
-3807
-47
-987

query I rowsort
SELECT ALL + 68 * + + 52 FROM tab2 WHERE - - col2 + + col0 - col2 IS NOT NULL
----
3536
3536
3536

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT SUM( ALL col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT SUM ( ALL col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 11 * - 18 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5420
SELECT + MIN ( col0 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT ALL col2 AS col0, col2 * - 82 * - - 54 FROM tab2 AS cor0
----
23
-101844
40
-177120
58
-256824

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + ( 98 ) / - + col0
----

query I rowsort
SELECT DISTINCT + 2 * - col1 * col0 FROM tab1
----
-1428
-850
-8554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT col0 * col0 * + CAST( - + ( - col1 ) AS SIGNED ) FROM tab0
----
158949
18225
9409

skipif mysql # not compatible
query I rowsort label-5424
SELECT col0 * col0 * + CAST ( - + ( - col1 ) AS INTEGER ) FROM tab0
----
158949
18225
9409

query I rowsort
SELECT + col1 * - + col0 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + + SUM( - col2 ) col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5426
SELECT + + SUM ( - col2 ) col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - col1 * - + col2 * + ( - col0 ) AS col2 FROM tab2 cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + 41 + + 50 AS col1 FROM tab1
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - COUNT( * ) + + 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-5429
SELECT - COUNT ( * ) + + 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
76

query I rowsort
SELECT DISTINCT + 47 + + 19 FROM tab0
----
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + + col1 / - 19 + - col0 - + col1 AS col1 FROM tab2 WHERE NULL IN ( + - ( - + 37 ), + col0 + col1 * 84, - - col2 * 77 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 <> col0
----

query I rowsort
SELECT + 42 - - 68 FROM tab1
----
110
110
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 + + col0 col0 FROM tab0
----
155
165
83

query III rowsort
SELECT * FROM tab0 WHERE + - ( + - col2 ) + + + col1 * + 12 IS NULL
----

query I rowsort
SELECT DISTINCT - 35 - - col1 - + col2 - col2 AS col2 FROM tab2
----
-30
-38
-84

query I rowsort
SELECT + ( + + 52 ) * col2 + + col2 + + col2 FROM tab1 AS cor0
----
3186
3672
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 + - - col1 * + - col0 col2 FROM tab1 cor0
----
-4314
-462
-751

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL MAX( ALL + 1 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL MAX ( ALL + 1 ) AS col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col1 FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT CAST( col0 AS SIGNED ) * col1 * - + col1 FROM tab2
----
-119646
-336675
-379456

skipif mysql # not compatible
query I rowsort label-5443
SELECT CAST ( col0 AS INTEGER ) * col1 * - + col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT DISTINCT COUNT( * ) * + 43 * + COUNT( * ) FROM tab2
----
387

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT COUNT ( * ) * + 43 * + COUNT ( * ) FROM tab2
----
387

query I rowsort
SELECT ALL col0 * - - col2 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----
0

query I rowsort
SELECT DISTINCT 55 + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 * + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT - + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5448
SELECT - + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col0 * + col2 AS col1 FROM tab0 AS cor0 WHERE col0 + - 41 IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL - + COUNT( * ) * + - 43 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - + COUNT ( * ) * + - 43 FROM tab2 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + ( - - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + - col0 = + 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT MAX( col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5455
SELECT MAX ( col0 ) AS col0 FROM tab2
----
75

query II rowsort
SELECT col1 AS col0, - 62 * + col1 FROM tab0
----
1
-62
21
-1302
81
-5022

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL + 35 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + 35 / + + col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5458
SELECT CAST( NULL AS DECIMAL ) + - 78 AS col0 FROM tab1 WHERE NOT + CAST( - 88 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT CAST ( NULL AS REAL ) + - 78 AS col0 FROM tab1 WHERE NOT + CAST ( - 88 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab2 AS cor0
----
70

query I rowsort
SELECT col1 * - col0 * + + col2 - + 5 FROM tab1 AS cor0
----
-25080
-290841
-68549

query III rowsort
SELECT * FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT + 69 + col0 - - col1 FROM tab0 AS cor0
----
165
167
177

onlyif mysql # aggregate syntax: 
query II rowsort label-5463
SELECT - COUNT( * ) + + - COUNT( DISTINCT 77 ) + + + 59, 88 col1 FROM tab0 AS cor0
----
55
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5463
SELECT - COUNT ( * ) + + - COUNT ( DISTINCT 77 ) + + + 59, 88 col1 FROM tab0 AS cor0
----
55
88

query I rowsort
SELECT + + col1 + + 95 AS col0 FROM tab0 AS cor0
----
116
176
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / col2 / ( + 15 ) > + + 58
----

query I rowsort
SELECT col2 + 84 + - + col1 FROM tab0 cor0
----
182
50
73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - 34 + ( - ( - + MAX( ALL - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5468
SELECT - 34 + ( - ( - + MAX ( ALL - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 84 + + - col0 IS NOT NULL
----

query I rowsort
SELECT + 52 AS col1 FROM tab1 WHERE - - col0 NOT IN ( + + col1 )
----
52
52
52

query I rowsort
SELECT ALL 6 + + col2 AS col0 FROM tab0
----
105
16
53

query I rowsort
SELECT + col0 * 99 - - + ( - 38 ) FROM tab2 AS cor0
----
4516
6298
7387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + + col1, + col0 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5475
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT - + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT - + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 66 >= - col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT MIN( ALL + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5478
SELECT MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col1 - - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + + ( - col0 ) <> 95 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 38 AS col0 FROM tab2 AS cor0
----
46
38
64
38
75
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 66 * - + col1 + + 77 col0 FROM tab0 AS cor0 WHERE + 34 IS NULL
----

query II rowsort
SELECT col0 AS col2, - col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + + 2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 87 = + 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT - 20 + + col2 DIV + + col1 FROM tab1 WHERE NULL IS NULL
----
-14
-19
-9

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - 20 + + col2 / + + col1 FROM tab1 WHERE NULL IS NULL
----
-14
-19
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ( + + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT + 10 NOT IN ( - - col1, - col1 )
----

skipif mysql # not compatible
query I rowsort label-5486
SELECT ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + 10 NOT IN ( - - col1, - col1 )
----

query I rowsort
SELECT DISTINCT 9 * - 83 FROM tab1
----
-747

query I rowsort
SELECT + col1 * + + col2 * + col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL - col2 + - col2 * + + 91 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT ( - COUNT( * ) ) * - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT + 75 * - - col1 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT - 24 * + col2 AS col2 FROM tab0
----
-1128
-2376
-240

onlyif mysql # DIV for integer division: 
query II rowsort label-5493
SELECT + 80 DIV col0, col2 FROM tab1 AS cor0 WHERE col2 <> - col0
----
0
59
0
68
1
96

skipif mysql # not compatible
query II rowsort label-5493
SELECT + 80 / col0, col2 FROM tab1 AS cor0 WHERE col2 <> - col0
----
0
59
0
68
1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT + 48 DIV + 91 * col1 + - + 65 FROM tab2
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-5494
SELECT + 48 / + 91 * col1 + - + 65 FROM tab2
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT COUNT( * ) * + + MAX( ALL + 40 ), 74 AS col1 FROM tab2 AS cor0
----
120
74

skipif mysql # not compatible
query II rowsort label-5495
SELECT COUNT ( * ) * + + MAX ( ALL + 40 ), 74 AS col1 FROM tab2 AS cor0
----
120
74

query I rowsort
SELECT ALL + + ( - + 90 ) AS col2 FROM tab1 cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 74 + + 7 * + 53 * - + 12 * col1 = - 48 * + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + 22 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - col0 * + 19 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 97 + - - ( + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5502
SELECT ALL ( - 27 ) DIV - col2 + col1 AS col0, + col0 AS col0 FROM tab2
----
52
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-5502
SELECT ALL ( - 27 ) / - col2 + col1 AS col0, + col0 AS col0 FROM tab2
----
52
46
67
75
77
64

query I rowsort
SELECT col0 - + - 30 FROM tab0
----
117
127
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL - COUNT( * ) + + - 26 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - COUNT ( * ) + + - 26 FROM tab1
----
-29

query I rowsort
SELECT ALL + col0 + 40 FROM tab0 WHERE - 50 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - ( - + 70 ) + + SUM( DISTINCT - 16 ) col2 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5506
SELECT - ( - + 70 ) + + SUM ( DISTINCT - 16 ) col2 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5507
SELECT col2 * - ( - + col2 ) + 53 AS col2, CAST( + + ( - col0 ) AS SIGNED ) FROM tab2
----
1653
-64
3417
-75
582
-46

skipif mysql # not compatible
query II rowsort label-5507
SELECT col2 * - ( - + col2 ) + 53 AS col2, CAST ( + + ( - col0 ) AS INTEGER ) FROM tab2
----
1653
-64
3417
-75
582
-46

query I rowsort
SELECT DISTINCT col2 - - + col2 AS col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5509
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST( + + col2 AS SIGNED ) * 59
----

skipif mysql # not compatible
query III rowsort label-5509
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST ( + + col2 AS INTEGER ) * 59
----

query I rowsort
SELECT ( + - col1 ) * - col2 * col2 * - col0 AS col2 FROM tab1
----
-1479425
-19776848
-6580224

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT MIN( ALL + 10 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-5512
SELECT MIN ( ALL + 10 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query I rowsort
SELECT DISTINCT + 49 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + 64 * - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-576

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + 64 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT SUM( ALL + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT SUM ( ALL + col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NULL OR NOT - ( - col1 ) / - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5519
SELECT DISTINCT - 49 * + col0 AS col2, - col1 DIV + col1 FROM tab1 AS cor0
----
-2499
-1
-4165
-1
-4459
-1

skipif mysql # not compatible
query II rowsort label-5519
SELECT DISTINCT - 49 * + col0 AS col2, - col1 / + col1 FROM tab1 AS cor0
----
-2499
-1
-4165
-1
-4459
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5520
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 32 * - col0 FROM tab0
----
2784
3104
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT - COUNT( * ) * + SUM( ALL + + col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT - COUNT ( * ) * + SUM ( ALL + + col2 ) FROM tab1
----
-669

query I rowsort
SELECT DISTINCT 7 + - 63 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL - COUNT( * ) * + 70 AS col1 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL - COUNT ( * ) * + 70 AS col1 FROM tab1
----
-210

query I rowsort
SELECT 72 + - + col0 FROM tab1
----
-13
-19
21

query I rowsort
SELECT DISTINCT col2 * - col1 + - col1 + + - 3 FROM tab2
----
-1227
-3160
-3956

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT ( + 7 ) + col1 AS col1 FROM tab1
----
12
21
54

onlyif mysql # DIV for integer division: 
query II rowsort label-5530
SELECT - ( + col1 ) * 63 * + - col0 AS col2, - col1 DIV - + col0 * + col2 col2 FROM tab1 AS cor0
----
26775
0
269451
0
44982
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5530
SELECT - ( + col1 ) * 63 * + - col0 AS col2, - col1 / - + col0 * + col2 col2 FROM tab1 AS cor0
----
26775
0
269451
0
44982
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col1 col0 FROM tab2 cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 65 + + - col0 / + col2, + ( + 5 ) )
----

query II rowsort
SELECT 73, col1 FROM tab1 AS cor0
----
73
14
73
47
73
5

query I rowsort
SELECT AVG ( + 46 ) FROM tab0 AS cor0 WHERE ( NOT NULL < NULL )
----
NULL

query I rowsort
SELECT ALL - - 8 * - col0 AS col2 FROM tab0 AS cor0
----
-120
-696
-776

query I rowsort
SELECT DISTINCT + + 46 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
46

query I rowsort
SELECT ALL ( - 7 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT - 40 * - 84 + - 25 AS col1 FROM tab0
----
3335

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5539
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + 90 IS NOT NULL AND NOT - CAST( - col0 AS SIGNED ) * + + col0 + - - col2 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5539
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + 90 IS NOT NULL AND NOT - CAST ( - col0 AS INTEGER ) * + + col0 + - - col2 + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col1 + - col2 * col2 * - col2 * - + 99 FROM tab0 AS cor0
----
-10278396
-96059600
-98979

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT + MIN( ALL + 53 ) + + 39 AS col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT + MIN ( ALL + 53 ) + + 39 AS col2 FROM tab1 AS cor0
----
92

query I rowsort
SELECT DISTINCT + + ( 29 ) * + col0 + - col2 + + col2 AS col2 FROM tab0 AS cor0
----
2523
2813
435

query I rowsort
SELECT ALL - - ( 99 ) FROM tab2 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT - ( COUNT( * ) ) + + 5 AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5544
SELECT - ( COUNT ( * ) ) + + 5 AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT + col0 * + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT ALL - + 90 AS col2 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL col0 - + col1 + + - 23 AS col0 FROM tab1 AS cor0
----
14
21
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 * - + col1 BETWEEN NULL AND ( + ( col0 ) * + 45 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT ALL - + col0 DIV col2 * + 75 * - col2 * + - col1 * - col1 FROM tab1 AS cor0
----
0
110625
11265900

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - + col0 / col2 * + 75 * - col2 * + - col1 * - col1 FROM tab1 AS cor0
----
0
110625
11265900

query II rowsort
SELECT + col2 * col2 * + + 57, - 27 + - 80 - - col1 + + 18 AS col2 FROM tab0
----
125913
-8
558657
-88
5700
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT DISTINCT + SUM( DISTINCT + ( ( col0 ) ) ) AS col0 FROM tab0 WHERE - col1 NOT BETWEEN - + col1 + col2 AND NULL
----
199

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT + SUM ( DISTINCT + ( ( col0 ) ) ) AS col0 FROM tab0 WHERE - col1 NOT BETWEEN - + col1 + col2 AND NULL
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT ALL ( - col2 ) * 45 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL ( - col2 ) * 45 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT MIN( ALL + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5555
SELECT MIN ( ALL + col1 ) FROM tab1
----
5

query I rowsort
SELECT ( + 61 ) AS col0 FROM tab0
----
61
61
61

query I rowsort
SELECT DISTINCT + 46 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - + col0 ) NOT BETWEEN NULL AND col0 - - + 78 + 17 + - col0 / 45 * + 16
----

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + MAX( ALL 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-5561
SELECT + MAX ( ALL 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL + ( + 96 ) * + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
864

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL + ( + 96 ) * + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
864

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL ( + col2 ) AS col2 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT + ( - + col0 ) AS col1 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - 53 col0 FROM tab0
----
2491
5247
530

query I rowsort
SELECT - ( - - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 5 * + 69 AS col2 FROM tab1 AS cor0
----
345
345
345

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT ALL col0, + col0 FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + COUNT( - 82 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5572
SELECT + COUNT ( - 82 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT 72 AS col1, + col2 + col1 FROM tab1 AS cor0
----
72
110
72
115
72
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5574
SELECT ALL - CAST( NULL AS SIGNED ) col0, 81 AS col0 FROM tab1 AS cor0
----
NULL
81
NULL
81
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5574
SELECT ALL - CAST ( NULL AS INTEGER ) col0, 81 AS col0 FROM tab1 AS cor0
----
NULL
81
NULL
81
NULL
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 * - 63 + + - col2 + col0 FROM tab0 AS cor0
----
2929
6235
707

query II rowsort
SELECT DISTINCT col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - + 79 FROM tab2 AS cor0 WHERE - ( col0 ) >= + - col0 / + col2 + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + COUNT( DISTINCT - 13 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5579
SELECT + COUNT ( DISTINCT - 13 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL - col2 * 32 + col1 AS col1 FROM tab1
----
-1883
-2129
-3058

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 0 - + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + MAX( col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5582
SELECT + MAX ( col2 ) FROM tab2
----
58

query I rowsort
SELECT DISTINCT 16 * + col1 FROM tab1
----
224
752
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 67 col0 FROM tab2 AS cor0 WHERE NOT - - 43 IS NOT NULL AND + col2 IS NULL
----

query I rowsort
SELECT 8 - - 18 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( 88 / + 92 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT 89 * + + 0 + - ( - - CAST( + col0 AS SIGNED ) ) * - - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-5586
SELECT 89 * + + 0 + - ( - - CAST ( + col0 AS INTEGER ) ) * - - col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 > + - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 0, 40 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
0
-2040
0
-2680
0
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - COUNT( - 74 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5589
SELECT - COUNT ( - 74 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL - CAST( col2 AS SIGNED ) - - - 26 AS col0 FROM tab2 AS cor0
----
-49
-66
-84

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - CAST ( col2 AS INTEGER ) - - - 26 AS col0 FROM tab2 AS cor0
----
-49
-66
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col1 - + 54 + + col0 + - 92 AS col1 FROM tab1 AS cor0
----
364
4222
619

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 * 2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 * 10 col1 FROM tab0 AS cor0
----
-450
-450
-450

query I rowsort
SELECT ALL - + ( - col0 ) * + - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT + col0 DIV + 42 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5597
SELECT + col0 / + 42 FROM tab2
----
1
1
1

query I rowsort
SELECT + col1 * - 55 * + + col0 FROM tab0
----
-100485
-5335
-66825

query II rowsort
SELECT DISTINCT col1 * - col0 AS col0, col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NOT NULL >= - - 96
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - 49 AND NULL
----

query I rowsort
SELECT + - 63 AS col1 FROM tab1 WHERE NOT - 2 * + - col0 <> col0 + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL - COUNT( - + 79 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - COUNT ( - + 79 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - + ( + - COUNT( * ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5604
SELECT - + ( + - COUNT ( * ) ) col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col1 FROM tab2
----
-68
-68
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5606
SELECT ALL 98 DIV + + MAX( col2 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL 98 / + + MAX ( col2 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT CAST( - + 39 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-5607
SELECT CAST ( - + 39 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - 74 * - COUNT( * ) FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-5608
SELECT - 74 * - COUNT ( * ) FROM tab2 AS cor0
----
222

query II rowsort
SELECT + + col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + COUNT( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5610
SELECT + COUNT ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * - col2 + 54 * + col1 FROM tab2 AS cor0
----
3812
6718
7968

query I rowsort
SELECT - + ( - 54 ) + + 97 - + col2 FROM tab1 cor0
----
55
83
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT + col1 + col2 DIV + + col2 col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5614
SELECT + col1 + col2 / + + col2 col2 FROM tab1
----
15
48
6

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 88 IS NOT NULL
----

query II rowsort
SELECT ALL - 70 * col0 - 7 - col2 AS col1, ( - col2 ) FROM tab1 AS cor0
----
-3673
-96
-6016
-59
-6445
-68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN col2 * - col2 * ( - 44 ) * + 14 * - col0 + 75 - col2 * + col0 + + - col0 AND col2 + + 93 * + - col1 + - ( + col0 )
----

query I rowsort
SELECT - col0 - 42 AS col1 FROM tab2 AS cor0
----
-106
-117
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT + CAST( NULL AS SIGNED ) * - - col2 - 77 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT + CAST ( NULL AS INTEGER ) * - - col2 - 77 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5622
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( - col1 ) AND - + 92
----

query I rowsort
SELECT + col1 * + + 77 * col1 FROM tab2 cor0
----
200277
345653
456533

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL + CAST( NULL AS SIGNED ) * + 87 * SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + CAST ( NULL AS INTEGER ) * + 87 * SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 46 * - col0 + + ( 28 ) FROM tab2 AS cor0
----
-2088
-2916
-3422

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 12 BETWEEN + + col1 AND + ( + - 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + col1 * + + col2 FROM tab2 AS cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 17 ), - 75 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-17
-75
-17
-75
-17
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT COUNT( * ) * + 17 AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT COUNT ( * ) * + 17 AS col2 FROM tab0
----
51

query I rowsort
SELECT - col1 + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT + 14 DIV col2 + - col2 - - 97 AS col2 FROM tab2 AS cor0
----
39
57
74

skipif mysql # not compatible
query I rowsort label-5635
SELECT + 14 / col2 + - col2 - - 97 AS col2 FROM tab2 AS cor0
----
39
57
74

query I rowsort
SELECT - - 51 AS col1 FROM tab1 cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT - MIN( ALL + + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT ALL col2 AS col0, 13 AS col1 FROM tab1 AS cor0
----
59
13
68
13
96
13

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT ALL 91 * CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL 91 * CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT - - COUNT( * ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5642
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + col2 * + col0 + + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
-2992
-3552
-4720

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col0 >= + 69
----
-59
-68

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - col2 ) - + - col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5648
SELECT ALL + SUM( DISTINCT col2 ) + + + 47 AS col2, 70 * + + 58 AS col0 FROM tab2
----
168
4060

skipif mysql # not compatible
query II rowsort label-5648
SELECT ALL + SUM ( DISTINCT col2 ) + + + 47 AS col2, 70 * + + 58 AS col0 FROM tab2
----
168
4060

query I rowsort
SELECT DISTINCT - col0 * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL + SUM( - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + SUM ( - - col1 ) FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 * + 68 col0 FROM tab2
----
2176
2176
2176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5653
SELECT ALL + col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - MIN( DISTINCT - ( + col1 ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5654
SELECT - MIN ( DISTINCT - ( + col1 ) ) AS col2 FROM tab2
----
77

query II rowsort
SELECT DISTINCT + col2, ( - col0 ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT - 48 FROM tab0 AS cor0 WHERE - 24 * - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL - MIN( + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - MIN ( + col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT DISTINCT - - col2 * + 47 - + 43 AS col0 FROM tab2 AS cor0
----
1038
1837
2683

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < col1
----

query I rowsort
SELECT ALL ( + 8 ) AS col0 FROM tab1 AS cor0
----
8
8
8

query II rowsort
SELECT DISTINCT + - col2, col0 * - 30 AS col0 FROM tab1 AS cor0
----
-59
-2550
-68
-2730
-96
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT - - MIN( + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - - MIN ( + col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + 54 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5664
SELECT COUNT ( * ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE 26 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT 25 * + SUM( - - col1 ) AS col2 FROM tab1
----
1650

skipif mysql # not compatible
query I rowsort label-5666
SELECT 25 * + SUM ( - - col1 ) AS col2 FROM tab1
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT COUNT( + col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5667
SELECT COUNT ( + col1 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT ( CAST( NULL AS SIGNED ) ) * - col0 + - + 62 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT ( CAST ( NULL AS INTEGER ) ) * - col0 + - + 62 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col0 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL + MIN( - 89 ) AS col0 FROM tab0, tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + MIN ( - 89 ) AS col0 FROM tab0, tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT col1 NOT BETWEEN - - col1 * 37 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT col1 NOT BETWEEN - - col1 * 37 AND NULL
----
0

query I rowsort
SELECT ALL col2 * - - 45 FROM tab2 AS cor0
----
1035
1800
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5673
SELECT + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5673
SELECT + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5674
SELECT ( - - col2 ) AS col2, col0 DIV col1 AS col1 FROM tab0 AS cor0
----
10
4
47
0
99
97

skipif mysql # not compatible
query II rowsort label-5674
SELECT ( - - col2 ) AS col2, col0 / col1 AS col1 FROM tab0 AS cor0
----
10
4
47
0
99
97

query I rowsort
SELECT ALL + col0 * ( - col1 ) AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT DISTINCT + ( + ( + + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + ( + ( + + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT col1, - col0 AS col2 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT - 4 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 59 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE ( NOT ( NOT - col2 IS NULL ) )
----

query I rowsort
SELECT 33 + + ( col0 ) * + - col1 FROM tab2 cor0
----
-2313
-4895
-4992

query I rowsort
SELECT + col0 + + col2 - - col1 AS col2 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5683
SELECT + CAST( NULL AS SIGNED ) + - col1 + - - col2 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5683
SELECT + CAST ( NULL AS INTEGER ) + - col1 + - - col2 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT COUNT( * ) + 58 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-5685
SELECT COUNT ( * ) + 58 FROM tab1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5686
SELECT ALL + COUNT( * ) DIV + ( + + COUNT( * ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + COUNT ( * ) / + ( + + COUNT ( * ) ) AS col2 FROM tab0
----
1

query I rowsort
SELECT + col1 * + + col1 + 45 AS col2 FROM tab0
----
46
486
6606

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT DISTINCT col2 DIV - 87 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT col2 / - 87 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL 33 + - + MIN( ALL + col1 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL 33 + - + MIN ( ALL + col1 ) FROM tab0
----
32

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 62 IS NULL
----

query II rowsort
SELECT ALL - col2 + + 60 AS col1, col1 AS col2 FROM tab2
----
2
67
20
77
37
51

query I rowsort
SELECT DISTINCT - 2 * + col0 - - col1 FROM tab2
----
-41
-51
-83

query I rowsort
SELECT - col0 * + + col2 * col1 * + col0 + col1 FROM tab0 AS cor0
----
-1589469
-856494
-931490

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT DISTINCT + 11 - - 12 DIV - col1 AS col2 FROM tab0 cor0
----
-1
11

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT + 11 - - 12 / - col1 AS col2 FROM tab0 cor0
----
-1
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT DISTINCT + COUNT( * ) AS col1, 73 AS col1 FROM tab0
----
3
73

skipif mysql # not compatible
query II rowsort label-5696
SELECT DISTINCT + COUNT ( * ) AS col1, 73 AS col1 FROM tab0
----
3
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL + + MIN( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + + MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5699
SELECT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5699
SELECT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + SUM( + 1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5700
SELECT + SUM ( + 1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - MIN( DISTINCT - ( col1 ) ) AS col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5701
SELECT - MIN ( DISTINCT - ( col1 ) ) AS col1 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT COUNT( * ), + 65 AS col0 FROM tab1 AS cor0
----
3
65

skipif mysql # not compatible
query II rowsort label-5702
SELECT COUNT ( * ), + 65 AS col0 FROM tab1 AS cor0
----
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT - - COUNT( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT - - COUNT ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5704
SELECT DISTINCT + + ( + - ( - + col1 ) ) AS col2, - CAST( - + 52 AS SIGNED ) * - col0 AS col1 FROM tab2 cor0
----
51
-2392
67
-3900
77
-3328

skipif mysql # not compatible
query II rowsort label-5704
SELECT DISTINCT + + ( + - ( - + col1 ) ) AS col2, - CAST ( - + 52 AS INTEGER ) * - col0 AS col1 FROM tab2 cor0
----
51
-2392
67
-3900
77
-3328

query II rowsort
SELECT ALL col2 AS col1, 80 AS col0 FROM tab1 AS cor0
----
59
80
68
80
96
80

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 < + col1
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col0, - col1 FROM tab1
----
94
-14
94
-47
94
-5

query I rowsort
SELECT ALL + col0 * + + 85 * - - 30 FROM tab1
----
130050
216750
232050

onlyif mysql # aggregate syntax: 
query II rowsort label-5709
SELECT + 39, COUNT( * ) AS col1 FROM tab2
----
39
3

skipif mysql # not compatible
query II rowsort label-5709
SELECT + 39, COUNT ( * ) AS col1 FROM tab2
----
39
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NUL